/* ============================================================
   혹서기 휴게물품 지원시스템 — Modern Admin Design System v2
   네이비 + 골드 / 미니멀 / 충분한 여백 / 신뢰감
   ============================================================ */

:root {
  /* Brand */
  --navy-900:       #0A1F3D;
  --navy-800:       #102B53;
  --navy-700:       #163B72;
  --navy-600:       #1E4F95;
  --navy-500:       #2E64B8;   /* primary action */
  --navy-400:       #5887CC;
  --navy-50:        #EEF3FB;
  --navy-100:       #DCE6F4;

  --gold-600:       #A57A2E;
  --gold-500:       #C39450;
  --gold-400:       #D9AC6E;
  --gold-100:       #F6EAD3;
  --gold-50:        #FBF4E5;

  /* Neutrals */
  --bg:             #F6F8FB;
  --surface:        #FFFFFF;
  --surface-2:      #F8FAFC;
  --border:         #E2E8F0;
  --border-strong:  #CBD5E1;
  --hairline:       #EEF1F5;

  --text:           #0F172A;
  --text-2:         #334155;
  --text-3:         #64748B;
  --text-4:         #94A3B8;

  /* Semantic */
  --success:        #16A34A;
  --success-bg:     #DCFCE7;
  --success-fg:     #14532D;
  --warning:        #D97706;
  --warning-bg:     #FEF3C7;
  --warning-fg:     #78350F;
  --danger:         #DC2626;
  --danger-bg:      #FEE2E2;
  --danger-fg:      #7F1D1D;
  --info:           #0369A1;
  --info-bg:        #E0F2FE;
  --info-fg:        #0C4A6E;

  /* Geometry */
  --radius-xs:      6px;
  --radius-sm:      8px;
  --radius:         10px;
  --radius-lg:      14px;
  --radius-pill:    999px;

  --shadow-xs:      0 1px 2px rgba(15,23,42,.04);
  --shadow-sm:      0 1px 2px rgba(15,23,42,.04), 0 1px 3px rgba(15,23,42,.05);
  --shadow:         0 4px 12px rgba(15,23,42,.06);
  --shadow-lg:      0 12px 32px rgba(15,23,42,.10);

  /* Layout */
  --nav-height:     68px;
  --container-max:  1280px;
  --gutter:         32px;
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; box-sizing: border-box; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont,
               "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  word-break: keep-all;
}

p, li, td, th, label, .form-text { word-break: keep-all; line-height: 1.6; }

a { color: var(--navy-500); text-decoration: none; }
a:hover { color: var(--navy-700); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   NAV
   ============================================================ */
.navbar {
  background: rgba(255,255,255,.92) !important;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  min-height: var(--nav-height);
  padding: 0 !important;
}
.navbar .container { min-height: var(--nav-height); }
.navbar .navbar-brand,
.navbar .navbar-text,
.navbar a { color: var(--text) !important; }
.navbar .navbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  padding: 0;
}
.navbar .brand-logo { height: 32px; width: auto; display: block; }
.navbar .brand-text  { line-height: 1.2; display: flex; flex-direction: column; }
.navbar .brand-text .brand-title { color: var(--navy-900); font-weight: 700; font-size: 14.5px; letter-spacing: -0.02em; }
.navbar .brand-text .brand-sub   { color: var(--text-3); font-size: 11px; font-weight: 500; letter-spacing: 0.01em; margin-top: 1px; }

.nav-menu { display: flex; gap: 2px; align-items: center; }
.nav-menu .divider { width: 1px; height: 20px; background: var(--border); margin: 0 6px; }
.nav-link-item {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2) !important;
  background: transparent;
  border: 1px solid transparent;
  transition: background .12s, color .12s;
  text-decoration: none;
  white-space: nowrap;
}
.nav-link-item.icon-only { padding: 8px; }
.nav-link-item.icon-only svg { width: 17px; height: 17px; }
.nav-link-item:hover { background: var(--surface-2); color: var(--navy-700) !important; text-decoration: none; }
.nav-link-item.active {
  background: var(--navy-50);
  color: var(--navy-700) !important;
  border-color: var(--navy-100);
}
.nav-link-item svg { width: 16px; height: 16px; stroke-width: 1.8; flex: 0 0 16px; }

