/* Reference-style housing, receiving and arrival screens. No global navigation overrides. */
.housing-page,.receiving-page,.arrival-page{color:#172033;font-family:Tahoma,Arial,sans-serif;font-size:11px;min-width:0}
.housing-page .page-heading,.receiving-page .page-heading,.arrival-page .page-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:16px 0}
.housing-page h1,.receiving-page h1{font-size:21px;margin:0 0 8px}.arrival-page h1{font-size:27px;margin:0 0 8px}
.housing-page .page-heading p,.receiving-page .page-heading p,.arrival-page .page-heading p{color:#71809a;font-size:10px;margin:0}
.housing-page h2,.receiving-page h2{font-size:12px;margin:0 0 13px}.housing-page .page-actions,.receiving-page .page-actions,.arrival-page .page-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.housing-page .panel,.receiving-page .panel,.arrival-page .panel{background:#fff;border:1px solid #d1d7e3;border-radius:8px;padding:14px;margin-bottom:12px;box-shadow:0 1px 2px #15244308}
.house-stats,.arrival-stats{display:grid;gap:12px;margin:18px 0 28px}.house-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.arrival-stats{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:12px}
.house-stats .stat-card,.arrival-stats .stat-card{display:flex;flex-direction:row;align-items:center;justify-content:space-between;min-height:64px;border:1px solid #d1d7e3;border-radius:9px;background:#fff;color:#2d3476;padding:14px;text-align:right;cursor:pointer;font:inherit}
.house-stats .stat-card strong,.arrival-stats .stat-card strong{font-size:24px}.house-stats .stat-card.selected{border-color:var(--primary,#365e52);box-shadow:0 0 0 1px var(--primary,#365e52)}
.arrival-stats .total{background:#eff6ff;color:#1d4ed8}.arrival-stats .success{background:#f0fdf4;color:#087443}.arrival-stats .danger{background:#fff1f2;color:#be123c}.arrival-stats .warning{background:#fffbed;color:#a65a00}.arrival-stats .selected{outline:1px solid var(--primary,currentColor);outline-offset:2px}
.house-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px 12px;align-items:end}.house-filters .wide{grid-column:span 2}.house-filter-actions{grid-column:1/-1;display:flex;justify-content:flex-start;gap:8px;align-self:end}
.housing-page label,.housing-modal label,.receiving-upload label,.arrival-correction label{display:flex;flex-direction:column;gap:8px;font-size:10px;font-weight:700}
.housing-page input:not([type=checkbox]),.housing-page select,.housing-page textarea,.housing-modal input,.receiving-upload input[type=file],.arrival-correction input,.operations-toolbar input,.arrival-filters input{box-sizing:border-box;width:100%;border:1px solid #c6d0e2;border-radius:6px;background:#fff;min-height:31px;padding:6px 9px;color:#172033;font:inherit}
.housing-page textarea{resize:vertical;min-height:72px}.housing-page input[type=date],.arrival-filters input[type=date],.operations-toolbar input[type=date],.arrival-correction input[type=date]{direction:ltr;text-align:left}
.house-count{text-align:right;color:#53607a;font-size:10px;margin:16px 0}.housing-page .table-wrap,.receiving-page .table-wrap,.arrival-page .table-wrap{overflow-x:auto;border-radius:6px;max-width:100%}
.housing-page table,.receiving-page table,.arrival-page table{width:100%;border-collapse:collapse;table-layout:auto;font-size:10px}.housing-page th,.housing-page td,.receiving-page th,.receiving-page td,.arrival-page th,.arrival-page td{border:1px solid #d1d7e3;padding:8px 6px;text-align:right;vertical-align:middle}.housing-page th,.receiving-page th,.arrival-page th{background:#fff;font-size:9px;font-weight:700}.housing-page td,.receiving-page td,.arrival-page td{height:36px}
.housing-page .row-actions,.arrival-page .row-actions{display:flex;gap:4px;flex-wrap:nowrap}.housing-page .row-actions .button,.arrival-page .row-actions .button{min-width:24px;min-height:25px;padding:3px 6px}.house-exit{background:#fff6d8!important;color:#987a0b!important;border:1px solid #edcf67!important}.housing-page .row-actions .danger,.arrival-page .row-actions .danger{background:#fff1f2;color:#be123c;border-color:#fecdd3}
.house-read-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.house-value{border:1px solid #d1d7e3;border-radius:5px;padding:10px;min-height:55px;display:flex;flex-direction:column;gap:8px;min-width:0}.house-value small{font-size:9px;color:#71809a}.house-value span{font-size:10px;overflow-wrap:anywhere}
.house-inline{display:flex;align-items:flex-end;gap:8px;max-width:500px;margin-top:24px}.house-inline label{flex:1}.house-inline .button{flex:none}.house-modal-actions{display:flex;justify-content:flex-start;flex-wrap:wrap;gap:8px;margin-top:12px}
.housing-modal{background:#f2f5f8;padding:16px;border-radius:0 0 8px 8px}.housing-modal p{font-size:11px;line-height:1.8}.housing-modal #houseSearch{display:flex;align-items:flex-end;gap:8px;margin:26px 0 12px}.housing-modal #houseSearch label{flex:1}.house-reference{padding:14px;margin:12px 0;border:1px solid #d1d7e3;border-radius:8px;background:#fff}.house-reference .button{margin-top:12px}
.house-notes article,.housing-page .timeline article{padding:12px;background:#f2f5f8;border:1px solid #d1d7e3;border-radius:6px;margin-top:8px}.house-notes article p{white-space:pre-wrap;line-height:1.8}.house-notes small,.housing-page .timeline small{color:#71809a;font-size:9px}.housing-page #housingNote .button{width:100%;margin-top:8px}
.housing-form .form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.housing-form .form-grid>.full{grid-column:1/-1}.housing-checkout-form [readonly]{background:#f2f5f8;font-size:10px}.housing-checkout-form label:has([name=exit]),.housing-checkout-form label:has([name=exitReason]){grid-column:1/-1}
.operations-tabs{display:flex;gap:18px;background:white;border-bottom:1px solid #d1d7e3;margin:-10px -13px 14px;padding:10px 16px 0;min-height:48px;align-items:stretch}.operations-tabs a{display:flex;align-items:center;padding:8px 12px;color:#53617a;text-decoration:none;font-weight:700;font-size:12px;border-bottom:2px solid transparent}.operations-tabs a.active{color:var(--ink,#1d4ed8);border-bottom-color:var(--accent,#3767f0)}
.operations-toolbar{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap}.operations-toolbar label{flex:1;display:flex;gap:8px;align-items:center;min-width:220px;font-size:10px;font-weight:700}.operations-toolbar input{flex:1;min-width:130px}.operations-hint{font-size:9px;color:#71809a;text-align:right;margin:8px 0 14px}.receiving-day-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}.receiving-day-head h2{font-size:12px;margin:0 0 5px}.receiving-day-head small{color:#71809a;font-size:9px}.receiving-day-head label{display:flex;gap:5px;align-items:center}.receiving-counters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-bottom:8px}.receiving-counters>div{background:#f2f5f8;border-radius:4px;padding:8px;display:flex;flex-direction:column;gap:5px;font-size:9px}.receiving-counters .present{background:#e5f5ed;color:#22625e}.receiving-counters .missing{background:#fffbed;color:#9c6006}.receiving-counters strong{font-size:10px}.doc-present{border:1px solid #cde1df!important;background:#e5f5ed!important;color:#22625e!important;padding:3px 6px!important;min-height:23px!important;border-radius:12px!important}.history-tag{display:block;color:#71809a;font-size:8px;margin-top:4px}.receiving-upload>p{line-height:1.9}.receiving-upload>small{display:block;color:#71809a;margin:8px 0 16px}.receiving-upload .error-text{color:#b42318}.document-view img{display:block;max-width:100%;max-height:65vh;object-fit:contain;margin:12px auto}.document-view p{overflow-wrap:anywhere}
.arrival-filters{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap}.arrival-filters label{display:flex;flex-direction:column;gap:10px;font-size:11px;font-weight:700}.arrival-search{flex:1;min-width:270px}.arrival-filters input[type=date]{width:130px}.arrival-filters>.button{min-height:35px}.arrival-filters>span{align-self:center;white-space:nowrap;font-size:10px}.arrival-bulk{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.arrival-bulk[hidden]{display:none}.arrival-page .success,.arrival-correction .success{color:#167544;background:#f0fdf4;border-color:#bfe4ca}.arrival-page .warning,.arrival-correction .warning{color:#a65a00;background:#fffbed;border-color:#f4d890}.arrival-page .danger,.arrival-correction .danger{color:#be123c;background:#fff1f2;border-color:#fecdd3}.arrival-page table{min-width:1250px}.arrival-page th{height:42px;max-width:120px}.arrival-page td{height:47px}.arrival-page .badge{white-space:normal;display:inline-block;text-align:center;line-height:1.5;max-width:90px}.arrival-correction{padding:4px}.arrival-correction p{line-height:1.8}.arrival-correction details{margin-top:18px}.arrival-correction form .button{margin-top:10px}
.arrival-page td:nth-child(3),.arrival-page td:nth-child(4),.arrival-page td:nth-child(6),.arrival-page td:nth-child(7),.receiving-page td:nth-child(3),.receiving-page td:nth-child(4),.receiving-page td:nth-child(5),.receiving-page td:nth-child(7){white-space:nowrap;overflow-wrap:normal;word-break:normal}
.housing-page .house-row-actions .button{min-width:38px;min-height:28px;padding:4px 7px;font-size:11px;line-height:1.4;white-space:nowrap}
.arrival-group-summary{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin:16px 0;color:var(--ink,#172033)}
.arrival-group-summary p{margin:0;line-height:1.7;font-size:11px}.arrival-group-summary label,.arrival-day-head>label{display:flex;align-items:center;gap:7px;font-size:11px;white-space:nowrap}
.arrival-page .arrival-day{padding:14px;margin-bottom:20px;border-top:3px solid var(--primary,#2d3476)}
.arrival-day-head{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:14px}.arrival-day-head h2{margin:0 0 8px;font-size:16px;color:var(--ink,#172033)}.arrival-day-head p{margin:0 0 6px;line-height:1.6}.arrival-day-head small{color:#64748b}.arrival-day-selected{font-weight:400;color:#64748b}.arrival-day-state{font-weight:700}
@media(max-width:800px){.house-stats,.arrival-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.house-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.house-read-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.receiving-counters{grid-template-columns:repeat(2,minmax(0,1fr))}.housing-page .page-heading,.receiving-page .page-heading,.receiving-day-head{align-items:flex-start;flex-wrap:wrap}.housing-page table,.receiving-page table{min-width:1050px}.operations-toolbar label{flex-basis:100%}.arrival-search{flex-basis:100%}.operations-tabs{margin-right:0;margin-left:0}.house-inline{flex-wrap:wrap}}

/* v0.8: larger housing text, compact reference layout, no changes to receiving/arrival. */
.housing-page{font-size:13px;line-height:1.55}
.housing-page .page-heading{margin:12px 0;gap:10px}
.housing-page .page-heading p{font-size:12px}
.housing-page h2{font-size:17px;margin-bottom:10px}
.housing-page .panel{padding:12px;margin-bottom:10px}
.housing-page .house-stats{gap:10px;margin:12px 0}
.housing-page .stat-card{padding:10px 12px;min-height:58px;font-size:13px}
.housing-page label{font-size:13px;gap:5px}
.housing-page input,.housing-page select,.housing-page textarea{font-size:13px!important;min-height:33px}
.housing-page .button{font-size:13px;min-height:31px}
.housing-page .house-filters{gap:9px 10px}
.housing-page .house-count{font-size:13px;margin:10px 0}
.housing-page table{table-layout:fixed;min-width:0;font-size:13px}
.housing-page th{font-size:12px;background:var(--field,#f6f7fa);line-height:1.5}
.housing-page th,.housing-page td{padding:7px 4px;white-space:normal;overflow-wrap:anywhere;height:auto;word-break:normal}
.housing-page .badge{font-size:12px;white-space:normal;line-height:1.5}
.housing-page .house-row-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px}
.module-main .housing-page .requests-table{table-layout:fixed;min-width:0;font-size:13px}
.module-main .housing-page .table-wrap .requests-table th{white-space:normal}
.module-main .housing-page .requests-table th,.module-main .housing-page .requests-table td{padding:7px 4px;overflow-wrap:anywhere}
.module-main .housing-page .requests-table .house-row-actions{min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px}
.module-main .housing-page .requests-table .house-row-actions .button{font-size:13px;min-height:29px;padding:3px 2px}
.housing-page .house-row-actions .button{min-width:0;min-height:29px;padding:3px 2px;font-size:13px;line-height:1.4}
.housing-page .house-read-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.housing-page .house-value{padding:8px;min-height:45px;gap:4px;background:#fff}
.housing-page .house-value small{font-size:12px;color:#62738b}
.housing-page .house-value span{font-size:14px;line-height:1.5}
.housing-page .house-inline{margin-top:12px;max-width:620px}
.housing-page .house-notes article,.housing-page .timeline article{padding:9px;margin-top:6px}
.housing-page .house-notes p,.housing-page .timeline p{font-size:13px;margin:4px 0}
.housing-page .house-notes small,.housing-page .timeline small{font-size:12px}
.housing-page #housingNote .button{width:auto;min-width:130px;margin-top:7px}
body:is([data-page="housing"],[data-page="housing-details"]) #uiModal{font-size:13px}
body:is([data-page="housing"],[data-page="housing-details"]) #uiModal h2{font-size:18px}
body:is([data-page="housing"],[data-page="housing-details"]) #uiModal :is(label,input,select,textarea,p,.button){font-size:13px}
body:is([data-page="housing"],[data-page="housing-details"]) #uiModal :is(small,.help){font-size:12px}
body:is([data-page="housing"],[data-page="housing-details"]) #uiModal .form-grid{gap:10px}
body:is([data-page="housing"],[data-page="housing-details"]) #uiModal .house-value small{font-size:12px}
body:is([data-page="housing"],[data-page="housing-details"]) #uiModal .house-value span{font-size:14px}
@media(max-width:1100px){.housing-page .house-read-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.housing-page .house-row-actions{gap:2px}.housing-page th,.housing-page td{padding:6px 3px}}
@media(max-width:800px){.housing-page .house-read-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.housing-page table{min-width:960px}}
@media (min-width:801px) and (max-width:1100px){.module-main .housing-page .requests-table{min-width:1200px}} .module-main .housing-page .requests-table td:nth-child(2),.module-main .housing-page .requests-table td:nth-child(4),.module-main .housing-page .requests-table td:nth-child(6),.module-main .housing-page .requests-table td:nth-child(7),.module-main .housing-page .requests-table td:nth-child(8),.module-main .housing-page .requests-table td:nth-child(9){white-space:nowrap;overflow-wrap:normal}
