﻿/* ==========================================================================
   Office Management Admin — Login + Layout Shell
   ========================================================================== */

body {
  margin: 0;
  padding: 0;
}

/* ---------- Admin Login Page ---------- */
.admin-login {
  --fn-blue-900: #0f2a6b;
  --fn-blue-800: #16337e;
  --fn-blue-700: #1d4ed8;
  --fn-blue-600: #2563eb;
  --fn-blue-500: #3b82f6;
  --fn-gold: #f5b301;
  --fn-gold-soft: #fbbf24;
  --fn-ink: #0f172a;
  --fn-muted: #64748b;
  --fn-line: #e2e8f0;
  --fn-tint: #f4f8ff;
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--fn-ink);
  background: var(--fn-tint);
  -webkit-font-smoothing: antialiased;
}

.admin-login h1,
.admin-login h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}

.login-shell {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 100vh;
}

/* Left visual panel */
.login-visual {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(245, 179, 1, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 10%, rgba(59, 130, 246, 0.35), transparent 50%),
    linear-gradient(155deg, #0a1f52 0%, #16337e 45%, #1d4ed8 100%);
  color: #fff;
  padding: 48px 56px;
  display: flex;
  align-items: flex-end;
}

.login-visual__glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 179, 1, 0.22), transparent 70%);
  top: -80px;
  right: -60px;
  animation: login-float 8s ease-in-out infinite;
}

.login-visual__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
  pointer-events: none;
}

.login-visual__content {
  position: relative;
  z-index: 1;
  max-width: 420px;
  animation: login-rise 0.7s ease both;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 48px;
}

.login-brand__logo {
  height: 52px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
}

.login-brand__logo--sm {
  height: 36px;
  max-width: 120px;
  padding: 2px;
}

.login-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--fn-gold);
  color: var(--fn-blue-900);
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.45rem;
  flex-shrink: 0;
}

.login-brand__mark--sm {
  width: 36px;
  height: 36px;
  font-size: 1rem;
  border-radius: 9px;
}

.login-brand__name {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.4px;
  line-height: 1;
}

.login-brand__tag {
  display: block;
  margin-top: 5px;
  font-size: 0.62rem;
  letter-spacing: 2px;
  color: var(--fn-gold);
  font-weight: 700;
}

.login-visual h1 {
  font-size: clamp(2.2rem, 3.2vw, 3rem);
  margin-bottom: 16px;
  letter-spacing: -0.8px;
}

.login-visual p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  max-width: 34ch;
}

/* Right form panel */
.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
}

.login-panel__inner {
  width: 100%;
  max-width: 400px;
  animation: login-rise 0.7s 0.12s ease both;
}

.login-panel__mobile-brand {
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--fn-blue-800);
}

.login-panel__head {
  margin-bottom: 28px;
}

.login-panel__head h2 {
  font-size: 1.85rem;
  color: var(--fn-ink);
  margin-bottom: 8px;
  letter-spacing: -0.4px;
}

.login-panel__head p {
  margin: 0;
  color: var(--fn-muted);
  font-size: 0.95rem;
}

.login-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 20px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.9rem;
  line-height: 1.45;
}

.login-alert i {
  margin-top: 2px;
  flex-shrink: 0;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-field label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fn-ink);
  margin-bottom: 8px;
}

.login-input {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input > i {
  position: absolute;
  left: 14px;
  color: var(--fn-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

.login-input input {
  width: 100%;
  height: 50px;
  padding: 0 46px 0 42px;
  border: 1.5px solid var(--fn-line);
  border-radius: 10px;
  background: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--fn-ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-input input::placeholder {
  color: #94a3b8;
}

.login-input input:focus {
  border-color: var(--fn-blue-600);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.login-toggle-pass {
  position: absolute;
  right: 8px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--fn-muted);
  cursor: pointer;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, background 0.2s ease;
}

.login-toggle-pass:hover {
  color: var(--fn-blue-700);
  background: var(--fn-tint);
}

.login-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  margin-top: 6px;
  border: 0;
  border-radius: 10px;
  background: var(--fn-gold);
  color: var(--fn-blue-900);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(245, 179, 1, 0.35);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.login-submit:hover {
  background: var(--fn-gold-soft);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(245, 179, 1, 0.4);
}

.login-submit:active {
  transform: translateY(0);
}

.login-footer {
  margin: 28px 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--fn-muted);
}

@keyframes login-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes login-float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-18px, 22px); }
}

@media (prefers-reduced-motion: reduce) {
  .login-visual__glow,
  .login-visual__content,
  .login-panel__inner {
    animation: none;
  }
  .login-submit:hover {
    transform: none;
  }
}

@media (max-width: 900px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: 220px;
    padding: 32px 28px;
    align-items: center;
  }

  .login-visual h1 {
    font-size: 1.85rem;
  }

  .login-visual p {
    display: none;
  }

  .login-brand {
    margin-bottom: 20px;
  }

  .login-panel {
    padding: 36px 22px 48px;
  }
}

@media (max-width: 520px) {
  .login-visual {
    display: none;
  }

  .login-panel__mobile-brand {
    display: flex;
  }

  .login-panel {
    min-height: 100vh;
    align-items: flex-start;
    padding-top: 48px;
  }
}

/* ==========================================================================
   FutureNxt Admin Panel Theme
   ========================================================================== */

.fn-admin {
  --fn-blue-900: #0f2a6b;
  --fn-blue-800: #16337e;
  --fn-blue-700: #1d4ed8;
  --fn-blue-600: #2563eb;
  --fn-blue-500: #3b82f6;
  --fn-gold: #f5b301;
  --fn-gold-soft: #fbbf24;
  --fn-ink: #0f172a;
  --fn-muted: #64748b;
  --fn-line: #e2e8f0;
  --fn-tint: #f4f8ff;
  --fn-white: #ffffff;
  --fn-sidebar-width: 280px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--fn-ink);
}

.fn-admin h1,
.fn-admin h2,
.fn-admin h3,
.fn-admin .fn-page-title,
.fn-admin .brand-text {
  font-family: 'Poppins', sans-serif;
}

.fn-admin .content-wrapper {
  background: var(--fn-tint);
  min-height: calc(100vh - 57px);
}

.fn-admin .content {
  padding-bottom: 28px;
}

/* Top navbar */
.fn-topbar {
  min-height: 57px;
  background: linear-gradient(90deg, var(--fn-blue-900) 0%, var(--fn-blue-800) 55%, #1e40af 100%) !important;
  border-bottom: 3px solid var(--fn-gold) !important;
  box-shadow: 0 8px 24px rgba(15, 42, 107, 0.18);
}

.fn-topbar .nav-link {
  color: rgba(255, 255, 255, 0.92) !important;
}

.fn-topbar .nav-link:hover {
  color: #fff !important;
}

.fn-topbar-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem !important;
  letter-spacing: 0.2px;
  cursor: default;
}

.fn-topbar-meta {
  font-size: 0.85rem !important;
  opacity: 0.9;
  cursor: default;
}