.nav-user {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 8px 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
}
.nav-user .avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-600), var(--navy-800));
  color: #fff; font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}

.nav-help {
  background: var(--gold-50) !important;
  color: var(--gold-600) !important;
  border-color: var(--gold-100) !important;
}
.nav-help:hover { background: var(--gold-100) !important; color: var(--gold-600) !important; }

/* navbar buttons (legacy .btn-pill in original markup) */
.navbar .btn-pill {
  border-radius: var(--radius-sm) !important;
  padding: 8px 12px !important;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
  background: transparent;
  color: var(--text-2) !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
}
.navbar .btn-pill:hover { background: var(--surface-2); color: var(--navy-700) !important; }
.navbar .btn-pill.btn-primary {
  background: var(--navy-500) !important; color: #fff !important; border-color: transparent !important;
}
.navbar .btn-pill.btn-primary:hover { background: var(--navy-700) !important; color: #fff !important; }
.navbar .btn-pill.btn-help {
  background: var(--gold-50) !important;
  color: var(--gold-600) !important;
  border-color: var(--gold-100) !important;
}
.navbar .btn-pill.btn-help:hover { background: var(--gold-100) !important; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.022em;
  color: var(--text);
  line-height: 1.25;
  margin: 0;
}
h1, .page-title { font-size: 30px; font-weight: 800; letter-spacing: -0.028em; }
h2 { font-size: 24px; }
h3, .section-title { font-size: 18px; font-weight: 700; letter-spacing: -0.018em; }
h4 { font-size: 16px; }
h5 { font-size: 14px; }

.eyebrow {
  font-size: 12px; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--navy-500);
}
.text-muted, .muted-sm, small.text-muted, .form-text {
  color: var(--text-3) !important;
  font-size: 13px;
  line-height: 1.5;
}
.kbd-mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; }

/* page header pattern */
.page-header {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding: 28px 0 18px;
  flex-wrap: wrap;
}
.page-header h1 { margin-bottom: 4px; }
.page-header .lead { color: var(--text-3); font-size: 13.5px; line-height: 1.45; margin: 0; }
.page-header .head-actions { display: flex; gap: 6px; align-items: center; }
.page-header .crumb { color: var(--text-3); font-size: 12px; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.page-header .crumb a { color: var(--text-2); }
.page-header .crumb a:hover { color: var(--navy-700); }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.card.elev   { box-shadow: var(--shadow-sm); }
.card-header {
  background: transparent !important;
  border-bottom: 1px solid var(--hairline) !important;
  padding: 18px 22px !important;
  font-weight: 600;
  font-size: 15px;
}
.card-body { padding: 16px 20px; }
.card-section + .card-section { border-top: 1px solid var(--hairline); }
.card-section { padding: 16px 20px; }
.card-section .section-title { margin-bottom: 2px; }
.card-section .section-desc { color: var(--text-3); font-size: 12.5px; margin-bottom: 12px; }

/* ============================================================
   STAT CARDS — 위계 hero(1) + secondary(rest)
   ============================================================ */
.stat-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 900px) { .stat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .stat-grid { grid-template-columns: 1fr; } }

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  transition: border-color .15s, box-shadow .15s;
  min-height: 88px;
}
.stat-card:hover { border-color: var(--border-strong); }
.stat-card .lbl {
  color: var(--text-3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 6px;
}
.stat-card .num {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--text);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  margin-top: 0;
}
.stat-card .num .unit { font-size: 14px; color: var(--text-3); font-weight: 500; margin-left: 4px; letter-spacing: 0; }
.stat-card .sub { font-size: 12px; color: var(--text-4); margin-top: auto; padding-top: 4px; }
.stat-card.is-warn  .num { color: var(--warning); }
.stat-card.is-ok    .num { color: var(--success); }
.stat-card.is-danger .num { color: var(--danger); }
.stat-card.is-primary .num { color: var(--navy-500); }

