/* MATERIAL SYMBOLS & GLOBAL ICON STYLING */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined' !important;
  font-weight: normal !important;
  font-style: normal !important;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga' !important;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24 !important;
  vertical-align: middle;
}

/* Icon inside Button or Nav */
.btn .material-symbols-outlined, 
.nav-icon {
  font-size: 18px !important;
  width: 22px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin-right: 4px;
  color: inherit;
  vertical-align: middle;
}

.btn-sm .material-symbols-outlined {
  font-size: 16px !important;
}

.nav-item .nav-icon {
  color: var(--color-text-tertiary);
  transition: color .2s;
}

.nav-item:hover .nav-icon {
  color: var(--color-primary);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

/* ── MODERN SCROLLBAR ── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.2);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.4);
}

/* Sidebar specific: Thin and hide until hover for ultra-modern look */
.sidebar::-webkit-scrollbar {
  width: 4px;
}
.sidebar::-webkit-scrollbar-thumb {
  background: transparent;
}
.sidebar:hover::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.25);
}

    /* ── SLATE BLUE (Light) ── */
    :root,
    [data-theme="slate"] {
      --color-background-primary: #ffffff;
      --color-background-secondary: #f0f4f9;
      --color-background-tertiary: #f8fafc;
      --color-background-info: #e0f2fe;
      --color-background-success: #dcfce7;
      --color-background-warning: #fef9c3;
      --color-background-danger: #fee2e2;
      --color-text-primary: #0f172a;
      --color-text-secondary: #475569;
      --color-text-tertiary: #94a3b8;
      --color-text-info: #0369a1;
      --color-text-success: #15803d;
      --color-text-warning: #a16207;
      --color-text-danger: #b91c1c;
      --color-border-tertiary: rgba(148, 163, 184, 0.1);
      --color-border-secondary: rgba(148, 163, 184, 0.2);
      --color-background-card: #ffffff;
      --color-border: rgba(148, 163, 184, 0.15);
      --accent: #2563eb;
      --accent-hover: #1d4ed8;
      --sidebar-bg: #f8fafc;
      --sidebar-active-bg: #eff6ff;
      --sidebar-active-color: #2563eb;
      --border-radius-md: 10px;
      --border-radius-lg: 14px;
      --border-radius-xl: 20px;
      --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
      --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
      --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    }

    /* ── DARK NAVY ── */
    [data-theme="dark"] {
      --color-background-primary: #1c2333;
      --color-background-secondary: #243044;
      --color-background-tertiary: #16202e;
      --color-background-info: #1e3460;
      --color-background-success: #1a3828;
      --color-background-warning: #3a2810;
      --color-background-danger: #3a1a1a;
      --color-text-primary: #e8edf8;
      --color-text-secondary: #8a9abb;
      --color-text-tertiary: #5a6a88;
      --color-text-info: #80b0e0;
      --color-text-success: #70c090;
      --color-text-warning: #e8a050;
      --color-text-danger: #f08080;
      --color-border-tertiary: rgba(140, 170, 220, 0.12);
      --color-border-secondary: rgba(140, 170, 220, 0.22);
      --color-border-primary: rgba(140, 170, 220, 0.38);
      --color-background-card: #243044;
      --color-border: rgba(140, 170, 220, 0.25);
      --accent: #3a6eb5;
      --accent-hover: #4a80c8;
      --sidebar-bg: #16202e;
      --sidebar-active-bg: #1e3460;
      --sidebar-active-color: #80b0e0;
    }

    ::selection {
      background-color: var(--accent);
      color: white;
    }

    body {
      font-family: var(--font-sans);
      font-size: 14px;
      color: var(--color-text-primary);
      background: var(--color-background-tertiary);
      transition: background .25s, color .25s
    }

    .shell {
      display: flex;
      height: 100vh;
      min-height: 600px
    }

    .sidebar {
      width: 220px;
      flex-shrink: 0;
      background: var(--sidebar-bg);
      border-right: 0.5px solid var(--color-border-tertiary);
      display: flex;
      flex-direction: column;
      padding: 16px 0;
      overflow-y: auto;
      transition: background .25s
    }

    .logo {
      padding: 0 16px 16px;
      border-bottom: 0.5px solid var(--color-border-tertiary);
      margin-bottom: 8px
    }

    .logo-title {
      font-size: 16px;
      font-weight: 600;
      color: var(--color-text-primary);
      letter-spacing: -.02em
    }

    .logo-sub {
      font-size: 11px;
      color: var(--color-text-secondary);
      margin-top: 2px
    }

    .sidebar-close-btn {
      display: none;
      background: var(--color-background-secondary);
      border: 1px solid var(--color-border-tertiary);
      border-radius: 10px;
      width: 32px;
      height: 32px;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      color: var(--color-text-primary);
      transition: all 0.2s ease;
    }

    .sidebar-close-btn:hover {
      background: var(--color-background-tertiary);
      color: var(--color-text-danger);
    }

    .sidebar-close-btn span {
      font-size: 20px !important;
    }

    .nav-group {
      padding: 8px 8px 0
    }

    .nav-label {
      font-size: 10px;
      font-weight: 500;
      color: var(--color-text-tertiary);
      padding: 4px 8px 6px;
      letter-spacing: .06em;
      text-transform: uppercase
    }

    .nav-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 8px 10px;
      border-radius: var(--border-radius-md);
      cursor: pointer;
      font-size: 13px;
      color: var(--color-text-secondary);
      margin-bottom: 2px;
      transition: background .15s, color .15s
    }

    /* USER DROPDOWN */
    .user-dropdown { position: relative; display: inline-block; }
    .dropdown-content {
        display: none;
        position: absolute;
        right: 0;
        min-width: 200px;
        background-color: var(--color-background-card);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.18);
        border-radius: 12px;
        padding: 8px 0;
        z-index: 1000;
        border: 1px solid var(--color-border);
        margin-top: 8px;
        animation: dropdownFadeIn 0.2s ease;
    }

    @keyframes dropdownFadeIn {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .dropdown-content a {
        color: var(--color-text-primary);
        padding: 10px 16px;
        text-decoration: none;
        display: block;
        font-size: 13px;
        transition: background 0.2s;
    }
    .dropdown-content a:hover { background-color: var(--color-background-hover); }
    .dropdown-content.show { display: block; }

    .nav-item:hover {
      background: var(--color-background-secondary);
      color: var(--color-text-primary)
    }

    .nav-item.active {
      background: var(--sidebar-active-bg);
      color: var(--sidebar-active-color);
      font-weight: 500
    }

    .theme-switcher {
      display: flex;
      align-items: center;
      gap: 4px;
      background: var(--color-background-secondary);
      border: 0.5px solid var(--color-border-secondary);
      border-radius: 99px;
      padding: 3px;
      transition: background .25s
    }

    .theme-btn {
      padding: 4px 11px;
      border-radius: 99px;
      border: none;
      background: transparent;
      cursor: pointer;
      font-size: 11px;
      font-family: var(--font-sans);
      color: var(--color-text-secondary);
      transition: background .2s, color .2s;
      white-space: nowrap
    }

    .theme-btn.active {
      background: var(--accent);
      color: #fff;
      font-weight: 500
    }

    .nav-icon {
      width: 16px;
      height: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      flex-shrink: 0
    }

    .main {
      flex: 1;
      overflow-y: auto;
      display: flex;
      flex-direction: column
    }

    .topbar {
      background: var(--color-background-primary);
      border-bottom: 0.5px solid var(--color-border-tertiary);
      padding: 12px 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-shrink: 0;
      position: sticky;
      top: 0;
      z-index: 2000;
      transition: background .25s, border-color .25s
    }

    .page-title {
      font-size: 16px;
      font-weight: 500
    }

    .topbar-right {
      display: flex;
      align-items: center;
      gap: 12px
    }

    .badge-notif {
      background: var(--color-background-danger);
      color: var(--color-text-danger);
      font-size: 11px;
      padding: 3px 10px;
      border-radius: 99px;
      font-weight: 500
    }

    .content {
      padding: 20px 24px;
      flex: 1
    }

    .page {
      display: none
    }

    .page.active {
      display: block
    }

    .kpi-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 16px;
      margin-bottom: 24px;
      align-items: stretch;
    }

    .kpi {
      background: var(--color-background-primary);
      border: 1px solid var(--color-border);
      border-radius: 20px;
      padding: 24px;
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .kpi::after {
      content: "";
      position: absolute;
      top: 0;
      right: 0;
      width: 60px;
      height: 60px;
      background: radial-gradient(circle at 100% 0%, var(--accent), transparent 70%);
      opacity: 0;
      transition: opacity 0.4s ease;
    }

    .kpi:hover {
      box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
      transform: translateY(-5px);
      border-color: var(--accent);
    }

    .kpi:hover::after {
      opacity: 0.1;
    }

    .kpi-label {
      font-size: 13px;
      font-weight: 600;
      color: var(--color-text-secondary);
      margin-bottom: 8px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .kpi-value {
      font-size: 30px;
      font-weight: 800;
      letter-spacing: -1px;
      margin-top: 4px;
      color: var(--color-text-primary);
      line-height: 1.1;
    }

    .kpi-change {
      font-size: 12px;
      margin-top: 8px;
      font-weight: 500;
      color: var(--color-text-tertiary);
    }

    .up {
      color: var(--color-text-success)
    }

    .down {
      color: var(--color-text-danger)
    }

    .section-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      margin-bottom: 20px
    }

    .card {
      background: var(--color-background-card);
      border: 1px solid var(--color-border);
      border-radius: var(--border-radius-lg);
      padding: 24px;
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      height: auto !important;
    }

    [data-theme="dark"] .card {
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
      background: linear-gradient(145deg, #243044, #1c2636);
    }

    .card:hover {
      box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
      transform: translateY(-4px);
      border-color: var(--accent);
    }

    [data-theme="dark"] .card:hover {
      box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    }

    .card-title {
      font-size: 14px;
      font-weight: 700;
      color: var(--color-text-primary);
      margin-bottom: 20px;
      display: flex;
      align-items: center;
      gap: 10px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .card-title .material-symbols-outlined {
      font-size: 20px;
    }

    .card-full {
      grid-column: 1/-1
    }

    table {
      width: 100%;
      border-collapse: collapse;
      font-size: 13px
    }

    thead, .table thead {
      background: var(--color-background-tertiary) !important;
    }

    th {
      text-align: left;
      padding: 14px 12px;
      font-size: 11px;
      font-weight: 700;
      color: var(--color-text-secondary);
      border-bottom: 1px solid var(--color-border-tertiary);
      text-transform: uppercase;
      letter-spacing: .1em;
      position: sticky;
      top: 0;
      z-index: 10;
      background: var(--color-background-tertiary);
    }

    td {
      padding: 12px 10px;
      border-bottom: 1px solid var(--color-border-tertiary);
      color: var(--color-text-primary);
      vertical-align: middle;
    }

    tr:last-child td {
      border-bottom: none
    }

    tr:hover td {
      background: var(--color-background-secondary)
    }

    .pill {
      display: inline-flex;
      align-items: center;
      padding: 4px 12px;
      border-radius: 99px;
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      line-height: 1;
    }

    .pill-success {
      background: rgba(16, 185, 129, 0.1);
      color: #10b981;
      border: 1px solid rgba(16, 185, 129, 0.2);
    }

    .pill-warning {
      background: rgba(245, 158, 11, 0.1);
      color: #f59e0b;
      border: 1px solid rgba(245, 158, 11, 0.2);
    }

    .pill-danger {
      background: rgba(239, 68, 68, 0.1);
      color: #ef4444;
      border: 1px solid rgba(239, 68, 68, 0.2);
    }

    .pill-info {
      background: rgba(59, 130, 246, 0.1);
      color: #3b82f6;
      border: 1px solid rgba(59, 130, 246, 0.2);
    }

    .pill-gray {
      background: rgba(100, 116, 139, 0.1);
      color: #64748b;
      border: 1px solid rgba(100, 116, 139, 0.2);
    }

    /* Solid version for even higher contrast on dark backgrounds */
    [data-theme="dark"] .pill-success { background: rgba(16, 185, 129, 0.2); color: #34d399; }
    [data-theme="dark"] .pill-warning { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
    [data-theme="dark"] .pill-danger  { background: rgba(239, 68, 68, 0.2); color: #f87171; }
    [data-theme="dark"] .pill-info    { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }

    .badge {
      display: inline-flex;
      align-items: center;
      padding: 4px 8px;
      border-radius: 6px;
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      background: var(--color-background-secondary);
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      height: 44px; /* Default MD */
      padding: 0 18px;
      border-radius: 12px;
      border: 1px solid var(--color-border-secondary);
      background: transparent;
      cursor: pointer;
      font-size: 14px;
      font-weight: 600;
      color: var(--color-text-primary);
      font-family: var(--font-sans) !important;
      transition: all .2s ease;
      white-space: nowrap;
      user-select: none;
    }

    .btn:hover {
      background: var(--color-background-secondary);
      border-color: var(--accent);
      color: var(--accent);
    }

    .btn:active {
      transform: scale(0.98);
    }

    .btn-primary {
      background: var(--accent);
      color: #fff;
      border-color: transparent;
    }

    .btn-primary:hover {
      background: var(--accent-hover);
      color: #fff;
      box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
    }

    .btn-outline {
      border: 1px solid var(--accent);
      color: var(--accent);
    }

    .btn-outline:hover {
      background: var(--accent);
      color: #fff;
    }

    .btn-white {
      background: var(--color-background-primary);
      color: var(--accent);
      border: 1px solid var(--color-border);
    }
    
    .btn-white:hover {
      background: var(--color-background-secondary);
      border-color: var(--accent);
      box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }

    [data-theme="dark"] .btn-white:hover {
      box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    }

    .btn-lg {
      height: 48px;
      padding: 0 24px;
      font-size: 15px;
    }

    .btn-success {
      background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
      color: #fff;
      border: none;
      box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    }

    .btn-success:hover {
      background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
      color: #fff;
      box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
      transform: translateY(-1px);
    }

    .btn-sm {
      height: 32px;
      padding: 0 12px;
      font-size: 12px;
      border-radius: 10px;
    }



    .btn-circle-close {
      background: rgba(255, 255, 255, 0.2);
      border: none;
      color: white;
      width: 32px;
      height: 32px;
      padding: 0;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.2s;
    }

    .btn-circle-close:hover {
      background: rgba(255, 255, 255, 0.3);
      transform: scale(1.1);
    }

    .bar-wrap {
      margin-bottom: 4px
    }

    .bar-row {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 8px
    }

    .bar-label {
      font-size: 12px;
      color: var(--color-text-secondary);
      width: 90px;
      flex-shrink: 0
    }

    .bar-track {
      flex: 1;
      height: 8px;
      background: var(--color-background-secondary);
      border-radius: 99px;
      overflow: hidden
    }

    .bar-fill {
      height: 100%;
      border-radius: 99px
    }

    .bar-val {
      font-size: 12px;
      font-weight: 500;
      width: 60px;
      text-align: right;
      flex-shrink: 0
    }

    .stat-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 12px 0;
      border-bottom: 1px solid var(--color-border-tertiary);
      transition: background 0.2s ease;
    }

    .stat-row:last-child {
      border-bottom: none;
    }

    .stat-label {
      color: var(--color-text-secondary);
      font-size: 13px;
      font-weight: 500;
    }

    .stat-val {
      font-weight: 700;
      font-family: var(--font-mono);
      font-size: 14px;
      color: var(--color-text-primary);
    }

    .stat-val.up { color: #10b981; }
    .stat-val.down { color: #ef4444; }

    .alert-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 9px 0;
      border-bottom: 0.5px solid var(--color-border-tertiary)
    }

    .alert-item:last-child {
      border: none
    }

    .alert-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      flex-shrink: 0
    }

    .alert-text {
      font-size: 13px;
      color: var(--color-text-primary)
    }

    .alert-time {
      font-size: 11px;
      color: var(--color-text-tertiary);
      margin-left: auto;
      white-space: nowrap
    }

    .form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      margin-bottom: 12px
    }

    .form-full {
      grid-column: 1/-1
    }

    .field label {
      display: block;
      font-size: 12px;
      color: var(--color-text-secondary);
      margin-bottom: 4px
    }

    .field input,
    .field select {
      width: 100%;
      height: 44px;
      padding: 0 15px;
      border: 1px solid var(--color-border-secondary);
      border-radius: var(--border-radius-md);
      background: var(--color-background-primary);
      color: var(--color-text-primary);
      font-size: 14px;
      font-family: var(--font-sans);
      outline: none;
      transition: all 0.2s;
    }
    .field input:focus,
    .field select:focus {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    }

    /* ── MODERN CONFIRM MODAL ── */
    #modal-confirm .modal-box {
        animation: slideDownIn 0.25s ease-out;
        box-shadow: 0 30px 100px rgba(0,0,0,0.5);
    }

    #modal-confirm .modal-body {
        transition: opacity 0.2s;
    }

    #confirm-icon span {
        animation: pulseSymbol 1.5s infinite ease-in-out;
    }

    @keyframes pulseSymbol {
        0% { transform: scale(1); opacity: 0.9; }
        50% { transform: scale(1.1); opacity: 1; }
        100% { transform: scale(1); opacity: 0.9; }
    }

    @keyframes slideDownIn {
        from { opacity: 0; transform: translateY(-40px) scale(0.95); }
        to { opacity: 1; transform: translateY(0) scale(1); }
    }

    .field select:focus,
    .form-control:focus {
      border-color: var(--accent);
      box-shadow: 0 0 0 2px rgba(61, 109, 181, 0.1);
    }

    /* ── PERMISSION GRID (V2) ── */
    .perm-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        max-height: 480px;
        overflow-y: auto;
        padding-right: 8px;
    }

    .perm-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 14px;
        background: var(--color-background-tertiary);
        border: 1px solid var(--color-border-tertiary);
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .perm-item:hover {
        background: var(--color-background-secondary);
        border-color: var(--accent);
        transform: translateY(-1px);
    }

    .perm-item input[type="checkbox"] {
        width: 18px;
        height: 18px;
        cursor: pointer;
        accent-color: var(--accent);
    }

    .perm-info {
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    .perm-label {
        font-size: 13px;
        font-weight: 500;
        color: var(--color-text-primary);
    }

    .perm-id {
        font-size: 11px;
        color: var(--color-text-tertiary);
    }


    .route-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 10px 0;
      border-bottom: 0.5px solid var(--color-border-tertiary)
    }

    .route-item:last-child {
      border: none
    }

    .route-num {
      width: 26px;
      height: 26px;
      border-radius: 50%;
      background: var(--color-background-info);
      color: var(--color-text-info);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      font-weight: 600;
      flex-shrink: 0
    }

    .route-info {
      flex: 1
    }

    .route-name {
      font-size: 13px;
      font-weight: 500;
      color: var(--color-text-primary)
    }

    .route-detail {
      font-size: 11px;
      color: var(--color-text-secondary);
      margin-top: 2px
    }

    .acc-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 9px 0;
      border-bottom: 0.5px solid var(--color-border-tertiary)
    }

    .acc-row:last-child {
      border: none
    }

    .acc-name {
      font-size: 13px;
      color: var(--color-text-primary)
    }

    .acc-code {
      font-size: 11px;
      color: var(--color-text-secondary)
    }

    .acc-debit {
      font-size: 13px;
      color: var(--color-text-success);
      font-weight: 500
    }

    .acc-credit {
      font-size: 13px;
      color: var(--color-text-danger);
      font-weight: 500
    }

    .divider-label {
      font-size: 12px;
      font-weight: 500;
      color: var(--color-text-secondary);
      margin: 12px 0 8px;
      padding-top: 4px
    }


    /* ── SIDEBAR BADGES ── */
    .nav-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 18px;
      height: 18px;
      padding: 0 5px;
      border-radius: 99px;
      font-size: 10px;
      font-weight: 600;
      line-height: 1;
      margin-left: auto;
      flex-shrink: 0
    }

    .nav-badge.danger {
      background: #E24B4A;
      color: #fff
    }

    .nav-badge.warning {
      background: #EF9F27;
      color: #fff
    }

    .nav-badge.info {
      background: #3D6DB5;
      color: #fff
    }

    .nav-item {
      display: flex;
      align-items: center;
      gap: 10px
    }

    .form-group { margin-bottom: 20px; }
    .form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--color-text-secondary); margin-bottom: 8px; }
    .form-control { width: 100%; padding: 10px 14px; border: 1px solid var(--color-border-secondary); border-radius: 8px; background: var(--color-background-primary); color: var(--color-text-primary); font-size: 14px; font-family: var(--font-sans); outline: none; transition: border-color .15s, box-shadow .15s; }
    .form-control::placeholder { color: var(--color-text-tertiary); }


    /* ── TOAST NOTIFIKASI ── */
    #toast-container {
      position: fixed;
      bottom: 24px;
      right: 24px;
      z-index: 9999;
      display: flex;
      flex-direction: column;
      gap: 8px;
      pointer-events: none
    }

    .toast {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 14px 20px;
      border-radius: 16px;
      font-size: 14px;
      font-weight: 600;
      box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
      pointer-events: all;
      animation: toastIn .4s cubic-bezier(0.16, 1, 0.3, 1);
      max-width: 400px;
      min-width: 280px;
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .toast.success {
      background: rgba(29, 158, 117, 0.9);
      color: #fff;
      border-left: 4px solid #10b981;
    }

    .toast.error, .toast.danger {
      background: rgba(226, 75, 74, 0.9);
      color: #fff;
      border-left: 4px solid #f87171;
      animation: toastIn .4s cubic-bezier(0.16, 1, 0.3, 1), shake .4s cubic-bezier(.36,.07,.19,.97) both;
    }

    .toast.warning {
      background: rgba(239, 159, 39, 0.9);
      color: #fff;
      border-left: 4px solid #fbbf24;
    }

    .toast.info {
      background: rgba(61, 109, 181, 0.9);
      color: #fff;
      border-left: 4px solid #60a5fa;
    }

    .toast-icon {
      font-size: 16px;
      flex-shrink: 0
    }

    .toast-icon-symbol {
      font-size: 22px;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .toast-close {
      margin-left: auto;
      cursor: pointer;
      opacity: .8;
      background: none;
      border: none;
      color: inherit;
      padding: 4px;
      border-radius: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: background 0.2s, opacity 0.2s;
    }

    .toast-close:hover {
      opacity: 1;
      background: rgba(255, 255, 255, 0.2);
    }

    @keyframes shake {
      10%, 90% { transform: translate3d(-1px, 0, 0); }
      20%, 80% { transform: translate3d(2px, 0, 0); }
      30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
      40%, 60% { transform: translate3d(4px, 0, 0); }
    }

    @keyframes toastIn {
      from {
        opacity: 0;
        transform: translateY(12px)
      }

      to {
        opacity: 1;
        transform: translateY(0)
      }
    }

    @keyframes toastOut {
      from {
        opacity: 1;
        transform: translateY(0)
      }

      to {
        opacity: 0;
        transform: translateY(12px)
      }
    }

    .toast.out {
      animation: toastOut .2s ease forwards
    }


    /* ── MODAL DETAIL INVOICE ── */
    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, .45);
      z-index: 500;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 16px;
      animation: fadeIn .2s ease
    }

    .modal-overlay.closing {
      animation: fadeOut .18s ease forwards
    }

    .modal-box {
      background: var(--color-background-primary);
      border-radius: var(--border-radius-xl);
      width: 100%;
      max-width: 900px;
      max-height: 92vh;
      overflow: hidden;
      box-shadow: 0 12px 60px rgba(0, 0, 0, .25);
      animation: slideUp .22s ease;
      display: flex;
      flex-direction: column;
      border: 1px solid var(--color-border);
    }



    .modal-box.closing {
      animation: slideDown .18s ease forwards
    }

    .modal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 18px 24px;
      border-bottom: 0.5px solid var(--color-border-secondary);
      position: sticky;
      top: 0;
      background: var(--color-background-primary);
      z-index: 1;
      border-radius: var(--border-radius-xl) var(--border-radius-xl) 0 0
    }

    .modal-title {
      font-size: 15px;
      font-weight: 600;
      color: var(--color-text-primary)
    }

    .modal-close {
      background: none;
      border: none;
      font-size: 20px;
      cursor: pointer;
      color: var(--color-text-secondary);
      padding: 4px 8px;
      border-radius: var(--border-radius-md);
      line-height: 1
    }

    .modal-close:hover {
      background: var(--color-background-secondary)
    }

    .modal-body {
      padding: 20px 24px;
      flex: 1
    }

    .modal-footer {
      padding: 14px 24px;
      border-top: 0.5px solid var(--color-border-secondary);
      display: flex;
      justify-content: flex-end;
      gap: 8px;
      position: sticky;
      bottom: 0;
      background: var(--color-background-primary);
      border-radius: 0 0 var(--border-radius-xl) var(--border-radius-xl)
    }

    @keyframes fadeIn {
      from {
        opacity: 0
      }

      to {
        opacity: 1
      }
    }

    @keyframes fadeOut {
      from {
        opacity: 1
      }

      to {
        opacity: 0
      }
    }

    @keyframes slideUp {
      from {
        opacity: 0;
        transform: translateY(24px)
      }

      to {
        opacity: 1;
        transform: translateY(0)
      }
    }

    @keyframes slideDown {
      from {
        opacity: 1;
        transform: translateY(0)
      }

      to {
        opacity: 0;
        transform: translateY(24px)
      }
    }

    /* Invoice detail content */
    .inv-d-header {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 16px;
      align-items: flex-start;
      margin-bottom: 20px;
      padding-bottom: 16px;
      border-bottom: 2px solid var(--color-text-primary)
    }

    .inv-d-brand {
      font-size: 18px;
      font-weight: 700;
      color: var(--color-text-primary)
    }

    .inv-d-sub {
      font-size: 11px;
      color: var(--color-text-secondary);
      margin-top: 2px
    }

    .inv-d-num {
      text-align: right
    }

    .inv-d-num .nomor {
      font-size: 16px;
      font-weight: 700;
      color: var(--accent)
    }

    .inv-d-num .tgl {
      font-size: 11px;
      color: var(--color-text-secondary);
      margin-top: 3px
    }

    .inv-d-meta {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
      gap: 10px;
      margin-bottom: 18px
    }

    .inv-d-box {
      background: var(--color-background-secondary);
      border-radius: var(--border-radius-md);
      padding: 10px 14px
    }

    .inv-d-box-label {
      font-size: 10px;
      font-weight: 600;
      color: var(--color-text-tertiary);
      text-transform: uppercase;
      letter-spacing: .05em;
      margin-bottom: 4px
    }

    .inv-d-box-val {
      font-size: 13px;
      font-weight: 500;
      color: var(--color-text-primary)
    }

    .inv-d-table thead tr {
      background: var(--color-background-secondary)
    }

    .inv-d-table th {
      color: var(--color-text-secondary);
      padding: 10px;
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .05em;
      border-bottom: 1px solid var(--color-border-secondary)
    }

    .inv-d-table td {
      padding: 8px 10px;
      border-bottom: 0.5px solid var(--color-border-secondary)
    }

    .inv-d-table tbody tr:last-child td {
      border-bottom: none
    }

    .inv-d-table tbody tr:nth-child(even) td {
      background: var(--color-background-secondary)
    }

    .inv-d-summary {
      margin-left: auto;
      width: 260px;
      margin-top: 12px;
      margin-bottom: 16px
    }

    .inv-d-sum-row {
      display: flex;
      justify-content: space-between;
      padding: 5px 0;
      font-size: 13px;
      border-bottom: 0.5px solid var(--color-border-secondary)
    }

    .inv-d-sum-row:last-child {
      border: none
    }

    .inv-d-sum-total {
      font-weight: 700;
      font-size: 15px;
      border-top: 2px solid var(--color-text-primary) !important;
      padding-top: 10px;
      margin-top: 4px;
      color: var(--color-text-primary)
    }

    .inv-d-pay {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
      gap: 10px;
      margin-bottom: 16px
    }

    .inv-d-pay-box {
      border-radius: var(--border-radius-md);
      padding: 12px 14px;
      text-align: center
    }

    .inv-d-pay-label {
      font-size: 10px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: .05em;
      margin-bottom: 5px
    }

    .inv-d-pay-val {
      font-size: 17px;
      font-weight: 700
    }

    @media(max-width:768px) {
      .modal-box {
        max-height: 100vh;
        border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-width: 100%
      }

      .modal-overlay {
        align-items: flex-end;
        padding: 0
      }
    }

    /* ── DATE RANGE PICKER (DRP) SYSTEM ── */
    .drp-wrap {
      position: relative;
      display: inline-block;
      width: 200px; /* Default width */
    }

    .drp-btn {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      height: 44px; /* Standardized height */
      padding: 0 15px;
      border: 1px solid var(--color-border-secondary);
      border-radius: 12px;
      background: var(--color-background-primary);
      color: var(--color-text-primary);
      font-size: 13px;
      font-weight: 600;
      font-family: var(--font-sans);
      cursor: pointer;
      white-space: nowrap;
      width: 100%;
      transition: all 0.2s ease;
    }

    .drp-btn:hover {
      border-color: var(--accent);
      background: var(--color-background-secondary);
    }

    .drp-btn .drp-icon-wrap {
      display: flex;
      align-items: center;
      gap: 8px;
      pointer-events: none;
    }

    .drp-btn .drp-icon {
      font-size: 18px;
      color: var(--accent);
      flex-shrink: 0;
      display: flex;
      align-items: center;
    }

    .drp-btn .drp-label {
      flex: 1;
      text-align: left;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .drp-btn .drp-arrow {
      font-size: 18px;
      color: var(--color-text-tertiary);
      opacity: 0.7;
      transition: transform 0.2s;
    }

    .drp-wrap.open .drp-arrow {
      transform: rotate(180deg);
    }

    .drp-dropdown {
      position: absolute !important;
      top: calc(100% + 6px) !important;
      right: 0 !important;
      left: auto !important;
      z-index: 2000 !important; /* Extremely high z-index to stay on top */
      background: var(--color-background-primary) !important;
      border: 1px solid var(--color-border-secondary) !important;
      border-radius: 16px !important;
      box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3) !important;
      min-width: 320px !important;
      max-width: 90vw !important;
      padding: 12px !important;
      display: none;
      animation: drpFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes drpFadeIn {
      from { opacity: 0; transform: translateY(-10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .drp-dropdown.open {
      display: block;
    }

    .drp-label-sm {
      font-size: 10px;
      font-weight: 700;
      color: var(--color-text-tertiary);
      text-transform: uppercase;
      letter-spacing: 1px;
      padding: 8px 12px 4px;
      opacity: 0.8;
    }

    .drp-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 6px;
      padding: 4px;
    }

    .drp-item {
      padding: 9px 12px;
      font-size: 13px;
      cursor: pointer;
      color: var(--color-text-primary);
      transition: all 0.15s ease;
      border-radius: 10px;
      display: flex;
      align-items: center;
      gap: 10px;
      font-weight: 500;
    }

    .drp-item:hover {
      background: var(--color-background-secondary);
      color: var(--accent);
    }

    .drp-item.drp-active {
      background: var(--accent) !important;
      color: #fff !important;
      font-weight: 600;
      box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
    }

    .drp-divider {
      height: 1px;
      background: var(--color-border-tertiary);
      margin: 8px 4px;
    }

    .drp-custom-wrap {
      padding: 10px 12px;
      border-top: 1px solid var(--color-border-tertiary);
      display: none;
      background: var(--color-background-tertiary);
      border-radius: 0 0 12px 12px;
      margin: 8px -12px -12px -12px;
    }

    .drp-custom-wrap.open {
      display: block;
    }

    .drp-custom-row {
      display: flex;
      align-items: flex-end;
      gap: 10px;
      margin-top: 4px;
    }

    .drp-custom-row > div {
      flex: 1;
    }

    .drp-custom-row label {
      font-size: 10px;
      font-weight: 600;
      color: var(--color-text-tertiary);
      display: block;
      margin-bottom: 4px;
      text-transform: uppercase;
    }

    .drp-custom-row input[type="date"] {
      width: 100%;
      height: 36px;
      padding: 0 10px;
      border: 1px solid var(--color-border-secondary);
      border-radius: 8px;
      font-size: 12px;
      background: var(--color-background-primary);
      color: var(--color-text-primary);
      font-family: var(--font-sans);
      outline: none;
    }

    .drp-custom-row input[type="date"]:focus {
      border-color: var(--accent);
    }

    /* ── PENGATURAN TABS ── */


    .lp-tab-btn {
      transition: all .15s
    }

    .lp-tab-btn {
      border-radius: 99px;
      padding: 8px 18px;
      border: 1px solid var(--color-border);
      font-weight: 500;
      transition: all 0.2s ease;
    }
    
    .active-lp-tab {
      background: var(--accent) !important;
      color: #fff !important;
      border-color: var(--accent) !important;
      box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    }

    .chart-wrap {
      position: relative;
      width: 100%
    }

    .chart-wrap canvas {
      max-width: 100%
    }

    .chart-sm {
      height: 180px
    }

    .chart-md {
      height: 240px
    }

    .chart-lg {
      height: 300px
    }

    .chart-donut {
      height: 180px
    }

    .chart-row,
    .chart-row-3 {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
      gap: 20px;
      margin-bottom: 24px;
      align-items: stretch;
    }

    @media (max-width: 900px) {
      .chart-row, .chart-row-3 {
        grid-template-columns: 1fr !important;
      }
    }

    @media(max-width:900px) {

      .chart-row,
      .chart-row-3 {
        grid-template-columns: 1fr
      }
    }

    /* ════════════════════════════════════════════════════
   RESPONSIVE SYSTEM — Mobile & Tablet
   ════════════════════════════════════════════════════ */

    /* ── CSS variables for responsive layout ── */
    :root {
      --sidebar-w: 220px;
      --content-pad: 20px 24px;
      --card-pad: 16px;
      --kpi-cols: 4;
      --tbl-font: 13px;
    }

    /* ── Tablet (≤ 1024px) ── */
    @media(max-width:1024px) {
      :root {
        --kpi-cols: 2;
      }

      .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important
      }

      .section-grid {
        grid-template-columns: 1fr !important
      }

      .chart-row,
      .chart-row-3 {
        grid-template-columns: 1fr !important
      }
    }

    /* ── Mobile (≤ 768px) ── */
    @media(max-width:768px) {
      :root {
        --sidebar-w: 0px;
        --content-pad: 12px 14px;
        --card-pad: 12px;
        --kpi-cols: 2;
        --tbl-font: 12px;
      }

      /* Shell — sidebar collapsible */
      .shell {
        position: relative
      }

      .sidebar {
        position: fixed;
        left: -240px;
        top: 0;
        bottom: 0;
        z-index: 5000;
        width: 240px !important;
        box-shadow: 4px 0 20px rgba(0, 0, 0, .18);
        transition: left .25s ease;
      }

      .sidebar.open {
        left: 0
      }

      .sidebar-close-btn {
        display: flex;
      }

      .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .35);
        z-index: 4999;
      }

      .sidebar.open~.sidebar-overlay {
        display: block
      }

      /* Main & content */
      .main {
        width: 100vw
      }

      .content {
        padding: var(--content-pad) !important
      }

      /* Topbar */
      .topbar {
        padding: 10px 14px !important;
        gap: 8px
      }

      .topbar-title {
        font-size: 14px
      }

      #topbar-page-title {
        font-size: 13px;
        max-width: 160px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap
      }

      /* KPI grid — 2 cols on mobile */
      .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important
      }

      .kpi {
        padding: 10px 12px !important
      }

      .kpi-value {
        font-size: 16px !important
      }

      .kpi-label {
        font-size: 10px !important
      }

      /* Section grids — inline & class-based */
      .section-grid,
      [style*="grid-template-columns:1fr 1fr"],
      [style*="grid-template-columns:1fr 1fr;"],
      [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important
      }

      /* Chart grids → single column */
      .chart-row,
      .chart-row-3 {
        grid-template-columns: 1fr !important;
        gap: 10px !important
      }

      /* Cards */
      .card {
        padding: var(--card-pad) !important;
        border-radius: var(--border-radius-md) !important
      }

      .card-full {
        border-radius: var(--border-radius-md) !important;
        padding: var(--card-pad) !important
      }

      /* Tables — horizontal scroll */
      .card table,
      .card-full table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: var(--tbl-font)
      }

      th,
      td {
        padding: 7px 8px !important;
        white-space: nowrap
      }

      /* Filter rows — wrap & shrink */
      [style*="background:var(--color-background-secondary)"][style*="border-radius:var(--border-radius-md)"] {
        flex-wrap: wrap !important;
        gap: 6px !important;
        padding: 8px 10px !important
      }

      [style*="background:var(--color-background-secondary)"] input,
      [style*="background:var(--color-background-secondary)"] select {
        width: 100% !important;
        min-width: 0 !important;
        flex: 1 1 140px !important
      }

      /* Toolbar action buttons */
      .page>[style*="justify-content:flex-end"] {
        flex-wrap: wrap !important
      }

      /* Pill filter buttons */
      .filt-btn {
        padding: 5px 10px !important;
        font-size: 12px !important
      }

      .lp-tab-btn,
      .set-tab-btn {
        padding: 5px 12px !important;
        font-size: 12px !important
      }

      /* DRP button */
      .drp-btn {
        min-width: 0 !important;
        padding: 6px 10px !important
      }

      .drp-label {
        display: none
      }

      .drp-dropdown {
        min-width: 180px
      }

      /* Form grids → single column */
      [style*="grid-template-columns:1fr 1fr 1fr"],
      [style*="grid-template-columns:1fr 1fr"],
      [style*="grid-template-columns:repeat(3"],
      [style*="grid-template-columns:repeat(2"] {
        grid-template-columns: 1fr !important
      }

      /* Pengaturan panels */
      .set-panel .card,
      [id^="set-panel"] .card {
        max-width: 100% !important
      }

      /* Invoice baru — ukuran grid */
      #ukuran-grid {
        grid-template-columns: repeat(4, 1fr) !important
      }

      /* Pagination */
      .pg-wrap {
        flex-wrap: wrap !important;
        gap: 4px !important
      }

      .pg-btn {
        padding: 4px 8px !important;
        font-size: 12px !important
      }

      /* Cetak & aksi buttons */
      button.btn.btn-sm[onclick*="cetak"] {
        padding: 5px 10px !important;
        font-size: 12px !important
      }

      /* Hide sidebar topbar hamburger placeholder — show hamburger */
      .mob-menu-btn {
        display: flex !important
      }
    }

    /* ── Small mobile (≤ 480px) ── */
    @media(max-width:480px) {
      :root {
        --content-pad: 10px 10px
      }

      .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important
      }

      .kpi-value {
        font-size: 15px !important
      }

      th,
      td {
        padding: 6px 6px !important;
        font-size: 11.5px !important
      }

      .card,
      .card-full {
        padding: 10px !important
      }

      #ukuran-grid {
        grid-template-columns: repeat(3, 1fr) !important
      }
    }

    .mob-menu-btn {
      display: none
    }

    @media(max-width:768px) {
      .mob-menu-btn {
        display: flex !important
      }

      .topbar-right .theme-switcher {
        display: none
      }

      .topbar-right .badge-notif {
        display: none
      }

      #save-status-label {
        display: none
      }
    }

    /* ── END RESPONSIVE ── */
    @media(max-width:480px) {
      :root {
        --content-pad: 10px 10px
      }

      .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important
      }

      .kpi-value {
        font-size: 15px !important
      }

      th,
      td {
        padding: 6px 6px !important;
        font-size: 11.5px !important
      }

      .card,
      .card-full {
        padding: 10px !important
      }

      #ukuran-grid {
        grid-template-columns: repeat(3, 1fr) !important
      }
    }

    /* ── SEARCHABLE DROPDOWN ── */
    .sd-wrap {
      position: relative;
      width: 100%
    }

    .sd-input {
      width: 100%;
      padding: 6px 10px;
      border: 0.5px solid var(--color-border-secondary);
      border-radius: var(--border-radius-md);
      font-size: 13px;
      background: var(--color-background-primary);
      color: var(--color-text-primary);
      font-family: var(--font-sans);
      cursor: pointer;
      box-sizing: border-box;
      text-align: left
    }

    .sd-input:focus {
      outline: none;
      border-color: var(--accent)
    }

    .sd-dropdown {
      display: none;
      position: absolute;
      top: calc(100% + 4px);
      left: 0;
      right: 0;
      background: var(--color-background-primary);
      border: 0.5px solid var(--color-border-secondary);
      border-radius: var(--border-radius-md);
      box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
      z-index: 500;
      flex-direction: column
    }

    .sd-dropdown {
      display: none;
      flex-direction: column;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: var(--color-background-primary);
      border: 1px solid var(--color-border-secondary);
      border-radius: 12px;
      box-shadow: 0 10px 30px rgba(0,0,0,0.15);
      z-index: 2000 !important;
      margin-top: 6px;
      overflow: hidden;
      animation: dropdownFadeIn 0.2s ease-out;
    }

    @keyframes dropdownFadeIn {
      from { opacity: 0; transform: translateY(-5px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .sd-dropdown.open {
      display: flex;
    }

    .sd-search {
      position: relative;
      padding: 8px 10px;
      border-bottom: 0.5px solid var(--color-border-tertiary);
      flex-shrink: 0;
    }

    .sd-search input {
      width: 100%;
      padding: 5px 8px;
      border: 0.5px solid var(--color-border-secondary);
      border-radius: var(--border-radius-md);
      font-size: 12px;
      background: var(--color-background-primary);
      color: var(--color-text-primary);
      font-family: var(--font-sans);
      box-sizing: border-box
    }

    .form-control {
      background: var(--color-background-primary);
      border: 1px solid var(--color-border);
      color: var(--color-text-primary);
      padding: 8px 12px;
      border-radius: 10px;
      width: 100%;
      font-family: inherit;
      font-size: 14px;
      transition: all 0.2s;
    }

    .form-control:focus {
      outline: none;
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    }

    .sd-list {
      overflow-y: auto;
      max-height: 250px;
    }

    .sd-item {
      padding: 8px 12px;
      font-size: 13px;
      cursor: pointer;
      color: var(--color-text-primary);
      border-bottom: 0.5px solid var(--color-border-tertiary)
    }

    .sd-item:last-child {
      border-bottom: none
    }

    .sd-item:hover,
    .sd-item.highlighted {
      background: var(--color-background-info);
      color: var(--accent)
    }

    .sd-item.sd-placeholder {
      color: var(--color-text-tertiary);
      cursor: default
    }

    .sd-item.sd-placeholder:hover {
      background: none;
      color: var(--color-text-tertiary)
    }

    .sd-item-sub {
      font-size: 11px;
      color: var(--color-text-secondary);
      margin-top: 1px
    }

    .sd-wrap-inline {
      position: relative;
      width: 100%
    }

    .sd-wrap-inline .sd-input {
      border: none;
      background: transparent;
      padding: 3px 6px;
      font-size: 13px;
      border-radius: 4px;
      width: 100%
    }

    .sd-wrap-inline .sd-input:focus,
    .sd-wrap-inline .sd-input.has-value {
      background: var(--color-background-secondary);
      border: 0.5px solid var(--color-border-secondary)
    }

    .sd-wrap-inline .sd-dropdown {
      min-width: 240px;
      width: auto
    }

    /* ── KAMPAS SEARCH DROPDOWN ALIAS ── */
    .search-dropdown { position: relative; width: 100%; }
    .sd-menu { 
      display: none; 
      position: absolute; 
      top: 100%; 
      left: 0; 
      right: 0; 
      background: var(--color-background-primary); 
      border: 0.5px solid var(--color-border-secondary);
      border-radius: var(--border-radius-md); 
      box-shadow: 0 8px 24px rgba(0,0,0,0.12); 
      z-index: 1000;
      max-height: 250px; 
      overflow-y: auto;
      margin-top: 4px;
    }
    .sd-menu.open { display: block; }
    .sd-item {
      padding: 10px 14px;
      font-size: 13px;
      cursor: pointer;
      color: var(--color-text-primary);
      transition: background 0.1s;
    }
    .sd-item:hover { 
      background: var(--color-background-secondary); 
      color: var(--accent); 
    }
    .sd-input {
      width: 100%;
      padding: 8px 12px;
      border: 0.5px solid var(--color-border-secondary);
      border-radius: var(--border-radius-md);
      font-size: 13px;
      background: var(--color-background-primary);
      color: var(--color-text-primary);
      font-family: var(--font-sans);
    }
    .sd-input:focus {
      outline: none;
      border-color: var(--accent);
    }

/* ======================================================
   LOGIN SCREEN SPECIAL STYLING (Vanilla CSS)
   ====================================================== */
#login-container {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: auto !important;
  display: flex;
  flex-direction: column;
}

#login-screen-root {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--color-background-primary);
  font-family: var(--font-sans);
  color: var(--color-text-primary);
  overflow: hidden;
  pointer-events: auto !important;
  opacity: 0;
  animation: fadeInLogin 0.4s ease-out forwards;
}

@keyframes fadeInLogin {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

#login-screen-root header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1.25rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid var(--color-border-tertiary);
}

[data-theme="dark"] #login-screen-root header {
  background: rgba(28, 35, 51, 0.75);
}

