/* ==========================================================================
   PhonePro POS — design system
   Clean white, deep green and a little orange. Calm for a full day at the counter.
   Big touch targets, light and dark modes, five colour themes.
   ========================================================================== */

:root {
  /* Neutrals: clean white with the faintest green, so it feels fresh, not grey */
  --bg: #f3f7f4;
  --surface: #ffffff;
  --surface-2: #f7faf8;
  --surface-3: #eaf1ed;
  --border: #dee8e2;
  --border-strong: #c2d1c8;
  --text: #13251f;
  --text-2: #32463d;
  --muted: #5c7066;

  /* Main menu */
  --nav-bg: #12352b;
  --nav-text: #b5cdc2;
  --nav-active: #1f5a46;

  /* Accent: "Fresh" (default). Other themes override these. */
  --primary: #15704f;
  --primary-hover: #105a3f;
  --primary-soft: #e2f3ea;
  --primary-text: #125c42;
  --accent-2: #f08a3c;
  --ring: 0 0 0 3px rgba(21, 112, 79, .22);

  --success: #15794f;
  --success-hover: #10633f;
  --success-soft: #e0f3e8;
  --success-text: #14603f;

  --danger: #b5413b;
  --danger-hover: #993530;
  --danger-soft: #fae9e7;
  --danger-text: #98342f;

  --warn: #cf7420;
  --warn-soft: #fdf0e1;
  --warn-text: #8d4c0d;

  --info: #2a6f97;
  --info-soft: #e4f0f7;
  --info-text: #225d80;

  --radius-sm: 8px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: none;
  --shadow: 0 1px 2px rgba(18, 53, 43, .06), 0 4px 14px rgba(18, 53, 43, .07);
  --shadow-lg: 0 18px 44px rgba(12, 35, 28, .2);

  --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "SF Pro Text", Roboto, "Noto Sans", "Noto Sans Sinhala", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --sidebar-w: 96px;
  color-scheme: light;
}
:root[data-accent="ocean"] {
  --primary: #2d7393; --primary-hover: #255f7a; --primary-soft: #e1eef4; --primary-text: #23607b;
  --ring: 0 0 0 3px rgba(45, 115, 147, .25); --nav-bg: #15384a; --nav-text: #b3cbd8; --nav-active: #24566f;
}
:root[data-accent="sage"] {
  --primary: #4a7156; --primary-hover: #3c5d47; --primary-soft: #e7efe8; --primary-text: #3c5e48;
  --ring: 0 0 0 3px rgba(74, 113, 86, .25); --nav-bg: #2b3d31; --nav-text: #c2cfc5; --nav-active: #425c4a;
}
:root[data-accent="lavender"] {
  --primary: #6a62a8; --primary-hover: #574f90; --primary-soft: #ebe9f6; --primary-text: #514a8c;
  --ring: 0 0 0 3px rgba(106, 98, 168, .25); --nav-bg: #2f2b50; --nav-text: #c6c2e0; --nav-active: #494379;
}
:root[data-accent="sand"] {
  --primary: #8d6138; --primary-hover: #764f2c; --primary-soft: #f3ebe2; --primary-text: #6f4a28;
  --ring: 0 0 0 3px rgba(149, 104, 61, .25); --nav-bg: #43301e; --nav-text: #dccbb8; --nav-active: #62482f;
}

/* Dark: deep green-black, never pure black; text is off-white to cut glare */
:root[data-theme="dark"] {
  --bg: #0f1714;
  --surface: #16211d;
  --surface-2: #1b2824;
  --surface-3: #23322c;
  --border: #283932;
  --border-strong: #3a4e45;
  --text: #e3ece7;
  --text-2: #c3d0c9;
  --muted: #91a39a;

  --nav-bg: #0b120f;
  --nav-text: #9fb5aa;
  --nav-active: #1c3a2f;

  --primary: #1f7f59;
  --primary-hover: #279169;
  --primary-soft: #18352a;
  --primary-text: #83d3b0;
  --ring: 0 0 0 3px rgba(110, 205, 165, .32);

  --success: #1f7f55;
  --success-hover: #279166;
  --success-soft: #17352a;
  --success-text: #86d6ae;

  --danger: #b04a47;
  --danger-hover: #c05754;
  --danger-soft: #3a2223;
  --danger-text: #f0a8a5;

  --warn: #c47a2a;
  --warn-soft: #3b2b18;
  --warn-text: #f0bd85;

  --info: #3f86a8;
  --info-soft: #1a313d;
  --info-text: #8ec5e0;

  --shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 6px 18px rgba(0, 0, 0, .25);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
  color-scheme: dark;
}
:root[data-theme="dark"][data-accent="ocean"] {
  --primary: #3a7b9b; --primary-hover: #4589aa; --primary-soft: #1e3440; --primary-text: #8cc3dc;
  --ring: 0 0 0 3px rgba(110, 175, 205, .35); --nav-bg: #0b1418; --nav-text: #9fb4bf; --nav-active: #1c3947;
}
:root[data-theme="dark"][data-accent="sage"] {
  --primary: #4b7a5c; --primary-hover: #578a69; --primary-soft: #223328; --primary-text: #9fcdb0;
  --ring: 0 0 0 3px rgba(120, 180, 145, .35); --nav-bg: #0e1511; --nav-text: #a6b5ab; --nav-active: #26392d;
}
:root[data-theme="dark"][data-accent="lavender"] {
  --primary: #6a62a8; --primary-hover: #7770b5; --primary-soft: #2a2742; --primary-text: #b9b3e6;
  --ring: 0 0 0 3px rgba(160, 150, 220, .35); --nav-bg: #110f1c; --nav-text: #aeaac6; --nav-active: #2c2848;
}
:root[data-theme="dark"][data-accent="sand"] {
  --primary: #95683d; --primary-hover: #a3754a; --primary-soft: #3a2c1f; --primary-text: #e0bf95;
  --ring: 0 0 0 3px rgba(215, 175, 125, .35); --nav-bg: #17100a; --nav-text: #c2b09c; --nav-active: #3b2a1a;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--primary-text); }
kbd {
  font-family: var(--mono); font-size: 11px; padding: 2px 6px; border-radius: 6px;
  border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--muted);
}
.i { flex: none; display: inline-block; vertical-align: middle; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); letter-spacing: .02em; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.hidden { display: none !important; }
:focus-visible { outline: none; box-shadow: var(--ring); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--radius-sm);
  border: 1px solid transparent; background: var(--surface-3); color: var(--text);
  font-weight: 600; white-space: nowrap; transition: background .15s, border-color .15s;
  user-select: none;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover:not(:disabled) { background: var(--success-hover); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: var(--danger-hover); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); }
