#timesheetsView { min-width: 0; }
#timesheetsView .ts-workspace { display: block; min-width: 0; container-type: inline-size; font-size: 12px; }
.ts-workspace *, .ts-dialog * { box-sizing: border-box; letter-spacing: 0; }
.ts-icon { display: inline-block; width: 16px; height: 16px; flex: 0 0 16px; background: currentColor; mask: var(--ts-icon) center / contain no-repeat; }
.ts-workspace button, .ts-workspace input, .ts-workspace select, .ts-workspace textarea { font: inherit; color: var(--text); border: 1px solid var(--line); border-radius: 5px; background: var(--control); min-height: 32px; padding: 6px 10px; max-width: 100%; }
.ts-workspace button { display: inline-flex; gap: 7px; align-items: center; justify-content: center; cursor: pointer; font-weight: 600; white-space: normal; }
.ts-workspace button:disabled { opacity: .5; cursor: default; }
.ts-workspace button:hover:not(:disabled) { background: var(--panel-soft); border-color: var(--accent); }
.ts-workspace button:focus-visible, .ts-workspace input:focus-visible, .ts-workspace select:focus-visible, .ts-workspace textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ts-workspace .ts-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.ts-workspace .ts-primary:hover:not(:disabled) { background: var(--accent); filter: brightness(1.1); }
.ts-workspace input[type="checkbox"] { width: 16px; height: 16px; min-height: 16px; padding: 0; accent-color: var(--accent); }
.ts-workspace select { padding-right: 30px; }
.ts-tabs { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; min-height: 50px; border-bottom: 1px solid var(--line); }
.ts-tabs > button { background: none; border: 0; border-radius: 0; min-height: 48px; padding: 8px 2px; color: var(--muted); border-bottom: 2px solid transparent; }
.ts-tabs > button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.ts-submit-status { display: flex; align-items: center; gap: 10px; margin-left: auto; padding: 6px 0; }
.ts-toolbar, .ts-filterbar, .ts-date-nav, .ts-tools, .ts-range, .ts-section-heading, .ts-form-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.ts-toolbar { padding: 14px 0 10px; gap: 12px 18px; }
.ts-tools { margin-left: auto; }
.ts-range { padding: 0 8px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); min-height: 32px; }
.ts-range input { border: 0; background: none; padding: 2px 0; width: 125px; }
.ts-segment { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); gap: 2px; }
.ts-segment button { min-width: 52px; min-height: 27px; border: 0; background: none; color: var(--muted); padding: 4px 8px; }
.ts-segment button[aria-pressed="true"] { color: #fff; background: var(--accent); }
.ts-filterbar { padding-bottom: 14px; border-bottom: 1px solid var(--line); gap: 8px; }
.ts-filterbar select { width: 160px; }
.ts-find { display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line); background: var(--control); border-radius: 5px; color: var(--muted); min-width: 170px; }
.ts-find input { background: none; border: 0; width: 220px; min-width: 0; padding-left: 0; }
.ts-zone { margin-left: auto; color: var(--muted); font-size: 11px; }
.ts-date-field { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }.ts-date-field input { width: 140px; }
.ts-metrics { display: flex; align-items: stretch; gap: 24px; padding: 19px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ts-metrics > div { min-width: 108px; padding-right: 24px; border-right: 1px solid var(--line); }
.ts-metrics > div:last-child { border: 0; }
.ts-metrics span { display: block; color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.ts-metrics strong { font-size: 23px; font-weight: 650; font-variant-numeric: tabular-nums; }
.ts-workspace .ts-metrics strong small { display: inline; margin-left: 4px; font-size: 12px; font-weight: 400; color: var(--muted); }
.ts-blue { color: var(--accent); }
.ts-section-heading { padding: 12px 0; min-height: 48px; }
.ts-section-heading h3 { margin: 0 auto 0 0; font-size: 13px; }
.ts-section-heading > span { color: var(--muted); font-size: 11px; }
.ts-section-heading select { width: auto; min-width: 110px; }
.ts-workspace .ts-indicator { color: #bf8016; border: 0; background: none; font-size: 11px; }
.ts-layout { display: flex; min-width: 0; align-items: stretch; gap: 0; }
.ts-main { flex: 1 1 0; min-width: 0; }
.ts-scroll { overflow: auto; max-height: 65vh; border: 1px solid var(--line); border-radius: 5px; scrollbar-width: auto; scrollbar-color: var(--line-strong) var(--panel); }
.ts-workspace table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 12px; table-layout: fixed; color: var(--text); }
.ts-workspace .ts-week { min-width: 895px; }
.ts-week col { width: 78px; }
.ts-week .ts-work-col { width: 270px; }
.ts-workspace th, .ts-workspace td { border-bottom: 1px solid var(--line); padding: 12px; vertical-align: middle; background: var(--panel); overflow-wrap: anywhere; }
.ts-workspace thead th { position: sticky; top: 0; z-index: 3; background: var(--panel-soft); color: var(--muted); font-weight: 500; font-size: 11px; height: 54px; }
.ts-week thead th span { display: block; margin-top: 4px; color: var(--text); font-size: 12px; font-weight: 600; }
.ts-workspace .ts-week :is(td, th):not(:first-child) { text-align: center; font-variant-numeric: tabular-nums; padding: 6px; }
.ts-week tbody tr { height: 64px; }
.ts-workspace tbody th { text-transform: none; }
.ts-workspace .ts-week tr > :first-child { position: sticky; left: 0; z-index: 2; text-align: left; border-right: 1px solid var(--line); }
.ts-workspace .ts-week thead tr > :first-child { z-index: 5; }
.ts-workspace .ts-week tr > :last-child { position: sticky; right: 0; z-index: 2; border-left: 1px solid var(--line); font-weight: 700; background: var(--panel-soft); }
.ts-workspace .ts-week thead tr > :last-child { z-index: 5; }
.ts-workspace small { display: block; color: var(--muted); font-weight: 400; font-size: 11px; margin-top: 5px; line-height: 1.4; overflow-wrap: anywhere; }
.ts-workspace .ts-work-name { text-align: left; justify-content: flex-start; border: 0; padding: 0; min-height: 0; background: none; display: inline; line-height: 1.5; font-size: 12px; }
.ts-work-name:hover { color: var(--accent); }
.ts-key { color: var(--muted); font-size: 11px; font-weight: 500; }
.ts-workspace .ts-cell { position: relative; width: 100%; min-height: 38px; font-size: 13px; border-color: transparent; background: none; }
.ts-workspace .ts-week input { width: 100%; height: 38px; min-width: 0; font-size: 13px; text-align: center; background: transparent; border-color: transparent; padding: 4px; }
.ts-workspace .ts-week input:hover { border-color: var(--line); background: var(--control); }
.ts-cell .ts-billing-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); position: absolute; bottom: 4px; left: calc(50% - 2px); }
.ts-cell .ts-billing-dot.billable { background: var(--accent); }
.ts-mixed { display: block; position: absolute; bottom: 0; font-size: 10px; color: var(--muted); font-weight: 400; }
.ts-workspace .ts-week .ts-today { background: color-mix(in srgb, var(--accent) 5%, var(--panel)); }
.ts-workspace .ts-week .ts-selected { outline: 2px solid var(--accent); outline-offset: -2px; }
.ts-week tfoot th, .ts-week tfoot td { font-weight: 650; height: 44px; background: var(--panel-soft); }
.ts-workspace .ts-week tfoot .ts-schedule > * { color: var(--muted); font-weight: 400; }
.ts-zero { color: var(--muted); }
.ts-workspace .ts-empty { padding: 36px 16px; text-align: center; color: var(--muted); }
.ts-foot-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 0; }
.ts-save { margin-left: auto; color: var(--muted); font-size: 11px; }
.ts-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 10px; color: var(--muted); padding: 4px 0 14px; }
.ts-legend > span { display: inline-flex; gap: 5px; align-items: center; }
.ts-legend i { width: 6px; height: 6px; background: var(--muted); border-radius: 50%; }
.ts-legend i.billable { background: var(--accent); }
.ts-badge { display: inline-block; font-size: 10px; font-weight: 500; line-height: 1.5; border-radius: 4px; padding: 2px 6px; background: var(--panel-soft); color: var(--muted); border: 1px solid var(--line); white-space: normal; }
.ts-badge.blue { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--panel)); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.ts-badge.green { color: #238358; background: color-mix(in srgb, #2bab72 10%, var(--panel)); }
.ts-badge.amber { color: #bf8016; background: color-mix(in srgb, #e4ac43 10%, var(--panel)); }
.ts-entries { min-width: 820px; }
.ts-entries th:nth-child(1) { width: 115px; }.ts-entries th:nth-child(2) { width: 250px; }.ts-entries th:nth-child(3) { width: 85px; }.ts-entries th:nth-child(4) { width: 100px; }.ts-entries th:nth-child(5) { width: 100px; }.ts-entries th:last-child { width: 50px; }
.ts-notes { color: var(--muted); }
.ts-team, .ts-approval { min-width: 780px; }.ts-team th:first-child { width: 240px; }.ts-team th:last-child, .ts-approval th:last-child { width: 50px; }.ts-approval th:first-child { width: 65px; }.ts-approval th:nth-child(2) { width: 245px; }
.ts-drawer { flex: 0 0 340px; min-width: 0; margin-left: 16px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); max-height: 76vh; overflow: auto; }
.ts-drawer[hidden] { display: none; }
.ts-drawer header, .ts-dialog header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); }
.ts-drawer header h3, .ts-dialog header h3 { font-size: 15px; line-height: 1.4; margin: 4px 0 0; overflow-wrap: anywhere; }
.ts-drawer header button { flex: 0 0 32px; padding: 5px; }
.ts-drawer-body { padding: 16px; }
.ts-drawer-body p { line-height: 1.6; overflow-wrap: anywhere; }
.ts-context, .ts-muted { color: var(--muted); font-size: 11px; }
.ts-drawer h4 { font-size: 12px; margin: 20px 0 10px; }
.ts-drawer-total { display: flex; align-items: center; gap: 10px; padding: 18px 0; }
.ts-drawer-total strong { font-size: 23px; }.ts-drawer-total span { color: var(--muted); font-size: 11px; }
.ts-record { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.ts-record > div { flex: 1; min-width: 0; }.ts-record strong { margin-right: 8px; }.ts-record p { margin: 8px 0 0; font-size: 12px; }.ts-record > button { font-size: 11px; min-height: 28px; }
.ts-drawer form { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.ts-drawer form label { display: grid; gap: 6px; font-size: 11px; color: var(--muted); }
.ts-drawer form input, .ts-drawer form select, .ts-drawer form textarea { width: 100%; }.ts-drawer form textarea { resize: vertical; min-height: 80px; }
.ts-drawer form input[readonly] { color: var(--muted); background: var(--panel-soft); }
.ts-entry-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }.ts-entry-heading small { margin: 0; font-size: 10px; }
.ts-drawer form[data-entry-form] textarea { min-height: 64px; }
.ts-time-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }.ts-time-pair label { min-width: 0; }
.ts-duration-fields { margin: 0; padding: 0; border: 0; min-width: 0; }.ts-duration-fields legend { padding: 0 0 8px; font-size: 11px; color: var(--muted); }
.ts-drawer form .ts-billable-field { display: flex; align-items: center; gap: 8px; }.ts-drawer form .ts-billable-field input { width: 16px; min-height: 16px; margin: 0; }
.ts-drawer [data-end-day] { margin: 0; }.ts-drawer [data-end-day][hidden] { display: none; }
.ts-time-error { margin: 0; color: var(--red); font-size: 11px; }.ts-time-error[hidden] { display: none; }
.ts-form-actions { justify-content: flex-end; }.ts-drawer form h4 { margin: 0; color: var(--text); }
.ts-line { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }.ts-history { padding-left: 18px; }.ts-history li { padding: 8px 0; }.ts-history p { margin: 4px 0; }
.ts-signals { padding-left: 18px; color: var(--muted); line-height: 1.6; }.ts-signals li { padding: 6px 0; }
.ts-notice { padding: 10px 12px; margin: 10px 0; border-left: 3px solid var(--accent); background: var(--panel-soft); }.ts-notice.ts-error { border-color: #e45e6d; }.ts-notice[hidden] { display: none; }
.ts-unavailable { display: grid; justify-items: center; text-align: center; padding: 70px 20px; color: var(--muted); }.ts-unavailable h3 { color: var(--text); font-size: 16px; }.ts-unavailable p { max-width: 460px; line-height: 1.7; }
.ts-dialog { width: min(640px, 94vw); max-height: 85vh; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 7px; padding: 0; }.ts-dialog::backdrop { background: #0008; }.ts-dialog .ts-find { margin: 16px; }.ts-dialog .ts-find input { width: 100%; }.ts-row-choices { max-height: 52vh; overflow: auto; padding: 0 16px 16px; }
.ts-row-choices button { display: flex; text-align: left; justify-content: space-between; width: 100%; padding: 12px 0; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; gap: 18px; }
.ts-row-choices button span { min-width: 0; }.ts-row-choices strong { font-size: 12px; }
@container (max-width: 1050px) { .ts-layout:has(.ts-drawer:not([hidden])) { flex-direction: column; }.ts-drawer { flex-basis: auto; margin: 14px 0 0; width: 100%; max-height: none; }.ts-drawer-body { max-width: 700px; }.ts-filterbar select { width: 145px; } }
@container (max-width: 600px) { .ts-metrics { gap: 12px; }.ts-metrics > div { min-width: 85px; padding-right: 12px; }.ts-metrics strong { font-size: 20px; }.ts-submit-status { width: 100%; margin: 0; justify-content: space-between; }.ts-tools { margin-left: 0; }.ts-zone { margin-left: 0; }.ts-find { width: 100%; }.ts-find input { width: 100%; }.ts-tabs { gap: 16px; }.ts-range { font-size: 11px; gap: 4px; }.ts-week .ts-work-col { width: 210px; }.ts-workspace .ts-week { min-width: 835px; } }
@media(max-width: 600px) { .ts-workspace .ts-week tr > :first-child { position: static; }.ts-workspace .ts-week tr > :last-child { position: static; } }
