/* Navkar Cold ERP — "isometric cold store": frost canvas, deep glacier blue, one thermal orange. Mobile first. */
:root {
  --bg: #EDF2F5; --card: #FFFFFF; --ink: #0F1D27; --ink2: #3E4F5B; --sub: #7B8A95; --line: #E1E8ED; --line2: #CCD8E0;
  --brand: #0B5D7A; --brand-d: #083F53; --frost: #DCEBF2; --ice: #F3F8FA; --accent: #F06A2B;
  --ok: #13804F; --warn: #B86E00; --bad: #CF3B2B;
  --r: 18px; --ri: 12px;
  --sh: 0 1px 0 rgba(15, 29, 39, .04), 0 10px 26px -16px rgba(15, 29, 39, .22);
  --sh2: 0 2px 4px rgba(15, 29, 39, .05), 0 22px 44px -20px rgba(11, 93, 122, .35);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 Onest, system-ui, -apple-system, "Segoe UI", sans-serif; font-feature-settings: "tnum" 1; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.chev { width: 8px; height: 13px; color: #B3C0C9; flex: none; }
.muted { color: var(--sub); } .center { text-align: center; } .pad { padding: 14px 16px; margin: 0; }
.neg { color: var(--bad) !important; } .pos { color: var(--ok); }
[hidden] { display: none !important; }

/* ---------- shell ---------- */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: rgba(237, 242, 245, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand span { display: flex; flex-direction: column; min-width: 0; }
.brand b { font-size: 16px; letter-spacing: -.01em; }
.brand small { color: var(--sub); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-r { display: flex; align-items: center; gap: 8px; }
.bell { position: relative; width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--sh); color: var(--ink2); }
.bell em { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font: 600 11px/18px Onest, sans-serif; font-style: normal; text-align: center; }
.me { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-weight: 600; font-size: 13px; }
.side { display: none; }
.page { padding: 4px 16px calc(110px + var(--safe-b)); max-width: 640px; margin: 0 auto; }
.rise > * { animation: rise .42s cubic-bezier(.2, .8, .2, 1) both; }
.rise > *:nth-child(2) { animation-delay: .03s } .rise > *:nth-child(3) { animation-delay: .06s } .rise > *:nth-child(4) { animation-delay: .09s } .rise > *:nth-child(5) { animation-delay: .12s } .rise > *:nth-child(n+6) { animation-delay: .15s }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* dock (phone nav) */
.dock { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(10px + var(--safe-b)); display: flex; align-items: center; justify-content: space-around; height: 66px; padding: 0 6px; background: #fff; border-radius: 24px; box-shadow: 0 1px 0 rgba(15, 29, 39, .05), 0 18px 40px -14px rgba(15, 29, 39, .35); }
.dock a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 500; color: var(--sub); padding: 8px 0; border-radius: 16px; transition: color .2s; }
.dock a.on { color: var(--brand); }
.dock a.on .ico { stroke-width: 2.2; }
.tab-add { width: 54px; height: 54px; flex: none; border: 0; border-radius: 18px; background: var(--brand); color: #fff; display: grid; place-items: center; margin: 0 4px; box-shadow: 0 10px 22px -8px rgba(11, 93, 122, .7); transition: transform .15s; }
.tab-add .ico { width: 26px; height: 26px; stroke-width: 2.4; }
.tab-add:active, .btn:active, .item:active, .duo-b:active { transform: scale(.97); }

/* ---------- headings ---------- */
.phead { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 14px; }
.phead .back { width: 38px; height: 38px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; box-shadow: var(--sh); }
.ph-t { flex: 1; min-width: 0; }
.phead h1 { margin: 0; font-size: 24px; line-height: 1.15; letter-spacing: -.025em; font-weight: 700; overflow-wrap: anywhere; }
.phead p { margin: 3px 0 0; color: var(--sub); font-size: 13px; }
.ph-r { display: flex; gap: 6px; align-items: center; flex: none; }
.h2 { font-size: 13px; font-weight: 600; color: var(--ink2); margin: 22px 4px 8px; letter-spacing: .01em; }
.hello { margin: 4px 0 12px; } .hello h1 { margin: 0; font-size: 25px; letter-spacing: -.03em; } .hello p { margin: 2px 0 0; color: var(--sub); font-size: 13px; }

/* ---------- cards ---------- */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 14px 16px; margin-bottom: 12px; }
.card > b:first-child { display: block; font-size: 14px; margin-bottom: 8px; }
.card.flush { padding: 0; overflow: hidden; }
.card.list { padding: 4px 0; }
.card-h { display: flex; justify-content: space-between; align-items: center; padding: 8px 16px 4px; } .card-h a { color: var(--brand); font-size: 13px; font-weight: 600; }
.grid2 { display: grid; gap: 12px; } .grid2 > .card { margin: 0; }
.grid2 + .h2, .grid2 + .btns { margin-top: 18px; }

/* hero: isometric store */
.hero { position: relative; overflow: hidden; padding: 16px 12px 10px; background: radial-gradient(120% 90% at 85% 0%, #FFFFFF 0%, #F2F8FB 45%, #E4EFF5 100%); box-shadow: var(--sh2); }
.hero-n { padding: 0 6px; position: relative; z-index: 1; }
.hero-n small { color: var(--sub); font-size: 12px; font-weight: 500; }
.hero-n b { display: block; font-size: 44px; line-height: 1; letter-spacing: -.045em; font-weight: 700; color: var(--brand-d); margin-top: 2px; }
.hero-n b i { font-style: normal; font-size: 22px; letter-spacing: -.01em; color: var(--brand); }
.hero-n span { color: var(--ink2); font-size: 13px; }
.store-svg { display: block; width: 100%; height: auto; margin: -6px 0 -4px; }
.store-svg .blk { animation: blk .7s cubic-bezier(.2, .8, .2, 1) both; transform-box: fill-box; }
.store-svg .fill { animation: fillup 1.1s cubic-bezier(.2, .8, .2, 1) both; transform-origin: bottom; transform-box: fill-box; }
.store-svg a:hover polygon { filter: brightness(1.06); }
.iso-t { font: 600 8.5px Onest, sans-serif; fill: #4A6070; }
@keyframes blk { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes fillup { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.hero-foot { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: 4px; }
.hero-foot a { text-align: center; padding: 6px 0; border-radius: 10px; background: rgba(255, 255, 255, .7); }
.hero-foot b { display: block; font-size: 11px; color: var(--sub); font-weight: 600; }
.hero-foot span { font-size: 12.5px; font-weight: 600; color: var(--brand-d); letter-spacing: -.02em; }
.store-card { padding: 10px 8px; background: linear-gradient(180deg, #fff, #F1F7FA); }

/* inward / outward duo */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.duo-b { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: var(--r); background: #fff; box-shadow: var(--sh); transition: transform .15s; }
.duo-b .ico { width: 26px; height: 26px; padding: 8px; box-sizing: content-box; border-radius: 12px; background: var(--ice); color: var(--brand); }
.duo-b span { display: flex; flex-direction: column; } .duo-b b { font-size: 16px; } .duo-b small { color: var(--sub); font-size: 12px; }
.duo-b.in { background: var(--brand); color: #fff; box-shadow: 0 14px 28px -14px rgba(11, 93, 122, .8); }
.duo-b.in .ico { background: rgba(255, 255, 255, .14); color: #fff; } .duo-b.in small { color: #BFE0EC; }

/* KPIs */
.kpis { display: grid; gap: 10px; margin-bottom: 12px; }
.kpis.k2 { grid-template-columns: 1fr 1fr; } .kpis.k3 { grid-template-columns: repeat(3, 1fr); }
.kpi { background: #fff; border-radius: 16px; padding: 12px 13px; box-shadow: var(--sh); min-width: 0; }
.kpi small { display: block; color: var(--sub); font-size: 11.5px; font-weight: 500; line-height: 1.25; }
.kpi b { display: block; font-size: 20px; letter-spacing: -.03em; font-weight: 700; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi span { display: block; color: var(--sub); font-size: 11.5px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpis.k3 .kpi b { font-size: 17px; }
.kpi.solid { background: var(--brand); color: #fff; background-image: repeating-linear-gradient(135deg, transparent 0 10px, rgba(255, 255, 255, .05) 10px 20px); }
.kpi.solid small, .kpi.solid span { color: #BFE0EC; }
.kpi.warnk b { color: var(--warn); } .kpi.okk b { color: var(--ok); } .kpi.badk b { color: var(--bad); }

/* meters */
.meter { height: 8px; border-radius: 6px; background: #E6EDF1; overflow: hidden; margin: 8px 0 4px; }
.meter i { display: block; height: 100%; border-radius: 6px; background: repeating-linear-gradient(135deg, var(--brand) 0 6px, #16708F 6px 12px); animation: grow 1s cubic-bezier(.2, .8, .2, 1) both; transform-origin: left; }
.meter.hot i { background: repeating-linear-gradient(135deg, var(--accent) 0 6px, #F58652 6px 12px); }
@keyframes grow { from { transform: scaleX(0); } }

/* lists */
.list { display: flex; flex-direction: column; }
.item { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border: 0; background: none; width: 100%; text-align: left; position: relative; transition: background .15s, transform .15s; }
.item + .item::before, .item + .alert::before, .alert + .alert::before { content: ""; position: absolute; top: 0; left: 16px; right: 16px; border-top: 1px solid var(--line); }
.item:hover { background: var(--ice); }
.it-b { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.it-b b { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.it-b small { color: var(--sub); font-size: 12.5px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.it-r { display: flex; flex-direction: column; align-items: flex-end; text-align: right; flex: none; max-width: 46%; gap: 2px; }
.it-r b { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.it-r small { color: var(--sub); font-size: 12px; }
.item.void { opacity: .55; } .item.void .it-b b { text-decoration: line-through; }
.item.in .it-r b { color: var(--ok); } .item.out .it-r b { color: var(--ink); }
.item.hot .it-r b { color: var(--bad); }
.item.rate { cursor: pointer; }
.row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border: 0; background: none; width: 100%; text-align: left; position: relative; }
.row + .row { border-top: 1px solid var(--line); }
.row .body { flex: 1; display: flex; flex-direction: column; } .row .body small { color: var(--sub); font-size: 12.5px; }
.row.dis { opacity: .6; } .row.busy { opacity: .5; pointer-events: none; }
.av { width: 40px; height: 40px; border-radius: 13px; background: var(--frost); color: var(--brand-d); display: grid; place-items: center; font-weight: 700; font-size: 13px; text-transform: uppercase; flex: none; }
.pack { flex: none; display: block; }
.tp-sw { width: 34px; height: 34px; border-radius: 10px; flex: none; box-shadow: inset 0 -8px 0 rgba(0, 0, 0, .12); }

/* alerts */
.alert { display: flex; align-items: center; gap: 12px; padding: 11px 16px; position: relative; }
.alert i { width: 10px; height: 10px; border-radius: 3px; transform: rotate(45deg); flex: none; background: var(--brand); }
.alert.warn i { background: #E3A008; } .alert.bad i { background: var(--bad); }
.alert span { flex: 1; display: flex; flex-direction: column; min-width: 0; } .alert b { font-size: 14px; font-weight: 600; } .alert small { color: var(--sub); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alerts-card { border-left: 4px solid var(--accent); }

/* stamps */
.stamp { display: inline-block; padding: 2px 8px; border: 1.5px solid currentColor; border-radius: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.5; white-space: nowrap; }
.stamp.ok { color: var(--ok); } .stamp.warn { color: var(--warn); } .stamp.bad { color: var(--bad); } .stamp.info { color: var(--brand); } .stamp.mute { color: var(--sub); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 46px; padding: 0 18px; border-radius: 14px; border: 0; font-weight: 600; font-size: 14.5px; white-space: nowrap; transition: transform .15s, background .2s, box-shadow .2s; }
.btn .ico { width: 18px; height: 18px; }
.btn.pri { background: var(--brand); color: #fff; box-shadow: 0 10px 20px -12px rgba(11, 93, 122, .9); }
.btn.pri:hover { background: var(--brand-d); }
.btn.sec { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line2); }
.btn.sec:hover { box-shadow: inset 0 0 0 1.5px var(--brand); color: var(--brand); }
.btn.wa { background: #1FAF5A; color: #fff; }
.btn.danger { background: var(--bad); color: #fff; }
.btn.ghost-danger { background: none; color: var(--bad); box-shadow: inset 0 0 0 1.5px #F1C4BE; margin-top: 10px; }
.btn.sm { height: 36px; padding: 0 13px; border-radius: 11px; font-size: 13.5px; }
.btn.xs { height: 28px; padding: 0 10px; border-radius: 8px; font-size: 12px; }
.btn.block { display: flex; width: 100%; }
.btn[aria-disabled="true"] { opacity: .35; pointer-events: none; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.btns .btn { flex: 1 1 auto; }
.mini-btns { display: flex; gap: 6px; margin-top: 4px; }

/* segmented + chips */
.seg { display: flex; gap: 4px; padding: 4px; background: #E1E9EE; border-radius: 14px; margin-bottom: 12px; }
.seg a { flex: 1; text-align: center; padding: 8px 10px; border-radius: 11px; font-size: 13.5px; font-weight: 600; color: var(--ink2); white-space: nowrap; transition: background .2s; }
.seg a.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px -3px rgba(15, 29, 39, .25); }
.seg.scroll { overflow-x: auto; scrollbar-width: none; } .seg.scroll::-webkit-scrollbar { display: none; } .seg.scroll a { flex: none; }
.fbar { margin-bottom: 12px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 7px 13px; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 500; color: var(--ink2); box-shadow: inset 0 0 0 1px var(--line2); }
.chip.on { background: var(--ink); color: #fff; box-shadow: none; }
.selects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.selects select, .custom input, .daybar input { width: 100%; height: 38px; border-radius: 11px; border: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--line2); padding: 0 8px; font-size: 13px; }
.custom { display: flex; align-items: center; gap: 6px; margin-top: 8px; } .custom span { color: var(--sub); font-size: 13px; }
.daybar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; } .daybar b { flex: 1; text-align: center; }
.search { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; background: #fff; border-radius: 14px; box-shadow: var(--sh); margin-bottom: 12px; color: var(--sub); }
.search input { flex: 1; border: 0; outline: 0; background: none; font-size: 15px; color: var(--ink); }

/* forms */
.form, .form-stack { display: block; }
.page-form .card { padding-top: 12px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 10px; }
.fgrid.three { grid-template-columns: 1fr 1fr 1fr; margin-top: 10px; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field.full, .switch-row.full { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 600; color: var(--ink2); }
.field .req { color: var(--accent); font-style: normal; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 12px; border-radius: var(--ri); border: 0; background: var(--ice); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; outline: 0; transition: box-shadow .15s, background .15s; }
.field input[type=color] { padding: 4px; height: 46px; }
.field input[type=file] { padding: 10px; font-size: 13px; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { background: #fff; box-shadow: inset 0 0 0 2px var(--brand); }
.field input:disabled, .field select:disabled { opacity: .6; }
.hint { color: var(--sub); font-size: 12px; line-height: 1.4; margin: 6px 2px 0; }
.form-sec { font-size: 12px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .08em; margin: 2px 0 10px; }
.card .form-sec + .fgrid { margin-top: 0; }
.fgrid + .form-sec, .checks + .form-sec { margin-top: 16px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; padding: 0 12px; border-radius: var(--ri); background: var(--ice); font-size: 14px; font-weight: 500; }
.switch { appearance: none; width: 44px; height: 26px; border-radius: 13px; background: #C9D5DD; position: relative; transition: background .2s; flex: none; cursor: pointer; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch:checked { background: var(--brand); } .switch:checked::after { transform: translateX(18px); }
.checks { display: flex; flex-direction: column; gap: 2px; } .checks.two { display: grid; grid-template-columns: 1fr 1fr; }
.ck { display: flex; align-items: center; gap: 8px; padding: 7px 2px; font-size: 14px; cursor: pointer; }
.ck input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.ck small { color: var(--sub); }
.ck.pill { display: inline-flex; padding: 6px 12px 6px 9px; border-radius: 999px; background: var(--ice); box-shadow: inset 0 0 0 1px var(--line2); font-size: 13px; }
.pchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sticky-save { position: sticky; bottom: calc(86px + var(--safe-b)); z-index: 5; margin: 14px 0 0; padding: 10px; border-radius: 20px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 12px 30px -14px rgba(15, 29, 39, .35); }
.sticky-save.row2 { display: flex; gap: 8px; } .sticky-save.row2 .btn { flex: 1; padding: 0 10px; }
.sheet .sticky-save { bottom: 0; margin: 16px -4px 0; box-shadow: none; padding: 8px 0 0; background: #fff; }

/* calc boxes */
.cap-note { margin-top: 10px; } .cap-note small { color: var(--sub); font-size: 12px; }
.capline { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink2); } .capline b { font-size: 15px; }
.capline.warn b { color: var(--warn); } .capline.bad b { color: var(--bad); }
.calc { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--ice); font-size: 13px; color: var(--ink2); }
.calc:empty { display: none; } .calc b { font-size: 20px; color: var(--brand-d); letter-spacing: -.02em; }
.ratebox { display: flex; flex-direction: column; padding: 12px 14px; border-radius: 14px; background: var(--frost); margin-bottom: 12px; }
.ratebox small { color: var(--brand); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.ratebox b { font-size: 18px; color: var(--brand-d); letter-spacing: -.02em; } .ratebox span { color: var(--ink2); font-size: 12.5px; }
.card .ratebox:last-child { margin: 12px 0 0; }
.exact { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: var(--frost); }
.exact:empty { display: none; }
.exact div { display: flex; flex-direction: column; } .exact small { color: var(--brand); font-size: 12px; font-weight: 600; } .exact b { font-size: 22px; letter-spacing: -.03em; color: var(--brand-d); } .exact span { font-size: 13px; color: var(--ink2); }
.avail-h { font-size: 12px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .08em; margin: 12px 0 6px; }
.tbl.avail { font-size: 13px; } .tbl.avail td, .tbl.avail th { padding: 9px 6px; } .tbl.avail td:nth-child(2) { white-space: normal; }
.tbl.avail tr[data-pick] { cursor: pointer; } .tbl.avail tr[data-pick]:hover td { background: var(--ice); }
.tbl.avail tr.on td { background: var(--frost); font-weight: 600; } .tbl.avail tr.sub td { font-weight: 700; background: #F6F9FB; border-bottom: 2px solid var(--line2); }
.fifo { margin-top: 12px; border-radius: 14px; background: var(--ice); padding: 4px 12px; }
.fifo-h { font-size: 12px; color: var(--sub); padding: 6px 0; } .fifo-r { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
.fifo-r b { white-space: nowrap; } .fifo-r.tot { font-weight: 700; color: var(--brand-d); }
.warnbox { margin: 10px 0; padding: 11px 14px; border-radius: 14px; background: #FFF2E8; color: #8A3E10; font-size: 13.5px; box-shadow: inset 0 0 0 1px #F7D0B6; }
.okbox { margin: 10px 0; padding: 11px 14px; border-radius: 14px; background: #E8F6EE; color: #0D5C38; font-size: 13.5px; }
.formula { margin: 12px 0 4px; padding: 10px 12px; border-radius: 12px; background: var(--ice); font-size: 13px; color: var(--ink2); }
.formula:empty { display: none; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.kv:last-child { border-bottom: 0; } .kv span { color: var(--sub); } .kv b { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.kv.tot { border-top: 2px solid var(--ink); border-bottom: 0; margin-top: 2px; font-size: 16px; } .kv.tot span { color: var(--ink); font-weight: 600; } .kv.tot b { font-size: 18px; color: var(--brand-d); }
.breakup { margin-top: 8px; }

/* chambers */
.ch-card { display: block; margin: 0; transition: transform .2s, box-shadow .2s; }
.ch-card:hover { transform: translateY(-2px); box-shadow: var(--sh2); }
.ch-top { display: flex; justify-content: space-between; gap: 8px; }
.ch-top b { font-size: 16px; } .ch-top small { display: block; color: var(--sub); font-size: 12px; }
.temp { text-align: right; font-size: 20px; font-weight: 700; letter-spacing: -.03em; color: var(--brand); white-space: nowrap; }
.temp small { display: block; font-size: 11px; font-weight: 500; color: var(--sub); letter-spacing: 0; }
.temp.bad { color: var(--bad); }
.ch-pct { display: flex; align-items: flex-end; gap: 10px; margin-top: 10px; }
.ch-pct b { font-size: 38px; line-height: .9; letter-spacing: -.05em; font-weight: 700; } .ch-pct b i { font-style: normal; font-size: 18px; color: var(--sub); }
.ch-pct span { font-size: 12px; color: var(--ink2); line-height: 1.3; }
.ch-foot { display: flex; gap: 12px; font-size: 12px; color: var(--sub); margin-top: 4px; align-items: center; }
.warm { box-shadow: inset 0 0 0 1.5px #F4B7A9, var(--sh); }
.hero-temp { display: flex; justify-content: space-between; align-items: center; background: linear-gradient(135deg, var(--brand), #0E7294); color: #fff; }
.hero-temp small { color: #BFE0EC; font-size: 12px; } .hero-temp b { display: block; font-size: 40px; letter-spacing: -.05em; line-height: 1.05; } .hero-temp span { color: #BFE0EC; font-size: 12.5px; }
.hero-temp.warm { background: linear-gradient(135deg, #B2361F, var(--accent)); }
.ch-pct.big { flex-direction: column; align-items: flex-end; gap: 0; } .ch-pct.big b { font-size: 44px; color: #fff; } .ch-pct.big b i { color: #BFE0EC; } .ch-pct.big span { color: #BFE0EC; }
.occ { display: flex; flex-direction: column; gap: 4px; } .occ-r { display: grid; grid-template-columns: 82px 1fr 40px; align-items: center; gap: 10px; font-size: 13px; } .occ-r .meter { margin: 0; } .occ-r b { text-align: right; }

/* lots */
.lot-hero, .party-hero { display: flex; align-items: center; gap: 14px; }
.lot-hero > div, .party-hero > div { flex: 1; display: flex; flex-direction: column; }
.lot-hero b, .party-hero b { font-size: 28px; letter-spacing: -.04em; line-height: 1.1; } .lot-hero span, .party-hero span, .party-hero small { color: var(--sub); font-size: 12.5px; }
.party-hero { background: linear-gradient(135deg, #fff, var(--ice)); }
.party-hero > div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.party-acts { display: grid; grid-template-columns: 1fr 1fr 1fr 56px; gap: 8px; margin-bottom: 12px; } .party-acts .btn { padding: 0 8px; }
.timeline { padding: 8px 16px; }
.tl { position: relative; padding: 6px 0 6px 20px; display: flex; flex-direction: column; font-size: 13.5px; }
.tl i { position: absolute; left: 3px; top: 12px; width: 8px; height: 8px; border-radius: 2px; background: var(--brand); transform: rotate(45deg); }
.tl::before { content: ""; position: absolute; left: 6.5px; top: 0; bottom: 0; border-left: 1px dashed var(--line2); }
.tl small { color: var(--sub); font-size: 12px; }

/* recon */
.recon { border-left: 4px solid #E3A008; }
.recon-row { padding: 12px 16px; border-top: 1px solid var(--line); } .recon-row:first-child { border-top: 0; }
.rc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.recon small, .recon-row small { display: block; color: var(--sub); font-size: 12.5px; margin-top: 2px; }
.rc-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px 10px; margin: 8px 0; padding: 10px; border-radius: 12px; background: var(--ice); font-size: 13px; }
.rc-grid span:nth-child(3n+1) { color: var(--sub); }

/* tables */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--sub); padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #FAFCFD; position: sticky; top: 0; }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl .n { text-align: right; }
.tbl tfoot td { font-weight: 700; border-top: 2px solid var(--line2); border-bottom: 0; background: #FAFCFD; }
.tbl tr[data-href] { cursor: pointer; } .tbl tr[data-href]:hover td { background: var(--ice); }
.tbl.dense { font-size: 12.5px; } .tbl.dense td, .tbl.dense th { padding: 7px 8px; }
.empty-td { text-align: center; color: var(--sub); padding: 22px !important; white-space: normal !important; }
.card > .tbl-wrap { margin: 0 -16px; } .card.flush > .tbl-wrap { margin: 0; }
.billc .tbl-wrap { margin: 8px -16px 0; }
.tbl.perm td:first-child { font-weight: 600; } .tbl.perm td { text-align: center; } .tbl.perm td:first-child { text-align: left; }
.tbl.perm input { width: 18px; height: 18px; accent-color: var(--brand); }
.tbl.reg td { text-align: center; padding: 6px 4px; } .tbl.reg td:first-child { text-align: left; position: sticky; left: 0; background: #fff; }
.c-P { color: var(--ok); font-weight: 700; } .c-A { color: var(--bad); font-weight: 700; } .c-L { color: var(--warn); font-weight: 700; } .c-H { color: var(--brand); font-weight: 700; } .c-W { color: var(--sub); }

/* charts */
.chart { width: 100%; height: 170px; display: block; }
.chart .ax { font: 500 12px Onest, sans-serif; fill: var(--sub); }
.chart .bar { animation: barup .7s cubic-bezier(.2, .8, .2, 1) both; transform-origin: bottom; transform-box: fill-box; }
@keyframes barup { from { transform: scaleY(0); } }
.legend-row { display: flex; gap: 14px; font-size: 12px; color: var(--sub); margin: -2px 0 4px; } .legend-row i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.hbars { display: flex; flex-direction: column; gap: 10px; }
.hb { display: flex; align-items: center; gap: 10px; }
.hb-main { flex: 1; min-width: 0; }
.hb-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; } .hb-top span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .hb-top b { white-space: nowrap; }
.hb-track { height: 8px; border-radius: 5px; background: #EBF0F3; margin-top: 4px; overflow: hidden; }
.hb-track i { display: block; height: 100%; border-radius: 5px; background: var(--brand); animation: grow .9s cubic-bezier(.2, .8, .2, 1) both; transform-origin: left; }
.hb small { color: var(--sub); font-size: 11.5px; }
.donut { display: flex; align-items: center; gap: 14px; }
.donut svg { flex: none; } .donut path { transition: opacity .2s; } .donut path:hover { opacity: .8; }
.d-big { font: 700 13px Onest, sans-serif; fill: var(--ink); } .d-sub { font: 500 9px Onest, sans-serif; fill: var(--sub); }
.legend { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 12.5px; }
.legend div { display: flex; align-items: center; gap: 7px; } .legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; } .legend span { flex: 1; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .legend b { white-space: nowrap; }

/* billing */
.steps { display: flex; gap: 4px; margin-bottom: 12px; } .steps span { flex: 1; text-align: center; font-size: 11.5px; font-weight: 600; padding: 7px 0; border-radius: 10px; background: #E1E9EE; color: var(--sub); } .steps span.on { background: var(--frost); color: var(--brand-d); }
.bill-sum.dark { background: var(--ink); color: #fff; } .bill-sum small { color: #9FB2BE; } .bill-sum b { display: block; font-size: 30px; letter-spacing: -.04em; } .bill-sum span { color: #9FB2BE; font-size: 13px; }
.billc .bc-h { display: flex; align-items: center; gap: 10px; } .bc-h > div { flex: 1; min-width: 0; } .bc-h small { display: block; color: var(--sub); font-size: 12px; } .bc-tot { font-size: 17px; letter-spacing: -.02em; white-space: nowrap; }

/* documents */
.doc-actions { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 12px; scrollbar-width: none; } .doc-actions .btn { flex: 1 0 auto; }
.doc-frame { background: #DCE5EB; border-radius: var(--r); padding: 10px; overflow: auto; margin-bottom: 12px; box-shadow: inset 0 1px 3px rgba(15, 29, 39, .1); }
.doc-frame .docpage { transform-origin: top left; box-shadow: 0 8px 22px -10px rgba(15, 29, 39, .35); zoom: .46; }
.att { border-radius: 12px; margin-top: 8px; }
.doc-frame.a6 { display: flex; justify-content: center; } .doc-frame.a6 .docpage { zoom: .9; }
@media (min-width: 700px) { .doc-frame.a6 .docpage { zoom: 1.2; } }
.designer { display: flex; flex-direction: column; gap: 12px; }
.dz-prev .doc-frame { max-height: 52vh; position: sticky; top: 64px; }
.sliders { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 12px 0; } .sliders label { display: flex; flex-direction: column; font-size: 12px; font-weight: 600; color: var(--ink2); } .sliders input { accent-color: var(--brand); }
.colist { display: flex; flex-direction: column; gap: 6px; }
.col-r { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--sub); }
.col-r input[data-on] { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.col-r input[data-l] { flex: 1; min-width: 0; height: 36px; border-radius: 9px; border: 0; background: var(--ice); box-shadow: inset 0 0 0 1px var(--line); padding: 0 8px; }
.col-r .w { width: 52px; height: 36px; border-radius: 9px; border: 0; background: var(--ice); box-shadow: inset 0 0 0 1px var(--line); padding: 0 6px; }
.col-r button { width: 32px; height: 32px; border: 0; border-radius: 9px; background: var(--ice); flex: none; }

/* accounts statements */
.stmt { padding: 6px 16px 14px; }
.stmt-cap { font-size: 12px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .08em; padding: 10px 0 2px; }
.stmt-sec { padding: 6px 0; border-bottom: 1px solid var(--line); }
.stmt-h { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-weight: 700; font-size: 14.5px; }
.stmt-r { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0 5px 14px; font-size: 13.5px; color: var(--ink2); border-radius: 8px; }
.stmt-r:hover { background: var(--ice); } .stmt-r b { font-weight: 500; white-space: nowrap; } .stmt-r span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stmt-tot { display: flex; justify-content: space-between; padding: 10px 0; font-weight: 700; font-size: 15px; border-bottom: 1px solid var(--line); }
.stmt-tot.big { border-top: 2px solid var(--ink); border-bottom: 0; font-size: 18px; color: var(--brand-d); margin-top: 4px; }
.stmt-tot.loss { color: var(--bad); }
.bs-grid { display: grid; gap: 12px; } .bs-grid .card { margin: 0; }
.jv { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.jv-r { display: grid; grid-template-columns: 1fr 86px 86px; gap: 6px; }
.jv-r select, .jv-r input { min-height: 42px; border-radius: 10px; border: 0; background: var(--ice); box-shadow: inset 0 0 0 1px var(--line); padding: 0 8px; font-size: 13.5px; min-width: 0; }
@media (min-width: 1040px) { .bs-grid { grid-template-columns: 1fr 1fr; align-items: start; } }

/* excel import */
.imp-c { padding: 12px 14px; }
.imp-h { display: flex; align-items: center; gap: 12px; } .imp-h > div { flex: 1; min-width: 0; display: flex; flex-direction: column; } .imp-h small { color: var(--sub); font-size: 12.5px; }
.imp-n { width: 30px; height: 30px; border-radius: 9px; background: var(--frost); color: var(--brand-d); font-weight: 700; display: grid; place-items: center; flex: none; }
.imp-cnt { font-size: 12px; color: var(--sub); white-space: nowrap; }
.imp-a { display: flex; gap: 8px; margin-top: 10px; } .imp-a .btn { flex: 1; }
.steps-ol { margin: 4px 0 0; padding-left: 20px; font-size: 13.5px; color: var(--ink2); } .steps-ol li { margin: 3px 0; }
.welcome { display: flex; flex-direction: column; gap: 6px; border-left: 4px solid var(--brand); } .welcome span { color: var(--ink2); font-size: 13.5px; } .welcome .btn { align-self: flex-start; margin-top: 6px; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* attendance */
.att-r { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); } .att-r:first-child { border-top: 0; }
.att-n b { font-size: 14.5px; } .att-n small { display: block; color: var(--sub); font-size: 12px; }
.att-s { display: flex; gap: 6px; } .att-s button { flex: 1; height: 38px; border: 0; border-radius: 10px; background: var(--ice); font-weight: 700; color: var(--sub); box-shadow: inset 0 0 0 1px var(--line); }
.att-s button.on.P { background: var(--ok); color: #fff; box-shadow: none; } .att-s button.on.A { background: var(--bad); color: #fff; box-shadow: none; } .att-s button.on.H { background: var(--brand); color: #fff; box-shadow: none; } .att-s button.on.L { background: #E3A008; color: #fff; box-shadow: none; } .att-s button.on.W { background: #6F7F8A; color: #fff; box-shadow: none; }
.att-t { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .att-t input { height: 38px; border-radius: 10px; border: 0; background: var(--ice); box-shadow: inset 0 0 0 1px var(--line); padding: 0 8px; font-size: 14px; width: 100%; }

/* audit */
.audit-r { padding: 11px 16px; border-top: 1px solid var(--line); } .audit-r:first-child { border-top: 0; }
.ar-top { display: flex; justify-content: space-between; gap: 8px; } .ar-top b { font-size: 14px; } .ar-top small, .audit-r > small { color: var(--sub); font-size: 12px; }
.ar-diff { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; font-size: 11.5px; font-family: ui-monospace, Consolas, monospace; }
.ar-diff span { padding: 4px 8px; border-radius: 7px; overflow-wrap: anywhere; } .ar-diff .was { background: #FDEEEC; color: #8A2A1E; } .ar-diff .now { background: #E8F6EE; color: #0D5C38; }

/* empty */
.empty { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 28px 20px; } .empty span { color: var(--sub); font-size: 13.5px; max-width: 340px; }
.me-card { padding: 14px; border-radius: 16px; background: var(--ice); margin-bottom: 12px; display: flex; flex-direction: column; } .me-card span { color: var(--sub); font-size: 13px; }
.lead { margin: 0 0 12px; color: var(--ink2); }

/* sheets */
.sheet { border: 0; padding: 0; margin: auto 0 0; width: 100%; max-width: 100%; max-height: 92vh; border-radius: 26px 26px 0 0; background: #fff; box-shadow: 0 -20px 60px -20px rgba(15, 29, 39, .4); animation: sheetup .32s cubic-bezier(.2, .8, .2, 1); overflow: hidden; display: flex; flex-direction: column; }
.sheet[open] { display: flex; }
.sheet::backdrop { background: rgba(10, 22, 30, .42); animation: fade .25s; }
.sheet.closing { animation: sheetdown .24s ease-in forwards; }
@keyframes sheetup { from { transform: translateY(100%); } } @keyframes sheetdown { to { transform: translateY(100%); } } @keyframes fade { from { opacity: 0; } }
.sheet-head { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 8px; }
.sheet-head h3 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.grab { position: absolute; top: 7px; left: 50%; width: 38px; height: 5px; margin-left: -19px; border-radius: 3px; background: #D3DDE3; }
.sheet .x { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--ice); display: grid; place-items: center; color: var(--ink2); } .sheet .x .ico { width: 18px; height: 18px; }
.sheet-body { padding: 6px 16px calc(18px + var(--safe-b)); overflow-y: auto; }
.sheet-body .list { margin: 0 -16px; } .sheet-body .field + .field { margin-top: 10px; }
.sheet .card { box-shadow: none; background: var(--ice); }
.share-opts .row { border-radius: 0; }
.pdf-chip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 12px 0; border-radius: 12px; background: var(--ice); box-shadow: inset 0 0 0 1px var(--line); }
.pdf-chip .pdf-ic { width: 34px; height: 40px; border-radius: 5px; background: #E5483B; color: #fff; font: 700 10px Onest, sans-serif; display: grid; place-items: center; flex: none; }
.pdf-chip span { display: flex; flex-direction: column; min-width: 0; } .pdf-chip b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pdf-chip small { color: var(--sub); font-size: 12px; }
.btn.wa.block { margin-bottom: 8px; height: 52px; font-size: 16px; }

/* toast */
.toast { position: fixed; z-index: 100; left: 50%; bottom: calc(92px + var(--safe-b)); transform: translate(-50%, 20px); max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .45); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); } .toast.err { background: var(--bad); }

/* login */
.login { min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(130% 70% at 50% 0%, #fff 0%, #EAF3F7 55%, var(--bg) 100%); }
.login-art { padding: 18px 10px 0; max-width: 460px; margin: 0 auto; width: 100%; }
.login-box { flex: 1; max-width: 420px; width: 100%; margin: 0 auto; padding: 0 22px 28px; text-align: center; }
.login-brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: -4px; text-align: left; }
.login-brand b { display: block; font-size: 24px; letter-spacing: -.03em; } .login-brand span { color: var(--sub); font-size: 13px; }
.login .sub { color: var(--ink2); margin: 16px 0 10px; font-size: 14px; }
.dots { display: flex; justify-content: center; gap: 14px; margin-bottom: 18px; } .dots i { width: 13px; height: 13px; border-radius: 4px; transform: rotate(45deg); box-shadow: inset 0 0 0 2px var(--line2); transition: background .15s, box-shadow .15s; } .dots i.on { background: var(--brand); box-shadow: none; }
.dots.shake { animation: shake .4s; } @keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 300px; margin: 0 auto; }
.pad button { height: 58px; border: 0; border-radius: 18px; background: #fff; font-size: 23px; font-weight: 500; box-shadow: var(--sh); transition: transform .1s, background .1s; }
.pad button:active { transform: scale(.94); background: var(--frost); } .pad button:disabled { visibility: hidden; }
.demo-note { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.demo-note > b { grid-column: 1 / -1; font-size: 12px; color: var(--sub); font-weight: 600; }
.demo-note button { border: 0; background: rgba(255, 255, 255, .8); border-radius: 12px; padding: 7px 4px; display: flex; flex-direction: column; box-shadow: inset 0 0 0 1px var(--line); }
.demo-note button b { font-size: 14px; color: var(--brand-d); } .demo-note button span { font-size: 10.5px; color: var(--sub); line-height: 1.2; }

/* print */
#print-root { display: none; }
@media print {
  body.printing > *:not(#print-root) { display: none !important; }
  body.printing #print-root { display: block; }
  body.printing { background: #fff; }
  #print-root .docpage { box-shadow: none; zoom: 1; }
  @page { margin: 0; }
}

/* ---------- small phones ---------- */
@media (max-width: 370px) {
  .kpi b { font-size: 18px; } .hero-n b { font-size: 38px; } .selects { grid-template-columns: 1fr 1fr; }
  .fgrid { grid-template-columns: 1fr; } .fgrid.three { grid-template-columns: 1fr 1fr; }
}

/* ---------- tablet ---------- */
@media (min-width: 700px) {
  .page { max-width: 760px; padding-left: 24px; padding-right: 24px; }
  .grid2 { grid-template-columns: 1fr 1fr; }
  .kpis.k2 { grid-template-columns: repeat(4, 1fr); }
  .doc-frame .docpage { zoom: .7; }
  .sheet { max-width: 560px; margin: auto; border-radius: 26px; max-height: 88vh; animation: pop .26s cubic-bezier(.2, .8, .2, 1); }
  .sheet.wide { max-width: 760px; }
  .sheet.closing { animation: fade .2s reverse forwards; }
  @keyframes pop { from { opacity: 0; transform: scale(.96) translateY(10px); } }
  .att-r { grid-template-columns: 1.2fr 1.4fr 1fr; align-items: center; }
  .chips { margin: 0; padding: 0; }
}

/* ---------- desktop: same app, sidebar ---------- */
@media (min-width: 1040px) {
  .topbar { display: none; }
  .dock { display: none; }
  .side { display: flex; flex-direction: column; gap: 14px; position: fixed; top: 0; bottom: 0; left: 0; width: 248px; padding: 18px 14px; background: #fff; box-shadow: 1px 0 0 var(--line); overflow-y: auto; z-index: 20; }
  .side .brand { padding: 0 6px 6px; }
  .side nav { display: flex; flex-direction: column; gap: 10px; }
  .sg { display: flex; flex-direction: column; } .sg > span { font-size: 11px; font-weight: 700; color: var(--sub); text-transform: uppercase; letter-spacing: .08em; padding: 6px 10px 4px; }
  .sg a { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--ink2); transition: background .15s; }
  .sg a:hover { background: var(--ice); } .sg a.on { background: var(--frost); color: var(--brand-d); font-weight: 600; }
  .sg em { font-style: normal; font-size: 11px; font-weight: 700; background: var(--accent); color: #fff; padding: 1px 7px; border-radius: 9px; }
  .side-me { margin-top: auto; border: 0; background: var(--ice); border-radius: 14px; padding: 10px 12px; text-align: left; display: flex; flex-direction: column; } .side-me small { color: var(--sub); font-size: 12px; }
  .page { margin-left: 248px; max-width: 980px; padding: 26px 34px 60px; }
  .page.wide { max-width: 1240px; }
  .phead h1 { font-size: 28px; }
  .sticky-save { bottom: 16px; }
  .toast { bottom: 28px; margin-left: 124px; }
  .hero { display: grid; grid-template-columns: 300px 1fr; grid-template-rows: auto auto; align-items: center; padding: 22px; }
  .hero-n { grid-row: 1; } .hero-n b { font-size: 56px; } .store-svg { grid-row: 1 / span 2; grid-column: 2; max-width: 560px; margin: 0 auto; }
  .hero-foot { grid-row: 2; grid-column: 1; grid-template-columns: repeat(3, 1fr); }
  .grid2 { grid-template-columns: repeat(2, 1fr); }
  .designer { display: grid; grid-template-columns: 1.15fr 1fr; align-items: start; }
  .dz-prev .doc-frame { max-height: calc(100vh - 120px); top: 20px; }
  .dz-prev .docpage { zoom: .62; }
  .doc-frame .docpage { zoom: .78; }
  .chips { flex-wrap: wrap; }
  .fbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .fbar .selects { margin: 0; flex: 1; min-width: 420px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* several products on one slip */
.item-card { border: 1px solid var(--line); border-radius: 16px; padding: 12px 12px 14px; margin-bottom: 12px; background: var(--card, #fff); }
.item-card + .item-card { margin-top: 4px; }
.item-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.item-h b { font-size: 14px; color: var(--brand-d); }
.item-x { border: 0; background: none; color: var(--bad, #CF3B2B); font: inherit; font-size: 13px; font-weight: 600; padding: 6px 4px; cursor: pointer; }
.item-x[hidden] { display: none; }
.item-card .ratebox { margin: 12px 0 0; }
.add-item { margin-top: 2px; border-style: dashed; }
#tot { margin-top: 12px; }

.infobox { padding: 12px 14px; border-radius: 14px; background: var(--frost); color: var(--ink2); font-size: 13px; line-height: 1.5; margin-bottom: 10px; }

/* slip corrections, print choices, company logo */
.slip-fix p { margin: 4px 0 10px; font-size: 13px; }
.slip-fix .btns { margin: 0; }
.print-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; margin: 12px 0; }
.print-opt { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px 12px; border: 1px solid var(--line2); border-radius: 16px; background: var(--card); font: inherit; color: var(--ink); cursor: pointer; }
.print-opt:hover, .print-opt:focus-visible { border-color: var(--brand); box-shadow: 0 0 0 3px var(--frost); outline: 0; }
.print-opt b { font-size: 14px; } .print-opt small { color: var(--sub); font-size: 11.5px; text-align: center; line-height: 1.3; }
.po-pic { display: grid; width: 42px; height: 58px; gap: 2px; padding: 3px; border: 1.5px solid var(--line2); border-radius: 4px; background: #fff; margin-bottom: 4px; }
.po-pic.po-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; } .po-pic.po-2 { grid-template-rows: 1fr 1fr; }
.po-pic i { border: 1px dashed var(--line2); border-radius: 2px; } .po-pic i.on { background: var(--brand); border: 0; opacity: .85; }
.logo-set { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; padding: 12px; border-radius: 14px; background: var(--frost); }
.logo-set small { display: block; color: var(--sub); font-size: 12px; margin: 2px 0 8px; } .logo-set .btns { margin: 0; }
.logo-prev { width: 72px; height: 72px; flex: none; border-radius: 12px; background: #fff; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); }
.logo-prev img { max-width: 64px; max-height: 64px; object-fit: contain; } .logo-prev span { font-size: 11px; color: var(--sub); }

/* register search + older slips link */
.fsearch { margin: 10px 0 0; } .fsearch input { width: 100%; height: 44px; padding: 0 14px; border-radius: 13px; border: 1px solid var(--line2); background: var(--card); font: inherit; font-size: 14.5px; color: var(--ink); }
.fsearch input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px var(--frost); }
.older-link { display: block; margin: 0 0 12px; padding: 11px 14px; border-radius: 13px; background: var(--frost); color: var(--ink2); font-size: 13px; text-decoration: none; }
.older-link b { color: var(--brand-d); }
@media (min-width: 700px) { .fsearch { flex: 1 1 260px; margin: 0; } }

/* searchable picker */
.ss { position: relative; }
.ss select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.ss-btn { width: 100%; height: 48px; display: flex; align-items: center; gap: 8px; padding: 0 12px 0 14px; border: 1px solid var(--line2); border-radius: 13px; background: var(--frost); font: inherit; font-size: 15px; color: var(--ink); text-align: left; cursor: pointer; }
.ss-btn span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-btn svg { width: 18px; height: 18px; flex: none; color: var(--sub); }
.ss.ss-none .ss-btn span { color: var(--sub); }
.ss-btn:focus-visible { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px var(--frost); }
.ss-btn:disabled { opacity: .6; cursor: default; }
.ss-find { position: sticky; top: 0; padding-bottom: 10px; background: var(--card); z-index: 1; }
.ss-find input { width: 100%; height: 48px; padding: 0 14px; border-radius: 13px; border: 1.5px solid var(--brand); font: inherit; font-size: 16px; color: var(--ink); background: var(--card); }
.ss-find input:focus { outline: 0; box-shadow: 0 0 0 3px var(--frost); }
.ss-list { display: flex; flex-direction: column; max-height: 58vh; overflow: auto; }
.ss-opt { text-align: left; padding: 13px 12px; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; font-size: 15px; color: var(--ink); cursor: pointer; }
.ss-opt:hover, .ss-opt:focus-visible { background: var(--frost); outline: 0; }
.ss-opt.on { font-weight: 700; color: var(--brand-d); }
.ss-opt.add { color: var(--brand); font-weight: 600; border-bottom: 0; }

/* backup reminder + welcome actions */
.backup-nudge { display: flex; align-items: center; gap: 12px; justify-content: space-between; background: #FFF6E8; box-shadow: inset 0 0 0 1px #F4DDB3; }
.backup-nudge b { display: block; font-size: 14px; color: #7A4A06; } .backup-nudge span { display: block; font-size: 12.5px; color: #8A6A3A; margin-top: 2px; }
.backup-nudge .btn { flex: none; }
.welcome .btns { margin: 10px 0 0; flex-wrap: wrap; }

.ss-opt small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 400; color: var(--sub); }
.stock-card .avail-h { margin-top: 0; }

/* product detail: 2 × 2 on phones, 4 across on wider screens */
.kpis.k4 { grid-template-columns: 1fr 1fr; } .kpis.k4 .kpi b { font-size: 17px; }
@media (min-width: 900px) { .kpis.k4 { grid-template-columns: repeat(4, 1fr); } }

/* online status (live site) */
.syncb { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 999px; background: var(--frost); color: var(--ink2); font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.syncb i { width: 8px; height: 8px; border-radius: 50%; background: #9AA6B0; flex: none; }
.syncb.s-ok i { background: #13804F; } .syncb.s-ok { color: #0E6B42; background: #E6F4EC; }
.syncb.s-saving i { background: var(--brand); animation: syncp 1s ease-in-out infinite; }
.syncb.s-offline, .syncb.s-error { background: #FFF2E2; color: #8A5206; } .syncb.s-offline i, .syncb.s-error i { background: #D98A12; }
.syncb.s-relogin { background: #FDE8E6; color: #A3291C; } .syncb.s-relogin i { background: #CF3B2B; }
.syncb.s-new { background: var(--brand); color: #fff; } .syncb.s-new i { background: #fff; }
@keyframes syncp { 50% { opacity: .3; } }
.top-r .syncb span { max-width: 92px; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 420px) { .top-r .syncb { padding: 0 9px; } .top-r .syncb.s-ok span { display: none; } }
.side-sync { margin: 10px 0 4px; }
.login-box.checking .pad { opacity: .5; pointer-events: none; }
.online-card { border-left-color: #13804F; }

/* names in tables and bars open their own page */
.cell-l { color: var(--brand-d); text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; font-weight: 600; }
.cell-l:hover, .cell-l:focus-visible { text-decoration-color: currentColor; }
a.hb { color: inherit; text-decoration: none; } a.hb:hover .hb-top span { text-decoration: underline; }
@media print { .cell-l { color: inherit; text-decoration: none; font-weight: inherit; } }

/* party bill */
.pb-h { margin: 0 0 8px; font-size: 16px; } .pb-in { width: 78px; height: 36px; padding: 0 9px; border: 1px solid var(--line2); border-radius: 9px; background: var(--ice); font: inherit; } .pb-in[data-mon] { width: 52px; text-align: right; }
.pbill small { margin-left: 6px; color: var(--sub); } .pbill td.wrap { white-space: normal; min-width: 120px; } .pb-tot { font-size: 15px; } .pb-tot b { font-size: 18px; color: var(--brand-d); }

.pr-mode { color: var(--sub); font-size: 12px; }

.backup-nudge.ok { background: #EEF6F1; box-shadow: inset 0 0 0 1px #CBE3D4; } .backup-nudge.ok b { color: #1D5B38; } .backup-nudge.ok span { color: #4C7A5F; }
