/* ==========================================================================
       DESIGN TOKENS - LIGHT FIRST, HIGH-FOCUS, EYE-COMFORT & ENTERPRISE CLEAN
       ========================================================================== */
    :root {
      /* Neutral Palette - Soft Warm Paper Base to reduce eye fatigue */
      --bg-app: #f6f8fb;
      --bg-surface: #ffffff;
      --bg-sidebar: #ffffff;
      --bg-card: #ffffff;
      --bg-muted: #f1f4f9;
      --bg-hover: #f8fafc;
      --border-subtle: #edf2f7;
      --border-main: #e2e8f0;
      --border-focus: #3b82f6;

      /* Typography - High Readability Slate Scale */
      --text-heading: #0f172a;
      --text-body: #334155;
      --text-secondary: #64748b;
      --text-muted: #94a3b8;

      /* Brand Identity - ALS Corporate Blue */
      --primary: #1d4ed8;
      --primary-hover: #1e40af;
      --primary-soft: #eff6ff;
      --primary-border: #bfdbfe;

      /* Semantic Badges & Signals - Muted Pastels for long-term eye comfort */
      --success: #059669;
      --success-soft: #ecfdf5;
      --success-border: #a7f3d0;

      --warning: #d97706;
      --warning-soft: #fffbeb;
      --warning-border: #fde68a;

      --danger: #dc2626;
      --danger-soft: #fef2f2;
      --danger-border: #fecaca;

      --info: #0284c7;
      --info-soft: #f0f9ff;
      --info-border: #bae6fd;

      /* Elevation & Shadows - Subtle Natural Diffuse */
      --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.03);
      --shadow-card: 0 1px 3px 0 rgba(15, 23, 42, 0.04), 0 1px 2px -1px rgba(15, 23, 42, 0.03);
      --shadow-dropdown: 0 10px 15px -3px rgba(15, 23, 42, 0.06), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
      --shadow-modal: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.08);

      /* Layout Specs */
      --sidebar-w: 284px;
      --sidebar-collapsed-w: 72px;
      --header-h: 60px;
      --radius-sm: 6px;
      --radius-md: 10px;
      --radius-lg: 14px;
      --radius-full: 9999px;
      --container-max-w: 1720px;

      /* Fonts - Optimized for Vietnamese Readability & Enterprise Density */
      --font-sans: 'Inter', 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      --font-mono: 'JetBrains Mono', monospace;
    }

    /* DARK THEME - Deep Slate, Low Glare */
    [data-theme="dark"] {
      --bg-app: #090d16;
      --bg-surface: #111827;
      --bg-sidebar: #0e1422;
      --bg-card: #111827;
      --bg-muted: #1e293b;
      --bg-hover: #1e293b;
      --border-subtle: #1f2937;
      --border-main: #27354a;
      --border-focus: #60a5fa;

      --text-heading: #f8fafc;
      --text-body: #cbd5e1;
      --text-secondary: #94a3b8;
      --text-muted: #64748b;

      --primary: #3b82f6;
      --primary-hover: #60a5fa;
      --primary-soft: rgba(59, 130, 246, 0.12);
      --primary-border: rgba(59, 130, 246, 0.3);

      --success-soft: rgba(5, 150, 105, 0.12);
      --warning-soft: rgba(217, 119, 6, 0.12);
      --danger-soft: rgba(220, 38, 38, 0.12);
      --info-soft: rgba(2, 132, 199, 0.12);

      --shadow-xs: none;
      --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
      --shadow-dropdown: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
      --shadow-modal: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
    }

    /* ==========================================================================
       RESET & BASE RESETS
       ========================================================================== */
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    body {
      font-family: var(--font-sans);
      background-color: var(--bg-app);
      color: var(--text-body);
      min-height: 100vh;
      font-size: 13.5px;
      line-height: 1.5;
      display: flex;
      overflow-x: hidden;
      transition: background-color 0.2s ease, color 0.2s ease;
      text-rendering: optimizeLegibility;
      font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    }

    a {
      text-decoration: none;
      color: inherit;
    }

    button {
      background: none;
      border: none;
      font-family: inherit;
      cursor: pointer;
    }

    input, select, textarea {
      font-family: inherit;
      font-size: inherit;
    }

    /* Refined Thin Scrollbars */
    ::-webkit-scrollbar {
      width: 6px;
      height: 6px;
    }
    ::-webkit-scrollbar-track {
      background: transparent;
    }
    ::-webkit-scrollbar-thumb {
      background: var(--border-main);
      border-radius: 4px;
    }
    ::-webkit-scrollbar-thumb:hover {
      background: var(--text-muted);
    }

    /* ==========================================================================
       SIDEBAR (MudDrawer) - UNIFIED LIGHT & CALM
       ========================================================================== */
    .app-sidebar {
      width: var(--sidebar-w);
      background: var(--bg-sidebar);
      border-right: 1px solid var(--border-subtle);
      height: 100vh;
      position: fixed;
      top: 0;
      left: 0;
      display: flex;
      flex-direction: column;
      z-index: 1000;
      transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), width 0.25s ease;
    }

    .brand-section {
      height: var(--header-h);
      padding: 0 18px;
      display: flex;
      align-items: center;
      gap: 12px;
      border-bottom: 1px solid var(--border-subtle);
      flex-shrink: 0;
    }

    .brand-mark {
      width: 36px;
      height: 36px;
      border-radius: 9px;
      background: linear-gradient(135deg, #0f2b5c 0%, #1e40af 100%);
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      font-size: 14.5px;
      letter-spacing: -0.3px;
      flex-shrink: 0;
      box-shadow: 0 2px 6px rgba(30, 64, 175, 0.25);
    }

    .brand-meta {
      overflow: hidden;
      white-space: nowrap;
    }

    .brand-name {
      font-size: 14.5px;
      font-weight: 800;
      color: var(--text-heading);
      letter-spacing: -0.3px;
      line-height: 1.2;
    }

    .brand-tag {
      font-size: 10.5px;
      color: var(--text-muted);
      font-weight: 500;
      letter-spacing: 0.2px;
    }

    /* Navigation Menu */
    .sidebar-nav {
      flex: 1;
      padding: 12px 10px;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 3px;
    }

    .nav-header {
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--text-muted);
      padding: 14px 10px 5px;
      white-space: nowrap;
      user-select: none;
    }
    .nav-header:first-of-type {
      padding-top: 4px;
    }

    .nav-link {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 8.5px 12px;
      border-radius: var(--radius-md);
      color: var(--text-body);
      font-weight: 500;
      font-size: 13.2px;
      cursor: pointer;
      position: relative;
      transition: all 0.15s ease;
      white-space: nowrap;
      text-decoration: none;
      border: 1px solid transparent;
      user-select: none;
    }

    .nav-link .nav-text {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      flex: 1 1 auto;
      min-width: 0;
      font-weight: inherit;
    }

    .nav-link:hover {
      background: var(--bg-hover);
      color: var(--text-heading);
    }

    .nav-link.active {
      background: var(--primary-soft);
      color: var(--primary);
      font-weight: 600;
      border-color: var(--primary-border);
    }

    .nav-link.active:hover {
      background: var(--primary-soft);
      color: var(--primary);
    }

    .nav-icon {
      font-size: 14px;
      width: 18px;
      text-align: center;
      color: var(--text-secondary);
      transition: color 0.15s ease;
      flex-shrink: 0;
    }

    .nav-link:hover .nav-icon {
      color: var(--text-heading);
    }

    .nav-link.active .nav-icon {
      color: var(--primary);
    }

    .nav-pill {
      margin-left: auto;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      height: 19px;
      min-width: 20px;
      padding: 0 6px;
      border-radius: var(--radius-full);
      background: var(--bg-muted);
      color: var(--text-secondary);
      font-size: 10.5px;
      font-weight: 700;
      line-height: 1;
      white-space: nowrap;
      flex: 0 0 auto !important;
      letter-spacing: 0.1px;
      font-variant-numeric: tabular-nums;
      border: 1px solid transparent;
    }

    .nav-pill.danger {
      background: var(--danger-soft);
      color: var(--danger);
      border-color: var(--danger-border);
    }

    /* Sidebar Footer / User Chip */
    .sidebar-footer {
      padding: 12px 14px;
      border-top: 1px solid var(--border-subtle);
      display: flex;
      align-items: center;
      gap: 10px;
      background: var(--bg-surface);
      margin-top: auto;
      flex-shrink: 0;
    }

    .user-avatar-chip {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: var(--primary-soft);
      border: 1px solid var(--primary-border);
      color: var(--primary);
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 11.5px;
      flex-shrink: 0;
      position: relative;
    }

    .user-avatar-chip::after {
      content: '';
      position: absolute;
      bottom: 0;
      right: 0;
      width: 7px;
      height: 7px;
      background: var(--success);
      border-radius: 50%;
      border: 1.5px solid var(--bg-surface);
    }

    .user-info {
      flex: 1;
      overflow: hidden;
      white-space: nowrap;
    }

    .user-name-text {
      font-size: 12.5px;
      font-weight: 600;
      color: var(--text-heading);
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .user-role-text {
      font-size: 11px;
      color: var(--text-muted);
    }

    /* Mobile Backdrop */
    .sidebar-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.4);
      backdrop-filter: blur(2px);
      z-index: 990;
      display: none;
      opacity: 0;
      transition: opacity 0.2s ease;
    }

    .sidebar-backdrop.active {
      display: block;
      opacity: 1;
    }

    /* ==========================================================================
       TOP APPBAR (MudAppBar)
       ========================================================================== */
    .app-main-wrapper {
      margin-left: var(--sidebar-w);
      flex: 1;
      display: flex;
      flex-direction: column;
      min-height: 100vh;
      min-width: 0;
      transition: margin-left 0.25s ease;
    }

    .app-header {
      height: var(--header-h);
      background: var(--bg-surface);
      border-bottom: 1px solid var(--border-subtle);
      position: sticky;
      top: 0;
      z-index: 900;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 24px;
    }

    .header-left {
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .menu-toggle-btn {
      width: 34px;
      height: 34px;
      border-radius: var(--radius-sm);
      display: none;
      align-items: center;
      justify-content: center;
      color: var(--text-secondary);
      border: 1px solid var(--border-main);
    }
    .menu-toggle-btn:hover {
      background: var(--bg-muted);
      color: var(--text-heading);
    }

    .page-context-badge {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      color: var(--text-secondary);
      font-weight: 600;
      padding: 4px 10px;
      border-radius: var(--radius-full);
      background: var(--bg-muted);
      border: 1px solid var(--border-subtle);
    }

    .page-context-badge i {
      color: var(--primary);
    }

    .global-search {
      display: flex;
      align-items: center;
      gap: 9px;
      background: var(--bg-app);
      border: 1px solid var(--border-main);
      border-radius: var(--radius-full);
      padding: 5px 14px;
      width: 280px;
      transition: all 0.2s ease;
    }

    .global-search:focus-within {
      border-color: var(--primary);
      background: var(--bg-surface);
      box-shadow: 0 0 0 3px var(--primary-soft);
      width: 340px;
    }

    .global-search input {
      border: none;
      background: transparent;
      outline: none;
      width: 100%;
      color: var(--text-heading);
      font-size: 12.5px;
    }

    .global-search input::placeholder {
      color: var(--text-muted);
    }

    .header-right {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .action-icon-btn {
      width: 34px;
      height: 34px;
      border-radius: var(--radius-md);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-secondary);
      border: 1px solid var(--border-subtle);
      background: var(--bg-surface);
      position: relative;
      transition: all 0.15s ease;
    }

    .action-icon-btn:hover {
      background: var(--bg-muted);
      color: var(--primary);
      border-color: var(--border-main);
    }

    .ping-dot {
      position: absolute;
      top: 6px;
      right: 6px;
      width: 7px;
      height: 7px;
      background: var(--danger);
      border-radius: 50%;
      border: 1.5px solid var(--bg-surface);
    }

    /* ==========================================================================
       MAIN CONTENT CONTAINER - BALANCED SPACING & EYE COMFORT
       ========================================================================== */
    .app-content-body {
      flex: 1;
      padding: 24px;
      max-width: var(--container-max-w);
      width: 100%;
      margin: 0 auto;
    }

    /* View Header */
    .view-title-bar {
      margin-bottom: 20px;
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
    }

    .view-title-main h2 {
      font-size: 20px;
      font-weight: 700;
      color: var(--text-heading);
      letter-spacing: -0.4px;
    }

    .view-title-main p {
      font-size: 12.5px;
      color: var(--text-secondary);
      margin-top: 2px;
    }

    .view-title-actions {
      display: flex;
      gap: 8px;
      align-items: center;
    }

    /* ==========================================================================
       BUTTON SYSTEM
       ========================================================================== */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      padding: 7px 14px;
      font-size: 12.5px;
      font-weight: 600;
      border-radius: var(--radius-md);
      cursor: pointer;
      transition: all 0.15s ease;
      white-space: nowrap;
    }

    .btn-primary {
      background: var(--primary);
      color: white;
      box-shadow: 0 1px 2px rgba(29, 78, 216, 0.2);
    }
    .btn-primary:hover {
      background: var(--primary-hover);
      box-shadow: 0 2px 4px rgba(29, 78, 216, 0.3);
    }

    .btn-subtle {
      background: var(--bg-surface);
      border: 1px solid var(--border-main);
      color: var(--text-body);
    }
    .btn-subtle:hover {
      background: var(--bg-muted);
      color: var(--text-heading);
      border-color: var(--text-muted);
    }

    .btn-sm {
      padding: 4px 10px;
      font-size: 11.5px;
      border-radius: var(--radius-sm);
    }

    .btn-success { background: var(--success); color: white; }
    .btn-danger { background: var(--danger); color: white; }

    /* ==========================================================================
       CARDS & METRIC WIDGETS
       ========================================================================== */
    .app-card {
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-card);
      overflow: hidden;
      margin-bottom: 20px;
    }

    .app-card-header {
      padding: 14px 20px;
      border-bottom: 1px solid var(--border-subtle);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .card-title-text {
      font-size: 14px;
      font-weight: 700;
      color: var(--text-heading);
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .card-title-text i {
      color: var(--primary);
    }

    .app-card-body {
      padding: 20px;
    }

    /* Metric Grid - Responsive */
    .metrics-summary-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
      margin-bottom: 20px;
    }

    .metric-box {
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-lg);
      padding: 18px 20px;
      box-shadow: var(--shadow-card);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      min-height: 116px;
      transition: transform 0.15s ease, box-shadow 0.15s ease;
    }

    .metric-box:hover {
      transform: translateY(-1px);
      box-shadow: var(--shadow-dropdown);
    }

    .metric-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .metric-label-text {
      font-size: 11.5px;
      font-weight: 600;
      color: var(--text-secondary);
      text-transform: uppercase;
      letter-spacing: 0.4px;
    }

    .metric-icon-disc {
      width: 32px;
      height: 32px;
      border-radius: var(--radius-md);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
    }

    .disc-blue { background: var(--primary-soft); color: var(--primary); }
    .disc-green { background: var(--success-soft); color: var(--success); }
    .disc-amber { background: var(--warning-soft); color: var(--warning); }
    .disc-red { background: var(--danger-soft); color: var(--danger); }

    .metric-stat-number {
      font-size: 24px;
      font-weight: 800;
      color: var(--text-heading);
      letter-spacing: -0.5px;
      font-family: var(--font-mono);
      margin: 4px 0 2px;
    }

    .metric-sub-note {
      font-size: 11.5px;
      color: var(--text-muted);
      display: flex;
      align-items: center;
      gap: 5px;
    }

    .sub-success { color: var(--success); font-weight: 600; }
    .sub-warning { color: var(--warning); font-weight: 600; }

    /* ==========================================================================
       DATAGRID & TABLE STYLING - FULL HD, 2K, 4K & MOBILE OPTIMIZED
       ========================================================================== */
    .table-responsive-wrapper {
      width: 100%;
      overflow-x: auto;
      border-radius: var(--radius-md);
      border: 1px solid var(--border-subtle);
      background: var(--bg-surface);
      position: relative;
    }

    /* View Mode Switcher Control */
    .view-mode-toggle {
      display: inline-flex;
      align-items: center;
      background: var(--bg-muted);
      padding: 3px;
      border-radius: var(--radius-md);
      border: 1px solid var(--border-subtle);
      gap: 2px;
    }

    .view-mode-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 5px 12px;
      font-size: 11.5px;
      font-weight: 500;
      color: var(--text-secondary);
      border-radius: var(--radius-sm);
      cursor: pointer;
      border: 1px solid transparent;
      background: transparent;
      transition: all 0.15s ease;
      user-select: none;
    }

    .view-mode-btn:hover {
      color: var(--text-heading);
    }

    .view-mode-btn.active {
      background: var(--bg-surface);
      color: var(--primary);
      font-weight: 600;
      border-color: var(--border-subtle);
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }

    .app-table {
      width: 100%;
      border-collapse: separate;
      border-spacing: 0;
      text-align: left;
      font-size: 12.5px;
    }

    .app-table th {
      background: var(--bg-muted);
      color: var(--text-secondary);
      font-weight: 700;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      padding: 11px 14px;
      border-bottom: 1px solid var(--border-main);
      white-space: nowrap;
      user-select: none;
    }

    .app-table td {
      padding: 12px 14px;
      border-bottom: 1px solid var(--border-subtle);
      color: var(--text-body);
      white-space: nowrap;
      vertical-align: middle;
      background: inherit;
    }

    .app-table tbody tr {
      background: var(--bg-surface);
      transition: background-color 0.12s ease, box-shadow 0.12s ease;
    }

    /* Enhanced, High-Clarity Row Hover Highlighting */
    .app-table tbody tr:hover {
      background-color: #f1f7ff;
    }

    .app-table tbody tr:hover td {
      background-color: #f1f7ff;
      color: var(--text-heading);
    }

    .app-table tbody tr:hover td:first-child {
      box-shadow: inset 3.5px 0 0 var(--primary);
    }

    [data-theme="dark"] .app-table tbody tr:hover,
    [data-theme="dark"] .app-table tbody tr:hover td {
      background-color: #1e293b;
    }

    .app-table tbody tr:hover .col-emp-name {
      color: var(--primary) !important;
      font-weight: 700;
    }

    /* Action Button within Table Rows */
    .btn-table-action {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 5px 12px;
      font-size: 11.5px;
      font-weight: 500;
      border-radius: var(--radius-sm);
      background: var(--bg-surface);
      border: 1px solid var(--border-main);
      color: var(--text-secondary);
      cursor: pointer;
      transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
      white-space: nowrap;
    }

    .app-table tbody tr:hover .btn-table-action {
      background: #ffffff;
      color: var(--primary);
      border-color: var(--primary-border);
      font-weight: 600;
      box-shadow: 0 1px 3px rgba(29, 78, 216, 0.12);
    }

    [data-theme="dark"] .app-table tbody tr:hover .btn-table-action {
      background: #0f172a;
      color: var(--primary);
      border-color: var(--primary-border);
    }

    .btn-table-action:hover,
    .app-table tbody tr:hover .btn-table-action:hover {
      background: var(--primary) !important;
      color: #ffffff !important;
      border-color: var(--primary) !important;
      box-shadow: 0 2px 6px rgba(29, 78, 216, 0.28) !important;
      transform: translateY(-1px);
    }

    /* Employee Avatar Circle */
    .emp-avatar-circle {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: var(--primary-soft);
      color: var(--primary);
      border: 1px solid var(--primary-border);
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 11px;
      flex-shrink: 0;
    }

    /* Legacy compatibility for col-sticky-id */
    .col-sticky-id {
      position: sticky;
      left: 0;
      background: inherit;
      z-index: 3;
      font-family: var(--font-mono);
      font-weight: 700;
      color: var(--primary);
      box-shadow: 2px 0 5px -1px rgba(15, 23, 42, 0.07);
    }

    .app-table th.col-sticky-id {
      background: var(--bg-muted);
      z-index: 4;
    }

    .app-table tbody tr:hover .col-sticky-id {
      box-shadow: inset 3.5px 0 0 var(--primary), 2px 0 5px -1px rgba(15, 23, 42, 0.09);
    }

    /* Sticky Dual-Edge Columns for Full Mode */
    .col-sticky-left {
      position: sticky;
      left: 0;
      background: var(--bg-surface);
      z-index: 3;
      box-shadow: 2px 0 5px -1px rgba(15, 23, 42, 0.07);
    }

    .app-table th.col-sticky-left {
      background: var(--bg-muted);
      z-index: 4;
    }

    .app-table tbody tr:hover .col-sticky-left {
      background-color: #f1f7ff !important;
      box-shadow: inset 3.5px 0 0 var(--primary), 2px 0 5px -1px rgba(15, 23, 42, 0.09) !important;
    }

    [data-theme="dark"] .col-sticky-left {
      background: var(--bg-card);
      box-shadow: 2px 0 5px -1px rgba(0, 0, 0, 0.35);
    }

    [data-theme="dark"] .app-table th.col-sticky-left {
      background: var(--bg-muted);
      z-index: 4;
    }

    [data-theme="dark"] .app-table tbody tr:hover .col-sticky-left {
      background-color: #1e293b !important;
      box-shadow: inset 3.5px 0 0 var(--primary), 2px 0 5px -1px rgba(0, 0, 0, 0.4) !important;
    }

    .col-sticky-right {
      position: sticky;
      right: 0;
      background: var(--bg-surface);
      z-index: 3;
      box-shadow: -2px 0 5px -1px rgba(15, 23, 42, 0.07);
      text-align: right;
    }

    .app-table th.col-sticky-right {
      background: var(--bg-muted);
      z-index: 4;
      text-align: right;
    }

    .app-table tbody tr:hover .col-sticky-right {
      background-color: #f1f7ff !important;
      box-shadow: -2px 0 5px -1px rgba(15, 23, 42, 0.09) !important;
    }

    [data-theme="dark"] .col-sticky-right {
      background: var(--bg-card);
      box-shadow: -2px 0 5px -1px rgba(0, 0, 0, 0.35);
    }

    [data-theme="dark"] .app-table th.col-sticky-right {
      background: var(--bg-muted);
      z-index: 4;
    }

    [data-theme="dark"] .app-table tbody tr:hover .col-sticky-right {
      background-color: #1e293b !important;
      box-shadow: -2px 0 5px -1px rgba(0, 0, 0, 0.4) !important;
    }

    /* Table View Modes Visibility Controls */
    .table-view-compact .col-full-only {
      display: none !important;
    }

    .table-view-compact .col-compact-only {
      display: table-cell !important;
    }

    .table-view-full .col-full-only {
      display: table-cell !important;
    }

    .table-view-full .col-compact-only {
      display: none !important;
    }

    /* ==========================================================================
       PORTAL (CBNV SERVICE) STYLING - MODERN, BALANCED & ZERO-SCROLL
       ========================================================================== */
    .portal-metric-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
      margin-bottom: 20px;
    }

    .portal-metric-card {
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-lg);
      padding: 18px 20px;
      box-shadow: var(--shadow-card);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      transition: all 0.2s ease;
    }

    .portal-metric-card:hover {
      box-shadow: var(--shadow-dropdown);
      border-color: var(--border-main);
    }

    .portal-progress-track {
      width: 100%;
      height: 7px;
      background: var(--bg-muted);
      border-radius: var(--radius-full);
      overflow: hidden;
      margin: 10px 0 6px;
    }

    .portal-progress-fill {
      height: 100%;
      background: linear-gradient(90deg, var(--primary) 0%, #3b82f6 100%);
      border-radius: var(--radius-full);
      transition: width 0.4s ease;
    }

    .portal-split-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
    }

    @media (max-width: 1200px) {
      .portal-metric-grid {
        grid-template-columns: 1fr;
      }
      .portal-split-grid {
        grid-template-columns: 1fr;
      }
    }

    /* Approval List Items */
    .approval-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 16px;
      border-bottom: 1px solid var(--border-subtle);
      transition: background 0.12s ease;
      gap: 14px;
    }

    .approval-item:last-child {
      border-bottom: none;
    }

    .approval-item:hover {
      background: #f1f7ff;
    }

    [data-theme="dark"] .approval-item:hover {
      background: #1e293b;
    }

    .approval-left {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
      flex: 1;
    }

    .approval-meta {
      min-width: 0;
      flex: 1;
    }

    .approval-name {
      font-weight: 600;
      color: var(--text-heading);
      font-size: 13px;
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }

    .approval-desc {
      font-size: 11.5px;
      color: var(--text-secondary);
      margin-top: 3px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .approval-actions {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-shrink: 0;
    }

    .btn-approve {
      background: var(--success-soft);
      color: var(--success);
      border: 1px solid var(--success-border);
      padding: 5px 12px;
      font-size: 11.5px;
      font-weight: 600;
      border-radius: var(--radius-sm);
      display: inline-flex;
      align-items: center;
      gap: 5px;
      cursor: pointer;
      transition: all 0.15s ease;
    }

    .btn-approve:hover {
      background: var(--success);
      color: white;
      box-shadow: 0 2px 5px rgba(5, 150, 105, 0.3);
    }

    .btn-reject {
      background: var(--danger-soft);
      color: var(--danger);
      border: 1px solid var(--danger-border);
      padding: 5px 10px;
      font-size: 11.5px;
      font-weight: 600;
      border-radius: var(--radius-sm);
      display: inline-flex;
      align-items: center;
      gap: 5px;
      cursor: pointer;
      transition: all 0.15s ease;
    }

    .btn-reject:hover {
      background: var(--danger);
      color: white;
      box-shadow: 0 2px 5px rgba(220, 38, 38, 0.3);
    }

    /* Status Pills / Chips (MudChip) */
    .status-pill {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 2.5px 8px;
      border-radius: var(--radius-full);
      font-size: 11px;
      font-weight: 600;
      white-space: nowrap;
    }

    .pill-green {
      background: var(--success-soft);
      color: var(--success);
      border: 1px solid var(--success-border);
    }

    .pill-amber {
      background: var(--warning-soft);
      color: var(--warning);
      border: 1px solid var(--warning-border);
    }

    .pill-red {
      background: var(--danger-soft);
      color: var(--danger);
      border: 1px solid var(--danger-border);
    }

    .pill-blue {
      background: var(--primary-soft);
      color: var(--primary);
      border: 1px solid var(--primary-border);
    }

    .pill-neutral {
      background: var(--bg-muted);
      color: var(--text-secondary);
      border: 1px solid var(--border-main);
    }

    /* Timesheet Cells */
    .ts-grid-cell {
      text-align: center;
      font-weight: 700;
      font-size: 11px;
      padding: 6px 4px !important;
      min-width: 30px;
    }
    .ts-c1 { background: #e0f2fe; color: #0284c7; }
    .ts-c2 { background: #fef3c7; color: #d97706; }
    .ts-c3 { background: #f3e8ff; color: #9333ea; font-weight: 800; }
    .ts-off { background: var(--bg-muted); color: var(--text-muted); }
    .ts-leave { background: var(--success-soft); color: var(--success); }
    .ts-ot { background: var(--danger-soft); color: var(--danger); }

    /* Table Pagination Bar (MudPagination style) */
    .table-pagination-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 12px 18px;
      border-top: 1px solid var(--border-subtle);
      font-size: 12px;
      color: var(--text-secondary);
      background: var(--bg-surface);
      border-bottom-left-radius: var(--radius-lg);
      border-bottom-right-radius: var(--radius-lg);
      flex-wrap: wrap;
      gap: 10px;
    }

    .pagination-controls {
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .page-btn {
      min-width: 28px;
      height: 28px;
      padding: 0 6px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 1px solid var(--border-main);
      background: var(--bg-surface);
      color: var(--text-heading);
      border-radius: var(--radius-sm);
      font-size: 11.5px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.15s ease;
    }

    .page-btn:hover {
      border-color: var(--primary);
      color: var(--primary);
      background: var(--primary-soft);
    }

    .page-btn.active {
      background: var(--primary);
      color: #ffffff;
      border-color: var(--primary);
    }

    /* Org Tree Styles */
    .org-tree-container {
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-lg);
      padding: 24px;
      box-shadow: var(--shadow-card);
    }

    .org-hq-card {
      background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
      border: 2px solid var(--primary);
      padding: 16px 28px;
      border-radius: var(--radius-lg);
      text-align: center;
      box-shadow: var(--shadow-card);
      max-width: 580px;
      margin: 0 auto 24px;
      position: relative;
    }

    .org-hq-card::after {
      content: '';
      position: absolute;
      bottom: -24px;
      left: 50%;
      transform: translateX(-50%);
      width: 2px;
      height: 24px;
      background: var(--primary-border);
    }

    [data-theme="dark"] .org-hq-card {
      background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
      border-color: #3b82f6;
    }

    .org-tree-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
    }

    @media (max-width: 1200px) {
      .org-tree-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 768px) {
      .org-tree-grid { grid-template-columns: 1fr; }
    }

    .org-unit-card {
      background: var(--bg-surface);
      border: 1px solid var(--border-main);
      border-radius: var(--radius-md);
      padding: 16px;
      box-shadow: var(--shadow-xs);
      transition: all 0.2s ease;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .org-unit-card:hover {
      border-color: var(--primary);
      box-shadow: var(--shadow-dropdown);
      transform: translateY(-2px);
    }

    .org-sub-team {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 6px 8px;
      background: var(--bg-muted);
      border-radius: var(--radius-sm);
      font-size: 11px;
      margin-top: 6px;
    }

    /* KPI Split & ASK Framework */
    .kpi-split-grid {
      display: grid;
      grid-template-columns: 7.5fr 4.5fr;
      gap: 20px;
    }

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

    .ask-competency-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 0;
      border-bottom: 1px solid var(--border-subtle);
      font-size: 12px;
    }

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

    /* ==========================================================================
       AI COMMAND CENTER & WHAT-IF SIMULATOR STYLES
       ========================================================================== */
    .ai-badge-live {
      background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
      color: #ffffff;
      padding: 3px 8px;
      border-radius: var(--radius-full);
      font-size: 10.5px;
      font-weight: 700;
      letter-spacing: 0.5px;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      box-shadow: 0 2px 6px rgba(124, 58, 237, 0.3);
      animation: aiPulse 2.5s infinite;
    }

    @keyframes aiPulse {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.9; transform: scale(1.02); }
    }

    .pulse-dot-ai {
      width: 7px;
      height: 7px;
      background: #4ade80;
      border-radius: 50%;
      box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.4);
      animation: pingDot 1.5s infinite;
    }

    .simulator-split-grid {
      display: grid;
      grid-template-columns: 5.2fr 6.8fr;
      gap: 14px;
      margin-bottom: 14px;
    }

    @media (max-width: 1200px) {
      .simulator-split-grid { grid-template-columns: 1fr; }
    }

    .slider-control-group {
      background: var(--bg-surface);
      border: 1px solid var(--border-main);
      border-radius: var(--radius-md);
      padding: 10px 14px;
      margin-bottom: 8px;
      transition: all 0.2s ease;
    }

    .slider-control-group:hover {
      border-color: var(--primary);
      box-shadow: var(--shadow-xs);
    }

    .slider-header-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 6px;
    }

    .slider-title {
      font-size: 12px;
      font-weight: 700;
      color: var(--text-heading);
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .slider-val-badge {
      font-family: var(--font-mono);
      font-weight: 700;
      font-size: 11.5px;
      padding: 2px 8px;
      border-radius: var(--radius-sm);
      background: var(--primary-soft);
      color: var(--primary);
      border: 1px solid var(--primary-border);
      min-width: 68px;
      text-align: center;
      display: inline-block;
      transition: all 0.15s ease;
    }

    .slider-control-group.active-drag .slider-val-badge {
      background: var(--primary);
      color: #ffffff;
      border-color: var(--primary);
      transform: scale(1.08);
      box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
    }

    .simulator-slider {
      width: 100%;
      height: 6px;
      border-radius: 3px;
      background: var(--bg-muted);
      outline: none;
      -webkit-appearance: none;
      appearance: none;
      cursor: pointer;
      transition: background 0.05s ease;
    }

    .simulator-slider::-webkit-slider-thumb {
      -webkit-appearance: none;
      appearance: none;
      width: 18px;
      height: 18px;
      border-radius: 50%;
      background: var(--primary);
      cursor: grab;
      border: 2px solid #ffffff;
      box-shadow: 0 1px 4px rgba(0,0,0,0.3);
      transition: transform 0.12s ease, box-shadow 0.12s ease;
    }

    .simulator-slider:active::-webkit-slider-thumb {
      cursor: grabbing;
      transform: scale(1.25);
      box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.25);
    }

    .simulator-slider::-webkit-slider-thumb:hover {
      transform: scale(1.18);
      box-shadow: 0 0 0 4px var(--primary-soft);
    }

    .sim-result-card {
      background: var(--bg-card);
      border: 1px solid var(--border-main);
      border-radius: var(--radius-lg);
      padding: 16px 20px;
      box-shadow: var(--shadow-card);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .sim-metric-row {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      margin-bottom: 12px;
    }

    .sim-metric-cell {
      background: var(--bg-muted);
      border-radius: var(--radius-md);
      padding: 10px;
      text-align: center;
      border: 1px solid var(--border-subtle);
      transition: transform 0.15s ease, border-color 0.15s ease;
    }

    .sim-metric-cell.highlight {
      background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
      border: 1.5px solid var(--primary);
    }

    [data-theme="dark"] .sim-metric-cell.highlight {
      background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
      border-color: #3b82f6;
    }

    .sim-metric-val {
      font-size: 20px;
      font-weight: 800;
      font-family: var(--font-mono);
      color: var(--text-heading);
      margin: 3px 0;
      display: inline-block;
      transition: transform 0.15s ease;
    }

    .sim-metric-cell.counting .sim-metric-val {
      transform: scale(1.06);
      color: var(--primary);
    }

    .sim-delta-badge {
      font-size: 10.5px;
      font-weight: 700;
      padding: 1px 5px;
      border-radius: 3px;
    }

    .ai-verdict-box {
      background: linear-gradient(135deg, #faf5ff 0%, #f0fdf4 100%);
      border: 1.5px solid #a855f7;
      border-radius: var(--radius-md);
      padding: 12px 14px;
      position: relative;
    }

    [data-theme="dark"] .ai-verdict-box {
      background: linear-gradient(135deg, #1e1b4b 0%, #064e3b 100%);
      border-color: #a855f7;
    }

    .talent-risk-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 14px;
    }

    @media (max-width: 1024px) {
      .talent-risk-grid { grid-template-columns: 1fr; }
    }

    .risk-person-card {
      display: flex;
      gap: 10px;
      padding: 8px 10px;
      border-radius: var(--radius-md);
      background: var(--bg-surface);
      border: 1px solid var(--border-main);
      margin-bottom: 6px;
      align-items: center;
      justify-content: space-between;
    }

    .risk-person-card:hover {
      border-color: var(--warning);
      box-shadow: var(--shadow-xs);
    }

    .risk-meter {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      font-size: 11px;
      font-family: var(--font-mono);
      flex-shrink: 0;
    }

    .risk-high {
      background: var(--danger-soft);
      color: var(--danger);
      border: 2px solid var(--danger);
    }

    .risk-med {
      background: var(--warning-soft);
      color: var(--warning);
      border: 2px solid var(--warning);
    }

    /* ==========================================================================
       MODALS & DIALOGS (Solid Opaque Background, High Contrast, Enterprise Design)
       ========================================================================== */
    .modal-backdrop-layer {
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.7);
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
      z-index: 99999;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }

    .app-modal-dialog,
    .modal-box-card {
      background: var(--bg-surface) !important;
      background-color: #ffffff !important;
      border: 1px solid var(--border-main);
      border-radius: var(--radius-lg);
      width: 100%;
      max-width: 780px;
      max-height: 90vh;
      display: flex;
      flex-direction: column;
      box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(15, 23, 42, 0.08);
      animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
      overflow: hidden;
      position: relative;
    }

    [data-theme="dark"] .app-modal-dialog,
    [data-theme="dark"] .modal-box-card {
      background: #111827 !important;
      background-color: #111827 !important;
      border-color: #27354a;
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    }

    @keyframes modalPop {
      from { opacity: 0; transform: scale(0.96) translateY(12px); }
      to { opacity: 1; transform: scale(1) translateY(0); }
    }

    .modal-header-strip,
    .modal-header-bar {
      padding: 16px 24px;
      border-bottom: 1px solid var(--border-main);
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: var(--bg-surface) !important;
      background-color: #ffffff !important;
      flex-shrink: 0;
    }

    [data-theme="dark"] .modal-header-strip,
    [data-theme="dark"] .modal-header-bar {
      background: #111827 !important;
      background-color: #111827 !important;
      border-color: #27354a;
    }

    .modal-title-bold,
    .modal-header-title {
      font-size: 16px;
      font-weight: 700;
      color: var(--text-heading);
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .modal-close-x,
    .modal-close-icon {
      color: var(--text-muted);
      cursor: pointer;
      font-size: 22px;
      line-height: 1;
      padding: 4px 8px;
      border-radius: var(--radius-sm);
      background: transparent;
      border: none;
      outline: none;
      transition: all 0.15s ease;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .modal-close-x:hover,
    .modal-close-icon:hover {
      color: var(--danger);
      background: var(--danger-soft);
    }

    .modal-body-scroll,
    .modal-content-area {
      padding: 24px;
      overflow-y: auto;
      flex: 1;
      background: var(--bg-surface) !important;
      background-color: #ffffff !important;
    }

    [data-theme="dark"] .modal-body-scroll,
    [data-theme="dark"] .modal-content-area {
      background: #111827 !important;
      background-color: #111827 !important;
    }

    .modal-footer-strip,
    .modal-footer-bar {
      padding: 14px 24px;
      border-top: 1px solid var(--border-main);
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 12px;
      background: var(--bg-muted) !important;
      background-color: #f8fafc !important;
      flex-shrink: 0;
    }

    [data-theme="dark"] .modal-footer-strip,
    [data-theme="dark"] .modal-footer-bar {
      background: #0e1422 !important;
      background-color: #0e1422 !important;
      border-color: #27354a;
    }

    /* Tabs inside Modal */
    .nav-tabs-bar {
      display: flex;
      gap: 16px;
      border-bottom: 1px solid var(--border-subtle);
      margin-bottom: 18px;
    }

    .nav-tab-item {
      padding: 8px 4px;
      font-size: 12.5px;
      font-weight: 600;
      color: var(--text-secondary);
      border-bottom: 2px solid transparent;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 6px;
    }

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

    .nav-tab-item.active {
      color: var(--primary);
      border-bottom-color: var(--primary);
    }

    /* Clean Input Forms */
    .form-two-col {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 14px;
    }

    .field-group {
      display: flex;
      flex-direction: column;
      gap: 5px;
    }
    .field-group.span-all {
      grid-column: span 2;
    }

    .field-label {
      font-size: 11.5px;
      font-weight: 600;
      color: var(--text-secondary);
    }

    .field-input {
      padding: 8px 12px;
      border: 1px solid var(--border-main);
      border-radius: var(--radius-md);
      background: var(--bg-surface);
      color: var(--text-heading);
      font-size: 12.5px;
      outline: none;
      transition: all 0.15s ease;
    }

    .field-input:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px var(--primary-soft);
    }

    /* Views Switching */
    .screen-panel {
      display: none;
    }
    .screen-panel.active {
      display: block;
      animation: fadeIn 0.2s ease-out;
    }
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(3px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* ==========================================================================
       RESPONSIVE BREAKPOINTS (Mobile, iPad, Full HD, 2K, 4K)
       ========================================================================== */
    /* 4K & Ultra-wide (> 2560px) */
    @media (min-width: 2560px) {
      body { font-size: 15px; }
      :root { --sidebar-w: 280px; --header-h: 70px; --container-max-w: 2200px; }
      .metric-stat-number { font-size: 28px; }
      .app-main-wrapper {
        margin-left: var(--sidebar-w);
        width: calc(100% - var(--sidebar-w));
      }
    }

    /* 2K Screens (1920px - 2559px) */
    @media (min-width: 1920px) and (max-width: 2559px) {
      .app-content-body { padding: 28px 36px; }
      .app-main-wrapper {
        margin-left: var(--sidebar-w);
        width: calc(100% - var(--sidebar-w));
      }
    }

    /* Standard Laptops (1200px - 1440px) */
    @media (max-width: 1440px) {
      .metrics-summary-grid { grid-template-columns: repeat(2, 1fr); }
    }

    /* Tablets / iPad (768px - 1024px) */
    @media (max-width: 1024px) {
      :root { --sidebar-w: 260px; }
      .app-sidebar {
        transform: translateX(-100%);
        box-shadow: var(--shadow-modal);
      }
      .app-sidebar.open {
        transform: translateX(0);
      }
      .app-main-wrapper {
        margin-left: 0 !important;
        width: 100% !important;
      }
      .menu-toggle-btn {
        display: flex;
      }
      .global-search {
        width: 200px;
      }
      .global-search:focus-within {
        width: 240px;
      }
      .dashboard-split-layout {
        grid-template-columns: 1fr !important;
      }
    }

    /* Mobile Phones (< 768px) */
    @media (max-width: 768px) {
      .app-header { padding: 0 14px; }
      .app-content-body { padding: 14px; }
      .global-search { display: none; }
      .page-context-badge { display: none; }
      .metrics-summary-grid { grid-template-columns: 1fr; }
      .form-two-col { grid-template-columns: 1fr; }
      .field-group.span-all { grid-column: span 1; }
      .view-title-bar { flex-direction: column; align-items: flex-start; }
      .modal-box-card { max-width: 100%; border-radius: var(--radius-md); }
    }

    /* ==========================================================================
       ENTERPRISE PROTOTYPE EXTENSIONS (Header Controls, Toasts, Workflows)
       ========================================================================== */
    .header-control-group {
      display: flex;
      align-items: center;
      gap: 6px;
      background: var(--bg-muted);
      padding: 4px 10px;
      border-radius: var(--radius-full);
      border: 1px solid var(--border-subtle);
      font-size: 12px;
    }

    .header-select-pill {
      background: transparent;
      border: none;
      font-size: 12px;
      font-weight: 600;
      color: var(--text-heading);
      cursor: pointer;
      outline: none;
      padding: 2px 4px;
    }
    .header-select-pill:focus {
      color: var(--primary);
    }

    @keyframes toastSlideIn {
      from { opacity: 0; transform: translateX(40px); }
      to { opacity: 1; transform: translateX(0); }
    }

    .workflow-steps-indicator {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 16px;
      background: var(--bg-muted);
      padding: 10px 16px;
      border-radius: var(--radius-md);
      overflow-x: auto;
    }
    .wf-step {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 11.5px;
      font-weight: 600;
      color: var(--text-muted);
      white-space: nowrap;
    }
    .wf-step.active {
      color: var(--primary);
    }
    .wf-step.done {
      color: var(--success);
    }
    .wf-step-num {
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: var(--border-main);
      color: var(--text-secondary);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 10px;
    }
    .wf-step.active .wf-step-num {
      background: var(--primary);
      color: #fff;
    }
    .wf-step.done .wf-step-num {
      background: var(--success);
      color: #fff;
    }
    .wf-step-arrow {
      color: var(--border-main);
      font-size: 10px;
    }

    .als-pii-mask {
      font-family: var(--font-mono);
      letter-spacing: 0.5px;
    }

    .screen-catalog-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
      gap: 14px;
    }
    .screen-card-box {
      background: var(--bg-surface);
      border: 1px solid var(--border-main);
      border-radius: var(--radius-md);
      padding: 14px;
      box-shadow: var(--shadow-xs);
      transition: all 0.2s ease;
      cursor: pointer;
    }
    .screen-card-box:hover {
      border-color: var(--primary);
      transform: translateY(-2px);
      box-shadow: var(--shadow-card);
    }