@font-face { font-family: Inter; font-weight: 400; src: url(./fonts/Inter-Regular.otf); font-display: swap; }
@font-face { font-family: Inter; font-weight: 500; src: url(./fonts/Inter-Medium.otf); font-display: swap; }
@font-face { font-family: Inter; font-weight: 600; src: url(./fonts/Inter-SemiBold.otf); font-display: swap; }
@font-face { font-family: Inter; font-weight: 700; src: url(./fonts/Inter-Bold.otf); font-display: swap; }

:root {
  --bg: #08090B; --card: #0E1013; --card-2: #15171B; --border: #22252A; --border-2: #30343B;
  --text: #ECEEF2; --muted: #9A9FAA; --faint: #686E79;
  --accent: #3478F6; --accent-2: #7CA7FF; --accent-soft: rgba(52, 120, 246, .15);
  --lime: #D4F875;
  --red: #F87171; --red-soft: rgba(248, 113, 113, .14); --amber: #FBBF24; --amber-soft: rgba(251, 191, 36, .14);
  --green: #4ADE80; --green-soft: rgba(74, 222, 128, .13); --blue: #60A5FA; --blue-soft: rgba(96, 165, 250, .14);
  --radius: 9px; --sidebar: 208px; --sidebar-c: 64px; --top: 58px;
}
:root[data-theme="light"] {
  --bg: #F3F4F6; --card: #FFFFFF; --card-2: #F7F8FA; --border: #E2E5E9; --border-2: #D0D5DC;
  --text: #20242A; --muted: #626A75; --faint: #858C96;
  --accent: #2563EB; --accent-2: #2563EB; --accent-soft: rgba(37, 99, 235, .09);
  --lime: #D4F875; --red: #DC2626; --amber: #B45309; --green: #15803D; --blue: #2563EB;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 400 14px/1.5 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 22px; } h2 { font-size: 16px; } h3 { font-size: 14px; }
a { color: var(--accent-2); text-decoration: none; } a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 12px; } .nowrap { white-space: nowrap; }
.right { text-align: right; } .mono { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
svg.i { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.app.collapsed { grid-template-columns: var(--sidebar-c) 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; background: var(--card); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 12px 10px; overflow: hidden; z-index: 30; }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 14px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.brand .logo { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; font-size: 13px; color: #fff; flex: none; }
.brand .logo b { color: var(--lime); }
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 8px; color: var(--muted); white-space: nowrap; position: relative; font-weight: 500; }
.nav a:hover { background: var(--card-2); color: var(--text); text-decoration: none; }
.nav a.active { background: var(--accent-soft); color: var(--text); }
.nav a.active::before { content: ""; position: absolute; left: -10px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.nav .badge { margin-left: auto; background: var(--red-soft); color: var(--red); border-radius: 10px; padding: 0 7px; font-size: 11px; font-weight: 600; }
.collapsed .nav a span, .collapsed .brand span, .collapsed .badge, .collapsed .side-foot span { display: none; }
.side-foot { border-top: 1px solid var(--border); padding-top: 8px; }
.side-foot button { width: 100%; display: flex; align-items: center; gap: 11px; padding: 8px 10px; border: 0; background: none; color: var(--muted); border-radius: 8px; cursor: pointer; }
.side-foot button:hover { background: var(--card-2); color: var(--text); }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; height: var(--top); display: flex; align-items: center; gap: 12px; padding: 0 24px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.topbar .menu { display: none; }
.search { position: relative; flex: 1; max-width: 420px; }
.search input { width: 100%; background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 7px 12px 7px 34px; outline: none; }
.search input:focus { border-color: var(--accent); }
.search svg { position: absolute; left: 11px; top: 9px; color: var(--faint); }
.results { position: absolute; top: 40px; left: 0; right: 0; background: var(--card); border: 1px solid var(--border-2); border-radius: 10px; max-height: 60vh; overflow: auto; box-shadow: 0 12px 32px rgba(0,0,0,.35); }
.results a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; color: var(--text); } .results a:hover { background: var(--card-2); text-decoration: none; }
.results h4 { padding: 8px 12px 2px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.spacer { flex: 1; }
.content { padding: 28px 28px 80px; width: 100%; max-width: 1180px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; } .g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g-main { grid-template-columns: 1.7fr 1fr; }

/* ---------- components ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.card-b { padding: 16px; }
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 8px; border: 1px solid var(--border-2); background: var(--card-2); cursor: pointer; font-weight: 500; white-space: nowrap; }
.btn:hover { border-color: var(--faint); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; } .btn.primary:hover { background: var(--accent-2); }
.btn.lime { background: var(--lime); border-color: var(--lime); color: #111; }
.btn.danger { color: var(--red); } .btn.danger:hover { background: var(--red-soft); border-color: var(--red); }
.btn.ghost { background: none; border-color: transparent; color: var(--muted); } .btn.ghost:hover { background: var(--card-2); color: var(--text); }
.btn.sm { padding: 4px 9px; font-size: 12px; } .btn.icon { padding: 6px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 20px; font-size: 11.5px; font-weight: 600; background: var(--card-2); color: var(--muted); border: 1px solid var(--border); white-space: nowrap; }
.pill.red { background: var(--red-soft); color: var(--red); border-color: transparent; } .pill.amber { background: var(--amber-soft); color: var(--amber); border-color: transparent; }
.pill.green { background: var(--green-soft); color: var(--green); border-color: transparent; } .pill.blue { background: var(--blue-soft); color: var(--blue); border-color: transparent; }
.pill.purple { background: var(--accent-soft); color: var(--accent-2); border-color: transparent; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field label { font-size: 12px; font-weight: 500; color: var(--muted); } .field .hint { font-size: 11.5px; color: var(--faint); }
.input, .field input:not([type=checkbox]), .field select, .field textarea, .filters input, .filters select { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; width: 100%; outline: none; min-height: 36px; }
.field input:focus, .field select:focus, .field textarea:focus, .filters input:focus, .filters select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { min-height: 80px; resize: vertical; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.check { display: flex; align-items: center; gap: 8px; } .check input { width: 16px; height: 16px; accent-color: var(--accent); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; } .filters > * { width: auto; min-width: 130px; } .filters .grow { flex: 1; min-width: 200px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 9px 14px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; font-weight: 500; white-space: nowrap; margin-bottom: -1px; }
.tabs button:hover { color: var(--text); } .tabs button.on { color: var(--text); border-color: var(--accent); }
.seg { display: inline-flex; border: 1px solid var(--border-2); border-radius: 8px; overflow: hidden; }
.seg button { background: var(--card); border: 0; padding: 6px 12px; cursor: pointer; color: var(--muted); font-weight: 500; } .seg button.on { background: var(--accent-soft); color: var(--text); } .seg button + button { border-left: 1px solid var(--border); }

table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); font-weight: 600; padding: 9px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.t td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; } table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr:hover { background: var(--card-2); } table.t tr.click { cursor: pointer; }
.tscroll { overflow-x: auto; }
.list > .item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); } .list > .item:last-child { border-bottom: 0; }
.item .grow { flex: 1; min-width: 0; } .item .title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.item.done .title { text-decoration: line-through; color: var(--faint); }
.circle { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--border-2); background: none; cursor: pointer; flex: none; display: grid; place-items: center; color: transparent; padding: 0; }
.circle:hover { border-color: var(--green); color: var(--green); } .circle.on { background: var(--green); border-color: var(--green); color: #052e16; }
.empty { text-align: center; padding: 44px 20px; color: var(--muted); } .empty h3 { color: var(--text); margin-bottom: 4px; } .empty .btn { margin-top: 14px; }
.clear { text-align: center; padding: 36px 20px; } .clear .big { font-size: 17px; font-weight: 600; } .clear .check-i { width: 42px; height: 42px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin: 0 auto 12px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; } .kv dt { color: var(--muted); font-size: 12.5px; } .kv dd { margin: 0; word-break: break-word; }
.stat { padding: 14px 16px; } .stat .n { font-size: 20px; font-weight: 600; margin-top: 2px; } .stat .l { color: var(--muted); font-size: 12px; }
.bar { height: 6px; border-radius: 4px; background: var(--card-2); overflow: hidden; } .bar > i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.bars .r { display: grid; grid-template-columns: 150px 1fr 90px; gap: 12px; align-items: center; padding: 6px 0; }
.alert { padding: 11px 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--card-2); }
.alert.warn { background: var(--amber-soft); border-color: transparent; color: var(--amber); } .alert.info { background: var(--blue-soft); border-color: transparent; color: var(--blue); }
.skeleton { height: 14px; border-radius: 4px; background: linear-gradient(90deg, var(--card-2), var(--border), var(--card-2)); background-size: 200% 100%; animation: sk 1.2s infinite; margin: 10px 0; } @keyframes sk { to { background-position: -200% 0; } }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent-2); cursor: pointer; } .link-btn:hover { text-decoration: underline; }
.menu-pop { position: absolute; right: 0; top: 38px; min-width: 200px; background: var(--card); border: 1px solid var(--border-2); border-radius: 10px; padding: 5px; z-index: 40; box-shadow: 0 12px 32px rgba(0,0,0,.35); }
.menu-pop button { display: flex; width: 100%; gap: 9px; align-items: center; padding: 8px 10px; border: 0; background: none; border-radius: 7px; cursor: pointer; text-align: left; } .menu-pop button:hover { background: var(--card-2); }
.rel { position: relative; }

/* ---------- modal + toast ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.62); z-index: 100; display: grid; place-items: start center; padding: 6vh 16px; overflow-y: auto; }
.modal { background: var(--card); border: 1px solid var(--border-2); border-radius: 14px; width: 100%; max-width: 560px; } .modal.wide { max-width: 760px; }
.modal-h { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); } .modal-b { padding: 20px; } .modal-f { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--border); }
.form-error { background: var(--red-soft); color: var(--red); padding: 9px 12px; border-radius: 8px; margin-bottom: 14px; }
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--card-2); border: 1px solid var(--border-2); border-left: 3px solid var(--accent); padding: 10px 14px; border-radius: 8px; min-width: 220px; max-width: 380px; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.toast.err { border-left-color: var(--red); } .toast.ok { border-left-color: var(--green); }

/* ---------- home / cards ---------- */
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.task-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.reason.red { color: var(--red); } .reason.amber { color: var(--amber); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; } .dot.Urgent { background: var(--red); } .dot.High { background: var(--amber); } .dot.Medium { background: var(--blue); } .dot.Low { background: var(--faint); }
.linkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.lk { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); color: var(--text); position: relative; }
.lk:hover { border-color: var(--accent); text-decoration: none; } .lk .ic { width: 34px; height: 34px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-2); display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none; }
.lk .acts { position: absolute; top: 6px; right: 6px; display: none; gap: 2px; } .lk:hover .acts { display: flex; } .lk.drag { opacity: .4; } .lk .pin { color: var(--lime); }
.cat-h { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin: 22px 0 10px; font-weight: 600; }

/* ---------- calendar ---------- */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.cal .dh { padding: 8px; font-size: 11.5px; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--border); font-weight: 600; }
.cal .cell { min-height: 104px; padding: 6px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); cursor: pointer; min-width: 0; } .cal .cell:nth-child(7n) { border-right: 0; } .cal .cell:hover { background: var(--card-2); }
.cal .cell.out { opacity: .4; } .cal .cell.today .num { background: var(--accent); color: #fff; } .num { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 11px; font-size: 12px; padding: 0 4px; }
.chip { display: block; font-size: 11.5px; padding: 1px 6px; margin-top: 3px; border-radius: 4px; background: var(--accent-soft); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip.task { background: var(--blue-soft); } .chip.over { background: var(--red-soft); color: var(--red); } .chip.done { opacity: .55; text-decoration: line-through; }
.timeline { position: relative; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.tl-row { display: grid; grid-template-columns: 56px 1fr; min-height: 48px; border-bottom: 1px solid var(--border); } .tl-row:last-child { border-bottom: 0; } .tl-row .hr { padding: 6px 8px; font-size: 11.5px; color: var(--faint); border-right: 1px solid var(--border); }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; } .week .col { min-height: 220px; } .week .col h4 { font-size: 12px; margin-bottom: 8px; color: var(--muted); } .week .col.today h4 { color: var(--accent-2); }
.logitem { padding: 8px 10px; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 8px; background: var(--card); margin-bottom: 8px; cursor: pointer; } .logitem:hover { border-color: var(--accent); }
.logitem.Interrupted { border-left-color: var(--amber); } .logitem.Partial { border-left-color: var(--blue); }
.gap { border: 1px dashed var(--border-2); border-radius: 8px; padding: 9px 12px; margin: 8px 0; background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(255,255,255,.015) 8px 16px); }

/* ---------- chat ---------- */
.chat { display: flex; flex-direction: column; height: calc(100vh - var(--top) - 150px); min-height: 420px; }
.chat-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 12px; white-space: pre-wrap; word-break: break-word; } .msg.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 3px; }
.msg.bot { align-self: flex-start; background: var(--card-2); border: 1px solid var(--border); border-bottom-left-radius: 3px; } .msg.bot.err { border-color: var(--red); } .msg.bot.done { border-color: var(--green); }
.msg .rows { margin-top: 8px; display: flex; flex-direction: column; gap: 2px; } .msg .rows a { display: flex; justify-content: space-between; gap: 14px; padding: 5px 8px; background: var(--bg); border-radius: 6px; color: var(--text); }
.msg .acts { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.chat-in { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--border); } .chat-in input { flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; outline: none; } .chat-in input:focus { border-color: var(--accent); }
.suggest { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 18px 12px; }
.suggest > * { max-width: 100%; white-space: normal; text-align: left; height: auto; }