#login-screen-root main {
  flex-grow: 1;
  display: flex;
  padding-top: 72px;
}

/* Left Section: Branding */
.login-left {
  display: none;
  position: relative;
  overflow: hidden;
  background: var(--accent);
  align-items: center;
  justify-content: center;
  padding: 4rem;
}

@media (min-width: 1024px) {
  .login-left { display: flex; width: 50%; }
}

.login-left-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.login-left-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  mix-blend-mode: overlay;
}

.login-left-content {
  position: relative;
  z-index: 10;
  max-width: 500px;
}

.login-badge {
  display: inline-block;
  padding: 6px 16px;
  margin-bottom: 2rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

/* Right Section: Form */
.login-right {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--color-background-tertiary);
}

@media (min-width: 1024px) {
  .login-right { width: 50%; padding: 4rem; }
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: var(--color-background-primary);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--color-border-tertiary);
}

.login-field {
  margin-bottom: 1.75rem;
}

.login-field label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--color-text-tertiary);
  margin-bottom: 0.6rem;
}

.login-input-group {
  position: relative;
  width: 100%;
  max-width: 100%;
  background: var(--color-background-tertiary);
  border-radius: 14px;
  border: 1.5px solid transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
}

.login-input-group:focus-within {
  background: var(--color-background-primary);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(61, 109, 181, 0.12);
}

