/* Stok Gudang Internal — PT Future Boeled Indonesia
   Gaya: Apple modern clean, biru muda dari logo BOELED. */

:root {
  --blue-50: #EEF7FD;
  --blue-100: #D9EDFB;
  --blue-500: #4DAAE8;
  --blue-600: #2F8FD0;
  --blue-700: #1F6FA8;

  --bg: #F5F7FA;
  --bg-grad-1: #EEF7FD;
  --bg-grad-2: #F7FBFE;
  --surface: #FFFFFF;
  --surface-2: #F2F4F7;
  --glass: rgba(255, 255, 255, 0.72);
  --text: #1D1D1F;
  --text-2: #6E6E73;
  --text-3: #8E8E93;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.14);
  --track: #E9EDF2;

  --accent: var(--blue-600);
  --accent-strong: var(--blue-700);
  --accent-soft: var(--blue-50);
  --on-accent: #FFFFFF;

  --green: #1F9D55;   --green-soft: #E6F6EC;
  --orange: #C26A00;  --orange-soft: #FFF2E0;
  --red: #D7263D;     --red-soft: #FDE8EB;
  --purple: #7A4FD1;  --purple-soft: #F0EBFC;
  --amber: #B7791F;   --amber-soft: #FDF5E3;
  --teal: #0F8F8A;    --teal-soft: #E2F5F4;
  --indigo: #4457C9;  --indigo-soft: #E9ECFB;
  --pink: #C2437A;    --pink-soft: #FCE9F1;
  --cyan: #1786A8;    --cyan-soft: #E1F3F9;
  --slate: #4B5563;   --slate-soft: #EEF0F3;

  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 16px rgba(16, 24, 40, 0.04);
  --shadow-lg: 0 10px 40px rgba(16, 24, 40, 0.10);
  --ease: cubic-bezier(.25, .1, .25, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0D10;
    --bg-grad-1: #0E1824;
    --bg-grad-2: #0B0D10;
    --surface: #16181C;
    --surface-2: #202329;
    --glass: rgba(22, 24, 28, 0.72);
    --text: #F5F5F7;
    --text-2: #A1A1A6;
    --text-3: #7C7C82;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --track: #2A2E35;
    --accent: #5AB4EE;
    --accent-strong: #84C8F3;
    --accent-soft: rgba(77, 170, 232, 0.16);
    --on-accent: #06243A;
    --green: #4CD483;   --green-soft: rgba(76, 212, 131, 0.14);
    --orange: #FFB259;  --orange-soft: rgba(255, 178, 89, 0.14);
    --red: #FF6B7D;     --red-soft: rgba(255, 107, 125, 0.15);
    --purple: #B79BFF;  --purple-soft: rgba(183, 155, 255, 0.15);
    --amber: #F2C46B;   --amber-soft: rgba(242, 196, 107, 0.14);
    --teal: #4FD1C5;    --teal-soft: rgba(79, 209, 197, 0.14);
    --indigo: #98A6FF;  --indigo-soft: rgba(152, 166, 255, 0.15);
    --pink: #FF8FBF;    --pink-soft: rgba(255, 143, 191, 0.14);
    --cyan: #6FD0F0;    --cyan-soft: rgba(111, 208, 240, 0.14);
    --slate: #B4BCC8;   --slate-soft: rgba(180, 188, 200, 0.12);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
code { font-family: var(--mono); font-size: .88em; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue-500) 60%, transparent); outline-offset: 2px; border-radius: 10px; }

.ic { width: 20px; height: 20px; flex: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 10px 16px; border-radius: 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Top bar (kaca) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.topbar-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; min-height: 60px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); min-height: 44px; }
.brand img { height: 30px; width: auto; }
.brand-app { font-size: 13px; font-weight: 600; color: var(--text-2); padding-left: 10px; border-left: 1px solid var(--line-strong); line-height: 1.1; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.topbar-right form { margin: 0; }
.who { display: flex; align-items: center; gap: 8px; margin-right: 4px; }
.who-name { font-weight: 600; font-size: 14px; max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) { .brand-app { display: none; } }
@media (max-width: 480px) { .who-name { display: none; } .brand img { height: 26px; } .topbar-right { gap: 4px; } }

.segmented {
  max-width: 1200px; margin: 0 auto; padding: 0 16px 10px;
  display: flex; gap: 4px;
}
.segmented a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--text-2);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.segmented a .ic { width: 18px; height: 18px; }
.segmented a.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
@media (min-width: 720px) { .segmented { justify-content: flex-start; } .segmented a { flex: 0 0 auto; padding: 0 18px; } }

