:root { font-family: "Segoe UI", Arial, sans-serif; color: #202321; background: #e9eae8; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, .mud-typography, .mud-button, .mud-input, .mud-table-cell { font-family: "Segoe UI", Arial, sans-serif; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 29px; line-height: 1.25; font-weight: 650; letter-spacing: -.9px; }
h2 { font-size: 16px; line-height: 1.5; font-weight: 650; letter-spacing: -.3px; }
h3 { font-size: 15px; font-weight: 600; }
.app-frame { max-width: 1600px; margin: 24px auto; min-height: calc(100vh - 48px); background: #f6f7f8; border: 1px solid #dbddda; border-radius: 24px; padding: 16px; }
.topbar { height: 74px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; background: white; border-radius: 18px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 20px; font-weight: 750; letter-spacing: -.6px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #ee5127; color: white; box-shadow: 0 4px 12px #ee51272b; }
.brand-caption { display: block; font-size: 10px; font-weight: 400; color: #767a75; letter-spacing: .2px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.workspace-label { font-size: 12px; color: #737971; display: flex; gap: 7px; align-items: center; padding-inline-end: 16px; }
.workspace-identity { display: flex; align-items: center; gap: 10px; padding-inline-start: 12px; border-inline-start: 1px solid #eee; }
.workspace-identity strong { display: block; font-size: 12px; font-weight: 600; }
.workspace-identity small { display: block; font-size: 10px; color: #787c77; margin-top: 2px; }
.avatar { width: 35px; height: 35px; border-radius: 50%; background: #fff0e9; color: #c9431e; font-size: 11px; display: grid; place-items: center; font-weight: 650; }
.workspace-shell { display: grid; grid-template-columns: 206px minmax(0, 1fr); gap: 24px; padding-top: 16px; }
.sidebar { display: flex; flex-direction: column; background: #fff; border-radius: 18px; min-height: calc(100vh - 158px); padding: 24px 12px 16px; }
.nav-heading { font-size: 10px; font-weight: 600; letter-spacing: 1px; color: #8a8d87; margin: 0 14px 12px; }
.system-heading { margin-top: 30px; }
.sidebar .mud-nav-link { margin-bottom: 7px; border-radius: 9px; font-size: 12px; padding: 12px 14px; color: #51564f; }
.sidebar .mud-nav-link .mud-nav-link-icon { font-size: 19px; color: inherit; }
.app-frame .sidebar .mud-navmenu .mud-nav-link.active:not(.mud-nav-link-disabled) { color: #fff; background: #ee5127; box-shadow: 0 3px 8px #ee512720; }
.sidebar .mud-nav-link.active .mud-nav-link-text { font-weight: 500; }
.sidebar-note { margin: auto 3px 20px; padding: 20px 12px 14px; border-radius: 12px; background: #fafaf8; border: 1px solid #f0f0eb; }
.sidebar-note-icon { display: inline-flex; color: #ee5127; margin-bottom: 10px; }
.sidebar-note strong { display: block; font-size: 12px; }
.sidebar-note p { color: #878b82; font-size: 11px; line-height: 1.8; margin: 7px 0 15px; }
.sidebar-note .mud-button { text-transform: none; font-size: 11px; border-color: #f4b5a2; border-radius: 8px; }
.sidebar-footer { font-size: 10px; color: #737970; padding: 0 9px; }
.sidebar-footer small { display: block; margin: 7px 0 0 12px; font-size: 9px; color: #a1a59c; }
.status-dot { display: inline-block; width: 5px; height: 5px; background: #6b9471; border-radius: 50%; flex-shrink: 0; margin-inline-end: 4px; }
.main-content { min-width: 0; padding: 9px 5px 0 0; outline: none; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.eyebrow { font-size: 9px; letter-spacing: 1.7px; color: #8b9088; font-weight: 600; margin-bottom: 7px; }
.page-heading p { font-size: 12px; color: #868b82; margin-top: 7px; }
.refresh-button.mud-button { border-color: #e5e7e2; border-radius: 30px; font-size: 11px; text-transform: none; padding: 8px 16px; background: white; flex-shrink: 0; }
.data-notice { display: flex; gap: 9px; align-items: center; color: #82867d; font-size: 11px; margin-bottom: 20px; flex-wrap: wrap; }
.data-notice .mud-link { margin-inline-start: auto; font-size: 11px; }
.mode-badge { font-size: 8px; font-weight: 700; letter-spacing: 1px; padding: 3px 6px; color: #a36117; background: #fff1da; border-radius: 4px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card { border-radius: 16px; padding: 17px 17px 16px; }
.stat-card-header { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 11px; color: #5b6057; }
.stat-icon { display: grid; place-items: center; color: #454c40; width: 30px; height: 30px; border-radius: 50%; background: #f8f9f6; }
.stat-value { font-size: 35px; line-height: 1.3; font-weight: 500; letter-spacing: -1.5px; margin: 5px 0 12px; }
.stat-caption { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; font-size: 9px; color: #8b8e85; }
.stat-indicator { padding: 3px 6px; background: #f2f3f0; border-radius: 5px; color: #5d6856; font-size: 8px; }
.stat-indicator.green { background: #eff8ed; color: #497e42; }
.stat-indicator.orange { background: #fff0e8; color: #c35526; }
.charts-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; margin-bottom: 18px; }
.insight-card { border-radius: 16px; padding: 20px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.section-heading p { color: #92968d; font-size: 10px; margin-top: 4px; }
.subtle-tag { border: 1px solid #eeefeb; border-radius: 20px; font-size: 9px; padding: 6px 10px; color: #72776d; white-space: nowrap; }
.inventory-chart { display: flex; justify-content: space-around; gap: 24px; height: 200px; margin: 25px 7px 14px; background: repeating-linear-gradient(to top, transparent 0, transparent 39px, #f1f2ee 39px, #f1f2ee 40px); }
.chart-column { display: flex; flex-direction: column; align-items: center; flex: 1; max-width: 70px; }
.chart-column strong { font-size: 11px; font-weight: 600; margin-bottom: 8px; }
.bar-track { flex: 1; display: flex; align-items: flex-end; width: 100%; }
.inventory-bar { width: 100%; border-radius: 13px; background: repeating-linear-gradient(145deg, transparent 0, transparent 4px, #ffffff12 4px, #ffffff12 5px), linear-gradient(#f46c42, #ee5127); transition: height .4s; }
.inventory-bar.neutral { background: #292e28; }
.chart-column > span { background: white; font-size: 10px; color: #73796d; width: 140%; text-align: center; padding-top: 10px; }
.chart-footnote { display: flex; align-items: center; gap: 6px; font-size: 9px; color: #94988e; margin-top: 20px; }
.legend-dot { display: inline-block; width: 7px; height: 7px; border-radius: 2px; background: #e7e9e2; flex-shrink: 0; }
.orange-dot { background: #ee5127; }
.occupancy-content { display: flex; align-items: center; gap: 24px; justify-content: center; padding: 24px 0; flex-wrap: wrap; }
.occupancy-ring { width: 155px; height: 155px; padding: 14px; border-radius: 50%; background: conic-gradient(#ee5127 var(--occupancy), #f0f1ed 0); transform: rotate(-90deg); }
.occupancy-ring > div { width: 100%; height: 100%; border-radius: 50%; background: white; display: flex; flex-direction: column; justify-content: center; align-items: center; transform: rotate(90deg); }
.occupancy-ring strong { font-size: 31px; line-height: 1.3; letter-spacing: -1px; font-weight: 600; }
.occupancy-ring strong span { font-size: 16px; color: #92978b; margin-inline-start: 2px; }
.occupancy-ring small { font-size: 9px; color: #93988b; margin-top: 4px; }
.occupancy-legend { display: flex; flex-direction: column; gap: 18px; min-width: 110px; }
.occupancy-legend > div { display: flex; align-items: center; gap: 7px; font-size: 10px; color: #818778; }
.occupancy-legend strong { color: #3b4335; margin-inline-start: auto; font-weight: 600; }
.occupancy-footer { padding: 11px 12px; background: #fafaf7; border-radius: 9px; display: flex; align-items: center; gap: 8px; color: #858a7c; font-size: 10px; }
.occupancy-footer strong { color: #343d2c; }
.assignments-card { border-radius: 16px; overflow: hidden; }
.table-heading { padding: 18px 20px 12px; align-items: center; }
.table-filters { display: flex; gap: 10px; align-items: center; }
.assignment-search { width: 225px; }
.status-select { width: 145px; }
.table-filters .mud-input { border-radius: 25px; font-size: 11px; }
.table-filters .mud-input input, .table-filters .mud-input .mud-input-slot { padding-top: 9px; padding-bottom: 9px; }
.table-filters .mud-input-outlined-border { border-color: #e8eae3; }
.assignments-table .mud-table-cell { font-size: 11px; padding: 13px 18px; }
.assignments-table thead { background: #fafbf9; }
.assignments-table th { color: #818677; font-weight: 400; white-space: nowrap; }
.assignments-table .mud-table-pagination { font-size: 10px; }
.property-number { font-weight: 650; }
.personnel-name { display: block; font-weight: 500; }
.personnel-number { display: block; font-size: 9px; color: #989e90; margin-top: 4px; }
.assignment-status { display: inline-block; padding: 4px 8px; border: 1px solid #eddec2; background: #fff9ed; color: #916114; border-radius: 30px; font-size: 9px; white-space: nowrap; }
.assignment-status.handedover { background: #f0f9ec; color: #4d7d3a; border-color: #e0ecd8; }
.assignment-status.accepted { background: #edf5ff; color: #476b93; border-color: #dce9f6; }
.assignment-status.rejected { background: #fff2f0; color: #b35750; border-color: #f2deda; }
.assignment-status.evacuated { background: #f5f5f3; color: #797f70; border-color: #e8eae3; }
.assignments-table .mud-button { text-transform: none; font-size: 10px; }
.assignments-table .mud-button span[aria-hidden] { padding-inline-start: 5px; }
.snapshot-footer { display: flex; align-items: center; gap: 7px; margin: 16px 0; font-size: 9px; color: #969c8e; }
.page-footer { display: flex; justify-content: space-between; gap: 16px; margin: 28px 0 8px; font-size: 9px; color: #a0a597; }
.assignment-detail { margin-top: 18px; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 24px 0; }
dt { font-size: 11px; color: #878e7d; margin-bottom: 6px; }
dd { margin: 0; font-size: 12px; }
.detail-note { color: #777e6e; font-size: 13px; line-height: 1.9; margin: 16px 0; }
.settings-card { max-width: 850px; }
.connection-details { display: grid; gap: 20px; margin: 24px 0; overflow-wrap: anywhere; }
.setup-steps { font-size: 13px; line-height: 2.2; padding-inline-start: 22px; color: #777e6e; }
code { background: #f3f4f0; border-radius: 4px; padding: 2px 5px; color: #4e5745; font-size: 11px; overflow-wrap: anywhere; }
.empty-state, .loading-panel { text-align: center; padding: 50px 20px; color: #8a9181; }
.empty-state h3, .empty-state h1 { margin-top: 16px; color: #4e5842; }
.empty-state p, .loading-panel p { font-size: 12px; margin-top: 10px; }
.skip-link { position: fixed; top: -100px; inset-inline-start: 20px; background: #202321; color: white; padding: 10px 20px; border-radius: 8px; z-index: 2000; }
.skip-link:focus { top: 10px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.topbar .mobile-menu, .nav-scrim { display: none; }
#blazor-error-ui { background: #fff4e5; bottom: 0; box-shadow: 0 -1px 3px #0002; display: none; left: 0; padding: 16px; position: fixed; width: 100%; z-index: 3000; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 12px; top: 12px; }
.loading-progress { display: block; width: 80px; height: 80px; margin: 30vh auto 10px; }
.loading-progress circle { fill: none; stroke: #ee5127; stroke-width: 4px; stroke-dasharray: 120 180; transform-origin: 50% 50%; animation: spin 1s linear infinite; }
.loading-progress-text { text-align: center; font-size: 14px; color: #6f7865; }
.loading-progress-text:after { content: "Opening your housing workspace…"; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 1700px) { .app-frame { margin-top: 40px; } }
@media (max-width: 1200px) { .app-frame { margin: 12px; padding: 12px; } .workspace-shell { grid-template-columns: 185px minmax(0, 1fr); gap: 18px; } .stat-caption { gap: 4px; } .occupancy-content { gap: 14px; } .occupancy-ring { width: 140px; height: 140px; } .inventory-chart { gap: 18px; } .table-heading { flex-wrap: wrap; } }
@media (max-width: 960px) { .charts-grid { grid-template-columns: 1fr; } .occupancy-content { gap: 40px; } .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .workspace-label { display: none; } .table-filters { width: 100%; } .assignment-search { flex: 1; width: auto; } .sidebar-note { margin-top: 50px; } }
@media (max-width: 700px) { .app-frame { margin: 0; border: 0; border-radius: 0; padding: 12px; min-height: 100vh; } .topbar { height: 66px; padding: 0 10px; gap: 8px; } .brand { font-size: 17px; gap: 7px; } .brand-caption { font-size: 8px; } .brand-mark { width: 32px; height: 32px; } .topbar .mobile-menu { display: inline-flex; } .workspace-identity { display: none; } .topbar-actions { gap: 0; } .workspace-shell { display: block; padding-top: 24px; } .main-content { padding: 0; } .sidebar { display: none; } .sidebar.is-open { display: flex; position: fixed; inset-inline-start: 12px; top: 86px; bottom: 12px; width: 225px; z-index: 1301; overflow: auto; min-height: 0; box-shadow: 0 10px 40px #0002; } .nav-scrim { display: block; position: fixed; inset: 0; z-index: 1300; background: #20232166; border: 0; } h1 { font-size: 24px; } .eyebrow { font-size: 8px; } .page-heading p { font-size: 10px; } .page-heading { gap: 10px; } .refresh-button.mud-button { padding: 7px 10px; font-size: 10px; } .stat-grid { gap: 10px; } .stat-card { padding: 12px; } .stat-value { font-size: 30px; } .stat-card-header { font-size: 10px; } .data-notice { font-size: 10px; } .data-notice .mud-link { margin-inline-start: 0; } .table-filters { flex-wrap: wrap; gap: 6px; } .assignment-search { min-width: 165px; } .status-select { width: 132px; } .detail-grid { grid-template-columns: repeat(2, 1fr); } .inventory-chart { gap: 18px; } .subtle-tag { font-size: 8px; padding: 5px; } .page-footer span:last-child { display: none; } .snapshot-footer { flex-wrap: wrap; font-size: 8px; } }
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Houses: live API register, forms, and details. */
.api-badge { background: #eaf5ed; color: #357a47; }
.house-primary-action.mud-button { border-radius: 12px; text-transform: none; padding: 10px 18px; font-size: 12px; box-shadow: 0 4px 12px #ee51271a; }
.house-list-card { border-radius: 16px; overflow: hidden; }
.house-list-heading { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 6px; gap: 16px; }
.house-list-heading p { color: #858c7e; font-size: 11px; margin-top: 4px; }
.house-filters { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; align-items: start; gap: 12px; padding: 12px 22px 20px; }
.house-filters .mud-input { font-size: 12px; }
.house-filters .mud-input-label { font-size: 12px; }
.house-filters .mud-input-outlined { border-radius: 10px; }
.house-filters .clear-house-filters { align-self: center; font-size: 11px; text-transform: none; }
.house-table .mud-table-cell { font-size: 12px; padding: 17px 18px; }
.house-table thead { background: #fafbf9; }
.house-table th { color: #70796a; font-weight: 500; white-space: nowrap; }
.house-table .mud-table-pagination { font-size: 11px; }
.house-plaque { font-size: 13px; font-weight: 650; }
.house-row-actions { display: flex; align-items: center; gap: 3px; white-space: nowrap; }
.house-status { display: inline-block; background: #f5f6f1; border: 1px solid #e4e8dc; color: #57674a; font-size: 11px; border-radius: 24px; padding: 5px 10px; }
.api-error { margin: 0 0 18px; text-align: start; }
.api-error ul { padding-inline-start: 18px; margin-top: 5px; }
.api-error strong { font-weight: 500; }
.lookup-error { color: #bf4242; font-size: 11px; line-height: 1.6; padding: 6px 4px; }
.house-editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; align-items: start; }
.house-form-card { padding: 24px; }
.house-form-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin-top: 24px; }
.house-form-fields .mud-input-outlined { border-radius: 10px; }
.full-width-field { grid-column: 1 / -1; }
.house-form-actions { display: flex; gap: 12px; align-items: center; border-top: 1px solid #f0f1ed; padding-top: 22px; margin-top: 24px; }
.house-form-actions .mud-button { border-radius: 10px; text-transform: none; font-size: 12px; padding: 9px 18px; }
.house-form-aside .detail-note { font-size: 12px; }
.form-validation-summary { font-size: 12px; color: #bf4242; padding-inline-start: 20px; }
.house-details-card { padding: 26px; }
.house-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin: 32px 0; }
.house-detail-grid dd { font-size: 14px; overflow-wrap: anywhere; }
.house-description { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.9; color: #6e7865; margin-top: 12px; }
@media (max-width: 1150px) { .house-editor-grid { grid-template-columns: 1fr; } .house-form-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } .house-form-aside .mt-4 { margin-top: 0 !important; } .house-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .house-primary-action.mud-button { font-size: 11px; padding: 8px 12px; white-space: nowrap; } .house-list-heading { padding: 18px 16px 6px; } .house-filters { grid-template-columns: 1fr; gap: 6px; padding: 10px 16px 16px; } .house-filters .clear-house-filters { justify-self: end; } .house-form-fields { grid-template-columns: 1fr; } .house-form-card { padding: 20px; } .form-field-spacer { display: none; } .house-form-aside { display: block; } .house-form-aside .mt-4 { margin-top: 16px !important; } .house-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } .house-table .mud-table-cell { padding: 13px 16px; } .house-row-actions { justify-content: flex-end; } }

[dir="rtl"] { font-family: Tahoma, "Segoe UI", Arial, sans-serif; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] .eyebrow { letter-spacing: normal; }
.personnel-portal { min-height: 100vh; background: #f6f7f8; }
.personnel-topbar { display: flex; align-items: center; gap: 16px; padding: 20px clamp(16px, 4vw, 56px); background: white; border-bottom: 1px solid #eff0ee; }
.personnel-topbar p { color: #747873; font-size: 12px; margin-top: 4px; }
.personnel-main { max-width: 1200px; margin-inline: auto; padding: 32px clamp(16px, 4vw, 40px); }
.portal-period { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.portal-period > div { flex: 1; min-width: 180px; }
.portal-period p { margin-block: 10px; }
.portal-personnel .lookup-field { max-width: 500px; }
[dir="rtl"] .mud-typography, [dir="rtl"] .mud-button, [dir="rtl"] .mud-input, [dir="rtl"] .mud-table-cell { font-family: Tahoma, "Segoe UI", Arial, sans-serif; }

