.intake-calendar{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;margin-top:24px}.intake-calendar h2{font-size:17px}.intake-slot{display:grid;gap:6px;padding:16px;margin-top:16px;border-radius:10px;background:#eaf8f2;border:1px solid #acd9c7}.intake-slot.full{background:#fff5dc;border-color:#efd18a}.intake-slot button{margin-top:6px;justify-self:start}.intake-stats{grid-template-columns:repeat(4,minmax(0,1fr))}.intake-stats button{text-align:left}.intake-window-picker{padding:18px;background:#f3f7ff;border-radius:8px}.intake-window-picker h3{margin:0 0 8px}.intake-conversation{margin-top:24px}.intake-conversation article{border-bottom:1px solid #dce5f3;padding:16px 0}.intake-conversation article small{display:block;color:#657791;margin:4px 0}.intake-conversation form{margin-top:20px}.intake-notices{margin:24px 0}.intake-directory{margin-top:28px}.intake-directory details{border-bottom:1px solid #dce5f3;padding:14px 0}.intake-directory summary{cursor:pointer;font-weight:600}.intake-directory form{margin-top:16px}.intake-directory p{margin:12px 0}@media(max-width:700px){.intake-stats{grid-template-columns:1fr 1fr}.intake-calendar{grid-template-columns:1fr}.intake-stats button{white-space:normal}}

/* Compact order overview; other portal screens retain their existing layout. */
.intake-overview{min-width:0;max-width:1440px;margin:0 auto}
.intake-overview>.page-head{padding:19px 23px;margin-bottom:18px}
.intake-overview>.page-head h1{font-size:28px}
.intake-overview .intake-controls{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:0 0 10px}
.intake-overview .intake-tabs{display:flex;flex-wrap:wrap;gap:6px;flex:1}
.intake-overview .intake-tabs button{font-size:13px;min-height:38px;padding:7px 12px;gap:10px}
.intake-overview .intake-tabs button span{font-size:12px;font-weight:700;background:#edf2f8;border-radius:12px;padding:1px 7px}
.intake-overview button.is-active{background:#e9f1ff;color:#114bba;border-color:#89aff5}
.intake-overview .intake-tabs button.is-active span{background:#1261ff;color:white}
.intake-overview .intake-sort-label{display:grid;gap:4px;font-size:11px;color:#4d617a}
.intake-overview .intake-sort-label select{min-height:38px;padding:7px 28px 7px 10px;font-size:13px;max-width:100%;background:white}
.intake-overview [data-intake-refresh]{min-height:38px;font-size:12px;padding:7px 11px}
.intake-overview .intake-result{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:start;gap:8px;font-size:12px;color:#536780;margin:0 0 16px}
.intake-overview .intake-status-options{max-width:100%}
.intake-overview .intake-status-options summary{cursor:pointer;color:#234d87}
.intake-overview .intake-status-options>div{display:flex;flex-wrap:wrap;gap:6px;max-width:720px;padding:10px 0}
.intake-overview .intake-status-options button{min-height:32px;font-size:11px;padding:5px 9px}
.intake-overview .intake-status-options button span{font-weight:800}
.intake-overview .intake-section-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:7px;margin:0 0 9px}
.intake-overview .intake-section-heading h2{font-size:16px;color:#102e50}
.intake-overview .intake-section-heading h2 span{font-size:12px;background:#e6edf7;border-radius:12px;padding:2px 8px;margin-left:5px}
.intake-overview .intake-section-heading>small,.intake-overview .intake-section-heading>span{font-size:11px;color:#5b6e85}
.intake-overview .intake-notices-compact{margin:18px 0 22px}
.intake-overview .intake-hints{display:grid;gap:6px}
.intake-overview .intake-tone-attention{--intake-accent:#c88712;--intake-soft:#fffaec;--intake-ink:#855400}
.intake-overview .intake-tone-success{--intake-accent:#20986a;--intake-soft:#f1faf5;--intake-ink:#176844}
.intake-overview .intake-tone-progress{--intake-accent:#7961c9;--intake-soft:#f6f2fd;--intake-ink:#62449d}
.intake-overview .intake-tone-info{--intake-accent:#3e80c9;--intake-soft:#f0f6fd;--intake-ink:#245b9b}
.intake-overview .intake-tone-muted{--intake-accent:#8894a5;--intake-soft:#f4f6f8;--intake-ink:#576579}
.intake-overview .intake-hint{display:grid;grid-template-columns:150px minmax(0,1fr) minmax(120px,190px) auto;align-items:center;gap:14px;padding:9px 12px;background:var(--intake-soft);border:1px solid #dce5ef;border-left:4px solid var(--intake-accent);border-radius:8px;min-width:0}
.intake-overview .intake-when{font-size:12px;color:#173957;font-weight:700}
.intake-overview .intake-when time{white-space:nowrap}
.intake-overview .intake-when small{display:block;font-size:10px;font-weight:400;color:#51677e;margin-top:2px}
.intake-overview .intake-hint-body{min-width:0;font-size:12px}
.intake-overview .intake-hint-body>strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#17324f}
.intake-overview .intake-hint-body>small{display:block;color:#536780;font-size:10px;overflow-wrap:anywhere;margin:1px 0 2px}
.intake-overview .intake-message-detail{min-width:0}
.intake-overview .intake-message-detail summary{display:flex;align-items:baseline;gap:5px;cursor:pointer;font-size:11px;color:#4f637b;list-style:none}
.intake-overview .intake-message-detail summary::-webkit-details-marker{display:none}
.intake-overview .intake-message-detail summary::before{content:'▸';flex:none;color:var(--intake-ink)}
.intake-overview .intake-message-detail[open] summary::before{content:'▾'}
.intake-overview .intake-message-detail summary span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.intake-overview .intake-message-detail[open] summary span{font-size:0}
.intake-overview .intake-message-detail[open] summary span::after{content:'Hinweis einklappen';font-size:11px}
.intake-overview .intake-message-detail p{padding-top:5px;white-space:pre-wrap;overflow-wrap:anywhere;color:#263e59;font-size:12px}
.intake-overview .intake-status{display:inline-flex;justify-self:start;padding:4px 8px;border-radius:5px;background:var(--intake-soft);color:var(--intake-ink);box-shadow:inset 0 0 0 1px var(--intake-accent);font-size:10px;font-weight:700;line-height:1.4;max-width:100%;overflow-wrap:anywhere}
.intake-overview .intake-hint>button{min-height:34px;font-size:11px;padding:6px 11px}
.intake-overview .intake-more{display:flex;margin:8px auto 0;min-height:32px;font-size:12px;padding:5px 12px;background:transparent;border-color:#c6d6e7}
.intake-overview .intake-table table{table-layout:fixed;white-space:normal;min-width:0}
.intake-overview .intake-table th{font-size:10px;padding:8px 12px;vertical-align:middle}
.intake-overview .intake-table th:first-child{width:165px;padding:4px 9px}
.intake-overview .intake-table th:nth-child(2){width:28%}
.intake-overview .intake-table th:nth-child(4){width:165px}
.intake-overview .intake-table th:last-child{width:140px}
.intake-overview .intake-table th button{padding:4px 0;border:0;background:transparent;min-height:28px;font-size:11px;font-weight:700;color:#24517e}
.intake-overview .intake-table td{padding:10px 12px;font-size:12px;overflow-wrap:anywhere}
.intake-overview .intake-table td:first-child{border-left:3px solid var(--intake-accent)}
.intake-overview .intake-table td small{font-size:10px}
.intake-overview .intake-row-actions button{min-height:32px;font-size:11px;padding:5px 9px;margin:2px 0}
.intake-overview .intake-footnote{font-size:11px;color:#5b6e85;margin:11px 0}
.intake-overview .intake-explanation{font-size:12px;color:#536780;margin-top:15px}
.intake-overview .intake-explanation summary{cursor:pointer}
.intake-overview .intake-explanation p{margin-top:7px;max-width:800px}
.intake-overview .intake-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:1100px){
 .intake-overview .intake-hint{grid-template-columns:120px minmax(0,1fr) 140px auto;gap:9px}
 .intake-overview .intake-table th:first-child{width:145px}
 .intake-overview .intake-table th:nth-child(4){width:130px}
 .intake-overview .intake-table th:last-child{width:112px}
}
@media(max-width:760px){
 .intake-overview>.page-head{padding:17px 18px}
 .intake-overview>.page-head h1{font-size:26px}
 .intake-overview .intake-tabs{flex-basis:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
 .intake-overview .intake-tabs button{font-size:11px;padding:7px 4px;gap:3px;flex-wrap:wrap;min-height:40px}
 .intake-overview .intake-tabs button span{font-size:10px;padding:1px 5px}
 .intake-overview .intake-sort-label{flex:1;min-width:0}
 .intake-overview .intake-sort-label select{width:100%;min-height:40px;font-size:14px}
 .intake-overview [data-intake-refresh]{min-height:40px}
 .intake-overview .intake-hint{grid-template-columns:minmax(0,1fr) auto;gap:7px 10px;padding:10px}
 .intake-overview .intake-hint-body{grid-column:1/-1;grid-row:1}
 .intake-overview .intake-hint-body>strong{white-space:normal;font-size:13px}
 .intake-overview .intake-hint>.intake-when{grid-row:2;grid-column:1}
 .intake-overview .intake-hint>.intake-status{grid-row:3;grid-column:1}
 .intake-overview .intake-hint>button{grid-row:2/4;grid-column:2;min-height:42px}
 .intake-overview .intake-status{font-size:11px}
 .intake-overview .intake-table{border:0;background:transparent;overflow:visible}
 .intake-overview .intake-table table,.intake-overview .intake-table tbody{display:block}
 .intake-overview .intake-table thead{display:none}
 .intake-overview .intake-table tr{display:grid;grid-template-columns:1fr 1fr;border:1px solid #d7e2ee;border-left:3px solid var(--intake-accent);border-radius:8px;padding:10px;margin-bottom:8px;background:#fff;gap:7px 10px}
 .intake-overview .intake-table td{display:block;border:0;padding:0;font-size:12px;min-width:0}
 .intake-overview .intake-table td:first-child{border:0;grid-column:1;grid-row:2}
 .intake-overview .intake-table td:nth-child(2){grid-column:1/-1;grid-row:1;font-size:13px}
 .intake-overview .intake-table td:nth-child(3){grid-column:2;grid-row:2;font-size:11px;color:#536780}
 .intake-overview .intake-table td:nth-child(4){grid-column:1;grid-row:3;align-self:center}
 .intake-overview .intake-table td:last-child{grid-column:2;grid-row:3;text-align:right}
 .intake-overview .intake-row-actions button{min-height:40px;margin:2px 0}
}

/* Compact, read-only completion views. All rules are scoped to these views. */
.completed-order{max-width:1440px;margin-inline:auto}
.completed-order .page-head{padding:22px 26px;min-height:0}
.completed-order .page-head h1{font-size:clamp(25px,3vw,34px)}
.completed-order .ops-panel{padding:20px;margin-bottom:16px;min-width:0}
.completion-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,1fr);gap:20px;align-items:start}
.completion-layout>div,.completion-layout>aside{min-width:0}
.completion-notice{padding:12px 16px;margin-bottom:18px}
.completion-notice p{margin:3px 0 0;font-size:13px}
.completed-order .completion-fields{margin-block:12px 0;gap:10px 20px}
.completion-fields dd{overflow-wrap:anywhere;white-space:pre-line}
.completed-trip .section-head{align-items:flex-start;margin-bottom:12px}
.completed-trip .section-head p{margin:4px 0 0;font-size:13px;color:var(--muted)}
.completed-trip .pickup-damage-entry{margin-top:18px}
.completed-document h3{margin:0 0 8px}
.completed-document p{margin-bottom:10px}
.completed-document{margin-block:12px}
.completed-document .button{white-space:normal;text-align:left}
.completed-history summary{cursor:pointer;font-weight:600}
.completed-history article{border-top:1px solid var(--line,#d6e1eb);padding-top:12px;margin-top:12px}
.completed-history small{display:block;margin-top:4px}
@media(max-width:850px){.completion-layout{grid-template-columns:1fr}.completed-order .ops-panel{padding:16px}.completed-order .page-head{padding:18px}.completed-order .summary-list{grid-template-columns:1fr;gap:3px}.completed-order .summary-list dd{margin:0 0 10px}}
.completed-order .photo-section,#detail .completion-notice~.order-photos .photo-section{border:1px solid var(--line,#d6e1eb);border-radius:8px;padding:14px;margin-top:10px;background:#fff}
.completed-order .photo-section summary,#detail .completion-notice~.order-photos summary{cursor:pointer;font-weight:600}
.completed-order .photo-count,#detail .completion-notice~.order-photos .photo-count{font-size:12px;font-weight:400;margin-left:8px}
.completed-order .photo-count.complete,#detail .completion-notice~.order-photos .photo-count.complete{color:#008578}
.completed-order .photo-grid,#detail .completion-notice~.order-photos .photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
.completed-order .photo-slot,#detail .completion-notice~.order-photos .photo-slot{min-width:0;display:grid;gap:6px;font-size:12px}
.completed-order .photo-preview img,#detail .completion-notice~.order-photos .photo-preview img{display:block;width:100%;max-height:220px;object-fit:contain;border-radius:6px;background:#f1f5f9}
.completed-order .photo-placeholder,#detail .completion-notice~.order-photos .photo-placeholder{padding:18px 8px;background:#f1f5f9;display:flex;align-items:center;gap:6px}
#detail .completion-notice~.summary-list dd{overflow-wrap:anywhere}
/* Leerfahrt, erneute Autohaus-Freigabe und Suche. */
.failure-history{border:1px solid #e8c976;border-radius:10px;background:#fffaf0;padding:18px;margin-block:16px}
.failure-history article{padding-block:14px;border-bottom:1px solid #e7dcc1}
.failure-history article:last-child{border-bottom:0;padding-bottom:0}
.failure-history p{margin-block:8px;overflow-wrap:anywhere}
.failure-history .section-head{gap:8px}
.failure-history button,.failure-action button{white-space:normal}
.order-search{display:block;max-width:620px;margin-block:12px 16px;font-size:13px;font-weight:600}
.order-search input{width:100%;margin-top:5px}
.order-search-form label{flex:1;min-width:220px;max-width:640px}
.order-search-form input{width:100%}
.calendar-entry.awaiting_customer,.calendar-entry.empty_trip{border-left:4px solid #cc8a14;background:#fff6de}
.calendar-entry.retry_ready{border-left:4px solid #1763d9;background:#edf4ff}
@media(max-width:600px){.failure-history{padding:14px}.order-search-form label{min-width:0;flex-basis:100%}}