/* ---------- Page ---------- */
.page { width: 100%; max-width: 1200px; margin: 0 auto; padding: 20px 16px calc(40px + env(safe-area-inset-bottom)); flex: 1; }
.back { display: inline-flex; align-items: center; gap: 2px; color: var(--accent); font-weight: 500; font-size: 15px; min-height: 44px; margin: -8px 0 2px -4px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.page-head h1 { font-size: 30px; font-weight: 700; line-height: 1.12; }
.sub { color: var(--text-2); font-size: 15px; margin-top: 6px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; }
.hello { margin: 4px 0 20px; }
.hello h1 { font-size: 34px; font-weight: 700; margin-top: 4px; }
.section-title { font-size: 21px; font-weight: 700; margin: 28px 0 12px; }
.section-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-row .section-title { margin-bottom: 12px; }
.foot { text-align: center; color: var(--text-3); font-size: 12px; padding: 0 16px calc(24px + env(safe-area-inset-bottom)); }
@media (min-width: 720px) { .page { padding-top: 28px; } .page-head h1 { font-size: 36px; } .hello h1 { font-size: 40px; } }

/* ---------- Cards ---------- */
.card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--line); padding: 20px; }
.card + .card, .card + section, section + .card { margin-top: 16px; }
.card-title { font-size: 17px; font-weight: 650; display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.card-title .ic { color: var(--accent); }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.card-head .card-title { margin: 0; }
.narrow { max-width: 480px; }
.pad { padding: 20px; }
.center { text-align: center; }
.list-card { padding: 4px 0; }
.table-card { padding: 0; overflow-x: auto; }
@media (min-width: 761px) { .tbl td.mono, .tbl td .mono { white-space: nowrap; } .tbl th, .tbl td { padding-left: 14px; padding-right: 14px; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 16px; display: flex; flex-direction: column; gap: 2px; color: var(--text);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
a.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--text); }
.stat-label { font-size: 13px; color: var(--text-2); font-weight: 500; }
.stat-value { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat-foot { font-size: 12px; color: var(--text-3); }
@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .stats-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .stats-7 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat { padding: 20px; }
  .stat-value { font-size: 34px; }
}
@media (min-width: 1100px) { .stats-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); } .stats-7 .stat-value { font-size: 30px; } }
.stats + .card, .stats + .grid-2, .stats + .section-title { margin-top: 16px; }

.tone-green { color: var(--green); }
.tone-orange { color: var(--orange); }
.tone-red { color: var(--red); }
.tone-blue { color: var(--accent); }
.tone-purple { color: var(--purple); }

/* ---------- Menu grid ---------- */
.menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.menu-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 18px 14px; min-height: 128px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center;
  color: var(--text);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.menu-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--text); border-color: var(--line-strong); }
.menu-card:active { transform: scale(.98); }
.menu-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; }
.menu-ic .ic { width: 26px; height: 26px; }
.menu-label { font-size: 15px; font-weight: 600; line-height: 1.25; }
@media (min-width: 720px) { .menu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } .menu-card { min-height: 148px; } }
@media (min-width: 1000px) { .menu-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tint-blue { background: var(--accent-soft); color: var(--accent); }
.tint-teal { background: var(--teal-soft); color: var(--teal); }
.tint-orange { background: var(--orange-soft); color: var(--orange); }
.tint-amber { background: var(--amber-soft); color: var(--amber); }
.tint-purple { background: var(--purple-soft); color: var(--purple); }
.tint-green { background: var(--green-soft); color: var(--green); }
.tint-indigo { background: var(--indigo-soft); color: var(--indigo); }
.tint-red { background: var(--red-soft); color: var(--red); }
.tint-pink { background: var(--pink-soft); color: var(--pink); }
.tint-cyan { background: var(--cyan-soft); color: var(--cyan); }
.tint-gray { background: var(--surface-2); color: var(--text-2); }
.tint-slate { background: var(--slate-soft); color: var(--slate); }

/* ---------- Activity ---------- */
.activity { list-style: none; margin: 0; padding: 0; }
.activity li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 20px; border-top: 1px solid var(--line); }
.activity li:first-child { border-top: 0; }
.act-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--text-3); }
.act-stock { background: var(--green); } .act-login, .act-logout, .act-password { background: var(--accent); }
.act-user { background: var(--purple); } .act-item, .act-brand, .act-category, .act-location { background: var(--orange); }
.act-po { background: var(--purple); } .act-csv, .act-log { background: var(--teal); } .act-view { background: var(--blue-500); }
.act-body { flex: 1; min-width: 0; }
.act-body p { overflow-wrap: anywhere; }
.act-meta { text-align: right; display: flex; flex-direction: column; font-size: 13px; flex: none; max-width: 40%; }
@media (max-width: 560px) { .activity li { flex-wrap: wrap; } .act-meta { width: 100%; max-width: none; text-align: left; flex-direction: row; gap: 8px; padding-left: 22px; } }
.act-tag { font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); white-space: nowrap; }
.act-tag.act-stock { background: var(--green-soft); color: var(--green); }
.act-tag.act-view { background: var(--cyan-soft); color: var(--accent); }
.act-tag.act-login, .act-tag.act-logout, .act-tag.act-password { background: var(--accent-soft); color: var(--accent); }
.act-tag.act-user, .act-tag.act-po { background: var(--purple-soft); color: var(--purple); }
.act-tag.act-item, .act-tag.act-brand, .act-tag.act-category, .act-tag.act-location { background: var(--orange-soft); color: var(--orange); }
.act-tag.act-csv, .act-tag.act-log, .act-tag.act-system { background: var(--teal-soft); color: var(--teal); }

