:root{font-family:"Malgun Gothic","Apple SD Gothic Neo",sans-serif;color:#17283d;background:#f2f5f9;font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,.button{background:#1765b5;color:white;border:0;border-radius:5px;padding:10px 16px;cursor:pointer;text-decoration:none;display:inline-block}button.secondary{background:#e7eef7;color:#274b78}button.danger{background:#ae3c3c}button:disabled{opacity:.55;cursor:wait}input,select,textarea{border:1px solid #ccd6e2;padding:9px;border-radius:5px;background:white;max-width:100%;width:100%}textarea{min-height:100px}label{display:block;font-weight:600;margin-bottom:7px}.field{margin-bottom:14px}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.span{grid-column:1/-1}aside{position:fixed;width:225px;background:#162d49;color:white;inset:0 auto 0 0;padding:24px 16px;overflow:auto}aside h2{font-size:19px;margin:0 0 5px}aside p{font-size:12px;color:#b7c6d8}aside button{display:block;width:100%;text-align:left;background:transparent;margin:3px 0;padding:12px}aside button.active{background:#285482}header{background:white;border-bottom:1px solid #d9e0e9;display:flex;justify-content:space-between;align-items:center;padding:15px 28px;gap:16px;margin-left:225px}header select{width:180px}main{margin-left:225px;padding:28px;max-width:1700px}h1{font-size:24px;margin:0 0 10px}h2{font-size:18px}.muted{color:#64748b;line-height:1.6}.card{background:white;border:1px solid #dbe2ea;border-radius:8px;padding:22px;margin-bottom:20px}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:20px 0}.metric{font-size:30px;font-weight:700;margin:12px 0 0}.tablewrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:13px}th{text-align:left;background:#f3f6fa;color:#4c6078;white-space:nowrap}td,th{padding:12px 10px;border-bottom:1px solid #e3e9ef}td{max-width:320px;overflow-wrap:anywhere}tr:hover{background:#f8fbff}.row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.row input{width:260px}.toolbar{justify-content:space-between;margin:18px 0}.pill{background:#e6f0fb;color:#2763a0;border-radius:4px;padding:4px 7px;white-space:nowrap}.warn{background:#fff0dc;color:#995907}.bad{background:#fee5e5;color:#a73535}.thumb{width:2cm;height:2cm;aspect-ratio:1/1;object-fit:contain;border:1px solid #e2e8f0}.photo{width:2cm;height:2cm;aspect-ratio:1/1;object-fit:contain;border:1px solid #dbe2ea;display:block;margin:12px 0}#toast{position:fixed;bottom:24px;right:24px;max-width:600px;background:#243d5a;color:white;padding:14px 20px;border-radius:6px;display:none;z-index:10}.login{max-width:460px;margin:10vh auto}.login .brand{font-size:26px;color:#1b4f88}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}details{margin:12px 0}.note{border-left:4px solid #c18b29;background:#fff8e8;padding:15px;line-height:1.7}.bar{height:8px;background:#e7edf4;border-radius:4px;overflow:hidden}.bar span{height:100%;display:block;background:#2173b9}@media(max-width:1000px){.grid{grid-template-columns:repeat(2,1fr)}.cards{grid-template-columns:repeat(2,1fr)}aside{width:180px}main,header{margin-left:180px}}@media(max-width:650px){aside{position:static;width:auto;padding:12px;display:flex;flex-wrap:wrap;gap:4px}aside h2{width:100%}aside p{display:none}aside button{width:auto;padding:8px;margin:0;font-size:12px}main,header{margin-left:0;padding:16px}.grid{grid-template-columns:1fr}.cards{gap:8px}.card{padding:15px}header{flex-wrap:wrap}.metric{font-size:24px}}

.photo{width:2cm;height:2cm;aspect-ratio:1/1;object-fit:contain;border:1px solid #dbe2ea;display:block;margin:12px 0}.photo[hidden]{display:none}#material-photo-form{max-width:480px;padding:16px;border:1px solid #dbe2ea;margin:16px 0}

.receipt-options input[type="checkbox"]{width:auto;margin-right:8px;vertical-align:middle}.receipt-options .grid{margin-top:14px}

.annual-ledger{max-height:70vh}.annual-ledger table{min-width:2800px}.annual-ledger thead{position:sticky;top:0;z-index:2}.annual-ledger th{border:1px solid #d9e0e9;text-align:center}.annual-ledger td{border-right:1px solid #e3e9ef;min-width:66px}.annual-ledger td:nth-child(3){min-width:125px;max-width:160px}.annual-ledger td:nth-child(4){min-width:130px}.annual-ledger td:nth-child(5){min-width:180px}.annual-ledger .numeric{text-align:right;white-space:nowrap}.month-heading{background:#e7eef7}

.back-to-top{position:fixed;right:24px;bottom:96px;z-index:20;box-shadow:0 3px 12px #17283d33}.back-to-top[hidden]{display:none}.back-to-top:focus-visible{outline:3px solid #f0b429;outline-offset:3px}
