/* Krahwinkel Dispo V1.7.0 – geschützte Frontend-Anwendung */
body:has(.kd-front-app){background:#f1f2f4!important}
.kd-front-app{min-height:100vh;background:#f1f2f4;color:#1f2937;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}
.kd-front-top{height:68px;background:#171717;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 24px;box-sizing:border-box;position:sticky;top:0;z-index:1000;box-shadow:0 2px 10px rgba(0,0,0,.18)}
.kd-front-brand{display:flex;align-items:center;gap:12px}.kd-front-brand>div:last-child{display:flex;flex-direction:column}.kd-front-brand strong{font-size:16px;line-height:1.2}.kd-front-brand span{font-size:11px;color:#c9c9c9;margin-top:2px}.kd-front-logo{width:38px;height:38px;border-radius:10px;background:linear-gradient(135deg,#a80012,#e31b2f);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:19px}
.kd-front-user{display:flex;align-items:center;gap:15px;font-size:12px}.kd-front-user a{color:#fff;text-decoration:none;border:1px solid #555;border-radius:8px;padding:8px 11px}.kd-front-user a:hover{background:#2a2a2a}
.kd-front-layout{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:calc(100vh - 68px)}
.kd-front-sidebar{background:#202020;color:#fff}.kd-front-nav{position:sticky;top:68px;padding:14px 10px}.kd-front-nav a{display:block;color:#d6d6d6;text-decoration:none;padding:11px 12px;border-radius:8px;font-size:13px;margin:2px 0}.kd-front-nav a:hover{background:#303030;color:#fff}.kd-front-nav a.is-active{background:#a80012;color:#fff;font-weight:700}
.kd-front-main{min-width:0;padding:0 24px 40px}.kd-front-main .wrap{max-width:1450px;margin:0 auto}.kd-front-main .kd-hero{margin:24px 0 18px}.kd-front-main .kd-panel,.kd-front-main .kd-card,.kd-front-main .kd-doc-stat,.kd-front-main .kd-bill-stat,.kd-front-main .kd-customer-stat,.kd-front-main .kd-employee-stat,.kd-front-main .kd-vehicle-card{box-sizing:border-box}
.kd-front-main .button,.kd-front-main button{cursor:pointer}.kd-front-main input,.kd-front-main select,.kd-front-main textarea{font-family:inherit}
.kd-front-footer{display:flex;justify-content:space-between;gap:10px;padding:16px 24px;background:#171717;color:#999;font-size:11px}
.kd-login-required{max-width:500px;margin:80px auto;padding:30px;background:#fff;border-radius:14px;text-align:center}
@media(max-width:900px){.kd-front-layout{grid-template-columns:1fr}.kd-front-sidebar{position:sticky;top:68px;z-index:900;overflow:auto}.kd-front-nav{display:flex;gap:5px;overflow:auto;padding:8px}.kd-front-nav a{white-space:nowrap;padding:9px 10px}.kd-front-main{padding:0 12px 30px}}
@media(max-width:600px){.kd-front-top{padding:0 12px}.kd-front-user span{display:none}.kd-front-user{gap:8px}.kd-front-main .kd-hero{margin-top:12px}.kd-front-footer{padding:12px;flex-direction:column}.kd-front-brand strong{font-size:14px}}

/* Krahwinkel Dispo V1.8.0 – TMS test interface */
.kd-brand-logo{width:auto;height:42px;max-width:190px;object-fit:contain;display:block;background:#fff;border-radius:8px;padding:4px 8px}.kd-logo-fallback{display:flex;align-items:center;justify-content:center;width:42px;height:42px;background:#fff;color:#b20a16;border-radius:8px;font-weight:900;font-size:24px}.kd-front-brand{gap:12px}.kd-front-brand>div:last-child{display:flex;flex-direction:column}.kd-dashboard-welcome{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 18px;padding:22px 24px;border-radius:16px;background:linear-gradient(135deg,#171717,#303030);color:#fff;box-shadow:0 8px 30px rgba(0,0,0,.12)}.kd-dashboard-welcome h2{margin:5px 0 4px;font-size:25px}.kd-dashboard-welcome p{margin:0;color:#d6d6d6}.kd-kicker{font-size:11px;font-weight:800;letter-spacing:1.4px;color:#e51b2b}.kd-dashboard-date{font-weight:700;color:#fff;white-space:nowrap}.kd-kpi-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:16px}.kd-kpi-card{position:relative;display:flex;align-items:center;gap:11px;padding:16px;border-radius:14px;text-decoration:none;background:#fff;border:1px solid #e6e8eb;box-shadow:0 3px 12px rgba(0,0,0,.05);color:#1d2327;min-height:90px;transition:.18s}.kd-kpi-card:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(0,0,0,.1)}.kd-kpi-icon{font-size:25px}.kd-kpi-copy{display:flex;flex-direction:column;gap:3px}.kd-kpi-copy small{font-size:11px;color:#6b7280;font-weight:700}.kd-kpi-copy strong{font-size:24px;line-height:1}.kd-kpi-arrow{margin-left:auto;color:#9ca3af;font-weight:800}.kd-kpi-red{border-top:3px solid #c8102e}.kd-kpi-blue{border-top:3px solid #315efb}.kd-kpi-orange{border-top:3px solid #f59e0b}.kd-kpi-gray{border-top:3px solid #64748b}.kd-kpi-green{border-top:3px solid #16a34a}.kd-kpi-purple{border-top:3px solid #7c3aed}.kd-quick-actions{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}.kd-quick-actions a{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid #e1e4e8;border-radius:9px;padding:10px 14px;text-decoration:none;color:#1d2327;font-weight:700}.kd-quick-actions a:hover{border-color:#c8102e;color:#c8102e}.kd-quick-actions .kd-quick-primary{background:#c8102e;border-color:#c8102e;color:#fff}.kd-dashboard-columns{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(320px,1fr);gap:16px;margin-bottom:16px}.kd-today-list{display:flex;flex-direction:column}.kd-today-row{display:grid;grid-template-columns:95px minmax(160px,1fr) minmax(190px,1fr) 95px 20px;gap:10px;align-items:center;padding:13px 0;border-bottom:1px solid #edf0f2;text-decoration:none;color:#1d2327}.kd-today-row:last-child{border-bottom:0}.kd-today-row:hover{background:#fafafa}.kd-order-no{font-weight:800}.kd-route{font-weight:700}.kd-vehicle{font-weight:700}.kd-vehicle small{display:block;color:#73777b;font-weight:500;margin-top:3px}.kd-status-pill{font-size:11px;font-weight:800;padding:5px 8px;border-radius:999px;text-align:center}.kd-status-offen{background:#fff3cd;color:#8a5a00}.kd-status-geplant{background:#e8efff;color:#2345a0}.kd-status-erledigt{background:#e7f7ed;color:#15703a}.kd-status-storniert{background:#f3f4f6;color:#6b7280}.kd-task-list{display:flex;flex-direction:column}.kd-task{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid #edf0f2;text-decoration:none;color:#1d2327}.kd-task:last-child{border-bottom:0}.kd-task>span{font-size:21px}.kd-task div{flex:1}.kd-task strong,.kd-task small{display:block}.kd-task small{margin-top:3px;color:#73777b}.kd-task>b{color:#9ca3af}.kd-dashboard-footer-note{padding:13px 4px;color:#6b7280;font-size:12px}.kd-orders-filters{display:flex;gap:8px;align-items:center}.kd-orders-filters input,.kd-orders-filters select{min-height:38px;border:1px solid #d7dce1;border-radius:8px;padding:7px 10px;background:#fff}.kd-drag-board{overflow:hidden}.kd-board-nav{display:flex;gap:6px;flex-wrap:wrap}.kd-drag-layout{display:grid;grid-template-columns:270px minmax(720px,1fr);gap:12px}.kd-open-orders{background:#f7f8fa;border:1px solid #e4e7eb;border-radius:12px;padding:10px;max-height:650px;overflow:auto}.kd-open-orders-head{display:flex;justify-content:space-between;align-items:center;padding:4px 3px 9px}.kd-open-orders-head span{background:#c8102e;color:#fff;border-radius:999px;padding:2px 8px;font-size:11px;font-weight:800}.kd-open-orders>input{width:100%;margin-bottom:9px;border:1px solid #d7dce1;border-radius:8px;padding:9px}.kd-drag-order{background:#fff;border:1px solid #e1e4e8;border-left:4px solid #c8102e;border-radius:9px;padding:10px;margin-bottom:8px;cursor:grab;box-shadow:0 2px 6px rgba(0,0,0,.04)}.kd-drag-order:active{cursor:grabbing}.kd-drag-order strong,.kd-drag-order span,.kd-drag-order small{display:block}.kd-drag-order span{font-weight:700;margin-top:3px}.kd-drag-order small{color:#7b8187;margin-top:4px}.kd-drag-order.is-dragging{opacity:.45}.kd-drag-calendar{overflow:auto;border:1px solid #e2e5e8;border-radius:12px;background:#fff}.kd-drag-grid-head,.kd-drag-grid-row{display:grid;grid-template-columns:180px repeat(7,minmax(120px,1fr));min-width:1020px}.kd-drag-grid-head>div{padding:10px;border-right:1px solid #e7eaed;border-bottom:1px solid #e7eaed;background:#f7f8fa;font-size:11px;font-weight:800;text-transform:uppercase;color:#6c737a}.kd-drag-grid-head>div strong{display:block;font-size:15px;color:#1d2327;margin-top:2px}.kd-drag-grid-head .is-today{background:#fff1f3;color:#c8102e}.kd-drag-grid-row>div{min-height:88px;border-right:1px solid #edf0f2;border-bottom:1px solid #edf0f2}.kd-drag-vehicle{padding:10px;background:#fbfbfc;position:sticky;left:0;z-index:2}.kd-drag-vehicle strong,.kd-drag-vehicle span,.kd-drag-vehicle small{display:block}.kd-drag-vehicle span{font-size:11px;color:#666;margin-top:3px}.kd-drag-vehicle small{font-size:10px;color:#6b7280;margin-top:7px}.kd-drop-cell{padding:5px;transition:.12s;background:#fff}.kd-drop-cell.is-over{background:#fff5f6;box-shadow:inset 0 0 0 2px #c8102e}.kd-drop-cell.is-workshop{background:#f1f2f4}.kd-drop-hint{display:flex;align-items:center;justify-content:center;height:100%;min-height:78px;color:#a2a7ac;font-size:10px;text-align:center}.kd-drop-workshop{display:flex;align-items:center;justify-content:center;height:100%;font-size:11px;color:#6b7280;font-weight:800}.kd-drop-order{display:block;text-decoration:none;color:#1d2327;background:#f6f8ff;border:1px solid #d8e0ff;border-radius:7px;padding:6px;margin-bottom:4px}.kd-drop-order strong,.kd-drop-order span{display:block}.kd-drop-order strong{font-size:11px;color:#2345a0}.kd-drop-order span{font-size:10px;margin-top:2px;line-height:1.25}.kd-drag-board .kd-section-head p{max-width:720px}.kd-standalone-dispo .kd-front-main{min-width:0}
@media(max-width:1200px){.kd-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.kd-dashboard-columns{grid-template-columns:1fr}.kd-drag-layout{grid-template-columns:230px minmax(720px,1fr)}}
@media(max-width:700px){.kd-dashboard-welcome{align-items:flex-start;flex-direction:column}.kd-dashboard-date{white-space:normal}.kd-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.kd-today-row{grid-template-columns:70px 1fr;gap:6px}.kd-today-row .kd-vehicle,.kd-today-row .kd-status-pill,.kd-today-row>span:last-child{grid-column:2}.kd-orders-filters{width:100%;flex-direction:column}.kd-orders-filters>*{width:100%}.kd-brand-logo{height:34px;max-width:145px}.kd-drag-layout{grid-template-columns:1fr}.kd-open-orders{max-height:320px}.kd-drag-calendar{min-width:0}}

/* V1.8.5 drag-and-drop disposition */
.kd-drag-order[draggable="true"], .kd-drag-existing[draggable="true"], .kd-week-drop { cursor: grab; }
.kd-drag-order.is-dragging, .kd-drag-existing.is-dragging { opacity:.55; cursor:grabbing; }
.kd-drop-cell.is-over, .kd-week-drop.is-over { outline:2px dashed #3157e8; outline-offset:-3px; background:#eef2ff !important; }
.kd-week-cell-busy[draggable="true"] { cursor:grab; }

/* Krahwinkel Markenfarben V1.9.1 */
:root{--kd-brand-primary:#1932A2;--kd-brand-secondary:#09071D}
.kd-front-top,.kd-front-footer{background:var(--kd-brand-secondary)!important}
.kd-front-logo{background:linear-gradient(135deg,var(--kd-brand-primary),var(--kd-brand-secondary))!important}
.kd-front-sidebar{background:var(--kd-brand-secondary)!important}
.kd-front-nav a.is-active{background:var(--kd-brand-primary)!important}
.kd-dashboard-welcome{background:linear-gradient(135deg,var(--kd-brand-primary),var(--kd-brand-secondary))!important}
.kd-kicker{color:var(--kd-brand-primary)!important}
.kd-kpi-red,.kd-kpi-blue{border-top-color:var(--kd-brand-primary)!important}
.kd-quick-actions a:hover{border-color:var(--kd-brand-primary)!important;color:var(--kd-brand-primary)!important}
.kd-quick-actions .kd-quick-primary{background:var(--kd-brand-primary)!important;border-color:var(--kd-brand-primary)!important}
.kd-open-orders-head span{background:var(--kd-brand-primary)!important}
.kd-drag-order{border-left-color:var(--kd-brand-primary)!important}
.kd-drag-grid-head .is-today{color:var(--kd-brand-primary)!important}
.kd-drop-cell.is-over{box-shadow:inset 0 0 0 2px var(--kd-brand-primary)!important}


/* Krahwinkel Dispo V1.9.3 – compact full-width frontend */
.kd-front-main{padding:0 12px 20px!important}
.kd-front-main .kd-hero{padding:20px 26px!important;margin:12px auto 14px!important;border-radius:16px!important}
.kd-front-main .kd-hero h1{font-size:30px!important;line-height:1.1!important;margin:0 0 4px!important}
.kd-dashboard-welcome{padding:17px 20px!important;margin-bottom:12px!important;border-radius:14px!important;gap:14px!important}
.kd-dashboard-welcome h2{font-size:21px!important;margin:3px 0!important}
.kd-dashboard-welcome p{font-size:12px!important}
.kd-dashboard-date{display:flex!important;align-items:flex-end!important;gap:8px!important;flex-direction:column!important;font-variant-numeric:tabular-nums!important}
.kd-dashboard-date strong{font-size:20px!important;line-height:1!important;letter-spacing:.02em!important;color:#fff!important}
.kd-kpi-grid{gap:9px!important;margin-bottom:12px!important}
.kd-kpi-card{min-height:70px!important;padding:11px 12px!important;border-radius:12px!important;gap:8px!important}
.kd-kpi-icon{font-size:20px!important}.kd-kpi-copy small{font-size:10px!important}.kd-kpi-copy strong{font-size:21px!important}
.kd-front-main .kd-card,.kd-front-main .kd-panel,.kd-front-main .kd-section{padding:14px!important;border-radius:13px!important}
.kd-front-main input:not([type=checkbox]):not([type=radio]),.kd-front-main select,.kd-front-main textarea{min-height:38px!important;padding:7px 10px!important;font-size:13px!important}
.kd-front-main .button,.kd-front-main button,.kd-front-main a.button,.kd-front-main input[type=submit],.kd-front-main input[type=button]{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:36px!important;padding:7px 12px!important;border-radius:9px!important;background:#fff!important;color:#1932A2!important;border:1px solid #c9d1e3!important;text-decoration:none!important;font-weight:700!important;box-shadow:0 2px 6px rgba(9,7,29,.07)!important;visibility:visible!important;opacity:1!important}
.kd-front-main button[type=submit],.kd-front-main input[type=submit],.kd-front-main .button-primary,.kd-front-main .primary,.kd-front-main .btn-primary{background:#1932A2!important;color:#fff!important;border-color:#1932A2!important}
.kd-front-main table th,.kd-front-main table td{padding:8px 10px!important}
@media(max-width:900px){.kd-front-main .kd-hero{padding:17px 18px!important}.kd-dashboard-date{align-items:flex-start!important}.kd-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:700px){.kd-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.kd-dashboard-date{flex-direction:row!important;align-items:center!important}.kd-dashboard-date strong{font-size:18px!important}}
/* V1.10.1: top information + error report button */
.kd-front-meta{display:flex;align-items:center;gap:10px;margin-left:auto}.kd-front-clockbox{display:flex;align-items:center;gap:8px;color:#fff;padding:5px 10px;border-radius:10px;background:rgba(255,255,255,.10);white-space:nowrap}.kd-front-clockbox span{font-size:12px;opacity:.9}.kd-front-clockbox strong{font-size:14px;letter-spacing:.3px}.kd-front-clockbox small{font-size:10px;opacity:.7;padding-left:5px;border-left:1px solid rgba(255,255,255,.25)}.kd-whatsapp-report{border:0;border-radius:10px;padding:9px 12px;background:#25D366;color:#fff;font-weight:800;cursor:pointer;box-shadow:0 3px 10px rgba(0,0,0,.15)}.kd-whatsapp-report:hover{filter:brightness(.95)}.kd-whatsapp-report:disabled{opacity:.65;cursor:wait}.kd-front-user{display:flex;align-items:center;gap:10px}@media(max-width:900px){.kd-front-meta{gap:6px}.kd-front-clockbox{padding:5px 7px}.kd-front-clockbox small{display:none}.kd-whatsapp-report{padding:8px 9px}.kd-whatsapp-report span{display:none}}@media(max-width:600px){.kd-front-meta{flex-wrap:nowrap}.kd-front-clockbox span{display:none}.kd-front-clockbox strong{font-size:12px}.kd-whatsapp-report{font-size:14px;padding:8px}.kd-front-user a{font-size:11px}}
.kd-address-block{grid-column:1/-1;border:1px solid rgba(25,50,162,.15);background:#f7f8fc;border-radius:14px;padding:14px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-top:4px}
.kd-address-block h3{grid-column:1/-1;margin:0;color:#1932A2;font-size:17px}
.kd-address-block label{margin:0}
@media(max-width:900px){.kd-address-block{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.kd-address-block{grid-template-columns:1fr}}

/* Krahwinkel Dispo V1.12.1 – Desktop / Large Monitor Dashboard Layout */
@media (min-width:1201px){
  .kd-front-main{padding:0 22px 36px!important;min-width:0!important}
  .kd-front-main .wrap{width:100%!important;max-width:2400px!important;margin:0 auto!important}
  .kd-front-main .kd-hero{width:100%!important;box-sizing:border-box!important}
  .kd-dashboard-welcome{width:100%!important;box-sizing:border-box!important}
  .kd-kpi-grid{grid-template-columns:repeat(6,minmax(150px,1fr))!important;gap:14px!important}
  .kd-kpi-card{min-height:92px!important;padding:16px 18px!important}
  .kd-dashboard-columns{grid-template-columns:minmax(0,2fr) minmax(380px,1fr)!important;gap:18px!important;align-items:stretch!important}
  .kd-dashboard-columns>.kd-panel{min-width:0!important;height:100%!important}
  .kd-today-row{grid-template-columns:110px minmax(240px,1.25fr) minmax(280px,1.2fr) 110px 24px!important;gap:14px!important;padding:15px 0!important}
  .kd-quick-actions{gap:10px!important}
  .kd-quick-actions a{padding:11px 16px!important}
}
@media (min-width:1800px){
  .kd-front-main{padding-left:30px!important;padding-right:30px!important}
  .kd-front-main .wrap{max-width:2800px!important}
  .kd-kpi-grid{gap:16px!important}
  .kd-kpi-card{min-height:100px!important}
  .kd-dashboard-columns{grid-template-columns:minmax(0,2.15fr) minmax(420px,1fr)!important;gap:20px!important}
  .kd-dashboard-welcome{padding:22px 28px!important}
}

/* V1.13.0 – offene Aufträge nur unzugewiesen + Rückgabe per Drag & Drop */
.kd-open-dropzone{margin-top:10px;border:2px dashed #b9c0cc;border-radius:10px;padding:12px;text-align:center;background:#fff;color:#4b5563;transition:.12s;cursor:default}
.kd-open-dropzone strong,.kd-open-dropzone span{display:block}
.kd-open-dropzone strong{font-size:12px;color:var(--kd-brand-primary,#1932A2)}
.kd-open-dropzone span{font-size:10px;line-height:1.35;margin-top:4px;color:#73777b}
.kd-open-dropzone.is-over{background:#eef2ff;border-color:var(--kd-brand-primary,#1932A2);box-shadow:inset 0 0 0 2px rgba(25,50,162,.12)}
@media(max-width:700px){.kd-open-dropzone{padding:10px}}

/* V1.13.1 – Auftrags-Priorität / verspätete Aufträge */
.kd-drag-order.kd-order-late-orange{background:#fff7e6!important;border-color:#f59e0b!important;border-left-color:#f59e0b!important}
.kd-drag-order.kd-order-late-red{background:#fff0f0!important;border-color:#dc2626!important;border-left-color:#dc2626!important}
.kd-drop-order.kd-order-late-orange{background:#fff7e6!important;border-color:#f59e0b!important}
.kd-drop-order.kd-order-late-red{background:#fff0f0!important;border-color:#dc2626!important}
.kd-order-late-orange strong{color:#9a6700!important}.kd-order-late-red strong{color:#b42318!important}
.kd-drop-order small{display:block;font-size:10px;color:#667085;margin-top:3px;line-height:1.25}
.kd-late-alert{display:grid;grid-template-columns:36px minmax(0,1fr);gap:12px;align-items:start;margin:0 0 16px;padding:16px 18px;border:1px solid #f2c94c;border-left:5px solid #f59e0b;border-radius:12px;background:#fffaf0}
.kd-late-alert-icon{font-size:24px;line-height:1}.kd-late-alert>div:nth-child(2)>strong{display:block;font-size:16px;color:#7a4e00}.kd-late-alert>div:nth-child(2)>span{display:block;margin-top:3px;color:#6b7280;font-size:13px}
.kd-late-alert-list{grid-column:1 / -1;display:flex;flex-direction:column;gap:6px;margin-top:2px;width:100%}.kd-late-alert-item{box-sizing:border-box;width:100%;display:grid;grid-template-columns:170px minmax(0,1fr) 150px;gap:14px;align-items:center;text-decoration:none;padding:10px 14px;border-radius:8px;background:#fff;border:1px solid #f0e1b0;color:#1d2327;min-height:46px}.kd-late-alert-item.red{border-color:#f0b6b6;background:#fff5f5}.kd-late-alert-item strong{font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kd-late-alert-item span{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kd-late-alert-item b{font-size:11px;white-space:nowrap;text-align:right}.kd-late-alert-item.orange b{color:#9a6700}.kd-late-alert-item.red b{color:#b42318}
@media(max-width:700px){.kd-late-alert{grid-template-columns:30px minmax(0,1fr);padding:13px}.kd-late-alert-item{grid-template-columns:1fr;gap:4px}.kd-late-alert-item strong,.kd-late-alert-item span{white-space:normal;overflow:visible}.kd-late-alert-item b{text-align:left}.kd-late-alert-list{margin-top:0}}

/* V1.13.2 – Dashboard Schnellzugriff überarbeitet / sichtbare Buttons */
.kd-dashboard-shortcuts{margin:0 0 18px;padding:18px;border:1px solid #e1e5ec;border-radius:15px;background:#fff;box-shadow:0 3px 14px rgba(9,7,29,.045)}
.kd-shortcuts-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.kd-shortcuts-head h2{margin:2px 0 3px;font-size:19px;line-height:1.2;color:#172033}
.kd-shortcuts-head p{margin:0;color:#6b7280;font-size:12px}
.kd-shortcuts-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.kd-shortcut-card{display:flex!important;align-items:center!important;gap:10px!important;min-height:72px!important;padding:12px 13px!important;box-sizing:border-box!important;border:1px solid #dfe4ec!important;border-radius:11px!important;background:#fff!important;color:#172033!important;text-decoration:none!important;box-shadow:0 2px 7px rgba(9,7,29,.045)!important;transition:transform .15s,box-shadow .15s,border-color .15s!important;visibility:visible!important;opacity:1!important}
.kd-shortcut-card:hover{transform:translateY(-2px)!important;border-color:#1932A2!important;box-shadow:0 7px 16px rgba(9,7,29,.10)!important;color:#1932A2!important}
.kd-shortcut-card .kd-shortcut-icon{width:36px!important;height:36px!important;min-width:36px!important;display:flex!important;align-items:center!important;justify-content:center!important;border-radius:9px!important;background:#eef2ff!important;color:#1932A2!important;font-size:19px!important;font-weight:800!important;line-height:1!important}
.kd-shortcut-copy{display:flex!important;flex-direction:column!important;gap:2px!important;min-width:0!important;flex:1!important}
.kd-shortcut-copy strong{display:block!important;font-size:13px!important;line-height:1.2!important;color:#172033!important;font-weight:800!important;white-space:nowrap!important}
.kd-shortcut-copy small{display:block!important;font-size:10px!important;line-height:1.25!important;color:#737b88!important;white-space:nowrap!important}
.kd-shortcut-card>b{margin-left:auto!important;color:#9aa3b1!important;font-size:16px!important;line-height:1!important}
.kd-shortcut-card.kd-shortcut-primary{background:#1932A2!important;border-color:#1932A2!important;color:#fff!important}
.kd-shortcut-card.kd-shortcut-primary .kd-shortcut-icon{background:rgba(255,255,255,.16)!important;color:#fff!important}
.kd-shortcut-card.kd-shortcut-primary .kd-shortcut-copy strong,.kd-shortcut-card.kd-shortcut-primary .kd-shortcut-copy small{color:#fff!important}
.kd-shortcut-card.kd-shortcut-primary>b{color:#fff!important}
@media(max-width:1200px){.kd-shortcuts-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.kd-dashboard-shortcuts{padding:13px}.kd-shortcuts-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.kd-shortcut-card{min-height:64px!important;padding:10px!important}.kd-shortcut-copy strong{font-size:12px!important}.kd-shortcut-copy small{font-size:9px!important}}
@media(max-width:480px){.kd-shortcuts-grid{grid-template-columns:1fr}.kd-shortcut-card{min-height:58px!important}}

/* V1.13.4 – Offene Aufträge: Doppelklick zum Bearbeiten / Drag & Drop sichtbar */
.kd-open-orders .kd-drag-order{cursor:grab;}
.kd-open-orders .kd-drag-order:active{cursor:grabbing;}
.kd-open-orders .kd-drag-order[draggable="true"]{user-select:none;}


/* V1.13.8 – Zentrale Seite „Alle Aufträge“ */
.kd-all-orders-wrap{width:100%;}
.kd-all-orders-stats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:0 0 14px}
.kd-all-orders-stat{display:flex;align-items:center;gap:10px;min-height:72px;padding:11px 13px;border:1px solid #dfe4ec;border-radius:12px;background:#fff;box-shadow:0 2px 8px rgba(9,7,29,.04)}
.kd-all-orders-stat>span{width:34px;height:34px;display:flex;align-items:center;justify-content:center;border-radius:9px;background:#eef2ff;font-size:18px}.kd-all-orders-stat small{display:block;color:#6b7280;font-size:10px}.kd-all-orders-stat strong{display:block;color:#172033;font-size:21px;line-height:1.1;margin-top:2px}
.kd-all-orders-panel{padding:16px!important}.kd-all-orders-tools{display:flex;gap:8px;align-items:center}.kd-all-orders-filterbar{display:grid;grid-template-columns:minmax(260px,2.2fr) repeat(4,minmax(130px,1fr)) auto;gap:9px;align-items:end;margin:0 0 10px;padding:12px;border:1px solid #e2e6ed;border-radius:11px;background:#f7f8fb}.kd-all-orders-filterbar label{display:block;margin:0}.kd-all-orders-filterbar label>span{display:block;font-size:10px;font-weight:800;color:#4b5563;margin:0 0 4px}.kd-all-orders-filterbar input,.kd-all-orders-filterbar select{width:100%;box-sizing:border-box}.kd-all-orders-resultbar{display:flex;align-items:center;gap:10px;padding:7px 2px 9px;color:#6b7280;font-size:11px}.kd-all-orders-resultbar strong{color:#172033;font-size:13px}.kd-all-orders-table-wrap{overflow:auto;border:1px solid #e1e5ec;border-radius:10px}.kd-all-orders-table{border:0!important;border-collapse:collapse!important;min-width:1320px;table-layout:auto}.kd-all-orders-table th{background:#f5f6f9!important;color:#172033!important;font-size:11px!important;text-transform:none!important;white-space:nowrap}.kd-all-orders-table td{vertical-align:middle!important;font-size:12px!important}.kd-all-orders-table td small{display:block;color:#7a8290;font-size:10px;margin-top:2px}.kd-all-order-no{color:#1932A2}.kd-all-status{display:inline-flex;padding:4px 8px;border-radius:999px;font-size:10px;font-weight:800;white-space:nowrap}.kd-all-status-offen{background:#eef2ff;color:#1932A2}.kd-all-status-geplant{background:#eaf7ff;color:#0369a1}.kd-all-status-erledigt{background:#eaf8ef;color:#16803c}.kd-all-status-storniert{background:#fff0f0;color:#b42318}.kd-all-order-actions{white-space:nowrap}.kd-all-order-actions .button{margin:2px 2px 2px 0!important;padding:5px 8px!important;min-height:30px!important;font-size:10px!important}.kd-all-order-actions .kd-all-delete{color:#b42318!important;border-color:#f0b6b6!important;background:#fff!important}.kd-all-empty{text-align:center!important;padding:35px!important;color:#6b7280}
@media(max-width:1200px){.kd-all-orders-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.kd-all-orders-filterbar{grid-template-columns:2fr repeat(2,1fr);}.kd-all-orders-filterbar label:first-child{grid-column:1/-1}}
@media(max-width:700px){.kd-all-orders-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.kd-all-orders-filterbar{grid-template-columns:1fr}.kd-all-orders-filterbar label:first-child{grid-column:auto}.kd-all-orders-resultbar{justify-content:space-between}.kd-all-orders-table{min-width:980px}}


/* V1.13.10 – Auftragsformular Desktop-Layout: gleichmäßige Kopfzeile und kompakte Felder */
.kd-bill-form.kd-order-form,
.kd-bill-form{
  display:grid!important;
  grid-template-columns:repeat(12,minmax(0,1fr))!important;
  gap:14px!important;
  align-items:end!important;
  width:100%!important;
  box-sizing:border-box!important;
}
.kd-bill-form>.kd-auto-order-number{grid-column:span 2!important;min-width:0!important;align-self:stretch!important;display:grid!important;grid-template-columns:1fr!important;grid-template-rows:auto auto auto!important;align-content:center!important;}
.kd-bill-form>.kd-customer-order-picker{display:contents!important;}
.kd-bill-form>.kd-customer-order-picker>label{grid-column:span 3!important;min-width:0!important;margin:0!important;align-self:end!important;}
.kd-bill-form>.kd-customer-order-picker>label:nth-child(1){grid-column:span 3!important}
.kd-bill-form>.kd-customer-order-picker>label:nth-child(2){grid-column:span 3!important}
.kd-bill-form>.kd-customer-order-picker>label:nth-child(3){grid-column:span 2!important}
.kd-bill-form>.kd-customer-order-picker>label:nth-child(4){grid-column:span 2!important}
.kd-bill-form>.kd-customer-order-picker>label:nth-child(5){grid-column:span 2!important}
.kd-bill-form>.kd-customer-order-picker>label:nth-child(5){grid-column:span 2!important}
.kd-bill-form>.kd-customer-order-picker>label input,
.kd-bill-form>.kd-customer-order-picker>label select{width:100%!important;box-sizing:border-box!important;margin-top:7px!important;min-height:42px!important;height:42px!important;}
.kd-bill-form>.kd-address-block{grid-column:1/-1!important}
.kd-bill-form>.kd-address-block+label{grid-column:span 1!important}
.kd-bill-form>.kd-address-block+label+label{grid-column:span 3!important}
.kd-bill-form>.kd-address-block~label{min-width:0!important}
.kd-bill-form>label:not(.kd-checkbox-field){min-width:0!important;margin:0!important}
.kd-bill-form>label:not(.kd-checkbox-field)>input,
.kd-bill-form>label:not(.kd-checkbox-field)>select,
.kd-bill-form>label:not(.kd-checkbox-field)>textarea{width:100%!important;box-sizing:border-box!important;margin-top:7px!important;}
.kd-bill-form .kd-auto-order-number{background:#f5f7fc!important;border:1px solid #dce3f2!important;border-radius:14px!important;padding:10px 12px!important;box-sizing:border-box!important;text-align:center!important;}
.kd-bill-form .kd-auto-order-number small{font-size:11px!important;color:#667085!important;font-weight:700!important;}
.kd-bill-form .kd-auto-order-number strong{font-size:18px!important;line-height:1.1!important;color:#1932A2!important;word-break:break-word!important;}
.kd-bill-form .kd-auto-order-number span{font-size:10px!important;color:#7a8290!important;line-height:1.2!important;}
.kd-bill-form .kd-address-block{margin-top:0!important;}
.kd-bill-form .kd-checkbox-field{min-width:0!important;}
@media(min-width:1201px){
  .kd-bill-form>.kd-address-block+label{grid-column:span 1!important}
  .kd-bill-form>.kd-address-block+label+label{grid-column:span 3!important}
}
@media(max-width:1100px){
  .kd-bill-form>.kd-auto-order-number{grid-column:span 3!important}
  .kd-bill-form>.kd-customer-order-picker>label:nth-child(1),
  .kd-bill-form>.kd-customer-order-picker>label:nth-child(2){grid-column:span 3!important}
  .kd-bill-form>.kd-customer-order-picker>label:nth-child(3),
  .kd-bill-form>.kd-customer-order-picker>label:nth-child(4),
  .kd-bill-form>.kd-customer-order-picker>label:nth-child(5){grid-column:span 3!important}
}
@media(max-width:700px){
  .kd-bill-form.kd-order-form,.kd-bill-form{grid-template-columns:1fr!important;gap:12px!important}
  .kd-bill-form>.kd-auto-order-number,
  .kd-bill-form>.kd-customer-order-picker>label,
  .kd-bill-form>.kd-address-block+label,
  .kd-bill-form>.kd-address-block+label+label,
  .kd-bill-form>label{grid-column:1/-1!important}
}

/* V1.13.13 – Auftragsdetails: sauberes Raster ohne überlappende Beschriftungen */
.kd-bill-form .kd-order-details-grid{
  grid-column:1/-1!important;
  display:grid!important;
  grid-template-columns:repeat(12,minmax(0,1fr))!important;
  gap:14px!important;
  align-items:end!important;
  min-width:0!important;
  width:100%!important;
  box-sizing:border-box!important;
}
.kd-bill-form .kd-order-details-grid>label{
  min-width:0!important;
  margin:0!important;
  display:block!important;
  box-sizing:border-box!important;
}
.kd-bill-form .kd-order-details-grid>label>input,
.kd-bill-form .kd-order-details-grid>label>select,
.kd-bill-form .kd-order-details-grid>label>textarea{
  width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
  margin-top:7px!important;
}
.kd-bill-form .kd-order-details-grid>label:nth-child(1){grid-column:span 1!important}
.kd-bill-form .kd-order-details-grid>label:nth-child(2){grid-column:span 2!important}
.kd-bill-form .kd-order-details-grid>label:nth-child(3){grid-column:span 1!important}
.kd-bill-form .kd-order-details-grid>label:nth-child(4){grid-column:span 2!important}
.kd-bill-form .kd-order-details-grid>label:nth-child(5){grid-column:span 1!important}
.kd-bill-form .kd-order-details-grid>label:nth-child(6){grid-column:span 1!important}
.kd-bill-form .kd-order-details-grid>label:nth-child(7){grid-column:span 1!important}
.kd-bill-form .kd-order-details-grid>label:nth-child(8){grid-column:span 1!important}
.kd-bill-form .kd-order-details-grid>label:nth-child(9){grid-column:span 1!important}
.kd-bill-form .kd-order-details-grid>label:nth-child(10){grid-column:span 1!important}
.kd-bill-form .kd-order-details-grid>label:nth-child(11){grid-column:span 1!important}
.kd-bill-form .kd-order-details-grid>label:nth-child(12){grid-column:span 2!important}
.kd-bill-form .kd-order-details-grid .kd-checkbox-field{display:flex!important;flex-direction:column!important;justify-content:flex-start!important;gap:0!important}
.kd-bill-form .kd-order-details-grid .kd-checkbox-inline{display:flex!important;align-items:center!important;gap:7px!important;min-height:42px!important;margin-top:7px!important;white-space:nowrap!important;font-weight:400!important}
.kd-bill-form .kd-order-details-grid .kd-checkbox-inline input{margin:0!important;width:18px!important;height:18px!important;flex:0 0 auto!important}
.kd-bill-form .kd-order-details-grid .kd-notes-field{grid-column:span 2!important}
.kd-bill-form .kd-order-details-grid .kd-notes-field textarea{height:58px!important;min-height:58px!important;resize:vertical!important}
@media(max-width:1100px){
  .kd-bill-form .kd-order-details-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important}
  .kd-bill-form .kd-order-details-grid>label{grid-column:span 1!important}
  .kd-bill-form .kd-order-details-grid>label:nth-child(2),
  .kd-bill-form .kd-order-details-grid>label:nth-child(4),
  .kd-bill-form .kd-order-details-grid .kd-notes-field{grid-column:span 2!important}
}
@media(max-width:700px){
  .kd-bill-form .kd-order-details-grid{grid-template-columns:1fr!important;gap:12px!important}
  .kd-bill-form .kd-order-details-grid>label,
  .kd-bill-form .kd-order-details-grid>label:nth-child(n),
  .kd-bill-form .kd-order-details-grid .kd-notes-field{grid-column:1/-1!important}
}

/* V1.13.13 – Auftragsdetails: sauberes Raster ohne überlappende Beschriftungen */
.kd-bill-form .kd-order-details-grid{grid-column:1/-1!important;display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:14px!important;align-items:end!important;min-width:0!important;width:100%!important;box-sizing:border-box!important}
.kd-bill-form .kd-order-details-grid>label{min-width:0!important;margin:0!important;display:block!important;box-sizing:border-box!important}
.kd-bill-form .kd-order-details-grid>label>input,.kd-bill-form .kd-order-details-grid>label>select,.kd-bill-form .kd-order-details-grid>label>textarea{width:100%!important;min-width:0!important;box-sizing:border-box!important;margin-top:7px!important}
.kd-bill-form .kd-order-details-grid>label:nth-child(1){grid-column:span 1!important}.kd-bill-form .kd-order-details-grid>label:nth-child(2){grid-column:span 2!important}.kd-bill-form .kd-order-details-grid>label:nth-child(3){grid-column:span 1!important}.kd-bill-form .kd-order-details-grid>label:nth-child(4){grid-column:span 2!important}.kd-bill-form .kd-order-details-grid>label:nth-child(5){grid-column:span 1!important}.kd-bill-form .kd-order-details-grid>label:nth-child(6){grid-column:span 1!important}.kd-bill-form .kd-order-details-grid>label:nth-child(7){grid-column:span 1!important}.kd-bill-form .kd-order-details-grid>label:nth-child(8){grid-column:span 1!important}.kd-bill-form .kd-order-details-grid>label:nth-child(9){grid-column:span 1!important}.kd-bill-form .kd-order-details-grid>label:nth-child(10){grid-column:span 1!important}.kd-bill-form .kd-order-details-grid>label:nth-child(11){grid-column:span 1!important}.kd-bill-form .kd-order-details-grid>label:nth-child(12){grid-column:span 2!important}
.kd-bill-form .kd-order-details-grid .kd-checkbox-field{display:flex!important;flex-direction:column!important;justify-content:flex-start!important;gap:0!important}.kd-bill-form .kd-order-details-grid .kd-checkbox-inline{display:flex!important;align-items:center!important;gap:7px!important;min-height:42px!important;margin-top:7px!important;white-space:nowrap!important;font-weight:400!important}.kd-bill-form .kd-order-details-grid .kd-checkbox-inline input{margin:0!important;width:18px!important;height:18px!important;flex:0 0 auto!important}
.kd-bill-form .kd-order-details-grid .kd-notes-field{grid-column:span 2!important}.kd-bill-form .kd-order-details-grid .kd-notes-field textarea{height:58px!important;min-height:58px!important;resize:vertical!important}
@media(max-width:1100px){.kd-bill-form .kd-order-details-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important}.kd-bill-form .kd-order-details-grid>label{grid-column:span 1!important}.kd-bill-form .kd-order-details-grid>label:nth-child(2),.kd-bill-form .kd-order-details-grid>label:nth-child(4),.kd-bill-form .kd-order-details-grid .kd-notes-field{grid-column:span 2!important}}
@media(max-width:700px){.kd-bill-form .kd-order-details-grid{grid-template-columns:1fr!important;gap:12px!important}.kd-bill-form .kd-order-details-grid>label,.kd-bill-form .kd-order-details-grid>label:nth-child(n),.kd-bill-form .kd-order-details-grid .kd-notes-field{grid-column:1/-1!important}}

/* V1.13.14 – flexible delivery routes */
.kd-field-help{display:block;margin-top:5px;color:#64748b;font-size:12px;line-height:1.35}

/* V1.13.17 – Auftraggeber direkt im neuen Auftrag anlegen */
.kd-order-customer-search-wrap{grid-column:span 3!important;min-width:0!important;display:flex!important;align-items:end!important;gap:8px!important}
.kd-order-customer-search-wrap>label{flex:1!important;min-width:0!important;margin:0!important}
.kd-order-customer-search-wrap .kd-quick-customer-toggle{white-space:nowrap!important;min-height:42px!important;height:42px!important;margin:0!important;padding:0 12px!important}
.kd-quick-customer-box{grid-column:3/-1!important;background:#f7f9fc!important;border:1px solid #d8e0ef!important;border-radius:12px!important;padding:12px!important;box-sizing:border-box!important}
.kd-quick-customer-head{display:flex!important;align-items:center!important;justify-content:space-between!important;margin-bottom:10px!important;color:#1932A2!important}
.kd-quick-customer-close{border:0!important;background:transparent!important;font-size:22px!important;line-height:1!important;cursor:pointer!important;color:#667085!important}
.kd-quick-customer-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important}
.kd-quick-customer-grid label{min-width:0!important;margin:0!important}
.kd-quick-customer-grid input{width:100%!important;box-sizing:border-box!important;margin-top:5px!important;min-height:38px!important}
.kd-quick-customer-actions{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;margin-top:10px!important}
#kd-quick-customer-message{font-size:11px!important;color:#667085!important}
@media(max-width:1100px){.kd-order-customer-search-wrap{grid-column:span 3!important}.kd-quick-customer-box{grid-column:1/-1!important}.kd-quick-customer-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:700px){.kd-order-customer-search-wrap{grid-column:1/-1!important}.kd-quick-customer-grid{grid-template-columns:1fr!important}.kd-order-customer-search-wrap{display:block!important}.kd-order-customer-search-wrap .kd-quick-customer-toggle{width:100%!important;margin-top:8px!important}}

/* V1.13.17 – Korrektur der Kopfzeile nach Einfügen des Schnell-Anlagefeldes */
.kd-bill-form>.kd-customer-order-picker>label:nth-of-type(1){grid-column:span 3!important;min-width:0!important;margin:0!important;align-self:end!important}
.kd-bill-form>.kd-customer-order-picker>label:nth-of-type(2){grid-column:span 2!important;min-width:0!important;margin:0!important;align-self:end!important}
.kd-bill-form>.kd-customer-order-picker>label:nth-of-type(3){grid-column:span 2!important;min-width:0!important;margin:0!important;align-self:end!important}
.kd-bill-form>.kd-customer-order-picker>label:nth-of-type(4){grid-column:span 2!important;min-width:0!important;margin:0!important;align-self:end!important}
.kd-bill-form>.kd-customer-order-picker>label:nth-of-type(5){grid-column:span 2!important;min-width:0!important;margin:0!important;align-self:end!important}
@media(max-width:1100px){
  .kd-bill-form>.kd-customer-order-picker>label:nth-of-type(1){grid-column:span 3!important}
  .kd-bill-form>.kd-customer-order-picker>label:nth-of-type(2),.kd-bill-form>.kd-customer-order-picker>label:nth-of-type(3),.kd-bill-form>.kd-customer-order-picker>label:nth-of-type(4),.kd-bill-form>.kd-customer-order-picker>label:nth-of-type(5){grid-column:span 3!important}
}
@media(max-width:700px){.kd-bill-form>.kd-customer-order-picker>label{grid-column:1/-1!important}}

/* V1.13.18 – Auftragsformular: klare Kopfzeile, saubere Beschriftungen und gleichmäßige Felder */
body.kd-dispo-design .kd-bill-form.kd-order-form{
  grid-template-columns:repeat(12,minmax(0,1fr))!important;
  gap:16px!important;
  align-items:end!important;
}
body.kd-dispo-design .kd-bill-form.kd-order-form>.kd-auto-order-number{
  grid-column:span 2!important;
  min-height:58px!important;
  height:58px!important;
  padding:9px 12px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:center!important;
  gap:2px!important;
}
body.kd-dispo-design .kd-bill-form.kd-order-form>.kd-auto-order-number small{font-size:10px!important}
body.kd-dispo-design .kd-bill-form.kd-order-form>.kd-auto-order-number strong{font-size:17px!important;line-height:1.15!important}
body.kd-dispo-design .kd-bill-form.kd-order-form>.kd-auto-order-number span{font-size:9px!important}
body.kd-dispo-design .kd-bill-form.kd-order-form>.kd-customer-order-picker{display:contents!important}
body.kd-dispo-design .kd-bill-form.kd-order-form>.kd-customer-order-picker>.kd-order-customer-search-wrap{
  grid-column:span 4!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:9px!important;
  align-items:end!important;
  min-width:0!important;
}
body.kd-dispo-design .kd-bill-form.kd-order-form>.kd-customer-order-picker>.kd-order-customer-search-wrap>label{min-width:0!important;margin:0!important}
body.kd-dispo-design .kd-bill-form.kd-order-form>.kd-customer-order-picker>.kd-order-customer-search-wrap .kd-quick-customer-toggle{
  height:42px!important;
  white-space:nowrap!important;
  padding:0 13px!important;
  border-radius:10px!important;
  font-weight:700!important;
}
body.kd-dispo-design .kd-bill-form.kd-order-form>.kd-customer-order-picker>label{
  grid-column:span 2!important;
  min-width:0!important;
  margin:0!important;
}
body.kd-dispo-design .kd-bill-form.kd-order-form>.kd-customer-order-picker>label>select,
body.kd-dispo-design .kd-bill-form.kd-order-form>.kd-customer-order-picker input{
  width:100%!important;
  min-width:0!important;
  height:42px!important;
  box-sizing:border-box!important;
}
body.kd-dispo-design .kd-bill-form.kd-order-form>label#kd-delivery-route-wrap{grid-column:span 5!important}
body.kd-dispo-design .kd-bill-form.kd-order-form>label#kd-delivery-equipment-wrap{grid-column:span 2!important}
body.kd-dispo-design .kd-bill-form.kd-order-form>label[for="kd-delivery-type"]{grid-column:span 2!important}
body.kd-dispo-design .kd-bill-form.kd-order-form>.kd-customer-order-picker+label{grid-column:span 2!important}
body.kd-dispo-design .kd-bill-form.kd-order-form>.kd-customer-order-picker+label+label{grid-column:span 2!important}
body.kd-dispo-design .kd-bill-form.kd-order-form>label:not(.kd-checkbox-field){min-width:0!important}
body.kd-dispo-design .kd-bill-form.kd-order-form>label:not(.kd-checkbox-field)>input,
body.kd-dispo-design .kd-bill-form.kd-order-form>label:not(.kd-checkbox-field)>select,
body.kd-dispo-design .kd-bill-form.kd-order-form>label:not(.kd-checkbox-field)>textarea{width:100%!important;box-sizing:border-box!important}
body.kd-dispo-design .kd-bill-form.kd-order-form .kd-address-block{
  padding:15px 16px!important;
  gap:12px!important;
  border-radius:14px!important;
}
body.kd-dispo-design .kd-bill-form.kd-order-form .kd-address-block h3{font-size:16px!important;margin-bottom:1px!important}
body.kd-dispo-design .kd-bill-form.kd-order-form .kd-address-block label{font-size:12px!important;font-weight:700!important}
body.kd-dispo-design .kd-bill-form.kd-order-form .kd-address-block input{height:40px!important}
body.kd-dispo-design .kd-bill-form.kd-order-form>.kd-address-block+label{grid-column:span 1!important}
body.kd-dispo-design .kd-bill-form.kd-order-form>.kd-address-block+label+label{grid-column:span 3!important}
body.kd-dispo-design .kd-bill-form.kd-order-form .kd-order-details-grid{gap:12px!important}
body.kd-dispo-design .kd-bill-form.kd-order-form .kd-order-details-grid>label{font-size:12px!important;font-weight:700!important}
body.kd-dispo-design .kd-bill-form.kd-order-form .kd-order-details-grid>label>input,
body.kd-dispo-design .kd-bill-form.kd-order-form .kd-order-details-grid>label>select{height:40px!important}
body.kd-dispo-design .kd-bill-form.kd-order-form .kd-order-details-grid .kd-notes-field{grid-column:span 2!important}
body.kd-dispo-design .kd-bill-form.kd-order-form .kd-order-details-grid .kd-notes-field textarea{height:40px!important;min-height:40px!important;resize:vertical!important}
body.kd-dispo-design .kd-bill-form.kd-order-form .kd-field-help{display:block!important;margin-top:5px!important;font-size:10px!important;line-height:1.25!important;color:#667085!important}
body.kd-dispo-design .kd-bill-form.kd-order-form .kd-quick-customer-box{grid-column:1/-1!important}
@media(max-width:1200px){
  body.kd-dispo-design .kd-bill-form.kd-order-form>.kd-auto-order-number{grid-column:span 2!important}
  body.kd-dispo-design .kd-bill-form.kd-order-form>.kd-customer-order-picker>.kd-order-customer-search-wrap{grid-column:span 4!important}
  body.kd-dispo-design .kd-bill-form.kd-order-form>.kd-customer-order-picker>label{grid-column:span 2!important}
  body.kd-dispo-design .kd-bill-form.kd-order-form>.kd-customer-order-picker+label{grid-column:span 2!important}
  body.kd-dispo-design .kd-bill-form.kd-order-form>label#kd-delivery-route-wrap{grid-column:span 4!important}
  body.kd-dispo-design .kd-bill-form.kd-order-form>label#kd-delivery-equipment-wrap{grid-column:span 2!important}
}
@media(max-width:800px){
  body.kd-dispo-design .kd-bill-form.kd-order-form{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.kd-dispo-design .kd-bill-form.kd-order-form>.kd-auto-order-number,
  body.kd-dispo-design .kd-bill-form.kd-order-form>.kd-customer-order-picker>.kd-order-customer-search-wrap,
  body.kd-dispo-design .kd-bill-form.kd-order-form>.kd-customer-order-picker>label,
  body.kd-dispo-design .kd-bill-form.kd-order-form>.kd-customer-order-picker+label,
  body.kd-dispo-design .kd-bill-form.kd-order-form>label#kd-delivery-route-wrap,
  body.kd-dispo-design .kd-bill-form.kd-order-form>label#kd-delivery-equipment-wrap{grid-column:1/-1!important}
}

/* V1.13.19 – Auftrag: Referenz, Status und interne Notiz sauber trennen */
body.kd-dispo-design .kd-bill-form.kd-order-form .kd-order-details-grid{
  grid-template-columns:repeat(12,minmax(0,1fr))!important;
  column-gap:12px!important;
  row-gap:14px!important;
  align-items:end!important;
}
body.kd-dispo-design .kd-bill-form.kd-order-form .kd-order-details-grid>label{
  min-width:0!important;
  margin:0!important;
  box-sizing:border-box!important;
  display:block!important;
}
body.kd-dispo-design .kd-bill-form.kd-order-form .kd-order-details-grid>label:nth-child(1){grid-column:span 1!important}
body.kd-dispo-design .kd-bill-form.kd-order-form .kd-order-details-grid>label:nth-child(2){grid-column:span 2!important}
body.kd-dispo-design .kd-bill-form.kd-order-form .kd-order-details-grid>label:nth-child(3){grid-column:span 1!important}
body.kd-dispo-design .kd-bill-form.kd-order-form .kd-order-details-grid>label:nth-child(4){grid-column:span 2!important}
body.kd-dispo-design .kd-bill-form.kd-order-form .kd-order-details-grid>label:nth-child(5){grid-column:span 1!important}
body.kd-dispo-design .kd-bill-form.kd-order-form .kd-order-details-grid>label:nth-child(6){grid-column:span 1!important}
body.kd-dispo-design .kd-bill-form.kd-order-form .kd-order-details-grid>label:nth-child(7){grid-column:span 1!important}
body.kd-dispo-design .kd-bill-form.kd-order-form .kd-order-details-grid>label:nth-child(8){grid-column:span 1!important}
body.kd-dispo-design .kd-bill-form.kd-order-form .kd-order-details-grid>label:nth-child(9){grid-column:span 1!important}
body.kd-dispo-design .kd-bill-form.kd-order-form .kd-order-details-grid>label:nth-child(10){grid-column:span 1!important}
/* zweite Zeile: Referenz / Status / Notiz */
body.kd-dispo-design .kd-bill-form.kd-order-form .kd-order-details-grid>label:nth-child(11){grid-column:span 3!important}
body.kd-dispo-design .kd-bill-form.kd-order-form .kd-order-details-grid>label:nth-child(12){grid-column:span 3!important}
body.kd-dispo-design .kd-bill-form.kd-order-form .kd-order-details-grid>label:nth-child(13){grid-column:span 6!important}
body.kd-dispo-design .kd-bill-form.kd-order-form .kd-order-details-grid>label>input,
body.kd-dispo-design .kd-bill-form.kd-order-form .kd-order-details-grid>label>select{
  width:100%!important;
  height:40px!important;
  min-width:0!important;
  box-sizing:border-box!important;
  margin-top:7px!important;
}
body.kd-dispo-design .kd-bill-form.kd-order-form .kd-order-details-grid .kd-checkbox-field{
  min-width:0!important;
}
body.kd-dispo-design .kd-bill-form.kd-order-form .kd-order-details-grid .kd-checkbox-inline{
  margin-top:7px!important;
  min-height:40px!important;
}
body.kd-dispo-design .kd-bill-form.kd-order-form .kd-order-details-grid .kd-notes-field{
  grid-column:span 6!important;
}
body.kd-dispo-design .kd-bill-form.kd-order-form .kd-order-details-grid .kd-notes-field textarea{
  width:100%!important;
  height:40px!important;
  min-height:40px!important;
  box-sizing:border-box!important;
  margin-top:7px!important;
  resize:vertical!important;
}
@media(max-width:1100px){
  body.kd-dispo-design .kd-bill-form.kd-order-form .kd-order-details-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important}
  body.kd-dispo-design .kd-bill-form.kd-order-form .kd-order-details-grid>label:nth-child(n){grid-column:span 1!important}
  body.kd-dispo-design .kd-bill-form.kd-order-form .kd-order-details-grid>label:nth-child(2),
  body.kd-dispo-design .kd-bill-form.kd-order-form .kd-order-details-grid>label:nth-child(4),
  body.kd-dispo-design .kd-bill-form.kd-order-form .kd-order-details-grid>label:nth-child(11),
  body.kd-dispo-design .kd-bill-form.kd-order-form .kd-order-details-grid>label:nth-child(12){grid-column:span 2!important}
  body.kd-dispo-design .kd-bill-form.kd-order-form .kd-order-details-grid>label:nth-child(13){grid-column:span 2!important}
}
@media(max-width:700px){
  body.kd-dispo-design .kd-bill-form.kd-order-form .kd-order-details-grid{grid-template-columns:1fr!important;gap:12px!important}
  body.kd-dispo-design .kd-bill-form.kd-order-form .kd-order-details-grid>label,
  body.kd-dispo-design .kd-bill-form.kd-order-form .kd-order-details-grid>label:nth-child(n){grid-column:1/-1!important}
}

/* V1.13.20 – Untere Auftragsfelder: Referenz, Status und interne Notiz als eigene saubere Zeile */
body.kd-dispo-design .kd-bill-form.kd-order-form .kd-order-meta-row{
  grid-column:1/-1!important;
  display:grid!important;
  grid-template-columns:minmax(220px,2fr) minmax(180px,1.2fr) minmax(260px,3fr)!important;
  gap:14px!important;
  align-items:start!important;
  width:100%!important;
  min-width:0!important;
  margin-top:2px!important;
}
body.kd-dispo-design .kd-bill-form.kd-order-form .kd-order-meta-row .kd-order-meta-field{
  min-width:0!important;
  width:100%!important;
  margin:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  box-sizing:border-box!important;
  font-size:12px!important;
  font-weight:700!important;
  line-height:1.25!important;
}
body.kd-dispo-design .kd-bill-form.kd-order-form .kd-order-meta-row .kd-order-meta-field input,
body.kd-dispo-design .kd-bill-form.kd-order-form .kd-order-meta-row .kd-order-meta-field select{
  width:100%!important;
  min-width:0!important;
  height:40px!important;
  margin:7px 0 0!important;
  box-sizing:border-box!important;
}
body.kd-dispo-design .kd-bill-form.kd-order-form .kd-order-meta-row .kd-order-meta-notes textarea{
  width:100%!important;
  height:40px!important;
  min-height:40px!important;
  margin:7px 0 0!important;
  box-sizing:border-box!important;
  resize:vertical!important;
}
@media(max-width:900px){
  body.kd-dispo-design .kd-bill-form.kd-order-form .kd-order-meta-row{
    grid-template-columns:minmax(180px,1fr) minmax(160px,1fr)!important;
  }
  body.kd-dispo-design .kd-bill-form.kd-order-form .kd-order-meta-row .kd-order-notes{
    grid-column:1/-1!important;
  }
}
@media(max-width:600px){
  body.kd-dispo-design .kd-bill-form.kd-order-form .kd-order-meta-row{
    grid-template-columns:1fr!important;
  }
  body.kd-dispo-design .kd-bill-form.kd-order-form .kd-order-meta-row .kd-order-notes{
    grid-column:auto!important;
  }
}

/* V1.13.21: nine-column alignment */
.kd-all-orders-table th:nth-child(1),.kd-all-orders-table td:nth-child(1){min-width:115px}.kd-all-orders-table th:nth-child(2),.kd-all-orders-table td:nth-child(2){min-width:145px}.kd-all-orders-table th:nth-child(3),.kd-all-orders-table td:nth-child(3){min-width:180px}.kd-all-orders-table th:nth-child(4),.kd-all-orders-table td:nth-child(4){min-width:180px}.kd-all-orders-table th:nth-child(5),.kd-all-orders-table td:nth-child(5){min-width:105px}.kd-all-orders-table th:nth-child(6),.kd-all-orders-table td:nth-child(6){min-width:175px}.kd-all-orders-table th:nth-child(7),.kd-all-orders-table td:nth-child(7){min-width:90px}.kd-all-orders-table th:nth-child(8),.kd-all-orders-table td:nth-child(8){min-width:105px}.kd-all-orders-table th:nth-child(9),.kd-all-orders-table td:nth-child(9){min-width:250px}

/* V1.13.22: klare Ja/Nein-Darstellung für Gefahrgut und Palettentausch */
body.kd-dispo-design .kd-bill-form.kd-order-form .kd-order-details-grid .kd-yes-no-field .kd-checkbox-inline{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  min-height:40px!important;
  margin-top:7px!important;
  white-space:nowrap!important;
  font-weight:500!important;
}
body.kd-dispo-design .kd-bill-form.kd-order-form .kd-order-details-grid .kd-yes-no-field .kd-checkbox-inline input{
  width:18px!important;
  height:18px!important;
  margin:0!important;
  flex:0 0 auto!important;
}
body.kd-dispo-design .kd-bill-form.kd-order-form .kd-order-details-grid .kd-yes-no-value{
  display:inline-block!important;
  min-width:30px!important;
}

/* V1.14.43 – Fahrer-App Navigation */
.kd-driver-nav{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.kd-driver-nav .kd-nav-btn,.kd-driver-nav .logout{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 14px;border-radius:10px;text-decoration:none;font-weight:800;box-sizing:border-box;white-space:nowrap;transition:transform .15s ease,box-shadow .15s ease,background .15s ease}
.kd-driver-nav .kd-nav-btn{background:#fff;color:#1932a2;border:1px solid rgba(25,50,162,.28);box-shadow:0 2px 7px rgba(25,50,162,.08)}
.kd-driver-nav .kd-nav-btn:hover{background:#eef2ff;border-color:#1932a2;transform:translateY(-1px);box-shadow:0 4px 12px rgba(25,50,162,.14)}
.kd-driver-nav .logout{background:#1932a2;color:#fff;border:1px solid #1932a2;box-shadow:0 3px 9px rgba(25,50,162,.18)}
.kd-driver-nav .logout:hover{background:#142984;border-color:#142984;transform:translateY(-1px);box-shadow:0 5px 13px rgba(25,50,162,.24)}
@media(max-width:700px){.kd-driver-nav{width:100%;justify-content:flex-start;gap:6px}.kd-driver-nav .kd-nav-btn,.kd-driver-nav .logout{flex:1 1 auto;font-size:14px;padding:9px 10px}}