/* ---------- Text utils ---------- */
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.strong { font-weight: 700; }
.block { display: block; }
.mono { font-family: var(--mono); font-size: .92em; letter-spacing: -0.01em; }
.sans { font-family: var(--font); }
.nowrap { white-space: nowrap; }
.link { font-weight: 500; }
.hide-xs { display: none; }
@media (min-width: 480px) { .hide-xs { display: inline; } }

/* ---------- Buttons ---------- */
.btn {
  -webkit-appearance: none; appearance: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  font: inherit; font-size: 15px; font-weight: 600; white-space: nowrap; text-decoration: none;
  transition: background .18s var(--ease), transform .12s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn .ic { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 1px 2px rgba(31, 111, 168, .25); }
.btn-primary:hover { background: var(--accent-strong); color: var(--on-accent); }
.btn-soft { background: var(--surface-2); color: var(--text); }
.btn-soft:hover { background: var(--track); color: var(--text); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-danger-soft { background: var(--red-soft); color: var(--red); }
.btn-danger-soft:hover { background: var(--red); color: #fff; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn-lg { min-height: 52px; font-size: 17px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-row { display: flex; gap: 10px; }
.btn-grow { flex: 1; }
.btn-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--text-2); transition: background .18s var(--ease); }
.btn-icon:hover { background: var(--surface-2); color: var(--text); }

/* ---------- Pills & badges ---------- */
.pill { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.pill-blue { background: var(--accent-soft); color: var(--accent); }
.pill-gray { background: var(--surface-2); color: var(--text-2); }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-orange { background: var(--orange-soft); color: var(--orange); }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-purple { background: var(--purple-soft); color: var(--purple); }
.badge-blue { background: var(--accent-soft); color: var(--accent); }
.badge-gray { background: var(--surface-2); color: var(--text-2); }

/* ---------- Forms ---------- */
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 14px; font-weight: 600; color: var(--text); }
.opt { font-weight: 400; color: var(--text-3); }
.hint { font-size: 13px; color: var(--text-2); }
.steps { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; color: var(--text-2); }
.steps strong { color: var(--text); }
.import-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; margin: 16px 0; }
.import-bar p { min-width: 0; overflow-wrap: anywhere; }
.import-bar form { margin: 0; }
.input {
  -webkit-appearance: none; appearance: none; width: 100%;
  min-height: 46px; padding: 10px 14px;
  font: inherit; font-size: 16px; color: var(--text);
  background: var(--surface-2); border: 1px solid transparent; border-radius: var(--radius-sm);
  transition: border-color .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
}
.input:hover { border-color: var(--line-strong); }
.input:focus { outline: none; background: var(--surface); border-color: var(--blue-500); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue-500) 22%, transparent); }
select.input { padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238E8E93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
textarea.input { min-height: 80px; resize: vertical; }
input[type=file].input { padding: 10px; }
.input-lg { min-height: 52px; font-size: 17px; }
.readonly { padding: 12px 14px; background: var(--surface-2); border-radius: var(--radius-sm); color: var(--text-2); }
.row-2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 560px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.form-section { font-size: 15px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .05em; margin-top: 4px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--accent); }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 52px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: none; color: var(--text-2); border-radius: 10px; cursor: pointer; display: grid; place-items: center; }
.pw-toggle .ic-hide { display: none; }
.pw-toggle[aria-pressed="true"] .ic-show { display: none; }
.pw-toggle[aria-pressed="true"] .ic-hide { display: block; }
.picker { display: flex; flex-direction: column; gap: 8px; }
.picker-search { min-height: 40px; font-size: 15px; background-color: transparent; border-color: var(--line-strong); }
.stock-hint { font-size: 14px; color: var(--text-2); margin-top: -6px; min-height: 0; }
.stock-hint:empty { display: none; }
.stock-hint.ok { color: var(--green); }
.stock-hint.warn { color: var(--red); font-weight: 600; }
.seg-control { display: flex; background: var(--surface-2); padding: 4px; border-radius: 14px; gap: 4px; }
.seg-control label { flex: 1; position: relative; cursor: pointer; }
.seg-control input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg-control span { display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--text-2); text-align: center; padding: 0 8px; transition: background .2s var(--ease), color .2s var(--ease); }
.seg-control input:checked + span { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.seg-control input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--blue-500) 60%, transparent); }
.inline-add { display: flex; gap: 8px; margin-top: 10px; }
.inline-add .input { min-height: 44px; }

