/* ============================================================
   Stock Management System – Main Stylesheet
   Yellow Pillar Technologies
   ============================================================ */

/* ── CSS Variables ───────────────────────────────────────── */
:root {
  --primary:        #1a3a5c;
  --primary-dark:   #0f2540;
  --primary-light:  #2a5a8c;
  --accent:         #f5c518;
  --accent-dark:    #d4a800;
  --sidebar-bg:     #0f2540;
  --sidebar-hover:  #1a3a5c;
  --sidebar-text:   #8aaccc;
  --sidebar-w:      260px;
  --topbar-h:       60px;
  --available-c:    #28a745;
  --booked-c:       #dc3545;
  --pending-c:      #f59e0b;
  --allocated-c:    #3b82f6;
  --delivered-c:    #10b981;
  --cancelled-c:    #6b7280;
  --shadow-sm:      0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:      0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:      0 8px 40px rgba(0,0,0,0.12);
  --radius-sm:      6px;
  --radius-md:      10px;
  --radius-lg:      14px;
  --transition:     0.2s ease;
}

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background: #f0f4f8; color: #2d3748; font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c4d4e8; border-radius: 10px; }

/* ── LOGIN PAGE ──────────────────────────────────────────── */
.login-body { background: var(--primary-dark); min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; position: relative; overflow: hidden; }
.login-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.login-shape { position: absolute; border-radius: 50%; opacity: 0.06; }
.login-shape-1 { width: 600px; height: 600px; background: var(--accent); top: -200px; right: -150px; }
.login-shape-2 { width: 400px; height: 400px; background: var(--primary-light); bottom: -100px; left: -100px; }
.login-wrapper { z-index: 1; width: 100%; max-width: 440px; }
.login-card { background: white; border-radius: var(--radius-lg); padding: 40px 36px; box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.login-logo-wrap { text-align: center; margin-bottom: 24px; }
.login-logo-badge { display: inline-flex; align-items: center; justify-content: center; width: 68px; height: 68px; background: var(--accent); border-radius: 16px; margin-bottom: 10px; box-shadow: 0 8px 24px rgba(245,197,24,0.4); }
.login-logo-badge span { font-size: 24px; font-weight: 900; color: var(--primary-dark); }
.login-logo-img { width: 80px; height: 80px; object-fit: contain; border-radius: 14px; margin-bottom: 10px; }
.login-app-name { font-size: 15px; font-weight: 800; color: var(--primary); letter-spacing: 0.5px; }
.login-app-sub  { font-size: 12px; color: #888; margin-top: 2px; }
.login-title    { font-size: 22px; font-weight: 700; color: var(--primary); text-align: center; margin-bottom: 4px; }
.login-subtitle { font-size: 13px; color: #888; text-align: center; margin-bottom: 24px; }
.login-footer-text { text-align: center; font-size: 12px; color: #aaa; margin-top: 16px; }
.login-powered { text-align: center; font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 16px; }
.login-powered strong { color: var(--accent); }
.btn-login { background: var(--primary); color: white; border: none; border-radius: var(--radius-sm); padding: 12px; font-size: 15px; font-weight: 600; cursor: pointer; transition: background var(--transition), transform 0.1s; }
.btn-login:hover { background: var(--primary-dark); }
.btn-login:active { transform: scale(0.99); }

/* ── APP LAYOUT ──────────────────────────────────────────── */
.app-wrapper   { display: flex; min-height: 100vh; }
.main-content  { flex: 1; margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-height: 100vh; overflow: hidden; transition: margin-left var(--transition); }
.page-content  { flex: 1; padding: 24px; overflow-y: auto; }

/* ── SIDEBAR ─────────────────────────────────────────────── */
.sidebar { width: var(--sidebar-w); background: var(--sidebar-bg); position: fixed; left: 0; top: 0; bottom: 0; z-index: 1050; display: flex; flex-direction: column; overflow: hidden; transition: transform var(--transition); }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1040; backdrop-filter: blur(2px); }
.sidebar-header { padding: 18px 16px 14px; border-bottom: 1px solid rgba(255,255,255,0.06); display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.sidebar-logo { width: 40px; height: 40px; background: var(--accent); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sidebar-logo span { font-size: 15px; font-weight: 900; color: var(--primary-dark); }
.sidebar-logo img { width: 32px; height: 32px; object-fit: contain; }
.brand-name { font-size: 13px; font-weight: 700; color: white; line-height: 1.2; }
.brand-sub  { font-size: 10px; color: var(--sidebar-text); }
.sidebar-close { margin-left: auto; background: none; border: none; color: var(--sidebar-text); font-size: 18px; cursor: pointer; padding: 2px 6px; border-radius: 4px; }
.sidebar-close:hover { color: white; }
.sidebar-user { padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.06); display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.sidebar-user-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--primary-light); color: white; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.sidebar-user-name { font-size: 13px; font-weight: 600; color: white; line-height: 1.2; }
.sidebar-user-role { font-size: 11px; color: var(--sidebar-text); }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 8px 0; }
.sidebar-section { padding: 10px 18px 4px; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; color: #3a5a7a; text-transform: uppercase; }
.sidebar-item { display: flex; align-items: center; gap: 12px; padding: 9px 16px; margin: 1px 8px; border-radius: var(--radius-sm); cursor: pointer; color: var(--sidebar-text); font-size: 13.5px; transition: all var(--transition); text-decoration: none; }
.sidebar-item:hover { background: var(--sidebar-hover); color: white; }
.sidebar-item.active { background: var(--accent); color: var(--primary-dark); font-weight: 600; }
.sidebar-item i { width: 18px; text-align: center; font-size: 14px; flex-shrink: 0; }
.sidebar-label { flex: 1; }
.sidebar-badge { margin-left: auto; background: var(--booked-c); color: white; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 20px; }
.sidebar-item.active .sidebar-badge { background: var(--primary-dark); }
.sidebar-footer { padding: 8px; border-top: 1px solid rgba(255,255,255,0.06); flex-shrink: 0; }
.logout-item { color: #e57373 !important; }
.logout-item:hover { background: rgba(220,53,69,0.15) !important; color: #ef5350 !important; }

/* ── TOPBAR ──────────────────────────────────────────────── */
.topbar { height: var(--topbar-h); background: white; display: flex; align-items: center; gap: 12px; padding: 0 20px; box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 100; flex-shrink: 0; }
.hamburger { background: none; border: none; color: #555; font-size: 20px; cursor: pointer; padding: 6px; border-radius: var(--radius-sm); display: flex; align-items: center; }
.topbar-title { font-size: 16px; font-weight: 700; color: var(--primary); flex: 1; }
.topbar-search { flex: 1; max-width: 460px; display: flex; align-items: center; gap: 10px; background: #f0f4f8; border-radius: 8px; padding: 8px 14px; position: relative; }
.topbar-search i { color: #aaa; font-size: 14px; flex-shrink: 0; }
.topbar-search input { border: none; background: transparent; outline: none; font-size: 13.5px; flex: 1; color: #333; min-width: 0; }
.search-dropdown { position: absolute; top: 100%; left: 0; right: 0; background: white; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); z-index: 200; display: none; max-height: 320px; overflow-y: auto; margin-top: 4px; }
.search-dropdown.show { display: block; }
.search-item { padding: 10px 14px; display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; border-bottom: 1px solid #f5f7fb; }
.search-item:hover { background: #f8fafc; }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.topbar-btn { width: 36px; height: 36px; border-radius: var(--radius-sm); background: #f0f4f8; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #555; font-size: 15px; transition: background var(--transition); position: relative; }
.topbar-btn:hover { background: #e0e8f0; }
.notif-badge { position: absolute; top: 5px; right: 5px; width: 8px; height: 8px; background: var(--booked-c); border-radius: 50%; border: 2px solid white; }
.topbar-user-btn { display: flex; align-items: center; gap: 8px; background: none; border: none; cursor: pointer; padding: 5px 8px; border-radius: var(--radius-sm); transition: background var(--transition); }
.topbar-user-btn:hover { background: #f0f4f8; }
.topbar-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.topbar-user-name { font-size: 13px; font-weight: 600; color: #222; line-height: 1.2; }
.topbar-user-role { font-size: 11px; color: #888; }
.topbar-caret { font-size: 10px; color: #aaa; }
.notif-wrap, .user-dropdown-wrap { position: relative; }
.notif-panel { position: absolute; top: calc(100% + 8px); right: 0; width: 340px; background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); z-index: 300; display: none; }
.notif-panel.show { display: block; }
.notif-panel-header { padding: 12px 16px; border-bottom: 1px solid #f0f4f8; display: flex; justify-content: space-between; align-items: center; }
.notif-panel-header strong { font-size: 14px; }
.notif-mark-all { font-size: 12px; color: #888; cursor: pointer; }
.notif-mark-all:hover { color: var(--primary); }
.notif-panel-footer { padding: 10px 16px; text-align: center; border-top: 1px solid #f0f4f8; }
.notif-panel-footer a { font-size: 13px; color: var(--primary); font-weight: 600; }
.notif-loading { padding: 20px; text-align: center; color: #aaa; font-size: 13px; }
.user-dropdown { position: absolute; top: calc(100% + 8px); right: 0; width: 220px; background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); z-index: 300; display: none; }
.user-dropdown.show { display: block; }
.user-dropdown-header { padding: 14px 16px; border-bottom: 1px solid #f0f4f8; display: flex; align-items: center; gap: 10px; }
.user-dropdown-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-size: 13.5px; color: #333; cursor: pointer; transition: background var(--transition); }
.user-dropdown-item:hover { background: #f8fafc; }
.user-dropdown-item i { width: 16px; text-align: center; color: #888; }
.user-dropdown-divider { border-top: 1px solid #f0f4f8; margin: 4px 0; }
.mobile-search-bar { background: white; padding: 10px 16px; border-bottom: 1px solid #f0f4f8; display: none; }
.mobile-search-bar.show { display: flex; }
.mobile-search-inner { display: flex; align-items: center; gap: 10px; background: #f0f4f8; border-radius: 8px; padding: 8px 12px; flex: 1; }
.mobile-search-inner input { border: none; background: transparent; outline: none; flex: 1; font-size: 14px; }
.mobile-search-inner button { background: none; border: none; color: #888; cursor: pointer; }

/* ── PAGE HEADER ─────────────────────────────────────────── */
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.page-title { font-size: 22px; font-weight: 800; color: var(--primary); margin: 0; line-height: 1.2; }
.page-breadcrumb { font-size: 12.5px; color: #888; margin-top: 4px; }
.page-breadcrumb a { color: var(--primary); }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-app { display: inline-flex; align-items: center; gap: 7px; border: none; border-radius: var(--radius-sm); padding: 9px 18px; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all var(--transition); text-decoration: none; white-space: nowrap; }
.btn-app:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-app:active { transform: scale(0.98); }
.btn-app-primary { background: var(--primary); color: white; }
.btn-app-primary:hover { background: var(--primary-dark); opacity: 1; }
.btn-app-accent { background: var(--accent); color: var(--primary-dark); }
.btn-app-outline { background: transparent; color: var(--primary); border: 1.5px solid #c8d8e8; }
.btn-app-outline:hover { background: #f0f4f8; opacity: 1; }
.btn-app-sm { padding: 6px 12px; font-size: 12.5px; }
.btn-app-export { background: #f8fafc; color: #555; border: 1.5px solid #e0e8f0; padding: 7px 12px; font-size: 12.5px; }
.btn-app-export:hover { background: #eef2f7; opacity: 1; }

/* ── KPI CARDS ───────────────────────────────────────────── */
.kpi-section-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: #888; text-transform: uppercase; margin-bottom: 10px; }
.kpi-grid { display: grid; gap: 16px; margin-bottom: 20px; }
.kpi-grid-4 { grid-template-columns: repeat(4, 1fr); }
.kpi-grid-3 { grid-template-columns: repeat(3, 1fr); }
.kpi-card { background: white; border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 16px; position: relative; overflow: hidden; }
.kpi-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.kpi-primary::before   { background: var(--primary); }
.kpi-success::before   { background: var(--available-c); }
.kpi-danger::before    { background: var(--booked-c); }
.kpi-secondary::before { background: #6c757d; }
.kpi-warning::before   { background: #f59e0b; }
.kpi-info::before      { background: #17a2b8; }
.kpi-orange::before    { background: #f97316; }
.kpi-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.kpi-primary   .kpi-icon { background: rgba(26,58,92,0.1);   color: var(--primary); }
.kpi-success   .kpi-icon { background: rgba(40,167,69,0.1);  color: var(--available-c); }
.kpi-danger    .kpi-icon { background: rgba(220,53,69,0.1);  color: var(--booked-c); }
.kpi-secondary .kpi-icon { background: rgba(108,117,125,0.1);color: #6c757d; }
.kpi-warning   .kpi-icon { background: rgba(245,158,11,0.1); color: #f59e0b; }
.kpi-info      .kpi-icon { background: rgba(23,162,184,0.1); color: #17a2b8; }
.kpi-orange    .kpi-icon { background: rgba(249,115,22,0.1); color: #f97316; }
.kpi-value { font-size: 28px; font-weight: 800; color: #1a1a2e; line-height: 1; }
.kpi-label { font-size: 12px; color: #888; margin-top: 5px; }

/* ── CONTENT CARDS ───────────────────────────────────────── */
.content-card { background: white; border-radius: var(--radius-md); box-shadow: var(--shadow-md); margin-bottom: 20px; overflow: hidden; }
.card-header-app { padding: 14px 20px; border-bottom: 1px solid #f0f4f8; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.card-title-app { font-size: 15px; font-weight: 700; color: var(--primary); }
.card-body-app { padding: 20px; }
.text-accent { color: var(--accent-dark) !important; }

/* ── TABLES ──────────────────────────────────────────────── */
.table-app { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table-app th { background: #f8fafc; padding: 10px 14px; font-size: 11.5px; font-weight: 700; color: #555; text-transform: uppercase; letter-spacing: 0.4px; border-bottom: 2px solid #eef2f7; white-space: nowrap; }
.table-app td { padding: 12px 14px; color: #333; border-bottom: 1px solid #f5f7fb; vertical-align: middle; }
.table-app tr:hover td { background: #fafcff; }
.table-app tr:last-child td { border-bottom: none; }
.empty-row { text-align: center; color: #aaa; padding: 40px !important; font-size: 14px; }
.fw-600 { font-weight: 600; }
.text-xs  { font-size: 11.5px; }
.text-sm  { font-size: 12.5px; }
.font-mono { font-family: 'Courier New', monospace; }
.code-chip { font-family: 'Courier New', monospace; font-size: 11px; background: #f0f4f8; padding: 2px 6px; border-radius: 4px; color: #444; }
.colour-cell { display: flex; align-items: center; gap: 6px; }
.colour-dot { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #d0dce8; flex-shrink: 0; }

/* ── ACTION BUTTONS ──────────────────────────────────────── */
.action-btns { display: flex; gap: 4px; align-items: center; flex-wrap: nowrap; }
.btn-action { width: 30px; height: 30px; border-radius: 6px; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 12px; transition: all var(--transition); text-decoration: none; }
.btn-action-success   { background: rgba(40,167,69,0.1);  color: #28a745; }
.btn-action-secondary { background: #f0f4f8; color: #555; }
.btn-action-danger    { background: rgba(220,53,69,0.1);  color: #dc3545; }
.btn-action-info      { background: rgba(23,162,184,0.1); color: #17a2b8; }
.btn-action:hover { filter: brightness(0.9); transform: translateY(-1px); }

/* ── STATUS BADGES ───────────────────────────────────────── */
.status-badge { display: inline-flex; align-items: center; border-radius: 20px; padding: 3px 10px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.status-available  { background: rgba(40,167,69,0.1);   color: #1a6b2f; }
.status-booked     { background: rgba(220,53,69,0.1);   color: #a52834; }
.status-not-avail  { background: rgba(108,117,125,0.1); color: #444; }
.status-pending    { background: rgba(245,158,11,0.12); color: #92580a; }
.status-allocated  { background: rgba(59,130,246,0.12); color: #1a4fa0; }
.status-cancelled  { background: rgba(107,114,128,0.1); color: #444; }
.status-delivered  { background: rgba(16,185,129,0.12); color: #0a6648; }

/* ── ROLE BADGES ─────────────────────────────────────────── */
.role-badge { display: inline-block; border-radius: 20px; padding: 3px 10px; font-size: 11.5px; font-weight: 700; }
.role-gm       { background: rgba(26,58,92,0.12);   color: var(--primary); }
.role-stockist { background: rgba(245,197,24,0.2);  color: #a07800; }
.role-om       { background: rgba(23,162,184,0.15); color: #0e7a8a; }
.role-tl       { background: rgba(40,167,69,0.12);  color: #1a7a35; }
.role-dse      { background: rgba(108,117,125,0.12);color: #495057; }
.role-fm       { background: rgba(111,66,193,0.12); color: #6f42c1; }

/* ── AGEING BADGE ────────────────────────────────────────── */
.ageing-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.ageing-low  { background: rgba(40,167,69,0.1);  color: #28a745; }
.ageing-mid  { background: rgba(245,158,11,0.12);color: #92580a; }
.ageing-high { background: rgba(220,53,69,0.1);  color: #dc3545; }

/* ── FILTER BAR ──────────────────────────────────────────── */
.filter-bar { background: white; border-radius: var(--radius-md); padding: 14px 18px; box-shadow: var(--shadow-sm); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.filter-item { display: flex; flex-direction: column; gap: 4px; }
.filter-item label { font-size: 10.5px; font-weight: 700; color: #666; text-transform: uppercase; letter-spacing: 0.4px; }
.filter-item select, .filter-item input { border: 1.5px solid #dce8f0; border-radius: var(--radius-sm); padding: 7px 10px; font-size: 13px; background: white; min-width: 130px; outline: none; transition: border-color var(--transition); }
.filter-item select:focus, .filter-item input:focus { border-color: var(--accent-dark); }
.filter-item-wide { flex: 1; min-width: 180px; }
.filter-actions { display: flex; gap: 8px; align-items: flex-end; }
.filter-exports { display: flex; gap: 6px; align-items: flex-end; }

/* ── PERFORMANCE ROWS ────────────────────────────────────── */
.perf-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f5f7fb; }
.perf-row:last-child { border-bottom: none; }
.perf-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.perf-avatar-sm { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; flex-shrink: 0; }
.perf-info { flex: 1; min-width: 0; }
.perf-name { font-size: 13.5px; font-weight: 600; color: #222; }
.perf-bar { background: #f0f4f8; border-radius: 20px; height: 6px; margin-top: 5px; }
.perf-bar-fill { background: var(--primary); border-radius: 20px; height: 6px; transition: width 0.6s ease; }
.perf-count { font-size: 16px; font-weight: 800; color: var(--primary); flex-shrink: 0; width: 32px; text-align: right; }

/* ── DASHBOARD LAYOUT ────────────────────────────────────── */
.dash-row { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-bottom: 20px; }
.dash-col-lg, .dash-col-sm { min-width: 0; }

/* ── ACTIVITY ────────────────────────────────────────────── */
.activity-row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f5f7fb; }
.activity-row:last-child { border-bottom: none; }
.activity-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.activity-text { font-size: 13px; color: #333; }
.activity-meta { font-size: 11px; color: #aaa; margin-top: 2px; }

/* ── SUMMARY PILLS ───────────────────────────────────────── */
.summary-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.summary-pill  { border-radius: 20px; padding: 6px 16px; font-size: 13px; font-weight: 500; background: white; box-shadow: var(--shadow-sm); }
.pill-total  { color: var(--primary); }
.pill-avail  { background: rgba(40,167,69,0.1);  color: #1a6b2f; }
.pill-booked { background: rgba(220,53,69,0.1);  color: #a52834; }
.pill-na     { background: rgba(108,117,125,0.1);color: #444; }

/* ── PAGINATION ──────────────────────────────────────────── */
.pagination-wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-top: 1px solid #f0f4f8; flex-wrap: wrap; gap: 10px; }
.pagination-info { font-size: 12.5px; color: #888; }
.pagination-list { list-style: none; display: flex; gap: 4px; }
.page-btn { display: flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 6px; font-size: 13px; background: #f0f4f8; color: #555; transition: all var(--transition); }
.page-btn:hover { background: var(--primary); color: white; }
.page-btn.active { background: var(--primary); color: white; font-weight: 700; }

/* ── FORMS ───────────────────────────────────────────────── */
.form-app { max-width: 900px; }
.form-card { background: white; border-radius: var(--radius-md); box-shadow: var(--shadow-md); margin-bottom: 20px; overflow: hidden; }
.form-card-header { padding: 14px 20px; background: #f8fafc; border-bottom: 1px solid #f0f4f8; font-size: 14px; font-weight: 700; color: var(--primary); }
.form-grid { display: grid; gap: 16px; padding: 20px; }
.form-grid-2 { grid-template-columns: 1fr 1fr; }
.form-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label, .form-label-sm { font-size: 12px; font-weight: 600; color: #555; }
.form-control-app { border: 1.5px solid #dce8f0; border-radius: var(--radius-sm); padding: 9px 12px; font-size: 13.5px; outline: none; transition: border-color var(--transition), box-shadow var(--transition); width: 100%; background: white; color: #333; }
.form-control-app:focus { border-color: var(--accent-dark); box-shadow: 0 0 0 3px rgba(212,168,0,0.15); }
.form-control-app::placeholder { color: #aaa; }
.form-group.has-error .form-control-app { border-color: var(--booked-c); }
.form-error { font-size: 11.5px; color: var(--booked-c); }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; padding: 16px 0; }
.input-icon-wrap { position: relative; }
.input-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #aaa; font-size: 14px; pointer-events: none; }
.input-icon-wrap .form-control-app { padding-left: 38px; }
.input-eye { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #aaa; cursor: pointer; }

/* ── REPORT TABS ─────────────────────────────────────────── */
.report-tabs { display: flex; gap: 4px; background: #f0f4f8; padding: 4px; border-radius: 10px; margin-bottom: 18px; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
.report-tab { padding: 8px 14px; border-radius: 7px; font-size: 13px; cursor: pointer; color: #666; font-weight: 500; white-space: nowrap; transition: all var(--transition); text-decoration: none; }
.report-tab.active { background: white; color: var(--primary); font-weight: 700; box-shadow: var(--shadow-sm); }
.report-tab:hover:not(.active) { background: rgba(255,255,255,0.6); }

/* ── TRACEABILITY ────────────────────────────────────────── */
.trace-search-grid { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr; align-items: flex-end; gap: 10px; }
.trace-or { font-size: 12px; color: #aaa; font-weight: 700; padding-bottom: 10px; text-align: center; }
.detail-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f5f7fb; font-size: 13.5px; }
.detail-row:last-child { border-bottom: none; }
.detail-label { color: #888; font-weight: 600; flex-shrink: 0; min-width: 120px; }
.detail-value { font-weight: 500; color: #222; text-align: right; }

/* ── TIMELINE ────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 44px; }
.timeline::before { content: ''; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: linear-gradient(to bottom, #28a745, #1a3a5c, #f5a623); border-radius: 2px; }
.timeline-item { position: relative; margin-bottom: 24px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot { position: absolute; left: -44px; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; z-index: 1; border: 3px solid white; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.timeline-content { background: #f8fafc; border-radius: 10px; padding: 12px 16px; }
.timeline-title { font-size: 14px; font-weight: 700; color: var(--primary); }
.timeline-desc  { font-size: 12.5px; color: #555; margin-top: 3px; }
.timeline-time  { font-size: 11.5px; color: #aaa; margin-top: 5px; }

/* ── BOOKING MODAL ───────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 1200; display: none; align-items: center; justify-content: center; padding: 16px; backdrop-filter: blur(2px); }
.modal-overlay.show { display: flex; }
.modal-box { background: white; border-radius: var(--radius-lg); width: 100%; max-width: 860px; max-height: 90vh; overflow-y: auto; box-shadow: 0 24px 80px rgba(0,0,0,0.3); display: flex; flex-direction: column; }
.modal-header-app { background: var(--primary); color: white; padding: 16px 22px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.modal-header-app h5 { margin: 0; font-size: 16px; font-weight: 700; }
.modal-close-btn { background: none; border: none; color: white; font-size: 24px; cursor: pointer; line-height: 1; padding: 0; }
.modal-body-app { padding: 22px; flex: 1; overflow-y: auto; }
.modal-footer-app { padding: 14px 22px; border-top: 1px solid #f0f4f8; display: flex; justify-content: flex-end; gap: 10px; flex-shrink: 0; }
.booking-section-label { font-size: 12px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; padding: 8px 0 6px; border-bottom: 2px solid var(--accent); margin-bottom: 12px; }
.auto-fetch-field { background: #f8fafc; border: 1.5px solid #e0e8f0; border-radius: var(--radius-sm); padding: 8px 12px; font-size: 13.5px; color: #555; min-height: 38px; }
.booking-step-title { font-size: 15px; font-weight: 700; color: var(--primary); margin-bottom: 14px; }
.vehicle-select-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; max-height: 340px; overflow-y: auto; }
.vehicle-card { border: 2px solid #e0e8f0; border-radius: var(--radius-md); padding: 14px; cursor: pointer; transition: all var(--transition); background: white; }
.vehicle-card:hover { border-color: var(--primary); background: #f8fafc; }
.vehicle-card.selected { border-color: var(--accent-dark); background: rgba(245,197,24,0.05); }
.vehicle-card-model { font-size: 14px; font-weight: 700; color: var(--primary); }
.vehicle-card-variant { font-size: 12.5px; color: #666; margin-top: 2px; }
.vehicle-card-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.vehicle-card-tag { font-size: 11px; background: #f0f4f8; border-radius: 4px; padding: 2px 6px; color: #555; }
.radio-label { display: flex; align-items: center; gap: 6px; font-size: 13.5px; cursor: pointer; }

/* ── UPLOAD DROP ZONE ────────────────────────────────────── */
.upload-drop-zone { border: 2px dashed #c8d8e8; border-radius: var(--radius-md); padding: 40px 24px; text-align: center; transition: all var(--transition); cursor: pointer; }
.upload-drop-zone.drag-over { border-color: var(--primary); background: #f0f4f8; }
.upload-drop-icon { font-size: 40px; color: #aaa; display: block; margin-bottom: 12px; }
.upload-drop-text { font-size: 15px; font-weight: 600; color: #555; }
.upload-drop-sub { font-size: 12.5px; color: #aaa; margin-top: 4px; }
.upload-file-name { font-size: 13px; color: var(--primary); font-weight: 600; }
.info-box { background: #f0f4f8; border-radius: var(--radius-sm); padding: 14px 16px; }
.info-box-title { font-size: 13px; font-weight: 700; color: var(--primary); }

/* ── NOTIFICATIONS ───────────────────────────────────────── */
.notif-list-item { display: flex; gap: 14px; padding: 16px 20px; border-bottom: 1px solid #f0f4f8; transition: background var(--transition); }
.notif-list-item:hover { background: #fafcff; }
.notif-unread { background: #fafeff; }
.notif-list-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.notif-list-title { font-size: 14px; font-weight: 700; color: #1a1a2e; display: flex; align-items: center; gap: 6px; }
.notif-list-msg  { font-size: 13px; color: #555; margin-top: 3px; }
.notif-list-time { font-size: 11.5px; color: #aaa; margin-top: 4px; }
.notif-new-dot   { width: 8px; height: 8px; background: var(--booked-c); border-radius: 50%; display: inline-block; }

/* ── FLASH MESSAGES ──────────────────────────────────────── */
.flash-alert { border-radius: var(--radius-md); margin-bottom: 16px; }

/* ── MISC ────────────────────────────────────────────────── */
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--available-c) !important; }
.text-danger  { color: var(--booked-c) !important; }
.text-warning { color: #f59e0b !important; }
.text-muted   { color: #888 !important; }
.fw-700 { font-weight: 700 !important; }
