/**
 * TechSupply Industrial - Admin Panel CSS
 * Professional dark industrial B2B administration interface
 */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --admin-sidebar-bg: #0f1724;
  --admin-sidebar-width: 260px;
  --admin-sidebar-collapsed: 72px;
  --admin-topbar-height: 64px;
  --admin-border: #1e2d42;
  --admin-surface: #162032;
  --navy: #1a2b4a;
  --amber: #e8a020;
  --amber-dark: #c88a18;
  --success: #2d7a3a;
  --danger: #c0392b;
  --warning: #d97706;
  --info: #1d4ed8;
  --text-white: #f0f4f8;
  --text-muted: #8899ab;
  --border: #e2e8f0;
  --radius: 8px;
  --shadow-md: 0 4px 12px rgba(0,0,0,0.25);
  --transition: 0.2s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 14px; scroll-behavior: smooth; }

body.admin-body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: #0f1724;
  color: #d0dce8;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--amber); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--amber-dark); }

/* ============================================================
   ADMIN LAYOUT SHELL
   ============================================================ */
.admin-shell {
  display: flex;
  min-height: 100vh;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.admin-sidebar {
  width: var(--admin-sidebar-width);
  min-height: 100vh;
  background: var(--admin-sidebar-bg);
  border-right: 1px solid var(--admin-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: width var(--transition);
  overflow-x: hidden;
  overflow-y: auto;
}

.sidebar-brand {
  padding: 20px 20px;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--admin-topbar-height);
}

.sidebar-brand .brand-icon {
  font-size: 22px;
  flex-shrink: 0;
  color: var(--amber);
}

.sidebar-brand .brand-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-brand .brand-tagline {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 0;
  overflow-y: auto;
}

.nav-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 20px 6px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  color: #a0b3c6;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  border-left: 3px solid transparent;
  transition: all var(--transition);
}

.sidebar-link:hover {
  background: var(--admin-surface);
  color: #fff;
  border-left-color: var(--amber);
}

.sidebar-link.active {
  background: rgba(232, 160, 32, 0.12);
  color: var(--amber);
  border-left-color: var(--amber);
  font-weight: 600;
}

.sidebar-link .nav-icon {
  font-size: 16px;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.sidebar-link .badge-pill {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 7px;
  min-width: 18px;
  text-align: center;
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
.admin-main-content {
  margin-left: var(--admin-sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left var(--transition);
}

/* ============================================================
   TOP BAR
   ============================================================ */
.admin-topbar {
  height: var(--admin-topbar-height);
  background: #162032;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.topbar-page-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.topbar-breadcrumbs {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar-breadcrumbs a { color: var(--amber); font-size: 12px; }
.topbar-breadcrumbs .sep { color: var(--text-muted); }

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

.alert-icon-btn {
  position: relative;
  background: transparent;
  border: none;
  color: #a0b3c6;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition);
}

.alert-icon-btn:hover { color: var(--amber); }

.alert-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
}

.topbar-user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--admin-border);
  cursor: pointer;
  transition: background var(--transition);
}

.topbar-user-chip:hover { background: var(--admin-surface); }

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--amber);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.user-info .user-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.user-info .user-role {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.topbar-logout-btn {
  background: transparent;
  border: 1px solid var(--admin-border);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition);
}

.topbar-logout-btn:hover { border-color: var(--danger); color: var(--danger); }

/* ============================================================
   PAGE CONTENT
   ============================================================ */
.admin-page-body {
  flex: 1;
  padding: 24px;
  background: #0f1724;
}

.page-header-admin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.page-title-admin {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.4px;
}

.page-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ============================================================
   STAT CARDS
   ============================================================ */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.admin-stat-card {
  background: #162032;
  border: 1px solid var(--admin-border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
}

.admin-stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--amber);
}

.admin-stat-card .stat-icon {
  font-size: 28px;
  margin-bottom: 12px;
  display: block;
}

.admin-stat-card .stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  margin-bottom: 4px;
}

.admin-stat-card .stat-value {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}

.admin-stat-card .stat-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.admin-stat-card.stat-amber { border-left: 3px solid var(--amber); }
.admin-stat-card.stat-green { border-left: 3px solid var(--success); }
.admin-stat-card.stat-red { border-left: 3px solid var(--danger); }
.admin-stat-card.stat-blue { border-left: 3px solid var(--info); }

/* ============================================================
   DATA CARDS / PANELS
   ============================================================ */
.admin-card {
  background: #162032;
  border: 1px solid var(--admin-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--admin-border);
}

.admin-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

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

