/* ExoDrop design system — light, Aliclik-like back-office look. */
:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --ink: #141a33;
  --ink-2: #3c4466;
  --muted: #7a819c;
  --line: #e6e9f2;
  --line-2: #eef0f6;
  --primary: #2f33f0;
  --primary-2: #4a4ef7;
  --primary-soft: #eef0ff;
  --navy: #0c1035;
  --navy-2: #1b1d5c;
  --green: #0f8a63;
  --green-2: #11a375;
  --green-soft: #e7f7f0;
  --red: #e5384f;
  --red-soft: #fdecef;
  --orange: #f08c00;
  --orange-soft: #fff4e2;
  --purple: #7c4dff;
  --teal: #0f9f8a;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 8px rgba(16, 24, 40, .04);
  --shadow-lg: 0 18px 48px rgba(12, 16, 53, .18);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 13.5px; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
[v-cloak] { display: none !important; }
.hidden { display: none !important; }

/* ── header ── */
.hdr { position: sticky; top: 0; z-index: 40; height: 48px; display: flex; align-items: center; gap: 12px; padding: 0 16px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 2px 10px rgba(12,16,53,.25); }
.hdr::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: linear-gradient(90deg, #2f33f0, #22c3e6 60%, transparent); opacity: .7; }
.hdr .burger { background: none; border: 0; color: #fff; cursor: pointer; padding: 6px; border-radius: 8px; display: flex; }
.hdr .burger:hover { background: rgba(255,255,255,.08); }
.logo { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; color: #fff; cursor: pointer; user-select: none; }
.logo .mark { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  background: linear-gradient(135deg, #3a3ff5, #22c3e6); font-size: 13px; font-weight: 900; }
.logo b { color: #8fdcff; font-weight: 800; }
.hdr .pagepill { margin-left: 4px; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.hdr .sp { flex: 1; }
.hdr .hbtn { height: 30px; min-width: 30px; padding: 0 8px; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: #fff; cursor: pointer; font-size: 12.5px; }
.hdr .hbtn:hover { background: rgba(255,255,255,.14); }
.hdr .hbtn { white-space: nowrap; }
@media (max-width: 640px) { .hdr { gap: 8px; padding: 0 10px; } .hdr .pagepill { display: none; } .hdr .hbtn .ellipsis { display: none; } .logo { font-size: 17px; } }
.hdr .hbtn .dot { width: 7px; height: 7px; border-radius: 50%; background: #ff5a6e; }
.imp-bar { background: #fff4e2; color: #8a4b00; border-bottom: 1px solid #f6d9a8; padding: 6px 16px; font-size: 12.5px;
  display: flex; gap: 10px; align-items: center; }

/* ── side menu ── */
.scrim { position: fixed; inset: 0; background: rgba(12,16,53,.42); z-index: 60; animation: fade .15s ease; }
.menu { position: fixed; top: 0; left: 0; bottom: 0; width: 272px; background: #fff; z-index: 61; display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg); animation: slideL .18s ease; }
.menu-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); font-weight: 700; font-size: 15px; }
.menu-top .x { background: none; border: 0; cursor: pointer; color: var(--muted); display: flex; padding: 4px; border-radius: 6px; }
.menu-top .x:hover { background: var(--bg); }
.menu-body { flex: 1; overflow-y: auto; padding: 10px 12px 16px; }
.ucard { display: flex; gap: 10px; align-items: center; padding: 6px 4px 10px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #2f33f0, #22c3e6); flex: none; }
.avatar.sm { width: 28px; height: 28px; font-size: 12px; }
.ucard .n { font-weight: 700; }
.ucard .r { font-size: 12px; color: var(--muted); }
.lvl { border: 1px solid #dfe2ff; background: linear-gradient(180deg, #f6f7ff, #eef0ff); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.lvl .t { font-size: 12.5px; color: var(--ink-2); }
.lvl .t b { color: var(--primary); }
.lvl .bar { height: 6px; border-radius: 99px; background: #dfe3f3; margin-top: 8px; overflow: hidden; }
.lvl .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), #22c3e6); border-radius: 99px; }
.mi { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; cursor: pointer; color: var(--ink-2);
  font-weight: 500; user-select: none; }
.mi:hover { background: var(--bg); color: var(--ink); }
.mi .chev { margin-left: auto; color: var(--muted); transition: transform .15s; }
.mi.open .chev { transform: rotate(180deg); }
.mi.parent-active { color: var(--primary); }
.msub { padding-left: 14px; }
.msub .mi { font-size: 13px; padding: 8px 10px; }
.mi.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; box-shadow: inset 3px 0 0 var(--primary); }
.mi .tag { margin-left: auto; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--primary); color: #fff; }
.mi .tag.green { background: var(--green-2); }
.menu-foot { border-top: 1px solid var(--line-2); padding: 8px 12px; }

/* ── layout ── */
.main { padding: 14px 16px 40px; max-width: 1800px; margin: 0 auto; }
.page { display: flex; flex-direction: column; gap: 14px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toolbar .grow { flex: 1; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.nowrap { flex-wrap: nowrap; }
.col { display: flex; flex-direction: column; gap: 6px; }
.gap-lg { gap: 18px; }
.right { margin-left: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.strong { font-weight: 700; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pos { color: var(--green); }
.neg { color: var(--red); }
.grid { display: grid; gap: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .grid-4, .grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; } .main { padding: 10px 10px 40px; } }

/* ── cards ── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.pad { padding: 14px 16px; }
.card-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.card-h h3, .card-title { margin: 0; font-size: 15px; font-weight: 700; }
.card-h .sub { font-size: 12px; color: var(--muted); }
.card-b { padding: 14px 16px; }
.card.accent { border-bottom: 3px solid #9ea2fb; }
.section-title { position: relative; padding-left: 14px; margin: 0; font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.section-title::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 3px; border-radius: 3px; background: var(--primary); }
.stat { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.stat .ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.stat .v { font-size: 18px; font-weight: 800; }
.stat .l { font-size: 12px; color: var(--muted); }

.kpi { padding: 14px 16px 12px; border-bottom: 3px solid #9ea2fb; display: flex; flex-direction: column; gap: 8px; }
.kpi .top { display: flex; align-items: center; gap: 10px; }
.kpi .ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.kpi .lab { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.kpi .val { font-size: 24px; font-weight: 800; text-align: center; }
.kpi .sub { font-size: 14px; font-weight: 700; color: #6366f1; text-align: center; }
.kpi.red { border-bottom-color: #f2a3ae; } .kpi.red .ico { background: var(--red-soft); color: var(--red); } .kpi.red .val { color: var(--red); }
.kpi.green { border-bottom-color: #98dcc2; } .kpi.green .ico { background: var(--green-soft); color: var(--green); } .kpi.green .val { color: var(--green); }
.kpi.hero { background: linear-gradient(135deg, #2f33f0, #1f22c9); color: #fff; border: 0; }
.kpi.hero .lab { color: #dfe1ff; } .kpi.hero .ico { background: rgba(255,255,255,.16); color: #fff; } .kpi.hero .val { color: #fff; }

/* ── buttons ── */
.btn { height: 34px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; font-weight: 600; white-space: nowrap;
  transition: background .12s, box-shadow .12s, transform .05s; }
.btn:hover { background: #f8f9fd; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(47,51,240,.25); }
.btn-primary:hover { background: #2629d8; }
.btn-green { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 4px 12px rgba(15,138,99,.22); }
.btn-green:hover { background: #0c7654; }
.btn-danger { background: #fff; border-color: #f3b4bd; color: var(--red); }
.btn-danger:hover { background: var(--red-soft); }
.btn-danger.solid { background: var(--red); color: #fff; border-color: var(--red); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: rgba(47,51,240,.06); color: var(--primary); }
.btn-soft { background: var(--primary-soft); border-color: #dfe2ff; color: var(--primary); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.btn-xs { height: 24px; padding: 0 8px; font-size: 11.5px; border-radius: 7px; }
.btn-icon { width: 34px; padding: 0; }
.btn-icon.btn-sm { width: 28px; }
.iconbtn { width: 28px; height: 28px; border-radius: 8px; display: inline-grid; place-items: center; border: 1px solid var(--line);
  background: #fff; cursor: pointer; color: var(--ink-2); }
.iconbtn:hover { background: var(--primary-soft); color: var(--primary); border-color: #dfe2ff; }
.iconbtn.red:hover { background: var(--red-soft); color: var(--red); border-color: #f3b4bd; }
.iconbtn.round { border-radius: 50%; }
.linkbtn { background: none; border: 0; color: var(--primary); cursor: pointer; padding: 0; font-weight: 600; }
.linkbtn:hover { text-decoration: underline; }

/* ── inputs ── */
.inp, select.inp, textarea.inp { height: 34px; padding: 0 11px; border-radius: 9px; border: 1px solid #dcdfea; background: #fff;
  outline: none; min-width: 0; transition: border-color .12s, box-shadow .12s; }
textarea.inp { height: auto; min-height: 64px; padding: 8px 11px; resize: vertical; }
.inp:focus { border-color: #8e91f8; box-shadow: 0 0 0 3px rgba(47,51,240,.12); }
.inp:disabled { background: #f4f5f9; color: var(--muted); }
.inp.sm { height: 28px; font-size: 12.5px; border-radius: 8px; }
select.inp { padding-right: 28px; appearance: none; 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='%237a819c' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center; }
.search { display: flex; align-items: stretch; }
.search .inp { border-radius: 9px 0 0 9px; width: 220px; }
.search .btn { border-radius: 0 9px 9px 0; height: 34px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > label, .label { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.req::after { content: " *"; color: var(--red); }
.hint { font-size: 11.5px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-row { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px; align-items: center; }
.form-row > label { text-align: right; font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } .form-row > label { text-align: left; } }
.check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; user-select: none; }
.check input { width: 16px; height: 16px; accent-color: var(--primary); }
.daterange { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 8px; border: 1px solid #dcdfea; border-radius: 9px; background: #fff; }
.daterange input { border: 0; outline: none; height: 30px; background: transparent; width: 124px; }
.daterange .arrow { color: var(--muted); }
.seg { display: inline-flex; background: #e9ebf7; padding: 3px; border-radius: 11px; gap: 2px; }
.seg button { border: 0; background: transparent; height: 30px; padding: 0 14px; border-radius: 8px; cursor: pointer; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.seg button.on { background: var(--primary); color: #fff; box-shadow: 0 3px 10px rgba(47,51,240,.25); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tab { padding: 9px 14px; border: 0; background: none; cursor: pointer; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.on { color: var(--primary); border-bottom-color: var(--primary); }
.chips-filter { display: inline-flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.chips-filter .lab { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .06em; margin-right: 2px; }
.chips-filter button { height: 28px; padding: 0 12px; border-radius: 8px; border: 0; background: transparent; cursor: pointer; font-weight: 600; color: var(--ink-2); }
.chips-filter button.on { background: var(--primary); color: #fff; }

/* ── tables ── */
.tbl-wrap { overflow-x: auto; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; }
.tbl thead th { background: linear-gradient(180deg, #3337f6, #2a2eee); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; padding: 12px 12px; text-align: left; white-space: nowrap; position: relative; }
.tbl thead th + th::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 1px; background: rgba(255,255,255,.45); }
.tbl thead th.c, .tbl td.c { text-align: center; }
.tbl thead th.r, .tbl td.r { text-align: right; }
.tbl tbody td { padding: 11px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tbody tr:hover td { background: #f8f9ff; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl.compact tbody td { padding: 8px 12px; }
.tbl tfoot td { padding: 10px 12px; font-weight: 700; background: #f7f8fc; border-top: 1px solid var(--line); }
.tbl .sub-row td { background: #f9faff; }
.tbl-inner { width: 100%; border-collapse: collapse; }
.tbl-inner th { background: linear-gradient(180deg, #5b9ff9, #4b8ef3); color: #fff; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 8px 10px; text-align: left; }
.tbl-inner td { padding: 8px 10px; border-bottom: 1px solid var(--line-2); font-size: 12.5px; }
.sel-col { width: 34px; }

/* ── chips / pills / badges ── */
.chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; border: 1px solid #d9dce8;
  background: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.chip-blue { background: #eaf3ff; border-color: #c9defd; color: #2563eb; text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 11px; }
.chip-green { background: var(--green-soft); border-color: #bfe8d7; color: var(--green); }
.chip-red { background: var(--red-soft); border-color: #f6c2ca; color: var(--red); }
.chip-orange { background: var(--orange-soft); border-color: #f6d9a8; color: #b45f00; }
.chip-purple { background: #f1ebff; border-color: #ddd0ff; color: #6d3fe0; }
.chip-gray { background: #f1f2f7; border-color: #e1e3ec; color: #5c6383; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 99px;
  font-size: 11px; font-weight: 700; background: #eef0f6; color: var(--ink-2); }
.badge.dark { background: #6b7280; color: #fff; }
.pill { display: inline-flex; align-items: center; justify-content: center; height: 26px; padding: 0 12px; border-radius: 8px; font-size: 11.5px;
  font-weight: 700; letter-spacing: .03em; border: 1px solid transparent; white-space: nowrap; }
.pill.ok { background: #e3f8ee; color: #0b7a55; border-color: #b8ebd3; }
.pill.warn { background: #fff4e2; color: #b45f00; border-color: #f6d9a8; }
.pill.bad { background: var(--red-soft); color: var(--red); border-color: #f6c2ca; }
.pill.info { background: #eaf3ff; color: #2563eb; border-color: #c9defd; }
.pill.mute { background: #f1f2f7; color: #5c6383; border-color: #e1e3ec; }
.pill.violet { background: #f1ebff; color: #6d3fe0; border-color: #ddd0ff; }
.dotc { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }

/* ── order status stack ── */
.st { display: flex; align-items: center; gap: 8px; min-height: 30px; }
.st .sq { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; color: #fff; flex: none; }
.st .lb { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.st.clickable { cursor: pointer; border-radius: 8px; padding-right: 6px; }
.st.clickable:hover { background: #f1f2ff; }
.st.st-none .sq { background: #e7e9f2 !important; color: #a3a8bf; }
.st.st-none .lb { color: #a3a8bf; }
.ostates { display: flex; flex-direction: column; gap: 6px; }

/* ── order list cells ── */
.ocode { font-weight: 700; color: #2563eb; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; }
.ocode:hover { text-decoration: underline; }
.dates { display: grid; grid-template-columns: auto auto; gap: 3px 10px; font-size: 12px; }
.dates span { color: var(--muted); }
.dates b { font-weight: 700; }
.cust .nm { font-weight: 600; }
.wa { display: inline-flex; align-items: center; gap: 5px; color: #0b8f4f; font-weight: 600; }
.wa .ico { width: 18px; height: 18px; border-radius: 50%; background: #25d366; display: grid; place-items: center; color: #fff; }
.prodline { font-size: 12px; line-height: 1.35; }
.prodline .q { display: inline-block; min-width: 22px; height: 18px; line-height: 18px; text-align: center; border-radius: 5px; background: #eef0f6;
  font-weight: 700; font-size: 11px; margin-right: 5px; }
.dest .place { font-weight: 600; font-size: 12.5px; }
.courier-name { font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; gap: 5px; }
.fee { display: inline-flex; padding: 3px 8px; border-radius: 6px; background: #f1f2f7; font-size: 11.5px; font-weight: 600; }
.total-cell { text-align: center; font-weight: 700; white-space: nowrap; }

/* ── drawers & modals ── */
.drawer-scrim { position: fixed; inset: 0; background: rgba(12,16,53,.38); z-index: 80; animation: fade .15s ease; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: #fff; z-index: 81; display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg); animation: slideR .2s ease; }
.drawer.wide { width: min(760px, 100vw); }
.drawer-h { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.drawer-h h3 { margin: 0; font-size: 16px; }
.drawer-b { flex: 1; overflow-y: auto; padding: 16px 18px 24px; }
.drawer-f { padding: 12px 18px; border-top: 1px solid var(--line-2); display: flex; gap: 10px; justify-content: flex-end; background: #fafbfe; }
.modal-scrim { position: fixed; inset: 0; background: rgba(12,16,53,.45); z-index: 90; display: grid; place-items: center; padding: 16px; animation: fade .15s ease; }
.modal { background: #fff; border-radius: 16px; width: min(520px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg); animation: pop .16s ease; }
.modal.wide { width: min(860px, 100%); }
.modal-h { display: flex; align-items: center; gap: 10px; padding: 16px 20px 10px; }
.modal-h h3 { margin: 0; font-size: 16px; }
.modal-b { padding: 6px 20px 16px; overflow-y: auto; }
.modal-f { padding: 12px 20px 16px; display: flex; gap: 10px; justify-content: flex-end; }
.sect { font-size: 17px; font-weight: 800; margin: 18px 0 10px; }
.sect:first-child { margin-top: 4px; }
.divider { height: 1px; background: var(--line-2); margin: 14px 0; }
.infobox { border-radius: 10px; padding: 10px 12px; background: #eef4ff; border: 1px solid #cfe0fe; color: #1e40af; font-size: 12.5px; }
.infobox.warn { background: #fff7ea; border-color: #f6d9a8; color: #8a4b00; }
.infobox.bad { background: var(--red-soft); border-color: #f6c2ca; color: #9f1239; }
.infobox.ok { background: var(--green-soft); border-color: #bfe8d7; color: #065f46; }

/* ── dropdown / multiselect ── */
.dd { position: relative; }
.dd-panel { position: absolute; top: calc(100% + 4px); left: 0; min-width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 10px 30px rgba(12,16,53,.14); z-index: 100; padding: 6px; max-height: 300px; overflow-y: auto; }
.dd-panel.right { left: auto; right: 0; }
.dd-item { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 7px; cursor: pointer; font-size: 12.5px; white-space: nowrap; }
.dd-item:hover { background: var(--bg); }
.dd-item.on { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.ms-box { min-height: 34px; border: 1px solid #dcdfea; border-radius: 9px; padding: 4px 30px 4px 6px; display: flex; flex-wrap: wrap; gap: 4px;
  align-items: center; cursor: pointer; background: #fff; position: relative; }
.ms-box .ph { color: #9aa0b8; padding-left: 4px; }
.ms-box .tagx { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: 6px; background: #ffe2b8;
  font-size: 11px; font-weight: 700; color: #5b3a00; }
.ms-box .tagx b { cursor: pointer; font-weight: 800; }
.ms-box .clr { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--muted); }

/* ── misc ── */
.support-fab { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: flex; align-items: center; gap: 10px; text-decoration: none !important; }
.support-fab .lbl { background: #fff; color: var(--ink); padding: 7px 13px; border-radius: 99px; box-shadow: var(--shadow-lg); font-weight: 600; font-size: 12.5px; }
.support-fab .fab { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #2f33f0, #22c3e6); box-shadow: 0 8px 22px rgba(47,51,240,.38); border: 3px solid #fff; }
@media (max-width: 720px) { .support-fab .lbl { display: none; } }
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { min-width: 260px; max-width: 420px; padding: 11px 14px; border-radius: 11px; background: #11163f; color: #fff; box-shadow: var(--shadow-lg);
  display: flex; gap: 10px; align-items: flex-start; animation: pop .16s ease; font-size: 13px; }
.toast.ok { background: #0b6b4c; }
.toast.err { background: #b4233a; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty .big { width: 54px; height: 54px; border-radius: 16px; background: #eef0f6; display: grid; place-items: center; color: #9aa0b8; }
.spin { width: 22px; height: 22px; border: 3px solid #dfe2ff; border-top-color: var(--primary); border-radius: 50%; animation: rot .8s linear infinite; }
.loading-row { padding: 30px; display: grid; place-items: center; }
.pager { display: flex; align-items: center; gap: 6px; justify-content: center; padding: 12px; }
.pager button { min-width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 600; padding: 0 8px; }
.pager button.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager button:disabled { opacity: .45; cursor: default; }
.progress { height: 8px; border-radius: 99px; background: #e8eaf3; overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 99px; background: var(--green-2); }
.progress.red i { background: #ef4f63; }
.progress.blue i { background: var(--primary); }
.kv { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 7px 12px; font-size: 13px; }
.kv > span { color: var(--muted); }
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; padding-bottom: 12px; position: relative; }
.tl-item::before { content: ""; position: absolute; left: 7px; top: 14px; bottom: 0; width: 2px; background: var(--line); }
.tl-item:last-child::before { display: none; }
.tl-dot { width: 16px; height: 16px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px #c7cbe0; background: var(--primary); margin-top: 1px; }
.thumb { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; background: #eef0f6; flex: none; }
.pcard { display: flex; flex-direction: column; overflow: hidden; }
.pcard .img { aspect-ratio: 1 / 1; background: #eef0f6; position: relative; }
.pcard .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard .fav { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; cursor: pointer; color: var(--primary); box-shadow: var(--shadow); }
.pcard .fav.on { color: #e11d48; }
.pcard .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.price-box { display: grid; grid-template-columns: 1fr 1fr; text-align: center; gap: 4px; }
.price-box span { font-size: 11.5px; color: var(--muted); }
.price-box b { font-size: 14px; }
.banner { border-radius: 16px; padding: 18px 20px; position: relative; overflow: hidden; }
.banner.violet { background: linear-gradient(135deg, #e9e6ff, #d4ccff); border: 1px solid #cfc6ff; }
.banner.mint { background: linear-gradient(135deg, #e3f8ee, #bfead6); border: 1px solid #a9e2c7; }
.banner.blue { background: linear-gradient(135deg, #1f2bd1, #0d1693); color: #fff; }
.hscroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.hscroll > * { scroll-snap-align: start; flex: none; }
.code-block { background: #0d1035; color: #d9e1ff; border-radius: 10px; padding: 12px 14px; font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px; overflow-x: auto; white-space: pre; line-height: 1.5; }
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { background: radial-gradient(1200px 600px at 10% 10%, #2a2fe0 0%, #141870 45%, #0a0d33 100%); color: #fff; padding: 48px;
  display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-art h1 { font-size: 40px; line-height: 1.1; margin: 0 0 14px; letter-spacing: -.02em; }
.login-art p { color: #c8cdfd; font-size: 15px; max-width: 460px; line-height: 1.55; }
.login-art .feat { display: flex; gap: 10px; align-items: center; color: #e3e6ff; margin-top: 10px; }
.login-form { display: grid; place-items: center; padding: 30px; background: #fff; }
.login-form form { width: min(360px, 100%); display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 860px) { .login-wrap { grid-template-columns: 1fr; } .login-art { display: none; } }

.print-only { display: none; }
@media print {
  .hdr, .menu, .scrim, .toolbar, .no-print, .toasts, .drawer-scrim, .modal-scrim { display: none !important; }
  .print-only { display: block; }
  body { background: #fff; }
}

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideL { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes slideR { from { transform: translateX(100%); } to { transform: none; } }
@keyframes pop { from { transform: scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rot { to { transform: rotate(360deg); } }
