body:has(#deskPanel:not([hidden])) { background: #f5f7fb; }
body:has(#deskPanel:not([hidden])) .app-shell { display: block; width: 100%; margin: 0; }
body:has(#deskPanel:not([hidden])) .app-shell > header, body:has(#deskPanel:not([hidden])) .app-shell > .footnote { display: none; }
.dashboard { min-height: 100vh; display: grid; grid-template-columns: 244px minmax(0, 1fr); color: #17233b; }
.sidebar { position: sticky; top: 0; align-self: start; min-height: 100vh; padding: 2rem 1.15rem 1.4rem; display: flex; flex-direction: column; background: #112342; color: #fff; }
.brand-lockup { display: flex; align-items: center; gap: .8rem; padding: 0 .3rem 2.5rem; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #4d79ef; font-size: 1.4rem; font-weight: 800; box-shadow: 0 8px 20px #06142b55; }
.brand-lockup strong { display: block; font-size: 1.12rem; letter-spacing: -.02em; }
.brand-lockup small { display: block; margin-top: .12rem; color: #aebdd7; font-size: .8rem; }
.sidebar-label, .sidebar-bottom p { margin: 0 0 .7rem .6rem; color: #9faec8; font-size: .75rem; letter-spacing: .09em; font-weight: 700; }
.dashboard-nav { display: grid; gap: .3rem; }
.dashboard-nav .nav-button { display: flex; align-items: center; gap: .8rem; width: 100%; padding: .8rem .75rem; margin: 0; color: #d6e1f1; background: transparent; font-weight: 550; text-align: left; }
.dashboard-nav .nav-button:hover { background: #243b61; color: #fff; }
.dashboard-nav .nav-button.selected { color: #fff; background: #3158a4; }
.nav-icon { width: 1.25rem; text-align: center; font-size: 1.15rem; }
.sidebar-bottom { display: grid; gap: .25rem; margin-top: auto; padding: 1rem .7rem; border-top: 1px solid #ffffff2b; }
.sidebar-bottom p { margin: 0 0 .4rem; }.sidebar-bottom span { color: #b8c7df; font-size: .84rem; }
.dashboard-main { min-width: 0; }
.dashboard-topbar { min-height: 104px; padding: 1.3rem clamp(1.25rem, 3.6vw, 3.2rem); display: flex; justify-content: space-between; gap: 1rem; align-items: center; background: white; border-bottom: 1px solid #e6eaf1; text-align: left; }
.dashboard-topbar h2 { margin: .35rem 0 0; font-size: 1.45rem; letter-spacing: -.025em; }
.breadcrumb { color: #66758e; font-size: .75rem; letter-spacing: .07em; font-weight: 750; }.breadcrumb span { padding: 0 .3rem; color: #a6b2c4; }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .6rem; }
.staff-chip { padding: .55rem .75rem; border-radius: 99px; background: #eef3fb; color: #36527a; font-weight: 650; font-size: .85rem; }
.account-menu { position: relative; flex: none; }
.account-trigger { display: flex; align-items: center; gap: .55rem; padding: .3rem .45rem; border: 1px solid #e0e8f3; border-radius: 99px; background: #fff; cursor: pointer; list-style: none; }
.account-trigger::-webkit-details-marker { display: none; }.account-trigger:hover { background: #f4f7fc; }.account-trigger:focus-visible { outline: 2px solid #7598ee; outline-offset: 2px; }
.account-trigger .staff-chip { display: block; padding: 0 .35rem 0 0; background: transparent; white-space: nowrap; }
.account-dropdown { position: absolute; z-index: 10; top: calc(100% + .55rem); right: 0; min-width: 190px; padding: .4rem; border: 1px solid #dfe7f2; border-radius: .75rem; background: #fff; box-shadow: 0 12px 28px #233b5b24; }
.dashboard .account-dropdown button { display: block; width: 100%; margin: 0; padding: .7rem .8rem; border: 0; border-radius: .5rem; background: transparent; color: #304968; text-align: left; font-weight: 650; }
.dashboard .account-dropdown button:hover { background: #f0f5fc; }.profile-password-button { margin-top: 1rem !important; }
.staff-avatar { width: 38px; height: 38px; object-fit: cover; border-radius: 50%; }
.profile-avatar { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; background: #e8eef9; }
.profile-card form { max-width: 520px; }.profile-card h4 { margin: 1.8rem 0 .5rem; }
.avatar-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: .6rem; max-width: 560px; margin: 1rem 0; }
.dashboard .avatar-choice { padding: .25rem; margin: 0; border: 2px solid transparent; background: #f0f4fb; border-radius: .7rem; }
.dashboard .avatar-choice[aria-pressed="true"] { border-color: #315fce; background: #e5eeff; }
.avatar-choice img { display: block; width: 100%; aspect-ratio: 1; border-radius: .5rem; }
.dashboard button { font-size: .9rem; }
.dashboard button.quiet-button, .dashboard button.outline-button { margin: 0; background: white; border: 1px solid #d7e0ed; color: #334965; font-weight: 650; padding: .6rem .85rem; }
.dashboard button.quiet-button:hover, .dashboard button.outline-button:hover { background: #f1f5fb; }
.dashboard-content { width: min(100%, 1440px); margin: 0 auto; padding: 2.2rem clamp(1.25rem, 3.6vw, 3.2rem) 2.5rem; }
.welcome-row, .section-head, .activity-header { display: flex; justify-content: space-between; align-items: start; gap: 1rem; flex-wrap: wrap; }
.welcome-row { margin-bottom: 1.5rem; }.welcome-row h3 { margin: .35rem 0 .4rem; font-size: clamp(1.6rem, 2.5vw, 2.1rem); letter-spacing: -.04em; }
.section-kicker { margin: 0; color: #536d98; font-size: .72rem; font-weight: 800; letter-spacing: .12em; }.muted { color: #687992; line-height: 1.5; }.welcome-row .muted, .activity-header .muted, .section-head .muted { margin-bottom: 0; }
.today-pill { padding: .7rem 1rem; background: #fff; border: 1px solid #e2e8f1; border-radius: .7rem; color: #2c4260; font-weight: 700; }.today-pill > span:first-child { color: #4e77df; }.today-pill small { display: block; margin-left: 1.3rem; color: #72839b; font-weight: 500; font-size: .76rem; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.metric-card, .activity-card, .dashboard-card { background: #fff; border: 1px solid #e3e9f2; border-radius: .9rem; box-shadow: 0 4px 18px #172b4d08; }
.metric-card { padding: 1.2rem; min-height: 150px; }.metric-top { display: flex; justify-content: space-between; gap: .5rem; align-items: start; color: #53657f; font-size: .88rem; font-weight: 650; }.metric-card strong { display: block; margin: .65rem 0 .3rem; font-size: 2rem; line-height: 1; letter-spacing: -.04em; }.metric-card small { color: #718199; font-size: .8rem; }
.metric-icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: .65rem; font-size: 1rem; }.mint { background: #e0f7f0; color: #168464; }.blue { background: #e5efff; color: #3166c9; }.violet { background: #f1eaff; color: #7655c5; }.amber { background: #fff3dc; color: #a86b16; }
.activity-card, .dashboard-card { padding: 1.4rem; }.activity-card { margin-bottom: 1.25rem; }.activity-header h3, .section-head h3 { margin: .4rem 0 .3rem; font-size: 1.2rem; }.activity-badge { padding: .5rem .75rem; color: #536784; background: #f1f5fa; border-radius: .5rem; font-size: .8rem; font-weight: 650; }
.activity-chart { display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: clamp(.4rem, 2vw, 1.4rem); min-height: 156px; margin: 1rem .25rem 0; border-bottom: 1px solid #e7edf5; background: repeating-linear-gradient(to bottom, #edf1f7 0, #edf1f7 1px, transparent 1px, transparent 38px); }
.chart-column { min-width: 0; display: grid; justify-items: center; align-content: end; height: 155px; gap: .3rem; }.chart-count { color: #526785; font-size: .72rem; }.chart-bar { width: min(100%, 40px); min-height: 3px; border-radius: 5px 5px 0 0; background: #8baaf1; }.chart-column:last-child .chart-bar { background: #426be0; }.chart-day { color: #6e7e96; font-size: .75rem; white-space: nowrap; }.chart-empty { margin: 1rem 0 0; color: #718199; font-size: .85rem; }
.dashboard-card { margin-bottom: 1.25rem; }.visit-controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.2rem; border-bottom: 1px solid #e7edf5; }.filter-tabs { display: flex; gap: .35rem; flex-wrap: wrap; }.dashboard .filter-button { padding: .7rem .8rem; margin: 0; color: #6a7b94; background: transparent; border-radius: 0; border-bottom: 2px solid transparent; }.dashboard .filter-button:hover { color: #315fce; }.dashboard .filter-button.selected { color: #315fce; border-color: #315fce; }
.search-box { display: flex; align-items: center; gap: .5rem; width: min(100%, 290px); margin: 0 0 .5rem; padding: .2rem .65rem; color: #6d7f98; border: 1px solid #d9e2ef; border-radius: .55rem; font-size: 1.3rem; }.search-box input { border: 0; outline: 0; padding: .4rem 0; font-size: .85rem; }.search-box:focus-within { outline: 2px solid #7096f1; outline-offset: 1px; }
.dashboard-status { min-height: 1.5rem; margin: .8rem 0; color: #718199; font-size: .85rem; }.visit-list { display: grid; gap: .7rem; }.dashboard .visit-card { display: grid; grid-template-columns: minmax(160px, 1.2fr) minmax(120px, 1fr) minmax(120px, 1fr) auto; align-items: start; gap: 1rem; padding: 1rem; border-color: #e6ebf3; }.visit-person { min-width: 0; display: flex; gap: .7rem; align-items: center; }.visitor-avatar { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #345cc0; background: #e6efff; font-weight: 750; }.visit-name { display: block; color: #233654; font-weight: 750; overflow-wrap: anywhere; }.visit-subtext { display: block; margin-top: .25rem; color: #718199; font-size: .8rem; overflow-wrap: anywhere; }.visit-field-label { display: block; margin-bottom: .3rem; color: #718199; font-size: .75rem; font-weight: 650; }.visit-field-value { display: block; font-size: .88rem; line-height: 1.4; overflow-wrap: anywhere; }.visit-status { display: inline-flex; padding: .35rem .55rem; border-radius: 99px; font-size: .75rem; font-weight: 750; white-space: nowrap; }.visit-status.onsite { color: #14724f; background: #e3f8ef; }.visit-status.completed { color: #586a84; background: #edf1f7; }.visit-details { grid-column: 1 / -1; color: #556984; font-size: .85rem; }.visit-details summary, .security-card summary { cursor: pointer; color: #315fce; font-weight: 700; }.visit-details form { margin-top: .8rem; }.visit-details p { margin: .6rem 0; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1rem; color: #718199; font-size: .85rem; }.pagination > div { display: flex; gap: .5rem; }.dashboard button:disabled { opacity: .45; cursor: not-allowed; }
.security-card { margin-top: 1rem; }.security-card form { max-width: 520px; }.security-card details { margin: 1.2rem 0; }.security-card .visit-card { display: block; margin-top: .8rem; }.security-card .visit-card h4 { margin: 0 0 .8rem; }.security-card .visit-card form { margin-top: .8rem; }
.roles-heading { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid #e6ebf3; }.roles-heading h3 { margin: .35rem 0; }
.permission-group { margin: 1rem 0; padding: .9rem 1rem 1rem; border: 1px solid #dce5f1; border-radius: .75rem; background: #f8faff; }
.permission-group legend { padding: 0 .35rem; color: #253e62; font-size: .95rem; font-weight: 750; }.permission-group-description { margin: .15rem 0 .7rem; color: #627994; font-size: .85rem; line-height: 1.4; }
.permission-choice { display: grid; grid-template-columns: 19px minmax(0, 1fr); gap: .7rem; align-items: start; margin: .55rem 0 0; padding: .7rem; border: 1px solid #e1e9f4; border-radius: .55rem; background: #fff; cursor: pointer; }
.permission-choice input { width: 18px; height: 18px; margin: .1rem 0 0; padding: 0; accent-color: #315fce; }.permission-copy strong, .permission-copy small { display: block; }.permission-copy strong { color: #304867; font-size: .9rem; }.permission-copy small { margin-top: .22rem; color: #687f9b; font-size: .82rem; font-weight: 400; line-height: 1.4; }
.security-card .role-editor { margin: .65rem 0; padding: .85rem 1rem; border: 1px solid #dfe7f2; border-radius: .7rem; background: #fff; }.role-editor > summary { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; list-style: none; }.role-editor > summary::-webkit-details-marker { display: none; }.role-editor > summary strong { color: #263e5e; }.role-editor > summary::after { content: '+'; color: #315fce; font-size: 1.25rem; }.role-editor[open] > summary::after { content: '−'; }.role-summary-meta { margin-left: auto; color: #71839a; font-size: .8rem; font-weight: 500; }.role-editor form { padding-top: .6rem; }
.dashboard-footer { padding: 0 clamp(1.25rem, 3.6vw, 3.2rem) 1.7rem; color: #8492a7; font-size: .8rem; }.dashboard-footer span { padding: 0 .3rem; }
.inventory-management details { margin: 1rem 0; padding: .8rem 1rem; border: 1px solid #e3e9f2; border-radius: .65rem; }.inventory-management summary, .inventory-history summary { cursor: pointer; color: #315fce; font-weight: 700; }.inventory-form { margin-top: 1rem; }.inventory-form-grid, .inventory-filters, .inventory-device-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1rem; }.inventory-form-grid label, .inventory-filters label { display: block; margin: .4rem 0; }.inventory-form label span { color: #718199; font-weight: 400; }.inventory-form-actions { display: flex; gap: .5rem; align-items: center; }.inventory-filters { grid-template-columns: 2fr 1fr 1fr; margin-top: 1rem; }.inventory-filters label { color: #53657f; font-size: .85rem; }.inventory-filters input, .inventory-filters select { margin-top: .4rem; }
.inventory-analysis { margin: 1.25rem 0; }.inventory-analysis .dashboard-status:empty { display: none; }.analysis-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; margin-top: 1.25rem; }
.analysis-card { min-width: 0; padding: 1rem; border: 1px solid #e7edf5; border-radius: .8rem; background: #fbfcff; }.analysis-card h4 { margin: 0 0 .3rem; color: #263e5e; font-size: 1rem; }.analysis-card > p { margin: 0 0 1rem; color: #6a7e99; font-size: .84rem; line-height: 1.4; }
.status-visual { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }.status-donut { flex: none; display: grid; place-items: center; width: 116px; height: 116px; border-radius: 50%; background: #eaf0f7; }.status-donut > div { display: grid; place-content: center; width: 76px; height: 76px; border-radius: 50%; background: #fff; text-align: center; }.status-donut strong { color: #233b5c; font-size: 1.35rem; }.status-donut span { color: #71839b; font-size: .72rem; }
.status-legend { display: grid; flex: 1; min-width: 115px; gap: .1rem; }.dashboard .status-legend-item { display: grid; grid-template-columns: 9px 1fr auto; align-items: center; gap: .45rem; width: 100%; margin: 0; padding: .35rem; border: 0; border-radius: .4rem; color: #536a88; background: transparent; text-align: left; font-size: .8rem; font-weight: 500; }.dashboard .status-legend-item:hover { background: #eaf1fb; }.status-legend-item strong { color: #283f5e; }.status-legend-dot { width: 9px; height: 9px; border-radius: 50%; }.status-dot-in_use { background: #3d72df; }.status-dot-spare { background: #40ac92; }.status-dot-maintenance { background: #e6a541; }.status-dot-retired { background: #9aabc0; }
.analysis-bars { display: grid; gap: .65rem; }.analysis-bar-row { display: grid; gap: .3rem; min-width: 0; }.analysis-bar-top { display: flex; justify-content: space-between; gap: .75rem; color: #4e6582; font-size: .8rem; }.analysis-bar-label { min-width: 0; overflow-wrap: anywhere; }.analysis-bar-top strong { color: #2c4668; }.analysis-bar-track { display: block; height: 7px; overflow: hidden; border-radius: 99px; background: #e8eef7; }.analysis-bar-fill { display: block; height: 100%; border-radius: inherit; background: #5c81df; }.dashboard .analysis-bar-filter { width: 100%; margin: 0; padding: .3rem; border: 0; border-radius: .35rem; background: transparent; text-align: left; }.dashboard .analysis-bar-filter:hover { background: #eaf1fb; }.analysis-bar-filter .analysis-bar-fill { background: #48a991; }.analysis-empty { color: #71839a; font-size: .85rem; }
.inventory-device { padding: 1rem; border: 1px solid #e3e9f2; border-radius: .7rem; }.inventory-device-header { display: flex; justify-content: space-between; align-items: start; gap: .8rem; }.inventory-device h4 { margin: 0; color: #233654; font-size: 1rem; }.inventory-tag { color: #718199; font-size: .82rem; margin: .3rem 0 .9rem; }.inventory-device-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: .4rem 0 1rem; }.inventory-device-grid > div { min-width: 0; }.inventory-status { flex: none; display: inline-flex; padding: .35rem .6rem; border-radius: 99px; font-size: .75rem; font-weight: 750; }.inventory-status-in_use { color: #14724f; background: #e3f8ef; }.inventory-status-spare { color: #315f9a; background: #e8f1ff; }.inventory-status-maintenance { color: #8a5915; background: #fff1db; }.inventory-status-retired { color: #586a84; background: #edf1f7; }.inventory-card-actions { display: flex; gap: 1rem; align-items: start; flex-wrap: wrap; margin-top: .8rem; }.inventory-history { flex: 1; min-width: min(100%, 240px); padding: .5rem 0; }.inventory-history-list { display: grid; gap: .7rem; margin-top: .8rem; }.inventory-history-entry { padding-left: .8rem; border-left: 2px solid #d5e3ff; font-size: .85rem; }.inventory-history-entry strong { font-weight: 600; line-height: 1.5; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 1100px) { .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dashboard .visit-card { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .analysis-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .dashboard { display: block; }.sidebar { position: static; min-height: 0; padding: 1rem; }.brand-lockup { padding: 0 0 .9rem; }.sidebar-label, .sidebar-bottom { display: none; }.dashboard-nav { display: flex; overflow-x: auto; }.dashboard-nav .nav-button { width: auto; white-space: nowrap; }.dashboard-topbar { min-height: 0; }.dashboard-content { padding-top: 1.4rem; }.staff-chip { display: none; } }
@media (max-width: 480px) { .metric-grid { gap: .65rem; }.metric-card { padding: .9rem; min-height: 135px; }.metric-top { font-size: .8rem; }.metric-card strong { font-size: 1.7rem; }.metric-icon { width: 30px; height: 30px; }.dashboard .visit-card { grid-template-columns: 1fr; gap: .65rem; }.today-pill { display: none; }.pagination { align-items: start; flex-direction: column; } }
@media (max-width: 760px) { .inventory-filters { grid-template-columns: 1fr; }.inventory-device-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .account-trigger .staff-chip { display: block; max-width: 9rem; overflow: hidden; text-overflow: ellipsis; } }
@media (max-width: 480px) { .inventory-form-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .analysis-grid { grid-template-columns: 1fr; } }