/* hero stat */
.stat-card.is-hero {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  border-color: transparent;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.stat-card.is-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(195,148,80,.22), transparent 45%);
  pointer-events: none;
}
.stat-card.is-hero .lbl { color: rgba(255,255,255,.7); }
.stat-card.is-hero .num { color: #fff; font-size: 34px; }
.stat-card.is-hero .sub { color: rgba(255,255,255,.7); }
.stat-card.is-hero .trend {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600;
  color: var(--gold-400);
  background: rgba(195,148,80,.12);
  padding: 3px 8px; border-radius: var(--radius-pill);
  width: fit-content;
  margin-top: 4px;
}

/* mini stat row — 보조 통계 칩 */
.stat-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 8px;
}
.stat-chip {
  display: inline-flex; align-items: baseline; gap: 5px;
  padding: 5px 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  color: var(--text-2);
}
.stat-chip .v {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}
.stat-chip .l { color: var(--text-3); font-size: 12px; }
.stat-chip.is-warn .v { color: var(--warning); }
.stat-chip.is-danger .v { color: var(--danger); }
.stat-chip.is-ok .v { color: var(--success); }

/* ============================================================
   FORMS
   ============================================================ */
.form-control, .form-select, input[type="text"], input[type="email"],
input[type="password"], input[type="number"], input[type="date"], textarea, select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.4;
  width: 100%;
  transition: border-color .12s, box-shadow .12s, background .12s;
  font-family: inherit;
}
.form-control::placeholder, input::placeholder, textarea::placeholder {
  color: var(--text-4);
}
.form-control:hover, .form-select:hover { border-color: var(--border-strong); }
.form-control:focus, .form-select:focus,
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--navy-500);
  box-shadow: 0 0 0 3px rgba(46,100,184,.18);
}
.form-label, label {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}
.form-label .req { color: var(--danger); margin-left: 2px; }
.form-grid { display: grid; gap: 16px; }
.form-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.form-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 768px) {
  .form-grid.cols-2, .form-grid.cols-3 { grid-template-columns: 1fr; }
}

.field-hint { font-size: 12px; color: var(--text-3); margin-top: 4px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
  padding: 9px 16px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: background .12s, border-color .12s, color .12s, box-shadow .12s;
  white-space: nowrap;
}
.btn:active { transform: translateY(.5px); }
.btn svg { width: 15px; height: 15px; stroke-width: 1.8; }

