/* LSC Web-App v3.4.0 – zusammengefasste Basis-Styles (ersetzt 38 Einzeldateien).
   Erzeugt mit tools/css-consolidate.py; Reihenfolge = frühere Ladereihenfolge. Neue Gestaltung gehört in lsc3.css. */
/* --- aus styles.css --- */
:root{--red:#660000;--red-dark:#4f0000;--charcoal:#404040;--ink:#242222;--muted:#716b69;--line:#ded8d6;--paper:#f4f2f1;--white:#fff;--green:#1e6b45;--amber:#9a6300;--shadow:0 18px 45px rgba(40,20,18,.09);font-family:"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;background:var(--paper)}
button,input,select{font:inherit}
.hidden{display:none!important}
.eyebrow{margin:0 0 .55rem;color:var(--red);font-size:.76rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
.global-loader,.login-loading{position:fixed;inset:0;z-index:1000;display:grid;place-content:center;justify-items:center;gap:1rem;color:#fff;background:#1c1a1a}
.global-loader img,.login-loading img{width:190px;height:126px;object-fit:cover;border-radius:28px;animation:logo-pulse 1.4s ease-in-out infinite}
.global-loader span,.login-loading span{font-size:.88rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#ffffffb5}
@keyframes logo-pulse{0%,to{opacity:.55;transform:scale(.96)}50%{opacity:1;transform:scale(1.04)}}
.login-shell{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(440px,.95fr);min-height:100vh;background:#171717}
.brand-panel{display:flex;position:relative;flex-direction:column;justify-content:flex-end;padding:clamp(3rem,7vw,7.5rem);color:#fff;background:linear-gradient(130deg,#660000f2,#440000eb 54%,#1d1818f0)}
.brand-panel:before{content:"";position:absolute;inset:0;opacity:.16;background-image:linear-gradient(115deg,transparent 0 47%,#fff3 47.2% 47.5%,transparent 47.7%)}
.brand-copy,.brand-road,.brand-footer{position:relative}
.brand-kicker{display:inline-flex;padding:.5rem .8rem;border:1px solid #ffffff47;border-radius:999px;font-size:.78rem;font-weight:700;letter-spacing:.13em;text-transform:uppercase}
.brand-copy h1{max-width:620px;margin:1.4rem 0 1rem;font-size:clamp(3rem,6vw,6.5rem);line-height:.94;letter-spacing:-.06em}
.brand-copy p{max-width:590px;margin:0;color:#ffffffb8;font-size:1.08rem;line-height:1.7}
.brand-road{width:min(540px,80%);height:2px;margin:3rem 0 1.25rem;background:#fff3;overflow:hidden}
.brand-road span{display:block;width:34%;height:100%;background:#fff}
.brand-footer{margin:0;color:#ffffff8c;font-size:.8rem;letter-spacing:.12em;text-transform:uppercase}
.login-panel{display:grid;place-items:center;min-height:100vh;padding:clamp(1.5rem,5vw,5rem);background:var(--paper)}
.login-card{width:min(100%,460px)}
.logo-frame{width:156px;height:104px;margin:0 auto 2.1rem;overflow:hidden;border-radius:26px;background:#050505;box-shadow:0 18px 40px #1400002b}
.logo-frame img{width:100%;height:100%;object-fit:cover}
.login-heading{text-align:center;margin-bottom:2rem}
.login-heading h2{margin:0;font-size:clamp(2.2rem,4vw,3rem);letter-spacing:-.045em}
.login-heading>p:last-child{margin:.75rem 0 0;color:var(--muted)}
.login-form{display:grid;gap:1.15rem}
.login-form label,.dialog label{display:grid;gap:.5rem;font-size:.91rem;font-weight:700;color:#3b3736}
.login-form input,.dialog input,.dialog select{width:100%;height:3.25rem;padding:0 1rem;border:1px solid #d7d0ce;border-radius:12px;background:#fff;outline:none}
.login-form input:focus,.dialog input:focus,.dialog select:focus{border-color:var(--red);box-shadow:0 0 0 3px #6600001a}
.password-field{display:flex;position:relative}
.password-field input{padding-right:3rem}
.icon-button{position:absolute;right:.55rem;top:.5rem;width:2.2rem;height:2.2rem;border:0;border-radius:8px;color:var(--muted);background:transparent;cursor:pointer}
.icon-button:hover{background:#f2e9e8;color:var(--red)}
.form-error{min-height:1.2rem;margin:-.35rem 0;color:#a31d1d;font-size:.88rem}
.primary-button,.secondary-button{display:inline-flex;align-items:center;justify-content:center;min-height:2.7rem;padding:.65rem 1rem;border-radius:10px;border:1px solid transparent;font-weight:750;cursor:pointer}
.primary-button{color:#fff;background:var(--red);box-shadow:0 8px 18px #66000025}
.primary-button:hover{background:var(--red-dark)}
.primary-button:disabled{opacity:.55;cursor:not-allowed}
.secondary-button{color:#403b3a;background:#fff;border-color:var(--line)}
.secondary-button:hover{border-color:#bbb1ae;background:#faf8f7}
.login-button{position:relative;height:3.5rem;overflow:visible}
.drive-lane{display:none;align-items:center;position:absolute;inset:0;overflow:visible}
.login-button.is-driving{background:var(--charcoal)}
.login-button.is-driving .button-label{visibility:hidden}
.login-button.is-driving .drive-lane{display:flex}
.drive-lane:after{content:"";position:absolute;left:18%;right:16%;bottom:12px;height:1px;background:#ffffff38}
.drive-car{position:absolute;left:calc(50% - 17px);z-index:2;width:34px;height:34px;fill:none;stroke:#fff;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;animation:drive-away 1.35s cubic-bezier(.72,.02,.72,.83) forwards}
@keyframes drive-away{0%{transform:translateX(0) scale(1)}15%{transform:translateX(-10px) scale(.96)}to{transform:translateX(calc(50vw + 280px)) scale(.78)}}
.privacy-note{text-align:center;color:#8b8582;font-size:.82rem}
.app-shell{display:grid;grid-template-columns:270px minmax(0,1fr);min-height:100vh}
.sidebar{position:sticky;top:0;display:flex;flex-direction:column;height:100vh;padding:1.3rem 1rem;background:#292727;color:#fff}
.sidebar-brand{display:flex;align-items:center;gap:.8rem;padding:.3rem .45rem 1.35rem;color:#fff;text-decoration:none;font-weight:800}
.sidebar-brand img{width:58px;height:42px;object-fit:cover;border-radius:10px}
.navigation{display:flex;flex-direction:column;gap:.28rem;overflow-y:auto}
.navigation button{display:flex;align-items:center;gap:.72rem;width:100%;padding:.72rem .8rem;border:0;border-radius:10px;color:#ffffffbd;background:transparent;text-align:left;cursor:pointer}
.navigation button span{display:grid;place-items:center;width:1.25rem;color:#fff}
.navigation button:hover,.navigation button.active{color:#fff;background:#ffffff14}
.navigation button.active{box-shadow:inset 3px 0 var(--red)}
.nav-label{margin:1.1rem .8rem .35rem;color:#ffffff65;font-size:.66rem;font-weight:800;letter-spacing:.13em;text-transform:uppercase}
.workspace{min-width:0}
.topbar{display:flex;align-items:center;justify-content:space-between;min-height:82px;padding:1rem clamp(1.25rem,4vw,3rem);border-bottom:1px solid var(--line);background:#ffffffd9;backdrop-filter:blur(12px)}
.topbar h2{margin:0;font-size:1.25rem}
.topbar .eyebrow{margin-bottom:.2rem}
.topbar-actions{display:flex;gap:.7rem}
.mobile-menu{display:none}
.content{width:min(1320px,100%);margin:0 auto;padding:clamp(1.5rem,4vw,3rem)}
.view{display:none}
.view.active{display:block}
.section-head h1,.empty-module h1{margin:.2rem 0;font-size:clamp(2rem,4vw,3.7rem);letter-spacing:-.05em}
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:2rem;margin-bottom:1.5rem}
.section-head h1{font-size:clamp(2rem,4vw,3.1rem)}
.section-head p:last-child{max-width:720px;margin:.6rem 0 0;color:var(--muted)}
.table-card{overflow:hidden;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:var(--shadow)}
.table-scroll{overflow:auto}
table{width:100%;border-collapse:collapse}
th,td{padding:1rem 1.1rem;border-bottom:1px solid #ebe6e4;text-align:left;white-space:nowrap}
th{color:#7b7472;background:#faf8f7;font-size:.72rem;letter-spacing:.08em;text-transform:uppercase}
tbody tr:last-child td{border-bottom:0}
.user-cell{display:grid;gap:.2rem}
.user-cell span{color:var(--muted);font-size:.82rem}
.status{display:inline-flex;padding:.32rem .55rem;border-radius:999px;font-size:.74rem;font-weight:800}
.status.active{color:var(--green);background:#e7f4ed}
.status.locked{color:#8b2222;background:#f7e9e9}
.row-actions{display:flex;justify-content:flex-end;gap:.45rem}
.row-actions button{padding:.48rem .65rem;border:1px solid var(--line);border-radius:8px;background:#fff;cursor:pointer}
.row-actions button:hover{border-color:var(--red);color:var(--red)}
.inline-select{max-width:260px;padding:.55rem;border:1px solid var(--line);border-radius:8px;background:#fff}
.permission-table th:first-child,.permission-table td:first-child{position:sticky;left:0;z-index:2;background:#fff}
.permission-table thead th:first-child{background:#faf8f7}
.permission-table th:not(:first-child),.permission-table td:not(:first-child){text-align:center}
.permission-table input{width:1.15rem;height:1.15rem;accent-color:var(--red)}
.save-bar{display:flex;align-items:center;justify-content:flex-end;gap:1rem;margin-top:1rem;color:var(--muted);font-size:.88rem}
.empty-module{display:grid;place-items:center;min-height:65vh;text-align:center}
.empty-module>span{font-size:4rem;color:var(--red)}
.empty-module p{max-width:620px;color:var(--muted)}
.permission-ok{margin-top:1.2rem;padding:.75rem 1rem;border-radius:10px;color:var(--green);background:#e7f4ed;font-weight:700}
.dialog{width:min(540px,calc(100% - 2rem));padding:0;border:0;border-radius:18px;box-shadow:0 30px 80px #1d10104d}
.dialog::backdrop{background:#191515a8;backdrop-filter:blur(4px)}
.dialog form,.secret-dialog{display:grid;gap:1rem;padding:1.5rem}
.dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}
.dialog-head h2{margin:0;font-size:1.65rem}
.dialog-close{border:0;background:transparent;font-size:1.7rem;cursor:pointer}
.dialog-actions{display:flex;justify-content:flex-end;gap:.7rem;margin-top:.4rem}
.hint{margin:0;color:var(--muted);font-size:.87rem;line-height:1.5}
.warning{padding:.8rem;border-radius:10px;color:#754b00;background:#fff0cf;font-size:.88rem}
.secret-box{display:flex;align-items:center;gap:.7rem;padding:.8rem;border:1px solid var(--line);border-radius:12px;background:#f6f3f2}
.secret-box code{flex:1;overflow-wrap:anywhere;color:var(--red);font-size:1.02rem;font-weight:800}
.toast{position:fixed;right:1.25rem;bottom:1.25rem;z-index:2000;max-width:420px;padding:.9rem 1rem;border-radius:12px;color:#fff;background:#292727;box-shadow:var(--shadow)}
@media(max-width:1050px){.app-shell{grid-template-columns:230px minmax(0,1fr)}}
@media(max-width:800px){.login-shell{grid-template-columns:1fr}
.brand-panel{display:none}
.sidebar{position:fixed;z-index:100;left:-280px;width:270px;transition:left .2s}
.sidebar.open{left:0}
.app-shell{grid-template-columns:1fr}
.mobile-menu{display:block;border:0;background:transparent;font-size:1.4rem}
.topbar-actions .secondary-button:first-child{display:none}
.section-head{align-items:flex-start;flex-direction:column}
.content{padding:1.2rem}
.topbar{padding:1rem}
.login-panel{padding:1.35rem}}
@media(max-width:520px){.logo-frame{width:132px;height:88px}
.topbar-actions .secondary-button{padding:.55rem .7rem;font-size:.8rem}
.dialog-actions{flex-direction:column-reverse}
.dialog-actions button{width:100%}}
@media(prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;transition-duration:.01ms!important}}
.mailbox-chat-thread{display:flex;flex-direction:column;gap:.8rem;max-height:55vh;overflow:auto;padding:.4rem}
.mailbox-chat-bubble{max-width:min(78%,720px);padding:.85rem 1rem;border:1px solid var(--border);border-radius:16px;background:var(--white);box-shadow:0 8px 24px rgba(0,0,0,.08)}
.mailbox-chat-bubble.mine{align-self:flex-end;border-bottom-right-radius:5px;background:color-mix(in srgb,var(--accent) 18%,var(--white))}
.mailbox-chat-bubble.theirs{align-self:flex-start;border-bottom-left-radius:5px}
.mailbox-chat-bubble>div{display:flex;justify-content:space-between;gap:1rem;margin-bottom:.45rem}
.mailbox-chat-bubble small{opacity:.7}
.mailbox-chat-bubble p{white-space:pre-wrap;margin:0;line-height:1.5}
.notification-ready{color:#22c55e;border-color:color-mix(in srgb,#22c55e 55%,var(--border));}
/* --- aus navigation.css --- */
.nav-group{display: flex;flex-direction: column;gap: .28rem;}
.sidebar-collapse{position: absolute;top: 1.65rem;right: -.8rem;z-index: 5;display: grid;place-items: center;width: 1.7rem;height: 1.7rem;padding: 0;border: 1px solid #ffffff2b;border-radius: 50%;color: #fff;background: #404040;box-shadow: 0 5px 14px #0004;font-size: 1.15rem;line-height: 1;cursor: pointer;}
.sidebar-collapse:hover{background: #660000;}
.navigation .nav-icon{flex: 0 0 1.55rem; width: 1.55rem; font-size: 1.05rem; line-height: 1;}
.navigation .nav-text{display: block; flex: 1 1 auto; width: auto; min-width: 0; overflow: hidden; text-align: left; text-overflow: ellipsis; white-space: nowrap;}
.app-shell,.sidebar{transition: grid-template-columns .2s ease, width .2s ease, padding .2s ease;}
.app-shell.sidebar-collapsed{grid-template-columns: 82px minmax(0,1fr);}
.sidebar-collapsed .sidebar{padding-inline: .7rem;}
.sidebar-collapsed .sidebar-brand{justify-content: center; padding-inline: 0;}
.sidebar-collapsed .sidebar-brand img{width: 48px; height: 36px;}
.sidebar-collapsed .sidebar-brand span,.sidebar-collapsed .nav-text,.sidebar-collapsed .nav-label{display: none;}
.sidebar-collapsed .navigation button{justify-content: center; padding-inline: .55rem;}
.sidebar-collapsed .navigation .nav-icon{width: 1.55rem;}
@media (max-width: 800px){.sidebar-collapse{display: none;}
.app-shell.sidebar-collapsed{grid-template-columns: 1fr;}
.sidebar-collapsed .sidebar-brand span,.sidebar-collapsed .nav-text,.sidebar-collapsed .nav-label{display: initial;}}
/* --- aus modules.css --- */
.panel-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;padding:1.4rem;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:var(--shadow)}
.panel-form label{display:grid;gap:.5rem;font-size:.91rem;font-weight:700}
.panel-form input,.panel-form select,.panel-form textarea,.dialog textarea{width:100%;padding:.8rem 1rem;border:1px solid #d7d0ce;border-radius:12px;background:#fff;font:inherit}
.panel-form textarea,.dialog textarea{min-height:90px;resize:vertical}
.wide-field{grid-column:1/-1}
.restricted-area{margin-top:2.5rem}
.sub-head{margin-bottom:1rem}
.wide-dialog{width:min(760px,calc(100% - 2rem))}
.wide-dialog form{grid-template-columns:repeat(2,minmax(0,1fr))}
.wide-dialog .dialog-head,.wide-dialog .form-error,.wide-dialog .dialog-actions{grid-column:1/-1}
.invoice-list{white-space:normal;max-width:260px;color:var(--muted);font-size:.85rem}
@media(max-width:700px){.panel-form,.wide-dialog form{grid-template-columns:1fr}
.wide-field,.wide-dialog .dialog-head,.wide-dialog .form-error,.wide-dialog .dialog-actions{grid-column:auto}}
.order-grouping-info{margin:.65rem 0 0;padding:.85rem 1rem;border-left:4px solid var(--red);border-radius:10px;background:#f7eeee;white-space:pre-wrap;line-height:1.5}
.vehicle-duration-details{padding:.75rem 1rem;border:1px solid var(--line);border-radius:12px;background:#faf8f7}
.vehicle-duration-details summary{cursor:pointer;font-weight:800;color:var(--charcoal)}
.vehicle-duration-details .hint{margin:.65rem 0}
.vehicle-duration-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem}
.vehicle-duration-grid label{display:grid;gap:.35rem;padding:.65rem;border-radius:10px;background:#fff;border:1px solid #ebe5e3;font-size:.82rem}
.vehicle-duration-grid input{height:2.65rem!important}
.customer-special-prices{padding:1rem;border:1px solid var(--line);border-radius:14px;background:#faf8f7}
.special-price-head{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;margin-bottom:.8rem}
.special-price-head>div{display:grid;gap:.25rem}
.special-price-head small{color:var(--muted);font-weight:400}
.special-price-head input{max-width:320px}
.special-price-list{display:grid;gap:.45rem;max-height:330px;overflow:auto;padding-right:.25rem}
.special-price-row{display:grid!important;grid-template-columns:minmax(0,1fr) 150px;align-items:center;gap:1rem;padding:.65rem .75rem;border:1px solid #e8e1df;border-radius:10px;background:#fff}
.special-price-row>span{display:grid;gap:.15rem;min-width:0}
.special-price-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.special-price-row small{color:var(--muted);font-weight:400}
.special-price-row input{height:2.65rem!important}
.bulletin-documents-head{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;margin:2.25rem 0 1rem}
.bulletin-documents-head h2{margin:.1rem 0}
.bulletin-documents-head p:last-child{margin:.35rem 0 0;color:var(--muted)}
.document-link-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem}
.document-link-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.5rem 1rem;padding:1rem 1.1rem;border:1px solid var(--line);border-radius:14px;background:#fff}
.document-link-card>a{color:var(--red);font-weight:800;text-decoration:none;overflow-wrap:anywhere}
.document-link-card>a:hover{text-decoration:underline}
.document-link-card>small{grid-column:1;color:var(--muted)}
.document-link-card>.row-actions{grid-column:2;grid-row:1/3}
.statistics-filter{display:flex;align-items:flex-end;gap:.7rem;flex-wrap:wrap}
.statistics-filter label{display:grid;gap:.3rem;color:var(--muted);font-size:.78rem;font-weight:700}
.statistics-filter input{height:2.7rem;padding:0 .7rem;border:1px solid var(--line);border-radius:9px;background:#fff}
@media(max-width:1000px){.vehicle-duration-grid,.document-link-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.vehicle-duration-grid,.document-link-grid{grid-template-columns:1fr}
.special-price-head,.bulletin-documents-head{align-items:stretch;flex-direction:column}
.special-price-head input{max-width:none}
.special-price-row{grid-template-columns:1fr}
.document-link-card{grid-template-columns:1fr}
.document-link-card>.row-actions{grid-column:1;grid-row:auto;justify-content:flex-start}}
.loyalty-dialog{width:min(860px,96vw)}
.loyalty-config-note{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:.2rem 0 1rem;padding:.85rem 1rem;border:1px solid var(--border);border-radius:14px;background:var(--surface-soft)}
.loyalty-config-note strong{font-size:.95rem}
.loyalty-config-note span{color:var(--text-muted);font-size:.82rem;text-align:right}
.loyalty-tier-list{display:grid;gap:.75rem}
.loyalty-tier-card{--loyalty-accent:var(--accent);display:grid;grid-template-columns:minmax(160px,1.2fr) repeat(3,minmax(130px,1fr));gap:.85rem;align-items:end;padding:1rem 1.05rem;border:1px solid color-mix(in srgb,var(--loyalty-accent) 45%,var(--border));border-left:5px solid var(--loyalty-accent);border-radius:16px;background:linear-gradient(135deg,color-mix(in srgb,var(--loyalty-accent) 8%,var(--surface)),var(--surface-soft));box-shadow:0 8px 22px rgba(0,0,0,.05)}
.loyalty-tier-identity{display:grid;gap:.3rem;align-self:center}
.loyalty-tier-identity small{color:var(--text-muted);font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.loyalty-tier-badge{display:inline-flex;width:max-content;align-items:center;padding:.32rem .65rem;border-radius:999px;background:color-mix(in srgb,var(--loyalty-accent) 18%,var(--surface));border:1px solid color-mix(in srgb,var(--loyalty-accent) 45%,var(--border));font-weight:900;color:var(--text)}
.loyalty-tier-field{display:grid;gap:.32rem;margin:0}
.loyalty-tier-field>span{color:var(--text-muted);font-size:.76rem;font-weight:800}
.loyalty-tier-input{display:flex;align-items:center;overflow:hidden;border:1px solid var(--border);border-radius:10px;background:var(--surface)}
.loyalty-tier-input input{width:100%;min-width:0;border:0!important;background:transparent!important;padding:.68rem .7rem!important;color:var(--text)!important}
.loyalty-tier-input>span{padding:0 .7rem;color:var(--text-muted);font-weight:800;border-left:1px solid var(--border)}
.loyalty-bronze{--loyalty-accent:#b06b35}
.loyalty-silver{--loyalty-accent:#87919b}
.loyalty-gold{--loyalty-accent:#c89412}
.loyalty-platinum{--loyalty-accent:#8d9dac}
.loyalty-ruby{--loyalty-accent:#a71937}
.review-pickup-toggle{display:block;cursor:pointer;margin:.6rem 0}
.review-pickup-toggle>input{position:absolute;opacity:0;pointer-events:none}
.review-pickup-toggle-box{display:flex;align-items:center;gap:.8rem;padding:.8rem .9rem;border:1px solid var(--border);border-radius:14px;background:var(--surface-soft);transition:border-color .16s ease,background .16s ease,box-shadow .16s ease}
.review-pickup-toggle-box strong,.review-pickup-toggle-box small{display:block}
.review-pickup-toggle-box small{margin-top:.16rem;color:var(--text-muted);font-size:.78rem}
.review-pickup-switch{position:relative;flex:0 0 auto;width:42px;height:24px;border-radius:999px;background:var(--border-strong,#918681);transition:background .16s ease}
.review-pickup-switch::after{content:"";position:absolute;width:18px;height:18px;left:3px;top:3px;border-radius:50%;background:var(--surface,#fff);box-shadow:0 1px 4px rgba(0,0,0,.3);transition:transform .16s ease}
.review-pickup-toggle>input:checked+.review-pickup-toggle-box{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 10%,var(--surface-soft))}
.review-pickup-toggle>input:checked+.review-pickup-toggle-box .review-pickup-switch{background:var(--accent)}
.review-pickup-toggle>input:checked+.review-pickup-toggle-box .review-pickup-switch::after{transform:translateX(18px)}
.review-pickup-toggle>input:focus-visible+.review-pickup-toggle-box{outline:2px solid var(--accent);outline-offset:2px}
@media(max-width:720px){.loyalty-config-note{align-items:flex-start;flex-direction:column}
.loyalty-config-note span{text-align:left}
.loyalty-tier-card{grid-template-columns:1fr 1fr}
.loyalty-tier-identity{grid-column:1/-1}}
.loyalty-dialog{width:min(980px,96vw)}
.loyalty-config-note{position:relative;overflow:hidden;padding:1rem 1.1rem;border-radius:18px;background:linear-gradient(135deg,color-mix(in srgb,var(--accent) 8%,var(--surface)),var(--surface-soft));box-shadow:0 12px 28px rgba(0,0,0,.06)}
.loyalty-config-note::before{content:"◆";position:absolute;right:1rem;top:-.35rem;font-size:4.6rem;line-height:1;color:color-mix(in srgb,var(--accent) 12%,transparent);pointer-events:none}
.loyalty-tier-list{display:grid;gap:.9rem}
.loyalty-tier-card{display:grid;grid-template-columns:210px minmax(0,1fr);gap:1rem;align-items:stretch;padding:0;border:1px solid color-mix(in srgb,var(--loyalty-accent) 38%,var(--border));border-radius:18px;background:var(--surface);overflow:hidden;box-shadow:0 10px 28px rgba(0,0,0,.06)}
.loyalty-tier-identity{display:flex;align-items:center;gap:.8rem;padding:1rem;background:linear-gradient(145deg,color-mix(in srgb,var(--loyalty-accent) 16%,var(--surface)),color-mix(in srgb,var(--loyalty-accent) 5%,var(--surface-soft)));border-right:1px solid color-mix(in srgb,var(--loyalty-accent) 28%,var(--border))}
.loyalty-tier-icon{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;border-radius:14px;background:color-mix(in srgb,var(--loyalty-accent) 20%,var(--surface));border:1px solid color-mix(in srgb,var(--loyalty-accent) 45%,var(--border));font-size:1.35rem;font-weight:900;color:var(--loyalty-accent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--surface) 45%,transparent)}
.loyalty-tier-identity>div{display:grid;gap:.35rem;min-width:0}
.loyalty-tier-identity small{font-size:.72rem;line-height:1.35;text-transform:none;letter-spacing:0;color:var(--text-muted);font-weight:650}
.loyalty-tier-badge{padding:0;border:0;background:transparent;font-size:1.05rem;color:var(--text);font-weight:950}
.loyalty-tier-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;padding:1rem}
.loyalty-tier-field{padding:.7rem;border:1px solid var(--border);border-radius:14px;background:var(--surface-soft)}
.loyalty-tier-field>span{font-size:.78rem;color:var(--text);font-weight:850}
.loyalty-field-help{color:var(--text-muted);font-size:.7rem;line-height:1.25}
.loyalty-tier-input{margin-top:.1rem;border-color:color-mix(in srgb,var(--loyalty-accent) 26%,var(--border));border-radius:11px;background:var(--surface)}
.loyalty-tier-input:focus-within{border-color:var(--loyalty-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--loyalty-accent) 14%,transparent)}
.loyalty-tier-input input{font-size:1rem;font-weight:850}
.customer-special-prices{border-radius:18px;background:var(--surface-soft);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--border) 80%,transparent)}
.special-price-count{display:inline-flex;width:max-content;margin-top:.4rem;padding:.22rem .55rem;border-radius:999px;background:color-mix(in srgb,var(--accent) 9%,var(--surface));border:1px solid color-mix(in srgb,var(--accent) 20%,var(--border));color:var(--text-muted);font-size:.72rem;font-weight:800}
.special-price-row{grid-template-columns:minmax(0,1fr) 170px;background:var(--surface);border-color:var(--border);transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}
.special-price-row.active{border-color:color-mix(in srgb,var(--accent) 55%,var(--border));background:color-mix(in srgb,var(--accent) 5%,var(--surface));box-shadow:0 5px 16px rgba(0,0,0,.05)}
.special-price-input-wrap{display:flex;align-items:center;overflow:hidden;border:1px solid var(--border);border-radius:10px;background:var(--surface)}
.special-price-input-wrap:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 12%,transparent)}
.special-price-input-wrap input{border:0!important;background:transparent!important;box-shadow:none!important;min-width:0}
.special-price-input-wrap span{padding:0 .7rem;color:var(--text-muted);font-weight:850;border-left:1px solid var(--border)}
#customerEmployerField,#customerEmployeeDiscountField{padding:.85rem 1rem;border:1px solid var(--border);border-radius:14px;background:var(--surface-soft)}
@media(max-width:820px){.loyalty-tier-card{grid-template-columns:1fr}
.loyalty-tier-identity{border-right:0;border-bottom:1px solid color-mix(in srgb,var(--loyalty-accent) 28%,var(--border))}
.loyalty-tier-fields{grid-template-columns:1fr 1fr}
.loyalty-tier-field:first-child{grid-column:1/-1}}
@media(max-width:560px){.loyalty-tier-fields{grid-template-columns:1fr}
.loyalty-tier-field:first-child{grid-column:auto}
.special-price-row{grid-template-columns:1fr}}
.loyalty-config-note{grid-template-columns:1fr;row-gap:.5rem}
.loyalty-config-note::before{display:none!important}
.loyalty-tier-fields{min-width:0}
.loyalty-tier-field,.loyalty-tier-input{min-width:0}
.loyalty-tier-input input{overflow:hidden;text-overflow:ellipsis}
.loyalty-dialog{width:min(980px,calc(100vw - 2rem));padding:0;overflow:hidden}
.loyalty-dialog>.dialog-head{margin:0;padding:1.4rem 1.6rem 1.1rem;border-bottom:1px solid var(--border)}
.loyalty-dialog-body{display:grid;gap:1rem;max-height:calc(100vh - 230px);overflow:auto;padding:1.25rem 1.6rem 1.4rem}
.loyalty-dialog>.dialog-actions{margin:0;padding:1rem 1.6rem 1.25rem;border-top:1px solid var(--border);background:var(--surface)}
.loyalty-config-note{display:grid!important;grid-template-columns:1fr!important;gap:.35rem!important;margin:0!important;padding:1rem 1.1rem!important;border-radius:14px!important;overflow:hidden!important}
.loyalty-config-note strong{font-size:.95rem;line-height:1.3}
.loyalty-config-note span{font-size:.82rem;line-height:1.45;text-align:left!important}
.loyalty-tier-card{margin:0;overflow:hidden;border-radius:16px}
.loyalty-tier-identity{padding:1rem 1.1rem}
.loyalty-tier-fields{padding:1rem 1.1rem;gap:.8rem}
.loyalty-tier-field{padding:.75rem .8rem}
:root[data-theme="DARK"] .loyalty-dialog>.dialog-actions{background:#242222;border-color:#514a48}
@media(max-width:700px){.loyalty-dialog>.dialog-head,.loyalty-dialog-body,.loyalty-dialog>.dialog-actions{padding-left:1rem;padding-right:1rem}
.loyalty-dialog-body{max-height:calc(100vh - 250px)}}
.loyalty-dialog>.dialog-head{border-color:var(--line);background:var(--white)}
.loyalty-dialog-body{background:var(--white)}
.loyalty-dialog>.dialog-actions{border-color:var(--line);background:var(--white)}
.loyalty-config-note{border:1px solid var(--line)!important;background:#faf8f7!important;box-shadow:none!important}
.loyalty-config-note strong{color:var(--ink)!important}
.loyalty-config-note span{color:var(--muted)!important}
.loyalty-tier-card{border:1px solid color-mix(in srgb,var(--loyalty-accent) 38%,var(--line))!important;background:var(--white)!important}
.loyalty-tier-identity{background:linear-gradient(145deg,color-mix(in srgb,var(--loyalty-accent) 13%,var(--white)),#faf8f7)!important;border-color:color-mix(in srgb,var(--loyalty-accent) 28%,var(--line))!important}
.loyalty-tier-identity small,.loyalty-field-help{color:var(--muted)!important}
.loyalty-tier-badge,.loyalty-tier-field>span{color:var(--ink)!important}
.loyalty-tier-icon{background:color-mix(in srgb,var(--loyalty-accent) 16%,var(--white))!important;border-color:color-mix(in srgb,var(--loyalty-accent) 45%,var(--line))!important}
.loyalty-tier-field{border:1px solid var(--line)!important;background:#faf8f7!important}
.loyalty-tier-input{border:1px solid var(--line)!important;background:var(--white)!important}
.loyalty-tier-input input{color:var(--ink)!important}
.loyalty-tier-input>span{color:var(--muted)!important;border-color:var(--line)!important}
:root[data-theme="DARK"] .loyalty-dialog>.dialog-head,:root[data-theme="DARK"] .loyalty-dialog-body,:root[data-theme="DARK"] .loyalty-dialog>.dialog-actions{background:#242222;border-color:#514a48}
:root[data-theme="DARK"] .loyalty-config-note,:root[data-theme="DARK"] .loyalty-tier-card,:root[data-theme="DARK"] .loyalty-tier-field,:root[data-theme="DARK"] .loyalty-tier-input{background:#2c2928!important;border-color:#514a48!important}
:root[data-theme="DARK"] .loyalty-tier-identity{background:linear-gradient(145deg,#352e2c,#2c2928)!important;border-color:#514a48!important}
:root[data-theme="DARK"] .loyalty-tier-badge,:root[data-theme="DARK"] .loyalty-tier-field>span,:root[data-theme="DARK"] .loyalty-tier-input input,:root[data-theme="DARK"] .loyalty-config-note strong{color:#f5eeee!important}
:root[data-theme="DARK"] .loyalty-tier-identity small,:root[data-theme="DARK"] .loyalty-field-help,:root[data-theme="DARK"] .loyalty-tier-input>span,:root[data-theme="DARK"] .loyalty-config-note span{color:#c9bfbc!important}
/* --- aus ui-v24.css --- */
.secret-dialog:not([open]){display:none!important}
.secret-dialog[open]{display:grid}
.search-bar{margin-bottom:1rem}
.search-bar input{width:min(100%,520px);height:3rem;padding:0 1rem;border:1px solid var(--line);border-radius:12px;background:#fff;font:inherit}
.prefix-field,.suffix-field{display:flex;align-items:center;width:100%;overflow:hidden;border:1px solid #d7d0ce;border-radius:12px;background:#fff}
.prefix-field>span,.suffix-field>span{padding:0 .8rem;color:var(--muted);font-weight:700;white-space:nowrap;background:#f4f1f0}
.prefix-field input,.suffix-field input{min-width:0;border:0!important;border-radius:0!important;box-shadow:none!important}
.dialog label>span:has(input[type="checkbox"]){display:flex;align-items:center;gap:.5rem;min-height:3rem}
.dialog input[type="checkbox"]{width:1.2rem;height:1.2rem}
/* --- aus ui-v25.css --- */
.vehicle-selections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
.vehicle-selections label{display:grid;gap:.35rem}
.tow-notification{position:fixed;z-index:1900;right:1.25rem;top:1.25rem;display:grid;gap:.45rem;width:min(390px,calc(100% - 2.5rem));padding:1rem 1.1rem;border-left:5px solid var(--red);border-radius:12px;color:#fff;background:#292727;box-shadow:0 20px 50px #0005}
.tow-notification span{color:#ffffffc7;line-height:1.45}
.tow-notification button{justify-self:start;padding:.4rem 0;border:0;color:#fff;background:transparent;font-weight:800;cursor:pointer}
.application-state{display:grid;gap:.2rem;white-space:normal}
.application-state small{color:var(--muted)}
.location-link{color:var(--red);font-weight:700}
.archive-active{border-color:var(--red)!important;color:var(--red)!important}
@media(max-width:700px){.vehicle-selections{grid-template-columns:1fr}}
/* --- aus ui-v25b.css --- */
.search-with-filter{display:flex;gap:.7rem}
.search-with-filter input{flex:1}
.search-with-filter select{min-width:180px;padding:0 .8rem;border:1px solid var(--line);border-radius:12px;background:#fff;font:inherit}
@media(max-width:620px){.search-with-filter{flex-direction:column}
.search-with-filter select{min-height:3rem}}
/* --- aus ui-v26.css --- */
.section-actions{display:flex;gap:.65rem}
.service-choice{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem;margin:0;padding:0;border:0}
.service-choice legend{margin-bottom:.5rem;font-weight:800}
.service-choice label{display:flex!important;align-items:center;justify-content:center;gap:.5rem;min-height:3.2rem;padding:.55rem;border:1px solid var(--line);border-radius:12px;cursor:pointer}
.service-choice label:has(input:checked){border-color:var(--red);color:var(--red);background:#f5eaea}
.service-choice input{width:auto!important;height:auto!important}
.vehicle-search-row{display:grid;grid-template-columns:1fr 2.5rem;gap:.5rem;align-items:end}
.vehicle-search-row button,.icon-action{display:inline-grid;place-items:center;min-width:2.35rem;min-height:2.35rem;padding:.35rem;border:1px solid var(--line);border-radius:8px;background:#fff;cursor:pointer}
.vehicle-search-row button{color:#8a1515;font-size:1.2rem}
.status-chip{display:inline-flex;padding:.3rem .55rem;border-radius:999px;font-size:.72rem;font-weight:800}
.status-chip.open{color:#8a5700;background:#fff0cf}
.status-chip.progress{color:#075b83;background:#e2f3fb}
.status-chip.completed{color:#1e6b45;background:#e7f4ed}
.archive-dialog{width:min(920px,calc(100% - 2rem));padding:1.3rem}
.archive-dialog .table-scroll{max-height:65vh;margin-top:1rem}
.row-actions.compact{gap:.3rem}
.row-actions.compact button{font-size:1rem}
.tow-secondary{color:var(--muted);font-size:.8rem;white-space:normal}
.tow-location{display:grid;gap:.3rem;white-space:normal}
@media(max-width:760px){.service-choice{grid-template-columns:1fr}
.section-actions{width:100%;flex-wrap:wrap}}
/* --- aus ui-v27.css --- */
.topbar-actions{position:relative;display:flex;align-items:center;gap:.55rem}
.top-action{font-size:1.25rem}
.status-picker{display:flex;align-items:center;gap:.35rem;padding:.35rem .55rem;border:1px solid var(--line);border-radius:10px;background:#fff}
.status-picker span{color:#2e8b57}
.status-picker select{border:0;background:transparent;min-width:9rem}
.account-menu{position:relative}
.account-trigger{display:grid;text-align:left;border:0;background:transparent;padding:.35rem .65rem;border-radius:10px;cursor:pointer}
.account-trigger small{color:var(--muted)}
.account-popover{position:absolute;right:0;top:calc(100% + .25rem);z-index:30;display:none;min-width:190px;padding:.4rem;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 35px #0002}
.account-menu:hover .account-popover,.account-menu:focus-within .account-popover{display:grid}
.account-popover button{border:0;background:transparent;padding:.7rem;text-align:left;border-radius:8px;cursor:pointer}
.account-popover button:hover{background:#f3eded}
.dashboard-columns{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.dashboard-panel{padding:1.2rem;background:#fff;border:1px solid var(--line);border-radius:16px}
.employee-status-grid,.dashboard-orders{display:grid;gap:.55rem}
.employee-status-grid article{display:grid;grid-template-columns:minmax(120px,1fr) minmax(100px,.7fr) auto;align-items:center;gap:.5rem;padding:.65rem;border-bottom:1px solid var(--line)}
.dashboard-orders button{display:grid;text-align:left;gap:.2rem;padding:.7rem;border:1px solid var(--line);border-radius:10px;background:#fff;cursor:pointer}
.copy-phone{border:0;background:transparent;color:#660000;cursor:pointer;padding:.25rem}
.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
.detail-grid>div{display:grid;gap:.25rem;padding:.7rem;border:1px solid var(--line);border-radius:10px}
.detail-grid span{white-space:pre-wrap;overflow-wrap:anywhere}
.overdue-row{background:#ffe6e6!important;color:#8b0000}
.subsection-title{margin-top:1.5rem}
.permission-table{width:100%;table-layout:fixed}
.permission-table th,.permission-table td{text-align:center;padding:.45rem .2rem}
.permission-table thead th:not(:first-child){height:125px;writing-mode:vertical-rl;transform:rotate(180deg);white-space:nowrap;font-size:.72rem}
.permission-table th:first-child,.permission-table td:first-child{position:sticky;left:0;z-index:2;text-align:left;background:#fff;width:210px}
.table-card table{width:100%;table-layout:fixed}
.table-card th,.table-card td{overflow-wrap:anywhere}
.table-card .icon-action{min-width:2rem}
.table-scroll{overflow-y:auto;overflow-x:hidden}
.section-head .icon-action{display:inline-grid}
.hidden{display:none!important}
@media(min-width:1100px){#view-repair th:nth-child(1){width:13%}
#view-repair th:nth-child(2){width:9%}
#view-repair th:nth-child(3){width:26%}
#view-repair th:nth-child(4){width:12%}
#view-repair th:nth-child(5){width:32%}
#view-repair th:nth-child(6){width:8%}
#view-users th:nth-child(1){width:26%}
#view-users th:nth-child(2){width:20%}
#view-users th:nth-child(3){width:20%}
#view-users th:nth-child(4){width:20%}
#view-users th:nth-child(5){width:14%}}
@media(max-width:900px){.dashboard-columns,.detail-grid{grid-template-columns:1fr}
.status-picker{display:none}
.table-card{overflow-x:auto}
.table-card table{min-width:720px}
.account-trigger #topbarUserName{display:none}}
.icon-action,.row-actions .icon-action{display:inline-flex;align-items:center;justify-content:center;width:2.55rem;height:2.55rem;min-width:2.55rem;padding:0;border:1px solid #cfc7c4;border-radius:9px;color:#333;background:#fff;line-height:1;vertical-align:middle;box-shadow:none}
.icon-action:hover,.row-actions .icon-action:hover{border-color:var(--red);color:var(--red);background:#f8eeee}
.icon-action.primary-button{color:#fff;background:var(--red);border-color:var(--red)}
.icon-action.primary-button:hover{color:#fff;background:var(--red-dark)}
.location-icon{display:inline-block;margin-right:.2rem;text-decoration:none}
.location-link{text-decoration:underline;text-underline-offset:2px}
#towDetailDialog{max-height:calc(100vh - 2rem);padding:1.5rem;overflow:hidden}
#towDetailDialog .detail-grid{max-height:calc(100vh - 205px);overflow-y:auto;padding:0 .35rem .6rem 0}
#towDetailDialog .dialog-actions{position:relative;margin-top:1rem;padding-top:.75rem;border-top:1px solid var(--line);background:#fff}
.permission-table thead th:not(:first-child){height:auto;min-height:0;padding:.75rem .2rem;writing-mode:horizontal-tb;transform:none;white-space:normal;word-break:break-word;hyphens:auto;font-size:.62rem;line-height:1.15}
.permission-table th:first-child,.permission-table td:first-child{width:200px}
.permission-table input{display:block;margin:auto}
.empty-hint{margin:.5rem 0;color:var(--muted)}
.dashboard-orders>article{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.75rem;padding:.7rem;border:1px solid var(--line);border-radius:10px;background:#fff}
.dashboard-orders .dashboard-order-open{display:grid;gap:.2rem;min-width:0;padding:0;border:0;background:transparent;text-align:left;cursor:pointer}
.dashboard-order-location{display:flex;align-items:center;min-width:0;white-space:nowrap}
.dashboard-order-location .location-link{max-width:16rem;overflow:hidden;text-overflow:ellipsis}
.employee-status-select,.status-picker select{appearance:none;min-width:10rem;padding:.55rem 2.1rem .55rem 2rem;border:1px solid #cfc7c4;border-radius:999px;color:#2b2726;background-color:#f7f4f3;background-image:radial-gradient(circle at 1rem 50%,#777 0 .28rem,transparent .31rem),linear-gradient(45deg,transparent 50%,#5d5552 50%),linear-gradient(135deg,#5d5552 50%,transparent 50%);background-position:0 0,calc(100% - 14px) 50%,calc(100% - 9px) 50%;background-size:auto,5px 5px,5px 5px;background-repeat:no-repeat;font-weight:700;cursor:pointer}
.employee-status-select:hover,.status-picker select:hover{border-color:var(--red);background-color:#fff}
.employee-status-select:focus,.status-picker select:focus{outline:3px solid #66000022;border-color:var(--red)}
.employee-status-select:disabled{cursor:not-allowed;opacity:.72}
.employee-status-select[data-status="ARBEITET"],.employee-status-select[data-status="BEREITSCHAFT"],.employee-status-select[data-status="TEL_ERREICHBAR"],.employee-status-select[data-status="LEITSTELLE"],.employee-status-select[data-status="BÜRO"]{background-image:radial-gradient(circle at 1rem 50%,#26884a 0 .28rem,transparent .31rem),linear-gradient(45deg,transparent 50%,#5d5552 50%),linear-gradient(135deg,#5d5552 50%,transparent 50%)}
.employee-status-select[data-status="PAUSE"],.employee-status-select[data-status="TERMIN"],.employee-status-select[data-status="AUSSENDIENST"]{background-image:radial-gradient(circle at 1rem 50%,#d78a00 0 .28rem,transparent .31rem),linear-gradient(45deg,transparent 50%,#5d5552 50%),linear-gradient(135deg,#5d5552 50%,transparent 50%)}
.employee-status-select[data-status="KRANK"],.employee-status-select[data-status="BEURLAUBT"],.employee-status-select[data-status="KOPFSCHMERZEN"]{background-image:radial-gradient(circle at 1rem 50%,#9b1919 0 .28rem,transparent .31rem),linear-gradient(45deg,transparent 50%,#5d5552 50%),linear-gradient(135deg,#5d5552 50%,transparent 50%)}
#view-vouchers th:nth-child(3){width:6%}
#view-vouchers th:nth-child(5){width:19%}
#view-vouchers th:nth-child(8){width:13%}
.status-picker{padding:0;border:0;background:transparent}
.money-value{font-weight:850;font-variant-numeric:tabular-nums}
.money-value.negative{color:#b42318}
.money-value.positive{color:#168447}
#view-billing th:nth-child(1){width:24%}
#view-billing th:nth-child(2){width:20%}
#view-billing th:nth-child(3){width:38%}
#view-billing th:nth-child(4){width:18%}
#view-prices th:nth-child(1){width:12%}
#view-prices th:nth-child(2){width:18%}
#view-prices th:nth-child(3){width:9%}
#view-prices th:nth-child(4),#view-prices th:nth-child(5){width:11%}
#view-prices th:nth-child(6){width:15%}
#view-prices th:nth-child(7){width:15%}
#view-prices th:nth-child(8){width:9%}
#priceDialog .check-label{display:flex;grid-column:1/-1;align-items:center;gap:.7rem;padding:.8rem;border:1px solid var(--line);border-radius:10px;background:#faf8f7}
#priceDialog .check-label input{width:1.2rem;height:1.2rem;margin:0;accent-color:var(--red)}
.order-form{display:grid;gap:1.35rem}
.order-customer-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(180px,1fr);gap:1rem;padding:1.25rem;border:1px solid var(--line);border-radius:18px;background:#fff}
.order-form label{display:grid;gap:.5rem;font-size:.91rem;font-weight:700;color:#3b3736}
.order-form select,.order-form input{width:100%;height:3rem;padding:0 .85rem;border:1px solid #d7d0ce;border-radius:10px;background:#fff}
.order-customer-info{grid-column:1/-1;padding:.75rem 1rem;border-radius:10px;color:#5e5552;background:#f5f1ef}
.order-block-head{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.order-block-head h2,.order-block-head p{margin:.2rem 0}
.order-block-head p{color:var(--muted)}
.order-vehicles{display:grid;gap:1rem}
.order-vehicle-card{position:relative;min-width:0;margin:0;padding:1.25rem;border:1px solid var(--line);border-radius:18px;background:#fff}
.order-vehicle-card legend{padding:0 .45rem;color:var(--red);font-weight:850}
.order-vehicle-remove{position:absolute;top:.75rem;right:.75rem}
.order-vehicle-fields{display:grid;grid-template-columns:2fr 1fr;gap:1rem;padding-right:3rem}
.order-work-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem 1rem;margin-top:1rem}
.order-work-list>strong{grid-column:1/-1}
.order-work-list label{display:flex;align-items:center;gap:.65rem;padding:.7rem;border:1px solid #e8e0dd;border-radius:10px;font-weight:600}
.order-work-list input{width:1.05rem;height:1.05rem;flex:0 0 auto;accent-color:var(--red)}
.order-vehicle-total{text-align:right;margin-top:.75rem;font-weight:850}
.order-summary{display:flex;justify-content:flex-end;gap:1.5rem;flex-wrap:wrap;padding:1.1rem 1.25rem;border-radius:14px;color:#675f5c;background:#eee9e7}
.order-summary span{display:grid;gap:.25rem}
.order-summary strong{color:#282323;font-size:1.1rem}
.order-summary .order-total strong{color:var(--red);font-size:1.35rem}
.order-result{padding:1rem;border:1px solid #bad9c7;border-radius:12px;color:#25563a;background:#e8f4ed;font-weight:800}
@media(max-width:800px){.order-customer-grid,.order-vehicle-fields,.order-work-list{grid-template-columns:1fr}
.order-vehicle-fields{padding-right:0}
.order-summary{justify-content:flex-start}}
.order-work-list{display:block}
.order-work-list>strong{display:block;margin-bottom:.65rem}
.order-work-rows{display:grid;gap:.65rem}
.order-work-row{display:grid;grid-template-columns:minmax(0,1fr) 130px 42px;align-items:end;gap:.65rem}
.order-work-row>[data-order-work]{width:100%;height:3rem;padding:0 .85rem;border:1px solid #d7d0ce;border-radius:10px}
.order-work-row .order-quantity{display:grid;padding:0;border:0}
.order-work-row .order-quantity input{width:100%;height:3rem;padding:0 .65rem}
.order-customer-grid input[type="checkbox"]{width:1.1rem;height:1.1rem;padding:0;accent-color:var(--red)}
.order-result{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.order-result strong{font-size:1.15rem}
.order-result .icon-action{flex:0 0 auto}
@media(max-width:800px){.order-work-row{grid-template-columns:minmax(0,1fr) 100px 42px}}
.order-vehicle-fields{grid-template-columns:minmax(0,2fr) minmax(180px,1fr);align-items:end}
.order-delivery-note{grid-column:1/-1}
.review-vehicle-meta{margin:.15rem 0 .75rem;color:var(--muted);font-size:.88rem}
#view-yard .search-bar{margin-bottom:1rem}
#view-yard .search-bar input{width:min(560px,100%);height:3rem;padding:0 .9rem;border:1px solid var(--line);border-radius:10px;background:#fff}
#yardTable tr.yard-ready td{background:#e7f4ed;color:#245a39}
#yardTable tr.yard-not-ready td{background:#f7e9e9;color:#7d2929}
#yardTable .icon-action:disabled{opacity:.38;cursor:not-allowed}
@media(max-width:800px){.order-vehicle-fields{grid-template-columns:1fr}
.order-delivery-note{grid-column:auto}}
.order-work-row{grid-template-columns:minmax(0,1fr) minmax(180px,220px) 42px}
@media(max-width:800px){.order-work-row{grid-template-columns:minmax(0,1fr) minmax(125px,160px) 42px}}
/* --- aus ui-v28.css --- */
.order-vehicle-fields{grid-template-columns:minmax(260px,2fr) minmax(180px,1fr) minmax(155px,.62fr) minmax(240px,1.35fr);align-items:end;}
.order-location-field{min-width:0}
.order-delivery-note{grid-column:auto!important;min-width:0}
.order-location-field select{min-width:0}
.permission-table th[data-role-column],.permission-table td[data-role-column]{background:inherit;transition:background-color .1s ease,box-shadow .1s ease}
.permission-table tr.permission-hover-row>td{background:#f8efee}
.permission-table .permission-hover-column{background:#f3e5e4!important}
.permission-table tr.permission-hover-row>.permission-hover-column{background:#ead1cf!important;box-shadow:inset 0 0 0 1px #66000033}
.permission-table tr.permission-hover-row>td:first-child{background:#f8efee!important}
.permission-table td[data-role-column]{cursor:crosshair}
.permission-table td[data-role-column] input{cursor:pointer}
.dashboard-special-banner{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:0 0 1rem;padding:.9rem 1rem;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 8px 24px #2815120a}
.dashboard-special-banner>div:first-child{display:grid;gap:.2rem}
.dashboard-special-banner span{color:var(--muted);font-size:.88rem}
.birthday-banner{border-color:#e3cf91;background:#fff9e9}
.handbook-content{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.handbook-card{padding:1.2rem 1.3rem;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 8px 24px #28151208}
.handbook-card h2{margin:.1rem 0 .45rem;font-size:1.15rem}
.handbook-intro{margin:0 0 .8rem;color:var(--ink);font-weight:650;line-height:1.5}
.handbook-card ul{margin:0;padding-left:1.2rem;color:var(--muted);line-height:1.55}
.handbook-empty{grid-column:1/-1}
.handbook-card li+li{margin-top:.45rem}
@media(max-width:1100px){.order-vehicle-fields{grid-template-columns:minmax(0,2fr) minmax(170px,1fr)}
.order-location-field,.order-delivery-note{grid-column:auto!important}}
@media(max-width:800px){.order-vehicle-fields{grid-template-columns:1fr}
.handbook-content{grid-template-columns:1fr}
.dashboard-special-banner{align-items:stretch;flex-direction:column}}
:root[data-theme="DARK"] .permission-table tr.permission-hover-row>td{background:#392d2c}
:root[data-theme="DARK"] .permission-table .permission-hover-column{background:#352928!important}
:root[data-theme="DARK"] .permission-table tr.permission-hover-row>.permission-hover-column{background:#4a302f!important;box-shadow:inset 0 0 0 1px #b5656555}
:root[data-theme="DARK"] .permission-table tr.permission-hover-row>td:first-child{background:#392d2c!important}
:root[data-theme="DARK"] .dashboard-special-banner,:root[data-theme="DARK"] .handbook-card{color:var(--ink);border-color:#514a48;background:#242222}
:root[data-theme="DARK"] .birthday-banner{background:#3a3325;border-color:#665d3c}
/* --- aus ui-v29.css --- */
.quick-customer-actions{display:flex;align-items:center;gap:.35rem;padding-right:.2rem}
.quick-customer-button{min-height:2.3rem;padding:.35rem .62rem;border:1px solid #d8cfcc;border-radius:9px;color:var(--red);background:#fff;font-size:.76rem;font-weight:850;cursor:pointer;white-space:nowrap}
.quick-customer-button:hover{color:#fff;border-color:var(--red);background:var(--red)}
.permission-table .permission-subgroup td{position:sticky;left:0;z-index:3;padding:.72rem 1rem!important;border-top:2px solid #d8cfcc;border-bottom:1px solid #d8cfcc;color:#5b2525;background:#f4ecea!important;font-size:.76rem;font-weight:900;letter-spacing:.09em;text-transform:uppercase;text-align:left!important}
.permission-table .permission-subgroup:first-child td{border-top:0}
.employee-table-card{overflow-x:auto}
.employee-table{min-width:980px;table-layout:auto!important}
.employee-table th,.employee-table td{padding:.75rem .85rem;vertical-align:middle}
#view-users .employee-table th:nth-child(1){width:22%}
#view-users .employee-table th:nth-child(2){width:15%}
#view-users .employee-table th:nth-child(3){width:12%}
#view-users .employee-table th:nth-child(4){width:20%}
#view-users .employee-table th:nth-child(5){width:20%}
#view-users .employee-table th:nth-child(6){width:11%}
.employee-table .user-cell strong{font-size:.95rem}
.employee-table .user-cell span{font-size:.76rem;overflow-wrap:anywhere}
.employee-table .inline-select,.employee-table .employee-status-select{width:100%;min-width:0;max-width:none}
.employee-row-actions{flex-wrap:nowrap;justify-content:flex-end}
.employee-row-actions .icon-action{flex:0 0 auto}
.accounting-description{min-width:0}
.accounting-entry-main{font-weight:650}
.accounting-entry-meta{margin-top:.22rem;color:var(--muted);font-size:.78rem;font-weight:750}
@media(max-width:1120px){.quick-customer-actions{display:none!important}}
@media(max-width:800px){.employee-table{min-width:900px}}
:root[data-theme="DARK"] .permission-table .permission-subgroup td{color:#f0caca;border-color:#574a47;background:#352827!important}
:root[data-theme="DARK"] .quick-customer-button{color:#f3dddd;border-color:#5a514e;background:#302d2c}
/* --- aus theme.css --- */
.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"] .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-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}}
.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}
.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}
.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%}}
.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}
.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}
: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}
#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}}
.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}}
.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}
.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}
#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}
.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}
.choice-list{display:grid;gap:.4rem;max-height:270px;overflow:auto}
.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-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){.table-card{overflow-x:auto}
.table-card table{min-width:720px}}
.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}}
: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"] 


.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}}
.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}
.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-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}
:root[data-theme="DARK"] .mailbox-target-chips span{background:#2c2928;border-color:#514a48}
.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}}
.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)}
.loyalty-dialog{width:min(980px,calc(100vw - 2rem));max-height:calc(100vh - 2rem)}
.loyalty-dialog form{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{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}}
.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%}}
.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%}}
.order-customer-search-field{position:relative;z-index:12}
#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}
.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}}
.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}}
.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}
: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}
#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}
.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-section>strong{color:var(--muted);font-size:.72rem;font-weight:850;text-transform:uppercase;letter-spacing:.065em}
.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-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-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-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}
.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}
/* --- aus ui-v30.css --- */
:root{--surface-card:#fff;--surface-soft:#faf8f7;--surface-raised:#fff;--surface-accent:#f7eeee;--text-strong:#242222;--text-soft:#716b69;--border-soft:#ded8d6;--stat-revenue:#660000;--stat-cost:#9b5c2e;--stat-margin:#2f7d52;--stat-orders:#5c4f9d;--stat-track:#eee8e6;}
:root[data-theme="DARK"]{--surface-card:#242222;--surface-soft:#2c2928;--surface-raised:#302d2c;--surface-accent:#382526;--text-strong:#f5f1ef;--text-soft:#b9b0ad;--border-soft:#514a48;--stat-revenue:#d56c6c;--stat-cost:#d59a62;--stat-margin:#6cc69a;--stat-orders:#a99ce5;--stat-track:#3a3634;color-scheme:dark;}
.order-grouping-info,.vehicle-duration-details,.customer-special-prices,.special-price-row,.document-link-card,.statistics-kpi,.statistics-chart-card{color:var(--text-strong);border-color:var(--border-soft);background:var(--surface-card);}
.order-grouping-info{background:var(--surface-accent);border-left-color:var(--red)}
.vehicle-duration-details,.customer-special-prices{background:var(--surface-soft)}
.vehicle-duration-details summary{color:var(--text-strong)}
.vehicle-duration-grid label{color:var(--text-strong);border-color:var(--border-soft);background:var(--surface-raised)}
.vehicle-duration-grid label:focus-within{border-color:#9b5555;box-shadow:0 0 0 2px #66000026}
.special-price-row{background:var(--surface-raised)}
.special-price-row:hover{border-color:#9b5555}
.special-price-row strong,.special-price-head>div>strong{color:var(--text-strong)}
.special-price-row small,.special-price-head small,.bulletin-documents-head p:last-child{color:var(--text-soft)}
.document-link-card{position:relative;min-height:92px;padding:1rem 1.1rem 1rem 3.7rem;transition:transform .16s ease,border-color .16s ease,background .16s ease}
.document-link-card::before{content:"↗";position:absolute;left:1rem;top:1rem;display:grid;place-items:center;width:2rem;height:2rem;border-radius:9px;color:var(--red);background:#66000012;font-size:1rem;font-weight:900}
.document-link-card:hover{transform:translateY(-1px);border-color:#9b5555;background:var(--surface-soft)}
.document-link-card>a{color:var(--red);font-size:.96rem}
.document-link-card>small{color:var(--text-soft)}
:root[data-theme="DARK"] .document-link-card::before{color:#ff9d9d;background:#662f2f66}
:root[data-theme="DARK"] .document-link-card>a{color:#ff9d9d}
:root[data-theme="DARK"] .order-grouping-info{color:#f5e9e9;background:#382526}
:root[data-theme="DARK"] .vehicle-duration-details summary{color:#fff}
:root[data-theme="DARK"] .vehicle-duration-grid input::placeholder,:root[data-theme="DARK"] .special-price-head input::placeholder{color:#958b88}
:root[data-theme="DARK"] .warning{color:#f1d28a;background:#3d321d}
:root[data-theme="DARK"] .secret-box{color:#f1eeee;border-color:#514a48;background:#302d2c}
:root[data-theme="DARK"] .search-with-filter select,:root[data-theme="DARK"] .statistics-filter input{color:#f3eeee;border-color:#5a514e;background:#302d2c}
:root[data-theme="DARK"] .status-picker{color:#f1eeee;border-color:#5a514e;background:#302d2c}
:root[data-theme="DARK"] .status-picker select{color:#f1eeee}
:root[data-theme="DARK"] .account-popover{color:#f1eeee;border-color:#514a48;background:#242222}
:root[data-theme="DARK"] .account-popover button{color:#f1eeee}
:root[data-theme="DARK"] .account-popover button:hover{background:#352f2e}
:root[data-theme="DARK"] .icon-button:hover{color:#ff9d9d;background:#352f2e}
:root[data-theme="DARK"] .status-chip.open{color:#f0c77d;background:#45361c}
:root[data-theme="DARK"] .status-chip.completed{color:#a8e0be;background:#20382b}
:root[data-theme="DARK"] .overdue-row td{color:#efb0b0!important;background:#402626!important}
:root[data-theme="DARK"] .birthday-banner{color:#f3dfaa!important;border-color:#7b6936!important;background:#39321f!important}
:root[data-theme="DARK"] .quick-customer-button{color:#ff9d9d;border-color:#5a514e;background:#302d2c}
:root[data-theme="DARK"] .quick-customer-button:hover{border-color:#914141;background:#3a3231}
.statistics-filter{align-items:flex-end}
.statistics-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.9rem;margin-bottom:1rem}
.statistics-kpi{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;align-items:center;gap:.2rem .75rem;min-height:96px;padding:1rem 1.1rem;border:1px solid var(--border-soft);border-radius:16px;box-shadow:0 8px 24px #28151208}
.statistics-kpi-icon{grid-row:1/3;display:grid;place-items:center;width:2.75rem;height:2.75rem;border-radius:12px;background:#66000010;font-size:1.25rem}
.statistics-kpi strong{font-size:1.55rem;line-height:1.05;color:var(--text-strong)}
.statistics-kpi span:not(.statistics-kpi-icon),.statistics-kpi small{color:var(--text-soft);font-size:.78rem;font-weight:750}
.statistics-dashboard-grid{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(0,1.35fr);gap:1rem}
.statistics-chart-card{min-width:0;padding:1.1rem 1.15rem;border:1px solid var(--border-soft);border-radius:18px;box-shadow:0 8px 24px #28151208}
.statistics-chart-card.wide{grid-column:2;grid-row:1/3}
.statistics-card-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}
.statistics-card-head strong{font-size:.96rem}
.statistics-card-head span{color:var(--text-soft);font-size:.75rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.statistics-finance{display:grid;place-items:center;gap:1rem;padding:.3rem}
.statistics-donut{position:relative;display:grid;place-items:center;width:min(210px,65vw);aspect-ratio:1;border-radius:50%;background:conic-gradient(var(--stat-cost) 0 var(--cost-angle,0deg),var(--stat-margin) var(--cost-angle,0deg) 360deg);box-shadow:inset 0 0 0 1px #00000010}
.statistics-donut::after{content:"";position:absolute;width:66%;aspect-ratio:1;border-radius:50%;background:var(--surface-card);box-shadow:0 0 0 1px var(--border-soft)}
.statistics-donut-center{position:relative;z-index:1;display:grid;gap:.15rem;text-align:center}
.statistics-donut-center small{color:var(--text-soft);font-size:.72rem;text-transform:uppercase;font-weight:800}
.statistics-donut-center strong{font-size:1.35rem;color:var(--text-strong)}
.statistics-legend{display:flex;justify-content:center;gap:1.2rem;flex-wrap:wrap}
.statistics-legend span{display:flex;align-items:center;gap:.4rem;color:var(--text-soft);font-size:.78rem;font-weight:700}
.statistics-legend i{width:.7rem;height:.7rem;border-radius:50%}
.statistics-legend .cost{background:var(--stat-cost)}
.statistics-legend .margin{background:var(--stat-margin)}
.statistics-bars{display:grid;gap:.8rem;max-height:440px;overflow:auto;padding-right:.3rem}
.statistics-bar-row{display:grid;grid-template-columns:minmax(110px,180px) minmax(120px,1fr) auto;align-items:center;gap:.75rem}
.statistics-bar-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.82rem;font-weight:750;color:var(--text-strong)}
.statistics-bar-track{height:.78rem;overflow:hidden;border-radius:999px;background:var(--stat-track)}
.statistics-bar-fill{display:block;height:100%;min-width:3px;border-radius:inherit;background:linear-gradient(90deg,var(--stat-revenue),#9b4b4b);transition:width .25s ease}
.statistics-bars.orders .statistics-bar-fill{background:linear-gradient(90deg,var(--stat-orders),#7c70bc)}
.statistics-bar-value{min-width:72px;text-align:right;color:var(--text-soft);font-size:.78rem;font-weight:800}
.statistics-empty{padding:2rem;text-align:center;color:var(--text-soft)}
:root[data-theme="DARK"] .statistics-kpi-icon{background:#662f2f66}
:root[data-theme="DARK"] .statistics-kpi,:root[data-theme="DARK"] .statistics-chart-card{box-shadow:0 8px 24px #0003}
@media(max-width:1000px){.statistics-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
.statistics-dashboard-grid{grid-template-columns:1fr}
.statistics-chart-card.wide{grid-column:auto;grid-row:auto}}
@media(max-width:650px){.statistics-kpis{grid-template-columns:1fr}
.statistics-bar-row{grid-template-columns:1fr auto}
.statistics-bar-track{grid-column:1/-1;grid-row:2}
.document-link-card{padding-left:3.4rem}}
/* --- aus ui-v224.css --- */
.app-confirm{max-width:560px;width:calc(100% - 32px);max-height:85vh;overflow:auto;padding:28px;border-radius:18px}
.app-confirm::backdrop{background:rgba(9,17,30,.65);backdrop-filter:blur(3px)}
.app-confirm h2{margin:0 0 14px}
.payment-detail{display:grid;gap:12px;padding:20px;margin:20px 0;border:1px solid #9baab8;border-radius:12px;background:rgba(78,139,190,.08)}
.payment-detail>strong{font-size:2rem}
.payment-detail .copy-invoice{text-align:left;font-size:1.3rem}
[data-theme="DARK"] .payment-detail .copy-invoice{color:#ffb4ae}
.dialog .check-label{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.dialog .check-label input[type="checkbox"]{width:20px;height:20px;flex:0 0 20px;margin:0}
.stamp-warning{display:block;white-space:normal;color:#913b00;background:#fff1d1;border:1px solid #d79026;border-radius:8px;padding:10px;margin:8px 0;font-weight:700}
[data-theme="DARK"] .stamp-warning{color:#ffe0a4;background:#483516;border-color:#a77935}
.receipt-row{display:block;width:100%;margin:8px 0;text-align:left;white-space:normal}
.order-form .order-stamp-field{display:inline-flex;align-items:center;gap:.7rem;width:fit-content;max-width:100%;min-height:2.85rem;margin:1rem 0 0;padding:.7rem .9rem;border:1px solid #d8cfcc;border-radius:11px;color:#463f3d;background:#faf7f6;font-weight:750;line-height:1.25;cursor:pointer;user-select:none;transition:border-color .16s ease,background-color .16s ease,box-shadow .16s ease,color .16s ease;}
.order-form .order-stamp-field:hover{border-color:#a86c67;color:#690d0d;background:#fff1f0}
.order-form .order-stamp-field:focus-within{border-color:#7c1717;outline:3px solid rgba(124,23,23,.16);outline-offset:1px}
.order-form .order-stamp-field:has(input:checked){border-color:#8f3e39;color:#690d0d;background:#f8e7e5;box-shadow:inset 3px 0 #7c1717}
.order-form .order-stamp-field input[type="checkbox"]{flex:0 0 1.25rem;width:1.25rem!important;height:1.25rem!important;margin:0;padding:0;border-radius:4px;accent-color:#7c1717;cursor:pointer;}
:root[data-theme="DARK"] .order-form .order-stamp-field{color:#eee7e5;border-color:#5d5552;background:#2d2a29}
:root[data-theme="DARK"] .order-form .order-stamp-field:hover{color:#ffd3cf;border-color:#a76e69;background:#3c302f}
:root[data-theme="DARK"] .order-form .order-stamp-field:focus-within{border-color:#d88989;outline-color:rgba(216,137,137,.24)}
:root[data-theme="DARK"] .order-form .order-stamp-field:has(input:checked){color:#ffe1de;border-color:#b96d67;background:#472e2d;box-shadow:inset 3px 0 #d88989}
input:not([type="checkbox"]):not([type="radio"]),select,textarea{color:var(--ink);border-color:#cfc5c2;background:#fff;transition:border-color .16s ease,background-color .16s ease,box-shadow .16s ease,color .16s ease;}
input:not([type="checkbox"]):not([type="radio"]):hover:not(:disabled):not([readonly]),select:hover:not(:disabled),textarea:hover:not(:disabled):not([readonly]){border-color:#9d7772;background:#fffafa}
input:not([type="checkbox"]):not([type="radio"]):focus,select:focus,textarea:focus{border-color:#7c1717;outline:3px solid rgba(124,23,23,.16);outline-offset:1px;box-shadow:none}
input::placeholder,textarea::placeholder{color:#827875;opacity:1}
input:disabled,select:disabled,textarea:disabled,input[readonly],textarea[readonly]{color:#716967;border-color:#d8d1cf;background:#eeeae8;cursor:not-allowed;opacity:.82}
input[type="checkbox"],input[type="radio"]{accent-color:#7c1717}
select option{color:#241f1e;background:#fff}
.prefix-field input,.suffix-field input{border-color:transparent;background:transparent;outline:0;box-shadow:none}
.prefix-field:hover,.suffix-field:hover{border-color:#9d7772;background:#fffafa}
.prefix-field:focus-within,.suffix-field:focus-within{border-color:#7c1717;outline:3px solid rgba(124,23,23,.16);outline-offset:1px}
.smart-search-menu{border-color:#cfc5c2;background:#fff;box-shadow:0 14px 36px rgba(30,18,16,.16)}
.smart-search-option{color:#241f1e;background:#fff}
.smart-search-option:hover,.smart-search-option:focus-visible,.smart-search-option.is-active{color:#5f0808;background:#f7eeee}
.row-actions button:hover:not(:disabled),.icon-action:hover:not(:disabled),.secondary-button:hover:not(:disabled){border-color:#8d3c3c;color:#790d0d;background:#fbf1f1}
button:focus-visible,a:focus-visible{outline:3px solid rgba(124,23,23,.25);outline-offset:2px}
:root[data-theme="DARK"] input:not([type="checkbox"]):not([type="radio"]),:root[data-theme="DARK"] select,:root[data-theme="DARK"] textarea{color:#f6f1f0;border-color:#665c59;background:#302d2c;color-scheme:dark}
:root[data-theme="DARK"] input:not([type="checkbox"]):not([type="radio"]):hover:not(:disabled):not([readonly]),:root[data-theme="DARK"] select:hover:not(:disabled),:root[data-theme="DARK"] textarea:hover:not(:disabled):not([readonly]){border-color:#a77570;background:#3a3534}
:root[data-theme="DARK"] input:not([type="checkbox"]):not([type="radio"]):focus,:root[data-theme="DARK"] select:focus,:root[data-theme="DARK"] textarea:focus{border-color:#d88989;outline-color:rgba(216,137,137,.24)}
:root[data-theme="DARK"] input::placeholder,:root[data-theme="DARK"] textarea::placeholder{color:#aaa09d}
:root[data-theme="DARK"] input:disabled,:root[data-theme="DARK"] select:disabled,:root[data-theme="DARK"] textarea:disabled,:root[data-theme="DARK"] input[readonly],:root[data-theme="DARK"] textarea[readonly]{color:#aba29f;border-color:#4f4947;background:#252322}
:root[data-theme="DARK"] select option{color:#f6f1f0;background:#302d2c}
:root[data-theme="DARK"] .prefix-field input,:root[data-theme="DARK"] .suffix-field input{border-color:transparent;background:transparent}
:root[data-theme="DARK"] .prefix-field:hover,:root[data-theme="DARK"] .suffix-field:hover{border-color:#a77570;background:#3a3534}
:root[data-theme="DARK"] .prefix-field:focus-within,:root[data-theme="DARK"] .suffix-field:focus-within{border-color:#d88989;outline-color:rgba(216,137,137,.24)}
:root[data-theme="DARK"] .smart-search-menu{border-color:#665c59;background:#302d2c;box-shadow:0 16px 42px rgba(0,0,0,.42)}
:root[data-theme="DARK"] .smart-search-option{color:#f6f1f0;background:#302d2c}
:root[data-theme="DARK"] .smart-search-option:hover,:root[data-theme="DARK"] .smart-search-option:focus-visible,:root[data-theme="DARK"] .smart-search-option.is-active{color:#fff;background:#4b302f}
:root[data-theme="DARK"] .row-actions button:hover:not(:disabled),:root[data-theme="DARK"] .icon-action:hover:not(:disabled),:root[data-theme="DARK"] .secondary-button:hover:not(:disabled){border-color:#c77d77;color:#ffd0cc;background:#49302f}
.tow-own-order{box-shadow:inset 4px 0 0 var(--accent, #d71920)}
.tow-own-assignment{font-weight:800;color:var(--accent, #d71920)}
.review-headline{margin:.3rem 0 0;font-weight:800;color:var(--text-muted)}
.role-head-actions{display:flex;justify-content:center;gap:.25rem;margin-top:.35rem}
.role-head-actions .icon-action{width:1.8rem;height:1.8rem;min-width:1.8rem;padding:0;font-size:.8rem}
.topbar-actions .tow-create-action{display:inline-flex;align-items:center;justify-content:center;width:auto;min-width:3.7rem;height:2.55rem;min-height:2.55rem;padding:.4rem .78rem;border-radius:9px;font-size:.8rem;font-weight:850;letter-spacing:.025em;box-shadow:0 4px 12px #66000018}
.topbar-actions .notification-action{width:2.55rem;height:2.55rem;min-width:2.55rem;font-size:1.15rem}
.topbar-actions .notification-action.notification-ready{color:var(--green);border-color:color-mix(in srgb,var(--green) 55%,var(--line));background:color-mix(in srgb,var(--green) 9%,var(--white))}
:root[data-theme="DARK"] .topbar-actions .tow-create-action{color:#ffb0b0;border-color:#6f5150;background:#302d2c;box-shadow:none}
:root[data-theme="DARK"] .topbar-actions .tow-create-action:hover{color:#fff;border-color:#a34e4e;background:#6b1b1b}
:root[data-theme="DARK"] .topbar-actions .notification-action.notification-ready{color:#8ee2ad;border-color:#397654;background:#22382a}
/* --- aus modern.css --- */
:root{color-scheme: light;--lsc-red: #410101;--lsc-gray: #323232;--ui-accent: #410101;--ui-accent-fill: #410101;--ui-accent-soft: #f4e9e9;--ui-surface: #ffffff;--ui-surface-soft: #f7f7f7;--ui-border: #d8d8d8;--ui-text: #323232;--ui-muted: #686868;--ui-success: #236a47;--ui-success-fill: #236a47;--ui-success-soft: #e7f3eb;--ui-focus: #8c3535;--ui-canvas: #f1f1f1;--ui-shadow: 0 4px 18px #32323208, 0 1px 3px #32323205;--ui-popover-shadow: 0 16px 44px #32323226;--red: var(--ui-accent-fill);--red-dark: #630909;--ink: var(--ui-text);--muted: var(--ui-muted);--line: var(--ui-border);--paper: var(--ui-canvas);--white: var(--ui-surface);--green: var(--ui-success);--surface-soft: var(--ui-surface-soft);--shadow: var(--ui-shadow);--accent: var(--ui-accent);--text-muted: var(--ui-muted);font-family: "Segoe UI", system-ui, sans-serif;}
:root[data-theme="DARK"]{color-scheme: dark;--ui-accent: #efb2b2;--ui-accent-fill: #410101;--ui-accent-soft: #3c2929;--ui-surface: #323232;--ui-surface-soft: #393939;--ui-border: #595959;--ui-text: #f3f3f3;--ui-muted: #bcbcbc;--ui-success: #9ed9b7;--ui-success-fill: #286b49;--ui-success-soft: #233b2e;--ui-focus: #efb2b2;--ui-canvas: #242424;--ui-shadow: 0 5px 20px #0002, 0 1px 3px #0002;--ui-popover-shadow: 0 18px 48px #0007;--red-dark: #681010;--ink: var(--ui-text);--muted: var(--ui-muted);--line: var(--ui-border);--paper: var(--ui-canvas);--white: var(--ui-surface);--green: var(--ui-success);--shadow: var(--ui-shadow);}
:root,:root[data-theme="DARK"]{--surface-card: var(--ui-surface);--surface-soft: var(--ui-surface-soft);--surface-raised: var(--ui-surface-soft);--surface-accent: var(--ui-accent-soft);--text-strong: var(--ui-text);--text-soft: var(--ui-muted);--border-soft: var(--ui-border);--stat-revenue: var(--ui-accent);--stat-margin: var(--ui-success);--stat-track: var(--ui-border);--stat-orders: var(--ui-muted);--stat-cost: var(--ui-muted);}
:root:root body,:root:root .workspace{background: var(--ui-canvas); color: var(--ui-text);}
body{line-height: 1.5; -webkit-font-smoothing: antialiased;}
::selection{color: var(--ui-text); background: var(--ui-accent-soft);}
:root .content{padding: clamp(1.2rem, 2.5vw, 2.5rem);}
:root .section-head{gap: 1.25rem; margin-bottom: 1.25rem;}
:root .section-head h1{font-size: clamp(1.75rem, 2.5vw, 2.55rem); letter-spacing: -.04em; line-height: 1.15;}
:root .section-head p:last-child{line-height: 1.6; color: var(--ui-muted);}
:root .eyebrow{color: var(--ui-accent); font-size: .69rem; letter-spacing: .12em;}
:root :is(.hint, .empty-hint, .privacy-note){color: var(--ui-muted);}
:root:root :is(.copy-phone, .location-link, .copy-value, .copy-invoice){color: var(--ui-accent);}
:root .form-error{color: #a62525; line-height: 1.5;}
:root[data-theme="DARK"] .form-error{color: #ffadad;}
:root .sidebar{background: linear-gradient(165deg, #323232, #292929 55%, #323232);color: #f5f5f5;border-right: 1px solid #ffffff12;padding-top: 1.2rem;}
.sidebar .sidebar-brand{color: #fff; letter-spacing: -.02em; border-bottom: 1px solid #ffffff14; margin-bottom: .65rem;}
.sidebar .sidebar-brand img{object-fit: contain;}
.sidebar .navigation{gap: .3rem; padding-right: .15rem; scrollbar-width: thin; scrollbar-color: #686868 transparent;}
.sidebar .navigation button{min-height: 2.7rem; border-radius: 9px; color: #dddddd; font-size: .86rem; transition: background-color .16s ease, color .16s ease;}
.sidebar .navigation button:hover{background: #ffffff0f; color: #fff;}
.sidebar .navigation button.active{color: #fff; background: #410101; box-shadow: inset 3px 0 #cf8989;}
.sidebar .nav-label{color: #b9b9b9; margin-top: 1.1rem; font-size: .64rem; letter-spacing: .1em;}
.sidebar .nav-icon{filter: saturate(.8);}
.sidebar .sidebar-collapse{background: #410101; border-color: #896666;}
.sidebar .theme-toggle{background: #ffffff06; border-color: #ffffff1b; color: #e8e8e8;}
.sidebar .theme-toggle:hover{background: #ffffff10;}
.sidebar .nav-unread{color: #fff; background: #681010;}
:root:root .topbar{background: var(--ui-surface); border-color: var(--ui-border); box-shadow: 0 2px 10px #32323203; min-height: 82px;}
:root .topbar h2{color: var(--ui-text); font-size: 1.2rem; letter-spacing: -.025em;}
:root .topbar-actions{gap: .55rem; flex-wrap: wrap; justify-content: flex-end;}
:root:root .account-trigger{color: var(--ui-text); border-radius: 10px;}
:root:root .account-trigger small{color: var(--ui-muted);}
:root:root .account-trigger:hover,:root:root .account-menu:focus-within .account-trigger{background: var(--ui-accent-soft);}
:root:root .account-popover{border: 1px solid var(--ui-border); border-radius: 14px; background: var(--ui-surface); color: var(--ui-text); padding: .4rem; box-shadow: var(--ui-popover-shadow);}
:root:root .account-popover button{border-radius: 9px; padding: .7rem .8rem; color: var(--ui-text); background: transparent;}
:root:root .account-popover button:hover,:root:root .account-popover button:focus-visible{color: var(--ui-accent); background: var(--ui-accent-soft);}
:root #logoutButton{border-top: 1px solid var(--ui-border); margin-top: .25rem;}
:root:root .status-picker{background: var(--ui-surface-soft); border-color: var(--ui-border);}
:root:root .status-picker select{background: transparent; color: var(--ui-text);}
:root:root :is(.table-card, .module-card, .dashboard-panel, .panel-form, .accounting-summary article, .statistics-time-kpis article){background: var(--ui-surface); color: var(--ui-text);border-color: var(--ui-border); border-radius: 16px; box-shadow: var(--ui-shadow);}
:root:root .dashboard-panel h2{color: var(--ui-text); font-size: 1.08rem; letter-spacing: -.02em;}
:root:root .dashboard-orders > article{background: var(--ui-surface-soft); color: var(--ui-text); border-color: var(--ui-border); border-radius: 11px; box-shadow: none;}
:root:root .employee-status-grid article{border-color: var(--ui-border);}
:root:root :is(.employee-status-grid, .dashboard-orders) strong{color: var(--ui-text);}
:root:root :is(.employee-status-grid, .dashboard-orders) span{color: var(--ui-muted);}
:root:root .dashboard-orders .dashboard-order-open{color: var(--ui-text); background: transparent;}
:root:root .accounting-summary span{color: var(--ui-muted);}
:root:root .accounting-summary strong{color: var(--ui-text);}
:root:root .accounting-summary .accounting-total{background: var(--ui-accent-soft); border-color: color-mix(in srgb, var(--ui-accent) 40%, var(--ui-border));}
:root:root .table-card{border-color: var(--ui-border);}
:root:root :is(th, .table-card thead th){color: var(--ui-muted); background: var(--ui-surface-soft); border-color: var(--ui-border); letter-spacing: .065em; font-size: .69rem;}
:root:root td{border-bottom-color: var(--ui-border); color: var(--ui-text); line-height: 1.45;}
.table-card td{font-size: .86rem; padding-top: .9rem; padding-bottom: .9rem;}
:root:root .clickable-row:hover td{background: var(--ui-accent-soft);}
:root:root .permission-table td:first-child{background: var(--ui-surface);}
:root:root .permission-table thead th:first-child{background: var(--ui-surface-soft);}
:root .table-pagination{gap: .75rem;}
:root .pagination-summary{color: var(--ui-muted); font-weight: 600;}
:root .pagination-controls button{border-radius: 9px;}
:root input:not([type="checkbox"]):not([type="radio"]),:root select,:root textarea,:root[data-theme="DARK"] input:not([type="checkbox"]):not([type="radio"]),:root[data-theme="DARK"] select,:root[data-theme="DARK"] textarea{background: var(--ui-surface); color: var(--ui-text); border-color: var(--ui-border);}
:root:root :is(.login-form, .dialog, .panel-form) label,:root:root .panel-form legend{color: var(--ui-text);}
:root input::placeholder,:root textarea::placeholder{color: var(--ui-muted); opacity: 1;}
:root input:not([type="checkbox"]):not([type="radio"]):hover:not(:disabled):not([readonly]),:root select:hover:not(:disabled),:root textarea:hover:not(:disabled):not([readonly]),:root[data-theme="DARK"] input:not([type="checkbox"]):not([type="radio"]):hover:not(:disabled):not([readonly]),:root[data-theme="DARK"] select:hover:not(:disabled),:root[data-theme="DARK"] textarea:hover:not(:disabled):not([readonly]){background: var(--ui-surface); border-color: color-mix(in srgb, var(--ui-accent) 50%, var(--ui-border));}
:root input:not([type="checkbox"]):not([type="radio"]):focus,:root select:focus,:root textarea:focus,:root[data-theme="DARK"] input:not([type="checkbox"]):not([type="radio"]):focus,:root[data-theme="DARK"] select:focus,:root[data-theme="DARK"] textarea:focus{border-color: var(--ui-focus); outline: 2px solid color-mix(in srgb, var(--ui-focus) 35%, transparent); outline-offset: 2px; box-shadow: none;}
:root:root :is(input, select, textarea):disabled,:root:root :is(input, textarea)[readonly]{background: var(--ui-surface-soft); color: var(--ui-muted); border-color: var(--ui-border);}
:root:root :is(input[type="checkbox"], input[type="radio"]){accent-color: var(--ui-accent-fill);}
:root:root select option{background: var(--ui-surface); color: var(--ui-text);}
:root:root :is(.prefix-field, .suffix-field){border-color: var(--ui-border); background: var(--ui-surface);}
:root:root :is(.prefix-field, .suffix-field) > span{color: var(--ui-muted); background: var(--ui-surface-soft); border-color: var(--ui-border);}
:root:root :is(.prefix-field, .suffix-field) input{background: transparent; border-color: transparent;}
:root:root:root input[type="search"]{border-width: 0 0 1px; border-style: solid; border-color: var(--ui-border);border-radius: 0 !important; background: transparent; color: var(--ui-text);box-shadow: none; padding-inline: .15rem;}
:root:root:root input[type="search"]:hover:not(:disabled):not([readonly]){background: transparent; border-color: var(--ui-accent);}
:root:root:root input[type="search"]:focus{background: transparent; border-color: var(--ui-focus) !important; outline-offset: 3px; box-shadow: none;}
:root:root .search-bar{gap: .8rem; margin-bottom: 1.1rem;}
:root:root .search-bar input[type="search"]{height: 2.75rem;}
:root:root .smart-search-menu{padding: .45rem; gap: .25rem; border: 1px solid var(--ui-border);border-radius: 14px; background: var(--ui-surface); color: var(--ui-text);box-shadow: var(--ui-popover-shadow); overscroll-behavior: contain;scrollbar-width: thin; scrollbar-color: var(--ui-border) transparent;}
:root:root .smart-search-option{background: var(--ui-surface-soft); color: var(--ui-text);border: 1px solid transparent; border-radius: 9px;padding: .65rem .75rem; gap: .2rem .8rem; line-height: 1.35;}
:root:root .smart-search-option:hover,:root:root .smart-search-option.is-active,:root:root .smart-search-option:focus-visible{color: var(--ui-accent); background: var(--ui-accent-soft);border-color: color-mix(in srgb, var(--ui-accent) 35%, var(--ui-border));}
:root:root .smart-search-option:focus-visible{outline: 2px solid var(--ui-focus); outline-offset: -2px;}
:root:root .smart-search-main strong{font-weight: 700; font-size: .86rem; line-height: 1.4;}
:root:root .smart-search-main small,:root:root .smart-search-meta{color: var(--ui-muted); font-weight: 500; font-size: .75rem;}
:root:root :is(.primary-button, .secondary-button, .icon-action, .row-actions button){border-radius: 9px; transition: background-color .16s ease, border-color .16s ease, color .16s ease;}
:root:root .primary-button{background: var(--ui-accent-fill); color: #fff; border-color: var(--ui-accent-fill); box-shadow: 0 3px 8px #41010115;}
:root:root .primary-button:hover:not(:disabled){background: var(--red-dark); border-color: var(--red-dark); color: #fff;}
:root:root :is(.secondary-button, .icon-action, .row-actions button){background: var(--ui-surface); color: var(--ui-text); border-color: var(--ui-border); box-shadow: none;}
:root:root :is(.secondary-button, .icon-action, .row-actions button):hover:not(:disabled){background: var(--ui-accent-soft); color: var(--ui-accent); border-color: color-mix(in srgb, var(--ui-accent) 40%, var(--ui-border));}
:root:root :is(.add-action, .quick-customer-button, .tow-create-action),:root:root :is(.icon-action, .primary-button).add-action,:root:root .topbar-actions .tow-create-action{background: var(--ui-success-fill); border-color: var(--ui-success-fill); color: #fff; box-shadow: none;}
:root:root :is(.add-action, .quick-customer-button, .tow-create-action):hover:not(:disabled),:root:root :is(.icon-action, .primary-button).add-action:hover:not(:disabled),:root:root .topbar-actions .tow-create-action:hover:not(:disabled){background: #1b5539; border-color: #1b5539; color: #fff;}
button:disabled{cursor: not-allowed;}
:root:root :is(button, a, summary, [tabindex]):focus-visible{outline: 2px solid var(--ui-focus); outline-offset: 3px;}
.sidebar :is(button, a):focus-visible{outline-color: #edb3b3;}
:root:root :is(.dialog, .app-confirm){color: var(--ui-text); background: var(--ui-surface); border: 1px solid var(--ui-border); border-radius: 18px; box-shadow: 0 24px 80px #0004;}
:root:root .dialog::backdrop,:root:root .app-confirm::backdrop{background: #202020c2; backdrop-filter: blur(5px);}
:root:root .dialog-head{border-color: var(--ui-border);}
:root:root .dialog-head h2{color: var(--ui-text); letter-spacing: -.025em;}
:root:root .dialog-close{color: var(--ui-muted); border-radius: 8px;}
:root:root .dialog-close:hover{color: var(--ui-accent); background: var(--ui-accent-soft);}
:root:root .dialog-actions{border-color: var(--ui-border);}
:root:root :is(.order-detail-dialog, #towDetailDialog, #workshopReviewDialog) > .dialog-actions{background: var(--ui-surface);}
:root:root :is(.detail-grid > div, .review-summary > div, .review-totals, .payout-summary > div, .secret-box, .payment-detail){background: var(--ui-surface-soft); color: var(--ui-text); border-color: var(--ui-border);}
:root:root :is(.review-vehicle, .mailbox-message-new, .mailbox-detail-new-meta, .mailbox-recipient-list section){background: var(--ui-surface); color: var(--ui-text); border-color: var(--ui-border);}
:root:root :is(.mailbox-tabs button, .mailbox-target-chips span){background: var(--ui-surface-soft); color: var(--ui-text); border-color: var(--ui-border);}
:root:root .mailbox-tabs button.active{background: var(--ui-accent-fill); color: #fff;}
:root:root .review-grand-total{color: var(--ui-accent); border-color: var(--ui-border);}
:root:root .toast{color: #fff; background: #323232; border: 1px solid #808080; border-radius: 12px; box-shadow: var(--ui-popover-shadow);}
:root:root :is(.status.active, .permission-ok){background: var(--ui-success-soft); color: var(--ui-success);}
:root:root .status.locked{background: var(--ui-accent-soft); color: var(--ui-accent);}
:root:root .status-chip.progress{background: var(--ui-surface-soft); color: var(--ui-muted);}
:root:root .login-panel{background: var(--ui-canvas);}
:root .brand-panel{background: radial-gradient(ellipse at 15% 10%, #701b1b66, transparent 60%), linear-gradient(145deg, #410101, #323232);}
:root .brand-copy h1{letter-spacing: -.055em;}
:root .brand-copy p{color: #e5dada;}
:root .brand-footer{color: #c9baba;}
:root .brand-kicker{border-color: #e7c5c54d; color: #f3e6e6;}
:root .login-card{padding: 2rem; border: 1px solid var(--ui-border); border-radius: 22px; background: var(--ui-surface); box-shadow: var(--ui-shadow);}
:root .login-heading h2{color: var(--ui-text); font-size: 2.35rem;}
:root .login-heading > p:last-child{color: var(--ui-muted);}
:root .icon-button:hover{background: var(--ui-accent-soft); color: var(--ui-accent);}
:root:root :is(.global-loader, .login-loading){background: #323232; color: #fff;}
:root:root :is(.global-loader img, .login-loading img, .logo-frame img, .sidebar-brand img){object-fit: contain;}
body:has(> .public-card){padding: clamp(1rem, 4vw, 3rem); background: var(--ui-canvas);}
:root .public-card{padding: clamp(1.2rem, 3vw, 2rem); color: var(--ui-text); background: var(--ui-surface); border: 1px solid var(--ui-border); border-radius: 20px; box-shadow: var(--ui-shadow);}
.public-card > img{height: auto; object-fit: contain;}
.public-card h1{margin-top: .8rem; font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: -.04em;}
.public-card h2{color: var(--ui-text); font-size: 1.3rem;}
.public-card label{display: grid; gap: .45rem; font-size: .86rem; font-weight: 600;}
.public-card input{width: 100%;}
.public-card form{margin-block: 1.5rem;}
.public-card .public-total{color: var(--ui-accent); font-size: 1.7rem;}
.public-card .public-order{padding: 1rem; border: 1px solid var(--ui-border); border-radius: 12px; background: var(--ui-surface-soft);}
.public-card .public-order header{border-color: var(--ui-border); gap: .75rem;}
.public-card .public-order header > *{min-width: 0; overflow-wrap: anywhere;}
.public-card .public-order h3{color: var(--ui-text);}
@media (max-width: 1050px){:root .topbar{gap: .8rem; padding-inline: 1.2rem;}
:root .topbar-actions{gap: .4rem;}}
@media (max-width: 800px){:root .topbar{align-items: center; flex-wrap: wrap; padding: .85rem 1rem;}
:root .topbar-actions{flex: 1 1 auto; min-width: 0;}
:root .topbar h2{font-size: 1.08rem;}
:root .content{padding: 1.2rem 1rem;}
:root .login-card{padding: 1.5rem;}
:root .section-head{gap: 1rem;}}
@media (max-width: 520px){:root .topbar-actions{gap: .35rem; width: 100%;}
:root .account-trigger{max-width: 155px;}
:root .account-trigger > span{overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
:root .login-panel{padding: 1rem;}
:root .login-card{padding: 1.25rem;}
:root .smart-search-option{grid-template-columns: minmax(0, 1fr);}
:root .smart-search-meta{max-width: 100%; text-align: left;}
:root .table-pagination{flex-wrap: wrap;}
:root .toast{left: 1rem; right: 1rem; bottom: 1rem; max-width: none;}}
@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important;}}
[hidden],.hidden{display: none !important;}
/* --- aus order-clean.css --- */
#workshopOrderForm{--order-rule: #c8c1be;--order-focus: #7c1717;gap: 1.8rem;max-width: 1180px;color: var(--ink);}
:root[data-theme="DARK"] #workshopOrderForm{--order-rule: #756a65;--order-focus: #efaaa3;}
#workshopOrderForm .order-customer-grid,#workshopOrderForm .selected-customer-fields,#workshopOrderForm .order-vehicle-card{background: transparent;border: 0;border-radius: 0;box-shadow: none;padding: 0;}
#workshopOrderForm .order-customer-grid{grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr);gap: 1.1rem 1.8rem;}
#workshopOrderForm #orderCustomerSearchField{grid-column: 1 / -1;}
#workshopOrderForm label{min-width: 0;gap: .3rem;color: var(--ink);font-size: .85rem;font-weight: 600;}
#workshopOrderForm input:not([type="checkbox"]):not([type="radio"]),#workshopOrderForm select{min-width: 0;width: 100%;height: 2.7rem !important;padding: .4rem .15rem !important;border: 0 !important;border-bottom: 1px solid var(--order-rule) !important;border-radius: 0 !important;background: transparent !important;color: var(--ink) !important;box-shadow: none !important;font-size: .95rem;font-weight: 400;transition: border-color .15s ease;}
#workshopOrderForm input::placeholder{color: var(--muted); opacity: .85;}
#workshopOrderForm input:not([type="checkbox"]):not([type="radio"]):hover:not(:disabled),#workshopOrderForm select:hover:not(:disabled){border-bottom-color: var(--ink) !important;}
#workshopOrderForm input:not([type="checkbox"]):not([type="radio"]):focus,#workshopOrderForm select:focus{border-bottom-color: var(--order-focus) !important;outline: 2px solid var(--order-focus);outline-offset: 3px;}
#workshopOrderForm input:disabled,#workshopOrderForm select:disabled,#workshopOrderForm input[readonly]{border-bottom-style: dashed !important;color: var(--muted) !important;opacity: 1;}
#workshopOrderForm .selected-customer-fields{grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto;gap: 1rem 1.5rem;}
#workshopOrderForm .order-route-fields{gap: 1.8rem;}
#workshopOrderForm .order-block-head{padding-top: 1.4rem;border-top: 1px solid var(--line);}
#workshopOrderForm .order-block-head h2{font-size: 1.05rem; color: var(--ink);}
#workshopOrderForm .order-vehicles{gap: 2rem;}
#workshopOrderForm .order-vehicle-card{padding-top: .7rem;}
#workshopOrderForm .order-vehicle-card + .order-vehicle-card{border-top: 1px solid var(--line);padding-top: 1.3rem;}
#workshopOrderForm .order-vehicle-card legend{padding: 0 .65rem 0 0;font-size: 1rem;font-weight: 750;color: var(--ink);}
#workshopOrderForm .order-vehicle-remove{top: .1rem; right: 0;}
#workshopOrderForm .order-vehicle-fields{grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);gap: 1rem 1.5rem;padding-right: 3rem;}
#workshopOrderForm .order-delivery-note{grid-column: 1 / -1;}
#workshopOrderForm .order-work-list{margin-top: 1.4rem;}
#workshopOrderForm .order-work-list > strong{font-size: .8rem;font-weight: 600;color: var(--muted);}
#workshopOrderForm .order-work-rows{gap: .9rem;}
#workshopOrderForm .order-work-row{padding: 0;border: 0;border-radius: 0;background: transparent;box-shadow: none;}
#workshopOrderForm .order-work-main{grid-template-columns: minmax(0, 1fr) auto;align-items: center;gap: 1.5rem;}
#workshopOrderForm .order-work-meta{min-width: 0;grid-template-columns: auto auto auto;align-items: center;gap: 1rem;}
#workshopOrderForm .order-work-meta output{font-size: .9rem; font-weight: 650;}
#workshopOrderForm .order-work-meta .order-quantity input{width: 64px;}
#workshopOrderForm .order-work-list .order-tuning-note{display: grid;grid-template-columns: minmax(120px, auto) minmax(0, 1fr) !important;align-items: center;gap: 1rem !important;padding: 0 0 0 1rem !important;border: 0 !important;border-left: 2px solid var(--line) !important;border-radius: 0 !important;background: transparent !important;box-shadow: none;}
#workshopOrderForm .order-toolbox-position{margin-top: 1rem;padding: .6rem 0;border: 0;border-radius: 0;background: transparent;color: var(--muted);}
#workshopOrderForm .order-vehicle-total{margin-top: 1rem;padding: .85rem 0 0;border-top: 1px solid var(--line);color: var(--ink);font-size: .95rem;font-weight: 650;}
#workshopOrderForm .order-summary{display: grid;grid-template-columns: minmax(220px, 360px);justify-content: end;gap: .8rem;padding: 1.3rem 0;border-top: 1px solid var(--line);border-radius: 0;background: transparent;color: var(--muted);}
#workshopOrderForm .order-summary > span,#workshopOrderForm .order-discount-field{display: flex;align-items: center;justify-content: space-between;gap: 1rem;}
#workshopOrderForm .order-summary strong{color: var(--ink); font-size: 1rem;}
#workshopOrderForm .order-discount-field input{width: 78px; text-align: right;}
#workshopOrderForm .order-summary .order-total{padding-top: .85rem;border-top: 1px solid var(--order-rule);color: var(--ink);font-weight: 700;}
#workshopOrderForm .order-summary .order-total strong{color: var(--ink); font-size: 1.35rem;}
@media (min-width: 900px){#workshopOrderForm #orderCustomerSearchField{display: grid;grid-template-columns: minmax(250px, auto) minmax(0, 1fr);align-items: center;gap: 1.5rem;}}
@media (max-width: 820px){#workshopOrderForm .order-vehicle-fields{grid-template-columns: 1fr 1fr;}
#workshopOrderForm .selected-customer-fields{grid-template-columns: 1fr 1fr;}
#workshopOrderForm .selected-customer-fields button{grid-column: auto;}
#workshopOrderForm .order-work-main{grid-template-columns: 1fr; gap: .45rem;}
#workshopOrderForm .order-work-meta{grid-template-columns: 1fr auto auto;}
#workshopOrderForm .order-work-meta output{justify-self: start;}}
@media (max-width: 560px){#workshopOrderForm .order-customer-grid,#workshopOrderForm .selected-customer-fields,#workshopOrderForm .order-vehicle-fields,#workshopOrderForm .order-route-fields{grid-template-columns: minmax(0, 1fr); gap: 1rem;}
#workshopOrderForm .order-vehicle-fields{padding-right: 0;}
#workshopOrderForm .order-vehicle-card{padding-top: 2rem;}
#workshopOrderForm .order-work-list .order-tuning-note{grid-template-columns: 1fr !important;}
#workshopOrderForm .order-work-meta{gap: .65rem;}
#workshopOrderForm .order-summary{grid-template-columns: minmax(0, 1fr);}}
#workshopOrderForm{--order-rule: var(--ui-border, #c8c1be);--order-focus: var(--ui-focus, #7c1717);}
:root[data-theme="DARK"] #workshopOrderForm{--order-rule: var(--ui-border, #756a65);--order-focus: var(--ui-focus, #efaaa3);}
#workshopOrderForm .order-customer-grid{padding: 1.35rem 1.5rem;border-top: 3px solid var(--ui-accent, #7c1717);border-bottom: 1px solid var(--ui-border, var(--line));border-radius: 12px 12px 0 0;background: var(--ui-surface, var(--white));}
#workshopOrderForm .order-customer-info,#workshopOrderForm .order-event-info,#workshopOrderForm .order-grouping-info{grid-column: 1 / -1;margin: 0;padding: .75rem 1rem;border: 0;border-left: 3px solid var(--ui-accent, #7c1717);border-radius: 0 8px 8px 0;color: var(--ui-text, var(--ink));background: var(--ui-accent-soft, var(--paper));font-size: .83rem;line-height: 1.65;overflow-wrap: anywhere;}
#workshopOrderForm .order-block-head h2{display: flex;align-items: center;gap: .65rem;font-size: 1.15rem;}
#workshopOrderForm .order-block-head h2::before{content: "";width: 5px;height: 1.1em;border-radius: 4px;background: var(--ui-accent, #7c1717);}
#workshopOrderForm .order-vehicle-card{padding: 1.25rem 1.5rem;border: 1px solid var(--ui-border, var(--line));border-left: 3px solid var(--ui-accent, #7c1717);border-radius: 12px;background: var(--ui-surface, var(--white));}
#workshopOrderForm .order-vehicle-card + .order-vehicle-card{padding-top: 1.25rem;border-top: 1px solid var(--ui-border, var(--line));}
#workshopOrderForm .order-vehicle-card legend{padding: 0 .6rem;color: var(--ui-accent, #7c1717);}
#workshopOrderForm .order-vehicle-remove{top: .6rem; right: .75rem;}
#workshopOrderForm .order-work-row + .order-work-row{padding-top: .8rem;border-top: 1px solid var(--ui-border, var(--line));}
#workshopOrderForm .order-work-list > strong{color: var(--ui-muted, var(--muted));}
#workshopOrderForm .order-work-meta output{padding: .35rem .6rem;border-radius: 6px;color: var(--ui-accent, var(--ink));background: var(--ui-accent-soft, var(--paper));font-variant-numeric: tabular-nums;}
#workshopOrderForm .order-toolbox-position{padding: .75rem 0;border-bottom: 1px solid var(--ui-border, var(--line));}
#workshopOrderForm .order-vehicle-total{padding: .75rem 1rem;border: 0;border-radius: 8px;background: var(--ui-surface-soft, var(--paper));color: var(--ui-text, var(--ink));line-height: 1.6;}
#workshopOrderForm .organization-employee-block{min-width: 0;padding: 1rem 1.15rem;border: 1px solid var(--ui-border, var(--line));border-left: 3px solid var(--ui-accent, #7c1717);border-radius: 10px;background: var(--ui-surface-soft, var(--paper));}
#workshopOrderForm .organization-employee-block > label{color: var(--ui-accent, var(--ink));font-weight: 700;}
#workshopOrderForm .organization-employee-new{gap: .9rem 1.5rem;padding: .9rem 0 0;border: 0;border-top: 1px solid var(--ui-border, var(--line));border-radius: 0;background: transparent;}
#workshopOrderForm .organization-employee-new > small{color: var(--ui-muted, var(--muted));line-height: 1.55;font-weight: 400;}
#workshopOrderForm .order-summary{padding: 1.25rem 1.5rem;border-top: 2px solid var(--ui-border, var(--line));border-radius: 12px;background: var(--ui-surface, var(--white));font-variant-numeric: tabular-nums;}
#workshopOrderForm .order-summary .order-total{border-top-color: var(--ui-accent, #7c1717);}
#workshopOrderForm .order-summary .order-total strong{color: var(--ui-accent, var(--ink));}
#workshopOrderForm .order-payment-toggle:not([hidden]):not(.hidden){border-color: var(--ui-border, var(--line)) !important;background: var(--ui-surface-soft, var(--paper)) !important;color: var(--ui-text, var(--ink)) !important;}
@media (max-width: 560px){#workshopOrderForm .order-customer-grid,#workshopOrderForm .order-summary{padding: 1rem;}
#workshopOrderForm .order-vehicle-card,#workshopOrderForm .order-vehicle-card + .order-vehicle-card{padding: 2.5rem 1rem 1rem;}
#workshopOrderForm .organization-employee-new{grid-template-columns: minmax(0, 1fr);}
#workshopOrderForm .order-work-meta{grid-template-columns: minmax(0, 1fr) auto;}
#workshopOrderForm .order-work-meta output{grid-column: 1 / -1;max-width: 100%;white-space: normal;overflow-wrap: anywhere;}
#workshopOrderForm .order-work-remove{grid-column: 2; justify-self: end;}}
#workshopOrderForm .order-payment-toggle[hidden],#workshopOrderForm .order-payment-toggle.hidden{display: none !important;}
/* --- aus content-polish.css --- */
:root:root .dashboard-heading-link{display: inline-flex;align-items: center;gap: .65rem;color: var(--ui-text);text-decoration: none;border-radius: 4px;}
:root:root .dashboard-heading-link::after{content: "→"; color: var(--ui-muted);}
:root:root .dashboard-heading-link:hover{text-decoration: underline; text-underline-offset: .2em;}
:root:root :is(.dashboard-heading-link, .handbook-index a):focus-visible{outline: 2px solid var(--ui-text);outline-offset: 5px;}
:root:root .handbook-layout{display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 1.5rem; align-items: start;}
:root:root .handbook-index{position: sticky; top: 1rem; display: grid; gap: .3rem; padding: .8rem; border: 1px solid var(--ui-border); border-radius: 12px; background: var(--ui-surface);}
:root:root .handbook-index:empty{display: none;}
:root:root .handbook-index a{padding: .5rem .65rem; color: var(--ui-text); text-decoration: none; border-radius: 6px; font-size: .88rem; overflow-wrap: anywhere;}
:root:root .handbook-index a:hover{background: var(--ui-surface-soft); text-decoration: underline; text-underline-offset: .2em;}
:root:root .handbook-content{grid-template-columns: minmax(0, 1fr); gap: 1.25rem;}
:root:root .handbook-card{padding: 1.4rem 1.6rem; border: 1px solid var(--ui-border); border-left: 4px solid var(--ui-text); border-radius: 12px; background: var(--ui-surface); color: var(--ui-text); box-shadow: none; scroll-margin-top: 1.5rem;}
:root:root .handbook-card h2{margin: 0 0 .6rem; color: var(--ui-text); font-size: 1.2rem; line-height: 1.35;}
:root:root .handbook-intro{margin: 0 0 1.1rem; color: var(--ui-muted); font-weight: 500; line-height: 1.6; max-width: 80ch;}
:root:root .handbook-card ul{display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 2rem; padding: 1.1rem 0 0 1.15rem; border-top: 1px solid var(--ui-border); color: var(--ui-text); line-height: 1.6;}
:root:root .handbook-card li + li{margin: 0;}
:root:root .handbook-card li{padding-left: .2rem; overflow-wrap: anywhere;}
:root:root .handbook-card li::marker{color: var(--ui-muted);}
@media (max-width: 1100px){:root:root .handbook-layout{grid-template-columns: minmax(0, 1fr);}
:root:root .handbook-index{position: static; display: flex; flex-wrap: wrap;}}
@media (max-width: 700px){:root:root .handbook-card{padding: 1rem;}
:root:root .handbook-card ul{grid-template-columns: minmax(0, 1fr);}}
/* --- aus release20.css --- */
#workshopOrderForm .order-work-main{display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; align-items: center; gap: .7rem;}
#workshopOrderForm .order-position-number{color: var(--ui-muted); font-weight: 800; text-align: center; font-variant-numeric: tabular-nums;}
#workshopOrderForm .order-stamp-field:not(.hidden){margin: .8rem 0 .2rem 2.7rem; padding: .7rem 1rem; background: var(--ui-surface-soft); border-left: 3px solid var(--ui-accent, #410101); border-radius: 6px; color: var(--ui-text);}
#workshopOrderForm .order-vehicle-total{width: fit-content; max-width: 100%; margin-left: auto; padding: .7rem 1rem; font-size: .95rem;}
#workshopOrderForm .order-summary{width: min(100%, 34rem); margin: 1.1rem auto; padding: 1rem 1.2rem;}
#workshopOrderForm .order-payment-toggle:not([hidden]):not(.hidden){width: fit-content; max-width: 100%; margin: 1rem auto !important; padding: .75rem 1.2rem !important; justify-content: center;}
#workshopOrderForm .order-payment-toggle[hidden],#workshopOrderForm .order-payment-toggle.hidden{display: none !important;}
.order-unpaid-banner{padding: 1rem 1.3rem; border: 2px solid #a32626; border-radius: 10px; background: #fff0ed; color: #410101; text-align: center; font-weight: 800;}
[data-theme="DARK"] .order-unpaid-banner{background: #410101; border-color: #eb9696; color: #fff0ed;}
#tabReceiptsDialog,#tabReceiptDetailDialog{width: min(52rem, calc(100vw - 2rem)); max-height: calc(100dvh - 3rem); overflow-y: auto; padding: 1.5rem;}
#tabReceiptsContent{display: grid; gap: .6rem;}
#tabReceiptsDialog .receipt-row{display: grid; grid-template-columns: minmax(7rem, 1fr) minmax(8rem, 1fr) auto 2.5rem; align-items: center; gap: 1rem; padding: .85rem 1rem; border: 1px solid var(--ui-border); border-radius: 10px; background: var(--ui-surface-soft);}
.receipt-number{border: 0; padding: .35rem 0; background: transparent; color: var(--ui-accent, #410101); font: inherit; font-weight: 800; text-align: left; cursor: pointer; text-decoration: underline; text-underline-offset: .25rem;}
.receipt-number:focus-visible{outline: 2px solid var(--ui-accent); outline-offset: 4px;}
.receipt-summary{display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; padding: 1rem; background: var(--ui-surface-soft); border-radius: 10px; border-left: 4px solid var(--ui-accent);}
.receipt-summary h3,.receipt-summary p{margin: 0;}
.receipt-summary p{grid-column: 1;}
.receipt-summary > strong{grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 1.3rem;}
.receipt-order{padding: 1rem 0; border-bottom: 1px solid var(--ui-border);}
.receipt-order h3,.receipt-order h4{margin: .5rem 0;}
.receipt-order li{padding: .2rem 0; overflow-wrap: anywhere;}
#view-applications > .section-head{align-items: center; flex-wrap: wrap; gap: .75rem;}
#applicationForm{background: var(--ui-surface); padding: 1.5rem; border: 1px solid var(--ui-border); border-radius: 12px; gap: 1.1rem;}
#applicationForm.hidden,#applicationsListArea.hidden{display: none !important;}
#applicationsListArea .table-scroll{overflow: visible;}
#applicationsListArea table{table-layout: fixed; width: 100%;}
#applicationsListArea th:nth-child(1){width: 9%;}
#applicationsListArea th:nth-child(2){width: 14%;}
#applicationsListArea th:nth-child(3){width: 18%;}
#applicationsListArea th:nth-child(4){width: 5%;}
#applicationsListArea th:nth-child(5){width: 16%;}
#applicationsListArea th:nth-child(6){width: 20%;}
#applicationsListArea th:nth-child(7){width: 18%;}
#applicationsListArea td{vertical-align: top; overflow-wrap: anywhere; white-space: normal;}
#applicationsListArea .application-state{display: grid; gap: .4rem;}
#applicationsListArea .row-actions{justify-content: flex-start; flex-wrap: wrap;}
#applicationsListArea .row-actions .secondary-button{width: 100%; font-size: .78rem; padding: .35rem;}
@media (max-width: 700px){#workshopOrderForm .order-work-main{grid-template-columns: 1.5rem minmax(0, 1fr);}
#workshopOrderForm .order-work-meta{grid-column: 2;}
#tabReceiptsDialog .receipt-row{grid-template-columns: minmax(0, 1fr) auto; gap: .5rem;}
#tabReceiptsDialog .receipt-row > span{grid-column: 1; grid-row: 2; font-size: .85rem;}
#tabReceiptsDialog .receipt-row > strong{grid-column: 2; grid-row: 1;}
#tabReceiptsDialog .receipt-row > .icon-action{grid-column: 2; grid-row: 2;}
#applicationsListArea .table-scroll{overflow-x: auto;}
#applicationsListArea table{min-width: 850px;}}
/* --- aus workflow250.css --- */
#view-repair table th:last-child,#view-repair table td:last-child{width:24%;min-width:200px;white-space:normal;overflow-wrap:anywhere}
#workshopOrderForm .order-work-row .order-work-main{display:grid!important;grid-template-columns:2.2rem minmax(0,1fr)!important;gap:.45rem .7rem;align-items:center;min-width:0}
#workshopOrderForm .order-work-row .order-position-number{grid-column:1;grid-row:1;align-self:center}
#workshopOrderForm .order-work-row [data-order-work]{grid-column:2;grid-row:1;width:100%!important;min-width:0!important;min-height:48px!important;font-size:1rem!important;padding:.65rem .45rem!important;box-sizing:border-box}
#workshopOrderForm .order-work-row .order-work-meta{grid-column:2;grid-row:2;display:flex!important;flex-wrap:wrap;gap:.65rem;justify-content:flex-end;align-items:center;min-width:0;max-width:100%}
#workshopOrderForm .order-work-row .order-quantity input{min-height:36px!important;width:4.5rem!important}
#workshopOrderForm .order-work-row .order-tuning-note{max-width:100%;min-width:0}
#workshopOrderForm .order-work-row .order-tuning-note input{min-width:0!important}
.document-shortcuts{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap;max-width:36%;min-width:0}
.document-shortcut{display:inline-flex;border:1px solid var(--ui-border,#bbb);border-radius:6px;align-items:center;font-size:.8rem;max-width:100%}
.document-shortcut a{padding:.35rem .5rem;color:var(--ui-text,#323232);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:13rem}
.document-shortcut button{border:0;background:transparent;color:var(--ui-text,#323232);padding:.25rem .4rem;cursor:pointer}
.collectible-offer,.collectible-campaign{padding:1rem;margin:.75rem 0;border:1px solid var(--ui-border,#aaa);border-left:4px solid var(--ui-accent,#410101);border-radius:8px;background:var(--ui-surface,#fff);color:var(--ui-text,#323232)}
.collectible-offer small,.collectible-campaign small{display:block;color:var(--ui-muted,#666)}
.collectible-campaign{position:relative;padding-right:3.5rem}
.collectible-campaign>.icon-action{position:absolute;right:.7rem;top:.7rem}
#view-daily-tasks>.check-label{margin:.7rem 0}
#expenseDetailDialog .table-card{overflow:auto}
[hidden]{display:none!important}
@media(max-width:1100px){.document-shortcuts{max-width:100%;order:3;width:100%}
.topbar{flex-wrap:wrap}
#workshopOrderForm .order-work-row .order-work-main{grid-template-columns:1.8rem minmax(0,1fr)!important}}
@media(max-width:600px){#workshopOrderForm .order-work-row .order-work-meta{grid-column:1 / -1;justify-content:flex-end}
#workshopOrderForm .order-work-row .order-tuning-note{display:flex;flex-direction:column;align-items:stretch!important}
.document-shortcut a{max-width:10rem}}
/* --- aus polish251.css --- */
.sidebar-head{display:flex;align-items:center;gap:.4rem;flex-shrink:0;min-height:66px;border-bottom:1px solid #ffffff20;margin-bottom:.65rem}
.sidebar .sidebar-head .sidebar-brand{flex:1;min-width:0;margin:0;padding:.5rem 0;border:0;gap:.45rem}
.sidebar .sidebar-head .sidebar-brand img{width:42px;height:36px;flex-shrink:0}
.sidebar-head .sidebar-brand span{min-width:0;font-size:.92rem;white-space:nowrap}
.sidebar .sidebar-collapse{position:static;transform:none;flex:0 0 32px;width:32px;height:32px;z-index:auto;margin:0;box-shadow:none;border-radius:9px}
.sidebar-collapsed .sidebar-head{flex-direction:column;justify-content:center;gap:.25rem;padding-bottom:.5rem}
.sidebar-collapsed .sidebar-head .sidebar-brand{flex:none}
.sidebar-collapsed .sidebar-head .sidebar-brand img{width:38px;height:30px}
button.payment-action{display:inline-grid;place-items:center;width:40px;min-width:40px;height:40px;padding:0;background:var(--ui-success-fill,#236a47)!important;border:1px solid var(--ui-success-fill,#236a47)!important;color:#fff!important;border-radius:9px;font-size:1.2rem;font-weight:800}
button.payment-action:hover{filter:brightness(1.12)}
#confirmPayoutButton,#redemptionForm button[type="submit"]{background:var(--ui-success-fill)!important;border-color:var(--ui-success-fill)!important;color:#fff!important}
#confirmPayoutButton::before,#redemptionForm button[type="submit"]::before{content:"✓ ";font-weight:800}
button.payment-action:focus-visible{outline:3px solid var(--ui-success);outline-offset:3px}
.payment-status{color:var(--ui-success,#236a47)!important;font-weight:750}
.status-chip.payment-status,.expense-status.payment-status{background:var(--ui-success-soft,#e7f3eb)!important;border:1px solid var(--ui-success,#236a47)!important;color:var(--ui-success,#236a47)!important}
#tabAccountingTable .icon-action,#vouchersTable .icon-action,#redeemedVouchersTable .icon-action{width:36px;min-width:36px;height:36px;vertical-align:middle;margin:.15rem;font-size:1.05rem}
#tabAccountingTable td:last-child{white-space:normal}
#expenseDetailDialog{width:min(850px,calc(100vw - 2rem));padding:1.5rem;max-height:calc(100dvh - 2rem);overflow-y:auto}
#expenseDetailDialog .dialog-head{align-items:flex-start;margin-bottom:1.2rem}
#expenseDetailDialog .dialog-head h2{margin:.2rem 0}
.expense-summary{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr) minmax(0,1fr);gap:1rem;padding:1.2rem;margin-bottom:1.2rem;border:1px solid var(--ui-border);border-left:4px solid var(--ui-accent);border-radius:12px;background:var(--ui-surface-soft)}
.expense-summary>div{display:flex;flex-direction:column;gap:.35rem;min-width:0}
.expense-summary>div>span{font-size:.78rem;color:var(--ui-muted)}
.expense-summary strong{overflow-wrap:anywhere;color:var(--ui-text);font-size:1rem}
.expense-summary .expense-summary-amount{text-align:right}
.expense-summary-amount strong{font-size:1.55rem;font-variant-numeric:tabular-nums}
.expense-status{grid-column:1/-1;justify-self:start;padding:.25rem .65rem;border-radius:6px;font-size:.78rem}
.expense-status.is-open{background:var(--ui-accent-soft);color:var(--ui-accent)}
#expenseDetailDialog .table-card{border:1px solid var(--ui-border);border-radius:10px;box-shadow:none}
#expenseDetailDialog table{width:100%;table-layout:fixed}
#expenseDetailDialog th,#expenseDetailDialog td{padding:.85rem .8rem;overflow-wrap:anywhere;vertical-align:middle}
#expenseDetailDialog th{font-size:.75rem;letter-spacing:.025em;background:var(--ui-surface-soft)}
#expenseDetailDialog th:first-child{width:29%}
#expenseDetailDialog th:last-child{width:55px}
#expenseDetailDialog th:nth-child(3){text-align:right}
#expenseDetailDialog tbody tr:nth-child(even){background:var(--ui-surface-soft)}
#expenseDetailDialog .expense-amount{text-align:right;font-weight:750;font-variant-numeric:tabular-nums}
.expense-paid-date{display:block;font-size:.7rem;line-height:1.5;margin-top:.3rem;font-weight:400;color:var(--ui-muted)}
#expenseDetailDialog .dialog-actions{padding-top:.9rem;margin-top:.5rem}
:is(#mailboxComposeForm,#calendarEventForm){grid-template-columns:minmax(0,1fr)!important;gap:1rem}
:is(#mailboxComposeForm,#calendarEventForm) .dialog-actions{position:sticky;bottom:0;z-index:2;padding:.8rem 0;margin-top:.4rem;background:var(--ui-surface);border-top:1px solid var(--ui-border)}
:is(#mailboxComposeDialog,#calendarEventDialog) .mailbox-recipient-field{display:block;grid-column:1/-1;min-width:0;width:100%;box-sizing:border-box;margin:0;border:0;padding:0}
:is(#mailboxComposeDialog,#calendarEventDialog) .mailbox-recipient-field legend{padding:0;margin-bottom:.4rem;font-weight:700;color:var(--ui-text)}
:is(#mailboxComposeDialog,#calendarEventDialog) .mailbox-recipient-search{display:grid;grid-template-columns:1fr;gap:.45rem;width:100%;margin:.5rem 0}
#mailboxRecipientCount{margin:.55rem 0 1rem;font-size:.8rem}
:is(#mailboxComposeDialog,#calendarEventDialog) .mailbox-recipient-list{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:1rem}
:is(#mailboxComposeDialog,#calendarEventDialog) .mailbox-recipient-list section{min-width:0;padding:0;border:0;background:transparent;box-shadow:none}
:is(#mailboxComposeDialog,#calendarEventDialog) .mailbox-recipient-list h3{font-size:.85rem;margin:.4rem 0 .6rem;color:var(--ui-text)}
:is(#mailboxComposeDialog,#calendarEventDialog) .choice-list{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:0;max-height:19rem;overflow-y:auto;overflow-x:hidden;border:1px solid var(--ui-border);border-radius:9px;background:var(--ui-surface)}
:is(#mailboxComposeDialog,#calendarEventDialog) .choice-list>label{display:grid!important;grid-template-columns:20px minmax(0,1fr)!important;align-items:center;gap:.75rem;width:100%;min-height:46px;margin:0;padding:.65rem .85rem;border:0;border-bottom:1px solid var(--ui-border);border-radius:0;background:transparent;color:var(--ui-text);box-sizing:border-box;font-size:.9rem;font-weight:500;overflow-wrap:anywhere}
:is(#mailboxComposeDialog,#calendarEventDialog) .choice-list>label:last-child{border-bottom:0}
:is(#mailboxComposeDialog,#calendarEventDialog) .choice-list>label:has(input:checked){background:var(--ui-accent-soft);color:var(--ui-accent)}
:is(#mailboxComposeDialog,#calendarEventDialog) .choice-list input[type="checkbox"]{width:18px!important;height:18px!important;min-width:18px;min-height:18px;margin:0;padding:0;accent-color:var(--ui-accent-fill)}
:is(#mailboxComposeDialog,#calendarEventDialog) .choice-list>label[hidden]{display:none!important}
#redeemedVouchersDialog{width:min(1100px,calc(100vw - 2rem));max-height:calc(100dvh - 2rem);overflow-y:auto;padding:1.5rem}
#redeemedVouchersDialog table{table-layout:fixed;width:100%}
#redeemedVouchersDialog td,#redeemedVouchersDialog th{overflow-wrap:anywhere;white-space:normal}
#redeemedVouchersDialog .row-actions{display:flex;flex-wrap:wrap}
@media(max-width:800px){.sidebar .sidebar-collapse{display:none!important}}
@media(max-width:600px){.expense-summary{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.expense-summary-amount{grid-column:1/-1;text-align:left!important}
#expenseDetailDialog,#redeemedVouchersDialog{padding:1rem}
#expenseDetailDialog th:first-child{width:30%}
#expenseDetailDialog th,#expenseDetailDialog td{padding:.65rem .4rem}
#redeemedVouchersDialog table{min-width:760px}}
/* --- aus trainees260.css --- */
#view-trainees{color:var(--ui-text,#323232)}
#view-trainees .section-head{gap:18px;flex-wrap:wrap}
#view-trainees .trainees-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0 26px}
#view-trainees .trainees-summary article{display:flex;flex-direction:column;gap:8px;padding:18px;border:1px solid var(--ui-border,#ded8d8);border-top:3px solid #410101;border-radius:12px;background:var(--ui-surface,#fff)}
#view-trainees .trainees-summary span{font-size:.83rem;color:var(--ui-muted,#646464)}
#view-trainees .trainees-summary strong{font-size:1.6rem;line-height:1.2;font-variant-numeric:tabular-nums}
#view-trainees .trainees-section{margin-top:24px;padding:20px;background:var(--ui-surface,#fff);border:1px solid var(--ui-border,#ded8d8);border-radius:14px;min-width:0}
#view-trainees .trainees-section h2{margin:0}
#view-trainees .trainees-search{min-width:240px;max-width:100%}
#view-trainees .section-head>label{display:flex;flex-direction:column;gap:6px;font-size:.82rem;color:var(--ui-muted,#666)}
#view-trainees .section-head>label input,#view-trainees .section-head>label select{width:100%;min-height:36px}
#view-trainees table{width:100%;table-layout:fixed}
#view-trainees th,#view-trainees td{white-space:normal;overflow-wrap:anywhere;vertical-align:middle;padding:12px 10px}
#view-trainees .trainees-table th:first-child{width:36%}
#view-trainees .trainees-table th:last-child{width:12%}
#view-trainees td small,#view-trainees td>strong,#view-trainees td>span{display:block}
#view-trainees td small{margin-top:4px;font-size:.75rem;color:var(--ui-muted,#666);line-height:1.4}
#view-trainees .trainee-number{font-size:1.12rem;font-weight:650;font-variant-numeric:tabular-nums}
#view-trainees .trainee-role{display:inline-block!important;margin:5px 0;padding:2px 7px;border:1px solid var(--ui-border,#d8cdcd);border-radius:5px;font-size:.7rem;font-weight:650;color:var(--ui-accent,#410101)}
#view-trainees .trainee-drafts-table th:nth-child(1){width:19%}
#view-trainees .trainee-drafts-table th:nth-child(2){width:17%}
#view-trainees .trainee-drafts-table th:nth-child(3){width:20%}
#view-trainees .trainee-drafts-table th:nth-child(4){width:18%}
#view-trainees .trainee-drafts-table th:nth-child(5){width:15%}
#view-trainees .trainee-drafts-table th:nth-child(6){width:11%}
#view-trainees .trainee-unaccompanied{color:#925b09;font-weight:650}
#view-trainees .trainees-pager{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:14px 0;font-size:.83rem}
#view-trainees .trainees-pager>span{margin-right:auto}
#view-trainees .trainees-pager label{display:flex;align-items:center;gap:8px;margin:0}
#view-trainees .trainees-pager select{width:78px;margin:0}
#view-trainees .trainee-add,#traineeNotesDialog .trainee-add{background:#e4f5e9!important;color:#176436!important;border-color:#9bc9aa!important}
#traineeNotesDialog{width:min(760px,calc(100vw - 32px));max-height:90vh;overflow-y:auto;padding:24px;color:var(--ui-text,#323232);background:var(--ui-surface,#fff)}
#traineeNotesDialog .trainee-notes-list{display:grid;gap:12px;margin:18px 0}
#traineeNotesDialog .trainee-note{padding:14px;border:1px solid var(--ui-border,#ded8d8);border-radius:10px;background:var(--ui-surface-raised,var(--ui-surface,#fff))}
#traineeNotesDialog .trainee-note-head{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
#traineeNotesDialog .trainee-note-head small{margin-left:auto;color:var(--ui-muted,#666)}
#traineeNotesDialog .trainee-note p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55;margin:10px 0 0}
#traineeNotesDialog form{margin-top:20px;border-top:1px solid var(--ui-border,#ded8d8);padding-top:18px}
#traineeNotesDialog textarea{resize:vertical;min-height:110px;max-height:30vh}
:root[data-theme="DARK"] #view-trainees .trainees-summary article{border-top-color:#bb7777}
:root[data-theme="DARK"] #view-trainees .trainee-role{color:#f0b4b4}
:root[data-theme="DARK"] #view-trainees .trainee-unaccompanied{color:#f4c579}
:root[data-theme="DARK"] #view-trainees .trainee-add,:root[data-theme="DARK"] #traineeNotesDialog .trainee-add{background:#163d26!important;color:#a6e4bd!important;border-color:#346e48!important}
@media(max-width:1100px){#view-trainees .trainees-section{padding:14px}
#view-trainees th,#view-trainees td{padding:10px 7px;font-size:.8rem}
#view-trainees .row-actions{gap:3px;flex-wrap:wrap}}
@media(max-width:800px){#view-trainees .trainees-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
#view-trainees .table-wrap{overflow-x:auto}
#view-trainees table{min-width:690px}
#view-trainees .section-head>label{width:100%}
#view-trainees .trainees-pager>span{width:100%}
#traineeNotesDialog .trainee-note-head small{margin-left:0}}
/* --- aus polish261.css --- */
:root .table-pagination,:root #view-trainees .trainees-pager{display: flex;align-items: center;justify-content: space-between;flex-direction: row;flex-wrap: wrap;gap: .75rem 1rem;min-height: 3.8rem;margin: .8rem 0;padding: .7rem .9rem;border: 1px solid var(--ui-border);border-radius: 12px;background: var(--ui-surface);color: var(--ui-text);box-sizing: border-box;}
:root .table-pagination:empty{display: none;}
:root .pagination-summary{flex: 1 1 12rem;margin: 0;color: var(--ui-muted);font-size: .8rem;font-weight: 600;line-height: 1.5;font-variant-numeric: tabular-nums;}
:root .pagination-size{display: inline-flex;flex: 0 0 auto;align-items: center;justify-content: flex-start;gap: .6rem;margin: 0;color: var(--ui-muted);font-size: .78rem;font-weight: 600;}
:root .pagination-size select{width: auto;min-width: 5rem;height: 38px;min-height: 38px;margin: 0;padding: .4rem 1.8rem .4rem .65rem;border: 1px solid var(--ui-border);border-radius: 8px;background-color: var(--ui-surface-soft);color: var(--ui-text);font: inherit;cursor: pointer;}
:root .pagination-controls{display: flex;flex: 0 1 auto;align-items: center;justify-content: flex-end;flex-wrap: wrap;gap: .3rem;order: initial;}
:root .pagination-controls button,:root .pagination-button{display: inline-grid;place-items: center;width: auto;min-width: 38px;height: 38px;min-height: 38px;margin: 0;padding: 0 .65rem;border: 1px solid var(--ui-border);border-radius: 8px;background: var(--ui-surface);color: var(--ui-text);box-shadow: none;font-size: .82rem;font-weight: 650;line-height: 1;cursor: pointer;}
:root .pagination-controls button:hover:not(:disabled),:root .pagination-button:hover:not(:disabled){border-color: var(--ui-accent);background: var(--ui-accent-soft);color: var(--ui-accent);}
:root .pagination-controls button.active,:root .pagination-controls button[aria-current="page"],:root .pagination-button.active,:root .pagination-button[aria-current="page"]{border-color: var(--ui-accent-fill);background: var(--ui-accent-fill);color: #fff;}
:root .pagination-controls button:disabled,:root .pagination-button:disabled{opacity: .42; cursor: default;}
:root .pagination-ellipsis{min-width: 1.4rem; color: var(--ui-muted); text-align: center;}
:root #view-trainees .trainees-pager .pagination-size{gap: .6rem;}
:root #view-trainees .trainees-pager .pagination-size select{width: auto;}
:root .pagination-size select:focus-visible,:root .pagination-controls button:focus-visible,:root .pagination-button:focus-visible,:root .document-shortcut a:focus-visible,:root .document-shortcut button:focus-visible{outline: 2px solid var(--ui-focus);outline-offset: 3px;}
:root .document-shortcuts{gap: .5rem; align-content: center;}
:root .document-shortcut{display: inline-flex;align-items: stretch;max-width: 100%;min-height: 36px;border: 1px solid var(--ui-border);border-radius: 9px;background: var(--ui-surface);color: var(--ui-text);box-shadow: 0 1px 2px #00000008;}
:root .document-shortcut a{display: inline-flex;align-items: center;gap: .45rem;min-width: 0;max-width: 13rem;padding: .45rem .6rem;border-radius: 8px 0 0 8px;color: var(--ui-text);font-size: .78rem;font-weight: 600;text-decoration: none;}
:root .document-shortcut a::before{content: "↗"; flex: 0 0 auto; color: var(--ui-accent); font-size: .95rem;}
:root .document-shortcut-label{min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
:root .document-shortcut a:hover{background: var(--ui-accent-soft); color: var(--ui-accent);}
:root .document-shortcut button{flex: 0 0 30px;min-width: 30px;min-height: 34px;margin: 0;padding: 0;border: 0;border-left: 1px solid var(--ui-border);border-radius: 0 8px 8px 0;background: transparent;color: var(--ui-muted);font-size: 1.05rem;cursor: pointer;}
:root .document-shortcut button:hover{background: var(--ui-accent-soft); color: var(--ui-accent);}
:root .application-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0 22px}
:root .application-summary article{display:flex;align-items:center;gap:12px;padding:16px 18px;border:1px solid var(--ui-border);border-left:3px solid var(--ui-accent);border-radius:10px;background:var(--ui-surface)}
:root .application-summary strong{font-size:1.5rem;color:var(--ui-text);font-variant-numeric:tabular-nums}
:root .application-summary span{font-size:.82rem;color:var(--ui-muted)}
:root .application-contact span{display:block;overflow-wrap:anywhere}
:root .application-contact span+span{margin-top:6px}
:root :is(#applicationsListArea,#applicationArchiveDialog) .application-actions .application-accept{background:var(--ui-success-soft);color:var(--ui-success)}
:root :is(#applicationsListArea,#applicationArchiveDialog) .application-actions .application-reject{color:var(--ui-accent);background:var(--ui-accent-soft)}
:root #applicationsListArea .sub-head{margin: .8rem 0 1rem;}
:root #applicationsListArea .table-card,:root #applicationArchiveDialog .table-card{border: 1px solid var(--ui-border); border-radius: 12px; box-shadow: none;}
:root #applicationsListArea table,:root #applicationArchiveDialog table{width: 100%; min-width: 0; table-layout: fixed;}
:root #applicationsListArea th,:root #applicationArchiveDialog th{padding: .8rem .65rem; background: var(--ui-surface-soft); color: var(--ui-muted); font-size: .72rem; font-weight: 650; letter-spacing: .025em;}
:root #applicationsListArea td,:root #applicationArchiveDialog td{padding: 1rem .65rem; vertical-align: top; white-space: normal; overflow-wrap: anywhere; font-size: .82rem; line-height: 1.5;}
:root :is(#applicationsListArea, #applicationArchiveDialog) th:nth-child(1){width: 10%;}
:root :is(#applicationsListArea, #applicationArchiveDialog) th:nth-child(2){width: 14%;}
:root :is(#applicationsListArea, #applicationArchiveDialog) th:nth-child(3){width: 19%;}
:root :is(#applicationsListArea, #applicationArchiveDialog) th:nth-child(4){width: 5%;}
:root :is(#applicationsListArea, #applicationArchiveDialog) th:nth-child(5){width: 15%;}
:root :is(#applicationsListArea, #applicationArchiveDialog) th:nth-child(6){width: 22%;}
:root :is(#applicationsListArea, #applicationArchiveDialog) th:nth-child(7){width: 15%;}
:root :is(#applicationsListArea, #applicationArchiveDialog) td:nth-child(1),:root :is(#applicationsListArea, #applicationArchiveDialog) td:nth-child(4){white-space:nowrap}
:root #applicationArchiveDialog{width:min(1240px,calc(100vw - 40px))}
:root :is(#applicationsListArea, #applicationArchiveDialog) td:nth-child(2){color: var(--ui-text); font-weight: 700;}
:root :is(#applicationsListArea, #applicationArchiveDialog) td:nth-child(1),:root :is(#applicationsListArea, #applicationArchiveDialog) td:nth-child(3){color: var(--ui-muted); font-size: .78rem;}
:root :is(#applicationsListArea, #applicationArchiveDialog) tbody tr:hover{background: var(--ui-surface-soft);}
:root :is(#applicationsListArea, #applicationArchiveDialog) .application-state{display: grid; justify-items: start; gap: .4rem;}
:root :is(#applicationsListArea, #applicationArchiveDialog) .application-state strong{display: inline-block; padding: .2rem .55rem; border: 1px solid var(--ui-border); border-radius: 6px; background: var(--ui-accent-soft); color: var(--ui-accent); font-size: .73rem; line-height: 1.4;}
:root :is(#applicationsListArea, #applicationArchiveDialog) .application-state small{color: var(--ui-muted); font-size: .72rem; line-height: 1.45;}
:root :is(#applicationsListArea, #applicationArchiveDialog) .application-state[data-status="ACCEPTED"] strong{color: var(--ui-success); background: var(--ui-success-soft);}
:root :is(#applicationsListArea, #applicationArchiveDialog) .row-actions{display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: .35rem;}
:root :is(#applicationsListArea, #applicationArchiveDialog) .row-actions .icon-action{display: inline-grid; place-items: center; width: 32px; min-width: 32px; height: 32px; margin: 0; padding: 0; border: 1px solid var(--ui-border); border-radius: 7px; background: var(--ui-surface); color: var(--ui-text); font-size: .95rem;}
:root :is(#applicationsListArea, #applicationArchiveDialog) .row-actions .secondary-button{flex-basis: 100%; width: 100%; margin: 0 0 .15rem; padding: .4rem .45rem; border: 1px solid var(--ui-border); border-radius: 7px; background: var(--ui-surface-soft); color: var(--ui-text); font-size: .7rem; line-height: 1.4; white-space: normal; overflow-wrap: anywhere;}
:root :is(#applicationsListArea, #applicationArchiveDialog) .row-actions button:hover{border-color: var(--ui-accent); background: var(--ui-accent-soft); color: var(--ui-accent);}
:root :is(#applicationsListArea,#applicationArchiveDialog) .row-actions.application-actions .application-accept{background:var(--ui-success-soft);color:var(--ui-success)}
:root :is(#applicationsListArea,#applicationArchiveDialog) .row-actions.application-actions .application-reject{color:var(--ui-accent);background:var(--ui-accent-soft)}
@media (max-width: 800px){:root .application-summary{grid-template-columns:1fr;gap:8px}
:root .application-summary article{padding:10px 14px}
:root .table-pagination,:root #view-trainees .trainees-pager{gap: .7rem; padding: .75rem;}
:root .pagination-summary{flex-basis: 100%; text-align: left;}
:root .pagination-controls{flex: 1 1 auto;}
:root .document-shortcuts{gap: .4rem;}
:root .document-shortcut{min-height: 40px;}
:root .document-shortcut button{flex-basis: 36px; min-width: 36px; min-height: 38px;}
:root #applicationsListArea .table-scroll{max-height: none; overflow-x: auto;}
:root #applicationsListArea table,:root #applicationArchiveDialog table{min-width: 850px;}
:root #applicationArchiveDialog .table-card{overflow-x: auto;}}
@media (max-width: 460px){:root .pagination-size{flex-basis: 100%; justify-content: space-between;}
:root .pagination-controls{justify-content: flex-start;}
:root .pagination-controls button,:root .pagination-button{min-width: 36px; height: 36px; min-height: 36px; padding: 0 .5rem;}
:root .document-shortcut a{max-width: calc(100vw - 8rem);}}
:root .hidden,:root [hidden]{display: none !important;}
/* --- aus collectibles262.css --- */
.review-collectible{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:16px 18px;margin:18px 0;border:1px solid var(--ui-border);border-left:3px solid var(--ui-accent);border-radius:10px;background:var(--ui-surface);color:var(--ui-text)}
.review-collectible span{overflow-wrap:anywhere}
.review-collectible strong{white-space:nowrap;font-variant-numeric:tabular-nums}
#collectibleOfferBanner>strong{display:block;font-size:1rem;color:var(--ui-text)}
#collectibleOfferBanner>small{line-height:1.55;margin-top:10px}
#collectibleDialog input[name="price"]{font-variant-numeric:tabular-nums}
.review-collectible[hidden]{display:none!important}
@media(max-width:600px){.review-collectible{padding:12px;gap:12px}}
/* --- aus calendar270.css --- */
.calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:18px}
.calendar-navigation{display:flex;align-items:center;gap:10px}
.calendar-navigation h2{margin:0;min-width:180px;text-align:center}
.calendar-weekdays,.calendar-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.calendar-weekdays{padding:10px 0;text-align:center;font-weight:700}
.calendar-week{position:relative;border-top:1px solid #8885;padding:5px 0 12px;min-height:100px;grid-auto-rows:minmax(26px,auto)}
.calendar-day{grid-row:1;padding:4px 8px;font-size:13px;border-radius:4px}
.calendar-day.outside{opacity:.45}
.calendar-day.today{background:#410101;color:#fff;font-weight:700}
.calendar-event{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;border:1px solid #41010144;border-radius:5px;background:#41010112;color:inherit;padding:5px 8px;font-size:12px;cursor:pointer}
.calendar-event.inspection{border-color:#b07721;background:#b077211c}
.calendar-event.continues-before{border-left:3px solid #410101}
.calendar-event.continues-after{border-right:3px solid #410101}
.calendar-event:hover{background:#41010124}
.calendar-agenda{display:none}
.calendar-agenda-card,.calendar-active-card{display:flex;flex-direction:column;gap:5px;text-align:left;width:100%;padding:14px;border:1px solid #8885;border-radius:8px;background:transparent;color:inherit;cursor:pointer;overflow-wrap:anywhere}
.calendar-agenda-card strong,.calendar-active-card strong{font-size:15px}
.calendar-agenda-card span,.calendar-active-card span{font-size:13px}
.calendar-active-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:12px}
.calendar-detail-fields{display:grid;gap:16px}
.calendar-detail-fields>div{display:flex;flex-direction:column;gap:5px;min-width:0}
.calendar-detail-fields span{white-space:pre-wrap;overflow-wrap:anywhere}
.calendar-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.calendar-form-grid label{min-width:0}
.calendar-form-grid .wide-field{grid-column:1/-1}
.calendar-targets{margin-top:20px}
.calendar-targets legend{font-weight:700}
.calendar-target-choices{display:grid;gap:18px;margin-top:14px}
.calendar-target-choices h3{font-size:14px;margin:0 0 8px}
.calendar-choice-list{display:grid;gap:4px}
.calendar-choice{display:flex!important;align-items:center;gap:10px;padding:9px;border-bottom:1px solid #8883;overflow-wrap:anywhere}
.calendar-choice input{width:auto!important;flex:none}
.calendar-choice span{flex:1;min-width:0}
.calendar-choice small{opacity:.75}
.calendar-targets fieldset{min-width:0}
.calendar-overdue{color:#a95612;font-weight:700}
.calendar-form-error:empty{display:none}
[data-theme="DARK"] .calendar-event{background:#d78d8d18;border-color:#d78d8d66}
[data-theme="DARK"] .calendar-event:hover{background:#d78d8d30}
[data-theme="DARK"] .calendar-overdue{color:#efbe6b}
.calendar-choice[hidden]{display:none!important}
#calendarEventForm input[type="checkbox"]{width:18px!important;height:18px!important;min-width:18px;min-height:18px;flex:none;margin:0;padding:0;accent-color:#410101}
#calendarEventForm label:has(>span>input[type="checkbox"])>span{display:flex;align-items:center;gap:10px}
#activeCalendarPanel{margin-bottom:20px}
@media(max-width:700px){.calendar-grid,.calendar-weekdays{display:none}
.calendar-agenda{display:grid;gap:10px}
.calendar-form-grid{grid-template-columns:1fr}
.calendar-navigation h2{min-width:0;font-size:18px}
.calendar-toolbar{align-items:stretch}
.calendar-navigation{flex:1;justify-content:space-between}
.calendar-target-choices{gap:12px}
.calendar-form-grid .wide-field{grid-column:auto}}
.calendar-targets{min-width:0;border:1px solid var(--ui-border);border-radius:12px;padding:16px;background:var(--ui-surface-soft)}
.calendar-targets legend{padding:0 6px;color:var(--ui-text)}
.calendar-targets input[type="search"]{width:100%;min-width:0}
.calendar-choice:last-child{border-bottom:0}
/* --- aus responsive270.css --- */
:root:root dialog.dialog{--dialog-edge: clamp(8px, 2.5vmin, 16px);position: fixed !important;inset: 0 !important;margin: auto !important;box-sizing: border-box !important;min-width: 0 !important;min-height: 0 !important;height: fit-content !important;max-width: calc(100vw - var(--dialog-edge) - var(--dialog-edge)) !important;max-height: calc(100vh - var(--dialog-edge) - var(--dialog-edge)) !important;max-height: calc(100dvh - var(--dialog-edge) - var(--dialog-edge)) !important;overflow: auto !important;overscroll-behavior-y: contain;-webkit-overflow-scrolling: touch;scroll-padding: 16px;}
:root:root dialog.dialog > form,:root:root dialog.dialog .workshop-review,:root:root dialog.dialog .loyalty-dialog-body,:root:root dialog.dialog .detail-grid{min-width: 0 !important;min-height: 0 !important;height: auto !important;max-height: none !important;overflow: visible !important;}
:root:root dialog.dialog .dialog-head,:root:root dialog.dialog .dialog-actions{flex-shrink: 0;min-width: 0;flex-wrap: wrap;}
:root:root dialog.dialog .dialog-actions{position: static !important;}
:root:root dialog.dialog .dialog-head > div{min-width: 0;overflow-wrap: anywhere;}
:root:root dialog.dialog .dialog-close{flex-shrink: 0;}
:root:root dialog.dialog .table-scroll{max-height: none !important;overflow-x: auto;}
@media (max-width: 600px), (max-height: 500px){:root:root dialog.dialog .dialog-actions{gap: 8px;}
:root:root dialog.dialog .dialog-actions > button{max-width: 100%;white-space: normal;overflow-wrap: anywhere;}}
/* --- aus polish272.css --- */
:root:root dialog.app-confirm{width:min(560px,calc(100vw - 32px))!important;padding:24px!important}
:root:root dialog.app-confirm>p{white-space:pre-line;overflow-wrap:anywhere;line-height:1.6}
#tuningDurationLimitsDialog>.dialog-head{position:relative;padding-right:64px}
#tuningDurationLimitsDialog>.dialog-head>.dialog-close{position:absolute;right:16px;top:16px}
#calendarDetailDialog{width:min(800px,calc(100vw - 32px));padding:0}
#calendarDetailDialog>.dialog-head{padding:24px;border-bottom:1px solid var(--ui-border);background:var(--ui-surface-soft);align-items:flex-start;flex-wrap:nowrap}
#calendarDetailTitle{margin:6px 0 0;line-height:1.3;overflow-wrap:anywhere}
#calendarDetailContent{padding:24px;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#calendarDetailContent>.calendar-detail-row{padding:16px;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-surface)}
#calendarDetailContent strong{font-size:.75rem;text-transform:uppercase;letter-spacing:.04em;color:var(--ui-muted)}
#calendarDetailContent span{line-height:1.6}
#calendarDetailContent>[data-field="Zeitraum"]{grid-column:1/-1;border-left:3px solid var(--ui-accent);background:var(--ui-accent-soft)}
#calendarDetailContent>[data-field="Beschreibung"],#calendarDetailContent>[data-field="Beteiligte"],#calendarDetailContent>[data-field="Inspektion"]{grid-column:1/-1}
#calendarDetailDialog>.dialog-actions{padding:16px 24px;margin:0;border-top:1px solid var(--ui-border)}
#calendarDetailActions:empty,#calendarDetailError:empty{display:none}
#calendarDetailError{margin:0 24px 16px}
.handbook-language{display:flex!important;align-items:center;gap:10px;padding:10px 14px;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-surface);color:var(--ui-text);font-size:.85rem}
.handbook-language input{appearance:none;width:38px;height:22px;padding:3px;margin:0;border:0;border-radius:20px;background:var(--ui-border);cursor:pointer;flex-shrink:0}
.handbook-language input:before{content:"";display:block;width:16px;height:16px;border-radius:50%;background:var(--ui-surface);box-shadow:0 1px 3px #0004}
.handbook-language input:checked{background:var(--ui-accent-fill)}
.handbook-language input:checked:before{transform:translateX(16px);background:white}
.handbook-language input:focus-visible{outline:2px solid var(--ui-focus);outline-offset:3px}
@media(max-width:600px){#calendarDetailContent{grid-template-columns:1fr;padding:16px}
#calendarDetailDialog>.dialog-head{padding:18px}
#calendarDetailDialog>.dialog-actions{padding:16px}}
/* --- aus polish273.css --- */
#eventForm .event-eligibility{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;margin:0;padding:16px;border:1px solid var(--border,#6666);border-radius:12px;min-width:0}
#eventForm .event-eligibility legend{padding:0 6px;font-weight:700}
#eventForm .event-eligibility p{grid-column:1/-1;margin:0 0 4px;font-size:.9rem}
#eventForm .event-eligibility .check-label{margin:0;padding:10px;border-radius:8px;background:rgba(128,128,128,.08);display:flex;align-items:center;gap:10px}
@media(max-width:540px){#eventForm .event-eligibility{grid-template-columns:1fr}}
/* --- aus workflow230.css --- */
#yardTable .yard-order-row{cursor:pointer}
#yardTable .yard-order-row:hover{background:rgba(128,128,128,.1)}
#yardTable .yard-order-row:focus-visible{outline:2px solid #9a5555;outline-offset:-2px}
#yardOrderDetailDialog{width:min(900px,calc(100vw - 32px))!important}
#yardOrderDetailDialog .yard-detail-vehicle{padding:18px 0;border-bottom:1px solid var(--line,#7775)}
#yardOrderDetailDialog .yard-detail-vehicle h3{margin:0 0 8px}
#yardOrderDetailDialog .yard-detail-position{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:9px 0}
#yardOrderDetailDialog .yard-detail-position span{overflow-wrap:anywhere}
#yardOrderDetailDialog .yard-detail-position strong{white-space:nowrap}
#yardOrderDetailDialog .yard-detail-paid{padding:14px;border-radius:10px;background:#28724a22;color:var(--text);font-weight:700}
#notificationPromptDialog{width:min(540px,calc(100vw - 32px))!important}
#notificationPromptText{line-height:1.6}
#voucherForm [name="value"][readonly]{font-weight:700;opacity:1}
@media(max-width:520px){#yardOrderDetailDialog .yard-detail-position{flex-direction:column;gap:3px}}
#yardOrderDetailDialog .order-unpaid-banner{padding:16px;border-radius:10px;background:#410101;color:#fff;font-weight:750;text-align:center}
#yardOrderDetailDialog,#notificationPromptDialog{padding:24px!important}
#yardOrderDetailDialog .dialog-head,#notificationPromptDialog .dialog-head{padding-right:28px}
#yardOrderDetailDialog .dialog-actions,#notificationPromptDialog .dialog-actions{position:static!important;display:flex!important;flex-direction:row!important;flex-wrap:wrap;align-items:center;gap:10px;margin-top:18px}
#yardOrderDetailDialog .dialog-actions>button,#notificationPromptDialog .dialog-actions>button{flex:1 1 150px;min-height:42px}
#yardDetailPay{background:#247448!important;border-color:#2e8958!important;color:#fff!important}
@media(max-width:520px){#yardOrderDetailDialog,#notificationPromptDialog{padding:18px!important}
#yardOrderDetailDialog .dialog-actions,#notificationPromptDialog .dialog-actions{flex-direction:column!important;align-items:stretch}
#yardOrderDetailDialog .dialog-actions>button,#notificationPromptDialog .dialog-actions>button{flex:0 0 auto;width:100%}}
/* --- aus workflow231.css --- */
#payrollPayoutInput{max-width:220px}
#payrollPayoutRemaining{display:block;margin-top:8px}
/* --- aus workflow2312.css --- */
.tab-invoice-disclosure{border:1px solid var(--ui-border);border-radius:12px;margin:12px 0;background:var(--ui-surface);overflow:hidden}
.tab-invoice-disclosure>summary{display:flex;align-items:center;gap:12px;cursor:pointer;list-style:none;padding:16px;font-weight:750;color:var(--ui-text);overflow-wrap:anywhere}
.tab-invoice-disclosure>summary::-webkit-details-marker{display:none}
.tab-invoice-disclosure>summary::before{content:'›';font-size:1.45rem;color:var(--ui-accent);transition:transform .15s;flex:none}
.tab-invoice-disclosure[open]>summary::before{transform:rotate(90deg)}
.tab-invoice-disclosure[open]>summary{border-bottom:1px solid var(--ui-border);background:var(--ui-surface-soft)}
.tab-invoice-disclosure>summary:focus-visible{outline:2px solid var(--ui-accent);outline-offset:-3px}
.tab-invoice-disclosure>:not(summary){margin:12px 18px}
.public-order.tab-invoice-disclosure>summary{display:grid;grid-template-columns:auto 1fr auto auto}
.public-order.tab-invoice-disclosure>summary span{font-size:.85rem;color:var(--ui-muted)}
.public-order.tab-invoice-disclosure>summary b{white-space:nowrap}
.yard-move-dialog [hidden]{display:none!important}
.yard-move-dialog label{display:flex;flex-direction:column;gap:8px;margin:16px 0}
@media(max-width:760px){.public-order.tab-invoice-disclosure>summary{grid-template-columns:auto 1fr auto}
.public-order.tab-invoice-disclosure>summary span{grid-column:2/-1}}
@media(max-width:480px){.tab-invoice-disclosure>summary{padding:13px}
.public-order.tab-invoice-disclosure>summary b{grid-column:2/-1}}
/* --- aus workflow232.css --- */
.order-correction-shared{width:min(1240px,calc(100vw - 32px))!important;padding:26px!important}
.order-correction-shared .dialog-head{padding-right:35px}
.order-correction-shared #workshopOrderForm{margin-top:24px;max-width:none;display:grid!important;grid-template-columns:minmax(0,1fr)!important}
.order-correction-shared #workshopOrderForm>*,.order-correction-shared #orderVehicles{grid-column:1/-1;min-width:0}
.order-correction-shared .order-correction-reason{display:flex;flex-direction:column;gap:8px;grid-column:1/-1;border-top:1px solid var(--order-rule);padding-top:20px}
.order-correction-shared .order-correction-reason textarea{width:100%;resize:vertical;min-height:95px;background:transparent;color:var(--ui-text);border:1px solid var(--ui-border);border-radius:10px;padding:12px}
.order-correction-shared .order-correction-history{grid-column:1/-1;color:var(--ui-muted);font-size:.85rem}
.order-correction-shared .order-correction-history summary{cursor:pointer}
.order-correction-shared .dialog-actions{position:static;display:flex;flex-direction:row;flex-wrap:wrap;gap:10px;align-items:center}
.order-correction-shared .dialog-actions>button{flex:0 1 auto;min-height:42px;width:auto}
.review-correction-reason{border-left:3px solid var(--ui-accent);padding:14px;background:var(--ui-accent-soft);white-space:pre-wrap}
@media(max-width:600px){.order-correction-shared{padding:18px!important}
.order-correction-shared .dialog-actions>button{width:100%}}
/* --- aus workflow233.css --- */
#view-tab-accounting .search-bar{display:flex;gap:18px;align-items:end;flex-wrap:wrap}
#view-tab-accounting .search-bar>input{flex:1;min-width:180px}
#tabAccountingMonth{min-width:230px}
#tabReceiptsDialog .receipt-row{grid-template-columns:minmax(6rem,1fr) minmax(8rem,1fr) auto auto}
.receipt-actions{display:flex;gap:.35rem;align-items:center;justify-content:flex-end}
.accounting-summary article small{display:block;margin-top:8px;color:var(--ui-muted)}
@media(max-width:600px){#tabReceiptsDialog .receipt-row{grid-template-columns:minmax(0,1fr) auto}
#tabReceiptsDialog .receipt-actions{grid-column:2;grid-row:2}
#view-tab-accounting .search-bar .month-filter,#tabAccountingMonth{width:100%}}
/* --- aus workflow2314.css --- */
.yard-loaner-editor{display: flex;flex-wrap: wrap;align-items: end;gap: .75rem;margin: .75rem 0 1rem;padding: .85rem;border: 1px solid var(--ui-border);border-radius: .65rem;background: var(--ui-accent-soft);}
.yard-loaner-editor label{display: grid;flex: 1 1 14rem;min-width: 0;gap: .35rem;}
.yard-loaner-status{color: var(--ui-muted);font-size: .85rem;}
.yard-loaner-editor select{width: 100%;}
.yard-loaner-editor button{flex: 0 0 auto;}
#payrollOverviewTable td.payroll-own-total{color: var(--ui-success);font-weight: 800;}
#payrollEmployeeCount[hidden]{display: none;}
@media(max-width: 600px){.yard-loaner-editor button{width: 100%;}}
.work-category-badge{justify-self: start;padding: .25rem .55rem;border: 1px solid var(--ui-border);border-radius: .4rem;background: var(--ui-surface-soft);color: var(--ui-text);font-size: .8rem;font-weight: 800;}
.work-category-badge[data-category="TUNING"]{background: var(--ui-accent-soft);color: var(--ui-accent);border-color: var(--ui-accent);}
.work-category-badge[data-category="WORKSHOP"]{background: #323232;border-color: #626262;color: #fff;}
.work-category-badge[data-category="TOWING"]{background: #410101;border-color: #9d6969;color: #fff;}
.smart-search-option.work-search-option{grid-template-columns: auto minmax(0, 1fr);align-items: center;gap: .6rem;}
#workshopOrderForm .order-work-picker{grid-column: 2;grid-row: 1;display: flex;align-items: center;min-width: 0;gap: .55rem;}
.order-work-picker .work-category-badge{flex: 0 0 auto;}
.order-work-picker .work-category-badge[hidden]{display: none;}
#workshopOrderForm .order-work-picker > input{flex: 1 1 0;width: 0 !important;}
#payrollProfitShareHeading[hidden]{display: none;}
#orderRouteFields[hidden]{display: none;}
.order-add-vehicle-bottom{display: flex;justify-content: center;}
#addOrderVehicleBottom{border-color: var(--ui-success-fill);color: var(--ui-success);}
#view-billing .search-bar{display: flex;align-items: end;flex-wrap: wrap;gap: .75rem;}
#view-billing .search-bar > input{flex: 1 1 16rem;}
.accounting-category-filter{display: grid; gap: .35rem;}
#view-repair table{table-layout: fixed; width: 100%;}
#view-repair table th:nth-child(1){width: 12%;}
#view-repair table th:nth-child(2){width: 10%;}
#view-repair table th:nth-child(3){width: 17%;}
#view-repair table th:nth-child(4){width: 8%;}
#view-repair table th:nth-child(5){width: 16%;}
#view-repair table th:nth-child(6){width: 19%;}
#view-repair table th:last-child,#view-repair table td:last-child{width: 18%; min-width: 0;}
#view-repair table th,#view-repair table td{overflow-wrap: anywhere; white-space: normal;}
@media(max-width: 800px){#view-repair table{min-width: 850px;}}
/* --- aus training233.css --- */
.training-checklist{margin: .8rem 0 0;padding: .7rem;border: 1px solid var(--ui-border);border-radius: .65rem;background: var(--ui-surface-soft);display: grid;grid-template-columns: repeat(2,minmax(0,1fr));gap: .5rem;}
.training-checklist legend{padding: 0 .3rem;color: var(--ui-muted);font-size: .78rem;font-weight: 700;}
.training-checklist label{display: flex;align-items: center;gap: .45rem;font-size: .78rem;font-weight: 600;cursor: pointer;}
.training-checklist input[type="checkbox"]{flex: 0 0 auto;width: 1.1rem;height: 1.1rem;margin: 0;accent-color: var(--ui-success-fill);}
.employee-training-summary{display: flex;flex-wrap: wrap;gap: .35rem;margin-top: .5rem;}
.employee-table .user-cell .training-passed{display: inline-flex;padding: .2rem .4rem;border: 1px solid var(--ui-success);border-radius: .35rem;background: var(--ui-success-soft);color: var(--ui-success);font-size: .7rem;font-weight: 700;}
.training-empty{color: var(--ui-muted); font-size: .72rem;}
@media(max-width: 1200px){.training-checklist{grid-template-columns: minmax(0,1fr);}}
#view-settings .settings-panel{margin: 1.2rem 0;padding: 1.25rem;border: 1px solid var(--ui-border);border-radius: .8rem;background: var(--ui-surface);}
#view-settings .settings-panel > h2{margin-top: 0;}
#view-settings .settings-panel p{color: var(--ui-muted);}
#view-settings .settings-actions{display: flex; flex-wrap: wrap; gap: .7rem;}
#view-settings table{width: 100%; table-layout: fixed;}
#view-settings td{white-space: normal; overflow-wrap: anywhere;}
#view-settings .settings-panel.hidden{display: none;}
/* --- aus settings234.css --- */
#view-settings .settings-list-panel .section-head{align-items: center; gap: 1rem;}
#view-settings .settings-panel{border-top: 2px solid var(--ui-accent, #410101);}
.settings-list-controls{display: flex; flex-wrap: wrap; align-items: end; gap: .8rem; margin: 1rem 0;}
.settings-list-controls label{display: grid; gap: .4rem; color: var(--ui-muted); font-size: .8rem; font-weight: 600;}
.settings-list-controls > input{flex: 1 1 15rem; min-width: 0;}
.settings-list-controls select{min-height: 2.8rem; border: 1px solid var(--ui-border); border-radius: .6rem; background: var(--ui-surface); color: var(--ui-text); padding: .55rem 2rem .55rem .8rem;}
.settings-list-error:empty{display: none;}
.settings-list-error{color: var(--ui-muted);}
.settings-audit-list{display: grid; gap: .35rem;}
.settings-audit-row{display: flex; align-items: center; gap: .5rem; border-bottom: 1px solid var(--ui-border);}
.settings-audit-row:last-child{border-bottom: 0;}
#view-settings .settings-audit-open{display: grid; grid-template-columns: 10rem minmax(0,1fr) 1rem; gap: 1rem; align-items: center; width: 100%; min-width: 0; background: transparent; border: 0; border-radius: .5rem; box-shadow: none; color: var(--ui-text); padding: .9rem .6rem; text-align: left; font-weight: 400;}
#view-settings .settings-audit-open:hover,#view-settings .settings-audit-open:focus-visible{background: var(--ui-surface-soft); outline: 2px solid var(--ui-border); outline-offset: -2px;}
.settings-audit-open time{color: var(--ui-muted); font-size: .8rem;}
.settings-audit-text{display: grid; gap: .3rem; overflow-wrap: anywhere;}
.settings-audit-text strong{font-size: .9rem;}
.settings-audit-text small{color: var(--ui-muted); font-size: .78rem;}
.settings-audit-chevron{color: var(--ui-muted); font-size: 1.4rem;}
.settings-list-pager{display: flex; justify-content: flex-end; align-items: center; gap: .6rem; margin-top: 1rem;}
.settings-list-pager > span{margin-right: auto; color: var(--ui-muted); font-size: .8rem;}
dialog.settings-detail-dialog{width: min(42rem,calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); box-sizing: border-box; overflow-y: auto; padding: 1.5rem; border: 1px solid var(--ui-border); border-top: 3px solid #410101; border-radius: 1rem; background: var(--ui-surface); color: var(--ui-text);}
.settings-detail-head{display: flex; align-items: start; justify-content: space-between; gap: 1rem;}
.settings-detail-head h2{margin: .25rem 0 1.2rem; overflow-wrap: anywhere;}
.settings-detail-head > button{flex: 0 0 auto;}
#settingsAuditDetails{display: grid; grid-template-columns: minmax(8rem,1fr) minmax(0,2fr); gap: .75rem 1rem;}
#settingsAuditDetails dt{color: var(--ui-muted); font-size: .85rem;}
#settingsAuditDetails dd{margin: 0; white-space: pre-wrap; overflow-wrap: anywhere;}
#view-billing .accounting-category-filter.polished-filter,#view-tab-accounting .month-filter.polished-filter{display: grid; gap: .35rem; flex: 0 1 19rem; min-width: 14rem; color: var(--ui-muted); font-size: .76rem; font-weight: 700; padding: .65rem .85rem; border: 1px solid var(--ui-border); border-left: 3px solid #410101; border-radius: .7rem; background: var(--ui-surface);}
#view-billing #accountingCategory,#view-tab-accounting #tabAccountingMonth{width: 100%; min-height: 2rem; height: auto; margin: 0; padding: .3rem 1.5rem .3rem 0; border: 0; box-shadow: none; border-radius: 0; background-color: transparent; color: var(--ui-text); font-size: .9rem; font-weight: 600;}
@media(max-width: 650px){#view-settings .settings-list-panel .section-head{align-items: stretch; flex-direction: column;}
.settings-list-controls > label,.settings-list-controls > input{flex: 1 1 100%; width: 100%;}
#view-settings .settings-audit-open{grid-template-columns: minmax(0,1fr) 1rem; gap: .4rem;}
.settings-audit-open time{grid-column: 1;}
.settings-audit-text{grid-column: 1;}
.settings-audit-chevron{grid-column: 2; grid-row: 1 / 3;}
#settingsAuditDetails{grid-template-columns: minmax(0,1fr); gap: .25rem;}
#settingsAuditDetails dd{margin-bottom: .8rem;}
#view-billing .accounting-category-filter.polished-filter,#view-tab-accounting .month-filter.polished-filter{flex-basis: 100%; min-width: 0;}}
#settingsLists{display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,16rem),1fr)); gap: .8rem;}
#view-settings .settings-history-button{display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .4rem 1rem; text-align: left; padding: 1.1rem; border: 1px solid var(--ui-border); border-left: 3px solid var(--ui-accent); border-radius: .75rem; background: var(--ui-surface); color: var(--ui-text);}
.settings-history-button strong{font-size: .95rem;}
.settings-history-button small{color: var(--ui-muted); font-weight: 400; grid-column: 1;}
.settings-history-button > span{grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 1.5rem;}
#view-settings .settings-history-button:hover{background: var(--ui-surface-soft); border-color: var(--ui-accent);}
dialog.settings-history-dialog{position: fixed; box-sizing: border-box; width: min(65rem,calc(100vw - 1.5rem)); max-width: none; max-height: calc(100dvh - 1.5rem); overflow-y: auto; padding: 2.8rem 1rem 1rem; border: 1px solid var(--ui-border); border-top: 3px solid var(--ui-accent); border-radius: 1rem; background: var(--ui-canvas); color: var(--ui-text);}
.settings-history-close{position: absolute; right: .6rem; top: .6rem;}
#view-settings .settings-history-dialog .settings-panel{margin: 0; border-top: 0;}
:root:root select:not([multiple]):not([size]){appearance: none !important; box-sizing: border-box; max-width: 100%; min-height: 2.65rem; padding: .6rem 2.5rem .6rem .8rem !important; border: 1px solid var(--ui-border) !important; border-radius: .6rem !important; background-color: var(--ui-surface) !important; color: var(--ui-text) !important; background-image: linear-gradient(45deg,transparent 50%,var(--ui-muted) 50%),linear-gradient(135deg,var(--ui-muted) 50%,transparent 50%) !important; background-position: right 1rem center,right .7rem center !important; background-size: .3rem .3rem !important; background-repeat: no-repeat !important; font-family: inherit; cursor: pointer; transition: border-color .15s,box-shadow .15s;}
:root:root select:not([multiple]):not([size]):hover:not(:disabled){border-color: var(--ui-accent) !important;}
:root:root select:focus-visible{outline: 2px solid var(--ui-focus) !important; outline-offset: 2px; box-shadow: 0 0 0 3px var(--ui-accent-soft) !important;}
:root:root select:disabled{opacity: .65; cursor: not-allowed;}
:root:root select option,:root:root select optgroup{background: var(--ui-surface); color: var(--ui-text); padding: .5rem;}
:root:root select option:checked{background: var(--ui-accent-fill); color: #fff;}
:root:root select[multiple],:root:root select[size]{border: 1px solid var(--ui-border); border-radius: .6rem; background: var(--ui-surface); color: var(--ui-text); padding: .4rem;}
@media(forced-colors: active){:root:root select:not([multiple]):not([size]){appearance: auto !important; background-image: none !important;}}
#view-statistics .statistics-bars{max-height: none; overflow: visible; padding-right: 0;}
#view-statistics .statistics-time-table{max-height: none; overflow-x: auto;}
.delivery-payment-warning{display: block; margin-top: .4rem; color: var(--ui-accent); font-size: .75rem; font-weight: 700;}
.delivery-payment-banner{grid-column: 1 / -1; margin: 0 0 1rem; padding: 1rem; border: 1px solid var(--ui-accent); border-left: 4px solid var(--ui-accent); border-radius: .6rem; background: var(--ui-accent-soft); color: var(--ui-text); font-weight: 700;}
:root:root .primary-button.order-finalize-action{background: var(--ui-success-fill);border-color: var(--ui-success-fill);color: #fff;}
:root:root .primary-button.order-finalize-action:hover:not(:disabled){background: #1b5539;border-color: #1b5539;}
.customer-duplicate-groups{display: grid; gap: .8rem;}
.customer-duplicate-group{border: 1px solid var(--ui-border);border-radius: .7rem;padding: .7rem .9rem;}
.customer-duplicate-group h3{margin: 0 0 .35rem;color: var(--ui-accent);font-size: .9rem;}
.customer-duplicate-row{display: flex;align-items: center;gap: .7rem;padding: .55rem 0;border-top: 1px solid var(--ui-border);cursor: pointer;}
.customer-duplicate-row input{flex: 0 0 auto; accent-color: var(--ui-success-fill);}
.customer-duplicate-row small{display: block;margin-top: .2rem;color: var(--ui-muted);overflow-wrap: anywhere;}
/* --- aus application-templates2370.css --- */
.application-tabs{display:flex;gap:6px;margin:0 0 14px;border-bottom:1px solid var(--ui-border)}
.application-tabs button{background:none;border:0;border-bottom:2px solid transparent;padding:8px 14px;color:var(--ui-muted);font-weight:600;cursor:pointer}
.application-tabs button.active{color:var(--ui-accent);border-bottom-color:var(--ui-accent)}
.application-tabs button:focus-visible{outline:2px solid var(--ui-focus);outline-offset:2px}
#applicationTemplatesPane .template-applicant{display:grid;gap:4px;max-width:420px;margin:0 0 10px}
.template-variables{margin:0 0 14px;color:var(--ui-muted)}
.template-variables summary{cursor:pointer;font-weight:600}
.template-variables dl{display:grid;grid-template-columns:max-content 1fr;gap:4px 14px;margin:8px 0 0}
.template-variables dt{font-family:ui-monospace,monospace;color:var(--ui-text)}
.template-variables dd{margin:0}
.template-list{display:grid;gap:12px}
.template-card{background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:12px;padding:14px 16px;display:grid;gap:8px}
.template-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.template-card-head h3{margin:0;font-size:1rem;color:var(--ui-text)}
.template-card-actions{display:flex;gap:6px;align-items:center}
.template-preview{margin:0;white-space:pre-wrap;word-break:break-word;font:inherit;color:var(--ui-text);background:var(--ui-surface-soft);border-radius:8px;padding:10px 12px;max-height:260px;overflow:auto}
#applicationTemplateForm textarea{min-height:220px;font-family:inherit}
/* --- aus status-until2380.css --- */
.status-until{display:block;margin-top:4px;font-size:.78rem;color:var(--ui-muted);white-space:nowrap}
#statusUntilForm input[type="date"]{min-width:200px}
#absentEmployees .absence-card{border-left:4px solid var(--ui-border)}
#absentEmployees .absence-sick{border-left-color:#dc2626}
#absentEmployees .absence-vacation{border-left-color:#0ea5e9}
.dashboard-salary{display:grid;gap:.35rem}
.dashboard-salary-row{display:flex;justify-content:space-between;gap:1rem;font-variant-numeric:tabular-nums}
.dashboard-salary-row span{color:var(--ui-muted)}
.dashboard-salary-row.main strong{font-size:1.35rem;color:var(--ui-accent)}
#dashboardRsvp article{display:grid;gap:.4rem}
.module-config-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(13rem,1fr));gap:.35rem 1rem;margin:.75rem 0}
.tow-assign-fieldset{border:0;padding:0;margin:0}
.tow-assign-users{display:grid;gap:.3rem;max-height:18rem;overflow:auto;padding:.5rem;border:1px solid var(--ui-border);border-radius:10px}
.dashboard-section-off{display:none!important}
.user-nickname{font-weight:400;color:var(--ui-muted)}
/* --- aus topbar2381.css --- */
:root:root:root .topbar-actions .tow-create-action{background:#f5c518;border-color:#f5c518;color:#1f1a00;box-shadow:none;min-width:auto;white-space:nowrap}
:root:root:root .topbar-actions .tow-create-action:hover:not(:disabled){background:#d9ab00;border-color:#d9ab00;color:#1f1a00}
:root:root:root[data-theme="DARK"] .topbar-actions .tow-create-action{background:#e0b400;border-color:#e0b400;color:#1a1600}
:root:root:root[data-theme="DARK"] .topbar-actions .tow-create-action:hover:not(:disabled){background:#f5c518;border-color:#f5c518;color:#1a1600}
/* --- aus payroll-breakdown2390.css --- */
:root:root:root dialog.payroll-breakdown-dialog{width:min(64rem,calc(100vw - 1.5rem))!important;max-width:none!important;max-height:calc(100dvh - 1.5rem)!important;overflow-y:auto!important;box-sizing:border-box;padding:1.4rem 1.5rem 1.6rem!important}
#payrollBreakdownSubtitle{margin:.25rem 0 0;color:var(--ui-muted)}
#payrollBreakdownContent{display:grid;gap:1.25rem;margin-top:1rem}
.pb-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(10.5rem,1fr));gap:.75rem}
.pb-tile{display:grid;gap:.15rem;padding:.85rem 1rem;border:1px solid var(--ui-border);border-radius:12px;background:var(--ui-surface)}
.pb-tile strong{font-size:1.25rem;font-variant-numeric:tabular-nums;color:var(--ui-text)}
.pb-tile-label{font-size:.78rem;text-transform:uppercase;letter-spacing:.04em;color:var(--ui-muted)}
.pb-tile small{color:var(--ui-muted)}
.pb-tile-main{border-color:var(--ui-accent);box-shadow:inset 0 3px 0 var(--ui-accent)}
.pb-tile-main strong{font-size:1.5rem;color:var(--ui-accent)}
.pb-section{display:grid;gap:.5rem}
.pb-section-head h3{margin:0;font-size:1rem}
.pb-hint{margin:.15rem 0 0;font-size:.82rem;color:var(--ui-muted)}
.pb-empty{margin:0;padding:.75rem 1rem;border:1px dashed var(--ui-border);border-radius:10px;color:var(--ui-muted)}
.pb-table{overflow-x:auto;border:1px solid var(--ui-border);border-radius:12px;max-height:22rem;overflow-y:auto}
.pb-table table{width:100%;min-width:640px;border-collapse:collapse}
.pb-table th{position:sticky;top:0;background:var(--ui-surface-soft);text-align:left;font-size:.8rem;padding:.55rem .75rem;white-space:nowrap}
.pb-table td{padding:.5rem .75rem;border-top:1px solid var(--ui-border);white-space:nowrap}
.pb-table td:nth-child(3){white-space:normal;min-width:10rem}
.pb-table .num{text-align:right;font-variant-numeric:tabular-nums}
.pb-table td.num:last-child{font-weight:700}
.pb-table td span[title]{cursor:help;border-bottom:1px dotted var(--ui-muted)}
.pb-badge{display:inline-block;padding:.1rem .5rem;border-radius:999px;font-size:.75rem;background:var(--ui-surface-soft);color:var(--ui-text)}
.pb-badge-gov{background:#1d4ed8;color:#fff}
@media (max-width:760px){.pb-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
.special-payment-users{display:grid;grid-template-columns:repeat(auto-fill,minmax(14rem,1fr));gap:.25rem .75rem;max-height:16rem;overflow:auto;padding:.5rem;border:1px solid var(--ui-border);border-radius:10px;margin-bottom:.75rem}
.special-payment-mode{display:flex;gap:1rem;flex-wrap:wrap;border:0;padding:0;margin:0 0 .5rem}
.calendar-rsvp{display:grid;gap:.6rem;margin-top:.9rem;padding-top:.8rem;border-top:1px solid var(--ui-border)}
.calendar-rsvp-summary{margin:0;font-weight:600}
.calendar-rsvp-actions{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}
.calendar-rsvp-lists{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}
.calendar-rsvp-lists ul{margin:.25rem 0 0;padding-left:1.1rem}
@media (max-width:640px){.calendar-rsvp-lists{grid-template-columns:1fr}}
.payroll-payout-extras{display:grid;gap:.35rem;margin:.6rem 0;padding:.6rem .75rem;border:1px solid var(--ui-border);border-radius:10px}
.special-payment-mode{border:0;padding:0;margin:0 0 .75rem}
.special-payment-mode legend{font-weight:600;margin-bottom:.35rem}
.segmented-control{display:inline-flex;padding:.25rem;gap:.25rem;border-radius:999px;background:var(--ui-surface-soft);border:1px solid var(--ui-border)}
.segmented-option{position:relative;cursor:pointer}
.segmented-option input{position:absolute;opacity:0;pointer-events:none}
.segmented-option span{display:inline-block;padding:.45rem 1rem;border-radius:999px;font-weight:600;color:var(--ui-muted);transition:background .15s,color .15s}
.segmented-option input:checked+span{background:var(--ui-accent);color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2)}
.segmented-option input:focus-visible+span{outline:2px solid var(--ui-focus);outline-offset:2px}
.special-payment-toolbar{display:flex;gap:.5rem;align-items:center;margin-bottom:.4rem;flex-wrap:wrap}
.special-payment-toolbar input{flex:1;min-width:12rem}
.restriction-rows{display:grid;gap:.4rem;margin:.6rem 0}
.restriction-row{display:grid;grid-template-columns:minmax(10rem,1fr) 2fr auto;gap:.5rem;align-items:center}
.vehicle-row-info{color:var(--ui-muted)}
.order-vehicle-hints{display:grid;gap:.4rem;margin:.4rem 0 .6rem}
.order-vehicle-note{margin:0;padding:.5rem .75rem;border-radius:8px;background:var(--ui-surface-soft);border-left:4px solid #0ea5e9;white-space:pre-wrap}
@media (max-width:640px){.restriction-row{grid-template-columns:1fr}}
.link-button{background:none;border:0;padding:0;color:var(--ui-accent);font:inherit;font-weight:700;cursor:pointer;text-decoration:underline dotted}
.clickable-row{cursor:pointer}
.clickable-row:hover td{background:var(--ui-surface-soft)}
.order-vehicle-hints{grid-column:1/-1;width:100%;display:grid;gap:.35rem;margin:.2rem 0 .7rem}
.order-vehicle-note{margin:0;padding:.55rem .8rem;border-radius:10px;background:var(--ui-surface-soft);border-left:4px solid var(--ui-accent);white-space:pre-wrap;line-height:1.4}
.order-vehicle-info{border-left-color:#dc2626}
.restriction-hit{margin:0;padding:.55rem .8rem;border-radius:10px;background:rgba(220,38,38,.1);border-left:4px solid #dc2626}
.smart-search-option.is-blocked{opacity:.6;cursor:not-allowed}
.smart-search-blocked{color:#dc2626;font-weight:600}
#traineeOrdersList{display:grid;gap:1rem}
.to-tile-value{font-size:1.5rem;line-height:1.1}
.to-months{display:grid;gap:1rem;max-height:60vh;overflow-y:auto;padding-right:.2rem}
.to-month{display:grid;gap:.4rem}
.to-month-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem;position:sticky;top:0;background:var(--ui-surface);padding:.25rem 0;z-index:1}
.to-month-head h3{margin:0;font-size:1rem}
.to-card{display:grid;grid-template-columns:6.5rem minmax(0,1fr) auto auto;align-items:center;gap:.75rem;width:100%;padding:.7rem .9rem;border:1px solid var(--ui-border);border-radius:12px;background:var(--ui-surface);color:var(--ui-text);font:inherit;text-align:left}
.to-card-open{cursor:pointer;transition:border-color .15s,box-shadow .15s}
.to-card-open:hover,.to-card-open:focus-visible{border-color:var(--ui-accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--ui-accent) 25%,transparent)}
.to-date{font-variant-numeric:tabular-nums;color:var(--ui-muted);font-size:.88rem}
.to-main{display:grid;gap:.1rem;min-width:0}
.to-main strong,.to-main small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.to-main small{color:var(--ui-muted)}
.to-tags{display:flex;flex-wrap:wrap;gap:.3rem;justify-content:flex-end}
.to-tag{padding:.12rem .55rem;border-radius:999px;font-size:.74rem;font-weight:600;background:var(--ui-surface-soft)}
.to-tag-workshop{background:rgba(37,99,235,.14);color:#2563eb}
.to-tag-tuning{background:rgba(147,51,234,.14);color:#9333ea}
.to-tag-towing{background:rgba(234,88,12,.14);color:#ea580c}
.to-chevron{color:var(--ui-muted);font-size:1.2rem}
@media (max-width:640px){.to-card{grid-template-columns:1fr auto}
.to-date{grid-column:1/-1}
.to-tags{justify-content:flex-start}}
#traineeOrdersDialog{width:min(860px,calc(100% - 2rem));max-width:calc(100% - 2rem);box-sizing:border-box;overflow-x:hidden}
#traineeOrdersList{grid-column:1/-1;min-width:0;width:100%;box-sizing:border-box}
#traineeOrdersList .to-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}
#traineeOrdersList .pb-tile{min-width:0;box-sizing:border-box}
#traineeOrdersList .pb-tile-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (max-width:640px){#traineeOrdersList .to-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
#traineeOrdersDialog{padding:1.4rem 1.5rem 1.5rem!important;overflow-y:auto}
#traineeOrdersDialog .dialog-head{margin-bottom:.9rem}
#traineeOrdersList .to-months{padding-right:.4rem}
.collectible-stats{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.35rem}
.collectible-empty{background:rgba(220,38,38,.15);color:#dc2626}
.collectible-actions{display:flex;gap:.3rem;justify-content:flex-end}
.collectible-campaign.is-archived{opacity:.75}
.collectible-archive-toggle{margin-left:auto;margin-right:.6rem;font-size:.9rem}
#collectibleDetailDialog{width:min(980px,calc(100% - 2rem));padding:1.4rem 1.5rem 1.5rem!important;overflow-y:auto}
.collectible-detail{display:grid;gap:1rem;min-width:0}
.collectible-detail .pb-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}
.collectible-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
.collectible-inline-form{display:grid;gap:.45rem;padding:.8rem;border:1px solid var(--ui-border);border-radius:12px;background:var(--ui-surface)}
.collectible-detail table{width:100%}
@media (max-width:700px){.collectible-tools,.collectible-detail .pb-tiles{grid-template-columns:1fr 1fr}
.collectible-tools{grid-template-columns:1fr}}
.inventory-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.8rem;margin-bottom:1rem}
.inventory-card{display:grid;gap:.4rem;padding:1rem;border:1px solid var(--ui-border);border-radius:14px;background:var(--ui-surface)}
.inventory-name{font-size:.8rem;text-transform:uppercase;letter-spacing:.05em;color:var(--ui-muted)}
.inventory-qty{font-size:2rem;line-height:1.1;font-variant-numeric:tabular-nums}
.inventory-card.is-negative .inventory-qty,.inventory-zero{color:#dc2626;font-weight:700}
.inventory-card.is-empty .inventory-qty{color:#d97706}
.inventory-possible{border-style:dashed}
.inventory-add{display:grid;grid-template-columns:5.5rem minmax(0,1fr) auto;gap:.35rem}
.urgent-overlay{position:fixed;inset:0;z-index:2147483000;display:grid;place-items:center;padding:1.5rem;background:rgba(10,10,12,.88);backdrop-filter:blur(6px)}
.urgent-overlay.hidden{display:none}
body.urgent-active{overflow:hidden}
.urgent-box{width:min(760px,100%);max-height:90vh;overflow:auto;padding:2rem 2.2rem;border-radius:20px;background:var(--ui-surface);border:3px solid #dc2626;box-shadow:0 0 0 8px rgba(220,38,38,.2),0 30px 80px rgba(0,0,0,.5);text-align:center;animation:urgent-pulse 1.6s ease-in-out 3}
.urgent-eyebrow{margin:0 0 .4rem;color:#dc2626;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.urgent-box h2{margin:0 0 1rem;font-size:1.8rem}
.urgent-message{font-size:1.25rem;line-height:1.5;white-space:pre-wrap;margin:0 0 1rem}
.urgent-meta{color:var(--ui-muted);margin:0 0 1.4rem}
.urgent-button{font-size:1.1rem;padding:.8rem 2.4rem}
@keyframes urgent-pulse{50%{box-shadow:0 0 0 18px rgba(220,38,38,.08),0 30px 80px rgba(0,0,0,.5)}}
.urgent-history{display:grid;gap:.4rem}
.urgent-history details{padding:.5rem .7rem;border:1px solid var(--ui-border);border-radius:10px}
.urgent-history ul{margin:.3rem 0 0;padding-left:1.2rem}
:root:root:root .section-actions .tow-create-action{display:inline-flex;align-items:center;justify-content:center;width:auto;height:2.55rem;min-height:2.55rem;padding:.4rem .78rem;border-radius:9px;font-size:.8rem;font-weight:850;letter-spacing:.025em;background:#f5c518;border-color:#f5c518;color:#1f1a00;box-shadow:none;white-space:nowrap}
:root:root:root .section-actions .tow-create-action:hover:not(:disabled){background:#d9ab00;border-color:#d9ab00;color:#1f1a00}
:root:root:root[data-theme="DARK"] .section-actions .tow-create-action{background:#e0b400;border-color:#e0b400;color:#1a1600}
:root:root:root[data-theme="DARK"] .section-actions .tow-create-action:hover:not(:disabled){background:#f5c518;border-color:#f5c518;color:#1a1600}
