/* =========================================================
   JOPOS Web System — Master Stylesheet
   Theme: Premium Light — White & Sky Blue
   ========================================================= */

:root {
  --bg-base:        #f0f4f8;
  --bg-panel:       #ffffff;
  --bg-card:        #ffffff;
  --bg-input:       #f8fafc;
  --bg-hover:       #e8f4fd;
  --bg-active:      #dbeafe;

  --sky-50:         #f0f9ff;
  --sky-100:        #e0f2fe;
  --sky-200:        #bae6fd;
  --sky-300:        #7dd3fc;
  --sky-400:        #38bdf8;
  --sky-500:        #0ea5e9;
  --sky-600:        #0284c7;
  --sky-700:        #0369a1;

  --navy-700:       #1e3a5f;
  --navy-800:       #1a3350;
  --navy-900:       #0f2340;

  --border:         #cbd5e1;
  --border-light:   #e2e8f0;
  --border-focus:   #38bdf8;

  --text-primary:   #111827;
  --text-secondary: #374151;
  --text-muted:     #6b7280;
  --text-accent:    #0284c7;
  --text-warn:      #d97706;
  --text-danger:    #dc2626;
  --text-success:   #16a34a;
  --text-info:      #0369a1;

  --accent:         #0ea5e9;
  --accent-dark:    #0284c7;
  --accent-glow:    rgba(14,165,233,0.45);
  --green:          #16a34a;
  --green-dark:     #15803d;
  --amber:          #d97706;
  --red:            #dc2626;
  --red-dark:       #b91c1c;
  --teal:           #0d9488;
  --purple:         #7c3aed;

  --font-mono:      'JetBrains Mono', 'Courier New', monospace;
  --font-ui:        'Space Grotesk', system-ui, sans-serif;

  --radius:         7px;
  --radius-lg:      12px;
  --shadow:         0 2px 12px rgba(14,165,233,0.08), 0 1px 4px rgba(0,0,0,0.06);
  --shadow-md:      0 4px 24px rgba(14,165,233,0.12), 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg:      0 8px 40px rgba(14,165,233,0.15), 0 4px 16px rgba(0,0,0,0.10);
  --transition:     0.18s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
}

