:root { --ink:#16202e; --muted:#64708a; --line:#e3e7ee; --bg:#f6f7f9; --card:#fff; --accent:#1f4fd8;
  --accent-ink:#fff; --ok:#147a4b; --ok-bg:#e6f5ec; --bad:#b3261e; --bad-bg:#fdecea; --warn-bg:#fff6dd; --warn:#7a5600; }
* { box-sizing:border-box; }
body { margin:0; font:15px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; color:var(--ink); background:var(--bg); }
a { color:var(--accent); text-decoration:none; } a:hover { text-decoration:underline; }
.shell { display:grid; grid-template-columns:232px 1fr; min-height:100vh; }
.side { background:#101826; color:#c9d2e3; padding:20px 14px; display:flex; flex-direction:column; gap:4px; }
.brand { color:#fff; font-weight:700; font-size:17px; letter-spacing:.2px; padding:4px 10px 18px; }
.side a { color:inherit; padding:9px 10px; border-radius:8px; display:block; }
.side a:hover { background:#1b2638; text-decoration:none; } .side a.on { background:#24324a; color:#fff; }
.side .foot { margin-top:auto; font-size:13px; color:#8d99b0; padding:10px; overflow-wrap:anywhere; }
.linkbtn { background:none; border:0; color:inherit; font:inherit; padding:0; cursor:pointer; }
.linkbtn.on { color:#fff; font-weight:700; }
main { padding:28px 32px 60px; max-width:1500px; width:100%; min-width:0; }
h1 { font-size:24px; margin:0 0 4px; } h2 { font-size:17px; margin:0 0 12px; }
.sub { color:var(--muted); margin:0 0 22px; }
.head > div { min-width:0; } .sub .tag { margin-top:4px; }
.head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; flex-wrap:wrap; }
.card { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:20px; margin-bottom:20px; }
.stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:14px; margin-bottom:20px; }
.stat { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:16px 18px; }
.stat b { display:block; font-size:26px; font-variant-numeric:tabular-nums; } .stat span { color:var(--muted); font-size:13px; }
.scroll { overflow-x:auto; }
table { width:100%; border-collapse:collapse; font-size:14px; }
td small { display:block; color:var(--muted); font-size:12px; }
th { text-align:left; font-weight:600; color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.4px;
  padding:9px 8px; border-bottom:1px solid var(--line); }
td:first-child:not(:has(input)) { min-width:140px; }
td { padding:10px 8px; border-bottom:1px solid var(--line); vertical-align:middle; } tr:last-child td { border-bottom:0; }
.num { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; } th.num { white-space:normal; vertical-align:bottom; } .neg { color:var(--bad); }
.strong { font-weight:700; }
.tag { display:inline-block; padding:2px 9px; border-radius:999px; font-size:12px; font-weight:600; background:#e9edf5; color:#33415c; }
.tag.ok { background:var(--ok-bg); color:var(--ok); } .tag.bad { background:var(--bad-bg); color:var(--bad); }
.tag.warn { background:var(--warn-bg); color:var(--warn); } .tag.plat { text-transform:uppercase; letter-spacing:.5px; }
.btn { display:inline-block; background:var(--accent); color:var(--accent-ink); border:0; border-radius:8px; padding:9px 16px;
  font:inherit; font-weight:600; cursor:pointer; } .btn:hover { filter:brightness(1.08); text-decoration:none; }
.btn.ghost { background:#fff; color:var(--ink); border:1px solid var(--line); } .btn.danger { background:#fff; color:var(--bad); border:1px solid #f1c4c0; }
.btn.small { padding:6px 11px; font-size:13px; }
label { display:block; font-size:13px; font-weight:600; margin-bottom:5px; }
input[type=text],input[type=email],input[type=password],input[type=file],input[type=tel],input[type=date],select { width:100%; padding:9px 11px;
  border:1px solid #cfd6e2; border-radius:8px; font:inherit; background:#fff; }
input:focus,select:focus,.btn:focus-visible { outline:2px solid var(--accent); outline-offset:1px; }
.form { display:grid; gap:14px; max-width:460px; } .row { display:flex; gap:10px; align-items:flex-end; flex-wrap:wrap; }
.row > div { flex:1; min-width:150px; } .inline { display:flex; gap:6px; align-items:center; } .inline input { width:auto; min-width:0; }
.flash { padding:11px 14px; border-radius:8px; margin-bottom:14px; background:var(--ok-bg); color:var(--ok); }
.flash.error { background:var(--bad-bg); color:var(--bad); } .flash.secret { background:var(--warn-bg); color:var(--warn); font-weight:600; }
.summary { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px 18px; margin-bottom:16px; }
.summary div span { display:block; color:var(--muted); font-size:12px; } .summary div b { font-variant-numeric:tabular-nums; font-size:16px; }
.summary .hl b { font-size:20px; }
.login { max-width:380px; margin:12vh auto; padding:0 16px; }
.empty { color:var(--muted); padding:18px 4px; }
@media (max-width:780px) { .shell { grid-template-columns:minmax(0,1fr); } .side { flex-direction:row; flex-wrap:wrap; padding:10px; }
  .brand { width:100%; padding-bottom:6px; } .side .foot { margin:0; width:100%; } main { padding:18px 14px 40px; } }
.note { padding:12px 0; border-bottom:1px solid var(--line); } .note:last-child { border-bottom:0; }
.note small { display:block; color:var(--muted); font-size:12px; } .note p { margin:6px 0 0; white-space:pre-line; }
textarea { width:100%; padding:9px 11px; border:1px solid #cfd6e2; border-radius:8px; font:inherit; min-height:110px; }
a.stat { color:inherit; } a.stat:hover { text-decoration:none; border-color:#b9c3d6; }
.langs { gap:10px; } .langs form { margin:0; }
.loginlang { margin-top:14px; } .loginlang .langs { justify-content:center; }
.loginlang .linkbtn.on { color:#111827; }
.steps { margin:0 0 18px; padding-left:20px; color:#33415c; } .steps li { margin-bottom:6px; }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.inline select { width:auto; min-width:160px; }
fieldset.opt { border:1px solid #dfe4ee; border-radius:10px; padding:14px 16px 4px; margin:0; display:grid; gap:14px; }
fieldset.opt legend { font-size:12px; font-weight:700; letter-spacing:.4px; text-transform:uppercase; color:#5b6781; padding:0 6px; }

/* ------------------------------------------------------------------ Theme
   Same ink-and-gold identity as zalinternational.com. Everything below restyles the
   components defined above; no page markup depends on it. */
:root { --ink:#0B1220; --muted:#5E6A82; --line:#E4E8F0; --bg:#F3F5F9; --card:#fff; --accent:#0B1220; --accent-ink:#fff;
  --gold:#E7C766; --gold-deep:#A8842A; --ok:#0F7A4D; --ok-bg:#E3F6EC; --bad:#B4271F; --bad-bg:#FDECEA; --warn:#7A5600; --warn-bg:#FFF4D6;
  --shadow:0 1px 2px rgba(11,18,32,.04), 0 8px 24px -12px rgba(11,18,32,.12); }
body { background:var(--bg); -webkit-font-smoothing:antialiased; }
body.app { background:linear-gradient(180deg,#EEF1F7 0,#F3F5F9 220px); }
a { color:#1D4ED8; }

/* Sidebar */
.side { background:linear-gradient(180deg,#0A0F1C 0,#0E1627 55%,#101B30 100%); color:#B8C2D6; padding:22px 14px; border-right:1px solid #050810;
  position:sticky; top:0; height:100vh; overflow-y:auto; }
.brand { display:flex; align-items:center; gap:11px; font-size:16px; letter-spacing:-.01em; padding:2px 8px 22px; margin-bottom:6px;
  border-bottom:1px solid rgba(255,255,255,.08); }
.brand .mark { flex:none; }
.side a { position:relative; padding:9px 12px; border-radius:9px; font-weight:500; transition:background-color .15s, color .15s; }
.side a:hover { background:rgba(255,255,255,.06); color:#fff; }
.side a.on { background:rgba(231,199,102,.12); color:#fff; }
.side a.on::before { content:""; position:absolute; left:-14px; top:8px; bottom:8px; width:3px; border-radius:0 3px 3px 0; background:var(--gold); }
.side .foot { border-top:1px solid rgba(255,255,255,.08); padding-top:14px; color:#8794AD; }
.linkbtn.on { color:var(--gold); }

/* Page furniture */
main { padding:30px 36px 64px; }
h1 { font-size:26px; letter-spacing:-.02em; } h2 { font-size:16px; letter-spacing:-.005em; }
.card { border-radius:14px; padding:22px; box-shadow:var(--shadow); border-color:#E7EAF1; }
.stats { gap:16px; }
.stat { position:relative; overflow:hidden; border-radius:14px; padding:18px 20px 18px 22px; box-shadow:var(--shadow); border-color:#E7EAF1; }
.stat::before { content:""; position:absolute; inset:0 auto 0 0; width:4px; background:var(--gold); }
.stat:nth-child(4n+2)::before { background:#3B82F6; } .stat:nth-child(4n+3)::before { background:#10B981; } .stat:nth-child(4n+4)::before { background:#F97316; }
.stat b { font-size:28px; letter-spacing:-.02em; } .stat span { font-size:12.5px; text-transform:uppercase; letter-spacing:.5px; }

/* Tables */
th { background:#F7F8FB; color:#55617A; border-bottom:1px solid var(--line); padding:10px 10px; }
th:first-child { border-radius:8px 0 0 8px; } th:last-child { border-radius:0 8px 8px 0; }
td { padding:11px 10px; border-bottom-color:#EEF1F6; }
tr:hover td { background:#FAFBFD; }
td a { font-weight:600; }
.strong { color:var(--ink); }

/* Tags */
.tag { padding:3px 10px; background:#EAEEF6; color:#34425E; }
.tag.plat { font-size:11px; letter-spacing:.6px; }
.tag.p-glovo { background:#FFF1CC; color:#7A5200; } .tag.p-bolt { background:#DDF6E8; color:#0B6B40; }
.tag.p-wolt { background:#DCEEFF; color:#0B4F8A; } .tag.p-uber { background:#E6E8EC; color:#111827; }

/* Buttons and inputs */
.btn { border-radius:9px; padding:9px 17px; box-shadow:0 1px 0 rgba(255,255,255,.08) inset, 0 6px 16px -8px rgba(11,18,32,.5);
  transition:transform .15s, box-shadow .15s, background-color .15s; }
.btn:hover { filter:none; background:#16233B; transform:translateY(-1px); }
.btn.ghost { box-shadow:none; border-color:#D5DBE7; } .btn.ghost:hover { background:#F6F8FC; border-color:#B9C3D6; }
.btn.danger { box-shadow:none; } .btn.danger:hover { background:#FFF5F4; }
.btn[disabled] { opacity:.45; cursor:not-allowed; transform:none; }
input[type=text],input[type=email],input[type=password],input[type=file],input[type=tel],input[type=date],select { border-color:#D2D9E6; border-radius:9px; padding:10px 12px; transition:border-color .15s, box-shadow .15s; }
input:focus,select:focus { outline:0; border-color:var(--gold-deep); box-shadow:0 0 0 3px rgba(231,199,102,.35); }
.btn:focus-visible, a:focus-visible, .linkbtn:focus-visible { outline:3px solid var(--gold); outline-offset:2px; }
.flash { border-radius:10px; border:1px solid rgba(15,122,77,.18); } .flash.error { border-color:rgba(180,39,31,.2); }

/* Money summary on a report */
.summary { gap:0; border:1px solid #E7EAF1; border-radius:12px; overflow:hidden; background:#FAFBFD; }
.summary div { padding:14px 16px; border-right:1px solid #E7EAF1; }
.summary div:last-child { border-right:0; }
.summary div span { text-transform:uppercase; letter-spacing:.4px; font-size:11px; margin-bottom:4px; }
.summary div b { font-size:17px; }
.summary .hl { background:#0B1220; } .summary .hl span { color:#B8C2D6; } .summary .hl b { color:var(--gold); font-size:20px; }

/* Sign-in */
body.door { min-height:100vh; background:radial-gradient(1100px 600px at 20% -10%,#1B2B4B 0,transparent 60%), linear-gradient(160deg,#0A0F1C,#111C33); }
.door .login { margin:11vh auto; }
.loginbrand { display:flex; justify-content:center; margin-bottom:22px; }
.door .card { border:0; border-radius:18px; padding:30px; box-shadow:0 30px 80px -30px rgba(0,0,0,.7); }
.door .card h1 { font-size:22px; } .door .card .btn { width:100%; padding:12px; }
.door .loginlang .linkbtn { color:#8794AD; } .door .loginlang .linkbtn.on { color:var(--gold); }

@media (max-width:820px) { .side { position:static; height:auto; } main { padding:22px 18px 48px; } .summary div { border-right:0; border-bottom:1px solid #E7EAF1; } }
@media (prefers-reduced-motion: reduce) { .btn, .side a, input, select { transition:none; } .btn:hover { transform:none; } }

/* Table tools: search, sort, download */
.tablebar { display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.tablesearch { max-width:320px; width:100%; padding:9px 12px; border:1px solid #D2D9E6; border-radius:9px; font:inherit; background:#fff; }
.tablecount { color:var(--muted); font-size:13px; }
th.sortable { cursor:pointer; user-select:none; } th.sortable:hover { color:var(--ink); }
th[aria-sort=ascending]::after { content:" \25B2"; font-size:9px; color:var(--gold-deep); }
th[aria-sort=descending]::after { content:" \25BC"; font-size:9px; color:var(--gold-deep); }
.filters { display:flex; flex-wrap:wrap; gap:10px; align-items:flex-end; margin-bottom:16px; }
.filters > div { min-width:150px; } .filters select, .filters input { width:100%; }
tr.total th { background:#F1F3F8; }
.pills { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px; }
.pills a { padding:7px 14px; border-radius:999px; border:1px solid #D5DBE7; background:#fff; color:var(--ink); font-weight:600; font-size:13.5px; }
.pills a:hover { background:#F6F8FC; text-decoration:none; }
.pills a.on { background:var(--ink); border-color:var(--ink); color:#fff; }
.tag.plat { text-transform:none; letter-spacing:.2px; font-size:12px; }
.tag.p-boltfood { background:#E4F7D4; color:#2F6B12; }
input[type=month], input[type=number] { width:100%; padding:10px 12px; border:1px solid #D2D9E6; border-radius:9px; font:inherit; background:#fff; }
.empty { color:var(--muted); padding:18px 4px 6px; }
.doorhint { margin:16px 0 0; font-size:13px; }