/* ---------- Layout split ---------- */
.split { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
.split > section > .section-title:first-child, .split > section > .tabs:first-child { margin-top: 0; }
@media (min-width: 1000px) {
  .split { grid-template-columns: minmax(340px, 400px) 1fr; gap: 24px; }
  .split > .form-card, .split > .stack { position: sticky; top: 84px; }
}
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px; }
.grid-2 > .card { margin: 0; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }
.grid-3 > .card { margin: 0; }
@media (min-width: 820px) { .grid-2 { grid-template-columns: 1fr 1.4fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.mini-row { padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
.mini-row:first-of-type { border-top: 0; padding-top: 0; }

/* ---------- Flash ---------- */
.flash { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 15px; animation: rise .25s var(--ease); }
.flash ul { margin: 4px 0 0; padding-left: 18px; }
.flash li { margin: 2px 0; }
.flash-ic { flex: none; margin-top: 1px; }
.flash-success { background: var(--green-soft); color: var(--text); } .flash-success .flash-ic { color: var(--green); }
.flash-error { background: var(--red-soft); color: var(--text); } .flash-error .flash-ic { color: var(--red); }
.flash-info { background: var(--accent-soft); color: var(--text); } .flash-info .flash-ic { color: var(--accent); }
.notice { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--radius); background: var(--orange-soft); margin-top: 16px; font-size: 15px; }
.notice .flash-ic { color: var(--orange); }
.notice a { color: var(--text); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Tables ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .03em; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .15s var(--ease); }
.tbl tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tr.empty td { text-align: center; color: var(--text-2); padding: 32px 16px; }
.tbl tr.is-off td { opacity: .55; }
.sort { color: inherit; }
.sort.on { color: var(--accent); }
.row-link { color: var(--text); font-weight: 600; }
.row-link:hover { color: var(--accent); }
.cell-actions { text-align: right; width: 1%; white-space: nowrap; }
.cell-actions form { margin: 0; }
.changes { color: var(--text-2); margin-top: 2px; }
.ua { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Tabel → kartu di layar kecil */
@media (max-width: 760px) {
  .table-card { background: transparent; border: 0; box-shadow: none; overflow: visible; }
  .tbl-cards thead { display: none; }
  .tbl-cards, .tbl-cards tbody, .tbl-cards tr, .tbl-cards td { display: block; width: 100%; }
  .tbl-cards tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 12px 16px; margin-bottom: 12px; }
  .tbl-cards tbody tr:hover { background: var(--surface); }
  .tbl-cards td { border: 0; padding: 6px 0; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; text-align: right; }
  .tbl-cards td::before { content: attr(data-label); font-size: 13px; color: var(--text-2); font-weight: 500; text-align: left; flex: none; }
  .tbl-cards td.num { justify-content: space-between; }
  .tbl-cards td.cell-title { display: block; text-align: left; font-size: 16px; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
  .tbl-cards td.cell-title::before { display: none; }
  .tbl-cards td.cell-actions { width: 100%; padding-top: 10px; display: block; text-align: left; }
  .tbl-cards td.cell-actions::before { display: none; }
  .tbl-cards td.cell-actions:empty { display: none; }
  .tbl-cards td.cell-actions .btn, .tbl-cards td.cell-actions summary { width: 100%; }
  .tbl-cards tr.empty { text-align: center; }
  .tbl-cards tr.empty td { display: block; text-align: center; }
  .tbl-cards tr.empty td::before { display: none; }
  .ua { max-width: 180px; }
}

/* ---------- Row action menu ---------- */
.menu { position: relative; display: inline-block; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--track); }
.menu-pop {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20;
  width: 280px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 12px; display: flex; flex-direction: column; gap: 8px; text-align: left; white-space: normal;
  animation: rise .18s var(--ease);
}
.menu-pop form + form { border-top: 1px solid var(--line); padding-top: 10px; }
.menu-title { font-weight: 650; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.menu-pop .input { min-height: 40px; font-size: 15px; padding: 8px 10px; }
.menu-pop .row-2 { grid-template-columns: 1fr 1fr; gap: 8px; }
.menu-pop .label { font-size: 12px; color: var(--text-2); }
@media (max-width: 760px) { .menu { display: block; } .menu-pop { position: static; width: 100%; margin-top: 8px; box-shadow: none; background: var(--surface-2); } }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; padding-bottom: 2px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; padding: 0 16px; min-height: 38px; display: inline-flex; align-items: center; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text-2); background: var(--surface); border: 1px solid var(--line); }
.tab.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.tab:hover:not(.on) { color: var(--text); }

/* ---------- Filters ---------- */
.filters { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 14px; margin-bottom: 16px; }
.filter-search { position: relative; }
.filter-search .input { padding-left: 42px; }
.search-ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); display: flex; pointer-events: none; }
.filter-actions { display: flex; gap: 8px; }
.filter-actions .btn { flex: 1; }
.date-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-2); font-weight: 600; }
@media (min-width: 640px) { .filters { grid-template-columns: repeat(2, 1fr); } .filter-search, .filter-actions { grid-column: 1 / -1; } }
@media (min-width: 1000px) {
  .filters { grid-template-columns: 2fr repeat(5, 1fr); align-items: end; }
  .filter-search { grid-column: auto; }
  .filter-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .filter-actions .btn { flex: 0 0 auto; }
  .filters-compact { grid-template-columns: 2fr 1fr 1fr 1fr auto; }
  .filters-compact .filter-actions { grid-column: auto; }
}
.totals { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 16px; scrollbar-width: none; }
.totals::-webkit-scrollbar { display: none; }
.totals > div { flex: 1 0 auto; min-width: 96px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; display: flex; flex-direction: column; }
.totals strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.result-count { font-size: 14px; color: var(--text-2); margin: 4px 0 12px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.pager-info { font-size: 14px; color: var(--text-2); }

/* ---------- User dashboard ---------- */
.bigsearch { position: relative; display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 6px 6px 6px 50px; margin-bottom: 16px; transition: box-shadow .2s var(--ease), border-color .2s var(--ease); }
.bigsearch:focus-within { border-color: var(--blue-500); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue-500) 22%, transparent); }
.bigsearch-ic { position: absolute; left: 18px; color: var(--text-3); display: flex; }
.bigsearch-ic .ic { width: 22px; height: 22px; }
.bigsearch input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 17px; color: var(--text); min-height: 48px; outline: none; }
.chips-block { margin-bottom: 8px; }
.chips-label { font-size: 12px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .05em; margin: 10px 0 8px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: 14px; font-weight: 500; transition: background .18s var(--ease), color .18s var(--ease); }
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip.static { min-height: 32px; padding: 0 12px; font-size: 13px; background: var(--surface-2); border-color: transparent; }
@media (min-width: 720px) { .chips { margin: 0; padding-left: 0; padding-right: 0; flex-wrap: wrap; } }
.master-lists { display: flex; flex-direction: column; gap: 16px; }
.master-lists .chips-label { margin-top: 0; }

