/* Timesheet workspace: the grid is the primary surface. Loaded after themes. */
/* Conflicting office status must be visible before any save attempt. */
.ts-editor #ts-comment[aria-invalid=true]{border:1px solid var(--danger);background:var(--danger-soft);box-shadow:0 0 0 1px var(--danger-line);color:var(--ink)}
.ts-editor #ts-comment[aria-invalid=true]:focus{outline:2px solid var(--danger);outline-offset:2px;box-shadow:none}
.ts-editor .ts-has-comment-conflict>label{color:var(--danger);font-weight:600}
.ts-editor .ts-comment-conflict:not([hidden]){display:block;margin-top:9px;padding:11px 13px;background:var(--danger-soft);border:1px solid var(--danger-line);border-left:3px solid var(--danger);border-radius:8px;color:var(--danger);font-size:14px;line-height:1.55}
.ts-editor .ts-marker-option.ts-marker-conflict>span{border-color:var(--danger);background:var(--danger-soft);color:var(--danger);box-shadow:0 0 0 1px var(--danger-line)}
.ts-editor .ts-marker-option.ts-marker-conflict>span>strong{color:var(--danger)}
.ts-editor:has(.ts-has-comment-conflict) .form-actions button[type=submit]:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}
body .workspace .page-heading[data-page=attendance]{min-height:76px!important;padding:12px 20px!important;margin-bottom:16px;border-radius:14px;gap:0;box-shadow:none}
body .workspace .page-heading[data-page=attendance] .sb-heading-copy{max-width:calc(100% - 100px)!important}
body .workspace .page-heading[data-page=attendance] h1{font-size:28px!important;line-height:1.2;letter-spacing:-.65px!important;margin:0}
body .workspace .page-heading[data-page=attendance] :is(.atelier-eyebrow,.page-description){display:none}
body .workspace .page-heading[data-page=attendance] .mybuh-heading-art{transform:translateY(-50%) scale(.38)!important;right:8px!important;transform-origin:center right;opacity:.9}
body .workspace .page-heading[data-page=attendance] .atelier-art{height:95px;width:210px;top:50%;right:0;opacity:.35}
.ts-refined{gap:12px!important;min-width:0}
body .workspace .ts-refined .ts-toolbar{display:grid;grid-template-columns:minmax(220px,1.3fr) 254px minmax(175px,1fr) auto;gap:14px;padding:16px 18px;margin:0;align-items:end;border-radius:14px}
body .workspace .ts-refined .ts-toolbar>label{min-width:0;gap:6px;display:grid;font-size:13px}
body .workspace .ts-refined .ts-toolbar :is(input,select){height:42px;font-size:15px;background:var(--surface);padding:8px 11px}
.ts-refined .ts-month-controls{height:42px;overflow:hidden;display:flex;min-width:0}
body .workspace .ts-refined .ts-month-controls input{width:174px;min-width:0;flex:1;padding:7px 4px;border:0;background:transparent}
.ts-refined .ts-month-controls .icon-btn{min-width:32px;width:32px;height:38px;font-size:25px;padding:0;display:grid;place-items:center}
.ts-export-menu{position:relative;align-self:end}.ts-export-menu>summary{list-style:none;min-height:42px;gap:9px;white-space:nowrap;font-size:14px;font-weight:600;cursor:pointer}
.ts-export-menu>summary::-webkit-details-marker{display:none}.ts-export-menu[open]>summary{box-shadow:0 0 0 3px var(--accent-soft)}
.ts-export-popover{position:absolute;top:calc(100% + 8px);right:0;z-index:25;width:320px;max-width:calc(100vw - 48px);border:1px solid var(--line);background:var(--surface);box-shadow:0 12px 36px #20122d22;border-radius:12px;padding:8px}
.ts-export-period{padding:10px 11px 12px;color:var(--ink);font-size:15px;font-weight:650;text-transform:capitalize}
.ts-export-period small{display:block;color:var(--muted);font-size:12px;font-weight:400;line-height:1.5;text-transform:none;margin-top:3px}
.ts-export-popover a{display:block;padding:11px;border-radius:8px;text-decoration:none;color:var(--ink);font-size:14px;line-height:1.4}
.ts-export-popover a:hover{background:var(--accent-soft)}.ts-export-popover a strong{font-weight:550}.ts-export-popover a small{display:block;color:var(--muted);font-size:12px;margin-top:3px;line-height:1.5}
.ts-export-popover a[aria-disabled=true]{opacity:.5;cursor:not-allowed;background:transparent}.ts-export-divider{height:1px;background:var(--line);margin:6px 10px}.ts-export-group{display:block;padding:7px 11px 2px;font-size:11px;color:var(--muted)}
body .workspace .ts-refined .ts-review{margin:0;padding:0!important;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:none}
body .workspace .ts-refined .ts-review-single{padding:12px 18px!important;display:flex;align-items:center;justify-content:space-between;gap:16px}
.ts-review-copy{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-width:0}.ts-review-context{font-size:13px;color:var(--muted)}
.ts-review-comment{flex-basis:100%;margin:0!important;font-size:13px!important;line-height:1.5!important;color:var(--ink)!important;white-space:pre-wrap}
.ts-refined .ts-review-status{font-size:12px;padding:5px 9px;font-weight:550;border-radius:6px;line-height:1.4}
.ts-refined .ts-review-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.ts-refined .ts-review-actions .btn{min-height:34px;font-size:13px;padding:7px 11px;white-space:nowrap}
.ts-refined .ts-review-list>summary{list-style:none;display:flex;align-items:center;gap:14px;min-height:54px;padding:12px 18px;margin:0;font-size:14px;font-weight:550;cursor:pointer;color:var(--ink)}
.ts-refined .ts-review-list>summary::-webkit-details-marker{display:none}.ts-review-summary-title{display:flex;align-items:center;gap:9px}.ts-review-count{padding:2px 7px;background:var(--surface-soft);border-radius:5px;font-size:12px;color:var(--muted)}
.ts-review-summary-meta{margin-left:auto;color:var(--muted);font-size:13px;font-weight:400}.ts-review-summary-meta strong{color:var(--ink);font-weight:550}.ts-review-expand{font-size:20px;color:var(--muted);line-height:1}.ts-review-list[open] .ts-review-expand{transform:rotate(180deg)}
.ts-refined .ts-review-scroll{max-height:300px;overflow:auto;padding:0 12px 8px;border-top:1px solid var(--line)}.ts-review-scroll th{position:sticky;top:0;background:var(--surface);z-index:1}
.ts-refined .ts-review td,.ts-refined .ts-review th{padding:10px 8px}.ts-refined .ts-review td:first-child{min-width:215px}.ts-refined .ts-review table{font-size:13px}.ts-review-unassigned{margin:0;padding:10px 18px;border-top:1px solid var(--line)}
body .workspace .ts-refined .ts-sheet{border-radius:14px;box-shadow:0 3px 12px #23152d03;overflow:hidden}
body .workspace .ts-refined .ts-sheet-heading{padding:17px 18px 13px;gap:16px;display:flex;flex-direction:row;align-items:center;justify-content:space-between}
.ts-sheet-title{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap}.ts-sheet-title>span{font-size:13px;color:var(--muted)}
body .workspace .ts-refined .ts-sheet-heading h2{font-size:20px;letter-spacing:-.3px;margin:0;font-weight:650;line-height:1.3}
.ts-window-switch{display:inline-flex;flex-shrink:0;padding:3px;border-radius:9px;background:var(--surface-soft);border:1px solid var(--line);gap:2px}
.ts-window-switch button{border:0;background:transparent;color:var(--muted);font:inherit;font-size:13px;font-weight:500;min-height:32px;padding:5px 13px;border-radius:6px;cursor:pointer;white-space:nowrap}
.ts-window-switch button[aria-pressed=true]{background:var(--surface);color:var(--accent-text);box-shadow:0 1px 4px #24153615;font-weight:600}
.ts-grid-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 18px 12px;color:var(--muted);font-size:12px;line-height:1.5}
.ts-totals-label{font-variant-numeric:tabular-nums}.ts-refined [hidden]{display:none!important}
.ts-refined .ts-selection-bar{min-height:48px;padding:8px 18px;border-top:1px solid var(--accent-line);background:var(--accent-soft);font-size:13px;color:var(--accent-text)}
.ts-selection-bar>div{display:flex;align-items:center;gap:14px}.ts-selection-bar .text-button{font-size:12px}
.ts-refined .ts-scroll{max-height:calc(100vh - 365px);min-height:190px;scrollbar-gutter:stable;scrollbar-width:thin}
body .workspace .ts-refined .ts-table{width:100%;min-width:max-content;font-size:14px;table-layout:fixed}
body .workspace .ts-refined .ts-table :is(td,th){min-width:43px;width:43px;height:54px;padding:4px 3px;font-size:14px;font-variant-numeric:tabular-nums}
body .workspace .ts-refined .ts-table thead th{height:52px;font-size:13px;font-weight:600;background:var(--surface-soft)}
.ts-refined .ts-table thead th>span{font-size:14px}.ts-refined .ts-table thead th small{font-size:11px;margin-top:2px}
body .workspace .ts-refined .ts-table .ts-name{min-width:230px;width:230px;max-width:230px;padding:8px 14px;box-shadow:2px 0 5px #20112e07;border-right:1px solid var(--line)}
.ts-refined .ts-person{gap:10px}.ts-refined .ts-person .profile-link{font-size:14px;font-weight:550;line-height:1.35}.ts-refined .ts-person span{font-size:11px;line-height:1.4;margin-top:3px}
body .workspace .ts-refined .ts-table .ts-total{min-width:73px;width:73px;background:var(--surface-soft);font-size:14px}
.ts-refined .ts-total small{font-size:10px;line-height:1.4;white-space:normal}
body .workspace .ts-refined .ts-cell{width:34px;min-height:42px;padding:3px 1px;border-radius:7px;gap:1px;margin:auto}
.ts-refined .ts-cell strong{font-size:14px;font-weight:550;line-height:1.3}.ts-refined .ts-cell small{font-size:10px;line-height:1.25}
.ts-refined .ts-cell.ts-empty{opacity:.45}.ts-refined .ts-cell:hover,.ts-refined .ts-cell.ts-empty:hover{opacity:1}
.ts-refined .ts-table .ts-today{box-shadow:inset 1px 0 var(--accent-line),inset -1px 0 var(--accent-line)}
body .workspace .ts-refined .ts-table thead .ts-today{background:var(--accent-soft);color:var(--accent-text);box-shadow:inset 0 -2px var(--accent)}
body .workspace .ts-refined .ts-legend{padding:13px 18px;gap:10px 18px;font-size:12px;line-height:1.35}
.ts-refined .ts-legend>span{gap:6px}.ts-refined .ts-legend b{height:23px;width:23px;font-size:12px;border-radius:5px}
.ts-bottom{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:0 2px}.ts-refined .ts-footnote{font-size:12px;line-height:1.6;margin:0}
.ts-admin-menu{flex-shrink:0;font-size:12px;color:var(--muted);position:relative}.ts-admin-menu summary{cursor:pointer;white-space:nowrap;padding:2px 0}.ts-admin-menu>div{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:14px;position:absolute;right:0;bottom:calc(100% + 8px);background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 24px #20122d16;min-width:220px;z-index:10}.ts-admin-menu .text-button{font-size:13px}
.ts-editor .modal-heading{padding:20px 24px}.ts-editor .modal-body{padding:20px 24px}.ts-editor .ts-editor-summary{padding:12px 14px;gap:4px;margin-bottom:16px}.ts-editor .ts-editor-summary>strong{font-size:16px}.ts-editor .ts-marker-options{gap:7px}.ts-editor .ts-marker-option>span{min-height:44px;padding:8px 10px}.ts-editor .ts-markers{margin-bottom:16px}.ts-editor .ts-history{margin-top:16px;padding-top:14px}
@media(min-width:1750px){body .workspace .ts-refined .ts-table .ts-name{min-width:260px;width:260px;max-width:260px}body .workspace .ts-refined .ts-table :is(td,th){width:44px;min-width:44px}.ts-refined .ts-person .profile-link{font-size:15px}.ts-refined .ts-cell strong{font-size:15px}}
@media(max-width:1250px){body .workspace .ts-refined .ts-toolbar{grid-template-columns:minmax(220px,1fr) 244px auto}.ts-refined .ts-search{grid-column:1/3}.ts-export-menu{grid-column:3;grid-row:1/3;align-self:end}.ts-sheet-title{gap:6px;flex-direction:column}.ts-refined .ts-scroll{max-height:calc(100vh - 410px)}}
@media(max-width:760px){body .workspace .page-heading[data-page=attendance]{min-height:62px!important;padding:12px 16px!important;margin-bottom:12px}body .workspace .page-heading[data-page=attendance] h1{font-size:25px!important}.ts-refined{gap:10px!important}body .workspace .ts-refined .ts-toolbar{padding:14px;grid-template-columns:minmax(0,1fr) auto;gap:12px}.ts-refined .ts-toolbar .ts-department{grid-column:1/-1}.ts-refined .ts-toolbar .ts-month-field{grid-column:1/-1}.ts-refined .ts-toolbar .ts-search{grid-column:1}.ts-export-menu{grid-column:2;grid-row:auto;align-self:end}.ts-export-menu>summary{padding:9px 12px;font-size:13px;min-height:42px}.ts-export-menu>summary svg{display:none}.ts-refined .ts-review-list>summary{padding:12px 14px;font-size:13px;gap:9px}.ts-review-summary-meta{font-size:11px}.ts-review-count{display:none}body .workspace .ts-refined .ts-review-single{padding:11px 14px!important;align-items:flex-start;flex-wrap:wrap;gap:10px}.ts-review-copy{gap:8px}.ts-review-context{font-size:12px}.ts-refined .ts-review-actions .btn{font-size:12px}body .workspace .ts-refined .ts-sheet-heading{padding:14px;align-items:flex-start;flex-wrap:wrap;gap:12px}.ts-sheet-title{flex-direction:row;align-items:baseline}body .workspace .ts-refined .ts-sheet-heading h2{font-size:18px}.ts-sheet-title>span{font-size:12px}.ts-window-switch{width:100%;display:flex}.ts-window-switch button{flex:1;font-size:13px}.ts-grid-tools{padding:0 14px 10px;font-size:11px}.ts-totals-label{display:none}.ts-refined .ts-scroll{max-height:62vh;min-height:230px}body .workspace .ts-refined .ts-table .ts-name{min-width:160px;width:160px;max-width:160px;padding:8px 10px}.ts-refined .ts-person{gap:7px}.ts-refined .ts-person .profile-link{font-size:13px}.ts-refined .ts-person span{font-size:10px}.ts-refined .ts-selection-bar{padding:9px 12px;flex-wrap:wrap;font-size:12px;gap:7px}.ts-selection-bar>div{gap:10px;justify-content:space-between;flex:1}.ts-selection-bar .btn{font-size:12px}.ts-bottom{flex-direction:column;gap:8px}.ts-admin-menu>div{left:0;right:auto}.ts-refined .ts-footnote{font-size:11px}body .workspace .ts-refined .ts-legend{padding:12px;gap:9px 14px;font-size:11px}.ts-refined .ts-review-scroll{max-height:290px}}
@media(min-width:761px) and (max-width:1350px){body .workspace .ts-refined .ts-table :is(td,th){min-width:40px;width:40px}body .workspace .ts-refined .ts-table .ts-name{min-width:210px;width:210px;max-width:210px;padding-inline:12px}body .workspace .ts-refined .ts-table .ts-total{min-width:64px;width:64px}.ts-refined .ts-person .profile-link{font-size:14px}}

/* A shared table needs one export, without a submission or approval step. */
.ts-export-action{align-self:end;display:flex;flex-direction:column;gap:5px;text-align:center}
.ts-export-action .btn{min-height:42px;white-space:nowrap;font-size:14px;font-weight:600;gap:9px}
.ts-export-action small{font-size:11px;line-height:1.35;color:var(--muted)}
body .workspace .ts-refined .ts-toolbar:has(.ts-export-action){align-items:start}
.ts-export-action{padding-top:22px}
@media(max-width:1250px){.ts-export-action{grid-column:3;grid-row:1/3;align-self:end;padding-top:0}}
@media(max-width:760px){.ts-export-action{grid-column:2;grid-row:auto;padding-top:0}.ts-export-action .btn{font-size:13px;padding:9px 12px}.ts-export-action .btn svg{display:none}.ts-export-action small{font-size:10px;max-width:132px}}

.ts-cell.ts-dismissed,.ts-legend-dismissed{background:#edf0f4;color:#667085;border-color:#cfd5df;}

/* Separate teams from individual records without adding another filter bar. */
body .workspace .ts-refined .ts-table .ts-section-row th{position:static;height:40px;padding:10px 16px!important;text-align:left;background:var(--surface-soft,#f5f3fa);border-top:1px solid var(--line,#e6e0ef);border-bottom:1px solid var(--line,#e6e0ef);font-size:13px;font-weight:700;color:var(--ink);letter-spacing:0}
.ts-section-row th>span{display:inline-block;margin-right:14px}.ts-section-row th>small{font-size:11px;font-weight:400;color:var(--muted)}

/* Last manual HR edit: explicit authorship, separate from the attendance code. */
.ts-cell.ts-hr-edited{box-shadow:inset 0 0 0 1px var(--accent);position:relative}
.ts-cell .ts-hr-badge{position:absolute;right:2px;top:1px;font-size:7px;line-height:9px;letter-spacing:.1px;font-weight:700;color:var(--accent);pointer-events:none}
.ts-cell.ts-hr-edited .ts-comment-dot{top:auto;bottom:3px}
.ts-legend .ts-hr-key{font-size:10px;color:var(--accent);border:1px solid var(--accent);border-radius:4px;padding:1px 3px}

/* Wider work surface, explicit overtime and always-visible batch controls. */
body:has(.ts-refined) .workspace-content{max-width:none;padding-inline:18px}
body .ts-editor{width:920px;max-width:calc(100vw - 36px)}
.ts-editor .ts-marker-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.ts-editor .ts-marker-option{min-width:0}.ts-editor .ts-clear{grid-column:1/-1}
.ts-editor .ts-marker-option>span{height:100%;min-height:48px;padding:10px 12px;gap:9px}
.ts-editor .ts-note-fields{grid-template-columns:1.2fr 1fr;align-items:start;gap:18px}
.ts-editor .ts-note-fields .form-field.full{grid-column:auto}
.ts-editor .ts-hours-hint{font-size:14px;color:var(--muted);margin-bottom:12px}
.ts-overtime{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 16px;margin:0 0 18px;border:1px solid var(--line);background:var(--surface-soft);border-radius:10px}
.ts-overtime-toggle{display:flex;align-items:center;gap:10px;margin:0;cursor:pointer}
.ts-overtime-toggle strong{font-size:15px;color:var(--ink)}.ts-overtime-toggle small{display:block;margin-top:3px;color:var(--muted);font-size:12px}
.ts-overtime-toggle input{width:18px;height:18px;accent-color:var(--accent);flex-shrink:0}
.ts-overtime-amount{display:grid;gap:4px;min-width:170px}.ts-overtime-amount>label{font-size:12px;color:var(--muted);margin:0}
.ts-overtime-amount>div{display:flex;align-items:center;gap:8px}.ts-overtime-amount input{width:125px;height:38px;background:var(--surface);border:1px solid var(--line);border-radius:7px;padding:6px 10px;font:inherit}
.ts-overtime-amount>small{font-size:12px;color:var(--accent-text)}.ts-overtime-amount input[aria-invalid=true]{border-color:var(--danger)}
body .workspace .ts-refined .ts-table :is(td,th){min-width:52px;width:52px}
body .workspace .ts-refined .ts-cell{width:44px;min-height:46px;padding:5px 1px 3px}
.ts-refined .ts-cell .ts-comment-dot,.ts-refined .ts-cell.ts-hr-edited .ts-comment-dot{top:-3px;right:1px;bottom:auto;width:6px;height:6px;box-shadow:0 0 0 2px var(--surface)}
.ts-refined .ts-cell .ts-hr-badge{top:-4px;left:0;right:auto;background:var(--surface);padding:0 1px;font-size:7px}
.ts-total-overtime{color:var(--accent-text);font-size:11px!important;font-weight:600}
.ts-refined .ts-selection-bar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;padding:11px 18px;background:var(--surface-soft);border-top:1px solid var(--line)}
.ts-refined .ts-selection-bar.has-selection{background:var(--accent-soft);border-color:var(--accent-line)}
.ts-selection-summary{flex-wrap:wrap;gap:12px!important}.ts-selection-summary strong{font-size:12px;font-weight:500}
.ts-bulk-actions{gap:6px!important;flex-wrap:wrap}.ts-bulk-actions>span{font-size:12px;margin-right:2px}.ts-bulk-actions>.btn{margin-left:6px}
.ts-quick-marker{width:34px;height:32px;border:1px solid var(--accent-line);background:var(--surface);color:var(--accent-text);border-radius:7px;font:inherit;font-size:12px;font-weight:600;cursor:pointer}
.ts-quick-marker:hover:not(:disabled){border-color:var(--accent);background:var(--accent-soft)}.ts-quick-marker:disabled{opacity:.4;cursor:not-allowed}
.ts-refined .ts-table .ts-row-selected .ts-name{background:var(--accent-soft);box-shadow:inset 3px 0 var(--accent)}
.ts-refined .ts-scroll{max-height:calc(100vh - 415px)}
@media(max-width:760px){body:has(.ts-refined) .workspace-content{padding-inline:12px}body .ts-editor{max-width:calc(100vw - 20px)}.ts-editor .ts-marker-options{grid-template-columns:repeat(2,minmax(0,1fr))}.ts-editor .ts-note-fields{grid-template-columns:1fr}.ts-overtime{align-items:flex-start;flex-direction:column;gap:12px}.ts-bulk-actions{width:100%}.ts-bulk-actions>.btn{margin-left:auto}.ts-refined .ts-scroll{max-height:62vh}.ts-refined .ts-selection-bar{padding:10px 12px}}

.ts-total-overtime{display:block;margin-top:3px;white-space:normal;font-size:10px!important;line-height:1.3!important}

/* A compact day editor; long history and small screens retain accessible scrolling. */
body .ts-editor{width:880px;max-height:calc(100dvh - 32px);overflow-y:auto}
body .ts-editor .modal-heading{padding:15px 22px}
body .ts-editor .modal-heading h2{font-size:21px;line-height:1.3}
body .ts-editor .modal-heading p{font-size:14px;margin-top:5px}
body .ts-editor .modal-body{padding:16px 22px}
.ts-editor .ts-editor-summary{padding:10px 12px;gap:3px;margin-bottom:12px}
.ts-editor .ts-editor-summary>strong{font-size:15px}
.ts-editor .ts-markers{margin-bottom:10px}
.ts-editor .ts-markers legend{margin-bottom:7px}
.ts-editor .ts-marker-options{gap:6px}
.ts-editor .ts-marker-option>span{min-height:40px;padding:7px 10px}
.ts-editor .ts-marker-option.ts-clear>span{min-height:30px;padding:4px 10px}
.ts-editor .ts-hours-hint{font-size:13px;padding:4px 0;margin-bottom:8px;background:none}
.ts-editor .ts-overtime{padding:9px 12px;margin-bottom:12px;min-height:50px}
.ts-editor .ts-overtime-toggle small{margin-top:2px}
.ts-editor .ts-note-fields{grid-template-columns:minmax(0,1fr);gap:0}
.ts-editor .ts-note-fields textarea{min-height:60px;height:60px;resize:vertical;padding:8px 10px;font-size:15px}
.ts-editor .ts-note-fields .form-field{gap:5px}
.ts-editor .ts-note-fields .hint{font-size:12px;line-height:1.3}
.ts-editor .form-actions{margin-top:14px;padding-top:0;gap:8px}
.ts-editor #ts-form-error:empty{display:none}
.ts-editor .ts-history{margin-top:12px;padding-top:10px}
.ts-editor .ts-fact-note{margin-top:8px;font-size:12px}
.ts-editor .ts-bulk-options{display:flex;flex-wrap:wrap;gap:8px 20px;margin:12px 0}
.ts-editor .ts-bulk-preview{padding:9px 12px;margin-top:10px;font-size:13px}
.ts-cell[data-ts-editable=false]{cursor:default}
@media(max-width:600px){body .ts-editor .modal-heading,body .ts-editor .modal-body{padding:14px}.ts-editor .ts-overtime{gap:8px}.ts-editor .ts-marker-option>span{font-size:13px}.ts-editor .ts-note-fields textarea{font-size:16px}}
/* Keep the extra-hours control in one compact row on desktop. */
@media(min-width:761px){.ts-editor .ts-overtime-amount{grid-template-columns:auto auto;gap:2px 12px;min-width:260px}.ts-editor .ts-overtime-amount>label{grid-column:1;grid-row:1;align-self:end}.ts-editor .ts-overtime-amount>small{grid-column:1;grid-row:2;white-space:nowrap}.ts-editor .ts-overtime-amount>div{grid-column:2;grid-row:1/3}}
/* The date header selects one column for bulk entry, without changing records. */
.ts-table thead th[data-ts-column-day]{padding:4px}
.ts-table .ts-day-select{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:100%;min-height:44px;padding:4px 2px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font:inherit;cursor:pointer;transition:background .15s,border-color .15s}
.ts-table .ts-day-select>span{font-size:14px;font-weight:700}
.ts-table .ts-day-select>small{margin:0;font-size:10px;line-height:1.2;color:var(--muted)}
.ts-table .ts-day-select:hover:not(:disabled):not([aria-pressed=true]){border-color:var(--accent);background:var(--accent-soft)}
.ts-table .ts-day-select:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.ts-table .ts-day-select[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:#fff;box-shadow:0 2px 5px #0002}
.ts-table .ts-day-select[aria-pressed=true]>small{color:inherit}
.ts-table .ts-day-select:disabled{border-color:transparent;background:transparent;cursor:default;color:var(--muted)}
.ts-refined .ts-table [data-ts-column-day].ts-day-selected{background:var(--accent-soft);box-shadow:inset 1px 0 var(--accent-line),inset -1px 0 var(--accent-line)}
.ts-editor #ts-bulk-form [hidden]{display:none!important}