.fn-topbar-meta i {
  margin-right: 6px;
  color: var(--fn-gold);
}

.fn-topbar-logout:hover {
  color: var(--fn-gold) !important;
}

/* Sidebar — deep indigo (matches admin menu reference) */
.fn-sidebar {
  --fn-side: #0b1f4d;
  --fn-side-deep: #071536;
  --fn-side-active: #2563eb;
  --fn-side-active-soft: #1d4ed8;
  background: linear-gradient(180deg, #0b1f4d 0%, #0a1a40 100%) !important;
  border-right: 0;
  box-shadow: 8px 0 28px rgba(7, 21, 54, 0.28);
}

/* Wider expanded sidebar so long labels fit on one line */
body.sidebar-mini:not(.sidebar-collapse) .main-sidebar,
body.sidebar-mini:not(.sidebar-collapse) .main-sidebar::before,
.layout-fixed .main-sidebar.fn-sidebar {
  width: var(--fn-sidebar-width) !important;
}

body.sidebar-mini:not(.sidebar-collapse) .content-wrapper,
body.sidebar-mini:not(.sidebar-collapse) .main-footer,
body.sidebar-mini:not(.sidebar-collapse) .main-header {
  margin-left: var(--fn-sidebar-width) !important;
}

.fn-brand-link {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  height: 57px;
  box-sizing: border-box;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.18) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  padding: 0 1rem !important;
}

.fn-brand-link:hover {
  color: #fff !important;
}

.fn-brand-img.brand-image,
.fn-brand-img {
  float: none !important;
  display: block;
  height: 36px !important;
  width: 36px !important;
  max-width: 36px !important;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 3px;
  margin: 0 !important;
  flex-shrink: 0;
  box-shadow: none;
}

.fn-brand-text.brand-text,
.fn-brand-text {
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.2px;
  color: #fff !important;
  line-height: 1 !important;
  white-space: nowrap;
  opacity: 1;
}

.fn-brand-text strong {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #fff;
}

.fn-brand-text small {
  font-size: 0.68rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--fn-gold);
  font-weight: 700;
  margin-top: 3px;
}

/* Collapsed (icon-only) sidebar brand */
body.sidebar-mini.sidebar-collapse .fn-brand-link {
  justify-content: center;
  width: 4.6rem !important;
  max-width: 4.6rem !important;
  padding: 0.45rem 0.4rem !important;
}

body.sidebar-mini.sidebar-collapse .fn-brand-img.brand-image,
body.sidebar-mini.sidebar-collapse .fn-brand-img {
  width: 2.35rem !important;
  height: 2.35rem !important;
  max-width: 2.35rem !important;
  margin: 0 auto !important;
  padding: 2px;
  object-fit: contain;
}

body.sidebar-mini.sidebar-collapse .fn-brand-text {
  display: none !important;
  opacity: 0 !important;
  width: 0 !important;
  margin: 0 !important;
  overflow: hidden;
}

/* Collapsed icon-only: hard-hide all labels (prevents clipped text on click) */
body.sidebar-mini.sidebar-collapse:not(.fn-sidebar-hover) .main-sidebar,
body.sidebar-mini.sidebar-collapse:not(.fn-sidebar-hover) .main-sidebar::before {
  width: 4.6rem !important;
  max-width: 4.6rem !important;
  overflow: hidden !important;
  z-index: 1038;
}

body.sidebar-mini.sidebar-collapse:not(.fn-sidebar-hover) .nav-sidebar .nav-link p,
body.sidebar-mini.sidebar-collapse:not(.fn-sidebar-hover) .nav-sidebar .nav-link .right,
body.sidebar-mini.sidebar-collapse:not(.fn-sidebar-hover) .brand-text,
body.sidebar-mini.sidebar-collapse:not(.fn-sidebar-hover) .fn-brand-text,
body.sidebar-mini.sidebar-collapse:not(.fn-sidebar-hover) .fn-user-panel .info {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  overflow: hidden !important;
}

body.sidebar-mini.sidebar-collapse:not(.fn-sidebar-hover) .nav-treeview {
  display: none !important;
}

body.sidebar-mini.sidebar-collapse:not(.fn-sidebar-hover) .fn-brand-link {
  justify-content: center;
  width: 4.6rem !important;
  max-width: 4.6rem !important;
  padding: 0.45rem 0.4rem !important;
}

body.sidebar-mini.sidebar-collapse:not(.fn-sidebar-hover) .fn-user-panel {
  justify-content: center;
  width: auto !important;
  max-width: calc(4.6rem - 12px) !important;
  padding: 6px !important;
  margin: 8px 6px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.sidebar-mini.sidebar-collapse:not(.fn-sidebar-hover) .fn-avatar {
  width: 34px;
  height: 34px;
  font-size: 0.85rem;
  margin: 0 auto;
}

body.sidebar-mini.sidebar-collapse:not(.fn-sidebar-hover) .fn-sidebar .nav-sidebar {
  padding: 0 6px 18px;
}

body.sidebar-mini.sidebar-collapse:not(.fn-sidebar-hover) .fn-sidebar .nav-sidebar > .nav-item > .nav-link {
  justify-content: center !important;
  padding: 0.7rem 0.35rem !important;
}

body.sidebar-mini.sidebar-collapse:not(.fn-sidebar-hover) .fn-sidebar .nav-sidebar > .nav-item > .nav-link .nav-icon {
  margin-right: 0 !important;
}

body.sidebar-mini.sidebar-collapse .content-wrapper,
body.sidebar-mini.sidebar-collapse .main-footer {
  margin-left: 4.6rem !important;
  position: relative;
  z-index: 1000;
}

body.sidebar-mini.sidebar-collapse .main-header {
  margin-left: 4.6rem !important;
  z-index: 1034;
}

/* Hover expand (fn-sidebar-hover only): full overlay menu */
body.sidebar-mini.sidebar-collapse.fn-sidebar-hover .main-sidebar,
body.sidebar-mini.sidebar-collapse.fn-sidebar-hover .main-sidebar::before {
  width: var(--fn-sidebar-width) !important;
  max-width: var(--fn-sidebar-width) !important;
  overflow-x: hidden !important;
  overflow-y: auto;
  z-index: 1100 !important;
  box-shadow: 10px 0 28px rgba(7, 21, 54, 0.35);
}

body.sidebar-mini.sidebar-collapse.fn-sidebar-hover .fn-brand-link {
  justify-content: flex-start;
  width: var(--fn-sidebar-width) !important;
  max-width: var(--fn-sidebar-width) !important;
  padding: 0 1rem !important;
}

body.sidebar-mini.sidebar-collapse.fn-sidebar-hover .fn-brand-text {
  display: block !important;
  opacity: 1 !important;
  width: auto !important;
  height: auto !important;
  visibility: visible !important;
}

body.sidebar-mini.sidebar-collapse.fn-sidebar-hover .fn-brand-img {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px !important;
}

body.sidebar-mini.sidebar-collapse.fn-sidebar-hover .fn-user-panel {
  justify-content: flex-start;
  max-width: none !important;
  padding: 12px 14px !important;
  margin: 12px 10px 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: rgba(0, 0, 0, 0.16) !important;
}

body.sidebar-mini.sidebar-collapse.fn-sidebar-hover .fn-user-panel .info {
  display: block !important;
  width: auto !important;
  height: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.sidebar-mini.sidebar-collapse.fn-sidebar-hover .fn-sidebar .nav-sidebar {
  padding: 0 10px 18px;
}

body.sidebar-mini.sidebar-collapse.fn-sidebar-hover .fn-sidebar .nav-sidebar > .nav-item > .nav-link {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  padding: 0.65rem 0.85rem;
}

body.sidebar-mini.sidebar-collapse.fn-sidebar-hover .fn-sidebar .nav-sidebar > .nav-item > .nav-link .nav-icon {
  margin-right: 12px !important;
}

body.sidebar-mini.sidebar-collapse.fn-sidebar-hover .nav-sidebar .nav-link p {
  display: flex !important;
  align-items: center;
  flex: 1 1 auto;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  position: static !important;
  animation: none !important;
  white-space: nowrap !important;
}

body.sidebar-mini.sidebar-collapse.fn-sidebar-hover .nav-sidebar .nav-link .right {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  height: auto !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  padding-left: 8px;
  opacity: 1 !important;
  visibility: visible !important;
  position: static !important;
  float: none !important;
  animation: none !important;
}

/* Only show submenu when user opens it — never force all treeviews open on hover */
body.sidebar-mini.sidebar-collapse.fn-sidebar-hover .has-treeview:not(.menu-open) > .nav-treeview {
  display: none !important;
}

body.sidebar-mini.sidebar-collapse.fn-sidebar-hover .has-treeview.menu-open > .nav-treeview {
  display: block !important;
}

@media (max-width: 991.98px) {
  body.sidebar-mini.sidebar-collapse .content-wrapper,
  body.sidebar-mini.sidebar-collapse .main-footer,
  body.sidebar-mini.sidebar-collapse .main-header {
    margin-left: 0 !important;
  }
}

.fn-user-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px !important;
  margin: 12px 10px 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.16);
}