.stock-cards { display: grid; gap: 12px; }
.stock-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 16px; color: var(--text); transition: transform .15s var(--ease); }
.stock-card:active { transform: scale(.99); }
.stock-card:hover { color: var(--text); }
.stock-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.stock-card-name { font-size: 17px; font-weight: 650; margin: 6px 0 2px; line-height: 1.3; }
.stock-card-nums { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.stock-card-nums > div { display: flex; flex-direction: column; }
.n-big { font-size: 26px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.n { font-size: 18px; font-weight: 600; line-height: 1.5; font-variant-numeric: tabular-nums; }
.n-label { font-size: 12px; color: var(--text-2); }
.stock-table { display: none; }
@media (min-width: 900px) { .stock-cards { display: none; } .stock-table { display: block; } }

/* ---------- Charts ---------- */
.bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.bar-head { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-bottom: 6px; }
.bar-label { font-weight: 600; }
.bar-val { color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar-track { height: 12px; background: var(--track); border-radius: 999px; overflow: hidden; display: flex; }
.seg { height: 100%; transition: width .5s var(--ease); }
.seg-green { background: var(--green); } .seg-orange { background: var(--orange); } .seg-blue { background: var(--blue-500); }
.donut-wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.donut { width: 160px; height: 160px; }
.donut-num { font-size: 26px; font-weight: 700; fill: var(--text); }
.donut-label { font-size: 11px; fill: var(--text-2); }
.legend { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend strong { margin-left: 4px; }
.legend-inline { flex-direction: row; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--text-2); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-green { background: var(--green); } .dot-orange { background: var(--orange); } .dot-red { background: var(--red); } .dot-blue { background: var(--blue-500); }

/* ---------- Detail ---------- */
.detail-head { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; margin-bottom: 16px; }
.kv { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kv span:first-child { font-size: 12.5px; color: var(--text-2); }
.kv strong { overflow-wrap: anywhere; }
.kv-wide { grid-column: 1 / -1; }
@media (min-width: 720px) { .detail-head { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Dialog (sheet) ---------- */
dialog.sheet {
  border: 0; padding: 0; width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 40px);
  background: var(--surface); color: var(--text); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
}
dialog.sheet[open] { animation: pop .22s var(--ease); }
dialog.sheet::backdrop { background: rgba(0, 0, 0, .32); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog.sheet > form { padding: 24px; }
dialog.sheet h2 { font-size: 22px; }
.sheet-actions { display: flex; gap: 10px; margin-top: 20px; }
.sheet-actions .btn { flex: 1; }
.summary { margin: 16px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; background: var(--surface-2); padding: 14px 16px; border-radius: var(--radius); font-size: 15px; }
.summary dt { color: var(--text-2); }
.summary dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.summary:empty { display: none; }
#confirm-ok.danger { background: var(--red); color: #fff; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) {
  dialog.sheet { margin: auto auto 0; width: 100%; max-width: 100%; border-radius: var(--radius-xl) var(--radius-xl) 0 0; padding-bottom: env(safe-area-inset-bottom); }
}

/* ---------- Empty / error ---------- */
.empty-state { max-width: 480px; margin: 40px auto; text-align: center; padding: 36px 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty-state h1 { font-size: 26px; }
.empty-state .btn { margin-top: 16px; }
.empty-ic { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 8px; }
.empty-ic .ic { width: 30px; height: 30px; }
body.center-page { justify-content: center; }

/* ---------- Login ---------- */
.login-page {
  background:
    radial-gradient(1200px 600px at 10% -10%, var(--blue-100), transparent 60%),
    radial-gradient(900px 500px at 110% 110%, var(--bg-grad-1), transparent 60%),
    linear-gradient(180deg, var(--bg-grad-2), var(--bg));
  background-attachment: fixed;
}
@media (prefers-color-scheme: dark) {
  .login-page { background: radial-gradient(1000px 600px at 10% -10%, rgba(77, 170, 232, .18), transparent 60%), radial-gradient(900px 500px at 110% 110%, rgba(77, 170, 232, .10), transparent 60%), var(--bg); }
}
.login-wrap { flex: 1; display: grid; place-items: center; padding: calc(24px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom)); }
.login-card {
  width: 100%; max-width: 420px;
  background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid rgba(255, 255, 255, .7); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  padding: 32px 24px 24px;
}
@media (prefers-color-scheme: dark) { .login-card { border-color: var(--line); } }
.install-card { max-width: 560px; }
.login-logo { width: 220px; height: auto; margin: 0 auto 20px; mix-blend-mode: multiply; }
@media (prefers-color-scheme: dark) { .login-logo { mix-blend-mode: normal; width: 200px; margin-top: 8px; margin-bottom: 28px; } }
.login-card h1 { font-size: 26px; font-weight: 700; text-align: center; }
.login-card > .sub { text-align: center; margin-bottom: 24px; }
.login-foot { text-align: center; font-size: 12px; color: var(--text-3); margin-top: 24px; }
@media (min-width: 480px) { .login-card { padding: 40px 36px 28px; } .login-logo { width: 250px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .topbar, .foot, .page-actions, .filters, .cell-actions, .back, form { display: none !important; }
  .card { box-shadow: none; }
}

/* ---------- Sidebar ----------
   Terang: langit pagi biru muda. Gelap (ikut pengaturan perangkat): langit malam. */
.sidebar {
  --side-bg: linear-gradient(180deg, #FFFFFF 0%, #F3F9FE 40%, #DDEFFC 100%);
  --side-border: var(--line);
  --side-text: #1D2A36;
  --side-muted: #5A6B7B;
  --side-hover: rgba(47, 143, 208, .08);
  --side-on: rgba(47, 143, 208, .13);
  --side-on-text: #1F6FA8;
  --side-accent: #2F8FD0;
  --side-card-bg: rgba(255, 255, 255, .75);
  --side-card-border: #CFE6F8;
  --side-track: #D9EDFB;
  --side-star: rgba(47, 143, 208, .45);
  position: fixed; inset: 0 auto 0 0; z-index: 50;
  width: 264px; max-width: 84vw;
  display: flex; flex-direction: column; gap: 20px;
  padding: calc(22px + env(safe-area-inset-top)) 14px calc(20px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  overflow-y: auto; overscroll-behavior: contain;
  color: var(--side-text);
  background: var(--side-bg);
  border-right: 1px solid var(--side-border);
  transform: translateX(-102%);
  transition: transform .32s var(--ease), visibility .32s;
  visibility: hidden;
}
@media (prefers-color-scheme: dark) {
  .sidebar {
    --side-bg: linear-gradient(180deg, #0E1C2B 0%, #15304A 35%, #1F4C74 70%, #2E6FA6 100%);
    --side-border: transparent;
    --side-text: #F4F8FC;
    --side-muted: rgba(244, 248, 252, .7);
    --side-hover: rgba(255, 255, 255, .08);
    --side-on: rgba(255, 255, 255, .14);
    --side-on-text: #FFFFFF;
    --side-accent: #8FD0F7;
    --side-card-bg: rgba(255, 255, 255, .08);
    --side-card-border: rgba(255, 255, 255, .24);
    --side-track: rgba(255, 255, 255, .25);
    --side-star: rgba(255, 255, 255, .75);
  }
}
.sidebar.open { transform: none; visibility: visible; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
/* Bintang: tiga lapis titik dengan ukuran ubin berbeda agar tersebar alami; pudar ke atas. */
.side-stars {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(circle at 23% 31%, var(--side-star) 0 1px, transparent 1.6px),
    radial-gradient(circle at 71% 17%, var(--side-star) 0 .7px, transparent 1.3px),
    radial-gradient(circle at 47% 76%, var(--side-star) 0 1.2px, transparent 1.9px),
    radial-gradient(circle at 88% 58%, var(--side-star) 0 .6px, transparent 1.2px),
    radial-gradient(circle at 12% 89%, var(--side-star) 0 .8px, transparent 1.4px);
  background-size: 139px 167px, 197px 131px, 263px 229px, 113px 197px, 229px 151px;
  background-position: 0 0, 53px 71px, 117px 29px, 31px 103px, 89px 13px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent 38%, #000 70%);
  mask-image: linear-gradient(to bottom, transparent 0, transparent 38%, #000 70%);
}
.sidebar > :not(.side-stars) { position: relative; z-index: 1; }
.side-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 8px; }
.side-brand { display: block; min-height: 44px; padding-top: 4px; }
.side-brand img { width: 150px; height: auto; display: block; }
.side-close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--side-muted); cursor: pointer; }
.side-close:hover { background: var(--side-hover); color: var(--side-text); }

.side-card {
  display: grid; gap: 12px; padding: 14px 16px 16px;
  border: 1px solid var(--side-card-border); border-radius: 16px;
  background: var(--side-card-bg);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--side-text);
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.side-card:hover { border-color: var(--side-accent); color: var(--side-text); }
.side-card-title { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 15px; color: var(--side-accent); }
.side-card-title .ic { width: 20px; height: 20px; }
.side-card-title .side-chev { margin-left: auto; width: 16px; height: 16px; color: var(--side-text); }
.side-card-meta { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--side-muted); font-variant-numeric: tabular-nums; }
.side-progress { flex: 1; height: 7px; border-radius: 99px; background: var(--side-track); overflow: hidden; }
.side-progress > span { display: block; height: 100%; border-radius: inherit; background: var(--side-accent); }

.side-nav { display: grid; gap: 4px; }
.side-link {
  display: flex; align-items: center; gap: 14px;
  min-height: 44px; padding: 0 12px; border-radius: 10px;
  color: var(--side-text); font-size: 15px; font-weight: 500;
  cursor: pointer; list-style: none;
  transition: background .2s var(--ease);
}
.side-link::-webkit-details-marker { display: none; }
.side-link .ic { width: 20px; height: 20px; stroke-width: 1.7; }
.side-link:hover { background: var(--side-hover); color: var(--side-text); }
.side-link.on { background: var(--side-on); color: var(--side-on-text); font-weight: 600; }
.side-link .side-chev { margin-left: auto; width: 16px; height: 16px; color: var(--side-muted); transition: transform .2s var(--ease); }
.side-group[open] > summary .side-chev { transform: rotate(90deg); }
.side-sub { display: grid; gap: 2px; padding: 2px 0 6px 34px; }
.side-sub .side-link { min-height: 38px; font-size: 14px; color: var(--side-muted); }
.side-sub .side-link.on { color: var(--side-on-text); box-shadow: inset 3px 0 0 var(--side-accent); }
.sidebar :focus-visible { outline-color: var(--side-accent); }

.side-backdrop { position: fixed; inset: 0; z-index: 45; background: rgba(8, 14, 22, .45); }
.side-open { border: 0; background: transparent; padding: 0; cursor: pointer; margin-left: -8px; }
.side-open .ic { width: 22px; height: 22px; }
body.side-locked { overflow: hidden; }

@media (min-width: 1024px) {
  .sidebar { transform: none; visibility: visible; box-shadow: none; max-width: none; }
  .side-close, .side-open, .side-backdrop { display: none !important; }
  .has-sidebar { padding-left: 264px; }
  .has-sidebar .topbar .brand, .has-sidebar .segmented, .has-sidebar .back { display: none; }
}
/* Area konten lebih sempit karena sidebar: tunda tata letak dua kolom. */
@media (min-width: 1000px) and (max-width: 1379px) {
  .has-sidebar .split { grid-template-columns: 1fr; }
  .has-sidebar .split > .form-card, .has-sidebar .split > .stack { position: static; }
}
@media (min-width: 1100px) and (max-width: 1379px) { .has-sidebar .stats-7 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .sidebar { transition: none; } }
@media print { .sidebar, .side-backdrop { display: none !important; } .has-sidebar { padding-left: 0; } }

/* ---------- Ukuran teks ringkas di HP ----------
   Input tetap 16px agar iOS tidak memperbesar halaman saat fokus. */
@media (max-width: 719px) {
  body { font-size: 15px; }
  .page { padding-top: 14px; }
  .back { font-size: 14px; min-height: 40px; }
  .page-head { margin-bottom: 16px; gap: 10px; }
  .page-head h1 { font-size: 24px; }
  .hello h1 { font-size: 26px; }
  .sub { font-size: 14px; margin-top: 4px; }
  .eyebrow { font-size: 12px; }
  .section-title { font-size: 18px; margin: 22px 0 10px; }
  .card-title { font-size: 16px; margin-bottom: 12px; }
  .stat-value { font-size: 24px; }
  .menu-label { font-size: 13.5px; }
  .btn { font-size: 14px; }
  .btn-lg { font-size: 16px; min-height: 48px; }
  .tbl { font-size: 14px; }
  .tbl-cards td.cell-title { font-size: 15px; }
  .flash, .notice, .mini-row, .legend, .check { font-size: 14px; }
  .form-section { font-size: 13px; }
  .totals strong { font-size: 18px; }
  .bigsearch input { font-size: 16px; min-height: 44px; }
  .stock-card-name { font-size: 15.5px; }
  .n-big { font-size: 22px; }
  .n { font-size: 16px; }
  .donut-num { font-size: 22px; }
  dialog.sheet h2 { font-size: 20px; }
  .empty-state h1, .login-card h1 { font-size: 22px; }
  .brand img { height: 24px; }
  .menu-grid { gap: 10px; }
  .menu-card { padding: 14px 10px; gap: 10px; min-height: 104px; }
  .menu-ic { width: 44px; height: 44px; border-radius: 14px; }
  .menu-ic .ic { width: 22px; height: 22px; }
  .stat { padding: 14px; }
  .stat-label { font-size: 12.5px; }
  .input { min-height: 42px; padding: 8px 12px; }
  .filters { gap: 8px; }
}
