.ts-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:20px;align-items:start}.ts-results{min-width:0}.ts-filters{position:sticky;top:16px;padding:18px}.ts-filters form{display:grid;gap:14px}.ts-table{font-size:12px;min-width:1050px}.ts-table th,.ts-table td{padding:9px 8px;vertical-align:top}.ts-table th{white-space:nowrap}.ts-table small{display:block;color:var(--muted)}.ts-table .ts-comments{min-width:210px;max-width:360px;white-space:pre-wrap;overflow-wrap:anywhere}.ts-table .ts-hours{text-align:right;white-space:nowrap}.ts-table button{padding:5px 8px;font-size:12px;margin:0 4px 5px 0}.ts-summary{display:flex;gap:12px;flex-wrap:wrap;margin-top:16px;font-size:13px}.ts-entry-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}#ts-entry details{border-top:1px solid var(--line);padding-top:12px}#ts-entry details[open] summary{margin-bottom:12px}#ts-entry input,#ts-entry select{min-width:0}#ts-entry{max-height:76vh;overflow:auto;padding:3px}.ts-filters label{font-size:13px}@media(max-width:900px){.ts-layout{grid-template-columns:1fr}.ts-filters{position:static;grid-row:1}.ts-filters form{grid-template-columns:1fr 1fr}.ts-entry-grid{grid-template-columns:1fr}}@media print{.ts-filters{display:none}.ts-layout{display:block}}
.ts-timecard-page{background:white;padding:24px 28px;color:#293640}.ts-page-title{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:1px solid #ddd;padding-bottom:22px;margin-bottom:30px;position:relative}.ts-page-title h1{font-size:28px;margin:0}.ts-reports>summary{list-style:none;background:#e5e7e9;padding:10px 18px;border-radius:4px;cursor:pointer}.ts-reports[open]{width:100%}.ts-reports[open]>summary{width:max-content;margin-left:auto}.ts-page-title:has(.ts-reports[open]){display:block}.ts-report-body{padding-top:24px}.ts-edit-title{display:none}.ts-timecard-page #ts-entry{max-height:none;overflow:visible;padding:0;display:block}.ts-period-heading{display:flex;gap:8px;align-items:center;flex-wrap:wrap;text-transform:uppercase;padding:12px 0 18px;border-bottom:1px solid #ddd;font-size:15px}.ts-period-heading select{max-width:330px}.ts-period-heading input{width:170px}.ts-timecard-page #ts-entry input,.ts-timecard-page #ts-entry select,.ts-timecard-page #ts-entry textarea{border:1px solid #ccc;border-radius:2px;padding:8px 10px;font-size:14px;min-height:36px;background:white}.ts-main-fields{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);column-gap:22px}.ts-main-fields>label{display:grid;grid-template-columns:125px minmax(0,1fr);align-items:center;gap:12px;border-bottom:1px solid #ddd;padding:12px 8px;font-size:14px;font-weight:400;margin:0}.ts-main-fields .ts-day,.ts-main-fields .ts-billable,.ts-main-fields .ts-description{grid-column:1/-1}.ts-main-fields .ts-day input{width:170px}.ts-main-fields .ts-hours-input input{max-width:200px}.ts-main-fields .ts-description{align-items:start}.ts-main-fields textarea{min-height:110px;resize:vertical}.ts-main-fields .ts-billable{display:flex;gap:12px}.ts-main-fields .ts-billable select{width:75px;margin-left:64px}.ts-main-fields .ts-billable span{color:#555}.ts-timecard-page #ts-entry details{padding:10px 8px;font-size:13px;border-top:0;border-bottom:1px solid #eee}.ts-timecard-page #ts-entry details summary{cursor:pointer;color:#65717a}.ts-save-row{justify-content:flex-end;padding:12px 0 20px}.ts-timecard-page button{border-radius:3px;font-size:14px;padding:8px 16px}.ts-weekly{border-top:1px solid #ff8b58;margin-top:12px;padding-top:24px}.ts-weekly h2{font-size:16px;text-transform:uppercase;margin:12px 0 16px}.ts-week-table{width:100%;font-size:13px;border-collapse:collapse;min-width:780px}.ts-week-table th,.ts-week-table td{border:1px solid #e2e2e2;padding:10px;vertical-align:top;white-space:normal;overflow-wrap:anywhere}.ts-week-table th{background:#f4f4f4}.ts-week-table td:nth-child(5),.ts-week-table tfoot{text-align:right}.ts-week-table .ts-week-empty{height:100px;vertical-align:bottom}.ts-week-table button{padding:4px 8px;margin:3px;font-size:12px}.ts-week-table td:nth-child(7){white-space:pre-wrap;max-width:320px}.ts-timecard-page .error:empty,.ts-timecard-page #ts-week-message:empty{display:none}@media(max-width:850px){.ts-timecard-page{padding:16px}.ts-main-fields{grid-template-columns:1fr}.ts-main-fields>label{grid-column:1/-1;grid-template-columns:100px minmax(0,1fr)}.ts-main-fields .ts-billable select{margin-left:39px}.ts-period-heading{font-size:13px}.ts-period-heading select{max-width:100%}}
.ts-week-table th{white-space:nowrap;text-transform:none}.ts-week-table td:nth-child(2){white-space:nowrap}.ts-main-fields{grid-template-columns:minmax(0,1.7fr) minmax(300px,1fr)}@media(max-width:850px){.ts-main-fields{grid-template-columns:1fr}}
.ts-copy-action{text-align:center;padding:8px 0}.ts-copy-action>span{display:block}.ts-copy-action button{border:0;background:transparent;color:#2167ae;padding:3px 10px}.ts-copy-action p:empty{display:none}dialog.ts-copy-dialog{width:min(1300px,96vw);max-width:96vw}.ts-copy-table{font-size:13px;min-width:850px}.ts-copy-table td,.ts-copy-table th{padding:8px;vertical-align:top}.ts-copy-table input[type=number]{width:90px}.ts-copy-table input[type=date]{width:145px}.ts-copy-table textarea{min-width:170px}.ts-copy-table input[type=checkbox]{width:18px;height:18px}
.ts-timecard-page .ts-week-table{table-layout:fixed;min-width:1140px;font-size:12px}.ts-timecard-page .ts-week-table th,.ts-timecard-page .ts-week-table td{padding:5px 8px;vertical-align:middle;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.35}.ts-timecard-page .ts-week-table th:nth-child(1){width:15%}.ts-timecard-page .ts-week-table th:nth-child(2){width:9%}.ts-timecard-page .ts-week-table th:nth-child(3){width:25%}.ts-timecard-page .ts-week-table th:nth-child(4){width:11%}.ts-timecard-page .ts-week-table th:nth-child(5){width:6%}.ts-timecard-page .ts-week-table th:nth-child(6){width:7%}.ts-timecard-page .ts-week-table th:nth-child(7){width:12%}.ts-timecard-page .ts-week-table th:nth-child(8){width:210px}.ts-timecard-page .ts-week-table button{display:inline-block;min-height:0;margin:0 0 0 5px;padding:3px 7px;font-size:12px;line-height:1.3;vertical-align:middle}.ts-timecard-page .ts-week-table .ts-week-empty{height:52px}.ts-timecard-page .ts-week-table tfoot th{width:auto}
.ts-timecard-page .ts-week-table{min-width:900px}.ts-timecard-page .ts-week-table th:nth-child(1){width:15%}.ts-timecard-page .ts-week-table th:nth-child(2){width:10%}.ts-timecard-page .ts-week-table th:nth-child(3){width:22%}.ts-timecard-page .ts-week-table th:nth-child(4){width:10%}.ts-timecard-page .ts-week-table th:nth-child(5){width:6%}.ts-timecard-page .ts-week-table th:nth-child(6){width:7%}.ts-timecard-page .ts-week-table th:nth-child(7){width:10%}.ts-timecard-page .ts-week-table th:nth-child(8){width:20%}
.ts-approval-bar{display:flex;align-items:center;gap:12px;margin:8px 0;font-size:12px;flex-wrap:wrap}.ts-approval-bar label{display:flex;align-items:center;gap:6px;font-weight:400}.ts-approval-bar input[type=checkbox],.ts-timecard-page input.ts-approve-check{width:15px;height:15px;min-height:0;margin:0 6px 0 0;vertical-align:middle}.ts-approval-bar button{padding:5px 10px;font-size:12px}.ts-timecard-page .ts-week-table th:nth-child(3){width:20%}.ts-timecard-page .ts-week-table th:nth-child(8){width:22%}
.ts-clock-fields{grid-column:1/-1;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;padding:12px 8px;border-bottom:1px solid #ddd}.ts-clock-fields label{font-size:13px;font-weight:400}.ts-clock-note{grid-column:1/-1;font-size:12px;color:#65717a;margin:4px 8px 8px}.ts-timecard-page input[readonly]{background:#f2f5f7!important}@media(max-width:850px){.ts-clock-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
.ts-timecard-page .ts-week-table.ts-inline-table{min-width:1900px;table-layout:auto}.ts-timecard-page .ts-week-table.ts-inline-table th{width:auto}.ts-inline-table input[data-clock]{width:112px;min-height:26px;padding:3px;border:1px solid #ccd5dc;border-radius:2px;font-size:12px}.ts-inline-table input[data-clock=lunchMinutes]{width:65px}.ts-timecard-page .ts-inline-table td:last-child{overflow:visible;min-width:280px}.ts-inline-table [data-clock-message]{display:block;color:#986000;font-size:11px;white-space:normal;max-width:320px}.ts-timecard-page .ts-inline-table td:nth-child(10){text-align:right}.ts-timecard-page .ts-inline-table [hidden]{display:none}
.ts-timecard-page .ts-inline-table td:nth-child(3){max-width:260px}.ts-timecard-page .ts-inline-table td:nth-child(12){max-width:200px}.ts-timecard-page .ts-inline-table th:last-child,.ts-timecard-page .ts-inline-table td:last-child{position:sticky;right:0;background:#fff;box-shadow:-2px 0 3px #ddd}.ts-timecard-page .ts-inline-table th:last-child{background:#f4f4f4}
.ts-reports,.ts-report-body,.ts-layout,.ts-filters,.ts-filters form,.ts-filters label{min-width:0;max-width:100%;box-sizing:border-box}.ts-filters form{grid-template-columns:minmax(0,1fr)}.ts-filters input:not([type=checkbox]),.ts-filters select{display:block;width:100%;min-width:0;max-width:100%;box-sizing:border-box}.ts-filters .row{flex-wrap:wrap}.ts-report-body>.heading{flex-wrap:wrap}.ts-report-body>.heading>div{min-width:0;max-width:100%}.ts-report-body>.heading .row{flex-wrap:wrap}.ts-report-body #ts-format{min-width:0;max-width:100%}@media(min-width:561px) and (max-width:900px){.ts-filters form{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.ts-filters form{grid-template-columns:minmax(0,1fr)}}

/* Keep editable timecard details within compact line items. */
.ts-timecard-page .ts-inline-table select[data-inline]{box-sizing:border-box;width:200px;min-width:0;max-width:100%;min-height:26px;height:28px;padding:2px 6px;font-size:12px;line-height:1.2;border-radius:3px;}
.ts-timecard-page .ts-inline-table select[data-inline="costCode"]{width:260px;}
.ts-timecard-page .ts-inline-table select[data-inline="timeType"]{width:150px;}

.ts-timecard-page .ts-inline-table select[data-inline="billable"]{width:65px;}
.ts-timecard-page .ts-inline-table textarea[data-inline="description"]{box-sizing:border-box;display:block;width:200px;min-width:120px;max-width:100%;height:28px;min-height:28px;padding:4px 6px;font-size:12px;line-height:18px;border-radius:3px;resize:vertical;}

.ts-timecard-page .ts-inline-table input[data-inline="date"]{box-sizing:border-box;width:125px;min-width:125px;max-width:100%;height:28px;min-height:28px;padding:2px 4px;font-size:12px;line-height:1.2;border-radius:3px;}

/* Highlight the entire unsaved row, including its pinned action cell. */
.ts-timecard-page .ts-inline-table tr.ts-unsaved-row > td{background:#fff3cd;}
.ts-timecard-page .ts-inline-table tr.ts-unsaved-row > td:first-child{box-shadow:inset 4px 0 #b77900;}
.ts-timecard-page .ts-inline-table tr.ts-unsaved-row [data-clock-message]{color:#704b00;font-weight:600;}
.ts-timecard-page .ts-weekly [hidden]{display:none;}

/* Stronger field highlights identify the exact values changed in a draft. */
.ts-timecard-page .ts-inline-table [data-inline].ts-changed-field,
.ts-timecard-page .ts-inline-table [data-clock].ts-changed-field{background:#ffe3a3;border-color:#a66a00;box-shadow:inset 3px 0 #a66a00;}
.ts-timecard-page .ts-inline-table tr.ts-unsaved-row > td.ts-changed-total{background:#ffe3a3;font-weight:700;box-shadow:inset 3px 0 #a66a00;}

.ts-timecard-page .ts-field-reset-wrap{display:flex;align-items:center;gap:3px;}
.ts-timecard-page .ts-inline-table .ts-field-reset{flex:0 0 24px;width:24px;min-height:26px;margin:0;padding:2px;font-size:17px;line-height:20px;border:1px solid #a66a00;border-radius:3px;background:#fff8e6;color:#704b00;}

.ts-review-dialog{box-sizing:border-box;width:min(1000px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:90vh;padding:20px;}
.ts-review-content{max-height:60vh;overflow:auto;}
.ts-review-entry{margin-bottom:20px;}
.ts-review-entry h3{font-size:15px;margin:10px 0;}
.ts-review-entry table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:13px;}
.ts-review-entry th,.ts-review-entry td{padding:7px 9px;border:1px solid #ccd5dc;text-align:left;vertical-align:top;white-space:pre-wrap;overflow-wrap:anywhere;}
.ts-review-entry th:first-child{width:20%;}.ts-review-entry thead{background:#f1f4f6;}
.ts-review-entry tbody td:last-child{background:#fff3cd;}

.ts-review-entry th:last-child{width:90px;}
.ts-review-entry tbody td:nth-child(3){background:#fff3cd;}
.ts-review-entry tbody td:last-child{background:#fff;}
.ts-review-entry [data-review-reset]{padding:4px 7px;font-size:12px;white-space:nowrap;}

.ts-review-entry-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:10px 0;}
.ts-review-entry-heading h3{margin:0;}
.ts-review-entry-heading button{flex-shrink:0;padding:5px 9px;font-size:12px;}

.ts-review-entry-heading h3{flex:1;min-width:180px;}
.ts-review-dialog .check{display:flex;align-items:center;gap:6px;font-size:13px;}
.ts-review-dialog .check input{width:auto;}

/* Approved entries retain a light green tint unless there are unsaved edits. */
.ts-timecard-page .ts-inline-table tr.ts-approved-row:not(.ts-unsaved-row) > td,
.ts-timecard-page .ts-table tr.ts-approved-row > td{background:#edf7ee;}

.ts-review-hours{display:flex;flex-wrap:wrap;gap:12px 28px;margin:8px 0 12px;padding:8px 12px;background:#f1f4f6;border:1px solid #ccd5dc;font-size:13px;}
.ts-review-hours dt{color:#526676;}
.ts-review-hours dd{margin:2px 0 0;font-weight:600;font-variant-numeric:tabular-nums;}

.ts-timecard-page [data-unsaved-difference].ts-hours-increase,.ts-review-hours dd.ts-hours-increase{color:#166534;background:#dcfce7;padding:2px 6px;border-radius:4px;}
.ts-timecard-page [data-unsaved-difference].ts-hours-decrease,.ts-review-hours dd.ts-hours-decrease{color:#991b1b;background:#fee2e2;padding:2px 6px;border-radius:4px;}

/* Keep unsaved field colors while outlining the entry being corrected. */
.ts-timecard-page .ts-inline-table tr.ts-fixing-row > td{box-shadow:inset 0 2px #2563eb,inset 0 -2px #2563eb;}
.ts-timecard-page .ts-inline-table tr.ts-fixing-row > td:first-child{box-shadow:inset 4px 0 #2563eb,inset 0 2px #2563eb,inset 0 -2px #2563eb;}
.ts-timecard-page .ts-inline-table tr.ts-fixing-row > td:last-child{box-shadow:inset -2px 0 #2563eb,inset 0 2px #2563eb,inset 0 -2px #2563eb,-2px 0 3px #ddd;}

.ts-timecard-page .ts-inline-table [data-inline].ts-invalid-field,
.ts-timecard-page .ts-inline-table [data-clock].ts-invalid-field{background:#fee2e2;border-color:#b91c1c;box-shadow:inset 3px 0 #b91c1c;}
.ts-timecard-page .ts-inline-table .ts-field-error-message{display:block;white-space:normal;overflow-wrap:anywhere;color:#991b1b;font-size:12px;line-height:1.25;margin-top:4px;max-width:100%;}
.ts-timecard-page .ts-inline-table .ts-field-error-message[hidden]{display:none;}

.ts-timecard-page .ts-employee-controls{margin:8px 0;font-size:13px;}
.ts-timecard-page .ts-table .ts-employee-heading th{background:#eef2f5;padding:0;text-align:left;}
.ts-timecard-page .ts-table .ts-employee-heading button{display:block;width:100%;margin:0;padding:10px 12px;border:0;border-radius:0;background:transparent;color:#19384b;text-align:left;font-weight:600;white-space:normal;}
.ts-timecard-page .ts-table .ts-employee-heading button:hover{background:#e2eaf0;}
.ts-timecard-page .ts-table tbody[data-employee-group][hidden]{display:none;}

.ts-timecard-page .ts-employee-heading-content{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding-right:10px;}
.ts-timecard-page .ts-table .ts-employee-heading [data-employee-toggle]{flex:1;min-width:220px;width:auto;}
.ts-timecard-page .ts-table .ts-employee-heading [data-employee-approve]{width:auto;padding:6px 10px;margin:5px 0;border:1px solid #bfd0df;border-radius:4px;background:#fff;color:#1859a9;font-size:12px;white-space:nowrap;}

/* Compact employee report rows without changing the editable weekly timecard. */
.ts-timecard-page #ts-table .ts-table{font-size:12px;line-height:1.3;}
.ts-timecard-page #ts-table .ts-table th,
.ts-timecard-page #ts-table .ts-table td{padding:4px 6px;vertical-align:middle;}
.ts-timecard-page #ts-table .ts-table td:not(.ts-comments){white-space:nowrap;}
.ts-timecard-page #ts-table .ts-table .ts-comments{min-width:140px;max-width:280px;}
.ts-timecard-page #ts-table .ts-table button,
.ts-timecard-page #ts-table > .row button{min-height:26px;padding:3px 7px;font-size:12px;line-height:18px;margin:0 4px 0 0;}
.ts-timecard-page #ts-table .ts-table td:last-child{white-space:nowrap;}
.ts-timecard-page #ts-table .ts-approve-check{vertical-align:middle;margin:0 6px 0 0;}
.ts-timecard-page #ts-table > .row{gap:6px;margin:5px 0;font-size:12px;}
.ts-timecard-page #ts-table .ts-employee-heading th{padding:0;}
.ts-timecard-page #ts-table .ts-employee-heading-content{gap:6px;padding-right:6px;}
.ts-timecard-page #ts-table .ts-employee-heading [data-employee-toggle]{padding:5px 8px;line-height:18px;margin:0;}
.ts-timecard-page #ts-table .ts-employee-heading [data-employee-approve]{padding:2px 7px;margin:3px 0;font-size:12px;}

/* Give the report the full page width, reserving space for approval actions. */
.ts-report-body .ts-layout{grid-template-columns:minmax(0,1fr);gap:12px;}
.ts-report-body .ts-filters{grid-row:1;position:static;padding:12px;}
.ts-report-body .ts-filters h3{margin:0 0 8px;font-size:14px;}
.ts-report-body .ts-filters form{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 12px;}
.ts-report-body .ts-filters input:not([type=checkbox]),.ts-report-body .ts-filters select{min-height:30px;padding:4px 6px;font-size:12px;}
.ts-timecard-page #ts-table .ts-table{width:100%;min-width:0;table-layout:fixed;}
.ts-timecard-page #ts-table .ts-table th{white-space:normal;overflow-wrap:anywhere;}
.ts-timecard-page #ts-table .ts-table td:not(.ts-comments){white-space:normal;overflow-wrap:anywhere;}
.ts-timecard-page #ts-table .ts-table .ts-comments{min-width:0;max-width:none;}
.ts-timecard-page #ts-table .ts-table thead th:nth-child(2){width:5%;}
.ts-timecard-page #ts-table .ts-table thead th:nth-child(3){width:5%;}
.ts-timecard-page #ts-table .ts-table thead th:nth-child(5){width:78px;}
.ts-timecard-page #ts-table .ts-table thead th:nth-child(7){width:17%;}
.ts-timecard-page #ts-table .ts-table thead th:nth-child(8){width:5%;}
.ts-timecard-page #ts-table .ts-table thead th:nth-child(10){width:52px;}
.ts-timecard-page #ts-table .ts-table thead th:nth-child(11){width:70px;}
.ts-timecard-page #ts-table .ts-table thead th:nth-child(12){width:144px;}
.ts-timecard-page #ts-table .ts-table td:last-child{white-space:nowrap;}
@media(max-width:1000px){
 .ts-report-body .ts-filters form{grid-template-columns:repeat(2,minmax(0,1fr));}
 .ts-timecard-page #ts-table .ts-table,.ts-timecard-page #ts-table .ts-table tbody{display:block;width:100%;}
 .ts-timecard-page #ts-table .ts-table thead{display:none;}
 .ts-timecard-page #ts-table .ts-table tbody[data-employee-group] tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-bottom:1px solid #ccd5dc;padding:4px;}
 .ts-timecard-page #ts-table .ts-table td{display:block;min-width:0;border:0;}
 .ts-timecard-page #ts-table .ts-table td::before{content:attr(data-label);display:block;font-size:10px;color:#65717a;font-weight:600;margin-bottom:2px;}
 .ts-timecard-page #ts-table .ts-table .ts-hours{text-align:left;}
 .ts-timecard-page #ts-table .ts-table td:last-child{grid-column:span 2;}
 .ts-timecard-page #ts-table .ts-employee-heading,.ts-timecard-page #ts-table .ts-employee-heading th{display:block;width:100%;box-sizing:border-box;}
}
@media(max-width:480px){
 .ts-report-body .ts-filters form{grid-template-columns:minmax(0,1fr);}
 .ts-timecard-page #ts-table .ts-table tbody[data-employee-group] tr{grid-template-columns:repeat(2,minmax(0,1fr));}
}
.ts-timecard-page #ts-table .ts-table thead th{font-size:10px;letter-spacing:0;overflow-wrap:normal;}
.ts-timecard-page #ts-table .ts-employee-name,
.ts-timecard-page #ts-table tbody[data-employee-group] td:first-child{font-size:14px;font-weight:700;line-height:1.35;}

/* Reports is a separate page view, not an expanded Timecard panel. */
.ts-timecard-page > [hidden]{display:none!important;}
.ts-reports-page{min-width:0;max-width:100%;}
.ts-reports-page > .ts-report-body{padding-top:12px;}

.ts-mobile-editor-title{display:none}
@media(max-width:600px){
 .ts-timecard-page{padding:0!important;background:#f1f3f5}
 .ts-timecard-page>.ts-timecard-header{padding:16px}
 .ts-timecard-page h1{font-size:22px;line-height:1.2}
 .ts-timecard-page #ts-entry{display:flex;flex-direction:column;gap:0;background:#f1f3f5}
 .ts-timecard-page #ts-entry .ts-save-row{order:-2;position:sticky;top:0;z-index:5;display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 12px;background:#fff;border-bottom:1px solid #dce3e9;margin:0 0 12px}
 .ts-timecard-page #ts-entry .ts-save-row button{border:0;background:transparent;color:#175fc9;padding:8px;min-height:44px;font-size:16px}
 .ts-mobile-editor-title{display:block;font-size:17px;text-align:center}
 .ts-timecard-page .ts-period-heading{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:0;align-items:center;text-transform:none;padding:0 16px;margin:0 0 12px;background:#fff;border:0;font-size:12px}
 .ts-timecard-page .ts-period-heading>strong{font-weight:500;font-size:12px;padding:12px 0}
 .ts-timecard-page .ts-period-heading input,.ts-timecard-page .ts-period-heading select{width:100%;max-width:100%;min-width:0;text-align:right;border:0;background:transparent;padding:10px 0;font-size:16px;min-height:48px}
 .ts-timecard-page .ts-main-fields{display:flex;flex-direction:column;gap:0;background:#fff;padding:0 16px}
 .ts-timecard-page .ts-main-fields>label,.ts-timecard-page .ts-clock-fields>label{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);align-items:center;gap:8px;border:0;border-bottom:1px solid #edf0f3;padding:8px 0;min-height:58px;font-size:15px;font-weight:400}
 .ts-timecard-page .ts-main-fields input,.ts-timecard-page .ts-main-fields select,.ts-timecard-page .ts-main-fields textarea{min-width:0;max-width:100%;width:100%;border:0!important;box-shadow:none;border-radius:0;background:transparent;padding:8px 0;font-size:16px;min-height:40px;color:#182d3e}
 .ts-timecard-page .ts-main-fields input:focus,.ts-timecard-page .ts-main-fields select:focus,.ts-timecard-page .ts-main-fields textarea:focus{outline:2px solid #aac9f2;outline-offset:2px;border-radius:4px}
 .ts-timecard-page .ts-main-fields .ts-project,.ts-timecard-page .ts-main-fields .ts-cost,.ts-timecard-page .ts-main-fields .ts-type,.ts-timecard-page .ts-main-fields .ts-description{grid-template-columns:minmax(0,1fr);gap:0;font-size:12px;color:#65717a}
 .ts-timecard-page .ts-main-fields .ts-project select,.ts-timecard-page .ts-main-fields .ts-cost input,.ts-timecard-page .ts-main-fields .ts-type select{text-align:left}
 .ts-timecard-page .ts-main-fields input[type=date],.ts-timecard-page .ts-main-fields input[type=time],.ts-timecard-page .ts-main-fields input[type=number]{text-align:right}
 .ts-timecard-page .ts-main-fields input[readonly]{background:transparent!important;color:#65717a}
 .ts-timecard-page .ts-clock-fields{display:contents}
 .ts-timecard-page .ts-clock-note{font-size:11px;line-height:1.4;margin:6px 0 10px;color:#65717a}
 .ts-timecard-page .ts-main-fields .ts-billable{display:grid;grid-template-columns:1fr 90px}
 .ts-timecard-page .ts-main-fields .ts-billable select{margin:0;width:100%;text-align:right}
 .ts-timecard-page .ts-main-fields .ts-billable span{display:none}
 .ts-timecard-page .ts-main-fields textarea{height:85px;min-height:85px;resize:vertical}
 .ts-timecard-page #ts-entry>details{background:#fff;margin-top:8px;padding:12px 16px}
 .ts-timecard-page #ts-entry>details summary{min-height:32px;padding:7px 0}
 .ts-timecard-page .ts-copy-action{padding:14px 8px;margin:0;background:#fff}
 .ts-timecard-page .ts-copy-action>span{display:none}
 .ts-timecard-page .ts-copy-action button{min-height:44px;font-size:15px}
 .ts-timecard-page .ts-weekly{padding:16px;margin-top:16px}
 .ts-timecard-page #ts-entry>.error:not(:empty){padding:12px 16px;background:#fff1f1;margin:0}
}

/* Accessible native checkbox styled as an on/off switch. */
.ts-timecard-page .ts-main-fields .ts-billable input.ts-billable-switch{appearance:none;-webkit-appearance:none;position:relative;display:inline-block;flex:0 0 50px;width:50px;max-width:50px;min-width:50px;height:30px;min-height:30px;margin:0;padding:0;border:0!important;border-radius:999px;background:#87939d;cursor:pointer;box-shadow:none;vertical-align:middle}
.ts-timecard-page .ts-main-fields .ts-billable input.ts-billable-switch::after{content:'';position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:white;box-shadow:0 1px 3px #0003;transition:transform .15s}
.ts-timecard-page .ts-main-fields .ts-billable input.ts-billable-switch:checked{background:#175fc9}
.ts-timecard-page .ts-main-fields .ts-billable input.ts-billable-switch:checked::after{transform:translateX(20px)}
.ts-timecard-page .ts-main-fields .ts-billable input.ts-billable-switch:focus-visible{outline:2px solid #175fc9;outline-offset:3px}
@media(max-width:600px){.ts-timecard-page .ts-main-fields .ts-billable input.ts-billable-switch{justify-self:end}}
@media(prefers-reduced-motion:reduce){.ts-timecard-page .ts-main-fields .ts-billable input.ts-billable-switch::after{transition:none}}

.ts-timecard-page #ts-entry .ts-add-line{align-self:center;justify-self:center;min-height:44px;border:0;background:transparent;color:#175fc9;font-size:17px;padding:12px 24px;margin:8px 0}
.ts-add-line-notice{padding:10px 16px;margin:0;background:#eaf5ee;color:#176046;font-size:14px}

/* Keep switch colors visible over the entry form's general input styling. */
.ts-timecard-page .ts-main-fields .ts-billable input.ts-billable-switch{background-color:#596775!important;border:2px solid #3e4b58!important;box-shadow:0 1px 3px #182d3e33!important;height:32px;min-height:32px;width:54px;min-width:54px;max-width:54px;flex-basis:54px}
.ts-timecard-page .ts-main-fields .ts-billable input.ts-billable-switch:checked{background-color:#0866d9!important;border-color:#054b9f!important}
.ts-timecard-page .ts-main-fields .ts-billable input.ts-billable-switch::after{top:2px;left:2px;box-shadow:0 1px 4px #0006}
.ts-timecard-page .ts-main-fields .ts-billable input.ts-billable-switch:checked::after{transform:translateX(22px)}

/* Pill silhouette overrides general checkbox shapes on mobile and desktop. */
.ts-timecard-page .ts-main-fields .ts-billable input.ts-billable-switch{border-radius:999px!important;overflow:hidden;box-shadow:inset 0 1px 3px #152c3c26,0 3px 7px #152c3c26!important;transition:background-color .18s,border-color .18s,box-shadow .18s}
.ts-timecard-page .ts-main-fields .ts-billable input.ts-billable-switch::after{border-radius:50%!important;background:linear-gradient(180deg,#fff,#f4f7fb);box-shadow:0 2px 4px #1023354d,0 0 0 1px #ffffff99}
@media(prefers-reduced-motion:reduce){.ts-timecard-page .ts-main-fields .ts-billable input.ts-billable-switch{transition:none}}

.ts-timecard-page .ts-project-search{display:grid;gap:5px;min-width:0;width:100%}.ts-timecard-page .ts-project-search input,.ts-timecard-page .ts-project-search select{width:100%;min-width:0}.ts-timecard-page .ts-project-search small{font-size:12px;line-height:1.35;color:#586a78}.ts-timecard-page .ts-project-search small:empty{display:none}

/* Readable report columns: do not squeeze names and cost codes into single letters. */
.ts-timecard-page #ts-table .ts-table td{overflow-wrap:normal;word-break:normal;line-height:1.35;padding:6px 8px;}
.ts-timecard-page #ts-table .ts-table tbody[data-employee-group] td:first-child{font-size:12px;font-weight:600;}
.ts-timecard-page #ts-table .ts-table button{border-radius:5px;min-height:28px;}
.ts-timecard-page #ts-table .ts-status{display:inline-block;border-radius:999px;padding:2px 8px;font-size:11px;font-weight:700;white-space:nowrap;}
.ts-status-approved{background:#dcefe3;color:#225b38}.ts-status-pending{background:#fff0cb;color:#775000}
.ts-timecard-page #ts-table .ts-employee-heading-content{flex-wrap:wrap;gap:4px 12px;padding:4px 8px;}
.ts-timecard-page #ts-table .ts-employee-heading [data-employee-toggle]{white-space:normal;text-align:left;font-size:12px;}
.ts-timecard-page #ts-table .ts-employee-name{font-size:14px;}
.ts-timecard-page .ts-report-body>.heading{margin-bottom:12px;padding-bottom:8px;}
.ts-timecard-page .ts-report-body .heading h1{font-size:24px;}
.ts-timecard-page #ts-table .tablewrap:focus-visible{outline:2px solid #175fc9;outline-offset:2px;}
@media(min-width:1001px){
 .ts-timecard-page #ts-table .ts-table{table-layout:fixed;min-width:1570px;width:100%;}
 .ts-timecard-page #ts-table .ts-table th,.ts-timecard-page #ts-table .ts-table td:not(.ts-comments){overflow-wrap:normal;word-break:normal;white-space:normal;}
 .ts-timecard-page #ts-table .ts-table thead th{white-space:nowrap;font-size:11px;}
 .ts-timecard-page #ts-table .ts-table thead th:nth-child(1){width:140px}
 .ts-timecard-page #ts-table .ts-table thead th:nth-child(2){width:70px}
 .ts-timecard-page #ts-table .ts-table thead th:nth-child(3){width:70px}
 .ts-timecard-page #ts-table .ts-table thead th:nth-child(4){width:120px}
 .ts-timecard-page #ts-table .ts-table thead th:nth-child(5){width:160px}
 .ts-timecard-page #ts-table .ts-table thead th:nth-child(6){width:95px}
 .ts-timecard-page #ts-table .ts-table thead th:nth-child(7){width:180px}
 .ts-timecard-page #ts-table .ts-table thead th:nth-child(8){width:220px}
 .ts-timecard-page #ts-table .ts-table thead th:nth-child(9){width:60px}
 .ts-timecard-page #ts-table .ts-table thead th:nth-child(10){width:90px}
 .ts-timecard-page #ts-table .ts-table thead th:nth-child(11){width:65px}
 .ts-timecard-page #ts-table .ts-table thead th:nth-child(12){width:120px}
 .ts-timecard-page #ts-table .ts-table thead th:nth-child(13){width:180px}
 .ts-timecard-page #ts-table .ts-table td:nth-child(6),.ts-timecard-page #ts-table .ts-table td:nth-child(11),.ts-timecard-page #ts-table .ts-table td:last-child{white-space:nowrap;}
 .ts-timecard-page #ts-table .ts-table .ts-comments{min-width:0;max-width:none;white-space:pre-wrap;overflow-wrap:break-word;}
 .ts-timecard-page #ts-table .ts-table td:last-child,.ts-timecard-page #ts-table .ts-table thead th:last-child{position:sticky;right:0;background:#fff;box-shadow:-2px 0 4px #193b5520;}
 .ts-timecard-page #ts-table .ts-table thead th:last-child{background:#f3f7fa;}
 .ts-timecard-page #ts-table .ts-table .ts-approved-row td:last-child{background:#edf7ef;}
 .ts-timecard-page #ts-table tbody[data-employee-group] tr:hover td{background:#eaf2fb;}
}
@media(max-width:1000px){
 .ts-timecard-page #ts-table .ts-table td:not(.ts-comments){overflow-wrap:break-word;}
 .ts-timecard-page #ts-table .ts-table tbody[data-employee-group] tr{gap:4px 10px;padding:10px;}
 .ts-timecard-page #ts-table .ts-table td{padding:3px 0;}
 .ts-timecard-page #ts-table .ts-table button{min-height:36px;}
}

/* Readable dates alongside native calendar pickers. */
.ts-full-date-control{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;min-width:0;text-transform:none}
.ts-full-date-label{font-size:14px;font-weight:600;color:#173c52}
.ts-full-date-control input{flex:0 0 170px;max-width:100%}
@media(max-width:600px){.ts-full-date-control{display:flex;flex-direction:column;align-items:flex-start;gap:2px}.ts-full-date-control input{flex:none}.ts-full-date-label{font-size:13px}}

.ts-report-week-nav{margin:0 0 14px}.ts-report-week-nav>label{display:block;font-size:13px;font-weight:600;margin-bottom:6px}.ts-report-week-nav>div{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.ts-report-week-nav select{width:auto;max-width:100%;min-width:240px;flex:0 1 570px}.ts-report-week-nav button{white-space:nowrap}
@media(max-width:600px){.ts-report-week-nav select{min-width:0;flex:1 1 200px;font-size:12px}}
