.brand .logo { display: block; width: 132px; height: auto; margin: 2px 0 8px; }
.brand .logo + b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.topbar .logo { height: 30px; width: auto; display: block; }
.authlogo { align-self: center; background: #0e0c0a; border-radius: 14px; padding: 18px 28px; display: flex; }
.authlogo img { width: 170px; height: auto; display: block; }
.authbox .mark i { display: none; }
#printroot { display: none; }
@media print {
@page { size: A4; margin: 14mm 12mm; }
@page wide { size: A4 landscape; margin: 12mm; }
.pd-wide { page: wide; }
body.printing { background: #fff !important; }
body.printing > *:not(#printroot) { display: none !important; }
body.printing #printroot { display: block; }
}
.pd { color: #1a1714; font-family: "IBM Plex Sans", system-ui, sans-serif; font-size: 11pt; line-height: 1.45; background: #fff; }
.pd * { box-sizing: border-box; }
.pd-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-bottom: 14px; border-bottom: 2px solid #1a1714; }
.pd-brand { display: flex; flex-direction: column; gap: 8px; }
.pd-logo { width: 150px; height: auto; display: block; }
.pd-biz { font-size: 9pt; color: #4a443d; }
.pd-biz b { color: #1a1714; font-size: 10pt; }
.pd-title { text-align: right; }
.pd-title h1 { margin: 0 0 8px; font-size: 20pt; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.pd-meta { margin-left: auto; border-collapse: collapse; font-size: 9.5pt; }
.pd-meta th { text-align: right; font-weight: 400; color: #6b645b; padding: 1px 10px 1px 0; }
.pd-meta td { text-align: right; font-weight: 600; padding: 1px 0; }
.pd-void { margin-top: 12px; border: 1.5px solid #9b2c2c; color: #9b2c2c; padding: 8px 12px; font-weight: 600; text-align: center; }
.pd-parties { display: flex; gap: 48px; margin: 18px 0; }
.pd-parties h3, .pd-notes h3 { margin: 0 0 4px; font-size: 8.5pt; text-transform: uppercase; letter-spacing: .1em; color: #6b645b; font-weight: 600; }
.pd-tbl { width: 100%; border-collapse: collapse; margin-top: 6px; }
.pd-tbl th { text-align: left; font-size: 8.5pt; text-transform: uppercase; letter-spacing: .06em; color: #4a443d; font-weight: 600; padding: 7px 8px; border-bottom: 1.5px solid #1a1714; }
.pd-tbl td { padding: 7px 8px; border-bottom: 1px solid #ddd6cc; vertical-align: top; }
.pd-tbl .r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pd-tbl tfoot td { font-weight: 700; border-top: 1.5px solid #1a1714; border-bottom: 0; }
.pd-tbl tr { break-inside: avoid; }
.pd-small { font-size: 9pt; }
.pd-small td, .pd-small th { padding: 5px 6px; }
.pd-sku { font-size: 8.5pt; color: #6b645b; }
.pd-mono { font-family: "IBM Plex Mono", ui-monospace, monospace; white-space: nowrap; }
.pd-totals { display: flex; justify-content: flex-end; margin-top: 12px; }
.pd-totals table { border-collapse: collapse; min-width: 280px; font-variant-numeric: tabular-nums; }
.pd-totals th { text-align: left; font-weight: 400; color: #4a443d; padding: 4px 8px; }
.pd-totals td { text-align: right; padding: 4px 8px; white-space: nowrap; }
.pd-totals .pd-grand th, .pd-totals .pd-grand td { font-weight: 700; color: #1a1714; border-top: 1.5px solid #1a1714; font-size: 12pt; padding-top: 7px; }
.pd-totals .pd-due th, .pd-totals .pd-due td { font-weight: 700; color: #1a1714; background: #f3efe8; }
.pd-notes { margin-top: 18px; font-size: 10pt; white-space: pre-wrap; }
.pd-filters { margin: 12px 0 8px; font-size: 9.5pt; color: #4a443d; }
.pd-kpis { display: flex; gap: 12px; margin: 8px 0 10px; }
.pd-kpis div { flex: 1; border: 1px solid #ddd6cc; padding: 8px 10px; }
.pd-kpis span { display: block; font-size: 8.5pt; color: #6b645b; text-transform: uppercase; letter-spacing: .06em; }
.pd-kpis b { font-size: 13pt; font-weight: 600; font-variant-numeric: tabular-nums; }
.pd-kpis small { font-size: 8pt; color: #6b645b; font-weight: 400; }
.pd-note { font-size: 8.5pt; color: #6b645b; margin: 10px 0 0; }
.pd-foot { margin-top: 28px; padding-top: 10px; border-top: 1px solid #ddd6cc; font-size: 8.5pt; color: #6b645b; display: flex; justify-content: space-between; }
.rtypes { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.rtype { font: inherit; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; cursor: pointer; color: var(--ink); display: flex; flex-direction: column; gap: 3px; }
.rtype b { font-size: 13.5px; font-weight: 600; }
.rtype span { font-size: 12px; color: var(--muted); line-height: 1.35; }
.rtype:hover { border-color: var(--accent-line); }
.rtype.on { background: var(--accent-soft); border-color: var(--accent); }
.rtype.on b { color: var(--accent); }
.tile.static { cursor: default; }
.tile .v.txt { font-family: var(--f-body); font-size: 16px; font-weight: 600; letter-spacing: 0; }
.pd-kpis-wrap { flex-wrap: wrap; }
.pd-kpis-wrap div { flex: 1 1 22%; }
@media (max-width: 640px) { .rtypes { grid-template-columns: 1fr 1fr; } .rtype span { display: none; } }
.shell > div { min-width: 0; }
.tbl td.nw { white-space: nowrap; }
.exp-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 18px; align-items: start; }
.exp-grid > .col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.catbars { display: flex; flex-direction: column; gap: 4px; }
.catbar { font: inherit; color: var(--ink); background: none; border: 1px solid transparent; border-radius: 7px; padding: 6px 8px; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; text-align: left; }
.catbar:hover { background: var(--surface-2); }
.catbar.on { border-color: var(--accent-line); background: var(--accent-soft); }
.catbar .n { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catbar .v { font-family: var(--f-num); font-size: 12.5px; color: var(--muted); }
.catbar .b { grid-column: 1 / -1; height: 5px; background: var(--line-2); border-radius: 3px; overflow: hidden; }
.catbar .b i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.rcpt { max-width: 100%; max-height: 320px; border: 1px solid var(--line); border-radius: 7px; display: block; }
.hist { margin: 8px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--muted); display: flex; flex-direction: column; gap: 3px; }
@media (max-width: 900px) { .exp-grid { grid-template-columns: 1fr; } }
.rgroups { display: flex; gap: 4px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.rgroup { font: inherit; font-size: 14px; font-weight: 500; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 8px 12px; color: var(--muted); cursor: pointer; display: flex; align-items: center; gap: 6px; }
.rgroup span { font-size: 11px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 0 6px; color: var(--muted); }
.rgroup:hover { color: var(--ink); }
.rgroup.on { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.catlist { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; max-height: 46vh; overflow-y: auto; }
.catrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line-2); }
.catrow:last-child { border-bottom: 0; }
.vamt { display: flex; justify-content: space-between; align-items: center; gap: 20px; border: 1.5px solid #1a1714; padding: 12px 16px; margin: 18px 0 14px; background: #f7f4ee; }
.vamt span { display: block; font-size: 8.5pt; text-transform: uppercase; letter-spacing: .1em; color: #6b645b; }
.vamt b { font-size: 20pt; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vamt small { font-size: 10pt; color: #6b645b; font-weight: 400; }
.vwords { font-style: italic; text-align: right; color: #4a443d; font-size: 10.5pt; }
.vkv { width: 100%; border-collapse: collapse; font-size: 10.5pt; }
.vkv th { text-align: left; width: 32%; font-weight: 400; color: #6b645b; padding: 7px 8px; border-bottom: 1px solid #ddd6cc; vertical-align: top; }
.vkv td { padding: 7px 8px; border-bottom: 1px solid #ddd6cc; }
.vsign { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; font-size: 9pt; color: #6b645b; text-align: center; }
.vsign span { display: block; border-bottom: 1px solid #1a1714; min-height: 26px; margin-bottom: 6px; color: #1a1714; font-size: 10pt; }
.vrc { margin-top: 26px; break-inside: avoid; }
.vrc h3 { margin: 0 0 6px; font-size: 8.5pt; text-transform: uppercase; letter-spacing: .1em; color: #6b645b; font-weight: 600; }
.vrc img { max-width: 100%; max-height: 120mm; border: 1px solid #ddd6cc; display: block; }
.bell { position: relative; background: none; border: 0; cursor: pointer; color: inherit; display: flex; align-items: center; gap: 10px; font: inherit; }
.bell svg { width: 18px; height: 18px; }
.side-bell { margin: 8px 10px 0; padding: 8px 10px; border-radius: 6px; color: var(--side-ink); font-size: 13.5px; width: calc(100% - 20px); }
.side-bell:hover { background: var(--side-hover); }
.top-bell { margin-left: auto; color: #fff; padding: 4px; }
.bell-n { background: var(--s2, #e4572e); color: #fff; font-size: 10.5px; font-weight: 700; border-radius: 999px; padding: 0 6px; line-height: 17px; min-width: 17px; text-align: center; }
.side-bell .bell-n { margin-left: auto; }
.top-bell .bell-n { position: absolute; top: -4px; right: -6px; }
.npanel { position: fixed; z-index: 80; width: min(380px, calc(100vw - 16px)); max-height: 70vh; display: flex; flex-direction: column; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 40px rgba(0,0,0,.18); }
.np-hd { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
.np-list { overflow-y: auto; }
.np-it { display: flex; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); color: var(--ink); text-decoration: none; font-size: 13px; }
.np-it:hover { background: var(--surface-2); }
.np-it.unread { background: var(--accent-soft); }
.np-it b { display: block; font-weight: 600; }
.np-b { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.np-t { display: block; color: var(--faint); font-size: 11.5px; margin-top: 3px; }
.np-ic { font-size: 16px; line-height: 1.2; }
.np-empty { padding: 18px 14px; color: var(--muted); font-size: 13px; }
.money-card { display: flex; flex-direction: column; }
.mcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 10px; }
.mc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 11px 13px; display: flex; flex-direction: column; gap: 3px; color: inherit; text-decoration: none; min-width: 0; }
a.mc:hover { border-color: var(--accent-line); }
.mc .k { font-size: 12.5px; color: var(--muted); }
.mc .v { font-family: var(--f-num); font-size: 19px; font-weight: 500; overflow-wrap: anywhere; }
.mc .v small { font-size: 11px; color: var(--muted); margin-left: 3px; }
.mc .s { font-size: 11.5px; color: var(--faint); }
.mc.good .v { color: var(--good); } .mc.bad .v { color: var(--bad); } .mc.warn .v { color: var(--warn); }
a.mc, a.mc:hover, a.mc * { text-decoration: none; }