/* ============================================================
   ADMIN TABLES
   ============================================================ */
.admin-table-wrapper {
  background: #162032;
  border: 1px solid var(--admin-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table thead th {
  background: #0f1724;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--admin-border);
  white-space: nowrap;
}

.admin-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(30,45,66,0.5);
  color: #d0dce8;
  font-size: 13px;
  vertical-align: middle;
}

.admin-table tbody tr:last-child td { border-bottom: none; }

.admin-table tbody tr:hover td { background: rgba(255,255,255,0.02); }

.admin-table .col-checkbox { width: 40px; }
.admin-table .col-actions { width: 120px; white-space: nowrap; }

/* Table thumbnail */
.tbl-thumbnail {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--admin-border);
  background: #0f1724;
}

/* ============================================================
   FILTERS BAR
   ============================================================ */
.admin-filters-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: #162032;
  border: 1px solid var(--admin-border);
  border-radius: var(--radius);
  margin-bottom: 16px;
}

/* ============================================================
   ADMIN BUTTONS
   ============================================================ */
.btn-admin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition);
}

.btn-admin:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-admin-sm { padding: 5px 10px; font-size: 11px; }
.btn-admin-xs { padding: 3px 8px; font-size: 10px; }
.btn-admin-lg { padding: 10px 24px; font-size: 14px; }
.btn-admin-block { width: 100%; justify-content: center; }

