:root{--bg:#f4f7fb;--card:#fff;--text:#1c2430;--muted:#687386;--line:#dfe5ee;--nav:#111827;--nav2:#1f2937;--primary:#1d4ed8;--primary2:#2563eb;--success:#15803d;--warning:#b45309;--danger:#b91c1c;--info:#0369a1;--purple:#7e22ce;--radius:16px;--shadow:0 10px 30px rgba(15,23,42,.07)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:var(--text);background:var(--bg)}a{color:var(--primary);text-decoration:none}a:hover{text-decoration:underline}.sidebar{position:fixed;inset:0 auto 0 0;width:240px;background:linear-gradient(180deg,var(--nav),#0b1220);color:#fff;padding:20px 14px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:12px;padding:4px 8px 22px}.brand-mark{width:42px;height:42px;border-radius:12px;background:#fff;color:#111827;display:grid;place-items:center;font-size:22px;font-weight:900}.brand strong{display:block;font-size:16px}.brand small{display:block;color:#9ca3af;margin-top:2px}.sidebar nav{display:flex;flex-direction:column;gap:4px;overflow:auto}.sidebar nav a{color:#cbd5e1;padding:10px 12px;border-radius:10px;font-weight:650;font-size:14px;text-decoration:none}.sidebar nav a:hover{background:rgba(255,255,255,.07);color:#fff}.sidebar nav a.active{background:#fff;color:#111827}.sidebar-bottom{margin-top:auto;border-top:1px solid rgba(255,255,255,.1);padding:16px 8px 0;display:flex;flex-direction:column;gap:5px;font-size:13px}.sidebar-bottom span{font-weight:700}.sidebar-bottom a{color:#94a3b8}.main{margin-left:240px;padding:24px 28px 60px;min-height:100vh}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.topbar h1{font-size:26px;line-height:1.15;margin:0;letter-spacing:-.02em}.env-badge{padding:7px 10px;border-radius:999px;background:#e0e7ff;color:#3730a3;font-size:12px;font-weight:800}.grid{display:grid;gap:16px}.grid.cards{grid-template-columns:repeat(4,minmax(0,1fr))}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:18px}.card h2,.card h3{margin:0 0 12px}.card h2{font-size:18px}.card h3{font-size:15px}.metric{display:flex;flex-direction:column;gap:6px}.metric .value{font-size:29px;font-weight:850;letter-spacing:-.03em}.metric .label{font-size:13px;color:var(--muted);font-weight:650}.metric.warning .value{color:var(--warning)}.metric.danger .value{color:var(--danger)}.metric.success .value{color:var(--success)}.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:0 0 16px}.toolbar.right{justify-content:flex-end}.btn{appearance:none;border:0;border-radius:10px;padding:10px 14px;font-weight:750;cursor:pointer;font-size:14px;display:inline-flex;align-items:center;justify-content:center;gap:7px;text-decoration:none!important}.btn.primary{background:var(--primary);color:#fff}.btn.primary:hover{background:#1e40af}.btn.secondary{background:#fff;border:1px solid var(--line);color:var(--text)}.btn.success{background:var(--success);color:#fff}.btn.warning{background:#f59e0b;color:#1f2937}.btn.danger{background:var(--danger);color:#fff}.btn.ghost{background:#eef2ff;color:#3730a3}.btn.small{padding:7px 10px;font-size:12px}.btn:disabled{opacity:.55;cursor:not-allowed}.table-card{padding:0;overflow:hidden}.table-wrap{overflow:auto;max-width:100%}table{width:100%;border-collapse:separate;border-spacing:0;font-size:13px}th{position:sticky;top:0;background:#f8fafc;z-index:2;color:#475569;text-transform:none;font-size:12px;letter-spacing:.01em;text-align:left;border-bottom:1px solid var(--line);padding:11px 12px;white-space:nowrap}td{padding:11px 12px;border-bottom:1px solid #edf1f5;vertical-align:top}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fbfdff}.thumb{width:58px;height:58px;object-fit:contain;background:#fff;border:1px solid var(--line);border-radius:9px}.status{display:inline-flex;align-items:center;border-radius:999px;padding:5px 8px;font-size:11px;font-weight:800;white-space:nowrap}.status.open,.status.running,.status.new{background:#fee2e2;color:#991b1b}.status.requested,.status.ready{background:#fef3c7;color:#92400e}.status.released,.status.done,.status.committed,.status.sent{background:#dcfce7;color:#166534}.status.test{background:#e0e7ff;color:#3730a3}.status.shadow{background:#e0f2fe;color:#075985}.status.live{background:#fce7f3;color:#9d174d}.status.auto{background:#e0f2fe;color:#075985}.status.manuell{background:#f3e8ff;color:#6b21a8}.status.error{background:#fee2e2;color:#991b1b}.status.inactive{background:#e5e7eb;color:#4b5563}.status.hold{background:#ffedd5;color:#9a3412}.alert{margin:0 0 16px;padding:12px 14px;border-radius:10px;border:1px solid}.alert.success{background:#ecfdf5;border-color:#bbf7d0;color:#166534}.alert.error{background:#fef2f2;border-color:#fecaca;color:#991b1b}.alert.info{background:#eff6ff;border-color:#bfdbfe;color:#1e40af}.alert.warning{background:#fffbeb;border-color:#fde68a;color:#92400e}.field{display:flex;flex-direction:column;gap:6px}.field label{font-size:12px;font-weight:750;color:#475569}.field input,.field select,.field textarea,.input{width:100%;border:1px solid #cbd5e1;border-radius:10px;padding:10px 11px;font:inherit;background:#fff;color:var(--text)}.field textarea{min-height:110px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus,.input:focus{outline:3px solid rgba(37,99,235,.12);border-color:#60a5fa}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.form-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.muted{color:var(--muted)}.small{font-size:12px}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.nowrap{white-space:nowrap}.pre{white-space:pre-wrap;word-break:break-word}.section-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:24px 0 10px}.section-title h2{margin:0;font-size:18px}.tabs{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:14px}.tabs a{padding:8px 11px;border-radius:9px;color:#475569;font-weight:700;text-decoration:none}.tabs a.active{background:#dbeafe;color:#1d4ed8}.kv{display:grid;grid-template-columns:180px 1fr;gap:0;border:1px solid var(--line);border-radius:12px;overflow:hidden}.kv>div{padding:9px 12px;border-bottom:1px solid var(--line)}.kv>div:nth-last-child(-n+2){border-bottom:0}.kv .k{background:#f8fafc;font-size:12px;font-weight:750;color:#64748b}.approval-note{white-space:pre-wrap;background:#f8fafc;border:1px solid var(--line);padding:12px;border-radius:10px}.attachments{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px}.attachment{border:1px solid var(--line);border-radius:12px;padding:12px;display:flex;justify-content:space-between;gap:12px;align-items:center}.preview-table .edel-separator td{background:#d9eaf7!important;border-top:3px solid #4f7fa0;border-bottom:3px solid #4f7fa0;text-align:center;font-size:16px;font-weight:900;color:#173b57}.qty{font-size:17px;font-weight:850;text-align:center}.danger-zone{border-color:#fecaca;background:#fffafa}.login-page{min-height:100vh;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at 20% 10%,#dbeafe,transparent 35rem),#f8fafc}.login-card{width:min(440px,100%);background:#fff;border:1px solid var(--line);border-radius:22px;padding:30px;box-shadow:0 24px 80px rgba(15,23,42,.12)}.login-logo{width:54px;height:54px;background:#111827;color:#fff;border-radius:15px;display:grid;place-items:center;font-weight:900;font-size:26px;margin-bottom:16px}.login-card h1{margin:0 0 6px;font-size:24px}.login-card p{margin:0 0 20px;color:var(--muted)}.stack{display:flex;flex-direction:column;gap:12px}.hr{height:1px;background:var(--line);margin:16px 0}.pill-row{display:flex;gap:8px;flex-wrap:wrap}.code{background:#0f172a;color:#e2e8f0;border-radius:10px;padding:12px;overflow:auto;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}.right{text-align:right}.center{text-align:center}.w100{width:100%}.mt{margin-top:16px}.mb{margin-bottom:16px}.hidden{display:none!important}
@media(max-width:1100px){.grid.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.three{grid-template-columns:1fr 1fr}.form-grid.four{grid-template-columns:1fr 1fr}}
@media(max-width:800px){.sidebar{position:relative;width:100%;min-height:auto}.sidebar nav{display:grid;grid-template-columns:repeat(2,1fr)}.sidebar-bottom{display:none}.main{margin-left:0;padding:18px 12px 50px}.topbar h1{font-size:22px}.grid.cards,.grid.two,.grid.three,.form-grid,.form-grid.three,.form-grid.four{grid-template-columns:1fr}.kv{grid-template-columns:1fr}.kv .k{border-bottom:0}.topbar{align-items:flex-start;gap:12px}.env-badge{display:none}}

/* v2.1 – Versandstations-inspirierte Bedienoberfläche */
:root{--nav:#0b1726;--nav2:#13263b;--primary:#155a86;--primary2:#0f6fa6;--accent:#b75b2a;--bg:#f2f5f7;--line:#d7e0e6;--shadow:0 8px 24px rgba(16,42,61,.07)}
.sidebar{background:linear-gradient(180deg,#0b1726 0%,#0d1d2f 100%);padding-top:16px}.brand{color:#fff;text-decoration:none!important;padding:5px 8px 18px}.brand-logo{width:44px;height:44px;border-radius:10px;background:#fff;display:grid;place-items:center;box-shadow:0 3px 12px rgba(0,0,0,.16)}.brand-k{font-size:23px;font-weight:950;color:#102033}.brand-copy strong{font-size:17px}.brand-copy small{color:#aab8c5}.sidebar nav a{padding:11px 12px}.sidebar nav a.active{box-shadow:0 3px 12px rgba(0,0,0,.08)}.sidebar-links{display:flex;gap:7px;align-items:center;color:#68798b}.main{padding-top:20px}.topbar{margin-bottom:18px}.topbar h1{font-size:25px}.env-badge{background:#e3edf4;color:#164a6a}.card{border-radius:13px}.btn{border-radius:9px}.btn.primary{background:var(--primary)}.btn.primary:hover{background:#104a70}.btn.ghost{background:#eaf2f7;color:#155a86}.section-pad{padding:18px}.table-card>.section-pad+ .table-wrap{border-top:1px solid var(--line)}
.login-page{background:linear-gradient(135deg,#0c1826 0,#102438 42%,#eef3f6 42%,#eef3f6 100%)}.login-card{border-radius:18px}.login-brand{display:flex;align-items:center;gap:12px;margin-bottom:18px}.login-brand .login-logo{margin:0;width:48px;height:48px;border-radius:10px;background:#0d1d2f}.login-brand strong{display:block;font-size:18px}.login-brand small{display:block;color:var(--muted);margin-top:2px}.check-row{display:flex;gap:10px;align-items:flex-start;padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:#f8fafb}.check-row input{margin-top:3px}.check-row span{display:flex;flex-direction:column;gap:2px}.check-row small{color:var(--muted)}.check-row.compact{padding:8px 10px}
.module-box{border:1px solid var(--line);border-radius:12px;padding:14px;background:#f8fafb}.module-box h3{margin:0 0 10px}.module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.module-check{display:flex;gap:8px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:9px;padding:9px 10px;font-weight:700}.user-grid{align-items:start}
.drawer-overlay[hidden]{display:none}.drawer-overlay{position:fixed;inset:0;z-index:1000;display:flex;justify-content:flex-end}.drawer-backdrop{position:absolute;inset:0;border:0;background:rgba(6,18,30,.42);backdrop-filter:blur(2px);cursor:default}.drawer{position:relative;width:min(760px,92vw);height:100%;background:#fff;box-shadow:-24px 0 60px rgba(6,18,30,.22);display:flex;flex-direction:column;animation:drawerIn .18s ease-out}.drawer-head{display:flex;justify-content:space-between;align-items:center;padding:18px 20px;border-bottom:1px solid var(--line);background:#f8fafb}.drawer-head h2{margin:2px 0 0;font-size:20px}.drawer-kicker{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:var(--primary)}.drawer-close{border:0;background:#e9eef2;border-radius:9px;width:38px;height:38px;font-size:26px;line-height:1;cursor:pointer}.drawer-body{padding:18px 20px;overflow:auto}.drawer-loading{padding:40px;text-align:center;color:var(--muted)}.drawer-summary{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:14px}.drawer-open{overflow:hidden}@keyframes drawerIn{from{transform:translateX(24px);opacity:.7}to{transform:none;opacity:1}}
@media(max-width:800px){.module-grid{grid-template-columns:1fr}.drawer{width:100vw}.login-page{background:#eef3f6}}
.brand-logo img{max-width:36px;max-height:36px;object-fit:contain;display:block}

/* v2.3 – Bestelldetails im Drawer */
.compact-card{padding:14px}.subtle-card{background:#f8fafb}.detail-lines{display:flex;flex-direction:column;gap:5px}.address-block{white-space:pre-line;line-height:1.55}.mini-kv{grid-template-columns:110px 1fr}.product-cell{display:flex;gap:10px;align-items:flex-start;min-width:280px}.order-attrs{margin-top:5px;color:#5b6776}.order-totals{margin:14px 0 0 auto;width:min(390px,100%);background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}.order-totals>div{display:flex;justify-content:space-between;gap:20px;padding:9px 12px;border-bottom:1px solid var(--line)}.order-totals>div:last-child{border-bottom:0}.order-totals .total{font-size:16px;background:#f3f7f9}.timeline{display:flex;flex-direction:column;gap:0}.timeline-item{display:grid;grid-template-columns:18px 1fr;gap:10px;position:relative}.timeline-item:not(:last-child):before{content:"";position:absolute;left:6px;top:17px;bottom:-4px;width:2px;background:#dbe3e8}.timeline-dot{width:14px;height:14px;border-radius:50%;background:var(--primary);margin-top:4px;border:3px solid #dceaf2;z-index:1}.timeline-content{padding:0 0 16px}.timeline-head{display:flex;justify-content:space-between;gap:12px;margin-bottom:4px}.timeline-head span{font-size:11px;color:var(--muted);white-space:nowrap}.order-products td{vertical-align:middle}
@media(max-width:800px){.order-detail-grid{grid-template-columns:1fr}.timeline-head{flex-direction:column;gap:2px}}

/* v2.4 – Buchhaltung / Billbee-Zahlungen */
.accounting-search-card{padding:20px}.accounting-search-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.accounting-search-head h2{margin-bottom:5px}.accounting-search-head p{margin:0;max-width:850px;line-height:1.5}.accounting-source-badge{white-space:nowrap;background:#eaf2f7;color:#155a86;border:1px solid #cfe0ea;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:850}.accounting-search-form{display:grid;grid-template-columns:minmax(320px,1fr) auto minmax(270px,auto);gap:10px;align-items:center;margin-top:18px}.accounting-search-form.local{grid-template-columns:minmax(320px,1fr) auto}.accounting-search-input{position:relative}.accounting-search-input input{width:100%;font-size:16px;padding:13px 14px 13px 42px;border-radius:10px}.search-icon{position:absolute;left:14px;top:50%;transform:translateY(-50%);font-size:22px;color:#6b7d8d;pointer-events:none}.accounting-deep{margin:0}.accounting-results-title{display:flex;align-items:baseline;gap:12px}.accounting-results table{min-width:1320px}.accounting-text-cell{max-width:260px;white-space:normal;line-height:1.35}.accounting-danger-row{background:#fff7f7!important}.accounting-danger-row:hover{background:#fff0f0!important}.accounting-risk-banner{border-radius:12px;padding:14px 16px;margin-bottom:14px;display:flex;justify-content:space-between;gap:20px;align-items:center;border:1px solid}.accounting-alert-danger{background:#fef2f2;border-color:#fecaca;color:#991b1b}.accounting-alert-warning{background:#fffbeb;border-color:#fde68a;color:#92400e}.accounting-alert-success{background:#ecfdf5;border-color:#bbf7d0;color:#166534}.accounting-risk-status{font-size:18px;font-weight:950;margin-bottom:3px}.accounting-risk-money{display:flex;flex-direction:column;gap:2px;text-align:right;white-space:nowrap}.accounting-risk-money strong{font-size:18px}.accounting-metrics .metric .small-value{font-size:20px}.accounting-payments{min-width:980px}.accounting-purpose{min-width:240px;white-space:normal}.accounting-refund-row{background:#fff8f8}.text-danger{color:var(--danger)}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;word-break:break-all}.accounting-help p{margin-bottom:0;line-height:1.5}.accounting-history{margin-bottom:8px}
@media(max-width:1050px){.accounting-search-form{grid-template-columns:1fr auto}.accounting-deep{grid-column:1/-1}.accounting-search-head{flex-direction:column}.accounting-source-badge{align-self:flex-start}}
@media(max-width:700px){.accounting-search-form{grid-template-columns:1fr}.accounting-search-form>.btn,.accounting-deep{grid-column:1}.accounting-risk-banner{flex-direction:column;align-items:flex-start}.accounting-risk-money{text-align:left}.accounting-metrics{grid-template-columns:1fr!important}}
.accounting-duplicate-card{padding:0;overflow:hidden;margin-bottom:16px}.accounting-duplicate-head{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:18px}.accounting-duplicate-head h2{margin:0 0 4px}.accounting-duplicate-head p{margin:0}.accounting-duplicate-count{min-width:48px;height:48px;border-radius:14px;display:grid;place-items:center;font-size:22px;font-weight:950}.accounting-duplicate-count.has-alerts{background:#fee2e2;color:#991b1b}.accounting-duplicate-count.is-clear{background:#dcfce7;color:#166534}.accounting-duplicate-card>.alert{margin:0 18px 18px}.accounting-clear-message{margin-top:0!important}.accounting-duplicate-table{min-width:1050px;border-top:1px solid var(--line)}.accounting-more-alerts{padding:10px 18px 14px}.accounting-duplicate-table .btn.danger{white-space:nowrap}@media(max-width:700px){.accounting-duplicate-head{align-items:flex-start}.accounting-duplicate-count{min-width:42px;height:42px;font-size:19px}}

/* v2.5.2 – alle Zahlungsabweichungen */
.accounting-difference-card{padding:0;overflow:hidden;margin-bottom:16px}.accounting-difference-head{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:18px}.accounting-difference-head h2{margin:0 0 4px}.accounting-difference-head p{margin:0}.accounting-difference-count{min-width:48px;height:48px;border-radius:14px;display:grid;place-items:center;font-size:22px;font-weight:950}.accounting-difference-count.has-alerts{background:#fee2e2;color:#991b1b}.accounting-difference-count.is-clear{background:#dcfce7;color:#166534}.accounting-difference-card>.alert{margin:0 18px 18px}.accounting-difference-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:0 18px 18px}.accounting-difference-metrics>div{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:11px 13px;border:1px solid var(--line);border-radius:10px;background:#f8fafc}.accounting-difference-metrics span{font-size:12px;color:var(--muted);font-weight:750}.accounting-difference-metrics strong{font-size:19px}.accounting-difference-metrics .danger strong{color:var(--danger)}.accounting-difference-metrics .warning strong{color:var(--warning)}.accounting-difference-table{min-width:1480px;border-top:1px solid var(--line)}.accounting-difference-table .btn{white-space:nowrap}.accounting-warning-row{background:#fffdf5!important}.accounting-warning-row:hover{background:#fff9e6!important}.text-warning{color:var(--warning)}
@media(max-width:900px){.accounting-difference-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.accounting-difference-head{align-items:flex-start}.accounting-difference-count{min-width:42px;height:42px;font-size:19px}.accounting-difference-metrics{grid-template-columns:1fr}}

/* v2.8.0 – Bestellungen 360° / Shopify + Billbee */
.address-block{white-space:normal;line-height:1.45}
.order-search-card{padding:20px;margin-bottom:18px}.order-search-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.order-search-head h2{margin:0 0 5px}.order-search-head p{margin:0;max-width:850px;line-height:1.5}.order-search-source{white-space:nowrap;background:#eaf2f7;color:#155a86;border:1px solid #cfe0ea;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:850}.order-search-toolbar{margin:18px 0 0}.order-fulltext-search{display:grid;grid-template-columns:minmax(320px,1fr) auto auto;gap:10px;align-items:center;flex:1}.order-manual-load{display:grid;grid-template-columns:190px auto;gap:8px;align-items:center}.orders-overview{min-width:1120px}
.payment-section-title{margin-top:28px}.payment-risk-banner{border-radius:12px;padding:14px 16px;margin-bottom:12px;display:flex;justify-content:space-between;gap:20px;align-items:flex-start;border:1px solid}.payment-alert-danger{background:#fef2f2;border-color:#fecaca;color:#991b1b}.payment-alert-warning{background:#fffbeb;border-color:#fde68a;color:#92400e}.payment-alert-success{background:#ecfdf5;border-color:#bbf7d0;color:#166534}.payment-risk-status{font-size:18px;font-weight:950;margin-bottom:3px}.payment-risk-values{display:flex;flex-direction:column;gap:3px;text-align:right;white-space:nowrap;font-size:12px}.payment-risk-values strong{font-size:14px}.payment-table-card{margin-bottom:8px}.order-payments{min-width:860px}.payment-refund-row{background:#fff8f8}.payment-muted-row{opacity:.68}.payment-purpose{max-width:300px;white-space:normal;line-height:1.35;margin-top:3px}.payment-note{line-height:1.45;margin:0 2px 6px}.order-combined-timeline{margin-bottom:8px}.timeline-source{margin-top:4px;font-weight:700}.order-combined-timeline .timeline-content>.small:not(.muted){line-height:1.45}
@media(max-width:900px){.order-search-head{flex-direction:column}.order-search-source{align-self:flex-start}.order-fulltext-search{grid-template-columns:1fr auto}.order-fulltext-search .btn.secondary{grid-column:1/-1;justify-self:start}.order-manual-load{grid-template-columns:1fr auto;width:100%}.payment-risk-banner{flex-direction:column}.payment-risk-values{text-align:left}}
@media(max-width:650px){.order-fulltext-search{grid-template-columns:1fr}.order-fulltext-search .btn.secondary{grid-column:1}.order-manual-load{grid-template-columns:1fr}.payment-risk-values{white-space:normal}}

/* v2.8.23 – Bestellkommentare & Prüfvermerke */
.order-comment-card{padding:16px}.order-comment-form{display:flex;flex-direction:column;gap:9px}.order-comment-form textarea,.payment-resolve textarea{width:100%;box-sizing:border-box;border:1px solid var(--line);border-radius:9px;padding:10px 11px;font:inherit;resize:vertical;background:#fff;color:var(--text)}.order-comment-form textarea:focus,.payment-resolve textarea:focus{outline:2px solid rgba(20,93,160,.18);border-color:#6f9fc8}.order-comment-actions{display:flex;align-items:center;gap:12px}.order-comment-actions>span{line-height:1.45;max-width:520px}.order-comment-history{margin-top:16px;border-top:1px solid var(--line)}.order-comment-entry{padding:13px 0;border-bottom:1px solid #edf1f5}.order-comment-entry:last-child{border-bottom:0}.order-comment-meta{display:flex;justify-content:space-between;gap:12px;align-items:baseline;margin-bottom:6px}.order-comment-meta strong{font-size:13px}.order-comment-meta span{font-size:11px;color:var(--muted);text-align:right}.order-comment-text{font-size:13px;line-height:1.5;overflow-wrap:anywhere}.order-comment-sync{margin-top:6px}.drawer-form-busy{opacity:.65;pointer-events:none}
@media(max-width:800px){.order-comment-card{padding:13px}.order-comment-actions{align-items:stretch;flex-direction:column}.order-comment-actions .btn{width:100%}.order-comment-meta{align-items:flex-start;flex-direction:column;gap:2px}.order-comment-meta span{text-align:left}}

/* v2.8.38 – Klostermann Firmenfarben: #1070ac, Schwarz und Weiß */
:root{--nav:#000;--nav2:#111;--primary:#1070ac;--primary2:#1070ac;--accent:#1070ac;--info:#1070ac;--text:#0b0b0b;--muted:#5d6670;--bg:#f4f6f8;--card:#fff;--line:#d8e0e5;--shadow:0 8px 24px rgba(0,0,0,.07)}
a{color:#1070ac}.sidebar{background:linear-gradient(180deg,#000 0%,#111 100%)}.brand-logo{border:2px solid #1070ac}.brand-k{color:#1070ac}.brand-copy small,.sidebar-area{color:#b8c1c8}.sidebar nav a{color:#e6e9eb}.sidebar nav a:hover{background:rgba(16,112,172,.28);color:#fff}.sidebar nav a.active{background:#1070ac;color:#fff;box-shadow:0 4px 14px rgba(16,112,172,.28)}.sidebar-bottom{border-color:rgba(255,255,255,.18)}.sidebar-bottom a{color:#d8dde1}
.topbar h1{color:#000}.env-badge{background:#e7f3fa;color:#0b527f;border:1px solid #b9d9eb}.btn.primary{background:#1070ac;color:#fff}.btn.primary:hover{background:#0b5d90}.btn.secondary:hover{border-color:#1070ac;color:#0b527f}.btn.ghost{background:#e7f3fa;color:#0b527f}.tabs a.active{background:#e7f3fa;color:#0b527f}.alert.info{background:#edf7fc;border-color:#b9d9eb;color:#0b527f}
.field input:focus,.field select:focus,.field textarea:focus,.input:focus,.order-comment-form textarea:focus,.payment-resolve textarea:focus{outline:3px solid rgba(16,112,172,.16);border-color:#1070ac}input[type="checkbox"],input[type="radio"]{accent-color:#1070ac}.timeline-dot{background:#1070ac;border-color:#cde6f3}.drawer-kicker{color:#1070ac}.accounting-source-badge,.order-search-source{background:#e7f3fa;color:#0b527f;border-color:#b9d9eb}.preview-table .edel-separator td{background:#e7f3fa!important;border-color:#1070ac;color:#0b4268}
.login-page{background:linear-gradient(135deg,#000 0%,#000 28%,#1070ac 28%,#1070ac 43%,#f3f5f7 43%,#fff 100%)}.login-card{border-top:5px solid #1070ac;box-shadow:0 24px 80px rgba(0,0,0,.20)}.login-brand .login-logo,.login-logo{background:#1070ac;color:#fff}.code{background:#000;color:#fff}
@media(max-width:800px){.login-page{background:linear-gradient(180deg,#1070ac 0,#1070ac 10px,#f3f5f7 10px,#f3f5f7 100%)}}

/* v2.8.40 – Benutzer löschen und saubere Picklisten-Empfängerauswahl */
.picklist-recipient-panel{display:flex;flex-direction:column;gap:8px;padding:13px;border:1px solid var(--line);border-radius:12px;background:#f8fafb}.picklist-recipient-title{font-size:12px;font-weight:850;color:#374151}.picklist-recipient-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:8px}.picklist-recipient-option{display:flex!important;align-items:center!important;gap:11px!important;min-width:0;padding:11px 12px!important;border:1px solid #cbd5e1!important;border-radius:10px!important;background:#fff!important;color:var(--text)!important;cursor:pointer;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}.picklist-recipient-option:hover{border-color:#79afd0!important;background:#f8fcff!important}.picklist-recipient-option:has(input:checked){border-color:#1070ac!important;background:#edf7fc!important;box-shadow:inset 0 0 0 1px #1070ac}.picklist-recipient-option input{appearance:auto!important;width:20px!important;height:20px!important;min-width:20px!important;max-width:20px!important;flex:0 0 20px!important;margin:0!important;padding:0!important}.picklist-recipient-option span{display:flex;min-width:0;flex-direction:column;gap:2px;line-height:1.25}.picklist-recipient-option b{font-size:13px;color:#111}.picklist-recipient-option small{font-size:12px;color:var(--muted);overflow-wrap:anywhere}.picklist-run-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:9px}.picklist-run-actions .btn{width:100%;min-height:42px;white-space:normal;text-align:center}
.user-delete-zone{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:18px;padding:14px;border:1px solid #fecaca;border-radius:12px;background:#fffafa}.user-delete-zone>div{display:flex;min-width:0;flex-direction:column;gap:3px}.user-delete-zone strong{color:#991b1b;font-size:13px}.user-delete-zone span{color:#7f1d1d;font-size:11px;line-height:1.4}.user-delete-zone form{flex:0 0 auto}.user-delete-zone .btn{white-space:nowrap}
@media(max-width:600px){.picklist-recipient-panel{padding:11px}.picklist-recipient-grid{grid-template-columns:1fr}.picklist-recipient-option{padding:12px!important}.picklist-run-actions{grid-template-columns:1fr}.user-delete-zone{align-items:stretch;flex-direction:column}.user-delete-zone form,.user-delete-zone .btn{width:100%}}

/* v2.8.43 – Großes, mittig ausgerichtetes Firmenlogo auf den Zugangsseiten */
.login-brand.login-brand-official{display:flex;flex-direction:column;align-items:center;gap:7px;margin-bottom:22px;text-align:center}
.login-company-logo{display:block;width:min(300px,100%);height:auto;object-fit:contain}
.login-brand-official>span{font-size:12px;font-weight:800;letter-spacing:.14em;line-height:1.2;text-transform:uppercase;color:#1070ac}
@media(max-width:520px){.login-company-logo{width:min(280px,100%)}}

/* v2.8.47 – Rollenbasierter Vorschau-, TEST- und LIVE-Ablauf */
.status.preview{background:#e7f3fa;color:#0b527f;border:1px solid #b9d9eb}

/* v2.8.49 – Sichtbarer Ausführungszustand für serverseitige Aktionen */
.btn.is-loading,input[type="submit"].is-loading{cursor:wait!important;pointer-events:none;opacity:.88;position:relative}.btn-loading-content{display:inline-flex;align-items:center;justify-content:center;gap:8px}.btn-spinner{display:inline-block;width:1em;height:1em;flex:0 0 1em;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:buttonSpin .72s linear infinite}.drawer-loading{display:flex;align-items:center;justify-content:center;gap:9px}.drawer-loading:before{content:"";width:18px;height:18px;border:2px solid #1070ac;border-right-color:transparent;border-radius:50%;animation:buttonSpin .72s linear infinite}@keyframes buttonSpin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.btn-spinner,.drawer-loading:before{animation-duration:1.6s}}

/* v2.8.51 – Bearbeitbare Picklisten-Empfänger */
.picklist-recipient-settings{display:flex;flex-direction:column;gap:10px}.picklist-recipient-settings-row{display:grid;grid-template-columns:minmax(180px,1fr) minmax(240px,1.4fr) auto;gap:10px;align-items:end;padding:12px;border:1px solid var(--line);border-radius:11px;background:#f8fafb}.picklist-recipient-settings-row .picklist-recipient-remove{margin-bottom:1px;white-space:nowrap}
@media(max-width:700px){.picklist-recipient-settings-row{grid-template-columns:1fr}.picklist-recipient-settings-row .picklist-recipient-remove{width:100%;margin:0}}

/* v2.8.57 – Einheitliches Klostermann-Design im gesamten Portal */
:root{--brand:#1070ac;--brand-dark:#0b527f;--brand-soft:#eaf5fb;--brand-line:#b9d9eb;--black:#050505;--surface:#fff;--surface-soft:#f7f9fb;--surface-muted:#eef3f6;--text:#111820;--muted:#61707d;--line:#d7e1e7;--radius:14px;--radius-small:10px;--shadow:0 6px 20px rgba(12,35,50,.065);--shadow-hover:0 10px 28px rgba(12,35,50,.105)}
html{color-scheme:light;background:#f2f5f7}.portal-shell{background:linear-gradient(180deg,#eef4f7 0,#f5f7f9 220px,#f5f7f9 100%);color:var(--text)}.portal-shell *{scrollbar-color:#a8becb #edf2f5}.portal-shell ::selection{background:#cce8f7;color:#071723}
.portal-shell .sidebar{width:252px;padding:17px 14px;background:linear-gradient(180deg,#050505 0,#101010 60%,#07141d 100%);border-right:1px solid rgba(255,255,255,.07);box-shadow:8px 0 28px rgba(0,0,0,.12)}.portal-shell .sidebar::before{content:"";position:absolute;inset:0 0 auto;height:4px;background:#1070ac}.portal-shell .mobile-sidebar-head{border-bottom:1px solid rgba(255,255,255,.1);margin:0 3px 10px}.portal-shell .brand{gap:11px;padding:5px 7px 16px}.portal-shell .brand-logo{width:46px;height:46px;border:2px solid #1070ac;border-radius:12px;box-shadow:0 5px 16px rgba(0,0,0,.24)}.portal-shell .brand-logo img{max-width:37px;max-height:37px}.portal-shell .brand-copy strong{font-size:17px;letter-spacing:-.01em}.portal-shell .brand-copy small{margin-top:3px;color:#aab6bf;font-size:11px;font-weight:750;letter-spacing:.04em;text-transform:uppercase}.portal-shell .sidebar nav{gap:4px;padding:1px 2px}.portal-shell .sidebar nav a{position:relative;min-height:42px;padding:10px 12px 10px 30px;border:1px solid transparent;border-radius:10px;color:#dce2e6;font-size:13px;font-weight:750;transition:background .15s ease,border-color .15s ease,color .15s ease,transform .15s ease}.portal-shell .sidebar nav a::before{content:"";position:absolute;left:13px;top:50%;width:7px;height:7px;transform:translateY(-50%);border:2px solid #6e7c86;border-radius:50%;background:transparent}.portal-shell .sidebar nav a:hover{transform:translateX(2px);border-color:rgba(255,255,255,.08);background:rgba(16,112,172,.18);color:#fff}.portal-shell .sidebar nav a:hover::before{border-color:#7bc2eb}.portal-shell .sidebar nav a.active{border-color:#2787bf;background:#1070ac;color:#fff;box-shadow:0 5px 16px rgba(16,112,172,.3)}.portal-shell .sidebar nav a.active::before{border-color:#fff;background:#fff}.portal-shell .sidebar-bottom{margin:14px 3px 0;padding:13px 11px;border:1px solid rgba(255,255,255,.11);border-radius:11px;background:rgba(255,255,255,.045)}.portal-shell .sidebar-bottom>span{font-size:13px}.portal-shell .sidebar-area{color:#9fb0bb;font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.05em}.portal-shell .sidebar-links{margin-top:3px}.portal-shell .sidebar-bottom a{color:#dce4e9;font-weight:700}
.portal-shell .main{margin-left:252px;padding:20px 28px 64px}.portal-shell .topbar{min-height:72px;margin:0 0 18px;padding:13px 16px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.94);box-shadow:0 4px 18px rgba(12,35,50,.055)}.portal-shell .topbar-title{display:flex;min-width:0;flex-direction:column;gap:2px}.portal-shell .topbar-eyebrow{color:#1070ac;font-size:10px;font-weight:900;letter-spacing:.09em;text-transform:uppercase}.portal-shell .topbar h1{color:#050505;font-size:24px;letter-spacing:-.025em}.portal-shell .env-badge{padding:7px 10px;border:1px solid var(--brand-line);border-radius:999px;background:var(--brand-soft);color:var(--brand-dark);font-size:10px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}
.portal-shell .card{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow)}.portal-shell a.card{transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}.portal-shell a.card:hover{transform:translateY(-2px);border-color:#a9c9db;box-shadow:var(--shadow-hover);text-decoration:none}.portal-shell .card h2,.portal-shell .card h3{color:#101820;letter-spacing:-.012em}.portal-shell .compact-card,.portal-shell .subtle-card,.portal-shell .module-box{border-color:#dce5ea;background:#f8fafb}.portal-shell .grid{gap:14px}.portal-shell .grid.cards{gap:12px}.portal-shell .metric{position:relative;overflow:hidden}.portal-shell .metric::before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:#1070ac}.portal-shell .metric.danger::before{background:#c33d4a}.portal-shell .metric.warning::before{background:#d58b15}.portal-shell .metric.success::before{background:#2b9360}.portal-shell .metric .value{font-variant-numeric:tabular-nums}.portal-shell .metric .label{color:#60717e}
.portal-shell .main>.toolbar{padding:11px 12px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 3px 12px rgba(12,35,50,.04)}.portal-shell .section-title{padding:0 2px 8px;border-bottom:1px solid #dce5ea}.portal-shell .section-title h2{font-size:17px;color:#121b23}.portal-shell .section-title h2::after{content:"";display:block;width:34px;height:3px;margin-top:7px;border-radius:999px;background:#1070ac}.portal-shell .section-title>.toolbar{margin:0;padding:0;border:0;background:transparent;box-shadow:none}
.portal-shell .btn{min-height:40px;border-radius:9px;font-weight:800;line-height:1.15;box-shadow:none;transition:background .15s ease,border-color .15s ease,color .15s ease,transform .12s ease,box-shadow .15s ease}.portal-shell .btn:hover{transform:translateY(-1px)}.portal-shell .btn:active{transform:translateY(0)}.portal-shell .btn.primary{background:#1070ac;color:#fff;box-shadow:0 3px 9px rgba(16,112,172,.18)}.portal-shell .btn.primary:hover{background:#0b5d90;box-shadow:0 5px 13px rgba(16,112,172,.24)}.portal-shell .btn.secondary{border-color:#cbd8e0;background:#fff;color:#1d2b35}.portal-shell .btn.secondary:hover{border-color:#1070ac;background:#f5fbfe;color:#0b527f}.portal-shell .btn.ghost{border:1px solid #cce1ed;background:#edf7fc;color:#0b527f}.portal-shell .btn.ghost:hover{border-color:#94c5df;background:#dff1fa}.portal-shell .btn.success{background:#208454}.portal-shell .btn.warning{background:#e4a22d;color:#19130a}.portal-shell .btn.danger{background:#b9323f}.portal-shell .btn:focus-visible,.portal-shell a:focus-visible,.portal-shell input:focus-visible,.portal-shell select:focus-visible,.portal-shell textarea:focus-visible{outline:3px solid rgba(16,112,172,.22);outline-offset:2px}.portal-shell .btn.disabled,.portal-shell .btn:disabled{pointer-events:none;opacity:.48}
.portal-shell .field{gap:6px}.portal-shell .field label{color:#435462;font-size:11px;font-weight:850;letter-spacing:.015em}.portal-shell .field input,.portal-shell .field select,.portal-shell .field textarea,.portal-shell .input{border:1px solid #cbd8e0;border-radius:9px;background:#fff;color:#111820;box-shadow:inset 0 1px 2px rgba(10,30,45,.025);transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}.portal-shell .field input:hover,.portal-shell .field select:hover,.portal-shell .field textarea:hover,.portal-shell .input:hover{border-color:#a9bdc9}.portal-shell .field input:focus,.portal-shell .field select:focus,.portal-shell .field textarea:focus,.portal-shell .input:focus{border-color:#1070ac;background:#fff;box-shadow:0 0 0 3px rgba(16,112,172,.12);outline:0}.portal-shell input[type="checkbox"],.portal-shell input[type="radio"]{accent-color:#1070ac}.portal-shell .check-row,.portal-shell .module-check{border-color:#d5e0e6;background:#f9fbfc}.portal-shell .check-row:has(input:checked),.portal-shell .module-check:has(input:checked){border-color:#76b3d4;background:#eef8fd}
.portal-shell .table-card{border:1px solid var(--line);border-radius:var(--radius);background:#fff;box-shadow:var(--shadow)}.portal-shell .table-wrap{scrollbar-color:#a9bdc9 #edf2f5}.portal-shell table{color:#1b2832}.portal-shell th{padding:12px;background:#edf5f9;color:#3d5363;border-bottom:1px solid #cddde6;font-size:11px;font-weight:900;letter-spacing:.035em;text-transform:uppercase}.portal-shell td{padding:11px 12px;border-bottom-color:#e8edf1}.portal-shell tbody tr:nth-child(even){background:#fbfcfd}.portal-shell tbody tr:hover{background:#f0f8fc}.portal-shell .qty{color:#0b527f}.portal-shell .thumb{border-color:#cfdde5;box-shadow:0 2px 7px rgba(12,35,50,.06)}
.portal-shell .status{gap:5px;padding:5px 8px;border:1px solid transparent;font-size:10px;font-weight:900;letter-spacing:.02em}.portal-shell .status::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.75}.portal-shell .status.open,.portal-shell .status.running,.portal-shell .status.new,.portal-shell .status.error{border-color:#f4bec4}.portal-shell .status.requested,.portal-shell .status.ready,.portal-shell .status.hold{border-color:#efd99e}.portal-shell .status.released,.portal-shell .status.done,.portal-shell .status.committed,.portal-shell .status.sent{border-color:#adddc3}.portal-shell .status.shadow,.portal-shell .status.auto,.portal-shell .status.preview{border-color:#b9d9eb}.portal-shell .status.inactive{border-color:#d0d6dc}
.portal-shell .alert{position:relative;padding:12px 14px 12px 16px;border-radius:10px;box-shadow:0 2px 8px rgba(12,35,50,.035)}.portal-shell .alert::before{content:"";position:absolute;inset:-1px auto -1px -1px;width:4px;border-radius:10px 0 0 10px;background:currentColor;opacity:.75}.portal-shell .tabs{gap:6px;padding:5px;border:1px solid var(--line);border-radius:11px;background:#edf3f6}.portal-shell .tabs a{min-height:37px;padding:8px 11px;border-radius:8px;color:#4f606c}.portal-shell .tabs a:hover{background:#fff;color:#0b527f;text-decoration:none}.portal-shell .tabs a.active{background:#1070ac;color:#fff;box-shadow:0 3px 9px rgba(16,112,172,.2)}
.portal-shell .kv{border-color:#d5e0e6;border-radius:11px}.portal-shell .kv>div{border-bottom-color:#e3eaee}.portal-shell .kv .k{background:#edf5f9;color:#4d6170;font-weight:850}.portal-shell .attachment{border-color:#d7e2e8;background:#fbfcfd}.portal-shell .approval-note{border-color:#d7e2e8;background:#f8fafb}.portal-shell .hr{background:#dce5ea}.portal-shell .code{border:1px solid #28343c;background:#050505;color:#edf7fc}.portal-shell .drawer{border-left:1px solid #c9d8e0;box-shadow:-24px 0 70px rgba(0,0,0,.22)}.portal-shell .drawer-head{border-bottom-color:#cddde6;background:#edf5f9}.portal-shell .drawer-close{border:1px solid #cfdae1;background:#fff;color:#1d2b35}.portal-shell .drawer-close:hover{border-color:#1070ac;color:#0b527f}.portal-shell .danger-zone{border-color:#efbbc0;background:#fff8f8}
.login-page{background:linear-gradient(145deg,#050505 0,#050505 31%,#1070ac 31%,#1070ac 38%,#eef3f6 38%,#fff 100%)}.login-card{border:1px solid #cedce4;border-top:5px solid #1070ac;border-radius:18px;box-shadow:0 26px 85px rgba(0,0,0,.22)}.login-card h1{color:#050505;letter-spacing:-.025em}.login-card .btn{min-height:43px;border-radius:9px;font-weight:850}.login-card .field input{border-radius:9px;border-color:#c9d7df}.login-card .field input:focus{border-color:#1070ac;box-shadow:0 0 0 3px rgba(16,112,172,.13);outline:0}.login-card .check-row{border-color:#d6e1e7;background:#f8fafb}.login-card a{color:#0b6093;font-weight:700}
@media(max-width:1180px){.portal-shell .main{padding-left:22px;padding-right:22px}.portal-shell .grid.cards{gap:10px}}
@media(max-width:800px){.login-page{background:linear-gradient(180deg,#050505 0,#050505 7px,#1070ac 7px,#1070ac 15px,#f2f5f7 15px,#fff 100%)}.login-card{border-top-width:4px;box-shadow:0 18px 54px rgba(0,0,0,.16)}}
@media(prefers-reduced-motion:reduce){.portal-shell .sidebar nav a,.portal-shell .btn,.portal-shell a.card{transition:none!important}}

/* v2.8.58 – Lager direkt bearbeiten und vollständig öffnen */
.inventory-quick-cell{min-width:112px}.inventory-quick-control{display:grid;grid-template-columns:minmax(68px,86px) 18px;gap:5px;align-items:center}.inventory-quick-control input,.inventory-thresholds input{width:100%;height:38px;min-height:38px;padding:6px 7px;border:1px solid #c7d5de;border-radius:8px;background:#fff;color:#10202b;font:inherit;font-weight:800;font-variant-numeric:tabular-nums;text-align:right;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}.inventory-quick-control input:hover,.inventory-thresholds input:hover{border-color:#8eb5cb}.inventory-quick-control input:focus,.inventory-thresholds input:focus{border-color:#1070ac;outline:0;box-shadow:0 0 0 3px rgba(16,112,172,.13)}.inventory-quick-control input.is-saving,.inventory-thresholds input.is-saving{background:#f5fbfe}.inventory-quick-control input.is-saved,.inventory-thresholds input.is-saved{border-color:#64ad83;background:#f3fcf7}.inventory-quick-control input.is-error,.inventory-thresholds input.is-error{border-color:#d2505c;background:#fff5f6}.inventory-save-state{display:grid;width:18px;height:18px;place-items:center;border-radius:50%;color:#5e7280;font-size:13px;font-weight:950;line-height:1}.inventory-save-state.is-saving{color:#1070ac}.inventory-save-state.is-saved{color:#187847}.inventory-save-state.is-error{background:#fee2e2;color:#a5222f;cursor:help}.inventory-thresholds{display:flex;min-width:145px;flex-direction:column;gap:5px}.inventory-thresholds label{display:grid;grid-template-columns:15px minmax(62px,76px) 18px;gap:5px;align-items:center}.inventory-thresholds label>span:first-child{color:#61717d;font-size:10px;font-weight:950;text-align:center}.inventory-open-product{white-space:nowrap}.inventory-full-editor{padding:16px 18px!important;border-top:0!important;background:#f5fafc!important;box-shadow:inset 4px 0 #1070ac}.inventory-full-editor .section-title{margin-top:0}.inventory-save-toast{position:fixed;right:18px;bottom:18px;z-index:1300;width:min(430px,calc(100vw - 36px));margin:0!important;box-shadow:0 14px 42px rgba(0,0,0,.2)!important}

/* v2.8.69 – volle Breite und Navigation in verschachtelten Detailseiten */
.drawer-head-main{display:flex;min-width:0;align-items:center;gap:11px}.drawer-head-main>div{min-width:0}.drawer-head-main h2{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.drawer-back{display:inline-grid;width:38px;height:38px;flex:0 0 38px;place-items:center;border:1px solid #cfdae1;border-radius:9px;background:#fff;color:#1d2b35;font-size:22px;font-weight:850;line-height:1;cursor:pointer}.drawer-back:hover{border-color:#1070ac;color:#0b527f}.drawer-back[hidden]{display:none!important}.drawer-body>.approval-detail-content{width:100%;max-width:none;margin:0}.drawer-body>.approval-detail-content>.toolbar{width:100%}
@media(max-width:800px){.drawer-head-main{gap:8px}.drawer-back{width:44px;height:44px;flex-basis:44px}.drawer-body>.approval-detail-content{width:100%!important;max-width:none!important}.drawer-body>.approval-detail-content .input[type="file"]{max-width:none!important}}

/* v2.8.76 – kompakte Freigabe-Dateien und strukturierte Eigenschaften */
.approval-file-list{grid-template-columns:1fr}
.approval-file-card{display:grid;grid-template-columns:minmax(0,1fr) auto;width:100%;min-width:0;gap:14px;align-items:center}
.approval-file-meta{display:flex;min-width:0;gap:12px;align-items:center}
.approval-file-meta>a{flex:0 0 auto}
.approval-file-meta>div{min-width:0}
.approval-file-name{display:block;max-width:100%;line-height:1.35;overflow-wrap:anywhere;word-break:break-word}
.approval-file-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;align-items:center}
.approval-file-actions form{display:flex;margin:0}
.portal-shell .approval-file-actions .btn{min-height:34px;padding:7px 10px;font-size:12px;white-space:nowrap}
.grid.two .approval-file-card{grid-template-columns:1fr}
.grid.two .approval-file-actions{justify-content:flex-start}
.approval-properties{overflow:hidden;border:1px solid var(--line);border-radius:11px;background:#fff}
.approval-property-row{display:grid;grid-template-columns:minmax(150px,210px) minmax(0,1fr);border-bottom:1px solid #e3eaee}
.approval-property-row:last-child{border-bottom:0}
.approval-property-label{padding:11px 12px;background:#edf5f9;color:#4d6170;font-size:12px;font-weight:850;overflow-wrap:anywhere}
.approval-property-value{display:flex;min-width:0;flex-wrap:wrap;align-items:center;gap:9px;padding:10px 12px;line-height:1.45;overflow-wrap:anywhere;word-break:break-word}
.approval-property-value>span{min-width:0;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}
.approval-property-empty{padding:12px;color:var(--muted)}
@media(max-width:700px){
  .approval-file-card{grid-template-columns:1fr;align-items:stretch}
  .approval-file-actions{justify-content:flex-start}
  .approval-property-row{grid-template-columns:1fr}
  .approval-property-label{padding-bottom:7px;border-bottom:1px solid #dce6ec}
  .approval-property-value{padding-top:9px}
}
@media(max-width:430px){
  .approval-file-actions{display:grid;grid-template-columns:1fr}
  .approval-file-actions form,.approval-file-actions .btn{width:100%}
}
/* v2.8.78 – kompakter, handlungsorientierter Freigabe-Mail-Verlauf */
.approval-mail-history{padding:0;overflow:hidden}.approval-mail-history-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;border-bottom:1px solid var(--line);background:#f8fafb}.approval-mail-history-head>div{display:flex;flex-direction:column;gap:2px}.approval-mail-thread{display:flex;flex-direction:column}.approval-mail-message{border-bottom:1px solid #e4ebf0;background:#fff}.approval-mail-message:last-child{border-bottom:0}.approval-mail-message.is-unread{background:#fffaf2;box-shadow:inset 4px 0 #d79018}.approval-mail-message>summary{display:grid;grid-template-columns:8px minmax(0,1fr) minmax(150px,auto) 20px;gap:12px;align-items:center;padding:14px 16px;cursor:pointer;list-style:none}.approval-mail-message>summary::-webkit-details-marker{display:none}.approval-mail-message>summary:hover{background:rgba(16,112,172,.035)}.approval-mail-marker{width:8px;height:8px;border-radius:50%;background:#95a5b1}.approval-mail-message.is-unread .approval-mail-marker{background:#d79018;box-shadow:0 0 0 4px rgba(215,144,24,.14)}.approval-mail-summary-main{display:flex;min-width:0;flex-direction:column;gap:4px}.approval-mail-summary-main>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.approval-mail-badges{display:flex;gap:5px;flex-wrap:wrap}.approval-mail-snippet{overflow:hidden;color:var(--muted);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.approval-mail-meta{display:flex;max-width:235px;flex-direction:column;align-items:flex-end;color:#425666;font-size:11px;font-weight:750;text-align:right}.approval-mail-meta small{max-width:100%;overflow:hidden;color:var(--muted);font-weight:600;text-overflow:ellipsis;white-space:nowrap}.approval-mail-chevron{color:#5e7383;font-size:20px;transition:transform .15s ease}.approval-mail-message[open] .approval-mail-chevron{transform:rotate(180deg)}.approval-mail-content{padding:0 16px 16px 36px}.approval-mail-body{max-height:420px;padding:14px;border:1px solid #dfe7ec;border-radius:10px;background:#f9fbfc;color:#263744;font-size:12px;line-height:1.55;overflow:auto;overflow-wrap:anywhere}.approval-mail-attachments{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.approval-mail-workflow{display:grid;grid-template-columns:minmax(210px,1fr) minmax(320px,auto) auto;gap:12px;align-items:end;margin-top:12px;padding:13px;border:1px solid #b9d9eb;border-radius:11px;background:#f1f8fc}.approval-mail-workflow>div:first-child{display:flex;flex-direction:column;gap:3px}.approval-mail-workflow>div:first-child span{color:var(--muted);font-size:11px;line-height:1.4}.approval-mail-status-form,.approval-mail-actions{display:flex;gap:7px;align-items:center}.approval-mail-status-form select{min-width:180px}.approval-compose-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.approval-compose-head h2{margin:2px 0 10px}.approval-compose-context{align-self:start}.approval-compose-attachments .check-row{background:#f8fafb}
@media(max-width:1000px){.approval-mail-workflow{grid-template-columns:1fr}.approval-mail-status-form,.approval-mail-actions{justify-content:flex-start}}
@media(max-width:800px){.approval-mail-history-head{align-items:stretch;flex-direction:column}.approval-mail-history-head .btn{width:100%}.approval-mail-message>summary{grid-template-columns:8px minmax(0,1fr) 18px;gap:9px;padding:13px 11px}.approval-mail-meta{grid-column:2;grid-row:2;align-items:flex-start;max-width:none;text-align:left}.approval-mail-chevron{grid-column:3;grid-row:1/3}.approval-mail-content{padding:0 11px 13px 28px}.approval-mail-status-form,.approval-mail-actions{display:grid;grid-template-columns:1fr 1fr}.approval-mail-status-form select{grid-column:1/-1;width:100%}.approval-mail-status-form .btn,.approval-mail-actions .btn{width:100%}.approval-compose-grid{grid-template-columns:1fr!important}}
@media(max-width:480px){.approval-mail-content{padding-left:11px}.approval-mail-status-form,.approval-mail-actions{grid-template-columns:1fr}.approval-mail-status-form select{grid-column:auto}.approval-mail-summary-main>strong,.approval-mail-snippet{white-space:normal}.approval-mail-body{max-height:330px}}

/* v2.8.80 – Freigabepostfach, Kundenakten und modulübergreifende Drawer */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.approval-mail-admin-actions{display:flex;justify-content:flex-end;margin-top:10px;padding-top:10px;border-top:1px solid #e3eaf0}.unassigned-mail-page .approval-tabs{flex-wrap:wrap}.unassigned-select-all{margin:0;background:#fff}.unassigned-mail-list{display:flex;flex-direction:column;gap:10px;margin-top:12px}.unassigned-mail-card{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;padding:15px;border-left:4px solid #d79018}.unassigned-mail-check{padding-top:4px}.unassigned-mail-check input{width:20px;height:20px}.unassigned-mail-main{min-width:0}.unassigned-mail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.unassigned-mail-head h2{margin:6px 0 3px;font-size:16px;overflow-wrap:anywhere}.unassigned-mail-actions{display:flex;gap:7px;flex:0 0 auto}.unassigned-mail-preview{margin-top:11px;border-top:1px solid #e5ebef;padding-top:10px}.unassigned-mail-preview>summary{color:#4a5f6f;font-size:12px;line-height:1.5;cursor:pointer}.unassigned-mail-preview[open]>summary{margin-bottom:10px;font-weight:800}.mail-assignment-source h3{margin:8px 0 4px}.mail-assignment-source details{margin-top:10px}.mail-assignment-source summary{cursor:pointer;font-size:12px;font-weight:800}.mail-assignment-search .toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;margin:8px 0}.mail-assignment-results{display:flex;flex-direction:column;gap:8px}.mail-assignment-result{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center}.mail-assignment-result>div{display:flex;min-width:0;flex-direction:column;gap:3px}.mail-assignment-result>div span,.mail-assignment-result>div small{color:var(--muted);font-size:11px;overflow-wrap:anywhere}
.customer-page{display:flex;flex-direction:column;gap:14px}.customer-hero{display:grid;grid-template-columns:minmax(260px,1fr) minmax(390px,.8fr);gap:24px;align-items:center;padding:20px}.customer-hero h2{margin:3px 0 5px}.customer-hero p{margin:0;color:var(--muted);font-size:12px}.customer-search{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.customer-search>span{position:absolute;left:13px;top:11px;color:#718494;font-size:20px}.customer-search input{padding-left:38px}.customer-search>a{position:absolute;right:88px;top:8px;display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:#e8eef2;color:#435667;text-decoration:none!important}.customer-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.customer-metrics>.card{padding:14px 16px}.customer-metrics span{display:block;color:var(--muted);font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.05em}.customer-metrics strong{display:block;margin-top:6px;font-size:25px;line-height:1;color:#0b527f}.customer-metrics .customer-metric-date{font-size:18px}.customer-list{display:flex;flex-direction:column;gap:9px}.customer-list-card{display:grid;grid-template-columns:auto minmax(220px,1.2fr) minmax(260px,1fr) auto;gap:14px;align-items:center;padding:13px 15px}.customer-avatar{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#1070ac;color:#fff;font-size:18px;font-weight:950;box-shadow:0 3px 10px rgba(16,112,172,.2)}.customer-avatar.large{width:60px;height:60px;font-size:24px}.customer-list-main{min-width:0}.customer-list-main h3{margin:0 0 5px;font-size:15px}.customer-contact-line{display:flex;gap:10px;flex-wrap:wrap;font-size:11px;overflow-wrap:anywhere}.customer-list-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.customer-list-stats>span{display:flex;flex-direction:column;padding:7px 9px;border-radius:8px;background:#f3f7f9;color:var(--muted);font-size:10px}.customer-list-stats strong{color:#17212b;font-size:14px}.customer-pagination{justify-content:center}.customer-detail{padding-bottom:14px}.customer-detail-head{display:flex;gap:14px;align-items:center;padding:18px;border:1px solid #cfe0ea;border-radius:14px;background:linear-gradient(135deg,#f1f8fc,#fff)}.customer-detail-head h2{margin:2px 0 5px}.customer-detail-contact{display:flex;gap:10px;flex-wrap:wrap;font-size:12px}.customer-detail-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.customer-detail-metrics>div{display:flex;flex-direction:column;padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:#fff}.customer-detail-metrics strong{font-size:21px;color:#0b527f}.customer-detail-metrics span{color:var(--muted);font-size:10px;font-weight:750}.customer-order-list,.customer-approval-list,.customer-mail-list,.customer-replacement-list,.customer-comment-list{display:flex;flex-direction:column;gap:8px}.customer-order-row{display:grid;grid-template-columns:minmax(140px,1fr) minmax(170px,1fr) auto auto;gap:10px;align-items:center}.customer-order-row>div{display:flex;flex-direction:column;gap:2px}.customer-order-row small,.customer-order-row>div:nth-child(2){color:var(--muted);font-size:10px}.customer-order-total{text-align:right}.customer-total-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 14px;border-radius:10px;background:#0b527f;color:#fff}.customer-total-bar span{font-size:11px;font-weight:750}.customer-total-bar div{display:flex;gap:12px}.customer-address-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.customer-address-card{display:flex;flex-direction:column;gap:7px}.customer-address-head{display:flex;justify-content:space-between;gap:8px}.customer-address-head span{color:var(--muted);font-size:10px}.customer-approval-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center}.customer-approval-row>div{display:flex;min-width:0;flex-direction:column;gap:3px}.customer-approval-row small{color:var(--muted)}.customer-mail-row{padding:0!important;overflow:hidden}.customer-mail-row>summary{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:9px;align-items:center;padding:12px;list-style:none;cursor:pointer}.customer-mail-row>summary::-webkit-details-marker{display:none}.customer-mail-row>summary>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.customer-mail-row>summary>span:last-child{color:var(--muted);font-size:10px;text-align:right}.customer-mail-row.is-unread{border-color:#d79018;box-shadow:inset 4px 0 #d79018}.customer-mail-row>.approval-mail-body{margin:0 12px 10px}.customer-mail-row>.btn{margin:0 12px 12px}.customer-replacement-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center}.customer-replacement-row>div{display:flex;flex-direction:column}.customer-comment-head{display:flex;justify-content:space-between;gap:10px;margin-bottom:7px}.customer-comment-head span{color:var(--muted);font-size:10px}
@media(max-width:1000px){.customer-hero{grid-template-columns:1fr}.customer-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-list-card{grid-template-columns:auto minmax(0,1fr) auto}.customer-list-stats{grid-column:2/4}.customer-detail-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.approval-tabs{grid-template-columns:repeat(auto-fit,minmax(125px,1fr))!important}.unassigned-mail-head{flex-direction:column}.unassigned-mail-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}.unassigned-mail-actions .btn{width:100%}.mail-assignment-result{grid-template-columns:1fr auto}.mail-assignment-result .btn{grid-column:1/-1;width:100%}.customer-list-card{grid-template-columns:auto minmax(0,1fr)}.customer-list-stats{grid-column:1/-1}.customer-list-card>.btn{grid-column:1/-1;width:100%}.customer-address-grid{grid-template-columns:1fr}.customer-order-row{grid-template-columns:1fr auto}.customer-order-row>div:nth-child(2){grid-column:1}.customer-order-row>.btn{grid-column:1/-1;width:100%}.customer-approval-row{grid-template-columns:1fr auto}.customer-approval-row>.btn{grid-column:1/-1;width:100%}.customer-mail-row>summary{grid-template-columns:auto minmax(0,1fr)}.customer-mail-row>summary>span:last-child{grid-column:2;text-align:left}.customer-replacement-row{grid-template-columns:1fr auto}.customer-replacement-row>span:last-child{grid-column:1/-1}.customer-comment-head{flex-direction:column}}
@media(max-width:520px){.unassigned-mail-card{grid-template-columns:1fr}.unassigned-mail-check{position:absolute;right:12px;top:12px}.unassigned-mail-head{padding-right:30px}.unassigned-mail-actions{grid-template-columns:1fr}.mail-assignment-search .toolbar{grid-template-columns:1fr}.customer-hero{padding:14px}.customer-search{grid-template-columns:1fr}.customer-search>a{right:10px}.customer-search .btn{width:100%}.customer-metrics{gap:7px}.customer-metrics>.card{padding:11px}.customer-metrics strong{font-size:21px}.customer-list-card{padding:12px}.customer-list-stats{grid-template-columns:1fr 1fr}.customer-list-stats>span:first-child{grid-column:1/-1}.customer-detail-head{align-items:flex-start}.customer-avatar.large{width:48px;height:48px}.customer-detail-contact{flex-direction:column;gap:3px}.customer-order-row{grid-template-columns:1fr}.customer-order-row>div:nth-child(2),.customer-order-total{grid-column:auto;text-align:left}.customer-total-bar{align-items:flex-start;flex-direction:column}.customer-approval-row{grid-template-columns:1fr}.customer-mail-row>summary{grid-template-columns:1fr}.customer-mail-row>summary>span:last-child{grid-column:auto}.customer-replacement-row{grid-template-columns:1fr}.customer-replacement-row>span:last-child{grid-column:auto}}
/* v2.8.82 – Ticketsystem */
.ticket-page,.ticket-detail,.ticket-compose,.ticket-customer-link{max-width:1500px;margin:0 auto}.ticket-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px;border-left:5px solid #1070ac}.ticket-hero h2,.ticket-compose-head h2,.ticket-detail-head h2{margin:4px 0 7px}.ticket-hero p,.ticket-compose-head p,.ticket-detail-head p{margin:0;color:#64748b}.ticket-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}.ticket-metrics .card{display:flex;flex-direction:column;gap:3px;color:inherit;text-decoration:none;padding:17px 19px}.ticket-metrics .card strong{font-size:1.75rem;color:#1070ac}.ticket-metrics .card span{font-size:.82rem;font-weight:800;color:#526276}.ticket-filter{display:grid;grid-template-columns:minmax(230px,2fr) repeat(4,minmax(140px,1fr)) auto auto;gap:10px;align-items:end;padding:16px}.ticket-filter select{width:100%}.ticket-list{display:grid;gap:10px}.ticket-list-row{display:grid;grid-template-columns:72px minmax(260px,1fr) minmax(190px,auto) auto;gap:16px;align-items:center;padding:15px 17px;border-left:4px solid transparent}.ticket-list-row.is-unread{border-left-color:#e59a0b;background:#fffdf5}.ticket-list-id{display:flex;flex-direction:column;gap:5px;font-weight:900;color:#1070ac}.ticket-list-id b,.ticket-new-badge{display:inline-flex;width:max-content;border-radius:999px;background:#fff1c7;color:#8a5200;padding:3px 8px;font-size:.7rem}.ticket-list-main{min-width:0}.ticket-list-main h3{margin:0 0 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ticket-list-main div{font-weight:700}.ticket-list-main small{display:block;color:#6b7788;margin-top:4px}.ticket-badges{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}.ticket-assignee,.ticket-priority{display:inline-flex;align-items:center;border:1px solid #d8e1e8;border-radius:999px;padding:5px 9px;font-size:.74rem;font-weight:800;background:#f8fafc}.ticket-priority.priority-high{background:#fee2e2;color:#991b1b;border-color:#fecaca}.ticket-priority.priority-low{color:#64748b}.ticket-status-new{background:#fff1c7!important;color:#8a5200!important}.ticket-status-open,.ticket-status-waiting_internal{background:#e8f3fa!important;color:#075985!important}.ticket-status-waiting_customer{background:#ede9fe!important;color:#5b21b6!important}.ticket-status-done{background:#dcfce7!important;color:#166534!important}.ticket-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:6px 2px}.ticket-detail-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(300px,.72fr);gap:18px;align-items:start}.ticket-thread{min-width:0}.ticket-message{padding:0;overflow:hidden;border-left:4px solid #1070ac}.ticket-message.outgoing{border-left-color:#16a34a;background:#fbfffc}.ticket-message header{display:flex;justify-content:space-between;gap:16px;padding:14px 17px;background:#f4f8fb;border-bottom:1px solid #dbe4eb}.ticket-message header>div{display:flex;align-items:center;gap:9px;min-width:0}.ticket-message header strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ticket-message header>span{white-space:nowrap;color:#64748b;font-size:.8rem}.ticket-message-address{padding:10px 17px 0;color:#64748b;font-size:.8rem}.ticket-message-body{padding:14px 17px;white-space:normal;overflow-wrap:anywhere;line-height:1.55}.ticket-message footer,.ticket-attachments{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 17px;border-top:1px solid #e4eaf0}.ticket-message footer form{margin-left:auto}.ticket-side{position:sticky;top:15px}.ticket-side .card{padding:17px}.ticket-internal{width:100%;margin-top:2px}.ticket-internal>.card{width:100%;padding:20px}.ticket-note-form textarea{min-height:110px;resize:vertical}.ticket-note-form .toolbar{justify-content:flex-end}.ticket-history .section-title{margin-bottom:2px}.ticket-events{display:grid;gap:12px}.ticket-events>div{border-left:3px solid #c9d7e1;padding:2px 0 2px 11px}.ticket-events strong,.ticket-events span{display:block}.ticket-events span{font-size:.75rem;color:#708090}.ticket-events p{margin:4px 0 0;font-size:.88rem}.ticket-danger{border-color:#fecaca}.ticket-compose{max-width:900px}.ticket-compose .card{padding:22px}.ticket-send-note{padding:12px 14px;border-radius:10px;background:#eaf5fb;color:#31546a;font-size:.86rem}.ticket-customer-link{max-width:900px}.ticket-customer-result{display:flex;align-items:center;justify-content:space-between;gap:18px}.ticket-customer-result div{display:grid;gap:3px}.ticket-customer-result span,.ticket-customer-result small{color:#64748b}.ticket-dashboard-alert .dashboard-reply-count{background:#1070ac}.customer-detail-metrics{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))!important}.customer-ticket-list{display:grid;gap:10px}
.ticket-message>summary{display:grid;grid-template-columns:minmax(0,1fr) auto 22px;align-items:center;gap:12px;padding:14px 17px;background:#f4f8fb;border-bottom:1px solid transparent;cursor:pointer;list-style:none}.ticket-message>summary::-webkit-details-marker{display:none}.ticket-message>summary>div{display:flex;align-items:center;gap:9px;min-width:0}.ticket-message>summary strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ticket-message>summary>span{white-space:nowrap;color:#64748b;font-size:.8rem}.ticket-message>summary::after{content:'⌄';font-size:1.25rem;font-weight:900;color:#1070ac;line-height:1;text-align:center;transition:transform .18s ease}.ticket-message[open]>summary{border-bottom-color:#dbe4eb}.ticket-message[open]>summary::after{transform:rotate(180deg)}
@media(max-width:1100px){.ticket-filter{grid-template-columns:repeat(2,minmax(0,1fr))}.ticket-filter .input{grid-column:1/-1}.ticket-detail-grid{grid-template-columns:1fr}.ticket-side{position:static}.ticket-list-row{grid-template-columns:62px minmax(0,1fr) auto}.ticket-badges{grid-column:2/3;justify-content:flex-start}}
@media(max-width:700px){.ticket-hero,.ticket-detail-head{display:grid}.ticket-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.ticket-filter{grid-template-columns:1fr}.ticket-filter .input{grid-column:auto}.ticket-list-row{grid-template-columns:1fr;padding:14px}.ticket-list-id{flex-direction:row;align-items:center}.ticket-badges{grid-column:auto;justify-content:flex-start}.ticket-list-row>.btn{width:100%}.ticket-message>summary{grid-template-columns:minmax(0,1fr) 22px}.ticket-message>summary>div{display:grid;gap:6px}.ticket-message>summary>span{grid-column:1;white-space:normal}.ticket-message>summary::after{grid-column:2;grid-row:1/3}.ticket-message footer form{margin-left:0}.ticket-customer-result{align-items:flex-start;display:grid}.ticket-customer-result .btn{width:100%}.ticket-detail-head .toolbar,.ticket-compose .toolbar{display:grid;grid-template-columns:1fr}.ticket-detail-head .btn,.ticket-compose .btn{width:100%}.ticket-pagination{justify-content:space-between}}

/* v2.8.83 – @Erwähnungen und persönliche Portal-Benachrichtigungen */
.topbar-actions{display:flex;align-items:center;gap:9px}.notification-center{position:relative}.notification-button{position:relative;display:grid;place-items:center;width:40px;height:40px;border:1px solid #c9d9e3;border-radius:11px;background:#fff;color:#0b527f;font-size:18px;cursor:pointer;box-shadow:0 3px 10px rgba(16,42,61,.06)}.notification-button:hover,.notification-button.has-unread{border-color:#1070ac;background:#edf7fc}.notification-button b{position:absolute;right:-6px;top:-7px;display:grid;place-items:center;min-width:21px;height:21px;padding:0 5px;border:2px solid #fff;border-radius:999px;background:#c5303f;color:#fff;font-size:10px;line-height:1}.notification-panel{position:absolute;z-index:1200;right:0;top:48px;width:min(430px,calc(100vw - 28px));max-height:min(620px,75vh);overflow:hidden;border:1px solid #cfdde6;border-radius:14px;background:#fff;box-shadow:0 22px 60px rgba(6,26,40,.22)}.notification-panel>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 15px;border-bottom:1px solid #e0e8ed;background:#f7fafc}.notification-panel>header>div{display:flex;flex-direction:column;gap:2px}.notification-panel>header strong{font-size:15px}.notification-panel>header span{color:#6b7b89;font-size:11px}.notification-list{max-height:min(530px,65vh);overflow:auto}.notification-item{display:flex;width:100%;flex-direction:column;gap:7px;padding:13px 15px;border:0;border-bottom:1px solid #e6edf1;background:#fff;color:#17212b;text-align:left;cursor:pointer}.notification-item:hover{background:#f6fafc}.notification-item.is-unread{background:#edf7fc;box-shadow:inset 4px 0 #1070ac}.notification-item-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.notification-item-head strong{font-size:13px}.notification-item-head small{flex:0 0 auto;color:#71808c;font-size:10px}.notification-item-message{display:-webkit-box;overflow:hidden;color:#465866;font-size:12px;line-height:1.42;-webkit-box-orient:vertical;-webkit-line-clamp:3}.notification-empty{padding:28px 18px;color:#71808c;text-align:center;font-size:12px}.notification-toasts{position:fixed;z-index:1600;right:20px;bottom:20px;display:flex;width:min(410px,calc(100vw - 28px));flex-direction:column;gap:10px;pointer-events:none}.notification-toast{display:grid;grid-template-columns:minmax(0,1fr) auto;overflow:hidden;border:1px solid #9fcce5;border-left:5px solid #1070ac;border-radius:13px;background:#fff;box-shadow:0 18px 48px rgba(6,26,40,.24);pointer-events:auto;animation:notificationIn .2s ease-out}.notification-toast-content{display:flex;min-width:0;flex-direction:column;gap:5px;padding:14px;border:0;background:transparent;color:#17212b;text-align:left;cursor:pointer}.notification-toast-content strong{font-size:14px}.notification-toast-content span{display:-webkit-box;overflow:hidden;color:#4d606f;font-size:12px;line-height:1.4;-webkit-box-orient:vertical;-webkit-line-clamp:3}.notification-toast-close{width:38px;border:0;background:#f4f7f9;color:#536777;font-size:22px;cursor:pointer}@keyframes notificationIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
.mention-input-wrap{position:relative}.ticket-note-form textarea{width:100%;min-height:110px;padding:12px;border:1px solid #cbd7df;border-radius:10px;background:#fff;color:#17212b;font:inherit;line-height:1.45;resize:vertical}.ticket-note-form textarea:focus{outline:3px solid rgba(16,112,172,.13);border-color:#1070ac}.mention-menu{position:absolute;z-index:80;right:0;top:calc(100% + 6px);width:min(390px,100%);max-height:260px;overflow:auto;border:1px solid #bfd4e1;border-radius:11px;background:#fff;box-shadow:0 14px 36px rgba(6,26,40,.18)}.mention-option{display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:0;border-bottom:1px solid #e6edf1;background:#fff;color:#17212b;text-align:left;cursor:pointer}.mention-option:last-child{border-bottom:0}.mention-option:hover,.mention-option.active{background:#eaf5fb}.mention-option strong{font-size:13px}.mention-option span{color:#1070ac;font-size:11px;font-weight:800}
@media(max-width:700px){.portal-shell .topbar{align-items:center}.portal-shell .topbar-actions{margin-left:auto}.notification-panel{position:fixed;top:76px;right:10px;left:10px;width:auto;max-height:72vh}.notification-toasts{right:14px;bottom:14px;left:14px;width:auto}.notification-item-head{flex-direction:column;gap:3px}.mention-menu{right:auto;left:0;width:100%}}

/* v2.8.84 – aufräumbare Meldungen und interne Direktnachrichten */
.notification-panel:not([hidden]){display:flex;flex-direction:column}.notification-panel .notification-list{min-height:0;flex:1}.notification-panel>header>.notification-panel-actions{display:flex;align-items:center;justify-content:flex-end;flex-direction:row;gap:6px;flex-wrap:wrap}.notification-panel>footer{display:flex;justify-content:flex-end;padding:9px 12px;border-top:1px solid #e1e9ee;background:#f8fafb}.notification-row{display:grid;grid-template-columns:minmax(0,1fr) 38px;align-items:stretch;border-bottom:1px solid #e6edf1;background:#fff}.notification-row.is-unread{background:#edf7fc;box-shadow:inset 4px 0 #1070ac}.notification-row.is-important{box-shadow:inset 4px 0 #c5303f}.notification-row.is-unread.is-important{background:#fff4f4}.notification-row .notification-item{border-bottom:0;background:transparent}.notification-remove{border:0;border-left:1px solid #e7edf1;background:transparent;color:#72828e;font-size:20px;cursor:pointer}.notification-remove:hover{background:#fee2e2;color:#991b1b}.notification-compose{padding:13px 14px;border-bottom:1px solid #dce6ec;background:#f5f9fb}.notification-compose form{display:grid;gap:9px}.notification-compose textarea,.portal-message-reply textarea{width:100%;padding:11px;border:1px solid #cbd7df;border-radius:9px;background:#fff;color:#17212b;font:inherit;line-height:1.45;resize:vertical}.notification-compose textarea:focus,.portal-message-reply textarea:focus{outline:3px solid rgba(16,112,172,.13);border-color:#1070ac}.notification-compose .toolbar{margin:0}.notification-recipient-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;max-height:150px;overflow:auto}.notification-recipient{display:flex;align-items:flex-start;gap:8px;padding:8px;border:1px solid #dbe5eb;border-radius:8px;background:#fff;cursor:pointer}.notification-recipient input{margin-top:3px}.notification-recipient>span{display:flex;min-width:0;flex-direction:column}.notification-recipient strong{overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.notification-recipient small{overflow:hidden;color:#6c7d89;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.notification-toast-content:disabled{opacity:1;cursor:default}
.portal-message-thread{max-width:960px;margin:0 auto}.portal-message-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.portal-message-head h2{margin:3px 0 6px}.portal-message-head p{margin:0;color:var(--muted);font-size:12px}.portal-message-history{display:flex;flex-direction:column;gap:10px;padding:6px 0}.portal-message-bubble{width:min(82%,720px);padding:13px 15px;border:1px solid #d9e4ea;border-radius:14px;background:#fff;box-shadow:0 5px 15px rgba(16,42,61,.05);line-height:1.5;overflow-wrap:anywhere}.portal-message-bubble.is-own{align-self:flex-end;border-color:#a9d3e8;background:#eaf6fc}.portal-message-bubble.is-other{align-self:flex-start}.portal-message-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:7px}.portal-message-meta strong{font-size:12px;color:#0b527f}.portal-message-meta span{color:#71808c;font-size:10px}.portal-message-reply .toolbar{margin:0}.portal-message-reply>label{font-size:14px}
@media(max-width:700px){.notification-panel>header{align-items:flex-start;flex-direction:column}.notification-panel-actions{width:100%;justify-content:flex-start}.notification-recipient-list{grid-template-columns:1fr}.portal-message-head{flex-direction:column}.portal-message-bubble{width:94%}}

/* v2.8.93 – sichere HTML-Mails und persönliche Signaturen */
.portal-mail-html{max-width:100%;color:#263744;font:inherit;line-height:1.58;overflow:hidden;overflow-wrap:anywhere;word-break:normal}.portal-mail-html>:first-child{margin-top:0}.portal-mail-html>:last-child{margin-bottom:0}.portal-mail-html p,.portal-mail-html div{max-width:100%}.portal-mail-html p{margin:.7em 0}.portal-mail-html h1,.portal-mail-html h2,.portal-mail-html h3,.portal-mail-html h4{margin:1em 0 .45em;color:#111827;line-height:1.25}.portal-mail-html ul,.portal-mail-html ol{margin:.65em 0;padding-left:1.6em}.portal-mail-html blockquote{margin:.8em 0;padding:.65em .9em;border-left:4px solid #b6cfdd;background:#f2f7fa;color:#536674}.portal-mail-html pre,.portal-mail-html code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.portal-mail-html pre{max-width:100%;padding:10px;border-radius:8px;background:#eef3f6;overflow:auto;white-space:pre-wrap}.portal-mail-html a{color:#0b6093;text-decoration:underline}.portal-mail-html img{display:block;max-width:100%!important;height:auto!important;margin:.75em auto;border-radius:6px;object-fit:contain}.portal-mail-html table{width:100%!important;max-width:100%!important;margin:.45em 0;border:0;border-collapse:collapse;table-layout:auto}.portal-mail-html th,.portal-mail-html td{max-width:100%;padding:0;border:0;background:transparent;color:#263744;font-size:inherit;text-align:left;text-transform:none;letter-spacing:normal;vertical-align:top;overflow-wrap:anywhere}.portal-mail-html th{font-weight:800}.portal-mail-html table:not(:has(>thead th)),.portal-mail-html table:not(:has(>thead th))>tbody,.portal-mail-html table:not(:has(>thead th))>tbody>tr,.portal-mail-html table:not(:has(>thead th))>tbody>tr>td{display:block;width:100%!important}.portal-mail-html table:not(:has(>thead th)) td:empty{display:none}.portal-mail-html table:has(>thead th){margin:.8em 0;border:1px solid #d5e0e6}.portal-mail-html table:has(>thead th)>thead th,.portal-mail-html table:has(>thead th)>tbody>tr>td{padding:7px 9px;border:1px solid #d5e0e6}.portal-mail-html table:has(>thead th)>thead th{background:#edf5f9}.approval-mail-body>.portal-mail-html,.ticket-message-body>.portal-mail-html{min-width:0}.account-signature-card{margin-top:14px}.account-signature-grid{align-items:stretch}.account-signature-preview{min-height:220px;padding:16px;border:1px solid #d7e2e8;border-radius:11px;background:#f8fafb}.account-signature-preview>.small{display:block;margin-bottom:14px;font-weight:850;text-transform:uppercase;letter-spacing:.04em}.account-signature-preview>.portal-mail-html{padding:18px;border:1px solid #dfe7ec;border-radius:9px;background:#fff}.account-signature-card textarea{width:100%;min-height:190px;resize:vertical}
@media(max-width:800px){.account-signature-grid{grid-template-columns:1fr}.account-signature-card .toolbar{display:grid;grid-template-columns:1fr}.account-signature-card .btn{width:100%}.portal-mail-html table{font-size:11px}.portal-mail-html img{margin-left:auto;margin-right:auto}}

/* v2.8.94 – Ticket-Arbeitsplatz */
.ticket-metrics{grid-template-columns:repeat(auto-fit,minmax(135px,1fr))}.ticket-metrics .metric-danger{border-color:#efb6b6;background:#fff7f7}.ticket-metrics .metric-danger strong{color:#b4232e}.ticket-metrics .metric-reminder{border-color:#f0d28e;background:#fffbef}.ticket-metrics .metric-reminder strong{color:#996300}.ticket-list-row.is-overdue{border-left:5px solid #c5303f}.ticket-deadlines{display:flex;gap:7px;flex-wrap:wrap;margin-top:8px}.ticket-deadlines span{padding:4px 7px;border-radius:7px;background:#fff0f0;color:#a2212d;font-size:11px;font-weight:800}.ticket-create-page,.template-page,.merge-page{max-width:1180px;margin:0 auto}.ticket-create-form textarea,.template-editor textarea,.ticket-compose textarea{width:100%;padding:12px;border:1px solid #cbd7df;border-radius:10px;font:inherit;line-height:1.5;resize:vertical}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.form-grid .span-2{grid-column:1/-1}.template-list{display:grid;gap:12px}.template-editor>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer}.template-editor[open]>summary{margin-bottom:18px;padding-bottom:12px;border-bottom:1px solid #dce5ea}.ticket-compose [data-draft-state]{color:#607583}.ticket-message footer form{display:inline-flex}.ticket-message .alert{margin:12px 0}.ticket-side .field small{display:block;margin-top:5px;color:#657987}.btn.warning{border-color:#d49a1c;background:#f6b929;color:#241800}.merge-page .ticket-list-row{grid-template-columns:90px minmax(0,1fr) auto}
@media(max-width:760px){.form-grid{grid-template-columns:1fr}.form-grid .span-2{grid-column:auto}.ticket-hero{align-items:flex-start;flex-direction:column}.ticket-hero>.toolbar{width:100%}.ticket-hero>.toolbar .btn{flex:1}.merge-page .ticket-list-row{grid-template-columns:1fr}.ticket-list-row.is-overdue{border-left-width:4px}}

/* v2.8.96 – mobile Nachrichtenansicht mit erreichbarer Aktionsleiste */
@media(max-width:700px){
  .notification-panel{
    right:8px;
    left:8px;
    bottom:auto;
    height:calc(100dvh - 86px - env(safe-area-inset-bottom));
    max-height:none;
    border-radius:14px;
  }
  .notification-panel.is-composing .notification-list,
  .notification-panel.is-composing>footer{display:none}
  .notification-panel.is-composing .notification-compose{
    display:block;
    min-height:0;
    flex:1 1 auto;
    overflow-x:hidden;
    overflow-y:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    padding-bottom:calc(10px + env(safe-area-inset-bottom));
  }
  .notification-panel.is-composing .notification-compose form{min-height:min-content}
  .notification-panel.is-composing .notification-compose .toolbar{
    position:sticky;
    z-index:4;
    bottom:calc(-10px - env(safe-area-inset-bottom));
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    margin:0 -2px;
    padding:10px 2px calc(10px + env(safe-area-inset-bottom));
    border-top:1px solid #d8e4eb;
    background:#f5f9fb;
  }
  .notification-panel.is-composing .notification-compose .toolbar .btn{width:100%;min-height:44px}
}
@media(max-width:700px) and (max-height:650px){
  .notification-panel>header{gap:7px;padding:9px 12px}
  .notification-panel.is-composing .notification-recipient-list{max-height:105px}
  .notification-panel.is-composing textarea{min-height:82px;max-height:120px}
}

/* v2.8.97 – manuelle finAPI-/Bankzahlungen */
.manual-payment-card{margin-top:14px;padding:0;overflow:hidden;border-left:4px solid #1070ac}.manual-payment-card>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 17px;background:#f4f9fc;cursor:pointer;list-style:none}.manual-payment-card>summary::-webkit-details-marker{display:none}.manual-payment-card>summary>span:first-child{display:flex;min-width:0;flex-direction:column;gap:3px}.manual-payment-card>summary small{color:#647784;font-weight:500;line-height:1.4}.manual-payment-summary-action{flex:0 0 auto;color:#0b6093;font-size:12px;font-weight:900}.manual-payment-card[open]>summary{border-bottom:1px solid #dce7ed}.manual-payment-card[open] .manual-payment-summary-action{font-size:0}.manual-payment-card[open] .manual-payment-summary-action::after{content:'− Schließen';font-size:12px}.manual-payment-form{display:grid;gap:14px;padding:17px}.manual-payment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.manual-payment-grid label{display:flex;min-width:0;flex-direction:column;gap:6px}.manual-payment-grid label>span{color:#405461;font-size:12px;font-weight:850}.manual-payment-grid .span-2{grid-column:1/-1}.manual-payment-grid textarea{width:100%;padding:11px;border:1px solid #cbd7df;border-radius:9px;background:#fff;color:#17212b;font:inherit;line-height:1.45;resize:vertical}.manual-payment-grid textarea:focus{outline:3px solid rgba(16,112,172,.13);border-color:#1070ac}.manual-payment-warning{padding:11px 13px;border:1px solid #f1d18b;border-radius:9px;background:#fffaeb;color:#765000;font-size:12px;line-height:1.45}.order-payments form{margin:0}.order-payments td:last-child .btn{white-space:nowrap}
@media(max-width:700px){.manual-payment-card>summary{align-items:flex-start}.manual-payment-grid{grid-template-columns:1fr}.manual-payment-grid .span-2{grid-column:auto}.manual-payment-form .toolbar{display:grid;grid-template-columns:1fr}.manual-payment-form .btn{width:100%}.order-payments td:last-child .btn{min-height:38px}}

/* v2.8.98 – Einstellungsnavigation, Klappbereiche und sichere HTML-Mails */
.portal-module-einstellungen .settings-section-nav{position:sticky;z-index:15;top:0;display:flex;gap:7px;align-items:center;overflow-x:auto;margin:0 0 16px;padding:10px;border:1px solid #cfdee7;border-radius:12px;background:rgba(255,255,255,.96);box-shadow:0 6px 18px rgba(30,55,72,.08);scrollbar-width:thin}.settings-section-nav a{flex:0 0 auto;padding:8px 11px;border:1px solid #c7d9e4;border-radius:999px;background:#f3f8fb;color:#0b6093;font-size:11px;font-weight:850;text-decoration:none}.settings-section-nav a:hover,.settings-section-nav a:focus{border-color:#1070ac;background:#e7f4fb}.settings-collapsible{padding:0!important;overflow:hidden}.settings-collapsible>summary{list-style:none}.settings-collapsible>summary::-webkit-details-marker{display:none}.settings-collapsible-summary{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:16px 18px;background:#f5f9fb;cursor:pointer}.settings-collapsible-summary>span:first-child{display:flex;min-width:0;flex-direction:column;gap:3px}.settings-collapsible-summary strong{font-size:17px}.settings-collapsible-summary small{color:#647784;font-size:11px;font-weight:550}.settings-collapsible-action{color:#0b6093;font-size:12px;font-weight:900}.settings-collapsible[open]>.settings-collapsible-summary{border-bottom:1px solid #d9e5ec}.settings-collapsible[open]>.settings-collapsible-summary .settings-collapsible-action{font-size:0}.settings-collapsible[open]>.settings-collapsible-summary .settings-collapsible-action::after{content:'Schließen';font-size:12px}.settings-collapsible-body{padding:18px}.print-queue-collapsible form.settings-collapsible-body{display:block}
@media(max-width:700px){.settings-section-nav{top:0;margin-left:-4px;margin-right:-4px;border-radius:9px}.settings-collapsible-summary{grid-template-columns:minmax(0,1fr) auto;padding:14px}.settings-collapsible-summary .status{grid-column:1;justify-self:start}.settings-collapsible-action{grid-column:2;grid-row:1/3}.settings-collapsible-body{padding:14px}.print-job-pagination{display:flex!important}}

/* v2.9.1 – Wiedervorlagen und „Später erinnern“ */
.ticket-list-row.is-reminder-due:not(.is-overdue){border-left:5px solid #d49a1c}.ticket-deadlines span.is-planned{background:#fff8df;color:#805b00}.ticket-deadlines span.is-due{background:#fff0f0;color:#a2212d}.reminder-snooze-card{border-color:#efd28d;background:#fffdf6}.reminder-snooze-card h3{margin:0}.reminder-quick-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.reminder-quick-actions .btn{width:100%}.notification-snooze{grid-column:1/-1;display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:8px 12px 10px;border-top:1px solid #e4ebef;background:#fffaf0}.notification-snooze>span{margin-right:2px;color:#725100;font-size:10px;font-weight:850}.notification-snooze .btn{padding:5px 8px;font-size:10px}.notification-row.is-unread .notification-snooze{background:#fff8e6}
@media(max-width:700px){.ticket-list-row.is-reminder-due:not(.is-overdue){border-left-width:4px}.reminder-quick-actions{grid-template-columns:1fr 1fr}.notification-snooze{display:grid;grid-template-columns:1fr 1fr}.notification-snooze>span{grid-column:1/-1}.notification-snooze .btn{width:100%}}

/* v2.9.3 – Bankrückzahlungen und Bestellsuche in Tickets */
.manual-refund-card{border-left-color:#26845b}.manual-refund-card>summary{background:#f3faf7}.manual-refund-card .manual-payment-summary-action{color:#1d704c}.manual-refund-warning{border-color:#a9d8c2;background:#f2fbf6;color:#245c43}.ticket-order-field{position:relative}.ticket-order-picker{position:relative;display:block}.ticket-order-results{position:absolute;z-index:35;top:calc(100% + 5px);right:0;left:0;overflow:hidden;border:1px solid #c4d5df;border-radius:10px;background:#fff;box-shadow:0 12px 28px rgba(35,56,70,.18)}.ticket-order-result{display:flex;width:100%;flex-direction:column;gap:3px;padding:10px 12px;border:0;border-bottom:1px solid #e4ebef;background:#fff;color:#17212b;text-align:left;cursor:pointer}.ticket-order-result:last-child{border-bottom:0}.ticket-order-result:hover,.ticket-order-result:focus{outline:0;background:#edf7fc}.ticket-order-result strong{font-size:12px}.ticket-order-result small{overflow:hidden;color:#627683;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.ticket-order-result-state{display:block;padding:11px 12px;color:#627683;font-size:11px}.ticket-order-result-state.is-error{color:#a2212d}
@media(max-width:700px){.ticket-order-results{position:relative;top:auto;margin-top:5px;box-shadow:none}.ticket-order-result{min-height:48px}}

/* v2.9.5 – durchgängiger Ticket-Arbeitsplatz */
.ticket-customer-field{position:relative}.ticket-customer-picker{position:relative;display:block}.ticket-customer-results{position:absolute;z-index:36;top:calc(100% + 5px);right:0;left:0;overflow:hidden;border:1px solid #c4d5df;border-radius:10px;background:#fff;box-shadow:0 12px 28px rgba(35,56,70,.18)}
.ticket-quick-note{padding:18px;border-left:4px solid #1070ac;background:#fafdff}.ticket-quick-note .section-title{margin:0 0 10px}.ticket-quick-note .section-title h2{margin:2px 0 0}.ticket-note-inline{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end}.ticket-note-inline textarea{min-height:78px}.ticket-note-inline>.btn{min-height:44px}
.ticket-control-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.ticket-card-divider{margin:4px 0 0;padding-top:12px;border-top:1px solid #dce6ec;color:#334b5a;font-size:13px}.ticket-contact-links{display:grid;gap:5px;overflow-wrap:anywhere}.ticket-contact-links a{color:#0b6093;font-size:12px;font-weight:700}.ticket-tools-collapsible{padding:0!important;overflow:hidden}.ticket-tools-collapsible>summary,.ticket-collapsible>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 17px;cursor:pointer;list-style:none}.ticket-tools-collapsible>summary::-webkit-details-marker,.ticket-collapsible>summary::-webkit-details-marker{display:none}.ticket-tools-collapsible>summary::after,.ticket-collapsible>summary::after{content:'⌄';color:#1070ac;font-size:19px;font-weight:900}.ticket-tools-collapsible[open]>summary,.ticket-collapsible[open]>summary{border-bottom:1px solid #dce6ec}.ticket-tools-collapsible[open]>summary::after,.ticket-collapsible[open]>summary::after{transform:rotate(180deg)}.ticket-tools-collapsible>div{padding:15px 17px}.ticket-collapsible{padding:0!important}.ticket-collapsible .ticket-events{padding:16px}
.ticket-list-row{grid-template-columns:64px minmax(240px,1fr) minmax(390px,.8fr) auto}.ticket-inline-controls{display:grid;grid-template-columns:minmax(115px,1fr) minmax(105px,.8fr) minmax(145px,1.2fr);gap:6px;align-items:center}.ticket-inline-controls form{margin:0}.ticket-inline-controls select{width:100%;min-height:35px;padding:6px 25px 6px 8px;border:1px solid #cad8e1;border-radius:8px;background:#fff;color:#263744;font-size:11px;font-weight:750}.ticket-inline-controls select:focus{outline:3px solid rgba(16,112,172,.13);border-color:#1070ac}.ticket-quick-state{grid-column:1/-1;min-height:12px;color:#647784;font-size:10px;text-align:right}.ticket-quick-state.is-saved{color:#18724d}.ticket-quick-state.is-error{color:#a2212d}.ticket-list-actions{display:grid;gap:6px}.ticket-list-actions form{margin:0}.ticket-list-actions .btn{width:100%}.metric-unread{border-color:#efd28d;background:#fffdf5}.metric-unread strong{color:#996300!important}
.ticket-compose{max-width:1500px}.ticket-compose-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(390px,.85fr);gap:18px;align-items:start}.ticket-compose-form{min-width:0}.ticket-compose-addresses{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.ticket-compose-conversation{position:sticky;top:15px;min-width:0;padding:17px}.ticket-compose-conversation .section-title{margin:0 0 12px}.ticket-compose-thread{display:grid;gap:9px;max-height:calc(100vh - 245px);overflow:auto;padding-right:3px}.ticket-compose-message{overflow:hidden;border:1px solid #d8e3e9;border-left:4px solid #1070ac;border-radius:10px;background:#fff}.ticket-compose-message.outgoing{border-left-color:#27945f}.ticket-compose-message.is-source{box-shadow:0 0 0 2px rgba(16,112,172,.13)}.ticket-compose-message>summary{display:flex;flex-direction:column;gap:3px;padding:10px 12px;background:#f5f9fb;cursor:pointer}.ticket-compose-message>summary span{color:#647784;font-size:10px;font-weight:750}.ticket-compose-message>summary strong{overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.ticket-compose-message-address{padding:8px 12px 0;color:#647784;font-size:10px}.ticket-compose-message-body{max-height:330px;overflow:auto;padding:10px 12px;color:#334b5a;font-size:12px;line-height:1.5}.ticket-compose-message-body .portal-mail-html{font-size:inherit}
@media(max-width:1250px){.ticket-list-row{grid-template-columns:62px minmax(0,1fr) auto}.ticket-inline-controls{grid-column:2/3}.ticket-list-actions{grid-column:3;grid-row:1/3}.ticket-compose-layout{grid-template-columns:1fr}.ticket-compose-conversation{position:static}.ticket-compose-thread{max-height:650px}}
@media(max-width:760px){.ticket-customer-results{position:relative;top:auto;margin-top:5px;box-shadow:none}.ticket-note-inline{grid-template-columns:1fr}.ticket-note-inline>.btn{width:100%}.ticket-control-grid,.ticket-compose-addresses{grid-template-columns:1fr}.ticket-list-row{grid-template-columns:1fr}.ticket-inline-controls{grid-column:auto;grid-template-columns:1fr}.ticket-list-actions{grid-column:auto;grid-row:auto;grid-template-columns:1fr 1fr}.ticket-quick-state{grid-column:auto;text-align:left}.ticket-compose-conversation{padding:14px}.ticket-compose-thread{max-height:none}.ticket-compose-message-body{max-height:none}}

/* v2.9.6 – Rechnungs- und Kundenarchiv */
.invoice-page{max-width:1500px;margin:0 auto}.invoice-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px;background:linear-gradient(135deg,#fff 0%,#edf8fd 100%)}.invoice-hero h2{margin:4px 0 7px}.invoice-hero p{max-width:760px;margin:0;color:#627683}.invoice-summary{display:grid;grid-template-columns:repeat(3,minmax(110px,1fr));gap:8px}.invoice-summary>div{display:flex;min-width:110px;flex-direction:column;padding:13px;border:1px solid #cfe0e9;border-radius:11px;background:#fff}.invoice-summary strong{color:#0f70ab;font-size:25px}.invoice-summary span{color:#607482;font-size:10px;font-weight:800;text-transform:uppercase}.invoice-summary .needs-attention{border-color:#ecc680;background:#fffaf0}.invoice-summary .needs-attention strong{color:#9a6600}.invoice-filters{display:grid;grid-template-columns:minmax(260px,1.6fr) repeat(4,minmax(135px,.6fr)) auto auto;gap:9px;padding:14px}.invoice-list-head{display:flex;align-items:center;justify-content:space-between;padding:15px 17px;border-bottom:1px solid #dce6ec}.invoice-list-head>div{display:flex;flex-direction:column}.invoice-list-head span{color:#667985;font-size:11px}.invoice-table td small{display:block;margin-top:3px;color:#6c7d89}.invoice-link,.invoice-inline-link{padding:0;border:0;background:transparent;color:#09689f;text-align:left;text-decoration:none;cursor:pointer}.invoice-link{display:flex;flex-direction:column;gap:2px}.invoice-link strong{font-size:13px;text-decoration:underline;text-decoration-color:#a9d4e8;text-underline-offset:3px}.invoice-link span{font-size:9px;font-weight:850;text-transform:uppercase}.invoice-inline-link{display:block;margin-top:3px;font-size:11px;font-weight:800;text-decoration:underline;text-decoration-color:#b8d8e8;text-underline-offset:2px}.invoice-link:hover,.invoice-inline-link:hover{color:#064a72}.invoice-import-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.invoice-import-grid form{display:flex;flex-direction:column;justify-content:space-between;gap:14px;padding:15px;border:1px solid #d8e4ea;border-radius:10px;background:#f9fbfc}.invoice-detail-head{display:flex;align-items:center;justify-content:space-between;gap:15px}.invoice-detail-head h2{margin:3px 0}.invoice-detail-head p{margin:0;color:#637683}.invoice-detail-actions{display:flex;gap:7px;flex-wrap:wrap}.invoice-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.invoice-meta>div{display:flex;flex-direction:column;gap:3px}.invoice-meta span{color:#687b87;font-size:10px;font-weight:800;text-transform:uppercase}.invoice-pdf-shell{overflow:hidden;height:min(76vh,980px);min-height:620px;border:1px solid #cbd9e1;border-radius:12px;background:#eef3f6}.invoice-pdf-shell iframe{width:100%;height:100%;border:0;background:#fff}.invoice-missing{padding:28px;text-align:center}.invoice-missing h3{margin-top:0}.customer-document-archive{padding:0!important;overflow:hidden}.customer-document-list{display:grid}.customer-document-row{display:grid;grid-template-columns:auto 48px minmax(0,1fr) auto;gap:10px;align-items:center;padding:12px 14px;border-bottom:1px solid #e1e9ed;cursor:pointer}.customer-document-row:last-child{border-bottom:0}.customer-document-row:hover{background:#f8fbfd}.customer-document-icon{display:grid;height:36px;place-items:center;border-radius:8px;background:#e8f4fa;color:#0b6093;font-size:8px;font-weight:900}.customer-document-row>span:nth-child(3){display:flex;min-width:0;flex-direction:column}.customer-document-row small{overflow:hidden;color:#687b87;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.customer-document-actions{display:flex;gap:6px}.customer-document-empty{padding:24px}.customer-document-send{padding:12px 14px;border-top:1px solid #d9e4ea;background:#f8fbfd}.customer-document-send>summary{color:#0b6093;font-size:12px;font-weight:900;cursor:pointer}.customer-document-send[open]>summary{margin-bottom:14px}.customer-document-send label,.customer-file-upload label{display:flex;flex-direction:column;gap:5px}.customer-document-send label>span,.customer-file-upload label>span{color:#415462;font-size:11px;font-weight:850}.customer-document-send textarea{width:100%;padding:11px;border:1px solid #cbd7df;border-radius:9px;font:inherit;line-height:1.45;resize:vertical}
@media(max-width:1050px){.invoice-hero{align-items:flex-start;flex-direction:column}.invoice-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.invoice-filters>input:first-child{grid-column:1/-1}.invoice-import-grid{grid-template-columns:1fr}}
@media(max-width:700px){.invoice-summary{width:100%;grid-template-columns:repeat(3,1fr)}.invoice-summary>div{min-width:0;padding:10px}.invoice-summary strong{font-size:20px}.invoice-filters{grid-template-columns:1fr}.invoice-filters>input:first-child{grid-column:auto}.invoice-table th:nth-child(3),.invoice-table td:nth-child(3),.invoice-table th:nth-child(5),.invoice-table td:nth-child(5){display:none}.invoice-detail-head{align-items:flex-start;flex-direction:column}.invoice-meta{grid-template-columns:1fr}.invoice-pdf-shell{height:70vh;min-height:480px}.customer-document-row{grid-template-columns:auto 40px minmax(0,1fr)}.customer-document-actions{grid-column:2/-1}.customer-document-actions .btn{flex:1}.customer-document-send .form-grid,.customer-file-upload.form-grid{grid-template-columns:1fr}.customer-document-send .span-2,.customer-file-upload .span-2{grid-column:auto}}

/* v2.9.7 – Stornorechnungen als eigener Dokumenttyp */

/* v2.9.8 – vollständiger historischer Rechnungsindex */
.invoice-backfill-form{grid-column:1/-1}.invoice-backfill-progress{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.invoice-backfill-progress span{padding:6px 9px;border:1px solid #cfe0e9;border-radius:8px;background:#fff;color:#536875;font-size:10px}.invoice-reset-check{display:flex!important;align-items:center;flex-direction:row!important;gap:7px!important;color:#6a4d00!important;font-size:10px!important}

/* v2.9.9 – fortsetzbarer Stapelimport für große Rechnungsarchive */
.invoice-import-progress{display:grid;gap:7px;margin-top:12px;padding:12px;border:1px solid #cfe0e9;border-radius:10px;background:#fff}.invoice-import-progress.is-error{border-color:#efb3b7;background:#fff7f7}.invoice-import-progress-head{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#435866;font-size:11px}.invoice-import-progress-head span{font-weight:750}.invoice-import-progress-head strong{white-space:nowrap;color:#0b679d}.invoice-import-progress-track{height:9px;overflow:hidden;border-radius:999px;background:#e3edf2}.invoice-import-progress-track>span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#0f70ab,#2ca776);transition:width .2s ease}.invoice-import-progress small{color:#667985}.invoice-import-actions{display:flex;gap:8px;flex-wrap:wrap}.invoice-import-actions .btn{flex:1}
/* v2.9.14 – Versandarchiv */
.mail-archive-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.mail-archive-groups{display:flex;flex-wrap:wrap;gap:7px}.mail-archive-groups a{text-decoration:none}.mail-archive-list{display:grid;gap:10px}.mail-archive-item{border:1px solid var(--line,#d6e0e8);border-radius:12px;background:#fff;overflow:hidden}.mail-archive-item>summary{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:14px 16px;cursor:pointer;list-style:none}.mail-archive-item>summary::-webkit-details-marker{display:none}.mail-archive-item>summary:after{content:'▾';color:#1479b8;font-weight:900;transition:transform .16s ease}.mail-archive-item[open]>summary:after{transform:rotate(180deg)}.mail-archive-summary-main{display:grid;gap:6px;min-width:0;flex:1}.mail-archive-summary-main>span{display:flex;gap:6px;flex-wrap:wrap}.mail-archive-summary-main>strong,.mail-archive-summary-main>small{overflow-wrap:anywhere}.mail-archive-summary-meta{display:grid;gap:4px;text-align:right;white-space:nowrap}.mail-archive-summary-meta small{color:var(--muted,#697787)}.mail-archive-body{border-top:1px solid var(--line,#d6e0e8);padding:16px;background:#f8fbfd}.mail-archive-kv{margin-bottom:14px}.mail-archive-content{padding:14px;border:1px solid var(--line,#d6e0e8);border-radius:10px;background:#fff;white-space:normal;overflow-wrap:anywhere;max-height:360px;overflow:auto;line-height:1.5}.mail-archive-attachments{margin-top:10px}.mail-archive-actions{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-top:14px}.mail-archive-resend{display:flex;align-items:flex-end;gap:8px;margin-left:auto}.mail-archive-resend .field{margin:0;min-width:min(360px,48vw)}.mail-archive-pagination{display:flex;justify-content:center;gap:7px;flex-wrap:wrap;margin-top:16px}
@media(max-width:760px){.mail-archive-toolbar,.mail-archive-item>summary,.mail-archive-actions,.mail-archive-resend{align-items:stretch;flex-direction:column}.mail-archive-summary-meta{text-align:left;white-space:normal}.mail-archive-resend{margin-left:0}.mail-archive-resend .field{min-width:0;width:100%}.mail-archive-resend .btn{width:100%}}

/* v2.9.21 – kompakter Verwaltungsworkflow */
.manual-payment-actions-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}.manual-payment-actions-grid>.manual-payment-card{min-width:0;margin:0}.invoice-mobile-open{display:none}.order-number-link{display:inline-flex;font-size:13px}.customer-address-history{margin-top:12px}.customer-address-history>.settings-collapsible-body{padding-top:16px}.portal-module-einstellungen .settings-collapsible,.portal-module-drucksystem .settings-collapsible{min-width:0}.portal-module-drucksystem #print-jobs>.settings-collapsible-body{padding:0}.portal-module-drucksystem #print-jobs .table-wrap{border-radius:0 0 12px 12px}
@media(max-width:800px){.manual-payment-actions-grid{grid-template-columns:1fr}.invoice-mobile-open{display:block}.invoice-mobile-open .btn{width:100%}.invoice-pdf-shell{height:68vh;min-height:420px;width:100%;max-width:100%;overscroll-behavior:contain}.invoice-pdf-shell iframe{display:block;width:100%;max-width:100%;touch-action:pan-y}.orders-overview .status{white-space:normal}}

/* v2.9.39 – verbindliche Shopify-Teilzahlungen */
.shopify-partial-payment-card{border-left-color:#7b4cc2;margin-top:16px;background:#fff}.shopify-partial-payment-card>summary{background:#f8f5fd}.shopify-partial-payment-card .manual-payment-summary-action{color:#6740a8}.shopify-partial-payment-grid{display:grid;grid-template-columns:minmax(210px,.7fr) repeat(2,minmax(210px,1fr));gap:13px;align-items:stretch}.shopify-partial-payment-grid>label{display:flex;min-width:0;flex-direction:column;gap:6px}.shopify-partial-payment-grid>label>span,.shopify-partial-payment-facts>span{color:#405461;font-size:12px;font-weight:850}.shopify-partial-payment-facts{display:flex;min-width:0;flex-direction:column;gap:4px;padding:11px 13px;border:1px solid #ddd3ee;border-radius:9px;background:#fcfaff}.shopify-partial-payment-facts strong{color:#5f389d;font-size:18px}.shopify-partial-payment-facts small{color:#687987;line-height:1.4}.shopify-partial-payment-confirm{display:flex;align-items:flex-start;gap:9px;padding:12px 13px;border:1px solid #cbb9e6;border-radius:9px;background:#f9f6fd;color:#493866;font-size:12px;font-weight:750;line-height:1.45}.shopify-partial-payment-confirm input{flex:0 0 auto;width:17px;height:17px;margin:1px 0 0}.shopify-partial-payment-setup{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:17px}.shopify-partial-payment-setup .alert{flex:1;margin:0}
@media(max-width:950px){.shopify-partial-payment-grid{grid-template-columns:1fr}.shopify-partial-payment-setup{align-items:stretch;flex-direction:column}.shopify-partial-payment-setup .btn{width:100%}}
.portal-mail-html table:not(:has(>thead th)) tr,.portal-mail-html table:not(:has(>thead th)) td{display:block;width:100%!important}

/* v2.9.28 – schwebende Statusmeldungen ohne Layoutverschiebung */
.portal-flash-toasts{position:fixed;z-index:1750;top:94px;right:22px;display:flex;width:min(460px,calc(100vw - 32px));flex-direction:column;gap:10px;pointer-events:none}
.portal-flash-toast{display:grid;grid-template-columns:34px minmax(0,1fr) 38px;align-items:start;overflow:hidden;border:1px solid #bdd8c9;border-left:5px solid #25875a;border-radius:13px;background:#fff;box-shadow:0 18px 48px rgba(6,26,40,.22);pointer-events:auto;animation:portalFlashIn .22s ease-out}
.portal-flash-toast.info{border-color:#acd3e7;border-left-color:#1070ac}.portal-flash-toast.warning{border-color:#ead18f;border-left-color:#d49a1c}.portal-flash-toast.error{border-color:#efb5ba;border-left-color:#c5303f}
.portal-flash-icon{display:grid;width:25px;height:25px;margin:13px 0 13px 12px;place-items:center;border-radius:999px;background:#def3e7;color:#176b46;font-size:13px;font-weight:950}.portal-flash-toast.info .portal-flash-icon{background:#e3f2f9;color:#0b6093}.portal-flash-toast.warning .portal-flash-icon{background:#fff1c9;color:#805900}.portal-flash-toast.error .portal-flash-icon{background:#fee4e6;color:#a2212d}
.portal-flash-copy{display:flex;min-width:0;flex-direction:column;gap:3px;padding:12px 10px}.portal-flash-copy strong{color:#17212b;font-size:12px}.portal-flash-copy span{color:#435866;font-size:12px;line-height:1.42;overflow-wrap:anywhere}
.portal-flash-close{align-self:stretch;width:38px;border:0;border-left:1px solid #e5ecef;background:#f7f9fa;color:#536777;font-size:21px;cursor:pointer}.portal-flash-close:hover,.portal-flash-close:focus-visible{background:#edf3f6;color:#17212b;outline:0}
.portal-flash-toast.is-leaving{animation:portalFlashOut .22s ease-in forwards}@keyframes portalFlashIn{from{opacity:0;transform:translateX(20px) scale(.98)}to{opacity:1;transform:none}}@keyframes portalFlashOut{to{opacity:0;transform:translateX(24px) scale(.98)}}
@media(max-width:700px){.portal-flash-toasts{top:76px;right:12px;left:12px;width:auto}.portal-flash-toast{grid-template-columns:32px minmax(0,1fr) 38px}.portal-flash-icon{margin-left:10px}.portal-flash-copy{padding-right:6px}}
@media(prefers-reduced-motion:reduce){.portal-flash-toast,.portal-flash-toast.is-leaving{animation-duration:.01ms}}

/* v2.9.29 – erwartete Rechnungs-PDFs und geschütztes Entfernen */
.invoice-summary{grid-template-columns:repeat(5,minmax(105px,1fr))}.invoice-not-due{border-color:#dce5ea;background:#f8fafb}.invoice-not-due h3{color:#405765}.invoice-secondary-status{display:block;width:max-content;margin-top:5px}.invoice-admin-tools{padding:0!important;overflow:hidden;border-color:#edc5c8}.invoice-admin-tools>summary{display:flex;align-items:center;justify-content:space-between;padding:14px 17px;cursor:pointer;list-style:none}.invoice-admin-tools>summary::-webkit-details-marker{display:none}.invoice-admin-tools>summary::after{content:'⌄';color:#b4232e;font-size:19px;font-weight:900}.invoice-admin-tools[open]>summary{border-bottom:1px solid #ead8da}.invoice-admin-tools[open]>summary::after{transform:rotate(180deg)}.invoice-admin-tools>div{padding:15px 17px}.invoice-admin-tools form{margin:0}.invoice-batch-form{display:contents}.invoice-select-column{width:68px;text-align:center!important}.invoice-select-column input{width:18px;height:18px;accent-color:#c5303f;cursor:pointer}
@media(max-width:700px){.invoice-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v2.9.30 – ruhige Bestell- und Rechnungstabellen ohne Layoutsprung */
html{scrollbar-gutter:stable}
.portal-module-bestellungen .table-wrap,.portal-module-rechnungen .invoice-table-card .table-wrap{overflow-x:auto;overflow-y:hidden;scrollbar-gutter:stable}
.orders-overview,.invoice-table{table-layout:fixed}
.orders-overview{width:100%;min-width:1210px}
.orders-overview .order-col-number{width:110px}.orders-overview .order-col-invoice{width:100px}.orders-overview .order-col-customer{width:240px}.orders-overview .order-col-created{width:125px}.orders-overview .order-col-status{width:120px}.orders-overview .order-col-payment{width:150px}.orders-overview .order-col-fulfillment{width:150px}.orders-overview .order-col-total{width:125px}.orders-overview .order-col-action{width:90px}
.invoice-table{width:100%;min-width:1018px}.invoice-table .invoice-col-select{width:68px}.invoice-table .invoice-col-document{width:130px}.invoice-table .invoice-col-date{width:110px}.invoice-table .invoice-col-customer{width:260px}.invoice-table .invoice-col-order{width:150px}.invoice-table .invoice-col-total{width:120px}.invoice-table .invoice-col-file{width:180px}
.orders-overview td,.invoice-table td{overflow-wrap:anywhere;word-break:normal}
.orders-overview td.right,.invoice-table td.right{overflow-wrap:normal}
@media(max-width:800px){.orders-overview{min-width:1120px}.invoice-table{min-width:900px}}

/* v2.9.31 – einheitliche Inhaltsbreite */
.invoice-page{width:100%;max-width:none;margin:0}

/* v2.9.32 – feste Tabellengeometrie ohne zweiten vertikalen Reflow */
.portal-module-bestellungen .table-card,.portal-module-rechnungen .invoice-table-card{overflow-anchor:none}
.portal-module-bestellungen .table-wrap,.portal-module-rechnungen .invoice-table-card .table-wrap{overflow-anchor:none}
.orders-overview th,.invoice-table th{position:static;top:auto}
.orders-overview col.order-col-number{width:110px}.orders-overview col.order-col-invoice{width:100px}.orders-overview col.order-col-customer{width:240px}.orders-overview col.order-col-created{width:125px}.orders-overview col.order-col-status{width:120px}.orders-overview col.order-col-payment{width:150px}.orders-overview col.order-col-fulfillment{width:150px}.orders-overview col.order-col-total{width:125px}.orders-overview col.order-col-action{width:90px}
.invoice-table col.invoice-col-select{width:68px}.invoice-table col.invoice-col-document{width:130px}.invoice-table col.invoice-col-date{width:110px}.invoice-table col.invoice-col-customer{width:260px}.invoice-table col.invoice-col-order{width:150px}.invoice-table col.invoice-col-total{width:120px}.invoice-table col.invoice-col-file{width:180px}

/* v2.9.34 – Ticketübersicht in voller Inhaltsbreite */
.ticket-page{width:100%;max-width:none;margin-right:0;margin-left:0}

/* v2.9.37 – Desktop-Tabellen bleiben unverändert; mobile Erweiterung läuft nur bis 800 px */
/* v2.9.40 – DATEV-Exporte, Archiv und XLSX-Transaktionsbericht */
.datev-page{max-width:1500px;margin:0 auto}.datev-hero{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:28px}.datev-hero h2,.datev-create-card h3,.datev-worker-card h3,.datev-runs h3,.datev-archive-head h3{margin:.2rem 0}.datev-hero p{max-width:850px;margin:.4rem 0 0;color:var(--muted,#657487);line-height:1.55}.datev-format-summary{display:flex;gap:10px;flex:0 0 auto}.datev-format-summary span{display:flex;flex-direction:column;min-width:110px;padding:14px;border:1px solid #d6e1e9;border-radius:12px;background:#f7fafc;color:#526477}.datev-format-summary strong{font-size:1.6rem;color:#0f70ab}.datev-top-grid,.datev-bottom-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(300px,.8fr);gap:18px}.datev-create-card,.datev-worker-card,.datev-runs{padding:24px}.datev-period-switch,.datev-types{display:flex;flex-wrap:wrap;gap:10px 18px;padding:14px;border:1px solid #d8e2e9;border-radius:12px;background:#f8fafc}.datev-period-switch label,.datev-types label,.datev-send-toggle{display:flex;align-items:center;gap:7px}.datev-types legend{padding:0 8px;font-weight:800}.datev-date-range{display:grid;grid-template-columns:1fr 1fr;gap:12px}.datev-worker-card dl{display:grid;gap:0;margin:0}.datev-worker-card dl div{display:flex;justify-content:space-between;gap:20px;padding:12px 0;border-bottom:1px solid #e2e9ee}.datev-worker-card dt{color:#66778a}.datev-worker-card dd{margin:0;font-weight:800;text-align:right}.datev-runs .section-head,.datev-archive-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}.datev-run-list{display:grid;gap:12px}.datev-run{border:1px solid #d7e1e8;border-radius:14px;padding:16px;background:#fff}.datev-run>header{display:flex;justify-content:space-between;gap:16px}.datev-run>header div,.datev-run-files>div{display:flex;flex-direction:column;gap:3px}.datev-run small{color:#6b7b8d}.datev-run-files{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:14px}.datev-run-files>div{padding:11px;border-radius:10px;background:#f5f8fa}.datev-run-files form{margin-top:6px}.datev-filters{display:flex;flex-wrap:wrap;gap:10px;padding:16px}.datev-filters .input{max-width:230px}.datev-archive-form{padding:0;overflow:hidden}.datev-archive-head{padding:20px 22px;border-bottom:1px solid #dce5eb}.datev-mail-selection{display:flex;gap:8px;align-items:center}.datev-mail-selection .input{min-width:270px}.datev-table{width:100%;min-width:1060px}.datev-table td small{display:block;margin-top:4px;color:#6d7d8e}.datev-file-actions{display:flex;gap:7px;flex-wrap:wrap}.error-text{color:#ae2431!important;max-width:520px;white-space:normal}.datev-preview{width:100%}.datev-preview-head{display:flex;align-items:center;justify-content:space-between;gap:18px}.datev-preview-head h2{font-size:1.1rem;overflow-wrap:anywhere}.datev-preview-card{padding:16px}.datev-preview-table{font-size:.82rem;white-space:nowrap}.datev-preview-table th{position:sticky;top:0;background:#edf4f8;z-index:1}.datev-preview-table td,.datev-preview-table th{padding:8px 10px;border-bottom:1px solid #e3e9ee}.datev-bottom-grid details{align-self:start}
@media(max-width:900px){.datev-hero,.datev-runs .section-head,.datev-archive-head,.datev-preview-head{align-items:stretch;flex-direction:column}.datev-top-grid,.datev-bottom-grid{grid-template-columns:1fr}.datev-run-files{grid-template-columns:1fr 1fr}.datev-mail-selection{align-items:stretch;flex-direction:column}.datev-mail-selection .input{min-width:0;width:100%}}
@media(max-width:560px){.datev-format-summary,.datev-date-range{grid-template-columns:1fr;display:grid}.datev-format-summary span{min-width:0}.datev-run-files{grid-template-columns:1fr}.datev-create-card,.datev-worker-card,.datev-runs{padding:18px}}

/* v2.9.41 – DATEV volle Breite, Laufabbruch und stabile Mobilbreite */
.datev-page{width:100%;max-width:none;margin:0}.datev-bottom-grid.datev-bottom-single{grid-template-columns:minmax(0,1fr)}.datev-run-head-actions,.datev-worker-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.datev-run-head-actions form,.datev-worker-actions form{margin:0}
html,body{width:100%;max-width:100%;overflow-x:hidden}.portal-shell .main{min-width:0;max-width:100%;overflow-x:clip}.portal-shell .main>*{min-width:0;max-width:100%}.portal-shell .table-wrap{width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}.portal-shell img,.portal-shell svg,.portal-shell video,.portal-shell iframe{max-width:100%}
@media(max-width:800px){.portal-shell input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),.portal-shell select,.portal-shell textarea{font-size:16px}.datev-run>header{align-items:stretch;flex-direction:column}.datev-run-head-actions,.datev-worker-actions{align-items:stretch;justify-content:flex-start;flex-direction:column}.datev-run-head-actions .btn,.datev-worker-actions .btn{width:100%}.datev-run-head-actions form,.datev-worker-actions form{width:100%}}

/* v2.9.42 – Angebotsmodul */
.quote-page,.quote-editor{width:100%;max-width:none;margin:0}.quote-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:26px}.quote-hero h2{margin:.2rem 0}.quote-hero p{margin:.35rem 0 0;max-width:920px;color:#657487}.quote-new-button{white-space:nowrap}.quote-metrics{display:grid;grid-template-columns:repeat(6,minmax(130px,1fr));gap:12px}.quote-metrics .card{display:flex;flex-direction:column;gap:3px;padding:18px;text-decoration:none;color:inherit}.quote-metrics .card:hover,.quote-metrics .is-active{border-color:#1070ac;box-shadow:0 8px 22px rgba(16,112,172,.12)}.quote-metrics strong{font-size:1.65rem;color:#1070ac}.quote-metrics span{font-size:.82rem;color:#637487}.quote-filters{display:grid;grid-template-columns:minmax(260px,1fr) 190px 150px auto auto;gap:10px;padding:16px}.quote-list-card{padding:0;overflow:hidden}.quote-list-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:18px 20px;border-bottom:1px solid #dbe4ea}.quote-list-head>div{display:flex;flex-direction:column}.quote-list-head span{font-size:.82rem;color:#66788a}.quote-table{width:100%;min-width:1080px}.quote-table td small,.quote-number-link small{display:block;margin-top:4px;color:#6b7c8d}.quote-number-link{display:flex;flex-direction:column;text-decoration:none}.quote-unlinked{display:inline-flex;margin-top:5px;padding:3px 7px;border-radius:999px;background:#fff5d9;color:#815700;font-size:.72rem;font-weight:800}.quote-status-draft{background:#edf1f4;color:#52616f}.quote-status-sent{background:#eaf4fa;color:#0d628f}.quote-status-accepted,.quote-status-converted{background:#e8f8ef;color:#197044}.quote-status-rejected,.quote-status-cancelled,.quote-status-expired{background:#fdecee;color:#a72232}.quote-admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.quote-block-list{display:grid;gap:8px}.quote-block-list details{border:1px solid #dae3e9;border-radius:10px}.quote-block-list summary{display:flex;justify-content:space-between;padding:12px 14px;cursor:pointer}.quote-block-list form{padding:14px;border-top:1px solid #e1e8ed}.quote-editor-nav,.quote-head-status,.quote-card-head,.quote-pdf-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.quote-editor-grid{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:18px;align-items:start}.quote-section-title{margin-top:0}.quote-customer-search,.quote-product-search{position:relative;margin-bottom:15px}.quote-search-results{position:absolute;z-index:30;left:0;right:0;top:100%;max-height:390px;overflow:auto;border:1px solid #cfdde6;border-radius:10px;background:#fff;box-shadow:0 15px 38px rgba(22,42,56,.16)}.quote-product-result,.quote-customer-result{width:100%;display:flex;align-items:center;gap:11px;padding:11px 13px;border:0;border-bottom:1px solid #e2e9ee;background:#fff;text-align:left;cursor:pointer}.quote-product-result:hover,.quote-customer-result:hover{background:#eef7fb}.quote-product-result img{width:48px;height:48px;object-fit:contain;border-radius:6px;background:#f1f4f6}.quote-product-result>span,.quote-customer-result>span{display:flex;flex:1;flex-direction:column;min-width:0}.quote-product-result small,.quote-customer-result small{color:#687a89}.quote-search-loading,.quote-search-error{padding:14px}.quote-search-error{color:#a52030}.quote-linked-customer{margin-top:12px;padding:10px 12px;border-radius:9px;background:#eaf7ef;color:#24633e}.quote-linked-customer.neutral{background:#f5f7f8;color:#657382}.quote-items-table{width:100%;min-width:890px}.quote-items-table th:nth-child(1){width:46%}.quote-items-table th:nth-child(2){width:90px}.quote-items-table th:nth-child(3){width:130px}.quote-items-table th:nth-child(4){width:105px}.quote-item-main{display:flex;gap:10px}.quote-item-main>div{display:grid;gap:6px;flex:1}.quote-item-main img{width:58px;height:58px;object-fit:contain;border-radius:7px;background:#f2f5f6}.quote-item-main small{color:#697a88}.quote-number-input{min-width:76px}.quote-percent-input{display:flex;align-items:center;gap:5px}.quote-percent-input span{font-weight:800;color:#657786}.quote-items-empty,.quote-empty-panel{padding:24px;text-align:center;color:#687a89;background:#f7f9fa;border-radius:10px}.quote-text-block-picker{display:flex;gap:8px;margin-bottom:14px}.quote-total-card>div{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #e3e9ed}.quote-total-card .quote-grand-total{margin-top:4px;padding-top:13px;border-top:2px solid #1070ac;border-bottom:0;font-size:1.15rem;color:#1070ac}.quote-save-card{display:grid;gap:10px}.quote-save-card small,.quote-shopify-card small{color:#687a89}.quote-after-save-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.55fr);gap:18px}.quote-pdf-card{padding:20px}.quote-pdf-actions{margin:12px 0}.quote-pdf-shell{height:min(78vh,920px);border:1px solid #cedbe4;border-radius:10px;overflow:hidden;background:#e8edf0}.quote-pdf-shell iframe{width:100%;height:100%;border:0}.quote-document-list{display:grid;gap:8px}.quote-document-list>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px;border-bottom:1px solid #e0e7ec}.quote-document-list span{display:flex;flex-direction:column}.quote-document-list small{color:#687a89}.quote-event-list{display:grid;gap:0}.quote-event-list>div{display:grid;grid-template-columns:12px 1fr;gap:10px}.quote-event-list>div>span{width:9px;height:9px;margin-top:7px;border-radius:50%;background:#1070ac}.quote-event-list p{display:flex;flex-direction:column;margin:0;padding-bottom:14px}.quote-event-list small{color:#687a89}.quote-editor .w100{width:100%}
@media(max-width:1150px){.quote-metrics{grid-template-columns:repeat(3,1fr)}.quote-editor-grid,.quote-after-save-grid,.quote-admin-grid{grid-template-columns:1fr}.quote-editor-grid aside{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.quote-save-card{align-self:start}}
@media(max-width:760px){.quote-hero,.quote-list-head,.quote-editor-nav,.quote-card-head,.quote-pdf-actions{align-items:stretch;flex-direction:column}.quote-new-button{width:100%}.quote-metrics{grid-template-columns:repeat(2,1fr)}.quote-filters{grid-template-columns:1fr}.quote-editor-grid aside{display:grid;grid-template-columns:1fr}.quote-customer-fields{grid-template-columns:1fr}.quote-customer-fields .span-2{grid-column:auto}.quote-text-block-picker{flex-direction:column}.quote-pdf-shell{height:72vh}.quote-document-list>div{align-items:stretch;flex-direction:column}}

/* v2.9.43 - Angebotsworkflow und Dokumentlayout */
@media(min-width:761px){.quote-filters{grid-template-columns:minmax(250px,1fr) 170px 190px 140px auto auto}}
.quote-tax-exempt{display:grid;grid-template-columns:auto 1fr;align-items:start;gap:3px 9px;padding:11px 12px;border:1px solid #cfe0e8;border-radius:9px;background:#f6fafb}.quote-tax-exempt input{grid-row:1/3;margin-top:3px}.quote-tax-exempt small{color:#647787}.quote-item-weight{display:flex;align-items:center;gap:8px;color:#667989;font-size:.75rem}.quote-item-weight .input{width:120px;padding:7px 8px}.quote-attachment-history{margin-top:12px;border-top:1px solid #dce5ea;padding-top:10px}.quote-attachment-history summary{cursor:pointer;font-weight:800}.quote-attachment-history ul{margin:9px 0 0;padding-left:19px}.quote-attachment-history li{margin:4px 0;overflow-wrap:anywhere}
@media(max-width:1100px) and (min-width:761px){.quote-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.quote-filters>input:first-of-type{grid-column:1/-1}}

/* v2.9.48 – aufgeräumte Arbeitsbereiche und DATEV-Dateiverwaltung */
.picklist-recent-card{padding:0;overflow:hidden}.picklist-recent-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px 24px;border-bottom:1px solid #dbe5eb}.picklist-recent-head h2{margin:3px 0 4px}.picklist-recent-head p{margin:0}.picklist-recent-count{flex:0 0 auto;padding:6px 10px;border-radius:999px;background:#edf4f8;color:#4d6677;font-size:.75rem;font-weight:800}.picklist-job-list{display:grid}.picklist-job-row{display:grid;grid-template-columns:10px minmax(0,1fr) auto;align-items:center;gap:14px;padding:14px 24px;border-bottom:1px solid #e4eaee}.picklist-job-row:last-child{border-bottom:0}.picklist-job-row:hover{background:#f8fbfc}.picklist-job-state{width:9px;height:9px;border-radius:50%;background:#91a0aa;box-shadow:0 0 0 5px #eef2f4}.picklist-job-state.done{background:#2e9a5d;box-shadow:0 0 0 5px #e4f6eb}.picklist-job-state.running,.picklist-job-state.new{background:#d89917;box-shadow:0 0 0 5px #fff4d8}.picklist-job-state.error{background:#bf3040;box-shadow:0 0 0 5px #fde8eb}.picklist-job-main{min-width:0}.picklist-job-title{display:flex;align-items:center;gap:9px}.picklist-job-title strong{font-size:.92rem}.picklist-job-title .status{padding:3px 7px;font-size:.65rem}.picklist-job-meta{display:flex;flex-wrap:wrap;gap:5px 0;margin-top:5px;color:#687a88;font-size:.74rem}.picklist-job-meta span+span:before{content:'·';margin:0 7px;color:#a0adb6}.picklist-job-error{display:block;margin-top:6px;color:#ad2635;overflow-wrap:anywhere}.picklist-job-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.picklist-job-actions form{margin:0}
.order-search-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:18px 0 12px;padding-bottom:12px;border-bottom:1px solid #e1e8ed}.order-search-actions .order-manual-refresh{margin-left:auto}.order-search-row{display:grid;grid-template-columns:minmax(280px,1fr) auto auto;gap:10px;align-items:center;width:100%}.order-search-row .accounting-search-input{min-width:0}.order-search-row .accounting-search-input .input{width:100%}
.datev-selection-actions{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;justify-content:flex-end}.datev-bulk-actions{display:flex;align-items:center;gap:8px}.datev-filename{display:block;max-width:420px;margin-bottom:7px;font-size:.76rem;overflow-wrap:anywhere}.datev-table input[type=checkbox]{width:18px;height:18px}.quote-pdf-card{scroll-margin-top:18px}
@media(max-width:1000px){.datev-selection-actions{align-items:stretch;flex-direction:column}.datev-bulk-actions{flex-wrap:wrap}.datev-bulk-actions .btn{flex:1}.order-search-actions .order-manual-refresh{margin-left:0}}
@media(max-width:760px){.picklist-recent-head{padding:18px}.picklist-job-row{grid-template-columns:10px minmax(0,1fr);padding:14px 18px}.picklist-job-actions{grid-column:2;justify-content:flex-start}.picklist-job-actions .btn{width:100%}.picklist-job-actions form{width:100%}.order-search-actions{align-items:stretch;flex-direction:column}.order-search-actions>a,.order-search-actions form,.order-search-actions .btn{width:100%}.order-manual-load{grid-template-columns:1fr}.order-search-row{grid-template-columns:1fr}.order-search-row .btn{width:100%}.datev-mail-selection,.datev-bulk-actions{align-items:stretch;flex-direction:column}.datev-bulk-actions .btn{width:100%}}

/* ORDER-EDITOR-v2.9.179 */
.drawer:has(.order-editor){width:min(980px,94vw)}
.drawer:has(.order-editor) .drawer-body{background:#f6f8fa}
.order-editor{--oe-blue:#1070ac;--oe-ink:#20303a;--oe-muted:#6f7f89;--oe-line:#dfe6ea;min-width:0;color:var(--oe-ink)}
.order-editor-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;margin:0 0 10px;padding:16px 17px;border:1px solid var(--oe-line);border-radius:12px;background:#fff}
.order-editor-hero-copy{min-width:0}
.order-editor-overline{margin-bottom:3px;color:var(--oe-blue);font-size:11px;font-weight:800}
.order-editor-hero h1{margin:0;font-size:22px;line-height:1.2;color:#172730;overflow-wrap:anywhere}
.order-editor-meta{margin-top:4px;color:var(--oe-muted);font-size:12px}
.order-editor-state-row{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.order-editor-state-row .status{padding:4px 8px;border-radius:999px;font-size:11px}
.order-editor-total{min-width:145px;padding-left:18px;border-left:1px solid var(--oe-line);text-align:right}
.order-editor-total span,.order-editor-total small{display:block;color:var(--oe-muted);font-size:10px}
.order-editor-total strong{display:block;margin:2px 0;font-size:21px;line-height:1.15;color:#163447}
.order-editor-system-strip{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 10px;padding:8px 10px;border:1px solid var(--oe-line);border-radius:10px;background:#fff}
.order-editor-system-copy{display:flex;align-items:center;min-width:0;gap:7px;color:var(--oe-muted);font-size:11px}
.order-editor-system-copy strong{color:#425661}
.order-editor-system-dot{flex:0 0 7px;width:7px;height:7px;border-radius:50%;background:#d89c00}
.order-editor-tabs{display:flex;gap:2px;overflow-x:auto;margin:0 0 12px;padding:4px;border:1px solid var(--oe-line);border-radius:11px;background:#fff;scrollbar-width:none}
.order-editor-tabs::-webkit-scrollbar{display:none}
.order-editor-tab{flex:0 0 auto;min-height:36px;padding:7px 10px;border:0;border-radius:8px;background:transparent;color:#60737e;font:inherit;font-size:12px;font-weight:750;cursor:pointer;white-space:nowrap}
.order-editor-tab:hover{background:#f1f5f7;color:#345566}
.order-editor-tab.is-active{background:#1070ac;color:#fff}
.order-editor-panel{display:none}
.order-editor-panel.is-active{display:block}
.order-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.order-editor .card.order-editor-card{min-width:0;margin:0;padding:15px;border:1px solid var(--oe-line);border-radius:12px;background:#fff;box-shadow:none}
.order-editor-spaced-card{margin-top:10px!important}
.order-editor-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:12px}
.order-editor-card-head .dashboard-eyebrow{font-size:9px;letter-spacing:.06em}
.order-editor-card-head h2{margin:2px 0 0;font-size:16px;line-height:1.2;color:#20333d}
.order-editor-readonly,.order-editor-live-badge{display:inline-flex;align-items:center;padding:4px 7px;border-radius:999px;font-size:10px;font-weight:800;white-space:nowrap}
.order-editor-readonly{background:#eef2f4;color:#60727c}
.order-editor-live-badge{border:1px solid #ecd99c;background:#fff7dc;color:#75530c}
.order-editor-kv{display:grid;grid-template-columns:minmax(125px,.8fr) minmax(0,1.25fr);gap:8px 12px;margin:0}
.order-editor-kv dt{color:var(--oe-muted);font-size:12px}
.order-editor-kv dd{margin:0;font-size:13px;font-weight:650;overflow-wrap:anywhere}
.order-editor-field{display:grid;gap:5px;margin-bottom:10px}
.order-editor-field>span{color:#5e707a;font-size:11px;font-weight:750}
.order-editor-field textarea,.order-editor-field input,.order-editor-field select{width:100%;min-width:0;border-radius:9px}
.order-editor-field textarea:disabled,.order-editor-field input:disabled,.order-editor-field select:disabled{opacity:1;color:#4f6069;background:#f7f9fa}
.order-editor-address{color:#31444e;line-height:1.55}
.order-editor-disabled-actions,.order-editor-document-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}
.order-editor-disabled-actions button:disabled,.order-editor-document-actions button:disabled,.order-editor-item-actions button:disabled{opacity:.55;cursor:not-allowed}
.order-editor-item-list{display:grid;gap:7px}
.order-editor-item{display:grid;grid-template-columns:54px minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:10px;border:1px solid #e2e8ec;border-radius:10px;background:#fff}
.order-editor-item>img,.order-editor-item-placeholder{width:54px;height:54px;object-fit:contain;border-radius:8px;background:#f7f9fa}
.order-editor-item-placeholder{display:grid;place-items:center;color:#93a0a8}
.order-editor-item-main{display:grid;min-width:0;gap:2px}
.order-editor-item-main strong{font-size:13px;line-height:1.3;overflow-wrap:anywhere}
.order-editor-item-main small{color:var(--oe-muted);font-size:11px;overflow-wrap:anywhere}
.order-editor-item-meta{display:flex;gap:14px}
.order-editor-item-meta span{display:grid;gap:1px;text-align:right}
.order-editor-item-meta small{color:#829099;font-size:9px;text-transform:uppercase}
.order-editor-item-meta strong{font-size:13px}
.order-editor-item-actions{display:flex;gap:5px}
.order-editor-entry{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #edf1f3}
.order-editor-entry:last-child{border-bottom:0}
.order-editor-entry>div{display:grid;min-width:0;gap:2px}
.order-editor-entry small{color:var(--oe-muted);font-size:11px;overflow-wrap:anywhere}
.order-editor-comment{align-items:flex-start}
.order-editor-comment p{margin:6px 0 0;line-height:1.45}
.order-editor-lock-note{margin-top:10px;padding:9px 10px;border:1px solid #dfe6ea;border-radius:9px;background:#f8fafb;color:#657680;font-size:11px;line-height:1.45}
.order-editor-document-main{grid-column:1/-1}
.order-command-bar.order-command-bar-v3{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap;margin:0 0 12px}
.order-command-live{margin-right:auto;color:#74848d;font-size:11px;font-weight:700}
.order-command-actions{display:flex;align-items:center;gap:7px}
.order-command-actions>.btn,.order-action-menu>summary{min-height:38px}
.order-edit-icon{font-size:15px;line-height:1}
.order-action-menu{position:relative}
.order-action-menu>summary{list-style:none;cursor:pointer}
.order-action-menu>summary::-webkit-details-marker{display:none}
.order-action-popover{position:absolute;right:0;top:calc(100% + 6px);z-index:40;width:300px;padding:6px;border:1px solid #dbe3e7;border-radius:10px;background:#fff;box-shadow:0 12px 28px rgba(26,45,56,.16)}
.order-action-popover-head{padding:7px 8px 9px;border-bottom:1px solid #edf1f3}
.order-action-popover-head strong{display:block;font-size:12px}
.order-action-popover-head span{display:block;margin-top:2px;color:#7b8991;font-size:10px}
.order-action-item{display:flex;width:100%;align-items:center;gap:9px;padding:9px 8px;border:0;border-radius:8px;background:transparent;text-align:left}
.order-action-item:disabled{opacity:.62}
.order-action-item-icon{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:8px;background:#f1f4f6;color:#57707d;font-size:15px;font-weight:800}
.order-action-item>span:last-child{display:grid;gap:1px}
.order-action-item strong{font-size:12px;color:#344a55}
.order-action-item small{color:#84929a;font-size:10px}
@media(max-width:900px){
  .order-editor-grid{grid-template-columns:1fr}
  .order-editor-document-main{grid-column:auto}
}
@media(max-width:800px){
  .drawer:has(.order-editor){width:100vw;max-width:none}
  .drawer:has(.order-editor) .drawer-body{padding:10px;background:#f6f8fa}
  .order-editor-hero{grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:12px;margin-bottom:8px;border-radius:10px}
  .order-editor-overline{font-size:10px}
  .order-editor-hero h1{font-size:18px}
  .order-editor-meta{font-size:11px}
  .order-editor-state-row{gap:4px;margin-top:8px}
  .order-editor-state-row .status{padding:4px 7px;font-size:10px}
  .order-editor-total{min-width:108px;padding-left:10px}
  .order-editor-total strong{font-size:17px}
  .order-editor-system-strip{padding:7px 8px;margin-bottom:8px}
  .order-editor-system-copy{gap:5px;font-size:10px}
  .order-editor-system-copy span:last-child{display:none}
  .order-editor-system-strip .btn{min-height:34px;padding:6px 8px;font-size:11px}
  .order-editor-tabs{margin-bottom:9px;padding:3px;border-radius:9px}
  .order-editor-tab{min-height:36px;padding:7px 9px;font-size:11px}
  .order-editor .card.order-editor-card{padding:12px;border-radius:10px}
  .order-editor-card-head{align-items:center;margin-bottom:10px}
  .order-editor-card-head h2{font-size:15px}
  .order-editor-card-head button[disabled]{display:none}
  .order-editor-kv{grid-template-columns:108px minmax(0,1fr);gap:7px 9px}
  .order-editor-kv dt{font-size:11px}
  .order-editor-kv dd{font-size:12px}
  .order-editor-disabled-actions{display:none}
  .order-editor-item{grid-template-columns:46px minmax(0,1fr);align-items:start;gap:9px;padding:9px}
  .order-editor-item>img,.order-editor-item-placeholder{width:46px;height:46px}
  .order-editor-item-meta{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:6px;padding-top:7px;border-top:1px solid #edf1f3}
  .order-editor-item-meta span{padding:6px 8px;border-radius:7px;background:#f7f9fa;text-align:left}
  .order-editor-item-actions{display:none}
  .order-editor-document-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}
  .order-editor-document-actions .btn{width:100%;min-height:39px;padding-inline:8px}
  .order-editor-entry{align-items:flex-start;padding:9px 0}
  .order-command-bar.order-command-bar-v3{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:7px;margin-bottom:10px}
  .order-command-live{grid-column:1/-1;grid-row:2;margin:0;text-align:right;font-size:10px}
  .order-command-actions{grid-column:1/-1;grid-row:1;display:grid;grid-template-columns:1fr auto;gap:7px;min-width:0}
  .order-command-actions>.btn{width:100%;min-width:0;min-height:42px}
  .order-action-menu>summary{min-height:42px;padding-inline:12px}
  .order-action-popover{right:0;width:min(300px,calc(100vw - 32px))}
}
@media(max-width:420px){
  .order-editor-hero{grid-template-columns:1fr}
  .order-editor-total{display:flex;align-items:baseline;justify-content:space-between;gap:8px;min-width:0;padding:9px 0 0;border-left:0;border-top:1px solid var(--oe-line);text-align:left}
  .order-editor-total span,.order-editor-total small{display:inline}
  .order-editor-total strong{margin-left:auto;font-size:18px}
  .order-editor-kv{grid-template-columns:98px minmax(0,1fr)}
  .order-editor-document-actions{grid-template-columns:1fr}
  .order-editor-system-strip{gap:6px}
  .order-editor-system-copy strong{white-space:nowrap}
}

/* ORDER-ACTIONS-v2.9.182 */
.order-command-bar.order-command-bar-v4{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:12px;
  margin:0 0 14px;
  padding:10px 12px;
  border:1px solid #dce5ea;
  border-radius:12px;
  background:#fff;
}
.order-command-bar-v4 .order-command-status{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-width:0;
  color:#5d707b;
  font-size:11px;
  font-weight:750;
  white-space:nowrap;
}
.order-command-bar-v4 .order-command-status-dot{
  flex:0 0 8px;
  width:8px;
  height:8px;
  border-radius:50%;
  background:#2f9b68;
  box-shadow:0 0 0 3px rgba(47,155,104,.11);
}
.order-command-bar-v4 .order-command-actions{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:8px;
  min-width:0;
}
.order-command-bar-v4 .order-command-actions>.btn,
.order-command-bar-v4 .order-action-menu>summary{
  min-height:40px;
  margin:0;
  padding:8px 13px;
}
.order-command-bar-v4 .order-command-edit{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  font-weight:800;
}
.order-command-bar-v4 .order-edit-icon{
  display:inline-block;
  font-size:15px;
  line-height:1;
}
.order-command-bar-v4 .order-action-menu{
  position:relative;
  margin:0;
}
.order-command-bar-v4 .order-action-menu>summary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  list-style:none;
  cursor:pointer;
  user-select:none;
}
.order-command-bar-v4 .order-action-menu>summary::-webkit-details-marker{display:none}
.order-command-bar-v4 .order-command-more-icon{
  display:inline-block;
  transform:translateY(-1px);
  font-size:15px;
  line-height:1;
  letter-spacing:1px;
}
.order-command-bar-v4 .order-action-popover{
  position:absolute;
  right:0;
  top:calc(100% + 7px);
  z-index:60;
  width:310px;
  max-width:calc(100vw - 32px);
  padding:6px;
  border:1px solid #dbe3e7;
  border-radius:12px;
  background:#fff;
  box-shadow:0 14px 36px rgba(22,46,61,.16);
}
.order-command-bar-v4 .order-action-popover-head{
  padding:8px 9px 10px;
  border-bottom:1px solid #edf1f3;
}
.order-command-bar-v4 .order-action-popover-head strong{
  display:block;
  color:#20333d;
  font-size:12px;
}
.order-command-bar-v4 .order-action-popover-head span{
  display:block;
  margin-top:2px;
  color:#7b8991;
  font-size:10px;
}
.order-command-bar-v4 .order-action-item{
  display:grid;
  grid-template-columns:32px minmax(0,1fr);
  align-items:center;
  gap:9px;
  width:100%;
  margin:2px 0 0;
  padding:9px;
  border:0;
  border-radius:9px;
  background:transparent;
  text-align:left;
}
.order-command-bar-v4 .order-action-item:disabled{opacity:.58}
.order-command-bar-v4 .order-action-item-icon{
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border-radius:8px;
  background:#f1f4f6;
  color:#57707d;
  font-size:15px;
  font-weight:850;
}
.order-command-bar-v4 .order-action-item>span:last-child{
  display:grid;
  min-width:0;
  gap:1px;
}
.order-command-bar-v4 .order-action-item strong{
  color:#344a55;
  font-size:12px;
}
.order-command-bar-v4 .order-action-item small{
  color:#84929a;
  font-size:10px;
  line-height:1.35;
}

@media(max-width:800px){
  .order-command-bar.order-command-bar-v4{
    grid-template-columns:1fr;
    gap:8px;
    padding:9px;
    margin-bottom:11px;
    border-radius:11px;
    background:#f8fafb;
  }
  .order-command-bar-v4 .order-command-status{
    justify-self:start;
    min-height:24px;
    padding:4px 8px;
    border:1px solid #e0e7eb;
    border-radius:999px;
    background:#fff;
    font-size:10px;
  }
  .order-command-bar-v4 .order-command-status-dot{
    width:7px;
    height:7px;
    flex-basis:7px;
    box-shadow:none;
  }
  .order-command-bar-v4 .order-command-actions{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:7px;
    width:100%;
  }
  .order-command-bar-v4 .order-command-actions>.btn,
  .order-command-bar-v4 .order-action-menu,
  .order-command-bar-v4 .order-action-menu>summary{
    width:100%;
    min-width:0;
  }
  .order-command-bar-v4 .order-command-actions>.btn,
  .order-command-bar-v4 .order-action-menu>summary{
    min-height:44px;
    padding:9px 10px;
    border-radius:9px;
    font-size:13px;
  }
  .order-command-bar-v4 .order-action-popover{
    right:0;
    width:min(330px,calc(100vw - 38px));
  }
}

@media(max-width:390px){
  .order-command-bar-v4 .order-command-actions{
    grid-template-columns:1fr 1fr;
  }
  .order-command-bar-v4 .order-command-actions>.btn,
  .order-command-bar-v4 .order-action-menu>summary{
    padding-inline:8px;
    font-size:12px;
  }
}

/* ORDER-OVERVIEW-v2.9.183 */
.order-overview-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px 16px;
  align-items:start;
  margin:0 0 12px;
  padding:14px 16px;
  border:1px solid #dce5ea;
  border-radius:14px;
  background:#fff;
}
.order-overview-main{min-width:0}
.order-overview-number{font-size:20px;font-weight:850;line-height:1.1;color:#14232d}
.order-overview-sub{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;margin-top:5px;color:#657883;font-size:12px}
.order-overview-sub .invoice-inline-link{font-size:12px}
.order-overview-tools{display:flex;align-items:center;gap:7px;justify-content:flex-end}
.order-live-source{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:5px 9px;border:1px solid #dbe5ea;border-radius:999px;background:#f8fafb;color:#536a76;font-size:11px;font-weight:800;white-space:nowrap}
.order-live-source-dot{width:7px;height:7px;border-radius:50%;background:#2d9a67;box-shadow:0 0 0 3px rgba(45,154,103,.10)}
.order-overview-refresh{display:inline-flex!important;align-items:center;justify-content:center;gap:6px;min-height:34px!important;padding:6px 9px!important;border-radius:9px!important;font-size:12px!important;white-space:nowrap}
.order-overview-status{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:7px;align-items:center}
.order-overview-status .status{margin:0}
.order-command-bar.order-command-bar-v5{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:8px;
  margin:0 0 14px;
}
.order-command-bar-v5 .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-width:0;
  min-height:42px;
  margin:0;
  border-radius:10px;
  font-weight:800;
}
.order-command-bar-v5 .order-command-edit{box-shadow:0 4px 12px rgba(16,112,172,.16)}
.order-command-bar-v5 .order-command-actions-button{background:#fff}
.order-command-bar-v5 .order-command-icon{font-size:15px;line-height:1}
.order-test-compact{
  margin:14px 0 0;
  padding:14px;
  border:1px solid #cfe2ed;
  border-radius:14px;
  background:#f7fbfd;
}
.order-test-compact-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.order-test-compact-title{min-width:0}
.order-test-compact-title .dashboard-eyebrow{margin-bottom:3px}
.order-test-compact-title h3{margin:0;font-size:16px;line-height:1.2}
.order-test-compact-title p{margin:4px 0 0;font-size:11px;color:#6a7f8a}
.order-test-compact-actions{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
.order-test-compact-actions .btn{min-height:34px;padding:6px 9px;font-size:11px}
.order-test-compact-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:11px}
.order-test-fact{min-width:0;padding:8px 9px;border:1px solid #dce8ee;border-radius:10px;background:#fff}
.order-test-fact span{display:block;color:#71838c;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.order-test-fact strong{display:block;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#263d49;font-size:12px}
.order-actions-page{display:grid;gap:12px}
.order-actions-intro{padding:12px 13px;border:1px solid #dce5ea;border-radius:12px;background:#f8fafb;color:#526975;font-size:12px}
.order-actions-grid{display:grid;gap:8px}
.order-action-card{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;align-items:center;padding:12px;border:1px solid #dde6ea;border-radius:12px;background:#fff}
.order-action-card-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#eef5f9;color:#1070ac;font-size:18px;font-weight:850}
.order-action-card-main{min-width:0}
.order-action-card-main strong{display:block;color:#1c303b;font-size:14px}
.order-action-card-main small{display:block;margin-top:2px;color:#70818a;font-size:11px;line-height:1.35}
.order-action-card .status{white-space:nowrap}

