.time-shell{display:grid;gap:10px;align-content:start}.time-shell>.panel,.time-shell>.time-summary{margin-bottom:0}.time-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.time-toolbar h2{margin:0 0 3px}.time-toolbar p{margin:0}.time-toolbar .spacer{flex:1}.time-tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);overflow-x:auto}.time-tabs button{border:0;border-bottom:2px solid transparent;background:transparent;padding:8px 11px;white-space:nowrap;color:var(--muted);font-weight:600}.time-tabs button.active{border-color:var(--brand);color:var(--brand)}
.time-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:8px;align-items:end}.time-filters .field{margin:0}.time-gap-toggle{display:flex;align-items:center;gap:7px;min-height:34px;padding:0 8px;white-space:nowrap}.time-summary{display:grid;grid-template-columns:repeat(5,minmax(130px,1fr));gap:8px}.time-summary .card{min-height:78px;padding:12px}.time-summary strong{font-size:18px}.time-positive{color:#197341}.time-negative{color:#b42318}.time-source{white-space:nowrap}.time-source:before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:#79828d;margin-right:6px}.time-source.source-device:before{background:#236b9a}.time-source.source-manual:before{background:#d67600}.time-active:before{background:#198754}.time-audit{margin-top:8px;padding:8px;border-left:3px solid #d8dde3;background:#f7f8fa;font-size:12px}.time-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.time-location{font-weight:600}.time-device-state{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.time-device-state .dot{width:9px;height:9px;border-radius:50%;background:#929aa3}.time-device-state.ready .dot{background:#18864b}.time-table-actions{white-space:nowrap}.time-print-header{display:none}.time-report-switch{display:flex;align-items:center;gap:6px;border-bottom:1px solid var(--line);padding-bottom:8px}.time-report-switch>div{display:flex;gap:10px;align-items:baseline;margin-left:10px}.time-report-switch span{color:var(--muted);font-size:12px}.time-day-table td{vertical-align:top}.time-day-table td>div+div{margin-top:4px}.time-employee-start td{border-top:2px solid #cbd2d9}.time-person{display:flex;align-items:center;gap:8px;min-width:170px}.time-person>span{display:grid;place-items:center;width:28px;height:28px;border:1px solid #ccd2d8;border-radius:50%;font-size:10px;background:#fff}.time-missing{display:inline-grid;place-items:center;width:18px;height:18px;border:1px solid #e16b74;border-radius:50%;color:#c72534;font-weight:700}
.time-shell .table-wrap{height:auto!important;min-height:0;overflow-x:auto}.time-shell .table{height:1px!important;min-height:0!important}.time-shell .table thead,.time-shell .table tbody{height:auto!important}.time-shell .table tr{height:1px!important;min-height:0!important}.time-shell .table th,.time-shell .table td{height:1px!important;min-height:0!important;padding:7px 9px;line-height:1.25}.time-admin-only{display:inline-flex;align-items:center;gap:6px}
.time-clock-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.time-live-evidence{display:flex;gap:14px;align-items:center;flex-wrap:wrap;padding:9px 10px;border:1px solid var(--line);border-radius:6px;background:#f8f9fa}.time-live-evidence>span{padding-left:12px;border-left:1px solid var(--line)}.time-gps summary{cursor:pointer;color:#245f8c;font-weight:600}.time-gps>div{min-width:280px;margin-top:6px;padding:8px;border:1px solid var(--line);background:#fff;line-height:1.65;white-space:normal}.time-gps a{white-space:normal}.time-day-table{min-width:1550px}
@media(max-width:1100px){.time-filters{grid-template-columns:repeat(3,minmax(150px,1fr))}.time-summary{grid-template-columns:repeat(3,minmax(130px,1fr))}.time-settings-grid{grid-template-columns:1fr}}
@media(max-width:720px){.time-filters,.time-summary{grid-template-columns:1fr 1fr}.time-toolbar{align-items:stretch}.time-toolbar .btn{flex:1}.time-table-actions{white-space:normal}.time-clock-actions{width:100%;justify-content:stretch}.time-clock-actions .btn{flex:1}.time-live-evidence{display:grid}.time-live-evidence>span{padding:0;border:0}}
@media print{.topbar,.nav,.time-tabs,.time-filters,.time-toolbar .btn{display:none!important}.time-print-header{display:block}.time-shell{display:block}.time-shell .panel{border:0}.time-shell .table-wrap{overflow:visible}.time-shell table{font-size:10pt}.time-shell .cards{break-inside:avoid}}
.time-source.source-oncall:before{background:#8b3dad}.time-entry-employee-start td{border-top:2px solid #cbd2d9}.time-clock-actions .btn.oncall{border-color:#8b3dad;color:#70298f;background:#faf3fd}.time-day-table{min-width:1280px}.time-oncall-settings{grid-column:1/-1}.time-oncall-form{display:grid;grid-template-columns:150px 150px minmax(220px,1fr) minmax(220px,1fr) auto auto;gap:8px;align-items:end}.time-oncall-form .field{margin:0}
.time-report-preview-modal{width:min(96vw,1500px);height:min(92vh,1000px);max-width:none;padding:0;overflow:hidden;display:grid;grid-template-rows:auto minmax(0,1fr)}.time-report-preview-head{display:flex;align-items:center;gap:16px;padding:12px 14px;border-bottom:1px solid var(--line);background:#fff}.time-report-preview-head>div:first-child{min-width:0}.time-report-preview-head h2{margin:0 0 3px;font-size:18px}.time-report-preview-head p{margin:0;color:var(--muted);font-size:12px}.time-report-preview-head .actions{margin:0 0 0 auto;align-items:center;flex-wrap:wrap}.time-report-zoom{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:6px;overflow:hidden;background:#fff}.time-report-zoom .btn{flex:0 0 auto;min-width:34px;min-height:32px;padding:5px 8px;border:0;border-right:1px solid var(--line);border-radius:0;font-size:17px;line-height:1}.time-report-zoom .btn:last-child{border-right:0}.time-report-zoom .btn:disabled{color:#a5acb4;background:#f5f6f7;cursor:not-allowed}.time-report-zoom .time-report-zoom-value{min-width:62px;font-size:12px;font-variant-numeric:tabular-nums}.time-report-preview-frame{display:block;width:100%;height:100%;border:0;background:#e7e9ec}
@media(max-width:720px){.time-oncall-form{grid-template-columns:1fr}}
@media(max-width:720px){.time-report-preview-modal{width:98vw;height:94vh}.time-report-preview-head{align-items:flex-start;flex-direction:column}.time-report-preview-head .actions{width:100%;margin:0}.time-report-preview-head .actions>.btn{flex:1}.time-report-zoom .btn{flex:0 0 auto}}
.time-category-choices{display:flex;flex-wrap:wrap;gap:6px;max-height:190px;overflow:auto;border:1px solid var(--line);border-radius:6px;padding:8px;background:#fff}
.time-category-choice,.time-category-badge{display:inline-flex;align-items:center;gap:5px;border:1px solid transparent;border-radius:4px;padding:5px 8px;font-size:11px;font-weight:700;line-height:1.2;text-transform:uppercase}
.time-category-choice{cursor:pointer}
.time-category-choice[aria-pressed="true"]{outline:3px solid #303a49;outline-offset:2px}
.time-category-choice .planner-category-icon,.time-category-badge .planner-category-icon{display:inline-flex;width:15px;height:15px;align-items:center;justify-content:center}
.time-category-choice .planner-category-icon svg,.time-category-badge .planner-category-icon svg{width:15px;height:15px}
.time-report-absence{display:inline-flex;align-items:center;gap:5px;max-width:100%;padding:3px 7px;border:1px solid #dfe4ea;border-left:3px solid var(--time-category-color,#718096);border-radius:4px;background:#f8f9fb;color:#26313d;font-size:11px;font-weight:600;line-height:1.2;white-space:nowrap}
.time-report-absence .planner-category-icon{display:inline-flex;align-items:center;justify-content:center;flex:none;width:13px;height:13px;color:var(--time-category-color,#718096)}
.time-report-absence .planner-category-icon svg{display:block;width:13px;height:13px}
.time-day-table td{padding-top:6px;padding-bottom:6px;vertical-align:middle}
.time-absence-row{background:#fbfcfe}
.time-absence-row td{vertical-align:middle}
.time-absence-row td small{display:block;margin-top:3px;color:#65707c;font-size:10px}
#timeAbsenceModal .modalbox{width:min(1160px,calc(100vw - 32px))}
.time-shell .time-bookings-wrap{max-height:calc(100vh - 240px);overflow:auto!important;scrollbar-gutter:stable}
.time-bookings-wrap .table thead th{position:sticky;top:0;z-index:2;background:#f4f6f7;box-shadow:0 1px 0 var(--line);white-space:nowrap}
.time-shell .time-day-report-wrap{max-height:calc(100vh - 240px);overflow:auto!important;scrollbar-gutter:stable}
.time-day-report-wrap .time-day-table thead th{position:sticky;top:0;z-index:2;background:#f4f6f7;box-shadow:0 1px 0 var(--line);white-space:nowrap}
.time-sort-heading{display:grid;grid-template-columns:minmax(0,1fr) 13px;align-items:center;gap:2px;white-space:normal}.time-sort-controls{display:inline-flex;flex:none;flex-direction:column;gap:0}.time-sort-control{display:inline-grid;place-items:center;width:13px;height:11px;padding:0;border:0;border-radius:2px;background:transparent;color:#7a838d;font:700 9px/1 Arial,sans-serif;cursor:pointer}.time-sort-control:hover{background:#fff;color:#27313d}.time-sort-control.active{background:#fff2ed;color:var(--brand)}.time-sort-control:focus-visible{outline:1px solid var(--brand);outline-offset:0}
.time-planner-project{display:block;padding-left:5px;border-left:2px solid #2f80b7;overflow-wrap:anywhere}.time-planner-project+.time-planner-project{margin-top:4px}.time-planner-project b,.time-planner-project small{display:block}.time-planner-project small{margin-top:1px;color:var(--muted);font-size:9px}
.time-shell .time-day-report-wrap{overflow-x:hidden!important}.time-day-report-wrap .time-day-table{width:100%;min-width:0!important;table-layout:fixed;font-size:11px}.time-day-report-wrap .time-day-table thead th{white-space:normal;font-size:9px;padding:5px 3px}.time-day-report-wrap .time-day-table td{padding:5px 4px;overflow-wrap:anywhere}.time-day-report-wrap .time-day-table .time-person{min-width:0;align-items:flex-start}.time-day-report-wrap .time-day-table .time-report-absence{white-space:normal}.time-day-table th:nth-child(1),.time-day-table td:nth-child(1){width:10%}.time-day-table th:nth-child(2),.time-day-table td:nth-child(2){width:5%}.time-day-table th:nth-child(3),.time-day-table td:nth-child(3){width:7%}.time-day-table th:nth-child(4),.time-day-table td:nth-child(4){width:14%}.time-day-table th:nth-child(5),.time-day-table td:nth-child(5),.time-day-table th:nth-child(6),.time-day-table td:nth-child(6){width:5.5%}.time-day-table th:nth-child(7),.time-day-table td:nth-child(7),.time-day-table th:nth-child(8),.time-day-table td:nth-child(8){width:4.5%}.time-day-table th:nth-child(9),.time-day-table td:nth-child(9){width:6%}.time-day-table th:nth-child(10),.time-day-table td:nth-child(10){width:7%}.time-day-table th:nth-child(11),.time-day-table td:nth-child(11),.time-day-table th:nth-child(12),.time-day-table td:nth-child(12),.time-day-table th:nth-child(13),.time-day-table td:nth-child(13),.time-day-table th:nth-child(14),.time-day-table td:nth-child(14){width:5%}.time-day-table th:nth-child(15),.time-day-table td:nth-child(15){width:10.5%}.time-overview-report-wrap{overflow-x:hidden!important}.time-overview-report-table{width:100%;min-width:0!important;table-layout:fixed;font-size:11px}.time-overview-report-table th,.time-overview-report-table td{white-space:normal;overflow-wrap:anywhere}.time-bookings-wrap{overflow-x:hidden!important}.time-bookings-wrap .table{width:100%;min-width:0!important;table-layout:fixed}.time-bookings-wrap .table th,.time-bookings-wrap .table td{white-space:normal;overflow-wrap:anywhere}
@media(max-width:720px){.time-shell .time-bookings-wrap{max-height:65vh}}
@media print{.time-shell .time-bookings-wrap{max-height:none;overflow:visible!important}.time-bookings-wrap .table thead th{position:static;box-shadow:none}}
@media(max-width:720px){.time-shell .time-day-report-wrap{max-height:65vh}}
@media(max-width:1200px){.time-day-report-wrap .time-day-table .time-person>span{display:none}}
@media(max-width:720px){.time-shell .time-day-report-wrap{max-height:none;overflow:visible!important}.time-day-report-wrap .time-day-table{display:block;width:100%;font-size:12px}.time-day-report-wrap .time-day-table thead{display:none}.time-day-report-wrap .time-day-table tbody{display:grid;gap:8px}.time-day-report-wrap .time-day-table tr{display:grid!important;width:100%;height:auto!important;border:1px solid var(--line);border-radius:6px;background:#fff;overflow:hidden}.time-day-report-wrap .time-day-table td{display:grid!important;grid-template-columns:112px minmax(0,1fr);gap:8px;width:100%!important;padding:6px 8px;border-top:1px solid #edf0f2;line-height:1.3}.time-day-report-wrap .time-day-table td:first-child{border-top:0}.time-day-report-wrap .time-day-table td:before{content:attr(data-label);color:var(--muted);font-size:10px;font-weight:700;text-transform:uppercase}.time-day-report-wrap .time-day-table .time-person{display:block}.time-day-report-wrap .time-day-table .time-person b{display:block}}
@media print{.time-shell .time-day-report-wrap{max-height:none;overflow:visible!important}.time-day-report-wrap .time-day-table thead th{position:static;box-shadow:none}.time-sort-controls{display:none!important}}

/* Buchungen und Berichte verwenden den Seiten-Scrollbalken; nur breite Tabellen scrollen quer. */
.time-shell .time-bookings-wrap,.time-shell .time-day-report-wrap{
  max-height:none;
  overflow-x:auto!important;
  overflow-y:visible!important;
  scrollbar-gutter:auto;
}
@media(min-width:721px){
  .time-bookings-wrap .table{min-width:1100px!important;table-layout:auto!important}
  .time-day-report-wrap .time-day-table{min-width:1400px!important;table-layout:auto!important}
  .time-day-report-wrap .time-day-table th,.time-day-report-wrap .time-day-table td{width:auto!important}
  .time-day-report-wrap .time-day-table th:first-child,.time-day-report-wrap .time-day-table td:first-child{min-width:140px}
  .time-day-report-wrap .time-day-table td{overflow-wrap:normal}
}
@media(min-width:1600px){
  .time-shell .time-day-report-wrap{overflow:visible!important}
  .time-day-report-wrap .time-day-table{min-width:0!important;table-layout:fixed!important}
}
@media print{
  .time-shell .time-bookings-wrap,.time-shell .time-day-report-wrap{overflow:visible!important}
}

.time-report-summary{grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
.time-report-summary .card{min-width:0;min-height:64px;padding:10px 12px}
.time-report-summary .card small{display:block;margin-bottom:4px;line-height:1.2}
.time-report-summary .card strong{font-size:16px;line-height:1.2;overflow-wrap:anywhere}
.time-report-heading{display:flex;align-items:baseline;gap:12px;min-width:0;flex-wrap:wrap}
.time-report-heading h3{margin:0}
.time-report-employee{color:var(--muted);font-size:13px;font-weight:600}
@media(max-width:1450px){.time-report-summary{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:800px){.time-report-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.time-report-summary{grid-template-columns:1fr 1fr}.time-report-summary .card strong{font-size:14px}}
@media(min-width:721px) and (max-width:1599px){.time-day-report-wrap .time-single-employee{min-width:1150px!important}}


/* Employee suggestions must extend beyond the filter card, above booking rows. */
.time-shell > .panel:has(> .time-filters) { overflow:visible; position:relative; z-index:10; }
.time-filters .field:has(#timeFilterSearch) { position:relative; min-width:0; }
.time-employee-suggestions { margin-top:4px; }
