/* DORFER V14.49.24 – Büro-Ablauf Montage, Runde 2: Unterlagen hochladen mit Erkennung am Dateinamen, Admin „E-Mails an
   Kunden“ und Montagekalender wie Outlook. iPad: Knöpfe mindestens 44 px, kein abgeschnittener Text, keine waagrechte Leiste. */

/* ---------- Unterlagen hochladen (Plan 4.4) ---------- */
.b24-docs-cols{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-start;min-width:0}
.b24-docs-main{flex:999 1 480px;min-width:0;display:grid;gap:12px}
.b24-upload{display:grid;gap:12px;min-width:0}
.b24-drop{border:2px dashed #c9a3a8;background:#fdf8f8;border-radius:16px;padding:18px;display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;min-width:0;transition:background .15s,border-color .15s}
.b24-drop.is-over{background:#f6e6e8;border-color:var(--red)}
.b24-drop-ico{width:52px;height:52px;border-radius:14px;background:#fff;border:1px solid var(--line);display:grid;place-items:center;color:var(--red);flex:0 0 auto}
.b24-drop-ico svg{width:28px;height:28px}
.b24-drop>div{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;flex:1 1 260px;min-width:0}
.b24-drop>div strong{font-size:18px}
.b24-drop>div span{color:var(--muted)}
.b24-drop>small{flex:1 1 100%;color:var(--muted);line-height:1.35}
.b24-pick{position:relative;min-height:44px;display:inline-flex;align-items:center;gap:8px;cursor:pointer}
.b24-pick svg{width:18px;height:18px}
.b24-file-input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer;font-size:0}
.b24-picked{border:1px solid var(--line);border-radius:16px;padding:12px;background:#fff;display:grid;gap:8px;min-width:0}
.b24-picked .b22-head{margin-bottom:2px}
.b24-file{display:grid;gap:8px;border:1px solid var(--line);border-radius:12px;padding:10px;min-width:0}
.b24-file-top{display:flex;gap:10px;align-items:flex-start;min-width:0}
.b24-file.is-skip{background:#f7f6f4;opacity:.85}
.b24-file.is-bad{background:#fdf3f4;border-color:#e6b8bd}
.b24-file-ico{width:36px;height:36px;border-radius:10px;background:#f4f3f1;display:grid;place-items:center;color:#7d1f29;flex:0 0 auto}
.b24-file-ico svg{width:20px;height:20px}
.b24-file-main{flex:1 1 auto;min-width:0;display:grid;gap:2px}
.b24-file-main strong{overflow-wrap:anywhere}
.b24-file-main small{color:var(--muted)}
.b24-file.is-bad .b24-file-main small{color:var(--red);font-weight:700}
.b24-kinds{display:flex;flex-wrap:wrap;gap:6px}
.b24-kind{min-height:44px;border:2px solid #d6d3cf;background:#fff;color:var(--ink);border-radius:99px;padding:0 11px;font:inherit;font-size:13.5px;font-weight:650;cursor:pointer}
.b24-kind.is-on{border-color:var(--red);background:var(--red);color:#fff}
.b24-kind:disabled{opacity:.6;cursor:default}
.b24-file-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center;justify-content:flex-end;flex:0 1 auto}
.b24-file-actions .btn{min-height:44px}
.b24-file-actions svg{width:16px;height:16px}
.b24-docs-main .dorfer16-doc-groups{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))}
.b24-picked-foot{display:flex;flex-wrap:wrap;gap:8px 10px;align-items:center;justify-content:flex-end;border-top:1px solid var(--line);padding-top:10px}
.b24-picked-foot small{flex:1 1 220px;color:var(--muted)}
.b24-picked-foot .btn{min-height:44px}
.b24-result{margin:0;background:#e6f2ec;color:#0f5a38;border-radius:12px;padding:10px 12px;font-weight:650;display:flex;gap:8px;align-items:center}
.b24-result svg{width:18px;height:18px}
.b24-result.is-bad{background:#fdf3f4;color:var(--red)}
.b24-check{display:block;margin-top:3px;font-weight:650}
.b24-check.is-ok{color:#0f5a38}
.b24-check.is-foreign,.b24-check.is-unreadable{color:var(--red);font-weight:750}
.b24-check.is-open{color:var(--muted);font-weight:600}
.b24-side{flex:1 1 280px;max-width:440px;display:grid;gap:12px;min-width:0}
.b24-side section{border:1px solid var(--line);border-radius:16px;padding:14px;background:#fff;display:grid;gap:8px;min-width:0}
.b24-side h4{margin:0;font-size:16px}
.b24-side p{margin:0;color:var(--muted);line-height:1.4}
.b24-need ul{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.b24-need li{display:flex;gap:10px;align-items:flex-start}
.b24-need li>span{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font-weight:800;flex:0 0 auto;background:#fdf3f4;color:var(--red)}
.b24-need li.is-ok>span{background:#e6f2ec;color:#0f5a38}
.b24-need li.is-open>span{background:#fbf0dc;color:#7a4700}
.b24-need li div{display:grid;min-width:0}
.b24-need li small{color:var(--muted);overflow-wrap:anywhere}
.b24-need li.is-miss small{color:var(--red);font-weight:700}
.b24-sum{font-weight:750;color:#0f5a38!important}
.b24-sum.is-bad{color:var(--red)!important}
.b24-side .btn{min-height:44px;justify-self:start}
.b24-side .btn svg{width:16px;height:16px;vertical-align:-3px}
.b24-rules ol{margin:0;padding-left:20px;display:grid;gap:6px}
.b24-rules li{display:grid;gap:1px}
.b24-rules li span{color:var(--muted);overflow-wrap:anywhere}
.b24-words{display:grid;gap:12px;min-width:min(560px,86vw)}
.b24-words-head{display:flex;gap:12px;align-items:flex-start;justify-content:space-between}
.b24-words-head small{font-size:12px;letter-spacing:.1em;font-weight:800;color:#7a4700}
.b24-words-head h3{margin:2px 0 4px}
.b24-words-head p{margin:0;color:var(--muted)}
.b24-words label{display:grid;gap:4px;font-weight:700}
.b24-words input{min-height:44px}
.b24-words-foot{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.b24-words-foot .btn,.b24-words-head .btn{min-height:44px}

/* ---------- Vortags-Mail in „Heute zu tun“ und in der Akte (Plan 4.0, 4.2 b) ---------- */
.b22-row.is-auto{border-color:#b8cbe0;background:#f2f6fa}
.b22-row.is-auto .b22-pt{background:#2c4a66}.b22-row.is-auto .b22-state{color:#1f3a52}
.b22-chips .is-wait{background:#eef0f3;color:#3a4652}
.b22-vortag-mode{margin:0;font-size:14px;color:#4f4b47;line-height:1.4}
.b22-vortag-mode.is-auto{color:#1f3a52;font-weight:650}
.b22-mail-actions{display:flex;flex-wrap:wrap;gap:8px}
.b22-mail-actions .btn{min-height:44px;align-self:auto}

/* ---------- Admin „E-Mails an Kunden“ (Plan 4.10) ---------- */
.b24-km-hint{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;justify-content:space-between;border:2px solid #d9a24a;background:#fffaf1}
.b24-km-hint>div{flex:1 1 320px;min-width:0}
.b24-km-hint p{margin:4px 0 0;color:#4f4b47}
.b24-km-hint svg{width:18px;height:18px;vertical-align:-3px}
.b24-km-hint .btn{min-height:44px}
.b24-km-top{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:flex-start;justify-content:space-between}
.b24-km-top h1{margin:2px 0 4px;font-size:26px}
.b24-km-top p{margin:0;color:var(--muted);max-width:760px}
.b24-km-top>div{flex:1 1 320px;min-width:0}
.b24-master{border:2px solid #d9a24a;display:grid;gap:12px}
.b24-master.is-an{border-color:#16784c}.b24-master.is-aus{border-color:var(--line)}
.b24-master-head{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center}
.b24-master-head h2{margin:0;font-size:19px;flex:1 1 260px}
.b24-pill{font-weight:800;letter-spacing:.08em;font-size:13px;border-radius:99px;padding:4px 12px;background:#fbf0dc;color:#7a4700}
.b24-pill.is-an{background:#16784c;color:#fff}.b24-pill.is-aus{background:#4f4b47;color:#fff}
.b24-master-opts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:8px}
.b24-opt{min-height:64px;border:2px solid #d6d3cf;background:#fff;border-radius:14px;padding:10px 12px;text-align:left;font:inherit;color:var(--ink);cursor:pointer;display:flex;flex-direction:column;gap:2px;min-width:0}
.b24-opt strong{font-size:16px}
.b24-opt small{color:var(--muted);line-height:1.3}
.b24-opt.is-on{border-color:var(--red);background:#fbf4f5}
.b24-master-opts .b24-opt.is-on.is-an{border-color:#16784c;background:#e6f2ec}
.b24-master-opts .b24-opt.is-on.is-probelauf{border-color:#b07a1c;background:#fbf0dc}
.b24-master-opts .b24-opt.is-on.is-aus{border-color:#4f4b47;background:#f0eeeb}
.b24-opt:disabled{opacity:.6;cursor:default}
.b24-confirm{border:2px solid #16784c;background:#f3faf6;border-radius:14px;padding:12px 14px;display:grid;gap:8px}
.b24-confirm p{margin:0}
.b24-confirm div{display:flex;flex-wrap:wrap;gap:8px}
.b24-confirm .btn{min-height:44px}
.b24-master-info{margin:0;line-height:1.45}
.b24-lock{margin:0;display:flex;gap:10px;align-items:flex-start;background:#eef0f3;color:#1f3a52;border-radius:12px;padding:10px 12px;line-height:1.4}
.b24-lock svg{width:20px;height:20px;flex:0 0 auto;margin-top:1px}
.b24-master-actions{display:flex;flex-wrap:wrap;gap:8px}
.b24-master-actions .btn{min-height:44px}
.b24-master-actions svg{width:18px;height:18px;vertical-align:-3px}
.b24-log{border:1px solid var(--line);border-radius:14px;padding:12px;background:#fbfaf9;display:grid;gap:8px;min-width:0}
.b24-log h3,.b24-log h4{margin:0;font-size:16px}
.b24-log p{margin:0}
.b24-log ul{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.b24-log li{display:flex;flex-wrap:wrap;gap:2px 10px;align-items:baseline;border-left:4px solid #9a948f;background:#fff;border-radius:8px;padding:6px 10px;min-width:0}
.b24-log li.is-ok{border-left-color:var(--good)}.b24-log li.is-bad{border-left-color:var(--red)}
.b24-log li small{color:var(--muted);flex:0 0 auto}
.b24-log .b22-ident{min-height:44px}
.b24-log li span{flex:1 1 260px;min-width:0;overflow-wrap:anywhere}
.b24-log li.is-bad span{color:var(--red)}
.b24-history summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:650}
.b24-history ul{margin:0;padding-left:18px;color:#4f4b47}
.b24-km-cols{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-start;min-width:0}
.b24-km-list{flex:1 1 260px;max-width:360px;display:grid;gap:6px;min-width:0}
.b24-km-list h3{margin:6px 0 2px;font-size:12px;letter-spacing:.1em;color:#7a4700}
.b24-km-item{min-height:56px;border:2px solid #e4e2df;background:#fff;border-radius:12px;padding:8px 10px;text-align:left;font:inherit;color:var(--ink);cursor:pointer;display:flex;flex-wrap:wrap;gap:4px 8px;align-items:center}
.b24-km-item strong{flex:1 1 100%;overflow-wrap:break-word;hyphens:auto}
.b24-km-item small{color:var(--muted)}
.b24-km-item.is-on{border-color:var(--red);background:#fbf4f5}
.b24-km-badge{font-size:12px;font-weight:750;border-radius:99px;padding:2px 9px;background:#f0eeeb;color:#4f4b47;white-space:nowrap}
.b24-km-badge.is-auto{background:#eaf0f6;color:#1f3a52}.b24-km-badge.is-probe{background:#fbf0dc;color:#7a4700}.b24-km-badge.is-off{background:#f4f3f1;color:#8a847f}
.b24-km-edit{flex:999 1 520px;min-width:0;display:grid;gap:14px}
.b24-km-edit-head{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:flex-start;justify-content:space-between}
.b24-km-edit-head h2{margin:0 0 4px;font-size:21px}
.b24-km-edit-head p{margin:0 0 4px;color:#4f4b47}
.b24-km-edit-head>div{flex:1 1 300px;min-width:0}
.b24-km-sec{border:1px solid var(--line);border-radius:14px;padding:14px;display:grid;gap:10px;min-width:0}
.b24-km-sec h3{margin:0;font-size:17px}
.b24-km-sec p{margin:0}
.b24-field{display:grid;gap:6px;font-weight:650;min-width:0}
.b24-field>span,.b24-field>label{font-weight:700}
.b24-field input,.b24-field textarea{font:inherit;min-height:44px;width:100%;box-sizing:border-box}
.b24-field textarea{min-height:220px;line-height:1.45}
.b24-optrow{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.b24-optrow .b24-opt{flex:1 1 220px}
.b24-optrow input[type=time]{max-width:150px;font-size:18px;font-weight:700}
.b24-quick{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.b24-quick small{color:var(--muted);font-weight:600;margin-right:2px}
.b24-types{display:flex;flex-wrap:wrap;gap:8px}
.b24-type{min-height:44px;border:2px solid #e4e2df;border-radius:12px;padding:0 12px;display:inline-flex;align-items:center;gap:8px;font-weight:650;cursor:pointer}
.b24-type input{width:20px;height:20px;accent-color:var(--red)}
.b24-type i{width:12px;height:12px;border-radius:3px;display:inline-block}
.b24-type:has(input:checked){border-color:var(--red);background:#fbf4f5}
.b24-summary{background:#f4f3f1;border-radius:10px;padding:8px 12px;font-weight:600;color:#4f4b47}
.b24-note{background:#fbf0dc;color:#7a4700;border-radius:10px;padding:8px 12px;font-weight:650}
.b24-stepper{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.b24-stepper .btn{min-width:48px;min-height:44px;font-size:20px;font-weight:800}
.b24-stepper strong{min-width:180px;text-align:center}
.b24-inline{display:inline-flex;align-items:center;gap:8px;font-weight:600}
.b24-inline input{width:110px;min-height:44px}
.b24-check{display:flex;gap:10px;align-items:flex-start;font-weight:600;min-height:32px}
.b24-check input{width:22px;height:22px;flex:0 0 auto;accent-color:var(--red)}
.b24-chips{display:flex;flex-wrap:wrap;gap:6px}
.b24-chip{min-height:44px;border:1px solid #d6d3cf;background:#fff;border-radius:10px;padding:2px 10px;font:inherit;cursor:pointer;display:inline-flex;flex-direction:column;align-items:flex-start;justify-content:center;line-height:1.15}
.b24-chip b{font-family:ui-monospace,Menlo,monospace;font-size:13px;color:#7d1f29}
.b24-chip small{font-size:11px;color:var(--muted)}
.b24-mailprev{border:1px solid var(--line);border-radius:12px;background:#fbfaf9;padding:12px;display:grid;gap:4px;min-width:0}
.b24-mailprev p{margin:0;overflow-wrap:anywhere}
.b24-mailprev pre{margin:6px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.45;background:#fff;border-radius:8px;padding:10px;border:1px solid var(--line)}
.b24-km-foot{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:flex-end}
.b24-km-foot .btn{min-height:44px}
.b24-km-foot small{flex:1 1 100%;text-align:right}
@media (max-width:700px){.b24-km-list{max-width:none}.b24-km-foot small{text-align:left}}

/* ---------- Montagekalender: Aussehen seit V14.49.27 in site/v144927-entwurf.css (neuer Entwurf) ---------- */