.login-input-group span.material-symbols-outlined {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-tertiary);
  transition: color 0.25s;
  pointer-events: none;
  font-size: 20px !important;
}

.login-input-group:focus-within span.material-symbols-outlined {
  color: var(--accent);
}

.login-input {
  width: 100%;
  padding: 1.1rem 3.4rem 1.1rem 3.4rem;
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--color-text-primary);
  font-size: 14px;
  outline: none;
}

.login-input:focus {
  outline: none;
}

.login-btn-primary {
  width: 100%;
  padding: 1.1rem;
  background: linear-gradient(135deg, var(--accent), #5086d1);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  font-family: var(--font-sans);
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(61, 109, 181, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.login-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(61, 109, 181, 0.35);
  filter: brightness(1.05);
}

.login-btn-primary:active {
  transform: translateY(-1px);
}

.login-footer-auth {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border-tertiary);
  text-align: center;
}

.login-auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 8px 16px;
  background: rgba(186, 26, 26, 0.05);
  border-radius: 10px;
}

#login-error {
  background: rgba(186, 26, 26, 0.08);
  color: var(--color-text-danger);
  padding: 1rem;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(186, 26, 26, 0.15);
  margin-bottom: 2rem;
  text-align: center;
}

#login-screen-root footer.global-footer {
  width: 100%;
  padding: 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  background: var(--color-background-primary);
  border-top: 1px solid var(--color-border-tertiary);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-tertiary);
}

