
:root{--sidebar-width:252px;--shell-bg:#f4f6fb;--surface:#fff;--shell-text:#223047;--shell-muted:#748197;--shell-border:#e4e9f2;--primary-color:#4263eb;--secondary-color:#748197;--success-color:#168564;--info-color:#287bb5;--warning-color:#bd8a13;--danger-color:#ce4658;color-scheme:light}
*{box-sizing:border-box}body{margin:0;background:var(--shell-bg);color:var(--shell-text);font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:.9rem}.app-sidebar{position:fixed;inset:0 auto 0 0;z-index:1040;width:var(--sidebar-width);height:100dvh;display:flex;flex-direction:column;background:#17284b;color:#dce5f8;overflow-x:hidden;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#45567a transparent;transition:width .18s ease;flex-shrink:0}.app-brand{display:flex;align-items:center;gap:11px;padding:24px 18px 22px;color:#fff;text-decoration:none;min-height:90px;flex-shrink:0}.brand-symbol{display:grid;place-items:center;width:36px;height:40px;flex-shrink:0;border-radius:11px;background:#4263eb;font-size:18px}.app-brand strong{display:block;font-size:.97rem;letter-spacing:-.025em;white-space:nowrap}.app-brand small{display:block;color:#a0afd0;font-size:.72rem;margin-top:3px}.sidebar-navigation{padding:0 10px 16px;flex:1}.navigation-group{margin:0 0 13px}.navigation-heading{margin:0;padding:12px 12px 8px;font-size:.65rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#94a5c7;white-space:nowrap}.sidebar-link{display:flex;align-items:center;gap:12px;min-height:41px;width:100%;padding:10px 12px;margin:2px 0;border:0;border-radius:8px;background:transparent;color:#cad5ec;text-align:left;text-decoration:none;font:inherit;font-size:.81rem;line-height:1.3}.sidebar-link i{flex:0 0 20px;width:20px;text-align:center;font-size:15px}.sidebar-link .sidebar-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.sidebar-link:hover,.sidebar-link:focus-visible{background:#24395f;color:#fff}.sidebar-link.is-active{background:#4263eb;color:#fff;font-weight:600}.sidebar-logout{padding:10px;border-top:1px solid #ffffff16}.app-main{min-width:0;margin-left:var(--sidebar-width);transition:margin-left .18s ease}.app-topbar{position:sticky;top:0;z-index:1020;min-height:77px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 28px;background:var(--surface);border-bottom:1px solid var(--shell-border)}.topbar-heading{display:flex;align-items:center;gap:15px;min-width:0}.topbar-heading strong{display:block;font-size:.9rem}.topbar-eyebrow{display:block;font-size:.69rem;color:var(--shell-muted);margin-bottom:3px;max-width:220px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.topbar-actions{display:flex;align-items:center;gap:14px;min-width:0}.shell-icon-button{display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--shell-border);background:var(--surface);border-radius:8px;color:var(--shell-muted);flex-shrink:0}.shell-icon-button:hover{color:var(--primary-color);background:var(--shell-bg)}.property-switcher{width:245px;max-width:28vw}.property-switcher select{background-color:var(--shell-bg);border-color:var(--shell-border);font-size:.76rem;height:36px}.language-selector{width:62px;font-size:.73rem}.account-menu{display:flex;align-items:center;gap:9px;border:0;background:transparent;color:var(--shell-text);padding:0}.account-avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#e9edff;color:#4263eb;font-weight:700}.account-summary{text-align:left;max-width:145px}.account-summary strong{display:block;font-size:.75rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.account-summary small{display:block;color:var(--shell-muted);font-size:.65rem}.account-menu>i{font-size:.6rem;color:var(--shell-muted)}.app-content{padding:28px;min-height:calc(100dvh - 77px);max-width:100%}.app-content:focus{outline:none}.portfolio-notice{display:flex;align-items:center;gap:10px;margin-bottom:22px;background:#eaf0ff;border:1px solid #d8e2ff;color:#486298;padding:11px 15px;border-radius:9px;font-size:.76rem}.portfolio-notice strong{font-weight:600}.card{border:1px solid var(--shell-border);border-radius:12px;box-shadow:0 3px 16px #1c345307}.card-header{border-bottom:1px solid var(--shell-border);border-radius:12px 12px 0 0!important;background:var(--surface)}.table{font-size:.8rem;--bs-table-bg:var(--surface);--bs-table-color:var(--shell-text);--bs-table-border-color:var(--shell-border);--bs-table-hover-bg:#4263eb07;--bs-table-hover-color:var(--shell-text)}.table thead th{font-size:.7rem;letter-spacing:.025em;vertical-align:middle;color:#65728a;background:#f7f9fc;font-weight:600;white-space:nowrap;padding:13px 12px}.table td{padding:12px;vertical-align:middle}.table-responsive{border-radius:0 0 12px 12px}.form-control,.form-select{border-color:#dce3ef;border-radius:7px;font-size:.85rem}.form-label{font-size:.78rem;font-weight:500;color:var(--shell-text)}.btn{border-radius:7px;font-size:.8rem;font-weight:500}.btn-primary{background:#4263eb;border-color:#4263eb}.stat-card{border-left:3px solid #4263eb}.text-muted{color:var(--shell-muted)!important}.text-gray-800,.text-gray-600{color:var(--shell-text)}.page-intro{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:24px}.page-intro h1{font-size:1.6rem;letter-spacing:-.045em;margin-bottom:6px}.page-intro p{font-size:.84rem;color:var(--shell-muted);margin:0}.eyebrow{font-size:.69rem;font-weight:700;color:var(--primary-color);text-transform:uppercase;letter-spacing:.12em;margin-bottom:8px}.context-card{padding:18px 22px;border:1px solid #dce5ff;background:#f0f4ff;border-radius:12px;margin-bottom:22px;display:flex;align-items:center;justify-content:space-between;gap:20px}.context-card strong{display:block}.context-card small{color:var(--shell-muted)}.empty-workspace{text-align:center;max-width:650px;margin:50px auto;padding:40px}.empty-workspace i{font-size:32px;color:#4263eb;margin-bottom:20px}.empty-workspace h2{font-size:1.3rem}.empty-workspace p{color:var(--shell-muted)}.sidebar-backdrop{display:none}.skip-link{position:fixed;z-index:2000;background:white;padding:10px}.sidebar-collapsed{--sidebar-width:76px}.sidebar-collapsed .app-sidebar .sidebar-text{display:none}.sidebar-collapsed .app-brand{padding:24px 20px;justify-content:center}.sidebar-collapsed .navigation-group{border-top:1px solid #ffffff12;margin:7px 0;padding-top:7px}.sidebar-collapsed .sidebar-link{padding:11px 0;justify-content:center;gap:0}.sidebar-collapsed .sidebar-link i{flex-basis:24px;width:24px}.sidebar-collapsed .sidebar-navigation{padding:0 10px}.sidebar-collapsed .sidebar-logout{padding:10px}.dark-theme{color-scheme:dark;--shell-bg:#111925;--surface:#1b2637;--shell-text:#e3eaf5;--shell-muted:#a4b1c6;--shell-border:#334055}.dark-theme .table{--bs-table-bg:var(--surface);--bs-table-color:var(--shell-text);--bs-table-hover-bg:#ffffff08}.dark-theme .table thead th{background:#202e42;color:#bdcbe0}.dark-theme .card-header,.dark-theme .bg-white,.dark-theme .modal-content{background:var(--surface)!important;color:var(--shell-text)}.dark-theme .form-control,.dark-theme .form-select,.dark-theme .dropdown-menu{background-color:#172132;color:var(--shell-text);border-color:var(--shell-border)}.dark-theme .dropdown-item{color:var(--shell-text)}.dark-theme .dropdown-item:hover{background:#263550}.dark-theme .context-card,.dark-theme .portfolio-notice{background:#213151;color:#cad9f7;border-color:#354c74}.dark-theme .text-dark{color:var(--shell-text)!important}.dark-theme .table-light{--bs-table-bg:#202e42;--bs-table-color:var(--shell-text)}
@media(min-width:769px){.app-sidebar{transform:none!important}}
@media(max-width:1100px){.account-summary{display:none}.app-topbar{padding:13px 20px}.topbar-actions{gap:9px}.property-switcher{width:200px}.app-content{padding:20px}}
@media(max-width:768px){:root,.sidebar-collapsed{--sidebar-width:252px}.app-sidebar{transform:translateX(-100%);transition:transform .18s ease}.mobile-navigation-open .app-sidebar{transform:translateX(0)}.app-main{margin-left:0}.sidebar-collapsed .app-sidebar .sidebar-text{display:block}.sidebar-collapsed .app-brand{padding:24px 18px;justify-content:flex-start}.sidebar-collapsed .sidebar-link{justify-content:flex-start;padding:10px 12px;gap:12px}.sidebar-collapsed .navigation-group{border:0;padding:0;margin-bottom:13px}.mobile-navigation-open .sidebar-backdrop{display:block;position:fixed;inset:0;background:#0d183980;border:0;z-index:1030}.app-topbar{flex-wrap:wrap;padding:12px 16px;gap:12px}.topbar-heading{flex:1}.topbar-actions{gap:8px}.property-switcher{max-width:none;width:175px}.topbar-eyebrow{max-width:180px}.app-content{padding:18px 14px}.page-intro,.context-card{flex-direction:column;gap:12px}.portfolio-notice{align-items:flex-start}.language-selector{display:none}}
@media(max-width:480px){.topbar-actions{width:100%}.property-switcher{flex:1;width:auto}.topbar-heading{width:100%}.app-topbar{position:relative}.account-menu{margin-left:auto}}
@media(prefers-reduced-motion:reduce){.app-sidebar,.app-main{transition:none}}
@media print{.app-sidebar,.app-topbar,.portfolio-notice,.no-print{display:none!important}.app-main{margin:0}.app-content{padding:0;background:white}.card{box-shadow:none}}

.permission-toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;position:sticky;top:88px;z-index:20;margin-bottom:20px;padding:14px;background:var(--surface);border:1px solid var(--shell-border);border-radius:10px;box-shadow:0 4px 18px #24344a08}.permission-rule{display:grid;grid-template-columns:minmax(80px,.8fr) minmax(100px,.7fr) minmax(130px,1.2fr);gap:12px;align-items:start;padding:13px 0;border-bottom:1px solid var(--shell-border)}.permission-rule:first-child{padding-top:0}.permission-rule:last-child{padding-bottom:0;border-bottom:0}.permission-rule small{font-size:.69rem;line-height:1.5}.permission-preview{text-align:right}.permission-rule .form-select{margin-top:2px}.permission-rule .form-label{font-size:.81rem}
@media(max-width:575px){.permission-rule{grid-template-columns:1fr 1fr}.permission-preview{grid-column:1/-1;text-align:left}.permission-toolbar{top:0}.permission-toolbar .form-control{max-width:none!important;width:100%}.permission-toolbar .btn{margin-left:0!important}}

.bed-map{padding:18px;border:1px solid var(--shell-border);border-radius:10px;background:var(--surface)}
.bed-map-legend{display:flex;flex-wrap:wrap;gap:16px;font-size:.75rem;color:var(--shell-muted);margin-bottom:18px}.bed-map-legend span{display:inline-flex;align-items:center;gap:6px}.bed-state-dot{display:inline-block;width:11px;height:11px;border-radius:3px;border:1px solid currentColor}
.bed-map-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:12px}.bed-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:110px;min-width:0;max-width:100%;padding:12px 8px;border:2px solid;border-radius:10px;text-align:center;text-decoration:none;font-size:.8rem}.bed-tile i{font-size:1.6rem;margin-bottom:5px}.bed-tile small{font-size:.68rem}.bed-tile .bed-occupant{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bed-state-available{background:#edf9f2;border-color:#87ccaa;color:#176d45}.bed-state-occupied{background:#edf0f5;border-color:#c7cfdb;color:#58677d}.bed-state-selected{background:#4263eb;border-color:#2945ba;color:white;box-shadow:0 0 0 3px #4263eb22}button.bed-tile:not(:disabled),a.bed-tile{cursor:pointer}button.bed-tile:not(:disabled):hover,a.bed-tile:hover{border-color:#4263eb;box-shadow:0 2px 8px #4263eb22}button.bed-tile:focus-visible,a.bed-tile:focus-visible{outline:3px solid #4263eb;outline-offset:3px}.bed-map-placeholder{padding:22px;border:1px dashed var(--shell-border);border-radius:10px;color:var(--shell-muted);font-size:.8rem}.dark-theme .bed-state-available{background:#173d31;border-color:#408766;color:#9ee2be}.dark-theme .bed-state-occupied{background:#2a3445;border-color:#526078;color:#c0cadb}

/* Shared record lists: dashboard panels and management tables use the same rhythm. */
:root {
    --list-header-bg: #f8fafc;
    --list-hover-bg: #f7f9fd;
    --list-positive-bg: #edf7f1;
    --list-positive-text: #216348;
    --list-warning-bg: #fff5e5;
    --list-warning-text: #8a570a;
    --list-neutral-bg: #eef1f6;
    --list-neutral-text: #5a687d;
    --list-primary-bg: #edf0ff;
    --list-primary-text: #3d54ac;
}
.dark-theme {
    --list-header-bg: #202c3d;
    --list-hover-bg: #233147;
    --list-positive-bg: #203e34;
    --list-positive-text: #a0ddbc;
    --list-warning-bg: #433722;
    --list-warning-text: #efce95;
    --list-neutral-bg: #2a374b;
    --list-neutral-text: #bdc9db;
    --list-primary-bg: #2b3657;
    --list-primary-text: #c0ccff;
}
.app-content .table { font-size: .8125rem; line-height: 1.5; font-variant-numeric: tabular-nums; }
.app-content .table > thead > tr > th {
    padding: 12px 18px;
    background: var(--list-header-bg);
    color: var(--shell-muted);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .015em;
    border-bottom: 1px solid var(--shell-border);
}
.app-content .table > tbody > tr > td { padding: 16px 18px; border-color: var(--shell-border); }
.app-content .table > tbody > tr:last-child > td { border-bottom-width: 0; }
.app-content .table tbody tr { --bs-table-hover-bg: var(--list-hover-bg); }
.app-content .table a:not(.btn) { color: var(--shell-text); font-weight: 500; text-decoration: none; }
.app-content .table a:not(.btn):hover { color: var(--primary-color); text-decoration: underline; text-underline-offset: 3px; }
.app-content .table small { font-size: .72rem; line-height: 1.5; }
.app-content .table .list-number, .list-number { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.app-content .table .list-date { white-space: nowrap; }
.app-content .table .list-filter-row th { padding: 9px 12px; background: var(--surface); }
.app-content .table .list-filter-row .form-control { min-width: 100px; font-size: .75rem; border-color: var(--shell-border); }
.app-content .table .btn-group { gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.app-content .table .btn-group > .btn { border-radius: 6px !important; margin-left: 0; }
.app-content .table .record-actions-cell { width: 1%; white-space: nowrap; }
.app-content .table .record-row-actions { display: inline-flex; flex-wrap: nowrap; width: max-content; vertical-align: middle; }
.app-content .table .record-row-actions > .btn { flex: 0 0 auto; }
.app-content .table .btn-sm { min-height: 30px; min-width: 30px; font-size: .75rem; }
.app-content .table-bordered > :not(caption) > * > * { border-inline-width: 0; }
.app-content .table .badge { padding: 5px 8px; border-radius: 5px; font-size: .68rem; font-weight: 600; line-height: 1.2; }
.app-content .table .badge.bg-success { background: var(--list-positive-bg) !important; color: var(--list-positive-text) !important; }
.app-content .table .badge.bg-warning { background: var(--list-warning-bg) !important; color: var(--list-warning-text) !important; }
.app-content .table .badge.bg-primary, .app-content .table .badge.bg-info { background: var(--list-primary-bg) !important; color: var(--list-primary-text) !important; }
.app-content .table .badge.bg-secondary { background: var(--list-neutral-bg) !important; color: var(--list-neutral-text) !important; }
.list-panel { min-width: 0; background: var(--surface); box-shadow: 0 2px 8px #1c345304; }
.list-panel-header { padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--shell-border); }
.list-panel-heading { min-width: 0; }
.list-panel-title { font-size: .94rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.4; margin: 0; color: var(--shell-text); }
.list-panel-description { font-size: .76rem; line-height: 1.5; color: var(--shell-muted); margin: 5px 0 0; }
.list-panel-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }
.list-count { display: inline-flex; align-items: center; justify-content: center; padding: 4px 9px; border-radius: 6px; background: var(--list-neutral-bg); color: var(--list-neutral-text); font-size: .72rem; font-weight: 600; white-space: nowrap; }
.list-panel-footer { padding: 13px 22px; border-top: 1px solid var(--shell-border); color: var(--shell-muted); font-size: .73rem; line-height: 1.5; }
.list-identity { display: flex; align-items: center; gap: 11px; min-width: 0; }
.list-identity-icon { width: 34px; height: 34px; display: grid; place-items: center; flex-shrink: 0; background: var(--list-neutral-bg); color: var(--list-neutral-text); border-radius: 8px; font-size: .85rem; }
.list-identity strong { display: block; font-size: .81rem; font-weight: 600; }
.list-secondary { display: block; color: var(--shell-muted); margin-top: 3px; }
.list-pill { display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; padding: 4px 8px; font-size: .73rem; line-height: 1.3; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; background: var(--list-neutral-bg); color: var(--list-neutral-text); }
.list-pill-positive { background: var(--list-positive-bg); color: var(--list-positive-text); }
.list-pill-warning { background: var(--list-warning-bg); color: var(--list-warning-text); }
.list-progress { width: 112px; max-width: 100%; margin-left: auto; }
.list-progress-label { display: flex; justify-content: flex-end; font-size: .79rem; margin-bottom: 6px; }
.list-progress-track { height: 5px; background: var(--list-neutral-bg); border-radius: 4px; overflow: hidden; }
.list-progress-fill { height: 100%; background: var(--primary-color); border-radius: inherit; }
.list-empty { padding: 34px 24px; text-align: center; margin: auto; }
.list-empty-icon { display: grid; place-items: center; width: 38px; height: 38px; margin: 0 auto 12px; border-radius: 50%; color: var(--shell-muted); background: var(--list-neutral-bg); font-size: .9rem; }
.list-empty h3 { font-size: .87rem; font-weight: 600; margin: 0 0 7px; color: var(--shell-text); }
.list-empty p { max-width: 360px; margin: 0 auto; font-size: .77rem; color: var(--shell-muted); line-height: 1.6; }
.operation-list { list-style: none; padding: 0 22px; margin: 0; }
.operation-list li + li { border-top: 1px solid var(--shell-border); }
.operation-link { display: flex; align-items: center; gap: 12px; padding: 19px 0; text-decoration: none; color: var(--shell-text); }
.operation-link:hover { color: var(--primary-color); }
.operation-link:focus-visible, .list-panel a:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 4px; border-radius: 4px; }
.operation-copy { flex: 1; min-width: 0; }
.operation-copy strong { display: block; font-size: .8rem; font-weight: 500; }
.operation-copy small { display: block; font-size: .7rem; color: var(--shell-muted); margin-top: 4px; line-height: 1.5; }
.operation-link > .list-pill { min-width: 28px; }
.operation-link > .fa-chevron-right { font-size: .6rem; color: var(--shell-muted); }
.lease-summary { padding: 14px 22px; border-bottom: 1px solid var(--shell-border); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .75rem; color: var(--shell-muted); }
.lease-summary a { margin-left: auto; font-size: .74rem; font-weight: 500; }
.records-panel .card-header { padding: 20px 22px !important; }
.records-panel .card-header h5 { font-size: .96rem; font-weight: 600; }
.records-panel .record-list-actions { flex-wrap: wrap; }
@media (max-width: 767px) {
    .list-panel-header { padding: 17px 18px; align-items: flex-start; }
    .list-panel-footer, .lease-summary { padding: 13px 18px; }
    .operation-list { padding-inline: 18px; }
    .records-panel .record-list-actions { justify-content: flex-start !important; margin-top: 12px; }
    .records-panel .card-header { padding: 18px !important; }
}
@media (max-width: 575px) {
    .list-panel-header { flex-wrap: wrap; }
    .list-empty { padding: 30px 18px; }
    .record-summary-table thead { display: none; }
    .record-summary-table, .record-summary-table tbody { display: block; width: 100%; }
    .record-summary-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; padding: 18px; border-bottom: 1px solid var(--shell-border); }
    .record-summary-table tbody tr:last-child { border-bottom: 0; }
    .app-content .record-summary-table > tbody > tr > td { display: block; padding: 0; border: 0; text-align: left; min-width: 0; }
    .record-summary-table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 5px; color: var(--shell-muted); font-size: .68rem; font-weight: 500; }
    .record-summary-table .list-row-identity { grid-column: 1 / -1; padding-bottom: 3px !important; }
    .record-summary-table .list-progress { margin-left: 0; }
    .record-summary-table .list-progress-label { justify-content: flex-start; }
}

.dark-theme .app-content .card { background-color: var(--surface); color: var(--shell-text); }
.list-address { max-width: 460px; overflow-wrap: anywhere; font-weight: 400; }

.list-panel > .table-responsive { flex-shrink: 0; overflow-y: hidden; border-radius: 0; }
.list-panel > .table-responsive:last-child { border-radius: 0 0 12px 12px; }

@media (max-width: 575px) {
    .app-content .record-summary-table td.list-number { text-align: left; }
}

/* Language names remain visible on both desktop and mobile. */
.language-selector { display: block; width: 108px; max-width: 118px; }
@media(max-width:768px) { .language-selector { display: block; width: 94px; font-size: .74rem; } .topbar-actions { flex-wrap: wrap; } .property-switcher { min-width: 120px; } }

/* Stayflow master identity */
.brand-symbol{width:40px;height:40px;background:transparent!important;border:0!important}
.brand-symbol img{display:block;width:40px;height:40px}
