*{box-sizing:border-box}:root{--bg:#f4f6f8;--panel:#fff;--ink:#1d2733;--muted:#657180;--line:#dfe5ea;--accent:#173f67;--accent2:#eaf1f8;--danger:#9b2c2c}
body{margin:0;font-family:Arial,Helvetica,sans-serif;background:var(--bg);color:var(--ink)}
/* Bestellungen: lesbare Eingaben und stabile Breite beim Outlook-Appwechsel. */
#orders input,#orders select,#orders textarea{font-size:16px;max-width:100%;min-width:0}
#orders .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
#orders .form-grid>*{min-width:0}
@media(max-width:700px){#orders .form-grid{grid-template-columns:minmax(0,1fr)}}
.topbar{display:flex;justify-content:space-between;align-items:center;padding:24px 32px;background:#162b3d;color:#fff}.topbar h1{margin:0 0 4px;font-size:28px}.topbar p{margin:0;color:#c9d5df}
.shell{max-width:1200px;margin:0 auto;padding:24px}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}.tab{background:#e6ebef;color:#26323d}.tab.active{background:var(--accent);color:#fff}
button{border:0;border-radius:10px;padding:11px 15px;background:var(--accent);color:#fff;font-weight:700;cursor:pointer}button.secondary{background:#dce5ed;color:#23384a}.danger{background:var(--danger)}
.view{display:none}.view.active{display:block}.card{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:18px;box-shadow:0 2px 8px rgba(23,40,57,.05);margin-bottom:18px}
.hero{padding:28px}.hero h2{font-size:30px;margin:5px 0}.hero p{color:var(--muted);margin-bottom:0}.eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:.12em;color:var(--accent);font-weight:700}
.grid{display:grid;gap:16px}.grid.four{grid-template-columns:repeat(4,1fr)}.grid.three{grid-template-columns:repeat(3,1fr)}
.tile{text-align:left;background:#fff;color:var(--ink);border:1px solid var(--line);padding:22px;border-radius:14px;box-shadow:0 2px 8px rgba(23,40,57,.05)}.tile strong{display:block;font-size:18px;margin-bottom:7px}.tile span,.stats span{color:var(--muted)}.tile:hover{border-color:#9fb5c8;background:#fbfdff}.stats .card strong{display:block;font-size:30px;margin-top:8px}
.section-head{display:flex;justify-content:space-between;gap:16px;align-items:end;margin-bottom:14px}.section-head h2{margin:0 0 5px}.section-head h3{margin:0 0 5px}.section-head p{margin:0;color:var(--muted)}.section-head.compact{align-items:center;margin-bottom:14px}
.search,input,select,textarea{width:100%;padding:11px;border:1px solid #ccd5dd;border-radius:9px;background:#fff;color:#15202b;font:inherit}textarea{resize:vertical}
.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.form-grid label{font-size:13px;font-weight:700;color:#41505e}.form-grid label input,.form-grid label select,.form-grid label textarea{margin-top:6px;font-weight:400}.wide{grid-column:1/-1}.form-actions{grid-column:1/-1;display:flex;gap:10px;flex-wrap:wrap}
.list{display:grid;gap:10px;margin-bottom:18px}.item{background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px;display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.item h3{margin:0 0 5px;font-size:16px}.item p{margin:2px 0;color:var(--muted);font-size:14px}.item-actions{display:flex;gap:7px;flex-shrink:0}.item-actions button{padding:8px 10px;font-size:12px}
.badge{display:inline-block;padding:4px 8px;border-radius:999px;background:var(--accent2);color:var(--accent);font-size:12px;font-weight:700}
.subcard{border:1px solid var(--line);border-radius:12px;padding:14px;background:#fafcfd}.contact-entry{display:grid;grid-template-columns:1fr 1fr auto;gap:9px}.contact-list{display:grid;gap:7px;margin-top:10px}.contact-chip{display:flex;justify-content:space-between;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);border-radius:9px;padding:9px 10px}.contact-chip span{font-size:13px}.contact-chip button{padding:6px 9px;font-size:11px}
.dashboard-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:16px;margin-bottom:18px}.status-badge{display:inline-block;padding:8px 12px;border-radius:999px;font-size:13px;font-weight:800}.status-green{background:#def5e6;color:#176b38}.status-yellow{background:#fff1c7;color:#856404}.status-red{background:#fde2e2;color:#9b2c2c}
.progress-wrap{margin:14px 0 18px}.progress-track{height:14px;background:#e7ebef;border-radius:999px;overflow:hidden}.progress-fill{height:100%;width:0;background:#9b2c2c;transition:width .25s ease}.progress-fill.green{background:#238a4b}.progress-fill.yellow{background:#d99a00}.progress-fill.red{background:#b43a3a}.progress-labels{display:flex;justify-content:space-between;gap:12px;margin-top:7px;font-size:13px;color:var(--muted)}
.day-ranking{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.day-score{border:1px solid var(--line);border-radius:11px;padding:10px;text-align:center;background:#fff}.day-score strong{display:block;font-size:19px;margin:4px 0}.day-score small{display:block;color:var(--muted)}.day-score.green{border-color:#aad9ba;background:#f3fbf6}.day-score.yellow{border-color:#ecd797;background:#fffaf0}.day-score.red{border-color:#ecc3c3;background:#fff7f7}.day-score.vacation{background:#eef2f6;border-style:dashed}
.mini-calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.cal-head,.cal-day{font-size:12px;text-align:center;padding:8px 4px;border-radius:8px}.cal-head{font-weight:800;color:var(--muted)}.cal-day{border:1px solid var(--line);background:#fff;cursor:pointer}.cal-day.out{opacity:.35}.cal-day.today{outline:2px solid var(--accent);font-weight:800}.cal-day.vacation{background:#e8eef5;text-decoration:line-through}.cal-day.weekend{background:#f6f7f8;color:#8a949e}.calendar-actions{margin-top:12px}.hint{font-size:12px;color:var(--muted);margin:10px 0 0}
.export-row{display:grid;grid-template-columns:220px auto auto;gap:10px;align-items:end;margin-bottom:12px}.export-row label{font-size:13px;font-weight:700}.export-row input{margin-top:6px}
.hidden{display:none!important}.option-row{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:8px 0}.field-label{font-size:13px;font-weight:700;color:#41505e}.check{display:flex!important;align-items:center;gap:7px;font-weight:400!important}.check input{width:auto;margin:0!important}
.block-label{display:block;font-size:13px;font-weight:700;color:#41505e;margin-bottom:14px}.block-label input,.block-label textarea{margin-top:6px}.copy-line{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}.copy-line input{margin-top:6px}.copy-line button{margin-top:6px}
footer{padding:20px;text-align:center;color:#7a8792;font-size:12px}
@media(max-width:800px){.grid.four,.grid.three,.form-grid,.dashboard-grid{grid-template-columns:1fr}.topbar{padding:20px;align-items:flex-start;gap:14px}.shell{padding:15px}.section-head{align-items:stretch;flex-direction:column}.wide,.form-actions{grid-column:auto}.item{flex-direction:column}.item-actions{width:100%}.day-ranking{grid-template-columns:repeat(2,1fr)}.export-row,.contact-entry,.copy-line{grid-template-columns:1fr}}


/* Update 3: Kundensuche / Top-100 */
.customer-select-block{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:14px;border:1px solid var(--line);border-radius:12px;background:#fafcfd}
.customer-select-block .hint{grid-column:1/-1;margin:0}
.customer-select-block label{min-width:0}
.rank-note{font-size:12px;color:var(--muted);margin:5px 0 12px}
@media(max-width:800px){.customer-select-block{grid-template-columns:1fr}.customer-select-block .hint{grid-column:auto}}

.grid.four{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}
.acquisition-fields{margin-top:8px}.suggestion-box{margin-top:12px;padding:11px 12px;border:1px dashed #b9c7d3;border-radius:10px;background:#fff;color:#536273;font-size:13px}.compact-actions{margin-top:10px}.compact-actions button{padding:8px 11px}
.acquisition-stats .card strong{display:block;font-size:30px;margin-top:7px}.acquisition-stats .card span{color:var(--muted)}
.acq-filter-grid{display:grid;grid-template-columns:2fr repeat(4,1fr);gap:10px}.acq-filter-grid label{font-size:13px;font-weight:700;color:#41505e}.acq-filter-grid input,.acq-filter-grid select{margin-top:6px}
.acquisition-item{border-left:5px solid #cfd7de}.acquisition-item.acq-due{border-left-color:#b43a3a}.acquisition-item.acq-soon{border-left-color:#d99a00}.acquisition-item.acq-later{border-left-color:#238a4b}.acq-main{flex:1;min-width:0}.acq-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.acq-title h3{margin:0}.class-badge{display:inline-flex;align-items:center;justify-content:center;min-width:30px;height:30px;border-radius:50%;font-size:13px;font-weight:900}.class-A{background:#dceddf;color:#176b38}.class-B{background:#e8f1df;color:#466b17}.class-C{background:#fff1c7;color:#856404}.class-D{background:#f7e2cb;color:#8a5520}.class-E{background:#eceff2;color:#5f6973}.acq-badges{display:flex;gap:7px;flex-wrap:wrap;margin:8px 0}.mini-badge{background:#eef3f7;border-radius:999px;padding:5px 8px;font-size:11px;font-weight:700;color:#405365}.acq-dates{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;font-size:13px;margin-top:10px}.acq-status-text{font-weight:700}.acq-suggestion{margin-top:10px;padding:8px 10px;background:#f7f9fb;border-radius:9px;font-size:12px}.small-btn{padding:6px 8px!important;margin-left:6px}.acq-actions{flex-direction:column}.acq-actions button{width:100%}
@media(max-width:900px){.acq-filter-grid{grid-template-columns:1fr 1fr}.acq-dates{grid-template-columns:1fr}.acq-actions{width:100%;flex-direction:row}.acq-actions button{width:auto}}
@media(max-width:560px){.acq-filter-grid{grid-template-columns:1fr}}


/* Version 6.3 – Baustellenbericht */
.site-report-dictation{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.site-report-dictation .hint{margin:0;flex:1;min-width:240px}
.site-report-photo-panel{border:1px solid var(--line);border-radius:12px;padding:14px;background:#fafcfd}
.site-report-photo-actions{margin-bottom:12px}
.site-report-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(175px,1fr));gap:12px}
.site-report-photo-card{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.site-report-photo-card img{display:block;width:100%;height:140px;object-fit:cover;background:#edf1f4}
.site-report-photo-card-body{padding:9px}
.site-report-photo-card-body p{font-size:12px;color:var(--muted);margin:0 0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.site-report-photo-card-actions{display:flex;gap:6px;flex-wrap:wrap}
.site-report-photo-card-actions button{font-size:11px;padding:7px 9px}
.site-report-thumbs{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}
.site-report-thumb{width:80px;height:80px;object-fit:cover;border:1px solid var(--line);border-radius:9px;background:#eef2f5;cursor:pointer}
.photo-editor-modal{position:fixed;inset:0;z-index:1000;background:rgba(14,20,27,.84);display:flex;align-items:center;justify-content:center;padding:18px}
.photo-editor-shell{width:min(1180px,100%);height:min(92vh,900px);display:flex;flex-direction:column;background:#fff;border-radius:16px;overflow:hidden}
.photo-editor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:14px 16px;border-bottom:1px solid var(--line)}
.photo-editor-head h3{margin:0 0 4px}.photo-editor-head p{margin:0;color:var(--muted);font-size:13px}
.photo-editor-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:10px 14px;background:#f7f9fb;border-bottom:1px solid var(--line)}
.photo-tool.active{outline:3px solid rgba(23,63,103,.22)}
.photo-color{width:34px;height:34px;padding:0;border-radius:50%;border:3px solid #fff;box-shadow:0 0 0 1px #96a3ae}
.photo-color[data-photo-color="#d71920"]{background:#d71920}
.photo-color[data-photo-color="#ffd400"]{background:#ffd400}
.photo-color[data-photo-color="#00a651"]{background:#00a651}
.photo-color[data-photo-color="#0066cc"]{background:#0066cc}
.photo-color.active{box-shadow:0 0 0 3px #1f2937}
.photo-canvas-wrap{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:12px;background:#20262c;overflow:auto;touch-action:none}
#photoEditorCanvas{max-width:100%;max-height:100%;background:#fff;box-shadow:0 3px 20px rgba(0,0,0,.35);touch-action:none}
@media(max-width:700px){
  .photo-editor-modal{padding:0}
  .photo-editor-shell{width:100%;height:100vh;border-radius:0}
  .photo-editor-head{padding:10px}
  .photo-editor-tools{padding:8px}
  .photo-editor-tools button{padding:8px;font-size:12px}
}


/* Version 6.4: PDF / Abend-Download für Baustellenberichte */
.site-report-download-card{border-left:5px solid var(--accent)}
.site-report-download-row{display:grid;grid-template-columns:minmax(220px,320px) auto 1fr;gap:12px;align-items:end}
.site-report-download-row label{font-size:13px;font-weight:700;color:#41505e}.site-report-download-row input{margin-top:6px}
.download-count{align-self:center;justify-self:start;font-size:13px;font-weight:800;color:var(--accent);background:var(--accent2);border-radius:999px;padding:8px 11px}
.pdf-btn{background:#385b78}
@media(max-width:800px){.site-report-download-row{grid-template-columns:1fr}.download-count{justify-self:start}}


/* Version 6.6 – Tägliche Akquise */
.daily-acq-dashboard{margin-top:4px}
.daily-acq-dashboard-list{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.daily-acq-mini{border:1px solid var(--line);border-radius:11px;padding:12px;background:#fafcfd;cursor:pointer}
.daily-acq-mini:hover{border-color:#9fb5c8;background:#fff}
.daily-acq-mini strong{display:block;margin-bottom:4px}
.daily-acq-mini span{display:block;color:var(--muted);font-size:12px}
.daily-acq-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.daily-acq-card{border:1px solid var(--line);border-radius:13px;padding:15px;background:#fff;display:flex;justify-content:space-between;gap:14px;align-items:flex-start}
.daily-acq-card.priority-tier-0{border-left:5px solid #173f67}
.daily-acq-card.priority-tier-1{border-left:5px solid #d99a00}
.daily-acq-card.priority-tier-2{border-left:5px solid #98a4af}
.daily-acq-card h3{margin:0 0 5px;font-size:17px}
.daily-acq-card p{margin:3px 0;color:var(--muted);font-size:13px}
.daily-acq-card .daily-badges{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.daily-acq-contact-panel{border:2px solid #b9c8d6}
.daily-acq-history-note{white-space:pre-wrap}
.priority-customer-row{align-items:center}
.daily-source-badge{display:inline-block;padding:4px 7px;border-radius:999px;background:#eef3f7;color:#365168;font-size:11px;font-weight:700}
.daily-result-interest{background:#e7f7ec;color:#176b38}
.daily-result-no_interest{background:#fdecec;color:#9b2c2c}
.daily-result-callback{background:#fff3d5;color:#805b00}
.daily-result-unreached{background:#eef2f6;color:#52606d}
@media(max-width:850px){
  .daily-acq-dashboard-list,.daily-acq-cards{grid-template-columns:1fr}
}


/* Version 6.8 – Notizen */
.note-drawing-panel{border:1px solid var(--line);border-radius:12px;padding:14px;background:#fafcfd}
.note-drawing-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.note-tool-btn.active{outline:3px solid rgba(23,63,103,.22)}
.note-color-btn{width:34px;height:34px;padding:0;border:3px solid #fff;box-shadow:0 0 0 1px #aab5bf;border-radius:50%}
.note-color-btn[data-note-color="#d71920"]{background:#d71920}
.note-color-btn[data-note-color="#ffd400"]{background:#ffd400}
.note-color-btn[data-note-color="#00a651"]{background:#00a651}
.note-color-btn[data-note-color="#0066cc"]{background:#0066cc}
.note-color-btn.active{box-shadow:0 0 0 3px #1f2937}
.note-canvas-wrap{width:100%;overflow:auto;border:1px solid var(--line);border-radius:10px;background:#fff;touch-action:none}
#freeNoteCanvas{display:block;width:100%;height:auto;min-height:320px;background:#fff;touch-action:none;cursor:crosshair}
.free-note-preview{margin-top:10px;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff}
.free-note-preview img{display:block;max-width:100%;height:auto}
.free-note-text{white-space:pre-wrap}
@media(max-width:700px){
  #freeNoteCanvas{min-height:260px}
  .note-drawing-tools button{font-size:12px;padding:8px}
}

/* Version 6.59 – echtes DIN-A3-Notizblatt */
.note-a3-meta-card{border-left:6px solid #ffd500}
.note-a3-meta-grid{display:grid;grid-template-columns:180px minmax(260px,1fr) 170px;gap:12px;margin-top:14px}
.note-a3-meta-grid label{font-size:12px;font-weight:800;color:#41505e}
.note-a3-meta-grid input,.note-a3-meta-grid select{margin-top:5px}
.note-a3-workspace{display:grid;grid-template-columns:96px minmax(0,1fr);gap:14px;align-items:start}
.note-a3-tools{position:sticky;top:10px;padding:10px 8px;display:grid;gap:14px;justify-items:center;margin:0}
.note-a3-tool-group{width:100%;display:grid;gap:7px;justify-items:center}
.note-a3-tool-group>strong{font-size:11px;color:#566472;text-transform:uppercase;letter-spacing:.05em}
.note-a3-color{width:34px;height:34px;min-height:34px;padding:0;border-radius:50%;background:var(--note-color);border:3px solid #fff;box-shadow:0 0 0 1px #aeb9c3}
.note-a3-color.active{box-shadow:0 0 0 3px #ffd500,0 0 0 5px #173f67}
.note-a3-marker{width:62px;min-height:30px;padding:5px 4px;border-radius:7px;background:color-mix(in srgb,var(--note-marker) 45%,white);color:#17212b;border:1px solid color-mix(in srgb,var(--note-marker) 72%,#777);font-size:11px}
.note-a3-marker.active{outline:3px solid #173f67;outline-offset:1px}
.note-a3-size-row{display:flex;gap:3px}.note-a3-size{width:26px;height:28px;min-height:28px;padding:0;background:#e6ebef;color:#26323d;font-size:10px}.note-a3-size.active{background:#173f67;color:#fff}
.note-a3-actions-small button{width:78px;padding:7px 5px;font-size:10px}.note-a3-actions-small button.tool-selected{outline:3px solid #ffd500;background:#173f67;color:#fff}
.note-a3-page-card{min-width:0;margin:0}
.note-a3-zoom-row{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:10px;font-weight:800}
.note-a3-zoom-controls{display:flex;align-items:center;gap:6px}.note-a3-zoom-controls button{padding:7px 10px}.note-a3-zoom-controls span{min-width:58px;text-align:center;font-size:12px}
.note-a3-page-scroll{overflow:auto;max-height:76vh;min-height:460px;padding:16px;background:#d8dde3;border-radius:12px;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
.note-a3-page-shell{margin:0 auto;background:#fff;box-shadow:0 7px 28px rgba(0,0,0,.22);flex:none}
#freeNoteA3Canvas{display:block;max-width:none;min-height:0;background:#fff;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;cursor:crosshair}
#freeNoteA3Canvas.note-a3-hand-mode{touch-action:pan-x pan-y;cursor:grab}
.note-a3-page-actions{border-left:6px solid #173f67}
.free-note-a3-chip{display:inline-flex;padding:4px 8px;border-radius:999px;background:#fff4b8;color:#5d4a00;font-size:11px;font-weight:850}
.free-note-save-error{color:#a12626!important;font-weight:800}
@media(max-width:900px){
  .note-a3-workspace{grid-template-columns:78px minmax(0,1fr)}
  .note-a3-tools{padding:8px 5px}
  .note-a3-actions-small button{width:64px;font-size:9px}
  .note-a3-meta-grid{grid-template-columns:1fr 1fr}
  .note-a3-meta-grid label:nth-child(2){grid-column:1/-1}
  .note-a3-page-scroll{padding:10px;max-height:72vh}
}
@media(max-width:620px){
  .note-a3-workspace{grid-template-columns:1fr}
  .note-a3-tools{position:static;display:flex;overflow-x:auto;justify-content:flex-start;align-items:flex-start}
  .note-a3-tool-group{min-width:max-content;width:auto}
  .note-a3-page-scroll{min-height:390px}
  .note-a3-meta-grid{grid-template-columns:1fr}
  .note-a3-meta-grid label:nth-child(2){grid-column:auto}
}

/* v6.59.6 – Notizblatt Vollbild + Pencil-Schutz */
.note-a3-fullscreen-btn{font-weight:900}
.note-a3-workspace.note-a3-fullscreen{position:fixed;inset:0;z-index:10050;background:#eef1f4;padding:10px;grid-template-columns:86px minmax(0,1fr);gap:10px;align-items:stretch}
.note-a3-workspace.note-a3-fullscreen .note-a3-tools{position:relative;top:auto;max-height:calc(100vh - 20px);overflow:auto;align-content:start}
.note-a3-workspace.note-a3-fullscreen .note-a3-page-card{height:calc(100vh - 20px);display:flex;flex-direction:column;overflow:hidden;padding:10px}
.note-a3-workspace.note-a3-fullscreen .note-a3-zoom-row{flex:0 0 auto;margin-bottom:8px}
.note-a3-workspace.note-a3-fullscreen .note-a3-page-scroll{flex:1 1 auto;min-height:0;max-height:none;height:auto;padding:10px}
.note-a3-workspace.note-a3-fullscreen .note-a3-page-card>.hint{display:none}
body.note-a3-fullscreen-open{overflow:hidden}
.note-a3-workspace,.note-a3-page-card,.note-a3-page-scroll,.note-a3-page-shell{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
body.note-a3-inking,body.note-a3-inking *{-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important}
#freeNoteA3Canvas{-webkit-user-drag:none}
@media(max-width:620px){
  .note-a3-workspace.note-a3-fullscreen{grid-template-columns:72px minmax(0,1fr);padding:6px;gap:6px}
  .note-a3-workspace.note-a3-fullscreen .note-a3-tools{display:grid;overflow-y:auto;overflow-x:hidden;position:relative}
  .note-a3-workspace.note-a3-fullscreen .note-a3-tool-group{min-width:0;width:100%}
  .note-a3-workspace.note-a3-fullscreen .note-a3-page-card{height:calc(100vh - 12px)}
}


/* Version 6.9 – Akquise-Aufgaben */
.priority-task-dashboard{border:2px solid #b43a3a;background:#fff8f8}
.priority-task-dashboard.hidden{display:none}
.task-priority-card{border:2px solid #d9a400;background:#fffdf4}
.priority-task-list{display:grid;gap:10px}
.priority-task-item{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;border:1px solid var(--line);border-radius:12px;padding:13px;background:#fff}
.priority-task-item.offer-followup{border-left:6px solid #b43a3a;background:#fff7f7}
.priority-task-item.callback-task{border-left:6px solid #d99a00}
.priority-task-item.offer-task{border-left:6px solid #173f67}
.priority-task-item.other-task{border-left:6px solid #7a8792}
.priority-task-item h3{margin:0 0 5px;font-size:16px}
.priority-task-item p{margin:3px 0;color:var(--muted);font-size:13px}
.task-warning-title{font-size:18px;font-weight:900;color:#9b2c2c;letter-spacing:.02em}
.task-due-badge{display:inline-block;padding:5px 8px;border-radius:999px;font-size:11px;font-weight:800;background:#fde2e2;color:#9b2c2c}
.task-future-badge{display:inline-block;padding:5px 8px;border-radius:999px;font-size:11px;font-weight:800;background:#eef2f6;color:#52606d}
.acquisition-task-builder{margin-top:4px}
.task-auto-info{margin-top:10px;padding:10px 12px;border-radius:10px;background:#fff3d5;color:#6d5200;font-size:13px}
.task-actions{display:flex;gap:7px;flex-wrap:wrap;flex-shrink:0}
.task-actions button{padding:8px 10px;font-size:12px}
@media(max-width:760px){
  .priority-task-item{flex-direction:column}
  .task-actions{width:100%}
}


/* Version 6.10 – belastbare Akquise-Speicherung */
.customer-acq-history-box{margin-top:8px}
.customer-acq-history-box .item{background:#fff}
.acq-export-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px}
.acq-export-actions button{padding:7px 9px;font-size:11px}
.acq-saved-confirm{padding:10px 12px;border-radius:10px;background:#e7f7ec;color:#176b38;font-size:13px;font-weight:700}


/* Version 6.12 – Kundenprofil mit Baustellenberichten */
.customer-profile-card{border:2px solid #9eb4c6;margin-bottom:18px}
.customer-profile-card.hidden{display:none}
.customer-profile-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:14px}
.customer-profile-summary .profile-stat{border:1px solid var(--line);border-radius:11px;padding:12px;background:#fafcfd}
.customer-profile-summary .profile-stat span{display:block;color:var(--muted);font-size:12px}
.customer-profile-summary .profile-stat strong{display:block;font-size:20px;margin-top:4px}
.customer-profile-section{margin-top:12px}
.customer-profile-report{border:1px solid var(--line);border-radius:12px;padding:13px;background:#fff}
.customer-profile-report h4{margin:0 0 5px;font-size:16px}
.customer-profile-report p{margin:4px 0}
.customer-profile-report-photos{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.customer-profile-report-photos img{width:100px;height:78px;object-fit:cover;border-radius:8px;border:1px solid var(--line);cursor:pointer;background:#f3f5f7}
.customer-profile-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}
.customer-profile-actions button{padding:7px 9px;font-size:11px}
@media(max-width:850px){
  .customer-profile-summary{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:520px){
  .customer-profile-summary{grid-template-columns:1fr}
}


/* Version 6.13 – Bestell-Kundensuche */
.order-customer-picker{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px;
  background:#fafcfd;
}
.order-customer-picker .hint{grid-column:1/-1;margin:0}
@media(max-width:700px){
  .order-customer-picker{grid-template-columns:1fr}
  .order-customer-picker .hint{grid-column:1}
}


/* Version 6.14 – Bestell-Kundensuche wie Besuchsberichte */
#orderCustomerSearch{font-weight:400}


/* Version 6.15 – Kundensuche wie Besuchsberichte */
#customers > .customer-select-block{
  margin-bottom:14px;
}
#customerLookup{
  min-height:42px;
}


/* Version 6.16 – Akquise-Suche und echter Tagesmix */
.acq-customer-search{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
}
#acqCustomerLookup{min-height:42px}


/* Version 6.17 – Sto-Artikelsuche */
.order-article-search-block{
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px;
  background:#fafcfd;
}
#orderArticleSearch{
  font-weight:600;
}
#orderArticleLookup{
  min-height:42px;
}
.order-article-meta{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:3px;
}
.order-article-meta.hidden{display:none}
.order-article-meta span{
  display:inline-block;
  padding:6px 9px;
  border-radius:999px;
  background:#eef3f7;
  color:#365168;
  font-size:12px;
  font-weight:700;
}


/* Version 6.18 – robuste Sto-Artikelsuche für iPad/Safari */
.order-article-results{
  display:grid;
  gap:8px;
  margin-top:4px;
}
.order-article-result{
  width:100%;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:4px 12px;
  text-align:left;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  color:inherit;
  cursor:pointer;
  touch-action:manipulation;
}
.order-article-result:hover,
.order-article-result:focus{
  border-color:#7f9bb2;
  background:#f6f9fb;
}
.order-article-result-name{
  font-weight:800;
  min-width:0;
}
.order-article-result-number{
  font-weight:800;
  white-space:nowrap;
}
.order-article-result-pack{
  grid-column:1/-1;
  color:var(--muted);
  font-size:12px;
}
#orderArticleSearchStatus{
  margin-top:2px;
}


/* Version 6.19 – iPad-Tastatur für Sto-Artikelsuche */
.order-article-search-inputrow{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  align-items:center;
  margin-top:6px;
}
.order-article-search-inputrow #orderArticleSearch{
  margin-top:0;
  min-height:46px;
  font-size:16px; /* verhindert iOS-Autozoom und verbessert Fokus */
  -webkit-user-select:text;
  user-select:text;
  touch-action:auto;
  pointer-events:auto;
}
.order-article-search-inputrow #btnOpenArticleKeyboard{
  min-height:46px;
  white-space:nowrap;
}
@media(max-width:520px){
  .order-article-search-inputrow{
    grid-template-columns:1fr;
  }
}


/* Version 6.20 – Outlook-Weiterleitung Bestellung */
#btnOpenOutlook{
  font-weight:800;
}


/* Version 6.21 – Objekt Anlage */
.object-section-card{
  background:#fafcfd;
}
.object-section-card > .form-grid{
  margin-top:4px;
}
#objectEntryForm{
  margin-bottom:18px;
}
#btnOpenObjectOutlook{
  font-weight:800;
}
.object-entry-item{
  border-left:5px solid #173f67;
}
.object-entry-main{
  flex:1;
  min-width:0;
}
.object-entry-main h3{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.object-status{
  display:inline-flex;
  align-items:center;
  padding:4px 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
}
.object-status.open{
  background:#fff1c7;
  color:#805b00;
}
.object-status.won{
  background:#def5e6;
  color:#176b38;
}
.object-entry-actions{
  flex-wrap:wrap;
}
.object-entry-actions button{
  white-space:nowrap;
}
#objectSystem optgroup{
  font-weight:800;
}
@media(max-width:800px){
  .object-entry-actions{
    width:100%;
  }
}


/* Version 6.23 – BMS Technische Reklamation */
.button-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border-radius:10px;padding:11px 15px;background:var(--accent);color:#fff;font-weight:700}.button-link.secondary{background:#dce5ed;color:#23384a}
.bms-info-card{border-left:5px solid #d8b400;background:#fffdf1}.bms-info-card p{margin:6px 0 0;color:var(--muted)}
.bms-section-card{background:#fafcfd}.bms-required>input,.bms-required>select,.bms-required>textarea{background:#f2fff1;border-color:#9fcf9b}.bms-required-row{background:#f2fff1;border:1px solid #b7ddb3;border-radius:10px;padding:10px 12px}.bms-auto-fields,.bms-product-entry{margin-top:14px}.bms-article-search{margin:12px 0}.bms-product-list{margin-top:12px}.bms-saved-item{border-left:5px solid #385b78}.bms-saved-actions{flex-wrap:wrap}#btnCreateBmsExcel,#btnOpenBmsOutlook{font-weight:800}@media(max-width:800px){.bms-saved-actions{width:100%}.bms-saved-actions button{flex:1 1 auto}}


/* Version 6.25 – Sto-orientierte Kopfoptik */
.sto-topbar{
  position:relative;
  background:#fff;
  color:#111;
  border-bottom:1px solid #d9d9d9;
  box-shadow:0 2px 10px rgba(0,0,0,.05);
  padding-right:62px;
}
.sto-brand-block{display:flex;align-items:center;gap:22px;min-width:0}
.sto-wordmark{color:#111;font-size:46px;line-height:1;font-weight:900;letter-spacing:-2px;white-space:nowrap}
.sto-app-title{min-width:0}
.sto-topbar .sto-app-title h1{color:#111;margin:0 0 4px}
.sto-topbar .sto-app-title p{color:#5f6468}
.sto-yellow-corner{position:absolute;top:0;right:0;bottom:0;width:22px;background:#ffd500}
.sto-topbar #btnExportAll{position:relative;z-index:1}
.tabs .tab.active{background:#ffd500;color:#111}
@media(max-width:760px){
  .sto-topbar{padding-right:42px}
  .sto-brand-block{align-items:flex-start;gap:14px}
  .sto-wordmark{font-size:38px}
  .sto-yellow-corner{width:16px}
}

/* Version 6.25 – Reklamation */
.complaint-section-card{background:#fafcfd}
.complaint-customer-details,.complaint-article-fields{margin-top:14px}
.complaint-article-search{margin-top:8px}
#btnOpenComplaintOutlook{font-weight:800}
#btnComplaintToBms{border:1px solid #b9c7d3}
.complaint-saved-item{border-left:5px solid #697680}
.complaint-saved-item.complaint-urgent{border-left-color:#d99a00;background:#fffdf7}
.complaint-saved-item.complaint-stop{border-left-color:#b43a3a;background:#fff8f8}
.complaint-saved-main{flex:1;min-width:0}
.complaint-saved-main h3{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.complaint-urgency-badge{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;background:#fff1c7;color:#805b00;font-size:11px;font-weight:800}
.complaint-stop .complaint-urgency-badge{background:#fde2e2;color:#9b2c2c}
.complaint-preview{white-space:pre-wrap}
.complaint-saved-actions{flex-wrap:wrap}
@media(max-width:800px){.complaint-saved-actions{width:100%}}


/* Version 6.26 – Sto-Kopf: gelber Balken horizontal vor Sto */
.sto-topbar{
  padding-right:32px;
}
.sto-logo-bar{
  display:block;
  width:54px;
  height:11px;
  flex:0 0 54px;
  background:#ffd500;
}
.sto-yellow-corner{
  display:none!important;
}
@media(max-width:760px){
  .sto-topbar{padding-right:20px}
  .sto-logo-bar{width:40px;height:9px;flex-basis:40px}
}

/* Version 6.26 – Tägliche Akquise / Kunden-Qualifizierung */
.daily-acq-qualification-box{
  border:2px solid #cbd4dc;
  background:#fbfcfd;
}
.daily-acq-qualification-hint{
  margin-top:10px;
  padding:10px 12px;
  border-radius:10px;
  background:#eef3f7;
  color:#405365;
  font-size:13px;
}
.daily-acq-card.priority-tier-0{border-left-color:#238a4b}
.daily-acq-card.priority-tier-1{border-left-color:#d99a00}
.daily-acq-card.priority-tier-2{border-left-color:#9aa6b1}
.daily-acq-card.priority-tier-3{border-left-color:#c7cdd2;border-left-style:dashed}


/* Version 6.27 – LV Angebot */
.lv-safety-card{border-left:5px solid #ffd500;background:#fffdf2}
.lv-safety-card p{margin:6px 0 0;color:var(--muted)}
.lv-source-card{background:#fafcfd}
.lv-pdf-card{border-top:4px solid #d7dde2}
.lv-pdf-status{margin:10px 0;padding:10px 12px;border-radius:10px;background:#eef3f7;color:#405365;font-size:13px}
.lv-pdf-details{margin-top:12px}
.lv-pdf-details summary{cursor:pointer;font-weight:700}
.lv-pdf-details textarea{margin-top:10px;width:100%}
.lv-analysis-list{display:grid;gap:12px;margin-top:14px}
.lv-analysis-item{border:1px solid #d9e0e5;border-left:6px solid #9aa6b1;border-radius:12px;padding:12px;background:#fff}
.lv-analysis-item.green{border-left-color:#2a9350;background:#fbfffc}
.lv-analysis-item.yellow{border-left-color:#d8a000;background:#fffdf7}
.lv-analysis-item.gray{border-left-color:#9aa6b1;background:#fafbfc}
.lv-analysis-item.accepted{border-left-color:#246fca;background:#f8fbff}
.lv-analysis-item.ignored{opacity:.65;border-left-color:#c5cbd0;background:#f7f7f7}
.lv-analysis-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:start}
.lv-status-dot{width:12px;height:12px;border-radius:50%;background:#9aa6b1;margin-top:5px}
.lv-analysis-item.green .lv-status-dot{background:#2a9350}
.lv-analysis-item.yellow .lv-status-dot{background:#d8a000}
.lv-analysis-item.accepted .lv-status-dot{background:#246fca}
.lv-analysis-source{display:flex;flex-direction:column;gap:3px;min-width:0}
.lv-analysis-source span{white-space:pre-wrap;overflow-wrap:anywhere}
.lv-analysis-state{font-size:12px;font-weight:800;padding:4px 8px;border-radius:999px;background:#eef1f3;white-space:nowrap}
.lv-candidate{width:100%;margin-top:8px;display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:10px;align-items:center;text-align:left;background:#fff;color:#17212b;border:1px solid #d4dce2;border-radius:10px;padding:9px 10px}
.lv-candidate:hover{border-color:#8aa6bd;background:#f8fbfd}
.lv-candidate-rank{display:flex;width:24px;height:24px;border-radius:50%;align-items:center;justify-content:center;background:#eef3f7;font-weight:800}
.lv-candidate-content{display:flex;flex-direction:column;gap:2px;min-width:0}
.lv-candidate-content span{font-size:12px;color:#526575}
.lv-candidate-content em{font-size:11px;color:#985d00}
.lv-candidate-action{font-size:12px;font-weight:800}
.lv-analysis-actions{display:flex;justify-content:flex-end;margin-top:8px}
.lv-no-candidate{margin-top:8px;padding:9px 10px;border-radius:9px;background:#f1f3f4;color:#59656e}
.lv-dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:3px}
.lv-green{background:#2a9350}.lv-yellow{background:#d8a000}.lv-gray{background:#9aa6b1}
.lv-final-card{border-top:5px solid #ffd500}
.lv-final-item{border-left:5px solid #2a9350}
.lv-final-main{flex:1;min-width:0}
.lv-final-actions{flex-wrap:wrap}
#lvNumberOutput{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:15px;line-height:1.6}
@media(max-width:760px){
  .lv-analysis-head{grid-template-columns:auto minmax(0,1fr)}
  .lv-analysis-state{grid-column:2;justify-self:start}
  .lv-candidate{grid-template-columns:26px minmax(0,1fr)}
  .lv-candidate-action{grid-column:2}
  .lv-final-actions{width:100%}
}


/* Version 6.28 – Besuchsbericht → Outlook / Salesforce */
.note-salesforce-card{
  border-left:5px solid #ffd500;
  background:#fff;
}
.note-salesforce-steps{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin:12px 0;
}
.note-salesforce-steps span{
  display:block;
  padding:10px 12px;
  border-radius:10px;
  background:#f3f5f7;
  font-size:13px;
  line-height:1.4;
}
.note-salesforce-item{
  border-left:5px solid #aeb8c0;
}
.note-salesforce-item.sf-opened{
  border-left-color:#d99a00;
}
.note-salesforce-item.sf-done{
  border-left-color:#238a4b;
  background:#fbfffc;
}
.note-salesforce-main{
  flex:1;
  min-width:0;
}
.note-salesforce-main h3{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
}
.salesforce-status{
  display:inline-flex;
  align-items:center;
  padding:4px 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
}
.salesforce-status.sf-pending{
  background:#edf0f2;
  color:#52606b;
}
.salesforce-status.sf-opened{
  background:#fff1c7;
  color:#805b00;
}
.salesforce-status.sf-done{
  background:#def5e6;
  color:#176b38;
}
.note-salesforce-actions{
  flex-wrap:wrap;
}
.salesforce-done-button{
  background:#238a4b;
  color:#fff;
}
#btnSaveNoteOutlook{
  font-weight:800;
}
@media(max-width:900px){
  .note-salesforce-steps{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:650px){
  .note-salesforce-steps{
    grid-template-columns:1fr;
  }
  .note-salesforce-actions{
    width:100%;
  }
  .note-salesforce-actions button{
    flex:1 1 100%;
  }
}


/* Version 6.30 – Abendbericht */
.evening-report-dashboard{
  border-left:5px solid #ffd500;
  margin-bottom:18px;
}
.evening-report-dashboard.evening-due{
  border-left-color:#d99a00;
  background:#fffdf7;
}
.evening-report-dashboard.evening-done{
  border-left-color:#238a4b;
  background:#fbfffc;
}
.evening-report-card{
  border-left:5px solid #ffd500;
}
.evening-report-settings{
  margin:10px 0 4px;
}
.evening-report-status{
  margin-top:12px;
  padding:11px 13px;
  border-radius:10px;
  background:#f1f4f6;
  color:#405365;
  font-size:13px;
}

/* Version 6.30 – intelligente / lernende Kundensuche */
.learned-customer-badge{
  display:inline-flex;
  align-items:center;
  padding:4px 8px;
  border-radius:999px;
  background:#e7f5ff;
  color:#075f9e;
  font-size:11px;
  font-weight:800;
}
.customer-select-block label[id$="ManualWrap"]{
  border-left:3px solid #ffd500;
  padding-left:10px;
}


/* Version 6.31 – regionale Gebietskarte */
.customer-geo-card{
  border-left:5px solid #ffd500;
  background:#fffef8;
}
.map-control-card{
  border-left:5px solid #ffd500;
}
.map-auto-geocode-check{
  align-self:end;
  padding-bottom:8px;
}
.map-stats-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin:16px 0;
}
.map-stats-grid > div{
  background:#f3f5f7;
  border-radius:12px;
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:3px;
}
.map-stats-grid strong{
  font-size:25px;
}
.map-stats-grid span{
  font-size:12px;
  color:#65727e;
}
.map-selected-customer,
.map-status-box{
  margin:12px 0;
  padding:12px 14px;
  border-radius:10px;
  background:#eef3f6;
  line-height:1.45;
}
.map-status-box.error{
  background:#fff0f0;
}
.territory-map-shell{
  padding:0;
  overflow:hidden;
}
#territoryMapCanvas{
  width:100%;
  height:min(68vh,680px);
  min-height:460px;
  background:#eef2f3;
}
.map-load-error{
  height:100%;
  min-height:460px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:30px;
}
.map-legend{
  display:flex;
  flex-wrap:wrap;
  gap:18px;
  padding:10px 14px 13px;
  background:#fff;
  border-top:1px solid #e5e8ea;
  font-size:12px;
}
.map-legend span{
  display:inline-flex;
  align-items:center;
  gap:7px;
}
.map-legend-dot{
  width:12px;
  height:16px;
  border-radius:8px 8px 8px 0;
  transform:rotate(-45deg);
  background:#2b6cb0;
  display:inline-block;
}
.map-legend-ring{
  width:16px;
  height:16px;
  border:2px dashed #66727c;
  border-radius:50%;
  display:inline-block;
}
.map-popup{
  min-width:220px;
  line-height:1.45;
}
.map-popup-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px;
  margin-top:10px;
}
.map-popup-actions button{
  padding:7px 8px;
  font-size:12px;
  border:0;
  border-radius:7px;
  cursor:pointer;
}
.map-customer-list-item{
  align-items:flex-start;
}
.leaflet-popup-content button{
  font-family:inherit;
}
@media(max-width:850px){
  .map-stats-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  #territoryMapCanvas{
    min-height:420px;
    height:60vh;
  }
}
@media(max-width:520px){
  .map-stats-grid{
    grid-template-columns:1fr 1fr;
  }
  #territoryMapCanvas{
    min-height:360px;
  }
}


/* Version 6.32 – Kontakte & Handy */
.contact-privacy-card{
  border-left:5px solid #238a4b;
  background:#fbfffc;
}
.contact-privacy-card p{
  margin:6px 0 0;
  color:var(--muted);
}
.contact-import-status{
  margin-top:12px;
  padding:11px 13px;
  border-radius:10px;
  background:#eef3f6;
  line-height:1.45;
}
.contact-stats-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-top:14px;
}
.contact-stats-grid > div{
  background:#f3f5f7;
  border-radius:12px;
  padding:13px;
  display:flex;
  flex-direction:column;
  gap:3px;
}
.contact-stats-grid strong{font-size:24px}
.contact-stats-grid span{font-size:12px;color:var(--muted)}
.contact-list-toolbar{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  margin-bottom:12px;
}
.contact-workbench-toolbar{
  grid-template-columns:minmax(0,1fr) minmax(180px,260px) auto;
}
.contact-raw-list,
.contact-clean-list{
  display:grid;
  gap:8px;
}
.contact-raw-row{
  display:grid;
  grid-template-columns:38px minmax(0,1fr);
  gap:9px;
  align-items:start;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
}
.contact-row-index{
  display:flex;
  width:30px;
  height:30px;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#eef2f4;
  font-size:11px;
  font-weight:800;
}
.contact-raw-row small{
  display:block;
  margin-top:3px;
  color:var(--muted);
}
.contact-clean-row{
  display:flex;
  justify-content:space-between;
  gap:14px;
  padding:13px 14px;
  border:1px solid var(--line);
  border-left:5px solid #aeb8c0;
  border-radius:11px;
  background:#fff;
}
.contact-clean-row.status-high,
.contact-clean-row.status-confirmed{
  border-left-color:#238a4b;
}
.contact-clean-row.status-medium{
  border-left-color:#d99a00;
}
.contact-clean-row.status-ignored{
  border-left-color:#8b949b;
  opacity:.8;
}
.contact-clean-main{min-width:0;flex:1}
.contact-clean-main h3{margin:0 0 5px;display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.contact-clean-main p{margin:4px 0}
.contact-match-line{font-size:12px;color:#52606b}
.contact-match-badge,
.contact-duplicate-badge{
  display:inline-flex;
  padding:4px 8px;
  border-radius:999px;
  font-size:10px;
  font-weight:800;
}
.contact-match-badge.high,
.contact-match-badge.confirmed{
  background:#def5e6;color:#176b38;
}
.contact-match-badge.medium{
  background:#fff1c7;color:#805b00;
}
.contact-match-badge.none,
.contact-match-badge.ignored{
  background:#edf0f2;color:#52606b;
}
.contact-duplicate-badge{
  background:#ffe9e9;color:#8b2525;
}
.contact-editor-card{
  border-left:5px solid #ffd500;
}
.contact-editor-empty{
  padding:20px;
  text-align:center;
  color:var(--muted);
  background:#f6f8f9;
  border-radius:10px;
}
.contact-customer-match-card{
  margin-top:16px;
}
.contact-match-suggestions{
  display:grid;
  gap:7px;
  margin-bottom:12px;
}
.contact-suggestion-button{
  width:100%;
  text-align:left;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:9px;
  background:#fff;
  cursor:pointer;
}
.contact-suggestion-button:hover{
  background:#f6f9fb;
}
.contact-fill-missing-check{
  margin-top:12px;
}
.contact-entry-extended{
  grid-template-columns:1.2fr 1fr 1fr 1fr 1.2fr auto;
}
.contact-chip small{
  color:var(--muted);
  line-height:1.45;
}
@media(max-width:1000px){
  .contact-entry-extended{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .contact-entry-extended button{
    grid-column:1/-1;
  }
}
@media(max-width:760px){
  .contact-stats-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .contact-list-toolbar,
  .contact-workbench-toolbar{
    grid-template-columns:1fr;
  }
  .contact-clean-row{
    flex-direction:column;
  }
  .contact-clean-row .item-actions{
    width:100%;
  }
  .contact-entry-extended{
    grid-template-columns:1fr;
  }
  .contact-entry-extended button{
    grid-column:auto;
  }
}


/* Version 6.35 – Kundensuche auf Gebietskarte zurücksetzen */
.map-search-reset-wrap{
  display:flex;
  align-items:flex-end;
}
.map-search-reset-wrap button{
  width:100%;
  min-height:42px;
}
@media(min-width:850px){
  .map-customer-search-block{
    grid-template-columns:minmax(0,1.5fr) minmax(0,1.5fr) minmax(180px,.7fr);
    align-items:end;
  }
}


/* Version 6.36 – neuer Header mit ID.4 + neue Startseite */
.sto-topbar{
  gap:22px;
  padding-top:16px;
  padding-bottom:16px;
}
.sto-brand-block{
  gap:18px;
}
.sto-logo-bar,
.sto-wordmark{
  display:none!important;
}
.sto-id4-mark{
  width:235px;
  flex:0 0 235px;
  border:1px solid #dfe4e7;
  border-radius:14px;
  background:linear-gradient(180deg,#f7f9fa 0%,#eef2f4 100%);
  padding:4px 8px 2px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9);
}
.sto-id4-mark svg{
  display:block;
  width:100%;
  height:auto;
}
.dashboard-home-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:22px 24px;
  border-left:6px solid #ffd500;
}
.dashboard-home-title h2{
  margin:4px 0 5px;
  font-size:29px;
}
.dashboard-home-title p{
  margin:0;
  color:var(--muted);
  text-transform:capitalize;
}
.dashboard-time-panel{
  min-width:190px;
  text-align:right;
  display:grid;
  justify-items:end;
}
.dashboard-time-panel strong{
  font-size:36px;
  line-height:1;
  letter-spacing:-1px;
  color:#111;
}
.dashboard-time-panel span{
  margin-top:7px;
  display:inline-flex;
  padding:5px 9px;
  border-radius:999px;
  background:#ffd500;
  color:#111;
  font-size:12px;
  font-weight:900;
}
.dashboard-time-panel small{
  margin-top:5px;
  color:var(--muted);
  text-transform:capitalize;
}
.dashboard-overview-title{
  display:flex;
  justify-content:space-between;
  align-items:end;
  margin:4px 2px 10px;
}
.dashboard-overview-title h2{
  margin:3px 0 0;
  font-size:20px;
}
.dashboard-overview-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-bottom:18px;
}
.dashboard-overview-card{
  text-align:left;
  background:#fff;
  color:var(--ink);
  border:1px solid var(--line);
  border-radius:14px;
  padding:16px;
  box-shadow:0 2px 8px rgba(23,40,57,.05);
}
.dashboard-overview-card:hover{
  border-color:#b8c5ce;
  background:#fcfdfe;
}
.dashboard-overview-card span{
  display:block;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}
.dashboard-overview-card strong{
  display:block;
  margin:5px 0 2px;
  font-size:30px;
  color:#111;
}
.dashboard-overview-card small{
  color:#66727c;
}
.dashboard-calendar-performance{
  grid-template-columns:minmax(0,1.45fr) minmax(330px,.8fr);
}
.dashboard-work-grid{
  grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);
}
.dashboard-todo-card{
  border-top:4px solid #ffd500;
}
.dashboard-todo-input{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  margin-bottom:13px;
}
.dashboard-todo-list{
  display:grid;
  gap:7px;
  max-height:380px;
  overflow:auto;
}
.dashboard-todo-row{
  display:grid;
  grid-template-columns:34px minmax(0,1fr) 32px;
  gap:9px;
  align-items:center;
  padding:9px 10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
}
.dashboard-todo-row.done{
  background:#f5f7f8;
  opacity:.72;
}
.dashboard-todo-row.done span{
  text-decoration:line-through;
  color:#737d84;
}
.dashboard-todo-check{
  width:30px;
  height:30px;
  padding:0;
  border-radius:8px;
  border:2px solid #aab5bc;
  background:#fff;
  color:#176b38;
  font-size:18px;
  line-height:1;
}
.dashboard-todo-row.done .dashboard-todo-check{
  border-color:#78b58d;
  background:#def5e6;
}
.dashboard-todo-delete{
  width:30px;
  height:30px;
  padding:0;
  border-radius:8px;
  background:#edf1f3;
  color:#7a3434;
  font-size:20px;
}
.dashboard-todo-empty{
  padding:18px;
  border-radius:10px;
  background:#f6f8f9;
  color:var(--muted);
  text-align:center;
  font-size:13px;
}
.dashboard-todo-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-top:12px;
}
.dashboard-todo-footer .hint{
  margin:0;
  flex:1;
  min-width:220px;
}
.dashboard-evening-card{
  align-self:start;
}
.dashboard-details{
  padding:0;
  overflow:hidden;
}
.dashboard-details > summary{
  cursor:pointer;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:16px 18px;
  list-style:none;
}
.dashboard-details > summary::-webkit-details-marker{
  display:none;
}
.dashboard-details > summary span:first-child{
  display:grid;
  gap:4px;
}
.dashboard-details > summary strong{
  font-size:16px;
}
.dashboard-acq-inside{
  margin:0;
  padding:0 18px 18px;
}
.dashboard-acq-inside .daily-acq-dashboard-list{
  margin-top:10px;
}
@media(max-width:1000px){
  .dashboard-overview-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .dashboard-calendar-performance,
  .dashboard-work-grid{
    grid-template-columns:1fr;
  }
}
@media(max-width:760px){
  .sto-topbar{
    align-items:flex-start;
  }
  .sto-brand-block{
    flex-direction:column;
    gap:8px;
  }
  .sto-id4-mark{
    width:190px;
    flex-basis:auto;
  }
  .sto-topbar .sto-app-title h1{
    font-size:24px;
  }
  .dashboard-home-head{
    align-items:flex-start;
    flex-direction:column;
  }
  .dashboard-time-panel{
    width:100%;
    min-width:0;
    text-align:left;
    justify-items:start;
  }
  .dashboard-time-panel strong{
    font-size:32px;
  }
}
@media(max-width:520px){
  .dashboard-overview-grid{
    grid-template-columns:1fr 1fr;
    gap:8px;
  }
  .dashboard-overview-card{
    padding:13px;
  }
  .dashboard-overview-card strong{
    font-size:26px;
  }
  .dashboard-todo-input{
    grid-template-columns:1fr;
  }
}


/* Version 6.37 – echtes ID.4-Bild im Header */
.sto-id4-mark{
  width:300px;
  flex:0 0 300px;
  border:1px solid #d8dde1;
  border-radius:16px;
  background:linear-gradient(180deg,#0d1218 0%,#142230 100%);
  padding:8px 10px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08), 0 5px 16px rgba(23,40,57,.10);
  overflow:hidden;
}
.sto-id4-mark img{
  display:block;
  width:100%;
  height:auto;
  border-radius:12px;
}
@media(max-width:760px){
  .sto-id4-mark{
    width:220px;
    flex-basis:auto;
    padding:6px 8px;
  }
}


/* Version 6.38 – ID.4 direkt im HTML eingebettet */
.sto-id4-mark[data-header-version="6.38"] img{
  display:block;
  width:100%;
  height:auto;
  object-fit:contain;
}


/* Version 6.39 – freigestelltes Comic-Auto */
.sto-id4-mark.comic-car-card{
  width:270px;
  flex:0 0 270px;
  border:none;
  border-radius:0;
  background:transparent;
  padding:0;
  box-shadow:none;
  overflow:visible;
}
.sto-id4-mark.comic-car-card img{
  display:block;
  width:100%;
  height:auto;
  filter:drop-shadow(0 10px 16px rgba(12,20,29,.18));
}
@media(max-width:760px){
  .sto-id4-mark.comic-car-card{
    width:205px;
    flex-basis:auto;
  }
}


/* Version 6.40 – Header ohne Auto und ohne Sto-Schriftzug */
.sto-brand-block.header-title-only{
  display:block;
}
.sto-brand-block.header-title-only .sto-app-title{
  display:block;
}
.sto-brand-block.header-title-only .sto-app-title h1{
  margin:0;
  font-size:32px;
  line-height:1.05;
}
.sto-brand-block.header-title-only .sto-app-title p{
  margin:6px 0 0;
}
.sto-id4-mark,
.comic-car-card{
  display:none!important;
}
@media(max-width:760px){
  .sto-brand-block.header-title-only .sto-app-title h1{
    font-size:26px;
  }
}

/* Version 6.41 – Technische E-Mail / KI-Kontrolle */
.technical-email-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.technical-email-tools .hint{flex:1;min-width:220px;margin:0}
#technicalEmailText{min-height:260px;font-size:16px;line-height:1.55}
#btnTechnicalEmailAi{font-weight:800;background:#ffd500;color:#111}
#btnTechnicalEmailOutlook{font-weight:800}
.ai-review-overlay{position:fixed;inset:0;background:rgba(15,23,42,.62);z-index:9999;display:flex;align-items:center;justify-content:center;padding:18px}
.ai-review-overlay.hidden{display:none}
.ai-review-dialog{width:min(900px,96vw);max-height:92vh;overflow:auto;background:#fff;border-top:8px solid #ffd500;border-radius:16px;box-shadow:0 22px 70px rgba(0,0,0,.30);padding:20px}
.ai-review-dialog textarea{width:100%;min-height:360px;font-size:16px;line-height:1.55;background:#fffef8;border:1px solid var(--line);border-radius:10px;padding:12px;resize:vertical}
.ai-review-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;margin-top:14px}
@media(max-width:700px){.ai-review-dialog{padding:14px}.ai-review-dialog textarea{min-height:50vh}.ai-review-actions button{flex:1}}



/* Version 6.42 – Aufmaß + optionaler LV-Entwurf */
.measure-safety-card{border-left:6px solid #ffd500;background:#fffdf3}
.measure-safety-card p{margin:4px 0 0;color:var(--muted)}
.measure-entry-card{border-top:5px solid #ffd500}
.measure-preview{margin-top:14px;padding:14px 16px;border-radius:12px;background:#fff8cc;border:1px solid #ead05b;font-weight:800;min-height:48px;display:flex;align-items:center}
.measure-reveal-options{background:#fffef8;border-left:4px solid #ffd500}
.measure-check-row{display:flex;gap:12px;flex-wrap:wrap;margin-top:10px}
.measure-check-row .check{background:#fff;padding:8px 10px;border:1px solid var(--line);border-radius:9px}
.measure-summary-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:16px 0}
.measure-summary-card{margin:0!important}
.measure-summary-card span{display:block;color:var(--muted);font-size:13px;font-weight:700}
.measure-summary-card strong{display:block;margin-top:6px;font-size:21px}
.measure-summary-card.measure-minus{border-left:5px solid #d71920}
.measure-summary-card.measure-net{border-left:5px solid #ffd500;background:#fffdf3}
.measure-entry-item{border-left:5px solid #ffd500}
.measure-entry-item.measure-entry-minus{border-left-color:#d71920}
.measure-saved-item{border-left:5px solid #173f67}
.measure-lv-card{border-top:5px solid #ffd500}
.measure-lv-generate{align-self:end}
.measure-lv-editor{margin:16px 0;background:#fafcfd}
.measure-lv-item{border-left:5px solid #ffd500}
#measurementLvOutput{background:#fffef8}
@media(max-width:1100px){.measure-summary-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:700px){.measure-summary-grid{grid-template-columns:repeat(2,1fr)}.measure-summary-card strong{font-size:18px}.measure-check-row{display:grid;grid-template-columns:1fr 1fr}}
\n\n/* Version 6.44 – sichtbare Versionsnummer + Kollegblock */\n.app-title-version-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}\n.app-title-version-row h1{margin:0!important}\n.app-version-badge{display:inline-flex;align-items:center;justify-content:center;background:#ffd500;color:#111;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:900;letter-spacing:.04em;box-shadow:0 1px 0 rgba(255,255,255,.25) inset}\n.college-control-card{border-left:6px solid #ffd500}\n.college-page-nav{display:flex;gap:10px;align-items:end;flex-wrap:wrap}\n.college-page-nav label{min-width:180px;font-size:12px;font-weight:800;color:#41505e}\n.college-page-nav select{margin-top:5px}\n.college-meta-row{display:grid;grid-template-columns:180px minmax(260px,1fr) 160px;gap:12px;margin-top:14px}\n.college-meta-row label{font-size:12px;font-weight:800;color:#41505e}\n.college-meta-row input,.college-meta-row select{margin-top:5px}\n.college-workspace{display:grid;grid-template-columns:96px minmax(0,1fr);gap:14px;align-items:start}\n.college-side-tools{position:sticky;top:10px;padding:10px 8px;display:grid;gap:14px;justify-items:center;margin:0}\n.college-tool-group{width:100%;display:grid;gap:7px;justify-items:center}\n.college-tool-group>strong{font-size:11px;color:#566472;text-transform:uppercase;letter-spacing:.05em}\n.college-color-dot{width:34px;height:34px;border-radius:50%;padding:0;background:var(--tool-color);border:3px solid #fff;box-shadow:0 0 0 1px #aeb9c3}\n.college-color-dot.active{box-shadow:0 0 0 3px #ffd500}\n.college-marker-chip{width:62px;min-height:30px;padding:5px 4px;border-radius:7px;background:color-mix(in srgb,var(--marker-color) 42%,white);color:#17212b;border:1px solid color-mix(in srgb,var(--marker-color) 70%,#777);font-size:11px}\n.college-marker-chip.active{outline:3px solid #ffd500}\n.college-size-row{display:flex;gap:3px}.college-size-btn{width:26px;height:28px;padding:0;background:#e6ebef;color:#26323d;font-size:10px}.college-size-btn.active{background:#173f67;color:#fff}\n.college-action-tools button{width:78px;padding:7px 5px;font-size:10px}.college-action-tools button.tool-selected{outline:3px solid #ffd500;background:#173f67;color:#fff}\n.college-page-area{min-width:0;margin:0}\n.college-zoom-row{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:10px;font-weight:800}\n.college-zoom-controls{display:flex;align-items:center;gap:6px}.college-zoom-controls button{padding:7px 10px}.college-zoom-controls span{min-width:58px;text-align:center;font-size:12px}\n.college-page-scroll{overflow:auto;max-height:76vh;min-height:500px;padding:16px;background:#d8dde3;border-radius:12px;-webkit-overflow-scrolling:touch}\n.college-page-shell{margin:0 auto;background:#fff;box-shadow:0 7px 28px rgba(0,0,0,.22);flex:none}\n#collegeCanvas{display:block;background:#fff;touch-action:none;-webkit-user-select:none;user-select:none}\n#collegeCanvas.college-hand-mode{touch-action:auto;cursor:grab}\n.college-pencil-hint{margin-bottom:0}\n.college-text-card{border-top:5px solid #ffd500}\n#collegeTextDraft{font-size:16px;line-height:1.45}\n.college-text-actions{align-items:center;margin-top:10px}.college-text-actions .hint{margin:0;align-self:center}\n.college-page-actions{border-left:6px solid #173f67}.college-save-error{color:#a12626!important;font-weight:800}\n@media(max-width:900px){.college-workspace{grid-template-columns:78px minmax(0,1fr)}.college-side-tools{padding:8px 5px}.college-action-tools button{width:64px;font-size:9px}.college-meta-row{grid-template-columns:1fr 1fr}.college-title-field{grid-column:1/-1}.college-page-scroll{padding:10px;max-height:72vh}}\n@media(max-width:620px){.college-workspace{grid-template-columns:1fr}.college-side-tools{position:static;display:flex;overflow-x:auto;justify-content:flex-start;align-items:flex-start}.college-tool-group{min-width:max-content;width:auto}.college-page-scroll{min-height:420px}.college-meta-row{grid-template-columns:1fr}.college-title-field{grid-column:auto}}\n

/* Version 6.45 – Kollegblock: ruhiger Vollbild-Schreibmodus */
.college-write-exit,.college-write-slider-wrap{display:none}
body.college-writing-mode-active{position:fixed;left:0;right:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none;background:#cfd5dc}
.college-page-area.college-writing-active{position:fixed!important;inset:0!important;z-index:50000!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#cfd5dc!important;overflow:hidden!important;touch-action:none!important}
.college-page-area.college-writing-active .college-zoom-row,.college-page-area.college-writing-active .college-pencil-hint{display:none!important}
.college-page-area.college-writing-active .college-page-scroll{position:absolute!important;inset:0 58px 0 0!important;width:auto!important;height:auto!important;max-height:none!important;min-height:0!important;margin:0!important;padding:0!important;border-radius:0!important;overflow:hidden!important;background:#cfd5dc!important;-webkit-overflow-scrolling:auto!important;overscroll-behavior:none!important;touch-action:none!important}
.college-page-area.college-writing-active .college-page-shell{position:absolute!important;left:50%!important;top:12px!important;margin:0!important;box-shadow:0 7px 30px rgba(0,0,0,.28)!important;will-change:transform}
.college-page-area.college-writing-active #collegeCanvas{touch-action:none!important;-webkit-user-select:none!important;user-select:none!important}
.college-page-area.college-writing-active .college-write-exit{display:block;position:absolute;left:14px;bottom:max(14px,env(safe-area-inset-bottom));z-index:50003;min-width:105px;padding:11px 16px;border-radius:999px;background:#173f67;color:#fff;border:2px solid rgba(255,255,255,.85);box-shadow:0 3px 14px rgba(0,0,0,.28);font-weight:900}
.college-page-area.college-writing-active .college-write-slider-wrap{display:flex;position:absolute;right:0;top:0;bottom:0;width:58px;z-index:50002;align-items:center;justify-content:center;background:rgba(245,247,249,.96);border-left:1px solid #aeb8c1;touch-action:auto}
.college-write-slider{width:min(72vh,620px);height:34px;transform:rotate(90deg);transform-origin:center;accent-color:#173f67;touch-action:auto}
@media(orientation:landscape){.college-page-area.college-writing-active .college-page-scroll{right:62px!important}.college-page-area.college-writing-active .college-write-slider-wrap{width:62px}}


/* Version 6.46 – Kollegblock: feste Werkzeugleiste im Schreibmodus */
.college-write-tools{display:none}
.college-page-area.college-writing-active .college-write-tools{
  display:flex;position:absolute;left:10px;top:50%;transform:translateY(-50%);z-index:50004;
  width:54px;padding:8px 5px;border-radius:15px;background:rgba(248,250,252,.96);
  border:1px solid #aeb8c1;box-shadow:0 4px 18px rgba(0,0,0,.22);flex-direction:column;
  align-items:center;gap:6px;touch-action:manipulation;-webkit-user-select:none;user-select:none
}
.college-write-tool-section{display:flex;flex-direction:column;align-items:center;gap:6px;width:100%}
.college-write-tool-label{font-size:8px;font-weight:900;color:#52606d;text-transform:uppercase;letter-spacing:.04em}
.college-write-tool-divider{width:34px;height:1px;background:#c8d0d7;margin:2px 0}
.college-write-pen{width:30px;height:30px;min-height:30px;padding:0;border-radius:50%;background:var(--tool-color);border:3px solid #fff;box-shadow:0 0 0 1px #9aa7b2}
.college-write-pen.active{box-shadow:0 0 0 3px #ffd500}
.college-write-marker{width:36px;height:28px;min-height:28px;padding:0 2px;border-radius:6px;background:color-mix(in srgb,var(--marker-color) 52%,white);border:1px solid color-mix(in srgb,var(--marker-color) 75%,#777);color:#17212b;font-size:9px;font-weight:900}
.college-write-marker.active{outline:3px solid #ffd500;outline-offset:1px}
.college-write-eraser{width:38px;height:34px;min-height:34px;padding:0;border-radius:8px;background:#fff;color:#17212b;border:1px solid #9aa7b2;font-size:18px;font-weight:900}
.college-write-tools [data-college-tool].tool-selected{outline:3px solid #173f67;outline-offset:2px}
.college-write-tools .active.tool-selected{outline-color:#173f67}
.college-page-area.college-writing-active .college-page-scroll{left:64px!important}
@media(orientation:landscape){
  .college-page-area.college-writing-active .college-write-tools{left:8px;width:52px;padding:7px 4px}
  .college-page-area.college-writing-active .college-page-scroll{left:62px!important;right:62px!important}
}


/* Version 6.47 – Kollegblock Werkzeugumschaltung iPad */
.college-write-tools button{pointer-events:auto!important;touch-action:manipulation!important;-webkit-tap-highlight-color:transparent}
.college-write-active-tool{font-size:9px;font-weight:900;color:#173f67;background:#ffd500;border-radius:999px;padding:3px 5px;min-width:40px;text-align:center;margin-bottom:2px}
.college-write-eraser.active,.college-write-eraser.tool-selected{background:#173f67!important;color:#fff!important;outline:3px solid #ffd500!important;outline-offset:1px}
.college-write-marker.tool-selected{box-shadow:0 0 0 3px #173f67}
.college-write-pen.tool-selected{box-shadow:0 0 0 3px #ffd500,0 0 0 5px #173f67}


/* Version 6.50 – Aufmaß: KI-LV-Assistent */
.measurement-lv-ai-card{border-left:6px solid #ffd500;background:linear-gradient(135deg,#fffdf0,#fff)}
.measure-ai-button{background:#ffd500!important;color:#111!important;font-weight:900!important}
.measure-ai-button:disabled{opacity:.55;cursor:wait}
.measure-lv-ai-item{border-left:5px solid #ffd500}
.measure-ai-chip,.measure-manual-chip{display:inline-flex;align-items:center;border-radius:999px;padding:3px 7px;font-size:10px;font-weight:900;vertical-align:middle;margin-left:6px}
.measure-ai-chip{background:#fff1a8;color:#332900;border:1px solid #e8ca38}
.measure-manual-chip{background:#fff0e7;color:#9a3412;border:1px solid #fdba74}
.measure-lv-ai-item .item-actions{align-items:flex-start}
@media(max-width:720px){.measurement-lv-ai-card .section-head{align-items:flex-start}.measure-lv-ai-item .item-actions{width:100%}}

/* Version 6.51 – Zulassungen / DIBt-Produktsuche */
.approval-search-card{overflow:visible}
.approval-search-line{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:9px;align-items:center}
.approval-search-line input{font-size:16px}
.approval-source-note{margin-top:12px;padding:12px 14px;border-left:4px solid #d9a400;background:#fff9df;border-radius:8px;color:#5f531f;font-size:13px;line-height:1.45}
.approval-source-note strong{color:#3d3518}
.approval-quick{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}
.approval-quick button{padding:7px 10px;font-size:12px;background:#eef3f7;color:#29465e;border:1px solid #d5e0e8}
.approval-summary{margin:12px 0 0;color:var(--muted);font-size:13px;font-weight:700}
.approval-two-col{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;margin-bottom:18px}
.approval-panel{margin-bottom:0}
.approval-panel h3{margin:0 0 4px}.approval-panel>p{margin:0 0 12px;color:var(--muted);font-size:13px}
.approval-catalog-list{display:grid;gap:7px;max-height:330px;overflow:auto}
.approval-catalog-row{width:100%;display:flex;justify-content:space-between;align-items:center;gap:12px;text-align:left;background:#fff;color:var(--ink);border:1px solid var(--line);padding:10px 11px;border-radius:10px}
.approval-catalog-row:hover{border-color:#9fb5c8;background:#fbfdff}.approval-catalog-row span{min-width:0}.approval-catalog-row strong{display:block;font-size:13px}.approval-catalog-row small{display:block;color:var(--muted);margin-top:3px;font-weight:400}.approval-catalog-row b{font-size:11px;color:#657180;white-space:nowrap}.approval-catalog-row b.has-index{color:#176b38}
.approval-product-hit{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}.approval-product-hit:last-child{border-bottom:0}.approval-product-hit>div{display:grid;gap:3px}.approval-product-hit>span{font-size:12px;font-weight:800;color:var(--accent);white-space:nowrap}.approval-product-category{font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:800}.approval-product-hit strong{font-size:14px}
.approval-empty{display:grid;gap:5px;padding:13px;border:1px dashed #c9d4dd;border-radius:10px;background:#fafcfd}.approval-empty span{font-size:12px;color:var(--muted);line-height:1.4}
.approval-result-list{display:grid;gap:13px;margin-bottom:18px}.approval-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px;box-shadow:0 2px 8px rgba(23,40,57,.04)}.approval-card-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.approval-card-head h3{margin:4px 0 0;font-size:20px}.approval-kind{display:inline-block;font-size:10px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;color:#176b38;background:#e8f6ed;border-radius:999px;padding:4px 7px}.approval-valid{font-size:12px;font-weight:800;color:#176b38;background:#f1faf4;border:1px solid #cae8d4;border-radius:999px;padding:6px 9px;white-space:nowrap}.approval-title{font-weight:700;margin:10px 0 12px}.approval-systems{display:flex;gap:6px;align-items:center;flex-wrap:wrap;font-size:12px}.approval-systems strong{margin-right:3px}.approval-systems span{background:#eef3f7;color:#344d62;border-radius:999px;padding:5px 8px}.approval-note{font-size:12px;color:#6c5e28;background:#fff9df;border-radius:8px;padding:9px 10px;line-height:1.45}.approval-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.approval-actions button{font-size:12px;padding:8px 11px}.approval-match-products{margin:8px 0 10px;font-size:12px}.approval-match-products strong{margin-right:5px}.approval-product-pill{display:inline-block;background:#e8f6ed;color:#176b38;border-radius:999px;padding:4px 7px;margin:2px}
.approval-eta-list{display:grid;gap:8px}.approval-eta-row{display:flex;justify-content:space-between;gap:12px;align-items:center;border-bottom:1px solid var(--line);padding:9px 0}.approval-eta-row:last-child{border-bottom:0}.approval-eta-row>div:first-child{display:grid;gap:3px}.approval-eta-row>div:first-child span{font-size:13px;color:var(--muted)}.approval-eta-row>div:last-child{display:flex;align-items:center;gap:9px}.approval-eta-row small{color:var(--muted)}.approval-eta-row button{padding:7px 9px;font-size:11px}
@media(max-width:800px){.approval-search-line{grid-template-columns:1fr}.approval-two-col{grid-template-columns:1fr}.approval-card-head{flex-direction:column}.approval-valid{white-space:normal}.approval-eta-row{align-items:flex-start;flex-direction:column}.approval-eta-row>div:last-child{width:100%;justify-content:space-between}.approval-product-hit{flex-direction:column}.approval-product-hit>span{white-space:normal}}
\n\n/* Version 6.52 – Technische Merkblätter */\n.techsheet-search-card{overflow:visible}\n.techsheet-search-line{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:9px;align-items:center}\n.techsheet-search-line input{font-size:16px}\n.techsheet-category-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px}\n.techsheet-category{background:#eef3f7!important;color:#29465e!important;border:1px solid #d5e0e8!important;padding:9px 15px!important;font-weight:850!important}\n.techsheet-category.active{background:#173f67!important;color:#fff!important;border-color:#173f67!important;box-shadow:0 0 0 2px rgba(23,63,103,.1)}\n.techsheet-quick{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}\n.techsheet-quick button{padding:7px 10px;font-size:12px;background:#fff8d7;color:#514200;border:1px solid #ead56c}\n.techsheet-summary{margin:12px 0 0;color:var(--muted);font-size:13px;font-weight:800}\n.techsheet-source-note{margin-top:12px;padding:12px 14px;border-left:4px solid #173f67;background:#eef5fb;border-radius:8px;color:#355167;font-size:13px;line-height:1.45}\n.techsheet-source-note strong{color:#173f67}\n.techsheet-three-col{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:0 0 18px}\n.techsheet-area-card{display:flex!important;align-items:center!important;gap:12px!important;text-align:left!important;background:#fff!important;color:var(--ink)!important;border:1px solid var(--line)!important;padding:15px!important;border-radius:14px!important;box-shadow:0 2px 8px rgba(23,40,57,.04)}\n.techsheet-area-card:hover{border-color:#91abc0!important;transform:translateY(-1px)}\n.techsheet-area-icon{font-size:27px;line-height:1}\n.techsheet-area-card>span:last-child{display:grid;gap:4px}\n.techsheet-area-card strong{font-size:16px}.techsheet-area-card small{font-size:11px;line-height:1.35;color:var(--muted);font-weight:500}\n.techsheet-result-list{display:grid;gap:10px;margin-bottom:18px}\n.techsheet-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:13px;padding:13px 14px;box-shadow:0 2px 7px rgba(23,40,57,.035)}\n.techsheet-main{min-width:0}.techsheet-name{font-size:15px;font-weight:850;display:block}.techsheet-meta{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin-top:6px;color:var(--muted);font-size:11px}\n.techsheet-pill{display:inline-flex;border-radius:999px;padding:4px 7px;font-size:10px;font-weight:850;background:#eef3f7;color:#385469}.techsheet-pill.inside{background:#eef6ff;color:#1c5d91}.techsheet-pill.outside{background:#edf8ee;color:#2a6a34}.techsheet-pill.wdvs{background:#fff4cc;color:#715800}\n.techsheet-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.techsheet-actions button{font-size:11px;padding:8px 10px;white-space:nowrap}.techsheet-actions .techsheet-direct{background:#173f67;color:#fff}.techsheet-actions .techsheet-copy{background:#eef3f7;color:#29465e;border:1px solid #d5e0e8}\n.techsheet-empty{display:grid;gap:6px;padding:16px;border:1px dashed #c9d4dd;border-radius:12px;background:#fafcfd}.techsheet-empty span{font-size:12px;color:var(--muted);line-height:1.45}\n.techsheet-link-state{font-size:10px;font-weight:800;margin-left:5px}.techsheet-link-state.direct{color:#176b38}.techsheet-link-state.search{color:#8a6a00}\n@media(max-width:800px){.techsheet-search-line{grid-template-columns:1fr}.techsheet-three-col{grid-template-columns:1fr}.techsheet-row{grid-template-columns:1fr}.techsheet-actions{justify-content:flex-start}.techsheet-actions button{white-space:normal}}\n

/* Version 6.53 – dezentes Gold/Gelb statt dominanter Blautöne + KI E-Mail */
:root{
  --accent:#b7952f;
  --accent2:#fff7dc;
}
.topbar{
  background:linear-gradient(90deg,#302f2a 0%,#302f2a 78%,#45402d 100%);
  border-top:4px solid #d2b455;
  border-bottom:1px solid #b8a25d;
  padding-top:17px;
  padding-bottom:17px;
}
.topbar p{color:#dedbd0}
.tab{background:#eceae3;color:#38362f;border:1px solid #dedbd1}
.tab:hover{background:#f6f2e4;border-color:#d8c77d}
.tab.active{background:#d2b455;color:#29271f;border-color:#c4a640}
button{background:#c8a83f;color:#29271f}
button:hover{filter:brightness(.97)}
button.secondary{background:#ebe7d9;color:#3a372d;border:1px solid #dad3bd}
button.secondary:hover{background:#f4f0e4}
button.danger,.danger{background:#9b2c2c;color:#fff}
.eyebrow{color:#9a7a1f}
.badge{background:#fff5cf;color:#755b10}
.cal-day.today{outline-color:#c8a83f}
.download-count{color:#755b10;background:#fff5cf}
.pdf-btn{background:#8e7b3d;color:#fff}
.tile:hover{border-color:#d8c77d;background:#fffdf7}
.suggestion-box{border-color:#d9cfaa;background:#fffdf8}
.customer-profile-card{border-color:#d7c987}
.daily-acq-contact-panel{border-color:#d8c77d}
.daily-acq-card.priority-tier-0{border-left-color:#b7952f}
.priority-task-item.offer-task{border-left-color:#b7952f}

.ki-email-head{align-items:center}
.ki-email-connection-box{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.ki-connection-badge{display:inline-flex;align-items:center;min-height:38px;padding:8px 12px;border-radius:999px;font-size:12px;font-weight:800;border:1px solid #d8d3c5;background:#f4f2eb;color:#68645a}
.ki-connection-badge.is-ok{background:#e8f6eb;color:#176b38;border-color:#b8dfc2}
.ki-connection-badge.is-error{background:#fff0ed;color:#9b2c2c;border-color:#efc0b8}
.ki-connection-badge.is-checking{background:#fff7dc;color:#755b10;border-color:#e4d28d}
.ki-email-card{border-top:4px solid #d2b455}
.ki-email-customer-block{background:#fffdf7;border-color:#e3dcc3}
.ki-email-text-label textarea{min-height:280px;line-height:1.55;font-size:16px}
.ki-email-tools{padding:12px;border-radius:11px;background:#fbf8ed;border:1px solid #e5dcc0}
.ki-email-tools .hint{margin:0;flex:1;min-width:240px}
.ki-email-actions{padding-top:4px}
.ai-review-dialog{border-top:5px solid #d2b455}
@media(max-width:800px){
  .ki-email-connection-box{justify-content:flex-start;width:100%}
  .ki-email-connection-box button{width:auto}
}

/* v6.53.1 – dezente KI-Werkzeuge in Berichten */
.report-ai-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 12px;border:1px solid #e5dcc0;background:#fffdf7;border-radius:10px}
.report-ai-tools .hint{margin:0;flex:1;min-width:240px}
.report-ai-tools button:not(.secondary){background:#b79a3d;color:#fff;border-color:#b79a3d}
.report-ai-tools button:not(.secondary):hover{filter:brightness(.96)}


/* Version 6.54.0 – Arbeitskalender auf der Startseite */
.calendar-day-navigation{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin:0 0 12px}
.mini-calendar .cal-day{position:relative;min-height:42px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font:inherit}
.mini-calendar .cal-day.selected{outline:3px solid #2f6f9f;outline-offset:1px;font-weight:900}
.cal-dots{display:flex;gap:3px;min-height:5px;align-items:center;justify-content:center}
.cal-dot{width:5px;height:5px;border-radius:999px;display:block;background:currentColor}
.cal-dot.appointment{color:#2f6f9f}.cal-dot.visit{color:#2f8a4b}.cal-dot.site-report{color:#a76b16}
.calendar-selected-day{margin-top:14px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fff}
.calendar-selected-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}.calendar-selected-head h3{margin:2px 0 0}
.calendar-day-status{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.calendar-day-status span{font-size:11px;font-weight:800;padding:5px 8px;border-radius:999px;background:#eef3f7}.calendar-day-status .is-blocked{background:#f2e7e7}
.calendar-quick-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.calendar-quick-actions button{flex:1 1 180px}
.calendar-appointment-details{margin-top:12px;border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden}.calendar-appointment-details summary{cursor:pointer;font-weight:800;padding:12px 14px;background:#f7f9fb}.calendar-appointment-details[open] summary{border-bottom:1px solid var(--line)}
.calendar-appointment-form{padding:12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.calendar-appointment-form label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:700}.calendar-appointment-date,.calendar-appointment-wide{grid-column:1/-1}.calendar-appointment-date{font-size:13px;padding:8px 10px;border-radius:8px;background:#f4f7f9}.calendar-appointment-actions{display:flex;gap:8px;flex-wrap:wrap}.calendar-appointment-actions button{flex:1 1 220px}
.calendar-agenda-wrap{margin-top:14px}.calendar-agenda-wrap h4{margin:0 0 8px}.calendar-day-agenda{display:grid;gap:8px}.calendar-agenda-item{border:1px solid var(--line);border-radius:10px;padding:10px;background:#fff;display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.calendar-agenda-item>div:first-child{min-width:0}.calendar-agenda-item small{display:block;color:var(--muted);margin-top:3px}.calendar-agenda-item p{margin:6px 0 0;font-size:12px}.calendar-agenda-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.calendar-agenda-actions button{font-size:11px;padding:7px 9px}.calendar-report-row{background:#fafbfc}.calendar-empty-day{font-size:12px;color:var(--muted);padding:10px;border:1px dashed var(--line);border-radius:10px}
@media(max-width:720px){.calendar-appointment-form{grid-template-columns:1fr}.calendar-appointment-wide,.calendar-appointment-date{grid-column:1}.calendar-agenda-item{flex-direction:column}.calendar-agenda-actions{justify-content:flex-start}.calendar-day-status{justify-content:flex-start}}


/* Version 6.58.3 – Kunden & Kontakte kompakter + vereinfachte Gebietskarte */
.customer-contact-tools{
  margin-top:18px;
  padding:0;
  overflow:hidden;
  border-left:6px solid #ffd500;
}
.customer-contact-tools > summary{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:16px 18px;
  background:#fffdf2;
}
.customer-contact-tools > summary::-webkit-details-marker{display:none}
.customer-contact-tools > summary span:first-child{display:grid;gap:3px}
.customer-contact-tools > summary strong{font-size:17px}
.customer-contact-tools > summary small{color:var(--muted);font-size:12px}
.customer-contact-summary-hint{
  font-size:12px;
  font-weight:850;
  padding:6px 9px;
  border-radius:999px;
  background:#ffd500;
  color:#171717;
}
.customer-contact-tools[open] .customer-contact-summary-hint{font-size:0}
.customer-contact-tools[open] .customer-contact-summary-hint::after{content:"schließen";font-size:12px}
.customer-contact-tools-body{padding:0 14px 14px}
.customer-contact-tools-body > .card{box-shadow:none;margin-top:12px}

.map-compact-search-card{
  padding:12px 14px;
  border-left:5px solid #ffd500;
}
.map-compact-search-card .customer-select-block{margin:0}
.map-customer-info-card{
  margin-top:14px;
  border-left:6px solid #ffd500;
}
.map-info-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}
.map-info-head h3{margin:3px 0 4px;font-size:22px}
.map-info-head p{margin:0;color:var(--muted);font-size:12px}
.map-info-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.map-info-grid > div{
  display:grid;
  gap:4px;
  padding:11px 12px;
  border-radius:10px;
  background:#f4f6f7;
}
.map-info-grid small,.map-info-section>small{
  text-transform:uppercase;
  letter-spacing:.04em;
  font-size:10px;
  font-weight:850;
  color:#6a7580;
}
.map-info-grid strong{font-size:13px;overflow-wrap:anywhere}
.map-info-section{margin-top:14px}
.map-info-contacts{display:grid;gap:7px;margin-top:7px}
.map-info-contacts>div{
  padding:9px 11px;
  border:1px solid var(--line);
  border-radius:9px;
  background:#fff;
  font-size:12px;
  line-height:1.4;
}
.map-info-actions{margin-top:14px}
.map-maintenance-card{padding:0;margin-top:12px}
.map-maintenance-card>summary{
  list-style:none;
  cursor:pointer;
  padding:12px 14px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
}
.map-maintenance-card>summary::-webkit-details-marker{display:none}
.map-maintenance-card>summary small{color:var(--muted)}
.map-maintenance-body{padding:0 14px 14px}
#territoryMapCanvas{height:min(72vh,720px)}
@media(max-width:700px){
  .map-info-grid{grid-template-columns:1fr}
  .map-info-head{align-items:center}
  .customer-contact-tools>summary{align-items:flex-start}
}


/* v6.59.7 – Notizblatt 100 %, Werkzeugleiste oben, Pencil-only */
.note-a3-workspace{display:flex;flex-direction:column;gap:10px;align-items:stretch}
.note-a3-tools{position:sticky;top:0;z-index:25;margin:0;padding:9px 12px;display:flex;align-items:center;justify-content:flex-start;gap:18px;flex-wrap:wrap;box-shadow:0 3px 12px rgba(23,63,103,.10)}
.note-a3-tool-group{width:auto;display:flex;align-items:center;gap:8px;justify-items:initial}
.note-a3-tool-group>strong{margin-right:2px;white-space:nowrap}
.note-a3-inline-tools{display:flex;align-items:center;gap:6px}
.note-a3-actions-small button{width:auto;min-width:92px;padding:7px 10px;font-size:11px}
.note-a3-fixed-zoom{display:inline-flex;align-items:center;justify-content:center;min-width:58px;padding:6px 8px;border-radius:8px;background:#edf1f4;color:#173f67;font-weight:900}
.note-a3-page-scroll{max-height:76vh;min-height:460px}
.note-a3-page-shell{margin:0 auto}
#freeNoteA3Canvas{touch-action:none;cursor:crosshair}
.note-a3-fullscreen-exit{display:none!important;font-weight:900}
.note-a3-workspace.note-a3-fullscreen{position:fixed;inset:0;z-index:10050;background:#eef1f4;padding:8px;display:flex;flex-direction:column;gap:8px;align-items:stretch}
.note-a3-workspace.note-a3-fullscreen .note-a3-tools{position:relative;top:auto;z-index:2;max-height:none;overflow:visible;display:flex;padding:7px 10px;flex:0 0 auto}
.note-a3-workspace.note-a3-fullscreen .note-a3-page-card{height:auto;min-height:0;flex:1 1 auto;display:flex;flex-direction:column;overflow:hidden;padding:8px}
.note-a3-workspace.note-a3-fullscreen .note-a3-page-scroll{flex:1 1 auto;min-height:0;max-height:none;height:auto;padding:8px}
.note-a3-workspace.note-a3-fullscreen .note-a3-fullscreen-btn{display:none}
.note-a3-workspace.note-a3-fullscreen .note-a3-fullscreen-exit{display:inline-flex!important}
.note-a3-workspace.note-a3-fullscreen .note-a3-page-card>.hint{display:none}
@media(max-width:900px){
  .note-a3-tools{gap:10px;padding:8px;overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch}
  .note-a3-tool-group{min-width:max-content}
  .note-a3-page-scroll{padding:8px}
}
@media(max-width:620px){
  .note-a3-workspace{display:flex;grid-template-columns:none}
  .note-a3-tools{position:sticky;display:flex;overflow-x:auto;overflow-y:hidden;align-items:center;justify-content:flex-start}
  .note-a3-workspace.note-a3-fullscreen{display:flex;grid-template-columns:none;padding:5px;gap:5px}
  .note-a3-workspace.note-a3-fullscreen .note-a3-tools{display:flex;overflow-x:auto;overflow-y:hidden;position:relative}
  .note-a3-workspace.note-a3-fullscreen .note-a3-tool-group{min-width:max-content;width:auto}
  .note-a3-workspace.note-a3-fullscreen .note-a3-page-card{height:auto}
}


/* v6.59.9 – Terminart in Bestellung deutlich hervorheben */
#orders .order-date-type-emphasis{font-weight:900;color:#c62828;}
#orders .order-date-type-emphasis select{font-weight:900;color:#c62828;border:2px solid #c62828;background:#fff7f7;}
#orders .order-date-type-emphasis select:focus{outline:3px solid rgba(198,40,40,.18);outline-offset:1px;}


/* v6.59.12 – Baustellenbericht: Bearbeitung, Bildbemerkungen, professioneller PDF-Workflow */
.site-report-edit-banner{margin:0 0 12px;padding:13px 16px;border:1px solid #d6b900;border-left:6px solid var(--accent);border-radius:11px;background:#fff9cf;color:#28323b;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.site-report-edit-banner span{font-size:12px;color:#59636f;flex-basis:100%}
.site-report-photo-note-label{display:block;font-size:11px;font-weight:800;color:#41505e;margin:4px 0 9px}
.site-report-photo-note{width:100%;margin-top:5px;min-height:64px;resize:vertical;font-size:12px;line-height:1.35}
.site-report-photo-card{display:flex;flex-direction:column}.site-report-photo-card-body{display:flex;flex-direction:column;flex:1}.site-report-photo-card-actions{margin-top:auto}
.site-report-stored-photo{width:min(240px,100%);display:flex;gap:7px;align-items:flex-start;background:#f8fafb;border:1px solid var(--line);border-radius:9px;padding:6px}
.site-report-stored-photo .site-report-thumb{flex:0 0 80px}.site-report-stored-photo small{font-size:11px;line-height:1.35;color:#59636f;overflow-wrap:anywhere}
.site-report-thumbs{align-items:stretch}.site-report-list-text{white-space:pre-line}.site-report-edited-badge{display:inline-block;margin-left:6px;padding:3px 7px;border-radius:999px;background:#eef3f6;color:#59636f;font-size:10px;vertical-align:middle}