@media (min-width: 768px) {
  #login-screen-root footer.global-footer { flex-direction: row; }
}

#login-screen-root footer.global-footer a {
  color: var(--color-text-tertiary);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 600;
}

#login-screen-root footer.global-footer a:hover {
  color: var(--accent);
}

/* ── GLOBAL FILTER & SEARCH (SVS STANDARD) ── */
.audit-search-box {
    position: relative;
    flex-grow: 1;
    max-width: 450px;
    display: flex;
    align-items: center;
}
.audit-search-box .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #94A3B8;
    pointer-events: none;
    z-index: 2;
}
.audit-search-box input {
    width: 100%;
    height: 44px;
    padding: 0 14px 0 44px;
    border: 1px solid var(--color-border-secondary);
    border-radius: 12px;
    font-size: 14px;
    background: var(--color-background-secondary);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--color-text-primary);
    font-family: var(--font-sans);
}
.audit-search-box input:focus {
    border-color: var(--accent);
    background: var(--color-background-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    outline: none;
}

.audit-filter-group {
    position: relative;
    display: flex;
    align-items: center;
}
.audit-filter-group .filter-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #94A3B8;
    z-index: 2;
    pointer-events: none;
}
.audit-filter-group select {
    width: 100%;
    height: 44px;
    min-width: 190px;
    padding: 0 35px 0 38px;
    border: 1px solid var(--color-border-secondary);
    border-radius: 12px;
    font-size: 14px;
    background: var(--color-background-secondary);
    cursor: pointer;
    appearance: none;
    transition: all 0.2s;
    color: var(--color-text-primary);
    font-family: var(--font-sans);
}
.audit-filter-group select:focus {
    border-color: var(--accent);
    background: var(--color-background-primary) !important;
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.audit-filter-group::after {
    content: 'expand_more';
    font-family: 'Material Symbols Outlined';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #94A3B8;
    pointer-events: none;
    z-index: 2;
}

/* ── GLOBAL AUDIT TABLE & BADGES ── */
.audit-table th {
    background: var(--color-background-tertiary);
    height: 52px;
    vertical-align: middle;
    font-weight: 600;
    color: var(--color-text-secondary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 2px solid var(--color-border-tertiary);
}
.audit-table td {
    padding: 14px 12px;
    vertical-align: middle;
    border-bottom: 1px solid var(--color-border-tertiary);
    font-size: 13px;
    color: var(--color-text-primary);
}
.table-responsive {
    overflow: auto;
}
.tbody-audit tr { transition: all 0.2s ease; border-left: 4px solid transparent; }
.tbody-audit tr:hover { background: var(--color-background-secondary) !important; border-left: 4px solid var(--accent); }

.audit-badge { 
    display: inline-flex;
    padding: 5px 10px; border-radius: 8px; font-size: 11px; font-weight: 700; 
    text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-mod-transfer { background: rgba(37, 99, 235, 0.1); color: #2563eb; }
.badge-mod-debug { background: rgba(239, 68, 68, 0.1); color: #dc2626; }
.badge-mod-user { background: rgba(5, 150, 105, 0.1); color: #059669; }
.badge-mod-control { background: rgba(147, 51, 234, 0.1); color: #9333ea; }
.badge-mod-default { background: rgba(100, 116, 139, 0.1); color: #64748b; }
/* Premium Alignment & Compactness Utilities */
.grid-proportional {
    align-items: flex-start !important;
}

.card-compact {
    padding: 20px 24px !important;
}

.card-compact .card-title {
    padding-bottom: 12px;
    margin-bottom: 15px;
}

/* Max-Height Utility Classes with Scroll & Stretching */
.mh-300 { max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; height: 100% !important; }
.mh-350 { max-height: 350px; overflow-y: auto; display: flex; flex-direction: column; height: 100% !important; }
.mh-400 { max-height: 400px; overflow-y: auto; display: flex; flex-direction: column; height: 100% !important; }
.mh-450 { max-height: 450px; overflow-y: auto; display: flex; flex-direction: column; height: 100% !important; }
.mh-500 { max-height: 500px; overflow-y: auto; display: flex; flex-direction: column; height: 100% !important; }
.mh-600 { max-height: 600px; overflow-y: auto; display: flex; flex-direction: column; height: 100% !important; }

/* Dashboard Specific Fixed Height Overrides (Merged into Utilities above) */

/* Modern Navigation Tabs Styling */
.set-tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 12px;
    background: var(--color-background-secondary);
    border: 1px solid var(--color-border-secondary);
    color: var(--color-text-primary) !important;
    white-space: nowrap;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.set-tab-btn:hover {
    background: var(--color-background-tertiary);
    color: var(--accent);
    border-color: var(--accent);
    opacity: 1;
    transform: translateY(-1px);
}

.set-tab-btn.active-set-tab, 
.set-tab-btn.active-lp-tab, 
.set-tab-btn.active-akn-tab, 
.set-tab-btn.active {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
    opacity: 1 !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.set-tab-btn span {
    color: inherit !important;
}

.set-tab-btn.active-set-tab span,
.set-tab-btn.active-lp-tab span,
.set-tab-btn.active-akn-tab span,
.set-tab-btn.active span {
    color: white !important;
}

/* ── NAV DROPDOWN SYSTEM (Laporan Ops Optimization) ── */
.nav-group-wrap {
    display: flex;
    gap: 10px;
    align-items: center;
    overflow-x: auto;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.nav-group-wrap::-webkit-scrollbar {
    display: none;
}

.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 220px;
    background: var(--color-background-primary);
    border: 1px solid var(--color-border-secondary);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    z-index: 1000;
    padding: 8px;
    animation: navDropFade 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes navDropFade {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-dropdown-content.show {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--color-text-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
}

.nav-dropdown-item:hover {
    background: var(--color-background-secondary);
    color: var(--accent);
    transform: translateX(4px);
}

.nav-dropdown-item.active-lp-tab {
    background: var(--accent);
    color: white !important;
}

.nav-dropdown-item.active-lp-tab span {
    color: white !important;
}

.nav-dropdown-item span {
    font-size: 18px;
}

.dropdown-trigger::after {
    content: 'expand_more';
    font-family: 'Material Symbols Outlined';
    font-size: 18px;
    margin-left: 4px;
    transition: transform 0.2s;
}

.nav-dropdown-content.show ~ .dropdown-trigger::after {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .nav-dropdown-content {
        position: fixed;
        left: 15px;
        right: 15px;
        top: auto;
        bottom: 20px;
        min-width: 0;
        width: calc(100% - 30px);
        box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
    }
}

/* ── RADIO TOGGLE SEGMENTED CONTROL ── */
.radio-toggle-item {
    color: var(--color-text-secondary);
    background: transparent;
}

input[type="radio"]:checked + .radio-toggle-item {
    background: var(--color-background-card);
    color: var(--accent);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

[data-theme="dark"] input[type="radio"]:checked + .radio-toggle-item {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* ── PAYMENT METHOD SELECTOR (ACTIVE STATES) ── */
.metode-btn-pb, .metode-btn {
    border: 1px solid var(--color-border-secondary);
    background: var(--color-background-primary);
    color: var(--color-text-secondary);
    transition: all 0.3s ease;
}

.metode-btn-pb.active-metode, .metode-btn.active-metode {
    border: 2px solid var(--accent) !important;
    background: var(--color-background-primary) !important;
    color: var(--accent) !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.15);
}

.metode-btn-pb.active-metode span, .metode-btn.active-metode span {
    color: var(--accent) !important;
}

.metode-btn-pb.active-metode div, .metode-btn.active-metode div {
    color: var(--accent) !important;
}

/* ======================================================

/* ======================================================
   RESPONSIVE OPTIMIZATION PATCH v6.0.9 (Final Mobile Fix)
   ====================================================== */
@media (max-width: 768px) {
  /* 1. TOPBAR COMPACTNESS */
  .topbar {
    padding: 10px 15px !important;
    height: auto !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }
  .topbar-right {
    width: 100% !important;
    justify-content: space-between !important;
    gap: 5px !important;
    padding-top: 5px !important;
    border-top: 1px solid var(--color-border-tertiary);
  }
  .theme-switcher { display: none !important; }
  #save-status-label { display: none !important; }
  .page-title { font-size: 16px !important; }

  /* 2. DASHBOARD KPI GRID */
  .kpi-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .kpi {
    padding: 15px !important;
  }

  /* 3. STACK ON MOBILE GRID SYSTEM */
  .stack-on-mobile {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    width: 100% !important;
  }
  .stack-on-mobile > * {
    width: 100% !important;
    max-width: none !important;
  }

  .full-on-mobile {
    width: 100% !important;
    flex: 1 !important;
    justify-content: center !important;
  }

  /* 4. QUICK ACTIONS BUTTONS */
  .quick-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .quick-actions .btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px !important;
  }

  /* 5. FINANCIAL SUMMARY ROW FIX (Avoid Overlap) */
  .stat-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    padding: 10px 0 !important;
    height: auto !important;
  }
  .stat-val {
    font-size: 15px !important;
    font-weight: 700 !important;
    text-align: left !important;
  }

  /* 6. TABLES & CARDS */
  .card, .card-compact {
    width: 100% !important;
    margin-bottom: 15px !important;
    overflow: visible !important;
    padding: 15px !important;
    max-height: none !important;
  }
  .table-responsive, .table-wrap {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    display: block !important;
  }
  table {
    width: 100% !important;
    border-collapse: collapse !important;
  }
  th, td {
    white-space: nowrap !important;
  }
  
  /* 7. MODALS */
  .modal-box { 
    width: 96% !important; 
    padding: 15px !important; 
    margin: 5vh auto !important;
  }
}
/* -- UTILITY: MOBILE DISPLAY -- */
.show-mobile { display: none !important; }
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .show-mobile { display: block !important; }
  .show-mobile.flex { display: flex !important; }
}

/* ── PAGE HEADER SYSTEM ── */
.page-header {
    background: linear-gradient(135deg, var(--color-background-tertiary) 0%, var(--color-background-secondary) 100%);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    color: var(--color-text-primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: relative;
    border: 1px solid var(--color-border-tertiary);
    z-index: 1001;
}

.page-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1100;
}

.page-header-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.page-header-icon {
    width: 52px;
    height: 52px;
    background: var(--accent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
    flex-shrink: 0;
}

.page-header-icon .material-symbols-outlined {
    font-size: 28px !important;
    margin: 0 !important;
}

.page-header-title {
    display: flex;
    flex-direction: column;
}

.page-header-title h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--color-text-primary);
    line-height: 1.2;
}

.page-header-title p {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: var(--color-text-secondary);
    opacity: 0.8;
    font-weight: 500;
}

.page-header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.page-header-bg-blob {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: var(--accent);
    filter: blur(80px);
    opacity: 0.12;
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 768px) {
    .page-header {
        padding: 20px;
    }
    .page-header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .page-header-actions {
        width: 100%;
        margin-top: 15px;
    }
    .page-header-actions .btn {
        flex: 1;
    }
}