/* ---------- invoice paper ---------- */
.paper { background: #fff; color: #18181B; border-radius: 8px; padding: 40px; max-width: 800px; margin: 0 auto; font-size: 13px; }
.paper h1 { color: #7C3AED; font-size: 26px; text-align: right; } .paper .ph { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid #E4E4E7; padding-bottom: 18px; margin-bottom: 18px; }
.paper table { width: 100%; border-collapse: collapse; margin: 18px 0; } .paper th { background: #F4F4F5; color: #71717A; font-size: 11px; text-align: left; padding: 8px 10px; text-transform: uppercase; } .paper td { padding: 9px 10px; border-bottom: 1px solid #E4E4E7; } .paper .r { text-align: right; }
.paper .tot { margin-left: auto; width: 300px; } .paper .tot div { display: flex; justify-content: space-between; padding: 4px 0; } .paper .tot .g { font-weight: 700; font-size: 15px; border-top: 1px solid #E4E4E7; margin-top: 6px; padding-top: 8px; }
.paper .m { color: #71717A; } .paper small { color: #71717A; display: block; text-transform: uppercase; font-size: 10.5px; font-weight: 600; margin: 16px 0 3px; }
.items-edit .li { display: grid; grid-template-columns: 1fr 80px 110px 110px 34px; gap: 8px; align-items: start; margin-bottom: 8px; } .items-edit input { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; width: 100%; min-height: 36px; outline: none; } .items-edit input:focus { border-color: var(--accent); }
.items-edit .item-copy { display: grid; gap: 6px; min-width: 0; }
.items-edit .item-detail { color: var(--muted); font-size: 12px; }
.invoice-recipient-fields { display: grid; gap: 10px; margin-top: 18px; padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
.invoice-recipient-fields h3 { margin: 0; font-size: 14px; }
.invoice-client-company { color: #656B72; font-size: 12px; line-height: 1.5; }
.li-mobile-label { display: none; }
.totals-box { margin-left: auto; width: 300px; max-width: 100%; } .totals-box div { display: flex; justify-content: space-between; padding: 4px 0; } .totals-box .g { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 8px; font-weight: 700; font-size: 16px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) { .g-main, .g3 { grid-template-columns: 1fr; } .week { grid-template-columns: 1fr; } .bars .r { grid-template-columns: 110px 1fr 80px; } }
@media (max-width: 760px) {
  .app, .app.collapsed { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; width: 250px; transform: translateX(-100%); transition: transform .18s; } .app.open .sidebar { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.55); }
  .collapsed .nav a span, .collapsed .brand span { display: inline; } .collapsed .badge { display: inline; }
  .topbar { padding: 0 14px; } .topbar .menu { display: inline-flex; } .content { padding: 18px 14px 80px; } .g2 { grid-template-columns: 1fr; }
  .items-edit .li { grid-template-columns: 1fr 1fr; } .items-edit .li .item-copy { grid-column: 1 / -1; } .items-edit .li .line-amount { display: flex; justify-content: space-between; text-align: left; } .li-mobile-label { display: inline; color: var(--muted); font: inherit; } .kv { grid-template-columns: 100px 1fr; }
  .cal .cell { min-height: 64px; } .cal .chip { font-size: 0; padding: 2px; height: 6px; } .paper { padding: 18px; } .msg { max-width: 94%; }
  .hide-sm { display: none; }
}
@media print {
  body { background: #fff; } .sidebar, .topbar, .toasts, .no-print, .page-head { display: none !important; } .app { display: block; } .content { padding: 0; max-width: none; }
  .paper { box-shadow: none; padding: 0; max-width: none; } .card { border: 0; background: none; }
}

/* ---------- compact dark product dashboard ---------- */
body {
  background: var(--bg);
  letter-spacing: 0;
}
:root[data-theme="light"] body {
  background: var(--bg);
}
.sidebar { background: color-mix(in srgb, var(--card) 72%, var(--bg)); padding: 14px 10px; }
.brand { padding: 4px 8px 18px; font-size: 14px; letter-spacing: -.02em; }
.brand .logo { width: 28px; height: 28px; border-radius: 7px; background: var(--accent); box-shadow: none; }
.brand .logo b { color: #DCE8FF; }
.nav { gap: 2px; }
.nav a { min-height: 35px; padding: 7px 9px; border-radius: 7px; font-size: 12px; }
.nav a.active { background: color-mix(in srgb, var(--accent-soft) 54%, var(--card)); color: var(--text); }
.nav a.active::before { left: -10px; top: 8px; bottom: 8px; width: 2px; }
.nav a.active svg { color: var(--accent-2); }
.topbar { height: 58px; padding-inline: 22px; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); }
.search { max-width: 420px; }
.search input { min-height: 34px; background: #111317; border-color: var(--border); border-radius: 7px; font-size: 12px; }
.content { max-width: 1440px; padding: 26px 28px 72px; }
.page-head { align-items: center; margin-bottom: 24px; }
.page-head { margin-bottom: 20px; }
.page-head h1 { font-size: clamp(23px, 1.8vw, 27px); letter-spacing: -.035em; }
.page-head p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.grid { gap: 14px; }
.card { border-color: var(--border); border-radius: 9px; box-shadow: none; overflow: hidden; }
.card-h { min-height: 46px; padding: 12px 14px; background: color-mix(in srgb, var(--card) 76%, var(--card-2)); }
.card-h h2 { font-size: 13px; letter-spacing: 0; }
.card-b { padding: 15px; }
.btn { min-height: 32px; border-radius: 7px; transition: background .14s ease, border-color .14s ease; }
.btn:hover { transform: none; }
.btn.primary { background: #3478F6; border-color: #3478F6; box-shadow: none; }
.btn.primary:hover { background: #2869E3; }
.btn.lime { background: #3478F6; border-color: #3478F6; color: #fff; }
.pill { padding: 2px 7px; border-radius: 5px; font-size: 10.5px; }
.field input:not([type=checkbox]), .field select, .field textarea, .filters input, .filters select { border-radius: 7px; }
.filters { gap: 7px; }
.tabs button { padding: 9px 12px; }
.list > .item { padding: 10px 14px; }
.list > .item:hover { background: color-mix(in srgb, var(--card-2) 60%, transparent); }
.grid.g-main { grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); }
.grid.g-main > .card:first-child { min-height: 230px; }
.grid.g-main > .card:first-child .clear { padding: 48px 24px; }
.clear .check-i { width: 44px; height: 44px; background: var(--green-soft); color: var(--green); }
.clear .big { font-size: 16px; letter-spacing: -.01em; }
.grid.g-main > .card:nth-child(2) .empty { padding: 38px 24px; }
.grid.g-main .list > .item { gap: 13px; }
.grid.g-main .item .title { color: var(--text); }
/* Keep the existing Tasks list and controls, while presenting each task as a compact board tile. */
.content .card.list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 9px;
  overflow: visible;
  border: 0;
  background: transparent;
}
.content .card.list > .item {
  min-width: 0;
  min-height: 102px;
  align-items: flex-start;
  gap: 9px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
}
.content .card.list > .item:hover { border-color: var(--border-2); background: var(--card-2); }
.content .card.list .title { white-space: normal; line-height: 1.4; }
.content .card.list .task-meta { gap: 6px; font-size: 11px; }
.content .card.list .btn.icon { opacity: .62; }
.content .card.list > .item:hover .btn.icon, .content .card.list .btn.icon:focus-visible { opacity: 1; }
.stat { padding: 14px 15px; }
.stat .n { font-size: 21px; letter-spacing: -.02em; }
.lk { border-radius: 8px; transition: border-color .14s ease, background .14s ease; }
.lk:hover { background: var(--card-2); box-shadow: none; }
.overlay { backdrop-filter: blur(3px); }
.modal { border-radius: 10px; box-shadow: 0 18px 55px rgba(0, 0, 0, .42); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.btn:focus-visible, .nav a:focus-visible, .search input:focus-visible { outline-offset: 3px; }
@media (max-width: 960px) {
  .grid.g-main { grid-template-columns: 1fr; }
  .content .card.list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .topbar { height: 58px; padding-inline: 12px; }
  .content { padding: 20px 14px 64px; }
  .page-head { margin-bottom: 19px; }
  .card-h { padding-inline: 13px; }
}
@media (max-width: 560px) {
  .content .card.list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Floating capsule navigation based on the supplied reference. */
.sidebar .brand { display: none; }
.app, .app.collapsed { grid-template-columns: minmax(0, 1fr); }
.main { padding-bottom: calc(102px + env(safe-area-inset-bottom, 0px)); }
.sidebar {
  position: fixed;
  top: auto;
  left: 50%;
  right: auto;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: min(calc(100vw - 64px), 1180px);
  height: 76px;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  overflow: hidden;
  background: rgba(12, 13, 15, .97);
  border: 1px solid #34363B;
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .38), inset 0 1px rgba(255, 255, 255, .055);
  transform: translateX(-50%);
  transition: none;
}
.app.open .sidebar { transform: translateX(-50%); }
.brand { flex: none; gap: 8px; padding: 0 8px 0 3px; font-size: 12px; }
.brand span { display: none; }
.brand .logo { width: 42px; height: 42px; border-radius: 50%; background: #F4F5F6; color: #17181B; font-size: 15px; }
.brand .logo b { color: #17181B; }
.nav {
  flex: 1;
  min-width: 0;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  position: relative;
  flex: 0 0 auto;
  min-width: 0;
  min-height: 50px;
  flex-direction: row;
  justify-content: center;
  gap: 0;
  padding: 0 17px;
  border-radius: 999px;
  color: #C5C7CC;
  font-size: 15px;
  line-height: 1;
  text-align: center;
}
.nav a svg { display: none; width: 16px; height: 16px; }
.nav a.active { background: #27292D; color: #FFFFFF; }
.nav a.active::before { display: none; }
.nav .badge { position: absolute; top: 0; right: 3px; margin: 0; padding: 0 4px; font-size: 9px; }
.side-foot { flex: none; border: 0; padding: 0; }
.side-foot button { width: 42px; height: 42px; justify-content: center; padding: 5px; border-radius: 50%; }
.side-foot button:hover { background: #27292D; color: #FFFFFF; }
.side-foot button span { display: none; }
.app.collapsed .nav a span { display: none; }
.app.collapsed .nav a { flex: 0 0 36px; padding: 0; }
.app.collapsed .nav a svg { display: block; }
.topbar { display: none !important; }
@media (max-width: 760px) {
  .sidebar {
    left: 50%;
    right: auto;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    width: calc(100vw - 20px);
    height: 56px;
    padding: 4px 6px;
    transform: translateX(-50%);
  }
  .app.open .sidebar { transform: translateX(-50%); }
  .brand { padding-right: 2px; }
  .brand .logo { width: 30px; height: 30px; }
  .nav { justify-content: flex-start; }
  .nav a { flex: 0 0 auto; min-width: max-content; min-height: 36px; padding-inline: 9px; font-size: 10px; }
  .app.collapsed .nav a { flex: 0 0 34px; min-width: 34px; }
  .side-foot button { width: 30px; height: 30px; }
  .main { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}

/* Give Home more presence by expanding its existing header and attention panels. */
.content > div > .page-head {
  display: flex;
  min-height: 104px;
  align-items: center;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: linear-gradient(105deg, color-mix(in srgb, var(--accent) 11%, var(--card)), var(--card) 68%);
}
.content > div > .page-head h1 { font-size: 32px; }
.content > div > .page-head p { font-size: 14px; }
.home-page .grid.g-main {
  min-height: clamp(420px, calc(100vh - 336px), 960px);
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 1fr);
  align-items: stretch;
  gap: 18px;
}
.home-page .grid.g-main > .card { display: flex; flex-direction: column; }
.home-page .grid.g-main > .card > .list { flex: 1; }
.home-page .grid.g-main > .card:first-child > .clear,
.home-page .grid.g-main > .card:nth-child(2) > .empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.home-page .grid.g-main > .card:first-child > .clear { padding: 40px 24px; }
.home-page .grid.g-main > .card:nth-child(2) > .empty { padding: 32px 24px; }
@media (max-width: 960px) {
  .home-page .grid.g-main { min-height: 0; grid-template-columns: 1fr; }
  .home-page .grid.g-main > .card { min-height: 300px; }
}
@media (max-width: 760px) {
  .content > div > .page-head { min-height: 84px; padding: 15px 16px; }
  .content > div > .page-head h1 { font-size: 27px; }
  .home-page .grid.g-main > .card { min-height: 260px; }
}

.service-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.service-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 4px 7px 4px 12px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: var(--card-2);
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
}
.service-remove {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.service-remove:hover { background: var(--red-soft); color: var(--red); }
.service-remove svg { width: 13px; height: 13px; }
.service-empty { padding: 20px 12px; }

/* Tasks page filter bar */
.task-filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1.05fr) minmax(0, 2.4fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: color-mix(in srgb, var(--card) 78%, var(--card-2));
}
.task-filter-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--border-2);
  border-radius: 8px;
  background: var(--bg);
  color: var(--faint);
  transition: border-color .14s ease, box-shadow .14s ease;
}
.task-filter-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.task-filter-search svg { width: 17px; height: 17px; }
.task-filter-search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}
.task-filter-search input:focus { box-shadow: none; }
.task-filter-search input::placeholder { color: var(--faint); }
.task-filter-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; min-width: 0; }
.task-filter-field { display: block; min-width: 0; }
.task-filter-field > span { display: none; }
.task-filter-options select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 31px 0 12px;
  border: 1px solid var(--border-2);
  border-radius: 8px;
  outline: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}
.task-filter-options select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
@media (max-width: 1120px) {
  .task-filter-panel { grid-template-columns: 1fr; }
  .task-filter-options { grid-template-columns: repeat(4, minmax(120px, 1fr)); }
}
@media (max-width: 760px) {
  .task-filter-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 13px;
  }
  .task-filter-search { height: 48px; border-radius: 10px; }
  .task-filter-search input { font-size: 15px; }
  .task-filter-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .task-filter-field > span {
    display: block;
    margin: 0 0 4px 2px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
  }
  .task-filter-options select { min-height: 44px; padding-left: 10px; font-size: 13px; }
}
@media (max-width: 420px) {
  .task-filter-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .task-filter-options select { padding-right: 23px; font-size: 12px; }
}

/* Desktop sidebar and mobile icon dock */
@media (min-width: 761px) {
  .app, .app.collapsed { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
  .app.collapsed { grid-template-columns: var(--sidebar-c) minmax(0, 1fr); }
  .sidebar {
    position: sticky;
    inset: 0 auto auto;
    width: auto;
    height: 100vh;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 10px;
    overflow: hidden;
    background: color-mix(in srgb, var(--card) 72%, var(--bg));
    border: 0;
    border-right: 1px solid var(--border);
    border-radius: 0;
    box-shadow: none;
    transform: none;
  }
  .app.open .sidebar { transform: none; }
  .sidebar .brand { display: flex; }
  .sidebar .brand { height: 62px; justify-content: center; padding: 0 4px 12px; overflow: hidden; }
  .brand-image { display: block; width: 180px; height: 57px; flex: none; object-fit: cover; object-position: left center; }
  .app.collapsed .brand-image { width: 44px; height: 50px; object-fit: cover; object-position: left center; }
  .brand span { display: inline; }
  .nav {
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 3px;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .nav a {
    flex: 0 0 auto;
    min-width: 0;
    min-height: 43px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 11px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 14px;
    text-align: left;
  }
  .nav a svg { display: block; width: 18px; height: 18px; }
  .app.collapsed .nav a { flex: 0 0 42px; justify-content: center; padding: 0; }
  .nav a.active::before { display: block; left: -10px; top: 8px; bottom: 8px; width: 2px; }
  .side-foot { flex: none; border-top: 1px solid var(--border); padding-top: 8px; }
  .side-foot button { width: 100%; height: auto; justify-content: flex-start; padding: 9px 10px; border-radius: 8px; }
  .side-foot button span { display: inline; }
  .main { padding-bottom: 0; }
}
@media (max-width: 760px) {
  .sidebar {
    top: auto;
    left: 50%;
    right: auto;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    width: calc(100vw - 20px);
    height: 64px;
    flex-direction: row;
    align-items: center;
    padding: 5px 8px;
    border-radius: 20px;
    transform: translateX(-50%);
  }
  .app.open .sidebar { transform: translateX(-50%); }
  .sidebar .brand, .side-foot { display: none; }
  .nav {
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    gap: 2px;
    overflow: visible;
  }
  .nav a {
    flex: 1 1 0;
    min-width: 0;
    min-height: 48px;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding: 4px 2px;
    border-radius: 13px;
  }
  .nav a > span:not(.badge) { display: none; }
  .nav a svg { display: block; width: 22px; height: 22px; }
  .nav a.active::before { display: none; }
  .nav a.active { background: var(--accent-soft); color: var(--accent-2); }
  .nav .badge { top: 2px; right: calc(50% - 18px); }
  .main { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
}

/* Keep page headers focused on their titles; Home keeps its date subtitle. */
.page-head p { display: none; }
.home-page .page-head p { display: block; }

/* Invoice preview and print layout */
.invoice-paper { max-width: 850px; padding: 42px; color: #17191B; font-size: 13px; }
.invoice-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 22px; border-bottom: 1px solid #DDE0E3; }
.invoice-brand { display: flex; align-items: center; gap: 15px; min-width: 0; max-width: 58%; }
.invoice-brand img { width: 230px; height: 84px; flex: none; object-fit: contain; object-position: left center; }
.invoice-brand-name { color: #101113; font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; line-height: 1.05; letter-spacing: -.045em; text-transform: uppercase; }
.invoice-contact-list { display: grid; gap: 5px; max-width: 42%; color: #555B62; font-size: 12px; text-align: right; overflow-wrap: anywhere; }
.invoice-heading { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: center; padding: 30px 0 28px; }
.invoice-heading-title small, .invoice-party > small { display: block; color: #595E64; font-size: 10px; font-weight: 600; letter-spacing: .2em; }
.invoice-heading-title { text-align: left; }
.invoice-heading-title h1 { margin: 3px 0 1px; color: #101113; font-size: clamp(42px, 5vw, 58px); font-weight: 700; line-height: 1; letter-spacing: -.06em; text-align: left; }
.invoice-heading-title p { margin: 7px 0 12px; color: #6B7076; font-size: 15px; }
.invoice-accent { display: block; width: 38px; height: 4px; margin-left: 0; border-radius: 3px; background: #B7EF35; }
.invoice-meta-list { display: grid; gap: 9px; padding: 8px 0 8px 24px; border-left: 1px solid #CFD3D7; }
.invoice-meta-row { display: grid; grid-template-columns: minmax(78px, 1fr) auto; gap: 10px; align-items: center; font-size: 12px; }
.invoice-meta-row span { color: #777D84; }
.invoice-meta-row strong { color: #17191B; font-weight: 500; text-align: right; }
.invoice-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin: 1px 0 28px; }
.invoice-party { min-width: 0; }
.invoice-party + .invoice-party { padding-left: 30px; border-left: 1px solid #CFD3D7; }
.invoice-party h2 { margin: 6px 0 4px; color: #17191B; font-size: 17px; font-weight: 700; }
.invoice-party > div:not(:first-child) { color: #656B72; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.invoice-table-scroll { width: 100%; overflow-x: auto; border: 1px solid #E0E3E6; border-radius: 7px; }
.invoice-table { width: 100%; min-width: 620px; margin: 0 !important; table-layout: fixed; border-collapse: collapse; }
.invoice-table th { padding: 12px 12px !important; background: #F0F2F3 !important; color: #202327 !important; font-size: 10px !important; font-weight: 700 !important; letter-spacing: .1em; }
.invoice-table th:first-child, .invoice-table td:first-child { width: 48px; }
.invoice-table th:nth-child(3), .invoice-table td:nth-child(3) { width: 58px; }
.invoice-table th:nth-child(4), .invoice-table td:nth-child(4), .invoice-table th:nth-child(5), .invoice-table td:nth-child(5) { width: 112px; }
.invoice-table td { padding: 15px 12px !important; color: #202327; font-size: 12px; border-bottom: 1px solid #E3E5E7 !important; border-right: 1px solid #E3E5E7; vertical-align: middle; }
.invoice-table tr:last-child td { border-bottom: 0 !important; }
.invoice-table th:not(:last-child) { border-right: 1px solid #E3E5E7; }
.invoice-table .invoice-index { color: #525860; text-align: center; }
.invoice-item-description { font-weight: 600; overflow-wrap: anywhere; }
.invoice-item-description strong { font-weight: 600; }
.invoice-item-detail { margin-top: 3px; color: #70767D; font-size: 11px; font-weight: 400; line-height: 1.45; }
.invoice-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, .84fr); align-items: start; gap: 26px; margin-top: 24px; }
.invoice-support { display: grid; gap: 18px; min-width: 0; }
.invoice-support-section { min-width: 0; }
.invoice-support-section h3 { margin: 0 0 7px; padding-bottom: 7px; border-bottom: 1px solid #C8CDD1; color: #30353A; font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.invoice-preserve { color: #535960; font-size: 12px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.invoice-support-section.invoice-payment-card { padding: 14px 16px; border: 0; border-radius: 7px; background: #F0F2F3; }
.invoice-support-section.invoice-payment-card h3 { border-bottom: 0; }
.invoice-total-card { display: grid; gap: 0; padding: 15px 17px; border-radius: 8px; background: #F0F2F3; }
.invoice-total-row { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; color: #646A71; font-size: 12px; }
.invoice-total-row > :last-child { color: #202327; text-align: right; }
.invoice-total-main { margin-top: 5px; padding: 12px 0; border-top: 1px solid #D4D8DB; color: #17191B; font-size: 16px; }
.invoice-total-main > :last-child { font-size: 18px; }
.invoice-balance { margin: 0 -4px -3px; padding: 10px 4px 2px; color: #17191B; font-weight: 700; }
.invoice-balance > :last-child { font-size: 15px; }
.auth-screen { min-height:100vh; display:grid; place-items:center; padding:24px; }
.auth-card { width:min(100%,440px); }
.auth-card .card-b { display:grid; gap:16px; }
.auth-card .card-b > .btn { justify-content:center; }
@media (max-width: 760px) {
  .invoice-paper { padding: 22px 16px; }
  .invoice-brand-row { align-items: flex-start; flex-direction: column; gap: 15px; }
  .invoice-brand { max-width: 100%; }
  .invoice-brand img { width: min(230px, 100%); height: 84px; }
  .invoice-brand-name { font-size: 23px; }
  .invoice-contact-list { max-width: 100%; text-align: left; }
  .invoice-heading { grid-template-columns: 1fr; gap: 18px; padding: 23px 0; }
  .invoice-meta-list { padding: 14px 0 0; border-top: 1px solid #CFD3D7; border-left: 0; }
  .invoice-parties { grid-template-columns: 1fr; gap: 16px; margin-bottom: 20px; }
  .invoice-party + .invoice-party { padding: 15px 0 0; border-top: 1px solid #CFD3D7; border-left: 0; }
  .invoice-bottom { grid-template-columns: 1fr; gap: 18px; margin-top: 18px; }
}
@media print {
  .invoice-paper { width: 100%; max-width: none; padding: 0; border-radius: 0; }
  .invoice-table-scroll { overflow: visible; }
}
