:root {
    --ink: #17211d;
    --muted: #68746f;
    --line: #e4e9e6;
    --surface: #ffffff;
    --canvas: #f5f7f5;
    --brand: #183d32;
    --brand-hover: #0f2e26;
    --green: #2f7d5b;
    --green-soft: #eaf5ef;
    --blue: #3b6fa1;
    --blue-soft: #edf4fa;
    --amber: #a96d20;
    --amber-soft: #fbf3e6;
    --red: #b84e4e;
    --red-soft: #fbedeb;
    --violet: #7459a6;
    --violet-soft: #f2eef9;
    --shadow: 0 1px 2px rgba(19, 41, 33, .04), 0 10px 32px rgba(19, 41, 33, .035);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: "DM Sans", sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.icon { display: block; flex: 0 0 auto; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; width: 242px; display: flex; flex-direction: column; padding: 25px 18px 18px; background: var(--brand); color: #fff; }
.brand { height: 38px; display: flex; align-items: center; gap: 11px; padding: 0 10px; font: 800 19px/1 "Manrope", sans-serif; letter-spacing: -.4px; }
.brand-mark { width: 27px; height: 27px; position: relative; display: inline-flex; align-items: flex-end; justify-content: center; gap: 2px; transform: rotate(-2deg); }
.brand-mark span { display: block; width: 6px; border-radius: 6px 6px 2px 2px; background: #9cd2a9; transform: rotate(-17deg); }
.brand-mark span:nth-child(1) { height: 14px; }
.brand-mark span:nth-child(2) { height: 22px; background: #fff; }
.brand-mark span:nth-child(3) { height: 17px; transform: rotate(17deg); }
.main-nav { margin-top: 33px; }
.nav-label { margin: 0 10px 9px; color: #8eaaa0; font-size: 10px; font-weight: 700; letter-spacing: 1.25px; text-transform: uppercase; }
.nav-label.second { margin-top: 28px; }
.nav-item { min-height: 43px; margin: 3px 0; padding: 0 11px; display: flex; align-items: center; gap: 12px; border-radius: 8px; color: #b9cbc4; font-weight: 500; transition: .18s ease; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-item.active { background: rgba(255,255,255,.11); color: #fff; box-shadow: inset 3px 0 #9cd2a9; }
.nav-item .icon { width: 19px; }
.nav-badge { margin-left: auto; min-width: 24px; height: 20px; padding: 0 7px; border-radius: 12px; display: grid; place-items: center; color: #c7d7d1; background: rgba(255,255,255,.09); font-size: 11px; }
.nav-badge.alert { color: #fff; background: #b66655; }
.sidebar-footer { margin-top: auto; }
.help-card { margin: 12px 0 18px; padding: 15px; border: 1px solid rgba(255,255,255,.09); border-radius: 10px; background: rgba(255,255,255,.045); }
.help-icon { width: 31px; height: 31px; margin-bottom: 11px; display: grid; place-items: center; border-radius: 8px; color: #183d32; background: #a8d9b4; }
.help-card strong { font-size: 13px; }
.help-card p { margin: 5px 0 12px; color: #9eb4ab; font-size: 11px; line-height: 1.5; }
.help-card a { display: inline-flex; align-items: center; gap: 4px; color: #dbe8e3; font-size: 11px; font-weight: 600; }
.profile-switcher { width: 100%; padding: 10px 7px; display: flex; align-items: center; gap: 10px; border: 0; border-top: 1px solid rgba(255,255,255,.1); color: #fff; background: transparent; text-align: left; cursor: pointer; }
.profile-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.profile-copy strong { overflow: hidden; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.profile-copy small { margin-top: 3px; color: #8eaaa0; font-size: 10px; }

.workspace { margin-left: 242px; min-width: 0; }
.topbar { position: sticky; z-index: 20; top: 0; height: 67px; padding: 0 38px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(10px); }
.global-search { width: min(370px, 40vw); display: flex; align-items: center; gap: 10px; color: #8b9691; }
.global-search input { min-width: 0; flex: 1; padding: 8px 0; border: 0; outline: 0; color: var(--ink); background: transparent; }
.global-search input::placeholder { color: #98a19d; }
.global-search kbd { padding: 3px 7px; border: 1px solid #dfe4e1; border-radius: 5px; color: #8b9691; background: #f7f8f7; box-shadow: 0 1px #e2e6e4; font: 10px/1.2 "DM Sans", sans-serif; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.icon-button, .more-button { border: 0; background: transparent; cursor: pointer; }
.icon-button { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; }
.icon-button:hover, .more-button:hover { background: #f0f3f1; }
.notification-button { position: relative; color: #57635e; }
.notification-button span { position: absolute; top: 7px; right: 8px; width: 6px; height: 6px; border: 1.5px solid #fff; border-radius: 50%; background: #c15d51; }
.topbar-divider { width: 1px; height: 23px; background: var(--line); }
.company-name { color: #424e49; font-size: 12px; font-weight: 600; }
.company-logo { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: #f0f6f2; background: #3d665a; font: 700 12px "Manrope"; }
.menu-button { display: none; }

.dashboard { width: min(1460px, 100%); margin: auto; padding: 35px 38px 30px; }
.notice { margin-bottom: 22px; padding: 12px 15px; display: flex; align-items: center; gap: 10px; border: 1px solid #c9e1d2; border-radius: 9px; color: #285b46; background: #f0f8f3; }
.notice > span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--green); }
.notice p { flex: 1; margin: 0; font-size: 12px; }
.notice a { padding: 4px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.eyebrow { margin: 0 0 6px; color: #7b8782; font-size: 10px; font-weight: 700; letter-spacing: 1.15px; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: "Manrope", sans-serif; color: #17231f; letter-spacing: -.55px; }
h1 { font-size: clamp(25px, 2.3vw, 32px); line-height: 1.2; }
h2 { font-size: 17px; }
.page-heading > div > p:last-child { margin: 7px 0 0; color: var(--muted); }
.heading-tools { display: flex; align-items: center; gap: 9px; }
.date-button { height: 39px; padding: 0 13px; display: flex; align-items: center; gap: 8px; border: 1px solid #dce2df; border-radius: 8px; color: #46534e; background: #fff; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.02); }
.live-pill { height: 29px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid #cee3d5; border-radius: 18px; color: #367357; background: #f2f8f4; font-size: 11px; font-weight: 600; }
.live-pill i { width: 6px; height: 6px; border-radius: 50%; background: #3a9468; box-shadow: 0 0 0 4px rgba(58,148,104,.11); }

.metrics-grid { margin-top: 27px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.metric-card, .panel, .hours-card, .quick-section { border: 1px solid var(--line); border-radius: 11px; background: var(--surface); box-shadow: var(--shadow); }
.metric-card { min-width: 0; padding: 15px; }
.metric-top { display: flex; align-items: flex-start; justify-content: space-between; }
.metric-icon { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 8px; }
.metric-icon.green, .quick-icon.green { color: var(--green); background: var(--green-soft); }
.metric-icon.slate, .quick-icon.slate { color: #576761; background: #eef1ef; }
.metric-icon.amber, .quick-icon.amber { color: var(--amber); background: var(--amber-soft); }
.metric-icon.blue, .quick-icon.blue { color: var(--blue); background: var(--blue-soft); }
.metric-icon.violet, .quick-icon.violet { color: var(--violet); background: var(--violet-soft); }
.metric-icon.red, .quick-icon.red { color: var(--red); background: var(--red-soft); }
.more-button { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; color: #8c9692; }
.metric-card > p { margin: 14px 0 6px; color: #69756f; font-size: 11px; font-weight: 500; }
.metric-value { display: flex; align-items: baseline; gap: 6px; min-height: 31px; }
.metric-value strong { font: 800 27px/1 "Manrope", sans-serif; letter-spacing: -1px; }
.metric-value span { min-width: 0; overflow: hidden; color: #77827d; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.metric-trend { margin-top: 11px; display: block; color: #7a8580; font-size: 9.5px; }
.metric-trend.green { color: var(--green); }
.metric-trend.amber { color: var(--amber); }
.metric-trend.red { color: var(--red); }

.hours-card { min-height: 92px; margin-top: 12px; padding: 17px 20px; display: grid; grid-template-columns: 1fr minmax(180px, 330px) auto; align-items: center; gap: 32px; overflow: hidden; }
.hours-main { display: flex; align-items: center; gap: 13px; }
.hours-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: var(--brand); }
.hours-main p { margin: 0 0 5px; color: #65716c; font-size: 11px; }
.hours-main strong { font: 800 23px/1 "Manrope", sans-serif; }
.hours-main strong span { font-size: 12px; color: #68746f; }
.hours-chart { height: 48px; display: flex; align-items: flex-end; gap: 6px; }
.hours-chart span { height: var(--height); flex: 1; min-width: 4px; border-radius: 3px 3px 1px 1px; background: #d5e5dc; }
.hours-chart span:nth-last-child(-n+3) { background: #709b85; }
.hours-summary { padding-left: 27px; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.hours-summary strong { color: var(--green); font: 700 15px "Manrope", sans-serif; }
.hours-summary span { margin-top: 3px; color: #7a8580; font-size: 9.5px; }

.quick-section { margin-top: 18px; padding: 18px 20px 20px; }
.section-title.compact { margin-bottom: 14px; }
.quick-actions { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; }
.quick-action { min-width: 0; min-height: 58px; padding: 9px 10px; display: flex; align-items: center; gap: 8px; border: 1px solid #e6ebe8; border-radius: 8px; background: #fbfcfb; transition: transform .15s, border-color .15s, box-shadow .15s; }
.quick-action:hover { transform: translateY(-1px); border-color: #cbd7d1; background: #fff; box-shadow: 0 5px 15px rgba(28,61,49,.06); }
.quick-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; }
.quick-action > span:nth-child(2) { min-width: 0; flex: 1; color: #394640; font-size: 11px; font-weight: 600; line-height: 1.25; }
.quick-action > .icon { color: #9aa39f; }

.primary-grid, .secondary-grid { margin-top: 18px; display: grid; gap: 18px; }
.primary-grid { grid-template-columns: minmax(0, 1.7fr) minmax(330px, .8fr); }
.secondary-grid { grid-template-columns: 1.35fr .65fr; }
.panel { min-width: 0; overflow: hidden; }
.panel-header { min-height: 72px; padding: 17px 20px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); }
.panel-header .eyebrow { margin-bottom: 5px; }
.panel-header h2 span { margin-left: 5px; padding: 2px 7px; border-radius: 10px; color: #9b6331; background: #fbf1e6; font: 700 10px "DM Sans", sans-serif; vertical-align: 2px; }
.panel-header > a { display: inline-flex; align-items: center; gap: 4px; color: #4c6e61; font-size: 10px; font-weight: 600; white-space: nowrap; }
.panel-header > a:hover { color: var(--green); }
.filter-row { padding: 11px 16px; display: flex; align-items: center; gap: 3px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-button { height: 29px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 6px; color: #6b7772; background: transparent; font-size: 10px; white-space: nowrap; cursor: pointer; }
.filter-button span { color: #929b97; }
.filter-button:hover { background: #f3f5f4; }
.filter-button.active { color: #fff; background: var(--brand); }
.filter-button.active span { color: #c4d3cd; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { height: 36px; padding: 0 13px; color: #8c9692; background: #fafbfa; font-size: 9px; font-weight: 600; letter-spacing: .3px; text-align: left; text-transform: uppercase; }
td { height: 64px; padding: 0 13px; border-top: 1px solid #edf0ee; color: #5f6b66; font-size: 10.5px; white-space: nowrap; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: #fbfcfb; }
tbody tr[hidden] { display: none; }
td:first-child { min-width: 190px; }
.employee, .request-person { display: flex; align-items: center; gap: 10px; }
.employee > div, .request-person > div { display: flex; flex-direction: column; }
.employee strong, .request-person strong { color: #2c3933; font-size: 11px; font-weight: 600; }
.employee small, .request-person small { margin-top: 3px; color: #89938f; font-size: 9px; }
.avatar { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; font-size: 9px; font-weight: 700; }
.avatar.coral { color: #8f4f44; background: #f5d9d3; }
.avatar.blue { color: #38678b; background: #d8e8f3; }
.avatar.violet { color: #69518f; background: #e5dcf3; }
.avatar.amber { color: #8b632d; background: #f2e1c4; }
.avatar.green { color: #3e725a; background: #d8ebdf; }
.avatar-dark { color: #e5f0eb; background: #42675b; }
.status-badge { height: 22px; padding: 0 8px; display: inline-flex; align-items: center; gap: 5px; border-radius: 12px; font-size: 9px; font-weight: 600; }
.status-badge i { width: 5px; height: 5px; border-radius: 50%; }
.status-badge.working { color: #367458; background: #eaf5ef; }.status-badge.working i { background: #438e69; }
.status-badge.break { color: #396b94; background: #edf4fa; }.status-badge.break i { background: #5585ad; }
.status-badge.late { color: #95611f; background: #fbf2e4; }.status-badge.late i { background: #bd7c28; }
.status-badge.not-in { color: #68736e; background: #eff2f0; }.status-badge.not-in i { background: #8b9691; }
.empty-state { margin: 0; padding: 40px 20px; color: var(--muted); text-align: center; font-size: 12px; }
.empty-state[hidden] { display: none; }

.request-list { padding: 0 18px; }
.request-item { padding: 16px 1px; border-bottom: 1px solid var(--line); }
.request-item:last-child { border: 0; }
.request-person { position: relative; }
.request-person > div { flex: 1; }
.request-type { padding: 3px 7px; border-radius: 10px; color: #60706a; background: #f0f3f1; font-size: 8.5px; font-weight: 600; }
.request-dates { margin: 13px 0; padding: 9px 11px; display: grid; grid-template-columns: 1.3fr .7fr; border-radius: 7px; background: #f7f9f7; }
.request-dates div { display: flex; flex-direction: column; }
.request-dates div + div { padding-left: 12px; border-left: 1px solid #e1e6e3; }
.request-dates small { color: #8c9692; font-size: 8px; text-transform: uppercase; }
.request-dates strong { margin-top: 3px; color: #47534e; font-size: 10px; }
.request-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.button { height: 31px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border-radius: 6px; font-size: 9.5px; font-weight: 600; cursor: pointer; }
.button.secondary { border: 1px solid #dfe4e1; background: #fff; }
.button.secondary:hover { background: #f7f8f7; }
.button.primary { border: 1px solid var(--brand); color: #fff; background: var(--brand); }
.button.primary:hover { background: var(--brand-hover); }

.shift-list, .days-off-list { padding: 5px 20px 8px; }
.shift-item { min-height: 66px; display: grid; grid-template-columns: 45px 12px minmax(130px, 1fr) minmax(130px, 220px); align-items: center; gap: 9px; border-bottom: 1px solid #edf0ee; }
.shift-item:last-child, .day-off-item:last-child { border-bottom: 0; }
.shift-item time { color: #52605a; font-size: 11px; font-weight: 600; }
.shift-dot { width: 8px; height: 8px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px currentColor; }
.shift-dot.green { color: var(--green); background: var(--green); }.shift-dot.blue { color: var(--blue); background: var(--blue); }.shift-dot.amber { color: var(--amber); background: var(--amber); }.shift-dot.violet { color: var(--violet); background: var(--violet); }
.shift-copy { display: flex; flex-direction: column; }
.shift-copy strong { font-size: 11px; font-weight: 600; }.shift-copy small { margin-top: 3px; color: #8a9490; font-size: 9px; }
.coverage { display: grid; grid-template-columns: 1fr 38px; align-items: center; gap: 8px; }
.coverage > div { height: 5px; overflow: hidden; border-radius: 4px; background: #edf0ee; }
.coverage > div span { height: 100%; display: block; border-radius: inherit; }.coverage span.green { background: #679b7e; }.coverage span.blue { background: #6e99b9; }.coverage span.amber { background: #c49550; }.coverage span.violet { background: #927bb8; }
.coverage small { color: #7c8782; font-size: 9px; text-align: right; }
.day-off-item { min-height: 75px; display: grid; grid-template-columns: 45px 1fr auto; align-items: center; gap: 12px; border-bottom: 1px solid #edf0ee; }
.date-tile { width: 43px; height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #dfe5e1; border-radius: 7px; background: #fafbfa; }
.date-tile span { color: #7f8b86; font-size: 8px; font-weight: 700; text-transform: uppercase; }.date-tile strong { margin-top: 2px; font: 700 17px/1 "Manrope"; }
.day-off-item > div:nth-child(2) { display: flex; flex-direction: column; }.day-off-item > div:nth-child(2) strong { font-size: 11px; font-weight: 600; }.day-off-item > div:nth-child(2) small { margin-top: 4px; color: #87918d; font-size: 9px; }
.day-off-item > .icon { color: #9ca5a1; }
.page-footer { padding: 22px 2px 0; display: flex; justify-content: space-between; color: #909a96; font-size: 9px; }
.mobile-backdrop { display: none; }

@media (max-width: 1250px) {
    .metrics-grid { grid-template-columns: repeat(3, 1fr); }
    .quick-actions { grid-template-columns: repeat(3, 1fr); }
    .primary-grid { grid-template-columns: 1fr; }
    .request-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .request-item { border-bottom: 0; }
}

@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); transition: transform .22s ease; box-shadow: 15px 0 40px rgba(8, 27, 20, .22); }
    .workspace { margin-left: 0; }
    .sidebar-open .sidebar { transform: translateX(0); }
    .mobile-backdrop { position: fixed; z-index: 25; inset: 0; display: block; visibility: hidden; opacity: 0; background: rgba(14, 31, 25, .42); transition: .2s; }
    .sidebar-open .mobile-backdrop { visibility: visible; opacity: 1; }
    .menu-button { display: grid; }
    .topbar { padding: 0 22px; justify-content: flex-start; gap: 15px; }
    .global-search { width: auto; flex: 1; }
    .dashboard { padding: 28px 22px; }
    .secondary-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .topbar { height: 60px; padding: 0 15px; }
    .global-search kbd, .company-name, .topbar-divider { display: none; }
    .topbar-actions { margin-left: auto; gap: 5px; }
    .dashboard { padding: 22px 14px 25px; }
    .page-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
    .heading-tools { width: 100%; }.date-button { flex: 1; justify-content: center; }
    .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
    .metric-card { padding: 13px; }
    .metric-value strong { font-size: 24px; }
    .metric-value span { white-space: normal; }
    .hours-card { padding: 15px; grid-template-columns: 1fr auto; gap: 16px; }
    .hours-chart { display: none; }
    .hours-summary { padding-left: 16px; }
    .quick-section { padding: 16px 13px; }
    .quick-actions { grid-template-columns: repeat(2, 1fr); gap: 7px; }
    .quick-action { padding: 8px; }
    .quick-action > .icon { display: none; }
    .panel-header { padding: 15px; }
    .panel-header > a { font-size: 9px; }
    .request-list { padding: 0 15px; display: block; }
    .request-item { border-bottom: 1px solid var(--line); }
    .shift-list, .days-off-list { padding-inline: 15px; }
    .shift-item { grid-template-columns: 42px 10px 1fr; }
    .coverage { grid-column: 3; width: 100%; margin: -8px 0 10px; }
    .page-footer { flex-direction: column; gap: 5px; }
    .notice { align-items: flex-start; }
}

@media (max-width: 390px) {
    .metrics-grid { grid-template-columns: 1fr; }
    .metric-card { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; column-gap: 10px; }
    .metric-top { grid-row: 1 / span 3; }.metric-top .more-button { display: none; }
    .metric-card > p { margin: 0 0 3px; }.metric-value { min-height: auto; }.metric-trend { margin: 0; }
    .quick-actions { grid-template-columns: 1fr; }
}

/* iOS zooms focused form controls whose text is smaller than 16px. */
@media (max-width: 1024px) {
    input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
    select,
    textarea {
        font-size: 16px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Home overview refresh — scoped so shared module screens stay unchanged. */
.dashboard-home {
    --canvas: #f7f5f0;
    --surface: #fffefa;
    --line: #e7e4dc;
    --ink: #1d2924;
    --muted: #6f7873;
    --brand: #214b3d;
    --brand-hover: #16382e;
    --shadow: 0 1px 2px rgba(35, 48, 42, .04), 0 8px 26px rgba(35, 48, 42, .045);
}
.dashboard-home .topbar { border-color: #e9e5dd; background: rgba(255, 254, 250, .92); }
.dashboard-home .dashboard { width: min(1380px, 100%); padding-top: 27px; }
.dashboard-home .overview-heading { padding: 21px 23px; align-items: center; border: 1px solid #e7e1d7; border-radius: 16px; background: linear-gradient(112deg, #fffefa 0%, #faf7ef 64%, #f1eee3 100%); box-shadow: var(--shadow); }
.dashboard-home .overview-heading h1 { font-size: clamp(24px, 2.1vw, 30px); }
.dashboard-home .overview-heading .eyebrow { color: #9a744a; }
.dashboard-home .date-button { min-height: 44px; border-color: #ddd7cc; background: rgba(255,255,255,.8); }
.dashboard-home .live-pill { height: 32px; }
.mobile-section-label { display: none; }
.dashboard-home .metrics-grid { margin-top: 14px; gap: 10px; }
.dashboard-home .metric-card { position: relative; padding: 14px; border-radius: 13px; overflow: hidden; }
.dashboard-home .metric-card::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: #dce9e1; opacity: .8; }
.dashboard-home .metric-card:nth-child(2)::after { background: #dfe4e1; }
.dashboard-home .metric-card:nth-child(3)::after { background: #ead5b6; }
.dashboard-home .metric-card:nth-child(4)::after { background: #cdddeb; }
.dashboard-home .metric-card:nth-child(5)::after { background: #dcd2ea; }
.dashboard-home .metric-card:nth-child(6)::after { background: #ebc9c4; }
.dashboard-home .metric-card > p { margin-top: 11px; }
.dashboard-home .metric-trend { margin-top: 8px; }
.dashboard-home .hours-card { min-height: 78px; margin-top: 10px; padding-block: 13px; border-radius: 13px; }
.dashboard-home .quick-section { margin-top: 14px; padding: 15px 17px 17px; border-radius: 13px; }
.dashboard-home .section-title.compact { margin-bottom: 10px; }
.dashboard-home .quick-action { min-height: 52px; border-color: #e8e3da; border-radius: 10px; background: #fcfbf7; }
.dashboard-home .primary-grid,
.dashboard-home .secondary-grid { margin-top: 14px; gap: 14px; }
.dashboard-home .panel { border-radius: 13px; }
.dashboard-home .panel-header { min-height: 65px; padding: 14px 18px; }
.section-toggle-bar { display: none; }

@media (max-width: 680px) {
    .dashboard-home .topbar { height: 58px; }
    .dashboard-home .global-search input { width: 100%; }
    .dashboard-home .dashboard { padding: 12px 12px 20px; }
    .dashboard-home .notice { margin-bottom: 10px; }
    .dashboard-home .overview-heading { padding: 15px; gap: 13px; border-radius: 14px; }
    .dashboard-home .overview-heading h1 { font-size: 23px; }
    .dashboard-home .overview-heading > div > p:last-child { max-width: 32ch; margin-top: 5px; font-size: 12px; line-height: 1.45; }
    .dashboard-home .heading-tools { gap: 7px; }
    .dashboard-home .date-button { min-height: 44px; justify-content: flex-start; }
    .dashboard-home .live-pill { flex: 0 0 auto; }
    .mobile-section-label { margin: 14px 2px 7px; display: flex; align-items: center; justify-content: space-between; }
    .mobile-section-label span { color: #59645f; font-size: 11px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; }
    .mobile-section-label small { color: #9a9f9c; font-size: 10px; }
    .dashboard-home .metrics-grid { margin: 0 -12px; padding: 0 12px 5px; display: flex; gap: 9px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
    .dashboard-home .metrics-grid::-webkit-scrollbar,
    .dashboard-home .quick-actions::-webkit-scrollbar { display: none; }
    .dashboard-home .metric-card { min-width: 152px; flex: 0 0 43vw; scroll-snap-align: start; }
    .dashboard-home .metric-card > p { margin-top: 9px; }
    .dashboard-home .metric-value strong { font-size: 24px; }
    .dashboard-home .hours-card { margin-top: 8px; padding: 12px; gap: 10px; }
    .dashboard-home .hours-main { gap: 10px; }
    .dashboard-home .hours-icon { width: 38px; height: 38px; }
    .dashboard-home .hours-main p { max-width: 15ch; font-size: 10px; }
    .dashboard-home .hours-main strong { font-size: 20px; }
    .dashboard-home .hours-summary { padding-left: 10px; }
    .dashboard-home .hours-summary span { max-width: 12ch; line-height: 1.3; }
    .dashboard-home .quick-section { padding: 13px 0 12px; overflow: hidden; }
    .dashboard-home .quick-section .section-title { padding: 0 13px; }
    .dashboard-home .quick-actions { padding: 0 13px 4px; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
    .dashboard-home .quick-action { min-width: 142px; min-height: 56px; flex: 0 0 42vw; padding: 8px; scroll-snap-align: start; }
    .dashboard-home .quick-action > .icon { display: block; }
    .dashboard-home .primary-grid,
    .dashboard-home .secondary-grid { margin-top: 10px; gap: 10px; }
    .dashboard-home .panel-header { min-height: 61px; padding: 12px 13px; }
    .dashboard-home .panel-header h2 { font-size: 15px; }
    .dashboard-home .attendance-panel .panel-header > a { max-width: 68px; white-space: normal; text-align: right; line-height: 1.25; }
    .dashboard-home .filter-row { padding: 8px; }
    .dashboard-home .filter-button { min-height: 36px; padding-inline: 11px; }
    .dashboard-home td { height: 58px; }
    .dashboard-home .request-list { padding-inline: 13px; }
    .dashboard-home .request-item { padding-block: 13px; }
    .dashboard-home .request-actions .button { min-height: 42px; }
    .dashboard-home .section-toggle-bar { width: 100%; min-height: 44px; padding: 0 13px; display: flex; align-items: center; justify-content: space-between; border: 0; border-top: 1px solid var(--line); color: #53625c; background: #faf9f5; font-size: 11px; font-weight: 600; cursor: pointer; }
    .dashboard-home .section-toggle-bar .icon { transition: transform .2s ease; }
    .dashboard-home .is-collapsed .section-toggle-bar .icon { transform: rotate(-90deg); }
    .dashboard-home .shift-list,
    .dashboard-home .days-off-list { padding-inline: 13px; }
    .dashboard-home .page-footer { padding-top: 14px; }
}

@media (max-width: 390px) {
    .dashboard-home .metric-card { min-width: 148px; display: block; }
    .dashboard-home .metric-top { display: flex; }
    .dashboard-home .metric-top .more-button { display: grid; }
    .dashboard-home .metric-card > p { margin: 9px 0 4px; }
    .dashboard-home .metric-trend { margin-top: 7px; }
    .dashboard-home .quick-actions { display: flex; }
}
