/* ============================================================
   Voltanet Smart Market — Web Demo
   Brand: Voltanet (navy #19232d / orange #dd421d) · Comfortaa
   ============================================================ */
@font-face {
  font-family: 'Comfortaa';
  src: url('../fonts/Comfortaa-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --primary: #dd421d;
  --primary-dark: #c42a00;
  --primary-light: #f0744e;
  --primary-50: #fff3ef;
  --primary-100: #ffe4da;
  --navy: #19232d;
  --navy-700: #243040;
  --surface: #F9FAFB;
  --border: #E5E7EB;
  --muted: #6B7280;
  --text: #1A1A1A;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #3B82F6;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --shadow-card: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-modal: 0 20px 60px rgba(0,0,0,.25);
}

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }
html, body { height: 100%; margin: 0; padding: 0; }
body {
  font-family: 'Comfortaa', 'Inter', system-ui, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  overflow: hidden;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #F3F4F6; border-radius: 3px; }
::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9CA3AF; }

.money { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ---------- Layout ---------- */
#app { height: 100%; }
.layout { display: flex; height: 100vh; overflow: hidden; }
.main-col { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.page { flex: 1; overflow: hidden; display: flex; flex-direction: column; }
.page-scroll { flex: 1; overflow-y: auto; padding: 24px; }

/* ---------- Sidebar ---------- */
.sidebar {
  width: 208px; flex-shrink: 0; background: #fff;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; height: 100%;
}
.sidebar-logo {
  padding: 16px 12px; border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.sidebar-logo img { width: 92px; height: auto; }
.sidebar-logo span {
  font-size: 10px; font-weight: 700; color: rgba(221,66,29,.8);
  letter-spacing: .22em; text-transform: uppercase; margin-top: 2px;
}
.sidebar-nav { flex: 1; padding: 12px 8px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.nav-btn {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; border-radius: 12px; font-size: 13px; font-weight: 600;
  color: #4B5563; transition: all .15s; text-align: left;
}
.nav-btn svg { flex-shrink: 0; }
.nav-btn:hover { background: rgba(221,66,29,.08); color: var(--primary); }
.nav-btn.active { background: var(--primary); color: #fff; box-shadow: var(--shadow-card); }
.sidebar-user { padding: 12px 8px; border-top: 1px solid var(--border); }
.user-chip {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  border-radius: 12px; background: var(--surface); margin-bottom: 4px;
}
.avatar {
  width: 28px; height: 28px; border-radius: 50%; background: var(--primary);
  color: #fff; font-weight: 700; font-size: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.user-chip .u-name { font-size: 13px; font-weight: 700; color: #111827; line-height: 1.2; }
.user-chip .u-role { font-size: 11px; color: #9CA3AF; }
.logout-btn {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; border-radius: 12px; font-size: 13px; font-weight: 600;
  color: #6B7280; transition: all .15s;
}
.logout-btn:hover { background: #FEF2F2; color: #DC2626; }

/* ---------- Header ---------- */
.header {
  height: 56px; background: #fff; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; flex-shrink: 0; gap: 12px;
}
.header h1 { font-size: 16px; font-weight: 700; margin: 0; color: #111827; }
.header-right { display: flex; align-items: center; gap: 14px; }
.header-time { font-size: 13px; color: #6B7280; white-space: nowrap; }
.header-time b { font-weight: 600; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
}
.pill-online { background: #ECFDF5; color: #047857; }
.pill-demo { background: var(--primary-50); color: var(--primary-dark); letter-spacing: .08em; }
.lang-switch {
  display: inline-flex; border: 1px solid var(--border); border-radius: 999px;
  overflow: hidden; background: #fff;
}
.lang-switch button {
  padding: 4px 12px; font-size: 11px; font-weight: 700; color: #9CA3AF;
  transition: all .15s; letter-spacing: .04em;
}
.lang-switch button.active { background: var(--navy); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: 12px; font-weight: 700; font-size: 14px;
  min-height: 44px; transition: all .15s; user-select: none;
}
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); }
.btn-secondary { background: #fff; border: 1px solid var(--border); color: #374151; }
.btn-secondary:hover:not(:disabled) { background: var(--surface); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover:not(:disabled) { background: #059669; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #DC2626; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-sm { padding: 7px 14px; min-height: 36px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.icon-btn {
  width: 32px; height: 32px; border-radius: 10px; display: inline-flex;
  align-items: center; justify-content: center; color: #9CA3AF; transition: all .15s;
}
.icon-btn:hover { background: #F3F4F6; color: #374151; }
.icon-btn.danger:hover { background: #FEF2F2; color: #DC2626; }

/* ---------- Cards / forms ---------- */
.card { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.card-header {
  padding: 16px 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.card-header h3 { margin: 0; font-size: 15px; font-weight: 700; }
.card-body { padding: 24px; }
.input, .select {
  width: 100%; padding: 11px 16px; border-radius: 12px; border: 1px solid var(--border);
  background: #fff; color: #111827; font-size: 14px; min-height: 44px; outline: none;
  transition: all .15s;
}
.input:focus, .select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(221,66,29,.15); }
.input::placeholder { color: #9CA3AF; }
.label { display: block; font-size: 13px; font-weight: 700; color: #374151; margin-bottom: 6px; }
.field { margin-bottom: 14px; }

.badge {
  display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
}
.badge-success { background: #D1FAE5; color: #065F46; }
.badge-warning { background: #FEF3C7; color: #92400E; }
.badge-danger { background: #FEE2E2; color: #991B1B; }
.badge-info { background: #DBEAFE; color: #1E40AF; }
.badge-gray { background: #F3F4F6; color: #374151; }

/* ---------- Tables ---------- */
.table-wrap { overflow: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow-card); }
table.data { width: 100%; border-collapse: collapse; }
table.data th {
  padding: 12px 16px; text-align: left; font-size: 11px; font-weight: 700;
  color: #6B7280; text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 1px solid var(--border); background: var(--surface);
  white-space: nowrap; position: sticky; top: 0;
}
table.data td { padding: 12px 16px; font-size: 13px; color: #374151; border-bottom: 1px solid var(--border); }
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: #FAFAFA; }
.td-right { text-align: right; }
th.td-right { text-align: right; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); backdrop-filter: blur(3px);
  z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px;
  animation: fadeIn .15s ease-out;
}
.modal {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-modal);
  width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto;
  animation: fadeIn .15s ease-out;
}
.modal-sm { max-width: 400px; }
.modal-lg { max-width: 640px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Login ---------- */
.login-screen {
  height: 100vh; overflow-y: auto;
  background: linear-gradient(135deg, #19232d 0%, #2a3545 100%);
  display: flex; align-items: flex-start; justify-content: center; padding: 28px 16px;
}
.login-box { width: 100%; max-width: 330px; }
.login-logo { text-align: center; margin-bottom: 16px; }
.login-logo img { width: 132px; height: auto; }
.login-logo p {
  color: #9CA3AF; font-size: 11px; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase; margin: 6px 0 0;
}
.login-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-modal); padding: 20px; }
.login-card h2 { text-align: center; font-size: 16px; margin: 0 0 2px; }
.login-card .sub { text-align: center; font-size: 12px; color: #6B7280; margin: 0 0 14px; }
.pin-dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 14px; }
.pin-dot {
  width: 36px; height: 36px; border-radius: 12px; border: 2px solid #E5E7EB;
  background: #F9FAFB; display: flex; align-items: center; justify-content: center;
  transition: all .12s;
}
.pin-dot.filled { border-color: var(--primary); background: var(--primary-50); }
.pin-dot.filled::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.keypad button {
  height: 50px; border-radius: 12px; font-weight: 700; font-size: 18px;
  background: #F9FAFB; border: 1px solid #E5E7EB; color: #111827;
  transition: all .12s; user-select: none;
}
.keypad button:hover { background: #F3F4F6; }
.keypad button:active { transform: scale(.94); }
.keypad button.k-clear { background: #F3F4F6; color: #4B5563; border: none; }
.keypad button.k-del { background: #FEF2F2; color: #DC2626; border: none; }
.login-hint {
  margin-top: 12px; text-align: center; font-size: 12px;
  background: var(--primary-50); border: 1px dashed rgba(221,66,29,.4);
  color: var(--primary-dark); border-radius: 10px; padding: 8px 10px; font-weight: 600;
}
.login-error {
  margin-bottom: 10px; padding: 8px 12px; background: #FEF2F2; border: 1px solid #FECACA;
  border-radius: 12px; color: #B91C1C; font-size: 12px; text-align: center;
}
.login-footer { text-align: center; color: #6B7280; font-size: 11px; margin-top: 14px; }
.login-disclaimer {
  text-align: center; color: rgba(255,255,255,.42); font-size: 10px;
  line-height: 1.6; margin: 10px auto 0; max-width: 310px;
}
.login-lang { display: flex; justify-content: center; margin-bottom: 14px; }
.login-lang .lang-switch { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); }
.login-lang .lang-switch button { color: rgba(255,255,255,.55); }
.login-lang .lang-switch button.active { background: var(--primary); color: #fff; }

/* ---------- POS ---------- */
.pos-wrap { display: flex; height: 100%; overflow: hidden; }
.pos-left { flex: 1; display: flex; flex-direction: column; padding: 16px; overflow: hidden; min-width: 0; }
.search-box { position: relative; margin-bottom: 14px; }
.search-box .input { padding-left: 44px; padding-right: 44px; font-size: 15px; }
.search-box .s-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #9CA3AF; display: flex; }
.search-box .scan-icon { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: #9CA3AF; display: flex; }
.search-results { margin-bottom: 14px; overflow: hidden; }
.sr-item {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border);
  transition: background .12s; min-height: 54px; gap: 12px;
}
.sr-item:last-child { border-bottom: none; }
.sr-item:hover { background: var(--surface); }
.sr-item .sr-name { font-size: 13px; font-weight: 700; color: #111827; }
.sr-item .sr-meta { font-size: 11px; color: #6B7280; margin-top: 2px; }
.sr-item .sr-price { font-size: 13px; font-weight: 700; color: var(--primary); text-align: right; }
.sr-item .sr-low { font-size: 11px; color: #B45309; font-weight: 600; display: block; }
.pos-grid {
  flex: 1; overflow-y: auto; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px; align-content: start; padding-bottom: 8px;
}
.p-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 12px; text-align: left; transition: all .12s;
  display: flex; flex-direction: column; gap: 6px; min-height: 96px;
}
.p-card:hover { border-color: rgba(221,66,29,.5); box-shadow: 0 4px 12px rgba(0,0,0,.08); transform: translateY(-1px); }
.p-card .p-emoji { font-size: 20px; }
.p-card .p-name { font-size: 12px; font-weight: 700; color: #111827; line-height: 1.3; }
.p-card .p-price { font-size: 13px; font-weight: 700; color: var(--primary); margin-top: auto; }
.p-card .p-stock { font-size: 10px; color: #9CA3AF; }
.p-card.low .p-stock { color: #B45309; font-weight: 700; }
.sale-type { display: flex; gap: 8px; margin-bottom: 12px; }
.sale-type button {
  flex: 1; padding: 10px; border-radius: 12px; font-size: 13px; font-weight: 700;
  background: #fff; border: 1px solid var(--border); color: #4B5563; transition: all .15s;
}
.sale-type button.active-retail { background: var(--primary); border-color: var(--primary); color: #fff; }
.sale-type button.active-wholesale { background: var(--navy); border-color: var(--navy); color: #fff; }
.rates-line { display: flex; gap: 16px; font-size: 11px; color: #9CA3AF; padding-top: 10px; flex-shrink: 0; }

.pos-cart {
  width: 320px; flex-shrink: 0; background: #fff; border-left: 1px solid var(--border);
  display: flex; flex-direction: column; overflow: hidden;
}
.cart-head {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.cart-head .ct { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.cart-count {
  background: var(--primary); color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 999px; min-width: 20px; height: 20px; padding: 0 4px;
  display: inline-flex; align-items: center; justify-content: center;
}
.cart-items { flex: 1; overflow-y: auto; }
.cart-empty {
  height: 100%; display: flex; flex-direction: column; align-items: center;
  justify-content: center; color: #9CA3AF; padding: 24px; text-align: center; gap: 6px;
}
.cart-empty svg { opacity: .3; margin-bottom: 6px; }
.ci { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.ci-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.ci-name { font-size: 13px; font-weight: 700; color: #111827; line-height: 1.25; }
.ci-unit { font-size: 11px; color: #9CA3AF; margin-top: 2px; }
.qty-ctrl { display: flex; align-items: center; gap: 4px; }
.qty-btn {
  width: 28px; height: 28px; border-radius: 9px; border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; transition: background .12s; background: #fff;
}
.qty-btn:hover { background: var(--surface); }
.qty-num { width: 30px; text-align: center; font-size: 13px; font-weight: 700; }
.ci-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.ci-bottom .lbl { font-size: 11px; color: #9CA3AF; }
.ci-sub { font-weight: 700; font-size: 13px; }
.ci-x {
  width: 20px; height: 20px; border-radius: 6px; display: inline-flex; align-items: center;
  justify-content: center; color: #D1D5DB; margin-left: 8px;
}
.ci-x:hover { background: #FEF2F2; color: #EF4444; }
.cart-totals { border-top: 1px solid var(--border); padding: 12px 16px 8px; }
.tot-row { display: flex; justify-content: space-between; font-size: 13px; color: #4B5563; padding: 2px 0; }
.tot-row.grand { font-weight: 800; font-size: 16px; color: #111827; padding-top: 4px; }
.tot-row.grand .val { color: var(--primary); }
.tot-row.alt { border-top: 1px solid rgba(229,231,235,.6); margin-top: 4px; padding-top: 6px; color: #92400E; font-weight: 600; }
.tot-row.gold { font-size: 11px; color: #9CA3AF; }
.cart-actions { display: flex; gap: 8px; padding: 8px 16px 16px; }
.cart-actions .btn { flex: 1; }

/* ---------- Payment modal ---------- */
.pay-total {
  border-radius: var(--radius); background: #111827; color: #fff;
  text-align: center; padding: 18px; margin-bottom: 18px;
}
.pay-total .pt-label { font-size: 11px; color: #9CA3AF; margin-bottom: 4px; }
.pay-total .pt-amount { font-size: 30px; font-weight: 800; }
.pay-total .pt-amount small { font-size: 14px; font-weight: 400; color: #9CA3AF; }
.pay-total .pt-alt { display: flex; justify-content: center; gap: 16px; font-size: 11px; color: #6B7280; margin-top: 6px; }
.pm-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.pm-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 16px;
  border: 2px solid var(--border); border-radius: 12px; text-align: left;
  background: #fff; transition: all .13s;
}
.pm-item:hover { border-color: rgba(221,66,29,.4); background: #FAFAFA; }
.pm-item.selected { border-color: var(--primary); background: rgba(221,66,29,.05); }
.pm-item .pm-icon { font-size: 20px; }
.pm-item .pm-label { font-size: 13px; font-weight: 700; color: #1F2937; }
.pm-item.selected .pm-label { color: var(--primary); }
.pm-item .pm-sub { font-size: 11px; color: #9CA3AF; }
.pm-dot { width: 15px; height: 15px; border-radius: 50%; background: var(--primary); margin-left: auto; flex-shrink: 0; }
.amount-wrap { position: relative; }
.amount-wrap .cur { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); font-weight: 700; color: #6B7280; font-size: 14px; }
.amount-wrap .input { padding-left: 42px; font-size: 18px; font-weight: 700; }
.pay-summary { border-radius: 12px; padding: 13px 15px; margin: 16px 0; font-size: 13px; }
.pay-summary.ok { background: #ECFDF5; border: 1px solid #A7F3D0; }
.pay-summary.pending { background: #FFFBEB; border: 1px solid #FDE68A; }
.pay-summary .row { display: flex; justify-content: space-between; padding: 2px 0; }
.pay-summary .ok-txt { color: #047857; font-weight: 700; }
.pay-summary .warn-txt { color: #B45309; font-weight: 700; }
.success-icon {
  width: 64px; height: 64px; border-radius: 50%; background: #D1FAE5;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 12px;
  color: #059669;
}
.change-box { background: #ECFDF5; border: 1px solid #A7F3D0; border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.change-box .cb-l { font-size: 13px; color: #047857; font-weight: 600; }
.change-box .cb-v { font-size: 24px; font-weight: 800; color: #065F46; }
.change-box .cb-s { font-size: 11px; color: #059669; margin-top: 2px; }

/* ---------- Receipt ---------- */
.receipt {
  font-family: 'Courier New', monospace; background: #fff; color: #000;
  width: 300px; margin: 0 auto; padding: 18px 14px; font-size: 12px;
  border: 1px solid var(--border); border-radius: 8px;
  box-shadow: var(--shadow-card);
}
.receipt h4 { text-align: center; font-size: 14px; margin: 0 0 2px; letter-spacing: .5px; }
.receipt .r-c { text-align: center; }
.receipt .r-sep { border: none; border-top: 1px dashed #777; margin: 7px 0; }
.receipt table { width: 100%; border-collapse: collapse; font-size: 11px; }
.receipt th { font-size: 9px; text-align: left; border-bottom: 1px solid #999; padding: 3px 0; text-transform: uppercase; }
.receipt td { padding: 3px 0; vertical-align: top; }
.receipt .r-total td { font-weight: 700; font-size: 14px; border-top: 2px solid #000; border-bottom: 2px solid #000; padding: 5px 0 4px; }
.receipt .r-foot { font-size: 9px; text-align: center; color: #444; margin-top: 6px; }

/* ---------- Stats / dashboard ---------- */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 20px; box-shadow: var(--shadow-card); }
.stat-card .st-label { font-size: 12px; color: #6B7280; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.stat-card .st-value { font-size: 24px; font-weight: 800; color: #111827; margin-top: 6px; }
.stat-card .st-sub { font-size: 11px; color: #9CA3AF; margin-top: 2px; }
.stat-card.accent .st-value { color: var(--primary); }
.chart-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 24px; box-shadow: var(--shadow-card); }
.chart-card h3 { margin: 0 0 14px; font-size: 14px; font-weight: 700; }
.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-bottom: 20px; }
.hbar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; font-size: 12px; }
.hbar-label { width: 118px; flex-shrink: 0; color: #4B5563; font-weight: 600; }
.hbar-track { flex: 1; height: 10px; background: #F3F4F6; border-radius: 999px; overflow: hidden; }
.hbar-fill { height: 100%; border-radius: 999px; background: var(--primary); }
.hbar-val { width: 76px; text-align: right; font-weight: 700; color: #111827; flex-shrink: 0; }

/* ---------- Screen headers ---------- */
.screen-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.screen-head .sh-title h2 { margin: 0; font-size: 17px; }
.screen-head .sh-title p { margin: 2px 0 0; font-size: 13px; color: #6B7280; }
.screen-head .sh-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.filters { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.filters .input, .filters .select { width: auto; min-width: 160px; }
.filters .grow { flex: 1; min-width: 200px; }

/* ---------- Cash ---------- */
.cash-status-open { border-left: 4px solid var(--success); }
.cash-status-closed { border-left: 4px solid #9CA3AF; }

/* ---------- Empty state ---------- */
.empty {
  text-align: center; color: #9CA3AF; padding: 42px 20px; font-size: 13px;
}

/* ---------- Demo ribbon ---------- */
.demo-ribbon {
  position: fixed; top: 14px; right: -34px; z-index: 90;
  background: var(--primary); color: #fff; font-size: 11px; font-weight: 800;
  letter-spacing: .25em; padding: 5px 42px; transform: rotate(38deg);
  box-shadow: 0 2px 8px rgba(0,0,0,.25); pointer-events: none;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  background: var(--navy); color: #fff; padding: 11px 22px; border-radius: 12px;
  font-size: 13px; font-weight: 600; z-index: 100; box-shadow: var(--shadow-modal);
  animation: fadeIn .2s ease-out;
}

/* ---------- Settings ---------- */
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-2 { grid-template-columns: 1fr; }
  .pos-cart { width: 290px; }
}
@media (max-width: 820px) {
  .sidebar { width: 62px; }
  .sidebar-logo img { width: 36px; }
  .sidebar-logo span, .nav-btn span, .user-chip div, .logout-btn span { display: none; }
  .nav-btn, .logout-btn { justify-content: center; padding: 12px 0; }
  .user-chip { justify-content: center; padding: 8px 0; }
  .header-time { display: none; }
}
@media (max-width: 700px) {
  body { overflow: auto; }
  .pos-wrap { flex-direction: column; overflow-y: auto; }
  .pos-left { overflow: visible; }
  .pos-grid { overflow: visible; max-height: none; }
  .pos-cart { width: 100%; border-left: none; border-top: 1px solid var(--border); }
  .cart-items { max-height: 300px; }
}