.fn-user-panel .info {
  padding: 0 !important;
  line-height: 1.25;
  min-width: 0;
}

.fn-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(145deg, #f5b301, #f59e0b);
  color: #0f2a6b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  flex-shrink: 0;
}

.fn-user-name {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: #fff;
}

.fn-user-role {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 2px;
}

.fn-sidebar .sidebar {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
}

.fn-sidebar .sidebar::-webkit-scrollbar {
  width: 4px;
}

.fn-sidebar .sidebar::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 999px;
}

.fn-sidebar .nav-sidebar {
  padding: 0 10px 18px;
}

.fn-sidebar .nav-sidebar > .nav-item {
  margin: 0;
}

.fn-sidebar .nav-sidebar > .nav-item > .nav-link {
  display: flex !important;
  align-items: center;
  color: rgba(255, 255, 255, 0.88) !important;
  border-radius: 10px;
  margin: 3px 0;
  padding: 0.65rem 0.85rem;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  line-height: 1.25;
}

.fn-sidebar .nav-sidebar > .nav-item > .nav-link p {
  display: flex !important;
  align-items: center;
  flex: 1 1 auto;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
  overflow: visible;
  line-height: 1.25;
  width: auto !important;
}

.fn-sidebar .nav-sidebar > .nav-item > .nav-link .nav-icon {
  color: rgba(255, 255, 255, 0.9) !important;
  margin-right: 12px !important;
  width: 1.35rem;
  flex-shrink: 0;
  text-align: center;
  font-size: 1rem;
}

.fn-sidebar .nav-sidebar > .nav-item > .nav-link .right,
.fn-sidebar .nav-sidebar .nav-link > p > .right {
  position: static !important;
  float: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin-left: auto !important;
  margin-right: 0 !important;
  padding-left: 8px;
  color: rgba(255, 255, 255, 0.7) !important;
  flex-shrink: 0;
  line-height: 1;
}

.fn-sidebar .nav-sidebar > .nav-item > .nav-link:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}

.fn-sidebar .nav-sidebar > .nav-item > .nav-link:hover .nav-icon {
  color: #fff !important;
}

.fn-sidebar .nav-sidebar > .nav-item > .nav-link.active,
.fn-sidebar .has-treeview.menu-open > .nav-link.active {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 55%, #1d4ed8 100%) !important;
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}

.fn-sidebar .nav-sidebar > .nav-item > .nav-link.active .nav-icon,
.fn-sidebar .nav-sidebar > .nav-item > .nav-link.active .right {
  color: #fff !important;
}

.fn-sidebar .has-treeview.menu-open > .nav-link:not(.active) {
  background: rgba(255, 255, 255, 0.06) !important;
}

.fn-sidebar .has-treeview:not(.menu-open) > .nav-treeview {
  display: none !important;
}

.fn-sidebar .has-treeview.menu-open > .nav-treeview {
  display: block !important;
}

.fn-sidebar .nav-treeview {
  background: transparent;
  padding: 2px 0 6px 0;
}

.fn-sidebar .nav-treeview > .nav-item > .nav-link {
  display: flex !important;
  align-items: center;
  color: rgba(226, 232, 240, 0.78) !important;
  padding: 0.45rem 0.85rem 0.45rem 2.55rem;
  border-radius: 8px;
  margin: 2px 0;
  font-size: 0.86rem;
  white-space: nowrap;
}

.fn-sidebar .nav-treeview > .nav-item > .nav-link p {
  display: block !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

.fn-sidebar .nav-treeview > .nav-item > .nav-link .nav-icon {
  font-size: 0.42rem !important;
  color: rgba(226, 232, 240, 0.55) !important;
  margin-right: 8px;
  width: auto;
  flex-shrink: 0;
}

.fn-sidebar .nav-treeview > .nav-item > .nav-link:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}

.fn-sidebar .nav-treeview > .nav-item > .nav-link.active {
  background: rgba(59, 130, 246, 0.35) !important;
  color: #fff !important;
  font-weight: 600;
}

.fn-sidebar .nav-treeview > .nav-item > .nav-link.active .nav-icon {
  color: #fff !important;
}

.fn-nav-badge {
  background: #22c55e !important;
  color: #fff !important;
  border-radius: 999px !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  min-width: 1.35rem;
  padding: 0.2rem 0.4rem !important;
  line-height: 1.1;
}

.fn-logout-link:hover {
  background: rgba(185, 28, 28, 0.35) !important;
  color: #fff !important;
}

.fn-logout-link:hover .nav-icon {
  color: #fecaca !important;
}

.fn-stub-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--fn-tint);
  border: 1px dashed #bfdbfe;
}

.fn-stub-note i {
  color: var(--fn-blue-600);
  margin-top: 3px;
}