/* ── KEYFRAMES ── */
@keyframes heartbeat {
  0%   { box-shadow: 0 0 0 0 var(--accent-glow), 0 0 14px var(--accent-glow); }
  40%  { box-shadow: 0 0 0 8px rgba(14,165,233,0.0), 0 0 22px var(--accent-glow); }
  70%  { box-shadow: 0 0 0 0 rgba(14,165,233,0.0), 0 0 14px var(--accent-glow); }
  100% { box-shadow: 0 0 0 0 var(--accent-glow), 0 0 14px var(--accent-glow); }
}
@keyframes modalIn { from { transform: scale(0.93) translateY(-20px); opacity: 0; } }

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--navy-800);
  border-bottom: 3px solid var(--sky-400);
  box-shadow: 0 4px 24px rgba(14,165,233,0.2);
}
.nav-top {
  display: flex; align-items: center;
  height: 48px; padding: 0 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-bottom {
  display: flex; align-items: center;
  min-height: 36px; padding: 4px 16px;
  gap: 2px; flex-wrap: wrap;
  background: var(--navy-900);
}
.nav-brand { display: flex; align-items: center; gap: 10px; margin-right: 20px; }
.brand-icon { color: var(--sky-400); font-size: 20px; }
.brand-text { font-family: var(--font-mono); font-weight: 700; font-size: 14px; color: #ffffff; letter-spacing: 0.8px; }
.nav-links { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: var(--radius);
  color: var(--sky-200); text-decoration: none;
  font-size: 12.5px; font-weight: 500; white-space: nowrap;
  transition: all var(--transition); border: 1px solid transparent;
}
.nav-link:hover { background: rgba(56,189,248,0.15); color: #ffffff; border-color: rgba(56,189,248,0.3); }
.nav-link.active { background: var(--sky-600); color: #ffffff; border-color: var(--sky-400); box-shadow: 0 0 10px rgba(14,165,233,0.4); }
.nav-user { display: flex; align-items: center; gap: 10px; margin-left: auto; padding-left: 16px; border-left: 1px solid rgba(255,255,255,0.12); }
.user-badge { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--sky-500), var(--sky-700)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; box-shadow: 0 0 10px rgba(14,165,233,0.5); }
.user-name { font-weight: 600; font-size: 12.5px; color: #fff; }
.user-role { font-size: 10px; color: var(--sky-200); background: rgba(56,189,248,0.18); padding: 1px 7px; border-radius: 20px; border: 1px solid rgba(56,189,248,0.3); }
.btn-logout { padding: 5px 12px; border-radius: var(--radius); background: rgba(220,38,38,0.15); color: #fca5a5; text-decoration: none; font-size: 12px; font-weight: 600; border: 1px solid rgba(220,38,38,0.3); transition: all var(--transition); }
.btn-logout:hover { background: var(--red-dark); color: #fff; box-shadow: 0 0 12px rgba(220,38,38,0.5); }

/* ── PAGE WRAP ── */
.page-wrap { margin-top: 87px; min-height: calc(100vh - 87px - 40px); padding: 20px; }

/* ── FOOTER ── */
.app-footer { display: flex; justify-content: space-between; align-items: center; height: 40px; padding: 0 20px; background: var(--bg-panel); border-top: 2px solid var(--sky-200); font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); box-shadow: 0 -2px 10px rgba(14,165,233,0.06); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 18px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  font-family: var(--font-ui); font-size: 13px; font-weight: 600;
  transition: all var(--transition); white-space: nowrap;
  text-decoration: none; line-height: 1;
  box-shadow: 0 0 0 2px rgba(14,165,233,0.22), 0 2px 8px rgba(0,0,0,0.07);
  position: relative;
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.btn:focus, .btn:focus-visible { outline: none; animation: heartbeat 1.1s ease-in-out infinite; }

.btn-primary   { background: var(--sky-500); color: #fff; border-color: var(--sky-600); }
.btn-primary:hover { background: var(--sky-600); box-shadow: 0 0 20px var(--accent-glow); }
.btn-success   { background: var(--green); color: #fff; border-color: var(--green-dark); box-shadow: 0 0 0 2px rgba(22,163,74,0.22), 0 2px 8px rgba(0,0,0,0.07); }
.btn-success:hover { background: var(--green-dark); box-shadow: 0 0 20px rgba(22,163,74,0.4); }
.btn-success:focus { animation: none; box-shadow: 0 0 0 4px rgba(22,163,74,0.35); }
.btn-danger    { background: var(--red); color: #fff; border-color: var(--red-dark); box-shadow: 0 0 0 2px rgba(220,38,38,0.22), 0 2px 8px rgba(0,0,0,0.07); }
.btn-danger:hover { background: var(--red-dark); box-shadow: 0 0 20px rgba(220,38,38,0.4); }
.btn-danger:focus { animation: none; box-shadow: 0 0 0 4px rgba(220,38,38,0.35); }
.btn-warning   { background: var(--amber); color: #fff; border-color: #b45309; box-shadow: 0 0 0 2px rgba(217,119,6,0.22), 0 2px 8px rgba(0,0,0,0.07); }
.btn-warning:hover { background: #b45309; box-shadow: 0 0 20px rgba(217,119,6,0.4); }
.btn-warning:focus { animation: none; box-shadow: 0 0 0 4px rgba(217,119,6,0.35); }
.btn-secondary { background: #fff; color: var(--text-secondary); border-color: var(--border); box-shadow: 0 0 0 2px rgba(14,165,233,0.1), 0 2px 6px rgba(0,0,0,0.05); }
.btn-secondary:hover { border-color: var(--sky-400); background: var(--sky-50); color: var(--sky-700); box-shadow: 0 0 14px rgba(14,165,233,0.25); }
.btn-teal   { background: var(--teal); color: #fff; border-color: #0f766e; box-shadow: 0 0 0 2px rgba(13,148,136,0.22), 0 2px 8px rgba(0,0,0,0.07); }
.btn-purple { background: var(--purple); color: #fff; border-color: #6d28d9; box-shadow: 0 0 0 2px rgba(124,58,237,0.22), 0 2px 8px rgba(0,0,0,0.07); }
.btn-sm     { padding: 5px 11px; font-size: 12px; }
.btn-lg     { padding: 12px 28px; font-size: 15px; font-weight: 700; }
.btn-icon   { padding: 6px 9px; font-size: 14px; }
.btn-block  { width: 100%; }

/* ── FORMS ── */
.form-group { margin-bottom: 14px; }
.form-label { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 700; color: var(--navy-700); text-transform: uppercase; letter-spacing: 0.6px; }
.form-control { width: 100%; padding: 8px 12px; background: var(--bg-input); color: var(--text-primary); border: 1.5px solid var(--border); border-radius: var(--radius); font-family: var(--font-mono); font-size: 13px; transition: all var(--transition); outline: none; }
.form-control:focus { border-color: var(--sky-400); box-shadow: 0 0 0 3px rgba(56,189,248,0.2); background: #fff; }
.form-control::placeholder { color: var(--text-muted); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-row { display: grid; gap: 14px; }
.form-row-2 { grid-template-columns: 1fr 1fr; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-row-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }

/* ── CARDS ── */
.card { background: var(--bg-card); border: 1.5px solid var(--border-light); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.card-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1.5px solid var(--sky-100); background: linear-gradient(135deg, var(--sky-50), #fff); }
.card-title { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; color: var(--navy-800); }
.card-body { padding: 16px; }

/* ── TABLES ── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
table.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table thead th { padding: 11px 13px; text-align: left; background: linear-gradient(135deg, var(--sky-600), var(--navy-700)); border-bottom: 2px solid var(--sky-400); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: #ffffff; white-space: nowrap; }
.data-table thead th:first-child { border-radius: var(--radius-lg) 0 0 0; }
.data-table thead th:last-child { border-radius: 0 var(--radius-lg) 0 0; }
.data-table tbody tr:nth-child(odd)  { background: var(--sky-50); color: var(--text-primary); }
.data-table tbody tr:nth-child(even) { background: #ffffff; color: var(--text-secondary); }
.data-table tbody tr { border-bottom: 1px solid var(--border-light); transition: background var(--transition), box-shadow var(--transition); }
.data-table tbody tr:hover { background: var(--sky-100) !important; box-shadow: inset 3px 0 0 var(--sky-400); }
.data-table td { padding: 9px 13px; }
.data-table .num { text-align: right; font-family: var(--font-mono); color: var(--navy-800); font-weight: 600; }
.data-table .center { text-align: center; }
.data-table .actions { display: flex; gap: 4px; }
.data-table tfoot td { padding: 10px 13px; font-weight: 700; background: linear-gradient(135deg, var(--sky-100), var(--sky-50)); border-top: 2px solid var(--sky-300); color: var(--navy-800); }

/* ── BADGES ── */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; }
.badge-success  { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.badge-danger   { background: #fee2e2; color: #dc2626; border: 1px solid #fca5a5; }
.badge-warning  { background: #fef3c7; color: #d97706; border: 1px solid #fde68a; }
.badge-info     { background: var(--sky-100); color: var(--sky-700); border: 1px solid var(--sky-200); }
.badge-secondary { background: #f1f5f9; color: var(--text-muted); border: 1px solid var(--border); }
.badge-purple   { background: #ede9fe; color: #6d28d9; border: 1px solid #c4b5fd; }

/* ── ALERTS ── */
.alert { padding: 10px 14px; border-radius: var(--radius); margin-bottom: 14px; display: flex; align-items: flex-start; gap: 8px; font-size: 13px; font-weight: 500; }
.alert-success { background: #f0fdf4; border: 1.5px solid #86efac; color: #15803d; }
.alert-danger  { background: #fff1f2; border: 1.5px solid #fca5a5; color: #dc2626; }
.alert-warning { background: #fffbeb; border: 1.5px solid #fde68a; color: #d97706; }
.alert-info    { background: var(--sky-50); border: 1.5px solid var(--sky-200); color: var(--sky-700); }

/* ── MODAL ── */
.modal-overlay { position: fixed; inset: 0; z-index: 9000; background: rgba(15,35,64,0.5); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; }
.modal-overlay.show { display: flex; }
.modal { background: var(--bg-card); border: 1.5px solid var(--sky-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 90%; max-width: 680px; max-height: 90vh; display: flex; flex-direction: column; animation: modalIn 0.2s ease; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1.5px solid var(--sky-100); background: linear-gradient(135deg, var(--sky-50), #fff); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.modal-title { font-weight: 700; font-size: 15px; color: var(--navy-800); }
.modal-close { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 18px; line-height: 1; padding: 4px; border-radius: 4px; transition: all var(--transition); }
.modal-close:hover { background: #fee2e2; color: var(--red); }
.modal-body { padding: 18px; overflow-y: auto; flex: 1; }
.modal-footer { padding: 14px 18px; border-top: 1px solid var(--sky-100); display: flex; gap: 8px; justify-content: flex-end; background: var(--sky-50); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.modal-lg { max-width: 900px; }
.modal-xl { max-width: 1100px; }

/* ── SEARCH BAR ── */
.search-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.search-input { flex: 1; padding: 9px 14px; background: #fff; color: var(--text-primary); border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 13px; font-family: var(--font-ui); transition: all var(--transition); outline: none; }
.search-input:focus { border-color: var(--sky-400); box-shadow: 0 0 0 3px rgba(56,189,248,0.2); }

/* ── GRIDS ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 16px; }

/* ── STAT CARDS ── */
.stat-card { background: var(--bg-card); border: 1.5px solid var(--border-light); border-radius: var(--radius-lg); padding: 18px; display: flex; align-items: flex-start; gap: 14px; box-shadow: var(--shadow); transition: all var(--transition); }
.stat-card:hover { border-color: var(--sky-300); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.stat-icon { width: 48px; height: 48px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; background: var(--sky-100); color: var(--sky-600); }
.stat-value { font-size: 22px; font-weight: 700; font-family: var(--font-mono); line-height: 1.2; color: var(--navy-800); }
.stat-label { font-size: 11px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; margin-top: 3px; }

/* ── POS SCREEN ── */
.pos-layout { display: grid; grid-template-columns: 1fr 370px; gap: 16px; height: calc(100vh - 87px - 40px - 40px); }
.pos-left { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.pos-right { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.pos-header { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; border: 1.5px solid var(--border-light); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.pos-mode-badge { padding: 4px 14px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.pos-mode-cash    { background: #dcfce7; color: #16a34a; border: 1px solid #86efac; }
.pos-mode-invoice { background: var(--sky-100); color: var(--sky-700); border: 1px solid var(--sky-200); }

.scan-bar { position: relative; }
.scan-input { width: 100%; padding: 10px 44px 10px 40px; background: #fff; border: 2px solid var(--sky-400); border-radius: var(--radius); color: var(--text-primary); font-family: var(--font-mono); font-size: 14px; outline: none; transition: box-shadow var(--transition); }
.scan-input:focus { box-shadow: 0 0 0 4px rgba(56,189,248,0.2); }
.scan-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--sky-500); font-size: 16px; pointer-events: none; }
.scan-clear { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 14px; padding: 2px; }

.item-search-drop { position: absolute; top: 100%; left: 0; right: 0; z-index: 500; background: #fff; border: 1.5px solid var(--sky-300); border-top: none; border-radius: 0 0 var(--radius) var(--radius); max-height: 220px; overflow-y: auto; display: none; box-shadow: var(--shadow-md); }
.item-search-drop.open { display: block; }
.item-search-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; cursor: pointer; border-bottom: 1px solid var(--border-light); transition: background var(--transition); }
.item-search-row:hover, .item-search-row.selected { background: var(--sky-50); }
.item-search-row .item-name  { flex: 1; font-weight: 600; font-size: 13px; color: var(--text-primary); }
.item-search-row .item-code  { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.item-search-row .item-price { font-family: var(--font-mono); font-weight: 700; color: var(--sky-600); }
.item-search-row .item-stock { font-size: 11px; color: var(--text-muted); }

.cart-wrap { flex: 1; overflow-y: auto; border-radius: var(--radius); border: 1.5px solid var(--border-light); box-shadow: var(--shadow); }
.cart-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cart-table thead th { padding: 8px 10px; text-align: left; background: linear-gradient(135deg, var(--sky-600), var(--navy-700)); position: sticky; top: 0; z-index: 1; border-bottom: 2px solid var(--sky-400); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #ffffff; }
.cart-table tbody tr:nth-child(odd)  { background: var(--sky-50); }
.cart-table tbody tr:nth-child(even) { background: #ffffff; }
.cart-table tbody tr { border-bottom: 1px solid var(--border-light); }
.cart-table tbody tr:hover { background: var(--sky-100) !important; }
.cart-table tbody tr.selected-row { background: var(--sky-100) !important; box-shadow: inset 3px 0 0 var(--sky-500); }
.cart-table td { padding: 6px 10px; vertical-align: middle; }
.cart-table .num { text-align: right; font-family: var(--font-mono); color: var(--navy-800); }

.cart-input { background: transparent; border: 1px solid transparent; color: var(--text-primary); font-family: var(--font-mono); font-size: 13px; width: 100%; outline: none; padding: 2px 4px; border-radius: 3px; }
.cart-input:focus { border-color: var(--sky-400); background: #fff; }
.cart-input.qty-input { width: 60px; text-align: center; }
.cart-input.disc-input { width: 50px; text-align: right; }
.cart-input.price-input { width: 90px; text-align: right; }

.unit-select { background: #fff; border: 1px solid var(--border); color: var(--text-primary); font-size: 12px; padding: 2px 4px; border-radius: 3px; outline: none; cursor: pointer; }

.cart-del-btn { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 14px; padding: 2px 4px; border-radius: 3px; transition: all var(--transition); }
.cart-del-btn:hover { background: #fee2e2; color: var(--red); }

.totals-panel { background: #fff; border: 1.5px solid var(--border-light); border-radius: var(--radius-lg); padding: 14px; box-shadow: var(--shadow); }
.total-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--border-light); font-size: 13px; }
.total-row:last-child { border-bottom: none; }
.total-row.grand { font-size: 19px; font-weight: 700; padding: 10px 0; margin-top: 4px; color: var(--sky-700); font-family: var(--font-mono); }
.total-label { color: var(--text-muted); font-weight: 500; }
.total-value { font-family: var(--font-mono); font-weight: 700; color: var(--navy-800); }

.payment-section { padding: 12px 0; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); margin: 8px 0; }
.payment-input { width: 100%; padding: 10px 12px; background: #fff; color: var(--text-primary); border: 2px solid var(--sky-300); border-radius: var(--radius); font-family: var(--font-mono); font-size: 16px; font-weight: 700; text-align: right; outline: none; transition: all var(--transition); }
.payment-input:focus { border-color: var(--sky-500); box-shadow: 0 0 0 3px rgba(14,165,233,0.2); }

.change-display { margin-top: 8px; padding: 8px 12px; background: #f0fdf4; border: 1px solid #86efac; border-radius: var(--radius); display: flex; justify-content: space-between; font-family: var(--font-mono); font-weight: 700; font-size: 14px; }
.change-display .change-val { color: #16a34a; }

.pos-action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pos-action-btn { padding: 10px 6px; border: 1px solid transparent; border-radius: var(--radius); cursor: pointer; font-family: var(--font-ui); font-size: 12px; font-weight: 700; transition: all var(--transition); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 3px; box-shadow: 0 0 0 2px rgba(14,165,233,0.2); }
.pos-action-btn:focus { animation: heartbeat 1.1s ease-in-out infinite; outline: none; }
.pos-action-btn .shortcut { font-size: 9px; font-family: var(--font-mono); opacity: 0.8; background: rgba(0,0,0,0.12); padding: 0 4px; border-radius: 2px; }

.cust-panel { background: var(--sky-50); border: 1px solid var(--sky-200); border-radius: var(--radius); padding: 10px; }
.cust-panel label { font-size: 10px; color: var(--sky-700); font-weight: 700; display: block; text-transform: uppercase; letter-spacing: 0.4px; }
.cust-name { font-weight: 700; font-size: 13px; color: var(--navy-800); }
.cust-id   { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }

/* ── PRINT ── */
@media print {
  body { background: #fff; color: #000; }
  .navbar, .app-footer, .no-print { display: none !important; }
  .page-wrap { margin-top: 0; padding: 0; }
  .print-doc { font-family: Arial, sans-serif; font-size: 11pt; }
  .print-header { text-align: center; border-bottom: 2px solid #000; padding-bottom: 8px; margin-bottom: 8px; }
  .print-table { width: 100%; border-collapse: collapse; }
  .print-table th, .print-table td { border: 1px solid #999; padding: 4px 6px; }
  .print-table th { background: #eee; }
  .print-totals { margin-top: 10px; }
  .print-footer { margin-top: 20px; font-size: 9pt; text-align: center; }
}

/* ── UTILITIES ── */
.text-right   { text-align: right; }
.text-center  { text-align: center; }
.text-muted   { color: var(--text-muted); }
.text-accent  { color: var(--text-accent); }
.text-danger  { color: var(--text-danger); }
.text-warn    { color: var(--text-warn); }
.text-info    { color: var(--text-info); }
.text-success { color: var(--text-success); }
.font-mono    { font-family: var(--font-mono); }
.fw-bold      { font-weight: 700; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.flex  { display: flex; }
.flex-1 { flex: 1; }
.align-center { align-items: center; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.hidden { display: none !important; }
.w-full { width: 100%; }

/* ── PAGINATION ── */
.pagination { display: flex; gap: 4px; align-items: center; margin-top: 14px; }
.page-btn { padding: 5px 11px; border-radius: var(--radius); border: 1.5px solid var(--border); background: #fff; color: var(--text-secondary); cursor: pointer; font-size: 12px; transition: all var(--transition); text-decoration: none; box-shadow: 0 0 0 1px rgba(14,165,233,0.1); }
.page-btn:hover { background: var(--sky-50); border-color: var(--sky-400); color: var(--sky-700); }
.page-btn.active { background: var(--sky-500); color: #fff; border-color: var(--sky-600); box-shadow: 0 0 12px rgba(14,165,233,0.3); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── KEY HINTS ── */
.kb-hint { display: inline-flex; align-items: center; padding: 1px 5px; border-radius: 3px; background: var(--sky-50); border: 1px solid var(--sky-200); font-family: var(--font-mono); font-size: 10px; font-weight: 700; color: var(--sky-700); }

/* ── TABS ── */
.tab-bar { display: flex; gap: 0; border-bottom: 2px solid var(--sky-200); margin-bottom: 16px; }
.tab-btn { padding: 8px 16px; border: none; background: none; cursor: pointer; color: var(--text-muted); font-family: var(--font-ui); font-size: 13px; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all var(--transition); }
.tab-btn.active { color: var(--sky-700); border-bottom-color: var(--sky-500); }
.tab-btn:hover  { color: var(--text-primary); background: var(--sky-50); border-radius: var(--radius) var(--radius) 0 0; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ── AUTOCOMPLETE ── */
.autocomplete-wrap { position: relative; }
.autocomplete-list { position: absolute; top: 100%; left: 0; right: 0; z-index: 900; background: #fff; border: 1.5px solid var(--sky-300); border-top: none; border-radius: 0 0 var(--radius) var(--radius); max-height: 200px; overflow-y: auto; display: none; box-shadow: var(--shadow-md); }
.autocomplete-list.open { display: block; }
.autocomplete-item { padding: 8px 12px; cursor: pointer; border-bottom: 1px solid var(--border-light); font-size: 13px; transition: background var(--transition); display: flex; justify-content: space-between; align-items: center; color: var(--text-primary); }
.autocomplete-item:hover, .autocomplete-item.sel { background: var(--sky-50); color: var(--sky-700); }
.ac-secondary { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: var(--sky-50); }
::-webkit-scrollbar-thumb { background: var(--sky-200); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--sky-400); }

/* ── PAGE TITLE ── */
.page-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.page-title h1 { font-size: 21px; font-weight: 700; display: flex; align-items: center; gap: 8px; color: var(--navy-800); }
.page-title .breadcrumb { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ── NUMBER INPUT ── */
input[type=number] { -moz-appearance: textfield; }
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; }
