﻿/* ===================================================
   VARIABLES & RESET
   =================================================== */
:root {
  --sidebar-width: 260px;
  --primary: #1a4fa8;
  --primary-dark: #0f3a8a;
  --primary-light: #4a7fd4;
  --secondary: #0ea5e9;
  --accent: #f59e0b;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --bg: #eef2f9;
  --bg-card: #ffffff;
  --text-primary: #0d1b3e;
  --text-secondary: #4a5568;
  --text-muted: #8a9ab5;
  --border: #d8e2f0;
  --shadow: 0 1px 3px rgba(10,30,80,0.07), 0 1px 2px rgba(10,30,80,0.05);
  --shadow-md: 0 4px 12px rgba(10,30,80,0.10), 0 2px 6px rgba(10,30,80,0.06);
  --shadow-lg: 0 10px 28px rgba(10,30,80,0.12), 0 4px 10px rgba(10,30,80,0.07);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Inter', 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  margin: 0;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}
/* ===================================================
   DASHBOARD STYLES (moved from index.html inline)
   =================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
    :root {
      --navy-900: #071330;
      --navy-800: #0d1f4e;
      --navy-700: #122a6b;
      --navy-600: #1a3d8f;
      --navy-500: #2554b8;
      --navy-400: #4a7fd4;
      --navy-300: #7aaae8;
      --navy-200: #b8d0f5;
      --navy-100: #dce8fb;
      --navy-50:  #f0f5fd;
      --purple-800: #1a1040;
      --purple-700: #2d1b4e;
      --purple-600: #3d2866;
      --white: #ffffff;
      --gray-50: #f7f9fc;
      --gray-100: #eef2f8;
      --gray-200: #dde4ef;
      --gray-300: #c2cde0;
      --gray-400: #8fa0bc;
      --gray-500: #5e7291;
      --gray-600: #3d5070;
      --green-100: #e3f9ee;
      --green-500: #22c55e;
      --green-700: #15803d;
      --orange-100: #fff3e0;
      --orange-500: #f59e0b;
      --orange-700: #b45309;
      --red-100: #fee2e2;
      --red-500: #ef4444;
      --red-700: #b91c1c;
      --shadow-sm: 0 1px 4px rgba(10,30,80,0.07);
      --shadow-md: 0 4px 16px rgba(10,30,80,0.10);
      --shadow-lg: 0 8px 32px rgba(10,30,80,0.12);
      --shadow-xl: 0 16px 48px rgba(10,30,80,0.15);
      --sidebar-w: 260px;
      --sidebar-w-collapsed: 72px;
      --topbar-h: 64px;
      --radius-sm: 8px;
      --radius-md: 14px;
      --radius-lg: 20px;
      --radius-xl: 28px;
      --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    html { font-size: 15px; }
    body {
      font-family: 'Inter', 'Poppins', 'Segoe UI', sans-serif;
      background: var(--gray-50);
      color: #0d1b3e;
      overflow-x: hidden;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      font-size: 14px;
      line-height: 1.6;
    }
    ::-webkit-scrollbar { width: 5px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 10px; }
    #app { display: flex; min-height: 100vh; }
    .sidebar {
      position: fixed; top: 0; left: 0;
      width: var(--sidebar-w); height: 100vh;
      background: linear-gradient(175deg, var(--navy-900) 0%, var(--navy-800) 50%, var(--navy-700) 100%);
      z-index: 1000;
      display: flex; flex-direction: column;
      transition: width var(--transition);
      border-right: 1px solid rgba(255,255,255,0.05);
      overflow: hidden;
      box-shadow: 4px 0 24px rgba(7,19,48,0.25);
    }
    .sidebar.collapsed { width: var(--sidebar-w-collapsed); }
    .sidebar-inner { display: flex; flex-direction: column; height: 100%; padding: 0; overflow: hidden; }
    .sidebar-brand { display: flex; align-items: center; gap: 14px; padding: 22px 20px 18px; flex-shrink: 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .sidebar.collapsed .sidebar-brand { padding: 22px 16px 18px; justify-content: center; }
    .sidebar-brand .logo-box { width: 40px; height: 40px; background: linear-gradient(135deg, var(--navy-500), var(--navy-400)); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; color: #fff; letter-spacing: -0.5px; flex-shrink: 0; border: 1px solid rgba(255,255,255,0.18); box-shadow: 0 4px 12px rgba(7,19,48,0.3); }
    .sidebar-brand .brand-text { flex: 1; }
    .sidebar.collapsed .brand-text { display: none; }
    .sidebar-brand h2 { font-size: 17px; font-weight: 800; color: #fff; letter-spacing: 2px; }
    .sidebar-brand .brand-sub { font-size: 11px; color: rgba(255,255,255,0.45); font-weight: 400; letter-spacing: 0.5px; text-transform: uppercase; margin-top: -2px; }
    .sidebar-profile { display: flex; align-items: center; gap: 12px; padding: 16px 20px; flex-shrink: 0; }
    .sidebar.collapsed .sidebar-profile { padding: 16px; justify-content: center; }
    .sidebar-avatar { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, var(--navy-500), var(--navy-400)); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; color: #fff; flex-shrink: 0; border: 2px solid rgba(255,255,255,0.18); }
    .sidebar.collapsed .sidebar-avatar { width: 40px; height: 40px; border-radius: 12px; font-size: 16px; }
    .sidebar-profile-info { flex: 1; min-width: 0; }
    .sidebar.collapsed .sidebar-profile-info { display: none; }
    .sidebar-profile-name { font-size: 14px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .sidebar-profile-role { font-size: 12px; color: rgba(255,255,255,0.55); font-weight: 400; }
    .sidebar-nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 12px 12px; }
    .sidebar-nav-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: rgba(255,255,255,0.35); padding: 16px 12px 8px; }
    .sidebar.collapsed .sidebar-nav-label { display: none; }
    .nav-item { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: var(--radius-sm); cursor: pointer; color: rgba(255,255,255,0.65); transition: all 0.25s ease; text-decoration: none; -webkit-user-select: none; user-select: none; margin-bottom: 2px; position: relative; }
    .sidebar.collapsed .nav-item { padding: 12px; justify-content: center; margin-bottom: 4px; }
    .nav-item:hover { color: rgba(255,255,255,0.92); background: rgba(255,255,255,0.07); }
    .nav-item.active { color: #fff; background: linear-gradient(90deg, rgba(74,127,212,0.25) 0%, rgba(74,127,212,0.08) 100%); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 0 24px rgba(26,61,143,0.12); }
    .nav-item.active::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 24px; background: linear-gradient(180deg, var(--navy-400), var(--navy-300)); border-radius: 0 4px 4px 0; }
    .sidebar.collapsed .nav-item.active::before { display: none; }
    .nav-item .nav-icon { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
    .sidebar.collapsed .nav-item .nav-icon { font-size: 20px; }
    .nav-item .nav-text { font-size: 14px; font-weight: 500; white-space: nowrap; }
    .sidebar.collapsed .nav-item .nav-text { display: none; }
    .nav-item .nav-badge { margin-left: auto; background: rgba(239,68,68,0.9); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; min-width: 20px; text-align: center; }
    .sidebar.collapsed .nav-item .nav-badge { display: none; }
    .sidebar-footer { flex-shrink: 0; padding: 8px 10px 12px; border-top: 1px solid rgba(255,255,255,0.06); }
    .logout-btn { display: flex; align-items: center; gap: 10px; padding: 10px 14px; width: 100%; border: 1px solid rgba(255,255,255,0.06); background: rgba(239,68,68,0.06); border-radius: var(--radius-sm); color: rgba(255,255,255,0.65); font-family: inherit; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.25s ease; letter-spacing: 0.3px; }
    .sidebar.collapsed .logout-btn { justify-content: center; padding: 10px; border-color: transparent; background: rgba(239,68,68,0.06); }
    .logout-btn:hover { background: rgba(239,68,68,0.18); color: #fca5a5; border-color: rgba(248,113,113,0.2); }
    .logout-btn .logout-icon { font-size: 16px; flex-shrink: 0; }
    .logout-btn .logout-text { flex: 1; text-align: left; }
    .sidebar.collapsed .logout-btn .logout-text { display: none; }
    .logout-btn .logout-arrow { font-size: 11px; color: rgba(255,255,255,0.2); transition: all 0.25s ease; }
    .logout-btn:hover .logout-arrow { color: rgba(248,113,113,0.5); transform: translateX(3px); }
    .sidebar-toggle { position: absolute; bottom: 20px; right: -14px; width: 28px; height: 28px; background: var(--white); border: 1px solid var(--gray-200); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow-md); z-index: 10; transition: transform var(--transition); font-size: 12px; color: var(--gray-500); }
    .sidebar-toggle:hover { transform: scale(1.1); }
    .sidebar.collapsed .sidebar-toggle { right: -14px; }
    .main-area { margin-left: var(--sidebar-w); flex: 1; transition: margin-left var(--transition); display: flex; flex-direction: column; min-height: 100vh; }
    .main-area.expanded { margin-left: var(--sidebar-w-collapsed); }
    .main-area.full-width { margin-left: 0; }
    .topbar { height: var(--topbar-h); background: rgba(255,255,255,0.90); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--navy-100); display: flex; align-items: center; padding: 0 32px; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(10,30,80,0.06); }
    .topbar-left { display: flex; align-items: center; gap: 16px; flex: 1; }
    .topbar-date { font-size: 14px; color: var(--gray-500); font-weight: 400; }
    .topbar-date strong { color: #1e293b; font-weight: 600; }
    .topbar-divider { width: 1px; height: 24px; background: var(--gray-200); }
    .topbar-search { display: flex; align-items: center; gap: 8px; background: var(--gray-100); border-radius: 10px; padding: 8px 16px; width: 240px; transition: all 0.25s ease; }
    .topbar-search:focus-within { background: var(--white); box-shadow: 0 0 0 2px rgba(99,102,241,0.15); width: 280px; }
    .topbar-search input { border: none; background: none; outline: none; font-family: inherit; font-size: 14px; color: #1e293b; width: 100%; }
    .topbar-search input::placeholder { color: var(--gray-400); }
    .topbar-search .search-icon { font-size: 15px; color: var(--gray-400); }
    .topbar-right { display: flex; align-items: center; gap: 16px; }
    .topbar-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--navy-600), var(--navy-500)); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: #fff; cursor: pointer; border: 2px solid rgba(255,255,255,0.8); box-shadow: var(--shadow-sm); }
    .topbar-avatar-name { font-size: 14px; font-weight: 600; color: #1e293b; }
    .content-area { flex: 1; padding: 24px 28px 32px; }
    .hero-greeting { position: relative; background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 40%, var(--navy-700) 100%); border-radius: var(--radius-xl); padding: 40px 48px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; box-shadow: 0 12px 48px rgba(7,19,48,0.25); margin-bottom: 32px; border: 1px solid rgba(74,127,212,0.15); }
    .hero-greeting::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 24px 24px; opacity: 0.6; }
    .hero-greeting::after { content: ''; position: absolute; top: -40%; right: -10%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(129,140,248,0.08) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
    .hero-greeting .hero-glow-1 { position: absolute; bottom: -30%; left: -5%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(167,139,250,0.06) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
    .hero-glass { position: relative; z-index: 1; }
    .hero-greeting .hero-greeting-text { font-size: 30px; font-weight: 800; color: #fff; line-height: 1.3; text-shadow: 0 2px 20px rgba(0,0,0,0.15); margin-bottom: 8px; letter-spacing: -0.5px; }
    .hero-greeting .hero-subtitle { font-size: 16px; font-weight: 400; color: rgba(255,255,255,0.65); line-height: 1.6; max-width: 600px; text-shadow: 0 1px 10px rgba(0,0,0,0.10); }
    .hero-greeting .hero-date-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.08); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.10); border-radius: 100px; padding: 8px 20px; margin-bottom: 24px; align-self: flex-start; font-size: 13px; color: rgba(255,255,255,0.75); font-weight: 400; }
    .hero-greeting .hero-date-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-500); }
    .stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin-bottom: 32px; }
    .stat-card { background: var(--white); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.03); transition: all 0.3s ease; display: flex; flex-direction: column; gap: 12px; }
    .stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
    .stat-card .stat-top { display: flex; align-items: center; justify-content: space-between; }
    .stat-card .stat-icon-box { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
    .stat-card .stat-icon-box.icon-total { background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(99,102,241,0.05)); }
    .stat-card .stat-icon-box.icon-safe { background: linear-gradient(135deg, rgba(34,197,94,0.12), rgba(34,197,94,0.05)); }
    .stat-card .stat-icon-box.icon-low { background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(245,158,11,0.05)); }
    .stat-card .stat-icon-box.icon-empty { background: linear-gradient(135deg, rgba(239,68,68,0.12), rgba(239,68,68,0.05)); }
    .stat-card .stat-icon-box.icon-value { background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(16,185,129,0.05)); }
    .stat-card .stat-number { font-size: 28px; font-weight: 700; color: #0f172a; line-height: 1; }
    .stat-card .stat-label { font-size: 13px; font-weight: 400; color: var(--gray-500); }
    .dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; }
    .card { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.03); overflow: hidden; transition: box-shadow 0.3s ease; }
    .card:hover { box-shadow: var(--shadow-md); }
    .card-header { padding: 20px 24px 16px; border-bottom: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; }
    .card-header h3 { font-size: 15px; font-weight: 600; color: #0f172a; }
    .card-body { padding: 16px 24px 24px; }
    .table-wrap { overflow-x: auto; }
    table.modern { width: 100%; border-collapse: separate; border-spacing: 0; }
    table.modern thead th { padding: 12px 16px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: #fff; background: linear-gradient(90deg, var(--navy-800), var(--navy-700)); text-align: left; white-space: nowrap; }
    table.modern thead th:first-child { border-radius: 10px 0 0 10px; }
    table.modern thead th:last-child { border-radius: 0 10px 10px 0; }
    table.modern tbody tr { transition: background 0.2s ease; border-bottom: 1px solid var(--gray-100); }
    table.modern tbody tr:last-child { border-bottom: none; }
    table.modern tbody tr:hover { background: var(--gray-50); }
    table.modern tbody td { padding: 14px 16px; font-size: 13px; color: #1e293b; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
    table.modern tbody tr:last-child td { border-bottom: none; }
    table.modern .cell-code { font-weight: 600; color: var(--navy-600); font-size: 12px; }
    table.modern .cell-name { font-weight: 500; }
    .badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 14px; border-radius: 100px; font-size: 11px; font-weight: 600; letter-spacing: 0.3px; }
    .badge-success { background: var(--green-100); color: var(--green-700); }
    .badge-warning { background: var(--orange-100); color: var(--orange-700); }
    .badge-danger { background: var(--red-100); color: var(--red-700); }
    .btn { border: none; border-radius: 10px; padding: 10px 16px; font-weight: 600; cursor: pointer; font-family: inherit; font-size: 13px; transition: all 0.2s ease; }
    .btn:hover { transform: translateY(-1px); }
    .btn-primary { background: linear-gradient(135deg, var(--navy-600), var(--navy-700)); color: #fff; box-shadow: 0 4px 16px rgba(26,61,143,0.25); }
    .btn-primary:hover { background: linear-gradient(135deg, var(--navy-700), var(--navy-800)); }
    .btn-secondary { background: var(--gray-100); color: var(--gray-600); }
    .btn-secondary:hover { background: var(--gray-200); }
    .btn-danger { background: var(--red-100); color: var(--red-700); }
    .btn-danger:hover { background: #fecaca; }
    .btn-save { background: linear-gradient(135deg, var(--navy-600), var(--navy-700)); color: #fff; box-shadow: 0 4px 16px rgba(26,61,143,0.25); }
    .btn-save:hover { background: linear-gradient(135deg, var(--navy-700), var(--navy-800)); }
    .stock-page-wrap { animation: fadeIn 0.45s ease; }

    .btn-back-dash { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--gray-200); border-radius: 12px; padding: 10px 20px; font-size: 13px; font-weight: 600; color: var(--gray-600); cursor: pointer; font-family: inherit; transition: all 0.25s ease; box-shadow: var(--shadow-sm); }
    .btn-back-dash:hover { border-color: var(--gray-300); box-shadow: var(--shadow-md); color: #0f172a; transform: translateY(-1px); }
    .btn-back-dash .back-icon { font-size: 16px; }
    .stock-layout { display: flex; gap: 20px; align-items: flex-start; }
    .stock-layout .stock-main { flex: 1; min-width: 0; }
    .stock-layout .stock-sidebar { flex: 0 0 260px; min-width: 240px; max-width: 260px; position: sticky; top: 80px; max-height: calc(100vh - 96px); display: flex; flex-direction: column; }
    .stock-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.04); overflow: hidden; transition: box-shadow 0.3s ease; }
    .stock-card:hover { box-shadow: var(--shadow-md); }
    .stock-card-body { padding: 22px 24px 24px; }
    .stock-filter-bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin-bottom: 18px; }
    .stock-filter-bar .filter-group { flex: 1 1 170px; min-width: 0; }
    .stock-filter-bar .filter-group.filter-search-group { flex: 2 1 250px; }
    .stock-filter-bar label.filter-label { display: block; font-size: 10px; font-weight: 700; color: var(--gray-400); margin-bottom: 5px; letter-spacing: 0.5px; text-transform: uppercase; }
    .stock-filter-bar .search-row { display: flex; gap: 10px; align-items: stretch; }
    .stock-filter-bar .search-row input { flex: 1; min-width: 0; }
    .stock-filter-bar .search-row .btn-cari { padding: 10px 20px; flex-shrink: 0; border-radius: 10px; }
    .stock-filter-bar select { padding: 10px 12px; border: 1px solid var(--gray-200); border-radius: 10px; background: var(--white); font-size: 13px; font-family: inherit; color: #1e293b; width: 100%; transition: border-color 0.2s, box-shadow 0.2s; cursor: pointer; }
    .stock-filter-bar select:focus { outline: none; border-color: #3b6ac9; box-shadow: 0 0 0 3px rgba(59,106,201,0.12); }
    .stock-filter-row2 { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
    .stock-filter-row2 label { display: inline-flex; align-items: center; gap: 8px; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 10px; padding: 8px 16px; font-size: 13px; font-weight: 500; color: var(--gray-600); cursor: pointer; transition: all 0.2s ease; -webkit-user-select: none; user-select: none; }
    .stock-filter-row2 label:hover { border-color: var(--gray-300); background: var(--gray-100); }
    .stock-filter-row2 label input { margin: 0; width: 16px; height: 16px; accent-color: #1745a7; }
    .stock-filter-row2 .btn-outline { background: none; border: 1px solid var(--gray-200); border-radius: 10px; padding: 8px 18px; font-size: 12px; font-weight: 600; color: var(--gray-500); cursor: pointer; font-family: inherit; transition: all 0.2s ease; }
    .stock-filter-row2 .btn-outline:hover { border-color: var(--gray-400); color: var(--gray-600); background: var(--gray-50); }
    .stock-filter-row2 .btn-outline.active { border-color: #1745a7; color: #1745a7; background: #eef4ff; }
    .stock-filter-row2 .btn-reset-filter { margin-left: auto; background: none; border: 1px solid var(--gray-200); border-radius: 10px; padding: 8px 18px; font-size: 12px; font-weight: 600; color: var(--red-600); cursor: pointer; font-family: inherit; transition: all 0.2s ease; }
    .stock-filter-row2 .btn-reset-filter:hover { border-color: var(--red-300); background: var(--red-50); color: var(--red-700); }
    .stock-summary-text { font-size: 13px; font-weight: 500; color: var(--gray-500); margin-bottom: 12px; }
    .stock-summary-text strong { color: #0f172a; font-weight: 700; }
    .stock-filter-hint { font-size: 12px; color: var(--navy-600); font-weight: 500; background: linear-gradient(135deg, #eef4ff, #f0f4ff); border: 1px solid #c7d9fb; border-radius: 10px; padding: 8px 16px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
    .stock-filter-hint .hint-icon { font-size: 14px; }
    .stock-table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--gray-200); border-radius: var(--radius-md); background: var(--white); max-height: calc(100vh - 320px); overflow-y: auto; }
    .stock-table-wrap::-webkit-scrollbar { width: 4px; height: 4px; }
    .stock-table-wrap::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 10px; }
    .stock-table-wrap table.stock-table { width: 100%; border-collapse: collapse; }
    .stock-table-wrap table.stock-table thead th { position: sticky; top: 0; z-index: 2; padding: 13px 14px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: #fff; background: linear-gradient(90deg, var(--navy-800), var(--navy-700)); text-align: left; border-bottom: 2px solid var(--navy-600); }
    .stock-table-wrap table.stock-table tbody td { padding: 13px 14px; font-size: 13px; color: #1e293b; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
    .stock-table-wrap table.stock-table tbody tr:last-child td { border-bottom: none; }
    .stock-table-wrap table.stock-table tbody tr.zebra-even td { background: var(--white); }
    .stock-table-wrap table.stock-table tbody tr.zebra-odd td { background: #fafbfd; }
    .stock-table-wrap table.stock-table tbody tr:hover td { background: #eef4ff; }
    .stock-table-wrap table.stock-table thead th:nth-child(5), .stock-table-wrap table.stock-table thead th:nth-child(6), .stock-table-wrap table.stock-table tbody td:nth-child(5), .stock-table-wrap table.stock-table tbody td:nth-child(6) { text-align: center; }
    .stock-table-wrap table.stock-table thead th:nth-child(7), .stock-table-wrap table.stock-table tbody td:nth-child(7) { text-align: right; }
    .stock-table-wrap table.stock-table thead th:nth-child(8), .stock-table-wrap table.stock-table tbody td:nth-child(8) { text-align: center; min-width: 120px; padding-left: 20px; padding-right: 20px; }
    .stock-table-wrap table.stock-table thead th:nth-child(9), .stock-table-wrap table.stock-table tbody td:nth-child(9) { text-align: center; }
    .stock-table-wrap table.stock-table .cell-kode { font-weight: 700; color: var(--navy-600); font-size: 12px; display: block; }
    .stock-table-wrap table.stock-table .cell-judul { font-weight: 500; font-size: 13px; color: #334155; display: block; margin-top: 2px; }
    .stock-table-wrap table.stock-table td .catatan-urgent { color: #c2410c; font-weight: 600; }
    .stock-table-wrap table.stock-table td .catatan-muted { color: #64748b; font-style: italic; }
    .stock-edit-row td { background: #eef4ff !important; padding: 16px 14px !important; }
    .stock-edit-row:hover td { background: #e3ecfc !important; }
    .stock-edit-inner .edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
    .stock-edit-inner .edit-actions { display: flex; gap: 10px; }
    .stock-edit-inner .edit-actions .btn { padding: 8px 20px; font-size: 12px; border-radius: 8px; }
    .stock-edit-inner label { font-size: 11px; font-weight: 600; color: var(--gray-500); display: block; margin-bottom: 3px; }
    .stock-edit-inner input { padding: 8px 12px; font-size: 13px; border-radius: 8px; border: 1px solid var(--gray-200); width: 100%; font-family: inherit; }
    .stock-edit-inner input:focus { border-color: #3b6ac9; box-shadow: 0 0 0 3px rgba(59,106,201,0.12); outline: none; }
    .btn-edit-table { background: linear-gradient(135deg, #ffedd5, #fff7ed); color: #7c2d12; border: 1px solid #fdba74; border-radius: 8px; padding: 5px 0; font-size: 11px; font-weight: 700; font-family: inherit; cursor: pointer; transition: all 0.2s ease; width: 58px; display: block; text-align: center; }
    .btn-edit-table:hover { background: #fed7aa; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(251,146,60,0.15); }
    .btn-delete-table { background: linear-gradient(135deg, #fee2e2, #fecaca); color: #991b1b; border: 1px solid #fca5a5; border-radius: 8px; padding: 5px 0; font-size: 11px; font-weight: 700; font-family: inherit; cursor: pointer; transition: all 0.2s ease; width: 58px; display: block; text-align: center; }
    .btn-delete-table:hover { background: #fca5a5; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(239,68,68,0.15); }
    .cell-actions { text-align: center; vertical-align: middle; }
    .cell-actions .btn-edit-table { margin-bottom: 4px; }
    .aksi-col { display: flex; flex-direction: column; gap: 4px; }
    .stock-form-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: 0 4px 20px rgba(0,0,0,0.06); border: 1px solid rgba(0,0,0,0.04); padding: 14px 16px 14px; position: relative; overflow: hidden; display: flex; flex-direction: column; flex: 1; min-height: 0; }
    .stock-form-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--navy-600), var(--navy-400)); }
    .stock-form-card h3 { font-size: 13px; font-weight: 700; color: #0f172a; display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--gray-100); margin: 0 0 10px; flex-shrink: 0; }
    .stock-form-card h3 .form-plus { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, var(--navy-600), var(--navy-500)); color: #fff; font-size: 13px; font-weight: 800; flex-shrink: 0; }
    .stock-form-card form { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; }
    .stock-form-card form::-webkit-scrollbar { width: 3px; }
    .stock-form-card form::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 10px; }
    .stock-form-card .form-fields { display: flex; flex-direction: column; gap: 6px; flex: 1; }
    .stock-form-card .form-fields label.f-label { font-size: 10px; font-weight: 600; color: var(--gray-500); display: block; margin-bottom: 2px; letter-spacing: 0.2px; }
    .stock-form-card .form-fields input, .stock-form-card .form-fields select, .stock-form-card .form-fields textarea { padding: 6px 10px; font-size: 12px; border-radius: 8px; border: 1px solid var(--gray-200); width: 100%; font-family: inherit; background: var(--white); color: #1e293b; transition: border-color 0.2s, box-shadow 0.2s; }
    .stock-form-card .form-fields input:focus, .stock-form-card .form-fields select:focus, .stock-form-card .form-fields textarea:focus { outline: none; border-color: #3b6ac9; box-shadow: 0 0 0 3px rgba(59,106,201,0.12); }
    .stock-form-card .form-fields textarea { min-height: 38px; max-height: 52px; resize: none; }
    .stock-form-card .form-row-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .stock-form-card .form-actions { display: flex; gap: 8px; margin-top: 10px; flex-shrink: 0; padding-top: 10px; border-top: 1px solid var(--gray-100); }
    .stock-form-card .form-actions .btn { padding: 7px 16px; font-size: 12px; border-radius: 8px; }
    .stock-form-card .form-error { font-size: 10px; color: var(--red-700); font-weight: 600; margin-top: 2px; display: block; }
    .stock-form-card .input-error { border-color: #f87171 !important; box-shadow: 0 0 0 3px rgba(248,113,113,0.12) !important; }

    .st-tooltip { position: absolute; left: 50%; transform: translateX(-50%); z-index: 1000; pointer-events: none; animation: stFadeIn 0.2s ease; }
    .st-tooltip.st-below { top: calc(100% + 10px); }
    .st-tooltip.st-below::before { content: ''; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); border: 7px solid transparent; border-bottom-color: #1e293b; }
    .st-tooltip.st-above { bottom: calc(100% + 10px); }
    .st-tooltip.st-above::before { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 7px solid transparent; border-top-color: #1e293b; }
    .st-tooltip-body { display: flex; align-items: flex-start; gap: 8px; background: #1e293b; color: #e2e8f0; padding: 10px 14px; border-radius: 10px; font-size: 12px; line-height: 1.6; max-width: 300px; white-space: normal; word-wrap: break-word; box-shadow: 0 8px 28px rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.08); }
    .st-tooltip-icon { flex-shrink: 0; font-size: 14px; margin-top: 1px; }
    .st-tooltip-content em { color: #fcd34d; font-style: italic; }
    .st-tooltip-content strong { color: #fff; font-weight: 700; }
    .st-tooltip-content u { text-decoration-color: #60a5fa; text-underline-offset: 2px; }
    .st-tooltip-content i { color: #93c5fd; }
    @keyframes stFadeIn { from { opacity: 0; transform: translateX(-50%) translateY(4px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
    .st-tooltip.st-above { animation: stFadeInUp 0.2s ease; }
    @keyframes stFadeInUp { from { opacity: 0; transform: translateX(-50%) translateY(-4px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
    .stock-empty { text-align: center; padding: 50px 20px; color: var(--gray-400); font-size: 14px; font-weight: 500; }
    @media (max-width: 1200px) { .stock-layout { flex-direction: column; } .stock-layout .stock-sidebar { position: static; flex: none; width: 100%; max-width: 420px; } }
    @media (max-width: 768px) { .stock-page-header { flex-direction: column; align-items: flex-start; gap: 12px; } .stock-filter-bar .filter-group { flex: 1 1 100%; } .stock-filter-bar .filter-group.filter-search-group { flex: 1 1 100%; } .stock-filter-row2 .btn-reset-filter { margin-left: 0; width: 100%; text-align: center; } .stock-layout .stock-sidebar { max-width: none; } }
    .fade-in { animation: fadeIn 0.5s ease; }
    @keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
    .fade-up { animation: fadeUp 0.6s ease both; }
    @keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
    .stagger-1 { animation-delay: 0.05s; } .stagger-2 { animation-delay: 0.10s; } .stagger-3 { animation-delay: 0.15s; } .stagger-4 { animation-delay: 0.20s; } .stagger-5 { animation-delay: 0.25s; }
    .float-anim { animation: float 4s ease-in-out infinite; }
    @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
    .tracking-wrap { animation: fadeIn 0.45s ease; }
    .tracking-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; }

    .tracking-summary { font-size: 13px; font-weight: 500; color: var(--gray-500); margin-bottom: 16px; }
    .tracking-summary strong { color: #0f172a; font-weight: 700; }
    .tracking-form-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.04); padding: 22px 24px 24px; margin-bottom: 24px; position: relative; overflow: hidden; }
    .tracking-form-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #1745a7, #3b82f6); }
    .tracking-form-card h3 { font-size: 15px; font-weight: 700; color: #0f172a; margin: 0 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--gray-100); display: flex; align-items: center; gap: 10px; }
    .tracking-form-card h3 .form-plus { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 8px; background: linear-gradient(135deg, #1745a7, #3b82f6); color: #fff; font-size: 14px; font-weight: 800; flex-shrink: 0; }
    .tracking-form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
    .tracking-form-grid .form-group { display: flex; flex-direction: column; gap: 4px; }
    .tracking-form-grid .form-group label.f-label { font-size: 11px; font-weight: 600; color: var(--gray-500); letter-spacing: 0.2px; }
    .tracking-form-grid .form-group input, .tracking-form-grid .form-group select { padding: 9px 12px; font-size: 13px; border-radius: 9px; border: 1px solid var(--gray-200); width: 100%; font-family: inherit; background: var(--white); color: #1e293b; transition: border-color 0.2s, box-shadow 0.2s; }
    .tracking-form-grid .form-group input:focus, .tracking-form-grid .form-group select:focus { outline: none; border-color: #3b6ac9; box-shadow: 0 0 0 3px rgba(59,106,201,0.12); }
    .tracking-form-grid .form-group input[readonly] { background: #f8fafc; color: var(--gray-500); }
    .tracking-form-grid .form-group .form-error { font-size: 11px; color: var(--red-700); font-weight: 600; }
    .tracking-form-grid .form-group .input-error { border-color: #f87171 !important; box-shadow: 0 0 0 3px rgba(248,113,113,0.12) !important; }
    .tracking-paket-detail { margin-top: 14px; padding: 14px 16px; border: 1px dashed #c7d9fb; border-radius: 12px; background: #fafcff; font-size: 13px; }
    .tracking-paket-detail strong { color: #0f172a; }
    .tracking-paket-detail ul { margin: 6px 0 0 20px; padding: 0; }
    .tracking-paket-detail ul li { margin-bottom: 3px; color: #334155; }
    .tracking-paket-total { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--gray-100); }
    .tracking-paket-empty { margin-top: 8px; font-size: 12px; color: var(--gray-400); font-style: italic; }
    .tracking-form-actions { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
    .tracking-table-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.04); overflow: hidden; }
    .tracking-table-card .tracking-table-header { padding: 18px 22px 14px; border-bottom: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; }
    .tracking-table-card .tracking-table-header h3 { font-size: 15px; font-weight: 700; color: #0f172a; margin: 0; }
    .tracking-table-wrap { overflow-x: auto; max-height: min(55vh, 560px); overflow-y: auto; }
    .tracking-table-wrap::-webkit-scrollbar { width: 4px; height: 4px; }
    .tracking-table-wrap::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 10px; }
    .tracking-table-wrap table { width: 100%; border-collapse: collapse; }
    .tracking-table-wrap table thead th { position: sticky; top: 0; z-index: 2; padding: 12px 14px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--gray-500); background: #f8fafc; text-align: left; border-bottom: 2px solid var(--gray-200); }
    .tracking-table-wrap table tbody td { padding: 12px 14px; font-size: 13px; color: #1e293b; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
    .tracking-table-wrap table tbody tr:last-child td { border-bottom: none; }
    .tracking-table-wrap table tbody tr:hover td { background: #f0f4ff; }
    .tracking-table-wrap table .cell-do { font-weight: 700; font-family: monospace; font-size: 12px; color: var(--navy-600); }
    .tracking-table-wrap table .cell-nim { font-family: monospace; font-size: 12px; color: var(--gray-600); }
    .status-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 4px 14px; border-radius: 100px; letter-spacing: 0.2px; }
    .status-badge.diproses { background: #fff7dd; color: #9a6700; }
    .status-badge.dalam-perjalanan { background: #dff3ff; color: #1d4ed8; }
    .status-badge.dikirim { background: #fff7dd; color: #9a6700; }
    .status-badge.diterima, .status-badge.selesai, .status-badge.terkirim { background: #dcfce7; color: #15803d; }
    .status-badge.pesanan-baru { background: #eaf0ff; color: #1e40af; }
    .status-badge.default { background: var(--gray-100); color: var(--gray-500); }
    .tracking-empty { text-align: center; padding: 40px 20px; color: var(--gray-400); font-size: 14px; font-weight: 500; }
    .btn-progress { background: none; border: none; cursor: pointer; font-size: 18px; padding: 4px 8px; border-radius: 6px; transition: background 0.2s; }
    .btn-progress:hover { background: var(--gray-100); }
    .progress-panel { margin-top: 16px; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid rgba(0,0,0,0.06); overflow: hidden; animation: fadeIn 0.3s ease; }
    .progress-panel-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; background: linear-gradient(135deg, #f0f4ff, #e8f0fe); border-bottom: 1px solid rgba(0,0,0,0.04); }
    .progress-panel-header h3 { margin: 0; font-size: 15px; font-weight: 700; color: #0f172a; }
    .progress-panel-header h3 span { margin-right: 6px; }
    .btn-progress-close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--gray-400); padding: 0 4px; line-height: 1; transition: color 0.2s; }
    .btn-progress-close:hover { color: #ef4444; }
    .progress-panel-sub { padding: 10px 22px; margin: 0; font-size: 13px; color: var(--gray-600); background: #fafbfc; border-bottom: 1px solid var(--gray-100); }
    .progress-timeline { padding: 20px 22px; max-height: 260px; overflow-y: auto; }
    .progress-timeline::-webkit-scrollbar { width: 4px; }
    .progress-timeline::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 10px; }
    .progress-empty { text-align: center; padding: 30px 20px; color: var(--gray-400); font-size: 13px; font-style: italic; }
    .progress-entry { display: flex; gap: 14px; margin-bottom: 16px; position: relative; }
    .progress-entry:last-child { margin-bottom: 0; }
    .progress-entry::before { content: ''; position: absolute; left: 7px; top: 18px; bottom: -16px; width: 2px; background: var(--gray-200); }
    .progress-entry:last-child::before { display: none; }
    .progress-dot { width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(135deg, #6366f1, #4f46e5); flex-shrink: 0; margin-top: 2px; border: 3px solid #e0e7ff; }
    .progress-entry-body { display: flex; flex-direction: column; gap: 2px; flex: 1; }
    .progress-time { font-size: 11px; font-weight: 600; color: var(--gray-400); font-family: monospace; }
    .progress-desc { font-size: 13px; color: #1e293b; line-height: 1.4; }
    .progress-form { padding: 14px 22px 20px; background: #fafbfc; border-top: 1px solid var(--gray-100); }
    .progress-form h4 { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: #0f172a; }
    .progress-msg { margin: 0 0 8px; font-size: 12px; color: #15803d; font-weight: 600; }
    .progress-form-row { display: flex; gap: 10px; }
    .progress-input { flex: 1; padding: 9px 14px; border: 1.5px solid var(--gray-200); border-radius: 10px; font-size: 13px; font-family: inherit; background: var(--white); transition: border-color 0.2s; }
    .progress-input:focus { border-color: #6366f1; outline: none; box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }
    .history-wrap { animation: fadeIn 0.45s ease; }
    .history-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; }

    .history-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.04); overflow: hidden; }
    .history-card-body { padding: 20px 24px 24px; }
    .history-toolbar { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 12px; margin-bottom: 18px; }
    .history-toolbar input, .history-toolbar select { padding: 9px 12px; font-size: 13px; border-radius: 9px; border: 1px solid var(--gray-200); width: 100%; font-family: inherit; background: var(--white); color: #1e293b; transition: border-color 0.2s, box-shadow 0.2s; }
    .history-toolbar input:focus, .history-toolbar select:focus { outline: none; border-color: #3b6ac9; box-shadow: 0 0 0 3px rgba(59,106,201,0.12); }
    .history-toolbar .btn-reset { background: none; border: 1px solid var(--gray-200); border-radius: 9px; padding: 9px 20px; font-size: 12px; font-weight: 600; color: var(--gray-500); cursor: pointer; font-family: inherit; transition: all 0.2s ease; }
    .history-toolbar .btn-reset:hover { border-color: var(--gray-400); color: var(--gray-600); background: var(--gray-50); }
    .history-table-wrap { overflow-x: auto; max-height: min(58vh, 580px); overflow-y: auto; }
    .history-table-wrap::-webkit-scrollbar { width: 4px; height: 4px; }
    .history-table-wrap::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 10px; }
    .history-table-wrap table { width: 100%; border-collapse: collapse; }
    .history-table-wrap table thead th { position: sticky; top: 0; z-index: 2; padding: 12px 14px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--gray-500); background: #f8fafc; text-align: left; border-bottom: 2px solid var(--gray-200); }
    .history-table-wrap table tbody td { padding: 12px 14px; font-size: 13px; color: #1e293b; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
    .history-table-wrap table tbody tr:last-child td { border-bottom: none; }
    .history-table-wrap table tbody tr:hover td { background: #f0f4ff; }
    .history-table-wrap table .cell-do { font-weight: 700; font-family: monospace; font-size: 12px; color: var(--navy-600); }
    .history-table-wrap table .cell-harga { font-weight: 600; }
    .hist-status-select { padding: 7px 10px; font-size: 12px; border-radius: 8px; border: 1px solid var(--gray-200); font-family: inherit; color: #1e293b; background: var(--white); cursor: pointer; min-width: 150px; }
    .hist-status-select:focus { outline: none; border-color: #3b6ac9; box-shadow: 0 0 0 3px rgba(59,106,201,0.12); }
    .hist-btn-save { padding: 7px 14px; font-size: 11px; font-weight: 700; border: none; border-radius: 8px; cursor: pointer; font-family: inherit; margin-left: 6px; background: #1745a7; color: #fff; transition: all 0.2s ease; }
    .hist-btn-save:hover { background: #123d96; }
    .history-summary { font-size: 13px; font-weight: 500; color: var(--gray-500); margin-bottom: 16px; }
    .history-summary strong { color: #0f172a; font-weight: 700; }
    .history-empty { text-align: center; padding: 40px 20px; color: var(--gray-400); font-size: 14px; font-weight: 500; }
    .laporan-app { background: #fff; border: 1px solid #dbe6fa; border-radius: 14px; box-shadow: 0 14px 34px rgba(21,39,84,.12); overflow: hidden; animation: fadeIn 0.45s ease; }
    .laporan-header { background: linear-gradient(135deg, #001a5c, #1f52b7); color: #fff; padding: 20px; display: flex; align-items: center; justify-content: space-between; }
    .laporan-header h1 { margin: 0 0 2px; font-size: 24px; font-weight: 700 }
    .laporan-header div { font-size: 13px; opacity: .85 }
    .header-back { background: rgba(255,255,255,.15); border: none; color: #fff; font-size: 18px; width: 36px; height: 36px; border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: .2s }
    .header-back:hover { background: rgba(255,255,255,.25) }
    .laporan-content { padding: 16px }
    .report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px }
    .selector-box { border: 1px solid #dbe6fa; border-radius: 12px; padding: 14px; background: #f7faff; }
    .selector-box h3 { margin: 0 0 6px; font-size: 15px; color: #1f3566 }
    .selector-box p { margin: 0 0 12px; color: #5f6f8e; font-size: 14px; line-height: 1.5 }
    .selector-box button { border: none; border-radius: 10px; padding: 10px 14px; background: #1745a7; color: #fff; font-weight: 700; font-size: 13px; font-family: inherit; cursor: pointer; transition: .2s }
    .selector-box button:hover { background: #0f3a8c }
    .laporan-back { margin-top: 0 }
    .laporan-back a { text-decoration: none; color: #1a3a78; font-weight: 700; font-size: 14px; cursor: pointer; background: none; border: none; font-family: inherit; padding: 0 }
    .laporan-back a:hover { text-decoration: underline }
    .monitoring-app { border: 1px solid #dbe6fa; border-radius: 14px; box-shadow: 0 14px 34px rgba(21,39,84,.12); overflow: hidden }
    .monitoring-header { background: linear-gradient(135deg, #001a5c, #1f52b7); color: #fff; padding: 20px; display: flex; align-items: center; justify-content: space-between }
    .monitoring-header h1 { margin: 0 0 2px; font-size: 24px; font-weight: 700 }
    .monitoring-header div { font-size: 13px; opacity: .85 }
    .monitoring-content { background: #fff; padding: 16px }
    .monitor-toolbar { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 10px; margin-bottom: 12px }
    .monitor-toolbar input, .monitor-toolbar select { border-radius: 10px; border: 1px solid #d5def2; padding: 10px 11px; font-size: 14px; font-family: inherit; background: #fff }
    .monitor-toolbar button { border-radius: 10px; border: none; padding: 10px 14px; font-size: 14px; font-weight: 700; background: #1745a7; color: #fff; cursor: pointer; font-family: inherit }
    .monitor-toolbar button:hover { background: #0f3a8c }
    .monitor-table-wrap { overflow: auto; border: 1px solid #dde7fa; border-radius: 12px }
    .monitor-table-wrap table { width: 100%; border-collapse: collapse; min-width: 860px }
    .monitor-table-wrap th, .monitor-table-wrap td { border-bottom: 1px solid #edf1fa; padding: 10px; font-size: 13px; text-align: left }
    .monitor-table-wrap th { background: #f3f7ff; color: #32486f; font-size: 12px; text-transform: uppercase; letter-spacing: .02em }
    .monitor-status { display: inline-block; border-radius: 999px; padding: 4px 10px; font-weight: 700; font-size: 12px }
    .monitor-low { background: #ffedd5; color: #c2410c }
    .monitor-ok { background: #dcfce7; color: #15803d }
    .monitor-empty { padding: 16px; text-align: center; color: #6b7b97 }
    .monitor-summary { margin-top: 12px; color: #43577f; font-size: 13px; display: flex; gap: 14px; flex-wrap: wrap }
    .monitor-actions { margin-top: 14px; display: flex; gap: 12px; align-items: center }
    .monitor-actions button { background: none; border: none; cursor: pointer; text-decoration: none; color: #1a3a78; font-weight: 700; font-size: 14px; font-family: inherit; padding: 0 }
    .monitor-actions button:hover { text-decoration: underline }
    .rekap-wrap { border: 1px solid #dbe6fa; border-radius: 12px; overflow: hidden }
    .rekap-header { background: linear-gradient(135deg, #001a5c, #1f52b7); color: #fff; padding: 18px 20px }
    .rekap-header h1 { margin: 0 0 2px; font-size: 22px; font-weight: 700 }
    .rekap-header div { font-size: 13px; opacity: .85 }
    .rekap-content { background: #fff; padding: 16px }
    .rekap-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px }
    .rekap-card { background: #f6f9ff; border: 1px solid #dde7fa; border-radius: 10px; padding: 12px }
    .rekap-card .label { font-size: 12px; color: #607293; text-transform: uppercase; letter-spacing: .04em }
    .rekap-card .value { margin-top: 6px; font-size: 24px; font-weight: 800; color: #1f3d79 }
    .rekap-table-wrap { overflow: auto; border: 1px solid #dde7fa; border-radius: 12px }
    .rekap-table-wrap table { width: 100%; border-collapse: collapse; min-width: 600px }
    .rekap-table-wrap th, .rekap-table-wrap td { border-bottom: 1px solid #edf1fa; padding: 10px; font-size: 13px; text-align: left }
    .rekap-table-wrap th { background: #f3f7ff; color: #32486f; font-size: 12px; text-transform: uppercase; letter-spacing: .02em }
    .rekap-actions { margin-top: 14px; display: flex; gap: 12px; align-items: center }
    .rekap-actions button, .rekap-actions a { background: none; border: none; cursor: pointer; text-decoration: none; color: #1a3a78; font-weight: 700; font-size: 14px; font-family: inherit; padding: 0 }
    .rekap-actions button:hover, .rekap-actions a:hover { text-decoration: underline }
    .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 2000; }
    .modal-container { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); max-width: 90vw; max-height: 85vh; overflow: auto; }
    .modal-container.modal-sm { width: 400px; }
    .modal-container.modal-md { width: 560px; }
    .modal-container.modal-lg { width: 720px; }
    .modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 16px; border-bottom: 1px solid var(--gray-200); }
    .modal-title { font-size: 16px; font-weight: 700; color: #0f172a; }
    .modal-close { background: none; border: none; font-size: 24px; color: var(--gray-400); cursor: pointer; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 8px; transition: all 0.2s; }
    .modal-close:hover { background: var(--gray-100); color: #1e293b; }
    .modal-body { padding: 20px 24px 24px; }
    .modal-fade-enter-active, .modal-fade-leave-active { transition: all 0.25s ease; }
    .modal-fade-enter, .modal-fade-leave-to { opacity: 0; }
    .modal-fade-enter .modal-container, .modal-fade-leave-to .modal-container { transform: scale(0.95); }

    @media (max-width: 1200px) { .dashboard-grid { grid-template-columns: 1fr; } }
    @media (max-width: 992px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } .laporan-grid { grid-template-columns: 1fr; } .tracking-form-grid { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 900px) { .history-toolbar { grid-template-columns: 1fr 1fr; } }
    @media (max-width: 768px) {
      .sidebar { width: var(--sidebar-w-collapsed); }
      .sidebar .brand-text, .sidebar .sidebar-profile-info, .sidebar .sidebar-nav-label, .sidebar .nav-text, .sidebar .nav-badge, .sidebar .logout-text, .sidebar .logout-arrow { display: none; }
      .sidebar .logout-btn { justify-content: center; padding: 10px; border-color: transparent; background: rgba(239,68,68,0.06); }
      .sidebar .sidebar-toggle { display: none; }
      .main-area { margin-left: var(--sidebar-w-collapsed); }
      .topbar { padding: 0 16px; }
      .content-area { padding: 20px 16px 32px; }
      .hero-greeting { padding: 32px 24px; min-height: 240px; border-radius: var(--radius-md); }
      .hero-greeting .hero-greeting-text { font-size: 22px; }
      .hero-greeting .hero-subtitle { font-size: 14px; max-width: 100%; }
      .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
      .dashboard-grid { grid-template-columns: 1fr; gap: 16px; }
      .topbar-search { width: 160px; }
      .topbar-search:focus-within { width: 200px; }
      .topbar-avatar-name { display: none; }
      .tracking-header { flex-direction: column; align-items: flex-start; gap: 12px; }
      .tracking-form-grid { grid-template-columns: 1fr; }
    }
    @media (max-width: 600px) { .history-toolbar { grid-template-columns: 1fr; } .history-header { flex-direction: column; align-items: flex-start; gap: 12px; } .laporan-header { flex-direction: column; align-items: flex-start; gap: 12px; } }
    @media (max-width: 820px) { .rekap-cards { grid-template-columns: 1fr } }
    @media (max-width: 840px) { .monitor-toolbar { grid-template-columns: 1fr } }
    @media (max-width: 760px) { .report-grid { grid-template-columns: 1fr } }
    @media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .stat-card { padding: 16px; } .stat-card .stat-number { font-size: 22px; } .hero-greeting .hero-greeting-text { font-size: 18px; } .hero-greeting .hero-subtitle { font-size: 13px; } .topbar-date { font-size: 11px; } .topbar-search { width: 120px; } }
    @media print {
      body * { visibility: hidden; }
      .content-area, .content-area * { visibility: visible; }
      .content-area { position: absolute; left: 0; top: 0; width: 100%; padding: 20px; }
      .sidebar, .topbar, .monitor-toolbar, .monitor-actions, .laporan-header, .header-back { display: none !important; }
      .hero-greeting { background: #0a1628 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
      .badge, .status-badge { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
      .stat-card, .card, .stock-card, .tracking-table-card { break-inside: avoid; }
      @page { margin: 15mm; }
    }
    .swal-popup-custom {
      border-radius: 20px !important;
      padding: 28px 24px !important;
      box-shadow: 0 20px 60px rgba(30,27,75,0.3) !important;
      font-family: 'Poppins', sans-serif !important;
      position: relative !important;
      overflow: hidden !important;
    }
    .swal-popup-custom::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 3px;
      background: linear-gradient(90deg, #6366f1, #a78bfa, #c4b5fd, #a78bfa, #6366f1);
      background-size: 200% 100%;
      animation: shimmer 3s ease-in-out infinite;
    }
    @keyframes shimmer {
      0%, 100% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
    }