.fn-stub-note strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  color: var(--fn-ink);
  margin-bottom: 2px;
}

.fn-stub-note p {
  margin: 0;
  color: var(--fn-muted);
  font-size: 0.9rem;
}

/* Content header */
.fn-content-header {
  padding: 18px 0 8px;
}

.fn-page-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--fn-ink);
  letter-spacing: -0.4px;
}

.fn-breadcrumb {
  background: transparent;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
}

.fn-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: var(--fn-muted);
}

.fn-breadcrumb a {
  color: var(--fn-blue-600);
  font-weight: 500;
}

.fn-breadcrumb .active {
  color: var(--fn-muted);
}

/* Footer */
.fn-footer {
  background: var(--fn-white) !important;
  border-top: 1px solid var(--fn-line) !important;
  color: var(--fn-muted) !important;
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}

.fn-footer strong {
  color: var(--fn-blue-800);
}

.fn-footer-sep {
  margin: 0 6px;
  opacity: 0.5;
}

/* Alerts */
.fn-alert-success {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  border-radius: 12px;
  padding: 12px 16px;
}

.fn-alert-success .close {
  margin-left: auto;
  color: #065f46;
  opacity: 0.7;
}

/* Dashboard welcome */
.fn-welcome {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding: 28px 30px;
  border-radius: 16px;
  color: #fff;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(245, 179, 1, 0.22), transparent 55%),
    linear-gradient(135deg, var(--fn-blue-900) 0%, var(--fn-blue-800) 45%, var(--fn-blue-700) 100%);
  box-shadow: 0 16px 40px rgba(15, 42, 107, 0.18);
  animation: fn-rise 0.55s ease both;
}

.fn-welcome__eyebrow {
  margin: 0 0 6px;
  font-size: 0.72rem;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--fn-gold);
}

.fn-welcome h2 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #fff;
}

.fn-welcome__copy p:last-child {
  margin: 0;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  line-height: 1.55;
}

.fn-welcome__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fn-welcome__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.82rem;
  font-weight: 500;
  backdrop-filter: blur(6px);
}

.fn-welcome__chip i {
  color: var(--fn-gold);
}

.fn-welcome__chip--muted {
  opacity: 0.92;
}

/* Stat cards */
.fn-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--fn-white);
  border: 1px solid var(--fn-line);
  border-radius: 14px;
  padding: 18px 16px;
  margin-bottom: 18px;
  box-shadow: 0 8px 22px rgba(15, 42, 107, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: fn-rise 0.55s ease both;
}

.fn-stat-card:nth-child(1) { animation-delay: 0.05s; }
.col-lg-3:nth-child(2) .fn-stat-card { animation-delay: 0.1s; }
.col-lg-3:nth-child(3) .fn-stat-card { animation-delay: 0.15s; }
.col-lg-3:nth-child(4) .fn-stat-card { animation-delay: 0.2s; }

.fn-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(15, 42, 107, 0.1);
}

.fn-stat-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.fn-stat-card--blue .fn-stat-card__icon {
  background: #eff5ff;
  color: var(--fn-blue-600);
}

.fn-stat-card--gold .fn-stat-card__icon {
  background: #fff8e6;
  color: #c48900;
}

.fn-stat-card--navy .fn-stat-card__icon {
  background: #eef2ff;
  color: var(--fn-blue-900);
}

.fn-stat-card--sky .fn-stat-card__icon {
  background: #ecfeff;
  color: #0891b2;
}

.fn-stat-card__label {
  display: block;
  font-size: 0.78rem;
  color: var(--fn-muted);
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.fn-stat-card__value {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--fn-ink);
  line-height: 1.2;
  margin: 2px 0;
}

.fn-stat-card__hint {
  display: block;
  font-size: 0.75rem;
  color: #94a3b8;
}

/* Content panels */
.fn-panel {
  background: var(--fn-white);
  border: 1px solid var(--fn-line);
  border-radius: 14px;
  padding: 22px 22px 18px;
  margin-bottom: 18px;
  box-shadow: 0 8px 22px rgba(15, 42, 107, 0.05);
  animation: fn-rise 0.55s 0.18s ease both;
}

.fn-panel--accent {
  background: linear-gradient(180deg, #fff 0%, #fffdf5 100%);
  border-color: #fde68a;
}

.fn-panel__head h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fn-ink);
}

.fn-panel__head p {
  margin: 0 0 16px;
  color: var(--fn-muted);
  font-size: 0.9rem;
}

.fn-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fn-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--fn-line);
  font-size: 0.92rem;
  color: var(--fn-ink);
}

.fn-checklist li:first-child {
  border-top: 0;
  padding-top: 0;
}

.fn-checklist i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ecfdf5;
  color: #059669;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.fn-checklist li.is-pending {
  color: var(--fn-muted);
}

.fn-checklist li.is-pending i {
  background: #fff8e6;
  color: #c48900;
}

.fn-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fn-action {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--fn-tint);
  border: 1px solid var(--fn-line);
  color: var(--fn-blue-800);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.fn-action:hover {
  background: #eff5ff;
  border-color: #bfdbfe;
  color: var(--fn-blue-700);
  transform: translateX(3px);
}

.fn-action i {
  width: 18px;
  text-align: center;
  color: var(--fn-blue-600);
}

.fn-action--danger {
  background: #fff;
  color: #b91c1c;
}

.fn-action--danger i {
  color: #b91c1c;
}

.fn-action--danger:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

@keyframes fn-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fn-welcome,
  .fn-stat-card,
  .fn-panel {
    animation: none;
  }

  .fn-stat-card:hover,
  .fn-action:hover {
    transform: none;
  }
}

@media (max-width: 767.98px) {
  .fn-welcome {
    padding: 22px 20px;
  }

  .fn-welcome h2 {
    font-size: 1.4rem;
  }

  .fn-topbar-meta {
    display: none !important;
  }
}

/* ==========================================================================
   Users module — list + modal (matches design screenshots)
   ========================================================================== */

.om-users-header {
  padding-top: 14px;
  padding-bottom: 6px;
}

.om-users-crumb {
  margin-bottom: 10px !important;
  float: none !important;
}

.om-users-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.om-users-subtitle {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 0.92rem;
}

.om-users-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.om-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.om-btn--sm {
  height: 34px;
  padding: 0 12px;
  font-size: 0.82rem;
  border-radius: 8px;
}

.om-btn--primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.om-btn--primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff !important;
}

.om-btn--navy {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff !important;
}

.om-btn--navy:hover {
  background: #1e293b;
  color: #fff !important;
}

.om-btn--ghost,
.om-btn--outline {
  background: #fff;
  border-color: #e2e8f0;
  color: #0f172a !important;
}

.om-btn--ghost:hover,
.om-btn--outline:hover,
.om-btn--ghost.is-active {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a !important;
}

.om-users-card {
  background: #fff;
  border: 1px solid #e8eef8;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 42, 107, 0.05);
  overflow: hidden;
  margin-bottom: 24px;
}