.btn-danger-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--danger-text); }
.btn-danger-ghost:hover:not(:disabled) { background: var(--danger-soft); border-color: var(--danger); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 7px; }
.btn-lg { min-height: 56px; font-size: 17px; padding: 0 24px; }
.btn-block { width: 100%; }
.btn-pay {
  width: 100%; min-height: 64px; border-radius: var(--radius); font-size: 20px; font-weight: 700;
  background: var(--success); color: #fff;
}
.btn-pay:hover:not(:disabled) { background: var(--success-hover); }
.btn-pay kbd { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.3); color: #fff; }
.btn-pay:disabled { box-shadow: none; }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid transparent; background: transparent; color: var(--muted);
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn.danger:hover { background: var(--danger-soft); color: var(--danger-text); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.field small { color: var(--muted); font-size: 12px; }
.input, .field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 90px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: var(--ring);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.input-row { display: flex; gap: 8px; }
.input-row > .input, .input-row > input { flex: 1; }

.seg { display: flex; background: var(--surface-3); padding: 4px; border-radius: var(--radius); gap: 4px; flex-wrap: wrap; }
.seg button {
  flex: 1; min-height: 40px; border: 0; border-radius: 7px; background: transparent;
  font-weight: 600; color: var(--muted); padding: 0 12px; white-space: nowrap;
}
.seg button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

.check { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }
.check:has(input:checked) { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-text); }

.search {
  display: flex; align-items: center; gap: 10px; padding: 0 14px; min-height: 46px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  color: var(--muted); flex: 1; min-width: 0;
}
.search:focus-within { border-color: var(--primary); box-shadow: var(--ring); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); height: 44px; }
.search.big { min-height: 56px; border-radius: var(--radius); font-size: 17px; }
.search.big input { height: 54px; }

