﻿    :root {
      --bg-main: #0b0f19;
      --bg-card: #111827;
      --bg-card-alt: #161f30;
      --border-color: rgba(255, 255, 255, 0.08);
      --accent-cyan: #06b6d4;
      --accent-blue: #3b82f6;
      --accent-green: #10b981;
      --accent-amber: #f59e0b;
      --accent-rose: #f43f5e;
      --accent-purple: #8b5cf6;
    }

    body {
      background-color: var(--bg-main);
      color: #f8fafc;
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      margin: 0;
      padding: 0;
      min-height: 100vh;
    }

    .page-container {
      max-width: 1480px;
      margin: 0 auto;
      padding: 20px 20px 80px;
    }

    /* KPI Grid - Compact & Clean */
    .kpi-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 14px;
      margin-bottom: 20px;
    }

    .kpi-card {
      background: linear-gradient(145deg, rgba(17, 24, 39, 0.9), rgba(22, 31, 48, 0.9));
      border: 1px solid var(--border-color);
      border-radius: 12px;
      padding: 14px 16px;
      backdrop-filter: blur(12px);
      transition: all 0.2s ease;
    }

    .kpi-card:hover {
      border-color: rgba(6, 182, 212, 0.3);
      transform: translateY(-2px);
    }

    .kpi-label {
      font-size: 0.72rem;
      font-family: 'JetBrains Mono', monospace;
      color: #94a3b8;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 6px;
    }

    .kpi-value {
      font-size: 1.55rem;
      font-weight: 700;
      font-family: 'JetBrains Mono', monospace;
      color: #fff;
      line-height: 1.2;
    }

    .kpi-subtext {
      font-size: 0.76rem;
      color: #64748b;
      margin-top: 4px;
    }

    /* Sub Tabs */
    .sub-tabs {
      display: flex;
      gap: 6px;
      border-bottom: 1px solid var(--border-color);
      margin-bottom: 16px;
      overflow-x: auto;
    }

    .sub-tab-btn {
      padding: 10px 18px;
      font-size: 0.85rem;
      font-weight: 600;
      color: #94a3b8;
      background: transparent;
      border: none;
      border-bottom: 2px solid transparent;
      cursor: pointer;
      transition: all 0.2s;
      white-space: nowrap;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .sub-tab-btn:hover {
      color: #fff;
    }

    .sub-tab-btn.active {
      color: var(--accent-cyan);
      border-bottom-color: var(--accent-cyan);
    }

    /* Data Card & Toolbar */
    .data-card {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: 12px;
      overflow: hidden;
      margin-bottom: 20px;
    }

    .card-toolbar {
      padding: 12px 16px;
      border-bottom: 1px solid var(--border-color);
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 10px;
      background: rgba(255, 255, 255, 0.015);
    }

    .card-toolbar-left {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
    }

    .card-title-text {
      margin: 0;
      font-size: 0.95rem;
      font-weight: 600;
      color: #fff;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .card-toolbar-right {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }

    .search-input-box {
      position: relative;
      display: inline-flex;
      align-items: center;
    }

    .search-input-box input {
      background: rgba(15, 23, 42, 0.8);
      border: 1px solid var(--border-color);
      color: #f1f5f9;
      font-size: 0.78rem;
      padding: 6px 10px 6px 28px;
      border-radius: 6px;
      outline: none;
      width: 180px;
      transition: all 0.2s;
    }

    .search-input-box input:focus {
      border-color: var(--accent-cyan);
      width: 240px;
      box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
    }

    .search-input-box span.icon {
      position: absolute;
      left: 8px;
      font-size: 0.8rem;
      color: #64748b;
      pointer-events: none;
    }

    /* Table & Column Resizing */
    .table-container {
      position: relative;
      overflow-x: auto;
      min-height: 250px;
    }

    .erp-table {
      width: 100%;
      border-collapse: separate;
      border-spacing: 0;
      text-align: left;
      table-layout: fixed;
    }

    .erp-table th {
      position: relative;
      background: #131d2e;
      color: #94a3b8;
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.72rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      padding: 10px 12px;
      border-bottom: 1px solid var(--border-color);
      user-select: none;
      box-sizing: border-box;
    }

    .erp-table th .col-resizer {
      position: absolute;
      top: 0;
      right: 0;
      width: 8px;
      cursor: col-resize;
      user-select: none;
      height: 100%;
      z-index: 25;
      transition: background-color 0.15s ease;
    }

    .erp-table th .col-resizer:hover,
    .erp-table th .col-resizer.resizing {
      background: var(--accent-cyan) !important;
      box-shadow: 0 0 8px rgba(6, 182, 212, 0.9);
    }

    .erp-table td {
      padding: 10px 12px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.04);
      font-size: 0.82rem;
      vertical-align: middle;
      box-sizing: border-box;
    }

    .erp-table tr:hover td {
      background: rgba(255, 255, 255, 0.02);
    }

    /* Wrap Text / No Wrap classes */
    .erp-table.wrap-text td,
    .erp-table.wrap-text th {
      white-space: normal !important;
      word-break: break-word !important;
      line-height: 1.35;
    }

    .erp-table.no-wrap td,
    .erp-table.no-wrap th {
      white-space: nowrap !important;
      text-overflow: ellipsis;
      overflow: hidden;
    }

    .badge {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      padding: 2px 6px;
      border-radius: 4px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.7rem;
      font-weight: 600;
      white-space: nowrap;
    }
    .badge-green { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
    .badge-amber { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
    .badge-rose { background: rgba(244, 63, 94, 0.15); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.3); }
    .badge-blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
    .badge-purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
    .badge-gray { background: rgba(100, 116, 139, 0.2); color: #cbd5e1; border: 1px solid rgba(100, 116, 139, 0.3); }

    .btn {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 6px 12px;
      border-radius: 6px;
      font-size: 0.78rem;
      font-weight: 600;
      cursor: pointer;
      border: none;
      transition: all 0.15s;
      text-decoration: none;
    }
    .btn-primary { background: linear-gradient(135deg, #06b6d4 0%, #2563eb 100%); color: #fff; }
    .btn-secondary { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-color); color: #cbd5e1; }
    .btn-secondary:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
    .btn-active { background: rgba(6, 182, 212, 0.2); border-color: rgba(6, 182, 212, 0.5); color: var(--accent-cyan); }
    .btn-sm { padding: 4px 8px; font-size: 0.72rem; }

    .table-hint-bar {
      padding: 6px 16px;
      background: rgba(15, 23, 42, 0.5);
      border-top: 1px solid var(--border-color);
      font-size: 0.72rem;
      color: #64748b;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
  </style>