.btn-admin-primary { background: #1a2b4a; color: #fff; border: 1px solid #243a5e; }
.btn-admin-primary:hover { background: #243a5e; color: #fff; }

.btn-admin-amber { background: var(--amber); color: #fff; }
.btn-admin-amber:hover { background: var(--amber-dark); color: #fff; }

.btn-admin-success { background: var(--success); color: #fff; }
.btn-admin-success:hover { background: #236330; color: #fff; }

.btn-admin-danger { background: var(--danger); color: #fff; }
.btn-admin-danger:hover { background: #a93226; color: #fff; }

.btn-admin-warning { background: var(--warning); color: #fff; }
.btn-admin-warning:hover { background: #b45309; color: #fff; }

.btn-admin-outline {
  background: transparent;
  color: #a0b3c6;
  border: 1px solid var(--admin-border);
}
.btn-admin-outline:hover { color: #fff; border-color: #a0b3c6; }

.btn-admin-ghost { background: transparent; color: var(--text-muted); border: none; }
.btn-admin-ghost:hover { color: #fff; background: rgba(255,255,255,0.05); }

/* ============================================================
   ADMIN FORM ELEMENTS
   ============================================================ */
.form-group-admin { margin-bottom: 16px; }

.form-label-admin {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #a0b3c6;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.form-control-admin {
  width: 100%;
  background: #0f1724;
  border: 1px solid var(--admin-border);
  border-radius: var(--radius);
  padding: 9px 12px;
  font-size: 13px;
  color: #d0dce8;
  transition: border-color var(--transition);
  outline: none;
  font-family: inherit;
}

.form-control-admin:focus { border-color: var(--amber); }
.form-control-admin::placeholder { color: #4a6080; }

select.form-control-admin option { background: #0f1724; }

textarea.form-control-admin { resize: vertical; min-height: 80px; }

.form-check-admin {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #d0dce8;
}

.form-check-admin input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--amber);
  cursor: pointer;
}

.form-error-admin { font-size: 11px; color: var(--danger); margin-top: 4px; }

.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ============================================================
   ADMIN TABS
   ============================================================ */
.admin-tabs { margin-bottom: 24px; }

.admin-tabs-header {
  display: flex;
  border-bottom: 2px solid var(--admin-border);
  gap: 4px;
  flex-wrap: wrap;
}

.admin-tab-btn {
  padding: 10px 18px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
}

.admin-tab-btn:hover { color: #fff; }
.admin-tab-btn.active { color: var(--amber); border-bottom-color: var(--amber); font-weight: 600; }

.admin-tab-pane { display: none; padding: 20px 0; }
.admin-tab-pane.active { display: block; }

/* ============================================================
   BADGES & STATUS INDICATORS
   ============================================================ */
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.status-pending { background: rgba(217,119,6,0.15); color: #fbbf24; }
.status-confirmed { background: rgba(29,78,216,0.15); color: #60a5fa; }
.status-processing { background: rgba(109,40,217,0.15); color: #a78bfa; }
.status-shipped { background: rgba(16,185,129,0.15); color: #34d399; }
.status-completed { background: rgba(45,122,58,0.15); color: #4ade80; }
.status-cancelled { background: rgba(192,57,43,0.15); color: #f87171; }
.status-draft { background: rgba(100,116,139,0.15); color: #94a3b8; }
.status-sent { background: rgba(29,78,216,0.15); color: #60a5fa; }
.status-viewed { background: rgba(109,40,217,0.15); color: #a78bfa; }
.status-accepted { background: rgba(45,122,58,0.15); color: #4ade80; }
.status-rejected { background: rgba(192,57,43,0.15); color: #f87171; }
.status-converted { background: rgba(16,185,129,0.15); color: #34d399; }
.status-expired { background: rgba(100,116,139,0.15); color: #94a3b8; }
.status-paid { background: rgba(45,122,58,0.15); color: #4ade80; }
.status-partially_paid { background: rgba(217,119,6,0.15); color: #fbbf24; }
.status-unpaid { background: rgba(192,57,43,0.15); color: #f87171; }
.status-overdue { background: rgba(192,57,43,0.25); color: #ef4444; border: 1px solid rgba(192,57,43,0.4); }
.status-in_stock { background: rgba(45,122,58,0.15); color: #4ade80; }
.status-low_stock { background: rgba(217,119,6,0.15); color: #fbbf24; }
.status-out_of_stock { background: rgba(192,57,43,0.15); color: #f87171; }
.status-new { background: rgba(232,160,32,0.15); color: var(--amber); }
.status-reviewed { background: rgba(29,78,216,0.15); color: #60a5fa; }
.status-active { background: rgba(45,122,58,0.15); color: #4ade80; }
.status-inactive { background: rgba(100,116,139,0.15); color: #94a3b8; }

/* ============================================================
   ADMIN FLASH MESSAGES
   ============================================================ */
.admin-flash {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-flash-success { background: rgba(45,122,58,0.15); border: 1px solid rgba(45,122,58,0.35); color: #4ade80; }
.admin-flash-error { background: rgba(192,57,43,0.15); border: 1px solid rgba(192,57,43,0.35); color: #f87171; }
.admin-flash-info { background: rgba(29,78,216,0.15); border: 1px solid rgba(29,78,216,0.35); color: #60a5fa; }
.admin-flash-warning { background: rgba(217,119,6,0.15); border: 1px solid rgba(217,119,6,0.35); color: #fbbf24; }

.admin-flash-close { background: none; border: none; color: inherit; cursor: pointer; font-size: 16px; opacity: 0.7; }
.admin-flash-close:hover { opacity: 1; }

/* ============================================================
   PAGINATION (ADMIN)
   ============================================================ */
.admin-pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
  padding: 16px 20px;
  border-top: 1px solid var(--admin-border);
}

.admin-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--admin-border);
  text-decoration: none;
  transition: all var(--transition);
}

.admin-page-link:hover { border-color: var(--amber); color: var(--amber); }
.admin-page-link.active { background: var(--amber); color: #fff; border-color: var(--amber); }
.admin-page-link.disabled { opacity: 0.3; pointer-events: none; }

/* ============================================================
   ITEM BUILDER (Quotation Line Items)
   ============================================================ */
/* ============================================================
   ITEM BUILDER (Quotation Line Items)
   ============================================================ */
.line-items-table {
  width: 100%;
  border-collapse: collapse;
}

tr.line-item-row,
.admin-table tbody tr.line-item-row {
  display: table-row !important;
}

tr.line-item-row > td,
.admin-table tbody tr.line-item-row > td {
  display: table-cell !important;
  vertical-align: top !important;
  padding: 10px 8px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.line-item-row:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.line-item-row .form-control-admin {
  width: 100% !important;
  background: #0b1422 !important;
  border: 1px solid var(--admin-border) !important;
  color: #f1f5f9 !important;
  border-radius: var(--radius) !important;
  padding: 8px 10px !important;
  font-size: 13px !important;
  box-sizing: border-box !important;
}

.line-item-row .form-control-admin:focus {
  border-color: var(--amber) !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(232, 160, 32, 0.18) !important;
}

.line-item-row textarea.form-control-admin {
  resize: vertical !important;
  min-height: 52px !important;
  line-height: 1.4 !important;
}

.btn-remove-line {
  background: none;
  border: none;
  color: #f87171;
  cursor: pointer;
  font-size: 18px;
  padding: 6px 8px;
  border-radius: 4px;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.btn-remove-line:hover {
  background: rgba(248, 113, 113, 0.15);
  color: #ef4444;
}

.line-items-footer {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--admin-border);
  background: #0f1724;
}

/* ============================================================
   TOTALS SUMMARY PANEL (Quotation / Invoice)
   ============================================================ */
.doc-totals-panel {
  background: #0f1724;
  border: 1px solid var(--admin-border);
  border-radius: var(--radius);
  padding: 16px;
}

.totals-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  color: #a0b3c6;
  border-bottom: 1px solid rgba(30,45,66,0.5);
}

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

.totals-grand-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0 6px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  border-top: 2px solid var(--amber);
}

/* ============================================================
   TIMELINE (Status History)
   ============================================================ */
.status-timeline { position: relative; padding-left: 24px; }

.status-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--admin-border);
}

.timeline-event {
  position: relative;
  padding-bottom: 20px;
}

.timeline-event::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
  border: 2px solid #0f1724;
  z-index: 1;
}

.timeline-event .event-status {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--amber);
  letter-spacing: 0.4px;
}

.timeline-event .event-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.timeline-event .event-note {
  font-size: 13px;
  color: #d0dce8;
  margin-top: 4px;
}

/* ============================================================
   PRODUCT IMAGE UPLOADER
   ============================================================ */
.image-upload-area {
  border: 2px dashed var(--admin-border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition);
}

.image-upload-area:hover { border-color: var(--amber); }

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.image-thumb-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid transparent;
  aspect-ratio: 1;
}

.image-thumb-item.primary-img { border-color: var(--amber); }

.image-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-thumb-item .img-actions {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.image-thumb-item:hover .img-actions { display: flex; }

/* ============================================================
   SPEC BUILDER
   ============================================================ */
.spec-builder-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-builder-table th {
  background: #0f1724;
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  padding: 8px 12px;
  font-weight: 600;
}

.spec-builder-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--admin-border);
}

/* ============================================================
   ADMIN LOGIN PAGE
   ============================================================ */
body.admin-auth-body {
  background: #0a1120;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

.admin-login-card {
  width: 420px;
  background: #162032;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.admin-login-brand {
  text-align: center;
  margin-bottom: 32px;
}

.admin-login-brand .logo-symbol {
  font-size: 36px;
  display: block;
  margin-bottom: 8px;
  color: var(--amber);
}

.admin-login-brand .brand-name {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}

.admin-login-brand .brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.admin-login-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.admin-login-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }

/* ============================================================
   RESPONSIVE ADMIN
   ============================================================ */
@media (max-width: 1024px) {
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .admin-sidebar {
    transform: translateX(-100%);
    z-index: 200;
  }

  .admin-sidebar.mobile-open { transform: translateX(0); }

  .admin-main-content { margin-left: 0; }

  .admin-stats-grid { grid-template-columns: 1fr 1fr; }

  .page-header-admin { flex-direction: column; align-items: flex-start; }

  .line-items-header {
    grid-template-columns: 1fr 1fr 60px 60px 60px 60px 36px;
  }
}

@media (max-width: 480px) {
  .admin-stats-grid { grid-template-columns: 1fr; }
  .admin-login-card { width: 90%; padding: 24px; }
}

/* ============================================================
   UTILITY HELPERS
   ============================================================ */
.d-flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-start { display: flex; align-items: flex-start; }
.flex-align-center { display: flex; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-xs { gap: 6px; }
.gap-sm { gap: 10px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }
.gap-xl { gap: 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); }
.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }
.mt-xs { margin-top: 4px; }
.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 24px; }
.mt-xl { margin-top: 32px; }
.mb-xs { margin-bottom: 4px; }
.mb-sm { margin-bottom: 8px; }
.mb-md { margin-bottom: 16px; }
.mb-lg { margin-bottom: 24px; }
.mb-xl { margin-bottom: 32px; }
.p-sm { padding: 8px; }
.p-md { padding: 16px; }
.p-lg { padding: 24px; }
.px-md { padding-left: 16px; padding-right: 16px; }
.py-sm { padding-top: 8px; padding-bottom: 8px; }
.py-md { padding-top: 16px; padding-bottom: 16px; }
.border-top { border-top: 1px solid var(--admin-border); }
.border-bottom { border-bottom: 1px solid var(--admin-border); }
.border-radius { border-radius: var(--radius); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }
.text-md { font-size: 15px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 22px; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.uppercase { text-transform: uppercase; }
.text-white { color: #fff; }
.text-muted { color: var(--text-muted); }
.text-amber { color: var(--amber); }
.text-success { color: #4ade80; }
.text-danger { color: #f87171; }
.text-warning { color: #fbbf24; }
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none !important; }
.w-full { width: 100%; }
.max-w-sm { max-width: 480px; }
.max-w-md { max-width: 640px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.cursor-pointer { cursor: pointer; }
