/* Crew Clock manager workspace redesign · presentation only
   Presentation changes retain original authorization and server endpoints. */
:root{--cc-ink:#152c3f;--cc-muted:#5e7082;--cc-line:#dde6ed;--cc-paper:#fff;--cc-blue:#156e83;--cc-light:#f6f8fb}
body:has(#manager:not([hidden])) main{max-width:1460px}
body:has(#manager:not([hidden])){background:var(--cc-light)}
#manager.panel{padding:14px 20px 22px;border:1px solid var(--cc-line);border-radius:14px;box-shadow:0 7px 30px #17334b0b}
#manager>h2{font-size:23px;letter-spacing:-.025em;margin:6px 0 4px}
#manager .cc-manager-subtitle{color:var(--cc-muted);font-size:13px;margin:0 0 16px}
#manager .cc-manager-login-note{border:1px solid #dae6ef;background:#f5f9fc;padding:11px 14px;border-radius:9px;font-size:13px;color:#37566c;max-width:700px}
#dashboard .workspace{display:grid;grid-template-columns:206px minmax(0,1fr);gap:21px;align-items:start}
#dashboard .workspace-menu{position:sticky;top:15px;display:flex;flex-direction:column;gap:5px;padding:13px 11px;background:var(--cc-paper);border:1px solid var(--cc-line);border-radius:12px;box-shadow:0 3px 18px #14324a12}
#dashboard .workspace-menu .cc-menu-caption{padding:5px 10px 8px;color:var(--cc-muted);font-size:11px;letter-spacing:.09em;text-transform:uppercase;font-weight:700}
#dashboard .workspace-menu .cc-group-button{width:100%;display:flex;gap:10px;align-items:center;text-align:left;background:transparent;border-radius:8px;border-left:3px solid transparent;color:#2e4a60;font-weight:650;font-size:13px;padding:13px 10px;margin:0;line-height:1.35}
#dashboard .workspace-menu .cc-group-button:hover{background:#f0f6f9}
#dashboard .workspace-menu .cc-group-button[aria-current=page]{background:#e7f3f8;border-color:var(--cc-blue);color:#0e5c75}
#dashboard .workspace-menu .cc-group-icon{font-size:17px;display:inline-block;min-width:24px;text-align:center}
#dashboard .workspace-body{min-width:0}
#dashboard .cc-section-header{border:1px solid var(--cc-line);border-radius:12px;padding:18px 20px;background:var(--cc-paper);margin-bottom:13px;box-shadow:0 3px 16px #17334b09}
#dashboard .cc-section-header h3{margin:0 0 4px;font-size:24px;letter-spacing:-.025em;color:var(--cc-ink)}
#dashboard .cc-section-header p{margin:0;font-size:13px;color:var(--cc-muted)}
#dashboard .cc-task-nav{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:3px 0 15px}
#dashboard .cc-task-nav button{display:inline-block;text-align:center;border:1px solid #c7d9e4;border-radius:8px;background:#fff;color:#255775;font-weight:600;font-size:13px;padding:9px 12px;margin:0;min-height:39px}
#dashboard .cc-task-nav button:hover{background:#f0f7fb}
#dashboard .cc-task-nav button[aria-current=page]{background:#176b89;color:#fff;border-color:#176b89}
#dashboard .workspace-tools{display:flex;justify-content:flex-end;align-items:center;gap:7px;flex-wrap:wrap;margin-bottom:12px}
#dashboard .workspace-tools button{background:#eaf2f7;border:1px solid #c4d8e4;color:#245572;font-size:12px;font-weight:650;border-radius:8px;padding:9px 12px;margin:0}
#dashboard .workspace-view{background:var(--cc-paper);border:1px solid var(--cc-line);border-radius:12px;padding:clamp(14px,2.1vw,23px);min-width:0;box-shadow:0 3px 18px #18364e0a}
#dashboard .workspace-view>h3:first-child{font-size:20px;line-height:1.3;margin:0 0 8px}
#dashboard .workspace-card-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
#dashboard .workspace-stat{background:#f4f8fb;border:1px solid #e1eaf1;border-radius:10px;padding:14px}
#dashboard .workspace-stat strong{font-size:26px}
#dashboard .workspace-stat span{font-size:12px}
#dashboard .cc-details{border:1px solid var(--cc-line);border-radius:10px;margin:16px 0;background:#fff}
#dashboard .cc-details>summary{list-style:none;cursor:pointer;padding:14px 16px;font-weight:700;color:#234b66}
#dashboard .cc-details>summary::-webkit-details-marker{display:none}
#dashboard .cc-details>summary::before{content:'▸';display:inline-block;margin-right:10px;color:#176b89}
#dashboard .cc-details[open]>summary::before{content:'▾'}
#dashboard .cc-details>div{border-top:1px solid var(--cc-line);padding:13px 16px}
#dashboard table{width:100%;min-width:550px}
#dashboard th{text-transform:uppercase;letter-spacing:.035em;font-size:11px;background:#f5f8fb;color:#4c6171}
#dashboard td,#dashboard th{padding:9px 10px}
#dashboard input,#dashboard select,#dashboard textarea{max-width:100%;box-sizing:border-box}
#dashboard button:focus-visible,#dashboard .cc-group-button:focus-visible{outline:3px solid #37a0d5;outline-offset:2px}
#manager .cc-admin-kiosk{border:1px solid #dce7f0;border-radius:9px;background:#f7fbfe;padding:11px 14px;margin:15px 0}
#dashboard .workspace-menu .cc-group-button[hidden]{display:none!important}
#dashboard .cc-task-nav[hidden]{display:none!important}
#dashboard .cc-task-nav button[hidden]{display:none!important}
@media(max-width:1120px){#dashboard .workspace{grid-template-columns:186px minmax(0,1fr);gap:14px}#dashboard .workspace-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
 body:has(#manager:not([hidden])) main{padding:8px}
 #manager.panel{padding:11px;margin:8px 0}
 #dashboard .workspace{display:block}
 #dashboard .workspace-menu{position:sticky;top:0;z-index:10;display:flex;flex-direction:row;gap:5px;overflow-x:auto;scrollbar-width:thin;padding:8px;margin:0 0 13px;border-radius:9px;white-space:nowrap}
 #dashboard .workspace-menu .cc-menu-caption{display:none}
 #dashboard .workspace-menu .cc-group-button{width:auto;min-width:max-content;flex:0 0 auto;font-size:12px;padding:10px;border-left:0;border-bottom:3px solid transparent}
 #dashboard .workspace-menu .cc-group-button[aria-current=page]{border-bottom-color:var(--cc-blue)}
 #dashboard .cc-section-header{padding:13px 14px}
 #dashboard .cc-section-header h3{font-size:21px}
 #dashboard .cc-task-nav{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin}
 #dashboard .cc-task-nav button{flex:0 0 auto;white-space:nowrap}
 #dashboard .workspace-view{padding:13px}
 #dashboard .workspace-tools{justify-content:flex-start}
}

/* The active workspace already supplies the page heading after sign-in. */
#manager:has(#dashboard:not([hidden]))>h2{display:none}
#workspace-home>.workspace-attention{background:#f1f5f9;border-left-color:#64748b}

#dashboard .workspace-tools button[hidden]{display:none!important}


/* Familiar daily workspace: task navigation, weekly roster and employee views. */
:root{--cc-blue:#246b47;--cc-ink:#20392c;--cc-muted:#627369;--cc-light:#f4f6f4;--cc-line:#dce5df}
body>header{background:#173e2b;border-bottom:4px solid #ed8224;padding:16px 26px}
body>header h2{font-size:21px;margin:0 0 3px;letter-spacing:-.02em}
body>header h2 span{font-weight:400;color:#d3e5d8;font-size:15px;margin-left:8px}
main>nav[aria-label="Main navigation"]{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px}
main>nav[aria-label="Main navigation"] button{background:white;color:#29543d;border:1px solid #c9d9ce;font-size:14px;margin:0}
main>nav[aria-label="Main navigation"] button[hidden]{display:none}
#dashboard .workspace-menu .cc-group-button[aria-current=page]{background:#e8f3eb;color:#205e3e}
#dashboard .workspace-tools button{background:#f0f5f1;color:#315840;border-color:#cfddd3}
#dashboard .cc-task-nav button[aria-current=page]{background:#246b47;border-color:#246b47}
#dashboard button.workspace-stat{display:flex;flex-direction:column;align-items:flex-start;gap:6px;text-align:left;color:#234833;margin:0;cursor:pointer;min-height:98px}
#dashboard button.workspace-stat:hover{border-color:#72a585;background:#eaf4ee}
#dashboard .workspace-actions button,.cc-today-card>button{background:#246b47;font-size:13px}
#dashboard .cc-today-card{border:1px solid var(--cc-line);border-radius:10px;margin:20px 0;padding:16px}
#dashboard .cc-today-card h3{margin:0 0 12px;font-size:18px}
#dashboard .cc-today-row{display:grid;grid-template-columns:1.2fr 1.2fr 1fr 1fr;align-items:center;gap:10px;padding:11px 0;border-top:1px solid #e4ebe6;font-size:13px}
#dashboard .cc-status{font-size:12px;color:#365e45;background:#edf5ef;padding:6px 9px;border-radius:5px}
#dashboard .cc-empty{color:var(--cc-muted);font-size:14px;padding:12px 0}
#dashboard .cc-details>summary{color:#2a573d}
#dashboard .cc-details>summary::before{color:#246b47}
#dashboard .cc-details>div{overflow-x:auto}
#dashboard .cc-schedule-options{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:12px 0}
#dashboard .cc-schedule-options label{display:flex;align-items:center;gap:6px;font-size:13px}
#dashboard .cc-schedule-options input,#dashboard .cc-schedule-options select{padding:9px;font-size:13px;margin:0}
#dashboard #week-summary{font-size:12px;color:var(--cc-muted);margin:0}
#dashboard .week-toolbar button{font-size:12px;padding:9px 11px;margin:0;background:#edf4ef;color:#28593d;border:1px solid #d1e0d5}
#dashboard #week-label{font-size:14px;order:-1;width:100%;margin-bottom:5px}
#dashboard .week-grid{min-width:1040px}
#dashboard .week-grid td,#dashboard .week-grid th{min-width:126px;max-width:190px;text-transform:none;letter-spacing:normal;font-size:12px;vertical-align:top}
#dashboard .week-grid th:first-child{min-width:150px;color:#254b35;background:#f3f7f4;z-index:3}
#dashboard .week-grid th small{display:block;font-weight:400;margin-top:5px;color:#6a7e70}
#dashboard .week-grid .cc-today{background:#f0f8f2}
#dashboard .week-grid thead .cc-today{box-shadow:inset 0 3px #2c7b4e;color:#1d6039}
#dashboard .week-cell{min-height:34px;border:0;background:transparent;font-size:12px;color:#48735a;padding:8px;margin-top:4px}
#dashboard .week-cell:hover{background:#e7f1e9}
#dashboard .week-shift{font-size:12px;padding:9px;line-height:1.5;border-left-width:4px}
#dashboard .cc-shift-draft{background:#fff7df;border-color:#e2be62;color:#735416}
#dashboard .cc-shift-pending{background:#eef4fc;border-color:#83a8d0;color:#2a527b}
#dashboard .cc-shift-confirmed{background:#e7f4eb;border-color:#6ca982;color:#225838}
#dashboard .week-block{background:#f9eeee;color:#8a4848;font-size:11px;line-height:1.5}
#dashboard .cc-legend{font-size:11px;color:#617268;display:flex;gap:7px;align-items:center;flex-wrap:wrap}
#dashboard .cc-legend span{padding:5px 7px;border-radius:4px;background:#fff7df;color:#735416}
#dashboard .cc-legend span:nth-child(2){background:#eef4fc;color:#2a527b}
#dashboard .cc-legend span:nth-child(3){background:#e7f4eb;color:#225838}
#dashboard .cc-legend span:nth-child(4){background:#f9eeee;color:#8a4848}
#availability>h2{color:#234c34;font-size:23px}
#availability-panel>.cc-employee-nav{display:flex;gap:7px;margin:18px 0 12px;overflow-x:auto;flex-wrap:nowrap;padding-bottom:5px}
.cc-employee-nav button{white-space:nowrap;background:#f0f5f1;color:#335f42;border:1px solid #d1e0d4;margin:0;font-size:14px;min-height:44px}
.cc-employee-nav button[aria-current=page]{background:#246b47;color:#fff;border-color:#246b47}
.cc-employee-view[hidden]{display:none!important}
.cc-employee-view>.employee-section{margin:12px 0}
.cc-employee-view .employee-section h3{color:#28573b}
#availability-panel>p:first-child{border-left:3px solid #e5822b;padding:10px 12px;background:#fff8ed;font-size:13px}
#kiosk button[onclick="doPunch('IN')"]{background:#246b47;min-height:56px;min-width:140px;font-weight:700}
#kiosk button[onclick="doPunch('OUT')"]{background:#b75f1e;min-height:56px;min-width:140px;font-weight:700}
#kiosk button[onclick*="BREAK_"]{background:#e9f0eb;color:#345c41;border:1px solid #bdd0c2;min-height:48px}
button:focus-visible,summary:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #ec9c43;outline-offset:3px}
@media(max-width:760px){
 body>header{padding:13px 16px}
 #dashboard .cc-today-row{grid-template-columns:1fr 1fr;font-size:12px}
 #dashboard .cc-schedule-options{align-items:flex-start;flex-direction:column;gap:9px}
 #dashboard .cc-section-header h3{font-size:23px}
 #availability-panel>.cc-employee-nav{position:sticky;top:0;z-index:5;background:#fff;padding:8px 0}
 .cc-employee-nav button{flex:0 0 auto;font-size:13px;padding:10px}
}

@media(max-width:760px){#dashboard .workspace-menu{flex-wrap:nowrap}}

.my-hours-dates,.my-hours-presets{display:flex;gap:6px;flex-wrap:wrap;align-items:end}.my-hours-dates label{display:flex!important;flex:1 1 150px;flex-direction:column;align-items:stretch!important;min-width:0}.my-hours-dates input{width:100%;margin:0}.my-hours-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0}.my-hours-summary>div{padding:12px;background:#edf4f6;border-radius:8px}.my-hours-summary strong{display:block;font-size:25px;color:#123e50}.my-hours-summary span{font-size:12px}.my-hours-scroll{overflow-x:auto;max-width:100%}.my-hours-scroll table{min-width:650px}.my-hours-scroll td{vertical-align:top}.my-hours-scroll td p{font-size:12px;margin:5px 0;color:#9f1239}

/* Staff announcements */
.staff-board{max-width:1100px}.staff-board form{display:grid;gap:10px;padding:14px;background:#f2f6f3;border-radius:10px;margin:12px 0}.staff-board label{display:grid;gap:6px}.staff-board input,.staff-board textarea{box-sizing:border-box;width:100%;max-width:100%}.staff-board textarea{min-height:100px;resize:vertical}.staff-actions{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.staff-layout{display:grid;grid-template-columns:minmax(220px,1fr) minmax(0,2fr);gap:18px}.staff-card{padding:12px;border:1px solid #d0ded4;border-radius:9px;margin:10px 0;overflow-wrap:anywhere}.staff-new{border-left:5px solid #26734d}.staff-thread{padding:14px;border:1px solid #d0ded4;border-radius:10px;min-width:0}.staff-message{white-space:pre-wrap;overflow-wrap:anywhere}.staff-unread{font-size:.8em;font-weight:700;color:inherit}.staff-board button{white-space:normal;overflow-wrap:anywhere}.staff-board h4,.staff-board h5{margin:14px 0 8px}@media(max-width:760px){.staff-layout{grid-template-columns:1fr}.staff-board{width:100%;min-width:0}}

.staff-layout{display:block}.staff-card .staff-thread{margin-top:12px;border:0;border-top:1px solid #d0ded4;padding:8px 0}.staff-chat-alert{border:0;border-radius:14px;padding:22px;max-width:calc(100vw - 48px);box-shadow:0 12px 50px #0004}.staff-chat-alert::backdrop{background:#0006}.staff-chat-alert button{margin:6px;min-height:44px}.staff-thread{overflow-wrap:anywhere}