.btn-primary {
  background: var(--navy-500);
  color: #fff !important;
  box-shadow: 0 1px 0 rgba(16,43,83,.12), inset 0 1px 0 rgba(255,255,255,.08);
}
.btn-primary:hover { background: var(--navy-700); color: #fff !important; }
.btn-primary:focus-visible { box-shadow: 0 0 0 3px rgba(46,100,184,.32); }

.btn-secondary, .btn-outline-secondary, .btn-outline-light {
  background: var(--surface);
  color: var(--text-2) !important;
  border-color: var(--border);
}
.btn-secondary:hover, .btn-outline-secondary:hover, .btn-outline-light:hover {
  background: var(--surface-2); color: var(--navy-700) !important;
  border-color: var(--border-strong);
}

.btn-outline-primary {
  background: var(--surface); color: var(--navy-500) !important;
  border-color: var(--navy-100);
}
.btn-outline-primary:hover { background: var(--navy-50); border-color: var(--navy-400); color: var(--navy-700) !important; }

.btn-gold {
  background: var(--gold-500); color: #fff !important;
  box-shadow: 0 1px 0 rgba(124,89,29,.15);
}
.btn-gold:hover { background: var(--gold-600); color: #fff !important; }

.btn-success { background: var(--success); color: #fff !important; }
.btn-success:hover { background: #15803D; color: #fff !important; }
.btn-warning { background: var(--warning); color: #fff !important; }
.btn-warning:hover { background: #B45309; color: #fff !important; }
.btn-danger { background: var(--danger); color: #fff !important; }
.btn-danger:hover { background: #B91C1C; color: #fff !important; }

.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--navy-700); }

.btn-sm { padding: 6px 10px; font-size: 12.5px; border-radius: var(--radius-xs); }
.btn-sm svg { width: 13px; height: 13px; }
.btn-lg { padding: 12px 20px; font-size: 15px; }

.btn-link { color: var(--navy-500); background: none; padding: 0; }
.btn-link:hover { color: var(--navy-700); text-decoration: underline; }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.table {
  width: 100%;
  color: var(--text);
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}
.table thead th {
  background: var(--surface-2);
  font-size: 11px;
  color: var(--text-3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  text-align: left;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table tbody td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: middle;
  color: var(--text);
  font-size: 13.5px;
}
.table .cell-primary { font-weight: 600; color: var(--text); }
.table .cell-meta { color: var(--text-3); font-size: 12.5px; margin-top: 2px; }
.table .stack-cell { display: flex; flex-direction: column; gap: 2px; }
.table tbody tr:last-child td { border-bottom: none; }
.table-hover tbody tr:hover { background: var(--surface-2); }
.table .num-col { text-align: right; font-variant-numeric: tabular-nums; }
.table .id-col  { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; color: var(--text-2); }

@media (max-width: 768px) {
  .table-responsive-card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-responsive-card .table { min-width: 720px; }
}

/* ============================================================
   STATUS BADGES
   ============================================================ */
.badge-status {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: -0.005em;
  line-height: 1.4;
  vertical-align: middle;
  border: 1px solid transparent;
}
.badge-status::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor;
}
.status-submitted   { background: var(--info-bg); color: var(--info-fg); }
.status-approved    { background: var(--success-bg); color: var(--success-fg); }
.status-rejected    { background: var(--danger-bg); color: var(--danger-fg); }
.status-on_hold     { background: var(--warning-bg); color: var(--warning-fg); }
.status-accepted    { background: #E0E7FF; color: #3730A3; }
.status-delivering  { background: #FEF3C7; color: #92400E; }
.status-completed   { background: var(--success-bg); color: var(--success-fg); }
.status-supply_hold { background: var(--danger-bg); color: var(--danger-fg); }

.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  background: var(--navy-50);
  color: var(--navy-700);
  border: 1px solid var(--navy-100);
}

/* ============================================================
   STEP TIMELINE
   ============================================================ */
.steps { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.step-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--text-3);
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid var(--border);
}
.step-pill.active { background: var(--navy-500); color: #fff; border-color: var(--navy-500); }
.step-pill.done   { background: var(--success-bg); color: var(--success-fg); border-color: transparent; }
.step-arrow { color: var(--text-4); font-size: 12px; }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 14px;
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--surface);
  margin-bottom: 16px;
}
.alert svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; }
.alert-info    { background: var(--info-bg); color: var(--info-fg); border-color: #BAE6FD; }
.alert-info svg    { color: var(--info); }
.alert-warning { background: var(--warning-bg); color: var(--warning-fg); border-color: #FDE68A; }
.alert-warning svg { color: var(--warning); }
.alert-danger  { background: var(--danger-bg); color: var(--danger-fg); border-color: #FCA5A5; }
.alert-danger svg  { color: var(--danger); }
.alert-success { background: var(--success-bg); color: var(--success-fg); border-color: #BBF7D0; }
.alert-success svg { color: var(--success); }

/* ============================================================
   HERO BANNER (apply page top, slimmer)
   ============================================================ */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-600) 100%);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  overflow: hidden;
  color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 88% 30%, rgba(195,148,80,.22), transparent 38%),
    radial-gradient(circle at 12% 90%, rgba(46,100,184,.4), transparent 45%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero .eyebrow { color: var(--gold-400); }
.hero h2 { color: #fff; font-size: 24px; font-weight: 700; letter-spacing: -.025em; margin: 4px 0 6px; line-height: 1.2; }
.hero p  { color: rgba(255,255,255,.78); margin: 0; font-size: 13.5px; max-width: 640px; line-height: 1.55; }
.hero strong { color: var(--gold-400); font-weight: 600; }
.hero .hero-actions { margin-top: 16px; display: flex; gap: 8px; }

/* ============================================================
   AUTH CARD (login / signup)
   ============================================================ */
.auth-wrap {
  min-height: calc(100vh - var(--nav-height) - 100px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 64px 16px 32px;
}
.auth-card {
  width: 100%; max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 32px 28px;
  box-shadow: var(--shadow-sm);
}
.auth-card .auth-head { text-align: center; margin-bottom: 24px; }
.auth-card .auth-head .mark {
  width: 44px; height: 44px; margin: 0 auto 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-500));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.auth-card .auth-head .mark svg { width: 22px; height: 22px; }
.auth-card h2 { font-size: 22px; margin-bottom: 6px; }
.auth-card .auth-sub { color: var(--text-3); font-size: 14px; }
.auth-form .form-row { margin-bottom: 14px; }
.auth-card .btn-primary { width: 100%; padding: 11px; }
.auth-meta {
  display: flex; justify-content: space-between; gap: 8px;
  margin-top: 16px;
  font-size: 13px;
}
.auth-meta a { color: var(--text-2); }
.auth-meta a:hover { color: var(--navy-700); }

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.filter-bar .search {
  flex: 1; min-width: 260px;
  position: relative;
}
.filter-bar .search svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--text-3);
  pointer-events: none;
}
.filter-bar .search input { padding-left: 38px; height: 34px; }
.filter-bar .form-select { width: auto; min-width: 130px; height: 34px; }
.filter-bar .filter-count { margin-left: auto; color: var(--text-3); font-size: 12.5px; }

/* ============================================================
   SITE BANNER
   ============================================================ */
.site-banner {
  background: linear-gradient(90deg, var(--navy-800), var(--navy-700));
  color: rgba(255,255,255,.95);
  padding: 10px 0;
  font-size: 13.5px;
  text-align: center;
  border-bottom: 1px solid var(--navy-900);
}
.site-banner .container { display: flex; align-items: center; justify-content: center; gap: 8px; }
.site-banner svg { width: 16px; height: 16px; color: var(--gold-400); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  color: var(--text-3);
  font-size: 13px;
  padding: 40px 0 32px;
  border-top: 1px solid var(--border);
  margin-top: 64px;
  background: var(--surface);
}
footer .footer-inner { text-align: center; }
footer a { color: var(--text-2); }

/* ============================================================
   MODAL
   ============================================================ */
.modal-content {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.modal-header { border-bottom: 1px solid var(--hairline); padding: 18px 22px; }
.modal-body   { padding: 22px; }
.modal-footer { border-top: 1px solid var(--hairline); padding: 14px 22px; }

/* ============================================================
   ITEM TABLE (apply form quantities)
   ============================================================ */
.item-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
@media (max-width: 1100px) { .item-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .item-grid { grid-template-columns: repeat(2, 1fr); } }
.item-cell {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  background: var(--surface);
  transition: border-color .12s;
  display: grid;
  grid-template-columns: 1fr 64px;
  align-items: center;
  gap: 8px;
  min-height: 38px;
}
.item-cell:hover { border-color: var(--border-strong); }
.item-cell .meta { display: flex; flex-direction: column; min-width: 0; }
.item-cell .name { font-size: 12.5px; font-weight: 600; color: var(--text); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-cell .unit { font-size: 10.5px; color: var(--text-3); font-weight: 500; line-height: 1.2; }
.item-cell .hint { display: none; }
.item-cell input { padding: 4px 8px; font-size: 13px; height: 28px; text-align: right; font-variant-numeric: tabular-nums; }

/* ============================================================
   UTILS
   ============================================================ */
.hairline { border-top: 1px solid var(--hairline); }
.section-divider { height: 1px; background: var(--hairline); margin: 24px 0; }
.text-right { text-align: right; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.stack { display: flex; flex-direction: column; }
.row-actions { display: flex; gap: 4px; }
.fade-in { animation: fade .25s ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    margin-top: 10px;
    box-shadow: var(--shadow);
  }
  .nav-link-item { width: 100%; }
}
@media (max-width: 768px) {
  body { font-size: 14.5px; }
  h1, .page-title { font-size: 24px; }
  h2 { font-size: 20px; }
  .page-header { padding: 24px 0 16px; }
  .hero { padding: 22px 20px; }
  .hero h2 { font-size: 20px; }
  .stat-card .num { font-size: 22px; }
  .auth-card { padding: 24px 20px; }
}