.om-users-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px 14px;
  flex-wrap: wrap;
}

.om-users-card__title {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.om-users-card__title span {
  color: #64748b;
  font-weight: 600;
}

.om-users-tools {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  min-width: min(420px, 100%);
  flex: 1 1 320px;
}

.om-users-search {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.om-users-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.85rem;
}

.om-users-search input {
  width: 100%;
  height: 42px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0 14px 0 40px;
  font-size: 0.9rem;
  color: #0f172a;
  background: #fff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.om-users-search input:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.om-users-tool-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.om-dropdown {
  position: relative;
}

.om-dropdown__menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  padding: 8px;
  z-index: 30;
}

.om-dropdown.is-open .om-dropdown__menu {
  display: block;
}

.om-filter-menu {
  min-width: 260px;
  padding: 14px;
}

.om-filter-menu label {
  display: block;
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
}

.om-filter-menu label + .om-select {
  margin-bottom: 12px;
}

.om-filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.om-dropdown__item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  border-radius: 8px;
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
}

.om-dropdown__item:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

.om-chevron {
  font-size: 0.7rem;
  opacity: 0.7;
}

.om-select,
.om-field input,
.om-password input {
  width: 100%;
  height: 42px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 0.92rem;
  color: #0f172a;
  background: #fff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.om-select:focus,
.om-field input:focus,
.om-password input:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.om-users-table-wrap {
  overflow-x: auto;
}

.om-users-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.om-users-table thead th {
  padding: 12px 16px;
  border-top: 1px solid #eef2f7;
  border-bottom: 1px solid #eef2f7;
  background: #fafbfd;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  white-space: nowrap;
}

.om-users-table tbody td {
  padding: 16px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  color: #0f172a;
  font-size: 0.9rem;
}

.om-users-table tbody tr:hover {
  background: #fbfdff;
}

.om-col-check {
  width: 44px;
  text-align: center;
}

.om-col-num {
  width: 48px;
  color: #64748b !important;
  font-weight: 600;
}

.om-col-actions {
  width: 140px;
  white-space: nowrap;
}

.om-col-actions .om-inline-form,
.om-col-actions a,
.om-col-actions .om-more {
  display: inline-flex;
  vertical-align: middle;
}

.om-user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.om-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
  color: #fff;
}

.om-user-avatar--img {
  object-fit: cover;
  background: #e2e8f0;
}

