:root{
  --bg:#f5f5f7;--surface:#fff;--ink:#111113;--muted:#737378;--line:#e5e5ea;
  --column:#ececf0;--shadow:0 10px 35px rgba(0,0,0,.08);
  --red:#ff453a;--orange:#ff9f0a;--blue:#0a84ff;--gray:#8e8e93;
  --green:#30d158;--purple:#bf5af2;--safe:env(safe-area-inset-bottom,0px)
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text",Inter,Segoe UI,sans-serif;background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit}button{cursor:pointer;color:inherit}.hidden{display:none!important}
.app{min-height:100dvh}

.topbar{
  min-height:72px;display:flex;align-items:center;gap:10px;padding:10px 18px;
  background:rgba(255,255,255,.94);backdrop-filter:blur(22px) saturate(1.25);
  border-bottom:1px solid var(--line);position:sticky;top:0;z-index:40
}
.brand{min-width:180px}.brand b{display:block;font-size:19px;letter-spacing:-.4px}.brand span{display:block;font-size:11px;color:var(--muted);margin-top:2px}
.tabs{display:flex;gap:4px;background:#f0f0f2;border-radius:14px;padding:4px}
.tab{border:0;background:transparent;border-radius:10px;padding:8px 11px;font-size:11px;font-weight:800;color:#69696e}
.tab.active{background:#fff;color:#111;box-shadow:0 1px 6px rgba(0,0,0,.08)}
.spacer{flex:1}
.search{width:min(330px,26vw);height:40px;border:0;background:#f1f1f3;border-radius:13px;padding:0 14px;outline:none}.search:focus{box-shadow:0 0 0 2px #111 inset}
.btn{height:40px;border:0;border-radius:13px;padding:0 13px;font-size:12px;font-weight:790;white-space:nowrap}
.btn.primary{background:#111;color:#fff}.btn.secondary{background:#fff;border:1px solid var(--line)}.btn.soft{background:#ededf1}.btn.danger{background:#fff0ef;color:#c82e25}.btn.green{background:#eaf8ef;color:#157347}
.btn:active{transform:scale(.985)}

.view{display:none}.view.active{display:block}
.today-head{padding:14px 14px 0;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.live-status{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);border-radius:15px;padding:9px 11px}
.live-dot{width:9px;height:9px;border-radius:50%;background:var(--green)}.live-dot.paused{background:var(--orange)}.live-dot.closed{background:var(--red)}
.live-status b{font-size:12px}.live-status span{font-size:10px;color:var(--muted)}
.summary-pill{background:#fff;border:1px solid var(--line);border-radius:15px;padding:9px 11px;font-size:11px;color:#5f5f64}.summary-pill b{color:#111}
.head-actions{margin-left:auto;display:flex;gap:7px;flex-wrap:wrap}

.board-wrap{padding:12px 14px 16px;overflow-x:auto;overflow-y:visible;max-width:100%}
.board{display:grid;grid-template-columns:repeat(6,minmax(290px,1fr));gap:11px;min-width:1800px;align-items:start}
.column{background:var(--column);border:1px solid #e1e1e5;border-radius:18px;padding:9px;min-height:calc(100dvh - 172px);transition:.15s}
.column.over{box-shadow:0 0 0 2px #111 inset;background:#e7e7eb}
.column.readonly .order-card{cursor:default}
.col-head{display:flex;align-items:center;gap:8px;padding:5px 4px 10px}
.dot{width:9px;height:9px;border-radius:50%;flex:none}.col-title{font-size:13px;font-weight:820;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.count{font-size:10px;font-weight:820;background:#fff;padding:4px 7px;border-radius:999px}.rename{width:28px;height:28px;border:0;border-radius:9px;background:transparent;color:#777;font-size:14px}.rename:hover{background:#fff}
.list{display:grid;gap:8px;min-height:90px}

.order-card{background:#fff;border:1px solid #dfdfe4;border-radius:16px;padding:12px;box-shadow:0 1px 0 rgba(0,0,0,.02);cursor:grab;user-select:none;transition:.15s;position:relative}
.order-card:hover{transform:translateY(-1px);box-shadow:var(--shadow)}.order-card.dragging{opacity:.42;transform:scale(.985)}
.order-card.unread{box-shadow:0 0 0 2px rgba(255,69,58,.22),0 8px 28px rgba(255,69,58,.09);animation:pulse 1.45s ease-in-out infinite}
@keyframes pulse{50%{box-shadow:0 0 0 4px rgba(255,69,58,.08),0 8px 30px rgba(255,69,58,.12)}}
.card-top{display:flex;align-items:center;gap:7px}.order-id{font-size:11px;font-weight:880}.new-tag{font-size:8px;font-weight:900;color:#c5322a;background:#fff0ef;border-radius:999px;padding:4px 6px}.time{margin-left:auto;font-size:10px;color:var(--muted)}
.customer{font-size:14px;font-weight:830;margin-top:8px}.contact{display:grid;gap:2px;margin-top:4px;font-size:10.5px;color:#606066;line-height:1.35}.contact strong{color:#303034;font-weight:730}
.order-items{margin-top:9px;padding-top:8px;border-top:1px solid #efeff2;display:grid;gap:7px}.card-item{font-size:10.5px;line-height:1.35}.card-item-head{display:flex;gap:6px;align-items:flex-start}.card-item-head .qty{font-weight:850;flex:none}.card-item-head .name{font-weight:740;flex:1}.card-item-head .price{font-weight:820;white-space:nowrap}.config{margin:2px 0 0 19px;color:#808086;font-size:9.5px}
.note{margin-top:9px;padding:8px 9px;border-radius:10px;background:#fff7e7;color:#705000;font-size:9.7px;line-height:1.35}
.card-footer{display:flex;gap:5px;align-items:center;flex-wrap:wrap;margin-top:10px}.pill{font-size:8.8px;font-weight:850;padding:5px 7px;border-radius:999px;background:#f1f1f3;color:#555}.pill.delivery{background:#eaf4ff;color:#0a63c8}.pill.pickup{background:#ecf8f0;color:#16764b}.pill.sms{background:#eef8ff;color:#226b9e}.pill.no-sms{background:#f2f2f4;color:#888}.pill.classic{background:#f1f1f3;color:#555}.pill.swipe{background:#eef1ff;color:#4f46c8}.pill.story{background:#fff0f6;color:#b82667}.total{margin-left:auto;font-size:13px;font-weight:880}
.empty{min-height:72px;border:1.5px dashed #d0d0d5;border-radius:13px;display:grid;place-items:center;text-align:center;color:#9999a0;font-size:10px;padding:10px}

.panel{padding:18px 18px 28px;max-width:1180px;margin:0 auto}
.panel-head{display:flex;align-items:flex-end;gap:12px;margin-bottom:15px}.panel-head h1{margin:0;font-size:27px;letter-spacing:-.8px}.panel-head p{margin:4px 0 0;font-size:11px;color:var(--muted)}.panel-head .spacer{flex:1}
.cardbox{background:#fff;border:1px solid var(--line);border-radius:20px;padding:15px}
.history-layout{display:grid;grid-template-columns:340px 1fr;gap:13px}
.calendar-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.calendar-head b{font-size:15px}.cal-btn{border:0;background:#f1f1f3;width:32px;height:32px;border-radius:10px}
.weekdays,.calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.weekdays div{text-align:center;font-size:9px;color:#8b8b90;font-weight:800;padding:3px}.day{aspect-ratio:1;border:0;background:#f7f7f9;border-radius:11px;font-size:11px;position:relative}.day.other{opacity:.3}.day.has{font-weight:850}.day.has:after{content:"";position:absolute;width:5px;height:5px;border-radius:50%;background:#111;bottom:5px;left:50%;transform:translateX(-50%)}.day.selected{background:#111;color:#fff}.day.selected:after{background:#fff}
.history-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:12px}.mini-stat{background:#f5f5f7;border-radius:14px;padding:11px}.mini-stat small{display:block;font-size:9px;color:var(--muted);margin-bottom:3px}.mini-stat b{font-size:15px}
.history-orders{display:grid;gap:7px}.history-order{border:1px solid var(--line);border-radius:14px;padding:10px 11px;display:grid;grid-template-columns:80px 1fr auto;gap:10px;align-items:center;cursor:pointer;transition:.15s}.history-order:hover{background:#f7f7f9;transform:translateY(-1px);box-shadow:0 5px 18px rgba(0,0,0,.05)}.history-order .ho-id{font-size:10px;font-weight:850}.history-order .ho-main b{font-size:12px}.history-order .ho-main span{display:block;font-size:10px;color:var(--muted);margin-top:3px}.history-order .ho-total{font-size:12px;font-weight:850}

.menu-toolbar{display:flex;gap:8px;align-items:center;margin-bottom:10px}.menu-search{flex:1;border:0;background:#f1f1f3;border-radius:13px;height:40px;padding:0 13px;outline:none}
.availability.on{background:#eaf8ef;color:#16764b}.availability.off{background:#fff0ef;color:#c82e25}

.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.setting-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:15px}.setting-card h2{font-size:15px;margin:0 0 3px}.setting-card p{font-size:10px;color:var(--muted);margin:0 0 13px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:8px}.field{width:100%;border:0;background:#f3f3f5;border-radius:13px;padding:12px 13px;outline:none}.field:focus{box-shadow:0 0 0 2px #111 inset}.hours{display:grid;gap:7px}.hour-row{display:grid;grid-template-columns:100px 1fr 1fr 70px;gap:7px;align-items:center}.hour-row label{font-size:11px;font-weight:780}.toggle-btn{border:0;border-radius:10px;padding:9px 8px;font-size:9px;font-weight:850;background:#eaf8ef;color:#16764b}.toggle-btn.off{background:#f1f1f3;color:#777}

.overlay{position:fixed;inset:0;background:rgba(0,0,0,.34);backdrop-filter:blur(3px);display:none;align-items:center;justify-content:center;padding:16px;z-index:70}.overlay.open{display:flex}
.modal{width:min(680px,100%);max-height:calc(100dvh - 32px);overflow:auto;background:#fff;border-radius:24px;padding:18px;box-shadow:0 30px 80px rgba(0,0,0,.25)}
.modal-head{display:flex;align-items:flex-start;gap:12px}.modal h2{margin:0;font-size:22px;letter-spacing:-.5px}.sub{font-size:11px;color:var(--muted);margin-top:4px}.close{margin-left:auto;border:0;background:#f1f1f3;width:34px;height:34px;border-radius:50%;font-size:20px}
.section-title{font-size:10px;font-weight:880;text-transform:uppercase;letter-spacing:.055em;color:#85858b;margin:16px 1px 7px}
.info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.info{background:#f5f5f7;border-radius:14px;padding:11px;min-width:0}.info small{display:block;font-size:9px;color:var(--muted);margin-bottom:4px}.info b{display:block;font-size:12px;line-height:1.35;word-break:break-word}
.order-table{border:1px solid var(--line);border-radius:15px;overflow:hidden}.order-row{display:grid;grid-template-columns:42px minmax(0,1fr) 86px 86px;gap:10px;align-items:start;padding:12px;border-bottom:1px solid var(--line);font-size:12px}.order-row:last-child{border-bottom:0}.order-row.header{background:#f7f7f9;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.04em;color:#777}.o-qty{font-weight:880}.o-name b{display:block}.o-config{font-size:10px;color:var(--muted);margin-top:3px;line-height:1.4}.money{text-align:right;font-weight:800;white-space:nowrap}
.totals{margin-top:10px;border-radius:14px;background:#f5f5f7;padding:11px 12px;display:grid;gap:7px}.total-row{display:flex;justify-content:space-between;font-size:12px}.total-row.grand{font-size:16px;font-weight:880;padding-top:6px;border-top:1px solid #dddde2}
.actions{display:flex;gap:8px;margin-top:16px}.actions button{flex:1;min-height:42px;border:0;border-radius:13px;font-weight:820}.primary-action{background:#111;color:#fff}
.form{display:grid;gap:9px;margin-top:14px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:9px}.grid3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:9px}.checkline{display:flex;align-items:center;gap:9px;background:#f5f5f7;border-radius:13px;padding:11px 12px;font-size:12px}.checkline input{width:17px;height:17px}.hint{font-size:10px;color:var(--muted);line-height:1.45}
.confirm-box{text-align:center;padding:8px 4px}.confirm-icon{width:64px;height:64px;border-radius:20px;background:#f1f1f3;display:grid;place-items:center;margin:0 auto 14px;font-size:26px}.confirm-box h2{font-size:23px;margin:0 0 7px}.confirm-box p{font-size:12px;color:var(--muted);line-height:1.5;max-width:430px;margin:0 auto}

.toast{position:fixed;left:50%;bottom:20px;transform:translate(-50%,14px);background:#111;color:#fff;border-radius:999px;padding:10px 13px;font-size:11px;font-weight:760;opacity:0;pointer-events:none;transition:.2s;z-index:100}.toast.show{opacity:1;transform:translate(-50%,0)}
.login{position:fixed;inset:0;z-index:120;background:#f5f5f7;display:none;place-items:center;padding:18px}.login.show{display:grid}.login-card{width:min(390px,100%);background:#fff;border:1px solid var(--line);border-radius:24px;padding:22px;box-shadow:var(--shadow)}.login-card h1{font-size:25px;margin:0 0 5px;letter-spacing:-.7px}.login-card p{margin:0 0 17px;color:var(--muted);font-size:12px}.login-card .btn{width:100%;margin-top:10px}
.driver-login-overlay{z-index:140}.driver-login-modal{width:min(430px,100%)}.driver-login-modal .form{margin-top:14px}.driver-login-hint{font-size:10px;color:var(--muted);line-height:1.4;padding:1px 2px}.driver-login-submit{width:100%;margin-top:2px}.driver-pin-input{font-size:22px;letter-spacing:.22em;font-weight:850;text-align:center}
#helpOverlay{z-index:130}
.print-sheet{display:none}

@media(max-width:980px){
 .topbar{flex-wrap:wrap}.brand{min-width:0;flex:1}.tabs{order:4;width:100%;overflow:auto}.search{width:220px}
 .history-layout{grid-template-columns:1fr}.settings-grid{grid-template-columns:1fr}.info-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:700px){
 .topbar{padding:9px 10px}.search{order:5;width:100%;flex-basis:100%}.btn{padding:0 10px}
 .today-head{padding:10px 9px 0}.head-actions{margin-left:0;width:100%}.head-actions .btn{flex:1}
 .board-wrap{padding:9px}.board{grid-template-columns:repeat(6,88vw);min-width:calc(6 * 88vw + 5 * 11px)}.column{min-height:calc(100dvh - 235px)}
 .panel{padding:13px 10px 22px}.panel-head h1{font-size:23px}.history-summary{grid-template-columns:1fr 1fr}.menu-item{grid-template-columns:1fr 88px}.availability{grid-column:1/-1}.hour-row{grid-template-columns:72px 1fr 1fr}.hour-row .toggle-btn{grid-column:1/-1}
 .info-grid{grid-template-columns:1fr}.order-row{grid-template-columns:35px minmax(0,1fr) 72px}.order-row .unit,.order-row.header .unit{display:none}.grid2,.grid3{grid-template-columns:1fr}
}
@media print{
  @page{margin:12mm}
  html,body{background:#fff!important}
  body{margin:0!important}
  .app,
  .overlay,
  .login,
  .toast{display:none!important}
  .print-sheet{
    display:block!important;
    position:static!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    color:#000!important;
    background:#fff!important;
    font-family:Arial,Helvetica,sans-serif!important
  }
  .print-sheet table{width:100%;border-collapse:collapse}
  .print-sheet th,.print-sheet td{border-bottom:1px solid #ccc;padding:7px 6px;vertical-align:top}
  .print-sheet .right{text-align:right}
}

.history-filter{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.8fr) minmax(0,.8fr) 110px;gap:8px;align-items:end;margin-bottom:13px}
.history-filter-field{display:grid;gap:5px;min-width:0}.history-filter-field label,.settings-field label{font-size:9px;font-weight:850;color:#6e6e73;letter-spacing:.02em;margin-left:2px}
.history-filter-action{display:flex;align-items:flex-end;min-width:0}
.history-filter-action .btn{width:100%;min-width:0;position:static;margin:0;display:inline-flex;align-items:center;justify-content:center;align-self:auto}
.settings-field{display:grid;gap:5px}
.menu-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.menu-tile{background:#fff;border:1px solid var(--line);border-radius:19px;overflow:hidden;transition:.18s;min-width:0}
.menu-tile.soldout{opacity:.46;filter:grayscale(.78)}
.menu-photo{aspect-ratio:4/3;background:#ddd center/cover no-repeat}
.menu-tile-body{padding:11px}
.menu-tile-body b{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.menu-tile-meta{font-size:10px;color:var(--muted);margin:3px 0 10px;display:flex;justify-content:space-between;gap:8px}
.menu-tile .availability{width:100%;border:0;border-radius:11px;padding:10px;font-size:10px;font-weight:850}
.close-day-saved{margin-top:12px;background:#eaf8ef;color:#16764b;border-radius:12px;padding:10px 12px;font-size:11px;font-weight:800;text-align:center}
@media(max-width:1100px){.menu-list{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){.menu-list{grid-template-columns:repeat(2,minmax(0,1fr))}.history-filter{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.history-filter-action{grid-column:auto}}
@media(max-width:560px){.history-filter{grid-template-columns:1fr}.history-filter-action{grid-column:1}}


.export-buttons{display:flex;gap:7px;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;max-width:100%}
.export-buttons::-webkit-scrollbar{display:none}
.export-buttons .btn{flex:0 0 auto}
.whatsapp-part-sent{
  background:#f1fbf4!important;
  color:#168247!important;
  border-color:#b9e4c8!important;
}
.whatsapp-part-sent::before{
  content:"✓";
  margin-right:7px;
  color:#168247;
  font-weight:900;
}
.detail-export-actions{display:flex;gap:7px;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;margin-top:16px;padding-bottom:1px}
.detail-export-actions::-webkit-scrollbar{display:none}
.detail-export-actions .btn{flex:0 0 auto}
.detail-operation-actions{display:flex;gap:8px;margin-top:8px}
.detail-operation-actions button{flex:1;min-height:42px;border:0;border-radius:13px;font-weight:820}
.menu-tile{cursor:pointer}
.restaurant-closed-overlay{
  position:absolute;inset:0;top:0;z-index:18;place-items:center;
  pointer-events:none;background:rgba(245,245,247,.16);backdrop-filter:blur(1px);
  opacity:0;transition:opacity .36s ease
}
#view-today{position:relative}
#view-today.restaurant-closed .restaurant-closed-overlay{opacity:1;animation:closedFade .38s ease both}
#view-today.restaurant-closed .board-wrap,
#view-today.restaurant-closed .summary-pill{
  filter:grayscale(1);opacity:.34;transition:filter .42s ease,opacity .42s ease,transform .42s ease;
  transform:scale(.995)
}
#view-today.restaurant-closed .live-status{filter:grayscale(1);transition:filter .42s ease}
#view-today.restaurant-closed .board-wrap{pointer-events:none}
.closed-badge{
  background:rgba(255,255,255,.94);border:1px solid var(--line);border-radius:24px;
  padding:18px 22px;box-shadow:0 18px 60px rgba(0,0,0,.12);text-align:center;
  transform:translateY(7px) scale(.98);animation:closedBadge .42s cubic-bezier(.2,.8,.2,1) forwards
}
.closed-icon{width:44px;height:44px;border-radius:15px;background:#f0f0f2;display:grid;place-items:center;margin:0 auto 10px;font-size:22px}
.closed-badge b{display:block;font-size:15px}.closed-badge span{display:block;margin-top:4px;font-size:10px;color:var(--muted)}
@keyframes closedFade{from{opacity:0}to{opacity:1}}
@keyframes closedBadge{to{transform:translateY(0) scale(1)}}
.tax-warning{font-size:9px;color:#666;line-height:1.45;margin-top:12px;padding-top:10px;border-top:1px solid #ddd}
@media(max-width:700px){.export-buttons{width:100%}.export-buttons .btn{flex:0 0 auto}}


.restaurant-closed-overlay{
  display:grid;
  visibility:hidden;
  opacity:0;
  transition:opacity .32s ease,visibility 0s linear .32s
}
#view-today.restaurant-closed .restaurant-closed-overlay{
  visibility:visible;
  opacity:1;
  transition:opacity .32s ease,visibility 0s
}
#view-today.restaurant-opening .restaurant-closed-overlay{
  visibility:visible;
  opacity:0;
}


.btn:disabled{opacity:.45;cursor:not-allowed;transform:none!important}


.restaurant-closed-overlay{pointer-events:none}
.closed-badge{pointer-events:auto}


.pause-mode{display:grid;grid-template-columns:1fr 1fr;gap:4px;background:#f0f0f2;border-radius:14px;padding:4px;margin-top:16px}
.pause-mode button{border:0;background:transparent;border-radius:10px;padding:10px;font-size:11px;font-weight:800;color:#6c6c72}
.pause-mode button.active{background:#fff;color:#111;box-shadow:0 1px 6px rgba(0,0,0,.08)}
.pause-presets{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.pause-presets button{border:1px solid var(--line);background:#fff;border-radius:13px;padding:12px 8px;font-size:11px;font-weight:800}
.pause-presets button.active{background:#111;color:#fff;border-color:#111}
.btn.pause-active{background:#fff7e7;color:#8a5a00;border-color:#f0d79b}


.closed-open-btn,
.closed-history-btn{
  width:100%;
  min-height:41px;
  border-radius:13px;
  padding:0 14px;
  font-size:11px;
  font-weight:850;
  cursor:pointer;
  transition:transform .15s ease,opacity .15s ease;
}
.closed-open-btn{
  margin-top:14px;
  border:0;
  background:#111;
  color:#fff;
}
.closed-history-btn{
  margin-top:7px;
  border:1px solid var(--line);
  background:#fff;
  color:#111;
}
.closed-open-btn:hover,.closed-history-btn:hover{opacity:.86}
.closed-open-btn:active,.closed-history-btn:active{transform:scale(.975)}


@media(min-width:900px) and (min-height:760px){
  .overlay{align-items:center;padding:16px}
  .modal{
    width:min(720px,calc(100vw - 40px));
    max-height:calc(100dvh - 40px);
    overflow:auto;
  }
  .modal.compact-modal{
    width:min(620px,calc(100vw - 40px));
  }
  .modal-head h2{font-size:20px}
  .section-title{margin-top:12px}
  .info-grid{gap:6px}
  .info{padding:9px 10px}
  .order-row{padding:9px 10px}
  .totals{padding:9px 10px}
  .actions{margin-top:12px}
}
@media(min-width:1200px) and (min-height:900px){
  .modal{
    width:min(760px,calc(100vw - 60px));
    max-height:calc(100dvh - 52px);
  }
}


.loyalty-head-badge{font-size:10px;font-weight:850;padding:8px 10px;border-radius:999px;background:#eaf8ef;color:#16764b}
.loyalty-head-badge.off{background:#f1f1f3;color:#777}
.loyalty-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:13px}
.loyalty-stat{background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px}
.loyalty-stat small{display:block;font-size:9px;color:var(--muted);margin-bottom:4px}.loyalty-stat b{font-size:18px}
.customer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.customer-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:14px;min-width:0}
.customer-top{display:flex;align-items:flex-start;gap:10px}.customer-avatar{width:40px;height:40px;border-radius:14px;background:#f0f0f2;display:grid;place-items:center;font-size:12px;font-weight:900;flex:none}
.customer-copy{min-width:0;flex:1}.customer-copy b{font-size:13px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.customer-copy span{font-size:10px;color:var(--muted);display:block;margin-top:3px}
.customer-orders{text-align:right}.customer-orders b{font-size:14px}.customer-orders span{font-size:9px;color:var(--muted);display:block}
.stamp-copy{display:flex;justify-content:space-between;gap:10px;font-size:10px;margin:14px 0 7px}.stamp-copy b{font-size:11px}.stamp-track{display:grid;grid-template-columns:repeat(10,1fr);gap:4px}
.stamp{aspect-ratio:1;border-radius:7px;background:#ededf1;display:grid;place-items:center;font-size:9px;font-weight:900;color:#999}.stamp.filled{background:#111;color:#fff}
.reward-row{margin-top:10px;padding-top:10px;border-top:1px solid #eee;display:flex;justify-content:space-between;gap:8px;font-size:10px}.reward-row span{color:var(--muted)}.reward-row b{font-size:10px}
.setting-title-row{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.setting-title-row h2{margin-bottom:3px}
.stamp-card,.coupons-card{grid-column:1/-1}
.coupon-list{display:grid;gap:7px}
.coupon-row{border:1px solid var(--line);border-radius:14px;padding:10px 11px;display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center}
.coupon-main b{font-size:12px;display:block}.coupon-main span{font-size:9px;color:var(--muted);display:block;margin-top:3px}
.coupon-status{border:0;border-radius:10px;padding:8px 10px;font-size:9px;font-weight:850;background:#eaf8ef;color:#16764b}.coupon-status.off{background:#f1f1f3;color:#777}
.coupon-edit{border:0;border-radius:10px;padding:8px 10px;font-size:9px;font-weight:850;background:#f1f1f3}
.menu-manage-modal{width:min(960px,calc(100vw - 40px));max-height:calc(100dvh - 40px)}
.menu-manage-tools{display:grid;grid-template-columns:1fr auto auto;gap:8px;margin:14px 0 10px}
.menu-manage-list{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.menu-edit-card{border:1px solid var(--line);border-radius:16px;padding:10px;display:grid;grid-template-columns:76px minmax(0,1fr);gap:10px;align-items:start}
.menu-edit-image{width:76px;aspect-ratio:1;border-radius:13px;background:#ddd center/cover no-repeat}
.menu-edit-fields{display:grid;gap:6px;min-width:0}.menu-edit-fields .field{padding:9px 10px;font-size:11px}
.menu-edit-row{display:grid;grid-template-columns:1fr 100px;gap:6px}
.menu-edit-actions{display:flex;justify-content:flex-end;margin-top:1px}.delete-dish{border:0;background:#fff0ef;color:#c82e25;border-radius:9px;padding:7px 9px;font-size:9px;font-weight:850}
@media(max-width:1050px){.customer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.menu-manage-list{grid-template-columns:1fr}}
@media(max-width:700px){.customer-grid{grid-template-columns:1fr}.loyalty-summary{grid-template-columns:1fr 1fr}.menu-manage-tools{grid-template-columns:1fr}.coupon-row{grid-template-columns:1fr auto}.coupon-edit{grid-column:1/-1}.stamp-track{grid-template-columns:repeat(5,1fr)}}


.manager-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;background:#f0f0f2;border-radius:14px;padding:4px;margin:14px 0 10px}
.manager-tabs button{border:0;background:transparent;border-radius:10px;padding:10px;font-size:11px;font-weight:850;color:#69696e}
.manager-tabs button.active{background:#fff;color:#111;box-shadow:0 1px 6px rgba(0,0,0,.08)}
.back-btn{border:0;background:#f1f1f3;width:34px;height:34px;border-radius:50%;font-size:24px;display:grid;place-items:center;flex:none}
.menu-manage-list{grid-template-columns:repeat(2,minmax(0,1fr))}
.manager-product-card{border:1px solid var(--line);border-radius:17px;overflow:hidden;display:grid;grid-template-columns:92px minmax(0,1fr);background:#fff;cursor:pointer;transition:.15s}
.manager-product-card:hover{transform:translateY(-1px);box-shadow:0 7px 20px rgba(0,0,0,.06)}
.manager-product-card.soldout{opacity:.55;filter:grayscale(.65)}
.manager-product-image{width:92px;height:100%;min-height:92px;background:#ddd center/cover no-repeat}
.manager-product-body{padding:10px;min-width:0}.manager-product-body b{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.manager-product-body span{font-size:9px;color:var(--muted);display:block;margin-top:4px}.manager-product-price{font-size:11px!important;font-weight:850!important;color:#111!important}
.menu-editor-layout{display:grid;grid-template-columns:270px minmax(0,1fr);gap:14px;margin-top:14px}
.image-upload-zone{border:1.5px dashed #cfcfd4;border-radius:18px;min-height:280px;display:flex;flex-direction:column;justify-content:center;align-items:center;overflow:hidden;background:#f7f7f9;position:relative;transition:.15s}
.image-upload-zone.dragover{border-color:#111;background:#eeeeF2}
.image-preview{position:absolute;inset:0;background:center/cover no-repeat;display:none}
.image-preview.has-image{display:block}
.image-upload-copy{position:relative;z-index:2;text-align:center;padding:18px;background:rgba(247,247,249,.9);border-radius:15px;max-width:210px}
.image-preview.has-image + .image-upload-copy{opacity:0;transition:.15s}
.image-upload-zone:hover .image-preview.has-image + .image-upload-copy{opacity:1}
.image-upload-copy b{font-size:13px;display:block}.image-upload-copy span{font-size:10px;color:var(--muted);display:block;margin:5px 0 10px}
.menu-editor-form{display:grid;gap:10px}
.offer-mode{display:grid;grid-template-columns:1fr 1fr;gap:4px;background:#f0f0f2;border-radius:14px;padding:4px;margin-top:3px}
.offer-mode button{border:0;background:transparent;border-radius:10px;padding:9px;font-size:10px;font-weight:850;color:#69696e}
.offer-mode button.active{background:#fff;color:#111;box-shadow:0 1px 6px rgba(0,0,0,.08)}
.offer-products{display:grid;grid-template-columns:repeat(2,1fr);gap:6px}
.offer-product-option{border:1px solid var(--line);border-radius:12px;padding:9px 10px;display:flex;gap:8px;align-items:center;font-size:10px;background:#fff}.offer-product-option input{width:16px;height:16px}
.custom-offer-lines{display:grid;gap:6px}.custom-offer-line{display:grid;grid-template-columns:1fr auto;gap:6px}.remove-line{border:0;background:#fff0ef;color:#c82e25;border-radius:10px;width:36px;font-weight:900}
.editor-bottom{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:4px}.editor-bottom .checkline{flex:1}.editor-bottom .btn{min-width:120px}
.customer-card{cursor:pointer;transition:.15s}.customer-card:hover{transform:translateY(-1px);box-shadow:0 7px 22px rgba(0,0,0,.06)}
.customer-detail-modal{width:min(850px,calc(100vw - 40px))}
.customer-detail-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:14px 0}
.customer-detail-stat{background:#f5f5f7;border-radius:14px;padding:11px}.customer-detail-stat small{display:block;font-size:9px;color:var(--muted);margin-bottom:4px}.customer-detail-stat b{font-size:14px}
.customer-insights{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:13px}.customer-insight{border:1px solid var(--line);border-radius:14px;padding:11px}.customer-insight small{font-size:9px;color:var(--muted);display:block;margin-bottom:4px}.customer-insight b{font-size:12px}
.customer-history-list{display:grid;gap:7px}.customer-history-order{border:1px solid var(--line);border-radius:14px;padding:10px 11px;display:grid;grid-template-columns:95px minmax(0,1fr) auto;gap:10px;align-items:center}.customer-history-order.stamp-earned{box-shadow:inset 3px 0 0 #111}.customer-history-date{font-size:10px;font-weight:850}.customer-history-main b{font-size:11px}.customer-history-main > span{font-size:9px;color:var(--muted);display:block;margin-top:3px}
@media(max-width:900px){.menu-editor-layout{grid-template-columns:1fr}.image-upload-zone{min-height:220px}.customer-detail-stats{grid-template-columns:1fr 1fr}.customer-insights{grid-template-columns:1fr}}
@media(max-width:700px){.menu-manage-list{grid-template-columns:1fr}.offer-products{grid-template-columns:1fr}.editor-bottom{display:grid}.customer-history-order{grid-template-columns:75px 1fr}.customer-history-order>div:last-child{grid-column:2}.customer-detail-stats{grid-template-columns:1fr 1fr}}


.customer-history-stamps{
  display:flex;
  gap:4px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:7px;
}
.customer-history-stamp{
  width:22px;
  height:22px;
  border-radius:7px;
  background:#ededf1;
  display:grid;
  place-items:center;
  font-size:8px;
  font-weight:900;
  color:#999;
  flex:none;
}
.customer-history-stamp.filled{
  background:#111;
  color:#fff;
}
.customer-history-stamp.filled::after{
  content:"";
  width:4px;
  height:7px;
  border-right:1.7px solid #fff;
  border-bottom:1.7px solid #fff;
  transform:translateY(-1px) rotate(45deg);
  transform-origin:center;
}
.customer-history-stamp.reward{
  box-shadow:0 0 0 2px #111 inset;
}
.customer-history-stamp-label{
  font-size:9px!important;
  color:#666!important;
  margin:0 0 5px!important;
  display:block!important;
}
.customer-history-reward{
  display:inline-flex!important;
  width:auto!important;
  margin-top:6px!important;
  padding:5px 7px;
  border-radius:999px;
  background:#eaf8ef;
  color:#16764b!important;
  font-size:8px!important;
  font-weight:900;
}


/* --- V15: breiteres Stammkunden-Modal + saubere Bestelloptionen --- */
.customer-detail-modal{
  width:min(1160px,calc(100vw - 48px));
  max-height:calc(100dvh - 32px);
  padding:22px 24px;
  scrollbar-width:none;
  -ms-overflow-style:none;
}
.customer-detail-modal::-webkit-scrollbar{width:0;height:0;display:none}
/* Hilfe / Kontakt */
.help-contact-modal{width:min(760px,calc(100vw - 32px));padding:20px}
.help-contact-card{display:grid;grid-template-columns:minmax(210px,280px) 1fr;gap:22px;align-items:stretch;margin-top:18px}
.help-contact-photo{min-height:300px;border-radius:22px;background:#f2f2f4;overflow:hidden}
.help-contact-photo img{width:100%;height:100%;min-height:300px;display:block;object-fit:cover;object-position:center top}
.help-contact-avatar{width:150px;height:150px;border-radius:42px;background:#111;color:#fff;display:grid;place-items:center;font-size:46px;font-weight:900;letter-spacing:-1.5px;box-shadow:0 16px 40px rgba(0,0,0,.12)}
.help-contact-content{display:flex;flex-direction:column;justify-content:center;min-width:0;padding:6px 2px}
.help-contact-kicker{font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.06em;color:#8a8a90;margin-bottom:7px}
.help-contact-content h3{font-size:27px;line-height:1.05;letter-spacing:-.7px;margin:0}
.help-contact-content p{font-size:12px;color:var(--muted);margin:6px 0 18px}
.help-contact-actions{display:grid;gap:8px}
.help-contact-action{display:flex;align-items:center;gap:12px;min-height:62px;padding:10px 12px;border:1px solid var(--line);border-radius:16px;color:#111;text-decoration:none;background:#fff;transition:.15s}
.help-contact-action:hover{background:#f7f7f9;transform:translateY(-1px)}
.help-contact-action:active{transform:scale(.992)}
.help-contact-icon{width:40px;height:40px;border-radius:12px;background:#f1f1f3;display:grid;place-items:center;flex:none;color:#111}
.help-contact-icon svg{width:21px;height:21px}
.help-contact-action.whatsapp .help-contact-icon{background:#eaf8ef;color:#16764b}
.help-contact-action span:last-child{min-width:0}
.help-contact-action small{display:block;font-size:9px;color:var(--muted);margin-bottom:2px}
.help-contact-action b{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:700px){
  .help-contact-modal{padding:16px}
  .help-contact-card{grid-template-columns:1fr;gap:14px}
  .help-contact-photo{min-height:190px}
  .help-contact-photo img{min-height:190px}
  .help-contact-avatar{width:112px;height:112px;border-radius:32px;font-size:36px}
  .help-contact-content{padding:0}
  .help-contact-content h3{font-size:24px}
}

.customer-detail-modal .modal-head{position:sticky;top:-22px;z-index:3;background:#fff;padding:22px 0 12px;margin-top:-22px}
.customer-detail-stats{gap:10px}
.customer-detail-stat{padding:13px 14px}
.customer-insights{gap:10px;margin-bottom:15px}
.customer-insight{padding:13px 14px}
.customer-history-list{gap:9px}
.customer-history-order{grid-template-columns:125px minmax(0,1fr) 120px;padding:13px 14px;border-radius:16px}
.customer-history-main b{font-size:12px}.customer-history-main span{font-size:10px}

.menu-manage-modal{width:min(1120px,calc(100vw - 40px))}
.menu-editor-layout{grid-template-columns:300px minmax(0,1fr);gap:18px}
.product-options-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-top:2px}
.product-options-head .hint{max-width:650px}
.option-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:10px 0}
.option-presets button{border:1px solid var(--line);background:#fff;border-radius:13px;padding:10px 11px;text-align:left;cursor:pointer;transition:.15s}
.option-presets button:hover{background:#f7f7f9;border-color:#c8c8ce;transform:translateY(-1px)}
.option-presets b{display:block;font-size:10px}.option-presets span{display:block;font-size:9px;color:var(--muted);margin-top:3px}
.option-group-list{display:grid;gap:9px}
.option-empty{border:1.5px dashed #d2d2d7;border-radius:15px;padding:16px;text-align:center;color:#85858b;font-size:10px;line-height:1.5}
.option-group-card{border:1px solid var(--line);border-radius:16px;background:#fbfbfc;padding:11px}
.option-group-top{display:grid;grid-template-columns:minmax(150px,1fr) 155px auto;gap:7px;align-items:center}
.option-group-top .field{background:#fff}
.option-kind{width:100%;border:0;background:#fff;border-radius:13px;padding:12px 13px;outline:none;font-size:11px}
.option-group-remove,.option-row-remove{border:0;background:#fff0ef;color:#c82e25;border-radius:11px;width:38px;height:38px;font-weight:900;cursor:pointer}
.option-group-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:8px 1px 3px;font-size:9px;color:var(--muted)}
.option-group-meta label{display:flex;align-items:center;gap:5px}.option-group-meta input{width:14px;height:14px}
.option-rows{display:grid;gap:6px;margin-top:9px}
.option-row{display:grid;grid-template-columns:minmax(120px,1.25fr) minmax(120px,1fr) 105px 38px;gap:6px;align-items:center}
.option-row .field{background:#fff;padding:10px 11px;font-size:10px}
.option-price-wrap{position:relative}.option-price-wrap:after{content:'€';position:absolute;right:11px;top:50%;transform:translateY(-50%);font-size:9px;color:#8c8c92;pointer-events:none}.option-price-wrap .field{padding-right:25px}
.option-add{margin-top:8px;border:0;background:#ededf1;border-radius:11px;padding:9px 11px;font-size:9px;font-weight:850;cursor:pointer}
.option-example{margin-top:8px;padding:8px 10px;border-radius:11px;background:#f2f2f4;font-size:9px;color:#666;line-height:1.4}

@media(max-width:900px){
  .customer-detail-modal{width:calc(100vw - 20px);padding:16px;max-height:calc(100dvh - 20px)}
  .customer-detail-modal .modal-head{top:-16px;padding:16px 0 10px;margin-top:-16px}
  .customer-history-order{grid-template-columns:92px minmax(0,1fr) auto}
  .menu-editor-layout{grid-template-columns:1fr}
  .option-presets{grid-template-columns:1fr}
  .option-group-top{grid-template-columns:1fr 1fr auto}
}
@media(max-width:620px){
  .customer-detail-modal{width:calc(100vw - 10px);max-height:calc(100dvh - 10px);border-radius:20px}
  .customer-history-order{grid-template-columns:1fr}
  .customer-history-order>div:last-child{grid-column:1}
  .option-group-top{grid-template-columns:1fr auto}.option-group-top .option-kind{grid-column:1/-1;grid-row:2}.option-group-remove{grid-column:2;grid-row:1}
  .option-row{grid-template-columns:1fr 1fr 38px}.option-row .option-detail{grid-column:1/-1}.option-price-wrap{grid-column:1/3}.option-row-remove{grid-column:3;grid-row:2}
}


/* Urlaub / abweichende Schließtage */
.vacation-summary{margin-top:10px;padding:10px 11px;border-radius:13px;background:#f5f5f7;font-size:10px;color:var(--muted);line-height:1.4}
.vacation-summary b{color:#111}
.vacation-modal{width:min(1120px,calc(100vw - 32px));max-height:calc(100dvh - 24px);overflow:hidden;display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);column-gap:22px;align-items:start}
.vacation-modal>.modal-head{grid-column:1/-1}
.vacation-head-actions{margin-left:auto;display:flex;align-items:center;gap:8px}
.vacation-head-actions .close{margin-left:0}
.vacation-section{margin-top:15px;min-width:0}
.vacation-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:8px}
.vacation-section-head>div{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap;min-width:0}
.vacation-section-head b{font-size:12px;flex:none}
.vacation-section-head span{font-size:9px;color:var(--muted);line-height:1.35}
.vacation-all-day{display:flex;align-items:center;gap:7px;font-size:10px;font-weight:800;margin:0 0 8px 1px}
.vacation-all-day input{width:15px;height:15px}
.vacation-range-entry{display:grid;grid-template-columns:minmax(0,1fr) 105px minmax(0,1fr) 105px;gap:8px;align-items:end}
.vacation-range-entry.all-day{grid-template-columns:1fr 1fr}
.vacation-range-entry.all-day .vacation-time-field{display:none}
.vacation-auto-note{margin-top:8px;font-size:9px;color:var(--muted);min-height:13px}
.vacation-auto-note.saved{color:#16764b;font-weight:780}
.vacation-calendar-box{border:1px solid var(--line);border-radius:16px;padding:11px}
.vacation-calendar-mode{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap;margin-bottom:10px;padding-bottom:10px;border-bottom:1px solid #efeff2}
.vacation-calendar-mode .vacation-all-day{margin:0 auto 1px 0}
.vacation-calendar-time{width:105px}
.vacation-day-editor-placeholder{width:100%;min-height:40px;display:flex;align-items:center;color:var(--muted);font-size:10px;line-height:1.4}
.vacation-day-editor-content{
  width:100%;
  display:grid;
  grid-template-columns:105px 105px minmax(0,1fr);
  gap:8px;
  align-items:end
}
.vacation-day-editor-copy{grid-column:1/-1;min-width:0;margin:0}
.vacation-day-editor-copy b{display:block;font-size:11px}
.vacation-day-editor-copy span{display:block;font-size:9px;color:var(--muted);margin-top:3px}
.vacation-day-editor-content .vacation-all-day{grid-column:1/-1;margin:0 0 1px 0}
#vacationDayFromWrap{grid-column:1}
#vacationDayToWrap{grid-column:2}
.vacation-day-editor-content .vacation-calendar-time{width:100%;min-width:0}
.vacation-day.editing{box-shadow:inset 0 0 0 2px #fff,0 0 0 2px #111}
.vacation-calendar-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}
.vacation-calendar-head b{font-size:13px}
.vacation-calendar-nav{border:0;background:#f1f1f3;width:32px;height:32px;border-radius:10px;font-size:18px}
.vacation-weekdays,.vacation-calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}
.vacation-weekdays div{text-align:center;font-size:8px;font-weight:850;color:#8b8b90;padding:3px}
.vacation-day{aspect-ratio:1;border:0;border-radius:10px;background:#f7f7f9;font-size:10px;font-weight:760;position:relative}
.vacation-day:hover{background:#ececf0}
.vacation-day.selected{background:#111;color:#fff}
.vacation-day.in-range:not(.selected){background:#fff1d8;color:#8a5a00}
.vacation-day.today{box-shadow:inset 0 0 0 1.5px #111}
.vacation-day.empty{visibility:hidden;pointer-events:none}
.vacation-day.in-range:not(.selected){cursor:help}
.vacation-legend{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-top:9px;font-size:9px;color:var(--muted)}
.vacation-legend span{display:flex;align-items:center;gap:5px}
.vacation-legend i{width:10px;height:10px;border-radius:3px;background:#111;display:block}
.vacation-legend .range i{background:#fff1d8;border:1px solid #f0d79b}
#vacationListOverlay{z-index:95}
.vacation-list-modal{width:min(1100px,calc(100vw - 32px));max-height:calc(100dvh - 32px)}
.vacation-bulkbar{display:grid;grid-template-columns:auto minmax(110px,1fr) 190px 130px 130px auto;gap:8px;align-items:end;margin:14px 0 11px;padding:11px;border-radius:15px;background:#f5f5f7}
#vacationBulkScope{min-width:0;width:100%}
.vacation-select-all{display:flex;align-items:center;gap:7px;min-height:40px;font-size:10px;font-weight:820;white-space:nowrap}
.vacation-select-all input,.vacation-row-check input{width:16px;height:16px}
.vacation-bulk-copy{align-self:center;font-size:9px;color:var(--muted);line-height:1.4}
.vacation-list{display:grid;gap:7px;max-height:calc(100dvh - 235px);overflow:auto;padding-right:2px}
.vacation-list-row{display:grid;grid-template-columns:28px max-content minmax(135px,1fr) 105px minmax(135px,1fr) 105px;gap:7px;align-items:end;border:1px solid var(--line);border-radius:14px;padding:10px;background:#fff}
.vacation-row-check{display:grid;place-items:center;align-self:center}
.vacation-kind{align-self:center;justify-self:start;border-radius:999px;background:#f1f1f3;padding:6px 8px;font-size:8px;font-weight:880;color:#666;white-space:nowrap;max-width:none;overflow:visible}
.vacation-kind.partial{background:#fff7e7;color:#8a5a00}
.vacation-list-empty{min-height:120px;border:1.5px dashed #d0d0d5;border-radius:14px;display:grid;place-items:center;text-align:center;color:#9999a0;font-size:10px;padding:16px}
.vacation-delete-selected:disabled{opacity:.38}
@media(max-width:900px){
  .vacation-bulkbar{grid-template-columns:1fr 1fr}
  .vacation-bulk-copy{grid-column:1/-1}
  .vacation-delete-selected{grid-column:1/-1}
  .vacation-list-row{grid-template-columns:28px max-content minmax(0,1fr) 100px}
  .vacation-list-row .vac-list-to-date{grid-column:3}
  .vacation-list-row .vac-list-to-time{grid-column:4}
}
@media(max-width:800px){
  .vacation-modal{width:calc(100vw - 12px);max-height:calc(100dvh - 12px);overflow:auto;display:block}
  .vacation-range-entry,.vacation-range-entry.all-day{grid-template-columns:1fr 1fr}
  .vacation-range-entry .vacation-time-field{display:block}
  .vacation-range-entry.all-day .vacation-time-field{display:none}
  .vacation-day-editor-content{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .vacation-day-editor-copy,
  .vacation-day-editor-content .vacation-all-day{grid-column:1/-1}
  #vacationDayFromWrap{grid-column:1}
  #vacationDayToWrap{grid-column:2}
}
@media(max-width:620px){
  .vacation-list-modal{width:calc(100vw - 10px)}
  .vacation-list-row{grid-template-columns:28px 1fr 1fr}
  .vacation-kind{grid-column:2/-1}
  .vacation-list-row .settings-field{grid-column:auto}
  .vacation-list-row .vacation-time-field{grid-column:auto}
  .vacation-bulkbar{grid-template-columns:1fr}
  .vacation-delete-selected,.vacation-bulk-copy{grid-column:1}
}

/* Live Vorschau */
.live-preview-modal{width:min(1480px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:hidden;padding:20px}
.live-preview-layout{display:grid;grid-template-columns:330px minmax(0,1fr);gap:22px;margin-top:16px;min-height:0}
.live-preview-changes{border:1px solid var(--line);border-radius:20px;background:#fafafa;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.live-preview-changes-head{padding:14px 15px 11px;border-bottom:1px solid var(--line)}
.live-preview-changes-head b{display:block;font-size:13px}.live-preview-changes-head span{display:block;font-size:9px;color:var(--muted);margin-top:3px;line-height:1.4}
.live-preview-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;background:#f0f0f2;border-radius:11px;padding:4px;margin-top:10px}
.live-preview-tabs button{border:0;background:transparent;border-radius:8px;padding:7px 8px;font-size:9px;font-weight:850;color:#69696e}
.live-preview-tabs button.active{background:#fff;color:#111;box-shadow:0 1px 5px rgba(0,0,0,.07)}
.live-preview-change-list{padding:9px;display:grid;gap:7px;overflow:auto;max-height:calc(100dvh - 215px)}
.live-preview-history-time{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:4px}
.live-preview-history-time small{margin:0!important}
.live-preview-history-time time{font-size:8px;color:#9a9aa0;white-space:nowrap}
.live-preview-head-actions{margin-left:auto;display:flex;gap:7px;align-items:center}
.live-preview-head-actions .close{margin-left:0}
.live-preview-empty{border:1.5px dashed #d0d0d5;border-radius:14px;padding:18px 12px;text-align:center;color:#929298;font-size:10px;line-height:1.5}
.live-preview-change{border:1px solid var(--line);background:#fff;border-radius:13px;padding:9px 10px}
.live-preview-change small{display:block;font-size:8px;font-weight:850;text-transform:uppercase;letter-spacing:.045em;color:#909096;margin-bottom:3px}
.live-preview-change b{display:block;font-size:10.5px;line-height:1.35}.live-preview-change span{display:block;font-size:9px;color:var(--muted);line-height:1.4;margin-top:2px}
.live-preview-phones{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:start;min-width:0}
.live-phone-wrap{text-align:center;min-width:0}
.live-phone-label{font-size:10px;font-weight:850;margin-bottom:8px;color:#444}
.live-phone{width:min(100%,255px);aspect-ratio:9/19.5;margin:0 auto;background:#111;border-radius:38px;padding:8px;box-shadow:0 18px 45px rgba(0,0,0,.16);position:relative}
.live-phone:before{content:"";position:absolute;top:12px;left:50%;transform:translateX(-50%);width:72px;height:20px;border-radius:999px;background:#111;z-index:2}
.live-phone-screen{height:100%;border-radius:31px;background:#f5f5f7;border:1px solid #2c2c2e;display:grid;place-items:center;padding:18px;overflow:hidden}
.live-phone-placeholder{text-align:center;color:#9999a0;font-size:10px;line-height:1.5}.live-phone-placeholder b{display:block;color:#76767c;font-size:11px;margin-bottom:3px}
@media(max-width:1050px){.live-preview-layout{grid-template-columns:1fr}.live-preview-change-list{max-height:220px}.live-preview-phones{gap:12px}.live-phone{width:min(100%,220px)}}
@media(max-width:720px){.live-preview-modal{width:calc(100vw - 10px);max-height:calc(100dvh - 10px);overflow:auto;padding:16px}.live-preview-head-actions{width:100%;margin-left:0;flex-wrap:wrap}.live-preview-head-actions .btn{flex:1}.live-preview-head-actions .close{flex:none}.live-preview-phones{grid-template-columns:1fr}.live-phone{width:230px}.live-preview-change-list{max-height:260px}}


/* Globale Ansichtsvergrößerung */
.topbar-icon-btn{
  width:40px;min-width:40px;padding:0!important;display:grid;place-items:center;flex:none;
}
.topbar-icon-btn svg{width:18px;height:18px;display:block}
.topbar-icon-btn.active{background:#111;color:#fff;border-color:#111}

.view-scale-control{position:relative;display:flex;align-items:center;flex:none}
.view-scale-popover{
  position:absolute;right:0;top:calc(100% + 9px);z-index:120;
  width:265px;padding:13px 14px 12px;background:#fff;border:1px solid var(--line);
  border-radius:16px;box-shadow:0 18px 50px rgba(0,0,0,.16);display:none
}
.view-scale-popover.open{display:block}
.view-scale-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.view-scale-head b{font-size:11px}
.view-scale-head span{font-size:10px;font-weight:850;color:#555}
.view-scale-range{
  width:100%;accent-color:#111;display:block;margin:0;
}
.view-scale-labels{
  display:flex;justify-content:space-between;margin-top:5px;
  font-size:8px;color:var(--muted);font-weight:760
}
html{overflow-x:hidden}body{overflow-x:hidden}

/*
  Die Vergrößerung arbeitet wie eine vergrößerte responsive Ansicht.
  Nur logisch zusammengehörige Aktionsgruppen bleiben bewusst in einer Reihe.
*/
body.crm-scaled-view{transform-origin:0 0}

/* Zusammengehörige Button-/Menügruppen bleiben auch bei Vergrößerung zusammen. */
.topbar-actions,
.head-actions,
.export-buttons,
.detail-export-actions,
.live-preview-head-actions,
.vacation-head-actions{
  display:flex;
  flex-wrap:nowrap!important;
  align-items:center;
  gap:7px;
}
.topbar-actions{flex:none}
.topbar-actions>.btn,
.head-actions>.btn,
.export-buttons>.btn,
.detail-export-actions>.btn,
.live-preview-head-actions>.btn,
.vacation-head-actions>.btn{flex:0 0 auto!important}

/*
  CSS-Zoom kennt die kleineren "effektiven" Viewportbreiten nicht wie echter
  Browser-Zoom. Diese Klassen spiegeln deshalb die vorhandenen Responsive-
  Breakpoints anhand (Fensterbreite / Zoomfaktor).
*/

/* Schon auf breiteren Desktopgrößen darf der Header sauber umbrechen.
   Die Aktionsbuttons bleiben dabei als geschlossene Gruppe zusammen. */
body.zoom-bp-1350 .topbar{flex-wrap:wrap}
body.zoom-bp-1350 .brand{min-width:180px}
body.zoom-bp-1350 .tabs{
  order:4;width:100%;overflow-x:auto;overflow-y:hidden;
  scrollbar-width:none
}
body.zoom-bp-1350 .tabs::-webkit-scrollbar{display:none}
body.zoom-bp-1350 .search{flex:1;min-width:220px;max-width:330px;width:auto}
body.zoom-bp-1350 .topbar-actions{margin-left:auto;max-width:100%}

/* Etwas enger: Suche bekommt ihre eigene Zeile, ohne die Buttons zu zerlegen. */
body.zoom-bp-1200 .search{
  order:5;flex:0 0 100%;width:100%;max-width:none
}
body.zoom-bp-1200 .topbar-actions{order:3}

/* Die komplette Button-Gruppe bleibt sichtbar; notfalls scrollt nur die Gruppe selbst. */
body.zoom-bp-900 .topbar-actions{
  overflow-x:auto;overflow-y:hidden;scrollbar-width:none;
  max-width:100%;padding-bottom:1px
}
body.zoom-bp-900 .topbar-actions::-webkit-scrollbar{display:none}

body.zoom-bp-1100 .menu-list{grid-template-columns:repeat(3,minmax(0,1fr))}

body.zoom-bp-1050 .customer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
body.zoom-bp-1050 .menu-manage-list{grid-template-columns:1fr}
body.zoom-bp-1050 .live-preview-layout{grid-template-columns:1fr}
body.zoom-bp-1050 .live-preview-change-list{max-height:220px}
body.zoom-bp-1050 .live-preview-phones{gap:12px}
body.zoom-bp-1050 .live-phone{width:min(100%,220px)}

body.zoom-bp-980 .topbar{flex-wrap:wrap}
body.zoom-bp-980 .brand{min-width:0;flex:1}
body.zoom-bp-980 .tabs{order:4;width:100%;overflow:auto}
body.zoom-bp-980 .search{order:5;flex:0 0 100%;width:100%;max-width:none}
body.zoom-bp-980 .history-layout{grid-template-columns:1fr}
body.zoom-bp-980 .settings-grid{grid-template-columns:1fr}
body.zoom-bp-980 .info-grid{grid-template-columns:1fr 1fr}

body.zoom-bp-900 .menu-editor-layout{grid-template-columns:1fr}
body.zoom-bp-900 .image-upload-zone{min-height:220px}
body.zoom-bp-900 .customer-detail-stats{grid-template-columns:1fr 1fr}
body.zoom-bp-900 .customer-insights{grid-template-columns:1fr}
body.zoom-bp-900 .customer-detail-modal{width:calc(100% - 20px);padding:16px;max-height:calc(100dvh - 20px)}
body.zoom-bp-900 .customer-detail-modal .modal-head{top:-16px;padding:16px 0 10px;margin-top:-16px}
body.zoom-bp-900 .customer-history-order{grid-template-columns:92px minmax(0,1fr) auto}
body.zoom-bp-900 .option-presets{grid-template-columns:1fr}
body.zoom-bp-900 .option-group-top{grid-template-columns:1fr 1fr auto}
body.zoom-bp-900 .vacation-bulkbar{grid-template-columns:1fr 1fr}
body.zoom-bp-900 .vacation-bulk-copy{grid-column:1/-1}
body.zoom-bp-900 .vacation-delete-selected{grid-column:1/-1}
body.zoom-bp-900 .vacation-list-row{grid-template-columns:28px max-content minmax(0,1fr) 100px}
body.zoom-bp-900 .vacation-list-row .vac-list-to-date{grid-column:3}
body.zoom-bp-900 .vacation-list-row .vac-list-to-time{grid-column:4}

body.zoom-bp-800 .menu-list{grid-template-columns:repeat(2,minmax(0,1fr))}
body.zoom-bp-800 .history-filter{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
body.zoom-bp-800 .history-filter-action{grid-column:auto}
body.zoom-bp-800 .vacation-modal{width:calc(100% - 12px);max-height:calc(100dvh - 12px);overflow:auto;display:block}
body.zoom-bp-800 .vacation-range-entry,
body.zoom-bp-800 .vacation-range-entry.all-day{grid-template-columns:1fr 1fr}
body.zoom-bp-800 .vacation-range-entry .vacation-time-field{display:block}
body.zoom-bp-800 .vacation-range-entry.all-day .vacation-time-field{display:none}
body.zoom-bp-800 .vacation-day-editor-content{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
body.zoom-bp-800 .vacation-day-editor-copy,
body.zoom-bp-800 .vacation-day-editor-content .vacation-all-day{grid-column:1/-1}
body.zoom-bp-800 #vacationDayFromWrap{grid-column:1}
body.zoom-bp-800 #vacationDayToWrap{grid-column:2}

body.zoom-bp-720 .live-preview-modal{width:calc(100% - 10px);max-height:calc(100dvh - 10px);overflow:auto;padding:16px}
body.zoom-bp-720 .live-preview-head-actions{width:auto;margin-left:auto}
body.zoom-bp-720 .live-preview-phones{grid-template-columns:1fr}
body.zoom-bp-720 .live-phone{width:230px}
body.zoom-bp-720 .live-preview-change-list{max-height:260px}

body.zoom-bp-700 .topbar{padding:9px 10px}
body.zoom-bp-700 .topbar-actions{
  order:3;flex:0 0 100%;width:100%;
  overflow-x:auto;overflow-y:hidden;justify-content:flex-start
}
body.zoom-bp-700 .search{order:5;width:100%;flex-basis:100%;max-width:none}
body.zoom-bp-700 .btn{padding:0 10px}
body.zoom-bp-700 .today-head{padding:10px 9px 0}
body.zoom-bp-700 .head-actions{margin-left:0;width:100%;overflow-x:auto;scrollbar-width:none}
body.zoom-bp-700 .board-wrap{padding:9px}
body.zoom-bp-700 .board{grid-template-columns:repeat(6,88vw);min-width:calc(6 * 88vw + 5 * 11px)}
body.zoom-bp-700 .column{min-height:calc(100dvh - 235px)}
body.zoom-bp-700 .panel{padding:13px 10px 22px}
body.zoom-bp-700 .panel-head h1{font-size:23px}
body.zoom-bp-700 .history-summary{grid-template-columns:1fr 1fr}
body.zoom-bp-700 .menu-item{grid-template-columns:1fr 88px}
body.zoom-bp-700 .availability{grid-column:1/-1}
body.zoom-bp-700 .hour-row{grid-template-columns:72px 1fr 1fr}
body.zoom-bp-700 .hour-row .toggle-btn{grid-column:1/-1}
body.zoom-bp-700 .info-grid{grid-template-columns:1fr}
body.zoom-bp-700 .order-row{grid-template-columns:35px minmax(0,1fr) 72px}
body.zoom-bp-700 .order-row .unit,
body.zoom-bp-700 .order-row.header .unit{display:none}
body.zoom-bp-700 .grid2,
body.zoom-bp-700 .grid3{grid-template-columns:1fr}
body.zoom-bp-700 .export-buttons{width:auto;overflow-x:auto;scrollbar-width:none}
body.zoom-bp-700 .customer-grid{grid-template-columns:1fr}
body.zoom-bp-700 .loyalty-summary{grid-template-columns:1fr 1fr}
body.zoom-bp-700 .menu-manage-tools{grid-template-columns:1fr}
body.zoom-bp-700 .coupon-row{grid-template-columns:1fr auto}
body.zoom-bp-700 .coupon-edit{grid-column:1/-1}
body.zoom-bp-700 .stamp-track{grid-template-columns:repeat(5,1fr)}
body.zoom-bp-700 .menu-manage-list{grid-template-columns:1fr}
body.zoom-bp-700 .offer-products{grid-template-columns:1fr}
body.zoom-bp-700 .editor-bottom{display:grid}
body.zoom-bp-700 .customer-history-order{grid-template-columns:75px 1fr}
body.zoom-bp-700 .customer-history-order>div:last-child{grid-column:2}
body.zoom-bp-700 .help-contact-modal{padding:16px}
body.zoom-bp-700 .help-contact-card{grid-template-columns:1fr;gap:14px}
body.zoom-bp-700 .help-contact-photo{min-height:190px}
body.zoom-bp-700 .help-contact-avatar{width:112px;height:112px;border-radius:32px;font-size:36px}
body.zoom-bp-700 .help-contact-content{padding:0}
body.zoom-bp-700 .help-contact-content h3{font-size:24px}

body.zoom-bp-620 .customer-detail-modal{width:calc(100% - 10px);max-height:calc(100dvh - 10px);border-radius:20px}
body.zoom-bp-620 .customer-history-order{grid-template-columns:1fr}
body.zoom-bp-620 .customer-history-order>div:last-child{grid-column:1}
body.zoom-bp-620 .option-group-top{grid-template-columns:1fr auto}
body.zoom-bp-620 .option-group-top .option-kind{grid-column:1/-1;grid-row:2}
body.zoom-bp-620 .option-group-remove{grid-column:2;grid-row:1}
body.zoom-bp-620 .option-row{grid-template-columns:1fr 1fr 38px}
body.zoom-bp-620 .option-row .option-detail{grid-column:1/-1}
body.zoom-bp-620 .option-price-wrap{grid-column:1/3}
body.zoom-bp-620 .option-row-remove{grid-column:3;grid-row:2}
body.zoom-bp-620 .vacation-list-modal{width:calc(100% - 10px)}
body.zoom-bp-620 .vacation-list-row{grid-template-columns:28px 1fr 1fr}
body.zoom-bp-620 .vacation-kind{grid-column:2/-1}
body.zoom-bp-620 .vacation-list-row .settings-field,
body.zoom-bp-620 .vacation-list-row .vacation-time-field{grid-column:auto}
body.zoom-bp-620 .vacation-bulkbar{grid-template-columns:1fr}
body.zoom-bp-620 .vacation-delete-selected,
body.zoom-bp-620 .vacation-bulk-copy{grid-column:1}

body.zoom-bp-560 .history-filter{grid-template-columns:1fr}
body.zoom-bp-560 .history-filter-action{grid-column:1}

/* Stammkunden-Suche */
.loyalty-toolbar{display:flex;align-items:center;gap:8px;margin-bottom:12px}
.loyalty-search{
  width:100%;height:40px;border:0;background:#fff;border:1px solid var(--line);
  border-radius:13px;padding:0 13px;outline:none
}
.loyalty-search:focus{box-shadow:0 0 0 2px #111 inset}
@media(max-width:700px){
  .topbar-icon-btn{width:40px!important;min-width:40px!important;flex:none!important}
}


@media print{
 @page{size:A4 landscape;margin:8mm}
 .print-sheet h1,.print-sheet h2,.print-sheet h3{break-after:avoid}
 .print-sheet table{font-size:7.5pt;table-layout:fixed;word-break:break-word;page-break-inside:auto}
 .print-sheet thead{display:table-header-group}
 .print-sheet tr{page-break-inside:avoid}
 .print-sheet th{background:#f2f2f2;font-weight:700}
 .print-sheet th,.print-sheet td{overflow-wrap:anywhere;white-space:normal}
}

/* Zoom-sichere Modals: body.zoom verkleinert die effektive Viewport-Hoehe.
   Bei vergroesserter CRM-Ansicht bleiben Kopf, Schliessen-Button und Inhalt erreichbar. */
body.crm-scaled-view .overlay{
  align-items:flex-start;
  justify-content:center;
  overflow:auto;
  padding-top:8px;
  padding-bottom:8px;
}
body.crm-scaled-view .overlay>.modal{
  max-height:calc(var(--crm-effective-vh, 100dvh) - 16px)!important;
  overflow:auto!important;
  margin-top:0;
  margin-bottom:0;
}


/* DRIVER_CHAT_2A */
.driver-chat-btn{position:relative}.driver-chat-badge{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#111;color:#fff;font-size:8px;font-weight:900}.driver-chat-badge.hidden{display:none}
.driver-chat-list-modal{width:min(500px,calc(100vw - 24px))}.driver-chat-list{display:grid;gap:8px;margin-top:14px}.driver-chat-person{width:100%;border:1px solid var(--line);background:#fff;border-radius:15px;padding:11px;display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:9px;align-items:center;text-align:left}.driver-chat-avatar{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:#f1f1f3;font-size:14px;font-weight:950}.driver-chat-person-main b{font-size:12px}.driver-chat-person-status{font-size:9px;font-weight:850;color:#8a8a91;margin-left:6px}.driver-chat-person-status.online{color:#16764b}.driver-chat-person-preview{display:block;font-size:9px;color:#777;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.driver-chat-count{min-width:23px;height:23px;border-radius:999px;background:#111;color:#fff;display:grid;place-items:center;font-size:8px;font-weight:950}.driver-chat-count.hidden{visibility:hidden}
.driver-chat-modal{width:min(720px,calc(100vw - 24px));height:min(720px,calc(100dvh - 24px));padding:0;overflow:hidden;display:grid;grid-template-rows:auto minmax(0,1fr) auto}.driver-chat-head{display:flex;align-items:center;gap:10px;padding:13px 14px;border-bottom:1px solid var(--line)}.driver-chat-head>div{min-width:0}.driver-chat-head h2{margin:0;font-size:17px}.driver-chat-head span{display:block;font-size:9px;color:#8a8a91;margin-top:2px}.driver-chat-head span.online{color:#16764b}.driver-chat-back{width:38px;height:38px;border:0;border-radius:12px;background:#f1f1f3;font-size:24px}.driver-chat-messages{min-height:0;overflow:auto;padding:12px;background:#f5f5f7;display:flex;flex-direction:column;gap:8px}.driver-chat-empty{margin:auto;color:#8a8a91;font-size:10px}.driver-msg{max-width:82%;display:flex;flex-direction:column;gap:3px}.driver-msg.in{align-self:flex-start}.driver-msg.out{align-self:flex-end}.driver-msg-bubble{padding:9px 10px;border-radius:14px 14px 14px 5px;background:#fff;border:1px solid #e1e1e5;font-size:10.5px;line-height:1.35;white-space:pre-wrap;overflow-wrap:anywhere}.driver-msg.out .driver-msg-bubble{background:#111;color:#fff;border-color:#111;border-radius:14px 14px 5px 14px}.driver-msg-meta{font-size:8px;color:#8a8a91;padding:0 3px;display:flex;gap:5px}.driver-msg.out .driver-msg-meta{justify-content:flex-end}.driver-ticks{font-weight:950;letter-spacing:-2px;color:#a0a0a6}.driver-ticks.read{color:#111}.driver-chat-form{padding:9px;border-top:1px solid var(--line);display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px}.driver-chat-form textarea{min-height:44px;max-height:96px;resize:none;border:1px solid #d9d9de;border-radius:13px;padding:11px;font:10.5px/1.35 inherit}.driver-chat-form button{height:44px;border:0;border-radius:12px;background:#111;color:#fff;font-size:9px;font-weight:950;padding:0 14px}


/* DRIVER_INCIDENT_2B */
.driver-chat-btn.incident-new{background:#d92d20!important;border-color:#d92d20!important;color:#fff!important;animation:driverIncidentPulse 1.2s ease-in-out infinite}.driver-chat-btn.incident-new .driver-chat-badge{background:#fff;color:#b42318}.driver-chat-btn.incident-open{background:#fff1f0!important;border-color:#ef9a93!important;color:#a5231b!important}@keyframes driverIncidentPulse{50%{box-shadow:0 0 0 7px rgba(217,45,32,.18)}}
.driver-chat-person.has-incident{border-color:#ef9a93;background:#fff7f6}.driver-chat-incident-note{display:block;margin-top:3px;color:#b42318;font-size:8px;font-weight:950}
.driver-chat-order-context{margin:8px 10px 0;padding:8px 9px;border:1px solid #d9e5f2;border-radius:11px;background:#f0f5fb;font-size:9px;display:flex;align-items:center;gap:6px}.driver-chat-order-context.hidden{display:none}.driver-chat-order-context b{font-size:10px}.driver-chat-order-context button{margin-left:auto;border:0;background:transparent;font-size:16px}
.driver-incident-card{border:2px solid #e5483b;background:#fff5f4;border-radius:14px;padding:9px;min-width:min(390px,76vw)}.driver-incident-card-head{display:flex;align-items:center;gap:6px;color:#b42318;font-size:10px;font-weight:950}.driver-incident-state{margin-left:auto;border-radius:999px;background:#ffe2df;padding:3px 6px;font-size:7.5px}.driver-incident-reason{font-size:11px;font-weight:900;margin-top:5px}.driver-incident-meta{font-size:8px;color:#777;margin-top:3px}.driver-incident-actions{display:flex;gap:6px;margin-top:7px}.driver-incident-actions button{height:34px;border-radius:9px;padding:0 9px;font-size:8px;font-weight:900}.driver-incident-open-order{border:1px solid #ddd;background:#fff}.driver-incident-resolve{border:0;background:#111;color:#fff}
.driver-msg-order{display:block;width:100%;border:0;border-radius:9px;background:#eef3f8;padding:6px 7px;text-align:left;font-size:8px;margin-bottom:5px}.driver-msg-order b{display:block;font-size:9px}.driver-msg.out .driver-msg-order{background:rgba(255,255,255,.14);color:#fff}
.order-card.driver-incident-order{border-color:#ef8f87;box-shadow:0 0 0 2px rgba(217,45,32,.08)}.driver-incident-tag{display:inline-flex;align-items:center;height:19px;border-radius:999px;background:#d92d20;color:#fff;font-size:7px;font-weight:950;padding:0 6px;margin-left:4px}


/* DRIVER_MEDIA_3A */
.driver-chat-media{display:grid;gap:6px}.driver-chat-media img,.driver-chat-media video{display:block;max-width:min(360px,100%);max-height:300px;border-radius:10px;background:#000}.driver-chat-media audio{width:min(320px,100%)}.driver-chat-media-label{font-size:9px;font-weight:900;opacity:.68}.driver-msg.out .driver-chat-media-label{color:#fff}.driver-msg-bubble:has(.driver-chat-media){padding:7px}.driver-chat-person-preview.media-preview{font-weight:800}


/* DRIVER_TRANSCRIPT_3B */
.driver-chat-transcript{margin-top:7px;border-top:1px solid rgba(127,127,127,.18);padding-top:6px}
.driver-chat-transcript summary{cursor:pointer;font-size:9px;font-weight:900;list-style:none}
.driver-chat-transcript summary::-webkit-details-marker{display:none}
.driver-chat-transcript summary::after{content:"▾";margin-left:6px}
.driver-chat-transcript[open] summary::after{content:"▴"}
.driver-chat-transcript div{font-size:10px;line-height:1.45;margin-top:5px;white-space:pre-wrap}
.driver-chat-transcript.unavailable div{color:#85858c;font-style:italic}
.transcript-settings-card .toggle-btn{min-width:68px}

/* CHAT_PROBLEMS_SPLIT_2 */
.driver-chat-modal{grid-template-rows:auto minmax(0,1fr) auto}
.driver-chat-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:8px 12px 0;background:#fff}
.driver-chat-tabs button{height:36px;border:1px solid #dedee3;border-radius:10px;background:#f5f5f7;font-size:10px;font-weight:900}
.driver-chat-tabs button.active{background:#111;color:#fff;border-color:#111}
.driver-chat-tabs span{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 4px;border-radius:999px;background:#d92d20;color:#fff;font-size:8px;margin-left:4px}
.driver-chat-content{min-height:0;position:relative}
.driver-chat-content>.driver-chat-messages,.driver-chat-content>.driver-chat-problems{height:100%;overflow:auto}
.driver-chat-problems{padding:12px;background:#f5f5f7;display:grid;align-content:start;gap:9px}
.driver-chat-problems.hidden,.driver-chat-messages.hidden{display:none}
.driver-chat-form.hidden,.driver-chat-order-context.view-hidden{display:none}
.driver-problem-history-card{border:1px solid #e0e0e5;background:#fff;border-radius:14px;padding:10px}
.driver-problem-history-card.open{border-color:#ef8f87;background:#fff7f6}
.driver-problem-history-card .state{font-size:8px;font-weight:900;color:#b42318}
.driver-problem-history-card .reason{font-size:12px;font-weight:900;margin-top:4px}
.driver-problem-history-card .meta{font-size:8px;color:#777;margin-top:3px}


/* CRM_MEDIA_VIEWER_6 */
.driver-msg-bubble:has(.wa-media){
  padding:4px;
  overflow:hidden;
  min-width:210px;
}
.wa-media{
  display:grid;
  gap:6px;
  min-width:210px;
  max-width:320px;
}
.wa-media-open{
  position:relative;
  display:block;
  width:100%;
  border:0;
  padding:0;
  border-radius:12px;
  overflow:hidden;
  background:#171717;
  cursor:pointer;
  text-align:left;
}
.wa-media-open img{
  width:100%;
  max-height:300px;
  aspect-ratio:4/3;
  object-fit:cover;
  display:block;
}
.wa-video-placeholder{
  width:100%;
  aspect-ratio:16/10;
  display:grid;
  place-items:center;
  background:linear-gradient(145deg,#28282b,#111);
}
.wa-video-placeholder span{
  width:54px;
  height:54px;
  border-radius:50%;
  display:grid;
  place-items:center;
  padding-left:3px;
  background:rgba(255,255,255,.92);
  color:#111;
  font-size:22px;
  box-shadow:0 3px 18px rgba(0,0,0,.2);
}
.wa-video-play{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  pointer-events:none;
}
.wa-video-play span{
  width:52px;
  height:52px;
  border-radius:50%;
  display:grid;
  place-items:center;
  padding-left:3px;
  background:rgba(255,255,255,.92);
  color:#111;
  font-size:20px;
  box-shadow:0 3px 18px rgba(0,0,0,.2);
}
.wa-media-caption{
  display:flex;
  align-items:center;
  gap:7px;
  padding:2px 5px 4px;
  font-size:9px;
  font-weight:850;
  opacity:.72;
}
.wa-voice{
  min-width:270px;
  max-width:340px;
  display:grid;
  grid-template-columns:40px minmax(0,1fr) 30px;
  gap:8px;
  align-items:center;
  padding:7px 8px;
}
.wa-voice-play{
  width:40px;
  height:40px;
  border:0;
  border-radius:50%;
  background:#20b85a;
  color:#fff;
  font-size:16px;
  font-weight:900;
  cursor:pointer;
}
.driver-msg.out .wa-voice-play{
  background:#fff;
  color:#111;
}
.wa-wave{
  height:30px;
  display:flex;
  gap:2px;
  align-items:center;
  overflow:hidden;
}
.wa-wave i{
  width:2px;
  flex:0 0 2px;
  border-radius:999px;
  background:currentColor;
  opacity:.35;
}
.wa-wave i:nth-child(3n){height:22px}
.wa-wave i:nth-child(3n+1){height:10px}
.wa-wave i:nth-child(3n+2){height:16px}
.wa-voice-open{
  width:30px;
  height:30px;
  border:0;
  border-radius:9px;
  background:rgba(127,127,127,.12);
  color:inherit;
  cursor:pointer;
  font-size:14px;
}

.driver-media-viewer-overlay{
  z-index:1200;
}
.driver-media-viewer-modal{
  width:min(980px,calc(100vw - 28px));
  height:min(860px,calc(100dvh - 28px));
  padding:0;
  overflow:hidden;
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  background:#111;
}
.driver-media-viewer-head{
  min-height:62px;
  padding:10px 12px;
  display:flex;
  gap:10px;
  align-items:center;
  background:#fff;
  border-bottom:1px solid #dedee3;
}
.driver-media-viewer-head>div:first-child{
  min-width:0;
}
.driver-media-viewer-head h2{
  margin:0;
  font-size:16px;
}
.driver-media-viewer-head span{
  display:block;
  margin-top:2px;
  font-size:9px;
  color:#777;
}
.driver-media-viewer-actions{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:7px;
}
.driver-media-viewer-actions .btn{
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.driver-media-viewer-body{
  min-height:0;
  overflow:auto;
  display:grid;
  place-items:center;
  padding:18px;
  background:#111;
}
.driver-media-viewer-body img,
.driver-media-viewer-body video{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  border-radius:8px;
}
.driver-media-viewer-body video{
  width:min(900px,100%);
  background:#000;
}
.driver-media-viewer-body audio{
  width:min(600px,90%);
}

/* PROBLEM_COMMENTS_7 */
.driver-problem-comment{margin-top:8px;padding:9px 10px;border-radius:10px;background:#fff;border:1px solid #ececf0;font-size:10px;line-height:1.4;white-space:pre-wrap}
.driver-problem-audio-comment{margin-top:8px;display:grid;gap:5px}
.driver-problem-audio-comment audio{width:min(420px,100%)}
.driver-problem-audio-comment a{width:max-content;font-size:8px;font-weight:900;color:#111;text-decoration:none;border-bottom:1px solid #111}


/* MEDIA_RUNTIME_EXPORT_8 */
.wa-voice-inline{
  min-width:280px;
  max-width:360px;
  display:grid;
  gap:7px;
  padding:6px 7px;
}
.wa-voice-inline audio{
  width:100%;
}
.wa-inline-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.wa-inline-bottom span{
  font-size:9px;
  font-weight:850;
  opacity:.7;
}
.wa-inline-export,
.driver-problem-export{
  border:1px solid rgba(127,127,127,.24);
  background:rgba(127,127,127,.08);
  color:inherit;
  border-radius:9px;
  min-height:30px;
  padding:0 9px;
  font-size:8px;
  font-weight:900;
  cursor:pointer;
}
.driver-problem-transcript{
  margin-top:8px;
  padding-top:7px;
  border-top:1px solid rgba(127,127,127,.18);
}
.driver-problem-transcript summary{
  cursor:pointer;
  font-size:9px;
  font-weight:900;
}
.driver-problem-transcript div{
  margin-top:5px;
  font-size:10px;
  line-height:1.4;
  white-space:pre-wrap;
}


/* VIDEO_VOICE_STICKY_9 */
.driver-msg-bubble:has(.messenger-voice){
  min-width:300px;
  padding:8px 9px!important;
}
.messenger-voice{
  width:min(350px,70vw);
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto;
  gap:9px;
  align-items:center;
}
.messenger-voice audio{display:none}
.messenger-voice-play{
  width:42px;
  height:42px;
  border:0;
  border-radius:999px;
  display:grid;
  place-items:center;
  font-size:17px;
  font-weight:950;
  cursor:pointer;
  background:#111;
  color:#fff;
}
.driver-msg.out .messenger-voice-play{
  background:#fff;
  color:#111;
}
.messenger-voice-main{
  min-width:0;
  display:grid;
  gap:5px;
}
.messenger-voice-range{
  width:100%;
  height:4px;
  accent-color:currentColor;
  cursor:pointer;
}
.messenger-voice-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  font-size:8px;
  opacity:.7;
}
.messenger-voice-speed{
  min-width:37px;
  height:28px;
  border:0;
  border-radius:999px;
  background:#ececef;
  color:#111;
  font-size:8px;
  font-weight:950;
  cursor:pointer;
}
.driver-msg.out .messenger-voice-speed{
  background:rgba(255,255,255,.16);
  color:#fff;
}
.voice-export-row{
  margin-top:7px;
  display:flex;
  justify-content:flex-end;
}
.voice-export-row button{
  min-height:28px;
  border:1px solid rgba(127,127,127,.24);
  border-radius:9px;
  padding:0 9px;
  background:rgba(127,127,127,.08);
  color:inherit;
  font-size:8px;
  font-weight:900;
  cursor:pointer;
}


/* CRM_MEDIA_SEND_10 */
.crm-driver-media-actions{
  display:grid;grid-template-columns:repeat(3,1fr);gap:7px;
  padding:8px 10px 0;background:#fff;flex:0 0 auto;
}
.crm-driver-media-actions.hidden{display:none}
.crm-driver-media-actions button{
  min-height:36px;border:1px solid #dddde2;border-radius:10px;
  background:#fff;color:#111;font-size:9px;font-weight:900;cursor:pointer;
}
.crm-driver-media-actions button:hover{background:#f5f5f7}
.crm-driver-capture-overlay{z-index:1300}
.crm-driver-capture-modal{
  width:min(650px,calc(100vw - 28px));max-height:calc(100dvh - 28px);
  display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;overflow:hidden;
}
.crm-driver-capture-stage{
  min-height:260px;display:grid;place-items:center;overflow:hidden;
  border-radius:14px;background:#111;
}
.crm-driver-capture-stage video,.crm-driver-capture-stage img{
  display:none;width:100%;max-height:58vh;object-fit:contain;
}
.crm-driver-capture-stage audio{display:none;width:min(520px,90%)}
.crm-driver-capture-stage .show{display:block}
.crm-driver-voice-placeholder{
  display:none;place-items:center;width:92px;height:92px;border-radius:50%;
  background:#2b2b2e;color:#fff;font-size:34px;
}
.crm-driver-voice-placeholder.show{display:grid}
.crm-driver-transcript-preview{
  margin-top:10px;padding:10px;border-radius:11px;background:#f5f5f7;
  display:grid;gap:4px;
}
.crm-driver-transcript-preview.hidden{display:none}
.crm-driver-transcript-preview b{font-size:9px}
.crm-driver-transcript-preview span{font-size:10px;line-height:1.4}
.crm-driver-capture-actions{
  display:grid;grid-template-columns:1fr 1.2fr 1fr;gap:8px;margin-top:10px;
}


/* CRM_CHAT_BOTTOM_VOICE_13 */
.driver-chat-panel,.driver-chat-modal,.driver-chat-content{min-height:0!important}
.driver-chat-content{overflow:hidden!important}
#driverChatMessages{
  height:100%!important;min-height:0!important;
  overflow-y:auto!important;overflow-x:hidden!important;
  overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch;
}
.crm-driver-media-actions,#driverChatForm{
  flex:0 0 auto!important;position:relative!important;inset:auto!important;
  z-index:30!important;background:#fff!important;
}
.driver-msg-bubble:has(.messenger-voice){min-width:285px;padding:8px 9px!important}
.messenger-voice{
  width:min(330px,74vw);display:grid;
  grid-template-columns:42px minmax(0,1fr) auto;gap:9px;align-items:center;
}
.messenger-voice audio{display:none}
.messenger-voice-play{
  width:42px;height:42px;border:0;border-radius:999px;display:grid;place-items:center;
  font-size:17px;font-weight:950;cursor:pointer;background:#111;color:#fff;
}
.driver-msg.out .messenger-voice-play{background:#fff;color:#111}
.messenger-voice-main{min-width:0;display:grid;gap:5px}
.messenger-voice-range{width:100%;height:4px;accent-color:currentColor;cursor:pointer}
.messenger-voice-meta{
  display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:8px;opacity:.72;
}
.messenger-voice-speed{
  min-width:37px;height:28px;border:0;border-radius:999px;font-size:8px;font-weight:950;
  cursor:pointer;background:#ececef;color:#111;
}
.driver-msg.out .messenger-voice-speed{background:rgba(255,255,255,.15);color:inherit}
.voice-export-row{margin-top:7px;display:flex;justify-content:flex-end}

/* CRM_CAPTURE_MATCH_DRIVER_14 */
#crmDriverCaptureOverlay{position:fixed!important;inset:0!important;z-index:500!important;background:rgba(0,0,0,.52)!important;align-items:flex-end!important;justify-content:center!important}#crmDriverCaptureOverlay.open{display:flex!important}#crmDriverCaptureOverlay>div{width:min(620px,100%)!important;background:#fff!important;border-radius:22px 22px 0 0!important;padding:14px 12px 18px!important;box-shadow:0 -15px 50px rgba(0,0,0,.18)!important}#crmDriverCaptureTitle{font-size:18px!important;font-weight:900!important}#crmDriverCaptureStatus{font-size:9px!important;color:#777!important;display:block!important;margin-top:2px!important}#crmDriverCaptureClose{width:44px!important;height:44px!important;border:0!important;border-radius:14px!important;background:#f1f1f3!important;font-size:24px!important}#crmDriverCaptureVideo,#crmDriverCaptureImage{width:100%!important;max-height:48vh!important;object-fit:contain!important;background:#111!important;border-radius:16px!important}#crmDriverCaptureAudio{width:100%!important}#crmDriverCaptureVoice{min-height:180px!important;border-radius:16px!important;background:#f3f3f5!important}#crmDriverCaptureTranscriptPreview{margin-top:10px!important;padding:10px 11px!important;border-radius:13px!important;background:#f6f6f8!important;font-size:10px!important}#crmDriverCaptureRetake,#crmDriverCaptureMain,#crmDriverCaptureSend{min-height:48px!important;border-radius:14px!important;font-weight:900!important}#crmDriverCaptureRetake{background:#f1f1f3!important;color:#111!important;border:0!important}#crmDriverCaptureMain,#crmDriverCaptureSend{background:#111!important;color:#fff!important;border:0!important}


/* CRM_EXACT_DRIVER_CAPTURE_CSS_15 */
.driver-capture-overlay{position:fixed;inset:0;z-index:220;background:rgba(0,0,0,.52);display:none;align-items:flex-end;justify-content:center}
.driver-capture-overlay.open{display:flex}
.driver-capture-sheet{width:min(620px,100%);background:#fff;border-radius:24px 24px 0 0;padding:13px 12px calc(13px + var(--safe-bottom));box-shadow:0 -20px 60px rgba(0,0,0,.24)}
.driver-capture-head{display:flex;align-items:center;gap:10px}
.driver-capture-head>div{display:flex;flex-direction:column}
.driver-capture-head b{font-size:18px}
.driver-capture-head span{font-size:9px;color:var(--muted);margin-top:2px}
.driver-capture-head button{margin-left:auto;width:44px;height:44px;border:0;border-radius:14px;background:#f1f1f3;font-size:24px}
.driver-capture-stage{height:min(48vh,390px);margin-top:10px;border-radius:18px;background:#111;overflow:hidden;display:grid;place-items:center;position:relative}
.driver-capture-stage video,.driver-capture-stage img{width:100%;height:100%;object-fit:contain;display:none;background:#000}
.driver-capture-stage video.show,.driver-capture-stage img.show{display:block}
.driver-capture-stage audio{width:calc(100% - 28px);display:none}
.driver-capture-stage audio.show{display:block}
.driver-capture-voice{display:none;color:#fff;text-align:center}
.driver-capture-voice.show{display:grid;place-items:center;gap:12px}
.driver-capture-voice span{width:78px;height:78px;border-radius:50%;background:#d92d20;box-shadow:0 0 0 0 rgba(217,45,32,.3);animation:voicePulse 1.2s infinite}
.driver-capture-voice b{font-size:15px}
.driver-capture-actions{display:grid;grid-template-columns:1fr 1.25fr 1fr;gap:7px;margin-top:10px}
.driver-capture-actions button{min-height:50px;border-radius:14px;border:0;font-size:10px;font-weight:950}
.driver-capture-actions .secondary{background:#f1f1f3}
.driver-capture-actions .primary{background:#111;color:#fff}
.driver-capture-actions .primary.recording{background:#d92d20}
.driver-capture-actions .send{background:#16764b;color:#fff}
.driver-capture-actions .hidden{display:none}
.driver-capture-actions button:disabled{opacity:.35}
/* DRIVER_TRANSCRIPT_3B */
.driver-capture-transcript{margin-top:9px;border:1px solid #e1e1e5;border-radius:14px;background:#fafafa;padding:9px 10px;display:grid;gap:4px}
.driver-capture-transcript.hidden{display:none}
.driver-capture-transcript b{font-size:9px}
.driver-capture-transcript span{font-size:10px;line-height:1.4;color:#5f5f66}
.driver-capture-overlay{
  z-index:360!important;
  pointer-events:auto!important;
}
.driver-detail,
.driver-problem-sheet,
.driver-capture-sheet,
.driver-detail button,
.driver-problem-sheet button,
.driver-capture-sheet button{
  pointer-events:auto;
}


/* CRM_WHATSAPP_SCROLL_CSS_15 */
#driverChatMessages{overflow-anchor:auto!important;overscroll-behavior:contain!important}


/* CRM_CAPTURE_EXACT_DRIVER_16 */
.driver-capture-overlay{position:fixed;inset:0;z-index:220;background:rgba(0,0,0,.52);display:none;align-items:flex-end;justify-content:center}
.driver-capture-overlay.open{display:flex}
.driver-capture-sheet{width:min(620px,100%);background:#fff;border-radius:24px 24px 0 0;padding:13px 12px calc(13px + var(--safe-bottom));box-shadow:0 -20px 60px rgba(0,0,0,.24)}
.driver-capture-head{display:flex;align-items:center;gap:10px}
.driver-capture-head>div{display:flex;flex-direction:column}
.driver-capture-head b{font-size:18px}
.driver-capture-head span{font-size:9px;color:var(--muted);margin-top:2px}
.driver-capture-head button{margin-left:auto;width:44px;height:44px;border:0;border-radius:14px;background:#f1f1f3;font-size:24px}
.driver-capture-stage{height:min(48vh,390px);margin-top:10px;border-radius:18px;background:#111;overflow:hidden;display:grid;place-items:center;position:relative}
.driver-capture-stage video,.driver-capture-stage img{width:100%;height:100%;object-fit:contain;display:none;background:#000}
.driver-capture-stage video.show,.driver-capture-stage img.show{display:block}
.driver-capture-stage audio{width:calc(100% - 28px);display:none}
.driver-capture-stage audio.show{display:block}
.driver-capture-voice{display:none;color:#fff;text-align:center}
.driver-capture-voice.show{display:grid;place-items:center;gap:12px}
.driver-capture-voice span{width:78px;height:78px;border-radius:50%;background:#d92d20;box-shadow:0 0 0 0 rgba(217,45,32,.3);animation:voicePulse 1.2s infinite}
.driver-capture-voice b{font-size:15px}
.driver-capture-actions{display:grid;grid-template-columns:1fr 1.25fr 1fr;gap:7px;margin-top:10px}
.driver-capture-actions button{min-height:50px;border-radius:14px;border:0;font-size:10px;font-weight:950}
.driver-capture-actions .secondary{background:#f1f1f3}
.driver-capture-actions .primary{background:#111;color:#fff}
.driver-capture-actions .primary.recording{background:#d92d20}
.driver-capture-actions .send{background:#16764b;color:#fff}
.driver-capture-actions .hidden{display:none}
.driver-capture-actions button:disabled{opacity:.35}
/* DRIVER_TRANSCRIPT_3B */
.driver-capture-transcript{margin-top:9px;border:1px solid #e1e1e5;border-radius:14px;background:#fafafa;padding:9px 10px;display:grid;gap:4px}
.driver-capture-transcript.hidden{display:none}
.driver-capture-transcript b{font-size:9px}
.driver-capture-transcript span{font-size:10px;line-height:1.4;color:#5f5f66}
.driver-capture-overlay{
  z-index:360!important;
  pointer-events:auto!important;
}
.driver-detail,
.driver-problem-sheet,
.driver-capture-sheet,
.driver-detail button,
.driver-problem-sheet button,
.driver-capture-sheet button{
  pointer-events:auto;
}


/* CRM_DRIVER_CHAT_CSS_17 */
.driver-chat-screen{position:fixed;inset:0;z-index:180;background:#f5f5f7;display:none}
.driver-chat-screen.open{display:block}
.driver-chat-mobile{height:100dvh;max-width:620px;margin:0 auto;display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.driver-chat-mobile-head{padding:calc(9px + var(--safe-top)) 10px 9px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:9px}
.driver-chat-mobile-head button{width:44px;height:44px;border:0;border-radius:13px;background:#f1f1f3;font-size:26px}
.driver-chat-mobile-head>div{display:flex;flex-direction:column}
.driver-chat-mobile-head b{font-size:15px}
.driver-chat-mobile-head span{font-size:9px;color:var(--muted)}
.driver-chat-mobile-head span.online{color:#16764b}
.driver-chat-mobile-messages{min-height:0;overflow:auto;padding:10px;display:flex;flex-direction:column;gap:8px}
.driver-mobile-msg{max-width:86%;display:flex;flex-direction:column;gap:3px}
.driver-mobile-msg.in{align-self:flex-start}
.driver-mobile-msg.out{align-self:flex-end}
.driver-mobile-bubble{background:#fff;border:1px solid #e1e1e5;border-radius:14px 14px 14px 5px;padding:9px 10px;font-size:11px;line-height:1.35;white-space:pre-wrap}
.driver-mobile-msg.out .driver-mobile-bubble{background:#111;color:#fff;border-color:#111;border-radius:14px 14px 5px 14px}
.driver-mobile-meta{font-size:8px;color:#8a8a91;padding:0 3px;display:flex;gap:5px}
.driver-mobile-msg.out .driver-mobile-meta{justify-content:flex-end}
.driver-mobile-ticks{font-weight:950;letter-spacing:-2px;color:#a0a0a6}
.driver-mobile-ticks.read{color:#111}
.driver-chat-mobile-form{padding:9px 10px calc(9px + var(--safe-bottom));background:#fff;border-top:1px solid var(--line);display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px}
.driver-chat-mobile-form textarea{min-height:46px;max-height:100px;resize:none;border:1px solid #d9d9de;border-radius:14px;padding:11px;font:11px/1.35 inherit}
.driver-chat-mobile-form button{height:46px;border:0;border-radius:14px;background:#111;color:#fff;font-size:9px;font-weight:950;padding:0 14px}
.driver-chat-mobile-context{margin:7px 9px 0;padding:8px 9px;background:#eef4fb;border:1px solid #d8e5f3;border-radius:11px;display:flex;align-items:center;gap:6px;font-size:9px}
.driver-chat-mobile-context.hidden{display:none}
.driver-chat-mobile-context button{margin-left:auto;border:0;background:transparent;font-size:16px}
.driver-mobile-msg.out .driver-mobile-orderref{background:rgba(255,255,255,.14);color:#fff}
/* DRIVER_MEDIA_3A */
.driver-chat-mobile{grid-template-rows:auto auto minmax(0,1fr) auto auto}
.driver-media-actions{background:#fff;padding:7px 10px 0;display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
.driver-media-actions button{height:44px;border:1px solid #dedee3;border-radius:13px;background:#fff;font-size:10px;font-weight:950}
.driver-media-actions button:active{background:#f1f1f3}
/* CHAT_PROBLEMS_SPLIT_2 */
.driver-chat-mobile{grid-template-rows:auto auto minmax(0,1fr) auto auto}
.driver-mobile-chat-content>.driver-chat-mobile-messages,.driver-mobile-chat-content>.driver-mobile-problems{height:100%;overflow:auto}
.driver-mobile-problems.hidden,.driver-chat-mobile-messages.hidden{display:none}
.driver-chat-mobile-form.hidden,.driver-media-actions.hidden,.driver-chat-mobile-context.view-hidden{display:none}
/* Chat/Probleme liegen oberhalb der festen Bottom-Navigation. */
.driver-chat-screen{
  bottom:var(--driver-bottom-nav-h)!important;
}
.driver-chat-mobile{
  height:calc(100dvh - var(--driver-bottom-nav-h))!important;
}
/* MEDIA_RUNTIME_EXPORT_8 */
.driver-chat-screen.open{
  overflow:hidden!important;
}
.driver-chat-mobile{
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
  display:grid!important;
  grid-template-rows:auto auto minmax(0,1fr) auto auto!important;
}
.driver-chat-mobile-messages{
  min-height:0!important;
  overflow-y:auto!important;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}
.driver-media-actions,
.driver-chat-mobile-form{
  position:relative;
  z-index:4;
  flex:none;
  background:#fff;
}
.driver-media-actions{
  border-top:1px solid rgba(0,0,0,.06);
}
.driver-chat-mobile-form{
  border-top:1px solid rgba(0,0,0,.06);
}
/* VIDEO_VOICE_STICKY_9 */

/* Nicht mehr über implizite Grid-Zeilen: Kopf/Context bleiben oben,
   nur die Nachrichtenfläche wächst und scrollt. */
.driver-chat-mobile{
  display:flex!important;
  flex-direction:column!important;
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
}
.driver-chat-mobile-head,
.driver-chat-mobile-tabs,
.driver-mobile-chat-tabs,
.driver-chat-mobile-context,
.driver-media-actions,
.driver-chat-mobile-form{
  flex:0 0 auto!important;
}
.driver-chat-mobile > :has(#driverChatMobileMessages){
  flex:1 1 auto!important;
  min-height:0!important;
  overflow:hidden!important;
}
.driver-media-actions,
.driver-chat-mobile-form{
  position:relative!important;
  left:auto!important;
  right:auto!important;
  bottom:auto!important;
  z-index:30!important;
  width:100%!important;
  background:#fff!important;
}
.driver-media-actions{
  border-top:1px solid #e5e5e8!important;
}
.driver-chat-mobile-form{
  border-top:1px solid #e5e5e8!important;
  padding-bottom:max(9px,env(safe-area-inset-bottom))!important;
}
/* Messenger-artige Voice */
.driver-mobile-bubble:has(.messenger-voice){
  min-width:285px;
  padding:8px 9px!important;
}
.driver-mobile-msg.in .messenger-voice-play{
  background:#111;
  color:#fff;
}
.driver-mobile-msg.in .messenger-voice-speed{
  background:#ececef;
  color:#111;
}
/* CHAT_BOTTOM_LOCK_13 */
.driver-chat-screen{overflow:hidden!important}
.driver-chat-mobile{
  height:100%!important;min-height:0!important;overflow:hidden!important;
  display:flex!important;flex-direction:column!important;
}
.driver-chat-mobile-head,#driverChatMobileContext,.driver-media-actions,#driverChatMobileForm{
  flex:0 0 auto!important;
}
.driver-media-actions,#driverChatMobileForm{
  position:relative!important;inset:auto!important;z-index:30!important;background:#fff!important;
}


/* CRM_CHAT_SCROLL_REPAIR_18 */
#driverChatOverlay.overlay{
  overflow:hidden;
}
#driverChatOverlay .driver-chat-modal{
  display:grid !important;
  grid-template-rows:auto auto auto minmax(0,1fr) auto auto !important;
  min-height:0 !important;
  overflow:hidden !important;
}
#driverChatOverlay .driver-chat-content{
  min-height:0 !important;
  height:100% !important;
  overflow:hidden !important;
  position:relative;
}
#driverChatOverlay #driverChatMessages{
  min-height:0 !important;
  height:100% !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-gutter:stable;
}
#driverChatOverlay #driverChatProblems{
  min-height:0;
  height:100%;
  overflow-y:auto;
  overflow-x:hidden;
}
#driverChatOverlay .driver-chat-mobile-head{
  position:relative !important;
  inset:auto !important;
}
#driverChatOverlay .driver-chat-mobile-form{
  position:relative !important;
  inset:auto !important;
}


/* CRM_CHAT_CLEAN_22 */
#driverChatOverlay{
  align-items:center!important;
  justify-content:center!important;
  padding:18px!important;
  box-sizing:border-box!important;
}
#driverChatOverlay .driver-chat-modal{
  width:min(860px,calc(100vw - 36px))!important;
  height:min(780px,calc(100dvh - 36px))!important;
  max-width:860px!important;
  max-height:calc(100dvh - 36px)!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  border-radius:22px!important;
  background:#fff!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:auto auto auto minmax(0,1fr) auto auto!important;
}
#driverChatOverlay .driver-chat-head{
  min-width:0!important;
  width:100%!important;
  box-sizing:border-box!important;
  padding:10px 14px!important;
  background:#fff!important;
  border-bottom:1px solid #e4e4e8!important;
}
#driverChatOverlay .driver-chat-tabs{
  width:100%!important;
  box-sizing:border-box!important;
  padding:10px 14px!important;
  gap:8px!important;
  background:#fff!important;
}
#driverChatOverlay .driver-chat-tabs button{
  height:42px!important;
  border-radius:12px!important;
  font-size:11px!important;
}
#driverChatOverlay .driver-chat-order-context{
  width:auto!important;
  box-sizing:border-box!important;
}
#driverChatOverlay .driver-chat-content{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  min-height:0!important;
  height:100%!important;
  overflow:hidden!important;
  position:relative!important;
  background:#f5f5f7!important;
}
#driverChatOverlay #driverChatMessages,
#driverChatOverlay #driverChatProblems{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  height:100%!important;
  min-height:0!important;
  box-sizing:border-box!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
}
#driverChatOverlay #driverChatMessages{
  padding:12px 14px!important;
  display:flex!important;
  flex-direction:column!important;
  gap:9px!important;
}
#driverChatOverlay #driverChatMessages.hidden,
#driverChatOverlay #driverChatProblems.hidden{
  display:none!important;
}
#driverChatOverlay .driver-msg{
  width:auto!important;
  max-width:min(76%,620px)!important;
  flex:0 0 auto!important;
}
#driverChatOverlay .driver-msg-bubble{
  max-width:100%!important;
  box-sizing:border-box!important;
}
#driverChatOverlay .wa-video-card,
#driverChatOverlay .wa-photo-card,
#driverChatOverlay .wa-voice-card,
#driverChatOverlay .wa-inline-media,
#driverChatOverlay .driver-chat-media{
  max-width:100%!important;
}
#driverChatOverlay .wa-video-card img,
#driverChatOverlay .wa-video-card video,
#driverChatOverlay .driver-chat-media video,
#driverChatOverlay .driver-chat-media img{
  max-width:100%!important;
  height:auto!important;
}
#driverChatOverlay .crm-driver-media-actions{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
  width:100%!important;
  box-sizing:border-box!important;
  padding:9px 12px!important;
  background:#fff!important;
  border-top:1px solid #e4e4e8!important;
}
#driverChatOverlay .crm-driver-media-actions.hidden{
  display:none!important;
}
#driverChatOverlay .crm-driver-media-actions button{
  min-width:0!important;
  height:44px!important;
  border:1px solid #dedee3!important;
  border-radius:12px!important;
  background:#f6f6f8!important;
  color:#111!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  font:inherit!important;
  cursor:pointer!important;
}
#driverChatOverlay .crm-driver-media-actions button span{
  font-size:17px!important;
  line-height:1!important;
}
#driverChatOverlay .crm-driver-media-actions button b{
  font-size:10px!important;
  font-weight:900!important;
}
#driverChatOverlay .driver-chat-form{
  width:100%!important;
  box-sizing:border-box!important;
  padding:9px 12px 12px!important;
  background:#fff!important;
  border-top:1px solid #e4e4e8!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:8px!important;
}
#driverChatOverlay .driver-chat-form.hidden{
  display:none!important;
}
#driverChatOverlay .driver-chat-form textarea{
  min-width:0!important;
  min-height:46px!important;
  max-height:110px!important;
  border-radius:14px!important;
  font-size:12px!important;
}
#driverChatOverlay .driver-chat-form button[type="submit"]{
  height:46px!important;
  border-radius:13px!important;
  padding:0 18px!important;
}
@media(max-width:700px){
  #driverChatOverlay{padding:0!important}
  #driverChatOverlay .driver-chat-modal{
    width:100vw!important;
    height:100dvh!important;
    max-width:none!important;
    max-height:none!important;
    border-radius:0!important;
  }
  #driverChatOverlay .driver-msg{max-width:86%!important}
}


/* CRM_ACTIONS_PERSIST_23 */
#driverChatOverlay .driver-chat-head{grid-row:1!important}
#driverChatOverlay .driver-chat-tabs{grid-row:2!important}
#driverChatOverlay .driver-chat-order-context{grid-row:3!important}
#driverChatOverlay .driver-chat-content{grid-row:4!important}
#driverChatOverlay #crmPersistentMediaActions23{
  grid-row:5!important;
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
  width:100%!important;
  min-height:62px!important;
  box-sizing:border-box!important;
  padding:9px 12px!important;
  background:#fff!important;
  border-top:1px solid #e4e4e8!important;
  position:relative!important;
  z-index:4!important;
}
#driverChatOverlay #crmPersistentMediaActions23.hidden{
  display:none!important;
}
#driverChatOverlay #crmPersistentMediaActions23 button{
  min-width:0!important;
  height:44px!important;
  border:1px solid #dedee3!important;
  border-radius:12px!important;
  background:#f6f6f8!important;
  color:#111!important;
  font-size:10px!important;
  font-weight:900!important;
  cursor:pointer!important;
}
#driverChatOverlay #driverChatForm{
  grid-row:6!important;
  position:relative!important;
  z-index:5!important;
}


/* CRM_CAPTURE_DRIVER_PARITY_24 */
@keyframes voicePulse{50%{box-shadow:0 0 0 16px rgba(217,45,32,0)}}
#crmDriverCaptureOverlay.driver-capture-overlay{position:fixed !important;inset:0 !important;z-index:220 !important;background:rgba(0,0,0,.52) !important;display:none !important;align-items:flex-end !important;justify-content:center !important;}
#crmDriverCaptureOverlay.driver-capture-overlay.open{display:flex !important;}
#crmDriverCaptureOverlay .driver-capture-sheet{width:min(620px,100%) !important;background:#fff !important;border-radius:24px 24px 0 0 !important;padding:13px 12px calc(13px + var(--safe-bottom)) !important;box-shadow:0 -20px 60px rgba(0,0,0,.24) !important;}
#crmDriverCaptureOverlay .driver-capture-head{display:flex !important;align-items:center !important;gap:10px !important;}
#crmDriverCaptureOverlay .driver-capture-head>div{display:flex !important;flex-direction:column !important;}
#crmDriverCaptureOverlay .driver-capture-head b{font-size:18px !important;}
#crmDriverCaptureOverlay .driver-capture-head span{font-size:9px !important;color:var(--muted) !important;margin-top:2px !important;}
#crmDriverCaptureOverlay .driver-capture-head button{margin-left:auto !important;width:44px !important;height:44px !important;border:0 !important;border-radius:14px !important;background:#f1f1f3 !important;font-size:24px !important;}
#crmDriverCaptureOverlay .driver-capture-stage{height:min(48vh,390px) !important;margin-top:10px !important;border-radius:18px !important;background:#111 !important;overflow:hidden !important;display:grid !important;place-items:center !important;position:relative !important;}
#crmDriverCaptureOverlay .driver-capture-stage video,#crmDriverCaptureOverlay .driver-capture-stage img{width:100% !important;height:100% !important;object-fit:contain !important;display:none !important;background:#000 !important;}
#crmDriverCaptureOverlay .driver-capture-stage video.show,#crmDriverCaptureOverlay .driver-capture-stage img.show{display:block !important;}
#crmDriverCaptureOverlay .driver-capture-stage audio{width:calc(100% - 28px) !important;display:none !important;}
#crmDriverCaptureOverlay .driver-capture-stage audio.show{display:block !important;}
#crmDriverCaptureOverlay .driver-capture-voice{display:none !important;color:#fff !important;text-align:center !important;}
#crmDriverCaptureOverlay .driver-capture-voice.show{display:grid !important;place-items:center !important;gap:12px !important;}
#crmDriverCaptureOverlay .driver-capture-voice span{width:78px !important;height:78px !important;border-radius:50% !important;background:#d92d20 !important;box-shadow:0 0 0 0 rgba(217,45,32,.3) !important;animation:voicePulse 1.2s infinite !important;}
#crmDriverCaptureOverlay .driver-capture-voice b{font-size:15px !important;}
#crmDriverCaptureOverlay .driver-capture-actions{display:grid !important;grid-template-columns:1fr 1.25fr 1fr !important;gap:7px !important;margin-top:10px !important;}
#crmDriverCaptureOverlay .driver-capture-actions button{min-height:50px !important;border-radius:14px !important;border:0 !important;font-size:10px !important;font-weight:950 !important;}
#crmDriverCaptureOverlay .driver-capture-actions .secondary{background:#f1f1f3 !important;}
#crmDriverCaptureOverlay .driver-capture-actions .primary{background:#111 !important;color:#fff !important;}
#crmDriverCaptureOverlay .driver-capture-actions .primary.recording{background:#d92d20 !important;}
#crmDriverCaptureOverlay .driver-capture-actions .send{background:#16764b !important;color:#fff !important;}
#crmDriverCaptureOverlay .driver-capture-actions .hidden{display:none !important;}
#crmDriverCaptureOverlay .driver-capture-actions button:disabled{opacity:.35 !important;}
#crmDriverCaptureOverlay /* DRIVER_TRANSCRIPT_3B */
.driver-capture-transcript{margin-top:9px !important;border:1px solid #e1e1e5 !important;border-radius:14px !important;background:#fafafa !important;padding:9px 10px !important;display:grid !important;gap:4px !important;}
#crmDriverCaptureOverlay .driver-capture-transcript.hidden{display:none !important;}
#crmDriverCaptureOverlay .driver-capture-transcript b{font-size:9px !important;}
#crmDriverCaptureOverlay .driver-capture-transcript span{font-size:10px !important;line-height:1.4 !important;color:#5f5f66 !important;}
#crmDriverCaptureOverlay.driver-capture-overlay{z-index:360!important;pointer-events:auto!important;}
#crmDriverCaptureOverlay .driver-detail,#crmDriverCaptureOverlay .driver-problem-sheet,#crmDriverCaptureOverlay .driver-capture-sheet,#crmDriverCaptureOverlay .driver-detail button,#crmDriverCaptureOverlay .driver-problem-sheet button,#crmDriverCaptureOverlay .driver-capture-sheet button{pointer-events:auto !important;}
/* Nur die Position weicht absichtlich vom Fahrer-Bottom-Sheet ab:
   Im CRM öffnet dieselbe Komponente zentriert im Viewport. */
#crmDriverCaptureOverlay.driver-capture-overlay{
  position:fixed!important;
  inset:0!important;
  z-index:5000!important;
  display:none!important;
  align-items:center!important;
  justify-content:center!important;
  box-sizing:border-box!important;
  padding:16px!important;
  overflow:auto!important;
  overscroll-behavior:contain!important;
}
#crmDriverCaptureOverlay.driver-capture-overlay.open{
  display:flex!important;
}
#crmDriverCaptureOverlay .driver-capture-sheet{
  width:min(620px,calc(100vw - 32px))!important;
  max-width:620px!important;
  max-height:calc(100dvh - 32px)!important;
  margin:auto!important;
  box-sizing:border-box!important;
  overflow:auto!important;
}
#crmDriverCaptureOverlay .driver-capture-stage{
  height:min(48vh,390px)!important;
}
@media(max-width:680px){
  #crmDriverCaptureOverlay.driver-capture-overlay{
    padding:12px!important;
  }
  #crmDriverCaptureOverlay .driver-capture-sheet{
    width:min(620px,calc(100vw - 24px))!important;
    max-height:calc(100dvh - 24px)!important;
  }
}
/* END_CRM_CAPTURE_DRIVER_PARITY_24 */



/* CRM_CAPTURE_FINAL_25
   Kanonische Fahreroptik im CRM.
   Einzige absichtliche Abweichung: Overlay ist viewport-zentriert. */
html body > #crmDriverCaptureOverlay.driver-capture-overlay{
  --safe-bottom:0px!important;
  position:fixed!important;
  inset:0!important;
  z-index:5000!important;
  display:none!important;
  align-items:center!important;
  justify-content:center!important;
  box-sizing:border-box!important;
  padding:16px!important;
  background:rgba(0,0,0,.52)!important;
  overflow:auto!important;
}
html body > #crmDriverCaptureOverlay.driver-capture-overlay.open{
  display:flex!important;
}
html body > #crmDriverCaptureOverlay.driver-capture-overlay > .driver-capture-sheet{
  width:min(620px,100%)!important;
  max-width:620px!important;
  background:#fff!important;
  border-radius:24px 24px 0 0!important;
  padding:13px 12px calc(13px + var(--safe-bottom,0px))!important;
  box-shadow:0 -20px 60px rgba(0,0,0,.24)!important;
  margin:auto!important;
  box-sizing:border-box!important;
  max-height:calc(100dvh - 32px)!important;
  overflow:auto!important;
}
html body > #crmDriverCaptureOverlay .driver-capture-head{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
}
html body > #crmDriverCaptureOverlay .driver-capture-head>div{
  display:flex!important;
  flex-direction:column!important;
}
html body > #crmDriverCaptureOverlay .driver-capture-head b{font-size:18px!important}
html body > #crmDriverCaptureOverlay .driver-capture-head span{
  font-size:9px!important;color:var(--muted)!important;margin-top:2px!important
}
html body > #crmDriverCaptureOverlay .driver-capture-head button{
  margin-left:auto!important;
  width:44px!important;height:44px!important;
  border:0!important;border-radius:14px!important;
  background:#f1f1f3!important;font-size:24px!important;
}
html body > #crmDriverCaptureOverlay .driver-capture-stage{
  height:min(48vh,390px)!important;
  margin-top:10px!important;
  border-radius:18px!important;
  background:#111!important;
  overflow:hidden!important;
  display:grid!important;
  place-items:center!important;
  position:relative!important;
}
html body > #crmDriverCaptureOverlay .driver-capture-stage video,
html body > #crmDriverCaptureOverlay .driver-capture-stage img{
  width:100%!important;height:100%!important;
  object-fit:contain!important;display:none!important;background:#000!important;
}
html body > #crmDriverCaptureOverlay .driver-capture-stage video.show,
html body > #crmDriverCaptureOverlay .driver-capture-stage img.show{display:block!important}
html body > #crmDriverCaptureOverlay .driver-capture-stage audio{
  width:calc(100% - 28px)!important;display:none!important
}
html body > #crmDriverCaptureOverlay .driver-capture-stage audio.show{display:block!important}
html body > #crmDriverCaptureOverlay .driver-capture-voice{
  display:none!important;color:#fff!important;text-align:center!important
}
html body > #crmDriverCaptureOverlay .driver-capture-voice.show{
  display:grid!important;place-items:center!important;gap:12px!important
}
html body > #crmDriverCaptureOverlay .driver-capture-voice span{
  width:78px!important;height:78px!important;border-radius:50%!important;
  background:#d92d20!important;
  box-shadow:0 0 0 0 rgba(217,45,32,.3)!important;
  animation:voicePulse 1.2s infinite!important;
}
html body > #crmDriverCaptureOverlay .driver-capture-voice b{font-size:15px!important}
html body > #crmDriverCaptureOverlay .driver-capture-transcript{
  margin-top:9px!important;
  border:1px solid #e1e1e5!important;
  border-radius:14px!important;
  background:#fafafa!important;
  padding:9px 10px!important;
  display:grid!important;
  gap:4px!important;
}
html body > #crmDriverCaptureOverlay .driver-capture-transcript.hidden{display:none!important}
html body > #crmDriverCaptureOverlay .driver-capture-transcript b{font-size:9px!important}
html body > #crmDriverCaptureOverlay .driver-capture-transcript span{
  font-size:10px!important;color:var(--muted)!important;line-height:1.35!important
}
html body > #crmDriverCaptureOverlay .driver-capture-actions{
  display:grid!important;
  grid-template-columns:1fr 1.25fr 1fr!important;
  gap:7px!important;
  margin-top:10px!important;
}
html body > #crmDriverCaptureOverlay .driver-capture-actions button{
  min-height:50px!important;
  border-radius:14px!important;
  border:0!important;
  font-size:10px!important;
  font-weight:950!important;
}
html body > #crmDriverCaptureOverlay .driver-capture-actions .secondary{background:#f1f1f3!important}
html body > #crmDriverCaptureOverlay .driver-capture-actions .primary{background:#111!important;color:#fff!important}
html body > #crmDriverCaptureOverlay .driver-capture-actions .primary.recording{background:#d92d20!important}
html body > #crmDriverCaptureOverlay .driver-capture-actions .send{background:#16764b!important;color:#fff!important}
html body > #crmDriverCaptureOverlay .driver-capture-actions .hidden{display:none!important}
@media(max-width:680px){
  html body > #crmDriverCaptureOverlay.driver-capture-overlay{padding:12px!important}
  html body > #crmDriverCaptureOverlay.driver-capture-overlay > .driver-capture-sheet{
    width:min(620px,100%)!important;
    max-height:calc(100dvh - 24px)!important;
  }
}
/* END_CRM_CAPTURE_FINAL_25 */


/* CRM_VOICE_CLEAN_26
   CRM Voice-Container exakt wie Fahrer: unsichtbarer Layout-Container,
   sichtbar sind nur roter Punkt + Text. */
html body > #crmDriverCaptureOverlay .driver-capture-voice{
  background:transparent!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  border-radius:0!important;
  padding:0!important;
  margin:0!important;
  width:auto!important;
  height:auto!important;
  min-width:0!important;
  min-height:0!important;
  max-width:none!important;
  max-height:none!important;
}
html body > #crmDriverCaptureOverlay .driver-capture-voice.show{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  border-radius:0!important;
  padding:0!important;
  margin:0!important;
  width:auto!important;
  height:auto!important;
  min-width:0!important;
  min-height:0!important;
}


/* SERVE_LIVE_PREVIEW_IFRAMES_27 */
.live-phone-screen{
  position:relative!important;
  display:block!important;
  padding:0!important;
  overflow:hidden!important;
}
.live-preview-frame{
  position:absolute;
  top:0;left:0;
  width:440px;height:956px;
  border:0;margin:0;padding:0;
  background:#f5f5f7;
  transform-origin:0 0;
  opacity:0;
  transition:opacity .14s ease;
}
.live-phone-screen.live-preview-loaded .live-preview-frame{opacity:1}
.live-preview-loading{
  position:absolute;inset:0;
  display:grid;place-items:center;
  padding:28px;text-align:center;
  font-size:10px;font-weight:750;line-height:1.4;
  color:#8e8e93;background:#f5f5f7;
  z-index:1;pointer-events:none;
}
.live-phone-screen.live-preview-loaded .live-preview-loading{display:none}


/* CUSTOMER_EXPORT_UI_FIX_20260920 */

/* Speisekarte + Stammkunden:
   Exportleiste bekommt eine eigene volle Zeile. */
#view-menu .panel-head,
#view-loyalty .panel-head{
  flex-wrap:wrap;
}

#view-menu .panel-head > .export-buttons[data-static-export-group="menu"],
#view-loyalty .panel-head > .export-buttons[data-static-export-group="customers"]{
  order:20;
  flex:0 0 100%;
  width:100%;
  max-width:none;
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:8px;
  overflow:visible;
  overflow-x:visible;
  overflow-y:visible;
  margin-top:10px;
  padding-bottom:0;
}

#view-menu .panel-head > .export-buttons[data-static-export-group="menu"] .btn,
#view-loyalty .panel-head > .export-buttons[data-static-export-group="customers"] .btn{
  width:100%;
  min-width:0;
  white-space:normal;
  text-align:center;
}

/* Einzelner Stammkunde im Modal */
.customer-detail-export-buttons{
  width:100%;
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:8px;
  margin:0 0 16px 0;
  overflow:visible;
}

.customer-detail-export-buttons .btn{
  width:100%;
  min-width:0;
  white-space:normal;
  text-align:center;
}

/* Kleinere Fenster: umbrechen statt scrollen */
@media(max-width:1100px){
  #view-menu .panel-head > .export-buttons[data-static-export-group="menu"],
  #view-loyalty .panel-head > .export-buttons[data-static-export-group="customers"],
  .customer-detail-export-buttons{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media(max-width:650px){
  #view-menu .panel-head > .export-buttons[data-static-export-group="menu"],
  #view-loyalty .panel-head > .export-buttons[data-static-export-group="customers"],
  .customer-detail-export-buttons{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}


/* DRIVER_SETTINGS_ONLY_20260920 */


.driver-settings-card .setting-title-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}

.driver-settings-list{
  margin-top:12px;
  display:grid;
  gap:8px;
  flex:1 1 auto;
  min-height:0;
  max-height:84px;
  overflow:auto;
  padding-right:2px;
}

.driver-settings-empty{
  color:#777;
  font-size:10px;
  padding:2px 0;
}

.driver-settings-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  padding:8px 10px;
  border:1px solid #e2e2e7;
  border-radius:14px;
  background:#fff;
}

.driver-settings-row.archived{
  background:#f6f6f8;
  opacity:.82;
}

.driver-settings-main{
  min-width:0;
  display:grid;
  gap:2px;
}

.driver-settings-main b{
  font-size:11px;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.driver-settings-meta{
  font-size:8px;
  color:#777;
  line-height:1.35;
}

.driver-settings-online{
  color:#168346;
  font-weight:850;
}

.driver-settings-offline{
  color:#888;
  font-weight:850;
}

.driver-settings-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:6px;
}

.driver-settings-actions button{
  border:1px solid #dedee3;
  background:#fff;
  border-radius:10px;
  padding:6px 8px;
  font-size:8px;
  font-weight:850;
  cursor:pointer;
  white-space:nowrap;
}

.driver-settings-actions .danger{
  color:#b42318;
}

.driver-settings-modal{
  width:min(460px,calc(100vw - 24px));
}

.driver-settings-checkbox{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 1px;
  font-size:10px;
  font-weight:750;
}


/* DRIVER_SETTINGS_LAYOUT_FIX_20260920 */
#view-settings .driver-settings-card{
  display:flex;
  flex-direction:column;
  overflow:hidden;
  min-width:0;
}

#view-settings .driver-settings-list{
  flex:1 1 auto;
  min-height:0;
  max-height:none;
  overflow:auto;
  margin-top:9px;
  padding-right:2px;
}

#view-settings .driver-settings-row{
  padding:6px 8px;
  border-radius:11px;
  gap:7px;
}

#view-settings .driver-settings-main b{
  font-size:10px;
}

#view-settings .driver-settings-meta{
  font-size:7.5px;
  line-height:1.25;
}

#view-settings .driver-settings-actions{
  gap:4px;
}

#view-settings .driver-settings-actions button{
  padding:5px 7px;
  font-size:7.5px;
}


/* EMPLOYEE_FILE_SYSTEM_20260920 */

.employee-driver-tools{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  align-items:center;
  margin-top:8px;
}

.employee-driver-search{
  display:flex;
  align-items:center;
  gap:6px;
  border:1px solid #dedee3;
  border-radius:11px;
  background:#f5f5f7;
  padding:0 9px;
  min-width:0;
}

.employee-driver-search span{
  color:#85858c;
  font-size:12px;
}

.employee-driver-search input{
  width:100%;
  min-width:0;
  border:0;
  outline:0;
  background:transparent;
  padding:7px 0;
  font:inherit;
  font-size:8.5px;
}

.employee-driver-filters{
  display:flex;
  gap:3px;
  flex-wrap:wrap;
}

.employee-driver-filters button,
.employee-filter-group button{
  border:0;
  border-radius:9px;
  background:#eeeef1;
  color:#606067;
  font-size:7.5px;
  font-weight:800;
  padding:6px 8px;
  cursor:pointer;
}

.employee-driver-filters button.active,
.employee-filter-group button.active{
  background:#111;
  color:#fff;
}

.employee-driver-row{
  cursor:pointer;
}

.employee-driver-row:hover{
  background:#fafafa;
}

.employee-driver-empty,
.employee-empty-state{
  color:#777;
  font-size:9px;
  padding:10px 2px;
}

.employee-file-overlay{
  z-index:10000;
}

.employee-file-modal{
  width:min(1180px,calc(100vw - 34px));
  height:min(820px,calc(100dvh - 34px));
  max-height:none;
  padding:0;
  overflow:hidden;
  display:grid;
  grid-template-rows:auto auto minmax(0,1fr);
}

.employee-file-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  padding:22px 24px 15px;
  border-bottom:1px solid #e5e5e8;
}

.employee-file-title{
  display:flex;
  gap:12px;
  align-items:flex-start;
}

.employee-file-close{
  width:35px;
  height:35px;
  border:0;
  border-radius:999px;
  background:#f0f0f2;
  font-size:22px;
  cursor:pointer;
  flex:0 0 auto;
}

.employee-file-eyebrow{
  color:#888;
  font-size:9px;
  font-weight:800;
  margin-bottom:3px;
}

.employee-file-title h2{
  margin:0;
  font-size:25px;
  line-height:1.05;
}

.employee-file-status{
  margin-top:5px;
  color:#777;
  font-size:10px;
}

.employee-file-status .online{
  color:#17864c;
  font-weight:850;
}

.employee-file-status .offline{
  color:#888;
  font-weight:850;
}

.employee-export-actions{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.employee-export-actions button{
  border:1px solid #dedee3;
  background:#fff;
  border-radius:10px;
  padding:8px 10px;
  font-size:8.5px;
  font-weight:850;
  cursor:pointer;
}

.employee-file-tabs{
  display:flex;
  gap:4px;
  padding:10px 24px;
  overflow-x:auto;
  border-bottom:1px solid #e5e5e8;
  background:#fafafa;
}

.employee-file-tabs button{
  border:0;
  border-radius:10px;
  padding:8px 10px;
  background:transparent;
  font-size:9px;
  font-weight:850;
  white-space:nowrap;
  cursor:pointer;
}

.employee-file-tabs button.active{
  background:#111;
  color:#fff;
}

.employee-file-body{
  overflow:auto;
  padding:20px 24px 26px;
}

.employee-summary-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-bottom:16px;
}

.employee-summary{
  background:#f4f4f6;
  border-radius:14px;
  padding:14px;
  display:grid;
  gap:5px;
}

.employee-summary small{
  color:#777;
  font-size:8px;
  font-weight:750;
}

.employee-summary b{
  font-size:18px;
}

.employee-overview-columns{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.employee-section-card{
  border:1px solid #e2e2e6;
  border-radius:16px;
  padding:15px;
  min-width:0;
}

.employee-section-card h3{
  margin:0 0 10px;
  font-size:12px;
}

.employee-overview-row{
  display:grid;
  grid-template-columns:150px minmax(0,1fr);
  gap:10px;
  padding:7px 0;
  border-bottom:1px solid #eeeef1;
}

.employee-overview-row:last-child{
  border-bottom:0;
}

.employee-overview-row span{
  color:#777;
  font-size:9px;
}

.employee-overview-row b{
  font-size:9px;
  overflow-wrap:anywhere;
}

.employee-note{
  color:#555;
  font-size:9px;
  line-height:1.55;
  white-space:pre-wrap;
}

.employee-edit-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.employee-field{
  display:grid;
  gap:5px;
}

.employee-field-wide{
  grid-column:1/-1;
}

.employee-field span{
  color:#666;
  font-size:8.5px;
  font-weight:800;
}

.employee-field input,
.employee-field select,
.employee-field textarea,
.employee-inline-form input,
.employee-inline-form select{
  width:100%;
  box-sizing:border-box;
  border:1px solid #dedee3;
  background:#f5f5f7;
  border-radius:11px;
  padding:10px 11px;
  outline:0;
  font:inherit;
  font-size:10px;
}

.employee-field textarea{
  min-height:100px;
  resize:vertical;
}

.employee-savebar{
  display:flex;
  justify-content:flex-end;
  margin-top:15px;
}

.employee-primary{
  border:0;
  border-radius:11px;
  padding:10px 16px;
  background:#111;
  color:#fff;
  font-size:9px;
  font-weight:850;
  cursor:pointer;
}

.employee-check{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:12px;
  font-size:9px;
  font-weight:800;
}

.employee-security-note{
  margin-top:14px;
  background:#f4f4f6;
  border-radius:11px;
  padding:10px 12px;
  color:#666;
  font-size:8.5px;
}

.employee-activity-toolbar{
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:14px;
}

.employee-filter-group{
  display:flex;
  flex-wrap:wrap;
  gap:4px;
}

.employee-activity-list{
  display:grid;
  gap:0;
}

.employee-activity-row{
  display:grid;
  grid-template-columns:34px minmax(0,1fr) auto;
  gap:10px;
  align-items:start;
  padding:11px 0;
  border-bottom:1px solid #e8e8eb;
}

.employee-activity-icon{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:#f1f1f3;
  font-size:12px;
  font-weight:900;
}

.employee-activity-main{
  display:grid;
  gap:3px;
}

.employee-activity-main b{
  font-size:10px;
}

.employee-activity-main span{
  color:#777;
  font-size:8.5px;
  line-height:1.4;
}

.employee-activity-row time{
  color:#888;
  font-size:8px;
  white-space:nowrap;
}

.employee-inline-form{
  display:grid;
  grid-template-columns:160px minmax(160px,1fr) 160px auto;
  gap:8px;
  align-items:end;
  margin-bottom:15px;
}

.employee-inline-form button{
  border:0;
  border-radius:11px;
  background:#111;
  color:#fff;
  padding:10px 12px;
  font-size:9px;
  font-weight:850;
  cursor:pointer;
}

.employee-record-list{
  display:grid;
  gap:7px;
}

.employee-record-row{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
  border:1px solid #e2e2e6;
  border-radius:12px;
  padding:10px 12px;
}

.employee-record-row>div{
  display:grid;
  gap:2px;
}

.employee-record-row b{
  font-size:9.5px;
}

.employee-record-row span{
  color:#777;
  font-size:8px;
}

.employee-record-row button{
  border:1px solid #dddde2;
  background:#fff;
  border-radius:9px;
  padding:6px 8px;
  font-size:8px;
  font-weight:800;
  cursor:pointer;
}

@media(max-width:900px){
  .employee-file-head{
    flex-direction:column;
  }

  .employee-export-actions{
    justify-content:flex-start;
  }

  .employee-summary-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .employee-overview-columns,
  .employee-edit-grid{
    grid-template-columns:1fr;
  }

  .employee-field-wide{
    grid-column:auto;
  }

  .employee-inline-form{
    grid-template-columns:1fr 1fr;
  }

  .employee-driver-tools{
    grid-template-columns:1fr;
  }
}

@media(max-width:600px){
  .employee-file-modal{
    width:calc(100vw - 12px);
    height:calc(100dvh - 12px);
  }

  .employee-summary-grid{
    grid-template-columns:1fr;
  }

  .employee-inline-form{
    grid-template-columns:1fr;
  }

  .employee-activity-row{
    grid-template-columns:30px minmax(0,1fr);
  }

  .employee-activity-row time{
    grid-column:2;
  }
}


/* EMPLOYEE_FILE_UI2_20260920 */

/* Gesamtes Modal etwas größer/lesbarer */
.employee-file-modal{
  width:min(1220px,calc(100vw - 38px));
  height:min(860px,calc(100dvh - 38px));
}

.employee-file-head{
  padding:24px 26px 17px;
  align-items:center;
}

.employee-file-title{
  align-items:center;
}

.employee-file-close{
  width:40px;
  height:40px;
  font-size:25px;
}

.employee-file-header-photo{
  width:58px;
  height:58px;
  border-radius:17px;
  background:#f0f0f2;
  overflow:hidden;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  font-size:21px;
  font-weight:900;
}

.employee-file-header-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.employee-file-eyebrow{
  font-size:10px;
  margin-bottom:4px;
}

.employee-file-title h2{
  font-size:30px;
}

.employee-file-status{
  margin-top:6px;
  font-size:11.5px;
}

.employee-export-actions button{
  padding:9px 12px;
  font-size:9.5px;
}

.employee-file-tabs{
  padding:11px 26px;
  gap:5px;
}

.employee-file-tabs button{
  padding:9px 12px;
  font-size:10.5px;
}

.employee-file-body{
  padding:22px 26px 28px;
}

.employee-summary-grid{
  gap:12px;
  margin-bottom:18px;
}

.employee-summary{
  padding:16px;
}

.employee-summary small{
  font-size:9.5px;
}

.employee-summary b{
  font-size:21px;
}

.employee-section-card{
  padding:17px;
}

.employee-section-card h3{
  font-size:13.5px;
  margin-bottom:11px;
}

.employee-overview-row{
  grid-template-columns:165px minmax(0,1fr);
  padding:8px 0;
}

.employee-overview-row span{
  font-size:10px;
}

.employee-overview-row b{
  font-size:10.5px;
}

.employee-note{
  font-size:10.5px;
}

.employee-field{
  gap:6px;
}

.employee-field span{
  font-size:9.5px;
}

.employee-field input,
.employee-field select,
.employee-field textarea,
.employee-inline-form input,
.employee-inline-form select{
  padding:11px 12px;
  font-size:11.5px;
  border-radius:12px;
}

.employee-field textarea{
  min-height:112px;
}

.employee-primary{
  padding:11px 17px;
  font-size:10px;
}

.employee-security-note{
  font-size:9.5px;
  padding:11px 13px;
}

.employee-activity-main b{
  font-size:11px;
}

.employee-activity-main span{
  font-size:9.5px;
}

.employee-activity-row time{
  font-size:9px;
}

/* Fotoeditor wie Speisekarten-Editor */
.employee-profile-editor-layout{
  display:grid;
  grid-template-columns:285px minmax(0,1fr);
  gap:20px;
  align-items:start;
}

.employee-photo-panel{
  min-width:0;
}

.employee-photo-upload-zone{
  border:1.5px dashed #cfcfd4;
  border-radius:20px;
  min-height:350px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  overflow:hidden;
  background:#f7f7f9;
  position:relative;
  transition:.15s;
  cursor:pointer;
}

.employee-photo-upload-zone.dragover{
  border-color:#111;
  background:#eeeef2;
}

.employee-photo-preview{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  background:#efeff2;
}

.employee-photo-preview img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.employee-photo-preview span{
  font-size:62px;
  font-weight:900;
  color:#8b8b91;
}

.employee-photo-upload-copy{
  position:relative;
  z-index:2;
  text-align:center;
  padding:18px;
  background:rgba(247,247,249,.92);
  border-radius:15px;
  max-width:220px;
}

.employee-photo-upload-zone.has-image
.employee-photo-upload-copy{
  opacity:0;
  transition:.15s;
}

.employee-photo-upload-zone.has-image:hover
.employee-photo-upload-copy{
  opacity:1;
}

.employee-photo-upload-copy b{
  display:block;
  font-size:13px;
}

.employee-photo-upload-copy span{
  display:block;
  margin:5px 0 11px;
  color:#777;
  font-size:10px;
}

.employee-remove-photo{
  width:100%;
  margin-top:8px;
  border:1px solid #e0e0e4;
  background:#fff;
  color:#b42318;
  border-radius:11px;
  padding:9px;
  font-size:9px;
  font-weight:850;
  cursor:pointer;
}

/* Tab-Listen */
.employee-tab-list-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  margin-bottom:18px;
}

.employee-tab-list-head h3,
.employee-subeditor-head h3{
  margin:0;
  font-size:19px;
  letter-spacing:-.3px;
}

.employee-tab-list-head p,
.employee-subeditor-head p{
  margin:5px 0 0;
  color:#777;
  font-size:10.5px;
}

.employee-empty-panel{
  min-height:180px;
  border:1.5px dashed #d4d4d9;
  border-radius:18px;
  display:grid;
  place-content:center;
  text-align:center;
  padding:24px;
  background:#fafafa;
}

.employee-empty-panel b{
  font-size:13px;
}

.employee-empty-panel span{
  margin-top:5px;
  color:#777;
  font-size:10px;
  max-width:430px;
}

.employee-record-list{
  gap:9px;
}

.employee-record-card{
  display:grid;
  grid-template-columns:48px minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  border:1px solid #dedee3;
  border-radius:16px;
  padding:12px 13px;
  background:#fff;
}

.employee-record-icon{
  width:44px;
  height:44px;
  border-radius:13px;
  background:#f1f1f3;
  display:grid;
  place-items:center;
  font-size:17px;
  font-weight:900;
}

.employee-record-card-main{
  display:grid;
  gap:3px;
  min-width:0;
}

.employee-record-card-main b{
  font-size:11.5px;
}

.employee-record-card-main span{
  color:#666;
  font-size:9.5px;
}

.employee-record-card-main small{
  color:#8a8a90;
  font-size:8.5px;
}

.employee-record-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:6px;
}

.employee-record-actions button{
  border:1px solid #dedee3;
  background:#fff;
  border-radius:10px;
  padding:7px 9px;
  font-size:8.5px;
  font-weight:850;
  cursor:pointer;
}

.employee-record-actions button.danger{
  color:#b42318;
}

/* Dokumenteditor analog Speisekarteneditor */
.employee-subeditor-head{
  display:flex;
  align-items:center;
  gap:11px;
  margin-bottom:18px;
}

.employee-document-editor-layout{
  display:grid;
  grid-template-columns:285px minmax(0,1fr);
  gap:20px;
  align-items:start;
}

.employee-document-upload-zone{
  border:1.5px dashed #cfcfd4;
  border-radius:20px;
  min-height:330px;
  background:#f7f7f9;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:20px;
  cursor:pointer;
  transition:.15s;
}

.employee-document-upload-zone.dragover{
  border-color:#111;
  background:#eeeef2;
}

.employee-document-upload-zone.has-file{
  border-style:solid;
}

.employee-document-file-icon{
  width:64px;
  height:64px;
  border-radius:18px;
  background:#ececef;
  display:grid;
  place-items:center;
  font-size:26px;
  font-weight:900;
  margin-bottom:13px;
}

.employee-document-upload-zone b{
  font-size:13px;
  max-width:230px;
  overflow-wrap:anywhere;
}

.employee-document-upload-zone span{
  color:#777;
  font-size:10px;
  margin:5px 0 13px;
}

.employee-document-editor-form{
  display:grid;
  gap:12px;
}

.employee-editor-bottom{
  display:flex;
  justify-content:space-between;
  gap:15px;
  align-items:center;
  margin-top:3px;
}

.employee-editor-bottom span{
  color:#777;
  font-size:9px;
  max-width:460px;
}

/* Abwesenheitseditor */
.employee-absence-editor{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:13px;
  max-width:900px;
}

@media(max-width:900px){
  .employee-profile-editor-layout,
  .employee-document-editor-layout{
    grid-template-columns:1fr;
  }

  .employee-photo-upload-zone,
  .employee-document-upload-zone{
    min-height:260px;
  }

  .employee-absence-editor{
    grid-template-columns:1fr;
  }

  .employee-record-card{
    grid-template-columns:44px minmax(0,1fr);
  }

  .employee-record-actions{
    grid-column:1/-1;
    justify-content:flex-start;
  }
}


/* DRIVER_SETTINGS_LAYOUT_AUTH_20260920 */

/*
 * Unterer Einstellungen-Bereich:
 *
 * Stempelkarte | Gutscheine
 * Chat-Transkripte
 * Fahrer
 */

#view-settings .stamp-card{
  grid-column:auto !important;
  order:10;
}

#view-settings .coupons-card{
  grid-column:auto !important;
  order:20;
}

#view-settings .transcript-settings-card{
  grid-column:1 / -1 !important;
  order:30;

  min-height:150px;
}

#view-settings .driver-settings-card{
  grid-column:1 / -1 !important;
  order:40;

  height:auto !important;
  min-height:430px !important;
  max-height:none !important;
}

#view-settings .driver-settings-card .setting-title-row h2{
  font-size:20px;
}

#view-settings .driver-settings-card .setting-title-row p{
  font-size:12px;
}

#view-settings .driver-settings-card .employee-driver-tools{
  grid-template-columns:minmax(300px,1fr) auto;

  gap:12px;

  margin-top:14px;
  margin-bottom:12px;
}

#view-settings .driver-settings-card .employee-driver-search{
  min-height:42px;

  border-radius:13px;

  padding:0 12px;
}

#view-settings .driver-settings-card .employee-driver-search input{
  padding:10px 0;

  font-size:11.5px;
}

#view-settings .driver-settings-card .employee-driver-filters{
  gap:6px;
}

#view-settings .driver-settings-card .employee-driver-filters button{
  padding:9px 12px;

  border-radius:11px;

  font-size:9.5px;
}

#view-settings .driver-settings-list{
  display:grid;

  gap:9px;

  max-height:330px !important;

  overflow-y:auto;

  padding-right:4px;
}

#view-settings .driver-settings-row{
  min-height:64px;

  padding:12px 13px;

  border-radius:14px;
}

#view-settings .driver-settings-main b{
  font-size:11.5px;
}

#view-settings .driver-settings-meta{
  margin-top:3px;

  font-size:9.2px;

  line-height:1.4;
}

#view-settings .driver-settings-actions{
  gap:7px;
}

#view-settings .driver-settings-actions button{
  padding:8px 10px;

  font-size:8.8px;
}

@media(max-width:900px){
  #view-settings .stamp-card,
  #view-settings .coupons-card{
    grid-column:1 / -1 !important;
  }

  #view-settings .driver-settings-card .employee-driver-tools{
    grid-template-columns:1fr;
  }
}


/* SERVE_CRM_LOGIN_LOGO_20260920 */

.login-card .serve-crm-login-logo{
 display:block;
 width:min(260px, 72%);
 max-width:260px;
 max-height:84px;
 height:auto;
 margin:0 auto 26px;
 object-fit:contain;
 object-position:center center;
}



/* SERVE_QR_LOGIN_20260921 */

.qr-login-open-btn{
 width:100%;
 min-height:56px;

 margin-top:14px;

 border:1px solid #d9d9df;
 border-radius:18px;

 background:#fff;
 color:#111;

 font:inherit;
 font-size:16px;
 font-weight:750;

 cursor:pointer;
}


.qr-login-open-btn:hover{
 background:#f8f8fa;
}


.qr-login-modal{
 position:fixed;
 inset:0;

 z-index:10000;

 display:none;
 align-items:center;
 justify-content:center;

 padding:24px;

 background:
  rgba(15,15,18,.56);

 backdrop-filter:
  blur(5px);
}


.qr-login-modal.is-open{
 display:flex;
}


.qr-login-panel{
 position:relative;

 width:min(
  500px,
  calc(100vw - 32px)
 );

 padding:28px;

 border-radius:26px;

 background:#fff;

 box-shadow:
  0 24px 80px
  rgba(0,0,0,.22);
}


.qr-login-panel h2{
 margin:
  0 54px 8px 0;

 color:#111;

 font-size:26px;
 line-height:1.1;
}


.qr-login-panel > p{
 margin:
  0 0 20px;

 color:#777;

 font-size:14px;
 line-height:1.45;
}


.qr-login-close{
 position:absolute;

 top:18px;
 right:18px;

 width:42px;
 height:42px;

 display:grid;
 place-items:center;

 border:1px solid #dddde2;
 border-radius:50%;

 background:#f5f5f7;
 color:#111;

 font-size:26px;
 line-height:1;

 cursor:pointer;
}


.qr-login-camera{
 position:relative;

 overflow:hidden;

 width:100%;
 aspect-ratio:1 / 1;

 border-radius:20px;

 background:#111;
}


.qr-login-camera video{
 display:block;

 width:100%;
 height:100%;

 object-fit:cover;
}


.qr-login-frame{
 position:absolute;

 left:50%;
 top:50%;

 width:66%;
 aspect-ratio:1;

 transform:
  translate(-50%,-50%);

 border:3px solid #fff;
 border-radius:18px;

 box-shadow:
  0 0 0 999px
  rgba(0,0,0,.18);

 pointer-events:none;
}


.qr-login-status{
 min-height:22px;

 margin:
  14px 0 18px;

 color:#777;

 font-size:13px;
 line-height:1.4;
}


.qr-login-status.is-error{
 color:#c5261b;
}


.qr-login-status.is-ok{
 color:#168347;
}


.qr-login-cancel{
 width:100%;
 min-height:52px;

 border:1px solid #d9d9df;
 border-radius:16px;

 background:#fff;
 color:#111;

 font:inherit;
 font-size:14px;
 font-weight:750;

 cursor:pointer;
}


body[data-qr-login-mode="driver"]
.qr-login-panel{
 width:min(
  390px,
  calc(100vw - 28px)
 );

 padding:22px;
}


body[data-qr-login-mode="driver"]
.qr-login-panel h2{
 font-size:22px;
}



/* QR_LOGIN_BUTTON_DESIGN_20260921 */

/*
 * Gemeinsames QR-Icon.
 * Reines CSS/SVG, bleibt gestochen scharf.
 */
.qr-login-open-btn{
 display:flex !important;
 align-items:center !important;
 justify-content:center !important;

 gap:9px !important;

 box-sizing:border-box !important;

 cursor:pointer !important;
}

.qr-login-open-btn::before{
 content:"";

 display:block;

 width:18px;
 height:18px;

 flex:0 0 18px;

 background:currentColor;

 -webkit-mask:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3h7v7H3V3zm2 2v3h3V5H5zm9-2h7v7h-7V3zm2 2v3h3V5h-3zM3 14h7v7H3v-7zm2 2v3h3v-3H5zm9-2h3v3h-3v-3zm4 0h3v3h-3v-3zm-4 4h3v3h-3v-3zm4 0h3v3h-3v-3z'/%3E%3C/svg%3E")
  center / contain
  no-repeat;

 mask:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3h7v7H3V3zm2 2v3h3V5H5zm9-2h7v7h-7V3zm2 2v3h3V5h-3zM3 14h7v7H3v-7zm2 2v3h3v-3H5zm9-2h3v3h-3v-3zm4 0h3v3h-3v-3zm-4 4h3v3h-3v-3zm4 0h3v3h-3v-3z'/%3E%3C/svg%3E")
  center / contain
  no-repeat;
}


/*
 * CRM:
 * exakt kompakter wie Hilfe/Fahrer.
 */
body[data-qr-login-mode="crm"]
.qr-login-open-btn{
 width:100% !important;

 height:52px !important;
 min-height:52px !important;
 max-height:52px !important;

 margin-top:12px !important;

 padding:0 18px !important;

 border:1px solid #d9d9df !important;
 border-radius:14px !important;

 background:#fff !important;
 color:#111 !important;

 font-size:14px !important;
 font-weight:700 !important;
 line-height:1 !important;

 letter-spacing:0 !important;
}


/*
 * Fahrer:
 * Größe passend zum vorhandenen Anmelden-Button.
 */
body[data-qr-login-mode="driver"]
.qr-login-open-btn{
 width:100% !important;

 height:52px !important;
 min-height:52px !important;
 max-height:52px !important;

 margin-top:12px !important;

 padding:0 16px !important;

 border:1px solid #d9d9df !important;
 border-radius:13px !important;

 background:#fff !important;
 color:#111 !important;

 font-size:13px !important;
 font-weight:750 !important;
 line-height:1 !important;

 letter-spacing:0 !important;
}


body[data-qr-login-mode="crm"]
.qr-login-open-btn::before{
 width:17px;
 height:17px;

 flex-basis:17px;
}


body[data-qr-login-mode="driver"]
.qr-login-open-btn::before{
 width:17px;
 height:17px;

 flex-basis:17px;
}


.qr-login-open-btn:hover{
 background:#f7f7f8 !important;
}


/* CRM_QR_EXACT_HELP_PARITY_20260921 */

/*
 * Der CRM QR-Button ist ein ganz normaler
 * .btn.secondary wie "Hilfe".
 *
 * Hier wird ausschließlich das innere Layout
 * für das QR-Symbol ergänzt.
 */
#loginScreen
.login-card
.crm-qr-login-btn{
 display:flex;
 align-items:center;
 justify-content:center;

 gap:9px;
}


/*
 * QR-Symbol.
 */
#loginScreen
.login-card
.crm-qr-login-btn::before{
 content:"";

 display:block;

 width:17px;
 height:17px;

 flex:0 0 17px;

 background:currentColor;

 -webkit-mask:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3h7v7H3V3zm2 2v3h3V5H5zm9-2h7v7h-7V3zm2 2v3h3V5h-3zM3 14h7v7H3v-7zm2 2v3h3v-3H5zm9-2h3v3h-3v-3zm4 0h3v3h-3v-3zm-4 4h3v3h-3v-3zm4 0h3v3h-3v-3z'/%3E%3C/svg%3E")
  center / contain
  no-repeat;

 mask:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3h7v7H3V3zm2 2v3h3V5H5zm9-2h7v7h-7V3zm2 2v3h3V5h-3zM3 14h7v7H3v-7zm2 2v3h3v-3H5zm9-2h3v3h-3v-3zm4 0h3v3h-3v-3zm-4 4h3v3h-3v-3zm4 0h3v3h-3v-3z'/%3E%3C/svg%3E")
  center / contain
  no-repeat;
}
