:root { --ink:#14253d; --ink-2:#1f3a5f; --gold:#d4a017; --gold-pale:#f7e6b5; --paper:#f5f7f9; --line:#d7e0e8; --soft:#eaf3f8; --green:#2f855a; --green-pale:#e2f0d9; --red:#c53030; --red-pale:#fde9e7; --muted:#64748b; --white:#fff; --radius:12px; --shadow:0 10px 30px rgba(20,37,61,.08); }
* { box-sizing:border-box; }
body { margin:0; color:var(--ink); background:var(--paper); font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; line-height:1.45; }
a { color:var(--ink-2); text-decoration:none; font-weight:650; } a:hover { text-decoration:underline; }
h1,h2,p { margin-top:0; } h1 { font-size:clamp(1.65rem,2.8vw,2.25rem); margin-bottom:.3rem; letter-spacing:-.04em; } h2 { font-size:1.05rem; margin-bottom:.25rem; } small,.small-note { color:var(--muted); font-size:.78rem; } code { background:#e6edf3; border-radius:4px; padding:.1rem .25rem; }
.site-header { min-height:70px; padding:12px 28px; display:flex; align-items:center; justify-content:space-between; gap:20px; color:var(--white); background:var(--ink); }
.brand { display:flex; align-items:center; gap:10px; } .brand-mark { display:grid; place-items:center; width:37px; height:37px; background:var(--gold); color:var(--ink); font-weight:900; font-size:.8rem; border-radius:8px; letter-spacing:.02em; }.brand strong,.brand small { display:block; color:var(--white); }.brand small { color:#bfd1e0; font-size:.75rem; }
.header-actions { display:flex; align-items:center; gap:10px; }.header-actions form { margin:0; }.signed-in { font-size:.8rem; color:#d7e5ef; }
.app-shell { display:grid; grid-template-columns:230px minmax(0,1fr); min-height:calc(100vh - 70px); }.sidebar { background:var(--white); padding:24px 14px; border-right:1px solid var(--line); }.sidebar nav { display:grid; gap:5px; }.nav-link { padding:10px 12px; border-radius:8px; font-size:.9rem; }.nav-link:hover { text-decoration:none; background:var(--soft); }.nav-current { background:var(--ink); color:var(--white); }.sidebar-foot { margin:28px 8px 0; padding-top:18px; border-top:1px solid var(--line); font-size:.78rem; color:var(--muted); }
.content { width:min(1450px,100%); padding:32px; }.page-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:16px; margin-bottom:22px; }.page-heading p { margin:0; color:var(--muted); }.eyebrow { margin-bottom:7px; color:#8a6300; font-size:.74rem; letter-spacing:.11em; font-weight:800; text-transform:uppercase; }
.button { border:1px solid transparent; border-radius:8px; padding:9px 13px; font:inherit; font-size:.85rem; font-weight:750; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; white-space:nowrap; transition:transform .15s ease, background .15s ease; }.button:active { transform:scale(.97); }.button-primary { background:var(--gold); color:var(--ink); }.button-primary:hover { background:#e9b72c; text-decoration:none; }.button-quiet { color:var(--white); background:transparent; border-color:rgba(255,255,255,.35); }.content .button-quiet { color:var(--ink-2); background:var(--white); border-color:var(--line); }.content .button-quiet:hover { background:var(--soft); text-decoration:none; }
.notice { margin:0 0 18px; padding:12px 14px; border-radius:9px; font-size:.9rem; font-weight:600; }.notice-success { background:var(--green-pale); color:#1c5739; border:1px solid #b7d4be; }.notice-error { background:var(--red-pale); color:#992621; border:1px solid #efc1bc; }
.metric-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin-bottom:18px; }.metric-card,.panel { background:var(--white); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); }.metric-card { padding:18px; }.metric-card span { display:block; color:var(--muted); text-transform:uppercase; font-weight:800; letter-spacing:.06em; font-size:.71rem; }.metric-card strong { display:block; font-size:1.72rem; margin:9px 0 2px; letter-spacing:-.035em; }.metric-card small { display:block; }.metric-alert { border-color:#ebc0bc; }.metric-alert strong { color:var(--red); }
.chart-grid,.alert-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-bottom:18px; }.panel { padding:19px; margin-bottom:18px; }.chart-grid .panel { min-height:300px; margin:0; }.alert-grid .panel { margin:0; }.panel-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:15px; }.panel-heading p { margin:0; font-size:.82rem; color:var(--muted); }.chart-grid canvas { max-height:230px; }.alert-count { display:grid; place-items:center; flex:0 0 auto; min-width:32px; height:32px; border-radius:50%; color:var(--ink); background:var(--gold-pale); font-size:.86rem; font-weight:850; }.alert-count-red { color:var(--red); background:var(--red-pale); }.alert-list { display:grid; gap:9px; }.alert-item { display:flex; justify-content:space-between; gap:14px; padding:11px 12px; border-left:4px solid; border-radius:7px; }.alert-item strong { font-size:.86rem; }.alert-item p { margin:3px 0 0; color:#526276; font-size:.8rem; }.alert-item time { flex:0 0 auto; color:#48586a; font-size:.79rem; font-weight:750; white-space:nowrap; }.alert-critical { border-color:var(--red); background:var(--red-pale); }.alert-warning { border-color:var(--gold); background:var(--gold-pale); }.alert-watch { border-color:#3b82b6; background:#eaf3f8; }.alert-empty { padding:20px 14px; border:1px dashed #b9c7d1; border-radius:8px; color:var(--muted); text-align:center; font-size:.85rem; }.alert-empty-success { border-color:#b7d4be; background:var(--green-pale); color:#1e633c; }
.table-wrap { overflow-x:auto; }.table-wrap table { width:100%; border-collapse:collapse; min-width:760px; }.compact table { min-width:0; } th,td { padding:11px 10px; text-align:left; vertical-align:top; border-bottom:1px solid var(--line); font-size:.86rem; } th { color:var(--muted); background:#f9fafb; font-size:.71rem; font-weight:850; letter-spacing:.04em; text-transform:uppercase; white-space:nowrap; } tbody tr:last-child td { border-bottom:none; }.empty-state { padding:28px 10px; color:var(--muted); text-align:center; }.amount-due { font-weight:800; color:var(--red); }.tag,.status { display:inline-flex; padding:3px 7px; border-radius:99px; font-size:.72rem; font-weight:800; white-space:nowrap; }.tag-turo { background:#e7edf5; color:#294968; }.tag-private { background:var(--gold-pale); color:#795b00; }.status-paid { background:var(--green-pale); color:#1e633c; }.status-partial { background:var(--gold-pale); color:#795b00; }.status-unpaid { background:var(--red-pale); color:#a22923; }
.entry-form label { display:grid; gap:5px; color:#445466; font-size:.79rem; font-weight:750; }.entry-form input,.entry-form select,.entry-form textarea { width:100%; border:1px solid #b8c6d1; border-radius:7px; padding:9px 10px; color:var(--ink); background:var(--white); font:inherit; font-size:.9rem; }.entry-form input:focus,.entry-form select:focus,.entry-form textarea:focus { border-color:var(--ink-2); outline:3px solid #d9e8f1; }.grid-form { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }.span-all { grid-column:1 / -1; }.form-actions { margin-top:3px; }.actions { display:flex; flex-wrap:wrap; gap:7px; min-width:150px; }.actions form { margin:0; }.link-button { border:0; padding:0; color:var(--ink-2); background:transparent; font:inherit; font-size:.85rem; font-weight:650; cursor:pointer; }.delete-link { color:var(--red); }
.status-summary { display:flex; gap:14px; flex-wrap:wrap; }.status-count { min-width:150px; padding:14px; border:1px solid var(--line); border-radius:9px; }.status-count strong { display:block; margin:9px 0 0; font-size:1.5rem; }.status-count small { display:block; }
.settings-content { width:min(1100px,100%); margin:0 auto; padding:32px; }.settings-panel { max-width:760px; }.settings-panel .grid-form { grid-template-columns:repeat(2,minmax(0,1fr)); }.attachment-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }.attachment-grid .panel { margin:0 0 18px; }.entry-form input[type="file"] { padding:8px; background:#f9fafb; }
.auth-page { min-height:100vh; display:grid; place-items:center; padding:24px; background:linear-gradient(145deg,var(--ink) 0%,var(--ink) 50%,#284a6f 100%); }.auth-card { width:min(470px,100%); padding:32px; background:var(--white); border-radius:16px; box-shadow:0 20px 60px rgba(0,0,0,.24); }.auth-card h1 { margin-bottom:8px; }.auth-card>p:not(.eyebrow):not(.small-note) { color:var(--muted); }.stack-form { display:grid; gap:14px; margin-top:22px; }.stack-form label { display:grid; gap:5px; color:#445466; font-size:.82rem; font-weight:750; }.stack-form input { border:1px solid #b8c6d1; border-radius:7px; padding:10px; font:inherit; }.stack-form .button { margin-top:3px; }
.print-body { background:#e5e7eb; padding:24px; }.print-sheet { width:min(850px,100%); margin:auto; padding:36px; background:var(--white); box-shadow:0 6px 28px rgba(15,23,42,.15); }.print-header { padding:18px 20px; color:var(--white); background:var(--ink); text-align:center; }.print-header h1 { margin:0; font-size:1.65rem; }.print-header p { margin:4px 0 0; color:#fff; font-size:.88rem; text-transform:uppercase; letter-spacing:.07em; }.print-meta { display:grid; grid-template-columns:repeat(2,1fr); gap:1px; margin:16px 0; border:1px solid var(--line); background:var(--line); }.print-meta div { padding:10px; background:#fbfcfd; }.print-meta span { display:block; color:var(--muted); font-weight:800; font-size:.69rem; letter-spacing:.05em; text-transform:uppercase; }.print-meta strong { font-size:.9rem; }.print-sheet h2 { margin:17px 0 7px; padding:7px 9px; color:var(--white); background:var(--ink-2); font-size:.87rem; text-transform:uppercase; letter-spacing:.04em; }.print-table { width:100%; border-collapse:collapse; }.print-table th,.print-table td { border:1px solid var(--line); padding:8px; font-size:.82rem; }.print-table th { width:26%; background:#f4f7f9; color:var(--ink); text-transform:none; letter-spacing:0; font-size:.76rem; }.print-table .total-row th,.print-table .total-row td { background:var(--gold-pale); font-weight:850; }.print-notes,.acknowledgment { margin:0; padding:10px; min-height:42px; border:1px solid var(--line); font-size:.83rem; }.signature-grid { display:grid; grid-template-columns:2fr 1fr; gap:18px 28px; margin:34px 0 20px; }.signature-grid div { height:32px; border-bottom:1px solid var(--ink); }.signature-grid span { display:block; transform:translateY(20px); color:var(--muted); font-size:.72rem; font-weight:700; }.print-sheet footer { padding-top:13px; border-top:1px solid var(--line); color:var(--muted); text-align:center; font-size:.71rem; }
@media (max-width:980px) { .app-shell { grid-template-columns:1fr; }.sidebar { padding:10px 14px; border-right:0; border-bottom:1px solid var(--line); }.sidebar nav { grid-template-columns:repeat(3,1fr); }.sidebar-foot { display:none; }.content { padding:22px; }.metric-grid { grid-template-columns:repeat(2,1fr); }.chart-grid,.alert-grid { grid-template-columns:1fr; } }
@media (max-width:640px) { .site-header,.page-heading { align-items:flex-start; flex-direction:column; }.header-actions { flex-wrap:wrap; }.sidebar nav { display:flex; overflow-x:auto; }.nav-link { white-space:nowrap; }.content,.settings-content { padding:16px; }.metric-grid,.grid-form,.settings-panel .grid-form,.attachment-grid,.print-meta,.signature-grid { grid-template-columns:1fr; }.chart-grid .panel { min-height:280px; }.print-body { padding:0; }.print-sheet { padding:16px; }.print-header { margin:-16px -16px 16px; }.print-table th { width:auto; } }
@media print { body.print-body { background:#fff; padding:0; } .print-sheet { width:100%; padding:0; box-shadow:none; } }
