
/* V023.5 – GESAMTSYSTEM-NEON: ausschliesslich Bildschirmoberflaeche.
   Druckvorlagen, Beleg-iframe, Firmenlogos, SQL und Benutzerrechte bleiben gleich. */
:root{--ma235-side:250px;--ma235-bg:#061321;--ma235-panel:#092039;--ma235-panel2:#0a2b46;--ma235-blue:#00cfff;--ma235-line:#05bde3;--ma235-copy:#effaff;--ma235-muted:#a2cce0}
body.ma-v235-shell{background:#061321!important;color:#edf9ff!important;min-height:100vh}
body.ma-v235-shell>header{display:none!important}
body.ma-v235-shell #maV235Sidebar{position:fixed;inset:0 auto 0 0;width:var(--ma235-side);height:100dvh;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;z-index:105;background:linear-gradient(180deg,#061724,#071a2f 70%,#061321);border-right:1px solid #166a94;box-shadow:6px 0 35px #0006;padding:11px 13px 20px;scrollbar-width:thin;scrollbar-color:#235d80 transparent}
body.ma-v235-shell .ma-v235-brand{display:flex;align-items:center;gap:8px;min-height:84px;border-bottom:1px solid #175275;margin-bottom:13px;padding:5px 0 15px}
body.ma-v235-shell .ma-v235-brand svg{flex:0 0 52px;filter:drop-shadow(0 0 8px #00d9f66c)}
body.ma-v235-shell .ma-v235-brand strong,body.ma-v235-shell .ma-v235-brand b{display:block;letter-spacing:1px;font-style:italic;font-size:18px;line-height:1.04;color:white;text-shadow:0 2px 5px #001722}
body.ma-v235-shell .ma-v235-brand b{color:#00d9ff;font-size:17px}
body.ma-v235-shell .ma-v235-brand small{display:block;font-size:9px;letter-spacing:0;color:#c1e4f3;margin-top:6px;white-space:nowrap}
body.ma-v235-shell #maV235Version{color:#a3fbff;background:transparent;padding:0;font-size:10px}
body.ma-v235-shell .ma-v235-nav-head{margin:12px 0 8px;padding-left:6px;color:#4ae5ed;font-weight:800;letter-spacing:1.2px;font-size:10px}
body.ma-v235-shell .ma-v235-tools-head{border-top:1px solid #155276;padding-top:15px;margin-top:18px}
body.ma-v235-shell #nav.ma-v235-sidebar-nav,
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools{display:flex!important;flex-flow:column nowrap!important;gap:5px!important;align-items:stretch!important;justify-content:flex-start!important;min-height:0!important;width:100%!important;max-width:100%!important;height:auto!important;max-height:none!important;overflow:visible!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;transform:none!important;position:static!important;flex-basis:auto!important}
body.ma-v235-shell #nav.ma-v235-sidebar-nav>button,body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools>button,body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools>.ma-v11-menu,body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools>.ma-v11-menu>.ma-v11-menu-button{
  position:relative!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;flex:0 0 auto!important;
  width:100%!important;min-width:0!important;max-width:100%!important;height:auto!important;min-height:35px!important;max-height:none!important;
  margin:0!important;padding:8px 11px!important;border:1px solid #26648a!important;border-radius:7px!important;background:#0b2b45!important;
  color:#f3faff!important;font-size:12px!important;line-height:1.22!important;font-weight:750!important;text-align:left!important;white-space:normal!important;
  overflow:visible!important;text-overflow:clip!important;transform:none!important;box-shadow:inset 0 1px 0 #ffffff0e!important;
}
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools>.ma-v11-menu{border:0!important;background:transparent!important;padding:0!important;overflow:visible!important}
body.ma-v235-shell #nav.ma-v235-sidebar-nav>button:hover,body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools button:hover{filter:brightness(1.18);border-color:#26dafc!important}
body.ma-v235-shell #nav.ma-v235-sidebar-nav>button.primary,body.ma-v235-shell #nav.ma-v235-sidebar-nav>button[aria-current="page"]{background:linear-gradient(95deg,#0095b0,#07c9db)!important;border-color:#78fcff!important;color:#fff!important;box-shadow:0 0 14px #01bce65b!important}
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools>#maV18PartsButton{background:#ed831f!important;border-color:#ffbe4b!important;color:white!important}
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools>#maV226BuyButton,
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools>#maV226SellButton{background:#8241df!important;border-color:#ba8afa!important;color:white!important;filter:none!important;opacity:1!important}
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools>#maV226LogbookButton{background:#e04fa4!important;border-color:#ffc0e4!important;color:white!important;filter:none!important;opacity:1!important}
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools>#maHourlyButton,
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools>#maV215MaterialButton{background:#ffd33e!important;border-color:#ffe982!important;color:#17263a!important}
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools>.ma-v11-menu>.ma-v11-menu-button{background:#009965!important;border-color:#54edbb!important;color:white!important}
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools>#logout{background:#c32443!important;border-color:#fa617b!important;color:white!important;margin-top:7px!important}
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools>#maV16Theme{background:#0d2942!important;color:#e7f6ff!important;border:1px solid #6fa2c3!important}
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools>#maV226LogbookButton{margin:0 0 9px!important}
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools>#maV215MaterialButton{margin-bottom:11px!important}
/* Keine doppelten Untertitel: Buttons zeigen IMMER ihre echte Beschriftung. */
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools button::after{content:none!important}
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools .ma-v11-menu-dropdown{position:static!important;transform:none!important;inset:auto!important;display:grid!important;grid-template-columns:1fr!important;width:100%!important;min-width:0!important;max-width:100%!important;max-height:48vh!important;overflow-y:auto!important;margin-top:6px!important;padding:8px!important;background:#0d2a43!important;box-shadow:none!important}
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools .ma-v11-menu-dropdown[hidden]{display:none!important}
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools .ma-v11-menu-dropdown::before{font-size:10px!important}
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools .ma-v11-menu-dropdown button{min-height:34px!important;font-size:12px!important;padding:8px!important}
body.ma-v235-shell .ma-v235-sidebar-foot{margin:16px 0 4px;padding:11px 7px 0;border-top:1px solid #155276;font-size:10px;color:#b8d5e4;display:flex;gap:7px;align-items:center}
body.ma-v235-shell .ma-v235-led,#maV235Topline i{display:inline-block;width:8px;height:8px;border-radius:50%;background:#32e691;box-shadow:0 0 8px #2feb8b}
body.ma-v235-shell>#maV235MobileToggle{display:none}
body.ma-v235-shell #maV16TopAlerts{margin:0 0 0 var(--ma235-side)!important;width:calc(100% - var(--ma235-side))!important;max-width:none!important;padding:10px 19px!important;border-bottom:1px solid #124969!important;background:#071b2d!important}
body.ma-v235-shell .ma-v16-alertbar{width:100%!important;min-height:auto!important;display:flex!important;justify-content:center!important}
body.ma-v235-shell .ma-v16-alertbar #maNotificationDock{width:100%!important;display:flex!important;justify-content:center!important;align-items:center!important;flex-wrap:wrap!important;gap:8px!important}
body.ma-v235-shell .ma-v16-alertbar #workshopBell,body.ma-v235-shell .ma-v16-alertbar #maActivityWork,body.ma-v235-shell .ma-v16-alertbar #maActivityLeave,body.ma-v235-shell .ma-v16-alertbar #maV18InvoiceBell{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;min-width:188px!important;max-width:220px!important;min-height:38px!important;padding:7px 11px!important;font-size:12px!important;line-height:1.15!important;background:#0c314b!important;border-color:#22658b!important;color:#eafaff!important;text-align:center!important;white-space:normal!important}
body.ma-v235-shell .ma-v16-alertbar #maNotificationDock .ma-notify-label{display:inline!important;font-size:12px!important;font-weight:750!important;white-space:nowrap!important}
body.ma-v235-shell .ma-v16-alertbar #maNotificationDock .ma-count,body.ma-v235-shell .ma-v16-alertbar #workshopBellCount,body.ma-v235-shell .ma-v16-alertbar #maV18InvoiceBell .ma-v18-count{font-size:10px!important;line-height:1!important;padding:3px 6px!important;min-width:19px!important}
body.ma-v235-shell #maV235Topline{margin-left:var(--ma235-side);padding:12px 22px 10px;display:flex;justify-content:space-between;gap:12px;align-items:center;background:#061928;border-bottom:1px solid #125472;color:#7ce5f4;font-size:12px;font-weight:750;letter-spacing:.025em}
body.ma-v235-shell .ma-v235-topline-right{display:flex;align-items:center;gap:7px;color:#bbddea;font-weight:600}.ma-v235-topline-right small{font-size:11px;margin-left:12px;color:#b2d1e2}
body.ma-v235-shell #app:not(.hidden){display:block!important;margin:0 0 0 var(--ma235-side)!important;width:calc(100% - var(--ma235-side))!important;max-width:none!important;padding:16px clamp(14px,1.8vw,28px) 70px!important;box-sizing:border-box!important;min-height:calc(100dvh - 90px)!important;background:radial-gradient(ellipse at 30% -20%,#0a3852,#061422 52%)!important}
/* Breites UI: Forms, Tabellen, Termine, Werkstatt, Urlaub, Meldungen, Admin */
html[data-skin="modern"] body.ma-v235-shell #view>.card,html[data-skin="modern"] body.ma-v235-shell #view .card,html[data-skin="modern"] body.ma-v235-shell #view .overview-page .card,
body.ma-v235-shell #view .ma-v220-panel,body.ma-v235-shell #view .ma-v230-log-page,
body.ma-v235-shell #view .ma-v226-absence-board,body.ma-v235-shell #view .ma-v13-calendar,
body.ma-v235-shell #view .ma-v209-flow>section,body.ma-v235-shell #view .ma-v210-panel{
  background:linear-gradient(150deg,#09243d,#071a2d)!important;border:1px solid #076e91!important;border-radius:15px!important;
  color:#eaf7ff!important;box-shadow:inset 0 1px 0 #65e8ff12,0 7px 24px #0004!important;
}
body.ma-v235-shell #view h2,body.ma-v235-shell #view h3{color:#f4fcff!important;text-shadow:0 1px 2px #001f33}
body.ma-v235-shell #view h2{font-size:clamp(20px,1.55vw,29px)!important}
body.ma-v235-shell #view h3{font-size:clamp(15px,1.2vw,19px)!important}
body.ma-v235-shell #view .muted,body.ma-v235-shell #view small{color:#aacbdc}
body.ma-v235-shell #view .overview-list-entry{background:#092f4e!important;border:1px solid #225c7c!important;color:white!important;border-radius:10px!important;box-shadow:none!important}
body.ma-v235-shell #view .overview-list-entry .badge{color:#fff!important}
body.ma-v235-shell #view table{border-collapse:separate;border-spacing:0;overflow:hidden;border-radius:10px}
body.ma-v235-shell #view thead th,body.ma-v235-shell #view table th{background:#0b3b57!important;color:#b5ecff!important;border-bottom:1px solid #146787!important}
body.ma-v235-shell #view td{border-bottom:1px solid #1b4d67!important}
body.ma-v235-shell #view input:not([type="checkbox"]):not([type="radio"]),body.ma-v235-shell #view select,body.ma-v235-shell #view textarea{background:#071c30!important;border-color:#2e7194!important;color:#f1fcff!important;box-shadow:none!important}
body.ma-v235-shell #view input:focus,body.ma-v235-shell #view select:focus,body.ma-v235-shell #view textarea:focus{outline:2px solid #06caf3!important;outline-offset:1px!important}
body.ma-v235-shell #view button.primary,body.ma-v235-shell #view button.v214-btn.primary{background:linear-gradient(125deg,#03869c,#00bbcb)!important;color:#fff!important;border-color:#20e2e6!important}
body.ma-v235-shell #view button:disabled{cursor:not-allowed;opacity:.6}
body.ma-v235-shell #view .metric-card{background:linear-gradient(135deg,#09283f,#062136)!important;border:1px solid #05a5d0!important;border-radius:14px!important;box-shadow:0 0 12px #00aeeb20!important}
body.ma-v235-shell #view .metric-card strong{color:#eafaff!important}
/* Dashboard: echtes Datenmodell, nur neue Präsentation. */
body.ma-v235-shell #view .overview-page .overview-heading{padding:3px 0 12px}
body.ma-v235-shell #view .overview-page .overview-heading h2{font-size:26px!important;margin:0!important}
body.ma-v235-shell #view .overview-page .overview-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px!important;margin-bottom:14px!important}
body.ma-v235-shell #view .overview-page .metric-card{min-height:85px;padding:13px 16px!important}
body.ma-v235-shell #view .overview-page .metric-card span{font-size:13px;color:#b0e8ff}
body.ma-v235-shell #view .overview-page .metric-card strong{font-size:30px!important;margin:5px 0!important}
body.ma-v235-shell #view #maV235Hero{background:linear-gradient(90deg,#061928 5%,#061928 40%,#061928aa 64%,#06192825),url('./ma235-hero-car.webp') right center/auto 100% no-repeat,#061827!important;border:1px solid #04a8d3;border-radius:17px;min-height:164px;padding:20px 25px;margin:0 0 14px;display:flex;align-items:center;box-shadow:0 0 19px #00bcfd24,inset 0 1px 0 #91f5ff33;overflow:hidden}
body.ma-v235-shell #view .ma-v235-hero-copy small{font-size:10px;color:#91dce9;font-weight:800;letter-spacing:.08em}
body.ma-v235-shell #view .ma-v235-hero-copy h2{font-size:clamp(24px,3vw,43px)!important;font-weight:900;font-style:italic;letter-spacing:1.4px;margin:6px 0!important;line-height:1.04!important;color:white!important}
body.ma-v235-shell #view .ma-v235-hero-copy em{display:block;font-style:italic;color:#00dafa}
body.ma-v235-shell #view .ma-v235-hero-copy p{color:#d7f1fc;font-size:13px;margin:8px 0 0}
body.ma-v235-shell #view .overview-page .overview-columns{grid-template-columns:minmax(0,1.55fr) minmax(290px,.95fr)!important;align-items:start;gap:13px!important}
body.ma-v235-shell #view .ma-v235-right-column{display:grid;gap:13px;min-width:0}
body.ma-v235-shell #view .ma-v235-quick{margin:0!important;padding:17px!important}
body.ma-v235-shell #view .ma-v235-panel-title h3{margin:0 0 14px!important}
body.ma-v235-shell #view .ma-v235-quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
body.ma-v235-shell #view .ma-v235-quick-grid button{display:flex;flex-flow:column;align-items:center;justify-content:center;min-height:72px!important;gap:6px!important;background:#0a314d!important;border:1px solid #08a4d3!important;border-radius:12px!important;color:#e5faff!important;font-size:13px!important;padding:10px!important;text-align:center;box-shadow:inset 0 1px 0 #71efff1c!important}
body.ma-v235-shell #view .ma-v235-quick-grid button span{font-size:12px;font-weight:750}
body.ma-v235-shell #view .ma-v235-appointment-card{padding:17px!important}
body.ma-v235-shell #view .ma-v235-appointment-card>h3{margin:0 0 9px!important}
body.ma-v235-shell #view .ma-v235-appointment-row{display:flex;align-items:center;gap:12px;margin:10px 0!important;padding:10px 12px;background:#0c2b44;border:1px solid #176891;border-radius:11px;min-height:90px}
body.ma-v235-shell #view .ma-v235-appointment-copy{flex:1 1 0;min-width:0}
body.ma-v235-shell #view .ma-v235-appointment-row .overview-list-entry{background:transparent!important;border:0!important;padding:0!important;margin:0!important;min-height:0!important;line-height:1.45!important;box-shadow:none!important}
body.ma-v235-shell #view .ma-v235-appointment-row .ma-v229-overview-actions{display:flex;flex:0 0 185px;flex-flow:column;gap:6px;background:transparent!important;min-width:0}
body.ma-v235-shell #view .ma-v235-appointment-row .ma-v229-overview-actions button{min-height:32px!important;padding:7px!important;font-size:11px!important;border:1px solid #2e87b0!important;background:#123c58!important;color:#fff!important;white-space:normal}
body.ma-v235-shell #view .ma-v235-appointment-card>h3[style]{margin-top:16px!important}
/* Kunden/Fahrzeuge/Urlaub/Modal/Preislisten erhalten dieselbe Kontur, aber
   Originalfunktion, -Positionierung und scrollbare Inhaltsbereiche bleiben erhalten. */
body.ma-v235-shell .ma-v215-material-overlay .ma-v215-material-dialog,
body.ma-v235-shell .ma-v218-hourly-overlay .ma-v218-hourly-dialog,
body.ma-v235-shell .ma-order-dialog,
body.ma-v235-shell .ma-brand-dialog,
body.ma-v235-shell .ma-v227-dialog{border:1px solid #12c8e8!important;box-shadow:0 16px 55px #000c,0 0 20px #00b4fa24!important}
body.ma-v235-shell #view .ma-v230-right-card,body.ma-v235-shell #view .ma-v230-user-accordion{border-color:#116b8d!important}
/* Dokumentlayout bleibt weiß, Logo bleibt im Dokument. Keine iframe-Styles. */
body.ma-v235-shell #view .v214-panel,body.ma-v235-shell #view .v214-paper{border-radius:16px!important;box-shadow:0 0 0 1px #1c9abe33,0 15px 40px #0004!important}
@media(max-width:1250px){:root{--ma235-side:218px}body.ma-v235-shell #view .overview-page .overview-columns{grid-template-columns:1fr!important}body.ma-v235-shell #view .ma-v235-right-column{grid-template-columns:1fr 1fr}}
@media(max-width:950px){body.ma-v235-shell #view .ma-v235-right-column{grid-template-columns:1fr}body.ma-v235-shell #view .overview-page .overview-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
 body.ma-v235-shell #maV235Sidebar{transform:translateX(-105%);transition:transform .2s;width:min(290px,83vw);z-index:145}
 body.ma-v235-shell.ma-v235-mobile-open #maV235Sidebar{transform:translateX(0)}
 body.ma-v235-shell>#maV235MobileToggle{display:block!important;position:fixed!important;bottom:17px;left:14px;z-index:150;background:#078eac;color:#fff;border:1px solid #81e9fa;border-radius:10px;padding:10px 16px;font-weight:800;box-shadow:0 5px 25px #0008}
 body.ma-v235-shell #maV16TopAlerts,body.ma-v235-shell #maV235Topline,body.ma-v235-shell #app:not(.hidden){margin-left:0!important;width:100%!important}
 body.ma-v235-shell #view .overview-page .overview-columns,body.ma-v235-shell #view .ma-v235-right-column{grid-template-columns:1fr!important}
 body.ma-v235-shell #view #maV235Hero{min-height:135px;padding:15px;background-position:right center;background-size:auto 100%}
 body.ma-v235-shell #view .ma-v235-appointment-row{flex-direction:column;align-items:stretch}
 body.ma-v235-shell #view .ma-v235-appointment-row .ma-v229-overview-actions{flex:0 0 auto;flex-direction:row}
 body.ma-v235-shell #view .ma-v235-appointment-row .ma-v229-overview-actions button{flex:1 1 0}
}

/* V023.5A: Header-Meldungen mittig + kompakter Rechnungseditor wie Referenz. */
body.ma-v235-shell #view #maV214InvoiceRoot .v214-layout{grid-template-columns:minmax(430px,.9fr) minmax(560px,1.1fr)!important;gap:14px!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v214-panel{padding:14px 15px!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v214-paper{padding:10px!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v214-paper iframe{min-height:640px!important;height:min(80vh,980px)!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v214-toolbar{margin-bottom:10px!important;gap:10px!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v214-toolbar h2{font-size:21px!important;margin:6px 0 0!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v214-toolbar .v214-state{padding:8px 12px!important;font-size:12px!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v214-panel h3{font-size:15px!important;margin:10px 0 6px!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v214-panel label{font-size:11px!important;margin:3px 0 2px!important}
html body.ma-v235-shell #view #maV214InvoiceRoot .v214-panel input,html body.ma-v235-shell #view #maV214InvoiceRoot .v214-panel textarea,html body.ma-v235-shell #view #maV214InvoiceRoot .v214-panel select:not([hidden]){min-height:35px!important;padding:7px 9px!important;font-size:12px!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v228-phase,body.ma-v235-shell #view #maV214InvoiceRoot .v233-payment-box,body.ma-v235-shell #view #maV214InvoiceRoot .v228-customer-block{padding:8px 10px!important;margin:0 0 7px!important;font-size:11.5px!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v228-customer-block p{margin:4px 0 0!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v228-data-pickers{gap:8px!important;margin-bottom:2px!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v228-catalog{margin:4px 0 6px!important;padding:8px!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v228-catalog-head{margin-bottom:6px!important}
html body.ma-v235-shell #view #maV214InvoiceRoot .v228-catalog-tabs button{min-height:32px!important;padding:6px 8px!important;font-size:11.5px!important}
html body.ma-v235-shell #view #maV214InvoiceRoot .v232-catalog .v232-catalog-search-label{margin:2px 0 6px!important;font-size:11px!important}
html body.ma-v235-shell #view #maV214InvoiceRoot .v232-catalog #maV232Search{min-height:34px!important;padding:6px 9px!important}
html body.ma-v235-shell #view #maV214InvoiceRoot #maV228CatalogList.v228-catalog-list{max-height:124px!important;gap:5px!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v214-editrow{grid-template-columns:minmax(0,2.2fr) 66px 90px 62px 38px!important;gap:6px!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v214-editrow input{padding:6px 8px!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v228-inline-help,body.ma-v235-shell #view #maV214InvoiceRoot .v232-free-help{margin:4px 0 6px!important;font-size:11px!important;line-height:1.35!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v232-items-heading{margin-top:4px!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v214-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px!important;margin-top:10px!important}
html body.ma-v235-shell #view #maV214InvoiceRoot .v214-panel .v214-btn{min-height:34px!important;padding:7px 9px!important;font-size:11.5px!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v214-panel .v214-message{padding:7px 9px!important;margin-top:7px!important;font-size:11.5px!important}
@media(max-width:1180px){body.ma-v235-shell #view #maV214InvoiceRoot .v214-layout{grid-template-columns:1fr!important}body.ma-v235-shell #view #maV214InvoiceRoot .v214-paper{position:static!important}}
@media(max-width:760px){body.ma-v235-shell .ma-v16-alertbar #maNotificationDock{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}body.ma-v235-shell .ma-v16-alertbar #workshopBell,body.ma-v235-shell .ma-v16-alertbar #maActivityWork,body.ma-v235-shell .ma-v16-alertbar #maActivityLeave,body.ma-v235-shell .ma-v16-alertbar #maV18InvoiceBell{min-width:0!important;max-width:none!important;width:100%!important;font-size:11px!important;padding:8px 7px!important}body.ma-v235-shell #view #maV214InvoiceRoot .v214-actions{grid-template-columns:1fr!important}body.ma-v235-shell #view #maV214InvoiceRoot .v214-editrow{grid-template-columns:minmax(0,1fr) 68px 82px 62px!important}body.ma-v235-shell #view #maV214InvoiceRoot .v214-editrow .v228-add{grid-column:4!important}}

/* Weißmodus: neutrale Flächen, unveränderte Funktionen und Firmenbelege. */
html[data-skin="classic"] body.ma-v235-shell #app:not(.hidden){background:#eaf2fa!important;color:#1b3850!important}
html[data-skin="classic"] body.ma-v235-shell #view>.card,html[data-skin="classic"] body.ma-v235-shell #view .card{background:#fff!important;border-color:#b8d7e8!important;color:#153149!important}
html[data-skin="classic"] body.ma-v235-shell #view h2,html[data-skin="classic"] body.ma-v235-shell #view h3{color:#184465!important;text-shadow:none!important}
@media print{body.ma-v235-shell #maV235Sidebar,body.ma-v235-shell #maV235MobileToggle,body.ma-v235-shell #maV235Topline,body.ma-v235-shell #maV16TopAlerts,body.ma-v235-shell #maV235Hero{display:none!important}body.ma-v235-shell #app:not(.hidden){width:100%!important;margin:0!important;padding:0!important;background:#fff!important}}
/* Vertragsfeste Ausnahme: Die helle Proforma-/Rechnungseingabe bleibt hell und lesbar. */
html body.ma-v235-shell #view #maV214InvoiceRoot .v214-panel h3,
html body.ma-v235-shell #view #maV214InvoiceRoot .v214-panel h4,
html body.ma-v235-shell #view #maV214InvoiceRoot .v214-panel label{color:#153653!important;text-shadow:none!important}
html body.ma-v235-shell #view #maV214InvoiceRoot .v214-panel .muted,
html body.ma-v235-shell #view #maV214InvoiceRoot .v214-panel small{color:#446985!important}
html body.ma-v235-shell #view #maV214InvoiceRoot .v228-price-item,
html body.ma-v235-shell #view #maV214InvoiceRoot .v228-price-item strong,
html body.ma-v235-shell #view #maV214InvoiceRoot .v228-price-item span{color:#142e44!important;text-shadow:none!important}


/* V023.5B – echter Quality-Pass: hochwertigere Proportionen, Karten und Rechnungsansicht. */
:root{--ma235-glow:0 18px 55px rgba(0,0,0,.32);--ma235-soft:0 10px 30px rgba(0,0,0,.18);--ma235-edge:rgba(76,217,255,.26)}
body.ma-v235-shell #maV235Sidebar{background:
 linear-gradient(180deg,rgba(8,33,52,.97) 0%,rgba(6,23,36,.99) 55%,rgba(5,18,29,1) 100%)!important;
 box-shadow:14px 0 42px rgba(0,0,0,.34)!important;padding:14px 14px 22px!important}
body.ma-v235-shell .ma-v235-brand{min-height:96px!important;gap:10px!important;padding:7px 2px 18px!important;margin-bottom:14px!important}
body.ma-v235-shell .ma-v235-brand svg{flex:0 0 58px!important;transform:translateY(-1px);filter:drop-shadow(0 0 12px rgba(0,217,255,.28))!important}
body.ma-v235-shell .ma-v235-brand strong{font-size:21px!important;letter-spacing:.7px!important}
body.ma-v235-shell .ma-v235-brand b{font-size:19px!important;letter-spacing:.7px!important}
body.ma-v235-shell .ma-v235-brand small{font-size:10px!important;color:#caedf9!important;margin-top:7px!important}
body.ma-v235-shell .ma-v235-nav-head{font-size:10px!important;letter-spacing:1.45px!important;color:#6eeeff!important;margin:14px 0 9px!important}
body.ma-v235-shell #nav.ma-v235-sidebar-nav>button,body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools>button,body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools>.ma-v11-menu>.ma-v11-menu-button{min-height:40px!important;border-radius:11px!important;padding:10px 12px!important;border-color:rgba(66,135,173,.82)!important;background:linear-gradient(180deg,rgba(15,53,82,.95),rgba(12,41,65,.95))!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 6px 14px rgba(0,0,0,.16)!important;transition:transform .16s ease,box-shadow .16s ease,filter .16s ease,border-color .16s ease!important}
body.ma-v235-shell #nav.ma-v235-sidebar-nav>button:hover,body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools button:hover{transform:translateY(-1px)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 10px 18px rgba(0,0,0,.22)!important}
body.ma-v235-shell #nav.ma-v235-sidebar-nav>button.primary,body.ma-v235-shell #nav.ma-v235-sidebar-nav>button[aria-current="page"]{background:linear-gradient(180deg,#13b5cf 0%,#0697b6 100%)!important;color:#fff!important;border-color:#90f2ff!important;box-shadow:0 0 0 1px rgba(255,255,255,.06),0 0 18px rgba(0,205,255,.22)!important}
body.ma-v235-shell .ma-v235-sidebar-foot{font-size:10px!important;color:#d7edf9!important;opacity:.92}
body.ma-v235-shell #maV16TopAlerts{background:linear-gradient(180deg,#081a2c,#081f33)!important;box-shadow:inset 0 -1px 0 rgba(0,210,255,.08)!important}
body.ma-v235-shell #maV235Topline{background:linear-gradient(180deg,#07192a,#071827)!important;padding:12px 24px 11px!important;color:#9cecff!important;box-shadow:inset 0 -1px 0 rgba(0,193,255,.09)!important}
body.ma-v235-shell .ma-v235-topline-right{font-weight:700!important;color:#d8edf6!important}
body.ma-v235-shell #app:not(.hidden){background:
 radial-gradient(circle at 20% -10%,rgba(11,75,111,.7),transparent 34%),
 radial-gradient(circle at 90% 0,rgba(5,73,103,.44),transparent 28%),
 linear-gradient(180deg,#061523 0%,#071726 100%)!important;padding-top:18px!important}
body.ma-v235-shell #view>.card,body.ma-v235-shell #view .card,body.ma-v235-shell #view .overview-page .card{border-radius:18px!important;box-shadow:var(--ma235-soft)!important}
body.ma-v235-shell #view .overview-page .overview-heading{padding:2px 0 14px!important}
body.ma-v235-shell #view .overview-page .overview-heading h2{font-size:27px!important;font-weight:850!important;letter-spacing:-.02em}
body.ma-v235-shell #view .overview-page .overview-heading p{font-size:13px!important;color:#c0dceb!important}
body.ma-v235-shell #view .overview-page .overview-stats{gap:14px!important;margin-bottom:16px!important}
body.ma-v235-shell #view .metric-card{position:relative;overflow:hidden;min-height:102px!important;padding:18px 18px 16px!important;border-radius:18px!important;background:linear-gradient(165deg,rgba(15,51,78,.98),rgba(9,35,57,.98))!important;border:1px solid rgba(62,160,203,.62)!important;box-shadow:var(--ma235-soft),inset 0 1px 0 rgba(255,255,255,.05)!important}
body.ma-v235-shell #view .metric-card::before{content:'';position:absolute;inset:0 auto auto 0;width:100%;height:3px;background:linear-gradient(90deg,#36ddff,#16a5d5,#146283);opacity:.9}
body.ma-v235-shell #view .metric-card span{font-size:12px!important;font-weight:800!important;letter-spacing:.02em;text-transform:none;color:#9edff3!important}
body.ma-v235-shell #view .metric-card strong{font-size:37px!important;line-height:1!important;margin:10px 0 7px!important;color:#fff!important;letter-spacing:-.03em}
body.ma-v235-shell #view .metric-card small{font-size:12px!important;color:#c1deea!important}
body.ma-v235-shell #view #maV235Hero{min-height:176px!important;padding:24px 28px!important;border-radius:21px!important;border-color:#1cc7f0!important;box-shadow:0 0 0 1px rgba(113,240,255,.08),0 16px 40px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.06)!important;background:linear-gradient(95deg,rgba(6,25,40,.98) 6%,rgba(6,25,40,.97) 40%,rgba(6,25,40,.68) 64%,rgba(6,25,40,.18)),url('./ma235-hero-car.webp') right center/auto 100% no-repeat,#061827!important}
body.ma-v235-shell #view .ma-v235-hero-copy small{font-size:10px!important;letter-spacing:.16em!important;color:#8ae7ef!important}
body.ma-v235-shell #view .ma-v235-hero-copy h2{font-size:clamp(32px,3.6vw,48px)!important;letter-spacing:1.2px!important;margin:8px 0 10px!important}
body.ma-v235-shell #view .ma-v235-hero-copy p{font-size:14px!important;color:#def3fb!important;max-width:450px!important}
body.ma-v235-shell #view .overview-page .overview-columns{gap:15px!important;grid-template-columns:minmax(0,1.6fr) minmax(315px,.92fr)!important}
body.ma-v235-shell #view .ma-v235-quick,body.ma-v235-shell #view .ma-v235-appointment-card,body.ma-v235-shell #view .ma-v235-right-column>.card{background:linear-gradient(180deg,rgba(9,38,60,.98),rgba(6,24,40,.98))!important;border:1px solid rgba(27,127,171,.75)!important;box-shadow:var(--ma235-glow),inset 0 1px 0 rgba(255,255,255,.03)!important}
body.ma-v235-shell #view .ma-v235-panel-title h3,body.ma-v235-shell #view .ma-v235-appointment-card>h3{font-size:17px!important;font-weight:820!important;letter-spacing:-.01em;margin-bottom:12px!important}
body.ma-v235-shell #view .ma-v235-quick{padding:18px!important}
body.ma-v235-shell #view .ma-v235-quick-grid{gap:10px!important}
body.ma-v235-shell #view .ma-v235-quick-grid button{min-height:82px!important;border-radius:14px!important;background:linear-gradient(180deg,#0d3554,#0a2a44)!important;border:1px solid rgba(45,155,205,.85)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 8px 18px rgba(0,0,0,.14)!important;transition:transform .16s ease,filter .16s ease,border-color .16s ease!important}
body.ma-v235-shell #view .ma-v235-quick-grid button:hover{transform:translateY(-1px)!important;filter:brightness(1.06)!important;border-color:#67e8ff!important}
body.ma-v235-shell #view .ma-v235-quick-grid button span{font-size:12px!important;font-weight:800!important;letter-spacing:.01em}
body.ma-v235-shell #view .ma-v235-appointment-card{padding:18px!important}
body.ma-v235-shell #view .today-summary{font-size:12px!important;color:#b7d6e5!important;margin:0 0 10px!important}
body.ma-v235-shell #view .ma-v235-appointment-row{gap:14px!important;padding:12px 13px!important;min-height:96px!important;border-radius:14px!important;background:linear-gradient(180deg,rgba(13,47,72,.96),rgba(9,37,58,.96))!important;border:1px solid rgba(40,124,164,.78)!important;box-shadow:0 9px 20px rgba(0,0,0,.12)!important}
body.ma-v235-shell #view .ma-v235-appointment-row .overview-list-entry{color:#f8fbff!important}
body.ma-v235-shell #view .ma-v235-appointment-row .overview-list-entry b{font-size:15px!important}
body.ma-v235-shell #view .ma-v235-appointment-row .ma-v229-overview-actions{flex:0 0 196px!important;gap:8px!important}
body.ma-v235-shell #view .ma-v235-appointment-row .ma-v229-overview-actions button{min-height:36px!important;border-radius:10px!important;background:linear-gradient(180deg,#134461,#103751)!important;border:1px solid rgba(63,161,208,.8)!important;font-size:12px!important;font-weight:760!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important}
body.ma-v235-shell #view .overview-list-entry{padding:14px 15px!important;border-radius:13px!important;background:linear-gradient(180deg,rgba(13,47,72,.96),rgba(9,35,56,.96))!important;border:1px solid rgba(39,116,154,.8)!important;box-shadow:0 7px 18px rgba(0,0,0,.11)!important;transition:transform .15s ease,filter .15s ease,border-color .15s ease!important}
body.ma-v235-shell #view .overview-list-entry:hover{transform:translateY(-1px)!important;filter:brightness(1.03)!important;border-color:#5fe4ff!important}
body.ma-v235-shell #view .overview-list-entry .badge{margin-top:8px!important;padding:6px 10px!important;border-radius:999px!important;font-size:11px!important;font-weight:750!important}
body.ma-v235-shell #view .v214-toolbar>div{display:flex!important;align-items:flex-start!important;gap:10px!important;flex-wrap:wrap!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v214-toolbar .v214-btn{border-radius:10px!important;box-shadow:0 6px 16px rgba(17,55,80,.09)!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v214-panel{background:linear-gradient(180deg,#ffffff,#f6f9fc)!important;border:1px solid #d7e3ec!important;box-shadow:0 20px 44px rgba(8,26,45,.16)!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v214-paper{background:linear-gradient(180deg,#ffffff,#f8fafc)!important;border:1px solid #d8e3eb!important;box-shadow:0 20px 44px rgba(8,26,45,.14)!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v228-phase{background:linear-gradient(180deg,#e9f5fa,#e1eef6)!important;border-color:#bfd6e3!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v228-customer-block{background:#edf4f9!important;border:1px solid #c8d8e5!important;border-radius:12px!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v228-catalog{background:linear-gradient(180deg,#f7fafc,#eef4f8)!important;border-color:#c9d9e5!important;border-radius:13px!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v228-catalog-head strong{font-size:15px!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v228-price-item{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:12px!important;padding:10px 11px!important;border-radius:10px!important;border:1px solid #c4d3de!important;background:#fff!important;color:#163149!important;box-shadow:0 5px 12px rgba(14,42,67,.05)!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v228-price-item strong{display:block!important;font-size:13px!important;margin-bottom:2px!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v228-price-item small{display:block!important;color:#5b7690!important;font-size:11px!important;line-height:1.35!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v232-add-price{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:108px!important;min-height:30px!important;padding:4px 10px!important;border-radius:999px!important;background:#e8f3fa!important;color:#16557a!important;font-size:11px!important;font-weight:800!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v228-price-item:hover{border-color:#87abc7!important;transform:translateY(-1px)!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v232-lines-table thead th{font-size:11px!important;letter-spacing:.02em!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v232-lines-table tbody td{font-size:12px!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v214-actions .v214-btn{box-shadow:0 7px 16px rgba(18,44,62,.1)!important;font-weight:760!important}
@media(max-width:1250px){body.ma-v235-shell #view .overview-page .overview-columns{grid-template-columns:1fr!important}body.ma-v235-shell #view .ma-v235-right-column{grid-template-columns:1fr 1fr!important}}
@media(max-width:950px){body.ma-v235-shell #view .overview-page .overview-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.ma-v235-shell #view .ma-v235-right-column{grid-template-columns:1fr!important}}
@media(max-width:760px){body.ma-v235-shell #view .metric-card{min-height:92px!important}body.ma-v235-shell #view #maV235Hero{padding:18px 18px!important;min-height:146px!important;background-size:auto 82%!important}body.ma-v235-shell #view .ma-v235-appointment-row .ma-v229-overview-actions{flex:0 0 auto!important;width:100%!important}}


/* V023.7 – Prioritaets-Fix der Kopfzeile gegen historische !important-Regeln.
   Nur Anzeige: originale Meldungsbuttons und Klickhandler bleiben identisch. */
body.ma-v235-shell #maV16TopAlerts.ma-v16-alertbar {
  position:relative!important;
  display:flex!important;
  box-sizing:border-box!important;
  align-items:center!important;
  justify-content:center!important;
  width:calc(100% - var(--ma235-side))!important;
  max-width:none!important;
  min-width:0!important;
  min-height:54px!important;
  height:auto!important;
  margin:0 0 0 var(--ma235-side)!important;
  padding:9px 20px!important;
  overflow:visible!important;
  border-bottom:1px solid #144562!important;
  background:linear-gradient(180deg,#071a2b,#08263c)!important;
}
body.ma-v235-shell #maV16TopAlerts #maNotificationDock {
  position:relative!important;
  display:grid!important;
  box-sizing:border-box!important;
  grid-template-columns:repeat(4,minmax(0,166px))!important;
  grid-auto-flow:row!important;
  justify-content:center!important;
  align-items:center!important;
  align-content:center!important;
  justify-items:stretch!important;
  gap:9px!important;
  flex:none!important;
  width:max-content!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  margin:0 auto!important;
  padding:0!important;
  inset:auto!important;
  transform:none!important;
  overflow:visible!important;
}
body.ma-v235-shell #maV16TopAlerts #maNotificationDock #workshopBellArea,
body.ma-v235-shell #maV16TopAlerts #maNotificationDock #maActivityControls {
  display:contents!important;
}
body.ma-v235-shell #maV16TopAlerts #maNotificationDock #workshopBell,
body.ma-v235-shell #maV16TopAlerts #maNotificationDock #maActivityWork,
body.ma-v235-shell #maV16TopAlerts #maNotificationDock #maActivityLeave,
body.ma-v235-shell #maV16TopAlerts #maNotificationDock #maV18InvoiceBell {
  position:relative!important;
  display:inline-flex!important;
  box-sizing:border-box!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 auto!important;
  gap:5px!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:39px!important;
  min-height:39px!important;
  max-height:39px!important;
  margin:0!important;
  padding:6px 10px!important;
  inset:auto!important;
  transform:none!important;
  overflow:visible!important;
  border:1px solid #286587!important;
  border-radius:10px!important;
  background:linear-gradient(180deg,#123b57,#0d2c46)!important;
  color:#e6f8ff!important;
  font-size:12px!important;
  font-weight:750!important;
  line-height:1.15!important;
  text-align:center!important;
  white-space:nowrap!important;
  letter-spacing:0!important;
  box-shadow:inset 0 1px 0 #ffffff13,0 4px 12px #0003!important;
  cursor:pointer!important;
}
body.ma-v235-shell #maV16TopAlerts #maNotificationDock #workshopBell:hover,
body.ma-v235-shell #maV16TopAlerts #maNotificationDock #maActivityWork:hover,
body.ma-v235-shell #maV16TopAlerts #maNotificationDock #maActivityLeave:hover,
body.ma-v235-shell #maV16TopAlerts #maNotificationDock #maV18InvoiceBell:hover {
  background:linear-gradient(180deg,#185373,#123952)!important;
  border-color:#4dd9f1!important;
}
body.ma-v235-shell #maV16TopAlerts #maNotificationDock .ma-notify-label {
  display:inline!important;
  visibility:visible!important;
  font-size:11px!important;
  line-height:1.15!important;
  font-weight:750!important;
  white-space:nowrap!important;
  color:inherit!important;
  opacity:1!important;
}
body.ma-v235-shell #maV16TopAlerts #maNotificationDock #workshopBellCount,
body.ma-v235-shell #maV16TopAlerts #maNotificationDock .ma-count,
body.ma-v235-shell #maV16TopAlerts #maNotificationDock #maV18InvoiceBell .ma-v18-count {
  position:static!important;
  flex:0 0 auto!important;
  display:inline-flex!important;
  justify-content:center!important;
  align-items:center!important;
  min-width:16px!important;
  height:17px!important;
  padding:1px 4px!important;
  margin:0!important;
  font-size:10px!important;
  line-height:1!important;
  border-radius:999px!important;
  background:#e54967!important;
  color:#fff!important;
}
body.ma-v235-shell #maV16TopAlerts #maNotificationDock #workshopBellCount.hidden,
body.ma-v235-shell #maV16TopAlerts #maNotificationDock .ma-count.hidden,
body.ma-v235-shell #maV16TopAlerts #maNotificationDock #maV18InvoiceBell .ma-v18-count[hidden] {
  display:none!important;
}
@media(max-width:1080px){
  body.ma-v235-shell #maV16TopAlerts #maNotificationDock {grid-template-columns:repeat(4,minmax(0,1fr))!important;width:100%!important;max-width:760px!important;gap:7px!important}
  body.ma-v235-shell #maV16TopAlerts{padding:9px 12px!important}
}
@media(max-width:800px){
  body.ma-v235-shell #maV16TopAlerts #maNotificationDock {grid-template-columns:repeat(2,minmax(0,1fr))!important;max-width:560px!important}
  body.ma-v235-shell #maV16TopAlerts #maNotificationDock #workshopBell,
  body.ma-v235-shell #maV16TopAlerts #maNotificationDock #maActivityWork,
  body.ma-v235-shell #maV16TopAlerts #maNotificationDock #maActivityLeave,
  body.ma-v235-shell #maV16TopAlerts #maNotificationDock #maV18InvoiceBell {height:38px!important;min-height:38px!important;max-height:38px!important}
}
@media(max-width:760px){
  body.ma-v235-shell #maV16TopAlerts.ma-v16-alertbar {width:100%!important;margin-left:0!important;max-width:100%!important;padding:9px 12px 9px 68px!important}
  body.ma-v235-shell #maV16TopAlerts #maNotificationDock{max-width:100%!important}
}
@media(max-width:390px){
  body.ma-v235-shell #maV16TopAlerts #maNotificationDock .ma-notify-label{font-size:10px!important}
  body.ma-v235-shell #maV16TopAlerts #maNotificationDock #workshopBell,
  body.ma-v235-shell #maV16TopAlerts #maNotificationDock #maActivityWork,
  body.ma-v235-shell #maV16TopAlerts #maNotificationDock #maActivityLeave,
  body.ma-v235-shell #maV16TopAlerts #maNotificationDock #maV18InvoiceBell{font-size:10px!important;padding:5px!important}
}
@media print{
  body.ma-v235-shell #maV16TopAlerts.ma-v16-alertbar{display:none!important}
}


/* V023.8 — neue Werkstatt-Demo-Optik, ohne Bestandsdaten/Belege zu verändern. */
body.ma-v235-shell{--ma238-cyan:#06d7f4;--ma238-edge:rgba(0,201,255,.48);--ma238-shadow:0 15px 36px rgba(0,3,10,.38)}
body.ma-v235-shell #maV235Sidebar{background:linear-gradient(180deg,#020b15,#041a2c 60%,#020d18)!important;border-right:1px solid #00c3fa99!important}
body.ma-v235-shell #nav.ma-v235-sidebar-nav>button,body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools>button,body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools>.ma-v11-menu>.ma-v11-menu-button{background:linear-gradient(180deg,#0d253b,#071d31)!important;border:1px solid #215f86!important;color:#e6f7ff!important;min-height:39px!important;font-weight:780!important;font-size:12px!important}
body.ma-v235-shell #nav.ma-v235-sidebar-nav>button.primary{background:linear-gradient(120deg,#08bfd6,#047da9)!important;border-color:#60effa!important;box-shadow:0 0 15px #02c8f544!important}
body.ma-v235-shell #view .overview-page .overview-heading{margin:0 0 2px}
body.ma-v235-shell #view .ma-v238-dashboard .overview-stats{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:10px!important;margin:10px 0 12px!important}
body.ma-v235-shell #view .ma-v238-dashboard .metric-card{min-height:77px!important;padding:10px 12px!important;border-radius:12px!important;background:linear-gradient(165deg,#0d344b,#071c30)!important;border:1px solid var(--ma238-edge)!important;box-shadow:var(--ma238-shadow)!important}
body.ma-v235-shell #view .ma-v238-dashboard .metric-card strong{font-size:27px!important;margin:4px 0!important}
body.ma-v235-shell #view .ma-v238-dashboard .metric-card span{font-size:11px!important;color:#c0f8ff!important}
body.ma-v235-shell #view .ma-v238-dashboard .metric-card small{font-size:10px!important}
body.ma-v235-shell #view #maV235Hero{min-height:161px!important;border-radius:14px!important;border:1px solid #00cfff!important;background:linear-gradient(90deg,#02111f 7%,#02111ff2 42%,#041f37bb 66%,transparent 92%),url('./ma235-hero-car.webp') right center/auto 100% no-repeat,#041321!important;box-shadow:var(--ma238-shadow),0 0 18px #00cfff24!important}
body.ma-v235-shell #view .ma-v235-hero-copy h2{font-size:clamp(30px,3vw,43px)!important}
body.ma-v235-shell #view .ma-v238-dashboard .overview-columns{grid-template-columns:minmax(0,1.35fr) minmax(320px,.78fr)!important;gap:12px!important}
body.ma-v235-shell #view .ma-v235-quick,body.ma-v235-shell #view .ma-v235-appointment-card,body.ma-v235-shell #view .ma-v235-right-column>.card,body.ma-v235-shell #view .ma-v238-bottom-card{border:1px solid #0f8cc1!important;border-radius:14px!important;background:linear-gradient(175deg,#052236,#041a2c)!important;box-shadow:var(--ma238-shadow),inset 0 1px 0 #5fe4ff17!important}
body.ma-v235-shell #view .ma-v235-quick-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px!important}
body.ma-v235-shell #view .ma-v235-quick-grid button{min-height:66px!important;padding:8px 4px!important;border:1px solid #148bc0!important;border-radius:11px!important;background:linear-gradient(180deg,#093451,#07233a)!important}
body.ma-v235-shell #view .ma-v235-quick-grid button span{font-size:11px!important}
body.ma-v235-shell #view .ma-v235-quick-grid button .ma-v238-quick-icon{font-size:20px!important;line-height:1!important}
body.ma-v235-shell #view .ma-v235-appointment-row{min-height:80px!important;padding:9px!important;margin:7px 0!important;border-radius:11px!important}
body.ma-v235-shell #view .ma-v235-appointment-row .ma-v229-overview-actions{flex-basis:145px!important;gap:5px!important}
body.ma-v235-shell #view .ma-v235-appointment-row .ma-v229-overview-actions button{min-height:30px!important;padding:5px 7px!important;font-size:10px!important}
body.ma-v235-shell #view .ma-v238-bottom-cards{display:grid;grid-template-columns:1.3fr .85fr 1fr;gap:12px;margin-top:14px}
body.ma-v235-shell #view .ma-v238-bottom-card{padding:14px 16px;min-height:134px;min-width:0}
body.ma-v235-shell #view .ma-v238-bottom-card h3{margin:0 0 10px!important;font-size:15px!important;color:#b4f4ff!important}
body.ma-v235-shell #view .ma-v238-bottom-card button{font-size:11px!important;min-height:30px!important;padding:6px 12px!important;background:#074363!important;border:1px solid #2ac4e4!important;margin-top:9px}
body.ma-v235-shell #view .ma-v238-activity-row{display:flex;gap:10px;align-items:center;border-bottom:1px solid #154765;padding:6px 0}
body.ma-v235-shell #view .ma-v238-activity-row>span{color:#20e7f9}
body.ma-v235-shell #view .ma-v238-activity-row strong{font-size:12px;display:block}
body.ma-v235-shell #view .ma-v238-activity-row small{font-size:10px;display:block}
body.ma-v235-shell #view .ma-v238-bottom-line{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid #17516d;font-size:12px}
body.ma-v235-shell #view .ma-v238-bottom-line b{color:#a5f8ff;font-size:14px}
/* Neue freie Arbeitszeiten sauber vom kostenlosen Puffer trennen. */
body.ma-v235-shell #view .ma-v238-booking-controls{margin:12px 0!important;padding:14px!important;border:1px solid #158dbb!important;border-radius:14px!important;background:linear-gradient(180deg,#0b3049,#071e33)!important;box-shadow:0 10px 24px #0003!important;color:#e5f6ff!important}
body.ma-v235-shell #view .ma-v238-controls-head{display:flex;justify-content:space-between;gap:10px;align-items:center;padding-bottom:10px;border-bottom:1px solid #205977}
body.ma-v235-shell #view .ma-v238-controls-head strong{font-size:16px;color:#c5f9ff}
body.ma-v235-shell #view .ma-v238-controls-head span{font-size:11px;color:#7cdbf0}
body.ma-v235-shell #view .ma-v238-control-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:end;margin-top:12px}
body.ma-v235-shell #view .ma-v238-booking-controls label{font-size:12px!important;font-weight:750!important;color:#d8f6ff!important}
body.ma-v235-shell #view .ma-v238-booking-controls input,body.ma-v235-shell #view .ma-v238-booking-controls textarea,body.ma-v235-shell #view .ma-v238-booking-controls select{display:block;width:100%;min-height:39px;background:#061e34!important;color:#fff!important;border:1px solid #287ca7!important;border-radius:9px;padding:9px 11px;margin-top:7px}
body.ma-v235-shell #view .ma-v238-booking-controls textarea{resize:vertical;min-height:62px}
body.ma-v235-shell #view .ma-v238-description{display:block;margin-top:12px}
body.ma-v235-shell #view .ma-v238-using-rate .ma-v238-control-grid{display:none!important}
body.ma-v235-shell #view .ma-v238-using-rate #maV238ManualLabel,body.ma-v235-shell #view .ma-v238-using-rate #maV238HourlyLabel{display:none!important}
body.ma-v235-shell #view .ma-v238-calc{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:12px;padding:11px 12px;background:#051829;border:1px solid #1678a4;border-radius:12px}
body.ma-v235-shell #view .ma-v238-calc>div{display:flex;flex-direction:column;min-width:95px;gap:3px}
body.ma-v235-shell #view .ma-v238-calc b{font-size:19px;color:#fbffff}
body.ma-v235-shell #view .ma-v238-calc small{font-size:10px;color:#a5d7e6}
body.ma-v235-shell #view .ma-v238-calc .ma-v238-plus{font-size:19px;font-weight:900;color:#39d6f2}
body.ma-v235-shell #view .ma-v238-calc .ma-v238-total{padding:5px 10px;border:1px solid #1ecde8;border-radius:9px;background:#06405d}
body.ma-v235-shell #view .ma-v238-calc p{flex-basis:100%;font-size:12px;margin:6px 0 0;color:#c9e8f3}
body.ma-v235-shell #view .ma-v238-calc p b{font-size:12px}
body.ma-v235-shell #view .ma-v238-safety{font-size:11px;margin:9px 0 0;color:#9ec9db}
body.ma-v235-shell #view #maV238InvoiceImport{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:10px 12px;background:#e7f5fb;border:1px solid #9fcee2;border-radius:11px;margin:7px 0;color:#18465a}
body.ma-v235-shell #view #maV238InvoiceImport strong{font-size:13px}
body.ma-v235-shell #view #maV238InvoiceImport p{margin:5px 0;font-size:12px;color:#285f78}
body.ma-v235-shell #view #maV238InvoiceImport small{font-size:10px;color:#366d83}
body.ma-v235-shell #view #maV238InvoiceImport button{flex:0 0 auto;background:#006e96;color:#fff;border:1px solid #089cbf;border-radius:10px;padding:9px 12px;font-size:11px;font-weight:750}
/* A4 Live-Vorschau ist dieselbe Struktur und derselbe Firmenkopf wie beim Rechnungs-PDF. */
body.ma-v235-shell #view .ma-v229-order-card{background:#061d30!important}
body.ma-v235-shell #view .ma-v229-order-layout{display:grid!important;grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr)!important;gap:15px!important}
body.ma-v235-shell #view .ma-v229-order-fields{min-width:0}
body.ma-v235-shell #view .ma-v229-order-preview-pane.ma-v238-document-pane{min-width:0;background:#fff!important;border:1px solid #b7cedb!important;border-radius:15px;padding:11px!important;color:#23516a!important;box-shadow:0 10px 28px #0003!important}
body.ma-v235-shell #view .ma-v238-document-pane .ma-v229-order-preview-label{font-size:12px;font-weight:800;color:#1a587e!important;margin:0 0 8px}
body.ma-v235-shell #view #maWorkOrderLivePreview{background:#fff!important;border:0!important;overflow:hidden!important;padding:0!important;min-height:720px!important}
body.ma-v235-shell #view #maV238OrderFrame{display:block;width:100%;height:880px;max-height:80vh;min-height:700px;border:0;background:#fff;border-radius:6px}
body.ma-v235-shell #view .ma-v238-paper-loader{padding:20px;color:#346b82}
@media(max-width:1430px){body.ma-v235-shell #view .ma-v238-dashboard .overview-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important}body.ma-v235-shell #view .ma-v238-dashboard .overview-columns{grid-template-columns:1fr!important}body.ma-v235-shell #view .ma-v235-right-column{grid-template-columns:1fr 1fr!important}}
@media(max-width:1150px){body.ma-v235-shell #view .ma-v229-order-layout{grid-template-columns:1fr!important}body.ma-v235-shell #view #maV238InvoiceImport{flex-wrap:wrap}body.ma-v235-shell #view .ma-v238-bottom-cards{grid-template-columns:1fr 1fr!important}}
@media(max-width:950px){body.ma-v235-shell #view .ma-v235-right-column{grid-template-columns:1fr!important}body.ma-v235-shell #view .ma-v238-bottom-cards{grid-template-columns:1fr!important}}
@media(max-width:760px){body.ma-v235-shell #view .ma-v238-dashboard .overview-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.ma-v235-shell #view .ma-v238-control-grid{grid-template-columns:1fr!important}body.ma-v235-shell #view .ma-v238-calc>div{min-width:70px}body.ma-v235-shell #view .ma-v238-calc b{font-size:15px}body.ma-v235-shell #view .ma-v235-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.ma-v235-shell #view #maV238OrderFrame{min-height:650px}}
@media print{body.ma-v235-shell #view .ma-v238-booking-controls,body.ma-v235-shell #view .ma-v238-bottom-cards{display:none!important}}


/* V023.9 – Bühnenkalender: 15-Minuten-Zeilen und Terminblöcke müssen dieselbe Geometrie verwenden.
   Alte globale Buttons hatten trotz 28px height ein min-height von 38px; Terminpositionen blieben aber 28px-basiert. */
#view .ma-v210-planner .planner-lane > .planner-slot {
  box-sizing:border-box!important;
  display:flex!important;
  width:100%!important;
  height:28px!important;
  min-height:28px!important;
  max-height:28px!important;
  margin:0!important;
  padding:3px 8px!important;
  line-height:20px!important;
  flex:0 0 28px!important;
  border-radius:0!important;
  transform:none!important;
}
#view .ma-v210-planner .planner-lane > .planner-event {
  box-sizing:border-box!important;
  margin:0!important;
  transform:none!important;
}
#view .ma-v210-planner-grid .planner-lane {position:relative!important;min-height:1456px!important}

/* ============================================================
   V024.1 — Mensings Werkstatt / Premium Dashboard
   Nur Übersicht sowie Anordnung Neukunden-Terminplanung.
   Rechnung, Proforma, A4-Dokumente und Druckstile UNVERÄNDERT.
   ============================================================ */
body.ma-v235-shell{
  --ma241-bg:#050e1a;--ma241-surface:#071e31;--ma241-surface2:#0a2940;
  --ma241-border:rgba(31,170,217,.55);--ma241-cyan:#03dbef;
  --ma241-text:#f0faff;--ma241-muted:#a3cadb;
  --ma241-glow:0 14px 33px rgba(0,0,0,.22),0 0 0 1px rgba(17,185,227,.08);
}
body.ma-v235-shell #maV235Sidebar{background:linear-gradient(155deg,#031321 0%,#041625 54%,#020d18 100%)!important;border-right-color:#167797!important}
body.ma-v235-shell #nav.ma-v235-sidebar-nav>button,
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools>button,
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools>.ma-v11-menu>.ma-v11-menu-button{
  border-radius:9px!important;min-height:38px!important;transition:background .17s ease,border-color .17s ease,filter .17s ease!important;
}
body.ma-v235-shell #maV235Topline{background:#051726!important;border-color:#165779!important}
body.ma-v235-shell #app:not(.hidden){background:radial-gradient(ellipse at 32% -18%,#093b56,#061625 58%,#050f1c)!important}
body.ma-v235-shell #view .ma-v241-dashboard{color:var(--ma241-text);max-width:2000px;margin:0 auto;font-family:Inter,'Segoe UI',Arial,sans-serif}
body.ma-v235-shell #view .ma-v241-dashboard *{box-sizing:border-box}
body.ma-v235-shell #view .ma-v241-dashboard button{font-family:inherit;cursor:pointer}
body.ma-v235-shell #view .ma-v241-heading{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:0 0 15px}
body.ma-v235-shell #view .ma-v241-eyebrow{font-size:10px;letter-spacing:.16em;font-weight:900;color:#64eafb;display:flex;align-items:center;gap:8px;margin-bottom:7px}
body.ma-v235-shell #view .ma-v241-pulse{width:6px;height:6px;border-radius:100%;background:#20eea9;box-shadow:0 0 11px #20eea980}
body.ma-v235-shell #view .ma-v241-heading h2{font-size:clamp(24px,2.2vw,34px)!important;line-height:1.1!important;letter-spacing:-.035em!important;font-weight:850!important;margin:0!important;color:#f5fbff!important;text-shadow:none!important}
body.ma-v235-shell #view .ma-v241-heading p{font-size:13px;color:var(--ma241-muted);margin:7px 0 0;line-height:1.5}
body.ma-v235-shell #view .ma-v241-heading-actions{display:flex;align-items:center;gap:11px;flex-wrap:wrap;justify-content:flex-end}
body.ma-v235-shell #view .ma-v241-date{color:#b6ddef;font-size:12px;font-weight:700;white-space:nowrap;padding:9px 5px}
body.ma-v235-shell #view .ma-v241-primary{background:linear-gradient(110deg,#04a5bb,#06c9d7)!important;border:1px solid #69eff8!important;border-radius:9px!important;min-height:38px!important;padding:9px 15px!important;font-size:12px!important;font-weight:800!important;color:#fff!important;box-shadow:0 7px 22px rgba(4,194,229,.16)!important}
body.ma-v235-shell #view .ma-v241-primary:hover{filter:brightness(1.14)}
body.ma-v235-shell #view .ma-v241-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:0 0 13px}
body.ma-v235-shell #view .ma-v241-metric{
  position:relative;display:flex;flex-direction:column;align-items:stretch;min-width:0;min-height:104px!important;
  padding:13px 14px 11px!important;text-align:left!important;border-radius:11px!important;
  border:1px solid rgba(27,141,187,.68)!important;background:linear-gradient(165deg,#0b304b,#072137)!important;
  color:var(--ma241-text)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.055),0 7px 24px rgba(0,0,0,.18)!important;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease!important;
}
body.ma-v235-shell #view .ma-v241-metric::after{content:'';position:absolute;inset:auto 12px 0;height:2px;border-radius:3px 3px 0 0;background:linear-gradient(90deg,transparent,rgba(5,218,244,.55),transparent)}
body.ma-v235-shell #view .ma-v241-metric:hover{transform:translateY(-2px);border-color:rgba(57,232,250,.9)!important;box-shadow:0 12px 30px rgba(0,0,0,.24),0 0 15px rgba(0,214,244,.12)!important}
body.ma-v235-shell #view .ma-v241-metric-top{display:flex;align-items:center;gap:7px;min-width:0}
body.ma-v235-shell #view .ma-v241-metric-symbol{display:grid;place-items:center;flex:none;width:26px;height:26px;color:#15e2f1;font-size:17px;background:#073b56;border:1px solid #0a7295;border-radius:7px}
body.ma-v235-shell #view .ma-v241-metric-label{font-size:11px;font-weight:800;color:#c1ebf5;line-height:1.25}
body.ma-v235-shell #view .ma-v241-metric-value{font-size:clamp(23px,2vw,32px);line-height:1.06;letter-spacing:-.035em;font-weight:850;margin:7px 0 4px;color:#fff}
body.ma-v235-shell #view .ma-v241-metric-note{font-size:10px;color:#9ec9dc;margin-top:auto}
body.ma-v235-shell #view .ma-v241-banner{
  position:relative;display:flex;align-items:center;isolation:isolate;min-height:177px;overflow:hidden;
  border:1px solid #04bfe6;border-radius:14px;margin:0 0 13px;
  background:linear-gradient(90deg,#031525 0%,#031525 31%,rgba(3,21,37,.96) 43%,rgba(3,21,37,.66) 61%,rgba(3,21,37,.14) 100%),url('./ma235-hero-car.webp') right center/auto 100% no-repeat,#041828;
  box-shadow:0 12px 32px rgba(0,0,0,.22),inset 0 1px 0 rgba(148,243,255,.10);
}
body.ma-v235-shell #view .ma-v241-banner::after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,transparent 10%,rgba(0,215,247,.08) 57%,transparent 82%);z-index:-1}
body.ma-v235-shell #view .ma-v241-banner-content{padding:20px 27px;max-width:67%;position:relative;z-index:1}
body.ma-v235-shell #view .ma-v241-banner-kicker{font-weight:900;font-size:10px;letter-spacing:.17em;color:#7deefa}
body.ma-v235-shell #view .ma-v241-banner-brand{display:flex;flex-direction:column;margin:7px 0 3px;font-size:clamp(29px,3.1vw,47px);font-style:italic;font-weight:950;line-height:.99;letter-spacing:.02em;text-shadow:0 2px 9px rgba(0,0,0,.4)}
body.ma-v235-shell #view .ma-v241-banner-brand b{color:#00d9f4;font-weight:950}
body.ma-v235-shell #view .ma-v241-banner p{font-size:16px;margin:9px 0 3px;font-weight:750;color:#f1fbff}
body.ma-v235-shell #view .ma-v241-banner-small{font-size:11px;color:#9cd1e6}
body.ma-v235-shell #view .ma-v241-panel{min-width:0;border:1px solid var(--ma241-border);border-radius:13px;background:linear-gradient(175deg,#092339,#051b2e);box-shadow:var(--ma241-glow);padding:15px 16px}
body.ma-v235-shell #view .ma-v241-main-grid{display:grid;grid-template-columns:minmax(0,1.46fr) minmax(310px,.82fr);gap:12px;align-items:start}
body.ma-v235-shell #view .ma-v241-panel-heading{display:flex;align-items:start;justify-content:space-between;gap:12px;margin-bottom:12px}
body.ma-v235-shell #view .ma-v241-heading-title{display:flex;gap:9px;align-items:center;min-width:0}
body.ma-v235-shell #view .ma-v241-heading-title h3{font-size:16px!important;font-weight:850!important;line-height:1.2!important;margin:0!important;color:#f1fbff!important;text-shadow:none!important}
body.ma-v235-shell #view .ma-v241-heading-icon{font-size:17px;color:#10d8ea;line-height:1}
body.ma-v235-shell #view .ma-v241-counter{font-size:11px;min-width:24px;text-align:center;color:#b6f7ff;background:#063a57;border:1px solid #186d91;border-radius:6px;padding:3px 5px}
body.ma-v235-shell #view .ma-v241-panel-heading p{font-size:11px;margin:6px 0 0;color:#91bed2}
body.ma-v235-shell #view .ma-v241-minibutton{min-height:30px!important;padding:6px 10px!important;border-radius:8px!important;white-space:nowrap!important;background:#0c3853!important;border:1px solid #1a7da6!important;color:#aaf2ff!important;font-size:11px!important;font-weight:750!important}
body.ma-v235-shell #view .ma-v241-minibutton:hover{background:#12506f!important;border-color:#2dd6f7!important}
body.ma-v235-shell #view .ma-v241-appointment-list{display:flex;flex-direction:column;gap:7px}
body.ma-v235-shell #view .ma-v241-appointment{display:grid;grid-template-columns:64px minmax(0,1fr) auto 32px;align-items:center;gap:10px;min-height:68px;padding:8px 10px;border-radius:10px;background:linear-gradient(90deg,#0b314e,#0a2b43);border:1px solid #1d5473;box-shadow:inset 3px 0 0 #0acbe5}
body.ma-v235-shell #view .ma-v241-time{text-align:center;border-right:1px solid #245470;padding-right:9px;display:flex;flex-direction:column;gap:1px}
body.ma-v235-shell #view .ma-v241-time b{font-size:13px;color:#f3fcff}
body.ma-v235-shell #view .ma-v241-time small{font-size:11px;color:#91c4da}
body.ma-v235-shell #view .ma-v241-job{min-width:0}
body.ma-v235-shell #view .ma-v241-job-name{font-size:12px;font-weight:800;overflow-wrap:anywhere;color:#f1faff}
body.ma-v235-shell #view .ma-v241-mid{color:#5088aa}
body.ma-v235-shell #view .ma-v241-job-sub{font-size:10px;color:#a6cddd;display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:5px}
body.ma-v235-shell #view .ma-v241-lift{padding:2px 6px;border:1px solid #276a94;border-radius:5px;color:#b9ecff;background:#083d5b}
body.ma-v235-shell #view .ma-v241-state{font-size:10px;font-weight:800;white-space:nowrap;border-radius:7px;padding:6px 9px;text-align:center}
body.ma-v235-shell #view .ma-v241-state-fertig{color:#c7ffe3;background:#176442;border:1px solid #329765}
body.ma-v235-shell #view .ma-v241-state-arbeit{color:#fff3cd;background:#7f5421;border:1px solid #c28f3b}
body.ma-v235-shell #view .ma-v241-state-geplant{color:#d6e9fa;background:#284966;border:1px solid #3d7ba5}
body.ma-v235-shell #view .ma-v241-row-action{width:30px!important;height:30px!important;min-height:30px!important;max-width:30px!important;padding:0!important;border-radius:8px!important;color:#a0f7ff!important;border:1px solid #1f7ca1!important;background:#123f59!important;font-size:16px!important}
body.ma-v235-shell #view .ma-v241-row-action:hover{background:#0c6281!important}
body.ma-v235-shell #view .ma-v241-section-divider{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0 9px;padding-bottom:7px;border-bottom:1px solid #164d6c}
body.ma-v235-shell #view .ma-v241-section-divider span{font-size:12px;font-weight:900;color:#adf1ff}
body.ma-v235-shell #view .ma-v241-section-divider small{font-size:10px;color:#86b7ce}
body.ma-v235-shell #view .ma-v241-empty{padding:18px 12px;color:#a8c7d7;font-size:12px;margin:0}
body.ma-v235-shell #view .ma-v241-right-stack{display:grid;gap:12px;min-width:0}
body.ma-v235-shell #view .ma-v241-quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:13px}
body.ma-v235-shell #view .ma-v241-quick-grid button{display:flex!important;align-items:center!important;justify-content:center!important;flex-direction:column!important;gap:8px!important;min-height:91px!important;min-width:0!important;padding:10px 6px!important;border-radius:10px!important;border:1px solid #176d96!important;background:linear-gradient(180deg,#0a3553,#082840)!important;color:#daf4ff!important;text-align:center!important;box-shadow:inset 0 1px 0 #ffffff0e!important;transition:transform .18s,border-color .18s,background .18s!important}
body.ma-v235-shell #view .ma-v241-quick-grid button:hover{transform:translateY(-2px);border-color:#14d2f2!important;background:linear-gradient(180deg,#0c486a,#0a3150)!important}
body.ma-v235-shell #view .ma-v241-quick-icon{font-size:23px;font-weight:900;color:#0bdfec;line-height:1}
body.ma-v235-shell #view .ma-v241-quick-grid button>span:last-child{font-size:11px;font-weight:750;line-height:1.25}
body.ma-v235-shell #view .ma-v241-due p{font-size:12px;line-height:1.55;color:#aecbd8;margin:13px 0 15px}
body.ma-v235-shell #view .ma-v241-bottom-grid{display:grid;grid-template-columns:1.25fr .86fr 1fr;gap:12px;margin-top:12px}
body.ma-v235-shell #view .ma-v241-bottom{min-height:168px;display:flex;flex-direction:column;gap:10px}
body.ma-v235-shell #view .ma-v241-activity-list{display:grid;gap:7px}
body.ma-v235-shell #view .ma-v241-activity{display:flex;align-items:center;gap:10px;min-width:0;padding:5px 0;border-bottom:1px solid #173c59}
body.ma-v235-shell #view .ma-v241-activity-icon{width:28px;height:28px;border-radius:8px;display:grid;place-items:center;background:#0b3f59;color:#36ddeb;flex:none}
body.ma-v235-shell #view .ma-v241-activity strong{display:block;font-size:11px;line-height:1.25;overflow-wrap:anywhere}
body.ma-v235-shell #view .ma-v241-activity small{display:block;font-size:10px;color:#8fb7ce;margin-top:3px}
body.ma-v235-shell #view .ma-v241-ledger{display:grid;gap:2px}
body.ma-v235-shell #view .ma-v241-ledger>div{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #17435f;padding:8px 1px;color:#c0e4f1;font-size:11px}
body.ma-v235-shell #view .ma-v241-ledger strong{color:#f2fdff;font-size:14px;white-space:nowrap}
body.ma-v235-shell #view .ma-v241-ledger .ma-v241-money{color:#48edce}
body.ma-v235-shell #view .ma-v241-dot{display:inline-block;width:7px;height:7px;border-radius:100%;background:#09c7ef;box-shadow:0 0 8px rgba(0,190,238,.4);margin-right:5px}
body.ma-v235-shell #view .ma-v241-dot.mint{background:#17eab2;box-shadow:0 0 8px #17eab260}
body.ma-v235-shell #view .ma-v241-dot.warm{background:#f5a748;box-shadow:0 0 8px #f5a74850}
body.ma-v235-shell #view .ma-v241-dot.blue{background:#319cfa}
body.ma-v235-shell #view .ma-v241-bottom>.ma-v241-minibutton{align-self:flex-start;margin-top:auto}
body.ma-v235-shell #view .ma-v241-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:13px 4px 3px;color:#85b6c9;font-size:10px;border-top:1px solid #11465c;margin-top:12px}

/*  V024.1: Neukunden-Terminplaner – Kalender links, Eingaben rechts. */
body.ma-v235-shell #view .ma-v209-flow{max-width:none!important;width:100%!important;margin:7px auto!important}
body.ma-v235-shell #view .ma-v241-appointment-panel{min-width:0!important}
body.ma-v235-shell #view .ma-v241-booking-layout{display:grid!important;grid-template-columns:minmax(0,1.22fr) minmax(390px,.88fr)!important;gap:14px!important;align-items:start!important;margin-top:13px!important}
body.ma-v235-shell #view .ma-v241-booking-calendar,body.ma-v235-shell #view .ma-v241-booking-details{min-width:0!important}
body.ma-v235-shell #view .ma-v241-booking-details{display:grid;gap:12px}
body.ma-v235-shell #view .ma-v241-booking-basics,body.ma-v235-shell #view .ma-v241-booking-details .ma-v222-rate-panel,body.ma-v235-shell #view .ma-v241-booking-details .ma-v238-booking-controls{padding:15px!important;margin:0!important;border:1px solid rgba(31,153,201,.8)!important;border-radius:13px!important;background:linear-gradient(175deg,#0a2b42,#071e32)!important;box-shadow:0 9px 26px rgba(0,0,0,.17)!important;color:#eaf9ff!important}
body.ma-v235-shell #view .ma-v241-booking-head h4{font-size:16px;color:#f1fbff;margin:0 0 5px}
body.ma-v235-shell #view .ma-v241-booking-head p{margin:0 0 10px;font-size:11px;color:#9bcbe0;line-height:1.4}
body.ma-v235-shell #view .ma-v241-booking-summary{padding:10px 11px;background:#0d3c55;border:1px solid #1a95ba;border-radius:9px;color:#b5f5ff;font-weight:750;font-size:12px;line-height:1.5;margin-bottom:12px}
body.ma-v235-shell #view .ma-v241-booking-conflict{background:#523021!important;color:#ffdfad!important;border-color:#bc7148!important}
body.ma-v235-shell #view .ma-v241-booking-basics>.grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
body.ma-v235-shell #view .ma-v241-booking-basics>.grid label{display:block!important;margin:0!important;min-width:0!important;font-size:11px!important}
body.ma-v235-shell #view .ma-v241-booking-basics>.grid :is(input,select){min-width:0!important;width:100%!important;height:39px!important;min-height:39px!important;padding:8px!important;border:1px solid #286c93!important;background:#0a314d!important;color:#eafaff!important;border-radius:8px!important}
body.ma-v235-shell #view .ma-v241-booking-details .ma-v224-rate-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;max-height:250px;overflow-y:auto;padding:2px;margin:10px 0!important}
body.ma-v235-shell #view .ma-v241-booking-details .ma-v224-rate-choice{min-width:0!important;min-height:62px!important;padding:9px!important;border-radius:9px!important}
body.ma-v235-shell #view .ma-v241-booking-details .ma-v224-rate-title{font-size:12px!important}
body.ma-v235-shell #view .ma-v241-booking-details .ma-v224-rate-meta{font-size:10px!important}
body.ma-v235-shell #view .ma-v241-booking-details #maV210Rate{min-height:39px!important;height:39px!important;padding:8px!important}
body.ma-v235-shell #view .ma-v241-booking-details .ma-v238-controls-head strong{font-size:14px!important}
body.ma-v235-shell #view .ma-v241-booking-details .ma-v238-control-grid{gap:8px!important}
body.ma-v235-shell #view .ma-v241-booking-details .ma-v238-description textarea{min-height:88px!important}
body.ma-v235-shell #view .ma-v241-booking-calendar .ma-v210-planner{margin:0!important}
body.ma-v235-shell #view .ma-v241-booking-calendar .ma-v210-planner-head{margin-bottom:10px!important}
body.ma-v235-shell #view .ma-v241-booking-calendar .ma-v210-planner-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
body.ma-v235-shell #view .ma-v241-booking-calendar .planner-lane>.planner-slot{height:28px!important;min-height:28px!important;max-height:28px!important}
@media(max-width:1550px){body.ma-v235-shell #view .ma-v241-main-grid{grid-template-columns:minmax(0,1.2fr) minmax(310px,.8fr)}body.ma-v235-shell #view .ma-v241-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1320px){body.ma-v235-shell #view .ma-v241-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}body.ma-v235-shell #view .ma-v241-main-grid{grid-template-columns:1fr}body.ma-v235-shell #view .ma-v241-right-stack{grid-template-columns:1fr 1fr}body.ma-v235-shell #view .ma-v241-bottom-grid{grid-template-columns:1fr 1fr}body.ma-v235-shell #view .ma-v241-booking-layout{grid-template-columns:1fr!important}}
@media(max-width:900px){body.ma-v235-shell #view .ma-v241-right-stack{grid-template-columns:1fr}body.ma-v235-shell #view .ma-v241-bottom-grid{grid-template-columns:1fr}body.ma-v235-shell #view .ma-v241-quick-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){body.ma-v235-shell #view .ma-v241-heading{align-items:flex-start;flex-direction:column}body.ma-v235-shell #view .ma-v241-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}body.ma-v235-shell #view .ma-v241-banner{min-height:145px;background-position:right center;background-size:auto 100%}body.ma-v235-shell #view .ma-v241-banner-content{padding:15px 16px;max-width:85%}body.ma-v235-shell #view .ma-v241-banner-brand{font-size:27px}body.ma-v235-shell #view .ma-v241-banner p{font-size:12px}body.ma-v235-shell #view .ma-v241-appointment{grid-template-columns:52px minmax(0,1fr) 30px;gap:6px;padding:8px 6px}body.ma-v235-shell #view .ma-v241-state{grid-column:2;grid-row:2;justify-self:start}body.ma-v235-shell #view .ma-v241-row-action{grid-column:3;grid-row:1/3}body.ma-v235-shell #view .ma-v241-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body.ma-v235-shell #view .ma-v241-booking-basics>.grid{grid-template-columns:1fr!important}body.ma-v235-shell #view .ma-v241-booking-calendar .ma-v210-planner-grid{grid-template-columns:1fr!important}body.ma-v235-shell #view .ma-v241-booking-details .ma-v224-rate-cards{grid-template-columns:1fr!important}}
@media print{body.ma-v235-shell #view .ma-v241-dashboard,body.ma-v235-shell #view .ma-v241-booking-layout{box-shadow:none!important}}

/* Kleines Display: kein überstehender Kalender-Öffnen-Knopf. */
@media(max-width:650px){body.ma-v235-shell #view .ma-v241-panel-heading{flex-wrap:wrap}body.ma-v235-shell #view .ma-v241-panel-heading>.ma-v241-minibutton{margin-left:auto}}

/* V024.2 – Kopfbereich zusammenziehen, Benachrichtigungen nach oben, aktiven Benutzer anzeigen. */
body.ma-v235-shell #maV235Topline{display:none!important}
body.ma-v235-shell #maV235HeadBar{margin-left:var(--ma235-side);width:calc(100% - var(--ma235-side));display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 20px 8px;background:linear-gradient(180deg,#071827,#061523);border-bottom:1px solid #124969;box-shadow:inset 0 -1px 0 rgba(0,193,255,.08)}
body.ma-v235-shell #maV235HeadBar .ma-v235-head-alerts{flex:1 1 auto;min-width:0;display:flex;align-items:center}
body.ma-v235-shell #maV235HeadBar #maV16TopAlerts{margin:0!important;width:100%!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
body.ma-v235-shell #maV235HeadBar .ma-v16-alertbar{justify-content:flex-start!important}
body.ma-v235-shell #maV235HeadBar .ma-v16-alertbar #maNotificationDock{justify-content:flex-start!important;flex-wrap:wrap!important;gap:8px!important}
body.ma-v235-shell #maV235HeadBar .ma-v235-topline-right{flex:0 0 auto;display:flex;align-items:center;gap:14px;color:#d8edf6!important;font-weight:700!important;white-space:nowrap}
body.ma-v235-shell #maV235HeadBar .ma-v235-user-pill{display:inline-flex;align-items:center;gap:8px;padding:9px 12px;border:1px solid rgba(61,157,200,.78);border-radius:12px;background:linear-gradient(180deg,rgba(12,45,69,.96),rgba(8,28,44,.98));box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}
body.ma-v235-shell #maV235HeadBar .ma-v235-user-pill i{display:inline-block;width:8px;height:8px;border-radius:999px;background:#32e691;box-shadow:0 0 8px #2feb8b}
body.ma-v235-shell #maV235HeadBar #maV235TopDate{margin-left:0!important;font-size:11px!important;color:#b8d6e6!important}
body.ma-v235-shell #app:not(.hidden){padding-top:8px!important;min-height:calc(100dvh - 72px)!important}
@media(max-width:760px){body.ma-v235-shell #maV235HeadBar{margin-left:0!important;width:100%!important;flex-direction:column;align-items:stretch;padding:10px 12px 8px}body.ma-v235-shell #maV235HeadBar .ma-v235-topline-right{justify-content:space-between;white-space:normal}}


/* V024.3 – Verwaltungs-Dropdown sichtbar + Termin-Aktionsknöpfe klar anzeigen. */
body.ma-v235-shell #maV235Sidebar{overflow-x:visible!important}
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools>.ma-v11-menu{position:relative!important;overflow:visible!important;z-index:40!important}
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools>.ma-v11-menu>.ma-v11-menu-button{position:relative!important;z-index:41!important}
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools .ma-v11-menu-dropdown{position:absolute!important;left:0!important;right:0!important;top:calc(100% + 6px)!important;z-index:60!important;display:grid!important;grid-template-columns:1fr!important;width:100%!important;min-width:0!important;max-width:100%!important;max-height:min(42vh,340px)!important;overflow-y:auto!important;margin-top:0!important;padding:8px!important;background:linear-gradient(180deg,#0d2a43,#0a2135)!important;border:1px solid #1a7ea6!important;border-radius:12px!important;box-shadow:0 14px 34px rgba(0,0,0,.35)!important}
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools .ma-v11-menu-dropdown button{width:100%!important;justify-content:flex-start!important}
body.ma-v235-shell #view .ma-v235-appointment-row .ma-v229-overview-actions.ma-v235-job-actions{flex:0 0 220px!important;display:flex!important;flex-direction:column!important;gap:8px!important;align-self:stretch!important;justify-content:center!important}
body.ma-v235-shell #view .ma-v235-appointment-row .ma-v229-overview-actions.ma-v235-job-actions .ma-v235-job-btn{width:100%!important;min-height:38px!important;padding:9px 11px!important;border-radius:10px!important;background:linear-gradient(180deg,#134461,#103751)!important;border:1px solid rgba(63,161,208,.8)!important;color:#f5fbff!important;font-size:12px!important;font-weight:780!important;line-height:1.2!important;text-align:center!important;white-space:normal!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.05)!important}
body.ma-v235-shell #view .ma-v235-appointment-row .ma-v229-overview-actions.ma-v235-job-actions .ma-v235-job-btn:hover:not(:disabled){filter:brightness(1.06)!important;border-color:#66e6ff!important}
body.ma-v235-shell #view .ma-v235-appointment-row .ma-v229-overview-actions.ma-v235-job-actions .ma-v235-job-btn:disabled{opacity:.7!important;cursor:not-allowed!important}
@media(max-width:760px){body.ma-v235-shell #view .ma-v235-appointment-row .ma-v229-overview-actions.ma-v235-job-actions{width:100%!important;flex:0 0 auto!important}}


/* V024.4 – Weich ausblendendes Hero-Fahrzeugbild ohne harte Kante.
   Nur Bildschirm-CSS; Werkstattauftrag, Druck, Rechnungslogik und Zeitpuffer unberuehrt. */
body.ma-v235-shell #view .ma-v241-banner {
  background:#031525!important;
  isolation:isolate;
}
body.ma-v235-shell #view #maV235Hero {
  position:relative!important;
  isolation:isolate;
  background:#061928!important;
}
body.ma-v235-shell #view .ma-v241-banner::before,
body.ma-v235-shell #view #maV235Hero::before {
  content:"";
  position:absolute;
  top:0;
  right:0;
  bottom:0;
  width:min(790px,100%);
  pointer-events:none;
  background:url('./ma235-hero-car.webp') right center / auto 100% no-repeat;
  -webkit-mask-image:linear-gradient(to right,transparent 0%,transparent 18%,rgba(0,0,0,.18) 36%,rgba(0,0,0,.65) 61%,#000 78%);
  mask-image:linear-gradient(to right,transparent 0%,transparent 18%,rgba(0,0,0,.18) 36%,rgba(0,0,0,.65) 61%,#000 78%);
  z-index:0;
}
body.ma-v235-shell #view #maV235Hero .ma-v235-hero-copy,
body.ma-v235-shell #view .ma-v241-banner-content {
  position:relative;
  z-index:1;
}
@media(max-width:760px){
  body.ma-v235-shell #view .ma-v241-banner::before,
  body.ma-v235-shell #view #maV235Hero::before {background-size:auto 92%}
}
@media print{
  body.ma-v235-shell #view .ma-v241-banner::before,
  body.ma-v235-shell #view #maV235Hero::before {display:none!important}
}


/* V024.5 – kompakte Termin- und Preisansicht (keine Druckstile). */
body.ma-v235-shell #view .ma-v241-booking-layout{grid-template-columns:minmax(0,1.35fr) minmax(330px,.8fr)!important;gap:12px!important;margin-top:8px!important}
body.ma-v235-shell #view .ma-v241-booking-details{display:grid!important;gap:10px!important}
body.ma-v235-shell #view .ma-v241-booking-basics,
body.ma-v235-shell #view .ma-v245-choice-panel{padding:12px 14px!important;margin:0!important;border:1px solid #166d90!important;border-radius:13px!important;background:linear-gradient(160deg,#092a40,#071c2e)!important;box-shadow:0 8px 20px #0003!important}
body.ma-v235-shell #view .ma-v245-choice-panel{display:grid!important;gap:9px!important;min-width:0!important}
body.ma-v235-shell #view .ma-v245-rate-source,body.ma-v235-shell #view .ma-v245-controls-source{display:none!important}
body.ma-v235-shell #view .ma-v241-booking-head p{margin:0 0 6px!important}
body.ma-v235-shell #view .ma-v241-booking-summary{display:none!important}
body.ma-v235-shell #view .ma-v241-booking-basics>.grid{gap:7px!important}
body.ma-v235-shell #view .ma-v241-booking-basics>.grid :is(input,select){height:36px!important;min-height:36px!important;margin-top:4px!important}
body.ma-v235-shell #view .ma-v245-step{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;padding-bottom:5px;border-bottom:1px solid #18475f}
body.ma-v235-shell #view .ma-v245-step b{font-size:13px!important;color:#fff}
body.ma-v235-shell #view .ma-v245-step small{font-size:10px!important;color:#a4cbdf}
body.ma-v235-shell #view .ma-v245-choice-panel label{font-size:11px!important;font-weight:700!important;min-width:0!important;margin:0!important;color:#cdeafa!important}
body.ma-v235-shell #view .ma-v245-choice-panel :is(select,input,textarea){background:#09253a!important;color:#fff!important;border:1px solid #2a789c!important;border-radius:9px!important;padding:8px 10px!important;max-width:100%!important;box-sizing:border-box!important}
body.ma-v235-shell #view #maV210Rate.ma-v222-rate-select{display:block!important;visibility:visible!important;opacity:1!important;position:static!important;pointer-events:auto!important}
body.ma-v235-shell #view .ma-v245-choice-panel #maV210Rate,body.ma-v235-shell #view .ma-v245-choice-panel #maV238Hourly{min-height:40px!important;height:40px!important;margin-top:5px!important}
body.ma-v235-shell #view .ma-v245-choice-panel #maV238ManualMinutes{min-height:40px!important;height:40px!important;margin-top:5px!important}
body.ma-v235-shell #view .ma-v245-choice-panel .ma-v238-description{display:block!important;max-width:100%!important}
body.ma-v235-shell #view .ma-v245-choice-panel #maV238Description{min-height:62px!important;height:62px!important;resize:vertical!important;margin-top:5px!important;line-height:1.35!important;font-size:12px!important}
body.ma-v235-shell #view .ma-v245-choice-panel .ma-v238-control-grid{display:grid!important;grid-template-columns:minmax(90px,.6fr) minmax(0,1.4fr)!important;gap:8px!important;margin:0!important}
body.ma-v235-shell #view .ma-v245-choice-panel.ma-v238-using-rate #maV238ManualLabel{display:none!important}
body.ma-v235-shell #view .ma-v245-choice-panel .ma-v238-using-rate #maV238ManualLabel{display:none!important}
body.ma-v235-shell #view .ma-v245-choice-panel .ma-v238-control-grid:has(#maV238ManualLabel[style*="none"]){grid-template-columns:1fr!important}
body.ma-v235-shell #view .ma-v245-choice-panel .ma-v238-control-grid:has(#maV238ManualLabel){align-items:end!important}
body.ma-v235-shell #view .ma-v245-catalog-details{margin:0!important;border:1px solid #174967;border-radius:9px;background:#071c31;min-width:0}
body.ma-v235-shell #view .ma-v245-catalog-details summary{padding:8px 10px;cursor:pointer;color:#88dfff;font-size:11px;font-weight:780}
body.ma-v235-shell #view .ma-v245-catalog-details[open] summary{border-bottom:1px solid #1c5e83}
body.ma-v235-shell #view .ma-v245-catalog-details #maV224RateCards{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;max-height:185px!important;overflow-y:auto!important;margin:0!important;padding:8px!important}
body.ma-v235-shell #view .ma-v245-catalog-details .ma-v224-rate-choice{min-height:52px!important;padding:7px 9px!important;font-size:11px!important;text-align:left!important}
body.ma-v235-shell #view .ma-v245-catalog-details .ma-v224-rate-title{font-size:11px!important;line-height:1.25!important}
body.ma-v235-shell #view .ma-v245-catalog-details .ma-v224-rate-meta{font-size:10px!important;line-height:1.25!important}
body.ma-v235-shell #view .ma-v245-choice-panel #maV238Breakdown{margin:0!important;padding:9px!important;background:#08293b!important;border:1px solid #15788f!important;border-radius:10px!important;display:flex!important;gap:6px!important;align-items:center!important;flex-wrap:wrap!important;font-size:11px!important}
body.ma-v235-shell #view .ma-v245-choice-panel #maV238Breakdown>div{min-width:0!important;flex:1 1 75px!important;padding:4px 5px!important}
body.ma-v235-shell #view .ma-v245-choice-panel #maV238Breakdown>div b{font-size:15px!important}
body.ma-v235-shell #view .ma-v245-choice-panel #maV238Breakdown>div small{font-size:9px!important;line-height:1.3!important}
body.ma-v235-shell #view .ma-v245-choice-panel #maV238Breakdown>.ma-v238-plus{font-size:15px!important}
body.ma-v235-shell #view .ma-v245-choice-panel #maV238Breakdown>p{margin:1px 0 0!important;flex:1 1 100%!important;border-top:1px solid #1a5b70;padding:7px 3px 0;font-size:11px!important;line-height:1.4!important;color:#e5faff!important}
body.ma-v235-shell #view .ma-v245-choice-panel .ma-v238-safety{margin:0!important;font-size:10px!important;line-height:1.4!important;color:#99c9d9!important}
body.ma-v235-shell #view .ma-v241-booking-calendar .ma-v210-planner-head{gap:6px!important;padding:0 0 8px!important}
body.ma-v235-shell #view .ma-v241-booking-calendar .ma-v210-planner-status{margin:6px 0 8px!important;padding:8px!important;font-size:11px!important;line-height:1.4!important}
/* V024.5: Sidebar without wasted blank area; admin submenu floats over the content. */
body.ma-v235-shell #nav.ma-v235-sidebar-nav,body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools{gap:4px!important}
body.ma-v235-shell #nav.ma-v235-sidebar-nav>button,
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools>button,
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools>.ma-v11-menu>.ma-v11-menu-button{min-height:34px!important;padding:7px 10px!important;font-size:11px!important}
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools>.ma-v11-menu{position:relative!important;z-index:40!important;overflow:visible!important}
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools .ma-v11-menu-dropdown{position:fixed!important;left:calc(var(--ma235-side) - 3px)!important;top:var(--ma245-flyout-top,140px)!important;z-index:180!important;min-width:205px!important;max-width:285px!important;width:250px!important;max-height:min(65vh,440px)!important;overflow-y:auto!important;background:linear-gradient(180deg,#123650,#071f34)!important;border:1px solid #238aa7!important;box-shadow:0 15px 44px #0009!important;margin:0!important;padding:9px!important;border-radius:12px!important}
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools .ma-v11-menu-dropdown[hidden]{display:none!important}
/* Dashboard: both core actions visible without turning row into an oversized card. */
body.ma-v235-shell #view .ma-v241-appointment{grid-template-columns:57px minmax(0,1fr) auto minmax(96px,116px)!important;gap:8px!important;padding:9px 10px!important;min-height:64px!important}
body.ma-v235-shell #view .ma-v245-row-actions{display:flex!important;flex-direction:column!important;gap:4px!important;min-width:0!important}
body.ma-v235-shell #view .ma-v245-row-actions button{width:100%!important;padding:5px 6px!important;min-height:25px!important;font-size:10px!important;font-weight:800!important;line-height:1.2!important;border-radius:7px!important;background:linear-gradient(180deg,#104c6a,#0b344d)!important;border:1px solid #317e9e!important;color:#f0fcff!important;white-space:nowrap!important}
body.ma-v235-shell #view .ma-v245-row-actions button:hover{border-color:#57daf6!important;filter:brightness(1.1)}
@media(max-width:1320px){body.ma-v235-shell #view .ma-v241-booking-layout{grid-template-columns:1fr!important}}
@media(max-width:650px){body.ma-v235-shell #view .ma-v245-choice-panel .ma-v238-control-grid{grid-template-columns:1fr!important}body.ma-v235-shell #view .ma-v241-appointment{grid-template-columns:48px minmax(0,1fr) minmax(90px,auto)!important}body.ma-v235-shell #view .ma-v241-appointment .ma-v241-state{grid-column:2!important;grid-row:2!important}body.ma-v235-shell #view .ma-v245-row-actions{grid-column:3;grid-row:1/3}}
@media(max-width:760px){body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools .ma-v11-menu-dropdown{position:absolute!important;left:0!important;top:100%!important;width:100%!important;min-width:0!important;max-width:100%!important}}


/* V024.6 – Cleaner Kopfbereich: keine separate dicke Leiste auf dem Dashboard.
   Das ORIGINALE Meldungsdock und die Nutzeranzeige werden in die Überschrift
   versetzt. Andere Seiten sowie Rechnungs- und A4-Druckansichten unberührt. */
body.ma-v235-shell.ma-v246-dashboard-head #view .ma-v241-heading{
  display:grid!important;
  grid-template-columns:minmax(235px,1fr) minmax(450px,auto) auto!important;
  align-items:center!important;column-gap:16px!important;row-gap:8px!important;
  margin:0 0 12px!important;padding:2px 0 0!important;
}
body.ma-v235-shell.ma-v246-dashboard-head #view .ma-v241-heading>div:first-child{min-width:0!important}
body.ma-v235-shell.ma-v246-dashboard-head #view .ma-v241-heading #maV235HeadBar{
  display:flex!important;align-items:center!important;justify-content:flex-end!important;
  gap:9px!important;min-width:0!important;width:auto!important;height:auto!important;
  max-width:100%!important;margin:0!important;padding:0!important;
  background:transparent!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;position:static!important;overflow:visible!important;
}
body.ma-v235-shell.ma-v246-dashboard-head #view .ma-v241-heading #maV235HeadBar .ma-v235-head-alerts{
  flex:1 1 auto!important;min-width:0!important;width:auto!important;
}
body.ma-v235-shell.ma-v246-dashboard-head #view .ma-v241-heading #maV235HeadBar #maV16TopAlerts{
  margin:0!important;width:100%!important;height:auto!important;padding:0!important;min-height:0!important;
  background:transparent!important;border:0!important;box-shadow:none!important;
}
body.ma-v235-shell.ma-v246-dashboard-head #view .ma-v241-heading #maNotificationDock{
  display:flex!important;justify-content:flex-end!important;align-items:center!important;
  gap:5px!important;flex-wrap:nowrap!important;width:100%!important;
}
body.ma-v235-shell.ma-v246-dashboard-head #view .ma-v241-heading #maNotificationDock :is(#workshopBell,#maActivityWork,#maActivityLeave,#maV18InvoiceBell){
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex:0 1 auto!important;gap:5px!important;min-width:0!important;width:auto!important;
  max-width:none!important;min-height:34px!important;height:34px!important;
  padding:6px 9px!important;font-size:10px!important;white-space:nowrap!important;
  border-radius:9px!important;border:1px solid #22647e!important;
  background:linear-gradient(180deg,#0d344c,#092439)!important;box-shadow:none!important;
}
body.ma-v235-shell.ma-v246-dashboard-head #view .ma-v241-heading #maNotificationDock .ma-notify-label{
  display:inline!important;font-size:10px!important;font-weight:760!important;white-space:nowrap!important;
}
body.ma-v235-shell.ma-v246-dashboard-head #view .ma-v241-heading #maV235HeadBar .ma-v235-topline-right{
  display:flex!important;flex:0 0 auto!important;min-width:0!important;gap:0!important;white-space:nowrap!important;
}
body.ma-v235-shell.ma-v246-dashboard-head #view .ma-v241-heading .ma-v235-user-pill{
  display:inline-flex!important;align-items:center!important;gap:6px!important;
  max-width:225px!important;padding:7px 9px!important;min-height:34px!important;
  border-radius:9px!important;background:#0a2c41!important;
  font-size:11px!important;border:1px solid #215d7b!important;box-shadow:none!important;
}
body.ma-v235-shell.ma-v246-dashboard-head #view .ma-v241-heading #maV235TopUser{
  display:block!important;max-width:190px!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
body.ma-v235-shell.ma-v246-dashboard-head #view .ma-v241-heading #maV235TopDate,
body.ma-v235-shell.ma-v246-dashboard-head #view .ma-v241-heading .ma-v241-date{display:none!important}
body.ma-v235-shell.ma-v246-dashboard-head #view .ma-v241-heading-actions{flex:0 0 auto!important}
body.ma-v235-shell.ma-v246-dashboard-head #app:not(.hidden){padding-top:11px!important}
@media(max-width:1390px){
  body.ma-v235-shell.ma-v246-dashboard-head #view .ma-v241-heading{
    grid-template-columns:minmax(220px,1fr) auto!important;
  }
  body.ma-v235-shell.ma-v246-dashboard-head #view .ma-v241-heading>#maV235HeadBar{
    grid-column:1 / -1!important;grid-row:2!important;justify-content:flex-start!important;
    padding:2px 0!important;
  }
  body.ma-v235-shell.ma-v246-dashboard-head #view .ma-v241-heading>.ma-v241-heading-actions{
    grid-column:2!important;grid-row:1!important;
  }
  body.ma-v235-shell.ma-v246-dashboard-head #view .ma-v241-heading #maNotificationDock{justify-content:flex-start!important}
}
@media(max-width:920px){
  body.ma-v235-shell.ma-v246-dashboard-head #view .ma-v241-heading #maV235HeadBar{flex-wrap:wrap!important}
  body.ma-v235-shell.ma-v246-dashboard-head #view .ma-v241-heading #maNotificationDock{flex-wrap:wrap!important;justify-content:flex-start!important}
  body.ma-v235-shell.ma-v246-dashboard-head #view .ma-v241-heading #maV235HeadBar .ma-v235-topline-right{margin-top:3px!important}
}
@media(max-width:550px){
  body.ma-v235-shell.ma-v246-dashboard-head #view .ma-v241-heading{grid-template-columns:minmax(0,1fr)!important}
  body.ma-v235-shell.ma-v246-dashboard-head #view .ma-v241-heading>.ma-v241-heading-actions{grid-column:1!important;grid-row:3!important;justify-content:flex-start!important}
  body.ma-v235-shell.ma-v246-dashboard-head #view .ma-v241-heading>#maV235HeadBar{grid-column:1!important;grid-row:2!important}
  body.ma-v235-shell.ma-v246-dashboard-head #view .ma-v241-heading #maNotificationDock :is(#workshopBell,#maActivityWork,#maActivityLeave,#maV18InvoiceBell){flex:1 1 calc(50% - 6px)!important}
}
@media print{body.ma-v235-shell #view .ma-v241-heading #maV235HeadBar{display:none!important}}


/* V024.7 – Weißmodus konsequent aufhellen und Dropdown-Bug beheben. */
html[data-skin="classic"] body.ma-v235-shell{background:linear-gradient(180deg,#eef5fb,#e7f0f8)!important;color:#17324b!important}
html[data-skin="classic"] body.ma-v235-shell #maV235Sidebar{background:linear-gradient(180deg,#edf5fb 0%,#e5eff8 70%,#dde9f4 100%)!important;border-right:1px solid #a8c4d7!important;box-shadow:6px 0 26px rgba(22,53,82,.08)!important;scrollbar-color:#a9bfd1 transparent}
html[data-skin="classic"] body.ma-v235-shell .ma-v235-brand{border-bottom-color:#bfd4e3!important}
html[data-skin="classic"] body.ma-v235-shell .ma-v235-brand strong,html[data-skin="classic"] body.ma-v235-shell .ma-v235-brand b{color:#143b5a!important;text-shadow:none!important}
html[data-skin="classic"] body.ma-v235-shell .ma-v235-brand b{color:#0694b6!important}
html[data-skin="classic"] body.ma-v235-shell .ma-v235-brand small,html[data-skin="classic"] body.ma-v235-shell .ma-v235-nav-head,html[data-skin="classic"] body.ma-v235-shell .ma-v235-sidebar-foot{color:#4e6f89!important}
html[data-skin="classic"] body.ma-v235-shell #nav.ma-v235-sidebar-nav>button,
html[data-skin="classic"] body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools>button,
html[data-skin="classic"] body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools>.ma-v11-menu>.ma-v11-menu-button{background:linear-gradient(180deg,#fbfdff,#edf5fb)!important;color:#193954!important;border-color:#afc8da!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.92),0 6px 14px rgba(40,69,92,.08)!important}
html[data-skin="classic"] body.ma-v235-shell #nav.ma-v235-sidebar-nav>button.primary,
html[data-skin="classic"] body.ma-v235-shell #nav.ma-v235-sidebar-nav>button[aria-current="page"]{background:linear-gradient(180deg,#18b9d4,#0b9ebf)!important;color:#fff!important;border-color:#73dced!important;box-shadow:0 0 0 1px rgba(255,255,255,.65),0 10px 18px rgba(17,133,157,.18)!important}
html[data-skin="classic"] body.ma-v235-shell #maV235HeadBar{background:linear-gradient(180deg,#f7fbff,#ecf4fb)!important;border-bottom:1px solid #c0d6e3!important;box-shadow:inset 0 -1px 0 rgba(26,122,168,.08)!important}
html[data-skin="classic"] body.ma-v235-shell #maV235HeadBar .ma-v235-topline-right{color:#31516b!important}
html[data-skin="classic"] body.ma-v235-shell #maV235HeadBar .ma-v235-user-pill{background:linear-gradient(180deg,#ffffff,#edf5fb)!important;border-color:#b6cfde!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.96)!important;color:#153a56!important}
html[data-skin="classic"] body.ma-v235-shell #maV235HeadBar #maV235TopDate{color:#547490!important}
html[data-skin="classic"] body.ma-v235-shell #maV16TopAlerts,
html[data-skin="classic"] body.ma-v235-shell #maV235HeadBar #maV16TopAlerts{background:transparent!important;box-shadow:none!important}
html[data-skin="classic"] body.ma-v235-shell .ma-v16-alertbar #workshopBell,
html[data-skin="classic"] body.ma-v235-shell .ma-v16-alertbar #maActivityWork,
html[data-skin="classic"] body.ma-v235-shell .ma-v16-alertbar #maActivityLeave,
html[data-skin="classic"] body.ma-v235-shell .ma-v16-alertbar #maV18InvoiceBell{background:linear-gradient(180deg,#ffffff,#edf5fb)!important;color:#173652!important;border-color:#b7cddd!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.96),0 4px 12px rgba(33,65,89,.07)!important}
html[data-skin="classic"] body.ma-v235-shell #app:not(.hidden){background:linear-gradient(180deg,#eef5fb 0%,#e7f0f8 100%)!important}
html[data-skin="classic"] body.ma-v235-shell #view>.card,
html[data-skin="classic"] body.ma-v235-shell #view .card,
html[data-skin="classic"] body.ma-v235-shell #view .overview-page .card,
html[data-skin="classic"] body.ma-v235-shell #view .ma-v235-quick,
html[data-skin="classic"] body.ma-v235-shell #view .ma-v235-appointment-card,
html[data-skin="classic"] body.ma-v235-shell #view .ma-v235-right-column>.card{background:linear-gradient(180deg,#ffffff,#f6fbff)!important;border-color:#bfd5e2!important;box-shadow:0 10px 24px rgba(30,60,87,.08)!important;color:#17324b!important}
html[data-skin="classic"] body.ma-v235-shell #view .metric-card{background:linear-gradient(180deg,#ffffff,#f2f8fd)!important;border-color:#bfd5e5!important;box-shadow:0 10px 24px rgba(30,60,87,.08),inset 0 1px 0 rgba(255,255,255,.95)!important}
html[data-skin="classic"] body.ma-v235-shell #view .metric-card span{color:#406983!important}
html[data-skin="classic"] body.ma-v235-shell #view .metric-card strong{color:#183a57!important}
html[data-skin="classic"] body.ma-v235-shell #view .metric-card small{color:#5f7c95!important}
html[data-skin="classic"] body.ma-v235-shell #view .overview-page .overview-heading p,
html[data-skin="classic"] body.ma-v235-shell #view .today-summary{color:#5c7890!important}
html[data-skin="classic"] body.ma-v235-shell #view #maV235Hero{background:linear-gradient(95deg,rgba(245,250,255,.97) 6%,rgba(239,247,253,.94) 42%,rgba(224,237,248,.64) 64%,rgba(210,228,241,.22)),url('./ma235-hero-car.webp') right center/auto 100% no-repeat,#edf4fb!important;border-color:#b8d2e2!important;box-shadow:0 12px 28px rgba(30,60,87,.08)!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v235-hero-copy small{color:#2b6f90!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v235-hero-copy h2,html[data-skin="classic"] body.ma-v235-shell #view .ma-v235-hero-copy p{color:#17344d!important}
html[data-skin="classic"] body.ma-v235-shell #view .overview-list-entry,
html[data-skin="classic"] body.ma-v235-shell #view .ma-v235-appointment-row{background:linear-gradient(180deg,#fbfdff,#eef5fb)!important;border-color:#bfd4e1!important;box-shadow:0 8px 18px rgba(30,60,87,.07)!important;color:#18344c!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v235-appointment-row .overview-list-entry,
html[data-skin="classic"] body.ma-v235-shell #view .overview-list-entry *{color:inherit!important;text-shadow:none!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v235-quick-grid button,
html[data-skin="classic"] body.ma-v235-shell #view .ma-v235-appointment-row .ma-v229-overview-actions button,
html[data-skin="classic"] body.ma-v235-shell #view .ma-v235-appointment-row .ma-v229-overview-actions.ma-v235-job-actions .ma-v235-job-btn{background:linear-gradient(180deg,#ffffff,#edf5fb)!important;border-color:#b6cfde!important;color:#173652!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.95),0 4px 12px rgba(33,65,89,.06)!important}
html[data-skin="classic"] body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools .ma-v11-menu-dropdown{background:linear-gradient(180deg,#f8fbff,#edf5fb)!important;border-color:#b7cddd!important;box-shadow:0 14px 30px rgba(25,55,80,.12)!important}
html[data-skin="classic"] body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools .ma-v11-menu-dropdown button{background:linear-gradient(180deg,#ffffff,#eef5fb)!important;border:1px solid #bfd2de!important;color:#173652!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.96)!important}
html[data-skin="classic"] body.ma-v235-shell #view input:not([type=checkbox]):not([type=radio]):not([type=file]),
html[data-skin="classic"] body.ma-v235-shell #view select,
html[data-skin="classic"] body.ma-v235-shell #view textarea{background:#fff!important;border-color:#b2cadb!important;color:#16344d!important}




/* V024.8 SAFE – sechs echte Dashboard-Kennzahlen und Live-Uhrzeit, kompakt und neonfarbig. */
body.ma-v235-shell #view .ma-v241-metrics{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:9px!important}
body.ma-v235-shell #view .ma-v241-metrics>.ma-v241-metric{
  min-height:88px!important;border-color:rgba(49,205,247,.83)!important;
  border-radius:12px!important;padding:11px 12px 10px!important;
  background:linear-gradient(175deg,#0b2e48,#061a2a)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 0 12px rgba(0,206,255,.11),0 9px 20px rgba(0,0,0,.22)!important;
}
body.ma-v235-shell #view .ma-v241-metrics>.ma-v241-metric .ma-v241-metric-value{font-size:clamp(22px,1.85vw,29px)!important;margin:5px 0 2px!important}
body.ma-v235-shell #view .ma-v241-metrics>.ma-v241-metric .ma-v241-metric-note{font-size:10px!important}
body.ma-v235-shell #view .ma-v248-clock-card{cursor:default!important;justify-content:center!important}
body.ma-v235-shell #view .ma-v248-clock-card .ma-v241-metric-label{font-size:10px!important}
body.ma-v235-shell #view .ma-v248-clock-card .ma-v241-metric-value{font-size:clamp(17px,1.45vw,24px)!important;white-space:nowrap!important}
body.ma-v235-shell #view .ma-v248-clock-card .ma-v241-metric-note{display:flex!important;align-items:center!important;gap:6px!important;color:#91f0bc!important;font-weight:800!important}
body.ma-v235-shell #view .ma-v248-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#24ec98;box-shadow:0 0 10px rgba(36,236,152,.9)}
body.ma-v235-shell #view .ma-v248-statusbar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;align-items:center;padding:11px 0 0;margin-top:14px;border-top:1px solid rgba(36,204,242,.4)}
body.ma-v235-shell #view .ma-v248-status-item{display:flex;align-items:center;gap:9px;min-width:0;min-height:40px;padding:9px 12px;border-radius:999px;border:1px solid rgba(42,165,208,.62);background:linear-gradient(180deg,#0a2a41,#061d30);color:#dceef8;font-size:11px;line-height:1.3}
body.ma-v235-shell #view .ma-v248-status-item span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.ma-v235-shell #view .ma-v248-status-item b{color:#eaf8ff;font-weight:800}
body.ma-v235-shell #view .ma-v248-status-dot{display:inline-block;flex:0 0 9px;width:9px;height:9px;border-radius:50%;background:#6bbedb;box-shadow:0 0 7px rgba(78,181,221,.4)}
body.ma-v235-shell #view .ma-v248-status-item[data-state=ok] .ma-v248-status-dot{background:#20e997;box-shadow:0 0 8px rgba(32,233,151,.6)}
body.ma-v235-shell #view .ma-v248-status-item[data-state=warning] .ma-v248-status-dot{background:#f2bd6e;box-shadow:0 0 8px rgba(242,189,110,.55)}
body.ma-v235-shell #view .ma-v248-status-item[data-state=ok] b{color:#85efb8}
body.ma-v235-shell #view .ma-v241-banner{border-color:#30d4fa!important;box-shadow:0 0 0 1px rgba(52,223,255,.08),0 12px 34px rgba(0,0,0,.26),0 0 16px rgba(0,201,255,.13)!important}
body.ma-v235-shell #view .ma-v241-panel{border-color:rgba(35,176,218,.9)!important;box-shadow:0 0 0 1px rgba(255,255,255,.025),0 12px 28px rgba(0,0,0,.22),0 0 12px rgba(0,200,255,.08)!important}
@media(max-width:1450px){body.ma-v235-shell #view .ma-v241-metrics{grid-template-columns:repeat(3,minmax(0,1fr))!important}body.ma-v235-shell #view .ma-v248-statusbar{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:700px){body.ma-v235-shell #view .ma-v241-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.ma-v235-shell #view .ma-v248-statusbar{grid-template-columns:1fr!important}}

/* V024.7 Weißmodus auch für die echte V024.6-Premium-Übersicht, statt nur für ältere Karten. */
html[data-skin="classic"] body.ma-v235-shell #view .ma-v241-dashboard{color:#183852!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v241-heading h2{color:#14344d!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v241-heading p{color:#52748e!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v241-eyebrow{color:#157ca0!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v241-panel{background:linear-gradient(180deg,#fff,#eff7fd)!important;border-color:#b9d2e4!important;box-shadow:0 8px 22px rgba(20,57,88,.09)!important;color:#183852!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v241-metrics>.ma-v241-metric{background:linear-gradient(175deg,#fff,#f1f8fd)!important;border-color:#b6d6e8!important;box-shadow:0 6px 20px rgba(32,74,107,.08)!important;color:#16354c!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v241-metric-label{color:#315b77!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v241-metric-value{color:#153852!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v241-metric-note{color:#547b93!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v241-panel h3,
html[data-skin="classic"] body.ma-v235-shell #view .ma-v241-panel-heading p{color:#173a56!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v241-appointment,
html[data-skin="classic"] body.ma-v235-shell #view .ma-v241-activity,
html[data-skin="classic"] body.ma-v235-shell #view .ma-v241-ledger>div{background:#f3f9fd!important;border-color:#c9dce9!important;color:#173a56!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v241-job-name,
html[data-skin="classic"] body.ma-v235-shell #view .ma-v241-time,
html[data-skin="classic"] body.ma-v235-shell #view .ma-v241-ledger strong{color:#173a56!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v241-quick-grid button,
html[data-skin="classic"] body.ma-v235-shell #view .ma-v241-minibutton,
html[data-skin="classic"] body.ma-v235-shell #view .ma-v245-row-actions button{background:#edf7fd!important;border-color:#b2d2e4!important;color:#214963!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v248-status-item{background:linear-gradient(180deg,#fff,#f1f8fd)!important;border-color:#bfd7e5!important;color:#234761!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v248-status-item b{color:#234761!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v248-status-item[data-state=ok] b{color:#097e56!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v248-clock-card .ma-v241-metric-note{color:#177d57!important}


/* V025.0 – einfacher Rechnungskatalog: Netto × Menge + Standard-MwSt. */
body.ma-v235-shell #view #maV214InvoiceRoot .v250-catalog{padding:13px 14px!important;margin:8px 0 12px!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v250-catalog .v228-catalog-head{display:flex!important;gap:8px!important;align-items:center!important;justify-content:space-between!important;flex-wrap:wrap!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v250-catalog-choice{display:block!important;font-size:12px!important;font-weight:750!important;margin:8px 0!important;color:#163951!important}
body.ma-v235-shell #view #maV214InvoiceRoot select#maV214Catalog{display:block!important;width:100%!important;min-width:0!important;min-height:43px!important;margin:6px 0 0!important;padding:10px 11px!important;border-radius:11px!important;border:1px solid #b8d0e1!important;background:#fff!important;color:#17324b!important;font-weight:650!important;appearance:auto!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v250-catalog-help{font-size:11.5px!important;color:#50728b!important;line-height:1.45!important;margin:6px 0!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v214-editrow{grid-template-columns:minmax(0,2.2fr) 85px minmax(100px,.85fr) 40px!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v214-editrow input[type=hidden]{display:none!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v250-catalog .v232-price-count{font-size:11px!important;color:#4c758b!important;margin-top:5px!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v232-lines-table input[data-v232-edit="ust_satz"]{max-width:74px!important}
.ma-v250-vat-settings{margin:16px 0 12px;padding:15px 16px;background:#f1f8fd;border:1px solid #bad3e6;border-radius:12px;color:#173652}
.ma-v250-vat-settings h3{margin:0 0 6px!important;color:#143d5b!important}
.ma-v250-vat-settings p{color:#56728b;font-size:12px;line-height:1.45;margin:5px 0 10px}
.ma-v250-vat-row{display:grid;grid-template-columns:minmax(120px,1fr) auto;gap:12px;align-items:end}
.ma-v250-vat-row label{display:block!important;color:#173652!important;font-size:12px!important;font-weight:700}
.ma-v250-vat-row input{display:block!important;width:100%!important;margin-top:7px!important;min-height:40px!important;padding:8px!important;background:white!important;color:#173652!important;border:1px solid #aec9da!important;border-radius:9px!important}
.ma-v250-vat-row button{min-height:40px!important;padding:8px 15px!important;background:#0b8ba6!important;border:1px solid #17aaca!important;color:white!important;border-radius:10px!important;font-weight:750}
@media(max-width:760px){body.ma-v235-shell #view #maV214InvoiceRoot .v214-editrow{grid-template-columns:minmax(0,1fr) 68px 85px 40px!important}.ma-v250-vat-row{grid-template-columns:1fr}}

/* V024.9 – Kopfzeile/Weißmodus/Kompaktlayout */
body.ma-v235-shell #maV235HeadBar{margin-left:var(--ma235-side)!important;width:calc(100% - var(--ma235-side))!important;min-height:56px!important;padding:6px 20px!important;gap:10px!important;background:linear-gradient(180deg,#082032,#07192a)!important;border-bottom:1px solid rgba(43,164,214,.34)!important;box-shadow:0 6px 18px rgba(0,0,0,.14), inset 0 -1px 0 rgba(255,255,255,.03)!important;position:sticky!important;top:0!important;z-index:85!important}
body.ma-v235-shell #maV235HeadBar .ma-v235-head-alerts{display:flex!important;align-items:center!important;min-height:0!important;overflow:visible!important}
body.ma-v235-shell #maV235HeadBar #maV16TopAlerts{display:block!important;min-height:0!important;padding:0!important;margin:0!important}
body.ma-v235-shell #maV235HeadBar .ma-v16-alertbar{display:flex!important;align-items:center!important;min-height:0!important;padding:0!important}
body.ma-v235-shell #maV235HeadBar .ma-v16-alertbar #maNotificationDock{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important}
body.ma-v235-shell #maV235HeadBar .ma-v16-alertbar #maNotificationDock button{min-height:36px!important;padding:8px 14px!important;border-radius:12px!important}
body.ma-v235-shell #maV235HeadBar .ma-v235-topline-right{gap:10px!important}
body.ma-v235-shell #maV235HeadBar .ma-v235-user-pill{padding:8px 11px!important;border-radius:11px!important}
body.ma-v235-shell #maV235HeadBar #maV235TopDate{font-size:11px!important}
body.ma-v235-shell #app:not(.hidden){padding-top:6px!important}
body.ma-v235-shell #view .overview-page{margin-top:0!important}
@media(max-width:760px){body.ma-v235-shell #maV235HeadBar{margin-left:0!important;width:100%!important;padding:8px 12px!important;position:sticky!important;top:0!important}}

body.ma-v235-shell #view .ma-v240-appointment-layout{grid-template-columns:minmax(0,1.45fr) minmax(320px,.82fr)!important;gap:14px!important;margin-top:10px!important}
body.ma-v235-shell #view .ma-v240-side-column{gap:12px!important;position:sticky!important;top:76px!important}
body.ma-v235-shell #view .ma-v240-detail-card,body.ma-v235-shell #view .ma-v240-side-column .ma-v222-rate-panel{padding:13px 14px!important;border-radius:14px!important}
body.ma-v235-shell #view .ma-v240-detail-head h4{font-size:17px!important;margin-bottom:4px!important}
body.ma-v235-shell #view .ma-v240-detail-head p{font-size:11.5px!important;margin-bottom:9px!important}
body.ma-v235-shell #view .ma-v240-selection-summary{font-size:12px!important;line-height:1.42!important;padding:9px 10px!important;margin-bottom:10px!important}
body.ma-v235-shell #view .ma-v240-detail-card .grid{gap:8px!important}
body.ma-v235-shell #view .ma-v240-detail-card label{gap:4px!important}
body.ma-v235-shell #view .ma-v240-detail-card input,body.ma-v235-shell #view .ma-v240-detail-card select,body.ma-v235-shell #view .ma-v240-detail-card textarea{min-height:38px!important;padding:8px 10px!important}
body.ma-v235-shell #view .ma-v240-detail-card textarea{min-height:84px!important;rows:3}
body.ma-v235-shell #view .ma-v240-field-title{margin-bottom:4px!important}
body.ma-v235-shell #view .ma-v240-inline-help{font-size:10.5px!important;margin-top:4px!important}
body.ma-v235-shell #view .ma-v240-side-column .ma-v224-rate-cards{gap:7px!important;margin:8px 0 7px!important}
body.ma-v235-shell #view .ma-v240-side-column .ma-v224-rate-choice{min-height:58px!important;padding:9px 10px!important}
body.ma-v235-shell #view .ma-v240-side-column .ma-v224-rate-title{font-size:14px!important}
body.ma-v235-shell #view .ma-v240-side-column .ma-v224-rate-meta{font-size:11px!important;line-height:1.35!important}
body.ma-v235-shell #view .ma-v240-side-column .ma-v222-rate-help{font-size:10.5px!important;line-height:1.35!important}

body.ma-v235-shell #view .ma-v249-flow{max-width:1180px!important}
body.ma-v235-shell #view .ma-v249-flow .ma-v209-callout{padding:10px 12px!important;margin-bottom:12px!important;font-size:12px!important;line-height:1.45!important}
body.ma-v235-shell #view .ma-v210-wizard .ma-v209-form{gap:12px!important;grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr)!important}
body.ma-v235-shell #view .ma-v249-compact-card{padding:12px 14px!important;border-radius:14px!important}
body.ma-v235-shell #view .ma-v249-compact-card h3{font-size:16px!important;margin-bottom:8px!important}
body.ma-v235-shell #view .ma-v249-compact-card .grid{gap:8px!important}
body.ma-v235-shell #view .ma-v249-compact-card label{margin:5px 0!important}
body.ma-v235-shell #view .ma-v249-compact-card input:not([type=file]),body.ma-v235-shell #view .ma-v249-compact-card select,body.ma-v235-shell #view .ma-v249-compact-card textarea{min-height:38px!important;padding:8px 10px!important}
body.ma-v235-shell #view .ma-v249-compact-card textarea{min-height:84px!important}
body.ma-v235-shell #view .ma-v249-compact-scan{padding:11px 12px!important;margin-top:10px!important;border-radius:12px!important}
body.ma-v235-shell #view .ma-v249-compact-scan h3{font-size:15px!important;margin-bottom:6px!important}
body.ma-v235-shell #view .ma-v249-compact-scan p{font-size:11px!important;line-height:1.4!important;margin-bottom:8px!important}
body.ma-v235-shell #view .ma-v249-compact-scan label{font-size:12px!important;margin:0 0 8px!important}
body.ma-v235-shell #view .ma-v249-compact-scan input[type=file]{padding:9px!important;min-height:auto!important}
body.ma-v235-shell #view .ma-v249-compact-scan .ma-v221-scan-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin-top:8px!important}
body.ma-v235-shell #view .ma-v249-compact-scan .ma-v221-scan-actions button{min-height:38px!important;padding:8px 10px!important;font-size:12px!important}
body.ma-v235-shell #view .ma-v249-compact-scan .ma-v221-scan-status{font-size:11px!important;margin:8px 0 0!important}
body.ma-v235-shell #view .ma-v249-compact-scan .ma-v210-ocr-results{margin-top:8px!important}
@media(max-width:1080px){body.ma-v235-shell #view .ma-v210-wizard .ma-v209-form{grid-template-columns:1fr!important}body.ma-v235-shell #view .ma-v249-compact-scan .ma-v221-scan-actions{grid-template-columns:1fr!important}}
@media(max-width:1260px){body.ma-v235-shell #view .ma-v240-appointment-layout{grid-template-columns:1fr!important}body.ma-v235-shell #view .ma-v240-side-column{position:static!important;top:auto!important}}

html[data-skin="classic"] body.ma-v235-shell #maV235HeadBar{background:linear-gradient(180deg,#f7fbff,#eef5fb)!important;border-bottom:1px solid #c7d9e6!important;box-shadow:0 4px 14px rgba(34,77,111,.08)!important}
html[data-skin="classic"] body.ma-v235-shell #maV235HeadBar .ma-v235-topline-right{color:#24455e!important}
html[data-skin="classic"] body.ma-v235-shell #maV235HeadBar .ma-v235-user-pill{background:linear-gradient(180deg,#ffffff,#eef6fc)!important;border-color:#bfd5e2!important;color:#173b57!important}
html[data-skin="classic"] body.ma-v235-shell #maV235HeadBar #maV235TopDate{color:#4e7087!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v240-detail-card,html[data-skin="classic"] body.ma-v235-shell #view .ma-v240-side-column .ma-v222-rate-panel,html[data-skin="classic"] body.ma-v235-shell #view .ma-v249-compact-card,html[data-skin="classic"] body.ma-v235-shell #view .ma-v249-compact-scan{background:linear-gradient(180deg,#ffffff,#f1f7fc)!important;border-color:#c5d9e6!important;color:#183b55!important;box-shadow:0 10px 26px rgba(29,66,95,.08)!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v240-selection-summary{background:#eef7ff!important;border-color:#b9d6ea!important;color:#183a55!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v240-detail-head p,html[data-skin="classic"] body.ma-v235-shell #view .ma-v240-inline-help,html[data-skin="classic"] body.ma-v235-shell #view .ma-v249-compact-scan p,html[data-skin="classic"] body.ma-v235-shell #view .ma-v222-rate-help,html[data-skin="classic"] body.ma-v235-shell #view .ma-v221-rate-status,html[data-skin="classic"] body.ma-v235-shell #view .ma-v221-scan-status{color:#50718a!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v240-detail-card input,html[data-skin="classic"] body.ma-v235-shell #view .ma-v240-detail-card select,html[data-skin="classic"] body.ma-v235-shell #view .ma-v240-detail-card textarea,html[data-skin="classic"] body.ma-v235-shell #view .ma-v249-compact-card input:not([type=file]),html[data-skin="classic"] body.ma-v235-shell #view .ma-v249-compact-card select,html[data-skin="classic"] body.ma-v235-shell #view .ma-v249-compact-card textarea,html[data-skin="classic"] body.ma-v235-shell #view .ma-v249-compact-scan input[type=file]{background:#ffffff!important;border-color:#c0d4e2!important;color:#173b57!important}
html[data-skin="classic"] body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools .ma-v11-menu-dropdown{background:linear-gradient(180deg,#f8fbff,#edf4fb)!important;border-color:#c1d5e3!important;box-shadow:0 10px 26px rgba(31,69,98,.12)!important}
html[data-skin="classic"] body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools .ma-v11-menu-dropdown button{background:linear-gradient(180deg,#ffffff,#eef5fb)!important;border-color:#c4d8e6!important;color:#173b57!important}
html[data-skin="classic"] body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools .ma-v11-menu-dropdown button:is(:hover,:focus-visible){background:#e4f0fa!important;color:#12344f!important}

/* V025.1 – Dashboard bei normalem Browserzoom ohne Seiten-Scrollen.
   Greift nur auf breiten Desktop-Bildschirmen; auf Mobilgeraeten bleibt
   das normale, zugängliche Scrollen erhalten. */
@media screen and (min-width:1180px) and (min-height:680px){
  body.ma-v235-shell #app:not(.hidden):has(#view .ma-v241-dashboard){
    height:100dvh!important;min-height:0!important;max-height:100dvh!important;
    overflow:hidden!important;padding:8px clamp(11px,1.2vw,21px) 10px!important;
  }
  body.ma-v235-shell #app:has(#view .ma-v241-dashboard) #view{
    height:100%!important;min-height:0!important;overflow:hidden!important;
  }
  body.ma-v235-shell #view .ma-v241-dashboard{
    height:100%!important;min-height:0!important;max-height:100%!important;
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto auto minmax(88px,.58fr) minmax(205px,1.65fr) minmax(112px,.8fr) auto!important;
    row-gap:7px!important;align-content:stretch!important;overflow:hidden!important;
  }
  body.ma-v235-shell.ma-v246-dashboard-head #view .ma-v241-heading{
    margin:0!important;min-height:0!important;padding:0!important;
    gap:7px 12px!important;
  }
  body.ma-v235-shell #view .ma-v241-eyebrow{font-size:9px!important;margin:0 0 3px!important}
  body.ma-v235-shell #view .ma-v241-heading h2{font-size:clamp(22px,1.55vw,28px)!important;line-height:1.08!important}
  body.ma-v235-shell #view .ma-v241-heading p{font-size:11px!important;margin:3px 0 0!important;line-height:1.3!important}
  body.ma-v235-shell #view .ma-v241-heading-actions .ma-v241-primary{min-height:32px!important;padding:7px 10px!important}
  body.ma-v235-shell #view .ma-v241-metrics{
    display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;
    gap:7px!important;margin:0!important;
  }
  body.ma-v235-shell #view .ma-v241-metrics>.ma-v241-metric{
    min-height:61px!important;max-height:78px!important;height:100%!important;
    padding:7px 9px!important;border-radius:10px!important;
  }
  body.ma-v235-shell #view .ma-v241-metric-symbol{width:20px!important;height:20px!important;font-size:13px!important;border-radius:6px!important}
  body.ma-v235-shell #view .ma-v241-metric-label{font-size:10px!important}
  body.ma-v235-shell #view .ma-v241-metrics>.ma-v241-metric .ma-v241-metric-value{
    margin:3px 0 1px!important;font-size:clamp(18px,1.42vw,24px)!important;
  }
  body.ma-v235-shell #view .ma-v241-metrics>.ma-v241-metric .ma-v241-metric-note{font-size:9px!important;line-height:1.2!important}
  body.ma-v235-shell #view .ma-v248-clock-card .ma-v241-metric-value{font-size:clamp(16px,1.25vw,22px)!important}
  body.ma-v235-shell #view .ma-v241-banner{
    min-height:0!important;height:100%!important;margin:0!important;
    border-radius:12px!important;
  }
  body.ma-v235-shell #view .ma-v241-banner-content{padding:9px 17px!important;max-width:66%!important}
  body.ma-v235-shell #view .ma-v241-banner-kicker{font-size:9px!important}
  body.ma-v235-shell #view .ma-v241-banner-brand{font-size:clamp(26px,2.3vw,36px)!important;margin:4px 0 1px!important}
  body.ma-v235-shell #view .ma-v241-banner p{font-size:12px!important;margin:4px 0 1px!important}
  body.ma-v235-shell #view .ma-v241-banner-small{font-size:9px!important}
  body.ma-v235-shell #view .ma-v241-main-grid{
    min-height:0!important;height:100%!important;overflow:hidden!important;
    grid-template-columns:minmax(0,1.45fr) minmax(300px,.86fr)!important;
    gap:8px!important;align-items:stretch!important;
  }
  body.ma-v235-shell #view .ma-v241-panel{padding:9px 11px!important;border-radius:11px!important;min-height:0!important}
  body.ma-v235-shell #view .ma-v241-panel-heading{margin:0 0 6px!important;gap:8px!important;flex:0 0 auto!important}
  body.ma-v235-shell #view .ma-v241-heading-title h3{font-size:13px!important}
  body.ma-v235-shell #view .ma-v241-panel-heading p{font-size:10px!important;margin:3px 0 0!important;line-height:1.25!important}
  body.ma-v235-shell #view .ma-v241-minibutton{min-height:26px!important;padding:5px 8px!important;font-size:10px!important}
  body.ma-v235-shell #view .ma-v241-schedule{
    min-height:0!important;height:100%!important;overflow:hidden!important;
    display:flex!important;flex-direction:column!important;
  }
  body.ma-v235-shell #view .ma-v241-appointment-list{
    min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;
    overscroll-behavior:contain!important;scrollbar-width:thin;
    scrollbar-color:#247b9f transparent;
    gap:4px!important;
  }
  body.ma-v235-shell #view .ma-v241-schedule>.ma-v241-appointment-list:not(.ma-v241-next){flex:1 1 auto!important}
  body.ma-v235-shell #view .ma-v241-appointment{
    grid-template-columns:47px minmax(0,1fr) auto minmax(158px,166px)!important;
    gap:6px!important;min-height:54px!important;height:auto!important;
    padding:5px 7px!important;border-radius:8px!important;
  }
  body.ma-v235-shell #view .ma-v241-time{padding-right:5px!important}
  body.ma-v235-shell #view .ma-v241-time b{font-size:11px!important}
  body.ma-v235-shell #view .ma-v241-time small{font-size:10px!important}
  body.ma-v235-shell #view .ma-v241-job-name{font-size:11px!important}
  body.ma-v235-shell #view .ma-v241-job-sub{font-size:9px!important;margin-top:3px!important;gap:5px!important}
  body.ma-v235-shell #view .ma-v241-state{font-size:9px!important;padding:4px 5px!important}
  body.ma-v235-shell #view .ma-v245-row-actions{
    flex-direction:row!important;align-items:center!important;gap:4px!important;
  }
  body.ma-v235-shell #view .ma-v245-row-actions button{
    flex:1 1 0!important;min-width:0!important;width:auto!important;
    min-height:26px!important;height:auto!important;padding:5px 4px!important;
    font-size:9px!important;white-space:normal!important;line-height:1.1!important;
  }
  body.ma-v235-shell #view .ma-v241-section-divider{margin:5px 0 4px!important;padding-bottom:4px!important;flex:0 0 auto!important}
  body.ma-v235-shell #view .ma-v241-section-divider span{font-size:10px!important}
  body.ma-v235-shell #view .ma-v241-section-divider small{font-size:9px!important}
  body.ma-v235-shell #view .ma-v241-next{flex:0 1 22%!important;max-height:70px!important}
  body.ma-v235-shell #view .ma-v241-empty{padding:8px!important;font-size:10px!important}
  body.ma-v235-shell #view .ma-v241-right-stack{
    min-height:0!important;height:100%!important;overflow:hidden!important;
    display:grid!important;grid-template-columns:1fr!important;
    grid-template-rows:minmax(0,1.6fr) minmax(0,.7fr)!important;gap:8px!important;
  }
  body.ma-v235-shell #view .ma-v241-quick,body.ma-v235-shell #view .ma-v241-due{
    min-height:0!important;overflow:hidden!important;
  }
  body.ma-v235-shell #view .ma-v241-quick-grid{
    display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
    grid-template-rows:repeat(2,minmax(0,1fr))!important;
    gap:5px!important;margin-top:6px!important;
    height:calc(100% - 24px)!important;
  }
  body.ma-v235-shell #view .ma-v241-quick-grid button{
    min-height:0!important;height:100%!important;gap:3px!important;padding:5px 4px!important;
    border-radius:8px!important;
  }
  body.ma-v235-shell #view .ma-v241-quick-icon{font-size:16px!important}
  body.ma-v235-shell #view .ma-v241-quick-grid button>span:last-child{font-size:10px!important;line-height:1.1!important}
  body.ma-v235-shell #view .ma-v241-due p{font-size:10px!important;line-height:1.3!important;margin:5px 0 7px!important}
  body.ma-v235-shell #view .ma-v241-bottom-grid{
    min-height:0!important;height:100%!important;overflow:hidden!important;
    display:grid!important;grid-template-columns:1.25fr .86fr 1fr!important;
    gap:8px!important;margin:0!important;
  }
  body.ma-v235-shell #view .ma-v241-bottom{
    min-height:0!important;height:100%!important;overflow-y:auto!important;
    display:flex!important;gap:4px!important;
  }
  body.ma-v235-shell #view .ma-v241-bottom .ma-v241-heading-title{flex:0 0 auto!important}
  body.ma-v235-shell #view .ma-v241-activity-list{min-height:0!important;overflow-y:auto!important;gap:3px!important}
  body.ma-v235-shell #view .ma-v241-activity{padding:3px 0!important;gap:6px!important}
  body.ma-v235-shell #view .ma-v241-activity-icon{width:21px!important;height:21px!important;font-size:11px!important}
  body.ma-v235-shell #view .ma-v241-activity strong{font-size:10px!important}
  body.ma-v235-shell #view .ma-v241-activity small{font-size:9px!important;margin-top:0!important}
  body.ma-v235-shell #view .ma-v241-ledger>div{padding:3px 0!important;font-size:10px!important}
  body.ma-v235-shell #view .ma-v241-ledger strong{font-size:12px!important}
  body.ma-v235-shell #view .ma-v241-bottom>.ma-v241-minibutton{margin-top:auto!important}
  body.ma-v235-shell #view .ma-v248-statusbar{
    min-height:0!important;display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:6px!important;margin:0!important;padding:3px 0 0!important;
  }
  body.ma-v235-shell #view .ma-v248-status-item{
    min-height:27px!important;padding:5px 8px!important;
    gap:6px!important;font-size:10px!important;
  }
  body.ma-v235-shell #view .ma-v248-status-dot{width:7px!important;height:7px!important;flex-basis:7px!important}
}
@media screen and (min-width:1180px) and (min-height:680px) and (max-height:820px){
  body.ma-v235-shell #view .ma-v241-dashboard{
    grid-template-rows:auto auto minmax(88px,.48fr) minmax(195px,1.8fr) minmax(101px,.65fr) auto!important;
    row-gap:5px!important;
  }
  body.ma-v235-shell #view .ma-v241-banner-content{padding:7px 16px!important}
  body.ma-v235-shell #view .ma-v241-banner-brand{font-size:clamp(23px,2vw,31px)!important}
  body.ma-v235-shell #view .ma-v241-banner p{font-size:11px!important}
  body.ma-v235-shell #view .ma-v241-bottom{padding:7px 9px!important}
  body.ma-v235-shell #view .ma-v241-quick-grid button>span:last-child{font-size:9px!important}
}

/* V025.1 – mehr Raum für die heutigen Termine statt unnötiger Leerhöhe unten. */
@media screen and (min-width:1180px) and (min-height:680px){
  body.ma-v235-shell #view .ma-v241-dashboard{
    grid-template-rows:auto auto minmax(88px,.55fr) minmax(220px,1.9fr) minmax(105px,.64fr) auto!important;
  }
}
@media screen and (min-width:1180px) and (max-width:1390px) and (min-height:680px){
  body.ma-v235-shell.ma-v246-dashboard-head #view .ma-v241-heading{
    grid-template-columns:minmax(190px,.7fr) minmax(0,1.9fr) auto!important;
    grid-template-rows:auto!important;align-items:center!important;
  }
  body.ma-v235-shell.ma-v246-dashboard-head #view .ma-v241-heading>#maV235HeadBar{
    grid-column:2!important;grid-row:1!important;justify-content:flex-end!important;
    padding:0!important;min-width:0!important;
  }
  body.ma-v235-shell.ma-v246-dashboard-head #view .ma-v241-heading>.ma-v241-heading-actions{
    grid-column:3!important;grid-row:1!important;
  }
  body.ma-v235-shell.ma-v246-dashboard-head #view .ma-v241-heading #maNotificationDock{
    justify-content:flex-end!important;gap:3px!important;
  }
  body.ma-v235-shell.ma-v246-dashboard-head #view .ma-v241-heading #maNotificationDock :is(#workshopBell,#maActivityWork,#maActivityLeave,#maV18InvoiceBell){
    padding:6px 6px!important;font-size:9px!important;min-height:30px!important;height:30px!important;
  }
  body.ma-v235-shell.ma-v246-dashboard-head #view .ma-v241-heading #maNotificationDock .ma-notify-label{
    font-size:9px!important;
  }
  body.ma-v235-shell.ma-v246-dashboard-head #view .ma-v241-heading .ma-v235-user-pill{
    padding:5px 7px!important;min-height:30px!important;font-size:10px!important;
  }
  body.ma-v235-shell #view .ma-v241-heading p{max-width:235px!important}
}
@media screen and (min-width:1180px) and (min-height:680px) and (max-height:820px){
  body.ma-v235-shell #view .ma-v241-dashboard{
    grid-template-rows:auto auto minmax(80px,.42fr) minmax(225px,1.95fr) minmax(96px,.55fr) auto!important;
  }
  body.ma-v235-shell #view .ma-v241-next{max-height:48px!important}
  body.ma-v235-shell #view .ma-v241-next .ma-v241-appointment{min-height:39px!important;padding:2px 6px!important}
  body.ma-v235-shell #view .ma-v241-next .ma-v245-row-actions{display:none!important}
}

/* V025.1 Detail: Fahrzeugbanner sauber lesbar und Folgetermine bedienbar. */
@media screen and (min-width:1180px) and (min-height:680px) and (max-height:950px){
  body.ma-v235-shell #view .ma-v241-banner-small{display:none!important}
}
@media screen and (min-width:1180px) and (min-height:680px) and (max-height:820px){
  body.ma-v235-shell #view .ma-v241-banner-kicker{display:none!important}
  body.ma-v235-shell #view .ma-v241-banner-brand{margin:0 0 2px!important}
  body.ma-v235-shell #view .ma-v241-bottom>.ma-v241-minibutton{display:none!important}
  body.ma-v235-shell #view .ma-v241-next .ma-v245-row-actions{display:flex!important}
  body.ma-v235-shell #view .ma-v241-next .ma-v241-job-sub{display:none!important}
}


/* V025.2 – endgültig kein leerer Block über der Übersicht. Ein Header im DOM,
   minimal hoch und auf allen Ansichten dauerhaft sichtbar. */
body.ma-v235-shell #maV235Topline,
body.ma-v235-shell > #maV16TopAlerts{display:none!important;height:0!important;padding:0!important;margin:0!important}
body.ma-v235-shell #maV235HeadBar.ma-v252-stable-header{
  box-sizing:border-box!important;display:flex!important;align-items:center!important;
  position:sticky!important;top:0!important;left:auto!important;right:auto!important;
  width:calc(100% - var(--ma235-side))!important;
  max-width:calc(100% - var(--ma235-side))!important;
  height:44px!important;min-height:44px!important;max-height:44px!important;
  margin:0 0 0 var(--ma235-side)!important;padding:4px 14px!important;
  gap:10px!important;overflow:visible!important;flex-wrap:nowrap!important;
  background:linear-gradient(180deg,#09263a,#071b2e)!important;
  border:0!important;border-bottom:1px solid #19566f!important;
  box-shadow:none!important;z-index:90!important;
}
body.ma-v235-shell #maV235HeadBar.ma-v252-stable-header .ma-v235-head-alerts{flex:1 1 auto!important;min-width:0!important;width:auto!important;display:flex!important;align-items:center!important}
body.ma-v235-shell #maV235HeadBar.ma-v252-stable-header #maV16TopAlerts{
  display:block!important;margin:0!important;padding:0!important;border:0!important;
  width:100%!important;min-height:0!important;max-height:100%!important;
  box-shadow:none!important;background:transparent!important;
}
body.ma-v235-shell #maV235HeadBar.ma-v252-stable-header #maNotificationDock{
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  flex-wrap:nowrap!important;gap:6px!important;width:100%!important;min-width:0!important;
}
body.ma-v235-shell #maV235HeadBar.ma-v252-stable-header #maNotificationDock :is(#workshopBell,#maActivityWork,#maActivityLeave,#maV18InvoiceBell){
  flex:0 1 auto!important;width:auto!important;min-width:0!important;max-width:none!important;
  min-height:30px!important;height:30px!important;padding:4px 9px!important;
  font-size:10px!important;line-height:1.15!important;white-space:nowrap!important;
  border-radius:8px!important;
}
body.ma-v235-shell #maV235HeadBar.ma-v252-stable-header #maNotificationDock .ma-notify-label{font-size:10px!important;white-space:nowrap!important}
body.ma-v235-shell #maV235HeadBar.ma-v252-stable-header .ma-v235-topline-right{
  flex:0 0 auto!important;min-width:0!important;gap:5px!important;
  white-space:nowrap!important;align-items:center!important;
}
body.ma-v235-shell #maV235HeadBar.ma-v252-stable-header .ma-v235-user-pill{
  min-height:29px!important;max-height:29px!important;padding:5px 9px!important;
  border-radius:8px!important;font-size:10px!important;
}
body.ma-v235-shell #maV235HeadBar.ma-v252-stable-header #maV235TopDate{display:none!important}
/* Header ist außerhalb von #view: alte Grid-Spalte reserviert keinen Platz mehr. */
body.ma-v235-shell.ma-v252-stable-shell #view .ma-v241-heading{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;gap:7px!important;min-height:0!important;
}
body.ma-v235-shell.ma-v252-stable-shell #view .ma-v241-heading>.ma-v241-heading-actions{
  grid-column:2!important;grid-row:1!important;justify-self:end!important;
}
body.ma-v235-shell.ma-v252-stable-shell #view .ma-v241-heading>.ma-v241-heading-actions .ma-v241-primary{
  min-height:29px!important;padding:5px 9px!important;font-size:10px!important;
}
/* Der Dashboard-Viewport wird nicht mehr durch eine zweite unsichtbare Leiste verschoben. */
@media screen and (min-width:1180px) and (min-height:680px){
  body.ma-v235-shell.ma-v252-stable-shell #app:not(.hidden):has(#view .ma-v241-dashboard){
    height:calc(100dvh - 44px)!important;min-height:0!important;max-height:calc(100dvh - 44px)!important;
    padding:6px clamp(10px,1.1vw,18px) 7px!important;overflow:hidden!important;
  }
  body.ma-v235-shell.ma-v252-stable-shell #view .ma-v241-dashboard{
    grid-template-rows:auto auto minmax(77px,.52fr) minmax(200px,1.95fr) minmax(94px,.64fr) auto!important;
    row-gap:5px!important;
  }
  body.ma-v235-shell.ma-v252-stable-shell #view .ma-v241-appointment{min-height:44px!important;padding:3px 6px!important;gap:5px!important;grid-template-columns:43px minmax(0,1fr) auto 142px!important}
  body.ma-v235-shell.ma-v252-stable-shell #view .ma-v245-row-actions{gap:4px!important;flex-direction:row!important}
  body.ma-v235-shell.ma-v252-stable-shell #view .ma-v245-row-actions button{
    min-height:25px!important;height:27px!important;padding:3px 5px!important;font-size:9px!important;flex:1 1 0!important;width:auto!important;
  }
  body.ma-v235-shell.ma-v252-stable-shell #view .ma-v241-quick-grid{gap:4px!important;margin-top:4px!important;height:calc(100% - 22px)!important}
  body.ma-v235-shell.ma-v252-stable-shell #view .ma-v241-quick-grid button{padding:3px!important;gap:1px!important;min-height:0!important;border-radius:7px!important}
  body.ma-v235-shell.ma-v252-stable-shell #view .ma-v241-quick-icon{font-size:14px!important}
  body.ma-v235-shell.ma-v252-stable-shell #view .ma-v241-quick-grid button>span:last-child{font-size:9px!important}
}
/* Die linke Navigation bleibt ohne Scrollen erreichbar, soweit die Höhe reicht. */
body.ma-v235-shell #maV235Sidebar{padding:7px 11px 12px!important}
body.ma-v235-shell #maV235Sidebar .ma-v235-brand{min-height:65px!important;padding:4px 0 9px!important;margin-bottom:7px!important}
body.ma-v235-shell #maV235Sidebar .ma-v235-brand svg{flex-basis:47px!important;width:47px!important;height:36px!important}
body.ma-v235-shell #maV235Sidebar .ma-v235-brand strong{font-size:17px!important}
body.ma-v235-shell #maV235Sidebar .ma-v235-brand b{font-size:16px!important}
body.ma-v235-shell #maV235Sidebar .ma-v235-brand small{font-size:9px!important;margin-top:2px!important}
body.ma-v235-shell #maV235Sidebar .ma-v235-nav-head{margin:7px 0 5px!important;font-size:9px!important}
body.ma-v235-shell #maV235Sidebar .ma-v235-tools-head{margin-top:8px!important;padding-top:8px!important}
body.ma-v235-shell #maV235Sidebar #nav.ma-v235-sidebar-nav,
body.ma-v235-shell #maV235Sidebar #adminTopActions.ma-v235-sidebar-tools{gap:3px!important}
body.ma-v235-shell #maV235Sidebar #nav.ma-v235-sidebar-nav>button,
body.ma-v235-shell #maV235Sidebar #adminTopActions.ma-v235-sidebar-tools>button,
body.ma-v235-shell #maV235Sidebar #adminTopActions.ma-v235-sidebar-tools>.ma-v11-menu>.ma-v11-menu-button{
  min-height:29px!important;height:auto!important;padding:6px 9px!important;
  font-size:10px!important;line-height:1.12!important;border-radius:7px!important;
}
body.ma-v235-shell #maV235Sidebar .ma-v235-sidebar-foot{margin:8px 0 0!important;padding:7px 3px 0!important;font-size:9px!important}
/* Mobile: legible flex-wrap; unlike desktop, allow normal vertical scroll. */
@media(max-width:1179px){
  body.ma-v235-shell #maV235HeadBar.ma-v252-stable-header{
    height:auto!important;max-height:none!important;min-height:38px!important;padding:5px 10px!important;flex-wrap:wrap!important;
  }
  body.ma-v235-shell #maV235HeadBar.ma-v252-stable-header #maNotificationDock{flex-wrap:wrap!important}
  body.ma-v235-shell #maV235HeadBar.ma-v252-stable-header .ma-v235-topline-right{margin-left:auto!important}
}
@media(max-width:760px){
  body.ma-v235-shell #maV235HeadBar.ma-v252-stable-header{margin-left:0!important;width:100%!important;max-width:100%!important}
  body.ma-v235-shell #view .ma-v241-heading{grid-template-columns:1fr!important}
  body.ma-v235-shell.ma-v252-stable-shell #view .ma-v241-heading>.ma-v241-heading-actions{grid-column:1!important;grid-row:auto!important;justify-self:start!important}
}
html[data-skin="classic"] body.ma-v235-shell #maV235HeadBar.ma-v252-stable-header{
  background:linear-gradient(180deg,#f8fbff,#ecf5fc)!important;border-bottom-color:#bbd5e4!important;
}
@media print{body.ma-v235-shell #maV235HeadBar.ma-v252-stable-header{display:none!important}}


/* V025.3 – eine große TÜV-/Wartungsübersicht statt doppeltem Schnellzugriff. */
body.ma-v235-shell #view .ma-v241-right-stack.ma-v253-due-stack{
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;
  min-width:0!important;min-height:0!important;height:100%!important;gap:0!important;overflow:hidden!important;
}
body.ma-v235-shell #view .ma-v241-right-stack .ma-v241-due.ma-v253-due-panel{
  display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:7px!important;
  min-height:0!important;height:100%!important;overflow:hidden!important;padding:12px 14px!important;
}
body.ma-v235-shell #view .ma-v253-due-heading{flex:0 0 auto!important;gap:7px!important}
body.ma-v235-shell #view .ma-v253-due-heading h3{font-size:14px!important;line-height:1.25!important}
body.ma-v235-shell #view .ma-v253-due-description{margin:0!important;flex:0 0 auto!important;font-size:11px!important;line-height:1.35!important;color:#a7cfe1!important}
body.ma-v235-shell #view .ma-v253-due-list{
  display:flex!important;flex-direction:column!important;gap:6px!important;flex:1 1 auto!important;
  min-height:0!important;overflow:auto!important;scrollbar-width:thin;scrollbar-color:#2389af transparent;
}
body.ma-v235-shell #view .ma-v253-due-vehicle{
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;
  min-height:51px!important;width:100%!important;flex:0 0 auto!important;padding:8px 10px!important;
  border:1px solid #225e82!important;border-radius:9px!important;
  background:linear-gradient(180deg,#0e3551,#092b45)!important;color:#ecf9ff!important;
  text-align:left!important;font-size:11px!important;cursor:pointer!important;
}
body.ma-v235-shell #view .ma-v253-due-vehicle:hover:is(button){border-color:#45d6f4!important;background:#124565!important}
body.ma-v235-shell #view .ma-v253-due-vehicle-info{display:flex!important;flex-direction:column!important;gap:4px!important;min-width:0!important}
body.ma-v235-shell #view .ma-v253-due-vehicle-info strong{font-size:11px!important;line-height:1.3!important;white-space:normal!important;overflow-wrap:anywhere!important}
body.ma-v235-shell #view .ma-v253-due-vehicle-info small{font-size:10px!important;color:#a1c9dc!important}
body.ma-v235-shell #view .ma-v253-due-when{display:flex!important;align-items:flex-end!important;flex-direction:column!important;gap:3px!important;white-space:nowrap!important;flex:0 0 auto!important}
body.ma-v235-shell #view .ma-v253-due-when b{font-size:11px!important;color:#fff!important}
body.ma-v235-shell #view .ma-v253-due-type{font-size:10px!important;font-weight:800!important;color:#48ddf0!important}
body.ma-v235-shell #view .ma-v253-due-vehicle.ma-v253-overdue{border-color:#b77843!important}
body.ma-v235-shell #view .ma-v253-late-label{font-size:9px!important;color:#ffd39c!important;font-weight:800!important}
body.ma-v235-shell #view .ma-v253-due-empty{font-size:12px!important;color:#bbd6e5!important;line-height:1.5!important;padding:15px 6px!important}
body.ma-v235-shell #view .ma-v253-due-footer{align-self:flex-start!important;flex:0 0 auto!important;margin-top:2px!important}
@media screen and (max-width:1179px){
  body.ma-v235-shell #view .ma-v241-right-stack.ma-v253-due-stack{height:auto!important;overflow:visible!important}
  body.ma-v235-shell #view .ma-v241-right-stack .ma-v241-due.ma-v253-due-panel{height:auto!important;max-height:420px!important}
  body.ma-v235-shell #view .ma-v253-due-list{max-height:300px!important;overflow:auto!important}
}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v253-due-description{color:#56758d!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v253-due-vehicle{background:linear-gradient(180deg,#fff,#f0f7fb)!important;color:#173951!important;border-color:#c1d8e7!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v253-due-vehicle-info small{color:#53728c!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v253-due-when b{color:#173951!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v253-due-type{color:#096e95!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v253-due-vehicle.ma-v253-overdue{border-color:#d6a16e!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v253-late-label{color:#a65119!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v253-due-empty{color:#55768d!important}


/* =======================================================================
   V025.4 • Finales Referenz-Dashboard. Nur .ma-v254-dashboard und Sidebar.
   Der hinterlegte Original-Logo-Asset bleibt unverändert.
   ======================================================================= */
:root{--ma254-ink:#031320;--ma254-cyan:#00d9ed;--ma254-side:258px}
body.ma-v235-shell{--ma235-side:var(--ma254-side)!important}
body.ma-v235-shell #maV235HeadBar.ma-v252-stable-header{display:none!important;position:static!important;height:0!important;min-height:0!important;max-height:0!important;padding:0!important;margin:0!important;border:0!important;overflow:hidden!important}
body.ma-v235-shell #maV235Sidebar{
  width:var(--ma254-side)!important;padding:6px 12px 10px!important;
  background:linear-gradient(165deg,#041321 0%,#02111d 65%,#03192a 100%)!important;
  border-right:1px solid rgba(27,220,249,.73)!important;box-shadow:6px 0 20px rgba(0,0,0,.28)!important;
  overflow-y:auto!important;overflow-x:hidden!important;scrollbar-width:thin;
}
body.ma-v235-shell #maV235Sidebar .ma-v235-brand{display:none!important}
body.ma-v235-shell #maV254NoticeDock{display:block!important;margin:0 0 8px!important;padding:0!important}
body.ma-v235-shell #maV254NoticeDock #maV16TopAlerts.ma-v16-alertbar{
  display:block!important;position:static!important;width:100%!important;height:auto!important;min-height:0!important;
  max-height:none!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;
}
body.ma-v235-shell #maV254NoticeDock #maNotificationDock{
  display:flex!important;flex-flow:column nowrap!important;justify-content:flex-start!important;
  width:100%!important;gap:6px!important;align-items:stretch!important;
}
body.ma-v235-shell #maV254NoticeDock #maNotificationDock :is(#workshopBell,#maActivityWork,#maActivityLeave,#maV18InvoiceBell){
  display:flex!important;position:relative!important;align-items:center!important;justify-content:flex-start!important;
  width:100%!important;max-width:none!important;min-width:0!important;flex:0 0 auto!important;
  height:34px!important;min-height:34px!important;max-height:34px!important;
  padding:6px 10px!important;margin:0!important;gap:8px!important;
  color:#f2fdff!important;font-size:11px!important;font-weight:780!important;
  white-space:nowrap!important;text-align:left!important;line-height:1.1!important;
  background:linear-gradient(180deg,#102f48,#072238)!important;
  border:1px solid #1785b5!important;border-radius:9px!important;
  box-shadow:inset 0 1px 0 rgba(221,251,255,.07),0 0 10px rgba(0,166,232,.12)!important;
}
body.ma-v235-shell #maV254NoticeDock #maNotificationDock .ma-notify-label{display:inline!important;white-space:nowrap!important;font-size:11px!important;font-weight:760!important}
body.ma-v235-shell #maV254NoticeDock #maNotificationDock :is(.ma-count,#workshopBellCount,.ma-v18-count){
  margin-left:auto!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-width:19px!important;height:19px!important;padding:2px 5px!important;font-size:10px!important;
  color:#fff!important;border-radius:999px!important;background:#e32049!important;border-color:#ff7187!important;
}
body.ma-v235-shell #maV254NoticeDock #maNotificationDock [hidden]{display:none!important}
body.ma-v235-shell .ma-v235-nav-head{margin:9px 0 5px!important;font-size:10px!important;letter-spacing:1.05px!important;color:#5fe8f8!important;padding:0 3px!important}
body.ma-v235-shell .ma-v235-nav-head.ma-v235-tools-head{margin:9px 0 6px!important;padding-top:7px!important;border-top:1px solid #12546f!important}
body.ma-v235-shell #nav.ma-v235-sidebar-nav{display:flex!important;flex-direction:column!important;gap:5px!important;margin:0!important;padding:0!important}
body.ma-v235-shell #nav.ma-v235-sidebar-nav>button,
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools>button,
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools>.ma-v11-menu>.ma-v11-menu-button{
  width:100%!important;min-height:30px!important;max-height:32px!important;padding:5px 11px!important;margin:0!important;
  font-size:11px!important;font-weight:780!important;border-radius:8px!important;line-height:1.1!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.055)!important;
}
body.ma-v235-shell #nav.ma-v235-sidebar-nav>button{background:linear-gradient(180deg,#123753,#09283f)!important;border:1px solid #216f93!important;text-align:left!important;color:#eafcff!important}
body.ma-v235-shell #nav.ma-v235-sidebar-nav>button.primary,
body.ma-v235-shell #nav.ma-v235-sidebar-nav>button[aria-current="page"]{background:linear-gradient(100deg,#00aaac,#06a7b8)!important;border-color:#48faff!important;box-shadow:0 0 14px rgba(14,241,235,.44),inset 0 0 0 1px rgba(255,255,255,.14)!important;color:#fff!important}
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools{gap:5px!important}
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools>#maV226LogbookButton{margin:0!important}
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools>#maV215MaterialButton{margin-bottom:0!important}
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools>#logout{margin-top:4px!important}
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools .ma-v11-menu-dropdown{z-index:175!important}
body.ma-v235-shell .ma-v235-sidebar-foot{margin:8px 0 0!important;padding:7px 3px 0!important;font-size:10px!important;line-height:1.3!important;flex-wrap:wrap!important}
body.ma-v235-shell #maV254ActiveUser{color:#8ddff1!important;font-size:10px!important}
body.ma-v235-shell #app:not(.hidden){margin-left:var(--ma254-side)!important;width:calc(100% - var(--ma254-side))!important;padding:8px 11px 12px!important;background:linear-gradient(150deg,#031422,#051a2d)!important;min-height:100dvh!important}
body.ma-v235-shell #view .ma-v254-dashboard{
  --ma254-outline:#00c8e7;--ma254-card:#041e31;
  color:#ecfbff!important;width:100%!important;max-width:none!important;
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:minmax(146px,.74fr) minmax(78px,.44fr) minmax(228px,1.6fr) minmax(142px,.85fr) minmax(33px,auto)!important;
  gap:9px!important;align-items:stretch!important;
}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-heading{display:none!important}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-banner{
  grid-row:1!important;position:relative!important;isolation:isolate!important;display:flex!important;align-items:center!important;
  height:100%!important;min-height:0!important;max-height:none!important;width:100%!important;
  margin:0!important;padding:0!important;overflow:hidden!important;
  border:1px solid var(--ma254-outline)!important;border-radius:14px!important;
  background:linear-gradient(90deg,#051827 0%,#061e30 51%,#052137 100%)!important;
  box-shadow:0 0 0 1px rgba(12,224,252,.055),0 0 19px rgba(7,220,255,.2),inset 0 0 20px rgba(0,0,0,.28)!important;
}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-banner::before{
  content:''!important;position:absolute!important;z-index:-1!important;pointer-events:none!important;
  inset:0 0 0 52%!important;
  background:url('./ma235-hero-car.webp') right center / cover no-repeat!important;
  -webkit-mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.22) 13%,#000 48%)!important;
  mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.22) 13%,#000 48%)!important;
}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-banner::after{
  content:''!important;position:absolute!important;inset:0!important;pointer-events:none!important;z-index:0!important;
  background:linear-gradient(100deg,rgba(0,0,0,.12),rgba(0,39,67,.06) 45%,rgba(0,221,255,.13) 66%,transparent 82%)!important;
}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v254-brand-logo{
  flex:0 0 auto!important;display:block!important;width:clamp(158px,19%,245px)!important;
  height:calc(100% - 13px)!important;max-height:185px!important;object-fit:contain!important;
  object-position:center!important;margin:0 8px 0 16px!important;position:relative!important;z-index:1!important;
  /* Die Original-Pixel der Bilddatei bleiben erhalten; nur Schlagschatten auf der Seite. */
  filter:drop-shadow(0 0 11px rgba(18,188,237,.28))!important;
}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v254-banner-content{
  flex:0 1 48%!important;min-width:0!important;max-width:53%!important;
  margin:0!important;padding:11px 9px!important;position:relative!important;z-index:1!important;
}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-banner-kicker{font-size:clamp(9px,.8vw,11px)!important;letter-spacing:.14em!important;color:#6cefff!important;font-weight:840!important}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-banner-brand{
  margin:5px 0 4px!important;font-size:clamp(28px,3.4vw,51px)!important;
  line-height:.95!important;font-weight:900!important;letter-spacing:.02em!important;
  text-shadow:0 4px 12px rgba(0,0,0,.5)!important;
}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-banner-brand b{color:#00e4fa!important}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-banner p{font-size:clamp(11px,1vw,14px)!important;margin:6px 0 0!important;font-weight:700!important;color:#ecfaff!important}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-banner-small{display:none!important}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-metrics{
  grid-row:2!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:9px!important;margin:0!important;
  min-height:0!important;height:100%!important;
}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-metrics>.ma-v241-metric{
  min-width:0!important;height:100%!important;min-height:0!important;max-height:none!important;
  padding:9px 11px!important;border-radius:11px!important;
  background:linear-gradient(165deg,#0a3652,#052033)!important;border:1px solid #03c6e2!important;
  box-shadow:0 0 13px rgba(0,219,253,.14),inset 0 1px 0 rgba(255,255,255,.10)!important;
}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-metric-top{gap:6px!important}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-metric-label{font-size:clamp(10px,.8vw,12px)!important;white-space:normal!important;color:#e6faff!important}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-metric-symbol{width:27px!important;height:27px!important;font-size:18px!important;color:#0ceeff!important;background:#06334c!important;border-color:#126e8d!important}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-metric-value{font-size:clamp(23px,2.15vw,33px)!important;margin:4px 0 2px!important;text-shadow:none!important}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-metric-note{font-size:clamp(9px,.72vw,11px)!important;color:#bfdce9!important}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v248-clock-card .ma-v241-metric-value{font-size:clamp(17px,1.6vw,25px)!important;white-space:nowrap!important}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-main-grid{
  grid-row:3!important;height:100%!important;min-height:0!important;overflow:hidden!important;
  display:grid!important;grid-template-columns:minmax(0,1.38fr) minmax(340px,1fr)!important;
  align-items:stretch!important;gap:10px!important;
}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-panel{
  min-height:0!important;margin:0!important;padding:11px 12px!important;
  border:1px solid #00cce5!important;border-radius:12px!important;
  background:linear-gradient(170deg,#062338,#021525)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 0 13px rgba(0,204,235,.12)!important;
}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-heading-title h3{font-size:clamp(13px,1.05vw,16px)!important;color:#f5fcff!important}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-heading-icon{font-size:17px!important;color:#09e8f3!important}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-appointment{
  min-height:52px!important;height:auto!important;padding:6px 9px!important;gap:9px!important;
  border:1px solid #0d8cba!important;border-radius:10px!important;
  background:linear-gradient(110deg,#0b3750,#06243a)!important;
  box-shadow:inset 3px 0 0 #00f1ee!important;
}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-time b{font-size:12px!important}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-time small{font-size:10px!important}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-job-name{font-size:11px!important}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-job-sub{font-size:10px!important}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-state{font-size:9px!important}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v245-row-actions button{
  background:linear-gradient(180deg,#124764,#0a3049)!important;
  border:1px solid #18a1c2!important;border-radius:7px!important;
  min-height:27px!important;font-size:10px!important;font-weight:750!important;
}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-schedule{display:flex!important;flex-direction:column!important;height:100%!important;min-height:0!important;overflow:hidden!important}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-schedule>.ma-v241-appointment-list{overflow-y:auto!important;min-height:0!important;scrollbar-width:thin}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-next{max-height:85px!important;overflow:auto!important}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-right-stack.ma-v253-due-stack{display:block!important;height:100%!important;min-height:0!important;overflow:hidden!important}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v253-due-panel{
  display:flex!important;flex-direction:column!important;height:100%!important;max-height:100%!important;min-height:0!important;
  padding:12px!important;
}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v253-due-description{font-size:11px!important;color:#b8e0ec!important;margin:6px 0 8px!important}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v253-due-list{flex:1 1 auto!important;min-height:0!important;overflow:auto!important;gap:7px!important;scrollbar-width:thin}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v253-due-vehicle{
  min-height:54px!important;padding:8px 10px!important;background:linear-gradient(180deg,#0e354e,#062438)!important;
  border:1px solid #167eaa!important;border-radius:9px!important;
}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v253-due-when{border-radius:8px!important}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v253-due-footer{flex:0 0 auto!important;margin-top:8px!important;align-self:center!important}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-bottom-grid{
  grid-row:4!important;grid-template-columns:1.25fr .85fr 1fr!important;
  height:100%!important;min-height:0!important;overflow:hidden!important;gap:10px!important;margin:0!important;
}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-bottom{height:100%!important;min-height:0!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;padding:10px 13px!important;gap:5px!important}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-activity-list{flex:1 1 auto!important;min-height:0!important;overflow:auto!important;scrollbar-width:thin;gap:3px!important}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-ledger{flex:1 1 auto!important;min-height:0!important;overflow:auto!important;gap:2px!important}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-activity{padding:5px 7px!important;min-height:0!important}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-bottom>.ma-v241-minibutton{margin-top:auto!important;align-self:flex-start!important}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v248-statusbar{
  grid-row:5!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
  min-height:0!important;height:33px!important;gap:9px!important;margin:0!important;padding:0!important;
}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v248-status-item{
  border:1px solid #1689b2!important;border-radius:999px!important;
  background:linear-gradient(180deg,#082c43,#031b2b)!important;
  padding:5px 10px!important;font-size:10px!important;min-height:32px!important;
}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v248-status-item b{color:#5bf2b0!important}
@media screen and (min-width:1180px) and (min-height:690px){
  body.ma-v235-shell #app:not(.hidden):has(#view .ma-v254-dashboard){
    height:100dvh!important;min-height:0!important;max-height:100dvh!important;
    padding:7px 10px 10px!important;overflow:hidden!important;
  }
  body.ma-v235-shell #app:has(#view .ma-v254-dashboard) #view{height:100%!important;min-height:0!important;overflow:hidden!important}
  body.ma-v235-shell #view .ma-v254-dashboard{
    height:100%!important;min-height:0!important;max-height:100%!important;overflow:hidden!important;
    grid-template-rows:minmax(138px,.76fr) minmax(73px,.43fr) minmax(210px,1.65fr) minmax(132px,.84fr) 33px!important;
  }
}
@media screen and (max-height:820px) and (min-width:1180px){
  body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-banner-kicker{display:block!important}
  body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-banner-brand{font-size:clamp(24px,2.65vw,37px)!important}
  body.ma-v235-shell #view .ma-v254-dashboard .ma-v254-brand-logo{max-height:132px!important}
}
@media screen and (max-width:1280px){
  body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-main-grid{grid-template-columns:minmax(0,1.3fr) minmax(320px,1fr)!important}
  body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-metrics{gap:6px!important}
  body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-metric-label{font-size:10px!important}
}
@media screen and (max-width:1179px){
  body.ma-v235-shell #view .ma-v254-dashboard{display:flex!important;flex-direction:column!important;gap:12px!important}
  body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-banner{min-height:160px!important;height:170px!important}
  body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-main-grid{grid-template-columns:1fr!important;overflow:visible!important}
  body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-metrics{grid-template-columns:repeat(3,minmax(0,1fr))!important;height:auto!important}
  body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-metrics>.ma-v241-metric{min-height:83px!important}
  body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-main-grid,body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-bottom-grid{height:auto!important;overflow:visible!important}
  body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-right-stack,body.ma-v235-shell #view .ma-v254-dashboard .ma-v253-due-panel{height:auto!important;max-height:none!important}
  body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-bottom-grid{grid-template-columns:1fr!important}
  body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-bottom{height:auto!important;min-height:145px!important}
  body.ma-v235-shell #view .ma-v254-dashboard .ma-v248-statusbar{height:auto!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media screen and (max-width:700px){
  body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-banner{min-height:160px!important}
  body.ma-v235-shell #view .ma-v254-dashboard .ma-v254-brand-logo{width:125px!important;margin-left:8px!important;margin-right:0!important}
  body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-banner-brand{font-size:25px!important}
  body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-banner-kicker{font-size:8px!important}
  body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-banner p{font-size:10px!important}
  body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-main-grid{grid-template-columns:1fr!important}
  body.ma-v235-shell #view .ma-v254-dashboard .ma-v248-statusbar{grid-template-columns:1fr!important}
}
/* Heller Modus: selektiv lesbar, Firmenlogo und Fahrzeugbild unverändert. */
html[data-skin="classic"] body.ma-v235-shell #maV235Sidebar{background:linear-gradient(180deg,#e8f3fb,#deedf7)!important;border-color:#93bfd7!important}
html[data-skin="classic"] body.ma-v235-shell #maV254NoticeDock #maNotificationDock :is(#workshopBell,#maActivityWork,#maActivityLeave,#maV18InvoiceBell){background:linear-gradient(180deg,#fff,#edf5fc)!important;color:#173955!important;border-color:#92c1dc!important}
html[data-skin="classic"] body.ma-v235-shell #maV254NoticeDock #maNotificationDock .ma-notify-label{color:#173955!important}
html[data-skin="classic"] body.ma-v235-shell #app:not(.hidden){background:#e9f3fa!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-panel,html[data-skin="classic"] body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-metric{background:linear-gradient(180deg,#fff,#edf6fc)!important;border-color:#8dbfda!important;color:#163e5c!important;box-shadow:0 6px 18px rgba(31,76,112,.1)!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-heading-title h3,html[data-skin="classic"] body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-job-name,html[data-skin="classic"] body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-metric-value{color:#143a55!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-metric-label,html[data-skin="classic"] body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-metric-note{color:#3a6079!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-appointment,html[data-skin="classic"] body.ma-v235-shell #view .ma-v254-dashboard .ma-v253-due-vehicle{background:linear-gradient(180deg,#f8fcff,#e8f3fa)!important;border-color:#95c5db!important;color:#163e5c!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v254-dashboard .ma-v248-status-item{background:linear-gradient(180deg,#fff,#ebf4fb)!important;border-color:#9dc4d8!important;color:#2c506a!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v254-dashboard .ma-v248-status-item b{color:#0b8e69!important}
@media print{body.ma-v235-shell #maV254NoticeDock{display:none!important}body.ma-v235-shell #view .ma-v254-dashboard{overflow:visible!important;height:auto!important}}


/* V025.4 Desktop grid: ältere V025.2-Selektoren dürfen keine sechste Leerzeile erzeugen. */
@media screen and (min-width:1180px) and (min-height:690px){
  body.ma-v235-shell.ma-v252-stable-shell #app:not(.hidden):has(#view .ma-v254-dashboard){
    height:100dvh!important;min-height:0!important;max-height:100dvh!important;
    padding:7px 11px 10px!important;overflow:hidden!important;
  }
  body.ma-v235-shell.ma-v252-stable-shell #view .ma-v241-dashboard.ma-v254-dashboard{
    display:grid!important;height:100%!important;max-height:100%!important;min-height:0!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:clamp(143px,18.6vh,185px) clamp(77px,9.5vh,104px) minmax(220px,1fr) clamp(147px,21vh,205px) 33px!important;
    align-content:stretch!important;gap:9px!important;
  }
  body.ma-v235-shell.ma-v252-stable-shell #view .ma-v241-dashboard.ma-v254-dashboard .ma-v241-main-grid{height:100%!important;min-height:0!important}
  body.ma-v235-shell.ma-v252-stable-shell #view .ma-v241-dashboard.ma-v254-dashboard .ma-v241-bottom-grid{height:100%!important;min-height:0!important}
}

/* V025.4 Feinschliff: Sidebar einschließlich Verwaltung auf 768px bedienbar. */
body.ma-v235-shell #maV254NoticeDock #maNotificationDock{gap:4px!important}
body.ma-v235-shell #maV254NoticeDock #maNotificationDock :is(#workshopBell,#maActivityWork,#maActivityLeave,#maV18InvoiceBell){height:31px!important;min-height:31px!important;max-height:31px!important;padding:5px 9px!important}
body.ma-v235-shell #nav.ma-v235-sidebar-nav{gap:4px!important}
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools{gap:4px!important}
body.ma-v235-shell #nav.ma-v235-sidebar-nav>button,
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools>button,
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools>.ma-v11-menu>.ma-v11-menu-button{min-height:28px!important;max-height:30px!important;padding:5px 10px!important}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-appointment{grid-template-columns:47px minmax(0,1fr) auto minmax(170px,178px)!important}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v245-row-actions{display:flex!important;gap:5px!important;flex-wrap:nowrap!important;align-items:center!important}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v245-row-actions button{min-width:78px!important;white-space:nowrap!important;font-size:10px!important;padding:5px 6px!important}
@media screen and (max-width:760px){
  body.ma-v235-shell #app:not(.hidden){margin-left:0!important;width:100%!important;max-width:100%!important;padding:49px 11px 18px!important}
  body.ma-v235-shell #maV235Sidebar{transform:translateX(-105%)!important;width:min(258px,83vw)!important;z-index:145!important}
  body.ma-v235-shell.ma-v235-mobile-open #maV235Sidebar{transform:translateX(0)!important}
  body.ma-v235-shell #maV235MobileToggle{display:block!important;position:fixed!important;top:6px!important;left:10px!important;z-index:144!important}
  body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-appointment{grid-template-columns:43px minmax(0,1fr)!important;gap:7px!important}
  body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-appointment .ma-v241-state{grid-column:1!important;grid-row:2!important}
  body.ma-v235-shell #view .ma-v254-dashboard .ma-v245-row-actions{grid-column:2!important;grid-row:2!important;justify-content:flex-end!important}
}

/* Auch Null-Badges nach serverseitigem Schließen wirklich ausblenden. */
body.ma-v235-shell #maV254NoticeDock #maNotificationDock :is(.ma-count,#workshopBellCount,.ma-v18-count)[hidden]{display:none!important}

/* Kompaktes Navigationsraster auch bei 768px Bildschirmhöhe. */
@media screen and (min-width:761px) and (max-height:820px){
  body.ma-v235-shell #maV235Sidebar{padding-top:4px!important;padding-bottom:5px!important}
  body.ma-v235-shell #maV254NoticeDock #maNotificationDock{gap:3px!important}
  body.ma-v235-shell #maV254NoticeDock #maNotificationDock :is(#workshopBell,#maActivityWork,#maActivityLeave,#maV18InvoiceBell){min-height:29px!important;max-height:29px!important;height:29px!important}
  body.ma-v235-shell #nav.ma-v235-sidebar-nav,body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools{gap:3px!important}
  body.ma-v235-shell #nav.ma-v235-sidebar-nav>button,
  body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools>button,
  body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools>.ma-v11-menu>.ma-v11-menu-button{min-height:27px!important;max-height:28px!important;padding:4px 10px!important}
  body.ma-v235-shell .ma-v235-nav-head{margin:7px 0 4px!important}
  body.ma-v235-shell .ma-v235-nav-head.ma-v235-tools-head{margin:7px 0 4px!important;padding-top:5px!important}
}

/* V025.5 – Zwei getrennt scrollbarere Terminlisten statt abgeschnittenem „Als Nächstes“.
   Nur Dashboardlayout: keine Änderungen an Termin-/Rechnungsfunktionen. */
@media screen and (min-width:1180px) and (min-height:690px){
  body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-schedule{
    display:grid!important;
    grid-template-rows:auto minmax(0,1fr) auto minmax(60px,26%)!important;
    gap:4px!important;
    height:100%!important;min-height:0!important;overflow:hidden!important;
  }
  body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-schedule>.ma-v241-panel-heading{
    min-height:0!important;margin:0!important;
  }
  body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-schedule>.ma-v241-section-divider{
    min-height:0!important;margin:0!important;padding:1px 0 4px!important;
  }
  body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-schedule>.ma-v241-appointment-list{
    display:flex!important;flex-direction:column!important;align-content:start!important;
    flex:none!important;width:100%!important;height:100%!important;
    min-height:0!important;max-height:none!important;
    overflow-y:auto!important;overflow-x:hidden!important;
    overscroll-behavior:contain!important;scrollbar-gutter:stable!important;
    scrollbar-width:thin!important;scrollbar-color:#20b8d9 #092a40!important;
    padding:2px 5px 3px 0!important;
  }
  body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-schedule>.ma-v241-appointment-list.ma-v241-next{
    flex:none!important;max-height:none!important;overflow-y:auto!important;
  }
  body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-schedule .ma-v241-appointment{
    flex:0 0 auto!important;min-width:0!important;
  }
  body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-schedule>.ma-v241-appointment-list::-webkit-scrollbar{width:7px}
  body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-schedule>.ma-v241-appointment-list::-webkit-scrollbar-track{background:#092a40;border-radius:10px}
  body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-schedule>.ma-v241-appointment-list::-webkit-scrollbar-thumb{background:#20b8d9;border-radius:10px;border:1px solid #092a40}
}


/* V025.6 – Keine leere zweite Kopfzeile; Meldungen bleiben oben links. */
html body.ma-v235-shell > header,
html body.ma-v235-shell > #maV235HeadBar,
html body.ma-v235-shell > #maV235Topline{
  display:none!important;position:absolute!important;inset:0 auto auto 0!important;
  width:0!important;height:0!important;min-height:0!important;max-height:0!important;
  margin:0!important;padding:0!important;border:0!important;overflow:hidden!important;
  visibility:hidden!important;pointer-events:none!important;
}
html body.ma-v235-shell{margin:0!important;padding-top:0!important}
html body.ma-v235-shell #app:not(.hidden){margin-top:0!important;top:0!important}
html body.ma-v235-shell #view:has(.ma-v254-dashboard){margin-top:0!important;padding-top:0!important}
html body.ma-v235-shell #maV254NoticeDock #maV16TopAlerts{display:block!important;height:auto!important;min-height:0!important;visibility:visible!important;overflow:visible!important;position:static!important}
html body.ma-v235-shell #maV254NoticeDock #maNotificationDock{display:flex!important;visibility:visible!important}
html body.ma-v235-shell #maV254NoticeDock #maNotificationDock .ma-v256-zero-count{display:none!important}
html body.ma-v235-shell #maV254NoticeDock #maNotificationDock .ma-notify-label{font-size:10.3px!important;letter-spacing:-.01em!important;white-space:nowrap!important}
/* Das originale Motiv bleibt unverändert, nur die unsaubere Alpha-Freistellung wird ersetzt. */
html body.ma-v235-shell #view .ma-v254-dashboard .ma-v254-brand-logo{
  object-fit:contain!important;image-rendering:auto!important;
  filter:drop-shadow(0 0 10px rgba(17,222,255,.35)) drop-shadow(0 3px 8px rgba(0,0,0,.5))!important;
}
@media screen and (min-width:1180px) and (min-height:690px){
  html body.ma-v235-shell #app:not(.hidden):has(#view .ma-v254-dashboard){height:100dvh!important;max-height:100dvh!important;padding-top:7px!important}
}


/* V0256 – kompakter Rechnung/Proforma-Editor */
body.ma-v235-shell #view #maV214InvoiceRoot .v256-mode-strip{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important;margin:0 0 8px!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v256-mode{min-height:38px!important;border-radius:11px!important;border:1px solid #bfd3e2!important;background:linear-gradient(180deg,#f6fbff,#edf4fa)!important;color:#163a53!important;font-weight:800!important;box-shadow:0 4px 10px rgba(11,32,52,.06)!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v256-mode.active{background:linear-gradient(135deg,#0f95c1,#13bdd8)!important;border-color:#13b6d4!important;color:#fff!important;box-shadow:0 8px 18px rgba(16,150,194,.26)!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v256-catalog-compact{padding:9px 10px!important;margin:6px 0 8px!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v256-catalog-hint{font-size:11px!important;color:#4f7188!important;line-height:1.35!important;margin-top:6px!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v233-payment-box p{margin:4px 0 0!important;font-size:11px!important;color:#55738c!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v228-phase strong{display:block!important;margin-bottom:2px!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v228-phase span{display:block!important;line-height:1.35!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v232-free-title{margin-top:8px!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v214-actions .v214-btn.green{background:linear-gradient(135deg,#178155,#1da66c)!important;border-color:#289e6f!important;color:#fff!important}


/* V0257 – Fahrzeugschein-Status und Kontaktspalte */
body.ma-v235-shell #view .ma-v257-doc-flag,body.ma-v235-shell #view .ma-v257-contact-badge{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:28px!important;padding:4px 10px!important;border-radius:999px!important;font-weight:800!important;font-size:12px!important;letter-spacing:.01em!important;border:1px solid rgba(255,255,255,.12)!important}
body.ma-v235-shell #view .ma-v257-doc-flag.ok{background:rgba(23,140,84,.18)!important;color:#b7ffd6!important;border-color:rgba(51,201,120,.4)!important}
body.ma-v235-shell #view .ma-v257-doc-flag.missing{background:rgba(181,54,73,.18)!important;color:#ffd1d7!important;border-color:rgba(231,95,119,.42)!important}
body.ma-v235-shell #view .ma-v257-contact-badge.ok{background:rgba(23,140,84,.18)!important;color:#b7ffd6!important;border-color:rgba(51,201,120,.4)!important}
body.ma-v235-shell #view .ma-v257-contact-badge.open{background:rgba(181,54,73,.18)!important;color:#ffd1d7!important;border-color:rgba(231,95,119,.42)!important}
body.ma-v235-shell #view .ma-v257-contact-badge.warn{background:rgba(198,146,38,.18)!important;color:#ffe7a6!important;border-color:rgba(240,183,63,.35)!important}
body.ma-v235-shell #view #jobResults table th:nth-child(4),body.ma-v235-shell #view #jobResults table th:nth-child(5),body.ma-v235-shell #view #jobResults table td:nth-child(4),body.ma-v235-shell #view #jobResults table td:nth-child(5),body.ma-v235-shell #view #vehicleResults table th:nth-child(5),body.ma-v235-shell #view #vehicleResults table td:nth-child(5){white-space:nowrap!important}

/* Staging V025.8: kostenfreier 15-Minuten-Puffer wird eigens markiert. */
body.ma-v235-shell #view .planner-slot.slot-gratispuffer:not(:disabled){background:linear-gradient(90deg,#915e14,#bb821c)!important;border-color:#f7c25a!important;color:#fff9e7!important}
body.ma-v235-shell #view .planner-slot.slot-gratispuffer:not(:disabled) span:last-child{color:#fff4c9!important}

/* V025.8 Staging: Termin-Countdown und Fälligkeitsliste */
body.ma-v235-shell #view .ma-v260-day-state{display:inline-block;font-weight:800;white-space:nowrap}
body.ma-v235-shell #view .ma-v260-day-state.overdue{color:#ff8a8a}
body.ma-v235-shell #view .ma-v260-day-state.today{color:#ffcd67}
body.ma-v235-shell #view .ma-v260-day-state.soon{color:#ffe194}
body.ma-v235-shell #view .ma-v260-due-view-header{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:0 0 12px}
body.ma-v235-shell #view .ma-v260-due-view-header h2{margin:0;flex:1 1 240px}
body.ma-v235-shell #view .ma-v260-due-view>.card>.scroll{overflow:auto;max-height:calc(100dvh - 240px)}
body.ma-v235-shell #view .ma-v260-due-view>.card>.scroll thead{position:sticky;top:0;z-index:2}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v260-day-state.overdue{color:#b52234!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v260-day-state.soon,html[data-skin="classic"] body.ma-v235-shell #view .ma-v260-day-state.today{color:#775007!important}

/* V025.8 Staging: alte Auftrag-Zwischenansichten nicht mehr sichtbar. */
body.ma-v235-shell #view.ma-v260-detail-loading{position:relative!important;min-height:220px!important}
body.ma-v235-shell #view.ma-v260-detail-loading > *{visibility:hidden!important}
body.ma-v235-shell #view.ma-v260-detail-loading::before{content:'Werkstattauftrag wird geladen …';position:absolute;top:24px;left:24px;z-index:4;color:#c5e7f7;font-weight:800;font-size:14px}
html[data-skin="classic"] body.ma-v235-shell #view.ma-v260-detail-loading::before{color:#26506b!important}

body.ma-v235-shell #view #maV238HourlyLabel{display:none!important}

/* V025.8 – stabile Hinweise, Terminplanung, Listen, TÜV/Wartung und Hellmodus */
body.ma-v235-shell #maV254NoticeDock{border-bottom:1px solid rgba(53,195,225,.52)!important;padding-bottom:9px!important;margin-bottom:9px!important}
body.ma-v235-shell #maV254NoticeDock .ma-v258-notification-heading{padding:2px 5px 7px!important;font-size:10px!important;font-weight:850!important;letter-spacing:.16em!important;color:#7feeff!important;text-transform:uppercase!important}
body.ma-v235-shell #maV254NoticeDock .ma-v258-notification-heading:after{content:'';display:block;margin-top:5px;height:1px;background:linear-gradient(90deg,rgba(47,196,226,.65),transparent)}
body.ma-v235-shell #maV254NoticeDock #maNotificationDock{gap:5px!important}
body.ma-v235-shell #view .ma-v258-due-row{display:flex;align-items:stretch;gap:5px;min-width:0}
body.ma-v235-shell #view .ma-v258-due-row>.ma-v253-due-vehicle{flex:1 1 auto!important;min-width:0!important}
body.ma-v235-shell #view .ma-v258-ignore-due{flex:0 0 auto;min-height:34px!important;align-self:center!important;padding:7px 8px!important;border:1px solid #bc7d3d!important;background:#503319!important;color:#ffe4bd!important;font-size:10px!important;border-radius:9px!important}
body.ma-v235-shell #view .ma-v258-ignore-due:hover{background:#895127!important}
body.ma-v235-shell #view .ma-v258-due-hint{font-size:10px!important;color:#8cbacd!important;margin:0 0 3px!important}
body.ma-v235-shell #view .ma-v258-due-row .ma-v253-due-when{white-space:nowrap}

/* Tabellen scrollen innerhalb ihrer Karte; Suchfelder bleiben außerhalb. */
body.ma-v235-shell #view :is(#jobResults,#vehicleResults,#invoiceResults,#rows,#paymentRows)>.scroll{max-height:clamp(280px,calc(100dvh - 265px),900px)!important;overflow-y:auto!important;overflow-x:auto!important;overscroll-behavior:contain!important;scrollbar-width:thin!important;scrollbar-color:#248eb0 #0e2d42!important}
body.ma-v235-shell #view :is(#jobResults,#vehicleResults,#invoiceResults,#rows,#paymentRows)>.scroll table{width:100%;border-collapse:separate;border-spacing:0}
body.ma-v235-shell #view :is(#jobResults,#vehicleResults,#invoiceResults,#rows,#paymentRows)>.scroll :is(thead,tbody) tr:first-child:has(th)>th{position:sticky;top:0;z-index:3!important;box-shadow:0 1px 0 #1482a7}
body.ma-v235-shell #view .ma-v258-order-detail .ma-v220-flags{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;align-items:stretch!important;gap:7px!important}
body.ma-v235-shell #view .ma-v258-order-detail .ma-v258-flag{display:flex!important;align-items:center!important;min-height:39px!important;padding:7px 10px!important;border-radius:11px!important;border:1px solid #296f89!important;background:#12334c!important;color:#ddf0fa!important;font-weight:800!important;font-size:11px!important;overflow-wrap:anywhere!important}
body.ma-v235-shell #view .ma-v258-order-detail .ma-v258-flag.ok{color:#8dfac4!important;border-color:#267c67!important;background:rgba(13,90,73,.35)!important}
body.ma-v235-shell #view .ma-v258-order-detail .ma-v258-flag.danger{color:#ffb1b9!important;border-color:#9b4859!important;background:rgba(116,29,53,.32)!important}
body.ma-v235-shell #view .ma-v258-order-detail .ma-v258-flag.warning{color:#ffdb93!important;border-color:#916d32!important;background:rgba(116,76,24,.32)!important}
body.ma-v235-shell #view .ma-v258-order-detail .ma-v220-order-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;align-items:start!important}
body.ma-v235-shell #view .ma-v258-order-detail .ma-v220-panel{min-width:0!important;padding:12px!important}
body.ma-v235-shell #view .ma-v258-order-detail .ma-v220-contact-content .card{padding:8px!important;margin:0!important}
@media(max-width:970px){body.ma-v235-shell #view .ma-v258-order-detail .ma-v220-flags{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.ma-v235-shell #view .ma-v258-order-detail .ma-v220-order-grid{grid-template-columns:1fr!important}}
@media(max-width:560px){body.ma-v235-shell #view .ma-v258-order-detail .ma-v220-flags{grid-template-columns:1fr!important}}

/* 1 – 2 – 3: gleiche Oberkante, weniger Leerraum und keine Katalogpreise. */
body.ma-v235-shell #view .ma-v241-booking-layout,body.ma-v235-shell #view .ma-v240-appointment-layout{align-items:start!important;gap:11px!important}
body.ma-v235-shell #view .ma-v241-booking-calendar,body.ma-v235-shell #view .ma-v241-booking-details{min-width:0!important;margin-top:0!important}
body.ma-v235-shell #view .ma-v241-booking-calendar .ma-v210-planner-head{margin:0 0 7px!important;padding-top:0!important}
body.ma-v235-shell #view .ma-v210-planner-head .actions{display:flex!important;align-items:end!important;flex-wrap:wrap!important;gap:6px!important}
body.ma-v235-shell #view .ma-v210-planner-head .actions label{display:flex!important;flex-direction:column!important;gap:3px!important;margin:0!important;font-size:11px!important;line-height:1.1!important}
body.ma-v235-shell #view .ma-v210-planner-head .actions button{min-height:39px!important;height:39px!important;padding:6px 12px!important;align-self:end!important}
body.ma-v235-shell #view .ma-v210-planner-head #maV210Day{height:39px!important;min-height:39px!important;padding:6px 9px!important;align-self:end!important}
body.ma-v235-shell #view .ma-v241-booking-details .ma-v241-booking-basics,body.ma-v235-shell #view .ma-v241-booking-details .ma-v245-choice-panel{padding:10px 12px!important;border-radius:14px!important;margin:0 0 8px!important}
body.ma-v235-shell #view .ma-v241-booking-head h4{font-size:15px!important;margin:0 0 2px!important}
body.ma-v235-shell #view .ma-v241-booking-head p{font-size:11px!important;margin:0 0 6px!important}
body.ma-v235-shell #view .ma-v241-booking-details .grid{gap:7px!important}
body.ma-v235-shell #view .ma-v241-booking-details input,body.ma-v235-shell #view .ma-v241-booking-details select,body.ma-v235-shell #view .ma-v241-booking-details textarea{min-height:35px!important;padding:6px 9px!important;font-size:12px!important}
body.ma-v235-shell #view .ma-v241-booking-details textarea{min-height:59px!important;max-height:96px!important}
body.ma-v235-shell #view .ma-v241-booking-details .ma-v245-step{margin:7px 0 5px!important;padding:4px 0!important}
body.ma-v235-shell #view .ma-v241-booking-details .ma-v238-calc{margin:6px 0!important;padding:7px!important}
body.ma-v235-shell #view .ma-v241-booking-details .ma-v238-calc p{font-size:10px!important;line-height:1.3!important;margin:4px 0 0!important}
body.ma-v235-shell #view .ma-v241-booking-details .ma-v238-safety{font-size:10px!important;line-height:1.3!important;margin:3px 0!important}
body.ma-v235-shell #view .workshop-planner .planner-selection-details{padding:9px 10px!important;margin:6px 0!important}
body.ma-v235-shell #view .workshop-planner .planner-booking textarea{min-height:57px!important}
body.ma-v235-shell #view .workshop-planner .planner-stats{gap:7px!important;margin-bottom:8px!important}

/* Konsequent heller Modus: lesbar auf allen Verwaltungsseiten und Dialogen. */
html[data-skin="classic"] body.ma-v235-shell #view{color:#1a354c!important}
html[data-skin="classic"] body.ma-v235-shell #view :is(.card,.ma-v220-panel,.ma-v241-booking-basics,.ma-v245-choice-panel,.ma-v210-planner,.ma-v238-calc,.ma-v222-rate-panel,.planner-selection-details,.planner-booking,.planner-lift,.ma-v209-flow,.ma-v210-vehicle-scan){background:#f0f4f8!important;color:#1b3850!important;border-color:#b5cbdc!important;box-shadow:0 4px 14px rgba(25,53,75,.06)!important}
html[data-skin="classic"] body.ma-v235-shell #view :is(.card,.ma-v220-panel,.ma-v210-planner,.planner-booking) :is(h2,h3,h4,h5,strong,label,p,small,span){text-shadow:none!important}
html[data-skin="classic"] body.ma-v235-shell #view :is(.card,.ma-v220-panel,.ma-v210-planner,.planner-booking) :is(h2,h3,h4,h5,label){color:#173954!important}
html[data-skin="classic"] body.ma-v235-shell #view :is(.card,.ma-v220-panel,.ma-v210-planner,.planner-booking) :is(p,small,.muted){color:#43647d!important}
html[data-skin="classic"] body.ma-v235-shell #view :is(.card,.ma-v220-panel,.ma-v210-planner,.planner-booking) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:#fff!important;color:#173853!important;border-color:#a8c3d5!important}
html[data-skin="classic"] body.ma-v235-shell #view :is(.card,.ma-v220-panel,.ma-v210-planner,.planner-booking) :is(input,textarea)::placeholder{color:#688296!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v258-order-detail .ma-v258-flag{background:#f7fbfe!important;border-color:#bbd0df!important;color:#18374f!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v258-order-detail .ma-v258-flag.ok{background:#e5f7ed!important;color:#11603c!important;border-color:#a1d6b7!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v258-order-detail .ma-v258-flag.danger{background:#fff1f2!important;color:#a81d38!important;border-color:#e2a2b3!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v258-order-detail .ma-v258-flag.warning{background:#fff5dd!important;color:#795313!important;border-color:#e0c480!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v258-ignore-due{background:#ffefd9!important;color:#744819!important;border-color:#dcb68a!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v260-day-state.overdue{color:#ae283a!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v260-day-state.soon{color:#77510b!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v257-doc-flag.ok,html[data-skin="classic"] body.ma-v235-shell #view .ma-v257-contact-badge.ok{background:#e5f7ed!important;color:#11603c!important;border-color:#a1d6b7!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v257-doc-flag.missing,html[data-skin="classic"] body.ma-v235-shell #view .ma-v257-contact-badge.open{background:#fff1f2!important;color:#a81d38!important;border-color:#e2a2b3!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v257-contact-badge.warn{background:#fff5dd!important;color:#795313!important;border-color:#e0c480!important}
html[data-skin="classic"] body.ma-v235-shell #maV254NoticeDock{border-bottom-color:#a4cada!important}
html[data-skin="classic"] body.ma-v235-shell #maV254NoticeDock .ma-v258-notification-heading{color:#2f7993!important}
html[data-skin="classic"] body.ma-v235-shell :is(.ma-brand-dialog,.ma-v11-menu-dropdown,.ma-v19-modal,.ma-order-overlay,.ma-v16-invoice-dialog){background:#f1f5f9!important;color:#183953!important;border-color:#b9cedc!important}
html[data-skin="classic"] body.ma-v235-shell :is(.ma-brand-dialog,.ma-v11-menu-dropdown,.ma-v19-modal,.ma-order-overlay,.ma-v16-invoice-dialog) :is(h2,h3,label,small,p){color:#244c65!important}
html[data-skin="classic"] body.ma-v235-shell :is(.ma-brand-dialog,.ma-v11-menu-dropdown,.ma-v19-modal,.ma-order-overlay,.ma-v16-invoice-dialog) :is(input:not([type=checkbox]),select,textarea){background:#fff!important;color:#183953!important;border-color:#a9c3d3!important}
@media(max-width:800px){body.ma-v235-shell #view .ma-v258-due-row{flex-direction:column!important}body.ma-v235-shell #view .ma-v258-due-row>.ma-v258-ignore-due{align-self:flex-start!important}}
/* V025.8 Hellmodus-Kontrastprüfung: Banner bleibt dunkel, alle Karten lesbar. */
html[data-skin="classic"] body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-banner-brand>span{color:#f7fcff!important;text-shadow:0 2px 8px rgba(0,0,0,.55)!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-banner-brand>b{color:#00d8ef!important;text-shadow:0 2px 8px rgba(0,0,0,.35)!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-time :is(b,small),
html[data-skin="classic"] body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-job :is(.ma-v241-job-sub,.ma-v241-mid),
html[data-skin="classic"] body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-section-divider :is(span,small),
html[data-skin="classic"] body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-empty,
html[data-skin="classic"] body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-appointment-list small,
html[data-skin="classic"] body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-activity small{color:#315b73!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-job-name{color:#15334c!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-state{color:#fff!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v258-due-hint{color:#426a81!important}
html[data-skin="classic"] body.ma-v235-shell .ma-v235-sidebar-foot{color:#356176!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-ledger :is(span,strong){color:#21445d!important}
body.ma-v235-shell #view .ma-v209-form>section.card:not(.ma-v209-wide){align-self:start!important;height:max-content!important;min-height:0!important}

/* ===============================================================
 V025.9 – Bestandskunden: klarer, preisfreier Zwei-Klick-Bühnenkalender.
 Der vorhandene Neukunden-Planer und alle anderen Seiten bleiben unberührt.
 =============================================================== */
body.ma-v235-shell #view .ma-v259-editor{width:100%;max-width:none;min-width:0;margin:0 auto;color:#e9f8ff}
body.ma-v235-shell #view .ma-v259-header{margin:0 0 13px;padding:0 3px}
body.ma-v235-shell #view .ma-v259-header h2{font-size:21px;line-height:1.25;margin:0 0 3px;color:#eefaff!important}
body.ma-v235-shell #view .ma-v259-header p{font-size:12px;margin:0;color:#a1ccdd}
body.ma-v235-shell #view .ma-v259-layout{display:grid!important;grid-template-columns:minmax(0,1.42fr) minmax(355px,.90fr)!important;gap:14px;align-items:start;min-width:0}
body.ma-v235-shell #view .ma-v259-cal,body.ma-v235-shell #view .ma-v259-panel{min-width:0;border:1px solid #127ea8;border-radius:15px;background:linear-gradient(160deg,#07243a 0%,#041b2f 100%)!important;color:#e9f8ff!important;padding:14px;box-shadow:0 12px 26px rgba(0,0,0,.18)}
body.ma-v235-shell #view .ma-v259-cal-head h3{font-size:16px;margin:0 0 5px;color:#f4fbff}
body.ma-v235-shell #view .ma-v259-cal-head small{font-size:11px;color:#9dcde0}
body.ma-v235-shell #view .ma-v259-dates{display:flex;align-items:end;flex-wrap:wrap;gap:7px;margin:10px 0}
body.ma-v235-shell #view .ma-v259-dates label{display:flex;flex-direction:column;gap:3px;margin:0;font-size:11px;color:#b9e4f5;font-weight:750}
body.ma-v235-shell #view .ma-v259-dates input,body.ma-v235-shell #view .ma-v259-dates button{height:38px!important;min-height:38px!important;max-height:38px!important;border-radius:9px!important;margin:0!important;padding:7px 10px!important;font-size:12px!important}
body.ma-v235-shell #view .ma-v259-dates input{width:154px;background:#062337!important;color:#f2fbff!important;border:1px solid #3686a8!important}
body.ma-v235-shell #view .ma-v259-instruction{margin:8px 0 5px;padding:8px 10px;background:#052b41;border:1px solid #04a8c8;border-radius:10px;font-size:11px;line-height:1.4;color:#d9f8fe}
body.ma-v235-shell #view .ma-v259-instruction b{color:#70eff2}
body.ma-v235-shell #view .ma-v259-feedback{margin:6px 0 10px;padding:8px 10px;min-height:32px;border:1px solid #216e89;background:#092a40;border-radius:9px;color:#bfeaf5;font-size:11px;line-height:1.4}
body.ma-v235-shell #view .ma-v259-lifts{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;margin:0!important}
body.ma-v235-shell #view .ma-v259-lifts>.planner-lift{min-width:0;max-width:100%;border:1px solid #356a8b;border-radius:13px;overflow:hidden;background:#102b41}
body.ma-v235-shell #view .ma-v259-lifts .planner-lift-head{min-height:44px;align-items:center;font-size:13px;padding:8px 11px;color:#fff}
body.ma-v235-shell #view .ma-v259-lifts .planner-lift-head span{font-size:10px;white-space:nowrap}
body.ma-v235-shell #view .ma-v259-viewport{max-height:min(660px,calc(100dvh - 260px));min-height:300px;overflow-y:auto;overflow-x:hidden;scrollbar-color:#247494 #09283b;scrollbar-width:thin;overscroll-behavior-y:contain}
body.ma-v235-shell #view .ma-v259-lane{position:relative!important;min-height:1456px!important;height:1476px!important}
body.ma-v235-shell #view .ma-v259-lane>.planner-slot{box-sizing:border-box!important;display:flex!important;height:28px!important;min-height:28px!important;max-height:28px!important;width:100%!important;margin:0!important;padding:3px 8px!important;border-radius:0!important;line-height:20px!important;font-size:11px!important;background:#153550!important;color:#bcd9e9!important;border:0!important;border-bottom:1px solid #31546e!important;justify-content:space-between!important;align-items:center!important}
body.ma-v235-shell #view .ma-v259-lane>.planner-slot:nth-child(even){background:#173b57!important}
body.ma-v235-shell #view .ma-v259-lane>.planner-slot:not(:disabled):hover{background:#155b70!important;color:#fff!important}
body.ma-v235-shell #view .ma-v259-lane>.planner-slot:disabled{background:#1c2f40!important;color:#657c8e!important;cursor:default}
body.ma-v235-shell #view .ma-v259-lane>.planner-slot:disabled span:last-child{color:#9eb4c3!important}
body.ma-v235-shell #view .ma-v259-lane>.planner-slot.ma-v259-selected:not(:disabled){background:#058ab1!important;border-color:#31e0ef!important;color:#fff!important;font-weight:800!important}
body.ma-v235-shell #view .ma-v259-lane>.planner-slot.ma-v259-first:not(:disabled){background:#087ba2!important;outline:2px solid #63ecfa!important;outline-offset:-2px!important;color:white!important;font-weight:850!important}
body.ma-v235-shell #view .ma-v259-lane>.planner-slot.ma-v259-buffer:not(:disabled){background:#b87d20!important;border-color:#ffd482!important;color:#fff!important;font-weight:800!important}
body.ma-v235-shell #view .ma-v259-lane>.planner-event{z-index:3!important;box-sizing:border-box!important;margin:0!important;left:61px!important;right:3px!important;width:calc(100% - 64px)!important;border-radius:9px!important;background:#785232!important;border:1px solid #f2c382!important;box-shadow:0 2px 5px #0003!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;padding:5px 7px!important;color:#fff!important;gap:2px!important;overflow:hidden!important;font-size:11px!important;text-align:left!important}
body.ma-v235-shell #view .ma-v259-lane>.planner-event strong{font-size:11px;line-height:1.2;color:#fff!important}
body.ma-v235-shell #view .ma-v259-lane>.planner-event span,body.ma-v235-shell #view .ma-v259-lane>.planner-event small{font-size:10px;color:#ffecd9!important}
body.ma-v235-shell #view .ma-v259-lane>.ma-v259-current-event{outline:2px solid #54dfed;outline-offset:-2px}
body.ma-v235-shell #view .ma-v259-end-marker{display:flex;justify-content:space-between;padding:1px 8px;min-height:20px;background:#0a263c;font-size:11px;font-weight:800;color:#98bacf}
body.ma-v235-shell #view .ma-v259-error{padding:20px;color:#ffacb0;font-weight:750}
body.ma-v235-shell #view .ma-v259-panel{display:flex;flex-direction:column;gap:0;padding:14px 15px!important}
body.ma-v235-shell #view .ma-v259-panel-group{border-bottom:1px solid #1d7c9b;padding:0 0 15px;margin:0 0 15px}
body.ma-v235-shell #view .ma-v259-panel-group h3{display:flex;align-items:center;gap:10px;margin:0 0 10px!important;font-size:15px;color:#effaff!important}
body.ma-v235-shell #view .ma-v259-num{display:inline-flex;width:27px;height:27px;flex:0 0 27px;align-items:center;justify-content:center;border:1px solid #29dbed;border-radius:9px;background:#06425b;color:#f1fbff;font-size:14px;font-weight:850}
body.ma-v235-shell #view .ma-v259-hint{font-size:11px;color:#9bcddc;line-height:1.45;margin:2px 0 10px}
body.ma-v235-shell #view .ma-v259-search-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}
body.ma-v235-shell #view .ma-v259-panel label{display:block;min-width:0;margin:0 0 10px;font-size:12px;color:#d4f2ff!important;font-weight:750}
body.ma-v235-shell #view .ma-v259-panel :is(input,select,textarea){display:block;width:100%;max-width:100%;min-height:42px;margin:5px 0 0;background:#08293f!important;color:#f1fbff!important;border:1px solid #2a7e9f!important;border-radius:9px!important;padding:9px 11px!important;font-size:13px;font-weight:500}
body.ma-v235-shell #view .ma-v259-panel input::placeholder,body.ma-v235-shell #view .ma-v259-panel textarea::placeholder{color:#87a6b6!important;opacity:1}
body.ma-v235-shell #view .ma-v259-panel textarea{min-height:104px!important;resize:vertical;line-height:1.45}
body.ma-v235-shell #view .ma-v259-clear{display:flex;align-items:center;position:relative;min-width:0}
body.ma-v235-shell #view .ma-v259-clear input{padding-right:39px!important}
body.ma-v235-shell #view .ma-v259-clear button{position:absolute;right:3px;top:8px;width:31px!important;height:32px!important;min-height:32px!important;border-radius:8px!important;padding:0!important;display:flex;align-items:center;justify-content:center;background:#19435d!important;border:1px solid #3a89a8!important;color:#fff!important;font-size:12px!important}
body.ma-v235-shell #view .ma-v259-customer-status{min-height:25px;margin:0;font-size:11px;color:#f2d39b}
body.ma-v235-shell #view .ma-v259-customer-status.ok{color:#98edca}
body.ma-v235-shell #view .ma-v259-duration{display:flex;align-items:center;justify-content:space-between;gap:5px;min-width:0;padding:11px 9px;background:#06283d;border:1px solid #168cb5;border-radius:12px}
body.ma-v235-shell #view .ma-v259-duration>div{min-width:0;display:flex;flex-direction:column;gap:4px;padding:2px}
body.ma-v235-shell #view .ma-v259-duration strong{display:block;font-size:18px;line-height:1.15;color:#fff;white-space:nowrap}
body.ma-v235-shell #view .ma-v259-duration small{font-size:10px;line-height:1.3;color:#a5d5e8}
body.ma-v235-shell #view .ma-v259-duration>b{font-size:18px;color:#54e9fa}
body.ma-v235-shell #view .ma-v259-duration .ma-v259-duration-total{padding:8px 7px;border:1px solid #23d7f0;background:#064864;border-radius:9px}
body.ma-v235-shell #view .ma-v259-time-summary{padding:8px 0;margin:5px 0!important;font-size:11px;line-height:1.5;color:#d2effb}
body.ma-v235-shell #view .ma-v259-workorder{margin:0 0 11px;padding:8px 10px;background:#133d50;border-radius:9px;color:#b7f7e6;font-size:11px;line-height:1.4}
body.ma-v235-shell #view .ma-v259-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto}
body.ma-v235-shell #view .ma-v259-actions button{flex:1 1 auto;white-space:normal;min-height:40px;padding:9px 11px!important;font-size:11px!important}
body.ma-v235-shell #view #maV259Save{background:linear-gradient(110deg,#03a69e,#02c2ce)!important;color:#fff!important;font-weight:800!important;border-color:#35eef8!important}
body.ma-v235-shell #view #maV259Save:disabled{opacity:.42!important;cursor:not-allowed!important}
@media(max-width:1100px){body.ma-v235-shell #view .ma-v259-layout{grid-template-columns:1fr!important}body.ma-v235-shell #view .ma-v259-search-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.ma-v235-shell #view .ma-v259-viewport{max-height:510px}}
@media(max-width:600px){body.ma-v235-shell #view .ma-v259-lifts{grid-template-columns:1fr!important}body.ma-v235-shell #view .ma-v259-search-row{grid-template-columns:1fr!important}body.ma-v235-shell #view .ma-v259-duration strong{font-size:14px}body.ma-v235-shell #view .ma-v259-viewport{max-height:400px}}
/* Eigenständiger, heller Weißmodus; keine dunklen Restflächen in der Bestandskundenmaske. */
html[data-skin="classic"] body.ma-v235-shell #view .ma-v259-editor{color:#18384d!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v259-cal,html[data-skin="classic"] body.ma-v235-shell #view .ma-v259-panel{background:linear-gradient(#f7fafd,#e8f0f5)!important;border-color:#a8ccd9!important;color:#14364e!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v259-header :is(h2,p),html[data-skin="classic"] body.ma-v235-shell #view .ma-v259-cal-head :is(h3,small),html[data-skin="classic"] body.ma-v235-shell #view .ma-v259-panel-group h3,html[data-skin="classic"] body.ma-v235-shell #view .ma-v259-panel label{color:#153a54!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v259-dates input,html[data-skin="classic"] body.ma-v235-shell #view .ma-v259-panel :is(input,select,textarea){background:#fff!important;color:#173b55!important;border-color:#a1bece!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v259-panel :is(input,textarea)::placeholder{color:#66849b!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v259-instruction,html[data-skin="classic"] body.ma-v235-shell #view .ma-v259-feedback,html[data-skin="classic"] body.ma-v235-shell #view .ma-v259-duration,html[data-skin="classic"] body.ma-v235-shell #view .ma-v259-workorder{background:#e4f1f7!important;color:#23475c!important;border-color:#b1d0de!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v259-instruction b{color:#08718c!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v259-duration strong,html[data-skin="classic"] body.ma-v235-shell #view .ma-v259-duration-total strong{color:#173952!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v259-duration small,html[data-skin="classic"] body.ma-v235-shell #view .ma-v259-time-summary,html[data-skin="classic"] body.ma-v235-shell #view .ma-v259-hint{color:#385e74!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v259-duration .ma-v259-duration-total{background:#d4eaf5!important;border-color:#65a7be!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v259-num{background:#def5f8!important;color:#175874!important;border-color:#3eacc4!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v259-lane>.planner-slot:not(:disabled){background:#eef4f9!important;color:#19435b!important;border-color:#bed0db!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v259-lane>.planner-slot:nth-child(even):not(:disabled){background:#e5eff6!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v259-lane>.planner-slot:disabled{background:#cddae3!important;color:#5a7080!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v259-lane>.planner-slot.ma-v259-selected:not(:disabled),html[data-skin="classic"] body.ma-v235-shell #view .ma-v259-lane>.planner-slot.ma-v259-first:not(:disabled){background:#087ea2!important;color:#fff!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v259-lane>.planner-slot.ma-v259-buffer:not(:disabled){background:#b07517!important;color:#fff!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v259-customer-status.ok{color:#16774e!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v259-customer-status:not(.ok){color:#865923!important}
/* Kontrast in Terminblöcken auch im hellen Theme ausdrücklich beibehalten. */
html[data-skin="classic"] body.ma-v235-shell #view .ma-v259-lane>.planner-event,html[data-skin="classic"] body.ma-v235-shell #view .ma-v259-lane>.planner-event :is(strong,span,small){color:#fff7ee!important;text-shadow:0 1px 2px rgba(0,0,0,.5)!important}
/* Überschrift wieder wie in der freigegebenen Bildvorschau untereinander. */
body.ma-v235-shell #view .ma-v259-header{display:block!important}
body.ma-v235-shell #view .ma-v259-header h2,body.ma-v235-shell #view .ma-v259-header p{display:block!important;width:auto!important}

/* V026.0 – Rechnungen & Entwürfe: Badge rechts wie die übrigen Meldungen.
   Überschreibt gezielt eine ältere margin:0!important-Regel mit höherer Spezifität.
   Nur Darstellung; die bestehende Anzahl-/Klicklogik bleibt unverändert. */
html body.ma-v235-shell #maV254NoticeDock #maV16TopAlerts #maNotificationDock #maV18InvoiceBell .ma-v18-count {
  margin-left:auto!important;
  margin-right:0!important;
  flex:0 0 auto!important;
}

/* ==============================================================
   V026.2 – beide Terminersteller: kompakt, interne Buehnen-Scrolls
   und unabhängige Dark-/Light-Mode-Farben.
   ============================================================= */
body.ma-v235-shell #view .ma-v262-new-customer{max-width:1650px!important;width:100%;margin:0 auto!important}
body.ma-v235-shell #view .ma-v262-new-customer>.ma-v209-callout{display:none!important}
body.ma-v235-shell #view .ma-v262-new-customer .ma-v209-form{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.12fr)!important;gap:11px!important;align-items:start!important}
body.ma-v235-shell #view .ma-v262-new-customer .ma-v209-form>.ma-v262-appointment-card{grid-column:1/-1!important;width:100%;margin:0!important}
body.ma-v235-shell #view .ma-v262-new-customer :is(.ma-v262-customer-card,.ma-v262-vehicle-card){min-width:0!important;min-height:0!important;padding:11px 13px!important;margin:0!important;border-radius:13px!important}
body.ma-v235-shell #view .ma-v262-new-customer :is(.ma-v262-customer-card,.ma-v262-vehicle-card)>h3{font-size:15px!important;line-height:1.3!important;margin:0 0 9px!important;padding-bottom:7px!important;border-bottom:1px solid #147c9b}
body.ma-v235-shell #view .ma-v262-customer-card>.grid{display:grid!important;grid-template-columns:1fr!important;gap:5px!important}
body.ma-v235-shell #view .ma-v262-customer-card>.grid>label{display:grid!important;grid-template-columns:minmax(135px,34%) minmax(0,1fr)!important;align-items:center!important;column-gap:10px!important;min-width:0!important;margin:0!important;font-size:11px!important;line-height:1.3!important}
body.ma-v235-shell #view .ma-v262-vehicle-card>.grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;column-gap:12px!important;row-gap:8px!important}
body.ma-v235-shell #view .ma-v262-vehicle-card>.grid>label{display:grid!important;grid-template-columns:minmax(82px,.88fr) minmax(0,1.25fr)!important;align-items:center!important;gap:6px!important;margin:0!important;min-width:0!important;font-size:11px!important}
body.ma-v235-shell #view .ma-v262-new-customer :is(.ma-v262-customer-card,.ma-v262-vehicle-card) input:not([type=file]){min-width:0!important;width:100%!important;max-width:100%!important;margin:0!important;min-height:31px!important;height:31px!important;padding:5px 9px!important;font-size:12px!important}
body.ma-v235-shell #view .ma-v262-new-customer .ma-v249-compact-scan{margin-top:9px!important;padding:9px 10px!important}
body.ma-v235-shell #view .ma-v262-new-customer .ma-v249-compact-scan h3{font-size:13px!important;margin:0 0 3px!important}
body.ma-v235-shell #view .ma-v262-new-customer .ma-v249-compact-scan p{font-size:10px!important;margin:0 0 5px!important}
body.ma-v235-shell #view .ma-v262-new-customer .ma-v249-compact-scan input[type=file]{min-height:32px!important;padding:5px!important}
body.ma-v235-shell #view .ma-v262-new-customer .ma-v249-compact-scan .ma-v221-scan-actions button{min-height:32px!important;padding:6px 9px!important;font-size:11px!important}
body.ma-v235-shell #view .ma-v262-appointment-card{padding:12px!important;border:1px solid #14769b!important;background:linear-gradient(160deg,#07263d,#031b30)!important}
body.ma-v235-shell #view .ma-v262-appointment-card>:is(h3,p){margin:0 0 7px!important}
body.ma-v235-shell #view .ma-v262-appointment-card>h3{font-size:16px!important}
body.ma-v235-shell #view .ma-v262-appointment-card>p{font-size:11px!important;color:#a9d9e7!important;line-height:1.5}
body.ma-v235-shell #view .ma-v262-appointment-card .ma-v241-booking-layout{display:grid!important;grid-template-columns:minmax(0,1.64fr) minmax(305px,.91fr)!important;gap:12px!important;margin:8px 0 0!important;align-items:start!important}
body.ma-v235-shell #view .ma-v262-new-customer .ma-v241-booking-calendar{min-width:0!important;margin:0!important}
body.ma-v235-shell #view .ma-v262-new-customer .ma-v210-planner{padding:0!important;margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
body.ma-v235-shell #view .ma-v262-new-customer .ma-v210-planner-head{gap:6px!important;margin:0 0 6px!important;align-items:center!important}
body.ma-v235-shell #view .ma-v262-new-customer .ma-v210-planner-head h3{font-size:14px!important;margin:0 0 2px!important}
body.ma-v235-shell #view .ma-v262-new-customer .ma-v210-planner-head small{font-size:10px!important;color:#a7d3e5!important}
body.ma-v235-shell #view .ma-v262-new-customer .ma-v210-planner-head :is(button,input){min-height:31px!important;height:31px!important;margin:0!important;padding:5px 8px!important;font-size:11px!important}
body.ma-v235-shell #view .ma-v262-new-customer .ma-v210-planner-head input[type=date]{min-width:130px!important;width:145px!important}
body.ma-v235-shell #view .ma-v262-new-customer .ma-v210-planner-status{min-height:35px!important;margin:6px 0!important;padding:7px 9px!important;font-size:11px!important;line-height:1.4!important}
body.ma-v235-shell #view .ma-v262-new-customer .ma-v210-planner-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
body.ma-v235-shell #view .ma-v262-new-customer .ma-v210-planner-grid>.planner-lift{min-width:0!important;border:1px solid #256f90!important;border-radius:11px!important;overflow:hidden!important;background:#112d43!important}
body.ma-v235-shell #view .ma-v262-new-customer .planner-lift-head{height:39px!important;min-height:39px!important;padding:7px 10px!important;font-size:12px!important;color:#fff!important}
body.ma-v235-shell #view .ma-v262-new-customer .planner-lift-head span{font-size:10px!important}
body.ma-v235-shell #view .ma-v262-viewport{height:clamp(290px,38dvh,390px)!important;max-height:390px!important;min-height:290px!important;overflow-y:auto!important;overflow-x:hidden!important;scrollbar-width:thin;scrollbar-color:#2789aa #0c2940;overscroll-behavior-y:contain}
body.ma-v235-shell #view .ma-v262-viewport>.planner-lane{height:1456px!important;min-height:1456px!important;position:relative!important}
body.ma-v235-shell #view .ma-v262-viewport>.planner-lane>.planner-slot{height:28px!important;min-height:28px!important;max-height:28px!important;margin:0!important;border-radius:0!important;font-size:11px!important;line-height:16px!important;padding:4px 7px!important}
body.ma-v235-shell #view .ma-v262-viewport>.planner-lane>.planner-event{z-index:2!important;left:57px!important;width:calc(100% - 61px)!important;right:4px!important;background:#785232!important;color:#fff!important;border-color:#e7b570!important;pointer-events:none!important;overflow:hidden!important}
body.ma-v235-shell #view .ma-v262-viewport .planner-event :is(strong,span,small){color:#fff!important;font-size:10px!important;line-height:1.2!important}
body.ma-v235-shell #view .ma-v262-viewport .planner-slot.ma-v262-start:not(:disabled){background:#078cae!important;color:#fff!important;font-weight:800!important;outline:1px solid #7af1fa!important;outline-offset:-1px}
body.ma-v235-shell #view .ma-v262-viewport .planner-slot.ma-v262-work:not(:disabled){background:#086f91!important;color:#fff!important}
body.ma-v235-shell #view .ma-v262-viewport .planner-slot.ma-v262-buffer:not(:disabled){background:#a56b20!important;color:#fff!important;font-weight:800!important}
body.ma-v235-shell #view .ma-v262-boundary{padding:5px 9px;font-size:11px;font-weight:800;color:#a1d5e5;background:#10374e}
body.ma-v235-shell #view .ma-v262-new-customer .ma-v233-agenda{margin-top:8px!important;max-height:96px!important;overflow-y:auto!important;font-size:11px!important}
body.ma-v235-shell #view .ma-v262-new-customer .ma-v241-booking-details{display:flex!important;flex-direction:column!important;gap:10px!important;min-width:0!important;border:1px solid #147a9f!important;border-radius:13px!important;background:#062238!important;padding:12px!important}
body.ma-v235-shell #view .ma-v262-new-customer .ma-v245-choice-panel{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0!important;min-width:0!important}
body.ma-v235-shell #view .ma-v262-new-customer .ma-v262-internal{display:none!important}
body.ma-v235-shell #view .ma-v262-new-customer .ma-v262-catalog-field{display:block!important;font-size:12px!important;font-weight:800!important;color:#d9f4ff!important;margin:0 0 13px!important}
body.ma-v235-shell #view .ma-v262-new-customer .ma-v262-catalog-field span{display:block;margin:0 0 6px!important}
body.ma-v235-shell #view .ma-v262-new-customer .ma-v262-catalog-field select{display:block!important;width:100%!important;min-height:39px!important;font-size:12px!important;padding:8px 10px!important;margin:0!important;background:#10344b!important;color:#f4fbff!important;border:1px solid #298eb0!important;border-radius:9px!important}
body.ma-v235-shell #view .ma-v262-new-customer .ma-v262-work-description{display:block!important;font-size:12px!important;color:#d9f4ff!important;font-weight:800!important;margin:0 0 11px!important}
body.ma-v235-shell #view .ma-v262-new-customer .ma-v262-work-description textarea{display:block!important;width:100%!important;min-height:84px!important;max-height:120px!important;resize:vertical!important;margin:7px 0 0!important;background:#0d3046!important;color:#f0fbff!important;border:1px solid #2986a7!important;border-radius:10px!important;padding:9px!important;font-size:12px!important;font-weight:500!important}
body.ma-v235-shell #view .ma-v262-buffer-summary{display:flex!important;flex-direction:column!important;gap:6px!important;padding:12px!important;border:1px solid #179cb6!important;border-radius:11px!important;background:#08364e!important;color:#d6f4fc!important;font-size:11px!important;line-height:1.45!important}
body.ma-v235-shell #view .ma-v262-buffer-summary b{font-size:13px!important;color:#80effa!important}
body.ma-v235-shell #view .ma-v262-actions{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr)!important;gap:8px!important;margin-top:6px!important}
body.ma-v235-shell #view .ma-v262-actions button{min-height:39px!important;width:100%!important;white-space:normal!important;padding:7px 8px!important;font-size:11px!important;margin:0!important}
body.ma-v235-shell #view .ma-v262-actions button.primary:not(:disabled){background:#04aeb9!important;border-color:#27e6e6!important;color:#062639!important;font-weight:900!important}
body.ma-v235-shell #view .ma-v262-actions button:disabled{opacity:.55!important;cursor:not-allowed!important}
body.ma-v235-shell #view .ma-v262-new-customer .ma-v209-wizard-actions{margin:6px 0 0!important;min-height:0!important;font-size:11px!important}

/* Der Bestandskunden-Kalender ist bereits intern scrollbar – nun die gleiche
   kompakte sichtbare Hoehe und die gleiche Scrollbar wie bei Neukunden. */
body.ma-v235-shell #view .ma-v259-viewport{height:clamp(290px,38dvh,390px)!important;min-height:290px!important;max-height:390px!important;overflow-y:auto!important;scrollbar-color:#2789aa #0c2940!important}
body.ma-v235-shell #view .ma-v259-panel-group{margin-bottom:10px!important;padding-bottom:10px!important}
body.ma-v235-shell #view .ma-v259-panel{gap:0!important}
body.ma-v235-shell #view .ma-v259-panel textarea{min-height:73px!important;max-height:120px!important}
body.ma-v235-shell #view .ma-v259-panel .ma-v259-duration{padding:8px!important}
body.ma-v235-shell #view .ma-v259-panel .ma-v259-duration strong{font-size:15px!important}
body.ma-v235-shell #view .ma-v259-panel .ma-v259-actions{margin-top:9px!important}

/* Sorgfaeltiger Hellmodus: alle neuen Panels hell, Texte dunkel. */
html[data-skin="classic"] body.ma-v235-shell #view .ma-v262-appointment-card,
html[data-skin="classic"] body.ma-v235-shell #view .ma-v262-new-customer .ma-v241-booking-details{
  background:linear-gradient(#fbfdff,#eef4f8)!important;border-color:#afcbd9!important;color:#173951!important;
}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v262-appointment-card>p,
html[data-skin="classic"] body.ma-v235-shell #view .ma-v262-new-customer .ma-v210-planner-head small,
html[data-skin="classic"] body.ma-v235-shell #view .ma-v262-new-customer .ma-v262-catalog-field,
html[data-skin="classic"] body.ma-v235-shell #view .ma-v262-new-customer .ma-v262-work-description{color:#23455c!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v262-new-customer .ma-v262-catalog-field select,
html[data-skin="classic"] body.ma-v235-shell #view .ma-v262-new-customer .ma-v262-work-description textarea{background:#fff!important;color:#193a50!important;border-color:#a4c4d7!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v262-buffer-summary{background:#e3f1f7!important;color:#27526b!important;border-color:#8fc5d8!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v262-buffer-summary b{color:#126e89!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v262-new-customer .ma-v210-planner{background:transparent!important;box-shadow:none!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v262-new-customer .ma-v210-planner-grid>.planner-lift{background:#f3f8fc!important;border-color:#acc6d7!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v262-viewport>.planner-lane>.planner-slot:not(:disabled){background:#edf4f9!important;color:#1c4057!important;border-color:#c9dce7!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v262-viewport>.planner-lane>.planner-slot:nth-child(even):not(:disabled){background:#e2eef6!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v262-viewport>.planner-lane>.planner-slot:disabled{background:#dce6ee!important;color:#647c8e!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v262-viewport>.planner-lane>.planner-slot.ma-v262-start:not(:disabled),
html[data-skin="classic"] body.ma-v235-shell #view .ma-v262-viewport>.planner-lane>.planner-slot.ma-v262-work:not(:disabled){background:#0786ad!important;color:#fff!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v262-viewport>.planner-lane>.planner-slot.ma-v262-buffer:not(:disabled){background:#ad791b!important;color:#fff!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v262-boundary{background:#d5e9f3!important;color:#234d68!important}

@media(max-width:1280px){
  body.ma-v235-shell #view .ma-v262-appointment-card .ma-v241-booking-layout{grid-template-columns:minmax(0,1.36fr) minmax(280px,.91fr)!important}
}
@media(max-width:1020px){
  body.ma-v235-shell #view .ma-v262-new-customer .ma-v209-form{grid-template-columns:1fr!important}
  body.ma-v235-shell #view .ma-v262-appointment-card .ma-v241-booking-layout{grid-template-columns:1fr!important}
  body.ma-v235-shell #view .ma-v259-layout{grid-template-columns:1fr!important}
}
@media(max-width:600px){
  body.ma-v235-shell #view .ma-v262-vehicle-card>.grid{grid-template-columns:1fr!important}
  body.ma-v235-shell #view .ma-v262-customer-card>.grid>label{grid-template-columns:minmax(92px,38%) minmax(0,1fr)!important}
  body.ma-v235-shell #view .ma-v262-new-customer .ma-v210-planner-grid{grid-template-columns:1fr!important}
  body.ma-v235-shell #view .ma-v262-viewport{height:280px!important;min-height:280px!important}
}

/* V026.2 Nachpruefung: Legacy-Layoutregeln fuer Label und Berechnung ueberstimmen. */
body.ma-v235-shell #view .ma-v262-new-customer .ma-v262-customer-card>.grid>label,
body.ma-v235-shell #view .ma-v262-new-customer .ma-v262-vehicle-card>.grid>label{display:grid!important;align-items:center!important;justify-content:stretch!important;text-align:left!important}
body.ma-v235-shell #view .ma-v262-new-customer #maV238Breakdown.ma-v262-internal{display:none!important;visibility:hidden!important;height:0!important;margin:0!important;padding:0!important;border:0!important}
body.ma-v235-shell #view .ma-v262-agenda-toggle{margin:7px 0 0!important;border:1px solid #226b8a!important;border-radius:9px!important;background:#092940!important;color:#baddeb!important;font-size:11px!important}
body.ma-v235-shell #view .ma-v262-agenda-toggle>summary{cursor:pointer;min-height:28px!important;padding:7px 9px!important;font-weight:750!important;list-style-position:inside}
body.ma-v235-shell #view .ma-v262-agenda-toggle>.ma-v233-agenda{max-height:140px!important;overflow:auto!important;margin:0 8px 9px!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v262-agenda-toggle{background:#e5f2f9!important;color:#234960!important;border-color:#afcddd!important}

/* V026.2 finales Layout: alte globale label-Mindesthoehen (90px) aushebeln. */
body.ma-v235-shell #view .ma-v262-new-customer .ma-v262-customer-card>.grid>label,
body.ma-v235-shell #view .ma-v262-new-customer .ma-v262-vehicle-card>.grid>label{
  min-height:32px!important;height:auto!important;max-height:none!important;
  padding:0!important;margin:0!important;align-self:center!important;
}
body.ma-v235-shell #view .ma-v262-new-customer .ma-v262-customer-card>.grid,
body.ma-v235-shell #view .ma-v262-new-customer .ma-v262-vehicle-card>.grid{
  grid-auto-rows:minmax(32px,auto)!important;align-content:start!important;
}
/* V026.2: Kontrast-Korrekturen auf dem hellen Skin. */
html[data-skin="classic"] body.ma-v235-shell #nav button:not(.primary){color:#effaff!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v262-new-customer #maV221ScanStatus{
  background:#e3f1f8!important;color:#24516b!important;border-color:#b2d1e1!important;
}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v262-new-customer #maV221ScanStatus.saved{
  background:#e0f7eb!important;color:#116540!important;border-color:#94d5b3!important;
}

/* V026.3 – Gemeinsame Mehrarbeitsfreigabe fuer beide Terminmasken und Auftrag. */
body.ma-v235-shell #view .ma-v263-approval{
  display:grid!important;grid-template-columns:1fr!important;gap:5px!important;
  margin:0!important;padding:8px 10px 9px!important;min-width:0!important;
  background:#0a2a41!important;border:1px solid #2c7998!important;border-radius:11px!important;
}
body.ma-v235-shell #view .ma-v263-approval legend{
  font-size:11px!important;line-height:1.3!important;font-weight:800!important;
  color:#c5eefa!important;padding:0 5px!important;
}
body.ma-v235-shell #view .ma-v263-approval .ma-v263-approval-option{
  display:flex!important;flex-direction:row!important;align-items:center!important;gap:9px!important;
  width:100%!important;min-height:31px!important;height:auto!important;padding:5px 9px!important;
  margin:0!important;border:1px solid #235976!important;border-radius:7px!important;
  background:#10364e!important;color:#e9faff!important;font-size:12px!important;
  line-height:1.3!important;font-weight:650!important;cursor:pointer!important;
}
body.ma-v235-shell #view .ma-v263-approval-option:has(input:checked){
  border-color:#24e4dc!important;background:#075362!important;color:#fff!important;
  box-shadow:inset 3px 0 #36e6de!important;
}
body.ma-v235-shell #view .ma-v263-approval-option input[type=radio]{
  appearance:auto!important;display:inline-block!important;flex:0 0 auto!important;width:16px!important;
  height:16px!important;min-height:16px!important;margin:0!important;padding:0!important;
  accent-color:#18d7d0!important;cursor:pointer!important;
}
body.ma-v235-shell #view .ma-v263-approval-option span{display:block!important;flex:1!important;min-width:0!important}
body.ma-v235-shell #view .ma-v263-approval-hint{font-size:10px!important;color:#b1d4e5!important;line-height:1.4!important;margin:2px 0 0!important}
body.ma-v235-shell #view .ma-v263-new-customer-approval{margin:3px 0!important}
body.ma-v235-shell #view .ma-v263-new-customer-approval h4{font-size:12px!important;margin:0 0 7px!important;color:#e6faff!important}
body.ma-v235-shell #view .ma-v263-work-approval{margin-top:6px!important}
body.ma-v235-shell #view .ma-v263-work-approval .ma-v263-approval{margin-top:5px!important}
body.ma-v235-shell #view .ma-v263-legacy-note{border:1px solid #a77823!important;background:#563c17!important;padding:8px!important;border-radius:7px!important;color:#ffe8ac!important;font-size:11px!important;margin:8px 0 0!important}
body.ma-v235-shell #view .ma-v263-legacy-note[hidden]{display:none!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v263-approval{background:#edf5fa!important;border-color:#adc9d9!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v263-approval legend{color:#214b63!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v263-approval .ma-v263-approval-option{
  background:#fff!important;border-color:#bdcfdd!important;color:#243d50!important;
}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v263-approval-option:has(input:checked){
  background:#d5f4f2!important;border-color:#168d91!important;color:#084b55!important;
  box-shadow:inset 3px 0 #19b3ad!important;
}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v263-approval-hint{color:#466477!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v263-new-customer-approval h4{color:#1b425e!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v263-legacy-note{background:#fff4d8!important;color:#704610!important;border-color:#e1b760!important}
/* Die Abschnittsüberschrift steht bereits über dem Auswahlfeld: nicht doppeln. */
body.ma-v235-shell #view :is(.ma-v263-work-approval,.ma-v263-new-customer-approval) .ma-v263-approval legend{display:none!important}


/* V026.4 – Büro-&-Verwaltung-Dropdown: nach oben statt aus dem Bildschirm.
   Diese Regeln überstimmen bewusst die älteren V024.5-Flyout-Positionen,
   einschließlich des mobilen position:absolute-Overrides. */
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools .ma-v11-menu-dropdown{
  position:fixed!important;
  inset:auto!important;
  top:var(--ma264-menu-top,12px)!important;
  bottom:auto!important;
  left:var(--ma264-menu-left,calc(var(--ma235-side) + 8px))!important;
  right:auto!important;
  width:var(--ma264-menu-width,250px)!important;
  min-width:0!important;
  max-width:calc(100vw - 20px)!important;
  max-height:var(--ma264-menu-max-height,calc(100dvh - 20px))!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
  margin:0!important;
  z-index:450!important;
  scrollbar-width:thin;
}
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools .ma-v11-menu-dropdown[hidden]{display:none!important}
/* Mobil: die geöffnete Sidebar darf keinen transformierten Fixed-Containing-Block
   bilden, sonst wird das Untermenü relativ zur Sidebar statt zum Bildschirm
   positioniert. Geschlossen bleibt die bisherige Schiebeanimation erhalten. */
@media(max-width:760px){
  body.ma-v235-shell.ma-v235-mobile-open #maV235Sidebar{transform:none!important}
}

/* =======================================================================
   V026.5 – Eindeutige Kalenderwahl: zwei Klicks = reine Arbeitszeit,
   unmittelbar danach 15 Minuten gelber Cooldown. Beide Terminersteller.
   ======================================================================= */
body.ma-v235-shell #view .ma-v259-lane>.planner-slot.ma-v259-selected:not(.ma-v259-buffer):not(:disabled),
body.ma-v235-shell #view .ma-v262-viewport .planner-slot:is(.ma-v262-start,.ma-v262-work):not(:disabled){
  background:#087fa7!important;border-color:#37cce7!important;color:#fff!important;
  box-shadow:inset 3px 0 #51e9fb!important;font-weight:750!important;
}
body.ma-v235-shell #view .ma-v259-lane>.planner-slot.ma-v259-buffer:not(:disabled),
body.ma-v235-shell #view .ma-v262-viewport .planner-slot.ma-v262-buffer:not(:disabled){
  background:#b48122!important;border-color:#f8d070!important;color:#fff!important;
  box-shadow:inset 3px 0 #ffe591!important;font-weight:850!important;
}
body.ma-v235-shell #view .ma-v259-lane>.planner-slot.ma-v259-selected:not(:disabled) span:last-child,
body.ma-v235-shell #view .ma-v262-viewport .planner-slot:is(.ma-v262-start,.ma-v262-work,.ma-v262-buffer) span:last-child{
  color:#fff!important;font-weight:800!important;text-align:right!important;
}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v259-lane>.planner-slot.ma-v259-buffer:not(:disabled),
html[data-skin="classic"] body.ma-v235-shell #view .ma-v262-viewport .planner-slot.ma-v262-buffer:not(:disabled){
  background:#b58324!important;color:#fff!important;border-color:#e8ae42!important;
}

/* Suchbare Leistungsliste: maximal zehn Positionen gleichzeitig sichtbar.
   Das vorhandene native select bleibt für die Buchungslogik im DOM. */
body.ma-v235-shell #view select.ma-v265-native-catalog{display:none!important;visibility:hidden!important;position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;opacity:0!important;pointer-events:none!important}
body.ma-v235-shell #view .ma-v265-catalog-combo{position:relative!important;display:block!important;width:100%!important;min-width:0!important;margin:5px 0 10px!important;color:#e9f9ff!important}
body.ma-v235-shell #view .ma-v265-catalog-input-wrap{position:relative!important;display:block!important}
body.ma-v235-shell #view .ma-v265-catalog-input{
  display:block!important;width:100%!important;min-height:41px!important;
  padding:9px 38px 9px 12px!important;margin:0!important;
  border-radius:9px!important;border:1px solid #2d829e!important;
  background:#092a40!important;color:#f5fdff!important;font-size:13px!important;
  font-weight:500!important;outline-offset:1px!important;
}
body.ma-v235-shell #view .ma-v265-catalog-input:focus{outline:2px solid #16d8ea!important}
body.ma-v235-shell #view .ma-v265-catalog-input::placeholder{color:#9cbdca!important;opacity:1!important}
body.ma-v235-shell #view .ma-v265-catalog-open{
  position:absolute!important;top:4px!important;right:4px!important;bottom:4px!important;
  width:33px!important;height:auto!important;min-height:0!important;margin:0!important;
  padding:0!important;background:#144862!important;color:#d2f6ff!important;
  border:1px solid #337e99!important;border-radius:7px!important;font-size:20px!important;
}
body.ma-v235-shell #view .ma-v265-catalog-list{
  position:absolute!important;left:0!important;top:calc(100% - 22px)!important;right:0!important;
  z-index:950!important;max-height:min(350px,60dvh)!important;overflow-y:auto!important;
  overflow-x:hidden!important;scrollbar-width:thin!important;
  border:1px solid #27a0bf!important;border-radius:10px!important;
  box-shadow:0 14px 38px #000a!important;background:#102d42!important;padding:3px!important;
}
body.ma-v235-shell #view .ma-v265-catalog-list[hidden]{display:none!important}
body.ma-v235-shell #view .ma-v265-catalog-option{
  display:block!important;width:100%!important;min-height:34px!important;height:34px!important;
  border:0!important;border-radius:6px!important;margin:0!important;
  padding:7px 10px!important;text-align:left!important;white-space:nowrap!important;
  overflow:hidden!important;text-overflow:ellipsis!important;font-size:12px!important;
  color:#eaf9ff!important;background:transparent!important;cursor:pointer!important;
}
body.ma-v235-shell #view .ma-v265-catalog-option:hover,
body.ma-v235-shell #view .ma-v265-catalog-option[aria-selected="true"]{background:#085b76!important;color:#fff!important}
body.ma-v235-shell #view .ma-v265-catalog-empty{padding:12px;color:#b6daea;font-size:12px}
body.ma-v235-shell #view .ma-v265-catalog-help{display:block!important;margin:5px 0 0!important;font-size:10px!important;line-height:1.35!important;color:#a4c9dc!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v265-catalog-combo{color:#23485e!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v265-catalog-input{background:#fff!important;color:#173a51!important;border-color:#9dbdd0!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v265-catalog-input::placeholder{color:#627f92!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v265-catalog-open{background:#e5f1f8!important;color:#194d66!important;border-color:#abc7d7!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v265-catalog-list{background:#fff!important;border-color:#9dbed0!important;box-shadow:0 14px 26px #29435d44!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v265-catalog-option{background:#fff!important;color:#214b62!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v265-catalog-option:hover,
html[data-skin="classic"] body.ma-v235-shell #view .ma-v265-catalog-option[aria-selected="true"]{background:#d9f2fa!important;color:#07506d!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v265-catalog-help{color:#4d7182!important}

/* V026.5 – Login vollständig neu gestaltet, ohne Login-Felder oder Auth zu ersetzen. */
body:has(#login.ma-v265-login:not(.hidden)){
  min-height:100dvh!important;
  background:radial-gradient(ellipse at 12% 70%,#0f4059aa,transparent 47%),
    radial-gradient(ellipse at 90% 12%,#09617937,transparent 41%),
    linear-gradient(130deg,#071422,#06111f 67%,#081b2b)!important;
}
body:has(#login.ma-v265-login:not(.hidden)) #maV235Sidebar{display:none!important}
body:has(#login.ma-v265-login:not(.hidden))>header{position:relative;z-index:2}
#login.ma-v265-login{
  display:grid!important;grid-template-columns:minmax(0,1fr) minmax(350px,.88fr)!important;
  gap:30px!important;width:min(1120px,calc(100vw - 38px))!important;
  max-width:1120px!important;min-height:480px!important;margin:clamp(32px,7vh,94px) auto 65px!important;
  border:0!important;background:transparent!important;box-shadow:none!important;
  padding:0!important;overflow:visible!important;transform:none!important;
}
#login.ma-v265-login.hidden{display:none!important}
#login.ma-v265-login .ma-v265-login-brand{
  display:flex;flex-direction:column;justify-content:flex-end;position:relative;isolation:isolate;
  min-height:470px;overflow:hidden;border-radius:24px;border:1px solid #126078;
  background:radial-gradient(circle at 56% 28%,#1e748955,transparent 45%),
    repeating-linear-gradient(90deg,transparent 0 46px,#3689ae14 47px 48px),
    repeating-linear-gradient(0deg,transparent 0 46px,#3689ae14 47px 48px),
    linear-gradient(160deg,#0a2739,#061827 80%);
  box-shadow:inset 0 0 110px #03111d8c,0 18px 50px #0005;
}
#login.ma-v265-login .ma-v265-brand-shimmer{position:absolute;inset:-80px;z-index:-1;background:radial-gradient(ellipse at 65% 28%,#05d0eb26,transparent 45%);filter:blur(18px);pointer-events:none}
#login.ma-v265-login .ma-v265-car-art{position:absolute;top:14%;left:-7%;width:108%;height:52%;display:flex;justify-content:center;align-items:center;color:#41d7ed;opacity:.82;filter:drop-shadow(0 0 22px #05c8df4f);pointer-events:none}
#login.ma-v265-login .ma-v265-car-art svg{width:100%;height:100%;max-height:250px}
#login.ma-v265-login .ma-v265-brand-caption{padding:clamp(24px,4vw,48px);position:relative;background:linear-gradient(0deg,#061526ee,transparent)}
#login.ma-v265-login .ma-v265-brand-kicker{letter-spacing:2.3px;font-size:10px;color:#58e0f1;font-weight:800}
#login.ma-v265-login .ma-v265-brand-caption h2{color:#fff!important;font-size:clamp(28px,3vw,41px)!important;line-height:1.04!important;margin:13px 0 11px!important;letter-spacing:-.8px}
#login.ma-v265-login .ma-v265-brand-caption p{color:#b9d8e9;font-size:13px;max-width:335px;line-height:1.55;margin:0 0 27px}
#login.ma-v265-login .ma-v265-brand-features{display:flex;flex-wrap:wrap;gap:12px;padding-top:18px;border-top:1px solid #2a6c8599}
#login.ma-v265-login .ma-v265-brand-features span{color:#c2eaf5;font-size:12px;font-weight:700}
#login.ma-v265-login .ma-v265-login-card{
  align-self:stretch;display:flex;flex-direction:column;justify-content:center;
  min-height:480px;padding:clamp(25px,4vw,48px)!important;
  border:1px solid #287f9a;border-radius:24px;
  background:linear-gradient(153deg,#102b40f5,#092238f9 75%);
  box-shadow:0 24px 55px #0007,inset 0 1px #59d3e324;
  color:#f1faff!important;
}
#login.ma-v265-login .ma-v265-login-lock{width:58px;height:58px;border:1px solid #35c9df;background:#073b50;color:#3de9f3;border-radius:17px;display:flex;align-items:center;justify-content:center;font-size:31px;box-shadow:0 0 24px #00b8d622;margin-bottom:20px}
#login.ma-v265-login .ma-v265-login-kicker{color:#60d6e7;font-size:10px;font-weight:850;letter-spacing:1.6px;margin:0 0 8px}
#login.ma-v265-login .ma-v265-login-card>h2{color:#fff!important;font-size:clamp(24px,2.5vw,32px)!important;line-height:1.15!important;margin:0 0 8px!important}
#login.ma-v265-login .ma-v265-login-intro{color:#aecbdc;font-size:13px;line-height:1.5;margin:0 0 20px}
#login.ma-v265-login .ma-v265-login-fields{display:flex;flex-direction:column;gap:3px}
#login.ma-v265-login .ma-v265-login-label{color:#d4e9f5!important;font-weight:700;font-size:12px!important;margin:8px 0!important}
#login.ma-v265-login .ma-v265-login-control{display:block;position:relative;margin-top:6px}
#login.ma-v265-login :is(#username,#password){background:#071b2d!important;border:1px solid #397e99!important;border-radius:11px!important;color:#f8ffff!important;min-height:49px!important;padding:12px 14px!important;margin:0!important;width:100%!important;font-size:14px!important;box-shadow:none!important}
#login.ma-v265-login :is(#username,#password):focus{outline:2px solid #22ddea!important;outline-offset:1px!important;border-color:#22ddea!important}
#login.ma-v265-login #password{padding-right:52px!important}
#login.ma-v265-login #maV265TogglePassword{position:absolute;right:5px;top:5px;width:41px;height:39px;border:0;border-radius:8px;background:#123b53;color:#b8e9f1;font-size:23px;display:flex;justify-content:center;align-items:center;line-height:1}
#login.ma-v265-login #refreshLoginList{margin:2px 0 13px!important;padding:6px 0!important;border:0!important;background:transparent!important;color:#83dae6!important;font-size:12px!important;text-align:left;box-shadow:none!important}
#login.ma-v265-login #refreshLoginList:hover{text-decoration:underline}
#login.ma-v265-login #loginBtn{width:100%;min-height:49px;margin:17px 0 0!important;background:linear-gradient(105deg,#05819c,#00b5b9)!important;border:1px solid #1de2db!important;border-radius:11px!important;color:#fff!important;box-shadow:0 8px 22px #00abb133;font-size:15px!important;font-weight:800!important}
#login.ma-v265-login #loginBtn:disabled{opacity:.5!important;cursor:not-allowed!important}
#login.ma-v265-login .ma-v265-login-foot{margin-top:20px!important;padding-top:16px;border-top:1px solid #2b5166;color:#8fb5c9;font-size:11px;text-align:center}
html[data-skin="classic"] body:has(#login.ma-v265-login:not(.hidden)){
  background:radial-gradient(ellipse at 8% 64%,#cbeaf4,transparent 52%),linear-gradient(135deg,#f3f8fc,#e6f0f7)!important;
}
html[data-skin="classic"] #login.ma-v265-login .ma-v265-login-brand{background:repeating-linear-gradient(90deg,transparent 0 46px,#297baf11 47px 48px),repeating-linear-gradient(0deg,transparent 0 46px,#297baf11 47px 48px),linear-gradient(145deg,#d8edf8,#ecf8fc)!important;border-color:#abcddd!important;box-shadow:0 16px 40px #37617d24!important}
html[data-skin="classic"] #login.ma-v265-login .ma-v265-brand-caption{background:linear-gradient(0deg,#e9f5fbf6,transparent)!important}
html[data-skin="classic"] #login.ma-v265-login .ma-v265-brand-caption h2{color:#123d5b!important}
html[data-skin="classic"] #login.ma-v265-login .ma-v265-brand-caption p{color:#416477!important}
html[data-skin="classic"] #login.ma-v265-login .ma-v265-brand-kicker{color:#107d9f!important}
html[data-skin="classic"] #login.ma-v265-login .ma-v265-brand-features{border-color:#afcddd!important}
html[data-skin="classic"] #login.ma-v265-login .ma-v265-brand-features span{color:#235a76!important}
html[data-skin="classic"] #login.ma-v265-login .ma-v265-car-art{color:#1388aa!important}
html[data-skin="classic"] #login.ma-v265-login .ma-v265-login-card{background:linear-gradient(145deg,#fff,#f0f7fb)!important;border-color:#b5cfdd!important;color:#1a4055!important;box-shadow:0 18px 35px #38577523!important}
html[data-skin="classic"] #login.ma-v265-login .ma-v265-login-lock{background:#e5f6fa!important;color:#0a789d!important;border-color:#8ac4da!important}
html[data-skin="classic"] #login.ma-v265-login .ma-v265-login-kicker{color:#1483a0!important}
html[data-skin="classic"] #login.ma-v265-login .ma-v265-login-card>h2{color:#103c57!important}
html[data-skin="classic"] #login.ma-v265-login .ma-v265-login-intro,html[data-skin="classic"] #login.ma-v265-login .ma-v265-login-label{color:#426376!important}
html[data-skin="classic"] #login.ma-v265-login :is(#username,#password){background:#fff!important;color:#153f5a!important;border-color:#a6c5d8!important}
html[data-skin="classic"] #login.ma-v265-login #maV265TogglePassword{background:#e6f2f9!important;color:#12627b!important}
html[data-skin="classic"] #login.ma-v265-login #refreshLoginList{color:#086e91!important}
html[data-skin="classic"] #login.ma-v265-login .ma-v265-login-foot{border-color:#d1e1ea!important;color:#597c8d!important}
@media(max-width:780px){#login.ma-v265-login{grid-template-columns:1fr!important;width:min(540px,calc(100vw - 24px))!important;gap:15px!important;margin:20px auto 35px!important}#login.ma-v265-login .ma-v265-login-brand{min-height:205px!important}#login.ma-v265-login .ma-v265-car-art{top:-16%;left:18%;width:78%;height:120%}#login.ma-v265-login .ma-v265-brand-caption{padding:20px!important}#login.ma-v265-login .ma-v265-brand-caption h2{font-size:24px!important;margin:7px 0!important}#login.ma-v265-login .ma-v265-brand-caption p{margin:0!important}#login.ma-v265-login .ma-v265-brand-features{display:none!important}#login.ma-v265-login .ma-v265-login-card{min-height:0!important;padding:25px!important}}
@media(max-width:460px){#login.ma-v265-login .ma-v265-login-brand{min-height:170px!important}#login.ma-v265-login .ma-v265-car-art{opacity:.4}#login.ma-v265-login .ma-v265-login-card{padding:22px!important}}

/* ========================================================================
   V026.5 – Bildschirmfüllende Terminplanung auf großen Desktop-Bildschirmen.
   Beide Kalender richten sich exakt am unteren Formularkasten aus; die
   07:00–20:00-Zeitachsen scrollen nur INNERHALB der Hebebühnen. Rechte
   Eingabemaske bleibt über einen eigenen Scrollbereich immer erreichbar.
   Bei geringem Platz/hohem Zoom gilt automatisch die normale Seitenansicht.
   ======================================================================== */
@media screen and (min-width:1180px) and (min-height:730px){
  body.ma-v235-shell:has(#view :is(.ma-v262-new-customer,.ma-v259-editor)){
    height:100dvh!important;min-height:0!important;overflow-y:hidden!important;
  }
  body.ma-v235-shell #app:not(.hidden):has(#view :is(.ma-v262-new-customer,.ma-v259-editor)){
    height:100dvh!important;min-height:0!important;max-height:100dvh!important;
    overflow:hidden!important;padding-bottom:9px!important;
  }
  body.ma-v235-shell #app:has(#view :is(.ma-v262-new-customer,.ma-v259-editor)) #view{
    display:block!important;height:100%!important;min-height:0!important;overflow:hidden!important;
  }
  /* Neukunden: obere zwei Formulare, darunter ein flexibel gefüllter Kalender. */
  body.ma-v235-shell #view .ma-v262-new-customer{
    display:flex!important;flex-direction:column!important;min-height:0!important;
    height:100%!important;max-height:100%!important;overflow:hidden!important;
  }
  body.ma-v235-shell #view .ma-v262-new-customer #maV209Back{
    flex:0 0 auto!important;margin:0 0 4px!important;min-height:29px!important;padding:4px 10px!important;
  }
  body.ma-v235-shell #view .ma-v262-new-customer>h2{
    flex:0 0 auto!important;margin:0 0 7px!important;font-size:19px!important;line-height:1.25!important;
  }
  body.ma-v235-shell #view .ma-v262-new-customer #maV209Form{
    display:flex!important;flex-direction:column!important;min-height:0!important;flex:1 1 auto!important;
    margin:0!important;overflow:hidden!important;
  }
  body.ma-v235-shell #view .ma-v262-new-customer .ma-v209-form{
    flex:1 1 auto!important;min-height:0!important;height:100%!important;
    grid-template-rows:max-content minmax(0,1fr)!important;
    align-content:stretch!important;align-items:stretch!important;overflow:hidden!important;
  }
  body.ma-v235-shell #view .ma-v262-new-customer :is(.ma-v262-customer-card,.ma-v262-vehicle-card){
    height:100%!important;max-height:100%!important;overflow-y:auto!important;scrollbar-width:thin;
  }
  body.ma-v235-shell #view .ma-v262-appointment-card{
    display:flex!important;flex-direction:column!important;min-height:0!important;max-height:100%!important;
    overflow:hidden!important;padding:9px 11px!important;
  }
  body.ma-v235-shell #view .ma-v262-appointment-card .ma-v241-booking-layout{
    flex:1 1 auto!important;height:auto!important;min-height:0!important;
    align-items:stretch!important;overflow:hidden!important;margin:5px 0 0!important;
  }
  body.ma-v235-shell #view .ma-v262-appointment-card .ma-v241-booking-calendar{
    height:100%!important;min-height:0!important;max-height:100%!important;overflow:hidden!important;
  }
  body.ma-v235-shell #view .ma-v262-new-customer .ma-v210-planner{
    height:100%!important;min-height:0!important;display:flex!important;flex-direction:column!important;
  }
  body.ma-v235-shell #view .ma-v262-new-customer .ma-v210-planner-grid{
    flex:1 1 auto!important;min-height:0!important;height:auto!important;overflow:hidden!important;
  }
  body.ma-v235-shell #view .ma-v262-new-customer .ma-v210-planner-grid>.planner-lift{
    min-height:0!important;max-height:100%!important;display:flex!important;flex-direction:column!important;
  }
  body.ma-v235-shell #view .ma-v262-viewport{
    flex:1 1 0!important;min-height:0!important;max-height:none!important;height:0!important;
  }
  body.ma-v235-shell #view .ma-v262-new-customer .ma-v241-booking-details{
    min-height:0!important;height:100%!important;max-height:100%!important;
    overflow-y:auto!important;overflow-x:visible!important;overscroll-behavior-y:contain!important;
    scrollbar-color:#2789aa #0c2940;scrollbar-width:thin;
  }
  /* Die Zwischenmeldung bleibt erreichbar, ohne zusätzliche Seitenhöhe. */
  body.ma-v235-shell #view .ma-v262-new-customer .ma-v209-wizard-actions{
    flex:0 0 auto!important;max-height:30px!important;margin:2px 0 0!important;overflow:hidden!important;
  }
  /* Bestandskunden: linke Bühne und rechter Kasten sind gleich hoch. */
  body.ma-v235-shell #view .ma-v259-editor{
    display:flex!important;flex-direction:column!important;min-height:0!important;
    height:100%!important;max-height:100%!important;overflow:hidden!important;
  }
  body.ma-v235-shell #view .ma-v259-header{flex:0 0 auto!important;margin:0 0 8px!important}
  body.ma-v235-shell #view .ma-v259-layout{
    flex:1 1 auto!important;min-height:0!important;height:auto!important;
    align-items:stretch!important;overflow:hidden!important;
  }
  body.ma-v235-shell #view .ma-v259-cal{
    display:flex!important;flex-direction:column!important;min-height:0!important;
    max-height:100%!important;height:100%!important;overflow:hidden!important;
  }
  body.ma-v235-shell #view .ma-v259-lifts{
    flex:1 1 auto!important;min-height:0!important;height:auto!important;overflow:hidden!important;
  }
  body.ma-v235-shell #view .ma-v259-lifts>.planner-lift{
    display:flex!important;flex-direction:column!important;min-height:0!important;max-height:100%!important;
  }
  body.ma-v235-shell #view .ma-v259-viewport{
    flex:1 1 0!important;min-height:0!important;height:0!important;max-height:none!important;
  }
  body.ma-v235-shell #view .ma-v259-panel{
    height:100%!important;max-height:100%!important;min-height:0!important;
    overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior-y:contain!important;
    scrollbar-color:#2789aa #0c2940;scrollbar-width:thin;
  }
}
/* Großzügige Fallsicherung bei hoher Browser-Zoomstufe und mobilen Geräten:
   Niemals die Unterseite abschneiden, sondern normalen Seitenscroll erlauben. */
@media screen and (max-width:1179px),screen and (max-height:729px){
  body.ma-v235-shell:has(#view :is(.ma-v262-new-customer,.ma-v259-editor)){
    height:auto!important;min-height:100dvh!important;overflow-y:auto!important;
  }
}

/* V026.5: Bei niedrigerer Desktop-Auflösung die beiden Stammdatenkarten
   ebenfalls intern scrollen lassen. So bleibt genügend echte Fläche für
   die Bühnenzeitachsen und das Formular, ohne dass die Seite scrollt. */
@media screen and (min-width:1180px) and (min-height:730px){
  body.ma-v235-shell #view .ma-v262-new-customer .ma-v209-form{
    grid-template-rows:clamp(245px,35dvh,340px) minmax(0,1fr)!important;
  }
  body.ma-v235-shell #view .ma-v262-new-customer .ma-v210-planner-head{
    display:flex!important;flex-wrap:wrap!important;align-items:center!important;
    column-gap:6px!important;row-gap:4px!important;
  }
}

/* V026.5 CSS-Konflikt aus altem Formularlayout: dessen height:max-content
   und align-self:start haben die flexiblen Desktop-Zeilen überstimmt. */
@media screen and (min-width:1180px) and (min-height:730px){
  body.ma-v235-shell #view .ma-v262-new-customer .ma-v209-form>section.card.ma-v262-customer-card,
  body.ma-v235-shell #view .ma-v262-new-customer .ma-v209-form>section.card.ma-v262-vehicle-card{
    height:100%!important;min-height:0!important;max-height:100%!important;
    align-self:stretch!important;overflow-y:auto!important;overflow-x:hidden!important;
  }
  body.ma-v235-shell #view .ma-v259-layout>.ma-v259-cal.ma-v210-planner{
    margin:0!important;align-self:stretch!important;
  }
}

/* Feinschliff für 1366×768: Kalender-Toolbar bekommt eine Zeile,
   anstatt kostbare Bühnenhöhe durch umbrechende Datumsfelder zu verlieren. */
@media screen and (min-width:1180px) and (min-height:730px){
  body.ma-v235-shell #view .ma-v262-new-customer .ma-v210-planner-head{
    display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;column-gap:8px!important;row-gap:0!important;
    padding:0!important;margin-bottom:5px!important;
  }
  body.ma-v235-shell #view .ma-v262-new-customer .ma-v210-planner-head>div:first-child{
    min-width:0!important;
  }
  body.ma-v235-shell #view .ma-v262-new-customer .ma-v210-planner-head>div:first-child small{
    display:none!important;
  }
  body.ma-v235-shell #view .ma-v262-new-customer .ma-v210-planner-head .actions{
    display:flex!important;align-items:center!important;justify-content:flex-end!important;
    flex-wrap:nowrap!important;gap:4px!important;min-width:0!important;
  }
  body.ma-v235-shell #view .ma-v262-new-customer .ma-v210-planner-head .actions label{
    display:flex!important;flex-direction:row!important;align-items:center!important;
    white-space:nowrap!important;font-size:0!important;margin:0!important;
  }
  body.ma-v235-shell #view .ma-v262-new-customer .ma-v210-planner-head .actions :is(button,input){
    min-height:29px!important;height:29px!important;max-height:29px!important;
    align-self:center!important;font-size:11px!important;padding:3px 7px!important;
  }
  body.ma-v235-shell #view .ma-v262-new-customer .ma-v210-planner-head #maV210Day{
    min-width:126px!important;width:126px!important;max-width:126px!important;
  }
  body.ma-v235-shell #view .ma-v262-new-customer .ma-v210-planner-status{
    white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
    min-height:29px!important;max-height:29px!important;
    padding:6px 9px!important;margin:4px 0 5px!important;
  }
}
@media screen and (min-width:1180px) and (min-height:730px) and (max-height:849px){
  body.ma-v235-shell #view .ma-v262-new-customer .ma-v209-form{
    grid-template-rows:clamp(220px,30dvh,260px) minmax(0,1fr)!important;
  }
}

/* V026.5: Die zehn Katalogtreffer dürfen nicht vom intern scrollenden
   Terminkasten abgeschnitten werden. Position wird in JS am Fenster gemessen. */
body.ma-v235-shell #view .ma-v265-catalog-list{
  position:fixed!important;right:auto!important;z-index:2000!important;
  overscroll-behavior:contain!important;
}

/* V026.6 – Geklicktes Arbeitsende als eigene Zeile; gelber Cooldown
   genau eine Viertelstunde darunter. Die zusaetzliche Wechselzeit
   bleibt reservierte, nicht abrechenbare Buehnenzeit. */
body.ma-v235-shell #view .ma-v259-lane>.planner-slot.ma-v266-transition:not(:disabled),
body.ma-v235-shell #view .ma-v262-viewport .planner-slot.ma-v266-transition:not(:disabled){
  background:#285b75!important;border-color:#68c9e6!important;color:#f2fbff!important;
  box-shadow:inset 3px 0 #a3e9f5!important;font-weight:800!important;
}
body.ma-v235-shell #view .planner-slot.ma-v266-transition span:last-child{color:#f5fbff!important;font-weight:800!important;text-align:right!important}
html[data-skin="classic"] body.ma-v235-shell #view .planner-slot.ma-v266-transition:not(:disabled){background:#d2e8f1!important;color:#103c52!important;border-color:#63a7c0!important}
html[data-skin="classic"] body.ma-v235-shell #view .planner-slot.ma-v266-transition span:last-child{color:#103c52!important}
/* Original Meisterwerkstatt-Logo statt der bisherigen Auto-Skizze. */
#login.ma-v265-login .ma-v265-login-brand{justify-content:space-between!important}
#login.ma-v265-login .ma-v266-login-logo{
  flex:1 1 auto;min-height:218px;display:flex;position:relative;align-items:center;justify-content:center;
  padding:16px 22px 0;isolation:isolate;overflow:hidden;
}
#login.ma-v265-login .ma-v266-login-logo::before{
  content:'';position:absolute;z-index:-1;width:79%;aspect-ratio:1;border-radius:50%;
  background:radial-gradient(circle,#34ccef50 0%,#0087ca2c 35%,transparent 72%);
  filter:blur(9px);
}
#login.ma-v265-login .ma-v266-login-logo img{
  display:block;object-fit:contain;width:100%;height:auto;max-height:286px;max-width:480px;
  filter:drop-shadow(0 16px 19px #0009) drop-shadow(0 0 12px #1cb9f69a);
}
#login.ma-v265-login .ma-v265-brand-caption{
  padding:12px 33px 28px!important;flex:0 0 auto;
  background:linear-gradient(0deg,#061526f5 10%,#061526c2 63%,transparent)!important;
}
#login.ma-v265-login .ma-v265-brand-caption h2{font-size:clamp(25px,2.5vw,33px)!important;line-height:1.08!important;margin:9px 0 9px!important}
#login.ma-v265-login .ma-v265-brand-caption p{margin-bottom:15px!important}
#login.ma-v265-login .ma-v265-brand-features{padding-top:12px!important}
html[data-skin="classic"] #login.ma-v265-login .ma-v265-brand-caption{background:linear-gradient(0deg,#e9f5fbfa,#e9f5fbc5 70%,transparent)!important}
@media(max-width:780px){
  #login.ma-v265-login .ma-v266-login-logo{min-height:190px;max-height:230px;padding:12px 20px 0}
  #login.ma-v265-login .ma-v266-login-logo img{max-height:205px}
  #login.ma-v265-login .ma-v265-brand-caption{padding:14px 22px 20px!important}
}
@media(max-width:460px){
  #login.ma-v265-login .ma-v266-login-logo{min-height:155px;max-height:190px}
  #login.ma-v265-login .ma-v266-login-logo img{max-height:175px}
}


/* V026.7 – Verwaltungsfarben und Rechnungs-Zuordnung (nach Neon-Overrides). */
/* V020 setzt --ma20-color und data-ma20-palette. Das spaetere V0235-Neon-CSS
   hatte feste Blau-/Cyan-Werte mit !important, weshalb die neue Farbe optisch
   nicht mehr sichtbar war. Hier nur Oberflaechen, keine Druckbelege oder
   Bedeutungsfarben (Fehler, Warnungen, Cooldown, Zahlung). */
html[data-ma20-palette="custom"][data-skin="modern"] body.ma-v235-shell{
  --ma235-bg:color-mix(in srgb,var(--ma20-color) 14%,#061321);
  --ma235-panel:color-mix(in srgb,var(--ma20-color) 21%,#092039);
  --ma235-panel2:color-mix(in srgb,var(--ma20-color) 30%,#0a2b46);
  --ma235-blue:color-mix(in srgb,var(--ma20-color) 75%,#b8e5fa);
  --ma235-line:color-mix(in srgb,var(--ma20-color) 70%,#7fd8e9);
  background:var(--ma235-bg)!important;
}
html[data-ma20-palette="custom"][data-skin="modern"] body.ma-v235-shell #maV235Sidebar{
  background:linear-gradient(160deg,color-mix(in srgb,var(--ma20-color) 22%,#020b16),color-mix(in srgb,var(--ma20-color) 14%,#061321) 58%,#06101e)!important;
  border-right-color:color-mix(in srgb,var(--ma20-color) 68%,#79a9c5)!important;
}
html[data-ma20-palette="custom"][data-skin="modern"] body.ma-v235-shell #maV235Topline,
html[data-ma20-palette="custom"][data-skin="modern"] body.ma-v235-shell #maV16TopAlerts{
  background:color-mix(in srgb,var(--ma20-color) 22%,#071928)!important;
  border-color:color-mix(in srgb,var(--ma20-color) 50%,#154266)!important;
}
html[data-ma20-palette="custom"][data-skin="modern"] body.ma-v235-shell #app:not(.hidden){
  background:radial-gradient(ellipse at 28% -15%,color-mix(in srgb,var(--ma20-color) 35%,#071321),color-mix(in srgb,var(--ma20-color) 10%,#061422) 55%)!important;
}
html[data-ma20-palette="custom"][data-skin="modern"] body.ma-v235-shell .ma-v235-nav-head,
html[data-ma20-palette="custom"][data-skin="modern"] body.ma-v235-shell .ma-v235-brand b{
  color:color-mix(in srgb,var(--ma20-color) 70%,#d1f8ff)!important;
}
html[data-ma20-palette="custom"][data-skin="modern"] body.ma-v235-shell #nav.ma-v235-sidebar-nav>button:not(.primary):not([aria-current="page"]),
html[data-ma20-palette="custom"][data-skin="modern"] body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools .ma-v11-menu-dropdown button:not(.primary),
html[data-ma20-palette="custom"][data-skin="modern"] body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools>.ma-v11-menu>.ma-v11-menu-button:not(.primary){
  background:color-mix(in srgb,var(--ma20-color) 29%,#0b2941)!important;
  border-color:color-mix(in srgb,var(--ma20-color) 55%,#5782a1)!important;
}
/* Spezielle orange, rote, gelbe und violette Aktionsbuttons bleiben unveraendert. */
html[data-ma20-palette="custom"][data-skin="modern"] body.ma-v235-shell #nav.ma-v235-sidebar-nav>button.primary,
html[data-ma20-palette="custom"][data-skin="modern"] body.ma-v235-shell #nav.ma-v235-sidebar-nav>button[aria-current="page"]{
  background:linear-gradient(100deg,color-mix(in srgb,var(--ma20-color) 74%,#061d35),color-mix(in srgb,var(--ma20-color) 80%,#61c6df))!important;
  border-color:color-mix(in srgb,var(--ma20-color) 58%,#cdf5ff)!important;
  box-shadow:0 0 14px color-mix(in srgb,var(--ma20-color) 38%,transparent)!important;
}
html[data-ma20-palette="custom"][data-skin="modern"] body.ma-v235-shell #view .card,
html[data-ma20-palette="custom"][data-skin="modern"] body.ma-v235-shell #view .ma-v241-panel,
html[data-ma20-palette="custom"][data-skin="modern"] body.ma-v235-shell #view .ma-v241-metric,
html[data-ma20-palette="custom"][data-skin="modern"] body.ma-v235-shell #view .ma-v241-appointment,
html[data-ma20-palette="custom"][data-skin="modern"] body.ma-v235-shell #view .ma-v210-planner,
html[data-ma20-palette="custom"][data-skin="modern"] body.ma-v235-shell #view .planner-lift{
  background:linear-gradient(170deg,color-mix(in srgb,var(--ma20-color) 25%,#102a40),color-mix(in srgb,var(--ma20-color) 14%,#061b30))!important;
  border-color:color-mix(in srgb,var(--ma20-color) 45%,#396787)!important;
}
html[data-ma20-palette="custom"][data-skin="modern"] body.ma-v235-shell #view .overview-list-entry{
  background:color-mix(in srgb,var(--ma20-color) 30%,#092a47)!important;
  border-color:color-mix(in srgb,var(--ma20-color) 50%,#407597)!important;
}
html[data-ma20-palette="custom"][data-skin="modern"] body.ma-v235-shell #view input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
html[data-ma20-palette="custom"][data-skin="modern"] body.ma-v235-shell #view select,
html[data-ma20-palette="custom"][data-skin="modern"] body.ma-v235-shell #view textarea{
  background:color-mix(in srgb,var(--ma20-color) 15%,#081b2d)!important;
  border-color:color-mix(in srgb,var(--ma20-color) 48%,#527b9c)!important;
}
/* Rechnungs-Editor und A4-Papier bleiben fuer Lesbarkeit rein hell. */
html[data-ma20-palette="custom"][data-skin="modern"] body.ma-v235-shell #view #maV214InvoiceRoot .v214-panel,
html[data-ma20-palette="custom"][data-skin="modern"] body.ma-v235-shell #view #maV214InvoiceRoot .v214-paper{
  background:#f8fbff!important;color:#17314a!important;
}
html[data-ma20-palette="custom"][data-skin="modern"] body.ma-v235-shell #view #maV214InvoiceRoot :is(input,select,textarea){
  background:#fff!important;color:#17314a!important;border-color:#abc5d9!important;
}
/* Hellmodus erhaelt dezente farbige Konturen und lichte Grautoene statt dunkler Flaechen. */
html[data-ma20-palette="custom"][data-skin="classic"] body.ma-v235-shell #maV235Sidebar{
  background:linear-gradient(180deg,color-mix(in srgb,var(--ma20-color) 10%,#f9fbfe),color-mix(in srgb,var(--ma20-color) 6%,#edf2f7))!important;
  border-right-color:color-mix(in srgb,var(--ma20-color) 35%,#c9d7e2)!important;
}
html[data-ma20-palette="custom"][data-skin="classic"] body.ma-v235-shell #maV235Topline,
html[data-ma20-palette="custom"][data-skin="classic"] body.ma-v235-shell #maV16TopAlerts{
  background:color-mix(in srgb,var(--ma20-color) 7%,#fafcfe)!important;
  color:#18344c!important;
}
html[data-ma20-palette="custom"][data-skin="classic"] body.ma-v235-shell #app:not(.hidden){
  background:linear-gradient(140deg,color-mix(in srgb,var(--ma20-color) 8%,#f6f8fa),#f4f7fb)!important;
}
html[data-ma20-palette="custom"][data-skin="classic"] body.ma-v235-shell #nav.ma-v235-sidebar-nav>button:not(.primary):not([aria-current="page"]){
  background:color-mix(in srgb,var(--ma20-color) 13%,#ffffff)!important;
  border-color:color-mix(in srgb,var(--ma20-color) 28%,#c6d2dd)!important;
  color:#16334b!important;
}
html[data-ma20-palette="custom"][data-skin="classic"] body.ma-v235-shell #nav.ma-v235-sidebar-nav>button.primary,
html[data-ma20-palette="custom"][data-skin="classic"] body.ma-v235-shell #nav.ma-v235-sidebar-nav>button[aria-current="page"]{
  background:color-mix(in srgb,var(--ma20-color) 52%,#d7ecf0)!important;
  border-color:color-mix(in srgb,var(--ma20-color) 54%,#b4c8d2)!important;
  color:#10293b!important;
}
html[data-ma20-palette="custom"][data-skin="classic"] body.ma-v235-shell #view .card,
html[data-ma20-palette="custom"][data-skin="classic"] body.ma-v235-shell #view .ma-v241-panel,
html[data-ma20-palette="custom"][data-skin="classic"] body.ma-v235-shell #view .ma-v241-metric{
  background:color-mix(in srgb,var(--ma20-color) 5%,#fff)!important;
  border-color:color-mix(in srgb,var(--ma20-color) 28%,#d4dce4)!important;
  color:#183149!important;
}
/* Nicht mit den A4-Dokumenten vermischen; Palette wird nie in Druck eingebracht. */
@media print{html[data-ma20-palette="custom"] body.ma-v235-shell #app:not(.hidden){background:white!important}}

/* V026.7: Neue Rechnung, unabhängiger Entwurf und zugeordnetes Kundenfahrzeug. */
body.ma-v235-shell #view #maV214InvoiceRoot .v267-assignment{display:grid;gap:8px;padding:12px;margin:5px 0 9px;border:1px solid #c4d7e5;border-radius:11px;background:#f0f6fb;color:#183752}
body.ma-v235-shell #view #maV214InvoiceRoot .v267-assignment-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
body.ma-v235-shell #view #maV214InvoiceRoot .v267-assignment-head strong{font-size:14px}
body.ma-v235-shell #view #maV214InvoiceRoot .v267-assignment-head small{font-size:11px;color:#55748e}
body.ma-v235-shell #view #maV214InvoiceRoot .v267-pickers{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;margin:0!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v267-pickers>div{display:flex;flex-flow:column;min-width:0;gap:5px}
body.ma-v235-shell #view #maV214InvoiceRoot .v267-pickers [hidden]{display:none!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v267-pickers label{font-weight:800;margin:4px 0 0!important}
body.ma-v235-shell #view #maV214InvoiceRoot .v267-pickers input,
body.ma-v235-shell #view #maV214InvoiceRoot .v267-pickers select{min-width:0;width:100%;height:38px;max-width:100%;box-sizing:border-box}
body.ma-v235-shell #view #maV214InvoiceRoot .v267-selection-summary{margin:0;font-size:12px;line-height:1.5;color:#355672}
body.ma-v235-shell #view #maV214InvoiceRoot .v267-link-note{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:10px;border:1px solid #b6cee1;border-radius:9px;background:#e2eef7;font-size:12px}
body.ma-v235-shell #view #maV214InvoiceRoot .v267-link-note button{padding:7px 10px;background:#176b9b;color:#fff;border:1px solid #8ac5e3;border-radius:7px}
@media(max-width:670px){body.ma-v235-shell #view #maV214InvoiceRoot .v267-pickers{grid-template-columns:1fr!important}}

/* V026.7 – beide Terminersteller folgen der Verwaltungsfarbe, wobei die
   farblich kodierten Arbeits-/Cooldown-Zeitslots bewusst unberuehrt bleiben. */
html[data-ma20-palette="custom"][data-skin="modern"] body.ma-v235-shell #view :is(.ma-v259-cal,.ma-v259-panel,.ma-v262-appointment-card,.ma-v262-customer-card,.ma-v262-vehicle-card),
html[data-ma20-palette="custom"][data-skin="modern"] body.ma-v235-shell #view .ma-v259-duration{
  background:linear-gradient(165deg,color-mix(in srgb,var(--ma20-color) 25%,#082239),color-mix(in srgb,var(--ma20-color) 12%,#031729))!important;
  border-color:color-mix(in srgb,var(--ma20-color) 53%,#467d9a)!important;
}
html[data-ma20-palette="custom"][data-skin="modern"] body.ma-v235-shell #view :is(.ma-v259-instruction,.ma-v259-feedback,.ma-v259-workorder){
  background:color-mix(in srgb,var(--ma20-color) 22%,#0a273a)!important;
  border-color:color-mix(in srgb,var(--ma20-color) 43%,#2a6a85)!important;
}
html[data-ma20-palette="custom"][data-skin="classic"] body.ma-v235-shell #view :is(.ma-v259-cal,.ma-v259-panel,.ma-v262-appointment-card,.ma-v262-customer-card,.ma-v262-vehicle-card){
  background:linear-gradient(165deg,color-mix(in srgb,var(--ma20-color) 7%,#fff),color-mix(in srgb,var(--ma20-color) 6%,#f1f4f6))!important;
  border-color:color-mix(in srgb,var(--ma20-color) 29%,#c9d6df)!important;
  color:#18384d!important;
}
html[data-ma20-palette="custom"][data-skin="classic"] body.ma-v235-shell #view :is(.ma-v259-instruction,.ma-v259-feedback,.ma-v259-workorder){
  background:color-mix(in srgb,var(--ma20-color) 9%,#f7fafc)!important;
  border-color:color-mix(in srgb,var(--ma20-color) 28%,#d0dbe2)!important;
  color:#25445e!important;
}

/* =======================================================================
   V026.8: Kalender, Stammdaten, Fahrtenbuch und hochwertiger Login
   ======================================================================= */
/* Keine doppelten großen Hinweisleisten mehr; Fehler bleiben sichtbar. */
body.ma-v235-shell #view :is(.ma-v259-instruction,.ma-v259-feedback:not([data-ma-v268-error="true"]),
  .ma-v262-appointment-card>p,.ma-v210-planner-status.ma-v268-quiet-status:not([data-ma-v268-error="true"])){
  display:none!important;
}
body.ma-v235-shell #view .ma-v259-feedback[data-ma-v268-error="true"],
body.ma-v235-shell #view .ma-v210-planner-status[data-ma-v268-error="true"]{
  display:block!important;max-height:55px!important;padding:6px 9px!important;
  font-size:11px!important;border-color:#d9a446!important;color:#f6d99e!important;
}
body.ma-v235-shell #view .ma-v259-cal-head{margin-bottom:3px!important}
body.ma-v235-shell #view .ma-v262-new-customer .ma-v210-planner-head{margin-bottom:3px!important}
/* Neukunde: acht saubere Zeilen ohne eigene Scrollleiste. Fahrzeug und
   Fahrzeugschein daneben; intern scrollen ausschliesslich die Hebebuehnen. */
@media screen and (min-width:1180px) and (min-height:730px){
  body.ma-v235-shell #view .ma-v268-compact-inputs .ma-v209-form{
    grid-template-rows: minmax(0,352px) minmax(0,1fr)!important;
  }
  body.ma-v235-shell #view .ma-v268-compact-inputs .ma-v209-form>section.card.ma-v262-customer-card,
  body.ma-v235-shell #view .ma-v268-compact-inputs .ma-v209-form>section.card.ma-v262-vehicle-card{
    overflow:visible!important;height:100%!important;max-height:none!important;
    min-height:0!important;padding:9px 11px!important;
  }
  body.ma-v235-shell #view .ma-v268-compact-inputs :is(.ma-v262-customer-card,.ma-v262-vehicle-card)>h3{
    margin:0 0 6px!important;padding:0 0 5px!important;font-size:14px!important;
  }
  body.ma-v235-shell #view .ma-v268-compact-inputs .ma-v262-customer-card>.grid{
    display:grid!important;grid-template-columns:1fr!important;gap:3px!important;
  }
  body.ma-v235-shell #view .ma-v268-compact-inputs .ma-v262-customer-card>.grid>label{
    display:grid!important;grid-template-columns:34% minmax(0,1fr)!important;
    align-items:center!important;min-height:27px!important;height:27px!important;
    gap:6px!important;margin:0!important;font-size:11px!important;
  }
  body.ma-v235-shell #view .ma-v268-compact-inputs .ma-v262-customer-card>.grid>label>input{
    height:27px!important;min-height:27px!important;max-height:27px!important;
    padding:4px 8px!important;margin:0!important;
  }
  /* Zwei Spalten: Fahrzeugfelder links, schlanker Dokumentscanner rechts. */
  body.ma-v235-shell #view .ma-v268-compact-inputs .ma-v262-vehicle-card{
    display:grid!important;grid-template-columns:minmax(0,1.6fr) minmax(185px,1fr)!important;
    grid-template-rows:auto minmax(0,1fr)!important;column-gap:10px!important;
  }
  body.ma-v235-shell #view .ma-v268-compact-inputs .ma-v262-vehicle-card>h3{
    grid-column:1/-1!important;grid-row:1!important;
  }
  body.ma-v235-shell #view .ma-v268-compact-inputs .ma-v262-vehicle-card>.grid{
    grid-column:1!important;grid-row:2!important;display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:min-content!important;
    gap:5px 7px!important;align-content:start!important;
  }
  body.ma-v235-shell #view .ma-v268-compact-inputs .ma-v262-vehicle-card>.grid>label{
    display:flex!important;flex-direction:column!important;align-items:stretch!important;
    justify-content:flex-start!important;font-size:10px!important;min-width:0!important;
    margin:0!important;gap:3px!important;line-height:1.1!important;
  }
  body.ma-v235-shell #view .ma-v268-compact-inputs .ma-v262-vehicle-card>.grid>label input{
    height:27px!important;min-height:27px!important;max-height:27px!important;
    padding:3px 6px!important;margin:0!important;
  }
  body.ma-v235-shell #view .ma-v268-compact-inputs .ma-v262-vehicle-card>.ma-v249-compact-scan{
    grid-column:2!important;grid-row:2!important;align-self:start!important;
    margin:0!important;padding:9px!important;max-width:100%!important;
    display:flex!important;flex-direction:column!important;gap:4px!important;
  }
  body.ma-v235-shell #view .ma-v268-compact-inputs .ma-v262-vehicle-card>.ma-v249-compact-scan :is(button,input[type=file]){
    min-height:28px!important;height:auto!important;max-width:100%!important;font-size:10px!important;
  }
  body.ma-v235-shell #view .ma-v268-compact-inputs .ma-v262-vehicle-card>.ma-v249-compact-scan .ma-v221-scan-actions{
    display:flex!important;flex-wrap:wrap!important;gap:4px!important;
  }
  body.ma-v235-shell #view .ma-v268-compact-inputs .ma-v262-vehicle-card>.ma-v249-compact-scan .ma-v221-scan-actions button{
    padding:5px 7px!important;min-width:0!important;flex:1 1 120px!important;
  }
}
/* Kleinere Fenster: Stammdaten dürfen die gesamte Seite vergrößern statt
   Eingabefelder abzuschneiden; keine eigenen Karten-Scrollleisten. */
@media screen and (max-width:1179px),screen and (max-height:729px){
  body.ma-v235-shell #view .ma-v268-compact-inputs .ma-v209-form{
    grid-template-rows:auto auto!important;overflow:visible!important;height:auto!important;
  }
  body.ma-v235-shell #view .ma-v268-compact-inputs :is(.ma-v262-customer-card,.ma-v262-vehicle-card){
    max-height:none!important;height:auto!important;overflow:visible!important;
  }
}
/*Login ohne Kopfzeile, größere Karten, originalgetreues nicht gefiltertes Logo.*/
body:has(#login.ma-v265-login:not(.hidden))>header{display:none!important}
body:has(#login.ma-v265-login:not(.hidden))>main{margin:0 auto!important;max-width:none!important;padding:0 15px!important}
#login.ma-v265-login{
  width:min(1360px,calc(100vw - 45px))!important;max-width:1360px!important;
  grid-template-columns:minmax(0,1fr) minmax(390px,.93fr)!important;
  min-height:min(650px,calc(100vh - 70px))!important;
  margin:clamp(18px,4vh,55px) auto 25px!important;gap:24px!important;
}
#login.ma-v265-login :is(.ma-v265-login-brand,.ma-v265-login-card){
  min-height:clamp(525px,75vh,690px)!important;border-radius:23px!important;
}
#login.ma-v265-login .ma-v266-login-logo{
  min-height:275px!important;max-height:380px!important;padding:20px 22px 5px!important;
  display:flex!important;justify-content:center!important;align-items:center!important;
}
#login.ma-v265-login .ma-v266-login-logo img{
  display:block!important;width:100%!important;max-width:500px!important;
  height:340px!important;max-height:340px!important;object-fit:contain!important;
  image-rendering:auto!important;filter:none!important;opacity:1!important;
}
#login.ma-v265-login .ma-v265-login-card{padding:clamp(27px,3vw,48px)!important}
#login.ma-v265-login .ma-v268-login-status{
  margin-top:18px;padding:12px 13px;border-radius:12px;
  border:1px solid #2b6b85;background:#082239aa;
}
#login.ma-v265-login .ma-v268-login-status h3{margin:0 0 9px;font-size:13px;color:#b1e9f2}
#login.ma-v265-login .ma-v268-login-status>div{
  display:flex;justify-content:space-between;align-items:baseline;gap:12px;
  padding:6px 0;border-top:1px solid #2c647056;font-size:11px;color:#b7d7e5;
}
#login.ma-v265-login .ma-v268-login-status strong{font-size:11px;color:#d5eaf1;text-align:right}
#login.ma-v265-login .ma-v268-login-status strong[data-state=ok]{color:#48ddb7}
#login.ma-v265-login .ma-v268-login-status strong[data-state=warn]{color:#eab46e}
html[data-skin="classic"] #login.ma-v265-login .ma-v268-login-status{
  background:#e8f4fa!important;border-color:#b3d0df!important;
}
html[data-skin="classic"] #login.ma-v265-login .ma-v268-login-status h3,
html[data-skin="classic"] #login.ma-v265-login .ma-v268-login-status strong{color:#163f58}
html[data-skin="classic"] #login.ma-v265-login .ma-v268-login-status>div{color:#35566b;border-color:#c5dde7}
html[data-skin="classic"] #login.ma-v265-login .ma-v268-login-status strong[data-state=ok]{color:#116d53}
@media(max-width:780px){
  #login.ma-v265-login{grid-template-columns:1fr!important;width:min(540px,calc(100vw - 24px))!important}
  #login.ma-v265-login :is(.ma-v265-login-brand,.ma-v265-login-card){min-height:0!important}
  #login.ma-v265-login .ma-v266-login-logo{min-height:180px!important;max-height:230px!important}
  #login.ma-v265-login .ma-v266-login-logo img{height:220px!important;max-height:220px!important}
}
/* Schlichtes Fahrtenbuch */
body.ma-v235-shell #view .ma-v268-logbook{max-width:1550px;margin:0 auto;padding:12px}
body.ma-v235-shell #view .ma-v268-book-head{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:12px}
body.ma-v235-shell #view .ma-v268-book-head h2{margin:0;font-size:22px;color:inherit}
body.ma-v235-shell #view .ma-v268-book-head p{margin:5px 0 0;color:var(--muted,#a2cddd)}
body.ma-v235-shell #view .ma-v268-book-actions{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:12px;margin-bottom:10px}
body.ma-v235-shell #view .ma-v268-book-actions label{font-size:12px;color:inherit;font-weight:700;margin:0}
body.ma-v235-shell #view .ma-v268-book-actions :is(input,select){margin-top:5px;min-height:38px}
body.ma-v235-shell #view .ma-v268-book-notice{font-size:12px;padding:9px 12px;border:1px solid #3d879c;background:#0b3144;border-radius:9px;margin:6px 0 12px;color:#bce4f2}
body.ma-v235-shell #view .ma-v268-book-notice[data-state=warning]{border-color:#c49a54;color:#ffe5a3}
body.ma-v235-shell #view .ma-v268-book-notice[data-state=ok]{border-color:#2caa86;color:#baf5e2}
body.ma-v235-shell #view .ma-v268-book-table-wrap{overflow:auto;max-height:min(65vh,780px);border:1px solid #2c7597;border-radius:12px}
body.ma-v235-shell #view .ma-v268-book-table{table-layout:fixed;border-collapse:separate;border-spacing:0;width:100%;min-width:870px}
body.ma-v235-shell #view .ma-v268-book-table th{position:sticky;top:0;z-index:1;background:#13415b;color:#e9fcff;padding:11px 6px}
body.ma-v235-shell #view .ma-v268-book-table th:first-child{width:5%}
body.ma-v235-shell #view .ma-v268-book-table th:nth-child(2){width:16%}
body.ma-v235-shell #view .ma-v268-book-table th:nth-child(3),
body.ma-v235-shell #view .ma-v268-book-table th:nth-child(4){width:13%}
body.ma-v235-shell #view .ma-v268-book-table th:nth-child(5){width:22%}
body.ma-v235-shell #view .ma-v268-book-table th:nth-child(6){width:31%}
body.ma-v235-shell #view .ma-v268-book-table td{padding:3px 5px;text-align:center;color:inherit;border-bottom:1px solid #2a526d}
body.ma-v235-shell #view .ma-v268-book-table input{width:100%!important;min-width:0!important;padding:4px 6px!important;height:34px!important;min-height:34px!important;margin:0!important;font-size:12px!important}
body.ma-v235-shell #view .ma-v268-book-footer{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:13px}
body.ma-v235-shell #view .ma-v268-book-footer span{font-size:11px;color:#9dbed2}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v268-book-notice{background:#eaf4fa;color:#285472}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v268-book-notice[data-state=warning]{color:#775621}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v268-book-notice[data-state=ok]{color:#146d50}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v268-book-table th{background:#d6e9f3;color:#224b62}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v268-book-footer span{color:#476778}
@media(max-width:850px){body.ma-v235-shell #view .ma-v268-book-actions{grid-template-columns:1fr}}

/* V026.9 – scharfes freigestelltes Markenlogo nur für Login und Dashboard. */
#login.ma-v265-login .ma-v266-login-logo img[src*="mensing-meisterwerkstatt-ui-v270"]{
  object-fit:contain!important;image-rendering:auto!important;filter:none!important;
  max-width:min(100%,520px)!important;height:340px!important;max-height:340px!important;
}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v254-brand-logo[src*="mensing-meisterwerkstatt-ui-v270"]{
  object-fit:contain!important;image-rendering:auto!important;
  filter:drop-shadow(0 4px 11px rgba(0,0,0,.24))!important;
}
@media(max-width:780px){#login.ma-v265-login .ma-v266-login-logo img[src*="mensing-meisterwerkstatt-ui-v270"]{height:220px!important;max-height:220px!important}}

/* V027.1 – Lesbarkeit und Kalender-Endmarken. Keine Änderung der Zeitberechnung. */
#view .planner-slot.ma-v271-work-end,
#view .ma-v259-lane .planner-slot.ma-v271-work-end {
  background:#087ea5!important;color:#fff!important;border-color:#68dcf8!important;
  font-weight:800!important;box-shadow:inset 5px 0 #7cecff!important;
}
#view .planner-slot.ma-v271-work-end span {color:#fff!important}
#view .planner-slot.ma-v271-buffer-end,
#view .ma-v259-lane .planner-slot.ma-v271-buffer-end {
  background:#dfad2a!important;color:#172234!important;border-color:#f8d77a!important;
  font-weight:800!important;box-shadow:inset 5px 0 #fff0b0!important;
}
#view .planner-slot.ma-v271-buffer-end span {color:#172234!important}
/* Das gelbe Feld zeigt die Zeitgrenze, NICHT eine weitere reservierte Viertelstunde. */
.ma-v271-discount-box{display:flex;align-items:center;gap:10px 14px;flex-wrap:wrap;padding:12px 14px;
  border:1px solid #28778c;border-radius:12px;background:rgba(22,101,132,.11);margin:12px 0}
.ma-v271-discount-box label{display:flex;align-items:center;gap:10px;font-weight:750;color:inherit}
.ma-v271-discount-box input{width:98px!important;max-width:98px;min-height:40px;padding:7px 10px;font-weight:750}
.ma-v271-discount-box small{color:#a9cde0;flex:1 1 180px}
.ma-v271-discount-box #maV271DiscountSum{width:100%;color:#b7eadd;font-weight:700;font-size:13px}
.ma-v271-customer-wrap{position:relative;min-width:0;width:100%}
.ma-v271-customer-wrap input{width:100%;min-width:0}
.ma-v271-customer-list{position:absolute;top:calc(100% + 3px);left:0;right:0;z-index:150;
  max-height:310px;overflow-y:auto;overscroll-behavior:contain;border:1px solid #35abc7;
  background:#09243b;box-shadow:0 12px 28px #0008;border-radius:11px;padding:5px}
.ma-v271-customer-list[hidden]{display:none!important}
.ma-v271-customer-list button{display:block!important;text-align:left;width:100%;font-size:13px;
  border:0;background:transparent;color:#e8f6ff;border-radius:7px;padding:9px 11px;white-space:normal}
.ma-v271-customer-list button:hover,.ma-v271-customer-list button[aria-selected="true"]{background:#176486;color:#fff}
#view .ma-v259-search-row{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)!important}
#view #maV259Customer,#view #maV259Vehicle{width:100%;min-width:0}
html[data-skin="classic"] #view .ma-v13-calendar-head h2,
html[data-skin="classic"] #view .ma-v13-calendar-head h3,
html[data-skin="classic"] #view .ma-v259-header h2,
html[data-skin="classic"] #view .ma-v259-cal-head h3,
html[data-skin="classic"] #view .ma-v241-heading-title h2,
html[data-skin="classic"] #view .ma-v241-heading-title h3,
html[data-skin="classic"] #view .ma-v241-panel h3{color:#102e49!important;text-shadow:none!important}
html[data-skin="classic"] #view .ma-v13-calendar-head,
html[data-skin="classic"] #view .ma-v259-cal-head,
html[data-skin="classic"] #view .ma-v241-heading-title,
html[data-skin="classic"] #view .ma-v271-discount-box{background:#e6eef7!important;color:#173a55!important;border-color:#afc8db!important}
html[data-skin="classic"] #view .ma-v271-discount-box small,
html[data-skin="classic"] #view .ma-v271-discount-box #maV271DiscountSum{color:#23536c!important}
html[data-skin="classic"] .ma-v271-customer-list{background:#fff;color:#173047;border-color:#87b5d0;box-shadow:0 10px 25px #18446733}
html[data-skin="classic"] .ma-v271-customer-list button{color:#18334d}
html[data-skin="classic"] .ma-v271-customer-list button:hover,
html[data-skin="classic"] .ma-v271-customer-list button[aria-selected="true"]{background:#d8ecf9;color:#13354a}
@media(max-width:720px){#view .ma-v259-search-row{grid-template-columns:1fr!important}}


/* V027.2 – Rechnungseditor: Katalog und optionaler Rabatt kompakt nebeneinander.
   Reine Layout-Aenderung: keine Rabatt-/Rechnungslogik wird beruehrt. */
body.ma-v235-shell #view #maV214InvoiceRoot .ma-v272-catalog-discount-row {
  display:grid!important;
  grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr)!important;
  gap:12px!important;
  align-items:stretch!important;
  margin:8px 0 10px!important;
  min-width:0;
}
body.ma-v235-shell #view #maV214InvoiceRoot .ma-v272-catalog-discount-row > * {
  box-sizing:border-box;
  min-width:0;
  height:100%;
}
body.ma-v235-shell #view #maV214InvoiceRoot .ma-v272-catalog-discount-row .v256-catalog-compact {
  margin:0!important;
  padding:11px 12px!important;
  display:flex!important;
  flex-direction:column!important;
  gap:5px!important;
  border-radius:12px!important;
}
body.ma-v235-shell #view #maV214InvoiceRoot .ma-v272-catalog-discount-row .v250-catalog-choice {
  display:block!important;
  font-weight:750!important;
  margin:0!important;
}
body.ma-v235-shell #view #maV214InvoiceRoot .ma-v272-catalog-discount-row #maV214Catalog {
  margin:6px 0 0!important;
  min-width:0!important;
  width:100%!important;
  max-width:100%!important;
}
body.ma-v235-shell #view #maV214InvoiceRoot .ma-v272-catalog-discount-row .v256-catalog-hint {
  margin:0!important;
  font-size:11px!important;
  line-height:1.35!important;
}
body.ma-v235-shell #view #maV214InvoiceRoot .ma-v272-catalog-discount-row .v232-price-count {
  font-size:11px!important;
  line-height:1.25!important;
  margin:0!important;
}
body.ma-v235-shell #view #maV214InvoiceRoot .ma-v272-catalog-discount-row .ma-v271-discount-box {
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  flex-wrap:nowrap!important;
  gap:7px!important;
  margin:0!important;
  padding:11px 12px!important;
  border-radius:12px!important;
}
body.ma-v235-shell #view #maV214InvoiceRoot .ma-v272-catalog-discount-row .ma-v271-discount-box label {
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:space-between!important;
  flex-wrap:wrap!important;
  gap:6px 10px!important;
  margin:0!important;
  min-width:0;
  font-size:12px!important;
  font-weight:750!important;
}
body.ma-v235-shell #view #maV214InvoiceRoot .ma-v272-catalog-discount-row #maV271Discount {
  display:block!important;
  width:92px!important;
  max-width:100%!important;
  flex:0 1 92px!important;
  min-height:38px!important;
  margin:0!important;
}
body.ma-v235-shell #view #maV214InvoiceRoot .ma-v272-catalog-discount-row .ma-v271-discount-box small {
  flex:none!important;
  display:block!important;
  font-size:11px!important;
  line-height:1.4!important;
}
body.ma-v235-shell #view #maV214InvoiceRoot .ma-v272-catalog-discount-row #maV271DiscountSum {
  width:100%!important;
  font-size:11px!important;
  line-height:1.3!important;
  overflow-wrap:anywhere;
}
body.ma-v235-shell #view #maV214InvoiceRoot .ma-v272-catalog-discount-row + .v232-free-title {
  margin-top:5px!important;
}
@media (max-width: 960px){
  body.ma-v235-shell #view #maV214InvoiceRoot .ma-v272-catalog-discount-row {
    grid-template-columns:minmax(0,1fr)!important;
  }
}

/* V027.3 – Bestandskunden-Suchliste ist jetzt ein Popup auf Body-Ebene.
   Kein horizontaler Scrollbalken im Formular, kein Abschneiden der Treffer. */
body > .ma-v271-customer-list{
  position:fixed!important;top:0;left:0;right:auto!important;bottom:auto!important;
  box-sizing:border-box!important;width:280px;min-width:0;max-width:calc(100vw - 20px);
  max-height:min(310px,calc(100dvh - 20px));overflow-x:hidden!important;overflow-y:auto!important;
  z-index:10000!important;scrollbar-width:thin;scrollbar-color:#32c7df #0a2b43;
  overscroll-behavior:contain;
}
body > .ma-v271-customer-list button{
  box-sizing:border-box!important;max-width:100%!important;min-width:0!important;
  white-space:normal!important;overflow-wrap:anywhere;
}
body > .ma-v271-customer-list .ma-v271-customer-empty{margin:0;padding:9px 11px;font-size:12px;color:#accade}
html[data-skin="classic"] body > .ma-v271-customer-list .ma-v271-customer-empty{color:#4b6c81}
body.ma-v235-shell #view .ma-v259-search-row,body.ma-v235-shell #view .ma-v259-search-row>label{
  min-width:0!important;max-width:100%;overflow:visible;
}

/* =====================================================================
   V027.4 – Kalenderkarten, gleiche Kundendaten, Fahrzeugschein-Checks,
   übersichtliche Suchlisten und kontrastreiche Darkmode-Bedienung.
   ===================================================================== */
body.ma-v235-shell #view .ma-v274-tabs{
  grid-column:1/-1!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:9px!important;margin:0!important;min-width:0!important;align-self:start;
}
body.ma-v235-shell #view .ma-v274-tabs button{
  min-width:0!important;min-height:43px!important;padding:9px 12px!important;text-align:left!important;
  background:#0c3652!important;color:#d9e9f4!important;border:1px solid #428eac!important;
  border-radius:11px!important;white-space:normal!important;display:flex;gap:8px;align-items:center;
}
body.ma-v235-shell #view .ma-v274-tabs button small{margin-left:auto;font-size:11px;font-weight:500;color:#b4d8e6}
body.ma-v235-shell #view .ma-v274-tabs button.ma-v274-active-tab{
  background:#07516c!important;border-color:#41ecf0!important;color:#fff!important;box-shadow:inset 0 0 0 1px #30cce4;
}
body.ma-v235-shell #view .ma-v274-tabbed .ma-v209-form>.ma-v274-step-card:not(.ma-v274-inactive){
  display:block!important;grid-column:1/-1!important;width:100%!important;min-width:0!important;
  height:auto!important;max-height:none!important;overflow:visible!important;align-self:start!important;
}
body.ma-v235-shell #view .ma-v274-tabbed .ma-v209-form>.ma-v274-step-card.ma-v274-inactive{display:none!important}
body.ma-v235-shell #view .ma-v274-tabbed .ma-v274-step-card>.grid{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:6px 11px!important;align-content:start!important;
}
body.ma-v235-shell #view .ma-v274-tabbed .ma-v274-step-card>.grid>label:not(.ma-v274-backed-field){
  display:flex!important;flex-direction:column!important;gap:3px!important;margin:0!important;
  min-width:0!important;font-size:11px!important;
}
body.ma-v235-shell #view .ma-v274-tabbed .ma-v274-step-card>.grid>label.ma-v274-backed-field{display:none!important}
body.ma-v235-shell #view .ma-v274-tabbed .ma-v274-step-card>.grid label :is(input,select){
  width:100%!important;height:32px!important;min-height:32px!important;max-height:32px!important;
  margin:0!important;padding:4px 8px!important;font-size:12px!important;
}
body.ma-v235-shell #view .ma-v274-tabbed .ma-v274-step-card .ma-v249-compact-scan{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;column-gap:10px!important;
  margin-top:6px!important;padding:8px 10px!important;align-items:center!important;
}
body.ma-v235-shell #view .ma-v274-tabbed .ma-v274-step-card .ma-v249-compact-scan .ma-v221-scan-actions{
  display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;gap:6px!important;
}
body.ma-v235-shell #view .ma-v274-tabbed .ma-v274-step-card .ma-v249-compact-scan #maV210OcrReview{grid-column:1/-1}
body.ma-v235-shell #view .ma-v274-tabbed .ma-v262-appointment-card{
  grid-column:1/-1!important;min-height:0!important;
}
@media screen and (min-width:1180px) and (min-height:730px){
  body.ma-v235-shell #view .ma-v274-tabbed .ma-v209-form{
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto max-content minmax(0,1fr)!important;
  }
  body.ma-v235-shell #view .ma-v274-tabbed .ma-v274-step-card:not(.ma-v274-inactive){
    max-height:none!important;min-height:0!important;overflow:visible!important;
  }
}
@media(max-width:880px){
  body.ma-v235-shell #view .ma-v274-tabbed .ma-v274-step-card>.grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.ma-v235-shell #view .ma-v274-tabs button{flex-direction:column;align-items:flex-start!important}
}
@media(max-width:480px){body.ma-v235-shell #view .ma-v274-tabbed .ma-v274-step-card>.grid{grid-template-columns:1fr!important}}

/* Suchfenster für Kunden/Fahrzeuge und Terminwahl schwebt außerhalb
   gescrollter Karten und erzeugt keine horizontale Scrollleiste. */
.ma-v274-lookup{
  position:fixed!important;z-index:12000!important;box-sizing:border-box;overflow-y:auto!important;overflow-x:hidden!important;
  max-width:calc(100vw - 20px)!important;background:#092b43;border:1px solid #5dd4e8;
  border-radius:11px;box-shadow:0 16px 34px #0008;padding:5px;scrollbar-width:thin;
}
.ma-v274-lookup[hidden]{display:none!important}
.ma-v274-lookup button{
  display:block!important;min-width:0!important;max-width:100%!important;width:100%!important;
  padding:9px 12px!important;min-height:36px!important;border:0!important;border-radius:7px;
  background:transparent!important;color:#eaf9ff!important;text-align:left!important;
  font-size:13px!important;white-space:normal!important;overflow-wrap:anywhere;
}
.ma-v274-lookup button:hover,.ma-v274-lookup button[aria-selected="true"]{background:#146583!important;color:#fff!important}
.ma-v274-lookup p{margin:4px 6px;padding:6px;font-size:12px;color:#d0e6f2}
body.ma-v235-shell #view .ma-v274-underlying-select{display:none!important}
body.ma-v235-shell #view .ma-v274-customer-input,body.ma-v235-shell #view .ma-v274-job-search{
  display:block!important;box-sizing:border-box!important;min-width:0!important;width:100%!important;
  min-height:40px!important;color:#eefaff!important;background:#0b314d!important;
  border:1px solid #56b4d0!important;border-radius:9px!important;padding:8px 11px!important;
}
body.ma-v235-shell #view #maV210InvoiceFromPlanner{display:flex;align-items:end;flex-wrap:wrap;gap:9px}
body.ma-v235-shell #view #maV210InvoiceFromPlanner>label{min-width:250px;width:clamp(270px,30vw,410px)!important;max-width:100%}
body.ma-v235-shell #view .ma-v274-vehicle-form .ma-v15-vehicle-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
body.ma-v235-shell #view .ma-v274-ocr-review{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:12px;margin:10px 0;border:1px solid #4ab0cb;border-radius:10px;background:#123850}
body.ma-v235-shell #view .ma-v274-ocr-review[hidden]{display:none!important}
body.ma-v235-shell #view .ma-v274-ocr-review>p,body.ma-v235-shell #view .ma-v274-ocr-review>button{grid-column:1/-1}
body.ma-v235-shell #view .ma-v274-ocr-review label{min-width:0;font-size:12px}
body.ma-v235-shell #view .ma-v274-ocr-review input{width:100%;box-sizing:border-box}
@media(max-width:760px){body.ma-v235-shell #view .ma-v274-vehicle-form .ma-v15-vehicle-grid,body.ma-v235-shell #view .ma-v274-ocr-review{grid-template-columns:1fr!important}}

/* Der rechte Terminbereich soll seine Aktionen möglichst ohne Pflichtscrollen
   zeigen. Die Katalog-Popup-Liste darf weiterhin separat scrollen. */
body.ma-v235-shell #view .ma-v259-panel{padding:10px 12px!important}
body.ma-v235-shell #view .ma-v259-panel-group{margin-bottom:6px!important;padding-bottom:6px!important}
body.ma-v235-shell #view .ma-v259-panel-group h3{margin-bottom:5px!important;font-size:13px!important}
body.ma-v235-shell #view .ma-v259-panel label{margin-bottom:6px!important}
body.ma-v235-shell #view .ma-v259-panel :is(input,select){min-height:35px!important;padding:7px 9px!important}
body.ma-v235-shell #view .ma-v259-panel textarea{min-height:55px!important;max-height:95px!important}
body.ma-v235-shell #view .ma-v263-approval-option{min-height:32px!important;padding:4px 9px!important}
body.ma-v235-shell #view .ma-v259-workorder{margin:4px 0!important}
body.ma-v235-shell #view .ma-v259-actions{margin-top:5px!important;gap:6px}

/* Dunkelmodus: weiße/helle Schrift auf dunkelblauen Buttons;
   semantische Farben und helle Cyan-Schaltflächen behalten dunkle Schrift. */
html[data-skin="modern"] body.ma-v235-shell #view :is(button.v214-btn:not(.primary):not(.green),.ma-v259-actions button:not(.primary),button.ma-v10-back,button.v228-back):not(:disabled){
  color:#f0fbff!important;text-shadow:none!important;
}
html[data-skin="modern"] body.ma-v235-shell #view .v214-toolbar button:not(:disabled){color:#f1fcff!important;background:#123b59!important}
html[data-skin="classic"] .ma-v274-lookup{background:#fff;color:#14374d;border-color:#83b2cb;box-shadow:0 12px 26px #153d4c44}
html[data-skin="classic"] .ma-v274-lookup button{color:#173b51!important}
html[data-skin="classic"] .ma-v274-lookup button:hover,html[data-skin="classic"] .ma-v274-lookup button[aria-selected="true"]{background:#d6edf8!important;color:#123a50!important}
html[data-skin="classic"] body.ma-v235-shell #view :is(.ma-v274-customer-input,.ma-v274-job-search){background:#fff!important;color:#14384b!important;border-color:#94c3d6!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v274-tabs button{background:#e4f1f8!important;color:#193b51!important;border-color:#a9cbdc!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v274-tabs button small{color:#50778c!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v274-tabs button.ma-v274-active-tab{background:#c0eaf4!important;color:#13364d!important}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v274-ocr-review{background:#e7f3f9;color:#133b51;border-color:#a1c9db}


/* =====================================================================
   V027.4 FIX: Karten zusammenklappen, Kalender bekommt Platz zurück;
   Formulareingaben bleiben unverändert erhalten. Korrektur alter fester
   Labelhöhen (27px), die Text und 32px-Eingaben überlagert haben.
   ===================================================================== */
body.ma-v235-shell #view .ma-v274-tabbed .ma-v274-tabs{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto!important;
  align-items:stretch!important;
}
body.ma-v235-shell #view .ma-v274-tabbed .ma-v274-tabs .ma-v274-collapse-toggle{
  min-height:43px!important;min-width:128px!important;
  padding:7px 11px!important;justify-content:center!important;
  white-space:nowrap!important;font-size:12px!important;font-weight:700!important;
  background:#123b53!important;color:#eaf9ff!important;border-color:#59aec3!important;
}
body.ma-v235-shell #view .ma-v274-tabbed .ma-v274-tabs .ma-v274-collapse-toggle:hover,
body.ma-v235-shell #view .ma-v274-tabbed .ma-v274-tabs .ma-v274-collapse-toggle:focus-visible{
  background:#17637b!important;border-color:#8de7ef!important;
}
/* Klasse wird ausschließlich beim Klicken gesetzt – keine DOM-Zerstörung. */
body.ma-v235-shell #view .ma-v274-tabbed.ma-v274-details-collapsed .ma-v209-form>.ma-v274-step-card{
  display:none!important;
}
body.ma-v235-shell #view .ma-v274-tabbed .ma-v274-step-card>.grid>label:not(.ma-v274-backed-field){
  height:auto!important;min-height:0!important;max-height:none!important;
  overflow:visible!important;line-height:1.35!important;
  gap:4px!important;justify-content:flex-start!important;
  grid-template-columns:none!important;box-sizing:border-box!important;
}
body.ma-v235-shell #view .ma-v274-tabbed .ma-v274-step-card>.grid>label:not(.ma-v274-backed-field)>span{
  display:block!important;line-height:1.3!important;
  white-space:normal!important;overflow-wrap:break-word!important;
}
body.ma-v235-shell #view .ma-v274-tabbed .ma-v274-step-card>.grid label :is(input,select){
  position:static!important;flex-shrink:0!important;box-sizing:border-box!important;
}
body.ma-v235-shell #view .ma-v274-tabbed .ma-v274-step-card>.grid>label.ma-v274-backed-field{
  display:none!important;
}
@media screen and (min-width:1180px) and (min-height:730px){
  body.ma-v235-shell #view .ma-v274-tabbed.ma-v274-details-collapsed .ma-v209-form{
    grid-template-rows:auto minmax(0,1fr)!important;
  }
  body.ma-v235-shell #view .ma-v274-tabbed.ma-v274-details-collapsed .ma-v262-appointment-card{
    min-height:0!important;height:100%!important;max-height:100%!important;
  }
}
@media(max-width:880px){
  body.ma-v235-shell #view .ma-v274-tabbed .ma-v274-tabs{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body.ma-v235-shell #view .ma-v274-tabbed .ma-v274-tabs .ma-v274-collapse-toggle{
    grid-column:1/-1!important;min-height:34px!important;
  }
}
html[data-skin="classic"] body.ma-v235-shell #view .ma-v274-tabbed .ma-v274-tabs .ma-v274-collapse-toggle{
  background:#dceef7!important;color:#153a53!important;border-color:#80b9ce!important;
}


/* =====================================================================
   V027.4 NACHKORREKTUR – rechter Bestandskundenbereich kompakter,
   weniger Pflicht-Scrollen; Kalender-Kopfzeile mit Termin/Rechnung sauber.
   Keine Änderung der Buchungs-, Speicher- oder Rechnungslogik.
   ===================================================================== */
body.ma-v235-shell #view .ma-v259-layout{
  grid-template-columns:minmax(0,1.5fr) minmax(300px,.76fr)!important;
  gap:12px!important;
}
body.ma-v235-shell #view .ma-v259-header{margin:0 0 6px!important}
body.ma-v235-shell #view .ma-v259-header h2{margin:0 0 4px!important;line-height:1.14!important}
body.ma-v235-shell #view .ma-v259-header p{margin:0!important;font-size:13px!important;line-height:1.25!important}
body.ma-v235-shell #view .ma-v259-cal,
body.ma-v235-shell #view .ma-v259-panel{padding:10px 12px!important;border-radius:14px!important}
body.ma-v235-shell #view .ma-v259-cal-head{margin-bottom:2px!important}
body.ma-v235-shell #view .ma-v259-cal-head h3{font-size:15px!important;margin:0 0 2px!important}
body.ma-v235-shell #view .ma-v259-cal-head small{font-size:10px!important;line-height:1.25!important}
body.ma-v235-shell #view .ma-v259-dates{gap:8px!important;margin:8px 0 6px!important}
body.ma-v235-shell #view .ma-v259-dates :is(button,input){min-height:35px!important;padding:6px 10px!important;font-size:12px!important}
body.ma-v235-shell #view .ma-v259-feedback{margin:0 0 6px!important;padding:7px 9px!important;font-size:11px!important;line-height:1.3!important}
body.ma-v235-shell #view .ma-v259-viewport{height:clamp(255px,33dvh,335px)!important;min-height:255px!important;max-height:335px!important}
body.ma-v235-shell #view .ma-v259-lifts{gap:10px!important}
body.ma-v235-shell #view .ma-v259-panel{gap:0!important}
body.ma-v235-shell #view .ma-v259-panel-group{margin-bottom:5px!important;padding-bottom:5px!important}
body.ma-v235-shell #view .ma-v259-panel-group h3{gap:8px!important;margin-bottom:4px!important;font-size:13px!important}
body.ma-v235-shell #view .ma-v259-num{width:24px!important;height:24px!important;flex:0 0 24px!important;font-size:12px!important;border-radius:8px!important}
body.ma-v235-shell #view .ma-v259-hint,
body.ma-v235-shell #view .ma-v259-customer-status,
body.ma-v235-shell #view .ma-v259-time-summary,
body.ma-v235-shell #view .ma-v259-workorder,
body.ma-v235-shell #view .ma-v263-approval-hint{font-size:10px!important;line-height:1.3!important}
body.ma-v235-shell #view .ma-v259-search-row{gap:8px!important}
body.ma-v235-shell #view .ma-v259-panel label{margin:0 0 5px!important;font-size:11px!important}
body.ma-v235-shell #view .ma-v259-panel :is(input,select,textarea){min-height:34px!important;padding:6px 9px!important;font-size:12px!important}
body.ma-v235-shell #view .ma-v259-panel textarea{min-height:52px!important;max-height:82px!important}
body.ma-v235-shell #view .ma-v259-clear button{top:6px!important;width:28px!important;height:28px!important;min-height:28px!important}
body.ma-v235-shell #view .ma-v259-duration{padding:6px 8px!important;gap:4px!important;border-radius:10px!important}
body.ma-v235-shell #view .ma-v259-duration>div{gap:3px!important;padding:1px!important}
body.ma-v235-shell #view .ma-v259-duration strong{font-size:14px!important}
body.ma-v235-shell #view .ma-v259-duration>b{font-size:15px!important}
body.ma-v235-shell #view .ma-v259-duration small{font-size:9px!important;line-height:1.2!important}
body.ma-v235-shell #view .ma-v259-duration .ma-v259-duration-total{padding:6px!important}
body.ma-v235-shell #view .ma-v263-work-approval{margin-top:4px!important}
body.ma-v235-shell #view .ma-v263-approval{gap:4px!important;padding:6px 8px 7px!important}
body.ma-v235-shell #view .ma-v263-approval .ma-v263-approval-option{min-height:29px!important;padding:4px 8px!important;font-size:11px!important;gap:7px!important}
body.ma-v235-shell #view .ma-v263-approval-option input[type=radio]{width:14px!important;height:14px!important;min-height:14px!important}
body.ma-v235-shell #view .ma-v259-workorder{margin:4px 0!important;padding:6px 8px!important}
body.ma-v235-shell #view .ma-v259-actions{margin-top:6px!important;gap:6px!important}
body.ma-v235-shell #view .ma-v259-actions button{min-height:36px!important;padding:7px 9px!important;font-size:11px!important}

/* Kalenderkopf: Zusatzfeld „Termin für Rechnung auswählen“ sauber mitführen. */
body.ma-v235-shell #view .ma-v13-calendar-head{
  display:flex!important;flex-wrap:wrap!important;align-items:flex-start!important;
  justify-content:space-between!important;gap:10px!important;
}
body.ma-v235-shell #view .ma-v13-cal-controls{
  display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:flex-end!important;
  gap:8px!important;min-width:0!important;overflow:visible!important;
}
body.ma-v235-shell #view .ma-v13-cal-controls > *{min-width:0!important}
body.ma-v235-shell #view .ma-v13-cal-controls :is(button,select){min-height:38px!important;max-width:100%!important}
body.ma-v235-shell #view #maV214CalendarInvoice{
  display:grid!important;grid-template-columns:minmax(185px,1fr) auto!important;align-items:center!important;
  gap:8px!important;flex:1 1 355px!important;min-width:min(100%,355px)!important;max-width:100%!important;
}
body.ma-v235-shell #view #maV214CalendarInvoice select{
  width:100%!important;min-width:0!important;max-width:100%!important;
}
body.ma-v235-shell #view #maV214CalendarInvoice button{
  white-space:nowrap!important;min-width:170px!important;
}
@media(max-width:1120px){
  body.ma-v235-shell #view .ma-v259-layout{grid-template-columns:1fr!important}
}
@media(max-width:980px){
  body.ma-v235-shell #view .ma-v13-cal-controls{justify-content:flex-start!important}
  body.ma-v235-shell #view #maV214CalendarInvoice{grid-template-columns:minmax(0,1fr)!important;flex:1 1 100%!important;width:100%!important}
  body.ma-v235-shell #view #maV214CalendarInvoice button{min-width:0!important;width:100%!important}
}
@media(max-width:760px){
  body.ma-v235-shell #view .ma-v259-search-row{grid-template-columns:1fr!important}
  body.ma-v235-shell #view .ma-v259-viewport{height:clamp(240px,31dvh,300px)!important;min-height:240px!important}
  body.ma-v235-shell #view .ma-v259-duration{flex-wrap:wrap!important;justify-content:center!important}
}


/* ========================================================================
   V027.4 FIX3_KALENDERFARBEN – Bestandskunden-Kalender:
   Arbeitsende muss blau, Puffer-Ende gelb erscheinen (wie bei Neukunden).
   Spezifitaet bewusst hoeher als alte slot-, nth-child-, Disabled- und
   Classic-Theme-Regeln. Nur Markierungen – keine Buchungslogik geaendert.
   Die gelbe Puffer-Ende-Zeile signalisiert die Freigabe ab diesem Zeitpunkt.
   ======================================================================== */
html[data-skin] body.ma-v235-shell #view .ma-v259-editor .ma-v259-cal .ma-v259-lane > button.planner-slot.ma-v271-work-end {
  background:#087fa7!important;
  color:#fff!important;
  border-bottom:1px solid #5ce9f5!important;
  box-shadow:inset 5px 0 #70eafa!important;
  opacity:1!important;
  font-weight:850!important;
}
html[data-skin] body.ma-v235-shell #view .ma-v259-editor .ma-v259-cal .ma-v259-lane > button.planner-slot.ma-v271-work-end > span {
  color:#fff!important;
  opacity:1!important;
}
html[data-skin] body.ma-v235-shell #view .ma-v259-editor .ma-v259-cal .ma-v259-lane > button.planner-slot.ma-v271-buffer-end {
  background:#f7be3d!important;
  color:#1d2333!important;
  border-bottom:1px solid #ffe7a6!important;
  box-shadow:inset 5px 0 #fff1bb!important;
  opacity:1!important;
  font-weight:850!important;
}
html[data-skin] body.ma-v235-shell #view .ma-v259-editor .ma-v259-cal .ma-v259-lane > button.planner-slot.ma-v271-buffer-end > span {
  color:#1d2333!important;
  opacity:1!important;
}


/* ===========================================================================
   V027.4 FIX4 – Neukunden & Termin: fehlende END-Markierungen.
   Ursache: FIX3 gestaltete .ma-v259-editor (Bestandskunde), waehrend
   die Neukundenmaske die Slots in .ma-v262-viewport rendert. Auch hier
   verwenden die Endgrenzen dieselben ma-v271-*-end Klassen.
   Nur Darstellung; Termin-/Puffer-/Supabase-Logik bleibt unveraendert.
   =========================================================================== */
/* Blau: Arbeitsende – Zeitpunkt, ab dem die 15 Minuten Gratispuffer laufen. */
html[data-skin] body.ma-v235-shell #view .ma-v262-new-customer .ma-v262-viewport > .planner-lane > button.planner-slot.ma-v271-work-end:not(:disabled) {
  background:#087fa7!important;
  background-image:none!important;
  color:#ffffff!important;
  border-color:#5ce9f5!important;
  box-shadow:inset 5px 0 #70eafa!important;
  opacity:1!important;
  font-weight:850!important;
}
html[data-skin] body.ma-v235-shell #view .ma-v262-new-customer .ma-v262-viewport > .planner-lane > button.planner-slot.ma-v271-work-end:not(:disabled) > span {
  color:#ffffff!important;
  opacity:1!important;
  text-shadow:none!important;
  font-weight:850!important;
}
/* Gelb: Puffer-Ende – Grenze ist ab genau diesem Slot frei. */
html[data-skin] body.ma-v235-shell #view .ma-v262-new-customer .ma-v262-viewport > .planner-lane > button.planner-slot.ma-v271-buffer-end:not(:disabled) {
  background:#f7be3d!important;
  background-image:none!important;
  color:#1d2333!important;
  border-color:#ffe7a6!important;
  box-shadow:inset 5px 0 #fff1bb!important;
  opacity:1!important;
  font-weight:850!important;
}
html[data-skin] body.ma-v235-shell #view .ma-v262-new-customer .ma-v262-viewport > .planner-lane > button.planner-slot.ma-v271-buffer-end:not(:disabled) > span {
  color:#1d2333!important;
  opacity:1!important;
  text-shadow:none!important;
  font-weight:850!important;
}


/* ========================================================================
   V027.4 FIX5 – Bestandskunden: beide Buehnen mit voller nutzbarer Hoehe.
   FIX2 setzte nachtraeglich height:clamp(...335px) mit !important und
   ueberschrieb damit das flexible Desktop-Layout aus V026.5.
   Nur Darstellung; Zeitslots, Farbmarkierungen und Speicherlogik bleiben gleich.
   ======================================================================== */
/* Breiten/Zoomstufen ausserhalb des bildschirmfuellenden Desktop-Modus:
   groessere, ans Viewport angepasste Zeitachsen statt des 335px-Limits. */
@media screen and (max-width:1179px), screen and (max-height:729px){
  body.ma-v235-shell #view .ma-v259-editor .ma-v259-viewport{
    height:clamp(300px,62dvh,740px)!important;
    min-height:0!important;
    max-height:none!important;
    overflow-y:auto!important;
  }
}
/* Bildschirmfuellender Desktop-Modus: die Zeitachsen werden als Flex-Kind
   exakt so hoch wie die verbleibende Kalenderkarte, ohne feste Obergrenze. */
@media screen and (min-width:1180px) and (min-height:730px){
  body.ma-v235-shell #view .ma-v259-editor .ma-v259-cal{
    display:flex!important;
    flex-direction:column!important;
    min-height:0!important;
    overflow:hidden!important;
  }
  body.ma-v235-shell #view .ma-v259-editor .ma-v259-lifts{
    flex:1 1 auto!important;
    min-height:0!important;
    height:auto!important;
    overflow:hidden!important;
    align-items:stretch!important;
  }
  body.ma-v235-shell #view .ma-v259-editor .ma-v259-lifts > .planner-lift{
    display:flex!important;
    flex-direction:column!important;
    min-height:0!important;
    height:100%!important;
    overflow:hidden!important;
  }
  body.ma-v235-shell #view .ma-v259-editor .ma-v259-viewport{
    flex:1 1 0%!important;
    height:0!important;
    min-height:0!important;
    max-height:none!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
  }
}


/* =======================================================================
   V027.4 MOBILE – Smartphones bis 760px. DESKTOP EXAKT UNVERAENDERT.
   Reines Bildschirm-Layout; keine Aenderung an Druck, Daten oder Terminen.
   Das Desktop-Formular verwendet weiterhin seine unveraenderten Spalten;
   zwei mobile CSS-Variablen schalten inline gesetzte Spalten nur mobil um.
   ======================================================================= */
@media screen and (max-width:760px){
  html{overflow-x:clip}
  body.ma-v235-shell{width:100%!important;max-width:100%!important;overflow-x:clip!important}
  body.ma-v235-shell #app:not(.hidden){
    width:100%!important;min-width:0!important;max-width:100%!important;
    margin:0!important;padding:66px 10px max(32px,env(safe-area-inset-bottom))!important;
    min-height:100dvh!important;height:auto!important;max-height:none!important;
    overflow:visible!important;box-sizing:border-box!important;
  }
  body.ma-v235-shell #view{min-width:0!important;max-width:100%!important;overflow:visible!important}
  body.ma-v235-shell #view *,body.ma-v235-shell #view *::before,body.ma-v235-shell #view *::after{box-sizing:border-box}
  body.ma-v235-shell #view :is(.grid,.two,.columns,.actions,.overview-columns,.overview-stats){min-width:0}
  body.ma-v235-shell #view :is(.card,.ma-v241-panel,.ma-v259-cal,.ma-v259-panel,.ma-v262-customer-card,.ma-v262-vehicle-card){max-width:100%!important;min-width:0!important}
  body.ma-v235-shell #view h2{overflow-wrap:anywhere;line-height:1.2}
  body.ma-v235-shell #view h3{overflow-wrap:anywhere;line-height:1.25}

  /* Festes Menue mit Touch-gerechter Menue-Taste und ausserhalb schliessbarem Overlay. */
  body.ma-v235-shell>#maV235MobileToggle{
    position:fixed!important;top:max(8px,env(safe-area-inset-top))!important;left:10px!important;
    bottom:auto!important;z-index:501!important;display:flex!important;align-items:center!important;
    justify-content:center!important;min-width:110px!important;min-height:45px!important;
    padding:8px 15px!important;font-size:15px!important;border-radius:12px!important;
  }
  body.ma-v235-shell #maV235Sidebar{
    position:fixed!important;top:0!important;left:0!important;bottom:0!important;
    width:min(310px,86vw)!important;height:100dvh!important;max-height:100dvh!important;
    padding:65px 12px max(20px,env(safe-area-inset-bottom))!important;
    overflow-y:auto!important;overscroll-behavior:contain!important;
    z-index:500!important;
  }
  body.ma-v235-shell.ma-v235-mobile-open::before{
    content:"";position:fixed;inset:0;background:rgba(0,8,18,.72);
    z-index:490;pointer-events:auto;
  }
  body.ma-v235-shell.ma-v235-mobile-open{overflow:hidden!important}
  body.ma-v235-shell #maV235Sidebar .ma-v235-brand{min-height:65px!important}
  body.ma-v235-shell #maV235Sidebar #nav>button,
  body.ma-v235-shell #maV235Sidebar #adminTopActions>button,
  body.ma-v235-shell #maV235Sidebar #adminTopActions>.ma-v11-menu>.ma-v11-menu-button{
    min-height:43px!important;max-height:none!important;font-size:13px!important;padding:9px 11px!important;
  }
  /* Mobile Untermenues bleiben innerhalb des sichtbaren Viewports. */
  body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools .ma-v11-menu-dropdown{
    width:min(285px,calc(100vw - 20px))!important;max-width:calc(100vw - 20px)!important;
  }
  /* Keine zwangsweisen Zooms in Safari bei Formular-Eingaben. */
  body.ma-v235-shell #view :is(input,select,textarea){font-size:16px!important;min-width:0;max-width:100%}
  body.ma-v235-shell #view :is(button,input[type=button],input[type=submit]){touch-action:manipulation}

  /* Dashboard: 2 Kennzahlen je Zeile, Termine und Schnellzugriffe darunter. */
  body.ma-v235-shell #view .ma-v241-dashboard{min-width:0!important;width:100%!important;overflow:visible!important}
  body.ma-v235-shell #view :is(.ma-v241-metrics,.ma-v238-dashboard .overview-stats,.overview-page .overview-stats){
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;
  }
  body.ma-v235-shell #view .ma-v241-metrics>.ma-v248-clock-card:last-child:nth-child(odd){grid-column:1/-1}
  body.ma-v235-shell #view .ma-v241-metric{min-height:88px!important;padding:11px!important}
  body.ma-v235-shell #view .ma-v241-metric-value{font-size:26px!important}
  body.ma-v235-shell #view .ma-v241-banner{min-height:128px!important;background-size:auto 100%!important}
  body.ma-v235-shell #view .ma-v241-banner-content{padding:13px!important;max-width:95%!important}
  body.ma-v235-shell #view .ma-v241-banner-brand{font-size:clamp(17px,5.5vw,26px)!important;overflow-wrap:anywhere}
  body.ma-v235-shell #view :is(.ma-v241-main-grid,.ma-v241-bottom-grid,.ma-v241-right-stack,.ma-v235-right-column,.ma-v238-bottom-cards){
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important;
  }
  body.ma-v235-shell #view :is(.ma-v241-quick-grid,.ma-v235-quick-grid){
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;
  }
  body.ma-v235-shell #view .ma-v241-quick-grid button{min-width:0!important;min-height:66px!important;padding:10px 6px!important}
  body.ma-v235-shell #view .ma-v241-heading{display:block!important}
  body.ma-v235-shell #view .ma-v241-heading-actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
  body.ma-v235-shell #view .ma-v241-appointment{
    display:grid!important;grid-template-columns:55px minmax(0,1fr)!important;
    align-items:start!important;gap:6px 9px!important;min-width:0!important;height:auto!important;
  }
  body.ma-v235-shell #view .ma-v241-appointment .ma-v241-time{grid-column:1!important;grid-row:1!important}
  body.ma-v235-shell #view .ma-v241-appointment .ma-v241-job{grid-column:2!important;grid-row:1!important;min-width:0!important}
  body.ma-v235-shell #view .ma-v241-appointment .ma-v241-state{grid-column:1/-1!important;grid-row:auto!important;justify-self:start!important}
  body.ma-v235-shell #view .ma-v241-appointment .ma-v245-row-actions{
    grid-column:1/-1!important;grid-row:auto!important;display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important;gap:7px!important;
  }
  body.ma-v235-shell #view .ma-v241-appointment .ma-v245-row-actions button{min-height:43px!important}

  /* Bestandskunden-Termin: Kalender und Bearbeitungsmaske untereinander. */
  body.ma-v235-shell #view .ma-v259-editor{
    display:block!important;width:100%!important;height:auto!important;max-height:none!important;
    min-height:0!important;overflow:visible!important;
  }
  body.ma-v235-shell #view .ma-v259-layout{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;
    height:auto!important;min-height:0!important;overflow:visible!important;gap:11px!important;
  }
  body.ma-v235-shell #view .ma-v259-cal,
  body.ma-v235-shell #view .ma-v259-panel{
    display:block!important;height:auto!important;max-height:none!important;min-height:0!important;
    overflow:visible!important;padding:12px!important;
  }
  body.ma-v235-shell #view .ma-v259-dates{display:flex!important;flex-wrap:wrap!important;gap:7px!important}
  body.ma-v235-shell #view .ma-v259-dates label{order:-1!important;flex:1 1 100%!important}
  body.ma-v235-shell #view .ma-v259-dates input[type=date]{width:100%!important;max-width:100%!important}
  body.ma-v235-shell #view .ma-v259-dates button{flex:1 1 28%!important;min-height:43px!important;height:auto!important;max-height:none!important;padding:8px!important}
  body.ma-v235-shell #view .ma-v259-lifts{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;
    height:auto!important;min-height:0!important;overflow:visible!important;gap:12px!important;
  }
  body.ma-v235-shell #view .ma-v259-lifts>.planner-lift{height:auto!important;max-height:none!important;min-height:0!important;display:block!important}
  body.ma-v235-shell #view .ma-v259-editor .ma-v259-viewport{
    display:block!important;height:clamp(250px,39dvh,340px)!important;
    min-height:250px!important;max-height:340px!important;overflow-y:auto!important;
    overflow-x:hidden!important;overscroll-behavior:contain!important;
    -webkit-overflow-scrolling:touch;
  }
  body.ma-v235-shell #view .ma-v259-panel .ma-v259-search-row{grid-template-columns:minmax(0,1fr)!important;gap:5px!important}
  body.ma-v235-shell #view .ma-v259-panel :is(input,select,textarea){min-height:44px!important;font-size:16px!important}
  body.ma-v235-shell #view .ma-v259-clear button{top:11px!important;min-height:30px!important}
  body.ma-v235-shell #view .ma-v259-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  body.ma-v235-shell #view .ma-v259-actions button{min-height:44px!important;white-space:normal!important}
  body.ma-v235-shell #view .ma-v259-actions #maV259Save{grid-column:1/-1!important}
  body.ma-v235-shell #view .ma-v259-duration{flex-wrap:wrap!important;justify-content:center!important}

  /* Neukunden: Schritt-Tabs, Einzelspalten und gestapelte Buehnen. */
  body.ma-v235-shell #view .ma-v262-new-customer,
  body.ma-v235-shell #view .ma-v262-new-customer #maV209Form,
  body.ma-v235-shell #view .ma-v262-new-customer .ma-v209-form{
    width:100%!important;max-width:100%!important;min-width:0!important;
    height:auto!important;max-height:none!important;min-height:0!important;overflow:visible!important;
  }
  body.ma-v235-shell #view .ma-v262-new-customer .ma-v209-form{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-items:start!important;
    grid-template-rows:auto!important;gap:10px!important;
  }
  body.ma-v235-shell #view .ma-v262-new-customer .ma-v274-tabs,
  body.ma-v235-shell #view .ma-v262-new-customer .ma-v209-form>.ma-v262-appointment-card{
    grid-column:1/-1!important;width:100%!important;
  }
  body.ma-v235-shell #view .ma-v262-new-customer .ma-v274-tabs{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.ma-v235-shell #view .ma-v262-new-customer .ma-v274-tabs button{min-width:0!important;min-height:55px!important;padding:8px!important;overflow-wrap:anywhere}
  body.ma-v235-shell #view .ma-v262-new-customer{
    --ma-v274-customer-label-cols:minmax(0,1fr);
    --ma-v274-vehicle-label-cols:minmax(0,1fr);
  }
  body.ma-v235-shell #view .ma-v262-new-customer :is(.ma-v262-customer-card,.ma-v262-vehicle-card){
    display:block!important;height:auto!important;max-height:none!important;min-height:0!important;
    overflow:visible!important;padding:12px!important;
  }
  body.ma-v235-shell #view .ma-v262-new-customer :is(.ma-v262-customer-card,.ma-v262-vehicle-card)>.grid{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important;
  }
  body.ma-v235-shell #view .ma-v262-new-customer :is(.ma-v262-customer-card,.ma-v262-vehicle-card)>.grid>label:not(.ma-v274-backed-field){
    display:grid!important;gap:5px!important;min-width:0!important;max-width:100%!important;
    align-items:start!important;line-height:1.35!important;
  }
  body.ma-v235-shell #view .ma-v262-new-customer :is(.ma-v262-customer-card,.ma-v262-vehicle-card) :is(input:not([type=file]),select){
    height:auto!important;min-height:44px!important;font-size:16px!important;width:100%!important;
  }
  body.ma-v235-shell #view .ma-v262-new-customer .ma-v241-booking-layout{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;
    height:auto!important;max-height:none!important;overflow:visible!important;gap:12px!important;
  }
  body.ma-v235-shell #view .ma-v262-new-customer .ma-v210-planner-grid,
  body.ma-v235-shell #view .ma-v262-new-customer .ma-v259-lifts{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:11px!important;
  }
  body.ma-v235-shell #view .ma-v262-new-customer .ma-v262-viewport{
    height:clamp(250px,39dvh,340px)!important;min-height:250px!important;max-height:340px!important;
    overflow-x:hidden!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch;
  }
  body.ma-v235-shell #view .ma-v262-new-customer .ma-v241-booking-details{width:100%!important;max-height:none!important;overflow:visible!important}
  body.ma-v235-shell #view .ma-v262-new-customer .ma-v262-actions{grid-template-columns:minmax(0,1fr)!important;gap:8px!important}
  body.ma-v235-shell #view .ma-v262-new-customer .ma-v262-actions button{min-height:45px!important;font-size:14px!important}
  body.ma-v235-shell #view .ma-v262-new-customer .ma-v210-planner-head .actions{
    display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:6px!important;
  }
  body.ma-v235-shell #view .ma-v262-new-customer .ma-v210-planner-head :is(button,input){min-height:44px!important;height:auto!important;max-height:none!important}

  /* Werkstattkalender und Monatsraster ohne Ausfransen der ganzen Seite. */
  body.ma-v235-shell #view .ma-v13-calendar{max-width:100%!important;min-width:0!important}
  body.ma-v235-shell #view .ma-v13-calendar-head{display:block!important}
  body.ma-v235-shell #view .ma-v13-cal-controls{
    display:flex!important;flex-wrap:wrap!important;justify-content:flex-start!important;
    gap:7px!important;min-width:0!important;width:100%!important;
  }
  body.ma-v235-shell #view .ma-v13-cal-controls>button{min-height:44px!important;flex:1 1 auto!important}
  body.ma-v235-shell #view .ma-v13-cal-controls>#maV13Create{flex:1 1 100%!important}
  body.ma-v235-shell #view #maV214CalendarInvoice{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;
    width:100%!important;min-width:0!important;flex:1 1 100%!important;gap:8px!important;
  }
  body.ma-v235-shell #view #maV214CalendarInvoice button,
  body.ma-v235-shell #view #maV214CalendarInvoice select{width:100%!important;max-width:100%!important;min-height:44px!important}
  body.ma-v235-shell #view .ma-v13-week-columns{
    display:flex!important;gap:10px!important;align-items:flex-start!important;
    max-width:100%!important;min-width:0!important;
    overflow-x:auto!important;overflow-y:visible!important;-webkit-overflow-scrolling:touch;
  }
  body.ma-v235-shell #view .ma-v13-week-columns>.ma-v13-day-grid{
    flex:0 0 min(100%,400px)!important;min-width:min(100%,320px)!important;max-width:400px!important;
  }
  body.ma-v235-shell #view .ma-v13-lift-columns{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
  body.ma-v235-shell #view .ma-v13-lift,
  body.ma-v235-shell #view .ma-v13-slots{min-width:0!important;max-width:100%!important}
  body.ma-v235-shell #view .ma-v13-slot{min-height:40px!important;height:auto!important}
  body.ma-v235-shell #view .ma-v13-month{grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:2px!important}
  body.ma-v235-shell #view .ma-v13-month-cell{min-width:0!important;min-height:49px!important;padding:3px!important;overflow:hidden!important}
  body.ma-v235-shell #view .ma-v13-month-appointment{max-width:100%!important;padding:2px 1px!important;overflow:hidden!important}
  body.ma-v235-shell #view .ma-v13-month-appointment :is(span,small){display:none!important}
  body.ma-v235-shell #view .ma-v13-month-appointment b{font-size:9px!important;white-space:normal!important;overflow-wrap:anywhere}

  /* Rechnungseditor: Belegbearbeitung vor Vorschau, ohne horizontalen Seiten-Scroll. */
  body.ma-v235-shell #view #maV214InvoiceRoot .v214-layout,
  body.ma-v235-shell #view #maV214InvoiceRoot .v228-data-pickers,
  body.ma-v235-shell #view #maV214InvoiceRoot .v267-pickers,
  body.ma-v235-shell #view #maV214InvoiceRoot .ma-v272-catalog-discount-row{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:9px!important;
    width:100%!important;min-width:0!important;
  }
  body.ma-v235-shell #view #maV214InvoiceRoot .v214-panel,
  body.ma-v235-shell #view #maV214InvoiceRoot .v214-paper{width:100%!important;min-width:0!important;padding:12px!important}
  body.ma-v235-shell #view #maV214InvoiceRoot .v214-toolbar{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important}
  body.ma-v235-shell #view #maV214InvoiceRoot .v214-editrow{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;min-width:0!important;
  }
  body.ma-v235-shell #view #maV214InvoiceRoot .v214-editrow label:first-child{grid-column:1/-1!important}
  body.ma-v235-shell #view #maV214InvoiceRoot .v214-editrow :is(input,select){width:100%!important;min-height:44px!important}
  body.ma-v235-shell #view #maV214InvoiceRoot .v214-editrow .v228-add{
    grid-column:1/-1!important;min-height:44px!important;width:100%!important;
  }
  body.ma-v235-shell #view #maV214InvoiceRoot .v214-actions{grid-template-columns:minmax(0,1fr)!important}
  body.ma-v235-shell #view #maV214InvoiceRoot .v214-actions button{min-height:44px!important;font-size:14px!important}
  body.ma-v235-shell #view #maV214InvoiceRoot .v214-paper{overflow-x:auto!important;max-height:none!important}
  body.ma-v235-shell #view #maV214InvoiceRoot .v214-paper iframe{width:100%!important;height:520px!important;min-height:450px!important}

  /* Listen und Tabellen bleiben nutzbar: horizontal nur IM Tabellenbereich wischen. */
  body.ma-v235-shell #view .scroll{max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch}
  body.ma-v235-shell #view .scroll table{min-width:550px!important}
  body.ma-v235-shell #view table:not(.ma-v13-month){max-width:100%;}

  /* Dialoge auf kleine Viewports begrenzen (ohne Positionierung umzubauen). */
  body.ma-v235-shell :is(.ma-order-dialog,.ma-brand-dialog,.ma-v227-dialog,.ma-v218-hourly-dialog){
    max-width:calc(100vw - 20px)!important;max-height:calc(100dvh - 30px)!important;
    overflow-y:auto!important;
  }
}
/* Login auf iPhone: Schriftgroesse >=16px verhindert das automatische Zoom-In. */
@media screen and (max-width:760px){
  #login.ma-v265-login{max-width:calc(100vw - 20px)!important;min-width:0!important}
  #login.ma-v265-login :is(#username,#password){font-size:16px!important}
  #login.ma-v265-login :is(#loginBtn,#maV265TogglePassword){min-height:44px!important}
}
@media screen and (max-width:380px){
  body.ma-v235-shell #view .ma-v241-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.ma-v235-shell #view .ma-v259-dates button{font-size:11px!important;padding:6px 5px!important}
  body.ma-v235-shell #view .ma-v274-tabs button small{display:none!important}
}


/* =====================================================================
   V027.4 LOGIN FIX3 – ausschließlich transform/opacity, keine Größenwechsel.
   Bestehendes Layout bleibt während und nach den Animationen gleich.
   ===================================================================== */
@keyframes maV282BrandEntrance{
  from{opacity:0;transform:translate3d(-14px,0,0)}
  to{opacity:1;transform:translate3d(0,0,0)}
}
@keyframes maV282CardEntrance{
  from{opacity:0;transform:translate3d(0,18px,0)}
  to{opacity:1;transform:translate3d(0,0,0)}
}
@keyframes maV282NavEntrance{
  from{opacity:.4;transform:translate3d(0,-11px,0) scaleY(.98)}
  to{opacity:1;transform:translate3d(0,0,0) scaleY(1)}
}
@keyframes maV282PanelEntrance{
  from{opacity:0;transform:translate3d(0,11px,0)}
  to{opacity:1;transform:translate3d(0,0,0)}
}
@keyframes maV282SuccessEntrance{
  0%{opacity:0;transform:translate3d(-50%,-50%,0) scale(.95)}
  35%{opacity:1;transform:translate3d(-50%,-50%,0) scale(1)}
  70%{opacity:1;transform:translate3d(-50%,-50%,0) scale(1)}
  100%{opacity:0;transform:translate3d(-50%,-50%,0) scale(1)}
}
#login.ma-v265-login.ma-v282-login-intro .ma-v265-login-brand{
  animation:maV282BrandEntrance .66s cubic-bezier(.22,1,.36,1) both;
}
#login.ma-v265-login.ma-v282-login-intro .ma-v265-login-card{
  animation:maV282CardEntrance .68s .04s cubic-bezier(.22,1,.36,1) both;
}
/* WICHTIG: keine einzelnen Formular- oder Logo-Animationen mehr. */
@media(min-width:761px){
  body.ma-v235-shell #maV235Sidebar.ma-v282-nav-enter{
    animation:maV282NavEntrance .56s cubic-bezier(.22,1,.36,1) both;
    transform-origin:center top;
  }
}
body.ma-v235-shell #view .ma-v282-panel-enter{
  animation:maV282PanelEntrance .44s cubic-bezier(.22,1,.36,1) both;
  animation-delay:var(--ma-v282-delay,0ms);
}
.ma-v282-confirmation{
  position:fixed;z-index:50000;top:48%;left:50%;display:grid;place-items:center;
  width:70px;height:70px;box-sizing:border-box;border-radius:50%;pointer-events:none;
  background:#087c79;color:#fff;border:2px solid #4afbe3;font:800 36px/1 'Segoe UI',Arial,sans-serif;
  box-shadow:0 0 20px #10d8ad6b;animation:maV282SuccessEntrance .48s ease-out both;
}
@media(max-width:760px){
  #login.ma-v265-login.ma-v282-login-intro .ma-v265-login-brand{animation-duration:.5s}
  #login.ma-v265-login.ma-v282-login-intro .ma-v265-login-card{animation-duration:.53s}
  body.ma-v235-shell #view .ma-v282-panel-enter{animation-duration:.34s}
}
@media(prefers-reduced-motion:reduce){
  #login.ma-v265-login.ma-v282-login-intro .ma-v265-login-brand,
  #login.ma-v265-login.ma-v282-login-intro .ma-v265-login-card,
  body.ma-v235-shell #view .ma-v282-panel-enter,
  body.ma-v235-shell #maV235Sidebar.ma-v282-nav-enter,
  .ma-v282-confirmation{animation:none!important;opacity:1!important;transform:none!important}
}
@media print{
  #login.ma-v265-login.ma-v282-login-intro .ma-v265-login-brand,
  #login.ma-v265-login.ma-v282-login-intro .ma-v265-login-card,
  body.ma-v235-shell #view .ma-v282-panel-enter,
  body.ma-v235-shell #maV235Sidebar.ma-v282-nav-enter{animation:none!important}
  .ma-v282-confirmation{display:none!important}
}


/* FIX4 / V027.4: Login-Animation beim Erzeugen des Login-DOM starten,
   kein JS-gesteuerter Start nach der ersten sichtbaren Darstellung. */
@keyframes maV283BrandEntrance{
  from{opacity:0;transform:translate3d(-12px,0,0)}
  to{opacity:1;transform:translate3d(0,0,0)}
}
@keyframes maV283CardEntrance{
  from{opacity:0;transform:translate3d(0,14px,0)}
  to{opacity:1;transform:translate3d(0,0,0)}
}
#login.ma-v265-login.ma-v283-login-intro .ma-v265-login-brand{
  animation:maV283BrandEntrance .58s cubic-bezier(.22,1,.36,1) both!important;
}
#login.ma-v265-login.ma-v283-login-intro .ma-v265-login-card{
  animation:maV283CardEntrance .64s cubic-bezier(.22,1,.36,1) both!important;
}
/* Bestehender Button und Klickziel bleiben an derselben Stelle. */
#login.ma-v265-login #maV265SubmitHost{
  position:relative;z-index:3;pointer-events:auto!important;
}
#login.ma-v265-login #loginBtn{
  position:relative;z-index:1;pointer-events:auto!important;
  touch-action:manipulation;cursor:pointer;
}
@media(prefers-reduced-motion:reduce){
  #login.ma-v265-login.ma-v283-login-intro :is(.ma-v265-login-brand,.ma-v265-login-card){
    animation:none!important;opacity:1!important;transform:none!important;
  }
}
@media print{
  #login.ma-v265-login.ma-v283-login-intro :is(.ma-v265-login-brand,.ma-v265-login-card){
    animation:none!important;
  }
}


/* ============================================================================
   V027.5 – vorhandene Login-Fenster unveraendert, Pop-in + Werkstatttor.
   Jedes Overlay ist temporaer; keinerlei Aenderung an normalen Seitenlayouts.
   ============================================================================ */
@keyframes maV284LoginPopLeft{
  from{opacity:0;transform:translate3d(-16px,17px,0) scale(.975)}
  to{opacity:1;transform:translate3d(0,0,0) scale(1)}
}
@keyframes maV284LoginPopRight{
  from{opacity:0;transform:translate3d(16px,17px,0) scale(.975)}
  to{opacity:1;transform:translate3d(0,0,0) scale(1)}
}
#login.ma-v265-login.ma-v284-login-intro .ma-v265-login-brand{
  animation:maV284LoginPopLeft .6s cubic-bezier(.18,.82,.2,1) both!important;
  will-change:transform,opacity;
}
#login.ma-v265-login.ma-v284-login-intro .ma-v265-login-card{
  animation:maV284LoginPopRight .7s cubic-bezier(.18,.82,.2,1) both!important;
  will-change:transform,opacity;
}
/* Prevent elements hidden by an old entrance animation from staying invisible. */
#login.ma-v265-login:not(.ma-v284-login-intro) :is(.ma-v265-login-brand,.ma-v265-login-card){
  opacity:1!important;transform:none!important;
}
body.ma-v284-gate-playing{overflow:hidden!important}
body.ma-v284-gate-playing .ma-v282-confirmation{display:none!important}
.ma-v284-gate{
  position:fixed;inset:0;z-index:2147483600;isolation:isolate;
  overflow:hidden;pointer-events:all;background:transparent;
}
.ma-v284-gate-door{
  position:absolute;top:0;bottom:0;width:50.15%;
  background:
    repeating-linear-gradient(180deg,rgba(200,244,255,.09) 0px,transparent 3px,transparent 76px,rgba(0,0,0,.6) 77px,rgba(90,174,208,.35) 80px),
    linear-gradient(96deg,#0b1928 0%,#142e40 17%,#081726 42%,#1b394b 77%,#071421 100%);
  box-shadow:inset 0 0 80px #000b,0 0 42px #0008;
  transform:translate3d(0,0,0);
  transition:transform 1.17s cubic-bezier(.18,.76,.2,1);
  will-change:transform;
}
.ma-v284-gate-left{left:0;border-right:5px solid #48dff2}
.ma-v284-gate-right{right:0;border-left:5px solid #48dff2}
.ma-v284-gate-door::before{
  content:'';position:absolute;inset:17px 20px;
  border:3px solid rgba(75,163,197,.35);border-radius:4px;
  box-shadow:inset 0 0 42px #0007,0 0 18px #05bcd424;
  background:repeating-linear-gradient(180deg,transparent 0 73px,#83d3e014 74px 76px);
  pointer-events:none;
}
.ma-v284-gate-door i{
  position:absolute;display:block;top:9%;bottom:9%;width:10px;
  background:linear-gradient(90deg,#17374d,#52def3,#0b2539);
  box-shadow:0 0 17px #46deff91,0 0 36px #00b5fa55;
}
.ma-v284-gate-left i{right:8px}
.ma-v284-gate-right i{left:8px}
.ma-v284-gate-seam{
  position:absolute;left:50%;top:0;bottom:0;width:4px;transform:translateX(-50%);
  background:#c7fcff;box-shadow:0 0 18px 8px #00dfff79;
  transition:opacity .16s linear;pointer-events:none;
}
.ma-v284-gate-sparks{
  position:absolute;inset:0;width:100%;height:100%;pointer-events:none;
}
.ma-v284-gate-opening .ma-v284-gate-left{transform:translate3d(-101%,0,0)}
.ma-v284-gate-opening .ma-v284-gate-right{transform:translate3d(101%,0,0)}
.ma-v284-gate-opening .ma-v284-gate-seam{opacity:0}
@media(max-width:760px){
  #login.ma-v265-login.ma-v284-login-intro .ma-v265-login-brand{animation-duration:.45s}
  #login.ma-v265-login.ma-v284-login-intro .ma-v265-login-card{animation-duration:.5s}
  .ma-v284-gate-door::before{inset:12px 8px}
}
@media(prefers-reduced-motion:reduce){
  #login.ma-v265-login.ma-v284-login-intro :is(.ma-v265-login-brand,.ma-v265-login-card){
    animation:none!important;opacity:1!important;transform:none!important;
  }
  .ma-v284-gate{display:none!important}
}
@media print{.ma-v284-gate{display:none!important}}


/* ============================================================================
   V027.6: Ein einziger F5-Ladezustand und genau zwei Login-Pop-Ins.
   Die eigentlichen Fensterabmessungen aus V027.5 bleiben unberuehrt.
   Die Inline-Fruehregel in index.html ist fuer 100%-Erstbildschutz noetig.
   ============================================================================ */
@keyframes maV286LoginPopLeft{
  0%{opacity:0;transform:translate3d(-16px,12px,0) scale(.986)}
  100%{opacity:1;transform:translate3d(0,0,0) scale(1)}
}
@keyframes maV286LoginPopRight{
  0%{opacity:0;transform:translate3d(16px,12px,0) scale(.986)}
  100%{opacity:1;transform:translate3d(0,0,0) scale(1)}
}
#login.ma-v265-login.ma-v286-login-intro .ma-v265-login-brand{
  animation:maV286LoginPopLeft .62s cubic-bezier(.19,.79,.22,1) both!important;
}
#login.ma-v265-login.ma-v286-login-intro .ma-v265-login-card{
  animation:maV286LoginPopRight .66s .025s cubic-bezier(.19,.79,.22,1) both!important;
}
/* Altes Intro niemals erneut aktivieren. */
#login.ma-v265-login.ma-v286-login-intro .ma-v265-brand-shimmer{animation:none!important}

/* Schweres zweiteiliges Werkstatttor mit spuerbarer Tiefe. */
.ma-v284-gate-door{
  transition:transform 1.66s cubic-bezier(.18,.76,.16,1)!important;
  background:
    repeating-linear-gradient(180deg,transparent 0 48px,#010b1588 49px 51px,#71b7d315 52px 54px,transparent 56px 75px),
    repeating-linear-gradient(90deg,transparent 0 113px,#0005 114px 117px,#a6d8ec0e 118px 119px,transparent 120px 160px),
    linear-gradient(100deg,#061321,#12324b 22%,#07182a 46%,#25415a 78%,#061322 100%)!important;
  box-shadow:inset 0 0 95px #000c,inset 0 12px 50px #a7f5ff16,0 0 42px #000a!important;
}
.ma-v284-gate-door::before{
  inset:11px 14px!important;
  border:3px solid #6fa5bf52!important;border-radius:8px!important;
  box-shadow:inset 0 0 30px #000a,0 0 28px #0bdbf330!important;
}
.ma-v284-gate-left{border-right:7px solid #6eeeff!important}
.ma-v284-gate-right{border-left:7px solid #6eeeff!important}
.ma-v284-gate-door i{width:13px!important;background:linear-gradient(90deg,#152d42,#73ebff,#0c273c)!important;box-shadow:0 0 23px #77f5ffd9,0 0 42px #03d9ff77!important}
.ma-v284-gate-seam{width:6px!important;background:#bffbff!important;box-shadow:0 0 23px 11px #00dbffa0!important}
.ma-v284-gate-sparks{filter:drop-shadow(0 0 3px #ff9b39)}
@media(max-width:760px){
  #login.ma-v265-login.ma-v286-login-intro .ma-v265-login-brand{animation-duration:.48s!important}
  #login.ma-v265-login.ma-v286-login-intro .ma-v265-login-card{animation-duration:.5s!important}
}
@media(prefers-reduced-motion:reduce){
  #login.ma-v265-login.ma-v286-login-intro :is(.ma-v265-login-brand,.ma-v265-login-card){animation:none!important;opacity:1!important;transform:none!important}
  .ma-v284-gate{display:none!important}
}
@media print{.ma-v284-gate{display:none!important}}


/* V027.7 – optimiertes GPU-Werkstatttor und leichtes Canvas-Spruehen.
   Ausschliesslich temporaerer Login-Uebergang; keine Aenderung an UI-Layout. */
.ma-v284-gate.ma-v287-gate-perf .ma-v284-gate-door{
  transition:transform 1.45s cubic-bezier(.18,.76,.16,1)!important;
  box-shadow:inset 0 0 35px #0007!important;
  filter:none!important;
  backface-visibility:hidden;
}
.ma-v284-gate.ma-v287-gate-perf .ma-v284-gate-door::before{
  box-shadow:none!important;
}
.ma-v284-gate.ma-v287-gate-perf .ma-v284-gate-door i{
  box-shadow:0 0 10px #47d8ff80!important;
}
.ma-v284-gate.ma-v287-gate-perf .ma-v284-gate-sparks{
  filter:none!important;
  box-shadow:none!important;
  will-change:auto!important;
}
.ma-v284-gate.ma-v287-gate-perf .ma-v284-gate-seam{
  box-shadow:0 0 13px 4px #00dfff85!important;
}
@media(prefers-reduced-motion:reduce){
  .ma-v284-gate.ma-v287-gate-perf{display:none!important}
}

/* V027.9 Fahrzeugkartei – keine Änderung an Datenbank oder Druckvorlagen */
body.ma-v235-shell #vehicleResults .ma-v279-plate{border:0;background:none;color:#69e2f0;font-weight:800;text-align:left;padding:0;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
body.ma-v235-shell #vehicleResults .ma-v279-brief{font-size:11px;line-height:1.5;margin-top:5px;color:#b6d6e5}
body.ma-v235-shell #vehicleResults .ma-v279-brief span{display:inline-block;margin-right:6px}
body.ma-v235-shell #vehicleResults .ma-v279-brief b{display:inline-block;min-width:28px;color:#8ebed0}
body.ma-v235-shell #vehicleResults .ma-v279-filebtn,body.ma-v235-shell #vehicleResults .ma-v279-scan{font-size:12px;padding:7px 10px;margin:2px}
.ma-v279-overdue{color:#ff9c91!important}
.ma-v279-overlay{position:fixed;inset:0;z-index:15000;background:rgba(0,9,21,.78);display:grid;place-items:center;padding:16px}
.ma-v279-file{background:#0d2d42;color:#edfaff;border:1px solid #16aecb;border-radius:16px;box-shadow:0 24px 90px #0009;width:min(870px,96vw);max-height:90dvh;display:flex;flex-direction:column;overflow:hidden}
.ma-v279-file-head{padding:16px 20px;border-bottom:1px solid #316278;display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.ma-v279-file-head h2{font-size:23px;margin:3px 0}.ma-v279-file-head p{margin:2px 0}.ma-v279-file-head small{font-size:11px;color:#48dbe6;letter-spacing:1.5px}
.ma-v279-file-head button{min-width:40px;min-height:40px}
.ma-v279-file-content{padding:18px 20px;overflow:auto;min-height:0}
.ma-v279-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.ma-v279-details>span{padding:12px;background:#143b50;border:1px solid #26556b;border-radius:9px;min-width:0}
.ma-v279-details small{display:block;color:#a9c5d4;margin-bottom:7px}.ma-v279-details b{overflow-wrap:anywhere}
.ma-v279-identity{background:#143b50;padding:10px;border-radius:8px;font-size:12px;line-height:1.7}
.ma-v279-file-content h3{font-size:15px;margin:16px 0 8px}
.ma-v279-history{display:grid;gap:5px;max-height:200px;overflow:auto}
.ma-v279-history>div{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:8px 10px;border-bottom:1px solid #22536b;font-size:13px}
.ma-v279-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;padding:12px 20px;border-top:1px solid #316278}
@media(max-width:680px){.ma-v279-details{grid-template-columns:repeat(2,minmax(0,1fr))}.ma-v279-history>div{flex-wrap:wrap}.ma-v279-file-head h2{font-size:18px}}

/* V028.2 – kompakte Schnellaktionen (nur Auftraege/Kunden) */
.ma-v282-move{margin-left:6px!important;min-width:34px!important;padding:7px!important;border:1px solid #b64bf3!important;color:#e4b9ff!important;background:#312049!important;border-radius:8px!important}
.ma-v282-overlay{position:fixed;inset:0;background:#020b17ba;z-index:999999;display:grid;place-items:center;padding:14px}
.ma-v282-dialog{box-sizing:border-box;width:min(490px,100%);max-height:calc(100dvh - 28px);overflow:auto;color:#ebf8ff;background:#0a253a;border:1px solid #a440e2;border-radius:15px;box-shadow:0 18px 70px #000b;padding:18px;display:grid;gap:10px}
.ma-v282-dialog h3,.ma-v282-dialog p{margin:0}.ma-v282-head,.ma-v282-actions{display:flex;gap:9px;align-items:center;justify-content:space-between}.ma-v282-dialog label{display:grid;gap:5px}.ma-v282-dialog input,.ma-v282-dialog select{max-width:100%;box-sizing:border-box}.ma-v282-times{display:grid;grid-template-columns:1fr 1fr;gap:8px}.ma-v282-times[hidden]{display:none!important}.ma-v282-actions{justify-content:flex-end}.ma-v282-customer-fleet{margin:5px 0 2px!important;padding:4px 8px!important;font-size:11px!important}.ma-v282-plates{display:block;font-size:11px;opacity:.8;padding-top:2px}.ma-v282-call{font-size:12px;color:#71e2f3}

/* V028.2 Auftragsnachtrag: kein zusaetzlicher Scrollbereich fuer Freigabezeile. */
body.ma-v235-shell #view .ma-v263-approval-option .ma-v282-approval-amount{flex:0 0 106px!important;width:106px!important;max-width:32%!important;min-width:0!important;height:25px!important;min-height:25px!important;margin-left:auto!important;padding:2px 5px!important;border:1px solid #54a7bd!important;border-radius:5px!important;background:#072c43!important;color:#fff!important;font-size:11px!important;text-align:right!important}
body.ma-v235-shell #view .ma-v263-approval-option .ma-v282-approval-amount:disabled{opacity:.45!important;cursor:not-allowed!important}
body.ma-v235-shell #view .ma-v263-approval-option:has(.ma-v282-approval-amount){min-height:29px!important;height:29px!important;max-height:29px!important}
body.ma-v235-shell #view .ma-v282-order-approval{display:grid!important;grid-template-columns:minmax(0,1fr) 155px;gap:8px;align-items:end}
body.ma-v235-shell #view .ma-v282-order-approval label{min-width:0}
body.ma-v235-shell #view .ma-v282-order-approval input:disabled{opacity:.5}
@media(max-width:700px){body.ma-v235-shell #view .ma-v282-order-approval{grid-template-columns:1fr 120px}}



/* V028.5 – Korrektur: keine globale Scrollsperre und kein Abschneiden der Auftragsliste. */
body.ma-v235-shell #view:has(#maV283ParkingStrip){
  box-sizing:border-box!important; height:var(--ma-v285-jobs-height,calc(100dvh - 130px))!important;
  min-height:320px!important; display:flex!important; flex-direction:column!important;
  gap:7px!important; overflow:hidden!important;
}
body.ma-v235-shell #view:has(#maV283ParkingStrip)>h2{
  flex:0 0 auto!important; margin:3px 0!important; line-height:1.2!important;
}
body.ma-v235-shell #view #maV283ParkingStrip{
  flex:0 0 auto!important; min-width:0!important; margin:0!important;
  padding:8px 11px!important;
}
body.ma-v235-shell #view #maV283ParkingStrip h3{margin:0 0 7px!important;font-size:15px!important}
body.ma-v235-shell #view .ma-v283-parking-grid{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:7px!important}
body.ma-v235-shell #view .ma-v283-parking-slot{min-width:0;display:flex;flex-direction:column;gap:3px;padding:6px 9px;border:1px solid #358bad;border-radius:9px;background:#123e5a;min-height:66px}
body.ma-v235-shell #view .ma-v283-parking-slot>b{font-size:12px;line-height:1.2}
body.ma-v235-shell #view .ma-v283-parking-name{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
body.ma-v235-shell #view .ma-v283-parking-actions{display:flex;gap:5px;margin-top:auto;flex-wrap:wrap}
body.ma-v235-shell #view .ma-v283-parking-actions button{font-size:11px!important;min-height:28px!important;padding:4px 8px!important;margin:0!important}
body.ma-v235-shell #view .ma-v283-orders-card{flex:1 1 0!important;min-height:0!important;min-width:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;padding:9px 12px!important;margin:0!important}
body.ma-v235-shell #view .ma-v283-orders-card>label{flex:0 0 auto!important;margin:0 0 5px!important}
body.ma-v235-shell #view .ma-v283-orders-card #findJobs{min-height:34px!important;height:34px!important;padding:5px 9px!important;margin:4px 0 0!important}
body.ma-v235-shell #view .ma-v283-orders-card #jobResults{flex:1 1 auto!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
body.ma-v235-shell #view .ma-v283-orders-card #jobResults>.scroll{flex:1 1 auto!important;min-height:0!important;max-height:none!important;overflow:auto!important;overscroll-behavior:contain}
body.ma-v235-shell #view .ma-v283-orders-card .ma-v214-order-state{flex:0 0 auto!important;margin:0 0 5px!important;padding:6px 9px!important}
@media(max-width:1000px){body.ma-v235-shell #view .ma-v283-parking-grid{overflow-x:auto;grid-template-columns:repeat(5,minmax(160px,1fr))!important}}
@media(max-height:690px){body.ma-v235-shell #view #maV283ParkingStrip{padding:5px 8px!important}body.ma-v235-shell #view .ma-v283-parking-slot{min-height:50px}}

/* V028.5 – Reparatur des Werkstattauftrag-Dialogs: exakte Größen und kein Abschneiden. */
body.ma-v235-shell #view .ma-order-overlay:not([hidden]) .ma-order-dialog:has(#maWorkOrderPanel:not([hidden])){
  box-sizing:border-box!important; width:min(1200px,96vw)!important;max-width:96vw!important;
  height:min(820px,94dvh)!important;max-height:94dvh!important;
  display:flex!important;flex-direction:column!important;overflow:hidden!important;
}
body.ma-v235-shell #view .ma-order-dialog-body:has(#maWorkOrderPanel:not([hidden])){
  flex:1 1 auto!important;min-height:0!important;min-width:0!important;overflow:hidden!important;padding:8px!important;
}
body.ma-v235-shell #view .ma-order-dialog-body #maWorkOrderPanel:not([hidden]){
  box-sizing:border-box!important;display:flex!important;flex-direction:column!important;
  width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;
  margin:0!important;padding:8px!important;overflow:hidden!important;
}
body.ma-v235-shell #view #maWorkOrderPanel>h3,body.ma-v235-shell #view #maWorkOrderPanel>p{display:none!important}
body.ma-v235-shell #view #maWorkOrderPanel>.ma-v229-order-layout{
  display:grid!important;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr)!important;
  gap:10px!important;flex:1 1 auto!important;min-height:0!important;min-width:0!important;overflow:hidden!important;
}
body.ma-v235-shell #view #maWorkOrderPanel .ma-v229-order-fields{
  display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  grid-auto-rows:min-content!important;align-content:start!important;gap:7px 9px!important;
  min-width:0!important;min-height:0!important;overflow:auto!important;overscroll-behavior:contain;
}
body.ma-v235-shell #view #maWorkOrderPanel .ma-v229-order-fields>.grid{
  grid-column:1/-1!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:7px 9px!important;margin:0!important;min-width:0!important;
}
body.ma-v235-shell #view #maWorkOrderPanel .ma-v229-order-fields label{min-width:0!important;max-width:100%!important;margin:0!important;display:block!important;font-size:12px!important;line-height:1.25!important}
body.ma-v235-shell #view #maWorkOrderPanel .ma-v229-order-fields :is(input,select,textarea){box-sizing:border-box!important;max-width:100%!important;width:100%!important;min-width:0!important;margin:4px 0 0!important;font-size:12px!important}
body.ma-v235-shell #view #maWorkOrderPanel .ma-v229-order-fields :is(input,select){height:36px!important;min-height:36px!important;padding:6px 8px!important;line-height:1.4!important}
body.ma-v235-shell #view #maWorkOrderPanel .ma-v229-order-fields textarea{height:70px!important;min-height:70px!important;resize:vertical!important;padding:7px 9px!important}
body.ma-v235-shell #view #maWorkOrderPanel .ma-v229-order-fields>.ma-v282-order-approval{grid-column:1/-1!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,140px)!important;gap:8px!important;margin:0!important;min-width:0!important}
body.ma-v235-shell #view #maWorkOrderPanel .ma-v229-order-fields>.actions{grid-column:1/-1!important;display:flex!important;gap:8px!important;margin:0!important;min-width:0!important}
body.ma-v235-shell #view #maWorkOrderPanel .ma-v229-order-fields>.actions button{flex:1 1 0!important;min-width:0!important;padding:7px 8px!important;font-size:12px!important;min-height:38px!important}
body.ma-v235-shell #view #maWorkOrderPanel .ma-v229-order-preview-pane{display:flex!important;flex-direction:column!important;min-height:0!important;min-width:0!important;overflow:hidden!important;padding:8px!important}
body.ma-v235-shell #view #maWorkOrderPanel .ma-v229-order-preview-label{font-size:11px!important;flex:0 0 auto!important;margin:0 0 5px!important}
body.ma-v235-shell #view #maWorkOrderLivePreview.ma-v283-a4-fit{position:relative!important;flex:1 1 0!important;height:auto!important;min-height:0!important;overflow:hidden!important;padding:0!important;background:#fff!important}
body.ma-v235-shell #view #maV238OrderFrame{position:absolute!important;top:0!important;left:0!important;box-sizing:border-box!important;width:794px!important;height:1123px!important;min-width:794px!important;min-height:1123px!important;max-width:none!important;max-height:none!important;border:0!important;transform-origin:top left!important}
body.ma-v235-shell #view #maWorkOrderLivePreview.ma-v283-a4-overflow::after{content:'Mehr Inhalt als eine A4-Seite: bitte Anlage verwenden';position:absolute;bottom:0;left:0;right:0;padding:5px;background:#ffeec8;color:#5b3500;font-size:11px;text-align:center;pointer-events:none}
@media(max-width:950px){
  body.ma-v235-shell #view .ma-order-dialog-body:has(#maWorkOrderPanel:not([hidden])){overflow:auto!important}
  body.ma-v235-shell #view #maWorkOrderPanel:not([hidden]){height:auto!important;max-height:none!important;overflow:visible!important}
  body.ma-v235-shell #view #maWorkOrderPanel>.ma-v229-order-layout{grid-template-columns:1fr!important;overflow:visible!important}
  body.ma-v235-shell #view #maWorkOrderPanel .ma-v229-order-fields{overflow:visible!important}
  body.ma-v235-shell #view #maWorkOrderLivePreview.ma-v283-a4-fit{height:500px!important;flex:0 0 500px!important}
}


/* V028.6 – Auftragsdetails: vier funktional unveränderte Bereiche im 2x2-Raster. */
body.ma-v235-shell #view .ma-v286-four-panel .ma-v220-order-grid{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 grid-template-areas:"arbeiten schnell" "kontakt auftrag"!important;
 gap:10px!important;align-items:stretch!important;
}
body.ma-v235-shell #view .ma-v286-four-panel .ma-v286-work{grid-area:arbeiten!important}
body.ma-v235-shell #view .ma-v286-four-panel .ma-v286-quick{grid-area:schnell!important}
body.ma-v235-shell #view .ma-v286-four-panel .ma-v286-contact{grid-area:kontakt!important}
body.ma-v235-shell #view .ma-v286-four-panel .ma-v286-state{grid-area:auftrag!important}
body.ma-v235-shell #view .ma-v286-four-panel .ma-v220-order-grid > *{min-width:0!important;box-sizing:border-box!important;margin:0!important}
body.ma-v235-shell #view .ma-v286-four-panel .ma-v220-panel,
body.ma-v235-shell #view .ma-v286-four-panel .ma-v286-state{padding:11px 13px!important;border-radius:13px!important}
body.ma-v235-shell #view .ma-v286-four-panel .ma-v220-panel h3,
body.ma-v235-shell #view .ma-v286-four-panel .ma-v286-state h3{margin:0 0 9px!important;font-size:16px!important;line-height:1.25!important}
body.ma-v235-shell #view .ma-v286-four-panel .ma-v286-state p{margin:6px 0!important;line-height:1.35!important}
body.ma-v235-shell #view .ma-v286-four-panel .ma-v220-worklist{display:grid!important;gap:6px!important}
body.ma-v235-shell #view .ma-v286-four-panel .ma-v220-worklist > div{padding:8px 10px!important;margin:0!important}
body.ma-v235-shell #view .ma-v286-four-panel .ma-v220-work-actions{display:flex!important;gap:6px!important;flex-wrap:wrap!important;margin-top:8px!important}
body.ma-v235-shell #view .ma-v286-four-panel .ma-v220-work-actions button{min-height:34px!important;padding:6px 9px!important}
body.ma-v235-shell #view .ma-v286-four-panel .ma-v220-action-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
body.ma-v235-shell #view .ma-v286-four-panel .ma-v220-action-list button{min-width:0!important;width:100%!important;margin:0!important;min-height:39px!important;padding:7px 9px!important;text-align:left!important}
body.ma-v235-shell #view .ma-v286-four-panel .ma-v220-contact-content{min-width:0!important}
body.ma-v235-shell #view .ma-v286-four-panel .ma-v220-contact-content .card{margin:0!important;padding:8px!important}
body.ma-v235-shell #view .ma-v286-four-panel .ma-v220-contact-content label{margin:0 0 6px!important}
body.ma-v235-shell #view .ma-v286-four-panel .ma-v220-contact-content :is(select,input:not([type=checkbox])){min-height:36px!important;height:36px!important;box-sizing:border-box!important}
body.ma-v235-shell #view .ma-v286-four-panel .ma-v220-extras:empty{display:none!important}
@media(max-width:900px){
 body.ma-v235-shell #view .ma-v286-four-panel .ma-v220-order-grid{
 grid-template-columns:minmax(0,1fr)!important;
 grid-template-areas:"arbeiten" "schnell" "kontakt" "auftrag"!important;
 }
}


/* V028.7 – Kontaktstatus vollständig lesbar, ohne vergrößerten Panelaufbau. */
body.ma-v235-shell #view .ma-v287-polish .ma-v220-contact-content #callStatus,
body.ma-v235-shell #view .ma-v287-polish .ma-v287-readable-select{
  display:block!important;width:100%!important;max-width:100%!important;
  box-sizing:border-box!important;min-height:43px!important;height:43px!important;
  padding:0 34px 0 12px!important;line-height:normal!important;
  font-size:15px!important;font-weight:650!important;letter-spacing:0!important;
  color:#f6fbff!important;-webkit-text-fill-color:#f6fbff!important;
  background-color:#133c58!important;opacity:1!important;
  overflow:visible!important;text-overflow:clip!important;
}
body.ma-v235-shell #view .ma-v287-polish .ma-v220-contact-content #callStatus option{
  color:#102c42!important;background:#f6fbff!important;font-size:15px!important;
}
body.ma-v235-shell #view .ma-v287-polish .ma-v220-contact-content label{overflow:visible!important}
/* Die vier Informationsfelder benutzen ausschließlich Rot (offen/fehlt) und Grün (erledigt/vorhanden). */
body.ma-v235-shell #view .ma-v287-polish .ma-v220-flags .ma-v258-flag.ok{
  background:#134e3b!important;border:1px solid #28b77e!important;color:#d9ffec!important;
}
body.ma-v235-shell #view .ma-v287-polish .ma-v220-flags .ma-v258-flag.danger{
  background:#602c39!important;border:1px solid #df5b70!important;color:#ffe0e5!important;
}
/* Werkstattauftragsstatus rechts – eigener Indikator, keine neuen Handlungen. */
body.ma-v235-shell #view .ma-v287-polish .ma-v287-order-presence{
  display:inline-flex!important;align-items:center!important;
  font-weight:750!important;font-size:13px!important;line-height:1.3!important;
  padding:6px 10px!important;margin:2px 0 7px!important;border-radius:9px!important;
}
body.ma-v235-shell #view .ma-v287-polish .ma-v287-order-presence.is-present{
  background:#134e3b!important;color:#d9ffec!important;border:1px solid #28b77e!important;
}
body.ma-v235-shell #view .ma-v287-polish .ma-v287-order-presence.is-missing{
  background:#602c39!important;color:#ffe0e5!important;border:1px solid #df5b70!important;
}


/* V028.8 – grössere Auftragsmaske, zuverlässig sichtbare DIN-A4-Vorschau. */
body.ma-v235-shell #view .ma-order-overlay:not([hidden]) .ma-order-dialog:has(#maWorkOrderPanel:not([hidden])){
 width:min(1620px,97vw)!important;max-width:97vw!important;
 height:min(960px,94dvh)!important;max-height:94dvh!important;
}
body.ma-v235-shell #view #maWorkOrderPanel>.ma-v229-order-layout{
 grid-template-columns:minmax(0,1fr) minmax(490px,1fr)!important;
}
body.ma-v235-shell #view #maWorkOrderPanel .ma-v229-order-preview-pane{
 height:100%!important;min-height:0!important;
}
body.ma-v235-shell #view #maWorkOrderLivePreview.ma-v283-a4-fit{
 display:block!important;position:relative!important;
 flex:1 1 auto!important;height:calc(100% - 22px)!important;
 min-height:420px!important;max-height:100%!important;
 overflow:hidden!important;background:#fff!important;
}
body.ma-v235-shell #view #maV238OrderFrame{
 display:block!important;visibility:visible!important;opacity:1!important;
 position:absolute!important;left:0!important;top:0!important;
 width:794px!important;height:1123px!important;
 min-width:794px!important;min-height:1123px!important;
 transform-origin:top left!important;
}
body.ma-v235-shell #view #maWorkOrderLivePreview.ma-v288-preview-error{
 overflow:auto!important;background:white!important;color:#183e53!important;
}
body.ma-v235-shell #view .ma-v288-fallback{background:white;color:#17364a;padding:12px;font-size:12px}
body.ma-v235-shell #view .ma-v288-open-order{margin-right:8px;background:#079cb9!important;color:#fff!important}
@media(max-width:1100px){
 body.ma-v235-shell #view #maWorkOrderPanel>.ma-v229-order-layout{grid-template-columns:minmax(0,1fr)!important;overflow:auto!important}
 body.ma-v235-shell #view #maWorkOrderPanel .ma-v229-order-preview-pane{min-height:520px!important}
 body.ma-v235-shell #view #maWorkOrderLivePreview.ma-v283-a4-fit{height:490px!important;min-height:490px!important}
}


/* V028.9 – bessere Lesbarkeit auf 27-Zoll-Desktopmonitoren.
   Ausschliesslich Schriftgroessen/Zeilenhoehen, KEINE Aenderung an Hoehe,
   Breite, Padding, Grid, JS-Funktionen oder Druck-/A4-Vorlagen. */
@media (min-width:1200px) {
  body.ma-v235-shell #nav.ma-v235-sidebar-nav > button,
  body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools > button,
  body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools .ma-v11-menu-button {
    font-size:13px!important;
    line-height:1.2!important;
  }
  body.ma-v235-shell .ma-v235-nav-head {font-size:11px!important;line-height:1.2!important}
  body.ma-v235-shell .ma-v16-alertbar #maNotificationDock .ma-notify-label {font-size:13px!important;line-height:1.15!important}
  body.ma-v235-shell #view .ma-v238-dashboard .metric-card span,
  body.ma-v235-shell #view .metric-card span {font-size:13px!important;line-height:1.2!important}
  body.ma-v235-shell #view .ma-v238-dashboard .metric-card small,
  body.ma-v235-shell #view .metric-card small {font-size:12px!important;line-height:1.2!important}
  body.ma-v235-shell #view .ma-v235-panel-title h3,
  body.ma-v235-shell #view .ma-v235-appointment-card > h3,
  body.ma-v235-shell #view .ma-v238-bottom-card h3 {font-size:18px!important;line-height:1.2!important}
  body.ma-v235-shell #view .today-summary,
  body.ma-v235-shell #view .ma-v235-appointment-row,
  body.ma-v235-shell #view .ma-v238-activity-row strong,
  body.ma-v235-shell #view .ma-v238-bottom-line {font-size:14px!important;line-height:1.25!important}
  body.ma-v235-shell #view .ma-v238-activity-row small,
  body.ma-v235-shell #view .ma-v238-controls-head span {font-size:12px!important;line-height:1.2!important}
  body.ma-v235-shell #view .ma-v235-appointment-row .ma-v229-overview-actions button,
  body.ma-v235-shell #view .ma-v238-bottom-card button {font-size:12px!important;line-height:1.1!important}
  body.ma-v235-shell #view .ma-v238-bottom-line b {font-size:15px!important;line-height:1.15!important}
  body.ma-v235-shell #view .ma-v235-quick-grid button span {font-size:13px!important;line-height:1.2!important}
  body.ma-v235-shell #view .ma-v241-metric-label {font-size:13px!important;line-height:1.2!important}
  body.ma-v235-shell #view .ma-v241-metric-note {font-size:12px!important;line-height:1.2!important}
}


/* V029.0 – zweite Stufe der Lesbarkeitsoptimierung ab 1200px.
   Nur Schrift; keine Änderungen an Buttonhöhen, Kartenmaßen, Abständen,
   Raster, A4-Druckansicht oder JS-Speicherlogik. */
@media (min-width:1200px) {
  body.ma-v235-shell #nav.ma-v235-sidebar-nav > button,
  body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools > button,
  body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools .ma-v11-menu-button {
    font-size:15px!important; line-height:1.08!important;
  }
  body.ma-v235-shell .ma-v235-nav-head {font-size:12px!important;line-height:1.1!important}
  body.ma-v235-shell .ma-v16-alertbar #maNotificationDock .ma-notify-label {
    font-size:14px!important;line-height:1.1!important;
  }
  body.ma-v235-shell #view .ma-v238-dashboard .metric-card span,
  body.ma-v235-shell #view .metric-card span {
    font-size:15px!important;line-height:1.1!important;
  }
  body.ma-v235-shell #view .ma-v238-dashboard .metric-card small,
  body.ma-v235-shell #view .metric-card small {
    font-size:14px!important;line-height:1.1!important;
  }
  body.ma-v235-shell #view .ma-v235-panel-title h3,
  body.ma-v235-shell #view .ma-v235-appointment-card > h3,
  body.ma-v235-shell #view .ma-v238-bottom-card h3 {
    font-size:20px!important;line-height:1.12!important;
  }
  body.ma-v235-shell #view .today-summary,
  body.ma-v235-shell #view .ma-v235-appointment-row,
  body.ma-v235-shell #view .ma-v238-activity-row strong,
  body.ma-v235-shell #view .ma-v238-bottom-line {
    font-size:16px!important;line-height:1.12!important;
  }
  body.ma-v235-shell #view .ma-v238-activity-row small,
  body.ma-v235-shell #view .ma-v238-controls-head span {
    font-size:14px!important;line-height:1.1!important;
  }
  body.ma-v235-shell #view .ma-v235-appointment-row .ma-v229-overview-actions button,
  body.ma-v235-shell #view .ma-v238-bottom-card button {
    font-size:14px!important;line-height:1.08!important;
  }
  body.ma-v235-shell #view .ma-v238-bottom-line b {
    font-size:17px!important;line-height:1.08!important;
  }
  body.ma-v235-shell #view .ma-v235-quick-grid button span,
  body.ma-v235-shell #view .ma-v241-metric-label {
    font-size:15px!important;line-height:1.08!important;
  }
  body.ma-v235-shell #view .ma-v241-metric-note {
    font-size:14px!important;line-height:1.08!important;
  }
}


/* V029.1 – dritte Stufe der Lesbarkeitsoptimierung fuer grosse Desktop-Monitore.
   Schrift bewusst deutlich groesser. Buttons duerfen textlich staerker gefuellt sein,
   ohne die Grundlogik oder Seitenaufteilung zu aendern. */
@media (min-width:1200px) {
  body.ma-v235-shell #nav.ma-v235-sidebar-nav > button,
  body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools > button,
  body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools .ma-v11-menu-button {
    font-size:17px!important; line-height:1.08!important;
    white-space:normal!important;
  }
  body.ma-v235-shell .ma-v235-nav-head {
    font-size:13px!important; line-height:1.1!important; letter-spacing:.06em!important;
  }
  body.ma-v235-shell .ma-v16-alertbar #maNotificationDock .ma-notify-label {
    font-size:15px!important; line-height:1.08!important;
  }
  body.ma-v235-shell #view .ma-v238-dashboard .metric-card span,
  body.ma-v235-shell #view .metric-card span,
  body.ma-v235-shell #view .ma-v241-metric-label {
    font-size:17px!important; line-height:1.08!important;
  }
  body.ma-v235-shell #view .ma-v238-dashboard .metric-card small,
  body.ma-v235-shell #view .metric-card small,
  body.ma-v235-shell #view .ma-v241-metric-note,
  body.ma-v235-shell #view .ma-v238-activity-row small,
  body.ma-v235-shell #view .ma-v238-controls-head span {
    font-size:15px!important; line-height:1.08!important;
  }
  body.ma-v235-shell #view .ma-v235-panel-title h3,
  body.ma-v235-shell #view .ma-v235-appointment-card > h3,
  body.ma-v235-shell #view .ma-v238-bottom-card h3 {
    font-size:22px!important; line-height:1.1!important;
  }
  body.ma-v235-shell #view .today-summary,
  body.ma-v235-shell #view .ma-v235-appointment-row,
  body.ma-v235-shell #view .ma-v238-activity-row strong,
  body.ma-v235-shell #view .ma-v238-bottom-line {
    font-size:18px!important; line-height:1.1!important;
  }
  body.ma-v235-shell #view .ma-v238-bottom-line b {
    font-size:19px!important; line-height:1.08!important;
  }
  body.ma-v235-shell #view .ma-v235-appointment-row .ma-v229-overview-actions button,
  body.ma-v235-shell #view .ma-v238-bottom-card button,
  body.ma-v235-shell #view .ma-v235-quick-grid button span,
  body.ma-v235-shell button,
  body.ma-v235-shell .btn,
  body.ma-v235-shell [role="button"] {
    font-size:16px!important; line-height:1.08!important;
  }
}


/* V029.2 – GROSSE, TATSAECHLICH LESBARE DESKTOP-ANSICHT
   Korrigiert die Zielselektoren: Die aktive Uebersicht ist .ma-v241-dashboard,
   nicht die frueheren .ma-v238-dashboard oder .overview-page.
   Nur Desktop-Bildschirm, keine PDF-/Druck-Iframes oder Datenlogik. */
@media screen and (min-width:1200px) {
  /* Mehr Platz fuer lesbare Navigationslabels. Sidebar darf bei Bedarf scrollen. */
  :root { --ma235-side: 340px; }
  body.ma-v235-shell #maV235Sidebar { padding:13px 15px 20px!important; }
  body.ma-v235-shell #nav.ma-v235-sidebar-nav > button,
  body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools > button,
  body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools .ma-v11-menu-button {
    font-size:21px!important;
    font-weight:750!important;
    line-height:1.18!important;
    min-height:49px!important;
    padding:10px 11px!important;
    white-space:normal!important;
    overflow-wrap:normal!important;
  }
  body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools .ma-v11-menu-dropdown button {
    font-size:18px!important;min-height:45px!important;
  }
  body.ma-v235-shell .ma-v235-nav-head {font-size:16px!important;line-height:1.22!important;margin:14px 0 9px!important;}
  body.ma-v235-shell .ma-v235-sidebar-foot,
  body.ma-v235-shell #maV235Version {font-size:15px!important;line-height:1.25!important;}
  body.ma-v235-shell #maV235HeadBar .ma-notify-label,
  body.ma-v235-shell .ma-v16-alertbar #maNotificationDock .ma-notify-label {font-size:18px!important;white-space:normal!important;line-height:1.2!important;}
  body.ma-v235-shell #maV235HeadBar #maNotificationDock button {min-height:46px!important;padding:9px 13px!important;}
  body.ma-v235-shell #maV235Topline,
  body.ma-v235-shell #maV235HeadBar .ma-v235-topline-right {font-size:17px!important;}

  /* Tatsächlich aktives Dashboard V024.1/V025.4 */
  body.ma-v235-shell #view .ma-v241-dashboard {font-size:20px!important;line-height:1.36!important;}
  body.ma-v235-shell #view .ma-v241-panel {padding:17px 18px!important;}
  body.ma-v235-shell #view .ma-v241-heading-title h3 {font-size:25px!important;line-height:1.16!important;}
  body.ma-v235-shell #view .ma-v241-heading p,
  body.ma-v235-shell #view .ma-v241-panel-heading p,
  body.ma-v235-shell #view .ma-v241-due p,
  body.ma-v235-shell #view .ma-v241-empty {font-size:19px!important;line-height:1.35!important;}
  body.ma-v235-shell #view .ma-v241-metric {min-height:120px!important;padding:14px!important;}
  body.ma-v235-shell #view .ma-v241-metric-label {font-size:20px!important;line-height:1.2!important;}
  body.ma-v235-shell #view .ma-v241-metric-note {font-size:17px!important;line-height:1.2!important;}
  body.ma-v235-shell #view .ma-v241-metric-value {font-size:37px!important;line-height:1.05!important;}
  body.ma-v235-shell #view .ma-v241-eyebrow,
  body.ma-v235-shell #view .ma-v241-banner-kicker {font-size:15px!important;}
  body.ma-v235-shell #view .ma-v241-banner-small {font-size:17px!important;}
  body.ma-v235-shell #view .ma-v241-appointment {min-height:96px!important;grid-template-columns:75px minmax(0,1fr) auto auto!important;gap:10px!important;padding:12px!important;}
  body.ma-v235-shell #view .ma-v241-time b {font-size:21px!important;}
  body.ma-v235-shell #view .ma-v241-time small {font-size:17px!important;}
  body.ma-v235-shell #view .ma-v241-job-name {font-size:21px!important;line-height:1.24!important;}
  body.ma-v235-shell #view .ma-v241-job-sub {font-size:17px!important;line-height:1.2!important;}
  body.ma-v235-shell #view .ma-v241-state {font-size:16px!important;line-height:1.2!important;white-space:normal!important;}
  body.ma-v235-shell #view .ma-v241-section-divider span {font-size:20px!important;}
  body.ma-v235-shell #view .ma-v241-section-divider small {font-size:16px!important;}
  body.ma-v235-shell #view .ma-v241-counter {font-size:16px!important;}
  body.ma-v235-shell #view .ma-v241-minibutton,
  body.ma-v235-shell #view .ma-v241-primary,
  body.ma-v235-shell #view .ma-v245-row-actions button {font-size:18px!important;min-height:44px!important;line-height:1.2!important;padding:9px 12px!important;}
  body.ma-v235-shell #view .ma-v241-quick-grid button>span:last-child {font-size:19px!important;line-height:1.25!important;}
  body.ma-v235-shell #view .ma-v241-quick-grid button {min-height:112px!important;padding:11px!important;}
  body.ma-v235-shell #view .ma-v241-activity strong {font-size:20px!important;line-height:1.2!important;}
  body.ma-v235-shell #view .ma-v241-activity small {font-size:17px!important;line-height:1.2!important;}
  body.ma-v235-shell #view .ma-v241-ledger>div {font-size:19px!important;line-height:1.24!important;}
  body.ma-v235-shell #view .ma-v241-ledger strong {font-size:21px!important;}
  body.ma-v235-shell #view .ma-v248-statusbar,
  body.ma-v235-shell #view .ma-v248-status-item {font-size:15px!important;line-height:1.25!important;}
  /* Uebrige normale Ansichten erhalten eine lesbare Grundgroesse.
     Keine Dokumente, PDF-Vorschau und A4-Vorlagen global skalieren. */
  body.ma-v235-shell #view > :not(.ma-v241-dashboard) {font-size:19px;}
  body.ma-v235-shell #view > :not(.ma-v241-dashboard) :is(button,input,select,textarea) {font-size:18px;}
}
/* Auf mittelgrossen Desktopfenstern Sidebar nicht uebermaessig breit machen. */
@media screen and (min-width:1200px) and (max-width:1499px) {
  :root { --ma235-side: 300px; }
  body.ma-v235-shell #view .ma-v241-metrics {grid-template-columns:repeat(3,minmax(0,1fr))!important;}
  body.ma-v235-shell #view .ma-v241-main-grid,
  body.ma-v235-shell #view .ma-v241-bottom-grid {grid-template-columns:1fr!important;}
}

/* V029.3 – Fahrtenbuch: zwei neue Ortsspalten, Uhrzeiten bleiben erhalten. */
body.ma-v235-shell #view .ma-v268-book-table {min-width:1300px!important;}
body.ma-v235-shell #view .ma-v268-book-table th:first-child {width:4%!important;}
body.ma-v235-shell #view .ma-v268-book-table th:nth-child(2) {width:12%!important;}
body.ma-v235-shell #view .ma-v268-book-table th:nth-child(3),
body.ma-v235-shell #view .ma-v268-book-table th:nth-child(4) {width:9%!important;}
body.ma-v235-shell #view .ma-v268-book-table th:nth-child(5),
body.ma-v235-shell #view .ma-v268-book-table th:nth-child(6) {width:16%!important;}
body.ma-v235-shell #view .ma-v268-book-table th:nth-child(7) {width:14%!important;}
body.ma-v235-shell #view .ma-v268-book-table th:nth-child(8) {width:20%!important;}


/* V029.4 – lesbare BESCHRIFTUNGEN in der echten Seitenleiste.
   Kritischer Fix: V025.2 erzwingt unter #maV235Sidebar weiterhin font-size:10px!important.
   Die folgenden Regeln zielen spezifischer auf genau diese bestehenden Buttons.
   Keine Daten- oder Event-Handler-Aenderungen, keine PDF-Regeln. */
@media screen and (min-width:1200px) {
  body.ma-v235-shell #maV235Sidebar #nav.ma-v235-sidebar-nav > button,
  body.ma-v235-shell #maV235Sidebar #adminTopActions.ma-v235-sidebar-tools > button,
  body.ma-v235-shell #maV235Sidebar #adminTopActions.ma-v235-sidebar-tools > .ma-v11-menu > .ma-v11-menu-button {
    font-size:18px!important;
    font-weight:800!important;
    line-height:1.18!important;
    min-height:43px!important;
    max-height:none!important;
    height:auto!important;
    padding:9px 10px!important;
    white-space:normal!important;
    overflow-wrap:break-word!important;
    text-overflow:clip!important;
    letter-spacing:0!important;
  }
  /* Innerer Text darf nicht auf der alten kleinen Schrift festkleben. */
  body.ma-v235-shell #maV235Sidebar #nav.ma-v235-sidebar-nav > button :is(span,strong,b,small),
  body.ma-v235-shell #maV235Sidebar #adminTopActions.ma-v235-sidebar-tools > button :is(span,strong,b,small),
  body.ma-v235-shell #maV235Sidebar #adminTopActions.ma-v235-sidebar-tools > .ma-v11-menu > .ma-v11-menu-button :is(span,strong,b,small) {
    font-size:inherit!important;
    line-height:inherit!important;
  }
  body.ma-v235-shell #maV235Sidebar .ma-v235-nav-head {
    font-size:14px!important;line-height:1.2!important;
    letter-spacing:.06em!important;
  }
  body.ma-v235-shell #maV235Sidebar .ma-v235-sidebar-foot {
    font-size:13px!important;line-height:1.25!important;
  }
  body.ma-v235-shell #maV235Sidebar #nav.ma-v235-sidebar-nav,
  body.ma-v235-shell #maV235Sidebar #adminTopActions.ma-v235-sidebar-tools {
    gap:5px!important;
  }
  /* Die Badge-Zahlen der Benachrichtigungen werden sichtbar, aber bleiben im Kreis. */
  body.ma-v235-shell #maV254NoticeDock #maNotificationDock .ma-notify-label,
  body.ma-v235-shell #maV235HeadBar #maNotificationDock .ma-notify-label {
    font-size:16px!important;line-height:1.15!important;
  }
}


/* V029.5 – ausbalancierte Sidebar: gut lesbar, ohne Seitenscrollen.
   Überschreibt ausschließlich die übergroßen Sidebar-Werte aus V029.2/V029.4.
   Auf kleinen Viewports keine Menüpunkte abschneiden: Scrollen als
   Barrierefreiheits-Fallback erst bei extrem geringer Höhe / Browserzoom. */
@media screen and (min-width:1200px) {
  body.ma-v235-shell #maV235Sidebar {
    overflow-y:auto!important;
    padding:6px 11px 6px!important;
    scrollbar-width:none!important;
  }
  body.ma-v235-shell #maV235Sidebar::-webkit-scrollbar { width:0!important;display:none!important }
  body.ma-v235-shell #maV235Sidebar #nav.ma-v235-sidebar-nav,
  body.ma-v235-shell #maV235Sidebar #adminTopActions.ma-v235-sidebar-tools {
    gap:3px!important;
  }
  body.ma-v235-shell #maV235Sidebar #nav.ma-v235-sidebar-nav > button,
  body.ma-v235-shell #maV235Sidebar #adminTopActions.ma-v235-sidebar-tools > button,
  body.ma-v235-shell #maV235Sidebar #adminTopActions.ma-v235-sidebar-tools > .ma-v11-menu > .ma-v11-menu-button {
    font-size:15px!important;font-weight:750!important;line-height:1.05!important;
    height:31px!important;min-height:31px!important;max-height:31px!important;
    padding:4px 8px!important;white-space:nowrap!important;
    overflow:hidden!important;text-overflow:ellipsis!important;
    letter-spacing:0!important;
  }
  body.ma-v235-shell #maV235Sidebar #nav.ma-v235-sidebar-nav > button :is(span,strong,b,small),
  body.ma-v235-shell #maV235Sidebar #adminTopActions.ma-v235-sidebar-tools > button :is(span,strong,b,small),
  body.ma-v235-shell #maV235Sidebar #adminTopActions.ma-v235-sidebar-tools > .ma-v11-menu > .ma-v11-menu-button :is(span,strong,b,small) {
    font-size:inherit!important;line-height:inherit!important;
  }
  body.ma-v235-shell #maV235Sidebar .ma-v235-nav-head {
    font-size:11px!important;line-height:1.1!important;
    margin:6px 0 3px!important;padding-top:0!important;
  }
  body.ma-v235-shell #maV235Sidebar .ma-v235-tools-head {
    margin-top:6px!important;padding-top:5px!important;
  }
  body.ma-v235-shell #maV235Sidebar .ma-v235-sidebar-foot {
    font-size:11px!important;line-height:1.1!important;
    margin-top:5px!important;padding-top:5px!important;
  }
  body.ma-v235-shell #maV254NoticeDock #maNotificationDock {
    gap:3px!important;
  }
  body.ma-v235-shell #maV254NoticeDock #maNotificationDock :is(#workshopBell,#maActivityWork,#maActivityLeave,#maV18InvoiceBell) {
    height:31px!important;min-height:31px!important;max-height:31px!important;
    padding:4px 8px!important;
  }
  body.ma-v235-shell #maV254NoticeDock #maNotificationDock .ma-notify-label,
  body.ma-v235-shell #maV235HeadBar #maNotificationDock .ma-notify-label {
    font-size:14px!important;line-height:1.05!important;
    white-space:nowrap!important;
  }
}
@media screen and (min-width:1200px) and (max-height:800px){
  body.ma-v235-shell #maV235Sidebar #nav.ma-v235-sidebar-nav > button,
  body.ma-v235-shell #maV235Sidebar #adminTopActions.ma-v235-sidebar-tools > button,
  body.ma-v235-shell #maV235Sidebar #adminTopActions.ma-v235-sidebar-tools > .ma-v11-menu > .ma-v11-menu-button {
    font-size:14px!important;height:28px!important;min-height:28px!important;max-height:28px!important;
  }
  body.ma-v235-shell #maV254NoticeDock #maNotificationDock :is(#workshopBell,#maActivityWork,#maActivityLeave,#maV18InvoiceBell){
    height:28px!important;min-height:28px!important;max-height:28px!important;
  }
  body.ma-v235-shell #maV235Sidebar .ma-v235-nav-head {
    margin:4px 0 2px!important;
  }
}


/* V029.6 - Rechnungsseite: nur Datentabelle scrollt.
   Exakt auf die bestehende Rechnungslistenansicht begrenzt, nie auf den Editor.
   Kopfzeile, Hinweise und Suchfeld bleiben stehen. */
@media screen and (min-width:761px) {
  html:has(body.ma-v235-shell #view #invoiceResults),
  body.ma-v235-shell:has(#view #invoiceResults) {
    height:100%!important;overflow-y:hidden!important;
  }
  body.ma-v235-shell #app:not(.hidden):has(#view #invoiceResults) {
    height:100dvh!important;max-height:100dvh!important;
    min-height:0!important;overflow:hidden!important;
    box-sizing:border-box!important;
    padding-bottom:10px!important;
  }
  body.ma-v235-shell #app:has(#view #invoiceResults) #view {
    display:flex!important;flex-direction:column!important;
    min-height:0!important;height:100%!important;
    max-height:100%!important;overflow:hidden!important;
    gap:8px!important;
  }
  body.ma-v235-shell #view:has(#invoiceResults) > .actions,
  body.ma-v235-shell #view:has(#invoiceResults) > h2,
  body.ma-v235-shell #view:has(#invoiceResults) > .notice {
    flex:0 0 auto!important;
  }
  body.ma-v235-shell #view > .card:has(> #invoiceResults) {
    flex:1 1 auto!important;min-height:0!important;
    max-height:100%!important;overflow:hidden!important;
    display:flex!important;flex-direction:column!important;
    gap:7px!important;margin-bottom:0!important;
    padding:10px 13px!important;
  }
  body.ma-v235-shell #view > .card:has(> #invoiceResults) > label {
    flex:0 0 auto!important;min-height:0!important;margin:0!important;
  }
  body.ma-v235-shell #view #invoiceResults {
    display:flex!important;flex-direction:column!important;
    min-height:0!important;flex:1 1 auto!important;
    overflow:hidden!important;
  }
  body.ma-v235-shell #view #invoiceResults > .scroll {
    flex:1 1 auto!important;min-height:0!important;
    height:100%!important;max-height:none!important;
    overflow-y:auto!important;overflow-x:auto!important;
    overscroll-behavior:contain!important;
  }
  body.ma-v235-shell #view #invoiceResults > .scroll th {
    position:sticky!important;top:0!important;z-index:3!important;
  }
  /* Bestehende Schaltflächen bleiben erhalten. */
  body.ma-v235-shell #view:has(#invoiceResults) > #jobs {
    flex:0 0 auto!important;align-self:flex-start!important;
  }
}
@media screen and (max-width:760px) {
  /* Auf sehr kleinen Fenstern bleibt der normale Seiten-Scroll als Notlösung. */
  body.ma-v235-shell #view #invoiceResults > .scroll {
    max-height:min(65dvh,720px)!important;
  }
}


/* V029.7 Fahrtenbuch: Blatt vollständig in Vorschau einpassen, kein Abschneiden. */
body.ma-v235-shell .ma-v297-preview-overlay{
  position:fixed!important;inset:0!important;z-index:2147483000!important;
  display:grid!important;place-items:center!important;
  background:rgba(2,12,24,.86)!important;padding:12px!important;
}
body.ma-v235-shell .ma-v297-preview-dialog{
  display:flex!important;flex-direction:column!important;
  width:min(1240px,98vw)!important;height:min(940px,96dvh)!important;
  max-width:98vw!important;max-height:96dvh!important;min-width:0!important;
  border:1px solid #30a8d3!important;border-radius:15px!important;
  background:#0e3149!important;color:#effbff!important;overflow:hidden!important;
  box-shadow:0 20px 75px #000b!important;
}
body.ma-v235-shell .ma-v297-preview-head{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:12px!important;flex-wrap:wrap!important;padding:12px 18px!important;
  border-bottom:1px solid #317996!important;flex:0 0 auto!important;
}
body.ma-v235-shell .ma-v297-preview-head strong{font-size:18px!important;color:#fff!important}
body.ma-v235-shell .ma-v297-preview-actions{display:flex!important;gap:9px!important;flex-wrap:wrap!important}
body.ma-v235-shell .ma-v297-preview-actions button{
  font-size:15px!important;min-height:39px!important;padding:7px 14px!important;
  border-radius:8px!important;cursor:pointer!important;
}
body.ma-v235-shell .ma-v297-preview-stage{
  position:relative!important;flex:1 1 auto!important;min-height:0!important;
  margin:10px!important;overflow:hidden!important;border-radius:7px!important;
  background:#546879!important;
}
body.ma-v235-shell .ma-v297-preview-stage iframe{
  display:block!important;position:absolute!important;left:50%!important;top:50%!important;
  width:1123px!important;height:794px!important;min-width:1123px!important;
  min-height:794px!important;border:0!important;background:white!important;
  transform-origin:center center!important;max-width:none!important;max-height:none!important;
}
body.ma-v235-shell .ma-v297-preview-dialog>footer{
  font-size:12px!important;color:#c0dce7!important;text-align:center!important;
  padding:4px 10px 10px!important;flex:0 0 auto!important;
}


/* V029.8 – Sidebar-Kontrast im Bereich Verkauf & Material reduzieren.
   Farben bewusst etwas gedeckter und weicher, damit die Bedienung auf Dauer
   angenehmer ist. Funktionen, Reihenfolge und Beschriftungen bleiben gleich. */
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools>#maV18PartsButton{
  background:linear-gradient(180deg,#cf7a2e,#b76520)!important;
  border-color:#d89b62!important;
  color:#fff!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 4px 10px rgba(0,0,0,.18)!important;
}
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools>#maV226BuyButton,
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools>#maV226SellButton{
  background:linear-gradient(180deg,#8a57c8,#7447af)!important;
  border-color:#aa87dd!important;
  color:#fff!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 4px 10px rgba(0,0,0,.18)!important;
}
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools>#maV226LogbookButton{
  background:linear-gradient(180deg,#c85d9d,#ad4d89)!important;
  border-color:#d89fbe!important;
  color:#fff!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 4px 10px rgba(0,0,0,.18)!important;
}
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools>#maHourlyButton,
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools>#maV215MaterialButton{
  background:linear-gradient(180deg,#e0c34a,#cfae31)!important;
  border-color:#e6d27b!important;
  color:#1d2430!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 4px 10px rgba(0,0,0,.16)!important;
}
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools>.ma-v11-menu>.ma-v11-menu-button{
  background:linear-gradient(180deg,#155b6a,#114b58)!important;
  border-color:#4d93a0!important;
  color:#fff!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 4px 10px rgba(0,0,0,.18)!important;
}
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools>#logout{
  background:linear-gradient(180deg,#bb3550,#a22d45)!important;
  border-color:#d37386!important;
  color:#fff!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 4px 10px rgba(0,0,0,.18)!important;
}
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools>button:hover,
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools>.ma-v11-menu>.ma-v11-menu-button:hover{
  filter:brightness(1.04)!important;
  transform:none!important;
}


/* V029.9 – Dashboard: keine internen Scrollleisten in den drei unteren
   Info-Karten. Erhaelt alle Werte und Aktionen, passt die Groessen an die
   aktuelle groessere Schrift an. Nur Dashboard, nicht Rechnungslisten. */
@media screen and (min-width:1180px) and (min-height:690px) {
  body.ma-v235-shell.ma-v252-stable-shell #view .ma-v241-dashboard.ma-v254-dashboard {
    grid-template-rows:clamp(143px,18.6vh,185px) clamp(77px,9.5vh,104px) minmax(160px,1fr) clamp(172px,20vh,205px) 33px!important;
  }
  body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-bottom-grid {
    min-height:0!important;height:100%!important;overflow:visible!important;
  }
}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-bottom-grid > .ma-v241-bottom {
  padding:8px 11px!important;gap:3px!important;min-height:0!important;
  overflow:hidden!important;
}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-bottom-grid > .ma-v241-bottom .ma-v241-heading-title {
  margin:0 0 1px!important;flex:0 0 auto!important;
}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-bottom-grid > .ma-v241-bottom .ma-v241-heading-title h3 {
  font-size:18px!important;line-height:1.12!important;margin:0!important;
}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-bottom-grid .ma-v241-ledger {
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;
  grid-auto-rows:minmax(0,auto)!important;align-content:start!important;
  flex:0 0 auto!important;height:auto!important;max-height:none!important;
  min-height:0!important;overflow:visible!important;gap:0!important;
  scrollbar-width:none!important;
}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-bottom-grid .ma-v241-ledger > div {
  padding:3px 1px!important;min-height:25px!important;
  font-size:16px!important;line-height:1.08!important;
  gap:7px!important;white-space:nowrap!important;
}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-bottom-grid .ma-v241-ledger strong {
  font-size:18px!important;line-height:1.08!important;
}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-bottom-grid .ma-v241-minibutton {
  min-height:30px!important;height:30px!important;max-height:30px!important;
  padding:4px 10px!important;margin-top:auto!important;
  font-size:15px!important;line-height:1.1!important;
}
/* Bei sehr niedrigen Fenstern darf die gesamte Uebersicht notfalls
   scrollen; eine Mini-Scrollleiste innerhalb einer Statistik nie. */
@media screen and (max-height:689px) {
  body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-bottom-grid .ma-v241-ledger {
    overflow:visible!important;max-height:none!important;height:auto!important;
  }
  body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-bottom-grid > .ma-v241-bottom {
    height:auto!important;min-height:175px!important;overflow:visible!important;
  }
}


/* V030.0 – ruhige Interaktion fuer die Sidebar (alle Menuebuttons).
   Die V029.8-Farben bleiben bestehen. Das alte brightness(1.18) und die
   helle Hover-Umrandung werden hier gezielt ausser Kraft gesetzt.
   Fokus per Tastatur bleibt durch eine gut sichtbare, nicht grelle Linie erkennbar. */
body.ma-v235-shell #nav.ma-v235-sidebar-nav > button:is(:hover,:focus-visible),
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools > button:is(:hover,:focus-visible),
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools > .ma-v11-menu > .ma-v11-menu-button:is(:hover,:focus-visible) {
  filter:brightness(1.015) saturate(.96)!important;
  transform:none!important;
  border-color:rgba(139,183,197,.75)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 3px 8px rgba(0,0,0,.14)!important;
  transition:background-color .15s ease,border-color .15s ease,filter .15s ease!important;
}
body.ma-v235-shell #nav.ma-v235-sidebar-nav > button.primary:is(:hover,:focus-visible),
body.ma-v235-shell #nav.ma-v235-sidebar-nav > button[aria-current="page"]:is(:hover,:focus-visible) {
  filter:brightness(1.01) saturate(.94)!important;
  border-color:rgba(105,194,205,.85)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 3px 9px rgba(0,0,0,.14)!important;
}
body.ma-v235-shell #nav.ma-v235-sidebar-nav > button:focus-visible,
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools > button:focus-visible,
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools > .ma-v11-menu > .ma-v11-menu-button:focus-visible {
  outline:2px solid #76acbd!important;outline-offset:1px!important;
}
body.ma-v235-shell #nav.ma-v235-sidebar-nav > button:active,
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools > button:active,
body.ma-v235-shell #adminTopActions.ma-v235-sidebar-tools > .ma-v11-menu > .ma-v11-menu-button:active {
  filter:brightness(.97) saturate(.95)!important;transform:none!important;
}


/* V030.1 – Dashboard „Letzte Aktivitäten“ entzerren.
   Verhindert Überlappungen zwischen Titel und Datum/Uhrzeit,
   ohne die restlichen Karten oder Funktionen zu verändern. */
@media (min-width:1200px) {
  body.ma-v235-shell #view .ma-v238-bottom-card .ma-v238-activity-row {
    align-items:flex-start!important;
    gap:10px!important;
    padding:7px 0 9px!important;
    min-height:54px!important;
  }
  body.ma-v235-shell #view .ma-v238-bottom-card .ma-v238-activity-row > span {
    flex:0 0 auto!important;
    margin-top:2px!important;
    line-height:1!important;
  }
  body.ma-v235-shell #view .ma-v238-bottom-card .ma-v238-activity-row > div,
  body.ma-v235-shell #view .ma-v238-bottom-card .ma-v238-activity-row > section,
  body.ma-v235-shell #view .ma-v238-bottom-card .ma-v238-activity-row > article {
    min-width:0!important;
    flex:1 1 auto!important;
  }
  body.ma-v235-shell #view .ma-v238-bottom-card .ma-v238-activity-row strong {
    display:block!important;
    line-height:1.16!important;
    margin:0 0 4px!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }
  body.ma-v235-shell #view .ma-v238-bottom-card .ma-v238-activity-row small {
    display:block!important;
    line-height:1.1!important;
    margin:0!important;
    opacity:.96!important;
  }
}


/* V030.2 – dieselbe Lesbarkeitskorrektur aus V030.1 auch fuer die aktive
   Dashboard-Version ma-v241/ma-v254 (statt nur aeltere ma-v238-Karten). */
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-activity-list .ma-v241-activity {
  align-items:flex-start!important;
  min-height:0!important;
  padding:6px 5px!important;
  gap:9px!important;
}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-activity-list .ma-v241-activity > div {
  min-width:0!important;flex:1 1 auto!important;
}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-activity-list .ma-v241-activity strong {
  display:block!important;
  line-height:1.15!important;
  margin:0 0 4px!important;
  overflow-wrap:anywhere!important;
}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-activity-list .ma-v241-activity small {
  display:block!important;
  line-height:1.15!important;
  margin:0!important;
  overflow-wrap:anywhere!important;
}


/* V030.3 – echte aktive ma-v254/ma-v241 Aktivitaetsliste.
   Ursache der Textueberlagerung war das CSS-Grid mit komprimierten impliziten
   Zeilen bei der erhoehten Schriftgroesse. Stattdessen Flexzeilen mit
   intrinsischer Hoehe: Datum bleibt immer unter dem Betreff. */
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-bottom-grid .ma-v241-activity-list {
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-start!important;
  align-items:stretch!important;
  gap:0!important;
  min-height:0!important;
  overflow-x:hidden!important;
  overflow-y:auto!important; /* Fallback fuer sehr niedrige Fenster, niemals Text ueberlagern */
  scrollbar-width:thin!important;
}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-bottom-grid .ma-v241-activity-list > .ma-v241-activity {
  display:flex!important;
  flex:0 0 auto!important;
  min-height:40px!important;
  height:auto!important;
  align-items:center!important;
  gap:8px!important;
  margin:0!important;
  padding:3px 4px 4px!important;
  box-sizing:border-box!important;
}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-bottom-grid .ma-v241-activity-list > .ma-v241-activity > div {
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  gap:2px!important;
  flex:1 1 auto!important;
  min-width:0!important;
  height:auto!important;
}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-bottom-grid .ma-v241-activity-list > .ma-v241-activity strong {
  display:block!important;
  flex:0 0 auto!important;
  font-size:17px!important;
  font-weight:750!important;
  line-height:1.12!important;
  white-space:normal!important;
  overflow:visible!important;
  overflow-wrap:break-word!important;
  margin:0!important;
}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-bottom-grid .ma-v241-activity-list > .ma-v241-activity small {
  display:block!important;
  flex:0 0 auto!important;
  font-size:13px!important;
  line-height:1.12!important;
  white-space:normal!important;
  margin:0!important;
}
body.ma-v235-shell #view .ma-v254-dashboard .ma-v241-bottom-grid .ma-v241-activity-list .ma-v241-activity-icon {
  width:24px!important;height:24px!important;min-width:24px!important;
  align-self:center!important;
}


/* V030.4 – Windows-11-artiges Einblenden beim Oeffnen von Benachrichtigungen.
   Animiert nur sichtbare Dialoge, ohne den vorhandenen transform-Wert,
   die Zentrierung, Klick-Handler oder das Schliessen zu ersetzen. */
@keyframes maV304NoticePop {
  from { opacity:0; translate:0 14px; scale:.975; }
  to   { opacity:1; translate:0 0; scale:1; }
}
@keyframes maV304NoticeBackdrop {
  from { opacity:0; }
  to   { opacity:1; }
}
body.ma-v235-shell #workshopBellPopup:not(.hidden):not([hidden]),
body.ma-v235-shell #maActivityPopup:not(.hidden):not([hidden]),
body.ma-v235-shell #maV18InvoiceNotice:not([hidden]) > section {
  animation:maV304NoticePop 260ms cubic-bezier(.18,.82,.2,1) both!important;
  will-change:opacity,translate,scale;
}
body.ma-v235-shell #maV17NoticeBackdrop:not([hidden]),
body.ma-v235-shell #maV18InvoiceNotice:not([hidden]) {
  animation:maV304NoticeBackdrop 190ms ease-out both!important;
}
@media (prefers-reduced-motion:reduce) {
  body.ma-v235-shell #workshopBellPopup:not(.hidden):not([hidden]),
  body.ma-v235-shell #maActivityPopup:not(.hidden):not([hidden]),
  body.ma-v235-shell #maV18InvoiceNotice:not([hidden]) > section,
  body.ma-v235-shell #maV17NoticeBackdrop:not([hidden]),
  body.ma-v235-shell #maV18InvoiceNotice:not([hidden]) {
    animation:none!important;opacity:1!important;translate:none!important;scale:none!important;
  }
}
