/* The Lazeez Dine — shared theme (maroon / white / gold from the logo) */
:root {
  --brand: #8e1b1f;
  --brand-600: #7a161a;
  --brand-700: #5c0f14;
  --brand-50: #fbeeee;
  --brand-100: #f5d9da;
  --gold: #c9a45c;
  --gold-50: #faf3e4;
  --bg: #f7f1ec;
  --surface: #ffffff;
  --surface-2: #fbf7f4;
  --border: #eadfd8;
  --text: #2a1a1a;
  --muted: #7d6a68;
  --ok: #1f8a4c;
  --ok-50: #e6f5ec;
  --warn: #c27a00;
  --warn-50: #fff4dd;
  --info: #1f6fb2;
  --info-50: #e6f0fa;
  --danger: #c62828;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(60, 10, 10, 0.06), 0 4px 14px rgba(60, 10, 10, 0.06);
  --shadow-lg: 0 10px 40px rgba(40, 5, 5, 0.25);
  --font: 'Inter', 'Noto Sans Bengali', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-brand: 'Cinzel', Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; }
a { color: var(--brand); }
img { max-width: 100%; }
.brand-font { font-family: var(--font-brand); letter-spacing: .02em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.bold { font-weight: 700; }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.mt { margin-top: 12px; } .mb { margin-bottom: 12px; }
.gap-s { gap: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  padding: 9px 14px; border-radius: var(--radius-sm); font: inherit; font-weight: 600;
  cursor: pointer; min-height: 40px; transition: background .15s, transform .05s, box-shadow .15s;
  text-decoration: none; white-space: nowrap; user-select: none;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-600); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #2a1a00; }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.warn { background: var(--warn); border-color: var(--warn); color: #fff; }
.btn.info { background: var(--info); border-color: var(--info); color: #fff; }
.btn.danger { color: var(--danger); border-color: #f0c9c9; }
.btn.danger.solid { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: rgba(0,0,0,.05); }
.btn.sm { padding: 5px 10px; min-height: 32px; font-size: 13px; }
.btn.lg { padding: 13px 20px; min-height: 52px; font-size: 17px; }
.btn.block { width: 100%; }
.btn.icon { padding: 0; width: 40px; }
.btn.icon.sm { width: 32px; }

/* ---------- forms ---------- */
label.field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
input, select, textarea {
  font: inherit; color: var(--text); background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 9px 11px; min-height: 40px; width: 100%;
}
textarea { min-height: 70px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-100); border-color: var(--brand); }
input[type=checkbox] { width: 18px; min-height: 18px; height: 18px; accent-color: var(--brand); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.check { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; cursor: pointer; }

/* ---------- cards / badges ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.pad { padding: 16px; }
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border);
  white-space: nowrap;
}
.badge.new { background: var(--info-50); color: var(--info); border-color: transparent; }
.badge.preparing { background: var(--warn-50); color: var(--warn); border-color: transparent; }
.badge.ready { background: var(--ok-50); color: var(--ok); border-color: transparent; }
.badge.served { background: #eee; color: #555; border-color: transparent; }
.badge.cancelled { background: #fdeaea; color: var(--danger); border-color: transparent; text-decoration: line-through; }
.badge.brand { background: var(--brand-50); color: var(--brand); border-color: transparent; }
.badge.gold { background: var(--gold-50); color: #8a6a22; border-color: transparent; }
.badge.paid { background: var(--ok-50); color: var(--ok); border-color: transparent; }
.badge.unpaid { background: #fdeaea; color: var(--danger); border-color: transparent; }
.duty-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(127,127,127,.12); color: inherit; white-space: nowrap; cursor: default; }
.duty-chip.on { background: var(--ok-50); color: var(--ok); }

/* ---------- table ---------- */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.tbl th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--surface-2); position: sticky; top: 0; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.low td { background: #fff6f6; }
.tbl-wrap { overflow: auto; border-radius: var(--radius); }

/* ---------- tabs / chips ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: #fff;
  font-weight: 600; cursor: pointer; white-space: nowrap; font: inherit; font-weight: 600; color: var(--text);
}
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.chips-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.chips-scroll::-webkit-scrollbar { display: none; }

/* ---------- modal ---------- */
.modal-back {
  position: fixed; inset: 0; background: rgba(30, 5, 5, .5); display: flex; align-items: center; justify-content: center;
  z-index: 100; padding: 16px; animation: fade .15s;
}
.modal {
  background: #fff; color: var(--text); border-radius: 16px; width: 100%; max-width: 520px; max-height: calc(100vh - 32px);
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: pop .18s;
}
.modal.wide { max-width: 820px; }
.modal-head { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.modal-head h3 { margin: 0; font-size: 18px; }
.modal-body { padding: 16px 18px; overflow: auto; }
.modal-foot { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
@media (max-width: 600px) {
  .modal-back { align-items: flex-end; padding: 0; }
  .modal { border-radius: 16px 16px 0 0; max-height: 92vh; }
}

/* ---------- toast ---------- */
#toasts { position: fixed; top: 14px; right: 14px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 28px)); }
.toast {
  background: #2a1a1a; color: #fff; padding: 12px 14px; border-radius: 10px; box-shadow: var(--shadow-lg);
  font-weight: 600; animation: slidein .2s; display: flex; gap: 10px; align-items: flex-start; cursor: pointer;
}
.toast.ok { background: var(--ok); }
.toast.err { background: var(--danger); }
.toast.brand { background: var(--brand); }
.toast.gold { background: var(--gold); color: #2a1a00; }
@keyframes slidein { from { transform: translateX(20px); opacity: 0; } }

/* ---------- login ---------- */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: radial-gradient(ellipse at top, #a4262b 0%, var(--brand-700) 70%);
}
.login-card { background: #fff; border-radius: 20px; padding: 26px; width: 100%; max-width: 380px; box-shadow: var(--shadow-lg); text-align: center; }
.login-card .logo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: -70px auto 8px; display: block; border: 4px solid #fff; box-shadow: var(--shadow); }
.pin-dots { display: flex; gap: 12px; justify-content: center; margin: 14px 0; }
.pin-dots span { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--brand); }
.pin-dots span.on { background: var(--brand); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.keypad button { height: 58px; font-size: 22px; font-weight: 700; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; color: var(--text); font-family: inherit; }
.keypad button:active { background: var(--brand-50); }

/* ---------- misc ---------- */
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--brand-100); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; margin: 30px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; background: #fff; }
.qty button { width: 34px; height: 34px; border: 0; background: transparent; font-size: 18px; font-weight: 700; cursor: pointer; color: var(--brand); }
.qty span { min-width: 26px; text-align: center; font-weight: 700; }
.stat { padding: 14px 16px; }
.stat .label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.stat .value { font-size: 24px; font-weight: 800; margin-top: 4px; }
.divider { height: 1px; background: var(--border); margin: 10px 0; }
.pulse { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(31, 138, 76, .25); } }
.line-through { text-decoration: line-through; opacity: .6; }
.tot-row { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; }
.tot-row.big { font-size: 20px; font-weight: 800; color: var(--brand); padding-top: 6px; }
.existing { background: var(--gold-50); border: 1px solid #ecdcb5; border-radius: 10px; padding: 8px 10px; font-size: 13px; }

/* food illustration (dishes without a photo) */
.food-art { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; overflow: hidden;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.28), transparent 45%), linear-gradient(140deg, var(--c1, #a3262b), var(--c2, #5c0f14)); }
.food-art::before { content: ''; position: absolute; inset: 0; opacity: .14; background-image: radial-gradient(#fff 1.2px, transparent 1.2px); background-size: 14px 14px; }
.food-art i { position: relative; font-style: normal; font-size: 2.6em; line-height: 1; filter: drop-shadow(0 6px 8px rgba(0,0,0,.3)); transition: transform .4s var(--ease, ease); }
*:hover > .food-art i, *:hover > * > .food-art i { transform: scale(1.12) rotate(-6deg); }
.photo-up { position: relative; display: block; cursor: pointer; border-radius: 10px; overflow: hidden; }
.photo-up > .food-art, .photo-up > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-up > .food-art i { font-size: 26px; }
.photo-up .cam { position: absolute; right: 2px; bottom: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--brand); font-size: 12px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.photo-up.no-photo { outline: 2px dashed #d9b3a6; outline-offset: -2px; }
.photo-up.busy::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.6); }
.photo-up.busy::before { content: ''; position: absolute; z-index: 2; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px; border: 2px solid var(--brand-100); border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; }
tr.drop-hover td { background: var(--gold-50) !important; }
.drop-zone { border: 2px dashed #d9b3a6; border-radius: 14px; padding: 14px; display: flex; gap: 14px; align-items: center; cursor: pointer; background: var(--surface-2); transition: border-color .2s, background .2s; }
.drop-zone.over { border-color: var(--brand); background: var(--brand-50); }
.drop-zone .pv { width: 110px; height: 110px; border-radius: 12px; overflow: hidden; flex-shrink: 0; font-size: 22px; }
.drop-zone .pv img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- motion: smooth, quick, never in the way ---------- */
:root { --ease: cubic-bezier(.2, .8, .2, 1); }
.btn { transition: background .15s, border-color .15s, color .15s, transform .12s var(--ease), box-shadow .15s; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn.primary:hover, .btn.ok:hover { box-shadow: 0 4px 14px rgba(142, 27, 31, .22); }
.chip, .seg-tabs button { transition: background .18s, color .18s, border-color .18s, transform .12s var(--ease); }
.chip:active, .seg-tabs button:active { transform: scale(.96); }
.card { transition: box-shadow .2s, transform .2s var(--ease), border-color .2s; }
a.card:hover, .card[data-order]:hover, .card.clickable:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(60, 10, 10, .12); }
input, select, textarea { transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 3px var(--brand-50); }
.view-in > * { animation: viewIn .28s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } }
.modal-back { animation: fade .18s ease; backdrop-filter: blur(2px); }
.modal { animation: pop .22s var(--ease); }
.modal-back.closing { animation: fadeOut .16s ease forwards; pointer-events: none; }
.modal-back.closing .modal { animation: popOut .16s ease forwards; }
@keyframes pop { from { transform: translateY(10px) scale(.97); opacity: 0; } }
@keyframes popOut { to { transform: translateY(8px) scale(.98); opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
@media (max-width: 600px) {
  .modal { animation: sheetUp .26s var(--ease); }
  .modal-back.closing .modal { animation: sheetDown .18s ease forwards; }
}
@keyframes sheetUp { from { transform: translateY(40%); opacity: .4; } }
@keyframes sheetDown { to { transform: translateY(30%); opacity: 0; } }
.toast { animation: toastIn .28s var(--ease); transition: opacity .2s, transform .2s; }
.toast.out { opacity: 0; transform: translateX(24px); }
@keyframes toastIn { from { transform: translateX(30px) scale(.96); opacity: 0; } }
.spinner { border-width: 3px; box-shadow: 0 0 0 6px rgba(142, 27, 31, .04); }
.skel { position: relative; overflow: hidden; background: #efe6e0; border-radius: 8px; }
.skel::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent); animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
/* charts grow in */
svg .bar { transform-box: fill-box; transform-origin: 50% 100%; animation: growY .6s var(--ease) both; }
@keyframes growY { from { transform: scaleY(0); } }
svg .line-draw { stroke-dasharray: 5000; stroke-dashoffset: 5000; animation: drawLine 1.1s var(--ease) forwards; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
svg .area-fade { animation: fade .9s ease both; }
.cat-bar .bar span { transform-origin: left; animation: growX .7s var(--ease) both; }
@keyframes growX { from { transform: scaleX(0); } }
.badge, .tv-chip, .duty-chip { transition: background .25s, color .25s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* password fields */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 44px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; cursor: pointer; font-size: 18px; opacity: .45; width: 38px; height: 38px; border-radius: 8px; }
.pw-eye.on { opacity: 1; }
/* ---------- polish ---------- */
* { scrollbar-width: thin; scrollbar-color: #d9c8c0 transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; } ::-webkit-scrollbar-thumb { background: #d9c8c0; border-radius: 9px; border: 2px solid transparent; background-clip: padding-box; } ::-webkit-scrollbar-track { background: transparent; }
.num { font-variant-numeric: tabular-nums; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.page-head h3 { margin: 0; font-size: 17px; }
.seg-tabs { display: inline-flex; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.seg-tabs button { border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.seg-tabs button.active { background: var(--brand); color: #fff; }
.seg-tabs button:not(.active):hover { background: var(--surface-2); color: var(--text); }
.kpi { padding: 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kpi .k-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; display: flex; align-items: center; gap: 6px; }
.kpi .k-value { font-size: 26px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .k-sub { font-size: 12px; color: var(--muted); }
.delta { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 1px 7px; }
.delta.up { color: var(--ok); background: var(--ok-50); } .delta.down { color: var(--danger); background: #fdeaea; }
.pos-val { color: var(--ok); } .neg-val { color: var(--danger); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.card-head h4 { margin: 0; font-size: 15px; }
.card-body { padding: 14px 16px; }
.list-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.list-row:last-child { border-bottom: 0; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.chart-tip { position: fixed; pointer-events: none; background: #2a1a1a; color: #fff; padding: 8px 10px; border-radius: 8px; font-size: 12px; z-index: 300; box-shadow: var(--shadow-lg); line-height: 1.5; }
.menu-pop { position: fixed; z-index: 150; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; min-width: 190px; animation: fade .1s; }
.menu-pop button { display: flex; width: 100%; align-items: center; gap: 8px; border: 0; background: transparent; padding: 9px 10px; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; color: var(--text); text-align: left; }
.menu-pop button:hover { background: var(--surface-2); }
.menu-pop button.danger { color: var(--danger); }
@media (max-width: 600px) { .kpi .k-value { font-size: 21px; } .kpi { padding: 12px; } }
/* ---------- payment ---------- */
.pay-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px; }
.pay-left { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px; align-self: start; }
.pay-items { max-height: 220px; overflow: auto; border-bottom: 1px dashed var(--border); padding-bottom: 8px; }
@media (max-width: 760px) { .pay-wrap { grid-template-columns: 1fr; } }
.pm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 480px) { .pm-grid { grid-template-columns: repeat(2, 1fr); } }
.pm-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border: 2px solid var(--border); border-radius: 12px; background: #fff; cursor: pointer; font: inherit; font-weight: 700; font-size: 13px; color: var(--text); transition: border-color .12s, background .12s; }
.pm-tile:hover { border-color: #d9c8c0; }
.pm-tile.on { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 3px var(--brand-100); }
.pm-ic { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 17px; color: #fff; background: #7d6a68; flex-shrink: 0; }
.pm-ic.sm { width: 22px; height: 22px; font-size: 12px; border-radius: 6px; vertical-align: middle; }
.pm-cash .pm-ic, .pm-ic.pm-cash { background: #e6f5ec; }
.pm-card .pm-ic, .pm-ic.pm-card { background: #e6f0fa; }
.pm-bkash .pm-ic, .pm-ic.pm-bkash { background: #e2136e; }
.pm-nagad .pm-ic, .pm-ic.pm-nagad { background: #f7941d; }
.pm-rocket .pm-ic, .pm-ic.pm-rocket { background: #8c3494; }
.pm-upay .pm-ic, .pm-ic.pm-upay { background: #0b5ea8; }
.pm-bank .pm-ic, .pm-ic.pm-bank { background: #eceff1; }
.pm-split .pm-ic { background: var(--gold); color: #2a1a00; }
.split-rows { display: flex; flex-direction: column; gap: 6px; }
.split-row { display: flex; gap: 8px; align-items: center; }
.split-row input { min-height: 36px; padding: 6px 9px; }
.pm-summary { background: var(--gold-50); border: 1px solid #ecdcb5; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.change-box { background: var(--ok-50); color: var(--ok); border-radius: 10px; padding: 10px 12px; font-size: 15px; font-weight: 700; display: flex; justify-content: space-between; }
.change-box b { font-size: 22px; }/* ---------- line icons (LZ.ic / emoji labels turned into icons) ---------- */
.lzi { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -0.2em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.btn .lzi, .badge .lzi, .chip .lzi { width: 1.05em; height: 1.05em; vertical-align: -0.16em; }
.empty .lzi, .lzi.lg { stroke-width: 1.6; }
.toast .lzi { margin-right: 4px; }
.pm-ic .lzi { width: 20px; height: 20px; }
.pm-ic.sm .lzi { width: 14px; height: 14px; }
.pm-cash .pm-ic, .pm-ic.pm-cash { color: #1f8a4c; }
.pm-card .pm-ic, .pm-ic.pm-card { color: #2a78d6; }
.pm-bank .pm-ic, .pm-ic.pm-bank { color: #455a64; }
.ic-dot { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; background: var(--brand-50); color: var(--brand); flex-shrink: 0; }
.ic-dot .lzi { width: 17px; height: 17px; }
/* ---------- attachments (invoice / receipt scans) ---------- */
.att-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.att { position: relative; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); cursor: zoom-in; display: flex; align-items: center; justify-content: center; }
.att img { width: 100%; height: 100%; object-fit: cover; display: block; }
.att .att-pdf { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--brand); font-size: 12px; font-weight: 700; padding: 8px; text-align: center; word-break: break-all; }
.att .att-pdf .lzi { width: 34px; height: 34px; stroke-width: 1.6; }
.att .att-x { position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(20,5,5,.65); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.att .att-x .lzi { width: 14px; height: 14px; }
.att .att-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 5px; font-size: 11px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.6)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att.add { cursor: pointer; border: 2px dashed #d9b3a6; background: #fffaf7; flex-direction: column; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 700; text-align: center; padding: 8px; }
.att.add:hover, .att.add.drop-hover { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }
.att.add .lzi { width: 28px; height: 28px; stroke-width: 1.7; }
.att.busy { opacity: .55; pointer-events: none; }
.clip { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; color: var(--ok); }
.clip.miss { color: var(--muted); font-weight: 600; }
.viewer { position: fixed; inset: 0; z-index: 400; background: rgba(15,4,4,.92); display: flex; flex-direction: column; animation: fade .18s ease both; }
.viewer-top { display: flex; align-items: center; gap: 8px; padding: 10px 14px; color: #fff; }
.viewer-top .grow { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.viewer-top .btn { background: rgba(255,255,255,.12); color: #fff; border-color: transparent; }
.viewer-body { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 12px 12px; overflow: auto; }
.viewer-body img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; background: #fff; transition: transform .2s var(--ease); cursor: zoom-in; }
.viewer-body img.zoom { max-width: none; max-height: none; width: 160%; cursor: zoom-out; }
.viewer-body iframe { width: min(900px, 100%); height: 100%; border: 0; background: #fff; border-radius: 6px; }
.price-up { color: var(--danger); font-weight: 700; font-size: 11px; white-space: nowrap; }
.price-down { color: var(--ok); font-weight: 700; font-size: 11px; white-space: nowrap; }
.alert-row > .lzi:first-child { width: 32px; height: 32px; padding: 7px; box-sizing: border-box; border-radius: 10px; background: var(--brand-50); color: var(--brand); }

/* ---------- v12: sales rules, offers, baki, feedback, reports ---------- */
.btn.xs { padding: 2px 8px; font-size: 11px; min-height: 0; border-radius: 6px; }
.badge.xs { font-size: 10px; padding: 1px 6px; }
.appr-box { display: flex; gap: 12px; align-items: flex-start; background: var(--warn-50); border: 1px solid #f0d9a8; border-radius: 12px; padding: 12px; }
.appr-ic { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--warn); }
.appr-ic .lzi { width: 20px; height: 20px; }
.offer-strip { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0 2px; }
.offer-strip:empty { display: none; }
.offer-chip { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(90deg, #e9f7ef, #f6fbf8); color: #17663a; border: 1px solid #bfe3cd; border-radius: 999px; padding: 4px 10px; font-size: 12px; animation: chipIn .35s var(--ease, ease) both; }
.offer-chip .lzi { width: 14px; height: 14px; }
@keyframes chipIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.points-box { align-items: flex-end; gap: 10px; background: var(--gold-50); border: 1px solid #ecdcb5; border-radius: 10px; padding: 8px 10px; }
.points-box .lzi { width: 16px; height: 16px; color: #b8860b; vertical-align: -3px; }
.pm-ic .lzi { width: 20px; height: 20px; }
.pm-ic.sm .lzi { width: 14px; height: 14px; }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.offer-card { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; position: relative; overflow: hidden; }
.offer-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--ok); }
.offer-card.off { opacity: .6; }
.offer-card.off::before { background: var(--border); }
.offer-title { display: inline-flex; align-items: center; gap: 6px; }
.offer-title .lzi { width: 16px; height: 16px; color: var(--brand); }
.offer-big { font-size: 20px; font-weight: 800; color: var(--brand); margin: 2px 0; }
.pick-list { display: flex; flex-wrap: wrap; gap: 6px 14px; max-height: 150px; overflow: auto; padding: 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); margin-top: 4px; }
.pick-list.tall { max-height: 220px; }
.pick-list .check { font-weight: 500; font-size: 13px; }
.day-chip { border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; background: #fff; }
.seg-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.seg-card { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; cursor: pointer; font: inherit; text-align: left; }
.seg-card b { font-size: 22px; }
.seg-card.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.fb-card { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; border-left: 4px solid var(--border); }
.fb-card.complaint { border-left-color: var(--danger); }
.fb-card.new { background: #fffdf6; }
.fb-card.resolved { opacity: .75; }
.fb-comment { font-size: 15px; margin: 4px 0; font-style: italic; }
.stars-ro { color: #e6a417; letter-spacing: 1px; }
.stars-ro .off { color: #e3d9d2; }
.cust-extras { margin: -4px 0 10px; }
.cust-extras .lzi { width: 12px; height: 12px; vertical-align: -1px; }
.yc-chart { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; height: 200px; align-items: end; }
.yc-col { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; }
.yc-bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.yc-bars span { width: 40%; border-radius: 4px 4px 0 0; min-height: 2px; transition: height .5s var(--ease, ease); }
.yc-bars .now, .yc-key.now { background: var(--brand); }
.yc-bars .prev, .yc-key.prev { background: #d9c8c0; }
.yc-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
#rep-tabs .lzi, #cu-tabs .lzi { width: 15px; height: 15px; vertical-align: -3px; }
@media (max-width: 700px) {
  #rep-tabs, #cu-tabs { display: flex; overflow-x: auto; flex-wrap: nowrap; max-width: 100%; }
  .yc-chart { height: 150px; gap: 3px; }
}
.set-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 14px; }
.set-grid h3 .lzi, .card h3 .lzi { width: 18px; height: 18px; vertical-align: -3px; color: var(--brand); }
.rule-row { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--border); width: 100%; }
.rule-row input { margin-top: 3px; }
.rule-row > span { display: flex; flex-direction: column; gap: 2px; }
.rule-row b { font-weight: 600; }
.sticky-save { position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(transparent, var(--bg) 40%); display: flex; justify-content: flex-end; z-index: 3; }
@media (max-width: 520px) { .set-grid { grid-template-columns: 1fr; } }
/* ---------- accounting statements ---------- */
.stmt-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.stmt-head h3 { margin: 0; font-size: 20px; }
.stmt-sec { margin-bottom: 14px; }
.stmt-h { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 6px 0; border-bottom: 2px solid var(--border); }
.stmt-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 4px; border-bottom: 1px solid #f3ebe6; font-size: 14px; }
.stmt-row[data-gl] { cursor: pointer; border-radius: 6px; }
.stmt-row[data-gl]:hover { background: var(--brand-50); }
.stmt-row.tot { font-weight: 800; border-bottom: 0; border-top: 1px solid var(--border); }
.stmt-row.grand { font-weight: 800; font-size: 17px; border-top: 2px solid var(--text); border-bottom: 0; margin-top: 6px; padding-top: 10px; }
.num.neg { color: var(--danger); }
.jr-card { padding: 10px 14px; }
.jr-tbl td { padding: 4px 8px; font-size: 13px; border-bottom: 0; }
.jr-tbl td.jr-cr { padding-left: 34px; color: var(--muted); }
#bk-tabs .lzi { width: 15px; height: 15px; vertical-align: -3px; }
@media (max-width: 700px) { #bk-tabs { display: flex; overflow-x: auto; flex-wrap: nowrap; max-width: 100%; } }
@media print { .side, .topbar, #bk-tabs, #bk-ctl, #rep-tabs { display: none !important; } #view { overflow: visible; } }
/* ---------- payroll ---------- */
.prog { height: 6px; background: var(--surface-2); border-radius: 6px; overflow: hidden; margin-top: 6px; }
.prog span { display: block; height: 100%; background: var(--ok); border-radius: 6px; transition: width .5s var(--ease, ease); }
.prog.sm { height: 4px; margin-top: 10px; }
.ch-chip { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 5px 6px 5px 12px; font-size: 13px; }
.link { cursor: pointer; } .link:hover { color: var(--brand); text-decoration: underline; }
.pr-tbl td { vertical-align: middle; }
.emp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.emp-card { padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 10px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.emp-card:hover { transform: translateY(-2px); border-color: #e6d3c9; box-shadow: 0 10px 24px rgba(60,10,10,.1); }
.emp-card.off { opacity: .55; }
.emp-card .avatar { width: 40px; height: 40px; background: linear-gradient(135deg, var(--brand), var(--brand-700)); color: #fff; }
.emp-sal { display: flex; justify-content: space-between; align-items: baseline; background: var(--surface-2); border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.emp-sal b { font-size: 17px; }
.emp-card .lzi { width: 12px; height: 12px; vertical-align: -1px; }
.sal-box { background: var(--surface-2); border-radius: 12px; padding: 10px 14px; }
.slip-att { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.slip-att > div { background: var(--surface-2); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.slip-att span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.slip-att b { font-size: 16px; }
.lv-card { padding: 12px 14px; }
.roster-tbl th, .roster-tbl td { padding: 6px; }
.roster-tbl th.hol { background: var(--gold-50); }
.rs-cell { --c: #b3a39f; width: 100%; min-width: 74px; border: 0; border-radius: 8px; padding: 7px 4px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; color: #fff; background: var(--c); position: relative; }
.rs-cell.off { background: #efe6e0; color: var(--muted); }
.rs-cell.leave { background: repeating-linear-gradient(45deg, #e6f0fa, #e6f0fa 6px, #d4e5f7 6px, #d4e5f7 12px); color: var(--info); }
.rs-cell.custom::after { content: ''; position: absolute; top: 3px; right: 3px; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.2); }
.rs-key { --c: #8e1b1f; display: inline-block; padding: 1px 8px; border-radius: 6px; background: var(--c); color: #fff; font-weight: 700; font-size: 11px; }
.rs-key.off { background: #efe6e0; color: var(--muted); }
.sheet-tbl th, .sheet-tbl td { white-space: nowrap; padding: 7px 9px; font-size: 13px; }
.sheet-tbl .ded { background: #fff8f8; }
.sheet-tbl tr.tot td { font-weight: 800; border-top: 2px solid var(--border); }
#pr-tabs .lzi { width: 15px; height: 15px; vertical-align: -3px; }
@media (max-width: 700px) { #pr-tabs { display: flex; overflow-x: auto; flex-wrap: nowrap; max-width: 100%; } }

/* ---------- sales target (dashboard, investor & adviser portals) ---------- */
.tg-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; margin-left: auto; white-space: nowrap; }
.tg-chip .lzi { width: 14px; height: 14px; }
.tg-chip.ok { background: var(--ok-50); color: var(--ok); }
.tg-chip.warn { background: var(--warn-50); color: var(--warn); }
.tg-chip.bad { background: #fdecec; color: var(--danger); }
.tg-chip.info { background: var(--info-50); color: var(--info); }
.tg-hero .card-head { gap: 10px; flex-wrap: wrap; }
.tg-hero .card-head h4 { display: flex; align-items: center; gap: 8px; }
.tg-hero .card-head h4 .lzi { color: var(--brand); }
.tg-main { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 26px; align-items: center; }
.tg-ring-wrap { display: flex; justify-content: center; }
.tg-ring .tg-arc { animation: tgArc 1.1s var(--ease) both; }
@keyframes tgArc { from { stroke-dashoffset: var(--c); } }
.tg-ring-v { font-size: 30px; font-weight: 900; fill: var(--text); font-variant-numeric: tabular-nums; }
.tg-ring-l { font-size: 12px; fill: var(--muted); font-weight: 600; }
.tg-compact .tg-ring-v { font-size: 22px; }
.tg-big { font-size: 26px; font-weight: 900; color: var(--brand); margin-bottom: 10px; line-height: 1.1; }
.tg-big .muted { font-size: 16px; font-weight: 600; }
.tg-bar { position: relative; height: 14px; border-radius: 8px; background: var(--surface-2); margin: 6px 0 22px; }
.tg-bar .tg-fill, .tg-bar .tg-fc { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; }
.tg-bar .tg-fill { background: var(--brand); transition: width .8s var(--ease); }
.tg-bar .tg-fill.done { background: var(--ok); }
.tg-bar .tg-fc { background: repeating-linear-gradient(135deg, rgba(142,27,31,.22) 0 6px, rgba(142,27,31,.08) 6px 12px); }
.tg-bar .tg-goal { position: absolute; top: -5px; bottom: -5px; width: 3px; margin-left: -1.5px; background: var(--gold); border-radius: 2px; }
.tg-bar .tg-now { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--text); opacity: .7; }
.tg-bar .tg-now b { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 700; white-space: nowrap; color: var(--muted); }
.tg-legend { display: flex; flex-wrap: wrap; gap: 12px; margin: -6px 0 12px; }
.tg-legend span { display: inline-flex; align-items: center; gap: 5px; }
.tg-legend .sw { width: 12px; height: 8px; border-radius: 3px; display: inline-block; }
.tg-legend .sw.fill { background: var(--brand); }
.tg-legend .sw.fc { background: repeating-linear-gradient(135deg, rgba(142,27,31,.35) 0 3px, rgba(142,27,31,.1) 3px 6px); }
.tg-legend .sw.now { width: 2px; height: 12px; background: var(--text); }
.tg-legend .sw.goal { width: 3px; height: 12px; background: var(--gold); }
.tg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.tg-grid > div { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.tg-grid .k { font-size: 12px; color: var(--muted); font-weight: 600; }
.tg-grid .v { font-size: 18px; font-weight: 800; margin-top: 2px; }
.tg-pace { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; border-radius: 12px; font-size: 14px; }
.tg-pace .lzi { flex-shrink: 0; margin-top: 2px; }
.tg-pace.ok { background: var(--ok-50); color: #145c33; }
.tg-pace.warn { background: var(--warn-50); color: #7a4d00; }
.tg-pace.bad { background: #fdecec; color: #8f1d1d; }
.tg-year { display: grid; grid-template-columns: auto minmax(80px, 1fr) auto; gap: 14px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--border); }
.tg-ybar { height: 8px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.tg-ybar span { display: block; height: 100%; background: var(--gold); border-radius: 6px; }
.tg-basis { padding: 0 18px 14px; }
.tg-empty .card-body { text-align: center; padding: 30px 20px; }
.tg-empty-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.tg-empty-ic .lzi { width: 30px; height: 30px; }
.tg-empty h3 { margin: 10px 0 6px; }
.tg-hist { display: flex; flex-direction: column; gap: 8px; }
.tg-hrow { display: grid; grid-template-columns: 56px minmax(60px, 1fr) 70px 90px; gap: 10px; align-items: center; font-size: 13px; }
.tg-hrow .m { font-weight: 700; }
.tg-hrow .bars { position: relative; height: 12px; background: var(--surface-2); border-radius: 6px; }
.tg-hrow .bars .a { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: #b9a7a5; }
.tg-hrow .bars .a.ok { background: var(--ok); } .tg-hrow .bars .a.bad { background: var(--brand); } .tg-hrow .bars .a.run { background: var(--gold); }
.tg-hrow .bars i { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--text); border-radius: 2px; }
.tg-hrow .p { font-weight: 800; text-align: right; }
.tg-hrow .p.ok { color: var(--ok); } .tg-hrow .p.bad { color: var(--brand); }
.tg-hrow .amt { text-align: right; }
.tg-now-row td { background: var(--brand-50); }
@media (max-width: 700px) {
  .tg-main { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .tg-big { font-size: 22px; text-align: center; }
  .tg-year { grid-template-columns: minmax(0, 1fr) auto; }
  .tg-year .tg-ybar { grid-column: 1 / -1; grid-row: 2; }
  .tg-hrow { grid-template-columns: 48px minmax(40px, 1fr) 54px; }
  .tg-hrow .amt { display: none; }
  .tg-hero .card-head .tg-chip { margin-left: 0; }
}

/* ---------- sales forecast ---------- */
.fc-controls { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.fc-adj { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.fc-adj input { min-height: 36px; padding: 4px 8px; }
.fc-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
.fc-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .fc-grid, .fc-grid3 { grid-template-columns: minmax(0, 1fr); } }
.fc-k { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.fc-big { font-size: 34px; font-weight: 900; color: var(--brand); line-height: 1.1; margin: 4px 0; }
.fc-card .fc-big { font-size: 26px; }
.fc-range { position: relative; height: 14px; background: var(--surface-2); border-radius: 8px; margin: 30px 0 6px; }
.fc-band { position: absolute; top: 0; bottom: 0; border-radius: 8px; background: repeating-linear-gradient(135deg, rgba(142,27,31,.28) 0 6px, rgba(142,27,31,.14) 6px 12px); }
.fc-mid { position: absolute; top: -4px; bottom: -4px; width: 4px; margin-left: -2px; border-radius: 3px; background: var(--brand); }
.fc-mark { position: absolute; top: -6px; bottom: -6px; width: 2px; margin-left: -1px; background: var(--text); opacity: .65; }
.fc-mark.tgt { background: var(--gold); opacity: 1; width: 3px; }
.fc-mark b { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font-size: 10px; white-space: nowrap; color: var(--muted); }
.fc-range-l { display: flex; justify-content: space-between; margin-bottom: 16px; }
.fc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.fc-facts > div { background: var(--surface-2); border-radius: 12px; padding: 8px 12px; display: flex; flex-direction: column; }
.fc-facts .k { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.fc-facts b { font-size: 17px; }
.fc-chg { font-weight: 800; } .fc-chg.up { color: var(--ok); } .fc-chg.down { color: var(--danger); }
.fc-note { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 14px; padding: 10px 12px; border-radius: 12px; font-size: 14px; }
.fc-note .lzi { flex-shrink: 0; }
.fc-note.ok { background: var(--ok-50); color: #145c33; } .fc-note.warn { background: var(--warn-50); color: #7a4d00; } .fc-note.info { background: var(--info-50); color: #164c7a; }
.fc-note .btn { margin-left: auto; }
.fc-how { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.fc-how > div { display: flex; gap: 10px; align-items: flex-start; }
.fc-how .n { width: 24px; height: 24px; border-radius: 50%; background: var(--brand-50); color: var(--brand); font-weight: 800; font-size: 12px; display: grid; place-items: center; flex-shrink: 0; }
.fc-days { display: flex; align-items: flex-end; gap: 3px; height: 170px; }
.fc-day { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; }
.fc-day .b { width: 100%; max-width: 26px; border-radius: 5px 5px 2px 2px; background: repeating-linear-gradient(135deg, rgba(142,27,31,.75) 0 5px, rgba(142,27,31,.55) 5px 10px); }
.fc-day.we .b { background: repeating-linear-gradient(135deg, rgba(201,164,92,.95) 0 5px, rgba(201,164,92,.75) 5px 10px); }
.fc-day .l { font-size: 10px; color: var(--muted); }
.fc-wd { display: grid; grid-template-columns: 34px minmax(40px, 1fr) 44px; gap: 8px; align-items: center; font-size: 13px; margin-bottom: 6px; }
.fc-wd .bar { position: relative; height: 10px; background: var(--surface-2); border-radius: 6px; }
.fc-wd .bar span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: var(--brand); }
.fc-wd .bar i { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; background: var(--text); opacity: .5; }
.fc-wd b { text-align: right; }
.dash-plan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.dash-plan > div > .card { height: 100%; }
@media (max-width: 900px) { .dash-plan { grid-template-columns: minmax(0, 1fr); } }
