@import url("./workforce-custom.css");
@import url("./timesheet-transport-ui.css");
.timesheets{--ts-border:#cbd9e6;padding:6px 10px;width:100%;max-width:none;min-width:0;box-sizing:border-box;color:#18354c;font-size:13px}.timesheets h2{font-size:18px;margin:0 6px 0 0}.ts-toolbar,.ts-summary,.ts-tabs,.ts-month-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.timesheets button,.timesheets select,.timesheets input:not([type=checkbox]){border:1px solid var(--ts-border);border-radius:4px;background:#fff;color:inherit;font:inherit;min-height:28px;padding:3px 7px;box-sizing:border-box}.timesheets button{cursor:pointer;white-space:nowrap}.timesheets :disabled{cursor:default;opacity:.75}.timesheets input[type=checkbox]{width:16px;height:16px;margin:0;vertical-align:middle;accent-color:#315b80}.ts-tabs .active{background:#315b80;color:white}.ts-toolbar>select{max-width:360px}.ts-create{position:relative}.ts-create summary{cursor:pointer;color:#315b80;white-space:nowrap}.ts-create form{position:absolute;top:100%;left:0;z-index:4;display:flex;gap:10px;align-items:end;padding:12px;border:1px solid var(--ts-border);border-radius:6px;background:#f5f8fb;box-shadow:0 3px 12px #18354c20;min-width:430px}.ts-create label{display:grid;gap:4px;font-size:12px}.ts-create input{width:120px}.ts-schedule form{left:auto;right:0;flex-wrap:wrap;min-width:300px}.ts-summary{padding:5px 0;border-bottom:1px solid var(--ts-border);margin-bottom:4px}.ts-month-actions{margin-left:auto}.ts-month-actions button{font-size:12px;min-height:24px;padding:2px 5px}.ts-grid-scroll{min-width:0;max-width:100%;overflow:auto;border:1px solid var(--ts-border);border-radius:5px}.ts-grid{border-collapse:separate;border-spacing:0;width:100%;font-size:13px;table-layout:fixed;min-width:900px}.ts-grid th,.ts-grid td{padding:1px 4px;border-bottom:1px solid #e0e7ed;text-align:center;vertical-align:middle;height:22px;box-sizing:border-box}.ts-grid thead th{position:sticky;top:0;z-index:1;background:#e8f0f7;height:25px;font-size:12px}.ts-grid th:nth-child(1){width:62px}.ts-grid th:nth-child(2),.ts-grid th:nth-child(3){width:52px}.ts-grid th:nth-child(4),.ts-grid th:nth-child(5){width:100px}.ts-grid th:nth-child(6){width:105px}.ts-grid th:nth-child(7){width:78px}.ts-grid th:nth-child(8){width:92px}.ts-grid th:nth-child(9){width:146px}.ts-grid tbody th small{font-weight:normal;font-size:11px;margin-left:5px}.ts-grid .ts-time-control{display:flex;gap:2px}.ts-grid input:not([type=checkbox]),.ts-grid select,.ts-grid button{height:21px;min-height:21px;padding:0 4px;font-size:13px;line-height:19px}.ts-grid .ts-time{width:calc(100% - 25px);min-width:0;text-align:center}.ts-grid [data-ts-picker]{width:23px;padding:0;flex-shrink:0}.ts-grid td select,.ts-grid td>input:not([type=checkbox]){width:100%;min-width:0}.ts-grid .ts-break input[type=number]{width:59px;min-width:0;margin-left:5px}.ts-grid .ts-break,.ts-grid .ts-overtime{white-space:nowrap}.ts-grid .ts-overtime input{margin-left:7px}.ts-grid .ts-total{font-weight:600;font-variant-numeric:tabular-nums}.ts-grid .ts-approved{background:#edf5ef}.ts-grid .ts-approved .ts-total,.ts-approved-total{color:#226639}.ts-grid .ts-holiday-dot{font-size:8px;color:#a34747;margin-left:2px}.ts-grid .ts-dirty{box-shadow:inset 3px 0 #d2932e}.ts-empty{padding:20px;border:1px dashed var(--ts-border)}.timesheets [data-ts-status]{height:18px;margin:2px 0;font-size:12px;color:#965618}.timesheets .danger{color:#a03939}.ts-work-window{margin-left:auto;color:#53697b}.ts-time-picker{font:14px Arial,sans-serif;color:#18354c;border:1px solid #cbd9e6;border-radius:8px;padding:18px}.ts-time-picker::backdrop{background:#18354c55}.ts-time-picker form>div,.ts-time-picker footer{display:flex;gap:12px;margin-top:14px}.ts-time-picker label{display:grid;gap:5px}.ts-time-picker select,.ts-time-picker button{font:inherit;padding:6px 12px}.ts-time-picker footer{justify-content:flex-end}@media(max-width:700px){.timesheets{padding:5px}.ts-create form{position:fixed;left:10px;right:10px;top:100px;min-width:0;flex-wrap:wrap}.ts-summary{gap:5px}.ts-toolbar>select{max-width:260px}}
.ts-settings-dialog{font:14px Arial,sans-serif;color:#18354c;border:1px solid #cbd9e6;border-radius:8px;padding:18px;width:min(480px,90vw)}.ts-settings-dialog::backdrop{background:#18354c55}.ts-settings-dialog header,.ts-settings-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:10px}.ts-settings-dialog h3{margin:0}.ts-settings-dialog p{font-size:12px;color:#53697b}.ts-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.ts-settings-grid>label{display:grid;gap:5px}.ts-settings-dialog input:not([type=checkbox]),.ts-settings-dialog button{font:inherit;padding:5px 8px;box-sizing:border-box;width:100%}.ts-settings-dialog button{width:auto}.ts-settings-flags{display:grid;gap:8px;align-content:center}.ts-settings-apply{display:block;margin-top:14px;font-size:13px}.ts-settings-dialog footer{justify-content:flex-end}
@media(min-width:1100px) and (max-height:1100px){.timesheets{padding-top:3px;padding-bottom:3px}.timesheets .ts-summary{padding:3px 0;margin-bottom:2px}.timesheets [data-ts-status]{height:16px;margin:1px 0}.timesheets .ts-grid{font-size:12px}.timesheets .ts-grid th,.timesheets .ts-grid td{height:20px;padding:0 4px;line-height:18px}.timesheets .ts-grid thead th{height:23px;white-space:nowrap}.timesheets .ts-grid input:not([type=checkbox]),.timesheets .ts-grid select,.timesheets .ts-grid button{height:18px;min-height:18px;font-size:12px;line-height:16px}.timesheets .ts-grid input[type=checkbox]{height:14px;width:14px}}

/* Settings contain a short form, never a full-height work window. */
dialog.ts-settings-dialog{width:min(480px,calc(100vw - 24px))!important;height:auto!important;min-height:0!important;max-height:calc(100dvh - 24px)!important;overflow:auto!important}dialog.ts-settings-dialog .ts-settings-apply[hidden]{display:none}.ts-settings-warning{color:#8b4e16;font-size:12px}

/* Keep month identity prominent and all column titles on the same baseline. */
.ts-overtime-controls{display:flex;justify-content:center;align-items:center;gap:2px;min-height:0}.ts-grid .ts-overtime-controls button{flex:none;margin-left:0}
.ts-tag-control{display:flex;gap:4px;align-items:center}.ts-tag-control select{flex:1;min-width:0}.ts-tag-control label{display:flex;flex:none;gap:2px;align-items:center;font-size:10px;white-space:nowrap}.ts-grid [data-ts-overtime-edit]{width:18px;padding:0;margin-left:2px}.ts-overtime-dialog label{display:grid;gap:5px}.ts-overtime-dialog input{padding:7px;font:inherit;border:1px solid #cbd9e6;border-radius:4px}.ts-overtime-dialog small{display:block;margin-top:5px}.ts-overtime-dialog [data-overtime-error]{color:#a03939}
.ts-save-footer{display:flex;align-items:center;gap:12px;padding:10px 0}.ts-save-footer [data-ts-action=save]{background:#315b80;color:#fff}.ts-save-footer [data-ts-dirty-count]{font-size:12px;color:#965618}.ts-grid .ts-overtime-decision{display:inline-flex;align-items:center;justify-content:center;width:19px;margin-left:5px;padding:0;font-size:16px;line-height:18px;vertical-align:middle}.ts-overtime-decision[data-decision=approved]{color:#226639;background:#edf5ef}.ts-overtime-decision[data-decision=rejected]{color:#a03939;background:#fff0ed}.ts-overtime-dialog{width:min(490px,calc(100vw - 32px));height:auto;max-height:90vh;border:1px solid #cbd9e6;border-radius:8px;padding:18px;color:#18354c}.ts-overtime-dialog::backdrop{background:#18354c55}.ts-overtime-dialog h3{margin:0 0 12px}.ts-overtime-dialog footer{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.ts-overtime-dialog button{padding:7px 10px;border:1px solid #cbd9e6;border-radius:4px;background:#fff;color:inherit;cursor:pointer}
.timesheets .ts-month-heading{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin:6px 0 8px;font-size:22px;line-height:1.25;color:#18354c}.timesheets .ts-month-heading strong{font-weight:750}.timesheets .ts-month-heading span:last-child{font-weight:600;font-variant-numeric:tabular-nums;font-size:18px}
.timesheets .ts-grid thead th{height:34px;vertical-align:middle;white-space:nowrap;line-height:18px;padding:4px 6px;overflow:hidden}.timesheets .ts-grid thead th[data-column-header]{padding-right:26px}.timesheets .ts-grid thead [data-column-label]{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:18px}.timesheets .ts-grid thead .column-rename{position:absolute;right:7px;top:50%;transform:translateY(-50%);width:18px;height:20px;min-height:20px;padding:0;line-height:20px}
dialog.ts-overtime-dialog{inset:auto!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important;margin:0!important;width:min(490px,calc(100vw - 24px))!important;height:auto!important;min-height:0!important;max-height:calc(100dvh - 24px)!important;overflow:auto!important}

@media(min-width:1100px) and (max-height:1100px){.timesheets .ts-month-heading{margin:3px 0 4px}.timesheets .ts-summary{padding:2px 0}.timesheets .column-lock-tools{margin-top:3px;margin-bottom:3px}.timesheets .ts-save-footer{padding:5px 0}.timesheets [data-ts-status]:empty{display:none}}
@media(min-width:1600px) and (max-height:1000px){.timesheets{display:grid;grid-template-columns:auto 1fr;column-gap:16px}.timesheets>.ts-toolbar,.timesheets>[data-ts-status],.timesheets>.column-lock-tools,.timesheets>.ts-grid-scroll,.timesheets>.ts-save-footer{grid-column:1/-1}.timesheets .ts-month-heading{font-size:20px;margin:2px 0}.timesheets .ts-month-heading span:last-child{font-size:16px}.timesheets .ts-summary{margin:0;border-bottom:0;padding:0}.timesheets .column-lock-tools{margin:2px 0}.timesheets .column-lock-tools button{min-height:24px;padding:1px 7px}.timesheets .ts-save-footer{padding:2px 0}}

/* Calendar shading must survive approval and the shared table header styles. */
.timesheets .ts-grid .ts-holiday,.timesheets .ts-grid .ts-holiday>td{background:#f7dfdd}.timesheets .ts-grid .ts-holiday>th{background:#edc2be;color:#7d3030;box-shadow:inset 3px 0 #b75959}.timesheets .ts-grid .ts-holiday>th small{font-weight:700}.timesheets .ts-grid .ts-holiday input:not([type=checkbox]),.timesheets .ts-grid .ts-holiday select,.timesheets .ts-grid .ts-holiday [data-ts-picker]{background:#fff0ee;border-color:#d5aaa5}.timesheets .ts-grid input:not([type=checkbox]):disabled,.timesheets .ts-grid select:disabled{opacity:1;color:#425b6d;-webkit-text-fill-color:#425b6d}

.ts-save-footer{flex-wrap:wrap}.ts-save-footer [data-ts-dirty-days]{flex-basis:100%;margin:0;padding-left:20px}.ts-save-footer [data-ts-dirty-days] li{margin:5px 0}.ts-save-footer [data-ts-dirty-day]{color:#884800;border-color:#c89549;background:#fff8e8;white-space:normal;text-align:left}.ts-save-footer [data-ts-discard-day]{margin-left:8px}.ts-grid [aria-invalid=true]{outline:2px solid #b23838}.ts-grid [data-ts-row-error]{color:#a12626;white-space:normal;min-width:110px}.ts-tag-control:has([data-ts-row-error]){flex-wrap:wrap}

.ts-grid .ts-hours{font-variant-numeric:tabular-nums;text-align:right;padding-right:10px}.ts-grid .ts-work-class select{width:100%;min-width:0;font-size:11px}.ts-grid th:nth-child(7){width:90px}.ts-grid th:nth-child(8){width:190px}.ts-grid th:nth-child(9){width:92px}.ts-grid th:nth-child(10){width:146px}
.ts-grid [hidden]{display:none!important}.ts-settings-dialog select{width:100%;min-width:0;font:inherit;padding:5px 8px;box-sizing:border-box}.ts-settings-dialog .ts-settings-worker{background:#edf4fa;border-left:3px solid #315b80;padding:8px 10px;line-height:1.5}.ts-settings-worker strong{color:#18354c;font-size:15px}.ts-grid [data-work-state=absence] .ts-time-control{visibility:hidden}.ts-grid .ts-tag-control [data-ts-row-error]{flex-basis:100%;text-align:left}

.ts-grid th[data-column-key=work-reports]{width:115px}.ts-grid th[data-column-key=workplace]{width:125px}.ts-grid th[data-column-key=note]{width:220px;min-width:150px}.ts-grid{min-width:1430px}
.ts-grid th[data-column-key=transport]{width:125px;min-width:0}.ts-grid th[data-column-key=transport-object]{width:185px}.ts-grid th[data-column-key=transport-time]{width:110px}.timesheets .ts-grid{min-width:max(100%,1850px)}.ts-grid .ts-transport>div{display:flex;align-items:center;gap:3px}.ts-grid .ts-transport select{flex:1;min-width:0;width:calc(100% - 23px);font-size:11px}.ts-grid .ts-transport [data-ts-transport]{flex:0 0 21px;width:21px;padding:0}.ts-grid .ts-transport-object button,.ts-grid .ts-transport-time button{display:block;width:100%;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;font-size:11px}.ts-grid .ts-transport-time button{font-variant-numeric:tabular-nums;text-align:center}.ts-transport-summary{font-size:12px;white-space:nowrap}
