:root{--bg:#F5F3EE;--surface:#FFFFFF;--surface-muted:#FBFAF7;--border:#DEDAD1;--border-soft:#E4E0D7;--border-softer:#EEEBE4;--text:#1B1A17;--text-muted:#5F5B53;--accent:#1F3A5F;--accent-hover:#17304e;--pending-dot:#BDB9B0;--pending-bg:#E6E4DF;--pending-bd:#C9C5BC;--soon-dot:#E9C43B;--soon-bg:#FBEFB8;--soon-bd:#E0C555;--overdue-dot:#B42318;--overdue-fg:#9A1D13;--overdue-bg:#F9DCD8;--overdue-bd:#D9877E;--paid-dot:#3C7A5A;--paid-icon-bg:#DDEBE1;--paid-icon-fg:#1E5233;--info-bg:#E4ECF4;--info-bd:#B7C9DB;--info-fg:#1B2E44;--radius:16px;--radius-sm:10px;--font-display:"Newsreader",Georgia,serif;--font-body:"IBM Plex Sans",system-ui,sans-serif;--font-mono:"IBM Plex Mono",ui-monospace,monospace}*{box-sizing:border-box}body,html{margin:0;min-height:100%}body{font-family:var(--font-body);background:var(--bg);color:var(--text);font-size:15px;line-height:1.45;-webkit-font-smoothing:antialiased}.wrap{max-width:1160px;margin:0 auto;padding:40px 56px 64px}.wrap.auth{max-width:420px;padding-top:96px}.auth-form{display:flex;flex-direction:column;gap:14px;margin-top:20px}h1{font-size:44px;letter-spacing:-.02em;line-height:1.05}h1,h2{margin:0;font-family:var(--font-display);font-weight:600}h2{font-size:24px}.sub{margin:8px 0 0;color:var(--text-muted);font-size:15px}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:22px 24px;margin-top:16px}.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-gap:16px;gap:16px;margin-top:24px}.kpi{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:20px 22px;display:flex;flex-direction:column;gap:6px}.kpi .label{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--text-muted)}.kpi .dot{width:10px;height:10px;border-radius:3px;flex-shrink:0}.kpi .value{font-family:var(--font-mono);font-size:26px;font-weight:500}button{font-family:inherit;font-size:14px;font-weight:500;cursor:pointer;height:44px;padding:0 18px;border:1px solid #cfc9bc;border-radius:var(--radius-sm);background:var(--surface);color:var(--text)}button:hover{background:var(--surface-muted)}button:disabled{opacity:.5;cursor:not-allowed}.primary{background:var(--accent);color:#fff;border-color:var(--accent);font-weight:600}button.primary:hover{background:var(--accent-hover);border-color:var(--accent-hover)}span.primary{display:inline-flex;height:44px;padding:0 18px;border-radius:var(--radius-sm);font-size:14px}button.danger{color:var(--overdue-fg);border-color:var(--overdue-bd);background:var(--overdue-bg)}button.danger:hover{background:#f5c9c3}button.link{height:auto;padding:0;border:0;background:transparent;color:var(--accent);font-weight:500;text-decoration:none}button.link:hover{text-decoration:underline}input:not([type=checkbox]):not([type=radio]){height:44px;padding:0 12px;border:1px solid #cfc9bc;border-radius:var(--radius-sm);background:var(--surface);color:var(--text);font:inherit;width:100%}input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(31,58,95,.12)}label{display:block;font-size:13px;font-weight:500;color:var(--text-muted);margin:10px 0 4px}.row{display:flex;gap:8px;margin:16px 0;align-items:center;flex-wrap:wrap}.empty{padding:48px 20px;text-align:center}.empty,.hint{color:var(--text-muted)}.hint{font-size:12px;margin:-2px 0 8px}.status{color:var(--text-muted);font-size:13px;min-height:18px}.status.err{color:var(--overdue-fg);background:var(--overdue-bg);border:1px solid var(--overdue-bd);border-radius:var(--radius-sm);padding:10px 14px;margin:10px 0}.status.info{gap:12px;color:var(--info-fg);background:var(--info-bg);border:1px solid var(--info-bd);border-radius:var(--radius-sm);padding:12px 18px;margin:10px 0}.status.info,.topbar{display:flex;align-items:center}.topbar{gap:40px;padding-bottom:24px}.brand{font-family:var(--font-display);font-size:26px;font-weight:600;letter-spacing:-.01em}.who{display:flex;align-items:center;gap:16px;font-size:13px;margin-left:auto}.who,.who a{color:var(--text-muted)}.who a{font-weight:500}.back-link,.who a:hover{color:var(--accent)}.back-link{display:inline-flex;align-items:center;gap:6px;font-weight:500;margin-bottom:4px}.chip{height:36px;padding:0 14px;border-radius:999px;border:1px solid var(--pending-bd);background:var(--surface);color:var(--text);font-size:14px;font-weight:500}.chip[data-pressed=true]{background:var(--text);color:#fff;border-color:var(--text)}.chip-group{display:flex;gap:6px}.legend{display:flex;gap:16px;font-size:13px;color:var(--text-muted);flex-wrap:wrap}.legend .swatch{display:inline-flex;align-items:center;gap:6px}.legend .swatch span{width:14px;height:14px;border-radius:4px;border:1px solid var(--pending-bd);background:var(--pending-bg);display:inline-block}.legend .swatch.soon span{background:var(--soon-bg);border-color:var(--soon-bd)}.legend .swatch.overdue span{background:var(--overdue-bg);border-color:var(--overdue-bd)}.legend .swatch.paid span{background:#fff;border-color:var(--pending-bd)}.tag-pill{display:inline-flex;align-items:center;gap:6px;padding:1px 8px;border-radius:999px;background:var(--surface);border:1px solid #d5d0c5;font-size:12px;color:#3A3731}.tag-pill .dot{width:7px;height:7px;border-radius:999px}.badge{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;font-size:13px;font-weight:600;white-space:nowrap}.badge.pending{background:var(--pending-bg);color:var(--text-muted)}.badge.soon{background:var(--soon-bg);color:#7A5D0E}.badge.overdue{background:var(--overdue-bg);color:var(--overdue-fg)}.badge.paid{background:#DDEBE1;color:var(--paid-icon-fg)}.badge.nodate{background:var(--pending-bg);color:var(--text-muted);font-style:italic}.badge.voided{background:#E5E1DA;color:var(--text-muted);text-decoration:line-through}.gtable{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;margin-top:16px}.gtable .ghead{padding:12px 20px;background:var(--surface-muted);font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted)}.gtable .ghead,.gtable .grow{display:grid;grid-gap:16px;gap:16px}.gtable .grow{align-items:center;width:100%;padding:14px 20px;border:0;border-top:1px solid var(--border-soft);background:transparent;color:inherit;font:inherit;text-align:left}a.grow,button.grow{display:grid;height:auto;cursor:pointer}.gtable .gfoot{display:flex;justify-content:space-between;padding:14px 20px;border-top:1px solid var(--border);background:var(--surface-muted);font-size:14px;color:var(--text-muted)}.mono{font-family:var(--font-mono)}.segmented{display:inline-flex;padding:4px;border-radius:12px;background:#ECE9E2;gap:2px}.segmented label{margin:0;height:40px;display:flex;align-items:center;gap:6px;padding:0 16px;border-radius:9px;font-size:14px;font-weight:500;color:var(--text);cursor:pointer}.segmented input{display:none}.segmented label:has(input:checked){background:var(--surface);font-weight:600;box-shadow:0 1px 2px rgba(27,26,23,.08)}.bar-track{height:6px;border-radius:999px;background:#F0EDE6;overflow:hidden}.bar-fill{height:6px;background:var(--accent)}.modal{position:fixed;inset:0;background:rgba(27,26,23,.45);display:flex;align-items:flex-start;justify-content:center;padding:40px 20px;overflow-y:auto}.modal-content{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:0 12px 32px rgba(27,26,23,.18);padding:28px;max-width:760px;width:100%}.dropzone{position:relative;cursor:pointer;border:2px dashed #b9b3a6;border-radius:var(--radius);background:var(--surface-muted);padding:48px 32px;display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center}.dropzone:hover{background:#F5F2EA;border-color:#A69E8E}.dropzone input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.file-pick{position:relative;display:inline-flex;align-items:center;gap:8px}.file-pick input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}fieldset.f24-group{border:1px solid var(--border);border-radius:var(--radius);margin-bottom:16px;padding:20px 22px;background:var(--surface)}fieldset.f24-group legend{font-family:var(--font-display);font-size:20px;font-weight:600;padding:0 4px}fieldset.f24-group label{display:block;margin:6px 0;font-size:13px}