.om-user-avatar--violet { background: linear-gradient(145deg, #8b5cf6, #7c3aed); }
.om-user-avatar--blue { background: linear-gradient(145deg, #3b82f6, #2563eb); }
.om-user-avatar--teal { background: linear-gradient(145deg, #14b8a6, #0d9488); }
.om-user-avatar--amber { background: linear-gradient(145deg, #f59e0b, #d97706); }
.om-user-avatar--rose { background: linear-gradient(145deg, #f43f5e, #e11d48); }
.om-user-avatar--indigo { background: linear-gradient(145deg, #6366f1, #4f46e5); }
.om-user-avatar--emerald { background: linear-gradient(145deg, #10b981, #059669); }

.om-user-name {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.25;
}

.om-user-email {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
  color: #64748b;
}

.om-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.om-role-pill i {
  font-size: 0.7rem;
}

.om-role-pill--master {
  background: #f3e8ff;
  color: #7e22ce;
}

.om-role-pill--admin {
  background: #ede9fe;
  color: #6d28d9;
}

.om-role-pill--hr {
  background: #ffe4e6;
  color: #be123c;
}

.om-role-pill--pm {
  background: #dcfce7;
  color: #15803d;
}

.om-role-pill--finance {
  background: #ffedd5;
  color: #c2410c;
}

.om-role-pill--leader {
  background: #dbeafe;
  color: #1d4ed8;
}

.om-role-pill--assistant {
  background: #f1f5f9;
  color: #475569;
}

.om-role-pill--employee {
  background: #e0f2fe;
  color: #0369a1;
}

.om-dept {
  color: #334155;
  white-space: nowrap;
}

.om-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 0.88rem;
}

.om-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.om-status--active {
  color: #16a34a;
}

.om-status--active .om-status__dot {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.om-status--inactive {
  color: #94a3b8;
}

.om-status--inactive .om-status__dot {
  background: #94a3b8;
}

.om-login strong {
  display: block;
  font-size: 0.88rem;
  color: #0f172a;
  line-height: 1.2;
}

.om-login span {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  color: #94a3b8;
}

.om-login-empty {
  color: #94a3b8;
}

.om-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: 4px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.om-icon-btn--edit {
  background: #eff6ff;
  color: #2563eb;
  border-color: #dbeafe;
}

.om-icon-btn--edit:hover {
  background: #dbeafe;
  color: #1d4ed8;
}

.om-icon-btn--delete {
  background: #fef2f2;
  color: #ef4444;
  border-color: #fecaca;
}

.om-icon-btn--delete:hover {
  background: #fee2e2;
  color: #dc2626;
}

.om-icon-btn--more {
  background: #fff;
  color: #64748b;
  border-color: #e2e8f0;
}

.om-icon-btn--more:hover {
  background: #f8fafc;
  color: #0f172a;
}

.om-more {
  position: relative;
  display: inline-flex;
}

.om-more__menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 150px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  padding: 6px;
  z-index: 20;
}

.om-more.is-open .om-more__menu {
  display: block;
}

/* Portaled/fixed menu escapes overflow:auto/hidden scroll parents */
.om-more__menu.is-portal {
  position: fixed;
  right: auto;
  z-index: 2050;
  display: block;
}

.om-more__item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 9px 10px;
  border-radius: 7px;
  color: #0f172a;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none !important;
  cursor: pointer;
}

.om-more__item:hover {
  background: #f1f5f9;
}

.om-users-empty {
  text-align: center !important;
  padding: 48px 20px !important;
  color: #64748b;
}

.om-users-empty i {
  display: block;
  font-size: 1.6rem;
  color: #94a3b8;
  margin-bottom: 10px;
}

.om-users-empty strong {
  display: block;
  color: #0f172a;
  margin-bottom: 4px;
}

.om-users-empty span {
  font-size: 0.88rem;
}

.om-users-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px 16px;
  border-top: 1px solid #eef2f7;
}

.om-users-count {
  color: #64748b;
  font-size: 0.88rem;
}

.om-users-pager {
  display: flex;
  align-items: center;
  gap: 6px;
}

.om-page-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none !important;
}

.om-page-btn.is-active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff !important;
}

.om-page-btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.om-per-page {
  height: 34px;
  margin-left: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0 8px;
  font-size: 0.82rem;
  color: #334155;
  background: #fff;
}

/* Modal */
body.om-modal-open {
  overflow: hidden;
}

.om-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.om-modal.is-open {
  display: flex;
}

.om-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.om-modal__dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: min(92vh, 820px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1;
}

.om-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 24px 12px;
}

.om-modal__head h2 {
  margin: 0 0 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}

.om-modal__head p {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
}

.om-modal__close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}

.om-modal__close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.om-modal__form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}

.om-modal__body {
  padding: 8px 24px 8px;
  overflow-y: auto;
  flex: 1;
}

.om-modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px 22px;
  border-top: 1px solid #eef2f7;
}

.om-field {
  margin-bottom: 16px;
}

.om-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #0f172a;
}

.om-field label span {
  color: #ef4444;
}

.om-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.om-help {
  margin: 7px 0 0;
  font-size: 0.8rem;
  color: #94a3b8;
}

.om-avatar-picker {
  display: flex;
  align-items: center;
  gap: 14px;
}

.om-avatar-picker__preview {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.om-avatar-picker__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.om-password {
  position: relative;
}

.om-password input {
  padding-right: 42px;
}

.om-password__toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  border-radius: 6px;
}

.om-password__toggle:hover {
  color: #0f172a;
  background: #f1f5f9;
}

@media (max-width: 767.98px) {
  .om-users-tools {
    align-items: stretch;
    min-width: 0;
  }

  .om-users-search {
    max-width: none;
  }

  .om-users-tool-row {
    width: 100%;
  }

  .om-users-tool-row .om-btn {
    flex: 1;
  }

  .om-field-row {
    grid-template-columns: 1fr;
  }

  .om-modal__dialog {
    max-height: 96vh;
  }
}

@media print {
  .main-sidebar,
  .main-header,
  .om-users-actions,
  .om-users-tools,
  .om-col-check,
  .om-col-actions,
  .om-users-footer,
  .main-footer,
  .om-modal {
    display: none !important;
  }

  .content-wrapper,
  .main-footer {
    margin-left: 0 !important;
  }
}

/* ==========================================================================
   Projects module — KPI cards, filters, table, modal
   ========================================================================== */

.om-prj-header { padding-top: 14px; padding-bottom: 6px; }
.om-prj-crumb { margin-bottom: 10px !important; float: none !important; }

.om-prj-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.om-prj-subtitle {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 0.92rem;
}

.om-prj-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.om-btn--icon {
  width: 40px;
  padding: 0;
  background: #fff;
  border-color: #e2e8f0;
  color: #475569 !important;
}

.om-btn--icon:hover {
  background: #f8fafc;
  color: #0f172a !important;
}

.om-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.om-kpi-card {
  background: #fff;
  border: 1px solid #e8eef8;
  border-radius: 14px;
  padding: 16px 16px 14px;
  box-shadow: 0 6px 18px rgba(15, 42, 107, 0.04);
}

.om-kpi-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.om-kpi-card__icon--blue { background: #eff6ff; color: #2563eb; }
.om-kpi-card__icon--green { background: #ecfdf5; color: #16a34a; }
.om-kpi-card__icon--purple { background: #f3e8ff; color: #7c3aed; }
.om-kpi-card__icon--orange { background: #fff7ed; color: #ea580c; }
.om-kpi-card__icon--red { background: #fef2f2; color: #dc2626; }

.om-kpi-card__label {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.om-kpi-card__value {
  font-family: 'Poppins', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.1;
  letter-spacing: -0.4px;
}

.om-kpi-card__trend {
  margin-top: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.om-kpi-card__trend span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.om-kpi-card__trend.is-up { color: #16a34a; }
.om-kpi-card__trend.is-up span { background: #22c55e; }
.om-kpi-card__trend.is-flat { color: #94a3b8; }
.om-kpi-card__trend.is-flat span { background: #94a3b8; }
.om-kpi-card__trend.is-down { color: #dc2626; }
.om-kpi-card__trend.is-down span { background: #ef4444; }

.om-prj-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid #e8eef8;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 16px;
  box-shadow: 0 6px 18px rgba(15, 42, 107, 0.04);
}

.om-prj-search {
  position: relative;
  flex: 1 1 220px;
  min-width: 200px;
}

.om-prj-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.85rem;
}

.om-prj-search input {
  width: 100%;
  height: 40px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0 12px 0 36px;
  font-size: 0.88rem;
  outline: none;
  background: #fff;
}

.om-prj-search input:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.om-prj-select {
  width: auto;
  min-width: 130px;
  height: 40px !important;
  border-radius: 10px !important;
}

.om-prj-dates {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.om-prj-dates__to {
  color: #94a3b8;
  font-size: 0.85rem;
}

.om-prj-date input[type="date"] {
  height: 40px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0 10px;
  font-size: 0.85rem;
  color: #334155;
  background: #fff;
  outline: none;
}

.om-prj-date input[type="date"]:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.om-prj-card {
  background: #fff;
  border: 1px solid #e8eef8;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 42, 107, 0.05);
  /* Keep visible so action menus can escape; radius applied on inner scroll area */
  overflow: visible;
  margin-bottom: 24px;
}

.om-prj-table-wrap {
  overflow: auto;
  max-height: min(62vh, 680px);
  -webkit-overflow-scrolling: touch;
  border-radius: 16px 16px 0 0;
}

.om-prj-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 1180px;
}

.om-prj-table thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  padding: 12px 14px;
  border-bottom: 1px solid #eef2f7;
  background: #fafbfd;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: inset 0 -1px 0 #eef2f7;
}

.om-prj-table tbody td {
  padding: 14px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  font-size: 0.88rem;
  color: #0f172a;
}

.om-prj-table tbody tr:hover { background: #fbfdff; }

.om-prj-name strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.25;
}

.om-prj-name span {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  color: #94a3b8;
}

.om-prj-client {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.om-prj-client .om-user-avatar {
  width: 32px;
  height: 32px;
  font-size: 0.68rem;
}

.om-prj-dept {
  color: #334155;
  white-space: nowrap;
}

.om-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 110px;
}

.om-progress__track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.om-progress__bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #60a5fa, #2563eb);
}

.om-progress span {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  min-width: 32px;
}

.om-prj-date-cell {
  white-space: nowrap;
  color: #334155;
}

.om-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.om-pill--active { background: #dcfce7; color: #15803d; }
.om-pill--completed { background: #ede9fe; color: #6d28d9; }
.om-pill--hold { background: #ffedd5; color: #c2410c; }
.om-pill--overdue { background: #fee2e2; color: #b91c1c; }
.om-pill--planning { background: #e0f2fe; color: #0369a1; }

.om-pill--prio-low { background: #f1f5f9; color: #475569; }
.om-pill--prio-medium { background: #fef9c3; color: #a16207; }
.om-pill--prio-high { background: #fee2e2; color: #b91c1c; }
.om-pill--prio-critical { background: #ffe4e6; color: #9f1239; }

.om-team {
  display: flex;
  align-items: center;
}

.om-team__avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 700;
  color: #fff;
  border: 2px solid #fff;
  margin-left: -8px;
}

.om-team__avatar:first-child { margin-left: 0; }

.om-team__more {
  margin-left: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
}

.om-prj-empty {
  text-align: center !important;
  padding: 48px 20px !important;
  color: #64748b;
}

.om-prj-empty i {
  display: block;
  font-size: 1.6rem;
  color: #94a3b8;
  margin-bottom: 10px;
}

.om-prj-empty strong {
  display: block;
  color: #0f172a;
  margin-bottom: 4px;
}

.om-prj-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px 16px;
  border-top: 1px solid #eef2f7;
  border-radius: 0 0 16px 16px;
  background: #fff;
  position: relative;
  z-index: 1;
}

.om-textarea {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.92rem;
  color: #0f172a;
  outline: none;
  resize: vertical;
  min-height: 84px;
  font-family: inherit;
}

.om-textarea:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

@media (max-width: 1199.98px) {
  .om-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
  .om-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .om-prj-filters { align-items: stretch; }
  .om-prj-select, .om-prj-dates { width: 100%; }
  .om-prj-dates { justify-content: space-between; }
}

@media (max-width: 575.98px) {
  .om-kpi-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Create Project wizard — centered professional modal
   ========================================================================== */

.om-wiz {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 16px;
  background: rgba(15, 23, 42, 0.48);
  overflow: auto;
}

.om-wiz.is-open { display: flex; }

.om-wiz__shell {
  width: min(980px, 100%);
  max-height: calc(100vh - 56px);
  margin: 0 auto;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
  overflow: auto;
  padding: 22px 22px 18px;
}

.om-wiz__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.om-wiz__top h2 {
  margin: 0 0 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
}

.om-wiz__top p {
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
}

.om-wiz-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
  background: #fff;
  border: 1px solid #e8eef8;
  border-radius: 14px;
  padding: 14px;
}

.om-wiz-step {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 10px;
  color: #94a3b8;
}

.om-wiz-step__num {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
}

.om-wiz-step__label {
  font-size: 0.86rem;
  font-weight: 600;
  color: #94a3b8;
}

.om-wiz-step.is-active .om-wiz-step__num,
.om-wiz-step.is-done .om-wiz-step__num {
  background: #1e3a8a;
  color: #fff;
}

.om-wiz-step.is-active .om-wiz-step__label {
  color: #0f172a;
  font-weight: 700;
}

.om-wiz__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.om-wiz-panel { display: none; }
.om-wiz-panel.is-active { display: block; }

.om-wiz-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
  gap: 16px;
  align-items: start;
}

.om-wiz-card {
  background: #fff;
  border: 1px solid #e8eef8;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(15, 42, 107, 0.04);
}

.om-wiz-card__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.om-wiz-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #eff6ff;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.om-wiz-card__head h3 {
  margin: 0 0 2px;
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.om-wiz-card__head p {
  margin: 0;
  color: #64748b;
  font-size: 0.88rem;
}

.om-wiz-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.om-wiz-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.om-editor {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.om-editor__bar {
  display: flex;
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid #eef2f7;
  background: #f8fafc;
}

.om-editor__bar button {
  width: 32px;
  height: 30px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #334155;
  cursor: pointer;
}

.om-editor__bar button:hover {
  background: #fff;
  border-color: #e2e8f0;
}

.om-editor__area {
  min-height: 120px;
  padding: 12px 14px;
  outline: none;
  font-size: 0.92rem;
  color: #0f172a;
}

.om-editor__area:empty:before {
  content: attr(data-placeholder);
  color: #94a3b8;
}

.om-input-with-btn {
  display: flex;
  gap: 8px;
  align-items: center;
}

.om-input-with-btn input { flex: 1; }

.om-mini-add {
  width: 40px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #2563eb;
  cursor: pointer;
  flex-shrink: 0;
}

.om-cover { display: block; cursor: pointer; margin-bottom: 14px; }

.om-cover__preview {
  border: 1.5px dashed #cbd5e1;
  border-radius: 14px;
  min-height: 150px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  color: #64748b;
  background: #f8fafc;
  overflow: hidden;
}

.om-cover__preview i { font-size: 1.4rem; color: #94a3b8; }
.om-cover__preview strong { font-size: 0.86rem; color: #334155; max-width: 22ch; }
.om-cover__preview span { font-size: 0.78rem; color: #94a3b8; }
.om-cover__preview img { width: 100%; height: 150px; object-fit: cover; border-radius: 10px; }

.om-docs-box {
  margin-top: 8px;
  padding: 12px;
  border: 1px solid #e8eef8;
  border-radius: 12px;
  background: #fafbfd;
}

.om-docs-box__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.om-wiz__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border: 1px solid #e8eef8;
  border-radius: 14px;
  padding: 14px 16px;
}

.om-wiz__foot-right {
  margin-left: auto;
  display: flex;
  gap: 10px;
}

.om-wiz-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.om-wiz-stat {
  border: 1px solid #e8eef8;
  border-radius: 12px;
  padding: 14px;
  background: #fafbfd;
}

.om-wiz-stat span {
  display: block;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.om-wiz-stat strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  color: #0f172a;
}

.om-member-table-wrap {
  overflow-x: auto;
  border: 1px solid #e8eef8;
  border-radius: 12px;
  margin-bottom: 16px;
}

.om-member-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.om-member-table th {
  text-align: left;
  padding: 10px 12px;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  border-bottom: 1px solid #eef2f7;
}

.om-member-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.om-alloc {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.om-alloc input {
  width: 72px;
  height: 36px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0 8px;
}

.om-member-remove {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #ef4444;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.om-perm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.om-perm-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid #e8eef8;
  border-radius: 12px;
  padding: 14px;
  background: #fafbfd;
  cursor: pointer;
}

.om-perm-card input { margin-top: 3px; }
.om-perm-card strong { display: block; color: #0f172a; margin-bottom: 2px; }
.om-perm-card span { color: #64748b; font-size: 0.84rem; }

.om-milestone-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }

.om-milestone-row {
  display: grid;
  grid-template-columns: 1fr 180px 36px;
  gap: 10px;
  align-items: center;
}

.om-check-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #334155;
}

.om-readonly-mirror {
  background: #f8fafc !important;
}

@media (max-width: 991.98px) {
  .om-wiz-layout { grid-template-columns: 1fr; }
  .om-wiz-steps { grid-template-columns: 1fr 1fr; }
  .om-wiz-grid-3 { grid-template-columns: 1fr; }
  .om-wiz-stats, .om-perm-grid { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
  .om-wiz { padding: 10px; }
  .om-wiz__shell {
    width: 100%;
    max-height: calc(100vh - 20px);
    padding: 14px 12px 12px;
    border-radius: 14px;
  }
  .om-wiz-steps { grid-template-columns: 1fr; }
  .om-wiz-grid-2 { grid-template-columns: 1fr; }
  .om-milestone-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Quotations list page
   ========================================================================== */

.om-qt-header { padding-top: 14px; padding-bottom: 4px; }

.om-qt-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.om-qt-subtitle {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 0.92rem;
}

.om-qt-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.om-qt-kpi {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.om-qt-kpi-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 1px solid #e8eef8;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(15, 42, 107, 0.04);
}

.om-qt-kpi-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.om-qt-kpi-card__icon--blue { background: #eff6ff; color: #2563eb; }
.om-qt-kpi-card__icon--orange { background: #fff7ed; color: #ea580c; }
.om-qt-kpi-card__icon--sky { background: #e0f2fe; color: #0284c7; }
.om-qt-kpi-card__icon--green { background: #ecfdf5; color: #16a34a; }

.om-qt-kpi-card__label {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.om-qt-kpi-card__value {
  font-family: 'Poppins', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.1;
}

.om-qt-kpi-card__trend {
  margin-top: 6px;
  color: #16a34a;
  font-size: 0.75rem;
  font-weight: 600;
}

.om-qt-filters {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid #e8eef8;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
  box-shadow: 0 6px 18px rgba(15, 42, 107, 0.04);
}

.om-qt-search {
  position: relative;
  flex: 1 1 260px;
  min-width: 220px;
}

.om-qt-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.om-qt-search input {
  width: 100%;
  height: 42px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0 12px 0 36px;
  font-size: 0.88rem;
  outline: none;
}

.om-qt-search input:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.om-qt-filter-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #64748b;
}

.om-qt-filter-field .om-select {
  min-width: 150px;
  height: 42px !important;
  border-radius: 10px !important;
}

.om-qt-dates {
  display: flex;
  align-items: center;
  gap: 8px;
}

.om-qt-dates input[type="date"] {
  height: 42px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0 10px;
  font-size: 0.85rem;
  color: #334155;
  background: #fff;
  outline: none;
}

.om-qt-dates span { color: #94a3b8; font-size: 0.85rem; }

.om-qt-refresh {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
}

.om-qt-refresh:hover {
  background: #f8fafc;
  color: #0f172a !important;
}

.om-qt-card {
  background: #fff;
  border: 1px solid #e8eef8;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 42, 107, 0.05);
  overflow: hidden;
  margin-bottom: 24px;
}

.om-qt-table-wrap { overflow-x: auto; }

.om-qt-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.om-qt-table thead th {
  padding: 12px 14px;
  border-bottom: 1px solid #eef2f7;
  background: #fafbfd;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  white-space: nowrap;
}

.om-qt-table tbody td {
  padding: 14px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  font-size: 0.9rem;
  color: #0f172a;
}

.om-qt-table tbody tr:hover { background: #fbfdff; }

.om-qt-sort {
  color: #64748b !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.om-qt-sort.is-active { color: #2563eb !important; }
.om-qt-sort i { font-size: 0.7rem; }

.om-qt-no {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #0f172a;
}

.om-qt-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.om-qt-status--draft { background: #ffedd5; color: #c2410c; }
.om-qt-status--sent { background: #dbeafe; color: #1d4ed8; }
.om-qt-status--accepted { background: #dcfce7; color: #15803d; }
.om-qt-status--rejected { background: #fee2e2; color: #b91c1c; }
.om-qt-status--expired { background: #f1f5f9; color: #475569; }

.om-qt-empty {
  text-align: center !important;
  padding: 56px 20px !important;
  color: #94a3b8 !important;
  font-size: 0.92rem !important;
}

.om-qt-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px 16px;
  border-top: 1px solid #eef2f7;
}

.om-qt-rows {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 0.85rem;
}

@media (max-width: 1199.98px) {
  .om-qt-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
  .om-qt-kpi { grid-template-columns: 1fr; }
  .om-qt-filters { align-items: stretch; }
  .om-qt-filter-field .om-select,
  .om-qt-dates { width: 100%; }
}

/* ===== Role & Permissions (RBAC) ===== */
.om-rbac-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.om-rbac-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
}
.om-rbac-tab:hover { border-color: #93c5fd; color: #1d4ed8; }
.om-rbac-tab.is-active {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1d4ed8;
}
.om-rbac-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.om-rbac-roles { padding: 0; overflow: hidden; }
.om-rbac-roles__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #eef2f7;
}
.om-rbac-roles__head h2 {
  margin: 0;
  font-size: 1rem;
  font-family: Poppins, sans-serif;
  color: #0f172a;
}
.om-rbac-role-list {
  list-style: none;
  margin: 0;
  padding: 8px;
  max-height: 70vh;
  overflow: auto;
}
.om-rbac-role {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #334155;
  text-decoration: none;
  margin-bottom: 4px;
}
.om-rbac-role:hover { background: #f8fafc; }
.om-rbac-role.is-active {
  background: #eff6ff;
  color: #1d4ed8;
  box-shadow: inset 0 0 0 1px #bfdbfe;
}
.om-rbac-role__name {
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.om-rbac-role__name em {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
}
.om-rbac-role__name em.is-custom { background: #ffedd5; color: #c2410c; }
.om-rbac-role__meta { font-size: 0.75rem; color: #94a3b8; }
.om-rbac-main { padding: 0; overflow: hidden; }
.om-rbac-main__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border-bottom: 1px solid #eef2f7;
}
.om-rbac-main__head h2 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-family: Poppins, sans-serif;
  color: #0f172a;
}
.om-rbac-main__head p { margin: 0; color: #64748b; font-size: 0.88rem; }
.om-rbac-main__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.om-rbac-table-wrap { overflow: auto; }
.om-rbac-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.om-rbac-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  padding: 12px 10px;
  border-bottom: 1px solid #e2e8f0;
  text-align: center;
}
.om-rbac-table tbody td {
  padding: 12px 10px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
.om-rbac-table tbody tr:hover { background: #fafbfd; }
.om-rbac-col-module { text-align: left !important; min-width: 220px; }
.om-rbac-col-module strong { display: block; color: #0f172a; font-size: 0.92rem; }
.om-rbac-col-module span { color: #94a3b8; font-size: 0.78rem; }
.om-rbac-col-perm { width: 88px; text-align: center; }
.om-rbac-col-check {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  margin: 0;
}
.om-rbac-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  margin: 0 auto;
  cursor: pointer;
}
.om-rbac-check.is-on {
  background: #dbeafe;
  border-color: #2563eb;
}
.om-rbac-check input { margin: 0; accent-color: #2563eb; }
.om-rbac-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid #eef2f7;
  background: #fafbfd;
}
.om-rbac-note, .om-rbac-hint {
  margin: 12px 18px;
  color: #64748b;
  font-size: 0.85rem;
}
.om-rbac-pill {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ffedd5;
  color: #c2410c;
  font-size: 0.7rem;
  font-weight: 700;
}
.om-rbac-default { color: #94a3b8; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; }
.om-rbac-user-pick { padding: 12px 14px; }
.om-rbac-assign { padding-bottom: 8px; }
.om-rbac-assign__grid {
  padding: 0 18px 14px;
  max-width: 420px;
}
.om-rbac-assign__grid label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: #334155;
  font-size: 0.88rem;
}
@media (max-width: 991.98px) {
  .om-rbac-layout { grid-template-columns: 1fr; }
}
