:root { color-scheme: light; font-family: system-ui, -apple-system, sans-serif; color: #20372e; background: #f6f8f6; }
* { box-sizing: border-box; }
body { margin: 0; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem max(5vw, 1.25rem); background: #fff; border-bottom: 1px solid #dde5df; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: inherit; text-decoration: none; font-size: 1.5rem; font-weight: 750; line-height: 1.15; }
.brand small { display: block; margin-top: .2rem; font-size: .6rem; letter-spacing: .16em; color: #63746a; }
.account { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 1rem; font-size: .85rem; }
.staff-navigation-link { color: inherit; text-decoration: none; }
.staff-navigation-link:hover { text-decoration: underline; }
form { margin: 0; }
main { max-width: 1160px; margin: 0 auto; padding: 4rem 1.5rem; }
.eyebrow { color: #195b48; font-size: .75rem; font-weight: 750; letter-spacing: .13em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -.045em; line-height: 1.15; margin: 1rem 0; }
.muted, .card p { color: #607066; line-height: 1.7; }
.intro .muted { font-size: 1.1rem; }
.notice { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.2rem; margin: 2.5rem 0 1.5rem; background: #e7f0e9; border-radius: 10px; font-size: .9rem; line-height: 1.5; }
.status-dot { flex-shrink: 0; width: 8px; height: 8px; background: #195b48; border-radius: 50%; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card { padding: 1.75rem; border: 1px solid #dde5df; border-radius: 14px; background: #fff; }
.card h2 { margin: 1.75rem 0 .5rem; font-size: 1.3rem; }
.card p { margin-bottom: 0; }
.badge { display: inline-block; background: #f0f3f0; color: #5a6b5f; border-radius: 20px; padding: .35rem .7rem; font-size: .75rem; }
button { font: inherit; cursor: pointer; border-radius: 7px; padding: .7rem 1rem; }
.primary { border: 1px solid #195b48; color: #fff; background: #195b48; }
.secondary { border: 1px solid #d4dfd7; color: #20372e; background: #fff; }
button:hover { filter: brightness(.94); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #419a78; outline-offset: 3px; }
.preview { color: #795400; background: #fff4cf; padding: .4rem .6rem; border-radius: 5px; }
.login { max-width: 460px; margin: 1rem auto; }
.login h1 { font-size: 2.3rem; }
.login form { margin-top: 1.5rem; }
.login label { display: block; margin-bottom: .4rem; font-size: .9rem; }
.login input { width: 100%; border: 1px solid #9bac9f; border-radius: 6px; padding: .75rem; font: inherit; }
.login .primary { width: 100%; margin-top: 1.2rem; }
.errorlist { color: #a52821; padding-left: 1.2rem; }
@media (max-width: 700px) { .features { grid-template-columns: 1fr; } main { padding: 2.5rem 1.25rem; } .account-name { max-width: 12rem; overflow-wrap: anywhere; } .site-header { flex-wrap: wrap; } .card { padding: 1.4rem; } }
/* Weekly schedule */
main { max-width: 1600px; padding-top: 2.5rem; }
.schedule-heading { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; margin-bottom: 2rem; }
.schedule-heading h1 { font-size: 2.4rem; margin: .5rem 0; }
.schedule-heading p { margin: .5rem 0; }
.my-clock { display: flex; align-items: center; gap: 1rem; }
.live-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 2.5rem; margin-bottom: 2rem; }
.live-summary > div { display: flex; align-items: center; gap: .65rem; font-size: .9rem; }
.live-summary strong { font-size: 1.4rem; }
.live-summary > p { margin: 0 0 0 auto; font-size: .75rem; color: #607066; line-height: 1.6; }
.live-summary a { color: #195b48; }
.status-symbol { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; font-weight: 800; }
.in { color: #18704f; }.due { color: #ac4613; }.upcoming { color: #4766a7; }.off, .out { color: #64736a; }
.status-symbol.in { background: #e1f2e8; }.status-symbol.due { background: #fff0df; }.status-symbol.upcoming { background: #e8eefb; }
.schedule-panel { border: 1px solid #dde5df; border-radius: 14px; background: #fff; overflow: hidden; }
.week-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.5rem; }
.week-toolbar h2 { font-size: 1.25rem; margin: 0 0 .35rem; }
.week-toolbar .muted { font-size: .8rem; }
.week-navigation { display: flex; align-items: center; gap: .5rem; }
a.secondary { display: inline-block; padding: .65rem .9rem; border-radius: 7px; text-decoration: none; font-size: .85rem; }
a.secondary:hover { background: #f0f5f1; }.arrow { min-width: 42px; text-align: center; }
.schedule-scroll { overflow-x: auto; }
.schedule-scroll:focus-visible { outline: 3px solid #419a78; outline-offset: -3px; }
.schedule-table { width: 100%; min-width: 1120px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.schedule-table th, .schedule-table td { border-top: 1px solid #e3eae5; border-right: 1px solid #e3eae5; padding: .7rem; vertical-align: top; }
.schedule-table tr > :last-child { border-right: 0; }
.schedule-table thead th { background: #f9fbf9; height: 95px; text-align: center; font-size: .75rem; color: #63746a; font-weight: 500; }
.schedule-table thead strong { display: block; font-size: 1.4rem; color: #20372e; margin-top: .25rem; }
.schedule-table small { display: block; margin-top: .35rem; font-weight: 400; }
.schedule-table .employee-column { position: sticky; left: 0; z-index: 1; width: 240px; text-align: left; background: #fff; padding: 1.2rem; }
.schedule-table thead .employee-column { background: #f9fbf9; padding-top: 1.5rem; color: #20372e; font-weight: 600; }
.schedule-table td { height: 110px; }
.schedule-table .today { background: #f0f7f2; }.schedule-table thead .today { color: #195b48; }
.employee-label { display: flex; align-items: center; gap: .65rem; }.employee-label > div { min-width: 0; }
.avatar { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: #eaf0eb; color: #416451; font-size: .85rem; }
.employee-name { display: block; font-size: .85rem; overflow-wrap: anywhere; }
.status { display: block; margin-top: .35rem; font-size: .72rem; font-weight: 500; }
.scheduled-shift { position: relative; background: #e6f1e9; border-left: 3px solid #438064; padding: .65rem .5rem; border-radius: 5px; margin-bottom: .4rem; line-height: 1.5; font-size: .72rem; }
.scheduled-shift small { color: #536e5d; }.off-day { display: block; text-align: center; color: #b4c1b8; padding-top: 1.2rem; }
.schedule-table .empty-roster { text-align: center; padding: 3.5rem 1rem; color: #607066; }.empty-roster h3 { color: #20372e; }
.schedule-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .7rem; padding: 1rem 1.5rem; border-top: 1px solid #e3eae5; font-size: .73rem; color: #607066; }
.schedule-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; align-items: start; }
.schedule-tools .card { padding: 1.25rem; }.schedule-tools summary { cursor: pointer; font-weight: 600; }.schedule-tools summary span { float: right; }
.schedule-tools label { display: block; margin-bottom: .35rem; font-size: .85rem; }
.schedule-tools input, .schedule-tools select { width: 100%; max-width: 100%; padding: .65rem; font: inherit; border: 1px solid #aebeb2; border-radius: 6px; background: #fff; }
.schedule-tools form { margin-top: 1.25rem; }.schedule-tools .muted { font-size: .8rem; }
@media(max-width: 750px) { .schedule-heading { flex-direction: column; align-items: flex-start; }.live-summary { gap: 1rem; }.live-summary > p { width: 100%; margin: 0; }.schedule-tools { grid-template-columns: 1fr; }.week-toolbar { padding: 1rem; flex-wrap: wrap; }.schedule-table .employee-column { width: 180px; padding: .8rem; }.schedule-table { min-width: 1060px; }.schedule-heading h1 { font-size: 2rem; } }
.employee-setup-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid #dde5df; overflow-wrap: anywhere; }
.employee-setup-row > div { min-width: 0; }.employee-setup-row p { margin: .25rem 0; font-size: .85rem; }

/* Compact schedule controls */
.employee-name { font-weight:500; }
.shift-edit { position:absolute; top:.35rem; right:.35rem; display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; padding:.3rem; border:0; background:#e6f1e9; color:#708176; border-radius:4px; opacity:0; transition:opacity .15s, color .15s, background .15s; }
.scheduled-shift:hover .shift-edit, .shift-edit:focus { opacity:1; }
.shift-edit svg { width:14px; height:14px; }
.shift-edit:hover { color:#195b48; background:#f1f5f2; filter:none; }
.shift-edit:focus-visible { outline:2px solid #419a78; outline-offset:2px; }
.shift-dialog { width:min(30rem, calc(100vw - 2rem)); max-height:calc(100dvh - 2rem); overflow-y:auto; padding:0; border:1px solid #e0e6e2; border-radius:10px; color:#20372e; background:#fff; box-shadow:0 12px 40px #153a2c20; }
.shift-dialog::backdrop { background:#142a2240; }
.shift-dialog-heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1rem 1.2rem .6rem; }
.shift-dialog h2 { margin:0; font-size:1.05rem; font-weight:500; letter-spacing:normal; }
.shift-dialog-close { display:flex; align-items:center; justify-content:center; width:32px; height:32px; padding:7px; border:0; border-radius:5px; background:transparent; color:#7b8980; }
.shift-dialog-close svg { width:16px; height:16px; }
.shift-dialog form { padding:.4rem 1.2rem 1.2rem; }
.shift-dialog-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.85rem .75rem; }
.shift-field-wide { grid-column:1 / -1; }
.shift-field label { display:block; margin-bottom:.35rem; color:#67796d; font-size:.75rem; font-weight:400; }
.shift-field input, .shift-field select { display:block; width:100%; min-width:0; min-height:38px; padding:.5rem .6rem; border:1px solid #dce4de; border-radius:5px; background:#fff; color:#304a3b; font:inherit; font-size:.8rem; }
.shift-field input:focus, .shift-field select:focus { outline:2px solid #419a7826; outline-offset:1px; border-color:#82a490; }
.shift-dialog .muted { font-size:.72rem; line-height:1.55; margin:.85rem 0; color:#7b8980; }
.shift-dialog .errorlist { font-size:.78rem; }
.shift-dialog-actions { display:flex; flex-direction:row-reverse; gap:.5rem; padding-top:.8rem; margin-top:.8rem; border-top:1px solid #edf0ed; }
.shift-dialog-actions button { min-height:36px; padding:.45rem .85rem; border-radius:5px; font-size:.78rem; font-weight:400; }
@media(max-width:540px) { .shift-dialog-fields { grid-template-columns:1fr; } .shift-field input, .shift-field select { font-size:1rem; } }

.schedule-day { position:relative; }

.title-location { display:inline-block; position:relative; font:inherit; color:inherit; letter-spacing:inherit; }
#schedule-location { display:inline; margin:0; padding:0; border:0; border-radius:0; background:transparent; color:inherit; font:inherit; letter-spacing:inherit; line-height:inherit; text-align:left; }
#schedule-location:hover { filter:none; text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:5px; text-decoration-color:#a8beb0; }
.location-options { position:absolute; top:calc(100% + 8px); left:0; z-index:20; min-width:200px; max-width:80vw; padding:.3rem; border:1px solid #dce4de; border-radius:8px; background:#fff; box-shadow:0 8px 24px #153a2c18; font-size:.9rem; font-weight:400; line-height:1.4; letter-spacing:normal; }
.location-options[hidden] { display:none; }
.location-options a { display:block; padding:.7rem .8rem; color:#304a3b; text-decoration:none; border-radius:5px; }
.location-options a:hover, .location-options a[aria-current] { background:#f0f5f1; }


.shift-add { display:flex; align-items:center; justify-content:center; width:44px; height:44px; margin:0 auto; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; color:#8b9c90; appearance:none; }
.shift-add svg { display:block; flex:0 0 18px; width:18px; height:18px; }
.schedule-day-empty .shift-add { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); margin:0; }
.shift-add:hover, .shift-add:active { background:transparent; box-shadow:none; color:#195b48; filter:none; }
.shift-add:focus-visible { outline:2px solid #419a78; outline-offset:0; }
.employee-edit { display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; padding:0; margin-left:.25rem; border:0; background:transparent; color:#708176; vertical-align:middle; opacity:0; }
.employee-column:hover .employee-edit, .employee-column:focus-within .employee-edit { opacity:1; }
@media(hover:none) { .employee-edit { opacity:1; } }

.employee-defaults { margin:1rem 0; padding:.75rem 0; border-top:1px solid #e4eae6; border-bottom:1px solid #e4eae6; }
.employee-defaults summary { cursor:pointer; font-size:.8rem; font-weight:500; color:#617468; }
.employee-defaults summary:focus-visible { outline:2px solid #419a78; outline-offset:3px; }
.employee-defaults > .muted { margin:.6rem 0 .8rem; font-size:.75rem; }
.employee-defaults .shift-field small { font-size:.72rem; }
.pin-reveal { display:flex; align-items:center; flex-wrap:wrap; gap:.6rem; margin-top:.5rem; }
.pin-reveal button { font-size:.75rem; padding:.35rem .6rem; }
.pin-reveal [data-pin-result] { font-size:.85rem; font-variant-numeric:tabular-nums; }

.scheduled-shift.shift-due { background:#fff5d6; border-left-color:#c49a32; color:#705719; }
.scheduled-shift.shift-due small, .scheduled-shift.shift-due .shift-edit { color:#806727; }
.scheduled-shift.shift-missed { background:#fbe9e7; border-left-color:#c56a60; color:#8a3d36; }
.scheduled-shift.shift-missed small, .scheduled-shift.shift-missed .shift-edit { color:#985048; }
.scheduled-shift.shift-status-draft { opacity:.6; }
.scheduled-shift { position:relative; }
.shift-approved { position:absolute; top:4px; right:6px; color:#195b48; font-size:14px; }
.schedule-approved .scheduled-shift { padding-right:1.5rem; }
.schedule-workflow { padding:.75rem 1.5rem; border-top:1px solid #e3eae5; display:flex; align-items:center; gap:1rem; flex-wrap:wrap; font-size:.8rem; }
.schedule-workflow select { padding:.4rem; border:1px solid #d4dfd7; border-radius:5px; background:white; font:inherit; }
.schedule-workflow button { padding:.4rem .65rem; font-size:.8rem; }
.schedule-workflow details { flex-basis:100%; }
.scheduled-shift:has(.shift-approved) .shift-edit { right:24px; }

#shift-actual-times { border-top:1px solid #e5e7eb; }
#actual-times-title { margin:1rem 1.2rem .3rem; font-size:.95rem; font-weight:500; }
#clock-status { margin:0 1.2rem; }

.shift-status-control { margin-left:auto; }
.shift-status-select { width:auto; max-width:180px; border:1px solid #dce2df; border-radius:6px; padding:.35rem .5rem; font:inherit; font-size:.78rem; background:#f2f4f3; color:#647168; }
.shift-status-select[data-status="published"], .shift-status-select option[value="published"] { background:#edf3fb; color:#365f8c; }
.shift-status-select[data-status="approved"], .shift-status-select option[value="approved"] { background:#e9f4ed; color:#286342; }
.shift-status-select option[value="draft"] { background:#f2f4f3; color:#647168; }
.shift-status-select option:disabled { color:#9ca3af; background:#f3f4f6; }
#shift-editor .shift-dialog-heading { gap:.6rem; }
#shift-editor .shift-dialog-close { flex-shrink:0; }
@media(max-width:440px) { .shift-status-select { max-width:135px; } }

#scheduled-hours-toggle { cursor:pointer; color:#647168; font-size:.85rem; padding:.4rem 0; }
#scheduled-hours[open] > #scheduled-hours-toggle:not([hidden]) { margin-bottom:.65rem; }

.shift-lock { position:absolute; top:3px; right:4px; display:flex; align-items:center; justify-content:center; width:26px; height:26px; padding:4px; border:0; background:transparent; color:#286342; cursor:pointer; }
.shift-lock:hover { color:#173e29; }

.employee-add { display:inline-flex; vertical-align:middle; padding:3px; border:0; background:transparent; color:#647168; cursor:pointer; }
.employee-removal { margin:.4rem 1.2rem 1.2rem; border-top:1px solid #e5e7eb; padding-top:.8rem; font-size:.85rem; }
.employee-removal summary { cursor:pointer; color:#9a433d; }

.scheduled-shift.shift-time-off { background:#eef0f2; border-left-color:#9ca3af; color:#59616c; padding-right:1.7rem; }
.shift-time-off small { color:#737b85; }
.time-off-lock { position:absolute; right:6px; top:7px; }
.shift-field[hidden] { display:none; }

button.time-off-lock { border:0; background:transparent; color:inherit; padding:3px; cursor:pointer; display:flex; }

.schedule-table td.schedule-day:not(.schedule-day-empty):has(.shift-add) { padding-bottom:30px; }
.schedule-day:not(.schedule-day-empty) > .shift-add { position:absolute; left:50%; bottom:2px; transform:translateX(-50%); width:28px; height:26px; margin:0; }

#location-edit { display:inline-flex; vertical-align:middle; align-items:center; justify-content:center; width:28px; height:28px; padding:4px; margin-left:.3rem; border:0; background:transparent; color:#758479; cursor:pointer; }
#location-edit:hover { color:#195b48; }
.location-managers { margin:1rem 0; font-size:.85rem; }
.location-managers summary { cursor:pointer; color:#647168; }

.schedule-table .day-totals td { height:auto; background:#f8faf9; font-size:.72rem; color:#647168; vertical-align:middle; }
.day-totals td div { display:flex; justify-content:space-between; gap:.4rem; padding:.15rem 0; }
.day-totals strong { font-weight:500; color:#344d40; white-space:nowrap; }
.schedule-table .day-totals .employee-column { background:#f8faf9; font-size:.8rem; }
.day-totals th small { display:block; font-weight:400; color:#7b8980; font-size:.68rem; margin-top:.3rem; }

.location-departments { margin:0 1.2rem 1.2rem; border-top:1px solid #e5e7eb; padding-top:.8rem; }
.location-departments h3 { font-size:.95rem; font-weight:500; }
.shift-dialog .location-departments form { display:flex; gap:.4rem; align-items:center; padding:.35rem 0; }
.location-departments input[name=name] { min-width:0; flex:1; }
.location-departments button { font-size:.75rem; padding:.4rem .5rem; }

#location-editor { width:min(540px, calc(100vw - 2rem)); }
#location-editor .shift-dialog-heading { border-bottom:1px solid #edf0ee; margin-bottom:.65rem; }
#location-editor .location-settings-form { padding-top:.35rem; padding-bottom:.9rem; }
.location-name-field { margin-bottom:1.1rem; }
.location-settings-section { border:0; padding:0; margin:0; min-width:0; }
.location-settings-section legend, #location-editor .location-departments h3 { font-size:.88rem; font-weight:500; color:#33483b; padding:0; margin:0; }
.location-section-note { font-size:.75rem; color:#819086; margin:.35rem 0 .85rem; line-height:1.5; }
#location-editor .shift-field label { font-size:.76rem; font-weight:400; }
#location-editor .shift-field input { padding:.5rem .6rem; border-color:#dfe5e1; border-radius:6px; background:#fff; }
#location-editor .shift-field input:disabled { background:#f7f9f8; }
#location-editor .location-managers { border-top:1px solid #edf0ee; border-bottom:1px solid #edf0ee; padding:.75rem 0; margin:1rem 0 .75rem; }
.location-manager-list { max-height:180px; overflow:auto; padding-top:.6rem; }
.location-manager-list label { display:flex; align-items:center; gap:.5rem; padding:.35rem 0; font-size:.78rem; font-weight:400; overflow-wrap:anywhere; }
.location-manager-list input[type=checkbox] { width:15px; height:15px; flex-shrink:0; margin:0; accent-color:#438064; }
#location-editor .location-save-actions { margin-top:.8rem; }
#location-editor .location-departments { padding-top:1rem; }
.department-list { max-height:220px; overflow:auto; }
#location-editor .location-departments form { gap:.35rem; padding:.25rem 0; }
.location-departments input[name=name] { width:100%; border:1px solid #dfe5e1; border-radius:6px; padding:.5rem .6rem; font-size:.8rem; }
#location-editor .department-icon { display:flex; align-items:center; justify-content:center; width:30px; height:32px; flex-shrink:0; padding:0; border:0; background:transparent; color:#64796c; border-radius:5px; }
#location-editor .department-icon:hover { background:#edf3ef; color:#28583e; }
#location-editor .department-remove:hover { background:#f9edeb; color:#a24c43; }
#location-editor .department-add-form { margin-top:.65rem; padding-top:.75rem; border-top:1px solid #edf0ee; }
.department-empty { padding:.6rem 0; margin:0; font-size:.8rem; color:#819086; }

.employee-hours { display:grid; gap:.2rem; margin-top:.65rem; padding-top:.5rem; border-top:1px solid #edf0ee; font-size:.7rem; font-weight:400; color:#7b8980; }
.employee-hours > span { display:flex; justify-content:space-between; gap:.8rem; }
.employee-hours strong { font-weight:500; color:#435c4d; white-space:nowrap; }

.schedule-date-header { position:relative; }
.copy-day { position:absolute; top:5px; right:5px; display:flex; padding:4px; border:0; background:transparent; color:#7b8980; }
.copy-day:hover { color:#195b48; }
.schedule-date-header .paste-day { display:block; margin:.3rem auto 0; padding:.2rem .5rem; border:0; border-radius:4px; background:#e6f1e9; color:#315e44; font-size:.7rem; }
.schedule-date-header .paste-day[hidden] { display:none; }
#copy-day-controls { padding:.55rem 1rem; font-size:.8rem; color:#526b5b; }
#copy-day-controls button { margin-left:.6rem; padding:.25rem .5rem; font-size:.75rem; }

#location-editor .department-drag { cursor:grab; touch-action:none; font-size:1.25rem; color:#93a098; }
#location-editor .department-drag:active { cursor:grabbing; }
.department-dragging { opacity:.55; background:#edf3ef; border-radius:6px; }

.employee-hours > .employee-hours-warning { background:#fff3cd; color:#80621e; border-radius:4px; padding:.2rem .3rem; cursor:help; }
.employee-hours-warning strong { color:#80621e; }
.employee-hours-warning:focus-visible { outline:2px solid #c49a32; outline-offset:2px; }

.hours-warning-tooltip { position:fixed; z-index:10000; width:max-content; max-width:min(300px, calc(100vw - 16px)); padding:.65rem .8rem; border:1px solid #ead8a2; border-radius:7px; background:#fff9e8; color:#705719; box-shadow:0 4px 16px #20372e20; font-size:.78rem; line-height:1.5; font-weight:400; pointer-events:none; }
.hours-warning-tooltip[hidden] { display:none; }

.copy-day, .copy-week { opacity:0; transition:opacity .12s; }
.schedule-date-header:hover .copy-day, .schedule-date-header:focus-within .copy-day, .employee-column:hover .copy-week, .employee-column:focus-within .copy-week { opacity:1; }
.copy-week { position:absolute; top:5px; right:5px; display:flex; padding:4px; border:0; background:transparent; color:#7b8980; }
.copy-week:hover { color:#195b48; }
.paste-week { margin-top:.4rem; font-size:.7rem; }
@media(hover:none) { .copy-day, .copy-week { opacity:1; } }

.time-clock-link { text-decoration:none; white-space:nowrap; }
.time-clock-heading { display:flex; justify-content:space-between; align-items:center; gap:1rem; margin-bottom:1.5rem; }
.time-clock-heading h1 { font-size:2.2rem; font-weight:550; margin:.5rem 0; }
.clock-tabs { display:flex; gap:.5rem; border-bottom:1px solid #dce5df; padding-bottom:.6rem; }
.clock-tabs button { min-height:52px; border:0; background:transparent; color:#607066; padding:.8rem 1.2rem; }
.clock-tabs button[aria-selected=true] { background:#e7f0e9; color:#195b48; }
.clock-instruction { color:#6c7e71; margin:1.3rem 0; }
.clock-employee-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:1rem; }
.clock-employee { min-height:145px; display:flex; flex-direction:column; justify-content:center; align-items:flex-start; gap:.6rem; border:1px solid #dce5df; border-radius:12px; background:#fff; text-align:left; padding:1.3rem; color:#20372e; }
.clock-employee strong { font-size:1.25rem; font-weight:550; }
.clock-employee span, .clock-employee small { color:#6c7e71; }
.clock-employee-in { background:#edf6ef; border-color:#a7c8b3; }
.clock-employee-in small { color:#286342; }
.clock-error { background:#fff0e8; color:#914833; }
#clock-pin-dialog { width:min(420px,calc(100vw - 2rem)); }
#tablet-pin { display:block; width:100%; font-size:1.6rem; letter-spacing:.35em; text-align:center; padding:.7rem; margin:.6rem 0 1rem; border:1px solid #ccd9d0; border-radius:7px; }
.clock-keypad { display:grid; grid-template-columns:repeat(3,1fr); gap:.5rem; }
.clock-keypad button { min-height:56px; border:1px solid #dce5df; background:#f8faf9; color:#314d3e; font-size:1.2rem; }
.clock-submit, .clock-cancel { width:100%; min-height:52px; margin-top:.8rem; }
.time-clock-page .employee-column small { display:block; font-weight:400; font-size:.75rem; }
@media(max-width:600px) { .time-clock-heading { align-items:flex-start; flex-direction:column; }.clock-employee-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.6rem; }.clock-employee { padding:.9rem; }.clock-tabs button { font-size:.85rem; padding:.6rem; } }

.tablet-manager-access { margin-top:2rem; text-align:center; font-size:.75rem; }
.tablet-manager-access a { color:#7b8980; text-decoration:none; }

.shifts-setup-gear { display:inline-flex; vertical-align:middle; color:#758479; text-decoration:none; }
.shifts-setup-heading { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; margin-bottom:1.5rem; }
.shifts-setup-heading > a { justify-self:start; }
.shifts-setup-heading h1 { font-size:1.8rem; font-weight:500; }
.manager-setup-grid { display:grid; grid-template-columns:1fr 1fr; gap:1rem; margin-top:1rem; }
.manager-setup-grid .card h2 { margin-top:0; font-size:1.1rem; font-weight:500; }
.manager-setup-grid form { margin-top:1rem; }
.setup-section { margin-top:1rem; }
.setup-section summary { cursor:pointer; color:#526b5b; }
@media(max-width:700px) { .manager-setup-grid { grid-template-columns:1fr; } }

/* Shifts administration */
.shifts-administration { max-width:1080px; margin:0 auto; }
.shifts-administration .card { padding:1.35rem 1.5rem; border-radius:10px; }
.shifts-administration h2 { margin:0; font-size:1rem; font-weight:550; }
.setup-card-heading { display:flex; align-items:center; gap:.65rem; margin-bottom:.4rem; }
.shifts-administration .badge { padding:.2rem .55rem; }
.shifts-administration .employee-setup-row { padding:1rem 0; }
.shifts-administration .employee-setup-row strong { font-size:.9rem; font-weight:550; }
.shifts-administration .employee-setup-row p { font-size:.78rem; line-height:1.5; }
.shifts-administration .muted { font-size:.82rem; margin:.5rem 0 1rem; }
.shifts-administration .manager-setup-grid { align-items:start; }
.shifts-administration .setup-section { margin-top:0; }
.shifts-administration .setup-section > summary { padding:1rem 0 .1rem; font-size:.85rem; }
.shifts-administration .setup-section[open] > summary { padding-bottom:1rem; }
.setup-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; margin:1rem 0 1.25rem; }
.setup-field { min-width:0; }
.setup-field-wide { grid-column:1 / -1; }
.setup-field > label, .setup-choices legend { display:block; margin-bottom:.4rem; font-size:.8rem; font-weight:500; color:#4b6053; }
.setup-field input:not([type=checkbox]), .setup-field select { width:100%; min-height:40px; border:1px solid #ccd8cf; border-radius:6px; padding:.55rem .65rem; background:#fff; color:#20372e; font:inherit; font-size:.85rem; }
.setup-field :is(input,select):focus-visible { outline:2px solid #419a78; outline-offset:2px; }
.setup-choices { border:0; margin:0; padding:0; min-width:0; }
.setup-choices > div { max-height:220px; overflow:auto; padding:.35rem .7rem; border:1px solid #e0e7e2; border-radius:7px; background:#fafcfb; }
.setup-choices label { display:flex; align-items:center; gap:.6rem; padding:.45rem 0; font-size:.82rem; overflow-wrap:anywhere; }
.setup-choices input { accent-color:#195b48; width:16px; height:16px; flex-shrink:0; margin:0; }
.setup-help { color:#768279; font-size:.73rem; line-height:1.5; margin-top:.4rem; }
.setup-help ul { padding-left:1rem; margin:.4rem 0; }
.shifts-administration .errorlist { font-size:.8rem; margin:.4rem 0; }
.shifts-administration button.primary { padding:.6rem .9rem; font-size:.83rem; }
.setup-create > summary { cursor:pointer; font-size:1rem; font-weight:550; }
.setup-create > summary span { float:right; color:#7a877e; font-size:.75rem; font-weight:400; padding-top:.2rem; }
@media(max-width:500px) { .setup-fields { grid-template-columns:1fr; }.shifts-administration .card { padding:1rem; }.shifts-setup-heading h1 { font-size:1.4rem; }.setup-create > summary span { display:none; } }
.setup-field[hidden] { display:none; }
.setup-field .setup-toggle { display:flex; align-items:center; gap:.5rem; min-height:40px; }
.setup-toggle input { accent-color:#195b48; width:16px; height:16px; margin:0; }
.shift-delete-actions { padding:0 1.2rem; }
#delete-draft-shift { color:#a4433b; border-color:#e4cecb; font-size:.8rem; margin-bottom:1rem; background:transparent; }
#delete-draft-shift[hidden] { display:none; }
#delete-hours-dialog { padding:1.2rem; }
#delete-hours-options label { display:flex; align-items:center; gap:.5rem; padding:.65rem 0; font-size:.85rem; }
#delete-hours-error { color:#a4433b; font-size:.85rem; }
.shift-delete-entry { position:absolute; right:4px; top:4px; background:transparent; border:0; color:#758479; padding:2px 5px; }
.clocked-in-action { border:0; background:transparent; padding:0; text-align:left; border-radius:3px; }
.clocked-in-action:hover { text-decoration:underline; }
#open-clock-dialog { padding:1.2rem; }
#open-clock-description { font-size:.85rem; color:#607066; }
#open-clock-error { color:#a4433b; font-size:.85rem; }
.schedule-table tbody tr.department-divider > th,
.schedule-table tbody tr.department-divider > td { border-top:2px solid #4b5d52; }
.department-section-name { display:none; }
.schedule-table tbody tr.department-divider > .employee-column { padding-top:1.7rem; }
.department-divider .department-section-name { display:block; position:absolute; top:-.65rem; left:50%; transform:translateX(-50%); max-width:calc(100% - 1rem); padding:.1rem .6rem; background:#fff; color:#42584a; font-size:.73rem; font-weight:600; line-height:1.1rem; text-align:center; overflow-wrap:anywhere; }
.department-section-name[hidden] { display:none; }
/* Keep day headings in view while scrolling a long team calendar. */
.sticky-calendar { max-height:75vh; max-height:75dvh; overflow:auto; }
.sticky-calendar .schedule-table thead th { position:sticky; top:0; z-index:3; box-shadow:0 1px 0 #ccd8cf; }
.sticky-calendar .schedule-table thead .employee-column { left:0; z-index:4; }
.schedule-print { display:inline-flex; align-items:center; justify-content:center; min-width:42px; padding:.65rem; }
.schedule-print-heading { display:none; }
@page { size:landscape; margin:10mm; }
@media print {
    body { background:#fff; color:#000; }
    .site-header, .live-summary, .week-toolbar, .schedule-heading,
    .schedule-day-sales, .schedule-date-header small,
    .schedule-heading button, .schedule-heading a, .location-options,
    .schedule-table button, #copy-day-controls, dialog, .hours-warning-tooltip { display:none !important; }
    main { max-width:none; padding:0; margin:0; }
    .schedule-print-heading { display:block; font-size:16pt; margin:0 0 8pt; }
    .title-location #schedule-location { display:inline !important; border:0; padding:0; color:inherit; font:inherit; }
    .schedule-panel { border:1px solid #aaa; border-radius:0; overflow:visible; }
    .week-toolbar { padding:6pt 8pt; }
    .week-toolbar h2 { font-size:11pt; }
    .schedule-scroll, .sticky-calendar { overflow:visible; max-height:none; }
    .schedule-table { width:100%; min-width:0; table-layout:fixed; font-size:8pt; }
    .schedule-table thead { display:table-header-group; }
    .schedule-table tfoot { display:table-row-group; }
    .schedule-table tr { break-inside:avoid; }
    .schedule-table th, .schedule-table td { padding:5pt; height:auto; }
    .schedule-table .employee-column, .sticky-calendar .schedule-table thead th { position:static; box-shadow:none; }
    .schedule-table .employee-column { width:130px; padding:7pt; }
    .schedule-table thead th { height:auto; padding:6pt; }
    .schedule-table thead strong { font-size:12pt; }
    .schedule-table thead .employee-column { padding-top:7pt; }
    .employee-label { gap:0; }
    .employee-name { font-size:8pt; }
    .avatar { display:none; }
    .scheduled-shift { font-size:7.5pt; padding:4pt; break-inside:avoid; opacity:1; print-color-adjust:exact; -webkit-print-color-adjust:exact; }
    .employee-label .status, .employee-label .employee-hours { display:none !important; }
    .department-divider .department-section-name { position:static; transform:none; max-width:none; text-align:left; padding:0 0 5pt; font-size:8pt; }
    .schedule-footer { padding:5pt; font-size:7pt; }
}
@media screen {
    .schedule-table tbody tr:first-child.department-divider .department-section-name { top:-.325rem; }
}
.shift-header-controls { display:flex; align-items:center; gap:.4rem; margin-left:auto; flex-wrap:wrap; }
.shift-header-controls .shift-status-control { margin-left:0; }
.shift-kind-select { font:inherit; font-size:.75rem; color:#4b6053; background:#f7faf8; border:1px solid #d4dfd7; border-radius:6px; padding:.4rem .45rem; max-width:100%; }
#shift-editor .shift-dialog-heading { flex-wrap:wrap; }

/* Team controls in the location settings popup. */
.location-name-controls { display:flex; align-items:center; gap:.65rem; }
.location-name-controls input { flex:1; min-width:0; }
#location-editor .location-departments summary { margin:0; font-size:.88rem; font-weight:500; color:#33483b; }
#location-editor .location-add-employee { flex-shrink:0; padding:.45rem .65rem; font-size:.8rem; border:1px solid #dfe5e1; border-radius:6px; background:transparent; }
#location-editor .location-departments summary { cursor:pointer; padding:.2rem 0; }
#location-editor .location-departments[open] summary { margin-bottom:.65rem; }

.schedule-table thead .weekly-sales-header { text-align:center; vertical-align:middle; padding:1.2rem; }

.week-review-button { display:block; margin:0 auto .5rem; font-size:.75rem; padding:.45rem .65rem; }
.week-review-table { width:100%; border-collapse:collapse; font-size:.85rem; }
.week-review-table th, .week-review-table td { padding:.45rem; text-align:right; border-bottom:1px solid #e5e7eb; }
.week-review-table th:first-child, .week-review-table td:first-child { text-align:left; }
#week-review-message { margin:0 1.2rem; }

.clock-department { margin:0 0 1.6rem; }
.clock-department-heading { display:flex; align-items:center; gap:.8rem; margin:0 0 .8rem; font-size:.95rem; font-weight:500; color:#33483b; }
.clock-department-heading::after { content:""; flex:1; height:1px; background:#aebbb3; }

.tablet-nav-clock { margin-left:auto; text-align:right; font-variant-numeric:tabular-nums; }
.tablet-nav-clock span { display:block; font-size:.75rem; color:#63746a; }
.tablet-nav-clock strong { display:block; margin-top:.2rem; font-size:1.2rem; font-weight:500; }

.tablet-site-header { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,2fr) minmax(0,1fr); }
.tablet-nav-location { margin:0; text-align:center; font-size:clamp(1rem,2.5vw,1.6rem); font-weight:500; letter-spacing:-.02em; overflow-wrap:anywhere; }
@media(max-width:600px) { .tablet-site-header { gap:.6rem; padding:1rem; } .tablet-site-header .brand { font-size:1rem; gap:.35rem; } .tablet-site-header .brand img { width:28px; height:28px; } .tablet-nav-clock span { font-size:.65rem; } .tablet-nav-clock strong { font-size:1rem; } }
