.navigation{flex:1;min-height:0}.theme-toggle{display:flex;align-items:center;gap:.72rem;width:100%;margin-top:.75rem;padding:.72rem .8rem;border:1px solid #ffffff1c;border-radius:10px;color:#fff;background:#ffffff0a;text-align:left;cursor:pointer}.theme-toggle:hover{background:#ffffff14}.theme-toggle>span:first-child{display:grid;place-items:center;width:1.55rem;font-size:1.15rem}.sidebar-collapsed .theme-toggle{justify-content:center;padding-inline:.55rem}.sidebar-collapsed .theme-toggle .nav-text{display:none}

#view-prices .table-card{overflow:hidden}#view-prices table{width:100%;table-layout:fixed;font-size:.82rem}#view-prices th,#view-prices td{padding:.7rem .45rem;overflow:hidden;text-overflow:ellipsis}#view-prices th:nth-child(1){width:10%}#view-prices th:nth-child(2){width:17%}#view-prices th:nth-child(3),#view-prices th:nth-child(4),#view-prices th:nth-child(5){width:7%}#view-prices th:nth-child(6),#view-prices th:nth-child(7),#view-prices th:nth-child(8){width:5.5%}#view-prices th:nth-child(9){width:13%}#view-prices th:nth-child(10){width:12%}#view-prices th:nth-child(11){width:44px}#view-prices td:nth-child(n+3):nth-child(-n+8),#view-prices th:nth-child(n+3):nth-child(-n+8){text-align:center}

.order-work-row{grid-template-columns:minmax(0,1fr) 125px 130px 42px}.order-work-row output{align-self:center;text-align:right;color:var(--muted);font-weight:800;white-space:nowrap}.order-toolbox-position{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:.75rem;padding:.75rem 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-weight:800}.order-toolbox-position small{display:block;color:var(--muted);font-weight:600}.clickable-row{cursor:pointer}.clickable-row:hover td{background:#6600000a}:root[data-theme="DARK"] .clickable-row:hover td{background:#ffffff08}:root[data-theme="DARK"] .order-toolbox-position{border-color:#514a48}

.selected-customer-fields{grid-column:1/-1;display:grid;grid-template-columns:1.4fr 1fr 1fr auto;align-items:end;gap:.75rem;padding:1rem;border:1px solid var(--line);border-radius:12px;background:#faf8f7}.selected-customer-fields .secondary-button{height:3rem;white-space:nowrap}#newOrderCustomerFields{grid-template-columns:1.4fr 1fr 1fr}.order-discount-field{min-width:145px}.order-discount-field input{width:120px!important;height:2.55rem!important}.month-filter{display:grid;gap:.4rem;min-width:190px;font-size:.82rem;font-weight:750}.month-filter input{height:2.7rem;padding:0 .8rem;border:1px solid var(--line);border-radius:10px;background:#fff}#workshopReviewDialog{width:min(900px,calc(100% - 2rem));max-height:calc(100vh - 2rem);overflow:hidden}#workshopReviewDialog>.dialog-head{padding:1.4rem 1.5rem .9rem;border-bottom:1px solid var(--line)}.workshop-review{display:grid;gap:1rem;max-height:calc(100vh - 210px);overflow-y:auto;padding:1rem 1.5rem}.review-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem}.review-summary>div{display:grid;align-content:start;gap:.3rem;min-width:0;padding:.8rem;border:1px solid var(--line);border-radius:10px;background:#faf8f7}.review-summary span{overflow-wrap:anywhere}.copy-invoice{width:max-content;max-width:100%;padding:0;border:0;color:var(--red);background:transparent;font-size:1rem;font-weight:850;cursor:pointer}.copy-invoice:hover{text-decoration:underline;text-underline-offset:3px}.review-vehicle{padding:1rem;border:1px solid var(--line);border-radius:12px;background:#fff}.review-vehicle h3{margin:0 0 .7rem}.review-vehicle>div{display:flex;justify-content:space-between;gap:1rem;padding:.5rem 0;border-top:1px solid var(--line)}.review-totals{display:grid;gap:.15rem;margin-left:auto;width:min(100%,360px);padding:1rem;border:1px solid var(--line);border-radius:12px;background:#faf8f7}.review-totals>div{display:flex;justify-content:space-between;gap:1rem;padding:.45rem 0}.review-grand-total{margin-top:.25rem;border-top:1px solid var(--line);color:var(--red);font-size:1.16rem}#workshopReviewDialog>.form-error{margin:0;padding:0 1.5rem}#workshopReviewDialog>.dialog-actions{margin:0;padding:1rem 1.5rem 1.4rem;border-top:1px solid var(--line);background:#fff}

.accounting-actions{align-items:end}.accounting-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-bottom:1rem}.accounting-summary article{display:grid;gap:.35rem;padding:1rem 1.15rem;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 8px 24px #28151208}.accounting-summary span{color:var(--muted);font-size:.78rem;font-weight:800;letter-spacing:.07em;text-transform:uppercase}.accounting-summary strong{font-size:1.3rem}.accounting-summary .accounting-total{border-color:#66000044;background:#f7eeee}.accounting-summary .accounting-total strong{font-size:1.55rem}

:root[data-theme="DARK"]{--ink:#f1eeee;--muted:#b9b0ad;--line:#514a48;--paper:#171616;--white:#242222;--green:#70c99a;--amber:#e5ad4a;--shadow:0 18px 45px #0006;color-scheme:dark;background:#171616}:root[data-theme="DARK"] body,:root[data-theme="DARK"] .workspace{background:#171616;color:var(--ink)}:root[data-theme="DARK"] .topbar{border-color:#403a38;background:#211f1fe8}:root[data-theme="DARK"] .table-card,:root[data-theme="DARK"] .module-card,:root[data-theme="DARK"] .order-customer-grid,:root[data-theme="DARK"] .order-vehicle-card,:root[data-theme="DARK"] .review-vehicle,:root[data-theme="DARK"] .dialog,:root[data-theme="DARK"] .accounting-summary article{color:var(--ink);background:#242222}:root[data-theme="DARK"] th,:root[data-theme="DARK"] .selected-customer-fields,:root[data-theme="DARK"] .review-summary>div,:root[data-theme="DARK"] .review-totals{color:#c9bfbc;background:#2c2928}:root[data-theme="DARK"] td{border-color:#433d3b}:root[data-theme="DARK"] input,:root[data-theme="DARK"] select,:root[data-theme="DARK"] textarea,:root[data-theme="DARK"] .inline-select{color:#f3eeee;border-color:#5a514e;background:#302d2c}:root[data-theme="DARK"] .secondary-button,:root[data-theme="DARK"] .icon-action,:root[data-theme="DARK"] .row-actions button{color:#f2ecea;border-color:#5a514e;background:#302d2c}:root[data-theme="DARK"] .secondary-button:hover,:root[data-theme="DARK"] .icon-action:hover,:root[data-theme="DARK"] .row-actions button:hover{color:#fff;border-color:#914141;background:#3a3231}:root[data-theme="DARK"] .order-customer-info,:root[data-theme="DARK"] .order-summary{color:#c9bfbc;background:#2c2928}:root[data-theme="DARK"] .order-summary strong{color:#fff}:root[data-theme="DARK"] .order-toolbox-line,:root[data-theme="DARK"] .order-result{color:#a8dfbd;border-color:#315c43;background:#203b2b}:root[data-theme="DARK"] .dialog label,:root[data-theme="DARK"] .login-form label{color:#ded6d3}:root[data-theme="DARK"] .login-panel{background:#171616}:root[data-theme="DARK"] .permission-table td:first-child{background:#242222}:root[data-theme="DARK"] .permission-table thead th:first-child{background:#2c2928}:root[data-theme="DARK"] .prefix-field,:root[data-theme="DARK"] .suffix-field{border-color:#5a514e;background:#302d2c}:root[data-theme="DARK"] .prefix-field>span,:root[data-theme="DARK"] .suffix-field>span{color:#c9bfbc;background:#3b3736}:root[data-theme="DARK"] #workshopReviewDialog>.dialog-actions{background:#242222}:root[data-theme="DARK"] .accounting-summary .accounting-total{border-color:#914141;background:#352827}

:root[data-theme="DARK"] .dashboard-panel,:root[data-theme="DARK"] .dashboard-orders>article{color:#f1eeee;border-color:#514a48;background:#242222}:root[data-theme="DARK"] .dashboard-panel h2,:root[data-theme="DARK"] .employee-status-grid strong,:root[data-theme="DARK"] .dashboard-orders strong{color:#fff}:root[data-theme="DARK"] .employee-status-grid article{border-color:#433d3b}:root[data-theme="DARK"] .employee-status-grid span,:root[data-theme="DARK"] .dashboard-orders span,:root[data-theme="DARK"] .empty-hint{color:#b9b0ad}:root[data-theme="DARK"] .dashboard-orders button,:root[data-theme="DARK"] .dashboard-orders .dashboard-order-open{color:#f1eeee;border-color:transparent;background:transparent}:root[data-theme="DARK"] .copy-phone,:root[data-theme="DARK"] .location-link{color:#e58f8f}:root[data-theme="DARK"] .account-trigger{color:#f1eeee}

:root[data-theme="DARK"] .panel-form{color:#f1eeee;border-color:#514a48;background:#242222}:root[data-theme="DARK"] .panel-form label,:root[data-theme="DARK"] .panel-form legend{color:#ded6d3}:root[data-theme="DARK"] .panel-form input,:root[data-theme="DARK"] .panel-form select,:root[data-theme="DARK"] .panel-form textarea{color:#f3eeee;border-color:#5a514e;background:#302d2c}:root[data-theme="DARK"] .panel-form input::placeholder,:root[data-theme="DARK"] .panel-form textarea::placeholder{color:#958b88}

.order-route-fields{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.order-voucher-box{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;padding:1rem;border:1px solid #d7b35c;border-radius:12px;background:#fff7df}.order-voucher-box label{display:flex;align-items:center;gap:.5rem}.order-voucher-box input{width:auto;height:auto}.order-voucher-box select{width:auto;min-width:220px}.dashboard-wide{grid-column:1/-1}.order-detail-dialog{width:min(920px,calc(100% - 2rem));max-height:calc(100vh - 2rem);padding:0;overflow:hidden}.order-detail-dialog>.dialog-head{padding:1.2rem 1.5rem;border-bottom:1px solid var(--line)}.order-detail-dialog>.workshop-review{max-height:calc(100vh - 190px);overflow:auto}.order-detail-dialog>.dialog-actions{margin:0;padding:1rem 1.5rem;border-top:1px solid var(--line);background:#fff}
:root[data-theme="DARK"] .service-choice label{color:#ded6d3;border-color:#5a514e;background:#302d2c}:root[data-theme="DARK"] .service-choice label:has(input:checked){color:#ffb0b0;border-color:#a64b4b;background:#4a2929}:root[data-theme="DARK"] #towDetailDialog .detail-grid>div{color:#f1eeee;border-color:#514a48;background:#2c2928}:root[data-theme="DARK"] #towDetailDialog .detail-grid strong{color:#fff}:root[data-theme="DARK"] #towDetailDialog .dialog-actions,:root[data-theme="DARK"] .order-detail-dialog>.dialog-actions{border-color:#514a48;background:#242222}:root[data-theme="DARK"] .order-voucher-box{color:#f2e6bd;border-color:#7b6936;background:#39321f}:root[data-theme="DARK"] .order-voucher-box label{color:#fff}:root[data-theme="DARK"] .order-voucher-box input[type="checkbox"]{accent-color:#b64b4b}
.role-choice{grid-column:1/-1;padding:1rem;border:1px solid var(--line);border-radius:12px}.role-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem 1rem}.role-choice-grid .check-label{display:flex;align-items:center;gap:.55rem}.danger-button{min-height:2.65rem;padding:.65rem 1rem;border:1px solid #a33;border-radius:10px;color:#fff;background:#7d1111;font-weight:800;cursor:pointer}.danger-button:hover{background:#991919}:root[data-theme="DARK"] .role-choice{border-color:#5a514e}:root[data-theme="DARK"] .role-choice legend,:root[data-theme="DARK"] .role-choice label{color:#f1eeee}
@media(max-width:700px){.order-route-fields{grid-template-columns:1fr}}

@media(min-width:1100px){#view-workshop-orders th:nth-child(1){width:11%}#view-workshop-orders th:nth-child(2){width:15%}#view-workshop-orders th:nth-child(3){width:23%}#view-workshop-orders th:nth-child(4){width:9%}#view-workshop-orders th:nth-child(5){width:20%}#view-workshop-orders th:nth-child(6){width:10%}#view-workshop-orders th:nth-child(7){width:12%}}@media(max-width:900px){.selected-customer-fields,#newOrderCustomerFields{grid-template-columns:1fr 1fr}.review-summary{grid-template-columns:1fr 1fr}.accounting-summary{grid-template-columns:1fr}.accounting-actions{width:100%;justify-content:space-between}}@media(max-width:600px){.selected-customer-fields,#newOrderCustomerFields,.review-summary{grid-template-columns:1fr}.order-summary{align-items:stretch;flex-direction:column}.order-discount-field input{width:100%!important}#view-prices .table-card{overflow:auto}#view-prices table{min-width:1050px}.workshop-review{max-height:calc(100vh - 270px);padding-inline:1rem}#workshopReviewDialog>.dialog-head,#workshopReviewDialog>.dialog-actions{padding-inline:1rem}}

/* Logos stets vollständig und proportional anzeigen. */
.global-loader img,.login-loading img{width:210px;height:162px;padding:6px;object-fit:contain;object-position:center;border-radius:24px;background:#050505}.logo-frame{width:180px;height:140px;border-radius:22px}.logo-frame img{display:block;width:100%;height:100%;padding:5px;object-fit:contain;object-position:center}.sidebar-brand img{width:64px;height:50px;padding:2px;object-fit:contain;object-position:center;border-radius:9px;background:#050505}.sidebar-collapsed .sidebar-brand img{width:52px;height:42px;object-fit:contain}

/* Klar getrennte, nicht bearbeitbare Telefon- und U-Mail-Bestandteile. */
.prefix-field,.suffix-field{display:flex;align-items:stretch;width:100%;overflow:hidden;border:1px solid #d7d0ce;border-radius:12px;background:#fff;transition:border-color .15s,box-shadow .15s}.prefix-field:focus-within,.suffix-field:focus-within{border-color:var(--red);box-shadow:0 0 0 3px #6600001a}.prefix-field>span,.suffix-field>span{display:flex;align-items:center;justify-content:center;padding:0 .9rem;color:var(--red);background:#f3e8e8;font-weight:850;letter-spacing:.025em;white-space:nowrap;user-select:none}.prefix-field>span{border-right:1px solid #dccaca}.suffix-field>span{border-left:1px solid #dccaca}.prefix-field input,.suffix-field input{min-width:0;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important}

/* Benutzermenü bleibt in beiden Farbschemata eindeutig lesbar. */
.account-trigger:hover,.account-menu:focus-within .account-trigger{background:#6600000d}.account-popover button{color:var(--ink)}
:root[data-theme="DARK"] .account-trigger:hover,:root[data-theme="DARK"] .account-menu:focus-within .account-trigger{background:#3a3231}:root[data-theme="DARK"] .account-popover{color:#f3eeee;border-color:#5a514e;background:#2c2928;box-shadow:0 18px 45px #0009}:root[data-theme="DARK"] .account-popover button{color:#f3eeee;background:transparent}:root[data-theme="DARK"] .account-popover button:hover,:root[data-theme="DARK"] .account-popover button:focus-visible{color:#fff;background:#4a2929}:root[data-theme="DARK"] .prefix-field,:root[data-theme="DARK"] .suffix-field{border-color:#5a514e;background:#302d2c}:root[data-theme="DARK"] .prefix-field:focus-within,:root[data-theme="DARK"] .suffix-field:focus-within{border-color:#a64b4b;box-shadow:0 0 0 3px #a64b4b33}:root[data-theme="DARK"] .prefix-field>span,:root[data-theme="DARK"] .suffix-field>span{color:#ffd6d6;border-color:#704545;background:#4a2929}

@media(min-width:1100px){#view-vehicles .table-card:last-child th:nth-child(1){width:32%}#view-vehicles .table-card:last-child th:nth-child(2){width:22%}#view-vehicles .table-card:last-child th:nth-child(3){width:34%}#view-vehicles .table-card:last-child th:nth-child(4){width:12%}}

/* Neue Einträge sind durchgängig grün hervorgehoben. */
.icon-action.add-action,.primary-button.add-action{color:#fff;border-color:#1f7a49;background:#1f7a49;box-shadow:0 8px 18px #1f7a4930}.icon-action.add-action:hover,.primary-button.add-action:hover{color:#fff;border-color:#175e38;background:#175e38}

/* Auszahlungsprüfung mit kopierbarer Kontonummer. */
.payout-summary{display:grid;grid-template-columns:1fr 1.5fr;gap:.75rem}.payout-summary>div{display:grid;gap:.35rem;padding:1rem;border:1px solid var(--line);border-radius:12px;background:#faf8f7}.payout-summary span{color:var(--muted);font-size:.78rem;font-weight:800;text-transform:uppercase}.payout-summary strong{font-size:1.35rem}.copy-value{padding:0;border:0;color:var(--red);background:transparent;text-align:left;font-weight:850;cursor:pointer;overflow-wrap:anywhere}.copy-value:not(:disabled):hover{text-decoration:underline;text-underline-offset:3px}.copy-value:disabled{color:var(--muted);cursor:not-allowed}

/* Durchgehend lesbare Beschriftungen im Dunkelmodus. */
:root[data-theme="DARK"] .order-customer-grid label,:root[data-theme="DARK"] .order-vehicle-card label,:root[data-theme="DARK"] .order-work-list>strong,:root[data-theme="DARK"] .order-block-head h2,:root[data-theme="DARK"] .month-filter,:root[data-theme="DARK"] .dialog label,:root[data-theme="DARK"] .dialog legend,:root[data-theme="DARK"] .panel-form label,:root[data-theme="DARK"] .panel-form legend,:root[data-theme="DARK"] .detail-grid span,:root[data-theme="DARK"] .review-vehicle span{color:#f3eeee}:root[data-theme="DARK"] .order-work-row output,:root[data-theme="DARK"] .hint{color:#c9bfbc}:root[data-theme="DARK"] .payout-summary>div{border-color:#514a48;background:#2c2928}:root[data-theme="DARK"] .payout-summary strong,:root[data-theme="DARK"] .copy-value{color:#fff}:root[data-theme="DARK"] .payout-summary span{color:#c9bfbc}

@media(max-width:600px){.payout-summary{grid-template-columns:1fr}}

.period-filters{display:flex;align-items:end;gap:.65rem;flex-wrap:wrap}.period-filters label{display:grid;gap:.35rem;color:var(--muted);font-size:.78rem;font-weight:800}.period-filters input,.period-filters select{min-width:155px;height:2.7rem;padding:0 .7rem;border:1px solid var(--line);border-radius:10px;background:var(--white);color:var(--ink)}
.bulletin-list,.dashboard-bulletin{display:grid;gap:.8rem}.bulletin-card,.dashboard-bulletin article{padding:1rem 1.1rem;border:1px solid var(--line);border-radius:12px;background:var(--white)}.bulletin-card.unread{border-left:4px solid var(--red)}.bulletin-card h3,.bulletin-card p,.dashboard-bulletin p{margin:.25rem 0}.bulletin-card small{color:var(--muted)}.unread-mark,.nav-unread{display:inline-grid;place-items:center;min-width:1.25rem;height:1.25rem;border-radius:999px;background:#a40000;color:#fff;font-size:.75rem;font-weight:900}.nav-unread{margin-left:auto}.dashboard-bulletin{margin-bottom:1rem}.dashboard-bulletin article{border-color:#a40000;background:#fff5f5}.dashboard-bulletin strong{color:#850000}
.status-chip.progress{color:#403b39;background:#e8e4e2}.payout-dialog-content{display:grid;gap:1rem}:root[data-theme="DARK"] .status-chip.progress{color:#ddd6d3;background:#3a3634}:root[data-theme="DARK"] #towDetailActions .primary-button{border-color:#2d8a58;background:#17643b;color:#fff}:root[data-theme="DARK"] .dashboard-bulletin article{border-color:#a64b4b;background:#382322}:root[data-theme="DARK"] .dashboard-bulletin strong{color:#ffb0b0}
#payrollModelsTable input{width:130px}.payout-dialog-content .dialog-head{margin-bottom:0}
.payroll-settings-dialog{width:min(720px,calc(100% - 2rem));max-height:calc(100vh - 2rem);padding:0;overflow:hidden}.payroll-settings-dialog>.dialog-head{margin:0;padding:1.25rem 1.4rem 1rem;border-bottom:1px solid var(--line)}.dialog-subtitle{margin:.25rem 0 0;color:var(--muted);font-size:.88rem}.payroll-model-head{display:grid;grid-template-columns:minmax(180px,1fr) 130px 130px;gap:.75rem;padding:.7rem 1.4rem;color:var(--muted);background:#f6f3f2;font-size:.75rem;font-weight:900;letter-spacing:.05em;text-transform:uppercase}.payroll-model-head span:not(:first-child){text-align:center}.payroll-model-list{max-height:min(55vh,520px);overflow:auto;padding:.35rem 1.4rem}.payroll-model-list table{width:100%;border:0}.payroll-model-list tr{display:grid;grid-template-columns:minmax(180px,1fr) 130px 130px;align-items:center;gap:.75rem;border-bottom:1px solid var(--line)}.payroll-model-list tr:last-child{border-bottom:0}.payroll-model-list td{padding:.65rem 0;border:0}.payroll-model-list td:first-child{font-weight:800}.payroll-model-list td:not(:first-child){text-align:center}.payroll-model-list input{width:100%!important;height:2.55rem;text-align:center;font-weight:800}.payroll-settings-dialog>.form-error{margin:.4rem 1.4rem}.payroll-settings-dialog>.dialog-actions{margin:0;padding:1rem 1.4rem;border-top:1px solid var(--line);background:var(--white)}:root[data-theme="DARK"] .payroll-model-head{color:#d0c7c4;background:#2c2928}:root[data-theme="DARK"] .payroll-settings-dialog>.dialog-actions{background:#242222}
@media(max-width:700px){.period-filters{width:100%}.period-filters label,.period-filters input,.period-filters select{width:100%}}

.dialog.payout-dialog,#payoutDialog{width:min(620px,calc(100% - 2rem));max-height:calc(100vh - 2rem);overflow:auto;padding:1.25rem}.payout-dialog-content{min-width:0}.payout-dialog-content .dialog-actions,.payout-dialog .dialog-actions{position:static;flex-wrap:wrap}.payroll-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-bottom:1rem}.payroll-summary article{display:grid;gap:.35rem;padding:1rem 1.2rem;border:1px solid var(--line);border-radius:12px;background:var(--white)}.payroll-summary span{color:var(--muted);font-size:.8rem;font-weight:800;text-transform:uppercase}.payroll-summary strong{font-size:1.5rem}.permission-group td{position:static!important;padding:.65rem 1rem!important;color:#fff!important;background:#404040!important;font-size:.78rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.task-notification{top:auto;right:1rem;bottom:1rem;width:min(310px,calc(100% - 2rem));grid-template-columns:auto 1fr;align-items:center;gap:.2rem .65rem;padding:.65rem .8rem;border-left-width:3px;border-radius:9px}.task-notification strong{font-size:.8rem}.task-notification span{font-size:.78rem;line-height:1.25}.task-notification button{grid-column:2;padding:.1rem 0;font-size:.75rem}#priceDialog .check-label{display:flex;align-items:center;gap:.7rem;min-height:2.8rem;padding:.7rem .85rem;border:1px solid var(--line);border-radius:10px;color:#211f1f!important;background:#f7f3f2;font-weight:800}#priceDialog .check-label input{flex:0 0 auto;width:1.15rem;height:1.15rem;accent-color:#780000}
:root[data-theme="DARK"] #priceDialog .check-label{color:#fff!important;border-color:#675e5b;background:#302d2c}:root[data-theme="DARK"] #priceDialog input[type="checkbox"]{outline:1px solid #e4dcda;outline-offset:2px}:root[data-theme="DARK"] .payroll-summary article{background:#242222}
@media(max-width:600px){.payroll-summary,.payout-summary{grid-template-columns:1fr}.dialog.payout-dialog,#payoutDialog{width:calc(100% - 1rem);max-height:calc(100vh - 1rem);padding:1rem}}
@media(max-width:600px){.payroll-settings-dialog{width:calc(100% - 1rem)}.payroll-model-head,.payroll-model-list tr{grid-template-columns:minmax(120px,1fr) 88px 88px;gap:.4rem}.payroll-model-head{padding-inline:1rem}.payroll-model-list{padding-inline:1rem}.payroll-model-list input{padding-inline:.35rem}}

/* Kompakte, klar gegliederte Ansicht des eigenen Wochengehalts. */
.weekly-salary-dialog{width:min(610px,calc(100% - 2rem));padding:1.4rem}.weekly-salary-dialog>.dialog-head{margin-bottom:1.15rem}.weekly-period{display:grid;grid-template-columns:42px minmax(0,1fr) 42px;align-items:end;gap:.65rem;padding:.8rem;border:1px solid var(--line);border-radius:12px;background:#f8f5f4}.weekly-period label{gap:.35rem;color:var(--muted);font-size:.76rem;text-transform:uppercase;letter-spacing:.06em}.weekly-period input{height:2.65rem}.weekly-period .icon-action{height:2.65rem;align-self:end;font-size:1.35rem}.weekly-salary-highlight{display:grid;justify-items:center;gap:.25rem;margin-top:1rem;padding:1.35rem;border-radius:14px;color:#fff;background:linear-gradient(125deg,#660000,#3f0202 65%,#292323)}.weekly-salary-highlight>span{font-size:.75rem;font-weight:900;letter-spacing:.1em;text-transform:uppercase;color:#ffffffb8}.weekly-salary-highlight>strong{font-size:clamp(2.15rem,6vw,3.4rem);line-height:1}.weekly-salary-highlight>small{color:#ffffffb8}.weekly-salary-details{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;margin-top:.75rem}.weekly-salary-details>div{display:grid;gap:.3rem;padding:.9rem 1rem;border:1px solid var(--line);border-radius:12px;background:var(--white)}.weekly-salary-details span{color:var(--muted);font-size:.75rem;font-weight:800;text-transform:uppercase}.weekly-salary-details strong{font-size:1.2rem}:root[data-theme="DARK"] .weekly-period{border-color:#514a48;background:#2c2928}:root[data-theme="DARK"] .weekly-salary-details>div{border-color:#514a48;background:#2c2928}:root[data-theme="DARK"] .weekly-salary-details strong{color:#fff}
@media(max-width:520px){.weekly-salary-dialog{padding:1rem}.weekly-salary-details{grid-template-columns:1fr}}

/* Seitennavigation für große Kundenbestände. */
.table-pagination{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:.8rem 0;min-height:2.7rem}.pagination-summary{color:var(--muted);font-size:.84rem;font-weight:750}.pagination-controls{display:flex;align-items:center;justify-content:center;gap:.3rem}.pagination-controls .icon-action,.page-button{display:inline-grid;place-items:center;min-width:2.35rem;height:2.35rem;padding:0 .55rem;border:1px solid var(--line);border-radius:9px;color:var(--ink);background:var(--white);font-weight:800;cursor:pointer}.pagination-controls button:hover:not(:disabled){border-color:var(--red);color:var(--red)}.pagination-controls button:disabled{opacity:.4;cursor:not-allowed}.page-button.active{border-color:var(--red);color:#fff;background:var(--red)}.pagination-ellipsis{min-width:1.5rem;text-align:center;color:var(--muted)}.pagination-size{display:flex;align-items:center;gap:.5rem;color:var(--muted);font-size:.8rem;font-weight:800}.pagination-size select{height:2.35rem;padding:0 1.9rem 0 .65rem;border:1px solid var(--line);border-radius:9px;color:var(--ink);background:var(--white)}:root[data-theme="DARK"] .pagination-controls .icon-action,:root[data-theme="DARK"] .page-button,:root[data-theme="DARK"] .pagination-size select{color:#f3eeee;border-color:#5a514e;background:#302d2c}:root[data-theme="DARK"] .page-button.active{color:#fff;border-color:#a64b4b;background:#7b2020}
@media(max-width:760px){.table-pagination{align-items:stretch;flex-direction:column}.pagination-controls{order:3;flex-wrap:wrap}.pagination-size{justify-content:center}.pagination-summary{text-align:center}}

/* 2.11: Transparente Logos ohne schwarze Trägerfläche. */
.global-loader img,.login-loading img,.logo-frame,.logo-frame img,.sidebar-brand img{background:transparent!important;box-shadow:none!important}.logo-frame img,.sidebar-brand img{object-fit:contain!important}

/* Tabellen bleiben auch bei langen Bezeichnungen lesbar. */
.table-card table{table-layout:fixed;width:100%}.table-card th,.table-card td{min-width:0;white-space:normal;overflow-wrap:anywhere;word-break:normal;vertical-align:middle}.table-card input,.table-card select,.table-card button{max-width:100%}.row-actions{flex-wrap:wrap}.row-actions button,.status,.status-chip{white-space:nowrap}.role-chip-list{display:flex;flex-wrap:wrap;gap:.3rem}.role-chip-list span{display:inline-flex;max-width:100%;padding:.25rem .45rem;border-radius:999px;color:var(--ink);background:#eee8e6;font-size:.72rem;font-weight:800;overflow-wrap:anywhere}#view-daily-tasks th:nth-child(1){width:25%}#view-daily-tasks th:nth-child(2){width:31%}#view-daily-tasks th:nth-child(3){width:12%}#view-daily-tasks th:nth-child(4){width:10%}#view-daily-tasks th:nth-child(5){width:16%}#view-daily-tasks th:nth-child(6){width:6%}#view-prices th:last-child{width:92px}:root[data-theme="DARK"] .role-chip-list span{color:#f4efed;background:#443d3a}

/* Briefkasten und Changelog. */
.mailbox-tabs{display:flex;gap:.45rem;margin-bottom:.8rem}.mailbox-tabs button{padding:.6rem 1rem;border:1px solid var(--line);border-radius:10px;color:var(--ink);background:var(--white);font-weight:800;cursor:pointer}.mailbox-tabs button.active{color:#fff;border-color:var(--red);background:var(--red)}.unread-row{font-weight:850;background:#fff6f6}.mailbox-recipient-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.mailbox-recipient-columns section{min-width:0}.choice-list,.choice-grid{display:grid;gap:.4rem;max-height:270px;overflow:auto}.choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mailbox-meta{white-space:pre-line;color:var(--muted);font-size:.85rem}.mailbox-message{min-height:110px;padding:1rem;border:1px solid var(--line);border-radius:12px;white-space:pre-wrap;background:var(--white)}.mailbox-groups-list{display:grid;gap:.5rem;margin-top:1rem}.mailbox-group-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.65rem;border:1px solid var(--line);border-radius:10px}.changelog-list{display:grid;gap:.8rem}.changelog-card{padding:1rem 1.2rem;border:1px solid var(--line);border-left:4px solid var(--red);border-radius:12px;background:var(--white)}.changelog-card header{display:flex;align-items:center;gap:.8rem}.changelog-card header span{padding:.3rem .55rem;border-radius:8px;color:#fff;background:var(--red);font-size:.75rem;font-weight:900}.changelog-card h2{margin:0;font-size:1.05rem}.changelog-card ul{margin:.75rem 0 0;padding-left:1.25rem;color:var(--muted)}:root[data-theme="DARK"] .unread-row{background:#3b2727}:root[data-theme="DARK"] .mailbox-message{background:#2c2928}:root[data-theme="DARK"] .mailbox-tabs button{color:#f3eeee;border-color:#5a514e;background:#302d2c}:root[data-theme="DARK"] .mailbox-tabs button.active{color:#fff;border-color:#a64b4b;background:#7b2020}
@media(max-width:800px){.mailbox-recipient-columns{grid-template-columns:1fr}.choice-grid{grid-template-columns:1fr}.table-card{overflow-x:auto}.table-card table{min-width:720px}}

/* 2.11.1: Briefkastenempfänger bewusst untereinander statt in Spalten. */
.mailbox-recipient-list{display:grid;gap:1.15rem}.mailbox-recipient-list section{min-width:0;padding:.85rem;border:1px solid var(--line);border-radius:12px;background:var(--white)}.mailbox-recipient-list h3{margin:0 0 .65rem;font-size:.95rem}.mailbox-recipient-list .choice-list{grid-template-columns:repeat(2,minmax(0,1fr));max-height:240px}:root[data-theme="DARK"] .mailbox-recipient-list section{border-color:#514a48;background:#2c2928}@media(max-width:700px){.mailbox-recipient-list .choice-list{grid-template-columns:1fr}}

/* v2.12.0 */
:root[data-theme="DARK"] #view-yard .search-bar input{color:#f3eeee;border-color:#5a514e;background:#302d2c}
:root[data-theme="DARK"] #yardTable tr.yard-ready td{background:#20382b;color:#a8e0be}
:root[data-theme="DARK"] #yardTable tr.yard-not-ready td{background:#402626;color:#efb0b0}
:root[data-theme="DARK"] 
:root[data-theme="DARK"] 

/* v2.15.0: Partner-Rabatte, Fremdabholung und vierstufige Gehaltsmodelle */
.employee-partner-discount{margin:.75rem 0 0;padding:1rem;border:1px solid var(--line);border-radius:12px;background:var(--white)}
.employee-partner-discount legend{padding:0 .4rem;font-weight:900;color:var(--ink)}
.employee-partner-discount .hint{margin:0 0 .8rem;color:var(--muted);font-size:.82rem}
.review-pickup-controls{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(240px,1.2fr);align-items:end;gap:.8rem;margin:.8rem 0;padding:.8rem;border:1px solid var(--line);border-radius:10px;background:var(--surface,#faf8f7)}
.review-pickup-controls .check-label{min-height:2.65rem;margin:0}.review-pickup-name{display:grid;gap:.35rem;margin:0;color:var(--muted);font-size:.8rem;font-weight:800}.review-pickup-name input{width:100%}.review-pickup-note{margin:.45rem 0;padding:.55rem .7rem;border-left:3px solid var(--red);border-radius:6px;background:#f7eeee;font-weight:800}
.payroll-model-head,.payroll-model-list tr{grid-template-columns:minmax(180px,1fr) 120px 120px 145px}
:root[data-theme="DARK"] .employee-partner-discount{border-color:#514a48;background:#2c2928}:root[data-theme="DARK"] .employee-partner-discount legend{color:#fff}:root[data-theme="DARK"] .review-pickup-controls{border-color:#514a48;background:#2c2928}:root[data-theme="DARK"] .review-pickup-note{color:#f6eeee;border-left-color:#d66b6b;background:#382b2a}
@media(max-width:700px){.review-pickup-controls{grid-template-columns:1fr}.payroll-model-head,.payroll-model-list tr{grid-template-columns:minmax(110px,1fr) 76px 76px 96px;gap:.35rem}.payroll-model-head{font-size:.65rem}.payroll-model-list input{padding-inline:.25rem}}
@media(max-width:600px){.payroll-model-head,.payroll-model-list tr{grid-template-columns:minmax(110px,1fr) 76px 76px 96px!important}}

/* v2.18.0 - Zusatzangabe je Tuning-Position */
.order-tuning-note{grid-column:1/-1;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:.2rem .6rem;justify-self:start;width:min(100%,420px);padding:.55rem .65rem;border:1px solid var(--line);border-radius:10px;background:var(--paper);font-size:.82rem;font-weight:800}.order-tuning-note small{color:var(--muted);font-weight:600}.order-tuning-note input{grid-column:1/-1;width:100%;height:2.45rem;margin-top:.15rem}:root[data-theme="DARK"] .order-tuning-note{background:#2c2928;border-color:#514a48}

/* 2.18.1: Tuning-Angabe, Briefkasten-Detail und Leihwagen. */
.order-tuning-note{grid-column:1/-1;display:grid;grid-template-columns:minmax(145px,.34fr) minmax(220px,1fr);align-items:center;gap:.75rem;width:100%;max-width:none;padding:.72rem .8rem;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft,var(--paper));font-size:.82rem;font-weight:700;box-sizing:border-box}
.order-tuning-note-copy{display:grid;gap:.12rem;min-width:0}.order-tuning-note-copy strong{font-size:.86rem;color:var(--ink)}.order-tuning-note-copy small{color:var(--muted);font-weight:600;line-height:1.25}.order-tuning-note input{grid-column:auto;width:100%;min-width:0;height:2.45rem;margin:0;padding:.55rem .7rem;border-radius:9px;background:var(--white);box-sizing:border-box}
:root[data-theme="DARK"] .order-tuning-note{background:#2c2928;border-color:#514a48}:root[data-theme="DARK"] .order-tuning-note input{background:#353130;border-color:#5c5350;color:#f6f1f0}
@media(max-width:720px){.order-tuning-note{grid-template-columns:1fr}.order-tuning-note input{width:100%}}

.mailbox-detail{display:grid;gap:0}.mailbox-detail-card{display:grid;gap:1rem}.mailbox-detail-hero{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.9rem;padding:1rem;border:1px solid var(--line);border-radius:16px;background:linear-gradient(135deg,color-mix(in srgb,var(--red) 10%,var(--white)),var(--white))}.mailbox-detail-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:var(--red);color:#fff;font-size:1.25rem;font-weight:900;box-shadow:0 8px 24px rgba(102,0,0,.18)}.mailbox-detail-hero>div{display:grid;gap:.15rem;min-width:0}.mailbox-detail-hero small{color:var(--muted);font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.mailbox-detail-hero strong{font-size:1rem}.mailbox-detail-hero span:not(.mailbox-detail-icon):not(.mailbox-detail-status){color:var(--muted);font-size:.82rem}.mailbox-detail-status{padding:.38rem .65rem;border-radius:999px;font-size:.75rem;font-weight:900;white-space:nowrap}.mailbox-detail-status.is-open{color:#7a4a00;background:#fff1c7}.mailbox-detail-status.is-complete{color:#1d6337;background:#dff4e6}.mailbox-detail-targets,.mailbox-detail-message-wrap{display:grid;gap:.5rem;padding:0 .15rem}.mailbox-detail-targets>strong,.mailbox-detail-message-wrap>strong{font-size:.78rem;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}.mailbox-target-chips{display:flex;flex-wrap:wrap;gap:.4rem}.mailbox-target-chips span{padding:.38rem .62rem;border:1px solid var(--line);border-radius:999px;background:var(--surface-soft,var(--paper));font-size:.78rem;font-weight:800}.mailbox-detail-message-wrap .mailbox-message{min-height:140px;margin:0;padding:1rem 1.05rem;border:1px solid var(--line);border-radius:14px;background:var(--white);white-space:pre-wrap;line-height:1.55;box-shadow:0 8px 22px rgba(0,0,0,.035)}
:root[data-theme="DARK"] .mailbox-detail-hero{background:linear-gradient(135deg,#3a2929,#302d2c);border-color:#514a48}:root[data-theme="DARK"] .mailbox-target-chips span{background:#2c2928;border-color:#514a48}:root[data-theme="DARK"] .mailbox-detail-message-wrap .mailbox-message{background:#2c2928;border-color:#514a48;color:#f6f1f0}:root[data-theme="DARK"] .mailbox-detail-status.is-open{color:#ffe1a3;background:#5a421d}:root[data-theme="DARK"] .mailbox-detail-status.is-complete{color:#bff0ce;background:#244a32}

.review-loaner-field{grid-column:1/-1;display:grid;grid-template-columns:minmax(220px,.8fr) minmax(240px,1.2fr);align-items:center;gap:.8rem;margin:0;padding:.8rem .9rem;border:1px solid var(--line);border-radius:14px;background:var(--surface-soft,var(--paper))}.review-loaner-copy{display:grid;gap:.16rem}.review-loaner-copy strong{color:var(--ink)}.review-loaner-copy small{color:var(--muted);font-size:.78rem;font-weight:600}.review-loaner-field select{width:100%;min-width:0}.review-loaner-empty{grid-column:1/-1;margin:0;padding:.55rem .7rem;border-radius:10px;background:color-mix(in srgb,var(--red) 8%,var(--white));color:var(--muted);font-size:.8rem}.review-loaner-note{margin:.45rem 0;padding:.55rem .7rem;border-left:3px solid var(--red);border-radius:6px;background:var(--surface-soft,var(--paper));font-weight:800}
:root[data-theme="DARK"] .review-loaner-field,:root[data-theme="DARK"] .review-loaner-note{background:#2c2928;border-color:#514a48}:root[data-theme="DARK"] .review-loaner-empty{background:#382b2a;color:#e8dede}
@media(max-width:700px){.review-loaner-field{grid-template-columns:1fr}}


/* v2.19.1 – UI Feinschliff Auftrag, Briefkasten und Treuerabatte */
.order-customer-grid{grid-template-columns:minmax(0,2fr) minmax(180px,1fr) minmax(220px,1.1fr);align-items:end}
#orderCustomerInfo,#orderGroupingInfo,#selectedOrderCustomerFields,#orderEmployeeOrgField,#orderTabEmployeeField,#newOrderCustomerFields{grid-column:1/-1}
.selected-customer-fields{grid-template-columns:1.3fr 1fr 1fr auto;align-items:end}
.order-work-row{grid-template-columns:minmax(0,1fr) minmax(150px,max-content) minmax(90px,110px) 42px!important;align-items:start;row-gap:.55rem}
.order-work-row output{justify-self:end;align-self:center;min-width:0;padding-top:.55rem;color:var(--ink)}
.order-work-row .icon-action{align-self:center;margin-top:.1rem}
.order-tuning-note{grid-column:1/-1;display:grid;grid-template-columns:1fr!important;gap:.45rem;width:100%;padding:.8rem .9rem;border-radius:14px;background:linear-gradient(180deg,var(--surface-soft,var(--paper)),var(--surface,var(--white)));box-shadow:inset 0 1px 0 rgba(255,255,255,.35)}
.order-tuning-note-copy{display:grid;gap:.1rem}.order-tuning-note-copy strong{font-size:.9rem;line-height:1.2}.order-tuning-note-copy small{font-size:.78rem;line-height:1.25}.order-tuning-note input{height:2.8rem!important;padding:0 .85rem!important;border-radius:10px}
.review-summary .copy-invoice,.order-list-invoice{color:#b31616!important;font-weight:900}.order-list-total{color:#fff!important;text-shadow:0 0 0 transparent;background:linear-gradient(90deg,#8d1313,#660000);font-weight:900}
#workshopOrdersTable .order-list-total{border-left:0}
.review-pickup-controls{display:grid;gap:1rem;padding:1rem;border-radius:16px}
.review-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;width:100%}
.review-choice-card{display:grid;gap:.75rem;align-content:start;padding:1rem;border:1px solid var(--line);border-radius:16px;background:var(--white);min-width:0}
.review-choice-card.is-disabled,.review-pickup-toggle.is-disabled .review-pickup-toggle-box{opacity:.65}
.review-pickup-toggle{margin:0}.review-pickup-toggle-box{align-items:flex-start;min-height:88px}.review-pickup-name{margin:0;color:var(--ink);font-size:.86rem}.review-pickup-name input{height:2.85rem}
.review-loaner-field{grid-column:auto;display:grid;grid-template-columns:1fr;gap:.45rem;margin:0;padding:0;border:0;background:transparent}.review-loaner-field select{height:2.9rem}
.review-loaner-empty{margin:0;padding:.7rem .8rem}
.mailbox-dialog{width:min(780px,calc(100vw - 2rem));max-width:780px;max-height:calc(100vh - 2rem)}
.mailbox-detail{padding:1rem 1.25rem 1.2rem;overflow:auto;max-height:calc(100vh - 180px)}
.mailbox-detail-card,.mailbox-detail-hero,.mailbox-detail-message-wrap .mailbox-message{overflow:hidden}
.loyalty-dialog{width:min(980px,calc(100vw - 2rem));max-height:calc(100vh - 2rem)}
.loyalty-dialog form,.loyalty-dialog .dialog-body{max-height:calc(100vh - 140px);overflow:auto}
.loyalty-config-note{align-items:flex-start;overflow:visible}.loyalty-config-note::before{display:none}
.loyalty-config-note strong,.loyalty-config-note span{display:block;max-width:100%;line-height:1.45}
.loyalty-tier-card,.review-vehicle,.review-summary>div,.mailbox-detail-hero,.mailbox-detail-message-wrap .mailbox-message{border-radius:16px}
:root[data-theme="DARK"] .review-choice-card{background:#2c2928;border-color:#514a48}
:root[data-theme="DARK"] .order-tuning-note{background:linear-gradient(180deg,#2f2b2a,#262322);border-color:#514a48;box-shadow:none}
:root[data-theme="DARK"] .order-work-row output{color:#f4efee}
:root[data-theme="DARK"] .order-list-total{background:linear-gradient(90deg,#8f2b2b,#6c1818);color:#fff!important}
@media(max-width:980px){.order-customer-grid{grid-template-columns:1fr 1fr}.selected-customer-fields{grid-template-columns:1fr 1fr}.selected-customer-fields button{grid-column:1/-1}}
@media(max-width:820px){.review-choice-grid{grid-template-columns:1fr}.mailbox-detail{padding:1rem}.order-work-row{grid-template-columns:minmax(0,1fr) 1fr 42px!important}.order-work-row .order-quantity{grid-column:1/2}.order-work-row output{justify-self:start;padding-top:0}}
@media(max-width:620px){.order-customer-grid,.selected-customer-fields{grid-template-columns:1fr}}


/* v2.19.2 – Tuning-Notiz endgültig neu aufgebaut */
.order-work-row{display:grid!important;grid-template-columns:1fr!important;gap:.7rem!important;padding:.85rem .9rem;border:1px solid var(--line);border-radius:14px;background:var(--surface,var(--white))}
.order-work-main{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:.8rem;min-width:0}
.order-work-main>[data-order-work]{width:100%;min-width:0;height:3rem;padding:0 .85rem;border:1px solid #d7d0ce;border-radius:10px;background:var(--white)}
.order-work-meta{display:grid;grid-template-columns:auto auto auto;align-items:center;gap:.6rem;justify-content:end;min-width:max-content}
.order-work-meta output{margin:0;padding:0;color:var(--ink);font-weight:900;white-space:nowrap}
.order-work-meta .order-quantity{display:grid;gap:.25rem;padding:0;border:0;background:transparent;font-size:.74rem;color:var(--muted);font-weight:800}
.order-work-meta .order-quantity input{width:88px;height:2.6rem;padding:0 .65rem;border:1px solid var(--line);border-radius:10px;background:var(--white)}
.order-work-remove{align-self:center}
.order-tuning-note{display:grid!important;grid-template-columns:1fr!important;gap:.45rem!important;width:100%!important;padding:.85rem .95rem!important;border:1px solid color-mix(in srgb,var(--red) 18%,var(--line));border-radius:14px!important;background:linear-gradient(180deg,var(--surface-soft,var(--paper)),var(--surface,var(--white)))!important;box-sizing:border-box;overflow:visible}
.order-tuning-note-copy{display:grid;gap:.08rem;min-width:0}.order-tuning-note-copy strong{display:block;font-size:.92rem;line-height:1.2;color:var(--ink)}.order-tuning-note-copy small{display:block;font-size:.78rem;line-height:1.28;color:var(--muted);font-weight:700}
.order-tuning-note input{width:100%!important;min-width:0;height:2.85rem!important;padding:0 .85rem!important;border:1px solid var(--line)!important;border-radius:10px!important;background:var(--white)!important;box-sizing:border-box}
:root[data-theme="DARK"] .order-work-row{background:#242120;border-color:#514a48}
:root[data-theme="DARK"] .order-work-main>[data-order-work],:root[data-theme="DARK"] .order-work-meta .order-quantity input,:root[data-theme="DARK"] .order-tuning-note input{background:#353130!important;border-color:#5c5350!important;color:#f6f1f0!important}
:root[data-theme="DARK"] .order-work-meta output{color:#f4efee}
:root[data-theme="DARK"] .order-tuning-note{background:linear-gradient(180deg,#2f2b2a,#262322)!important;border-color:#5a4946!important;box-shadow:none}
@media(max-width:820px){.order-work-main{grid-template-columns:1fr}.order-work-meta{grid-template-columns:1fr auto auto;justify-content:stretch;min-width:0}.order-work-meta output{justify-self:start}.order-work-meta .order-quantity input{width:100%}}
@media(max-width:560px){.order-work-meta{grid-template-columns:1fr;justify-items:stretch}.order-work-remove{justify-self:end}.order-work-meta .order-quantity input{width:100%}}


/* v2.20.0 – Tuning-Anzeige, Gesamtpreis, Zeitlimits */
.order-tuning-note.hidden{display:none!important}
.order-list-total{background:transparent!important;color:#720000!important;font-weight:950!important;text-shadow:none!important}
:root[data-theme="DARK"] .order-list-total{background:transparent!important;color:#fff!important;font-weight:950!important;text-shadow:0 0 12px rgba(255,255,255,.08)!important}
.tuning-limit-dialog{width:min(650px,calc(100vw - 2rem));padding:0;overflow:hidden}
.tuning-limit-dialog>.dialog-head{padding:1.35rem 1.5rem 1rem;border-bottom:1px solid var(--line)}
.tuning-limit-list{display:grid;gap:.7rem;padding:1.2rem 1.5rem}
.tuning-limit-row{display:grid!important;grid-template-columns:minmax(0,1fr) 180px;align-items:center;gap:1rem;padding:.9rem 1rem;border:1px solid var(--line);border-radius:14px;background:var(--white)}
.tuning-limit-row>span{display:grid;gap:.18rem}.tuning-limit-row small{color:var(--muted);font-size:.78rem;font-weight:600}
.tuning-limit-input{display:flex;align-items:center;overflow:hidden;border:1px solid var(--line);border-radius:10px;background:var(--white)}
.tuning-limit-input input{height:2.7rem!important;border:0!important;border-radius:0!important;background:transparent!important;text-align:right;font-weight:850}
.tuning-limit-input>span{padding:0 .75rem;color:var(--muted);font-size:.8rem;font-weight:800;border-left:1px solid var(--line)}
.tuning-limit-dialog>.form-error{margin:0 1.5rem}.tuning-limit-dialog>.dialog-actions{margin:0;padding:1rem 1.5rem 1.25rem;border-top:1px solid var(--line)}
:root[data-theme="DARK"] .tuning-limit-row,:root[data-theme="DARK"] .tuning-limit-input{background:#2c2928;border-color:#514a48}
@media(max-width:600px){.tuning-limit-row{grid-template-columns:1fr}.tuning-limit-input{width:100%}}


/* v2.20.2 – eigene Kundensuche statt Browser-datalist */
.order-customer-search-field{position:relative;z-index:12}
.order-customer-suggestions{position:absolute;top:calc(100% + .4rem);left:0;right:0;z-index:80;display:grid;max-height:360px;overflow-y:auto;padding:.4rem;border:1px solid var(--line);border-radius:14px;background:var(--white);box-shadow:0 18px 48px rgba(0,0,0,.18)}
.order-customer-suggestion{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.4rem 1rem;width:100%;padding:.75rem .85rem;border:0;border-radius:10px;background:transparent;color:var(--ink);text-align:left;cursor:pointer}
.order-customer-suggestion:hover,.order-customer-suggestion:focus-visible{outline:0;background:color-mix(in srgb,var(--red) 8%,var(--white))}
.order-customer-suggestion-main{display:grid;gap:.12rem;min-width:0}.order-customer-suggestion-main strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.92rem}.order-customer-suggestion-main small{color:var(--muted);font-size:.72rem;font-weight:750}
.order-customer-suggestion-meta{max-width:280px;color:var(--muted);font-size:.78rem;font-weight:700;text-align:right;overflow-wrap:anywhere}
:root[data-theme="DARK"] .order-customer-suggestions{background:#2c2928;border-color:#514a48;box-shadow:0 18px 48px rgba(0,0,0,.42)}
:root[data-theme="DARK"] .order-customer-suggestion{color:#f6f1f0}:root[data-theme="DARK"] .order-customer-suggestion:hover,:root[data-theme="DARK"] .order-customer-suggestion:focus-visible{background:#3a2b2a}
@media(max-width:650px){.order-customer-suggestion{grid-template-columns:1fr}.order-customer-suggestion-meta{text-align:left;max-width:none}}

/* v2.21.0 – fixe Tabellenköpfe, Events und Sonderkonditionen */
#view-workshop-orders .table-card,
#view-repair .table-card,
#view-yard .table-card,
#view-daily-tasks .table-card,
#view-toolboxes .table-card,
#view-users .table-card,
#view-payroll .table-card,
#view-tab-accounting .table-card,
#view-prices .table-card{max-height:calc(100vh - 255px);overflow:auto}
#view-customers .table-scroll,
#view-applications .table-scroll,
#view-roles .table-scroll{max-height:calc(100vh - 290px);overflow:auto}
#view-workshop-orders thead th,
#view-repair thead th,
#view-yard thead th,
#view-daily-tasks thead th,
#view-toolboxes thead th,
#view-customers thead th,
#view-applications thead th,
#view-users thead th,
#view-payroll thead th,
#view-tab-accounting thead th,
#view-prices thead th,
#view-roles thead th{position:sticky;top:0;z-index:8;background:var(--white);box-shadow:0 1px 0 var(--line)}
#view-roles .permission-table thead th:first-child{z-index:12}
:root[data-theme="DARK"] #view-workshop-orders thead th,
:root[data-theme="DARK"] #view-repair thead th,
:root[data-theme="DARK"] #view-yard thead th,
:root[data-theme="DARK"] #view-daily-tasks thead th,
:root[data-theme="DARK"] #view-toolboxes thead th,
:root[data-theme="DARK"] #view-customers thead th,
:root[data-theme="DARK"] #view-applications thead th,
:root[data-theme="DARK"] #view-users thead th,
:root[data-theme="DARK"] #view-payroll thead th,
:root[data-theme="DARK"] #view-tab-accounting thead th,
:root[data-theme="DARK"] #view-prices thead th,
:root[data-theme="DARK"] #view-roles thead th{background:#2c2928;color:#f6f1f0;box-shadow:0 1px 0 #514a48}
.order-event-info{grid-column:1/-1;padding:.8rem 1rem;border:1px solid color-mix(in srgb,#b06b35 35%,var(--line));border-radius:12px;background:color-mix(in srgb,#b06b35 9%,var(--white));font-weight:850;color:var(--ink)}
#view-events .table-card{max-height:calc(100vh - 240px);overflow:auto}
#view-events thead th{position:sticky;top:0;z-index:8;background:var(--white);box-shadow:0 1px 0 var(--line)}
:root[data-theme="DARK"] .order-event-info{background:#392f25;border-color:#6b5640;color:#f6efe7}
:root[data-theme="DARK"] #view-events thead th{background:#2c2928;color:#f6f1f0}


/* v2.22.0 – Stempelzeiten in Statistik */
.statistics-time-section{display:grid;gap:1rem;margin-top:1.25rem;padding-top:1.25rem;border-top:1px solid var(--line)}
.statistics-time-head h2{margin:.15rem 0 .25rem}.statistics-time-head p:last-child{margin:0;color:var(--muted)}
.statistics-time-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.9rem}
.statistics-time-kpis article{display:flex;align-items:center;gap:.9rem;padding:1rem 1.1rem;border:1px solid var(--line);border-radius:16px;background:var(--white);box-shadow:0 8px 24px #28151208}
.statistics-time-kpis article>span{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;border-radius:13px;background:#66000010;font-size:1.25rem}
.statistics-time-kpis article>div{display:grid;gap:.15rem}.statistics-time-kpis strong{font-size:1.25rem;color:var(--ink)}.statistics-time-kpis small{color:var(--muted);font-weight:750}
.statistics-time-table{max-height:430px;overflow:auto}.statistics-time-table thead th{position:sticky;top:0;z-index:3;background:var(--white);box-shadow:0 1px 0 var(--line)}
.statistics-time-table th:not(:first-child),.statistics-time-table td:not(:first-child){text-align:right}
:root[data-theme="DARK"] .statistics-time-kpis article,:root[data-theme="DARK"] .statistics-time-table thead th{background:#2c2928;border-color:#514a48}:root[data-theme="DARK"] .statistics-time-kpis article>span{background:#662f2f66}:root[data-theme="DARK"] .statistics-time-kpis strong{color:#f4efee}
@media(max-width:700px){.statistics-time-kpis{grid-template-columns:1fr}.statistics-time-table table{min-width:620px}}


/* v2.22.1 – deutlicher Deckel-Hinweis in Auftragsdetails */
.order-tab-banner{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:.9rem;padding:1rem 1.1rem;border:2px solid #b77400;border-radius:16px;background:linear-gradient(135deg,#fff4cf,#fffaf0);box-shadow:0 10px 28px rgba(128,80,0,.12);color:#4b3300}
.order-tab-banner-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#8b5a00;color:#fff;font-size:1.35rem;box-shadow:0 6px 18px rgba(128,80,0,.18)}
.order-tab-banner>div{display:grid;gap:.2rem;min-width:0}.order-tab-banner strong{font-size:1rem;letter-spacing:.035em}.order-tab-banner span:not(.order-tab-banner-icon){font-size:.9rem;line-height:1.4}.order-tab-banner small{color:#73520d;font-size:.8rem;font-weight:750}
.order-tab-banner.is-settled{border-color:#2f7d4a;background:linear-gradient(135deg,#e8f7ed,#f7fcf9);color:#1e5332}.order-tab-banner.is-settled .order-tab-banner-icon{background:#2f7d4a}.order-tab-banner.is-settled small{color:#3b6c4c}
:root[data-theme="DARK"] .order-tab-banner{border-color:#c8993c;background:linear-gradient(135deg,#4a3a1c,#322b20);color:#ffe7a8}:root[data-theme="DARK"] .order-tab-banner small{color:#e5c982}:root[data-theme="DARK"] .order-tab-banner.is-settled{border-color:#5ca575;background:linear-gradient(135deg,#243e2d,#202c24);color:#c8efd4}:root[data-theme="DARK"] .order-tab-banner.is-settled small{color:#a9d8b8}
@media(max-width:560px){.order-tab-banner{grid-template-columns:1fr}.order-tab-banner-icon{width:42px;height:42px}}


/* v2.23.0 – Standorte, globale Suche, Zahlung und Briefkasten */
.smart-search-menu{position:fixed;z-index:2147483000;display:grid;gap:.2rem;max-height:min(390px,45vh);overflow:auto;padding:.42rem;border:1px solid var(--line);border-radius:14px;background:var(--white);box-shadow:0 18px 52px rgba(0,0,0,.24);box-sizing:border-box}
.smart-search-option{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.35rem 1rem;width:100%;min-width:0;padding:.72rem .82rem;border:0;border-radius:10px;background:transparent;color:var(--ink);text-align:left;cursor:pointer;font:inherit}
.smart-search-option:hover,.smart-search-option:focus-visible{outline:0;background:color-mix(in srgb,var(--red) 9%,var(--white))}
.smart-search-main{display:grid;gap:.13rem;min-width:0}.smart-search-main strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.9rem}.smart-search-main small{color:var(--muted);font-size:.72rem;font-weight:750;overflow-wrap:anywhere}
.smart-search-meta{max-width:310px;color:var(--muted);font-size:.78rem;font-weight:750;text-align:right;overflow-wrap:anywhere}
:root[data-theme="DARK"] .smart-search-menu{border-color:#5b514e;background:#2c2928;box-shadow:0 18px 52px rgba(0,0,0,.55)}
:root[data-theme="DARK"] .smart-search-option{color:#f6f1f0}:root[data-theme="DARK"] .smart-search-option:hover,:root[data-theme="DARK"] .smart-search-option:focus-visible{background:#3b2c2b}
.organization-employee-block{padding:1rem;border:1px solid var(--line);border-radius:15px;background:var(--surface-soft,var(--paper));box-sizing:border-box}
.organization-employee-new{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin-top:.75rem;padding:.8rem;border:1px dashed color-mix(in srgb,var(--red) 34%,var(--line));border-radius:12px;background:var(--white)}
.organization-employee-new>small{grid-column:1/-1;color:var(--muted);font-weight:650;line-height:1.35}
.order-payment-toggle{display:flex!important;grid-column:1/-1;align-items:flex-start!important;gap:.8rem!important;padding:.9rem 1rem!important;border:1px solid #c28b33!important;border-radius:14px!important;background:#fff8e9!important;color:#4b350c!important;cursor:pointer}
.order-payment-toggle>input{flex:0 0 auto!important;width:1.1rem!important;height:1.1rem!important;margin-top:.12rem!important;padding:0!important;accent-color:#8d5b00}.order-payment-toggle>span{display:grid;gap:.12rem}.order-payment-toggle strong{font-size:.9rem}.order-payment-toggle small{font-size:.76rem;line-height:1.35;color:#76591d;font-weight:650}
#yardTable tr.yard-unpaid td{background:#fff1cf;color:#694300;font-weight:750}.payment-open{color:#7a4800!important;background:#ffe0a0!important}.payment-paid{color:#225f38!important;background:#dff3e5!important}
:root[data-theme="DARK"] .organization-employee-block,:root[data-theme="DARK"] .organization-employee-new{background:#2c2928;border-color:#514a48}
:root[data-theme="DARK"] .order-payment-toggle{border-color:#86652b!important;background:#3b321f!important;color:#ffe0a0!important}:root[data-theme="DARK"] .order-payment-toggle small{color:#d7b86d}
:root[data-theme="DARK"] #yardTable tr.yard-unpaid td{background:#45351d;color:#ffdda0}:root[data-theme="DARK"] .payment-open{background:#684d1f!important;color:#ffe1a3!important}:root[data-theme="DARK"] .payment-paid{background:#244a32!important;color:#bff0ce!important}
#view-locations .table-card{max-height:calc(100vh - 255px);overflow:auto}#view-locations thead th{position:sticky;top:0;z-index:8;background:var(--white);box-shadow:0 1px 0 var(--line)}
:root[data-theme="DARK"] #view-locations thead th{background:#2c2928;color:#f6f1f0;box-shadow:0 1px 0 #514a48}

/* Briefkasten: kein Abschneiden an Dialogrändern, Titel oder Nachrichten */
.mailbox-dialog{width:min(820px,calc(100vw - 2rem))!important;max-width:820px!important;max-height:calc(100dvh - 2rem)!important;padding:0!important;overflow:hidden!important;border-radius:22px!important;box-sizing:border-box}
.mailbox-dialog>.dialog-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:1rem!important;margin:0!important;padding:1.35rem 1.5rem 1.05rem!important;border-bottom:1px solid var(--line)!important;box-sizing:border-box;min-width:0}
.mailbox-dialog>.dialog-head>div{display:grid;gap:.18rem;min-width:0;max-width:calc(100% - 52px)}
.mailbox-dialog>.dialog-head .eyebrow{margin:0!important;line-height:1.25!important}.mailbox-dialog #mailboxDetailSubject{margin:0!important;max-width:100%;font-size:1.55rem;line-height:1.18;overflow-wrap:anywhere;word-break:normal;white-space:normal}
.mailbox-dialog>.dialog-head .dialog-close{position:static!important;flex:0 0 auto;margin:0!important}
.mailbox-detail{display:block!important;max-height:calc(100dvh - 205px)!important;overflow-y:auto!important;overflow-x:hidden!important;padding:1.15rem 1.5rem 1.3rem!important;box-sizing:border-box}
.mailbox-detail-new{display:grid;gap:1rem;min-width:0;width:100%;box-sizing:border-box}
.mailbox-detail-new-meta{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.75rem 1rem;align-items:start;padding:1rem 1.05rem;border:1px solid var(--line);border-radius:16px;background:var(--surface-soft,var(--white));min-width:0;box-sizing:border-box}
.mailbox-detail-new-meta>div{display:grid;gap:.18rem;min-width:0}.mailbox-detail-new-meta small,.mailbox-detail-new-section>strong{color:var(--muted);font-size:.72rem;font-weight:850;text-transform:uppercase;letter-spacing:.065em}.mailbox-detail-new-meta strong{font-size:.98rem;overflow-wrap:anywhere}.mailbox-detail-new-meta span{color:var(--muted);font-size:.8rem;overflow-wrap:anywhere}
.mailbox-detail-new-section{display:grid;gap:.5rem;min-width:0}.mailbox-target-chips{display:flex;flex-wrap:wrap;gap:.4rem;min-width:0}.mailbox-target-chips span{max-width:100%;padding:.38rem .62rem;border:1px solid var(--line);border-radius:999px;background:var(--surface-soft,var(--paper));font-size:.78rem;font-weight:800;overflow-wrap:anywhere;white-space:normal}
.mailbox-message-new{display:block;min-height:135px;width:100%;padding:1rem 1.05rem;border:1px solid var(--line);border-radius:15px;background:var(--white);color:var(--ink);white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;line-height:1.58;box-sizing:border-box}
.mailbox-dialog>.dialog-actions{display:flex;justify-content:flex-end;gap:.65rem;flex-wrap:wrap;margin:0!important;padding:1rem 1.5rem 1.2rem!important;border-top:1px solid var(--line);box-sizing:border-box}
:root[data-theme="DARK"] .mailbox-detail-new-meta,:root[data-theme="DARK"] .mailbox-message-new{background:#2c2928;border-color:#514a48;color:#f6f1f0}:root[data-theme="DARK"] .mailbox-target-chips span{background:#302d2c;border-color:#514a48}
@media(max-width:700px){.smart-search-option{grid-template-columns:1fr}.smart-search-meta{text-align:left;max-width:none}.organization-employee-new{grid-template-columns:1fr}.mailbox-dialog{width:calc(100vw - 1rem)!important}.mailbox-dialog>.dialog-head{padding:1.1rem 1rem .85rem!important}.mailbox-detail{padding:1rem!important}.mailbox-dialog>.dialog-actions{padding:.9rem 1rem 1rem!important}.mailbox-detail-new-meta{grid-template-columns:1fr}.mailbox-dialog #mailboxDetailSubject{font-size:1.3rem}}

.order-payment-banner{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:.8rem;padding:.9rem 1rem;border:2px solid #c98513;border-radius:15px;background:#fff4d8;color:#573900}.order-payment-banner>span{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#9a650b;color:#fff;font-size:1.2rem}.order-payment-banner>div{display:grid;gap:.15rem;min-width:0}.order-payment-banner strong{font-size:.92rem}.order-payment-banner small{font-size:.8rem;line-height:1.4;color:#755313;font-weight:700}:root[data-theme="DARK"] .order-payment-banner{border-color:#a77c30;background:#44351e;color:#ffe1a0}:root[data-theme="DARK"] .order-payment-banner small{color:#dfbf77}


/* v2.23.1 – einheitliche Suchfelder und sichere Vorschlagsauswahl */
.smart-search-option.is-active{outline:0;background:color-mix(in srgb,var(--red) 12%,var(--white))}
:root[data-theme="DARK"] .smart-search-option.is-active{background:#442e2d}
input[type="search"]{appearance:none;-webkit-appearance:none;min-width:0;border-radius:11px!important;transition:border-color .14s ease,box-shadow .14s ease,background .14s ease}
input[type="search"]:focus{outline:0;border-color:color-mix(in srgb,var(--red) 58%,var(--line))!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--red) 11%,transparent)}
.search-bar input[type="search"],.special-price-head input[type="search"]{height:2.85rem;padding:0 .9rem;border:1px solid var(--line);background:var(--white);color:var(--ink)}
.smart-search-menu{overscroll-behavior:contain}
.smart-search-option .smart-search-main strong{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
:root[data-theme="DARK"] .search-bar input[type="search"],:root[data-theme="DARK"] .special-price-head input[type="search"]{background:#302d2c;border-color:#5a514e;color:#f3eeee}
