:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --soft: #f6f8fc;
  --line: #e8ecf4;
  --line-2: #dfe5ef;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --primary: #2563eb;
  --primary-2: #1d4ed8;
  --primary-soft: #eaf1ff;
  --primary-text: #2563eb;
  --green: #16a34a;
  --green-2: #10b981;
  --green-soft: #dcfce7;
  --orange: #f59e0b;
  --orange-soft: #fef3c7;
  --purple: #7c3aed;
  --purple-soft: #ede9fe;
  --red: #ef4444;
  --red-soft: #fee2e2;
  --pink-soft: #fff1f3;
  --side: #0c1733;
  --side-mid: #0f1d40;
  --side-2: #12224a;
  --primary-light: #3b82f6;
  --primary-glow: rgba(37, 99, 235, .55);
  --side-text: #c7d2e5;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px -6px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px -18px rgba(15, 23, 42, .35);
  --grad-blue: linear-gradient(135deg, var(--primary-2) 0%, var(--primary-light) 100%);
  --grad-green: linear-gradient(135deg, #15a34a 0%, #22c55e 100%);
  --grad-purple: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 100%);
  --grad-orange: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  --side-w: 288px;
}
* { box-sizing: border-box; }
html, body { background: var(--bg); }
body { margin: 0; font-family: 'Inter', 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--text); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--primary-text); text-decoration: none; }
.ico { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: -.25em; }
[data-i] { display: inline-flex; }
.hidden { display: none !important; }
.m { white-space: nowrap; font-variant-numeric: tabular-nums; }
.nw { white-space: nowrap; }
.muted { color: var(--muted); }
.sub { color: var(--muted); font-size: 12px; }
.pos { color: var(--green); } .neg { color: var(--red); }
.app { display: flex; min-height: 100vh; }
body.locked .app { display: none; }
.sidebar { width: var(--side-w); flex-shrink: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--side) 0%, var(--side-mid) 60%, var(--side-2) 100%); color: var(--side-text); padding: 16px 12px 20px; z-index: 60; }
.logo-wrap { display: flex; align-items: center; gap: 12px; padding: 4px 10px 26px; color: #fff; }
.logo-wrap svg.logo { width: 44px; height: 62px; flex-shrink: 0; }
.logo-wrap .logo-img, .auth-logo .logo-img { width: 54px; height: 54px; flex-shrink: 0; object-fit: contain; border-radius: 12px; background: #fff; padding: 4px; }
.logo-img + div .logo-title { font-size: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logo-title { font-size: 25px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.logo-title span { color: var(--primary-light); }
.logo-sub { font-size: 13px; color: #dbe4f3; margin-top: 3px; }
#nav { display: flex; flex-direction: column; gap: 4px; }
#nav button { display: flex; align-items: center; gap: 16px; width: 100%; padding: 11px 16px; border: 0; border-radius: 10px; background: none; color: #e2e8f5; font-size: 15px; font-weight: 500; text-align: start; cursor: pointer; transition: background .15s; }
#nav button .ico { width: 26px; height: 26px; stroke-width: 1.7; }
#nav button .chev { margin-inline-start: auto; width: 16px; height: 16px; opacity: .8; }
#nav button:hover { background: rgba(255, 255, 255, .06); }
#nav button.active { background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%); color: #fff; box-shadow: 0 8px 20px -10px var(--primary-glow); }
#nav .cnt { margin-inline-start: auto; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: #ef4444; color: #fff; display: grid; place-items: center; }
#nav .cnt:empty { display: none; }
#nav .cnt:not(:empty) + .chev { margin-inline-start: 8px; }
.side-status { margin: auto 10px 0; padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .06); }
.side-status .row1 { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; font-size: 13px; }
.side-status .row2 { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 11.5px; color: #c4cee0; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); flex-shrink: 0; }
.slogan { margin: 46px 18px 0; font-family: 'Caveat', cursive; font-size: 22px; line-height: 1.2; color: #fff; transform: rotate(-8deg); }
.slogan svg { display: block; width: 130px; height: 22px; margin: 2px 0 0 30px; }
.side-backdrop { display: none; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: rgba(244, 246, 251, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ib.burger { display: none; width: 40px; height: 40px; }
.ib.burger .ico { width: 22px; height: 22px; }
.gsearch { position: relative; flex: 1; max-width: 470px; }
.gsearch > i { position: absolute; inset-inline-start: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.gsearch > i .ico { width: 18px; height: 18px; }
.gsearch input { width: 100%; height: 44px; padding-block: 0; padding-inline: 44px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); box-shadow: var(--shadow); font-size: 13.5px; }
.gsearch input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.drop { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 80; max-height: 420px; overflow-y: auto; }
.drop-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: none; text-align: start; cursor: pointer; }
.drop-item:hover, .drop-item.on { background: var(--bg); }
.drop-item .grow { flex: 1; min-width: 0; }
.drop-item b { display: block; font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drop-head { font-size: 11px; font-weight: 700; color: var(--muted-2); text-transform: uppercase; letter-spacing: .05em; padding: 8px 10px 4px; }
.top-right { margin-inline-start: auto; display: flex; align-items: center; gap: 22px; }
.bell { position: relative; border: 0; background: none; cursor: pointer; padding: 6px; color: var(--text); }
.bell .ico { width: 26px; height: 26px; }
.bell .badge-n { position: absolute; top: 0; inset-inline-end: 0; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px; background: #ef4444; color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }
.bell .badge-n:empty { display: none; }
.usermenu { display: flex; align-items: center; gap: 10px; border: 0; background: none; cursor: pointer; padding: 4px; font-weight: 600; font-size: 15px; }
.usermenu > i .ico { width: 18px; height: 18px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; flex-shrink: 0; background: var(--primary-2); color: #fff; font-weight: 700; font-size: 14px; overflow: hidden; }
.avatar svg { width: 100%; height: 100%; }
.avatar.sm { width: 30px; height: 30px; font-size: 12px; }
.avatar.lg { width: 52px; height: 52px; font-size: 19px; }
.pop { position: fixed; z-index: 120; min-width: 210px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; }
.pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; background: none; border-radius: 8px; cursor: pointer; text-align: start; font-size: 13.5px; }
.pop button:hover { background: var(--bg); }
.pop button.danger { color: var(--red); }
.pop hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.pop .pop-head { padding: 8px 12px; font-size: 12px; color: var(--muted); }
.pop.wide { width: 340px; max-width: calc(100vw - 20px); }
#view { padding: 4px 18px 18px; flex: 1; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px 18px; font-size: 12px; color: var(--muted); }
.footer .heart { color: #ef4444; }
.footer .f-right { display: flex; align-items: center; gap: 8px; }
.footer b { color: var(--primary-text); font-weight: 500; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 18px 12px; }
.card-h h3 { margin: 0; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.card-h h3 .ico { width: 24px; height: 24px; color: var(--text-2); }
.card-b { padding: 0 18px 18px; }
.link { border: 0; background: none; color: var(--primary-text); cursor: pointer; font-size: 13px; font-weight: 500; padding: 0; display: inline-flex; align-items: center; gap: 4px; }
.link:hover { text-decoration: underline; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; transition: filter .15s, transform .05s; }
.btn:hover { filter: brightness(.97); }
.btn:active { transform: translateY(1px); }
.btn .ico { width: 18px; height: 18px; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 8px 18px -10px var(--primary-glow); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.indigo { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 8px 18px -10px var(--primary-glow); }
.btn.green { background: var(--green); border-color: var(--green); color: #fff; }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-split { display: inline-flex; }
.btn-split .btn:first-child { border-radius: 10px 0 0 10px; }
.btn-split .btn:last-child { border-radius: 0 10px 10px 0; padding: 0 12px; border-inline-start: 1px solid rgba(255, 255, 255, .3); }
.ib { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 0; background: none; color: var(--text-2); cursor: pointer; transition: background .15s; }
.ib:hover { background: var(--bg); }
.ib.round { background: var(--soft); }
.ib.round:hover { background: var(--line-2); }
.ib .ico { width: 16px; height: 16px; }
.ib.danger:hover { color: var(--red); background: var(--red-soft); }
.inp, .grid input, .grid select, .grid textarea {
  width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); font-size: 14px; }
textarea.inp, .grid textarea { height: auto; padding: 10px 12px; resize: vertical; min-height: 70px; }
.inp:focus, .grid input:focus, .grid select:focus, .grid textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.with-ico { position: relative; }
.with-ico > .ico { position: absolute; inset-inline-start: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; pointer-events: none; }
.with-ico input { padding-inline-start: 42px !important; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid.g3 { grid-template-columns: 1fr 1fr 1fr; }
.grid label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--text-2); min-width: 0; }
.grid .full { grid-column: 1 / -1; }
.req::after { content: ' *'; color: var(--red); }
.check { flex-direction: row !important; align-items: center; gap: 10px !important; cursor: pointer; }
.check input { width: 18px !important; height: 18px !important; }
select.inp, .grid select, .sel { appearance: none; -webkit-appearance: none; padding-inline-end: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; }
.sel { height: 34px; padding: 0 30px 0 12px; border: 1px solid var(--line-2); border-radius: 8px; background-color: var(--card); font-size: 13px; cursor: pointer; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill.blue { background: var(--primary); color: #fff; }
.pill.orange { background: #d97706; color: #fff; }
.pill.green-l { background: var(--green-soft); color: #15803d; }
.pill.blue-l { background: #dbeafe; color: #1d4ed8; }
.pill.orange-l { background: var(--orange-soft); color: #b45309; }
.pill.red-l { background: var(--red-soft); color: #dc2626; }
.pill.purple-l { background: var(--purple-soft); color: #6d28d9; }
.pill.gray-l { background: var(--soft); color: var(--text-2); }
.qty-pill { display: inline-grid; place-items: center; min-width: 26px; height: 24px; padding: 0 7px; border-radius: 6px; background: var(--green-soft); color: #15803d; font-size: 12px; font-weight: 600; }
.qty-pill.low { background: var(--orange-soft); color: #b45309; }
.qty-pill.out { background: var(--red-soft); color: #dc2626; }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: start; font-size: 12.5px; font-weight: 600; color: var(--text-2); padding: 11px 12px; background: var(--soft); white-space: nowrap; }
.tbl th:first-child { border-radius: 8px 0 0 8px; } .tbl th:last-child { border-radius: 0 8px 8px 0; }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 13px; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: #fafbfe; }
.tbl .r { text-align: end; }
.tbl .acts { white-space: nowrap; text-align: end; }
.tbl-wrap { overflow-x: auto; padding: 0 18px 6px; }
.prod-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.prod-cell b { font-weight: 500; display: block; }
.prod-cell > span { min-width: 0; }
.ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.cart-fab { display: none; }
.thumb { width: 42px; height: 42px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; overflow: hidden; flex-shrink: 0; }
.thumb svg, .thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb.sm { width: 34px; height: 34px; border-radius: 8px; }
.thumb.lg { width: 100%; height: 92px; border: 0; }
.empty { text-align: center; color: var(--muted); padding: 28px 12px; }
.page-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 6px 0 18px; }
.ph-ico { width: 52px; height: 52px; display: grid; place-items: center; color: var(--primary-text); flex-shrink: 0; }
.ph-ico .ico { width: 46px; height: 46px; stroke-width: 1.6; }
.ph-ico.boxed { background: var(--grad-blue); color: #fff; border-radius: 12px; }
.ph-ico.boxed .ico { width: 30px; height: 30px; }
.page-head h1 { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.page-head p { margin: 4px 0 0; color: var(--text-2); font-size: 14px; }
.ph-right { margin-inline-start: auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.chip-info { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 13px; }
.chip-info .ico { width: 18px; height: 18px; }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; width: fit-content; max-width: 100%; overflow-x: auto; margin-bottom: 16px; }
.tabs button { border: 0; background: none; padding: 8px 16px; border-radius: 8px; font-weight: 600; font-size: 13.5px; color: var(--muted); cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.tabs button .ico { width: 17px; height: 17px; }
.tabs button.on { background: var(--primary); color: #fff; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line-2); background: var(--card); border-radius: 99px; padding: 6px 13px; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip small { opacity: .7; margin-inline-start: 3px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 0 18px 14px; }
.filters .with-ico { flex: 1; min-width: 220px; }
.filters select.inp { width: auto; min-width: 150px; font-size: 13px; }
.date-range { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); }
.date-range input { border: 0; height: 38px; font-size: 13px; width: 128px; background: none; }
.date-range input:focus { outline: none; }
.date-range .ico { width: 18px; height: 18px; color: var(--text-2); }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px 18px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.pager .pg { display: flex; gap: 8px; }
.pager .pg button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); cursor: pointer; display: grid; place-items: center; }
.pager .pg button.on { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
.pager .pg button:disabled { opacity: .4; cursor: default; }
.pager .pg .ico { width: 15px; height: 15px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi { position: relative; overflow: hidden; border-radius: var(--radius); color: #fff; padding: 18px 18px 16px; min-height: 142px; box-shadow: 0 12px 24px -16px rgba(15, 23, 42, .5); border: 0; text-align: start; cursor: pointer; }
.kpi.blue { background: var(--grad-blue); } .kpi.green { background: var(--grad-green); }
.kpi.purple { background: var(--grad-purple); } .kpi.orange { background: var(--grad-orange); }
.kpi-h { display: flex; align-items: center; gap: 14px; font-weight: 500; font-size: 14px; }
.kpi-h .ico { width: 36px; height: 36px; stroke-width: 1.6; }
.kpi-v { font-size: 25px; font-weight: 700; margin-top: 14px; letter-spacing: -.01em; }
.kpi-d { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; margin-top: 6px; opacity: .95; }
.kpi-d .ico { width: 15px; height: 15px; }
.kpi-d.down .ico { color: #ef4444; }
.kpi .spark { position: absolute; inset-inline-end: 14px; bottom: 16px; width: 76px; height: 34px; }
.lkpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.lkpi { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); min-height: 110px; min-width: 0; }
.lkpi.t-blue { background: linear-gradient(135deg, #f3f7ff, #fff 70%); border-color: #dbe6fb; }
.lkpi.t-green { background: linear-gradient(135deg, #effbf3, #fff 70%); border-color: #d4f1de; }
.lkpi.t-purple { background: linear-gradient(135deg, #f5f2ff, #fff 70%); border-color: #e6defc; }
.lkpi.t-orange { background: linear-gradient(135deg, #fff7ea, #fff 70%); border-color: #fbe7c4; }
.lkpi.t-red { background: linear-gradient(135deg, #fff1f2, #fff 70%); border-color: #fbd5da; }
.lkpi .lk-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.lkpi .lk-ico .ico { width: 22px; height: 22px; }
.lk-blue { background: var(--grad-blue); } .lk-green { background: var(--grad-green); } .lk-purple { background: var(--grad-purple); } .lk-orange { background: var(--grad-orange); } .lk-red { background: linear-gradient(135deg, #ef4444, #f87171); }
.lkpi .lk-l { font-size: 13.5px; color: var(--text-2); }
.lkpi .lk-v { font-size: 24px; font-weight: 700; margin: 4px 0 6px; letter-spacing: -.01em; }
.lkpi .lk-s { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.lkpi .lk-s.up { color: var(--green); } .lkpi .lk-s.down { color: var(--red); }
.lkpi .lk-s .ico { width: 14px; height: 14px; }
.dash { display: grid; grid-template-columns: minmax(0, 1fr) 322px; gap: 16px; align-items: start; }
.dash-left { display: grid; gap: 16px; min-width: 0; }
.dash-right { display: grid; gap: 16px; min-width: 0; }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.row-2.wl { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.chart-box { position: relative; padding: 0 14px 12px; }
.chart-box svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-box .axis { font-size: 10.5px; fill: #64748b; font-family: inherit; }
.chart-box .hit { fill: transparent; cursor: crosshair; }
.donut-wrap { display: flex; align-items: center; gap: 22px; padding: 6px 22px 22px; }
.donut-wrap svg { width: 178px; height: 178px; flex-shrink: 0; }
.donut-wrap circle.seg { transition: stroke-width .15s; }
.donut-wrap circle.seg:hover { stroke-width: 32; }
.legend { flex: 1; display: grid; gap: 16px; }
.legend div { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.legend i { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.legend span:last-child { margin-inline-start: auto; font-weight: 500; }
#tip { position: fixed; z-index: 200; pointer-events: none; background: #0f172a; color: #fff; font-size: 12px; padding: 7px 10px; border-radius: 8px; white-space: nowrap; box-shadow: var(--shadow-lg); transform: translate(-50%, calc(-100% - 12px)); }
#tip b { display: block; font-size: 13px; }
.act-list { padding: 0 18px 8px; }
.act { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.act:last-child { border-bottom: 0; }
.act .a-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.act .a-ico .ico { width: 18px; height: 18px; }
.a-green { background: #22c55e; } .a-blue { background: #3b82f6; } .a-purple { background: #8b5cf6; } .a-orange { background: #f59e0b; } .a-red { background: #ef4444; }
.act .grow { flex: 1; min-width: 0; }
.act b { font-weight: 600; font-size: 13.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; margin-top: 3px; }
.act .a-r { text-align: end; flex-shrink: 0; }
.act .a-r b { font-size: 13px; }
.act .a-r .sub { margin-top: 6px; }
.low-card { background: var(--pink-soft); border-color: #fde0e5; padding: 14px; }
.low-head { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: none; cursor: pointer; text-align: start; padding: 2px 4px 12px; }
.low-head .alert { width: 30px; height: 30px; border-radius: 50%; background: #ef4444; color: #fff; display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.low-head b { color: #e11d48; font-size: 15.5px; display: block; }
.low-head > .ico { margin-inline-start: auto; color: var(--text-2); }
.low-list { background: #fff7f8; border-radius: 10px; padding: 4px 12px; }
.low-list div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #fde4e8; font-size: 13px; }
.low-list div:last-child { border-bottom: 0; }
.low-list i { font-style: normal; min-width: 21px; height: 21px; border-radius: 50%; background: #fecdd3; color: #e11d48; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.ok-card { background: #f0fdf4; border-color: #d1fae5; }
.quick-access { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 0 12px 18px; }
.qa-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; cursor: pointer; font-size: 11.5px; color: var(--text-2); min-width: 0; }
.qa-tile span { width: 100%; max-width: 60px; height: 50px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; background: var(--card); transition: border-color .15s; }
.qa-tile:hover span { border-color: var(--primary); color: var(--primary-text); }
.qa-tile .ico { width: 24px; height: 24px; }
.bottom-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ba { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 12px; border: 0; color: #fff; cursor: pointer; text-align: start; min-height: 70px; box-shadow: 0 10px 20px -14px rgba(15, 23, 42, .6); transition: transform .12s; }
.ba:hover { transform: translateY(-2px); }
.ba .ico { width: 30px; height: 30px; stroke-width: 1.6; }
.ba b { display: block; font-size: 14px; font-weight: 600; }
.ba small { display: block; font-size: 12px; opacity: .9; margin-top: 4px; }
.ba .arrow { margin-inline-start: auto; width: 18px; height: 18px; }
.ba.g { background: var(--grad-green); } .ba.b { background: var(--grad-blue); } .ba.p { background: var(--grad-purple); }
.ba.l { background: #eef2f8; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.ba.l .plus { width: 30px; height: 30px; border-radius: 50%; background: #94a3b8; color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.ba.l .plus .ico { width: 18px; height: 18px; }
.ba.l small { color: var(--muted); }
.pos-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.pos-left { display: grid; gap: 16px; min-width: 0; }
.pos-tiles { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 14px; }
.pos-tiles.t3 { grid-template-columns: 1.4fr 1fr 1fr; }
.tile { display: flex; align-items: center; gap: 12px; padding: 14px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card); cursor: pointer; text-align: start; min-height: 66px; box-shadow: var(--shadow); min-width: 0; }
.tile:hover { border-color: var(--primary); }
.tile .ico { width: 28px; height: 28px; color: var(--primary-text); stroke-width: 1.6; }
.tile b { font-weight: 600; font-size: 14px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile > span { min-width: 0; }
.tile small { color: var(--muted); font-size: 12px; }
.tile.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.tile.primary .ico, .tile.primary small { color: #fff; }
.tile.primary small { opacity: .85; }
.tile.on { border-color: var(--primary); background: var(--primary-soft); }
.catalog { display: grid; grid-template-columns: 214px minmax(0, 1fr); gap: 16px; }
.cats { padding: 10px; align-self: start; }
.cats button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 10px; white-space: nowrap; border: 0; border-radius: 9px; background: none; cursor: pointer; font-size: 13.5px; text-align: start; margin-bottom: 4px; }
.cats button .ico { width: 19px; height: 19px; color: var(--text-2); }
.cats button i { margin-inline-start: auto; font-style: normal; font-size: 12px; min-width: 26px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--soft); display: grid; place-items: center; color: var(--text-2); }
.cats button:hover { background: var(--bg); }
.cats button.on { background: var(--primary); color: #fff; }
.cats button.on .ico { color: #fff; }
.cats button.on i { background: rgba(255, 255, 255, .2); color: #fff; }
.prods { padding: 12px; }
.prods-bar { display: flex; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.prods-bar .with-ico { flex: 1; min-width: 180px; }
.sortsel { display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; font-size: 13px; color: var(--muted); background: var(--card); }
.sortsel select { border: 0; background-color: transparent; font-size: 13px; color: var(--text); height: 38px; padding: 0 22px 0 2px; cursor: pointer; background-position: right 2px center; }
.sortsel select:focus { outline: none; }
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pcard { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; background: var(--card); transition: border-color .15s, box-shadow .15s; min-width: 0; }
.pcard:hover { border-color: #bfd0fb; box-shadow: var(--shadow); }
.pcard .pname { font-size: 13px; font-weight: 500; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .pprice { font-size: 15px; font-weight: 700; }
.pcard .pfoot { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 6px; }
.pcard .pfoot .pill { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.add-cart { width: 30px; height: 30px; border-radius: 7px; border: 0; background: var(--primary); color: #fff; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.add-cart .ico { width: 17px; height: 17px; }
.add-cart:disabled { background: #cbd5e1; cursor: not-allowed; }
.more-row { text-align: center; margin-top: 12px; }
.cart { position: sticky; top: 80px; padding: 16px; display: flex; flex-direction: column; max-height: calc(100vh - 96px); }
.cart-h { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cart-h > .ico { width: 24px; height: 24px; color: var(--text-2); }
.cart-h b { font-size: 18px; font-weight: 700; }
.cart-h .n { min-width: 22px; height: 22px; border-radius: 6px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.cart-h .link { margin-inline-start: auto; }
.cart-client { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.cart-client .grow { flex: 1; min-width: 0; }
.cart-lines { overflow-y: auto; flex: 1; min-height: 60px; }
.cline { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cline .thumb { width: 52px; height: 64px; }
.cline .grow { flex: 1; min-width: 0; }
.cline .top { display: flex; justify-content: space-between; gap: 8px; }
.cline b { font-size: 13px; font-weight: 600; }
.cline .price { font-weight: 700; font-size: 14px; white-space: nowrap; }
.stepper { display: flex; align-items: center; gap: 4px; justify-content: flex-end; margin-top: 8px; }
.stepper button { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); cursor: pointer; display: grid; place-items: center; }
.stepper button .ico { width: 12px; height: 12px; }
.stepper span { min-width: 26px; text-align: center; font-weight: 600; font-size: 13px; }
.stepper .del { border: 0; color: var(--primary-text); margin-inline-start: 8px; }
.stepper .del .ico { width: 16px; height: 16px; }
.totals { padding: 12px 0 4px; display: grid; gap: 10px; font-size: 13.5px; }
.totals div { display: flex; justify-content: space-between; align-items: center; color: var(--text-2); }
.totals b { color: var(--text); }
.total-ttc { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 10px; background: var(--soft); margin: 8px 0 14px; }
.total-ttc span { font-weight: 600; font-size: 14px; }
.total-ttc b { font-size: 24px; font-weight: 800; }
.paymodes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0 12px; }
.paymodes button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 2px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--card); cursor: pointer; font-size: 10.5px; font-weight: 500; }
.paymodes button .ico { width: 22px; height: 22px; color: var(--text-2); }
.paymodes button.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.paymodes button.on .ico { color: #fff; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; margin-bottom: 12px; border: 1px solid var(--line-2); border-radius: 10px; font-size: 13.5px; font-weight: 500; cursor: pointer; }
.switch-row span { display: inline-flex; align-items: center; gap: 8px; }
.switch-row .ico { width: 18px; height: 18px; color: var(--orange); }
.switch { appearance: none; -webkit-appearance: none; width: 40px; height: 22px; border-radius: 99px; background: #cbd5e1; position: relative; cursor: pointer; transition: background .15s; flex-shrink: 0; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch:checked { background: var(--primary); }
.switch:checked::after { transform: translateX(18px); }
.day-head { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 14px 0 4px; border-bottom: 1px solid var(--line); }
.img-field .lbl { font-size: 13px; font-weight: 500; color: var(--text-2); }
.img-row { display: flex; gap: 14px; align-items: center; margin-top: 6px; }
.img-prev { width: 84px; height: 84px; border-radius: 12px; border: 1px dashed var(--line-2); display: grid; place-items: center; overflow: hidden; background: var(--soft); color: var(--muted-2); flex-shrink: 0; }
.img-prev img { width: 100%; height: 100%; object-fit: contain; }
.img-prev .ico { width: 28px; height: 28px; }
.img-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.img-actions .sub { flex-basis: 100%; }
.grid label.btn, .img-actions label.btn { flex-direction: row; gap: 8px; font-size: 13px; color: var(--text); font-weight: 600; }
.perm-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.perm-row:last-child { border-bottom: 0; }
.perm-row .p-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-text); flex-shrink: 0; }
.perm-row .grow { flex: 1; min-width: 0; }
.perm-row b { display: block; font-weight: 600; }
.credit-box { border: 1px dashed #c7d6fb; background: #f5f8ff; border-radius: 10px; padding: 10px; margin-bottom: 12px; display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.credit-box label { font-size: 12px; display: flex; flex-direction: column; gap: 4px; color: var(--text-2); }
.credit-box input { height: 36px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 10px; font-size: 13px; width: 100%; }
.credit-box .rest { grid-column: 1 / -1; font-size: 12.5px; color: var(--text-2); }
.save-sale { height: 52px; font-size: 15px; }
.client-cell { display: flex; align-items: center; gap: 10px; }
.doc-ico { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--primary-text); }
.doc-ico .ico { width: 16px; height: 16px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.split-right { display: grid; gap: 16px; min-width: 0; }
.sup-row, .lp-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: start; cursor: pointer; }
.sup-row:last-child, .lp-row:last-child { border-bottom: 0; }
.sup-row .grow, .lp-row .grow { flex: 1; min-width: 0; }
.sup-row b, .lp-row b { font-weight: 500; font-size: 13.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sup-row > .ico { width: 16px; height: 16px; color: var(--muted); }
.sup-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.lines-tbl { width: 100%; border-collapse: collapse; }
.lines-tbl input, .lines-tbl select { width: 100%; height: 36px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 8px; font-size: 13px; background-color: var(--card); }
.lines-tbl td { padding: 6px 4px; vertical-align: top; }
.lines-tbl th { padding: 8px 4px; text-align: start; font-size: 12px; color: var(--muted); font-weight: 600; }
.sum-box { display: grid; gap: 8px; margin-inline-start: auto; width: 290px; max-width: 100%; padding: 12px 14px; border-radius: 10px; background: var(--soft); font-size: 13.5px; }
.sum-box div { display: flex; justify-content: space-between; gap: 10px; }
.sum-box .t { font-weight: 700; font-size: 16px; padding-top: 8px; border-top: 1px solid var(--line-2); }
.seg { display: inline-flex; padding: 4px; border-radius: 10px; background: var(--soft); gap: 4px; margin-bottom: 16px; }
.seg button { border: 0; background: none; padding: 8px 14px; border-radius: 8px; font-weight: 600; font-size: 13px; cursor: pointer; color: var(--muted); }
.seg button.on { background: var(--card); color: var(--primary-text); box-shadow: var(--shadow); }
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(15, 23, 42, .45); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; animation: fade .15s; }
.modal-box { width: 100%; max-width: 620px; background: var(--card); border-radius: 16px; box-shadow: var(--shadow-lg); animation: rise .18s ease-out; }
.modal-box.lg { max-width: 820px; } .modal-box.xl { max-width: 1040px; } .modal-box.sm { max-width: 440px; }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.mh-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--primary-soft); color: var(--primary-text); display: grid; place-items: center; flex-shrink: 0; }
.mh-ico .ico { width: 20px; height: 20px; }
.modal-head h2 { margin: 0; font-size: 17px; font-weight: 700; }
.modal-head .ib { margin-inline-start: auto; }
.modal-body { padding: 20px 22px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--primary-soft); color: #1e3a8a; font-size: 13px; margin-bottom: 14px; }
.note.warn { background: var(--red-soft); color: #991b1b; }
.note .ico { width: 18px; height: 18px; margin-top: 1px; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.kv > div { padding: 12px 14px; border-radius: 10px; background: var(--soft); min-width: 0; }
.kv small { display: block; color: var(--muted); font-size: 12px; }
.kv b { font-size: 16px; }
.kv.kv4 { grid-template-columns: repeat(4, 1fr); }
.tl { position: relative; margin: 6px 0 4px; padding-inline-start: 22px; }
.tl::before { content: ''; position: absolute; inset-inline-start: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--line-2); }
.tl-item { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.tl-item:hover { background: var(--soft); }
.tl-item::before { content: ''; position: absolute; inset-inline-start: -18px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--card); border: 2px solid #6366f1; }
.tl-item .grow { min-width: 0; }
.tl-item .a-r { margin-inline-start: auto; text-align: end; white-space: nowrap; }
.parts-box { border: 1px dashed #d5dbe7; border-radius: 12px; padding: 12px; }
.part-row { display: grid; grid-template-columns: 1fr 80px 36px; gap: 8px; margin-bottom: 8px; align-items: center; }
.parts-foot { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.label-sheet { display: flex; flex-wrap: wrap; gap: 8px; }
.lbl-prev { border: 1px solid #e6eaf2; border-radius: 8px; padding: 6px 8px; text-align: center; background: #fff; font-size: 11px; line-height: 1.25; overflow: hidden; }
.lbl-prev { display: flex; flex-direction: column; justify-content: space-between; color: #000; }
.lbl-prev svg { display: block; margin: 2px auto; max-width: 100%; }
.lbl-prev .lbl-n { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbl-prev .lbl-c { font-size: 10px; letter-spacing: .5px; } .lbl-prev .lbl-p { font-size: 15px; font-weight: 800; }
.qr-box { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.qr-box svg { width: 150px; height: 150px; flex: none; border: 1px solid #e6eaf2; border-radius: 10px; padding: 6px; background: #fff; }
.theme-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.theme-sw { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.theme-sw .sw { width: 38px; height: 38px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); }
.theme-sw.on { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); color: var(--text); }
.color-row { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.color-row input[type=color] { width: 46px; height: 42px; padding: 2px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; cursor: pointer; flex: none; }
.color-row .inp { font-family: ui-monospace, monospace; text-transform: lowercase; }
.theme-prev { display: flex; gap: 10px; height: 190px; }
.tp-side { width: 70px; border-radius: 12px; padding: 10px 8px; background: linear-gradient(180deg, var(--side), var(--side-2)); display: flex; flex-direction: column; gap: 8px; }
.tp-side .tp-logo { height: 18px; border-radius: 5px; background: var(--primary-light); opacity: .9; margin-bottom: 6px; }
.tp-side i { height: 12px; border-radius: 4px; background: rgba(255, 255, 255, .12); }
.tp-side i.on { background: var(--primary); }
.tp-main { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tp-kpi { height: 54px; border-radius: 12px; background: var(--grad-blue); }
.tp-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tp-bar { flex: 1; border-radius: 10px; background: linear-gradient(0deg, var(--primary-soft), #fff); border: 1px solid var(--line); }
.perf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.who { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--soft); margin-bottom: 14px; }
.who .grow { flex: 1; min-width: 0; }
.who b { display: block; font-size: 15px; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-row .grow { flex: 1; min-width: 0; }
.sec-t { font-size: 14px; font-weight: 700; margin: 18px 0 8px; display: flex; align-items: center; gap: 8px; }
.progress { height: 6px; border-radius: 99px; background: var(--line-2); overflow: hidden; min-width: 70px; }
.progress i { display: block; height: 100%; border-radius: 99px; background: var(--primary); }
.progress.green i { background: var(--green-2); } .progress.orange i { background: var(--orange); } .progress.red i { background: var(--red); }
.scan-input { height: 56px !important; font-size: 18px !important; text-align: center; letter-spacing: .05em; }
.month-nav { display: flex; align-items: center; gap: 8px; }
.month-nav .mlabel { position: relative; min-width: 170px; height: 42px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); display: grid; place-items: center; font-weight: 600; }
.month-nav .mlabel input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.hb { padding: 8px 0; }
.hb-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; margin-bottom: 6px; }
.hb-top span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb .progress { height: 8px; }
table.pl { table-layout: fixed; }
.pl td, .pl th { padding: 10px 6px; }
.pl th:first-child, .pl td:first-child { width: 44%; }
.pl tr.t td { font-weight: 700; border-top: 2px solid var(--line-2); }
.delta { font-weight: 600; } .delta.up { color: var(--green); } .delta.down { color: var(--red); }
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: var(--card); }
.auth-side { background: linear-gradient(160deg, var(--side) 0%, var(--side-2) 100%); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side::after { content: ''; position: absolute; width: 520px; height: 520px; right: -180px; bottom: -200px; border-radius: 50%; background: radial-gradient(circle, var(--primary-glow), transparent 65%); }
.auth-side h2 { font-size: 34px; line-height: 1.15; margin: 0 0 14px; letter-spacing: -.02em; max-width: 440px; }
.auth-side p { color: #c7d2e5; max-width: 420px; margin: 0; }
.auth-feats { display: grid; gap: 14px; margin-top: 34px; position: relative; z-index: 1; }
.auth-feats div { display: flex; align-items: center; gap: 12px; color: #dbe4f3; }
.auth-feats .ico { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: rgba(255, 255, 255, .08); color: #60a5fa; }
.auth-main { display: grid; place-items: center; padding: 32px 18px; }
.auth-card { width: 100%; max-width: 410px; }
.auth-card h1 { font-size: 26px; margin: 0 0 6px; }
.auth-card > p { margin: 0 0 24px; color: var(--muted); }
.auth-form { display: grid; gap: 16px; }
.auth-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.auth-form input { width: 100%; height: 46px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 14px 0 42px; font-size: 14px; background: var(--card); }
.auth-form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.auth-form .btn { height: 48px; margin-top: 4px; }
.auth-foot { margin-top: 22px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.auth-logo { display: none; align-items: center; gap: 10px; margin-bottom: 26px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 12px; background: #0f172a; color: #fff; font-weight: 500; box-shadow: var(--shadow-lg); animation: rise .2s; max-width: calc(100vw - 32px); }
.toast .ico { width: 18px; height: 18px; color: #4ade80; }
.toast.err .ico { color: #f87171; }
.loader { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 400; background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--primary)); background-size: 200% 100%; animation: load 1s linear infinite; display: none; }
.loader.on { display: block; }
@keyframes load { from { background-position: 200% 0; } to { background-position: 0 0; } }
#printArea { display: none; }
@media print {
  .app, .modal, .toast, .loader, #auth, #tip, .pop { display: none !important; }
  #printArea { display: block; }
  html, body { background: #fff; }
}
.receipt { width: 72mm; margin: 0 auto; font: 11.5px/1.4 Inter, Arial, sans-serif; color: #000; }
.receipt.fmt-58mm { width: 48mm; font-size: 10px; }
.receipt.fmt-A4 { width: auto; max-width: 150mm; font-size: 13px; }
.receipt .rc-head { text-align: center; padding-bottom: 8px; }
.receipt .rc-logo { display: block; margin: 0 auto 6px; max-height: 22mm; max-width: 62%; object-fit: contain; }
.receipt .rc-shop { font-size: 1.5em; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; line-height: 1.15; }
.receipt .rc-info { font-size: .86em; margin-top: 3px; }
.receipt .rc-title { margin: 4px 0 8px; text-align: center; background: #000; color: #fff; padding: 6px 6px 5px; border-radius: 4px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.receipt .rc-title b { display: block; font-size: 1.12em; letter-spacing: .08em; text-transform: uppercase; }
.receipt .rc-title span { display: inline-block; font-size: .88em; margin: 1px 4px 0; }
.receipt .rc-sec { font-size: .76em; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin: 10px 0 2px; padding-bottom: 2px; border-bottom: 1.5px solid #000; }
.receipt table { width: 100%; border-collapse: collapse; }
.receipt td, .receipt th { padding: 3px 1px; border-bottom: 1px dotted #999; vertical-align: top; text-align: start; }
.receipt td.r, .receipt th.r { text-align: end; white-space: nowrap; padding-inline-start: 8px; }
.receipt td:first-child { color: #222; }
.receipt small { font-size: .82em; color: #333; }
.receipt .rc-items { margin-top: 8px; }
.receipt .rc-items th { font-size: .76em; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1.5px solid #000; }
.receipt .rc-items td:first-child { color: #000; }
.receipt .tot td { font-weight: 700; font-size: 1.1em; border-bottom: 0; }
.receipt .rc-total { display: flex; justify-content: space-between; gap: 8px; margin: 8px 0 4px; padding: 6px 8px; border: 2px solid #000; border-radius: 4px; font-weight: 800; font-size: 1.22em; }
.receipt .qr-print { display: flex; gap: 10px; align-items: center; margin: 12px 0 0; padding: 8px; border: 1px dashed #000; border-radius: 4px; font-size: .86em; }
.receipt .qr-print svg { flex: none; }
.receipt .rc-terms { margin-top: 10px; font-size: .78em; line-height: 1.35; text-align: justify; }
.receipt .f { text-align: center; margin-top: 12px; padding-top: 8px; border-top: 1px dashed #000; font-size: .9em; }
.receipt .sig { display: flex; justify-content: space-between; margin-top: 16px; padding-top: 26px; font-size: .86em; }
.receipt .sig span { border-top: 1px solid #000; padding-top: 3px; min-width: 40%; text-align: center; }
.doc-print { color: #000; font-size: 12px; }
.doc-print h1 { font-size: 20px; margin: 0; }
.doc-print .meta { color: #444; margin: 2px 0 14px; }
.doc-print h3 { font-size: 14px; margin: 16px 0 6px; }
.doc-print table { width: 100%; border-collapse: collapse; }
.doc-print th, .doc-print td { border: 1px solid #ccc; padding: 5px 8px; text-align: start; }
.doc-print th { background: #f2f2f2; }
.doc-print .r { text-align: end; }
.doc-print tr.t td { font-weight: 700; background: #f7f7f7; }
.invoice { font-size: 12.5px; }
.invoice .inv-head { display: flex; justify-content: space-between; gap: 20px; border-bottom: 2px solid #000; padding-bottom: 10px; margin-bottom: 14px; }
.invoice .inv-n { text-align: end; } .invoice .inv-n h2 { margin: 0 0 4px; font-size: 22px; letter-spacing: 2px; }
.invoice .inv-client { border: 1px solid #ccc; padding: 8px 10px; width: 50%; margin: 0 0 14px auto; }
.invoice .inv-client small { display: block; color: #555; }
.invoice .inv-tot { width: 45%; margin: 10px 0 0 auto; }
.invoice .inv-foot { margin-top: 30px; text-align: center; color: #444; }
.doc-print .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 1360px) {
  .dash { grid-template-columns: minmax(0, 1fr) 290px; }
  .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .dash, .pos-grid, .split { grid-template-columns: 1fr; }
  .dash-right { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .cart { position: static; max-height: none; scroll-margin-top: 80px; }
  .cart-fab { display: flex; align-items: center; gap: 10px; position: fixed; inset-inline-end: 16px; bottom: 16px; z-index: 45; height: 52px; padding: 0 18px; border: 0; border-radius: 99px; background: var(--primary); color: #fff; font-weight: 700; box-shadow: 0 12px 28px -10px rgba(49, 87, 232, .8); cursor: pointer; }
  .cart-fab .ico { width: 22px; height: 22px; }
  .cart-fab i { font-style: normal; min-width: 22px; height: 22px; border-radius: 99px; background: #fff; color: var(--primary-text); display: grid; place-items: center; font-size: 12px; }
  .split-right { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  :root { --side-w: 270px; }
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .side-backdrop { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 55; }
  .ib.burger { display: inline-grid; }
  .kpis, .lkpis, .bottom-actions { grid-template-columns: 1fr 1fr; }
  .row-2, .row-2.wl { grid-template-columns: 1fr; }
  .pos-tiles { grid-template-columns: 1fr 1fr; }
  .pos-tiles.t3 { grid-template-columns: 1fr 1fr; } .pos-tiles.t3 > :first-child { grid-column: span 2; }
  .catalog { grid-template-columns: 1fr; }
  .cats { display: flex; overflow-x: auto; gap: 6px; padding: 8px; }
  .cats button { width: auto; flex-shrink: 0; margin: 0; white-space: nowrap; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-logo { display: flex; }
}
@media (max-width: 640px) {
  #view { padding: 4px 12px 16px; }
  .topbar { padding: 10px 12px; gap: 10px; }
  .top-right { gap: 8px; }
  .usermenu .uname, .usermenu > i { display: none; }
  .page-head h1 { font-size: 24px; }
  .ph-right { margin-inline-start: 0; width: 100%; }
  .kpis, .lkpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { min-height: 120px; padding: 14px; }
  .kpi-v { font-size: 20px; }
  .kpi-h { gap: 8px; font-size: 13px; }
  .kpi-h .ico { width: 26px; height: 26px; }
  .kpi .spark { display: none; }
  .lkpi { padding: 14px; gap: 10px; flex-direction: column; }
  .lkpi .lk-v { font-size: 19px; }
  .bottom-actions, .split-right, .grid, .grid.g3 { grid-template-columns: 1fr; }
  .pgrid { grid-template-columns: 1fr 1fr; }
  .pos-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pos-tiles.t3 { grid-template-columns: 1fr 1fr; } .pos-tiles.t3 > :first-child { grid-column: span 2; }
  .tile { padding: 10px 12px; gap: 10px; }
  .tile .ico { width: 26px; height: 26px; }
  .donut-wrap { flex-direction: column; }
  .legend { width: 100%; }
  .kv b { font-size: 14px; }
  .kv.kv4, .perf-grid { grid-template-columns: repeat(2, 1fr); }
  .theme-grid { grid-template-columns: repeat(3, 1fr); }
  .filters .with-ico { min-width: 100%; }
  .date-range { width: 100%; }
  .date-range input { width: auto; flex: 1; min-width: 0; }
  .footer { justify-content: center; text-align: center; }
  .modal { padding: 12px 8px; }
  .modal-body { padding: 16px; }
  .doc-print .cols { grid-template-columns: 1fr; }
  .quick-access { grid-template-columns: repeat(4, 1fr); }
}
body[data-zoom="s"] { zoom: .9; } body[data-zoom="l"] { zoom: 1.1; }
.create-btn { height: 42px; padding: 0 14px; background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 8px 18px -10px var(--primary-glow); }
.create-btn .ico { width: 18px; height: 18px; }
.side-toggle { display: flex; align-items: center; gap: 16px; width: 100%; margin-top: 6px; padding: 9px 16px; border: 0; border-radius: 10px; background: none; color: var(--side-text); font-size: 13px; cursor: pointer; opacity: .75; }
.side-toggle:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.side-toggle .ico { width: 22px; height: 22px; flex: none; }
.sync-info { display: flex; align-items: center; gap: 6px; margin-top: 8px; padding: 0; border: 0; background: none; color: inherit; font-size: 11.5px; opacity: .75; cursor: pointer; }
.sync-info:empty { display: none; }
.sync-info .ico { width: 13px; height: 13px; }
body.side-mini .sidebar { width: 84px; padding-inline-start: 10px; padding-inline-end: 10px; }
body.side-mini .logo-wrap > :not(svg):not(img), body.side-mini #nav span, body.side-mini #nav .chev, body.side-mini .side-status, body.side-mini .slogan, body.side-mini .side-toggle span { display: none; }
body.side-mini .logo-wrap { justify-content: center; }
body.side-mini .side-toggle { justify-content: center; padding: 9px 0; }
body.side-mini #nav button { justify-content: center; padding: 11px 0; position: relative; }
body.side-mini #nav .cnt { position: absolute; top: 4px; inset-inline-end: 8px; margin: 0; }
.fav { position: absolute; top: 6px; inset-inline-end: 6px; z-index: 1; width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--card); color: var(--muted-2); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.fav .ico { width: 15px; height: 15px; }
.fav.on { color: #f59e0b; }
.pcard { position: relative; }
.change-box { margin: 10px 0 12px; padding: 12px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); }
.change-box label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.change-box input { width: 100%; height: 42px; margin-top: 4px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); font-size: 16px; font-weight: 700; }
.change-box .chips { margin: 8px 0; }
.change-out { display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
.change-out b { font-size: 20px; }
body.pos-focus .sidebar, body.pos-focus .topbar, body.pos-focus .footer, body.pos-focus .bnav { display: none !important; }
body.pos-focus .main { padding-top: 12px; }
.kanban { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding: 4px 2px 10px; }
.kb-col { background: var(--soft); border: 1px dashed transparent; border-radius: 14px; padding: 10px; min-height: 180px; display: flex; flex-direction: column; gap: 8px; transition: background .15s, border-color .15s; }
.kb-col.over { border-color: var(--primary); background: var(--primary-soft); }
.kb-h { display: flex; align-items: center; gap: 8px; font-size: 13.5px; padding: 2px 4px 4px; }
.kb-h .ico { width: 16px; height: 16px; color: var(--primary-text); }
.kb-h span { margin-inline-start: auto; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--card); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.kb-h small { color: var(--muted); font-size: 11px; }
.kb-list { display: flex; flex-direction: column; gap: 8px; }
.kb-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; box-shadow: var(--shadow); cursor: grab; }
.kb-card.drag { opacity: .45; }
.kb-top { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.kb-top b { display: block; font-size: 13.5px; }
.kb-top .sub { font-size: 12px; }
.kb-meta { display: flex; justify-content: space-between; align-items: center; margin: 8px 0 6px; font-size: 12.5px; }
.kb-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.kb-foot .avatar { width: 24px; height: 24px; font-size: 10px; }
.kb-acts { display: flex; gap: 2px; }
.kb-acts .ib { width: 28px; height: 28px; }
.kb-empty { margin: 0; padding: 16px 8px; text-align: center; color: var(--muted-2); font-size: 12.5px; border: 1px dashed var(--line-2); border-radius: 10px; }
.hero { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 16px; padding: 14px 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero-t { margin-inline-end: auto; }
.hero-t h2 { margin: 0; font-size: 20px; }
.goal { min-width: 210px; flex: 0 1 260px; }
.goal-h { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.goal-h span { display: flex; align-items: center; gap: 6px; } .goal-h .ico { width: 15px; height: 15px; color: var(--primary-text); }
.goal .progress { height: 8px; } .goal .progress i { display: block; height: 100%; border-radius: 99px; background: var(--primary); }
.goal .sub { font-size: 12px; }
.agenda .ag-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.agenda .ag-item:last-child { border-bottom: 0; }
.ag-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.ag-ico .ico { width: 16px; height: 16px; }
.ag-item.late .ag-ico { background: var(--red-soft); color: #dc2626; } .ag-item.today .ag-ico { background: var(--orange-soft); color: #b45309; } .ag-item.ready .ag-ico { background: var(--green-soft); color: #15803d; }
.ag-item b { display: block; font-size: 13px; font-weight: 600; } .ag-item .sub { font-size: 12px; }
.ag-item .grow { min-width: 0; } .ag-item .grow b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notes-pad { width: 100%; height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.drop-tip { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }
.drop-tip .ico { width: 15px; height: 15px; flex: none; }
.kbd { display: inline-block; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--soft); font: 600 12px ui-monospace, monospace; white-space: nowrap; }
.pref-b { margin-bottom: 14px; } .pref-b > b { font-size: 13px; }
.pref-b .seg button { flex: 1; justify-content: center; }
.offline-bar { display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 500; padding: 8px 14px; background: #b91c1c; color: #fff; font-size: 13px; font-weight: 600; text-align: center; align-items: center; justify-content: center; gap: 8px; }
.offline-bar .ico { width: 16px; height: 16px; }
body.offline .offline-bar { display: flex; }
.bnav { display: none; }
@media (max-width: 760px) {
  .exp-btn span, .hide-sm { display: none; }
  .top-right .create-btn, .top-right #darkBtn { display: none; }
  .create-btn, .exp-btn { padding: 0 12px; }
  body:not(.locked) .bnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; height: 64px; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgba(15, 23, 42, .35); justify-content: space-around; align-items: center; }
  .bnav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; background: none; color: var(--muted); font-size: 10.5px; font-weight: 600; cursor: pointer; padding: 4px 0; }
  .bnav button .ico { width: 22px; height: 22px; }
  .bnav button.on { color: var(--primary-text); }
  .bnav .bn-plus { flex: none; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; background: var(--primary); color: #fff; box-shadow: 0 10px 22px -8px var(--primary-glow); display: grid; place-items: center; }
  .bnav .bn-plus .ico { width: 26px; height: 26px; }
  body:not(.locked) .main { padding-bottom: 80px; }
  body:not(.locked) .cart-fab { bottom: 80px; }
  body:not(.locked) .toast { bottom: 84px; }
  .side-toggle { display: none; }
  body.side-mini .sidebar { width: var(--side-w); }
  .kanban { grid-template-columns: repeat(5, 82vw); scroll-snap-type: x mandatory; } .kb-col { scroll-snap-align: start; }
  .hero { padding: 12px 14px; gap: 12px; } .goal { flex: 1 1 100%; }
}
body.dark { --bg: #0b1120; --card: #121a2b; --soft: #18223a; --line: #223049; --line-2: #2c3b58; --text: #e6ebf5; --text-2: #c3cbda; --muted: #8e9ab0; --muted-2: #6b778d;
  --green-soft: #0f2e20; --orange-soft: #33250c; --red-soft: #3a1515; --purple-soft: #251b42; --pink-soft: #3a1522;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 18px -8px rgba(0, 0, 0, .55); --shadow-lg: 0 24px 60px -18px rgba(0, 0, 0, .8); color-scheme: dark; }
body.dark { background: var(--bg); color: var(--text); }
body.dark .pill.green-l { background: #123524; color: #6ee7a0; } body.dark .pill.blue-l { background: #13284d; color: #93b8ff; }
body.dark .pill.orange-l { background: #3a2a0c; color: #fbbf5a; } body.dark .pill.red-l { background: #3d1717; color: #fca5a5; }
body.dark .pill.purple-l { background: #2a1d4d; color: #c4b5fd; } body.dark .pill.gray-l { background: #232e44; color: #c3cbda; }
body.dark .note { color: var(--text); } body.dark .note.warn { background: #3a1515; color: #fca5a5; }
body.dark .ib:hover, body.dark .ib.round { background: var(--soft); } body.dark .ib.round:hover { background: var(--line-2); }
body.dark .qty-pill:not(.low):not(.out) { background: #232e44; color: var(--text); }
body.dark svg line[stroke="#eef1f6"] { stroke: #223049; } body.dark svg line[stroke="#cbd5e1"] { stroke: #2c3b58; }
body.dark .tbl tbody tr:hover td { background: rgba(255, 255, 255, .025); }
body.dark .modal { background: rgba(2, 6, 18, .7); }
body.dark .thumb { background: #e9edf5; }
body.dark .auth-main { background: var(--bg); }
body.dark .fav.on { color: #fbbf24; }
body.dark .topbar { background: rgba(11, 17, 32, .9); }
body.dark .low-card { border-color: #5a1f2b; } body.dark .low-list { background: #24121a; }
body.dark .ok-card { background: #0f2e20; border-color: #14532d; }
body.dark .ba.l { background: var(--soft); }
body.dark .lkpi.t-blue { background: linear-gradient(135deg, #142546, var(--card) 70%); border-color: #1f3561; }
body.dark .lkpi.t-green { background: linear-gradient(135deg, #0f2e20, var(--card) 70%); border-color: #154a31; }
body.dark .lkpi.t-purple { background: linear-gradient(135deg, #241a42, var(--card) 70%); border-color: #362a63; }
body.dark .lkpi.t-orange { background: linear-gradient(135deg, #33250c, var(--card) 70%); border-color: #4d3812; }
body.dark .lkpi.t-red { background: linear-gradient(135deg, #3a1515, var(--card) 70%); border-color: #5a1f2b; }
body.dark .donut-wrap text[fill="#0f172a"] { fill: var(--text); } body.dark .donut-wrap text[fill="#475569"] { fill: var(--muted); }
.btn, .ib, .chip, .tile, .paymodes button, #nav button, .qa-tile, .ba, .kpi, .cats button, .add-cart, .theme-sw, .seg button, .tabs button, .bnav button, .pcard, .kb-card, .act, .drop-item, .pop button, .lkpi, .link, .bell, .usermenu {
  transition: transform .14s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease, filter .18s ease, opacity .18s; }
.btn:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 6px 16px -8px rgba(15, 23, 42, .35); }
.btn.primary:not(:disabled):hover, .btn.indigo:not(:disabled):hover, .create-btn:not(:disabled):hover { filter: brightness(1.08); box-shadow: 0 10px 22px -8px var(--primary-glow); }
.btn.green:not(:disabled):hover { filter: brightness(1.06); }
.btn:not(:disabled):active, .ib:not(:disabled):active, .chip:active, .tile:active, .paymodes button:active, .qa-tile:active, .ba:active, .kpi:active, .add-cart:not(:disabled):active, .bnav button:active, .seg button:active, .tabs button:active, .theme-sw:active { transform: scale(.96); }
.ib:not(:disabled):hover { color: var(--primary-text); }
.chip:not(.on):hover { border-color: var(--primary); color: var(--primary-text); }
.tile:hover, .qa-tile:hover span, .theme-sw:hover { border-color: var(--primary); }
.tile:hover { box-shadow: 0 8px 20px -12px var(--primary-glow); transform: translateY(-1px); }
.paymodes button:not(.on):hover { border-color: var(--primary); color: var(--primary-text); }
.ba:hover, .kpi:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(15, 23, 42, .45); }
.ba:hover .arrow { transform: translateX(3px); } .ba .arrow { transition: transform .18s; }
.pcard:hover, .kb-card:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -14px rgba(15, 23, 42, .35); border-color: var(--line-2); }
.add-cart:not(:disabled):hover { filter: brightness(1.12); transform: scale(1.06); }
.act:hover { background: var(--soft); }
.lkpi:hover { transform: translateY(-1px); }
#nav button:not(.active):hover { transform: translateX(3px); }
.link:hover { opacity: .85; }
.btn:disabled, .ib:disabled, .add-cart:disabled { opacity: .55; cursor: not-allowed; }
:focus-visible { outline: none; }
.btn:focus-visible, .ib:focus-visible, .chip:focus-visible, .tile:focus-visible, .paymodes button:focus-visible, #nav button:focus-visible, .qa-tile:focus-visible, .ba:focus-visible, .kpi:focus-visible, .link:focus-visible, .seg button:focus-visible, .tabs button:focus-visible, .bnav button:focus-visible, .drop-item:focus-visible, .add-cart:focus-visible { box-shadow: 0 0 0 3px var(--primary-glow); }
.has-ripple { overflow: hidden; }
.ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .18; transform: scale(0); animation: ripple .55s ease-out forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
body.api-busy .is-busy { position: relative; color: transparent !important; }
body.api-busy .is-busy > * { visibility: hidden; }
body.api-busy .is-busy::after { content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 2.5px solid currentColor; border-color: var(--muted-2) var(--muted-2) var(--muted-2) transparent; animation: spin .7s linear infinite; }
body.api-busy .btn.primary.is-busy::after, body.api-busy .btn.indigo.is-busy::after, body.api-busy .btn.green.is-busy::after, body.api-busy .btn.danger.is-busy::after { border-color: #fff #fff #fff transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn, .ib, .chip, .tile, .pcard, .kb-card, .ba, .kpi { transition: none !important; transform: none !important; } }
.lic-banner { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 12px 14px; border-radius: 12px; background: var(--orange-soft); border: 1px solid #fbd38d; color: var(--text); }
.lic-banner.red { background: var(--red-soft); border-color: #fca5a5; }
.lic-banner .lb-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #f59e0b; color: #fff; flex: none; }
.lic-banner.red .lb-ico { background: #dc2626; }
.lic-banner .grow { min-width: 0; } .lic-banner b { display: block; font-size: 14px; } .lic-banner .sub { font-size: 12.5px; }
.vendor-link { display: block; margin: 14px auto 0; border: 0; background: none; color: var(--muted-2); font-size: 12px; cursor: pointer; text-decoration: underline dotted; }
.vendor-link:hover { color: var(--primary-text); }
#licLock { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 30% 20%, var(--primary-glow), transparent 55%), linear-gradient(160deg, var(--side), var(--side-2)); overflow-y: auto; }
body:not(.lic-locked) #licLock { display: none; }
.lock-card { width: 100%; max-width: 460px; padding: 30px 26px; border-radius: 20px; background: var(--card); color: var(--text); box-shadow: var(--shadow-lg); text-align: center; }
.lock-logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 18px; text-align: start; }
.lock-logo svg.logo { width: 34px; height: 48px; } .lock-logo .logo-title { font-size: 20px; } .lock-logo .logo-img { width: 46px; height: 46px; object-fit: contain; border-radius: 10px; }
.lock-ico { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--red-soft); color: #dc2626; }
.lock-ico .ico { width: 30px; height: 30px; }
.lock-ico.sm { width: 40px; height: 40px; margin: 0; background: var(--primary-soft); color: var(--primary-text); } .lock-ico.sm .ico { width: 20px; height: 20px; }
.lock-card h1 { margin: 0 0 8px; font-size: 22px; }
.lock-card p { margin: 0 0 10px; }
.lock-acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
body.dark .lic-banner { border-color: #5a4314; } body.dark .lic-banner.red { border-color: #5a1f2b; }
.auth:not(.signup-mode) .signup-pitch { display: none !important; }
.auth.signup-mode .signup-pitch { display: block; } .auth.signup-mode .login-pitch, .auth.signup-mode .auth-feats { display: none; }
.signup-perks { margin-top: 18px; display: grid; gap: 12px; font-size: 15px; }
.signup-perks div { display: flex; align-items: center; gap: 10px; }
.signup-perks .ico { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: rgba(34, 197, 94, .2); color: #4ade80; flex: none; }
.auth.signup-mode .auth-card { max-width: 560px; }
.signup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.signup-grid .full { grid-column: 1 / -1; }
.signup-grid .check { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--muted); font-weight: 400; }
.signup-grid .check input { width: auto; height: auto; margin-top: 2px; }
.sec-sep { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0; }
.signup-cta { text-align: center; font-size: 13.5px; color: var(--muted); }
.signup-cta .link { font-weight: 600; }
.signup-steps { display: flex; gap: 8px; }
.signup-steps span { flex: 1; padding: 6px 10px; border-radius: 99px; background: var(--soft); color: var(--muted); font-size: 12px; font-weight: 600; text-align: center; }
.signup-steps span.on { background: var(--primary-soft); color: var(--primary-text); }
.done-box { padding: 14px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); }
.done-box .lock-acts { justify-content: flex-start; }
.vendor-kpis { grid-template-columns: repeat(4, 1fr); margin-bottom: 12px; }
.vendor-kpis .lkpi { min-height: 0; padding: 12px 14px; } .vendor-kpis .lk-v { font-size: 20px; margin: 2px 0 0; }
@media (max-width: 900px) {
  .lines-wrap { overflow: visible !important; }
  .lines-tbl thead { display: none; }
  .lines-tbl tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
  .lines-tbl td { padding: 0; min-width: 0; }
  .lines-tbl td[data-l]::before { content: attr(data-l); display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); margin-bottom: 3px; }
  .lines-tbl td[data-l="Produit existant"], .lines-tbl td[data-l="Désignation (nouveau)"] { grid-column: 1 / -1; }
  .lines-tbl td:last-child { display: flex; justify-content: flex-end; align-items: end; }
}
@media (max-width: 760px) { .lic-banner { flex-wrap: wrap; } .lic-banner .grow { flex: 1 1 calc(100% - 100px); } .lic-banner .btn { margin-inline-start: 48px; } .signup-grid { grid-template-columns: 1fr; } .vendor-kpis { grid-template-columns: repeat(2, 1fr); } }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; align-items: stretch; margin: 16px 0; }
.plan { position: relative; display: flex; flex-direction: column; padding: 22px 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
.plan:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -18px rgba(15, 23, 42, .4); }
.plan.hl { border: 2px solid var(--primary); box-shadow: 0 18px 40px -18px var(--primary-glow); }
.plan.cur { border-color: var(--green); }
.plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 4px 12px; border-radius: 99px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.plan h3 { margin: 0; font-size: 20px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 2px; }
.plan-price b { font-size: 36px; letter-spacing: -.02em; line-height: 1; } .plan-price span { color: var(--muted); font-size: 13px; }
.plan-sub { font-size: 12.5px; color: var(--muted); min-height: 18px; }
.plan ul { list-style: none; margin: 16px 0 18px; padding: 0; display: grid; gap: 9px; flex: 1; align-content: start; }
.plan li { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; }
.plan li .ico { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--green-soft); color: var(--green); flex: none; margin-top: 1px; }
#pricingPage { position: fixed; inset: 0; z-index: 95; overflow-y: auto; background: var(--bg); color: var(--text); display: none; }
body.show-pricing #pricingPage { display: block; }
.pp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1080px; margin: 0 auto; padding: 18px 20px; }
.pp-logo { display: flex; align-items: center; gap: 10px; } .pp-logo svg.logo { width: 32px; height: 46px; } .pp-logo .logo-title { font-size: 20px; } .pp-logo .logo-img { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; }
.pp-nav { display: flex; gap: 8px; }
.pp-hero { max-width: 760px; margin: 0 auto; padding: 24px 20px 6px; text-align: center; }
.pp-hero h1 { margin: 0 0 10px; font-size: 38px; letter-spacing: -.02em; line-height: 1.15; }
.pp-hero p { margin: 0 auto 20px; color: var(--muted); font-size: 16px; max-width: 560px; }
.pp-period { display: inline-flex; margin: 0; } .pp-period .pill { margin-inline-start: 4px; }
#pricingPage > .plans { max-width: 1080px; margin: 34px auto 10px; padding: 0 20px; }
.pp-faq { max-width: 760px; margin: 30px auto 0; padding: 0 20px; }
.pp-faq h2, .pp-cta h2 { font-size: 24px; text-align: center; margin: 0 0 14px; }
.pp-faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.pp-faq summary { cursor: pointer; font-weight: 600; } .pp-faq details p { margin: 10px 0 0; color: var(--text-2); }
.pp-cta { max-width: 760px; margin: 34px auto 0; padding: 26px 20px; text-align: center; }
.pp-cta p { color: var(--muted); margin: 0; }
.pp-foot { text-align: center; color: var(--muted-2); font-size: 12px; padding: 26px 0 30px; }
.bill-head .bh-main { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bill-head h2 { margin: 2px 0; font-size: 22px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plan-ed { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; background: var(--soft); }
.plan-ed > .grid { width: 100%; }
@media (max-width: 760px) { .pp-hero h1 { font-size: 28px; } .pp-top { flex-wrap: wrap; } .pp-nav { width: 100%; } .pp-nav .btn { flex: 1; padding: 0 10px; } .bill-head .seg { width: 100%; } }
#view { container: view / inline-size; }
.dash-left { container: dleft / inline-size; }
.card, .kpi, .lkpi, .hero, .tile, .pcard, .ba, .plan { min-width: 0; }
.lkpi > div, .kpi-h span, .ba > span { min-width: 0; }
.kpi-v { font-size: clamp(19px, 3.1cqi, 28px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lkpi .lk-v { font-size: clamp(16px, 2.1cqi, 24px); overflow-wrap: anywhere; }
.lkpi .lk-l, .lkpi .lk-s { overflow-wrap: anywhere; }
.kpi .spark { max-width: 100%; }
.donut-wrap { flex-wrap: wrap; justify-content: center; }
.donut-wrap .legend { min-width: 170px; }
@container view (max-width: 1240px) { .dash { grid-template-columns: minmax(0, 1fr) 300px; } .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container view (max-width: 1060px) {
  .dash, .split { grid-template-columns: minmax(0, 1fr); }
  .dash-right { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
  .split-right { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
  .lkpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container view (max-width: 900px) {
  .pos-grid { grid-template-columns: minmax(0, 1fr); }
  .cart { position: static; max-height: none; scroll-margin-top: 80px; }
  .bottom-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pgrid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
@container view (max-width: 860px) { .row-2, .row-2.wl { grid-template-columns: minmax(0, 1fr); } .kv { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); } }
@container view (max-width: 700px) { .catalog { grid-template-columns: minmax(0, 1fr); } .cats { display: flex; overflow-x: auto; gap: 6px; padding: 8px; } .cats button { width: auto; flex-shrink: 0; margin: 0; white-space: nowrap; } }
@container view (max-width: 520px) { .lkpis { gap: 10px; } .lkpi { padding: 14px; gap: 10px; flex-direction: column; } .bottom-actions { grid-template-columns: minmax(0, 1fr); } }
@container view (max-width: 400px) { .tbl td, .tbl th { padding: 8px 6px; font-size: 12px; } .card-b { padding-inline-start: 12px; padding-inline-end: 12px; } }
@container dleft (max-width: 900px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container dleft (max-width: 760px) { .row-2, .row-2.wl { grid-template-columns: minmax(0, 1fr); } }
@container dleft (max-width: 420px) { .kpis { gap: 10px; } .kpi { min-height: 120px; padding: 14px; } .kpi .spark { display: none; } }
body:not(.on-pos) .cart-fab { display: none !important; }
.sel[data-st="En attente"] { color: #b45309; } .sel[data-st="En cours"] { color: #1d4ed8; } .sel[data-st="Terminée"] { color: #15803d; } .sel[data-st="Livrée"] { color: #475569; } .sel[data-st="Irréparable"] { color: #dc2626; }
body.dark .sel[data-st="En attente"] { color: #fbbf5a; } body.dark .sel[data-st="En cours"] { color: #93b8ff; } body.dark .sel[data-st="Terminée"] { color: #6ee7a0; } body.dark .sel[data-st="Livrée"] { color: #c3cbda; } body.dark .sel[data-st="Irréparable"] { color: #fca5a5; }
.ok-title { color: #15803d; } body.dark .ok-title { color: #6ee7a0; }
body.dark .qty-pill.low { color: #fbbf5a; } body.dark .qty-pill.out { color: #fca5a5; }
body.dark .pos { color: #4ade80; } body.dark .neg { color: #f87171; }
body.dark .note { background: var(--primary-soft); }
body.dark .seg { background: var(--soft); } body.dark .seg button.on { background: var(--card); }
body.dark .tabs button.on { color: #fff; }
body.dark .lk-s.up { color: #4ade80; } body.dark .lk-s.down { color: #f87171; }
body.dark .kpi-d.down { color: #fff; }
body.dark ::placeholder { color: #6b778d; }
body.dark select option { background: var(--card); color: var(--text); }
body.dark input[type=date], body.dark input[type=month], body.dark input[type=time] { color-scheme: dark; }
body.dark { scrollbar-color: #2c3b58 transparent; }
body.dark .pp-faq details, body.dark .plan { border-color: var(--line); }
body.dark .auth-card .with-ico .ico, body.dark .with-ico .ico { color: var(--muted); }
.vendor-link, .pp-foot, .kb-empty, .drop-head { color: var(--muted); }
html[lang=ar] body, html[lang=ar] button, html[lang=ar] input, html[lang=ar] select, html[lang=ar] textarea, html[lang=ar] .chart-box .axis { font-family: 'Cairo', 'Inter', system-ui, sans-serif; }
html[lang=ar] body { line-height: 1.6; }
html[lang=ar] .slogan { font-family: 'Cairo', sans-serif; font-weight: 700; font-size: 19px; }
html[lang=ar] h1, html[lang=ar] h2, html[lang=ar] h3 { letter-spacing: 0; }
html[lang=ar] .kpi-l, html[lang=ar] .tbl th, html[lang=ar] .side-title, html[lang=ar] .eyebrow { letter-spacing: 0; text-transform: none; }
[dir=rtl] select.inp, [dir=rtl] .grid select, [dir=rtl] .sel { background-position: left 11px center; }
[dir=rtl] .switch { direction: ltr; }
[dir=rtl] .btn-split .btn:last-child { border-radius: 10px 0 0 10px; }
[dir=rtl] .btn-split .btn:first-child { border-radius: 0 10px 10px 0; }
[dir=rtl] .auth-side::after { right: auto; left: -180px; }
[dir=rtl] .ba .arrow, [dir=rtl] #nav button .chev, [dir=rtl] .low-head > .ico.chev, [dir=rtl] [data-a=page] svg, [dir=rtl] .pager svg { transform: scaleX(-1); }
[dir=rtl] input[type=tel], [dir=rtl] input[type=email], [dir=rtl] input[type=url], [dir=rtl] .mono, [dir=rtl] .ref { direction: ltr; text-align: end; }
[dir=rtl] .m { unicode-bidi: isolate; direction: ltr; display: inline-block; }
[dir=rtl] .hero-t { margin-inline-end: auto; }
@media (max-width: 900px) {
  [dir=rtl] .sidebar { left: auto; right: 0; transform: translateX(100%); }
  [dir=rtl] body.nav-open .sidebar { transform: none; }
}
[dir=rtl] .logo-title, [dir=rtl] .pcard .pname, [dir=rtl] .drop-item b, [dir=rtl] .ell, [dir=rtl] .act b, [dir=rtl] .tile b, [dir=rtl] .sup-row b, [dir=rtl] .lp-row b, [dir=rtl] .ag-item .grow b, [dir=rtl] .cline b { unicode-bidi: plaintext; }
[dir=rtl] .logo-title { direction: ltr; text-align: right; }
.lang-sw { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--soft); border: 1px solid var(--line); }
.lang-sw button { min-width: 40px; height: 30px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--text-2); font-weight: 700; font-size: 13px; cursor: pointer; font-family: 'Inter', 'Cairo', sans-serif; transition: background .15s, color .15s; }
.lang-sw button[data-lang=ar] { font-family: 'Cairo', sans-serif; font-size: 15px; }
.lang-sw button:hover { color: var(--text); }
.lang-sw button.on { background: var(--card); color: var(--primary-text); box-shadow: var(--shadow); }
.auth-lang { display: flex; justify-content: flex-end; margin: -6px 0 14px; }
.pop-lang { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 8px 6px 12px; font-size: 13.5px; color: var(--text-2); }
.pop-lang > span { display: inline-flex; align-items: center; gap: 10px; }
.pop-lang .ico, .pop-lang svg { width: 18px; height: 18px; }
.pop-lang .lang-sw button { min-width: 34px; height: 26px; padding: 0 8px; font-size: 12px; }
.thumb img, .img-prev img, .modal-body img:not(.qr-box img), [data-zoom] { cursor: zoom-in; }
.logo-wrap img, .auth-logo img, .avatar img, [data-nozoom] { cursor: default; }
.lightbox { position: fixed; inset: 0; z-index: 600; background: rgba(4, 8, 18, .93); display: none; opacity: 0; transition: opacity .18s; touch-action: none; user-select: none; -webkit-user-select: none; }
.lightbox.on { display: block; opacity: 1; animation: fade .18s; }
body.lb-open { overflow: hidden; }
.lb-stage { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; cursor: zoom-out; }
.lb-img { max-width: min(92vw, 1400px); max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); object-fit: contain; border-radius: 6px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); cursor: zoom-in; transform-origin: center; will-change: transform; background: #fff; }
.lightbox.zoomed .lb-img, .lightbox.zoomed .lb-stage { cursor: grab; }
.lightbox.zoomed .lb-stage:active .lb-img { cursor: grabbing; }
.lb-img.loading { opacity: .3; }
.lb-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); background: linear-gradient(rgba(0,0,0,.55), transparent); color: #fff; pointer-events: none; }
.lb-top > * { pointer-events: auto; }
.lb-count { font-weight: 700; font-size: 14px; min-width: 40px; opacity: .9; }
.lb-tools { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.lb-b { width: 42px; height: 42px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; cursor: pointer; text-decoration: none; transition: background .15s, transform .1s; }
.lb-b:hover { background: rgba(255, 255, 255, .24); }
.lb-b:active { transform: scale(.94); }
.lb-b[hidden] { display: none; }
.lb-b svg { width: 20px; height: 20px; }
.lb-pct { min-width: 54px; text-align: center; font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; direction: ltr; }
.lb-nav { position: absolute; top: 50%; width: 50px; height: 50px; margin-top: -25px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .15s; }
.lb-nav:hover { background: rgba(255, 255, 255, .28); }
.lb-nav svg { width: 26px; height: 26px; }
.lb-nav.prev { left: 16px; } .lb-nav.next { right: 16px; }
[dir=rtl] .lb-nav.prev { left: auto; right: 16px; transform: scaleX(-1); } [dir=rtl] .lb-nav.next { right: auto; left: 16px; transform: scaleX(-1); }
.lb-nav[hidden] { display: none; }
.lb-hint { position: absolute; bottom: 0; left: 0; right: 0; padding: 14px 16px; padding-bottom: max(14px, env(safe-area-inset-bottom)); text-align: center; color: rgba(255, 255, 255, .7); font-size: 12.5px; background: linear-gradient(transparent, rgba(0,0,0,.5)); pointer-events: none; }
@media (max-width: 640px) {
  .lb-b { width: 38px; height: 38px; } .lb-pct { min-width: 44px; font-size: 12px; }
  .lb-nav { width: 42px; height: 42px; margin-top: -21px; } .lb-nav.prev { left: 8px; } .lb-nav.next { right: 8px; }
  [dir=rtl] .lb-nav.prev { right: 8px; } [dir=rtl] .lb-nav.next { left: 8px; }
  .lb-img { max-width: 100vw; border-radius: 0; }
  .lb-hint { font-size: 11.5px; }
}
#pricingPage { scroll-behavior: smooth; }
.lp-wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.lp-nav { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.lp-nav .lp-wrap { display: flex; align-items: center; gap: 18px; padding-top: 12px; padding-bottom: 12px; }
.lp-links { display: flex; gap: 22px; margin-inline-start: auto; }
.lp-links a { color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 14px; }
.lp-links a:hover { color: var(--primary-text); }
.lp-nav .pp-nav { align-items: center; }
.lp-nav .lang-sw button { min-width: 34px; height: 28px; padding: 0 8px; font-size: 12px; }
.lp-hero { position: relative; overflow: hidden; padding: 64px 0 56px; background: radial-gradient(circle at 85% 10%, var(--primary-glow), transparent 45%), radial-gradient(circle at 0% 100%, var(--primary-soft), transparent 50%); }
.lp-hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.lp-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: var(--primary-soft); color: var(--primary-text); font-size: 12.5px; font-weight: 700; }
.lp-eyebrow .ico, .lp-eyebrow svg { width: 15px; height: 15px; }
.lp-hero h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.08; letter-spacing: -.03em; margin: 18px 0 16px; }
html[lang=ar] .lp-hero h1 { letter-spacing: 0; line-height: 1.3; }
.lp-grad { background: linear-gradient(90deg, var(--primary), #7c3aed); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-lead { font-size: 17.5px; color: var(--text-2); margin: 0 0 26px; max-width: 560px; line-height: 1.6; }
.lp-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn.lg { height: 52px; padding: 0 24px; font-size: 15.5px; border-radius: 14px; }
.lp-ctas .btn.primary { box-shadow: 0 14px 30px -12px var(--primary); }
.lp-trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; color: var(--text-2); font-size: 13.5px; font-weight: 500; }
.lp-trust span { display: inline-flex; align-items: center; gap: 6px; }
.lp-trust .ico, .lp-trust svg { width: 17px; height: 17px; padding: 3px; border-radius: 50%; background: var(--green-soft); color: var(--green); }
.lp-mock { position: relative; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 40px 80px -30px rgba(15, 23, 42, .45); transform: perspective(1400px) rotateY(-6deg) rotateX(3deg); color: var(--primary); }
[dir=rtl] .lp-mock { transform: perspective(1400px) rotateY(6deg) rotateX(3deg); }
.lpm-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.lpm-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.lpm-bar i:first-child { background: #f87171; } .lpm-bar i:nth-child(2) { background: #fbbf24; } .lpm-bar i:nth-child(3) { background: #34d399; }
.lpm-body { padding: 16px; display: grid; gap: 14px; color: var(--text); }
.lpm-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lpm-kpis > div { border-radius: 14px; padding: 14px; color: #fff; display: grid; gap: 2px; }
.lpm-kpis .k1 { background: linear-gradient(135deg, var(--primary), var(--primary-2)); } .lpm-kpis .k2 { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.lpm-kpis small { opacity: .85; font-size: 12px; } .lpm-kpis b { font-size: 22px; } .lpm-kpis em { font-style: normal; font-size: 12px; opacity: .9; }
.lpm-chart { height: 96px; color: var(--primary); border-radius: 12px; background: var(--soft); padding: 8px 0 0; overflow: hidden; }
.lpm-chart svg { width: 100%; height: 100%; display: block; }
.lpm-list { display: grid; gap: 8px; font-size: 13px; }
.lpm-list > div { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--soft); }
.lpm-list .d { width: 8px; height: 8px; border-radius: 50%; } .lpm-list .d.g { background: var(--green); } .lpm-list .d.b { background: var(--primary); } .lpm-list .d.o { background: #f59e0b; }
.lpm-float { position: absolute; inset-inline-start: -26px; bottom: -22px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); color: var(--text); animation: lpFloat 4s ease-in-out infinite; }
.lpm-float > .ico, .lpm-float > svg { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: #22c55e; color: #fff; }
.lpm-float b { display: block; font-size: 13px; } .lpm-float small { color: var(--muted); font-size: 12px; }
@keyframes lpFloat { 50% { transform: translateY(-8px); } }
.lp-stats { border-block: 1px solid var(--line); background: var(--card); }
.lp-stats .lp-wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding-top: 22px; padding-bottom: 22px; text-align: center; }
.lp-stats b { display: block; font-size: 28px; color: var(--primary-text); letter-spacing: -.02em; } .lp-stats span { color: var(--muted); font-size: 13px; }
.lp-sec { padding: 72px 0; }
.lp-head { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.lp-head h2 { font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -.02em; line-height: 1.15; margin: 14px 0 10px; }
html[lang=ar] .lp-head h2 { letter-spacing: 0; line-height: 1.35; }
.lp-head p { color: var(--text-2); font-size: 16px; margin: 0; }
.lp-feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lp-feat { padding: 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s, border-color .18s; }
.lp-feat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); }
.lf-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--primary-soft); color: var(--primary-text); margin-bottom: 14px; }
.lf-ico .ico, .lf-ico svg { width: 22px; height: 22px; }
.lp-feat h3 { margin: 0 0 6px; font-size: 16px; } .lp-feat p { margin: 0; color: var(--text-2); font-size: 13.5px; line-height: 1.55; }
.lp-steps-sec { background: var(--card); border-block: 1px solid var(--line); }
.lp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.lp-step { position: relative; padding: 24px; border-radius: 18px; background: var(--soft); }
.ls-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--primary); color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 14px; }
.lp-step h3 { margin: 0 0 6px; font-size: 17px; } .lp-step p { margin: 0; color: var(--text-2); font-size: 14px; }
.lp-pricing { background: radial-gradient(circle at 50% 0%, var(--primary-soft), transparent 60%); }
.plans.plans-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; max-width: 1020px; margin: 0 auto; padding: 0; }
#pricingPage .plans.plans-3 { margin-top: 10px; }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan.hl { border: 2px solid var(--primary); box-shadow: 0 30px 60px -28px var(--primary); transform: translateY(-8px); }
.plan.hl .plan-price b { color: var(--primary-text); }
.plan-badge .ico, .plan-badge svg { width: 13px; height: 13px; vertical-align: -2px; }
.plan-all { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 9px 12px; border-radius: 10px; background: var(--green-soft); color: var(--green-text, #15803d); font-weight: 600; font-size: 13px; }
body.dark .plan-all { color: #4ade80; }
.plan-all .ico, .plan-all svg { width: 16px; height: 16px; }
.plan li.more { color: var(--muted); } .plan li.more .ico { background: var(--soft); color: var(--muted); }
.lp-included { max-width: 1020px; margin: 30px auto 0; padding: 24px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.lp-included h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 17px; }
.lp-included h3 .ico { color: var(--primary-text); }
.lp-included ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 18px; }
.lp-included li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.lp-included li .ico { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--green-soft); color: var(--green); flex: none; margin-top: 1px; }
.lp-guar { max-width: 1020px; margin: 18px auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lp-guar > div { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 14px; background: var(--soft); }
.lp-guar > div > .ico, .lp-guar > div > svg { width: 38px; height: 38px; padding: 9px; border-radius: 11px; background: var(--card); color: var(--primary-text); flex: none; box-shadow: var(--shadow); }
.lp-guar b { display: block; font-size: 14px; } .lp-guar small { color: var(--text-2); font-size: 13px; line-height: 1.5; }
.lp-faq-wrap .pp-faq { margin-top: 0; padding: 0; }
.lp-final { padding: 64px 0; text-align: center; color: #fff; background: radial-gradient(circle at 20% 0%, rgba(255,255,255,.18), transparent 50%), linear-gradient(135deg, var(--side), var(--primary-2)); }
.lp-final h2 { font-size: clamp(26px, 3.4vw, 40px); margin: 0 0 10px; letter-spacing: -.02em; }
.lp-final p { opacity: .85; font-size: 16.5px; margin: 0 0 24px; }
.lp-final .lp-ctas { justify-content: center; }
.btn.white { background: #fff; color: var(--primary-2); border-color: #fff; }
.lp-final .btn.primary.white { box-shadow: 0 14px 30px -12px rgba(0,0,0,.4); }
#pricingPage .pp-foot { margin: 0; }
@media (max-width: 1120px) { .lp-links { display: none; } .lp-nav .pp-logo .logo-sub { display: none; } }
.lp-nav .logo-title { white-space: nowrap; }
@media (max-width: 1000px) {
  .lp-hero-in { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .lp-mock { max-width: 560px; transform: none !important; margin: 0 auto; width: 100%; }
  .lpm-float { inset-inline-start: 10px; bottom: -18px; }
  .lp-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-included ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans.plans-3 { grid-template-columns: minmax(0, 1fr); max-width: 460px; }
  .plan.hl { transform: none; order: -1; }
  .lp-guar { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .lp-links { display: none; }
  .lp-nav .lp-wrap { gap: 10px; }
  .lp-nav .pp-nav { margin-inline-start: auto; width: auto; }
  .lp-nav .pp-nav .btn { flex: none; }
  .hide-xs { display: none !important; }
  .lp-hero { padding: 40px 0 44px; }
  .lp-lead { font-size: 16px; }
  .lp-ctas .btn { flex: 1 1 100%; }
  .lp-stats .lp-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-sec { padding: 52px 0; }
  .lp-steps { grid-template-columns: minmax(0, 1fr); }
  .lp-included ul { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) { .lp-feats { grid-template-columns: minmax(0, 1fr); } .lp-nav .pp-logo .logo-sub { display: none; } }
.bill-title { text-align: center; margin: 24px 0 18px; font-size: 18px; }
.plan-ed { width: 100%; } .pe-h { display: flex; align-items: center; gap: 8px; } .pe-h b { display: inline-flex; align-items: center; gap: 8px; }
.avatar.has-photo { background: var(--soft); overflow: hidden; }
.avatar.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.xs { width: 22px; height: 22px; font-size: 9.5px; }
.avatar.md { width: 42px; height: 42px; font-size: 15px; }
.avatar.xl { width: 72px; height: 72px; font-size: 24px; }
#meAvatar { overflow: hidden; }
#meAvatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pop-head.pop-me { display: flex; align-items: center; gap: 10px; }
.me-card { align-items: flex-start; }
.me-photo-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.roles-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
@container view (max-width: 1100px) { .roles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container view (max-width: 720px) { .roles-grid { grid-template-columns: minmax(0, 1fr); } }
.role-people { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.role-people .chip { display: inline-flex; align-items: center; gap: 6px; padding-inline-start: 4px; }
.role-save { display: flex; justify-content: flex-end; margin-top: 14px; }
.email-gate { text-align: center; }
.email-gate .eg-ico { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 16px; background: var(--primary-soft); color: var(--primary-text); }
.email-gate .eg-ico .ico, .email-gate .eg-ico svg { width: 26px; height: 26px; }
.email-gate p { color: var(--text-2); margin: 0 0 14px; line-height: 1.55; }
.email-gate label { text-align: start; display: block; }
.thumb svg { cursor: zoom-in; }
#gdrop .thumb svg, .pop .thumb svg { cursor: pointer; }
.lb-img.is-svg { width: min(78vw, 64vh); height: auto; padding: 24px; border-radius: 22px; }
.plans.plans-3.plans-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1180px; gap: 16px; }
.plan.life { background: linear-gradient(160deg, #1e1b4b, #312e81 60%, #4c1d95); color: #fff; border-color: transparent; }
.plan.life .sub, .plan.life .plan-sub, .plan.life .plan-price span { color: rgba(255, 255, 255, .75); }
.plan.life .plan-price b { color: #fff; }
.plan.life .plan-all { background: rgba(255, 255, 255, .12); color: #fff; }
.plan.life li .ico { background: rgba(255, 255, 255, .16); color: #c4b5fd; }
.plan.life li.more { color: rgba(255, 255, 255, .7); }
.plan.life .pill.purple-l { background: rgba(255, 255, 255, .16); color: #fde68a; }
.plan.life .btn:not(.primary) { background: #fff; color: #312e81; border-color: #fff; }
.plan.life h3 { display: flex; align-items: center; gap: 6px; }
.plan.life h3 .ico, .plan.life h3 svg { width: 22px; height: 22px; color: #fde68a; }
.plan-top .pill .ico, .plan-top .pill svg { width: 12px; height: 12px; vertical-align: -1px; }
#lp-pricing > .lp-wrap { max-width: 1280px; }
.plans-4 .plan { padding: 22px 18px; }
.plans-4 .btn.block { white-space: normal; height: auto; min-height: 48px; padding: 8px 12px; line-height: 1.25; font-size: 14.5px; }
.plans-4 .plan-all { font-size: 12.5px; }
.plans-4 .plan-price b { font-size: 34px; }
@media (max-width: 1260px) { .plans.plans-3.plans-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; } .plans-4 .plan.hl { transform: none; } }
@media (max-width: 1000px) { .plans.plans-3.plans-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .plans.plans-3.plans-4 { grid-template-columns: minmax(0, 1fr); max-width: 460px; } }
@container view (max-width: 1100px) { .plans.plans-3.plans-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container view (max-width: 600px) { .plans.plans-3.plans-4 { grid-template-columns: minmax(0, 1fr); } }
.chips { max-width: 100%; min-width: 0; } .chip { max-width: 100%; }
.lkpi .m { overflow-wrap: anywhere; }
@container view (max-width: 340px) {
  .lkpi .lk-v { font-size: 15px; } .lkpi .lk-v .m { white-space: normal; }
  .chip { white-space: normal; text-align: start; }
  .card-h { flex-wrap: wrap; }
}
#adminApp { position: fixed; inset: 0; z-index: 96; display: none; background: var(--bg); color: var(--text); }
body.show-admin #adminApp { display: block; }
body.show-admin { overflow: hidden; }
body.show-preview #pricingPage { z-index: 97; }
.lp-preview-bar { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 8px 14px; background: #f59e0b; color: #1f1300; font-weight: 700; font-size: 13.5px; }
.lp-preview-bar .btn { background: rgba(255,255,255,.85); border-color: transparent; color: #1f1300; }
.lp-hero.no-mock .lp-hero-in { grid-template-columns: minmax(0, 1fr); max-width: 820px; text-align: center; }
.lp-hero.no-mock .lp-ctas, .lp-hero.no-mock .lp-trust { justify-content: center; } .lp-hero.no-mock .lp-lead { margin-inline: auto; }
.adm-login { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(circle at 20% 10%, var(--primary-glow), transparent 50%), linear-gradient(160deg, var(--side), var(--side-2)); overflow-y: auto; height: 100%; }
.adm-login-card { width: 100%; max-width: 420px; background: var(--card); border-radius: 22px; padding: 30px 28px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); display: grid; gap: 14px; text-align: center; }
.adm-login-card h1 { margin: 6px 0 0; font-size: 24px; } .adm-login-card .sub { margin: 0; }
.adm-login-card label { text-align: start; display: grid; gap: 6px; font-weight: 600; font-size: 13.5px; }
.adm-login-card input { height: 46px; width: 100%; }
.adm-login-logo { display: flex; justify-content: center; } .adm-login-logo > * { display: flex; align-items: center; gap: 10px; }
.adm-login-logo svg.logo { width: 34px; height: 48px; } .adm-login-logo .logo-img { width: 46px; height: 46px; border-radius: 12px; object-fit: contain; }
.adm { display: grid; grid-template-columns: 260px minmax(0, 1fr); height: 100%; }
.adm-side { background: linear-gradient(180deg, var(--side), var(--side-2)); color: #e2e8f5; display: flex; flex-direction: column; padding: 18px 14px; overflow-y: auto; }
.adm-logo { display: flex; align-items: center; gap: 10px; padding: 4px 6px 10px; }
.adm-logo svg.logo { width: 30px; height: 44px; } .adm-logo .logo-img { width: 42px; height: 42px; border-radius: 10px; object-fit: contain; background: #fff; }
.adm-logo .logo-title { color: #fff; font-size: 19px; } .adm-logo .logo-sub { color: rgba(255,255,255,.6); }
.adm-badge { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin: 0 6px 16px; padding: 5px 10px; border-radius: 99px; background: rgba(255,255,255,.1); color: #fde68a; font-size: 12px; font-weight: 700; }
.adm-badge .ico { width: 14px; height: 14px; }
.adm-side nav { display: grid; gap: 4px; }
.adm-side nav button, .adm-side-foot button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: 0; border-radius: 11px; background: none; color: #dbe3f3; font-size: 14.5px; font-weight: 500; cursor: pointer; text-align: start; transition: background .15s, color .15s; }
.adm-side nav button:hover, .adm-side-foot button:hover { background: rgba(255,255,255,.08); color: #fff; }
.adm-side nav button.on { background: var(--primary); color: #fff; box-shadow: 0 10px 22px -12px var(--primary); }
.adm-side nav button .ico, .adm-side-foot button .ico { width: 20px; height: 20px; flex: none; }
.adm-side nav button span { flex: 1; }
.adm-side nav em { font-style: normal; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: #ef4444; color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.adm-side nav em.soft { background: rgba(255,255,255,.14); }
.adm-side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1); display: grid; gap: 2px; }
.adm-side-foot button { font-size: 13.5px; color: #b9c4da; } .adm-side-foot button.danger { color: #fca5a5; }
.adm-main { display: flex; flex-direction: column; min-width: 0; height: 100%; overflow: hidden; }
.adm-top { display: flex; align-items: center; gap: 14px; padding: 16px 26px; border-bottom: 1px solid var(--line); background: var(--card); }
.adm-top h1 { margin: 0; font-size: 22px; } .adm-top .sub { font-size: 13px; }
.adm-top-acts { display: flex; align-items: center; gap: 10px; }
.adm-top-acts .lang-sw button { min-width: 34px; height: 28px; padding: 0 8px; font-size: 12px; }
.adm-burger { display: none; }
.adm-backdrop { display: none; }
.adm-body { flex: 1; overflow-y: auto; padding: 22px 26px 40px; display: grid; gap: 18px; align-content: start; container: view / inline-size; }
.adm-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.adm-kpi { position: relative; display: grid; gap: 2px; text-align: start; padding: 16px 16px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); cursor: pointer; color: var(--text); transition: transform .15s, box-shadow .15s; min-width: 0; }
.adm-kpi:not(:disabled):hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.adm-kpi:disabled { cursor: default; opacity: 1; }
.ak-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 8px; }
.ak-ico .ico { width: 20px; height: 20px; }
.ak-v { font-size: clamp(18px, 2.3cqi, 26px); font-weight: 800; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ak-l { font-size: 13px; color: var(--text-2); font-weight: 600; } .ak-s { font-size: 12px; color: var(--muted); }
.k-blue .ak-ico { background: #dbeafe; color: #1d4ed8; } .k-green .ak-ico { background: #dcfce7; color: #15803d; } .k-sky .ak-ico { background: #e0f2fe; color: #0369a1; }
.k-orange .ak-ico { background: #ffedd5; color: #c2410c; } .k-red .ak-ico { background: #fee2e2; color: #b91c1c; } .k-purple .ak-ico { background: #ede9fe; color: #6d28d9; }
body.dark .k-blue .ak-ico { background: #172554; color: #93c5fd; } body.dark .k-green .ak-ico { background: #052e16; color: #86efac; } body.dark .k-sky .ak-ico { background: #082f49; color: #7dd3fc; }
body.dark .k-orange .ak-ico { background: #431407; color: #fdba74; } body.dark .k-red .ak-ico { background: #450a0a; color: #fca5a5; } body.dark .k-purple .ak-ico { background: #2e1065; color: #c4b5fd; }
.adm-note { display: flex; align-items: center; gap: 10px; margin: 0; } .adm-note .btn { margin-inline-start: auto; }
.adm-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.adm-donut { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; } .adm-donut > svg { width: 180px; height: 180px; flex: none; }
.adm-donut .legend { flex: 1; min-width: 160px; display: grid; gap: 8px; }
.adm-donut .legend > div { display: flex; align-items: center; gap: 8px; font-size: 13.5px; } .adm-donut .legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; } .adm-donut .legend span { margin-inline-start: auto; font-weight: 700; }
.adm-mini { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; cursor: pointer; text-align: start; color: var(--text); }
.adm-mini:last-child { border-bottom: 0; } .adm-mini:hover { background: var(--soft); border-radius: 10px; }
.adm-mini .grow { min-width: 0; } .adm-mini b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .adm-mini .sub { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-mini-r { display: grid; justify-items: end; gap: 3px; flex: none; }
.adm-filters { flex-wrap: wrap; gap: 10px; } .adm-filters .chips { flex: 1 1 auto; }
.adm-search { position: relative; flex: 0 1 280px; min-width: 180px; } .adm-search input { width: 100%; height: 38px; }
.adm-tbl tbody tr { cursor: pointer; } .adm-tbl tbody tr:hover td { background: var(--soft); }
.warn-t { color: #c2410c; } body.dark .warn-t { color: #fdba74; }
.adm-req { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.adm-req-card .kv { margin: 14px 0; } .adm-req-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.adm-plan .card-b { display: grid; gap: 10px; } .adm-plan.hl { border: 2px solid var(--primary); }
.adm-plan label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; } .adm-plan input:not([type=radio]) { height: 40px; }
.adm-plan label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.ap-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 16px; } .ap-h b { display: inline-flex; align-items: center; gap: 6px; }
.ap-per { margin-top: -4px; }
.adm-save { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.adm-save.sticky { position: sticky; bottom: -40px; padding: 12px 0; background: linear-gradient(transparent, var(--bg) 30%); z-index: 2; }
.adm-editor { display: grid; gap: 18px; }
.adm-lang { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.adm-list { display: grid; gap: 12px; margin-top: 14px; }
.adm-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.adm-item > select { width: 120px; flex: none; } .adm-item .grow { min-width: 0; }
.adm-list[data-list=features] .adm-item .grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
@container view (max-width: 640px) { .adm-list[data-list=features] .adm-item .grid { grid-template-columns: minmax(0, 1fr); } }
.adm-item-acts { display: flex; flex-direction: column; gap: 4px; }
.adm-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-text); flex: none; }
.adm-toggles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 0 18px; }
.adm-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-brand-prev { display: grid; grid-template-columns: 220px 1fr; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); min-height: 150px; }
.abp-side { background: var(--bs); padding: 16px; display: grid; gap: 14px; align-content: start; }
.abp-side > svg, .abp-side .logo-img { width: 30px; height: 42px; } .abp-side { color: #fff; } .abp-side .logo-title { color: #fff; font-size: 16px; } .abp-side .logo-sub { color: rgba(255,255,255,.65); }
.abp-side { grid-template-columns: auto 1fr; align-items: center; } .abp-nav { grid-column: 1 / -1; display: grid; gap: 8px; } .abp-nav i { display: block; height: 10px; border-radius: 6px; background: rgba(255,255,255,.14); } .abp-nav i:first-child { background: var(--bp); }
.abp-main { padding: 22px; display: grid; gap: 14px; align-content: center; justify-items: start; background: var(--card); }
.abp-main b { font-size: 18px; } .abp-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 10px; background: var(--bp); color: #fff; font-weight: 700; font-size: 14px; }
.abp-btn .ico { width: 16px; height: 16px; }
.adm-shop-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; } .adm-shop-head h3 { margin: 0; font-size: 19px; }
.adm-kv { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.adm-shop-tabs { margin-bottom: 14px; flex-wrap: wrap; width: auto; overflow: visible; }
.adm-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.danger-note { background: #fef2f2; border-color: #fecaca; color: #991b1b; } body.dark .danger-note { background: #2a0d0d; border-color: #7f1d1d; color: #fecaca; }
@container view (max-width: 1150px) { .adm-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .adm-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container view (max-width: 820px) { .adm-grid2 { grid-template-columns: minmax(0, 1fr); } }
@container view (max-width: 560px) { .adm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .adm-plan-grid { grid-template-columns: minmax(0, 1fr); } .adm-brand-prev { grid-template-columns: 1fr; } .adm-item { flex-wrap: wrap; } .adm-item > select { width: 100%; } .adm-item-acts { flex-direction: row; } }
@media (max-width: 900px) {
  .adm { grid-template-columns: minmax(0, 1fr); }
  .adm-side { position: fixed; inset-block: 0; inset-inline-start: 0; width: 270px; z-index: 3; transform: translateX(-105%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  [dir=rtl] .adm-side { transform: translateX(105%); }
  body.adm-nav-open .adm-side { transform: none; }
  .adm-backdrop { display: none; } body.adm-nav-open .adm-backdrop { display: block; position: fixed; inset: 0; z-index: 2; background: rgba(15, 23, 42, .45); }
  .adm-burger { display: grid; }
  .adm-top { padding: 12px 14px; gap: 10px; } .adm-top h1 { font-size: 18px; } .adm-top .sub { display: none; }
  .adm-body { padding: 14px 12px 40px; }
}
.tab-n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700; margin-inline-start: 4px; line-height: 1; }
.act.al-new { background: color-mix(in srgb, var(--red) 6%, transparent); border-radius: 10px; }
.act.al-new b::after { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-inline-start: 6px; vertical-align: middle; }
.promo-row { display: flex; gap: 8px; margin-bottom: 10px; }
.promo-row .with-ico { flex: 1; min-width: 0; }
.promo-row input { width: 100%; height: 36px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 10px 0 34px; text-transform: uppercase; font-size: 13px; background: var(--card); }
.cpn-line { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--purple); }
.cpn-line > span { display: inline-flex; align-items: center; gap: 6px; }
.loyal-row small { display: block; font-weight: 400; }
.loyal-row > span { flex-wrap: wrap; }
.sched-prev { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 4px 12px; font-size: 12px; }
.sched-prev:empty { display: none; }
.sched-prev div { display: flex; justify-content: space-between; gap: 6px; padding: 4px 8px; border-radius: 6px; background: var(--card); border: 1px solid var(--line); }
.credit-box select { height: 36px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 8px; font-size: 13px; width: 100%; background: var(--card); }
.sched-tbl { display: grid; gap: 6px; }
.sched-tbl > div { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.sched-tbl .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); font-weight: 700; font-size: 12px; flex-shrink: 0; }
.sched-tbl .grow { display: flex; flex-direction: column; min-width: 0; }
.sched-tbl .ok { opacity: .7; } .sched-tbl .ok .n { background: var(--green-soft); color: var(--green); }
.sched-tbl .late { border-color: color-mix(in srgb, var(--red) 40%, var(--line)); } .sched-tbl .late .n { background: var(--red-soft); color: var(--red); }
.mk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.mk-grid .mk-wide { grid-column: 1 / -1; }
.mk-pub { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 20px; align-items: start; }
.mk-link { display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.mk-link .inp { width: 100%; font-size: 12px; }
.mk-qr { background: #fff; padding: 8px; border-radius: 10px; line-height: 0; }
.mk-qr svg { width: 132px; height: 132px; }
.row-btns { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.mk-cats .chip { cursor: pointer; }
.stars { color: #f59e0b; letter-spacing: 1px; white-space: nowrap; font-size: 16px; direction: ltr; display: inline-block; }
.stars i { font-style: normal; color: var(--line-2); } .stars i.on { color: #f59e0b; }
.stars.sm { font-size: 13px; }
.rv-sum { display: flex; gap: 18px; align-items: center; margin-bottom: 12px; }
.rv-avg { display: flex; flex-direction: column; align-items: center; min-width: 96px; }
.rv-avg > b { font-size: 34px; line-height: 1.1; }
.rv-bars { flex: 1; display: grid; gap: 4px; font-size: 12px; }
.rv-bars div { display: grid; grid-template-columns: 28px 1fr 26px; gap: 8px; align-items: center; }
.rv-bars i { height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; } .rv-bars i b { display: block; height: 100%; background: #f59e0b; border-radius: 99px; }
.rv-list { display: grid; gap: 8px; }
.rv-item { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.rv-item p { margin: 2px 0 0; width: 100%; font-size: 13px; color: var(--text-2); }
.intake-box { border: 1px solid var(--line-2); border-radius: 12px; padding: 0 12px; }
.intake-box > summary { cursor: pointer; padding: 12px 0; font-weight: 600; display: flex; align-items: center; gap: 8px; list-style: none; }
.intake-box > summary::-webkit-details-marker { display: none; }
.intake-box > summary::after { content: '▾'; margin-inline-start: auto; color: var(--muted); }
.intake-box[open] > summary::after { content: '▴'; }
.intake-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; }
.ck-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0; font-size: 13px; border-bottom: 1px dashed var(--line); }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.seg label { cursor: pointer; display: block; margin: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg b { display: block; padding: 4px 9px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.seg label + label b { border-inline-start: 1px solid var(--line-2); }
.seg-ok input:checked + b { background: var(--green); color: #fff; } .seg-ko input:checked + b { background: var(--red); color: #fff; } .seg-na input:checked + b { background: var(--muted-2); color: #fff; }
.seg input:focus-visible + b { outline: 2px solid var(--primary); outline-offset: -2px; }
.sig-box { margin-bottom: 12px; }
.sig-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.sig-pad { position: relative; border: 1.5px dashed var(--line-2); border-radius: 10px; background: #fff; aspect-ratio: 56 / 18; max-height: 200px; touch-action: none; }
.sig-pad canvas, .sig-pad img { position: absolute; inset: 0; width: 100%; height: 100%; }
.sig-pad img { object-fit: contain; pointer-events: none; }
.sig-pad canvas { cursor: crosshair; touch-action: none; }
.sig-ph[hidden] { display: none; }
.sig-ph { position: absolute; inset: 0; display: grid; place-items: center; color: #64748b; font-size: 13px; pointer-events: none; }
.intake-view { display: flex; flex-wrap: wrap; gap: 6px; }
.ck { font-size: 12px; padding: 3px 9px; border-radius: 99px; font-weight: 600; }
.ck-ok { background: var(--green-soft); color: var(--green); } .ck-ko { background: var(--red-soft); color: var(--red); } .ck-na { background: var(--soft); color: var(--muted); }
.sig-view { margin-top: 10px; display: inline-flex; flex-direction: column; gap: 4px; }
.sig-view img { max-width: 260px; height: 80px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.receipt .rc-checks { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: .86em; }
.receipt .sig .sig-img { display: flex; flex-direction: column; align-items: center; }
.receipt .sig .sig-img img { max-height: 16mm; max-width: 100%; margin-top: -22px; }
.sg-group + .sg-group { margin-top: 14px; }
.sg-tbl td, .sg-tbl th { padding-top: 8px; padding-bottom: 8px; }
.inv-top { display: grid; gap: 10px; }
.inv-scan input { height: 48px; font-size: 16px; text-overflow: ellipsis; }
.inv-prog { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.inv-prog .progress { flex: 1; }
#invLast { min-height: 18px; display: flex; align-items: center; gap: 6px; color: var(--green); }
.inv-tbl tr.inv-ok td { background: color-mix(in srgb, var(--green) 5%, transparent); }
.inv-tbl tr.inv-diff td { background: color-mix(in srgb, var(--orange) 8%, transparent); }
.pf { display: grid; gap: 2px; }
.pf-sec { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; margin-top: 10px; }
.pf-sec:first-child { margin-top: 0; }
.pf-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 13.5px; }
.pf-row small { color: var(--muted); font-size: 11.5px; margin-inline-start: 6px; }
.pf-row b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pf-row.pf-s { border-top: 1px dashed var(--line-2); font-weight: 600; }
.pf-row.pf-t { border-top: 2px solid var(--text); margin-top: 8px; padding-top: 10px; font-size: 16px; font-weight: 700; }
.pf-line { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 13px; }
.pf-line > span:first-child { min-width: 90px; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-bar { flex: 1; height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; min-width: 40px; }
.pf-bar b { display: block; height: 100%; border-radius: 99px; background: var(--green-2); }
.sync-info.has-q { color: #fbbf24; font-weight: 600; }
@media (max-width: 900px) {
  .mk-grid { grid-template-columns: minmax(0, 1fr); }
  .mk-pub { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .intake-grid { grid-template-columns: minmax(0, 1fr); }
  .rv-sum { flex-direction: column; align-items: stretch; }
  .pf-line > span:first-child { min-width: 70px; }
}
body.dark .sig-pad, body.dark .sig-view img { background: #f8fafc; }
body.dark .credit-box select, body.dark .promo-row input { background: var(--soft); }
.ord-list { display: grid; gap: 10px; }
.ord { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; }
.ord.ord-new { border-color: color-mix(in srgb, var(--orange) 55%, var(--line)); background: color-mix(in srgb, var(--orange) 5%, var(--card)); }
.ord-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.ord-h > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.ord-c { display: flex; align-items: center; gap: 10px; }
.ord-c .grow { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.btn[hidden], .ib[hidden] { display: none !important; }
.ord-c .sub .ico { width: 14px; height: 14px; vertical-align: -2px; }
.ord-t { font-size: 16px; white-space: nowrap; }
.ord-l { display: flex; flex-direction: column; gap: 2px; font-size: 13px; padding: 8px 10px; background: var(--soft); border-radius: 8px; }
.ord-a { display: flex; flex-wrap: wrap; gap: 6px; }
.sys-logo { display: block; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
[dir=rtl] .sys-logo { object-position: right center; }
.sys-logo-txt { font-weight: 800; font-size: 26px; letter-spacing: .06em; color: inherit; }
.sys-logo.lg-d, .sys-logo-txt.lg-d { display: none; }
body.dark .sys-logo.lg-l, body.dark .sys-logo-txt.lg-l { display: none; }
body.dark .sys-logo.lg-d, body.dark .sys-logo-txt.lg-d { display: block; }
.logo-wrap .sys-logo { height: 64px; max-width: 236px; }
.logo-wrap:has(.sys-logo) { padding: 6px 8px 24px; }
.auth-logo .sys-logo { height: 70px; max-width: 280px; }
.lock-logo .sys-logo { height: 56px; max-width: 240px; margin: 0 auto; }
.pp-logo .sys-logo { height: 46px; max-width: 210px; }
.adm-logo .sys-logo { height: 52px; max-width: 200px; }
.adm-login-logo .sys-logo { height: 66px; max-width: 260px; }
.abp-side .sys-logo { height: 34px; max-width: 130px; }
.img-prev.logo-prev { width: 150px; } .img-prev.logo-prev img { object-fit: contain; }
.img-prev.logo-prev.on-dark { background: #0c1733; }
body.side-mini .logo-wrap .sys-logo { height: 40px; max-width: 56px; object-fit: cover; object-position: left center; }
@media (max-width: 480px) { .pp-logo .sys-logo { height: 38px; max-width: 160px; } }
.gal-field .lbl { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.gal-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }
.gal-it { position: relative; width: 96px; height: 96px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: #fff; }
.gal-it.main { border: 2px solid var(--primary); }
.gal-it img { width: 100%; height: 100%; object-fit: contain; }
.gal-tag { position: absolute; left: 4px; bottom: 4px; font-size: 10px; font-weight: 700; background: var(--primary); color: #fff; padding: 2px 6px; border-radius: 6px; }
.gal-b { position: absolute; top: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(15, 23, 42, .7); color: #fff; font-size: 12px; cursor: pointer; padding: 0; }
.gal-b.del { right: 4px; } .gal-b.star { left: 4px; } .gal-b .ico { width: 14px; height: 14px; }
.gal-add { width: 96px; height: 96px; border-radius: 12px; border: 1.5px dashed var(--line-2); display: grid; place-items: center; align-content: center; gap: 4px; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 600; }
.gal-add:hover { border-color: var(--primary); color: var(--primary); }
.gal-view { display: flex; gap: 8px; overflow-x: auto; margin: 12px 0; }
.gal-view img { width: 92px; height: 92px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); background: #fff; flex-shrink: 0; }
.card-share { display: grid; gap: 12px; justify-items: center; text-align: center; }
.card-share .list-row { width: 100%; }
.imp-drop { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 26px 16px; border: 2px dashed var(--line-2); border-radius: 16px; background: var(--soft); }
.imp-drop > .ico { width: 34px; height: 34px; color: var(--primary); }
.imp-drop.small { padding: 12px; grid-template-columns: auto 1fr auto auto; justify-items: start; text-align: start; }
.imp-drop.small > .ico, .imp-drop.small .sub { display: none; }
.imp-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.imp-map label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--text-2); min-width: 0; }
.imp-mode { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-right: auto; flex-wrap: wrap; flex: 1; min-width: 220px; }
.imp-mode .inp { width: auto; max-width: 100%; }
.imp-mode .inp { height: 36px; }
.rc-brands { flex-wrap: wrap; }
.rc-list { display: grid; gap: 6px; max-height: 52vh; overflow-y: auto; }
.rc-row { display: grid; grid-template-columns: minmax(170px, 1.6fr) 100px 110px 1fr 1fr 70px; gap: 6px; align-items: center; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; }
.rc-row.on { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 5%, var(--card)); }
.rc-row .inp { height: 34px; padding: 0 8px; font-size: 13px; min-width: 0; }
.rc-row .inp:disabled { opacity: .45; }
.rc-name { display: flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; min-width: 0; }
@media (max-width: 760px) { .rc-row { grid-template-columns: 1fr 1fr; } .rc-row .rc-name { grid-column: 1 / -1; } }
.onb { margin-bottom: 16px; border-color: color-mix(in srgb, var(--primary) 30%, var(--line)); }
.onb-prog { display: flex; align-items: center; gap: 10px; }
.onb-prog i { width: 120px; height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; display: block; } .onb-prog i b { display: block; height: 100%; background: var(--green-2); border-radius: 99px; }
.onb-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; padding: 0 16px 16px; }
.onb-step { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; flex-wrap: wrap; }
.onb-step .grow { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.onb-step.ok { opacity: .65; }
.onb-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex-shrink: 0; }
.onb-step.ok .onb-ico { background: var(--green-soft); color: var(--green); }
.onb-acts { display: flex; gap: 6px; flex-wrap: wrap; width: 100%; padding-inline-start: 50px; }
.ref-card { margin-top: 16px; }
.ref-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.ref-stats div { text-align: center; padding: 12px; border-radius: 12px; background: var(--soft); }
.ref-stats b { display: block; font-size: 22px; } .ref-stats small { color: var(--muted); }
.ref-link { display: flex; gap: 8px; flex-wrap: wrap; } .ref-link .inp { flex: 1; min-width: 200px; }
@media (max-width: 600px) { .onb .card-h { flex-wrap: wrap; gap: 8px; } .onb .card-h h3 { flex: 1 1 100%; } .onb-prog { flex: 1; } .onb-prog i { flex: 1; width: auto; } .onb-steps { grid-template-columns: minmax(0, 1fr); padding: 0 12px 12px; } }
