/* Personal workspace: common surfaces and controls, compact phone-first content. */
.employee-page,.employee-statistics-page { width:100%; max-width:none; margin-inline:0; }
.employee-page,.employee-statistics-page { padding-bottom:0; }
.employee-page .employee-next { display:flex; flex-direction:column; gap:20px; padding:24px; }
.workday-overview>.workday-greeting { display:flex; align-items:center; gap:var(--compact-gap); grid-column:1 / -1; margin:0; min-width:0; color:var(--muted); }
.workday-greeting>span:first-child { display:flex; flex:0 0 auto; color:var(--control-accent); }
.workday-greeting .icon { width:var(--feedback-icon-size,20px); height:var(--feedback-icon-size,20px); }
.workday-greeting>span:last-child { min-width:0; }
.employee-next-top { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.employee-next-top .employee-kicker { font-size:12px; letter-spacing:.7px; }
.employee-next-top .employee-shift-state { padding:0; background:transparent; white-space:nowrap; }
.employee-next-main { display:flex; justify-content:space-between; align-items:center; gap:20px; }
.employee-next-main h2 { font-size:24px; margin:0 0 6px; }
.employee-next-main .employee-next-time { display:grid; justify-items:end; gap:6px; margin:0; }
.employee-next-main .employee-next-time > strong { font-size:32px; letter-spacing:-1px; font-variant-numeric:tabular-nums; }
.employee-next-main .employee-next-time > span { padding:0; background:transparent; color:var(--muted); font-size:13px; }
.employee-next .employee-next-detail { flex-direction:row; align-items:center; justify-content:space-between; gap:12px; padding:16px 0 0; border:0; border-top:1px solid var(--line); }
.employee-next-location { font-size:14px; }
.employee-next-note { padding-top:12px; border-top:1px solid var(--line); color:var(--muted); font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
.employee-page .employee-next-empty { flex-direction:row; align-items:flex-start; }
.employee-next-empty-content { width:100%; }
.employee-next-empty-content>.location-now-empty-icon { align-self:flex-start; color:var(--control-accent); }
.employee-next-empty .employee-kicker { font-size:var(--panel-caption-size); font-weight:400; letter-spacing:0; text-transform:none; color:var(--muted); }
.employee-next-empty .employee-next-empty-content h2 { margin:calc(var(--compact-gap) / 2) 0 0; font-family:var(--panel-heading-font); font-size:var(--panel-subsection-title-size); font-weight:var(--panel-heading-weight); line-height:1.4; letter-spacing:0; }
.employee-next-empty p { margin-top:var(--compact-gap); }
.employee-page .employee-week { padding:24px; }
.employee-week .employee-section-head { margin-bottom:12px; align-items:center; flex-wrap:nowrap; }
.employee-section-head h2,.employee-history-toggle h2 { font-size:21px; letter-spacing:-.45px; font-weight:550; line-height:1.3; margin:0; }
.employee-week-period { display:block; }
.employee-week .employee-section-head { justify-content:flex-end; }
.employee-week-navigation .planner-nav-arrow { width:48px; height:48px; min-width:48px; max-width:48px; min-height:48px; max-height:48px; flex:0 0 48px; aspect-ratio:1; border-radius:50%; corner-shape:round; }
html[data-theme] .employee-page .employee-week-day { display:flex; flex-direction:column; padding:var(--surface-inset); background:var(--surface); border:1px solid var(--line); min-height:calc(var(--control-height) * 3); }
html[data-theme] .employee-page .employee-week-day.is-today { background:color-mix(in srgb,var(--action) 4%,var(--surface)); border-color:color-mix(in srgb,var(--action) 30%,var(--line)); }
.employee-page .employee-week-day.is-today .employee-week-date > time { background:var(--control-accent); color:var(--control-accent-ink); }
.employee-page .employee-week-day.is-today .employee-week-date > time::after { display:none; }
.employee-page .employee-week-date > div { display:flex; align-items:center; gap:var(--compact-gap); }
.employee-page .employee-week-day.is-today .employee-week-date > div::after { content:""; width:5px; height:5px; flex:none; border-radius:50%; background:var(--action); }
.employee-page .employee-week-grid { grid-template-columns:repeat(auto-fit,minmax(168px,1fr)); gap:var(--compact-gap); align-items:stretch; }
.employee-page .employee-week-date { gap:var(--compact-gap); margin-bottom:var(--compact-gap); }
.employee-page .employee-weekday-long { display:none; }
.employee-page .employee-weekday-short { display:block; }
.employee-page .employee-week-slots { flex:1; align-content:center; width:100%; }
.employee-week-day.is-free .employee-week-slots { display:flex; align-items:center; justify-content:center; }
.employee-week-day.is-past .employee-week-slot-overview > strong { color:var(--muted); }
html[data-theme] .employee-page .employee-week-slot { position:relative; isolation:isolate; display:grid; justify-content:stretch; gap:4px; padding:0; background:transparent; border:0; text-align:left; }
.employee-week-slot-overview { position:relative; z-index:1; display:grid; gap:var(--compact-gap); min-width:0; padding:0; background:transparent; }
.employee-week-slot-replacement { display:flex; align-items:center; justify-content:flex-end; min-width:0; padding:0; background:transparent; }
.employee-page .employee-week-slot-overview > strong { display:flex; align-items:center; justify-content:center; gap:var(--compact-gap); min-width:0; padding:var(--compact-gap); background:var(--surface-subtle); border-radius:var(--compact-corner); corner-shape:var(--surface-curve); font-size:13px; font-weight:550; line-height:1.4; white-space:nowrap; }
.employee-page .employee-week-day.is-today .employee-week-slot-overview > strong { background:color-mix(in srgb,var(--action) 8%,var(--surface)); }
.employee-page .employee-week-slot-overview > strong > span { min-width:0; }
.employee-page .employee-week-slot-overview > strong > .icon { width:16px; height:16px; flex:none; color:var(--muted); }
.employee-page .employee-week-day.is-today .employee-week-slot-overview > strong > .icon { color:var(--action); }
.employee-page .employee-week-slot-overview > .employee-week-slot-caption { display:block; justify-self:center; padding:0; font-size:12px; line-height:1.5; color:var(--muted); }

.employee-page .employee-week-free { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:var(--identity-gap); padding:var(--compact-gap) 0; color:var(--muted); font-size:13px; text-align:center; }
.employee-week-free > .icon { width:20px; height:20px; stroke-width:1.6; opacity:.65; }
.employee-replacement-trigger { position:relative; display:grid; place-items:center; width:44px; height:44px; min-width:44px; padding:0; border:0; border-radius:50%; corner-shape:round; background:var(--surface-subtle); color:var(--muted); }
.employee-replacement-trigger>.icon { width:20px; height:20px; }
.employee-replacement-trigger.is-open { color:var(--action); }
.employee-replacement-trigger.is-open>.icon { animation:employee-replacement-search 2s linear infinite; }
.employee-replacement-trigger.has-candidate { background:transparent; }
.employee-replacement-trigger>.avatar { width:36px; height:36px; }
.employee-replacement-indicator { position:absolute; right:0; bottom:0; display:grid; place-items:center; width:18px; height:18px; border:2px solid var(--surface); border-radius:50%; background:var(--action); color:var(--action-ink); }
html[data-theme] .employee-week-slot .employee-replacement-indicator>.icon { width:12px; height:12px; color:var(--action-ink); }
.employee-replacement-trigger.is-approved .employee-replacement-indicator { background:var(--status-positive); }
html[data-theme] .employee-replacement-trigger:hover:where(:not(html[data-hover-disabled] *)){box-shadow:inset 0 0 0 1px var(--control-border)}
@keyframes employee-replacement-search { to { transform:rotate(360deg); } }
@media(prefers-reduced-motion:reduce){.employee-replacement-trigger.is-open>.icon{animation:none}}
.employee-week-heading { display:flex; flex-wrap:wrap; align-items:baseline; gap:var(--compact-gap) var(--surface-gap); min-width:0; }
.employee-schedule-heading { margin-bottom:var(--surface-gap); }
@media(max-width:650px){.employee-schedule-heading{padding-inline:var(--surface-inset)}}
.employee-week-heading>.muted { font-size:var(--panel-body-size,14px); line-height:1.5; }
.employee-schedule-group > .employee-history { margin-top:var(--surface-gap); }
@media(min-width:651px){
 .employee-schedule-group.schedule-workspace { padding:var(--surface-inset); background:var(--surface); border-radius:calc(var(--surface-corner) + var(--surface-gap)); corner-shape:var(--surface-curve); }
 .employee-page .employee-schedule-group > .employee-week,
 .employee-schedule-group > .replacement-panel,
 .employee-schedule-group > .schedule-replacement-view > .replacement-panel { padding:0; margin:0; background:transparent; border:0; box-shadow:none; overflow:visible; }
 .employee-schedule-group > .employee-history { background:var(--surface-subtle); }
}
.employee-page .employee-history { padding:0; overflow:hidden; }
.employee-history-toggle { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:24px; cursor:pointer; list-style:none; }
.employee-history-toggle::-webkit-details-marker { display:none; }
.employee-history-toggle > div { min-width:0; }
.employee-history-toggle p { margin-top:6px; font-size:13px; line-height:1.5; color:var(--muted); }
.employee-history-toggle > .icon { width:20px; height:20px; color:var(--muted); flex-shrink:0; transition:transform 180ms ease; }
.employee-history[open] > .employee-history-toggle > .icon { transform:rotate(90deg); }
.employee-history-toggle:hover:where(:not(html[data-hover-disabled] *)) { background:transparent; }
.employee-history-body { border-top:1px solid var(--line); padding:20px 24px 24px; }
.employee-history-filter { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:20px; }
.employee-history-filter > span { font-size:13px; color:var(--muted); }
.employee-history-filter .period { margin:0; }
.employee-statistics-page .statistics-controls > .statistics-period { margin:0; width:100%; justify-content:space-between; }
.employee-statistics-page .hours-distribution-chart { margin-bottom:0; }
.employee-week-grid > .employee-week-history-row { display:none; }
@media (max-width:650px) {
 html[data-theme] body.panel-typography #app .employee-week-grid > .employee-profile-shift-card { display:none; }
 html[data-theme] body.panel-typography #app .employee-week-grid > .employee-week-history-row { display:grid; }
 .employee-week-history-row > .employee-week-row-actions { grid-column:2 / -1; justify-self:start; }
 .employee-week-history-row.is-today .employee-history-date { background:var(--control-accent); color:var(--control-accent-ink); }
 .employee-week-history-row.is-today .employee-history-date > span { color:inherit; }
 .employee-page-heading h1 { font-size:24px; }
 .employee-page-heading p { font-size:13px; margin-top:6px; }
 .employee-page .employee-next { padding:18px; gap:16px; }
 .employee-next-top { flex-wrap:wrap; gap:6px 12px; }
 .employee-next-top .employee-shift-state { font-size:12px; }
 .employee-next-main { align-items:flex-start; gap:16px; flex-direction:column; }
 .employee-next-main h2 { font-size:21px; margin-bottom:4px; }
 .employee-next-date { font-size:13px; }
 .employee-next-main .employee-next-time { display:flex; justify-content:space-between; align-items:center; width:100%; gap:12px; }
 .employee-next-main .employee-next-time > strong { font-size:28px; }
 .employee-next-main .employee-next-time > span { font-size:12px; white-space:nowrap; }
 .employee-next .employee-next-detail { padding-top:14px; }
 .employee-next-location { font-size:13px; gap:6px; }
 .employee-timezone { font-size:11px; }
 .employee-page .employee-week { padding:18px 14px; }
 .employee-week .employee-section-head { flex-direction:column; align-items:stretch; gap:var(--surface-gap); padding-inline:0; margin-bottom:var(--surface-gap); }
 .employee-section-head h2,.employee-history-toggle h2 { font-size:19px; }
 .employee-week-navigation { width:100%; margin:0; }

 .employee-page .employee-week-grid { grid-template-columns:minmax(0,1fr); gap:var(--compact-gap); }
 html[data-theme] .employee-page .employee-week-day { display:grid; grid-template-columns:40px minmax(0,1fr); align-items:center; padding:var(--compact-gap); gap:var(--compact-gap); min-height:0; }
 .employee-page .employee-week-date { display:grid; justify-items:center; gap:4px; margin:0; }
 .employee-page .employee-week-date > time { width:32px; height:32px; font-size:20px; }
 .employee-page .employee-week-date > div > span { font-size:11px; }
 html[data-theme] .employee-page .employee-week-slot { padding:0; min-height:0; }


 .employee-page .employee-week-slot-overview > strong { font-size:var(--panel-body-size,14px); }
 .employee-page .employee-week-slot-replacement > .replacement-own-state { font-size:12px; }
 .employee-page .employee-week-free { flex-direction:row; font-size:13px; padding:var(--compact-gap); }
 .employee-history-toggle { padding:18px; }
 .employee-history-body { padding:16px 18px 18px; }
 .employee-history-filter { flex-direction:column; align-items:stretch; gap:8px; }
 .employee-history-filter .period { width:100%; }
 .employee-history-row { grid-template-columns:42px minmax(0,1fr) auto; gap:10px; padding-block:16px; }
 .employee-history-date { grid-row:auto; }
 .employee-history-main h3 { font-size:16px; white-space:nowrap; }
 .employee-history-main > span { font-size:12px; }
 .employee-history-result { grid-column:auto; display:grid; justify-items:end; gap:5px; width:auto; padding:0; }
 .employee-history-result > .employee-shift-state { font-size:0; }
 .employee-history-result > .employee-shift-state .icon { width:15px; height:15px; }
 .employee-history-result > strong { font-size:17px; }
 .employee-statistics-page .employee-statistics-values { margin-top:14px; }
 .employee-statistics-page .employee-statistics-values dt { font-size:11px; }
}
@media (max-width:360px) {
 .employee-next-main .employee-next-time > strong { font-size:25px; }
 .employee-next-main .employee-next-time { gap:6px; }
 .employee-week .employee-section-head { flex-wrap:wrap; }
 .employee-history-row { grid-template-columns:38px minmax(0,1fr) auto; gap:8px; }
 .employee-history-main h3 { font-size:14px; }
}
@media (prefers-reduced-motion:reduce) { .employee-history-toggle > .icon { transition:none; } }

/* Personal report: a single summary and a phone-readable chart without scrolling. */
.employee-statistics-page { display:grid; gap:20px; }
.employee-statistics-page > .statistics-heading { margin:0; }
.employee-statistics-page > .panel { margin:0; border:0; box-shadow:none; background:var(--surface); }
.employee-statistics-page .employee-statistics-summary { padding:24px; }
.personal-report-period { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; padding-bottom:20px; border-bottom:1px solid var(--line); }
.personal-report-period .period { margin:0; }
.personal-report-period .statistics-range { display:flex; gap:4px; padding:4px; background:var(--surface-subtle); border-radius:14px; }
.personal-report-period .statistics-range > button { min-height:40px; height:40px; border-radius:11px; padding:8px 16px; border:0; background:transparent; color:var(--muted); font:500 14px/1.3 Inter,sans-serif; }
html[data-theme] .personal-report-period .statistics-range > button[aria-pressed='true'] { background:var(--surface); color:var(--ink); box-shadow:0 2px 5px #00000008; }
html[data-theme='dark'] .personal-report-period .statistics-range > button[aria-pressed='true'] { background:var(--surface-subtle); box-shadow:none; }
html[data-theme] .personal-report-period .statistics-range > button:hover:where(:not(html[data-hover-disabled] *)) { color:var(--ink); }
.personal-report-main { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:24px; padding:24px 0; align-items:center; }
.personal-report-actual > h2 { margin:0 0 18px; font-size:20px; font-weight:550; }
.personal-report-label { display:block; font-size:13px; color:var(--muted); margin-bottom:6px; }
.personal-report-actual > strong { font-size:48px; font-weight:550; line-height:1.1; letter-spacing:-1.5px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.personal-report-actual > strong > small { font-size:20px; font-weight:400; color:var(--muted); letter-spacing:0; }
.personal-report-actual > p { font-size:13px; color:var(--muted); margin-top:10px; line-height:1.4; }
.personal-report-secondary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.personal-report-secondary > div { min-width:0; padding-left:20px; border-left:1px solid var(--line); }
.personal-report-secondary dt { font-size:14px; color:var(--muted); }
.personal-report-secondary dd { margin:8px 0; font-size:30px; font-weight:550; line-height:1.2; font-variant-numeric:tabular-nums; white-space:nowrap; }
.personal-report-secondary dd small { font-size:14px; font-weight:400; color:var(--muted); }
.personal-report-secondary > div > span { color:var(--muted); font-size:12px; line-height:1.4; }
.personal-report-note { display:flex; align-items:center; gap:8px; padding:14px 16px; border-radius:14px; background:var(--surface-subtle); color:var(--muted); font-size:13px; line-height:1.5; }
.personal-report-note .icon { width:17px; height:17px; flex-shrink:0; }
.personal-report-note strong { color:var(--ink); font-weight:500; white-space:nowrap; }
@media(max-width:900px) {
 .personal-report-main { grid-template-columns:minmax(0,1fr); gap:22px; }
 .personal-report-secondary > div { padding:0; border:0; }
 .personal-report-secondary > div + div { padding-left:20px; border-left:1px solid var(--line); }
}
@media(max-width:650px) {
 .employee-statistics-page { gap:16px; }
 .employee-statistics-page .statistics-heading h1 { font-size:24px; }
 .employee-statistics-page .statistics-heading p { font-size:13px; }
 .employee-statistics-page .employee-statistics-summary { padding:18px; }
 .personal-report-period { gap:12px; padding-bottom:18px; }
 .personal-report-period > .period { width:100%; min-width:0; }
 .personal-report-period .date-range-trigger { width:100%; font-size:13px; }
 .personal-report-period .statistics-range { width:100%; }
 .personal-report-period .statistics-range > button { flex:1; }
 .personal-report-main { padding:20px 0; gap:20px; }
 .personal-report-actual > h2 { font-size:19px; margin-bottom:16px; }
 .personal-report-actual > strong { font-size:44px; }
 .personal-report-secondary { padding:14px; gap:14px; border-radius:14px; background:var(--surface-subtle); }
 .personal-report-secondary dt { font-size:12px; }
 .personal-report-secondary dd { font-size:25px; margin:6px 0; }
 .personal-report-secondary > div > span { font-size:11px; }
 .personal-report-secondary > div + div { padding-left:14px; }
 .personal-report-note { padding:0; background:transparent; font-size:12px; }
}

/* Period presets share distinct base, hover and selected states in every report. */
html[data-theme] .statistics-range { display:flex; gap:4px; padding:4px; border-radius:14px; }
html[data-theme='light'] .statistics-range { background:var(--surface-subtle); }
html[data-theme='dark'] .statistics-range { background:var(--surface); }
html[data-theme] .statistics-range > button { border:0; border-radius:11px; box-shadow:none; color:var(--muted); background:transparent; font-weight:400; transition:background-color 150ms ease,color 150ms ease,box-shadow 150ms ease; }
html[data-theme='light'] .statistics-range > button:hover:where(:not(html[data-hover-disabled] *)) { background:var(--surface-subtle-hover); color:var(--ink); }
html[data-theme='dark'] .statistics-range > button:hover:where(:not(html[data-hover-disabled] *)) { background:var(--surface-subtle-hover); color:var(--ink); }
html[data-theme='light'] .statistics-range > button[aria-pressed='true'] { background:var(--surface); color:var(--ink); font-weight:550; box-shadow:0 2px 5px #00000008; }
html[data-theme='dark'] .statistics-range > button[aria-pressed='true'] { background:var(--surface-subtle); color:var(--ink); font-weight:550; box-shadow:none; }

/* Live progress and the start countdown share the personal card system. */
.employee-personal-progress { display:grid; gap:10px; min-width:0; }
.personal-progress-caption { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:6px 14px; color:var(--muted); font-size:13px; line-height:1.4; font-variant-numeric:tabular-nums; }
.personal-progress-caption > strong { color:var(--ink); font-size:14px; font-weight:500; }
.employee-personal-progress .personal-progress-track {
 --location-progress-track:color-mix(in srgb,var(--muted) 32%,var(--surface));
 height:5px;
}
html[data-theme='light'] .employee-personal-progress .personal-progress-track {
 --location-progress-track:color-mix(in srgb,var(--action) 18%,var(--surface));
}
@media(prefers-reduced-motion:no-preference) { .personal-progress-track::-webkit-progress-value { transition:width 500ms linear; } }
@media(max-width:650px) { .personal-progress-caption { font-size:12px; } .personal-progress-caption > strong { font-size:13px; } }

.employee-personal-progress { padding:14px; border-radius:16px; background:var(--surface-subtle); }
.personal-progress-identity { display:flex; align-items:center; min-width:0; gap:10px; }
.personal-progress-identity .avatar { width:36px; height:36px; flex:0 0 36px; }
.personal-progress-identity > div { display:grid; gap:3px; min-width:0; }
.personal-progress-identity strong { color:var(--ink); font-size:14px; font-weight:550; line-height:1.4; }
.personal-progress-identity [data-personal-elapsed] { color:var(--muted); font-size:12px; line-height:1.4; }
@media(max-width:650px) {
 .personal-progress-caption { gap:8px; flex-wrap:nowrap; align-items:center; }
 .personal-progress-caption > strong { font-size:12px; white-space:nowrap; }
 .personal-progress-identity { gap:8px; }
 .personal-progress-identity .avatar { width:32px; height:32px; flex-basis:32px; }
}

.employee-page .employee-week-date > time { border-radius:50%; corner-shape:round; aspect-ratio:1; }
/* A single workday card moves from preparation to live progress to a daily result. */
.workday-shift-summary { display:contents; }
.workday-date-weekday { display:none; }
.employee-page .employee-workday { gap:18px; }
.workday-body { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:14px; min-width:0; }
.workday-body > :only-child { grid-column:1 / -1; }
.workday-body > :is(.employee-personal-progress,.workday-result,.workday-managers) { padding:16px; border-radius:16px; background:var(--surface-subtle); min-width:0; }
.workday-managers { display:grid; align-content:center; min-width:0; }
.workday-manager-list { display:grid; gap:var(--surface-gap); min-width:0; }
.workday-manager-list strong { overflow-wrap:anywhere; }
.workday-manager-label { color:var(--muted); font-size:var(--panel-caption-size,12px); line-height:1.4; }
.workday-manager-symbol { display:flex; align-items:center; justify-content:center; width:36px; height:36px; flex:0 0 36px; background:transparent; color:var(--action); }
.workday-manager-symbol>.icon { width:20px; height:20px; stroke-width:1.6; }
.workday-result { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:var(--compact-gap); }
.workday-result-person { display:flex; align-items:center; gap:10px; min-width:0; }
.workday-result-person .avatar { width:36px; height:36px; flex:0 0 36px; }
.workday-result-person > div { display:grid; gap:3px; min-width:0; }
.workday-result-person strong { font-size:14px; font-weight:550; }
.workday-result-person span { font-size:11px; color:var(--muted); }
.workday-result > strong { font-size:26px; font-weight:550; line-height:1.2; white-space:nowrap; font-variant-numeric:tabular-nums; }
.workday-result > strong small { font-size:12px; color:var(--muted); font-weight:400; }
.employee-workday .employee-next-location { font-size:12px; }
@media(max-width:900px) {
 .workday-body { grid-template-columns:minmax(0,1fr); gap:10px; }
 .workday-body > :is(.employee-personal-progress,.workday-result,.workday-managers) { padding:14px; }
 .workday-managers { gap:8px; }
}
@media(max-width:650px) {
 .employee-page .employee-workday { gap:16px; }
 .employee-workday .employee-next-main .employee-next-time { display:grid; justify-items:start; gap:5px; }
 .employee-workday .employee-next-main .employee-next-time > strong { font-size:28px; letter-spacing:-.6px; }
 .employee-workday .employee-next-main .employee-next-time > span { white-space:normal; }
 .workday-result > strong { font-size:24px; text-align:right; }
 .employee-workday .employee-next-top .employee-kicker { font-size:10px; }
}

/* Keep location icon and label on the same centre line, without baseline offsets. */
.employee-next-location { align-items:center; }
.employee-next-location > .icon { display:block; width:16px; height:16px; flex:0 0 16px; margin:0; }
.employee-next-location > span { min-width:0; }
/* Personal statistics uses the same external period toolbar as other reports. */
.employee-statistics-page .personal-report-period { padding:0; border:0; }
.employee-statistics-page .personal-report-main { padding-top:0; }

/* Replacement requests reuse the report surfaces and standard actions. */
.replacement-panel { padding:20px; margin-block:20px; }
.replacement-heading h2 { display:flex; align-items:center; gap:8px; font-size:20px; font-weight:550; margin:0 0 6px; }
.replacement-heading p { font-size:13px; line-height:1.5; }
.replacement-list { display:grid; gap:8px; margin-top:16px; }
.replacement-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.3fr) 96px; gap:16px; align-items:center; padding:calc(14px - 1px); border:1px solid transparent; background:var(--surface-subtle); }
.replacement-row.is-pending-approval { background:color-mix(in srgb,var(--action) 10%,var(--surface)); border-color:var(--action); }
.replacement-identity { display:flex; gap:10px; align-items:flex-start; min-width:0; }
.replacement-identity > .avatar { width:36px; height:36px; flex:0 0 36px; }
.replacement-identity > div,.replacement-slot { display:grid; gap:4px; min-width:0; }
.replacement-identity strong,.replacement-slot strong { font-size:14px; font-weight:550; overflow-wrap:anywhere; }
.replacement-open-status { display:inline-block; padding:2px var(--compact-gap); border-radius:999px; color:var(--status-open-ink); background:var(--status-open-fill); }
.replacement-identity span,.replacement-slot > span { font-size:12px; line-height:1.5; color:var(--muted); overflow-wrap:anywhere; }
.replacement-actions { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; min-width:0; }
.replacement-actions > .button { font-size:13px; padding-inline:14px; }
.replacement-inline { display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:6px 0; border:0; background:transparent; color:var(--muted); font:550 12px/1.4 Inter,sans-serif; }
.replacement-inline .icon { width:14px; height:14px; }
.replacement-inline:hover:where(:not(html[data-hover-disabled] *)) { color:var(--ink); }
.replacement-own-state { font-size:11px; color:var(--muted); }
.replacement-dialog-slot { display:grid; gap:8px; padding:16px; border-radius:16px; background:var(--surface-subtle); margin-bottom:16px; }
.replacement-dialog-slot > span { font-size:14px; color:var(--muted); }

@media(max-width:650px) { .replacement-panel { padding:16px; }.replacement-heading h2 { font-size:18px; }.replacement-row { grid-template-columns:minmax(0,1fr) 88px; gap:10px; }.replacement-identity { grid-column:1; grid-row:1; }.replacement-slot { grid-column:1; grid-row:2; }.replacement-actions { grid-column:2; grid-row:1 / span 2; } }

.replacement-heading .heading-count { display:inline-flex; align-items:center; justify-content:center; min-width:24px; height:24px; padding:0 6px; border-radius:8px; background:var(--surface-subtle); font-size:12px; }

/* Compact replacement actions remain on the right in every row and state. */
html[data-theme] body .replacement-actions > .replacement-action {
 width:var(--list-row-action-size,40px); min-width:var(--list-row-action-size,40px); height:var(--list-row-action-size,40px); min-height:var(--list-row-action-size,40px); flex:0 0 var(--list-row-action-size,40px);
 padding:0; border:0; border-radius:50%!important; corner-shape:round!important;
 display:inline-flex; align-items:center; justify-content:center;
 background:var(--surface); color:var(--muted);
 transition:background .16s ease,color .16s ease,transform .16s ease;
}
html[data-theme] body .replacement-actions > .replacement-action:active { transform:scale(.94); }
.replacement-action .icon { width:var(--list-row-action-icon-size,19px); height:var(--list-row-action-icon-size,19px); }
.replacement-candidate-name { color:var(--ink); font-weight:550; }

.replacement-groups { display:grid; gap:20px; margin-top:18px; }
.replacement-group { min-width:0; }
.replacement-group > h3 { display:flex; align-items:center; gap:8px; margin:0; font-size:14px; font-weight:550; color:var(--ink); }
.replacement-group .replacement-list { margin-top:10px; }


@media(max-width:650px){
 html[data-theme] .employee-page .employee-week-day { grid-template-columns:56px minmax(0,1fr); gap:var(--surface-gap); min-height:84px; padding:var(--surface-gap) var(--compact-gap); }
 .employee-page .employee-week-date { position:relative; padding-right:var(--surface-gap); border:0; gap:var(--compact-gap); }
 .employee-page .employee-week-date::after { content:""; position:absolute; right:0; top:50%; width:1px; height:24px; transform:translateY(-50%); background:var(--line); }
 .employee-page .employee-week-date>time { width:36px; height:36px; background:transparent; }
 html[data-theme] .employee-page .employee-week-day.is-today .employee-week-date>time { background:var(--action); color:var(--action-ink); }
 .employee-page .employee-week-day.is-today .employee-week-date>div::after { display:none; }
 html[data-theme] .employee-page .employee-week-slot { grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:var(--compact-gap); }
 .employee-week-slot-overview { gap:0; }
 .employee-page .employee-week-slot-overview>strong { justify-content:flex-start; padding:0; background:transparent; font-size:var(--panel-body-size,14px); }
 .employee-page .employee-week-day.is-today .employee-week-slot-overview>strong { background:transparent; }
 .employee-page .employee-week-slot-overview>strong>.icon { color:var(--action); }
 .employee-page .employee-week-slot-overview>.employee-week-slot-caption { display:none; }
 .employee-page .employee-week-free { justify-content:flex-start; padding:0; }
 .employee-week-free>.icon { color:var(--action); opacity:1; }
}

/* The active section has one heading above the shared tabs. */



.employee-week-metrics { display:flex; flex-wrap:wrap; gap:var(--compact-gap); margin:0; }
.employee-week-metrics>div { display:flex; align-items:baseline; gap:var(--compact-gap); padding:var(--settings-caption-space) var(--compact-gap); border-radius:var(--small-control-corner); background:var(--surface-subtle); }
.employee-week-metrics dt { font-size:var(--panel-caption-size,12px); color:var(--muted); line-height:1.5; }
.employee-week-metrics dd { margin:0; font-size:var(--panel-body-size,14px); font-weight:550; color:var(--ink); font-variant-numeric:tabular-nums; line-height:1.4; }

.employee-week-metrics dt>.icon { display:none; }
@media(max-width:650px){
 .employee-schedule-heading { flex-wrap:nowrap; align-items:center; gap:var(--compact-gap); }
 .employee-schedule-heading>h2 { min-width:0; }
 .employee-week-metrics { flex:none; flex-wrap:nowrap; margin-left:auto; }
 .employee-week-metrics>div { align-items:center; gap:4px; }
 .employee-week-metrics dt { display:flex; align-items:center; }
 .employee-week-metrics dt>.employee-metric-label { position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
 .employee-week-metrics dt>.icon { display:block; width:16px; height:16px; }
}

.employee-week-slot:has(.employee-replacement-text)>.employee-week-slot-replacement { justify-content:flex-start; }
html[data-theme] body .employee-replacement-text:not(.is-approved) { color:var(--control-accent); }
html[data-theme] body .employee-replacement-text:not(.is-approved):enabled:hover:where(:not(html[data-hover-disabled] *)) { color:var(--control-accent-hover); }
html[data-theme] body .employee-replacement-text>.icon { color:inherit; }
.employee-replacement-text.is-searching { font-size:var(--person-title-size,12px); line-height:1.5; }
@media(max-width:650px){
 html[data-theme] .employee-page .employee-week-slot:has(.employee-replacement-text) { grid-template-columns:minmax(0,1fr); }
 .employee-week-slot-replacement>.employee-replacement-text { width:100%; justify-content:center; }
}

/* Approved replacement: one transfer with outgoing and incoming identities. */
.replacement-confirmed-slot { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:var(--surface-gap); }
.replacement-confirmed-slot>div { display:grid; gap:var(--compact-gap); }
.replacement-confirmed-slot>div>span { color:var(--muted); font-size:var(--panel-caption-size); text-transform:capitalize; }
.replacement-confirmed-slot strong { font-family:var(--panel-heading-font); font-size:var(--panel-section-title-size); font-weight:500; line-height:1.4; }
.replacement-confirmed-state { display:inline-flex; align-items:center; gap:var(--compact-gap); color:var(--status-positive); font-size:var(--panel-caption-size); }
.replacement-confirmed-state>.icon { width:18px; height:18px; flex:none; }
.replacement-transfer { display:grid; gap:var(--compact-gap); padding:var(--surface-gap); background:var(--surface-subtle); }
.replacement-transfer-person { display:flex; align-items:center; gap:var(--surface-gap); min-width:0; }
.replacement-transfer-person>.avatar { width:44px; height:44px; flex:0 0 44px; }
.replacement-transfer-person>div { display:grid; gap:var(--form-label-gap); min-width:0; }
.replacement-transfer-person>div>span { color:var(--muted); font-size:var(--panel-caption-size); line-height:1.5; }
.replacement-transfer-person strong { font-size:var(--person-name-size); line-height:1.4; font-weight:550; overflow-wrap:anywhere; }
.replacement-transfer-person.is-positive>div>span { color:var(--status-positive); }
.replacement-transfer-connection { display:flex; justify-content:center; width:44px; }
.replacement-transfer-connection::before { content:""; width:1px; height:var(--surface-gap); background:var(--line); }

.employee-replacement-text.is-approved>span { display:grid; gap:var(--form-label-gap); text-align:left; white-space:normal; }
.employee-replacement-text.is-approved small { color:var(--muted); font-size:var(--panel-caption-size); font-weight:400; line-height:1.5; }

.replacement-confirmed-state.is-pending { color:var(--control-accent); }
.replacement-transfer-person:not(.is-positive) .is-incoming { color:var(--muted); }
html[data-theme] body .employee-replacement-text.is-approved { height:auto; min-height:0; max-width:100%; padding:0; border:0; background:transparent; box-shadow:none; justify-content:flex-start; color:var(--control-accent); white-space:normal; }
html[data-theme] body .employee-replacement-text.is-approved:enabled:hover:where(:not(html[data-hover-disabled] *)) { text-decoration:none; }
.employee-replacement-text.is-approved>.icon { width:18px; height:18px; flex:none; align-self:flex-start; margin-top:2px; }

/* Employee hero: brand-coloured light ribbons move behind stationary content. */
.brand-workday > :not(.workday-ambient),
.brand-workday .workday-overview > :not(.workday-ambient) { position:relative; z-index:1; }
.workday-ambient {
 position:absolute; inset:0; z-index:0; overflow:hidden; pointer-events:none;
 user-select:none; color:var(--control-accent-ink);
 mask-image:linear-gradient(90deg,transparent 5%,#000 72%);
}
.workday-ambient::before {
 content:''; position:absolute; inset:-50% -25%;
 background:radial-gradient(ellipse at 46% 48%,color-mix(in srgb,currentColor 24%,transparent),color-mix(in srgb,currentColor 10%,transparent) 28%,transparent 62%);
 animation:workday-ambient-glow 31s ease-in-out infinite;
}
@keyframes workday-ambient-glow {
 0%,100% { transform:translate3d(-12%,-6%,0) scale(1); opacity:.75; }
 17% { transform:translate3d(14%,-8%,0) scale(1.13); opacity:.9; }
 39% { transform:translate3d(-2%,16%,0) scale(.92); opacity:.7; }
 61% { transform:translate3d(-16%,4%,0) scale(1.08); opacity:.85; }
 82% { transform:translate3d(10%,12%,0) scale(.98); opacity:.8; }
}
.workday-ambient-beam {
 position:absolute; inset:-65% -35%;
 background:linear-gradient(116deg,transparent 32%,color-mix(in srgb,currentColor 5%,transparent) 42%,color-mix(in srgb,currentColor 22%,transparent) 47%,color-mix(in srgb,currentColor 4%,transparent) 53%,transparent 62%);
 transform-origin:65% 50%;
 opacity:var(--ambient-strength,1);
 animation:workday-ambient-flow 10s ease-in-out infinite;
}
.workday-ambient-beam:nth-child(2) { inset:-85% -25%; --ambient-strength:.7; animation-name:workday-ambient-from-top; animation-duration:13s; animation-delay:-6s; }
.workday-ambient-beam:nth-child(3) { inset:-45% -55%; --ambient-strength:.5; animation-name:workday-ambient-from-bottom; animation-duration:8.5s; animation-delay:-3.5s; }
.workday-ambient-beam:nth-child(4) { inset:-75% -40%; --ambient-strength:.55; animation-name:workday-ambient-from-right; animation-duration:17.7s; animation-delay:-12s; }
@keyframes workday-ambient-flow {
 0% { opacity:0; transform:translate3d(-80%,-4%,0) rotate(-9deg) scale(.96); }
 8%,92% { opacity:var(--ambient-strength,1); }
 100% { opacity:0; transform:translate3d(80%,4%,0) rotate(9deg) scale(1.06); }
}
@keyframes workday-ambient-from-top {
 0% { opacity:0; transform:translate3d(-5%,-80%,0) rotate(9deg) scale(1.06); }
 8%,92% { opacity:var(--ambient-strength,1); }
 100% { opacity:0; transform:translate3d(5%,80%,0) rotate(-9deg) scale(.96); }
}
@keyframes workday-ambient-from-bottom {
 0% { opacity:0; transform:translate3d(7%,80%,0) rotate(-9deg) scale(.96); }
 8%,92% { opacity:var(--ambient-strength,1); }
 100% { opacity:0; transform:translate3d(-7%,-80%,0) rotate(9deg) scale(1.06); }
}
@keyframes workday-ambient-from-right {
 0% { opacity:0; transform:translate3d(80%,-6%,0) rotate(9deg) scale(1.06); }
 8%,92% { opacity:var(--ambient-strength,1); }
 100% { opacity:0; transform:translate3d(-80%,6%,0) rotate(-9deg) scale(.96); }
}
@media(prefers-reduced-motion:reduce) { .workday-ambient::before,.workday-ambient-beam { animation:none; } }
