.timesheet-open main{max-width:1120px}.ts-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:24px 0 20px}.ts-heading h1{font-size:34px;letter-spacing:-1px;margin:4px 0}.ts-eyebrow{font-size:12px;color:var(--accent);text-transform:uppercase;letter-spacing:1.3px;font-weight:700;margin:0}.ts-heading .hint{margin:6px 0 0}.ts-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px}.ts-month-nav{display:flex;align-items:center;gap:10px}.ts-month-nav>button{width:44px;height:44px;border:1px solid var(--line);background:var(--card);color:var(--text);font-size:27px;border-radius:12px;cursor:pointer}.ts-month-label{position:relative;margin:0;text-transform:capitalize;min-width:162px;text-align:center;font-size:19px;font-weight:700;line-height:44px}.ts-month-label input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.ts-month-label:focus-within{outline:2px solid var(--accent);outline-offset:3px;border-radius:8px}.ts-filters{display:flex;align-items:flex-end;gap:16px;justify-content:space-between}.ts-filters>label{flex:1;max-width:430px;margin:0}.ts-filters select{margin-top:7px}.ts-segments{display:flex;background:var(--line);padding:4px;border-radius:12px;gap:3px}.ts-segments button{border:0;border-radius:9px;padding:11px 18px;color:var(--muted);background:transparent;font:inherit;cursor:pointer;font-weight:600}.ts-segments button.selected{background:var(--card);color:var(--text);box-shadow:0 1px 5px #0001}.ts-warning{background:#fff4dc;border:1px solid #e6cb8a;color:#77521c;font-size:13px;line-height:1.5;padding:12px 15px;border-radius:12px}.ts-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(290px,1fr);gap:22px;align-items:start;margin-top:18px}.ts-calendar-panel,.ts-day-panel{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:18px;min-width:0}.ts-calendar-panel{position:sticky;top:18px}.ts-weekdays,.ts-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.ts-weekdays{margin-bottom:9px;text-align:center;font-size:12px;color:var(--muted);font-weight:600}.ts-weekdays span{padding:7px 0}.ts-weekdays span:nth-last-child(-n+2){color:var(--accent)}.ts-day{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-width:0;min-height:69px;border-radius:11px;background:var(--input);color:var(--text);border:1px solid transparent;cursor:pointer;font:inherit;padding:7px 1px}.ts-number{font-size:17px;font-weight:650;font-variant-numeric:tabular-nums}.ts-cell-label{font-size:10px;line-height:1.2;color:var(--muted);white-space:nowrap}.ts-day.has-work{background:#edf7ef}.ts-day.has-work .ts-cell-label{color:#267742}.ts-day.today .ts-number{text-decoration:underline;text-underline-offset:4px}.ts-day.chosen{outline:2px solid var(--accent);outline-offset:0;background:#fff1e7}.ts-day.chosen .ts-cell-label{color:#974811}.ts-day:focus-visible{outline:3px solid var(--text);outline-offset:1px}.ts-review-dot{position:absolute;right:3px;top:3px;background:#ffd475;color:#5c3d00;font-size:10px;font-weight:800;width:13px;height:13px;border-radius:50%;text-align:center;line-height:13px}.ts-day.needs-review{border-color:#ddb251}.ts-legend{display:flex;gap:10px;flex-wrap:wrap;color:var(--muted);font-size:11px;margin-top:20px}.ts-legend span{display:flex;align-items:center;gap:5px}.ts-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#bbc1ca}.ts-dot.work{background:#48a361}.ts-dot.review{background:#dfaa30}.ts-day-title{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line);padding-bottom:15px}.ts-day-title h2{font-size:18px;line-height:1.4;margin:0;text-transform:capitalize}.ts-day-title>span{font-size:11px;padding:5px 8px;border-radius:7px;background:var(--input);color:var(--muted)}.ts-person-row{padding:18px 0;border-bottom:1px solid var(--line)}.ts-person-heading{display:flex;gap:10px;align-items:center;margin-bottom:12px}.ts-person-heading strong{display:block;font-size:15px}.ts-person-heading small{display:block;font-size:12px;color:var(--muted);margin-top:4px}.ts-avatar{width:34px;height:34px;flex:none;border-radius:11px;background:var(--input);color:var(--muted);display:grid;place-items:center;font-size:12px;font-weight:700}.ts-status-label{font-size:12px;margin:0}.ts-status-label select{font-size:14px;margin:5px 0 8px;min-height:44px}.ts-person-row>input{font-size:13px;min-height:40px;padding:10px 12px}.ts-other{font-size:12px;margin:8px 0 0}.ts-origin{font-size:12px;color:#996912;line-height:1.5;margin:9px 0 0}.ts-editor{font-size:10px;color:var(--muted);display:block;margin-top:7px}.ts-read-status{font-size:14px;margin:0;font-weight:600}.ts-read-status.work{color:#338246}.ts-read-status.empty{color:var(--muted)}.ts-save-bar{padding-top:14px;position:sticky;bottom:0;background:var(--card);padding-bottom:max(12px,env(safe-area-inset-bottom));margin-bottom:-10px}.ts-save-bar>span{display:block;text-align:center;color:var(--muted);font-size:12px;margin-bottom:10px}.ts-save-bar button{width:100%;min-height:46px}.ts-saved{font-size:13px;line-height:1.4;color:#2b8042;padding:10px;background:#edf7ef;border-radius:9px}.ts-totals-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:28px 0 14px}.ts-totals-heading h2{font-size:20px;margin:0}.ts-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.ts-total{border:1px solid var(--line);border-radius:14px;background:var(--card);padding:17px}.ts-total strong{font-size:14px}.ts-total>div>small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.ts-total-numbers{display:flex;gap:26px;margin-top:16px}.ts-total-numbers b{display:block;font-size:26px;font-weight:700;letter-spacing:-.5px;font-variant-numeric:tabular-nums}.ts-total-numbers small{font-size:10px;color:var(--muted)}.ts-total .hint{font-size:11px;margin-bottom:0;line-height:1.7}.ts-source{border-top:1px solid var(--line);padding-top:16px;margin-top:24px;font-size:12px;line-height:1.7}.ts-history-row{padding:14px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.ts-history-row strong{font-size:14px}.ts-history-row p{font-size:12px;line-height:1.5;margin:6px 0}.ts-history-row small{font-size:11px;color:var(--muted)}#tsDayForm{scroll-margin-top:15px}#timesheet button:disabled{opacity:.45;cursor:default}#tsSave:disabled{opacity:.5}
@media(max-width:819px){.ts-layout{grid-template-columns:minmax(0,1fr);gap:16px}.ts-calendar-panel{position:static}.ts-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.ts-day{min-height:60px;gap:7px}.ts-calendar-panel,.ts-day-panel{padding:15px}.ts-filters{gap:10px}.ts-segments button{padding:11px 13px;font-size:14px}.ts-heading{margin-top:19px}.ts-heading h1{font-size:30px}}
@media(max-width:420px){.ts-toolbar{flex-wrap:wrap}.ts-month-label{font-size:17px;min-width:146px}.ts-month-nav{gap:5px}.ts-month-nav>button{width:38px}.ts-calendar-panel,.ts-day-panel{padding:12px}.ts-weekdays,.ts-calendar{gap:4px}.ts-day{min-height:55px}.ts-number{font-size:15px}.ts-cell-label{font-size:8px}.ts-filters{flex-wrap:wrap}.ts-filters>label{flex-basis:100%;max-width:none}.ts-segments{width:100%}.ts-segments button{flex:1}.ts-totals{grid-template-columns:minmax(0,1fr)}.ts-total-numbers{gap:45px}.ts-totals-heading h2{font-size:18px}.ts-totals-heading button{font-size:11px}}
@media(prefers-color-scheme:dark){.ts-day.has-work{background:#213d2c}.ts-day.has-work .ts-cell-label,.ts-read-status.work{color:#9bd5a9}.ts-day.chosen{background:#4b3020}.ts-day.chosen .ts-cell-label{color:#ffc39a}.ts-warning{background:#393020;border-color:#75602e;color:#f1cf89}.ts-origin{color:#e9c67e}.ts-saved{background:#213d2c;color:#9bd5a9}}
.ts-self-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0}.ts-self-controls[hidden]{display:none}.ts-self-controls .hint{font-size:12px;margin:0}

/* Status is also written in the existing label; color is a supporting cue only. */
#timesheet{--ts-work-bg:#e7f4eb;--ts-work-text:#1d6534;--ts-work-border:#91c8a1;--ts-nonwork-bg:#eef0f2;--ts-nonwork-text:#505965;--ts-nonwork-border:#c4cad1;--ts-review-bg:#fff3d9;--ts-review-text:#795310;--ts-review-border:#d5ae58}
#timesheet .ts-day[data-status-tone=work],#timesheet .ts-status-label select[data-status-tone=work],#timesheet .ts-read-status[data-status-tone=work]{background-color:var(--ts-work-bg);color:var(--ts-work-text);border-color:var(--ts-work-border)}
#timesheet .ts-day[data-status-tone=nonwork],#timesheet .ts-status-label select[data-status-tone=nonwork],#timesheet .ts-read-status[data-status-tone=nonwork]{background-color:var(--ts-nonwork-bg);color:var(--ts-nonwork-text);border-color:var(--ts-nonwork-border)}
#timesheet .ts-day[data-status-tone=review],#timesheet .ts-status-label select[data-status-tone=review],#timesheet .ts-read-status[data-status-tone=review]{background-color:var(--ts-review-bg);color:var(--ts-review-text);border-color:var(--ts-review-border)}
#timesheet .ts-day[data-status-tone] .ts-cell-label{color:inherit}
#timesheet .ts-day.chosen{outline:2px solid var(--accent);outline-offset:1px}
#timesheet .ts-status-label select{display:block;appearance:none;-webkit-appearance:none;width:100%;height:48px;min-height:48px;border:1px solid var(--line);border-radius:10px;padding:11px 42px 11px 13px;font:inherit;font-size:16px;font-weight:600;line-height:1.4;cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23505965' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-position:right 13px center;background-repeat:no-repeat;background-size:16px}
#timesheet .ts-status-label select:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
#timesheet .ts-read-status[data-status-tone]{display:inline-block;min-height:40px;padding:9px 12px;border:1px solid;border-radius:9px;font-size:14px;line-height:1.4}
@media(prefers-color-scheme:dark){
 #timesheet{--ts-work-bg:#213e2c;--ts-work-text:#b4e7c1;--ts-work-border:#527b60;--ts-nonwork-bg:#2b3036;--ts-nonwork-text:#d2d7dd;--ts-nonwork-border:#59616b;--ts-review-bg:#493b20;--ts-review-text:#ffdfa0;--ts-review-border:#9c8045}
 #timesheet .ts-status-label select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23d2d7dd' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
}

/* Every working employee remains visible inside the selected calendar day. */
/* Names take priority: the month uses the whole panel width, with its day editor below. */
#timesheet .ts-layout{grid-template-columns:minmax(0,1fr)}
#timesheet .ts-calendar-panel{position:static}
#timesheet .ts-day.has-people{justify-content:flex-start;gap:5px;padding:6px 3px;min-height:82px}
#timesheet .ts-cell-people{display:flex;flex-direction:column;align-items:stretch;gap:4px;width:100%;min-width:0;max-width:100%}
#timesheet .ts-cell-person{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;min-width:0;max-width:100%;border-left:2px solid var(--line);border-radius:4px;background:var(--card);padding:3px 2px;text-align:left;white-space:normal;overflow-wrap:anywhere;word-break:normal}
#timesheet .ts-cell-person-name{display:block;min-width:0;max-width:100%;font-size:11px;font-weight:600;line-height:1.25;white-space:normal;overflow:visible;overflow-wrap:anywhere}
#timesheet .ts-cell-person-kind{display:block;font-size:10px;font-weight:600;line-height:1.2;white-space:normal;color:inherit;overflow-wrap:anywhere}
#timesheet .ts-cell-person[data-work-kind="regular"],#timesheet .ts-crew-legend-item[data-work-kind="regular"],#timesheet .ts-read-work-kind[data-work-kind="regular"]{background:#e7f4eb;border-color:#63a778;color:#205c33}
#timesheet .ts-cell-person[data-work-kind="extra"],#timesheet .ts-crew-legend-item[data-work-kind="extra"],#timesheet .ts-read-work-kind[data-work-kind="extra"]{background:#fff0dc;border-color:#df963d;color:#80500b}
#timesheet .ts-cell-person[data-work-kind="unspecified"],#timesheet .ts-crew-legend-item[data-work-kind="unspecified"],#timesheet .ts-read-work-kind[data-work-kind="unspecified"]{background:var(--input);border-color:var(--line);color:var(--text)}
#timesheet .ts-cell-person[data-work-kind="nonwork"]{background:transparent;color:var(--muted)}
#timesheet .ts-crew-legend{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px;font-size:11px;line-height:1.4;color:var(--muted)}
#timesheet .ts-crew-legend-item{display:block;max-width:100%;padding:3px 6px;border-left:2px solid var(--line);border-radius:4px;overflow-wrap:anywhere}
#timesheet .ts-work-kind-label{margin-top:8px}#timesheet .ts-work-kind-label[hidden]{display:none!important}#timesheet .ts-work-kind-hint{display:block;font-size:11px;line-height:1.4;margin-top:3px;font-weight:400;color:var(--muted)}
#timesheet .ts-read-work-kind{display:inline-block;max-width:100%;border-left:2px solid var(--line);border-radius:4px;font-size:12px;line-height:1.4;padding:4px 7px;margin:7px 0 0;overflow-wrap:anywhere}
@media(max-width:420px){#timesheet .ts-weekdays,#timesheet .ts-calendar{gap:3px}#timesheet .ts-day.has-people{padding:6px 2px}#timesheet .ts-cell-person{padding:3px 1px}#timesheet .ts-cell-person-name{font-size:11px}#timesheet .ts-cell-person-kind{font-size:9px}}
@media(prefers-color-scheme:dark){
 #timesheet .ts-cell-person[data-work-kind="regular"],#timesheet .ts-crew-legend-item[data-work-kind="regular"],#timesheet .ts-read-work-kind[data-work-kind="regular"]{background:#213e2c;border-color:#76b68b;color:#b4e7c1}
 #timesheet .ts-cell-person[data-work-kind="extra"],#timesheet .ts-crew-legend-item[data-work-kind="extra"],#timesheet .ts-read-work-kind[data-work-kind="extra"]{background:#49351f;border-color:#c9924b;color:#ffd5a0}
}

@media(min-width:820px){#timesheet .ts-day.has-people{padding:8px 6px}#timesheet .ts-cell-person{padding:4px 5px}#timesheet .ts-cell-person-name{font-size:13px;line-height:1.3}#timesheet .ts-cell-person-kind{font-size:11px}}
