:root{--ink:#182b40;--navy:#18324d;--muted:#68788a;--line:#dde4ec;--canvas:#f3f6fa;--green:#147557;--red:#b64444;--accent:#ebf4fb;color:var(--ink);background:var(--canvas);font-synthesis:none;font-family:Arial,Helvetica,sans-serif}*{box-sizing:border-box}body{margin:0;font-size:13px;line-height:1.35}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline-offset:3px;outline:2px solid #2e7fc5}button{transition:background .12s,color .12s}button svg{flex-shrink:0}h1,h2,p{margin:0}.topbar{border-bottom:1px solid var(--line);background:#fff;justify-content:space-between;align-items:center;height:56px;padding:0 24px;display:flex}.brand{align-items:center;gap:10px;display:flex}.brand-mark{background:var(--navy);color:#fff;border-radius:6px;justify-content:center;align-items:center;width:30px;height:30px;display:flex}.brand h1{letter-spacing:-.3px;font-size:18px;font-weight:600}.private{color:var(--muted);font-size:12px}.app main{max-width:1150px;margin:0 auto;padding:18px 24px}.toolbar{justify-content:space-between;align-items:center;gap:12px;display:flex}.month-control{color:var(--navy);align-items:center;gap:8px;display:flex}.month-control input{border:1px solid var(--line);max-width:190px;height:32px;color:var(--ink);background:#fff;border-radius:5px;padding:5px 9px;font-weight:600}.toolbar-actions{gap:8px;display:flex}.primary,.secondary{white-space:nowrap;border:1px solid #0000;border-radius:5px;justify-content:center;align-items:center;gap:7px;min-height:32px;padding:7px 10px;text-decoration:none;display:inline-flex}.primary{background:var(--navy);color:#fff}.primary:hover{background:#264c70}.secondary{color:var(--ink);background:#fff;border-color:#d3dce6}.secondary:hover{background:#f0f4f9}.overview-line{height:36px;color:var(--muted);justify-content:space-between;align-items:center;display:flex}.overview-line strong{color:var(--ink);font-weight:600}.separator{color:#9aabbc;padding:0 7px}.save-state{color:var(--green);align-items:center;gap:5px;font-size:12px;display:flex}.table-wrap{background:#fff;border:1px solid #cad5e2;border-radius:6px;max-height:calc(100dvh - 192px);overflow:auto}table{border-collapse:separate;border-spacing:0;table-layout:fixed;width:100%}.col-room{width:12%}.col-name{width:36%}.col-period{width:24%}.col-edit{width:36px}th{color:#26435f;text-align:left;z-index:1;background:#eaf0f7;border-bottom:1px solid #cad5e2;padding:8px 12px;font-size:12px;font-weight:600;position:sticky;top:0}th:not(:last-child),td:not(:last-child){border-right:1px solid #e7ecf2}th:nth-child(3),th:nth-child(4){text-align:center}th span{display:block}.deadline{color:#61758a;margin-top:2px;font-size:12px;font-weight:400}td{border-bottom:1px solid #e8edf3;height:32px;padding:2px 10px}tr:last-child td{border-bottom:0}tbody tr:hover{background:#f6f9fc}.room-start:not(:first-child) td{border-top:1px solid #cad5e2}.room{color:#244f75;font-weight:600}.text-button{color:inherit;text-align:left;text-overflow:ellipsis;white-space:nowrap;background:0 0;border:0;width:100%;padding:2px 0;display:block;overflow:hidden}.text-button:hover{text-decoration:underline}.name{color:#26394c}.attendance{white-space:nowrap;background:0 0;border:1px solid #0000;border-radius:3px;justify-content:center;align-items:center;gap:5px;width:100%;min-height:26px;padding:2px 6px;font-size:12px;display:flex}.attendance.present{color:#176d50;background:#eaf6ef}.attendance.absent{color:#ab4242;background:#fcf0ef}.attendance.unknown{color:#7c8998}.attendance.unknown:hover{color:#244f75;background:#eaf0f7}.attendance.present:hover{background:#dceee4}.attendance.absent:hover{background:#f8e2df}.attendance time{opacity:.85;margin-left:3px;font-size:11px}.edit{text-align:center;padding:0 3px}.icon-button{color:#708297;background:0 0;border:0;border-radius:4px;justify-content:center;align-items:center;width:26px;height:26px;display:inline-flex}.icon-button:hover{color:var(--navy);background:#e7edf5}tfoot td{color:var(--muted);background:#f3f6fa;border-top:1px solid #cad5e2;height:34px;padding:7px 12px;font-size:12px}tfoot td:nth-child(2),tfoot td:nth-child(3){text-align:center;color:#405971;font-weight:600}.legend{color:var(--muted);flex-wrap:wrap;gap:14px;padding:10px 0;font-size:11px;display:flex}.legend span{align-items:center;gap:4px;display:inline-flex}.legend-help{margin-left:auto}.green{color:var(--green)}.red{color:var(--red)}.empty{border:1px solid var(--line);text-align:center;color:var(--muted);background:#fff;border-radius:6px;padding:48px 15px}.empty p{margin-bottom:14px}.empty.error{color:var(--red)}.no-residents{text-align:center;color:var(--muted);padding:30px}dialog{width:min(410px,100vw - 28px);max-height:calc(100dvh - 32px);color:var(--ink);background:#fff;border:1px solid #d3dce7;border-radius:10px;padding:20px;box-shadow:0 20px 65px #112b4933}dialog::backdrop{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#102a485c}.dialog-heading{justify-content:space-between;align-items:center;gap:8px;margin-bottom:18px;display:flex}h2{font-size:16px;font-weight:600}.form-grid{gap:12px;display:grid}dialog label{color:#4a5f74;gap:5px;margin-bottom:12px;font-size:12px;display:grid}dialog input,dialog select{width:100%;min-height:36px;color:var(--ink);background:#fff;border:1px solid #ccd6e2;border-radius:4px;padding:8px 9px;font-size:14px}.form-grid label{margin:0}.person-label{margin-bottom:18px;font-size:14px;font-weight:600}.person-label span{color:var(--muted);margin-top:4px;font-size:12px;font-weight:400;display:block}.dialog-actions{border-top:1px solid var(--line);justify-content:flex-end;gap:8px;margin-top:16px;padding-top:16px;display:flex}.form-error{color:var(--red);background:#fcefee;border-radius:4px;margin-top:12px;padding:8px;font-size:12px}.form-hint{color:var(--muted);font-size:12px}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.signin{border:1px solid var(--line);background:#fff;border-radius:10px;max-width:380px;margin:15vh auto;padding:28px}.signin h1{margin:14px 0 6px;font-size:22px}.signin p{color:var(--muted);margin-bottom:22px}.signin .primary{width:100%}@media (width>=1300px){.app main{padding-top:24px}}@media (width<=650px){.topbar{height:50px;padding:0 12px}.private{font-size:11px}.app main{padding:12px 10px}.toolbar{flex-wrap:wrap}.toolbar-actions{gap:6px}.primary,.secondary{padding:6px 8px;font-size:12px}.toolbar-actions .secondary svg{display:none}.toolbar-actions .secondary{font-size:11px}.month-control input{max-width:150px}.table-wrap{max-height:calc(100dvh - 210px)}table{min-width:530px}.col-name{width:32%}.col-room{width:11%}.col-period{width:26%}td{height:34px;padding:2px 6px}th{padding:8px 6px}.legend-help{width:100%;margin-left:0}.legend{gap:9px}.attendance{gap:3px;font-size:11px}.attendance time{font-size:10px}.signin{margin:12vh 16px}.text-button{font-size:12px}}@media (prefers-reduced-motion:reduce){button{transition:none}}.topbar nav{align-self:stretch;gap:8px;margin-left:24px;margin-right:auto;display:flex}.topbar nav button{color:var(--muted);background:0 0;border:0;border-bottom:2px solid #0000;padding:0 9px;font-size:13px}.topbar nav button.active{border-color:var(--navy);color:var(--navy);font-weight:600}.center{text-align:center}.finance-table{min-width:860px}.finance-table th,.finance-table td{padding-left:8px;padding-right:8px}.finance-table th:first-child{width:6%}.finance-table th:nth-child(2){width:24%}.finance-table th:last-child{width:110px}.meta{color:var(--muted);font-size:11px}.amount{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.amount .text-button{text-align:right}.finance-actions{white-space:nowrap}.pay-button{color:#285578;background:#fff;border:1px solid #d1dce7;border-radius:4px;margin-left:4px;padding:3px 6px;font-size:11px}.pay-button:hover{background:var(--accent)}.note{color:var(--muted);margin:9px 0;font-size:12px;line-height:1.45}.section-title{margin:20px 0 8px;font-size:14px}.ledger{max-height:260px}.report{border:1px solid var(--line);background:#fff;border-radius:6px;padding:16px}.report-heading{justify-content:space-between;align-items:center;gap:12px;display:flex}.report-heading h2{font-size:16px}.approval{color:var(--muted);font-size:12px}.report-table{min-width:900px}.report-table td{white-space:normal;vertical-align:top;padding:7px 8px}.report-table th:first-child{width:25%}.report-meta{color:var(--muted);margin-top:3px;font-size:10px;display:block}.report-actions{margin-top:15px}.access-note{margin-bottom:12px}.two-col{grid-template-columns:1fr 1fr}.span-two{grid-column:1/-1}fieldset{border:0;min-width:0;margin:0;padding:0}fieldset:disabled{opacity:.8}.signature{border:1px solid var(--line);background:#fff;border-radius:4px;overflow:hidden}.signature canvas{background:linear-gradient(#0000 79%,#e4eaf0 79.5%,#0000 80%);width:100%;height:auto;display:block}.signature-actions{color:var(--muted);background:#f5f8fb;justify-content:space-between;align-items:center;padding:5px 8px;font-size:10px;display:flex}.signature-actions .text-button{color:#b44a43;width:auto;font-size:11px}.report-table .signature{border:0;margin-top:3px}.report-table .signature canvas{object-fit:contain;background:#fff;max-height:38px}.small-heading{color:var(--muted);margin:16px 0 5px;font-size:12px;font-weight:600}.payment-line{border-bottom:1px solid var(--line);justify-content:space-between;gap:8px;padding:4px 0;font-size:11px;display:flex}.inline-error{color:var(--red);background:#fcefee;border-radius:4px;justify-content:space-between;align-items:center;margin-bottom:8px;padding:8px;display:flex}.inline-error button{color:var(--red);background:0 0;border:0}.text-button:disabled{cursor:default;opacity:1}.text-button:disabled:hover{text-decoration:none}@media (width<=760px){.topbar{flex-wrap:wrap;gap:8px;height:auto;padding:10px 12px 0}.topbar nav{flex-basis:100%;order:3;gap:5px;height:36px;margin:0;overflow-x:auto}.topbar nav button{white-space:nowrap;padding:0 7px;font-size:12px}.private{margin-left:auto}.table-wrap{max-height:calc(100dvh - 235px)}.report-heading{flex-wrap:wrap;align-items:flex-start}.report{padding:10px}.report .table-wrap{max-height:none}}@media print{@page{size:A4 landscape;margin:12mm}body{background:#fff;font-size:10px}.topbar,.toolbar,.overview-line,.report-actions,.legend,.inline-error,dialog{display:none!important}.app main{max-width:none;padding:0}.report{border:0;padding:0}.table-wrap{border-color:#bbb;max-height:none;overflow:visible}.report-table{min-width:0;font-size:9px}th{-webkit-print-color-adjust:exact;print-color-adjust:exact;font-size:9px;position:static;background:#eee!important}.report-table td{page-break-inside:avoid;padding:4px}.report-meta{font-size:8px}tr{break-inside:avoid}thead{display:table-header-group}.report-heading{margin-bottom:10px}.report-heading h2{font-size:16px}.note{font-size:9px}.signature canvas{max-height:35px}tfoot{display:table-row-group}}button.payment-line{border:0;border-bottom:1px solid var(--line);text-align:left;width:100%;color:var(--ink);background:0 0;align-items:center}button.payment-line:hover{background:var(--accent)}.universal-report .table-wrap{border-radius:3px;max-height:none}.universal-report th{text-align:left}.universal-report th.amount{text-align:right}.universal-report th.center{text-align:center}.report-period{color:var(--muted);margin-top:5px;font-size:12px}.report-identification{border-top:1px solid var(--line);border-bottom:1px solid var(--line);grid-template-columns:1fr 1fr;gap:18px;margin:16px 0;padding:12px 0;display:grid}.report-identification>div{min-width:0}.report-identification span{color:var(--muted);margin-bottom:3px;font-size:11px;display:block}.report-identification strong{overflow-wrap:anywhere;font-size:13px}.report-identification p{overflow-wrap:anywhere;margin-top:4px;font-size:12px}.report-section-title{margin:16px 0 7px;font-size:13px;font-weight:600}.universal-stays{min-width:850px}.universal-stays th:nth-child(2){width:28%}.universal-stays th:first-child{width:4%}.universal-stays th:nth-child(7),.universal-stays th:nth-child(8){width:15%}.universal-stays td{vertical-align:top;padding:5px 7px}.universal-stays .signature{border:0;margin-top:2px}.universal-stays .signature canvas{object-fit:contain;background:0 0;max-height:35px}.number{text-align:center}.universal-finance{min-width:980px;font-size:11px}.universal-finance th{padding:6px 5px;font-size:10px}.universal-finance th:first-child{width:23%}.universal-finance td{height:28px;padding:3px 5px}.universal-ledger{min-width:620px}.universal-ledger th:nth-child(2){width:32%}.universal-ledger td{font-size:12px}.report-signoff{break-inside:avoid;justify-content:space-between;align-items:flex-end;gap:18px;margin-top:28px;font-size:12px;display:flex}.report-signoff>div{text-align:center;width:230px;padding-top:26px}.signature-rule{border-top:1px solid #8191a0;padding-top:5px;display:block}.report-signoff small{color:var(--muted);font-size:10px}.report-note{break-inside:avoid;margin-top:14px;font-size:12px}.report-note p{white-space:pre-wrap;margin-top:3px}.universal-report .report-actions{margin-top:20px}dialog textarea{font:inherit;width:100%;color:var(--ink);resize:vertical;border:1px solid #ccd6e2;border-radius:4px;min-height:70px;padding:8px 9px}@media (width<=650px){.report-identification{grid-template-columns:1fr;gap:12px}.report-signoff{flex-direction:column;align-items:flex-start}.report-signoff>div{align-self:flex-end}.toolbar-actions{flex-wrap:wrap}}@media print{.universal-report th{padding:4px;font-size:8px;position:static}.universal-report table{table-layout:fixed;min-width:0;font-size:8px}.universal-report td{height:auto;padding:3px 4px;font-size:8px}.universal-report td.amount,.universal-report th.amount{white-space:normal;overflow-wrap:anywhere}.report-identification{grid-template-columns:1fr 1fr;gap:20px;margin:10px 0;padding:8px 0}.report-identification p,.report-identification strong{font-size:10px}.report-period{font-size:11px}.report-section-title{break-after:avoid;margin-top:12px;font-size:11px}.universal-report .signature canvas{max-height:22px}.report-signoff{flex-direction:row;align-items:flex-end;margin-top:24px;font-size:10px}.report-note{font-size:10px}.universal-report .table-wrap{max-height:none;overflow:visible}.universal-report .note{font-size:8px}.universal-finance th:first-child{width:22%}.report-meta{font-size:7px}.report-signoff>div{width:210px}}.guest-filters{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px;display:flex}.group-picker{background:#fff;border:1px solid #cad5e2;border-radius:5px;gap:2px;padding:2px;display:flex}.group-picker button{color:var(--muted);background:0 0;border:0;border-radius:3px;padding:5px 9px;font-size:12px}.group-picker button.active{background:var(--navy);color:#fff}.guest-filters label{color:var(--muted);align-items:center;gap:6px;font-size:12px;display:flex}.guest-filters select{color:var(--ink);background:#fff;border:1px solid #cad5e2;border-radius:4px;padding:5px 8px}.resident-actions{border-top:1px solid var(--line);flex-wrap:wrap;gap:8px;margin-top:16px;padding-top:12px;display:flex}.danger{color:var(--red)}.danger-primary{background:var(--red)}.danger-primary:hover{background:#903333}.extra-fee{border-bottom:1px solid var(--line);grid-template-columns:minmax(0,1fr) 95px 26px;align-items:end;gap:7px;margin-bottom:10px;padding:10px 0;display:grid}.extra-fee label{margin:0}.extra-fee label:nth-child(3){grid-column:1/3}.extra-fee>button{grid-area:1/3;align-self:center}.archive-table{min-width:800px}.archive-table th:nth-child(2){width:28%}.archive-table th:nth-child(3){width:16%}.archive-table th:last-child{width:140px}.residents-table th:nth-child(3){text-align:left}.residents-table .meta{white-space:normal}.residents-table{min-width:960px}@media (width<=650px){.guest-filters{gap:6px}.group-picker button{padding:5px 7px;font-size:11px}.resident-actions .secondary{font-size:12px}.extra-fee{grid-template-columns:minmax(0,1fr) 85px 26px}}@media print{.guest-filters{display:none!important}}.app main{max-width:1800px}.wide-table{min-width:0}.table-top-scroll{height:15px;margin-bottom:4px;overflow:auto hidden}.excel-table{table-layout:fixed;max-width:none;min-width:0!important}.excel-table th,.excel-table td{padding-left:7px;padding-right:7px}.excel-table th{white-space:normal;overflow-wrap:anywhere;text-align:left}.excel-table th.amount{text-align:right}.excel-table th.center{text-align:center}.excel-table th:first-child,.excel-table td:first-child{z-index:2;background:#fff;position:sticky;left:0}.excel-table th:nth-child(2),.excel-table td:nth-child(2){z-index:2;background:#fff;position:sticky;left:64px;box-shadow:2px 0 #cad5e2}.excel-table th:first-child,.excel-table th:nth-child(2){z-index:4;background:#eaf0f7}.excel-table tfoot td{background:#f3f6fa}.excel-table .text-button{line-height:1.35}.excel-table tbody tr:hover td:nth-child(-n+2){background:#f6f9fc}.excel-table th.charge-column,.excel-table td.charge-column{background:#f6faff}.excel-table th.charge-column{background:#e4edf8}.excel-table tfoot .amount{text-align:right}.excel-table tfoot td:nth-child(2),.excel-table tfoot td:nth-child(3){text-align:inherit}.finance-table.excel-table th:first-child,.finance-table.excel-table th:nth-child(2),.finance-table.excel-table th:last-child{width:auto}@media (width<=650px){.excel-table td,.excel-table th{padding-left:6px;padding-right:6px}.excel-table th:nth-child(2),.excel-table td:nth-child(2){box-shadow:none;position:static}.table-top-scroll{height:17px}}@media print{.table-top-scroll{display:none}.excel-table{width:100%!important}.excel-table th:nth-child(-n+2),.excel-table td:nth-child(-n+2){box-shadow:none;position:static}}.excel-table tfoot td:nth-child(-n+2){box-shadow:none;position:static;left:auto}.excel-table tfoot td.center{text-align:center}.wide-table .table-wrap{max-height:calc(100dvh - 270px)}@media (width<=760px){.wide-table .table-wrap{max-height:calc(100dvh - 310px)}}@media screen{.app{zoom:.8}.app main{max-width:none;padding:6px 14px}.app .topbar{height:40px;padding:0 14px}.app .brand{gap:7px}.app .brand-mark{width:24px;height:24px}.app .brand h1{font-size:16px}.app .topbar nav{gap:5px;margin-left:16px}.app .topbar nav button{padding:0 8px}.app .toolbar{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;margin-bottom:4px;display:grid}.app .month-control{gap:6px}.app .month-control input{height:28px;padding:3px 7px}.app .overview-line{white-space:nowrap;justify-content:flex-start;gap:10px;height:auto;min-height:24px;font-size:12px}.app .toolbar .primary,.app .toolbar .secondary{min-height:28px;padding:4px 8px}.app .toolbar-actions{gap:6px}.app .guest-filters{gap:8px;min-height:26px;margin-bottom:4px}.app .group-picker{padding:1px}.app .group-picker button{padding:3px 8px}.app .guest-filters select{padding:3px 7px}.app .table-top-scroll{height:15px;margin-bottom:3px}.app .wide-table .table-wrap{max-height:calc(125dvh - 160px)}.app .excel-table th{padding-top:4px;padding-bottom:4px}.app .excel-table tbody td{height:26px;padding-top:1px;padding-bottom:1px}.app .excel-table .attendance{min-height:22px;padding:1px 5px}.app .excel-table .icon-button{width:24px;height:22px}.app .excel-table tfoot td{height:26px;padding-top:4px;padding-bottom:4px}.app .legend{gap:10px;padding:5px 0}}@media screen and (width<=760px){.app .topbar{gap:5px;height:auto;min-height:40px;padding:6px 10px 0}.app .topbar nav{height:28px;margin-left:0}.app main{padding:6px 10px}.app .toolbar{flex-wrap:wrap;gap:4px 8px;display:flex}.app .overview-line{flex:1;min-width:180px}.app .toolbar-actions{margin-left:auto}.app .wide-table .table-wrap{max-height:calc(125dvh - 220px)}}@media print{.app{zoom:1}}.claim-heading{justify-content:space-between;align-items:center;gap:12px;margin:8px 0;display:flex}.claim-heading h2{margin:0;font-size:15px;font-weight:600}.claim-heading p{color:var(--muted);margin:4px 0;font-size:12px}.claim-warning{background:#fff5dc;border:1px solid #ead297;border-radius:4px;margin:6px 0;padding:7px 9px;font-size:12px}.inline-button{color:#285578!important;width:auto!important;display:inline!important}.claim-cell{white-space:normal;overflow-wrap:anywhere;font-size:11px}.claim-excluded{opacity:.55}.facility-details{border:1px solid var(--line);background:#fff;border-radius:5px;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 20px;margin:10px 0;padding:14px;display:grid}.facility-details dt{color:var(--muted);font-size:11px}.facility-details dd{overflow-wrap:anywhere;margin:4px 0 0;font-size:13px}.vulnerability-field{grid-template-columns:minmax(0,1fr) 105px;align-items:center;gap:10px;display:grid!important}.check-label{align-items:flex-start;gap:8px;line-height:1.45;display:flex!important}.check-label input[type=checkbox]{flex-shrink:0;width:16px;height:16px;margin:1px 0 0}.refugee-section .note a{color:#285578;text-decoration:underline}.refugee-table td{overflow-wrap:anywhere}.refugee-section .table-wrap{max-height:calc(125dvh - 270px)!important}@media (width<=760px){.facility-details{grid-template-columns:repeat(2,minmax(0,1fr))}.claim-heading{flex-wrap:wrap}.refugee-section .table-wrap{max-height:calc(125dvh - 330px)!important}}.login-form{text-align:left;gap:12px;width:min(340px,90vw);margin:16px auto;display:grid}.login-form label{gap:6px;display:grid}.login-form input{width:100%}.account-actions{gap:12px;display:flex}.quick-overview{color:var(--muted);flex-wrap:wrap;gap:8px 18px;margin:3px 0 7px;font-size:12px;display:flex}.room-editor{flex-wrap:wrap;align-items:end;gap:12px;margin:10px 0;display:flex}.room-editor label{gap:5px;display:grid}.room-editor input,.room-editor button{height:30px}@media print{.account-actions,.quick-overview,.room-editor{display:none}}