/* ---------- Chips, badges, pills ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px;
  border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface);
  font-weight: 600; color: var(--text-2);
}
.chip:hover { border-color: var(--border-strong); }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.chip .pic { margin-left: -4px; }
.chip.active .pic { --tile: #fff; --pic-soft: rgba(255,255,255,.5); --pic-paper: var(--primary); --pic-dark: #fff; }
.chip .count { font-size: 12px; opacity: .7; }

.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 6px;
  font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--surface-3); color: var(--text-2);
}
.badge.success { background: var(--success-soft); color: var(--success-text); }
.badge.danger { background: var(--danger-soft); color: var(--danger-text); }
.badge.warn { background: var(--warn-soft); color: var(--warn-text); }
.badge.info { background: var(--info-soft); color: var(--info-text); }
.badge.primary { background: var(--primary-soft); color: var(--primary-text); }
.badge.muted { background: var(--surface-3); color: var(--muted); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.plain::before { display: none; }
.pill { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; }
.pill:empty { display: none; }

/* ---------- App shell ---------- */
.shell { display: flex; height: 100vh; height: 100dvh; }
.sidebar {
  width: var(--sidebar-w); flex: none; background: var(--nav-bg); color: var(--nav-text);
  display: flex; flex-direction: column; align-items: center; padding: 14px 8px; gap: 4px; overflow-y: auto; scrollbar-width: none;
}
.brand-mark {
  width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 8px; flex: none;
}
.nav-item {
  width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px;
  border-radius: var(--radius); border: 0; background: transparent; color: var(--nav-text); font-size: 12px; font-weight: 600;
  text-decoration: none; position: relative;
}
.nav-item:hover { background: color-mix(in srgb, var(--nav-active) 55%, transparent); color: #fff; }
.nav-item.active { background: var(--nav-active); color: #fff; }
.sidebar .icon-btn { color: var(--nav-text); }
.sidebar .icon-btn:hover { background: var(--nav-active); color: #fff; }
.sidebar :focus-visible { box-shadow: 0 0 0 3px rgba(255, 255, 255, .45); }
.nav-item .pill { position: absolute; top: 4px; right: 10px; min-width: 18px; height: 18px; font-size: 11px; background: var(--accent-2); color: #2b1503; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; padding-top: 10px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
  color: #fff; font-weight: 700; font-size: 14px; background: var(--c, var(--primary));
}
.avatar.lg { width: 72px; height: 72px; font-size: 24px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.banner { display: flex; align-items: center; gap: 10px; padding: 10px 20px; font-weight: 600; font-size: 14px; border-bottom: 1px solid var(--border); }
.banner span { flex: 1; }
.banner.warn { background: var(--warn-soft); color: var(--warn-text); }
.banner.info { background: var(--primary-soft); color: var(--primary-text); }
.banner.danger { background: var(--danger-soft); color: var(--danger-text); }
.banner.support { background: #5b4a9e; color: #fff; }
.banner.support .btn-ghost { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .35); color: #fff; }
.cloud-btn { position: relative; }
.cloud-dot { position: absolute; right: 6px; bottom: 7px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--nav-bg); background: var(--muted); }
.cloud-btn[data-state=ok] .cloud-dot, .cloud-btn[data-state=idle] .cloud-dot { background: #4fc08a; }
.cloud-btn[data-state=syncing] .cloud-dot { background: var(--info); animation: blink 1s infinite; }
.cloud-btn[data-state=offline] .cloud-dot { background: var(--warn); }
.cloud-btn[data-state=error] .cloud-dot, .cloud-btn[data-state=blocked] .cloud-dot { background: var(--danger); }
@keyframes blink { 50% { opacity: .3; } }
#view { flex: 1; min-height: 0; overflow-y: auto; }
.page { padding: 24px 28px 40px; max-width: 1400px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; font-weight: 700; }
.page-head p { color: var(--muted); margin-top: 4px; }
.page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .search { max-width: 420px; }
.toolbar select.input { width: auto; min-width: 170px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card-pad { padding: 20px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px 0; }
.card-head h3 { font-size: 16px; font-weight: 700; }
.card-head p { color: var(--muted); font-size: 13px; }

.empty { text-align: center; color: var(--muted); padding: 48px 20px; }
.empty .big, .cart-empty .big { line-height: 1; margin-bottom: 12px; --tile: var(--primary); }
.empty b { display: block; color: var(--text); font-size: 16px; margin-bottom: 4px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-size: 13px; font-weight: 600; color: var(--muted);
  padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap;
}
.table th:first-child { border-top-left-radius: var(--radius-lg); }
.table th:last-child { border-top-right-radius: var(--radius-lg); }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr.clickable { cursor: pointer; }
.table tbody tr.clickable:hover td { background: var(--surface-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .actions { text-align: right; white-space: nowrap; }
.prod-cell { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.emo { width: 44px; height: 44px; border-radius: var(--radius-sm); display: grid; place-items: center; overflow: hidden; background: color-mix(in srgb, var(--tile, var(--primary)) 12%, var(--surface)); flex: none; }
.emo.has-photo { background: #fff; border: 1px solid var(--border); }
.photo { width: 100%; height: 100%; min-height: 0; object-fit: contain; display: block; }
.emo.has-photo, .tile-art.has-photo, .frame.has-photo { grid-template: 100% / 100%; }
.prod-cell b { display: block; font-weight: 600; }
.prod-cell small { color: var(--muted); }
.show-more { display: flex; justify-content: center; padding: 14px; }

/* ---------- POS ---------- */
.pos { display: grid; grid-template-columns: minmax(0, 1fr) 420px; height: 100%; }
.pos-main { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; min-height: 0; overflow: hidden; }
.pos-toolbar { display: flex; gap: 10px; }
.pos-toolbar .btn { min-height: 56px; border-radius: var(--radius); }
.tile-grid {
  flex: 1; overflow-y: auto; display: grid; gap: 12px; align-content: start;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); grid-auto-rows: max-content; padding: 2px 2px 20px;
}
.tile {
  position: relative; display: flex; flex-direction: column; text-align: left; padding: 0; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); transition: box-shadow .15s, border-color .15s;
}
.tile:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.tile:active { background: var(--surface-2); }
.tile-art { width: 100%; height: 92px; flex: none; display: grid; place-items: center; overflow: hidden; background: color-mix(in srgb, var(--tile) 10%, var(--surface)); }
.tile-art.has-photo { background: #fff; border-bottom: 1px solid var(--border); }
.tile-art .photo { padding: 4px; }
.tile-name { font-weight: 600; font-size: 14px; line-height: 1.3; flex: none; min-height: 2.6em; margin: 10px 12px 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-foot { display: flex; flex-direction: column; gap: 1px; padding: 0 12px 12px; margin-top: auto; }
.tile-foot b { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stock { font-size: 12px; font-weight: 600; color: var(--muted); }
.stock.low { color: var(--warn-text); }
.stock.out { color: var(--danger-text); }
.tile-count {
  position: absolute; top: 10px; right: 10px; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 8px;
  display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 700; font-size: 13px;
  animation: pop .2s ease;
}
.tile.is-out { opacity: .5; }
.tile.is-out:active { background: var(--surface); }
.tile .tag-imei { position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 600; color: var(--muted); }
.tile:has(.tile-count) .tag-imei { display: none; }
@keyframes pop { from { transform: scale(.6); } to { transform: scale(1); } }

.pos-cart {
  display: flex; flex-direction: column; min-height: 0; background: var(--surface); border-left: 1px solid var(--border);
}
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 10px; }
.cart-head h2 { font-size: 18px; font-weight: 700; }
.cart-close { display: none; }
.cust-btn {
  margin: 0 20px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius);
  border: 1px dashed var(--border-strong); background: var(--surface-2); text-align: left;
}
.cust-btn.set { border-style: solid; background: var(--primary-soft); border-color: transparent; color: var(--primary-text); }
.cust-btn span { flex: 1; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cust-btn small { font-size: 12px; color: var(--muted); }
.cart-items { flex: 1; overflow-y: auto; padding: 10px 12px; min-height: 120px; }
.cart-empty { height: 100%; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 20px; }
.line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto 34px; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 12px; animation: slide .18s ease; }
.line + .line { border-top: 1px solid var(--border); }
.line:hover { background: var(--surface-2); }
@keyframes slide { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.line-info { min-width: 0; cursor: pointer; }
.line-info b { display: block; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-info small { color: var(--muted); font-size: 12px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-total { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 14px; }
.qty { display: flex; align-items: center; background: var(--surface-3); border-radius: 10px; }
.qty button { width: 34px; height: 34px; border: 0; background: transparent; border-radius: 10px; display: grid; place-items: center; color: var(--text-2); }
.qty button:hover { background: var(--border); }
.qty span { min-width: 24px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.line .icon-btn { width: 34px; height: 34px; }
.cart-totals { padding: 14px 20px 6px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.tot-row { display: flex; justify-content: space-between; align-items: center; color: var(--text-2); font-variant-numeric: tabular-nums; }
.tot-row button { border: 0; background: none; padding: 0; color: var(--primary-text); font-weight: 600; }
.tot-row.grand { color: var(--text); font-size: 24px; font-weight: 800; margin-top: 4px; }
.cart-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 20px; }
.cart-pay { padding: 0 20px 20px; }
.cart-fab { display: none; }

/* ---------- Numpad ---------- */
.numpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.numpad button {
  min-height: 58px; border-radius: var(--radius); border: 1px solid var(--border-strong); background: var(--surface);
  font-size: 22px; font-weight: 600;
}
.numpad button:hover { background: var(--surface-2); }
.numpad button:active { background: var(--surface-3); }
.numpad button.fn { font-size: 15px; color: var(--muted); }

/* ---------- Payment ---------- */
.pay { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pay-due { background: var(--nav-bg); color: #fff; border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px; }
.pay-due span { font-size: 13px; opacity: .75; display: block; }
.pay-due strong { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.pay-entry { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border: 2px solid var(--primary); border-radius: var(--radius); margin-bottom: 10px; }
.pay-entry span { font-size: 13px; color: var(--muted); font-weight: 600; }
.pay-entry output { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pay-entry output.ph { color: var(--muted); font-weight: 500; }
.quick-cash { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; min-height: 44px; }
.quick-cash button { min-height: 44px; border-radius: 10px; border: 1px solid var(--success); background: var(--success-soft); color: var(--success-text); font-weight: 700; font-size: 13px; padding: 0 4px; }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 8px 0 14px; }
.method {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 104px;
  border-radius: var(--radius); border: 2px solid var(--border); background: var(--surface); font-weight: 700;
}
.method:hover { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-text); }
.method[data-method=cash] .i { color: var(--success); }
.method[data-method=card] .i { color: var(--primary); }
.method[data-method=online] .i { color: var(--info); }
.pay-list { display: flex; flex-direction: column; gap: 6px; min-height: 40px; }
.pay-line { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 10px; background: var(--surface-2); font-weight: 600; }
.pay-line span { flex: 1; }
.pay-status { margin: 12px 0; padding: 14px 16px; border-radius: var(--radius); font-weight: 600; display: flex; justify-content: space-between; align-items: center; font-variant-numeric: tabular-nums; }
.pay-status b { font-size: 24px; }
.pay-status.due { background: var(--warn-soft); color: var(--warn-text); }
.pay-status.ok { background: var(--success-soft); color: var(--success-text); }
.hint { color: var(--muted); font-size: 13px; font-weight: 600; }

/* ---------- Modal ---------- */
#modal-root { position: relative; z-index: 50; }
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(16, 24, 32, .42); display: grid; place-items: center; padding: 20px;
  animation: fade-in .16s ease;
}
.modal {
  width: 100%; max-height: calc(100dvh - 40px); display: flex; flex-direction: column; background: var(--surface);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); animation: modal-in .18s ease;
}
@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in { from { transform: translateY(12px) scale(.98); } }
.modal-sm { max-width: 420px; }
.modal-md { max-width: 620px; }
.modal-lg { max-width: 920px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 14px 24px; border-bottom: 1px solid var(--border); }
.modal-head h2 { font-size: 19px; font-weight: 700; }
.modal-body { padding: 20px 24px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 24px 18px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.modal-foot .spacer { flex: 1; }
.confirm-msg { font-size: 16px; color: var(--text-2); }

/* ---------- Toast ---------- */
#toast-root { position: fixed; z-index: 100; top: 16px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: var(--radius); background: var(--text); color: var(--surface);
  font-weight: 600; box-shadow: var(--shadow-lg); animation: toast-in .2s ease; max-width: 90vw;
}
.toast .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--success); color: #fff; }
.toast.danger .dot { background: var(--danger); }
.toast.warn .dot { background: var(--warn); }
.toast.out { opacity: 0; transform: translateY(-8px); transition: .2s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px); } }

/* ---------- Pick lists (customers, IMEIs) ---------- */
.pick-list { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; max-height: 50vh; overflow-y: auto; }
.pick {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); text-align: left; width: 100%;
}
.pick:hover { border-color: var(--primary); background: var(--primary-soft); }
.pick > div { flex: 1; min-width: 0; }
.pick b { display: block; font-weight: 600; }
.pick small { color: var(--muted); }

/* ---------- Receipt ---------- */
.receipt-done { text-align: center; margin-bottom: 18px; }
.receipt-done .tick { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; background: var(--success); color: #fff; animation: pop .3s ease; }
.receipt-done h3 { font-size: 22px; }
.receipt-done .change { margin-top: 10px; display: inline-flex; flex-direction: column; padding: 10px 24px; border-radius: var(--radius); background: var(--warn-soft); color: var(--warn-text); font-weight: 600; }
.receipt-done .change b { font-size: 28px; font-variant-numeric: tabular-nums; }
.paper { background: #fff; color: #111; border-radius: 6px; padding: 18px; margin: 0 auto; max-width: 340px; box-shadow: 0 0 0 1px var(--border), var(--shadow); }
/* Thermal bills: pure black, thick letters, solid lines, no grey. Sizes follow the text-size setting (em). */
.rcpt { font-family: Arial, "Helvetica Neue", Helvetica, "Nirmala UI", "Noto Sans Sinhala", "Noto Sans Tamil", sans-serif; font-size: 13.5px; line-height: 1.32; color: #000; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rcpt.f-small { font-size: 12px; }
.rcpt.f-large { font-size: 15.5px; }
.p58 .rcpt, .paper.p58 .rcpt { font-size: 12px; }
.p58 .rcpt.f-small, .paper.p58 .rcpt.f-small { font-size: 11px; }
.p58 .rcpt.f-large, .paper.p58 .rcpt.f-large { font-size: 13.5px; }
.rcpt .c { text-align: center; }
.rcpt .logo { display: block; max-width: 70%; max-height: 90px; margin: 0 auto 6px; filter: grayscale(1) contrast(2.4); }
.rcpt .shop { font-size: 1.65em; font-weight: 800; line-height: 1.12; margin-bottom: 2px; }
.rcpt hr { border: 0; border-top: 2px dashed #000; margin: 7px 0; }
.rcpt .title { text-align: center; font-size: 1.1em; font-weight: 800; letter-spacing: .06em; margin: 8px 0 7px; padding: 4px 0; border-top: 2px solid #000; border-bottom: 2px solid #000; }
.rcpt .row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.rcpt .row > span:last-child { text-align: right; font-weight: 700; flex: none; max-width: 68%; }
.rcpt .row.amt > span:last-child, .rcpt .row.grand > span:last-child { white-space: nowrap; max-width: none; }
.rcpt .row.big { font-size: 1.35em; font-weight: 800; }
.rcpt .item { margin-bottom: 6px; }
.rcpt .item .nm { font-weight: 700; }
.rcpt .was { font-weight: 400; }
.rcpt .sub { padding-left: 8px; font-size: .95em; }
.rcpt .grand { font-size: 1.5em; font-weight: 800; line-height: 1.2; border-top: 2px solid #000; border-bottom: 2px solid #000; padding: 4px 0; margin: 5px 0; }
.rcpt .grand + hr { display: none; }
.rcpt .stamp { text-align: center; border: 3px solid #000; font-weight: 800; padding: 4px; margin: 8px 0; letter-spacing: .12em; }
.rcpt .foot { font-weight: 700; }
/* Extra bold: for printers that print light. */
.rcpt.t-bold, .rcpt.t-bold .was { font-weight: 700; }
.rcpt.t-bold hr { border-top-style: solid; }
/* Classic: the old typewriter layout, now in black. */
.rcpt.t-classic { font-family: "Courier New", Courier, var(--mono); font-weight: 700; }
.rcpt.t-classic .shop, .rcpt.t-classic .title { font-family: Arial, Helvetica, sans-serif; }
.rcpt.t-classic .grand { font-size: 1.25em; }
.inv .stamp { text-align: center; border: 2px solid #b91c1c; color: #b91c1c; font-weight: 800; padding: 4px; margin: 8px 0; letter-spacing: .2em; }
.rcpt .note, .inv .note { margin-top: 4px; }
.rcpt .saved, .inv .saved { text-align: center; font-weight: 800; margin-top: 6px; }
.rcpt .terms { font-size: .92em; margin-top: 8px; }
.inv { font-family: var(--font); color: #111; font-size: 13px; line-height: 1.45; }
.inv.f-small { font-size: 12px; }
.inv.f-large { font-size: 15px; }
.inv-head { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 14px; border-bottom: 2px solid #111; }
.inv-head .logo { display: block; max-height: 70px; max-width: 200px; margin-bottom: 8px; }
.inv-shop b { display: block; font-size: 1.45em; }
.inv-shop div { color: #444; }
.inv-title { text-align: right; white-space: nowrap; }
.inv-title h2 { font-size: 1.6em; letter-spacing: .08em; margin-bottom: 6px; }
.inv-title span { color: #666; }
.inv small { display: block; color: #666; text-transform: uppercase; font-size: .72em; letter-spacing: .06em; font-weight: 700; margin-bottom: 2px; }
.inv-meta { display: flex; justify-content: space-between; gap: 20px; margin: 14px 0; }
.inv table { width: 100%; border-collapse: collapse; }
.inv th { text-align: left; font-size: .78em; text-transform: uppercase; letter-spacing: .04em; color: #555; border-bottom: 1px solid #888; padding: 6px 4px; }
.inv td { padding: 8px 4px; border-bottom: 1px solid #ddd; vertical-align: top; }
.inv .r { text-align: right; white-space: nowrap; }
.inv .sub { color: #555; font-size: .85em; }
.inv-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 12px; }
.inv-totals { width: 260px; flex: none; }
.inv-totals .row { display: flex; justify-content: space-between; padding: 3px 0; }
.inv-totals .grand { font-weight: 800; font-size: 1.2em; border-top: 2px solid #111; margin-top: 4px; padding-top: 6px; }
.inv-foot { margin-top: 28px; padding-top: 12px; border-top: 1px solid #ccc; }
.inv-foot .foot { text-align: center; font-weight: 600; }
.inv-foot .terms { font-size: .85em; color: #444; margin-top: 8px; }
.paper.a4 { max-width: 680px; padding: 32px; }
.paper.p58 { max-width: 250px; }

/* ---------- Colour themes ---------- */
.accent-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.accent-opt { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: var(--radius); border: 2px solid var(--border); background: var(--surface); text-align: left; }
.accent-opt:hover { border-color: var(--border-strong); }
.accent-opt.active { border-color: var(--primary); box-shadow: var(--ring); }
.accent-opt b { font-size: 14px; }
.accent-swatch { height: 44px; border-radius: 10px; background: linear-gradient(90deg, var(--a1) 0 66%, var(--a2) 66% 100%); }

/* ---------- Receipt designer ---------- */
.modal-xl { max-width: 1120px; }
.designer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 28px; align-items: start; }
.designer-preview { position: sticky; top: 0; background: var(--surface-3); border-radius: var(--radius-lg); padding: 16px; max-height: calc(100dvh - 220px); overflow: auto; }
.designer-preview .paper.a4 { zoom: .56; }
.logo-box { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.logo-box .thumb { width: 140px; height: 72px; border: 1px dashed var(--border-strong); border-radius: 12px; background: #fff; display: grid; place-items: center; overflow: hidden; font-size: 13px; }
.logo-box .thumb img { max-width: 100%; max-height: 100%; }
.receipt-thumb { position: relative; display: block; width: 100%; height: 230px; overflow: hidden; border: 0; padding: 16px; border-radius: var(--radius); background: var(--surface-3); text-align: left; }
.receipt-thumb .paper { zoom: .72; pointer-events: none; }
.receipt-thumb .paper.a4 { zoom: .42; }
.receipt-thumb::after { content: ""; position: absolute; inset: auto 0 0 0; height: 70px; background: linear-gradient(transparent, var(--surface-3)); }
.receipt-thumb:hover { outline: 2px solid var(--primary); }

/* ---------- Repairs ---------- */
.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.job {
  text-align: left; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius);
  padding: 16px 16px 14px 20px; display: flex; flex-direction: column; gap: 8px; position: relative; overflow: hidden; box-shadow: var(--shadow-sm);
}
.job:hover { box-shadow: var(--shadow); border-color: var(--border-strong); }
.job::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--stripe, var(--muted)); }
.job-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.job-top .no { font-weight: 700; font-family: var(--mono); font-size: 13px; }
.job h4 { font-size: 16px; font-weight: 700; }
.job .issue { color: var(--text-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.job .meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; gap: 8px; flex-wrap: wrap; }
.status-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-bottom: 18px; }
.status-steps button {
  min-height: 52px; border-radius: 12px; border: 2px solid var(--border); background: var(--surface); font-weight: 700; font-size: 13px;
}
.status-steps button.active { border-color: var(--st); background: color-mix(in srgb, var(--st) 14%, var(--surface)); color: var(--text); }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.info-grid dt { font-size: 13px; color: var(--muted); font-weight: 600; }
.info-grid dd { margin: 2px 0 0; font-weight: 600; word-break: break-word; }
.info-grid .span-2 { grid-column: 1 / -1; }
.timeline { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.timeline li { display: flex; gap: 10px; align-items: center; color: var(--text-2); }
.timeline li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex: none; }
.section-title { font-size: 15px; font-weight: 700; color: var(--text); margin: 22px 0 10px; }
.money-box { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.money-box div { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.money-box span { font-size: 12px; color: var(--muted); font-weight: 600; display: block; }
.money-box b { font-variant-numeric: tabular-nums; }

/* ---------- Reports ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 16px; }
.kpi { padding: 18px 20px; }
.kpi .k-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: 13px; }
.kpi .k-label .ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-text); }
.kpi .k-value { font-size: 21px; font-weight: 700; white-space: nowrap; margin-top: 10px; font-variant-numeric: tabular-nums; }
.kpi .k-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.report-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 16px; }
.chart-box { padding: 12px 20px 16px; position: relative; }
.chart-box svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-box .grid-line { stroke: var(--border); stroke-width: 1; }
.chart-box .axis-label { fill: var(--muted); font-size: 11px; }
.chart-box .bar { fill: var(--primary); }
.chart-box .bar-hit { fill: transparent; cursor: pointer; }
.chart-box .bar-hit:hover + .bar, .chart-box g.hover .bar { fill: var(--primary-hover); }
.chart-tip {
  position: absolute; pointer-events: none; background: var(--text); color: var(--surface); padding: 8px 12px; border-radius: 10px;
  font-size: 12px; font-weight: 600; white-space: nowrap; transform: translate(-50%, -110%); box-shadow: var(--shadow);
}
.chart-tip b { display: block; font-size: 14px; }
.hbars { display: flex; flex-direction: column; gap: 12px; padding: 16px 20px 20px; }
.hbar-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.hbar-row .track { height: 10px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.hbar-row .fill { height: 100%; background: var(--primary); border-radius: 999px; }
.hbar-row .val { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 90px; text-align: right; }

/* ---------- Settings ---------- */
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 16px; align-items: start; }
.settings-grid .card-pad > h3 { font-size: 17px; margin-bottom: 4px; }
.settings-grid .card-pad > p { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.list-rows { display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.list-row:first-child { border-top: 0; }
.list-row > div { flex: 1; min-width: 0; }
.list-row b { display: block; font-weight: 600; }
.list-row small { color: var(--muted); }
.color-dots { display: flex; gap: 8px; flex-wrap: wrap; }
.color-dots label { width: 34px; height: 34px; border-radius: 50%; background: var(--c); cursor: pointer; display: grid; place-items: center; }
.color-dots input { appearance: none; margin: 0; width: 100%; height: 100%; border-radius: 50%; cursor: pointer; }
.color-dots input:checked { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--c); }

/* ---------- Login ---------- */
.login {
  min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: var(--bg);
}
.login-card { width: 100%; max-width: 520px; background: var(--surface); border-radius: var(--radius-lg); padding: 36px; text-align: center; border: 1px solid var(--border); }
.login.split { grid-template-columns: minmax(320px, 5fr) 7fr; place-items: stretch; padding: 0; background: var(--surface); }
.login-side { background: var(--nav-bg); color: var(--nav-text); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 40px 44px; }
.login-side p { max-width: 26ch; font-size: 17px; color: #fff; }
.shelves { display: flex; flex-direction: column; gap: 34px; --tile: #fff; --pic-soft: #7fb79d; --pic-paper: var(--nav-bg); --pic-dark: #cfe3d8; }
.shelf { display: flex; justify-content: space-between; align-items: flex-end; max-width: 400px; padding: 0 10px 8px; border-bottom: 4px solid var(--nav-active); }
.login-main { display: grid; place-items: center; padding: 32px 24px; min-width: 0; }
.login.split .login-card { border: 0; padding: 0; max-width: 480px; background: transparent; }
.login-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 24px; }
.login-brand .brand-mark { width: 72px; height: 72px; margin: 0; }
.login-brand .shop-logo { max-width: 220px; max-height: 92px; padding: 8px 12px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.login-brand h1 { font-size: 24px; font-weight: 800; }
.login-brand p { color: var(--muted); }
.who-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.who {
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 10px; border-radius: var(--radius);
  border: 1px solid var(--border-strong); background: var(--surface);
}
.who:hover { border-color: var(--primary); background: var(--primary-soft); }
.who b { font-size: 16px; }
.who small { color: var(--muted); font-weight: 600; }
.pin-dots { display: flex; justify-content: center; gap: 14px; margin: 18px 0 8px; }
.pin-dots span { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-strong); transition: .12s; }
.pin-dots span.on { background: var(--primary); border-color: var(--primary); transform: scale(1.1); }
.pin-msg { min-height: 22px; color: var(--danger-text); font-weight: 600; margin-bottom: 12px; }
.login .numpad { max-width: 320px; margin: 0 auto; }
.login .numpad button { min-height: 66px; font-size: 26px; }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }
.welcome { max-width: 480px; text-align: left; }
.welcome .login-brand { text-align: center; }
.welcome .seg { margin-bottom: 18px; }
.w-form { gap: 14px; }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.link-btn { border: 0; background: none; padding: 4px; color: var(--primary-text); font-weight: 600; font-size: 14px; }
.link-btn:hover { text-decoration: underline; }
.w-foot { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.demo-hint { margin-top: 20px; font-size: 13px; color: var(--muted); background: var(--surface-2); padding: 10px 14px; border-radius: 12px; }

/* ---------- Print ---------- */
#print-area { display: none; }
@media print {
  body { background: #fff !important; }
  body > *:not(#print-area) { display: none !important; }
  #print-area { display: block; width: var(--paper, 76mm); margin: 0 auto; }
  #print-area:not(.labels) .rcpt { padding: 0 1mm 6mm; -webkit-font-smoothing: none; }
  #print-area img { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .pos { grid-template-columns: minmax(0, 1fr) 360px; }
  .report-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  :root { --sidebar-w: 0px; }
  .shell { flex-direction: column-reverse; }
  .sidebar {
    width: 100%; flex-direction: row; justify-content: space-around; padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    overflow-x: auto; gap: 2px;
  }
  .sidebar .brand-mark, .sidebar-foot .theme-btn, .sidebar-foot .cloud-btn { display: none; }
  .banner { padding: 8px 16px; font-size: 13px; flex-wrap: wrap; }
  .nav-item { width: auto; min-width: 52px; flex: 1 0 auto; padding: 6px 0; font-size: 10px; gap: 3px; }
  .nav-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .nav-item .pill { right: 4px; }
  kbd { display: none; }
  .sidebar-foot { margin: 0; width: auto; flex: 0 0 auto; flex-direction: row; padding: 0; }
  .sidebar-foot .avatar { display: none; }
  .page { padding: 18px 16px 32px; }
  .page-head h1 { font-size: 22px; }

  .pos { grid-template-columns: 1fr; position: relative; }
  .pos-main { padding: 14px 16px 90px; }
  .pos-cart {
    position: fixed; inset: 0; z-index: 30; border-left: 0; transform: translateY(100%); transition: transform .25s ease;
  }
  .pos.cart-open .pos-cart { transform: none; }
  .cart-close { display: inline-grid; }
  .cart-fab {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; left: 16px; right: 16px;
    bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 20; min-height: 58px; padding: 0 20px; border: 0; border-radius: var(--radius-lg);
    background: var(--success); color: #fff; font-size: 17px; font-weight: 700; box-shadow: var(--shadow);
  }
  .cart-fab.empty { background: var(--surface); color: var(--text-2); border: 1px solid var(--border); box-shadow: var(--shadow); }
  .tile-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .tile-art { height: 76px; }
  .pos-toolbar .btn .btn-text { display: none; }

  .pay { grid-template-columns: 1fr; gap: 12px; }
  .modal-backdrop { padding: 0; align-items: end; }
  .modal { max-height: 94dvh; border-radius: 22px 22px 0 0; }
  .modal-lg, .modal-md, .modal-sm { max-width: none; }
  .modal-body { padding: 16px; }
  .modal-foot { padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); }
  .modal-foot .btn { flex: 1; }
  .form-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .money-box { grid-template-columns: 1fr 1fr; }
  .settings-grid { grid-template-columns: minmax(0, 1fr); }
  .designer { grid-template-columns: minmax(0, 1fr); }
  .designer-preview { position: static; max-height: none; }
  .modal-xl { max-width: none; }
  .toolbar .search { max-width: none; flex-basis: 100%; }
  .toolbar select.input { flex: 1; }
  .hbar-row { grid-template-columns: 90px 1fr auto; }
  .login-card { padding: 24px 18px; }
  .login.split { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .login-side { padding: 16px 20px; flex-direction: row; align-items: center; justify-content: flex-start; }
  .login-side .shelves, .login-side p { display: none; }
  .login-main { place-items: start center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- B2B: price lists, business customers, accounts ---------- */
.cust-btn .badge { flex: none; }
.level-row { margin: 8px 20px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; background: var(--surface-3); padding: 4px; border-radius: 12px; }
.level-row button { min-height: 36px; border-radius: 9px; border: 0; background: transparent; font-size: 13px; font-weight: 600; color: var(--muted); padding: 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.level-row button.active { background: var(--surface); color: var(--primary-text); box-shadow: var(--shadow-sm); }
.method-grid.four { grid-template-columns: repeat(2, 1fr); }
.method-grid.four .method { min-height: 84px; }
.method[data-method=credit] .i { color: var(--warn); }
.level-inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.level-inputs label { display: flex; flex-direction: column; gap: 4px; }
.level-inputs small { font-size: 12px; font-weight: 600; color: var(--muted); }
.pl-tool { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.pl-tool summary { cursor: pointer; padding: 12px 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; list-style: none; }
.pl-tool summary::-webkit-details-marker { display: none; }
.pl-tool-body { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 0 14px 14px; align-items: end; }
.pl-tool-body .check { grid-column: span 2; }
.pl-tool-body .btn { grid-column: span 2; }
.pl-wrap { max-height: 52vh; overflow: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.pl-table th { position: sticky; top: 0; background: var(--surface); z-index: 1; }
.pl-table td { padding-top: 6px; padding-bottom: 6px; }
.pl-in { width: 100%; min-width: 86px; min-height: 38px; text-align: right; font-variant-numeric: tabular-nums; }
.pl-in.changed { border-color: var(--warn); background: var(--warn-soft); }
.account-bar { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 14px; text-align: left;
  border-radius: var(--radius); background: var(--primary-soft); color: var(--primary-text); border: 0; }
.account-bar div { flex: 1; min-width: 0; }
.account-bar b { display: block; font-size: 16px; }
.account-bar small { color: var(--muted); }
.account-bar > span { font-weight: 700; white-space: nowrap; }
@media (max-width: 720px) {
  .level-inputs { grid-template-columns: 1fr 1fr; }
  .pl-tool-body { grid-template-columns: 1fr 1fr; }
}

/* ---------- Price after discount ---------- */
.price-was { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); }
.price-was span { color: var(--muted); font-weight: 600; font-size: 13px; }
.save-note { color: var(--success-text); font-weight: 600; min-height: 1.2em; }
.check.remember { min-height: 48px; background: var(--primary-soft); color: var(--primary-text); border-color: transparent; }
.line-info s, .pick s { color: var(--muted); font-weight: 500; }

/* ---------- Barcode labels ---------- */
.lbl { width: var(--lw); height: var(--lh); padding: 1mm 1.6mm; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center;
  overflow: hidden; background: #fff; color: #000; font-family: Arial, Helvetica, sans-serif; line-height: 1.12; break-after: page; page-break-after: always; }
.lbl:last-child { break-after: auto; page-break-after: auto; }
.lbl .l-shop { font-size: 5.5pt; font-weight: 700; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; letter-spacing: .03em; }
.lbl .l-name { font-size: 6.5pt; text-align: center; max-height: 2.3em; overflow: hidden; }
.lbl .l-bc { flex: 1 1 auto; min-height: 5mm; max-height: 11mm; margin: .6mm 0 .3mm; }
.lbl .l-bc .bc { width: 100%; height: 100%; display: block; fill: #000; }
.lbl .l-code { font-family: 'Courier New', monospace; font-size: 6pt; text-align: center; letter-spacing: .04em; white-space: nowrap; }
.lbl .l-price { font-size: 9.5pt; font-weight: 800; text-align: center; }
.lbl-rep { justify-content: flex-start; }
.lbl-rep .l-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 6pt; }
.lbl-rep .l-top b { font-size: 10pt; }
.lbl-rep .l-line { font-size: 6pt; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbl-rep .l-bc { max-height: none; margin-top: .8mm; }
.lbl-preview { display: grid; place-items: center; padding: 18px; background: var(--surface-3); border-radius: var(--radius); overflow: hidden; }
.lbl-preview .lbl-sheet { zoom: 2.4; }
.lbl-preview .lbl { box-shadow: 0 1px 3px rgba(0,0,0,.25); border-radius: 1mm; }
.hint-box { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 12px; background: var(--warn-soft); color: var(--warn-text); margin-bottom: 14px; }
@media print {
  #print-area.labels { width: var(--paper); margin: 0; }
  #print-area.labels .lbl { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- SMS ---------- */
.card-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-top: 16px; }
.card-actions .spacer { flex: 1; }
.sms-steps { margin: 0 0 14px; padding-left: 20px; color: var(--muted); line-height: 1.7; }
.sms-result { min-height: 1.3em; margin: 10px 0 0; font-size: 14px; }
.sms-result.good { color: var(--success-text); }
.sms-result.bad { color: var(--danger-text); }
.sms-ev { padding: 14px 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.sms-ev .check { align-self: flex-start; }
.sms-ev-title { display: flex; align-items: center; gap: 8px; }
.sms-ev textarea { width: 100%; min-height: 64px; }
.sms-ev small { overflow-wrap: anywhere; }
.sms-vars { display: flex; flex-wrap: wrap; gap: 6px; }
.sms-vars .chip { min-height: 32px; padding: 0 10px; font-size: 13px; }

/* ---------- Artwork ---------- */
.pic { flex: none; display: inline-block; vertical-align: middle; --tile-ink: var(--tile, var(--primary)); }
.pic .a { fill: var(--tile-ink); }
.pic .b { fill: var(--pic-soft, color-mix(in srgb, var(--tile-ink) 34%, var(--surface))); }
.pic .c { fill: var(--pic-paper, var(--surface)); }
.pic .d { fill: var(--pic-dark, color-mix(in srgb, var(--tile-ink) 65%, #222)); }
.pic .sa { stroke: var(--tile-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; fill: none; }
:root[data-theme="dark"] .tile-art, :root[data-theme="dark"] .emo, :root[data-theme="dark"] .pic-pick { --pic-dark: #d5e2db; }
:root[data-theme="dark"] .tile .pic, :root[data-theme="dark"] .emo .pic { --tile-ink: color-mix(in srgb, var(--tile) 62%, #fff); }
.logo { display: inline-flex; align-items: center; gap: 8px; }
.logo-mark { flex: none; display: block; }
.logo-word { font-size: 23px; font-weight: 600; letter-spacing: -.02em; line-height: 1; color: #14503c; }
.logo-word b { font-weight: 600; color: #d9701f; }
.logo-word.light { color: #fff; }
.logo-word.light b { color: #f6a561; }
:root[data-theme="dark"] .logo-word.dark { color: var(--text); }
.pic-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 8px; }
.pic-pick label { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; font-size: 12px; text-align: center; line-height: 1.2; }
.pic-pick input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pic-pick label:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); background: var(--primary-soft); }
.pic-pick label:has(input:focus-visible) { box-shadow: var(--ring); }
.photo-box { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.photo-box .frame { width: 96px; height: 96px; flex: none; border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; background: color-mix(in srgb, var(--tile) 10%, var(--surface)); }
.photo-box .frame.has-photo { background: #fff; }
.photo-box .frame .photo { padding: 4px; }
.photo-box .side { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }

/* ---------- Buying & expenses ---------- */
.pur-top { display: grid; grid-template-columns: minmax(0, 2fr) 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.pur-find { position: relative; margin-bottom: 12px; }
.pur-find .found { position: absolute; z-index: 5; left: 0; right: 0; top: 100%; margin-top: 4px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow-lg); max-height: 260px; overflow: auto; }
.pur-find .found:empty { display: none; }
.pur-find .found button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; border: 0; background: none; text-align: left; }
.pur-find .found button:hover, .pur-find .found button:focus-visible { background: var(--surface-3); }
.pur-find .found b { flex: 1; font-weight: 600; min-width: 0; }
.pur-line { display: grid; grid-template-columns: minmax(0, 1fr) 84px 120px 110px 40px; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border); }
.pur-line:first-child { border-top: 0; }
.pur-line .input { min-height: 40px; padding: 6px 10px; text-align: right; }
.pur-line .nm b { display: block; font-weight: 600; }
.pur-line .nm small { color: var(--muted); }
.pur-line .sum { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.pur-line textarea { grid-column: 1 / -1; width: 100%; min-height: 64px; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font-family: var(--mono); font-size: 13px; }
.pur-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 14px; align-items: start; }
.pur-sum { background: var(--surface-2); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.pur-sum .tot-row .input { width: 130px; min-height: 40px; text-align: right; }
.day-group { font-weight: 700; padding: 16px 16px 6px; color: var(--text-2); display: flex; justify-content: space-between; }
@media (max-width: 720px) {
  .pur-top, .pur-foot { grid-template-columns: 1fr; }
  .pur-line { grid-template-columns: 1fr 1fr 40px; }
  .pur-line .nm { grid-column: 1 / -1; }
  .pur-line .sum { display: none; }
}
@media (min-width: 861px) and (max-height: 880px) {
  .sidebar { padding: 8px 8px; gap: 2px; }
  .brand-mark { width: 46px; height: 46px; margin-bottom: 2px; }
  .sidebar .nav-item { padding: 6px 4px; gap: 2px; }
  .sidebar .nav-item .i { width: 21px; height: 21px; }
  .sidebar-foot { gap: 2px; padding-top: 4px; }
  .sidebar-foot .icon-btn { height: 32px; }
}

/* ---------- Due dates & cheques ---------- */
.due-bar { background: var(--warn-soft); color: var(--warn-text); }
.due-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.due-row > div { flex: 1; min-width: 190px; }
.due-row > div b { display: block; font-weight: 600; }
.due-row small { color: var(--muted); }
.due-ic { color: var(--primary-text); display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--primary-soft); flex: none; }
.due-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.modal .due-row { padding-left: 0; padding-right: 0; }
.remind-pick { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text-2); }
.chq { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; margin-bottom: 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.chq .icon-btn { position: absolute; top: 2px; right: 2px; }
.chq.one { margin: 0; padding: 10px; background: var(--surface); }
.chq.one .field:last-child { grid-column: 1 / -1; }

/* ---------- Cost code ---------- */
.cc-code { font-family: var(--mono); font-style: normal; font-weight: 600; letter-spacing: .08em; color: var(--muted); font-size: 12px; }
.cc-map { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-map span { display: grid; justify-items: center; min-width: 34px; padding: 6px 4px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.cc-map b { font-size: 17px; }
.cc-map small { color: var(--muted); font-size: 12px; }
.cc-map .rep { border-style: dashed; }
.lbl .l-foot { display: flex; justify-content: center; align-items: baseline; gap: 1.6mm; white-space: nowrap; }
.lbl .l-secret { font-family: Arial, Helvetica, sans-serif; font-size: 6.5pt; font-weight: 700; letter-spacing: .06em; }

/* ---------- Cost while billing (owner) ---------- */
.cost-note { color: var(--success-text) !important; font-weight: 600; }
.line-info .cost-note { white-space: normal; overflow: visible; }
.cost-note.loss, .cost-row.loss b { color: var(--danger-text) !important; }
.cost-row { font-size: 13px; padding-top: 6px; border-top: 1px dashed var(--border); }
.cost-row b { color: var(--success-text); }
.tile-cost { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Supplier on products ---------- */
.sup-code { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 1px 7px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }
.sup-code:empty { display: none; }
.sup-code.big { font-size: 18px; padding: 8px 12px; background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.prod-cell .sup-line { display: flex; align-items: center; gap: 5px; }
.unit-sup { min-width: 150px; }
.src-box { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; margin-top: 12px; display: grid; gap: 8px; }
.src-box.none { background: var(--surface-2); }
.src-box > b { display: block; }
.src-box small { color: var(--muted); }
.src-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.src-top > div { flex: 1; min-width: 120px; }
.src-top b { display: block; font-size: 17px; }
.src-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.src-item { padding: 14px 0; border-top: 1px solid var(--border); }
.src-item .src-name { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.lbl .l-code b { font-family: Arial, Helvetica, sans-serif; font-weight: 800; margin-left: .6mm; }

/* ---------- Categories ---------- */
.cat-photo { object-fit: cover; border-radius: 6px; flex: none; }
.frame .cat-photo { border-radius: var(--radius-sm); }
.cat-move { display: flex; flex-direction: column; flex: none; }
.cat-move .icon-btn { width: 34px; height: 26px; min-height: 0; }
.cat-move .icon-btn:disabled { opacity: .25; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 7px; border: 1px solid var(--border); border-radius: 99px; font-size: 13px; font-weight: 600; }
#cat-photo { margin-bottom: 10px; }

/* ---------- Staff salary ---------- */
.card-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.att-row { flex-wrap: wrap; }
.att-row > div:not(.att-btns) { flex: 1 1 160px; }
.list-row > .att-btns { display: flex; flex: 0 1 auto; gap: 6px; flex-wrap: wrap; align-items: center; }
.att-btns button { min-height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--text-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.att-btns button:disabled { opacity: .45; cursor: default; }
.att-p.on { background: var(--success-soft) !important; color: var(--success-text) !important; border-color: currentColor !important; }
.att-h.on { background: var(--warn-soft) !important; color: var(--warn-text) !important; border-color: currentColor !important; }
.att-l.on { background: var(--info-soft) !important; color: var(--info-text) !important; border-color: currentColor !important; }
.att-a.on { background: var(--danger-soft) !important; color: var(--danger-text) !important; border-color: currentColor !important; }
.att-ot { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
.att-ot input { width: 64px; min-height: 40px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--text); font: inherit; padding: 0 8px; }
.att-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 46px)); gap: 5px; margin-bottom: 8px; }
.att-cal small { text-align: center; color: var(--muted); font-weight: 700; }
.att-cal button { position: relative; min-height: 38px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--text-2); font: inherit; font-weight: 600; cursor: pointer; }
.att-cal button:disabled { opacity: .35; cursor: default; }
.att-cal i { position: absolute; right: 4px; top: 4px; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sal-rec { width: 100%; border: 0; border-top: 1px solid var(--border); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.sal-rec:hover { background: var(--surface-2); }
.sal-pay { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.sal-sum { background: var(--surface-2); border-radius: var(--radius); padding: 12px 16px; }
.sal-sum div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14px; }
.sal-sum b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sal-sum .tot { border-top: 1px solid var(--border); font-weight: 700; }
.sal-sum .net { border-top: 2px solid var(--text); margin-top: 4px; padding-top: 10px; font-size: 18px; font-weight: 800; }
@media (max-width: 720px) { .sal-pay { grid-template-columns: 1fr; } .list-row > .att-btns { flex-basis: 100%; } .att-btns button { flex: 1 1 auto; padding: 0 8px; } }
#sal-day { width: auto; flex: 0 1 auto; }
.sal-step { font-size: 22px; line-height: 1; border: 1px solid var(--border); }
.rcpt .sign { display: flex; justify-content: space-between; gap: 24px; margin-top: 40px; }
.rcpt .sign span { flex: 1; border-top: 2px solid #000; padding-top: 3px; text-align: center; }
