.ts-view-switch{display:inline-flex;align-items:center;gap:3px;padding:3px;border:1px solid #ded9f4;border-radius:10px;background:#f5f3fb}
.timesheet-toolbar-primary>.ts-view-switch button{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 11px;border:0!important;border-radius:7px!important;background:transparent!important;color:#766d8f!important;font-size:11px;font-weight:700;white-space:nowrap;cursor:pointer}
.timesheet-toolbar-primary>.ts-view-switch button.is-active{background:#fff!important;color:#654bd4!important;box-shadow:0 1px 4px rgba(50,38,90,.12)}
.timesheet-matrix{display:none}.timesheet-panel.ts-matrix-mode>.timesheet-scroll{display:none}.timesheet-panel.ts-matrix-mode>.timesheet-matrix{display:block}.timesheet-panel.ts-matrix-mode>.ts-pagination{display:none!important}.timesheet-panel.ts-matrix-mode>.ts-no-matches{display:none!important}.timesheet-panel.ts-matrix-mode>.ts-group-tools [data-expand],.timesheet-panel.ts-matrix-mode>.ts-group-tools [data-collapse]{display:none!important}
.tsm-scroll{width:100%;max-width:100%;overflow:auto;border:1px solid #e2e5ed;border-radius:12px;background:#fff;overscroll-behavior-x:contain}
.tsm-table{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0;font-size:10px}
.tsm-table th,.tsm-table td{box-sizing:border-box;height:54px;padding:0;border-right:1px solid #edf0f5;border-bottom:1px solid #edf0f5;text-align:center;background:#fff}
.tsm-table thead th{position:sticky;top:0;z-index:4;height:48px;min-width:58px;padding:5px 4px;background:#f7f8fb;color:#5f697b;font-weight:700}
.tsm-table thead th>b,.tsm-table thead th>small{display:block}.tsm-table thead th>b{font-size:12px}.tsm-table thead th>small{margin-top:2px;color:#9aa2b0;font-size:8px;font-weight:600}
.tsm-table .tsm-person-head,.tsm-table .tsm-person{position:sticky;left:0;z-index:5;width:210px;min-width:210px;max-width:210px;padding:0 14px;text-align:left;border-right:1px solid #dfe3ec;box-shadow:6px 0 12px -12px rgba(36,45,64,.45)}
.tsm-table .tsm-person-head{z-index:7;padding:0 14px;background:#f1effa;color:#554674}
.tsm-table .tsm-person{background:#fff}.tsm-table .tsm-person b{display:block;overflow:hidden;color:#2d3748;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.tsm-table .tsm-person small{display:block;overflow:hidden;margin-top:3px;color:#8a94a5;font-size:9px;font-weight:400;text-overflow:ellipsis;white-space:nowrap}
.tsm-table tr:hover .tsm-person{background:#faf9fd}.tsm-table tr:hover td{background:#fcfcfe}.tsm-table th.is-weekend,.tsm-table td.is-weekend{background:#faf8fd}
.tsm-cell-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:100%;height:100%;min-width:57px;padding:2px;border:0;background:transparent;color:#435063;font:inherit;cursor:default}
.tsm-cell-button:not([aria-disabled=true]){cursor:pointer}.tsm-cell-button:not([aria-disabled=true]):hover{box-shadow:inset 0 0 0 2px #765adb}
.tsm-cell-button span{display:block;line-height:1.15;font-size:9px;font-weight:700}.tsm-cell-button strong{display:block;line-height:1;font-size:9px;font-weight:800;letter-spacing:.02em}
.tsm-cell-button.tsm-status-normal,.tsm-cell-button.tsm-status-holiday_work,.tsm-cell-button.tsm-status-rest_day_work,.tsm-cell-button.tsm-status-leave_work{background:#eef9f4;color:#187a58}.tsm-cell-button.tsm-status-late,.tsm-cell-button.tsm-status-early{background:#fff6e8;color:#a66618}.tsm-cell-button.tsm-status-missing,.tsm-cell-button.tsm-status-absent{background:#fff0f1;color:#b64050}.tsm-cell-button.tsm-status-leave,.tsm-cell-button.tsm-status-hourly_leave{background:#f0edff;color:#6650be}.tsm-cell-button.tsm-status-off,.tsm-cell-button.tsm-status-planned,.tsm-cell-button.tsm-status-unassigned,.tsm-cell-button.tsm-status-holiday{background:#f5f6f8;color:#737e8e}
.tsm-empty-mark{color:#c8ced8}.tsm-total-head{min-width:74px!important;padding:0 8px!important;background:#f1effa!important;color:#554674!important}.tsm-total{min-width:74px;padding:0 8px!important;background:#fbfbfd!important;color:#4c576a;white-space:nowrap}.tsm-total b{font-size:9px}
.tsm-legend{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:10px;color:#6d788a;font-size:9px}.tsm-legend span{display:inline-flex;align-items:center;gap:5px}.tsm-legend i{width:10px;height:10px;border-radius:3px;background:#eef9f4}.tsm-legend i.warning{background:#fff6e8}.tsm-legend i.danger{background:#fff0f1}.tsm-legend i.leave{background:#f0edff}.tsm-legend i.off{background:#f5f6f8}.tsm-legend small{margin-left:auto;color:#929baa}.tsm-no-data{padding:35px;text-align:center}
@media(max-width:800px){.timesheet-toolbar-primary>.ts-view-switch{grid-column:1/-1;width:100%}.timesheet-toolbar-primary>.ts-view-switch button{flex:1;justify-content:center;height:40px}.tsm-table .tsm-person-head,.tsm-table .tsm-person{width:160px;min-width:160px;max-width:160px}.tsm-table thead th{min-width:54px}.tsm-cell-button{min-width:53px}.tsm-legend small{width:100%;margin-left:0}}
@media print{
 @page{size:landscape;margin:8mm}
 .timesheet-panel.ts-matrix-mode .timesheet-toolbar,.timesheet-panel.ts-matrix-mode .ts-group-tools,.timesheet-panel.ts-matrix-mode .ts-pagination,.timesheet-panel.ts-matrix-mode .timesheet-scroll,.timesheet-panel.ts-matrix-mode .tsm-legend{display:none!important}
 .timesheet-panel.ts-matrix-mode>.timesheet-matrix{display:block!important}.timesheet-panel.ts-matrix-mode .tsm-scroll{overflow:visible;border:0}.timesheet-panel.ts-matrix-mode .tsm-table{width:100%;min-width:0;table-layout:fixed;font-size:6px}
 .timesheet-panel.ts-matrix-mode .tsm-table th,.timesheet-panel.ts-matrix-mode .tsm-table td{height:26px;border:1px solid #ddd}.timesheet-panel.ts-matrix-mode .tsm-table thead th{position:static;min-width:0;height:24px;padding:1px;font-size:6px}.timesheet-panel.ts-matrix-mode .tsm-table thead th>b{font-size:7px}.timesheet-panel.ts-matrix-mode .tsm-table thead th>small{font-size:5px}
 .timesheet-panel.ts-matrix-mode .tsm-table .tsm-person-head,.timesheet-panel.ts-matrix-mode .tsm-table .tsm-person{position:static;width:74px;min-width:74px;max-width:74px;padding:2px 3px;box-shadow:none}.timesheet-panel.ts-matrix-mode .tsm-table .tsm-person b{font-size:6px;white-space:normal}.timesheet-panel.ts-matrix-mode .tsm-table .tsm-person small{font-size:5px;white-space:normal}.timesheet-panel.ts-matrix-mode .tsm-cell-button{min-width:0;padding:0}.timesheet-panel.ts-matrix-mode .tsm-cell-button span,.timesheet-panel.ts-matrix-mode .tsm-cell-button strong{font-size:5.5px}.timesheet-panel.ts-matrix-mode .tsm-total-head,.timesheet-panel.ts-matrix-mode .tsm-total{min-width:0!important;width:34px;padding:1px!important}.timesheet-panel.ts-matrix-mode .tsm-total b{font-size:5.5px}
}
