:root{--bg:#f5f7f6;--sidebar:#131a1d;--sidebar2:#1b2528;--border:#e3e9e7;--text:#172323;--muted:#778486;--green:#b3ff4d;--green2:#dcffb0;--deep:#213b22;--white:#fff;--red:#bf3e35;--yellow:#b47814;--shadow:0 8px 30px #2636320a}
*{box-sizing:border-box}html,body{min-height:100%;margin:0;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--text);background:var(--bg)}[hidden]{display:none!important}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit}a:hover{color:#407713;text-decoration:underline}.app{display:flex;min-height:100vh}.sidebar{width:260px;min-width:260px;background:var(--sidebar);color:white;display:flex;flex-direction:column;padding:29px 15px 18px;position:sticky;top:0;height:100vh}.identity{display:flex;gap:10px;align-items:center;padding:0 12px;margin-bottom:55px;font-size:20px;letter-spacing:.05em}.identity small,.auth-brand small{font-size:9px;letter-spacing:.24em;color:#93a1a5;display:block;margin-top:4px}.brand-mark{display:grid;place-items:center;width:45px;height:45px;flex-shrink:0;border-radius:12px;background:var(--green);color:#132417;font-weight:950;font-size:30px;letter-spacing:-.11em;padding-right:6px}.dot{color:#398521}.sidebar-label{font-size:10px;letter-spacing:.15em;color:#6b8388;margin:0 12px 12px;font-weight:800}.sidebar nav{display:flex;flex-direction:column;gap:5px}.nav-link{display:flex;align-items:center;gap:13px;color:#bac8c9;width:100%;background:none;border:0;border-radius:11px;text-align:left;padding:13px;font-size:13px;font-weight:600}.nav-link:hover{background:#253235;color:white}.nav-link.active{background:#28392d;color:var(--green)}.nav-icon{width:19px;text-align:center;font-size:18px}.sidebar-footer{margin-top:auto;border-top:1px solid #2e393d;padding-top:20px}.app-environment{display:flex;align-items:center;font-size:11px;color:#9badb1;padding:4px 11px 22px}.indicator{width:7px;height:7px;border-radius:50%;background:var(--green);margin-right:10px;box-shadow:0 0 0 4px #b3ff4d21}.side-user{display:flex;align-items:center;gap:10px;padding:12px;background:#202e31;border-radius:10px}.avatar{width:35px;height:35px;border-radius:9px;background:#385341;color:var(--green);display:grid;place-items:center;font-weight:900}.side-user b,.side-user small{display:block;font-size:12px}.side-user small{font-size:10px;color:#9bb2b6;margin-top:3px}.logout{color:#9fb0b3;border:0;background:none;font-size:12px;font-weight:600;margin:14px 10px 0;padding:5px}.logout span{margin-left:10px}.main{min-width:0;flex:1}.topbar{height:104px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 38px}.eyebrow{font-size:10px;color:#80918d;font-weight:800;letter-spacing:.15em}.topbar h1{font-size:26px;letter-spacing:-.04em;margin:6px 0 0;font-weight:760}.topbar-right{display:flex;align-items:center;gap:18px}.current-date{font-size:12px;color:#81908c}.role-chip{background:#edfacf;color:#385d24;border-radius:100px;padding:7px 12px;font-size:11px;font-weight:750}.content{max-width:1480px;margin:auto;padding:30px 38px 70px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 18px}.section-heading h2{font-size:21px;letter-spacing:-.035em;margin:0}.section-heading p{font-size:12px;color:var(--muted);margin:7px 0 0}.section-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.card{background:var(--white);border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow)}.card-pad{padding:22px}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:24px}.stat{padding:22px 21px}.stat-top{display:flex;justify-content:space-between;align-items:center;gap:9px;font-size:11px;color:var(--muted);font-weight:700}.stat-icon{font-size:18px;background:#edf5ee;width:32px;height:32px;border-radius:10px;display:grid;place-items:center}.stat-value{font-size:38px;font-weight:790;letter-spacing:-.07em;margin:13px 0 0;line-height:1}.stat-footer{margin-top:9px;font-size:11px;color:#9aa8a6}.two-col{display:grid;grid-template-columns:1.25fr .85fr;gap:18px}.three-col{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.card-title{font-size:16px;font-weight:760;letter-spacing:-.025em;margin:0 0 6px}.subtle{font-size:12px;color:var(--muted);line-height:1.6}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid transparent;border-radius:10px;padding:10px 15px;font-size:12px;font-weight:760;min-height:39px;transition:background .1s,transform .1s;text-decoration:none;white-space:nowrap}.btn:hover{text-decoration:none;transform:translateY(-1px)}.btn-primary{background:var(--green);color:#183019;border-color:#a4e63e}.btn-primary:hover{background:#c3ff6d;color:#183019}.btn-dark{background:#1d292a;color:#fff}.btn-dark:hover{background:#334546;color:#fff}.btn-secondary{background:#fff;border-color:#d7e0db;color:#3c4e4b}.btn-secondary:hover{background:#f5f8f6}.btn-danger{background:#fff1ef;border-color:#ffdcda;color:var(--red)}.btn-small{padding:6px 10px;min-height:31px;font-size:11px;border-radius:7px}.btn:disabled{opacity:.4;cursor:not-allowed;transform:none}.btn-wide{width:100%}.link-btn{border:0;background:none;font-size:12px;color:#456c33;font-weight:750;padding:2px}.field{display:flex;flex-direction:column;gap:6px;margin:0 0 14px}.field label,.auth-panel label{font-size:11px;font-weight:750;color:#617270}.field input,.field select,.field textarea,input,select,textarea{border:1px solid #dbe4e0;background:white;color:var(--text);border-radius:9px;padding:10px 12px;outline:none;max-width:100%;font-size:13px}.field input:focus,.field select:focus,textarea:focus,.auth-panel input:focus{border-color:#89b85a;box-shadow:0 0 0 3px #b3ff4d35}.field textarea{min-height:70px;resize:vertical}.form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.form-row.three{grid-template-columns:repeat(3,minmax(0,1fr))}.pill{display:inline-flex;border-radius:999px;background:#eef2f0;color:#52625e;font-size:10px;padding:5px 9px;font-weight:800;white-space:nowrap}.pill.green{background:#e7f9dd;color:#416d2e}.pill.yellow{background:#fff4d5;color:#99671a}.pill.red{background:#fff0ef;color:#a7473f}.pill.blue{background:#e8f0ff;color:#48638d}.pill.grey{background:#eff1f1;color:#667572}.pill.dark{background:#dde5e4;color:#39484a}.toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin:16px 0}.toolbar-left{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.search{width:310px;max-width:100%;position:relative}.search input{width:100%;padding-left:34px}.search:before{content:'⌕';position:absolute;left:12px;top:5px;font-size:20px;color:#94a29e}.data-table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}.data-table th{font-size:10px;text-transform:uppercase;letter-spacing:.07em;color:#849390;font-weight:800;background:#fafbfa;border-bottom:1px solid var(--border);padding:14px 12px;white-space:nowrap}.data-table td{padding:13px 12px;border-bottom:1px solid #edf0ef;vertical-align:middle}.data-table tbody tr:hover{background:#fafdf8}.data-table tbody tr:last-child td{border-bottom:0}.table-wrapper{overflow:auto}.strong{font-weight:760}.mini{font-size:10px;color:var(--muted);margin-top:5px;line-height:1.5}.mono{font-variant-numeric:tabular-nums;font-feature-settings:'tnum';font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.warning{background:#fff8e9;border:1px solid #f5e3bd;border-radius:10px;padding:13px 16px;color:#81611b;font-size:12px;line-height:1.6}.info{background:#f3f8f5;border:1px solid #e1ece4;border-radius:10px;padding:13px 16px;color:#4c6855;font-size:12px;line-height:1.6}.empty{padding:54px 26px;text-align:center;color:#90a09c}.empty .empty-icon{font-size:40px;margin-bottom:12px}.empty h3{color:#344441;font-size:18px;margin:0 0 8px}.empty p{max-width:460px;margin:0 auto 16px;font-size:12px;line-height:1.6}.upload-zone{display:flex;align-items:center;justify-content:space-between;gap:18px;border:2px dashed #cfe1cf;background:#fbfef8;border-radius:13px;padding:24px}.upload-icon{height:48px;width:48px;background:#eafaad;display:grid;place-items:center;font-size:25px;border-radius:12px}.activity-row{border-bottom:1px solid #edf1ef;padding:12px 0;font-size:12px}.activity-row:last-child{border:0}.activity-row b{font-size:12px}.route-card{padding:19px;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;cursor:pointer;transition:border .15s,transform .15s}.route-card:hover{border-color:#b3dd89;transform:translateY(-1px)}.route-name{font-size:16px;letter-spacing:-.025em;font-weight:760;margin:8px 0}.route-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.route-stop{display:flex;gap:12px;padding:13px;border:1px solid var(--border);border-radius:11px;background:white}.stop-no{width:27px;height:27px;border-radius:8px;display:grid;place-items:center;background:#e7f4df;color:#416b32;font-size:12px;font-weight:850;flex-shrink:0}.stop-meta{flex:1;min-width:0}.stop-meta h4{font-size:12px;margin:0 0 5px}.stop-meta p{font-size:11px;color:var(--muted);margin:0 0 5px}.stop-button-stack{display:flex;flex-direction:column;gap:5px}.stop-button-stack button{border:1px solid var(--border);background:white;border-radius:5px;font-size:13px;padding:4px}.stop-list{display:flex;flex-direction:column;gap:8px}.route-control{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;padding-top:15px;border-top:1px solid var(--border)}.modal-overlay{position:fixed;inset:0;background:#09140ebd;display:flex;align-items:center;justify-content:center;z-index:100;padding:20px}.modal{width:780px;max-height:calc(100vh - 42px);overflow:auto;background:#f9fbfa;border-radius:18px;box-shadow:0 20px 70px #0004}.modal-head{background:white;padding:23px 28px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:16px}.modal-head h3{font-size:22px;letter-spacing:-.04em;margin:0}.modal-body{padding:23px 28px}.modal-foot{padding:16px 28px;background:white;border-top:1px solid var(--border);display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}.close-modal{border:0;background:#f1f4f2;font-size:17px;width:32px;height:32px;border-radius:8px}.tag-group{display:flex;gap:5px;flex-wrap:wrap}.screen-only{position:absolute;clip-path:inset(50%);height:1px;width:1px;overflow:hidden}.toast{position:fixed;right:23px;bottom:24px;z-index:110;background:#1c302a;color:#fff;padding:15px 19px;border:1px solid #415c48;border-radius:11px;box-shadow:0 10px 40px #0003;font-size:12px;max-width:420px;line-height:1.5}.toast.error-toast{background:#612b28;border-color:#9d4a44}.auth-screen{min-height:100vh;background:#111a1c;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:32px;gap:30px}.auth-brand{display:flex;align-items:center;gap:12px;color:white;font-size:23px;font-weight:850}.auth-panel{background:white;width:440px;max-width:100%;padding:38px;border-radius:16px}.auth-panel h1{font-size:29px;letter-spacing:-.04em;margin:12px 0}.auth-panel p{font-size:13px;line-height:1.6;margin:0 0 26px}.auth-panel label{display:flex;flex-direction:column;gap:7px;margin-bottom:18px}.auth-panel input{padding:12px;border-radius:9px}.auth-panel .btn{margin-top:9px;padding:13px}.auth-footer{font-size:11px;color:#677b7c}.error{font-size:12px;color:#b43328!important;background:#fff0ee;padding:12px;border-radius:9px}.menu-toggle{display:none;border:0;background:none;font-size:18px}.checkbox-row{display:flex;align-items:center;gap:9px;font-size:12px;margin:7px 0}.checkbox-row input{width:16px;height:16px;accent-color:#6c9e43}.checkbox-row label{cursor:pointer}.divider{height:1px;background:var(--border);margin:20px 0}.url-field{overflow-wrap:anywhere;max-width:100%}.doc-row{display:grid;grid-template-columns:1fr 135px;align-items:center;gap:12px;padding:12px;border-bottom:1px solid #edf1ef}.doc-row:last-child{border:0}.settings-section{margin:0 0 22px}.settings-section h3{font-size:15px;margin:0 0 14px}.loading{padding:50px;text-align:center;color:#7a8c8b}.input-with-unit{display:flex;align-items:center}.input-with-unit input{width:100%}.input-with-unit span{padding:10px;font-size:11px;color:var(--muted)}.hidden-admin{display:none!important}
@media(max-width:1200px){.sidebar{width:220px;min-width:220px}.content{padding:28px}.topbar{padding:0 28px}.stats-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:800px){.sidebar{position:fixed;z-index:40;transform:translateX(-105%);transition:transform .2s;width:245px;min-width:245px}.sidebar.open{transform:none}.menu-toggle{display:inline-block;margin-right:12px}.topbar{height:84px;padding:0 16px}.topbar h1{font-size:21px}.current-date{display:none}.content{padding:22px 14px 75px}.stats-grid{gap:9px}.stat{padding:17px}.stat-value{font-size:30px}.two-col,.three-col,.route-grid{grid-template-columns:1fr}.section-heading{align-items:flex-start;flex-direction:column}.topbar-right{gap:5px}.upload-zone{align-items:flex-start;flex-direction:column}.modal-overlay{padding:8px}.modal{max-height:calc(100vh - 16px)}.modal-head,.modal-body,.modal-foot{padding:18px}.form-row,.form-row.three{grid-template-columns:1fr}.search{width:100%}.data-table{min-width:800px}.route-control{flex-wrap:wrap}}
@media print{.sidebar,.topbar,.section-actions,.btn,.no-print,.modal-overlay,.toast{display:none!important}.content{padding:0}.main{width:100%}.card{box-shadow:none;border-color:#bbb}body{background:white}}


/* VER.DIE Corporate Design · v0.2 | original logo by the client */
:root { --bg:#f4f6f9; --sidebar:#102338; --sidebar2:#162d46; --border:#e0e5ec;
  --text:#1e2835; --muted:#667487; --green:#135fa4; --green2:#e4eef8;
  --deep:#123a64; --white:#fff; --red:#b63c46; --yellow:#ac762c;
  --shadow:0 4px 18px rgba(13,35,55,.035); }
body {font-family:Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;}
.sidebar {width:248px;min-width:248px;padding:25px 15px 20px;background:linear-gradient(180deg,#11263d 0%,#0d1d30 100%);}
.identity {display:flex;flex-direction:column;align-items:stretch;gap:8px;margin:0 1px 35px;padding:0 7px;letter-spacing:0;}
.identity-logo {width:100%;height:auto;border-radius:5px;display:block;background:#f6f6f6;border:1px solid rgba(255,255,255,.18);}
.identity-subtitle {font-size:10px;font-weight:700;letter-spacing:.13em;color:#b6c7d7;text-align:center;}
.identity-subtitle span {color:#5499db;margin:0 3px;}
.sidebar-label {color:#91aac3; font-size:10px;letter-spacing:.13em;}
.nav-link {color:#cedae6;border:1px solid transparent;border-radius:8px;font-size:12.8px;font-weight:550;}
.nav-link:hover {background:#193653;color:#fff;}
.nav-link.active {background:#1c4165;border-color:#2d5c88;color:#fff;box-shadow:inset 3px 0 0 #69aeed;}
.nav-icon {font-size:17px;color:#a9c9e9;}
.nav-link.active .nav-icon {color:#fff;}
.sidebar-footer {border-color:#2a435b;}
.app-environment {color:#afbdcd;}
.indicator {background:#78bde8;box-shadow:0 0 0 4px rgba(93,173,228,.15);}
.side-user {background:#183451;border:1px solid #294869;}
.avatar {background:#295e93;color:#fff;}
.side-user small,.logout {color:#c7d5e3;}
.topbar {height:94px;padding:0 34px;background:#fff;}
.topbar h1 {font-size:25px;font-weight:720;letter-spacing:-.03em;}
.eyebrow {color:#66819c;letter-spacing:.1em;}
.current-date {color:#728193;}
.role-chip {background:#e7f0f9;color:#245d94;border:1px solid #d3e3f3;}
.content {max-width:1600px;padding:29px 34px 70px;}
.card {border-radius:10px;box-shadow:var(--shadow);}
.stat-icon {background:#eef3f9;color:#195e9f;border-radius:8px;}
.stat-value {color:#173856;}
.stat-footer {color:#8391a1;}
.btn {border-radius:7px;transition:background .14s,border-color .14s;}
.btn:hover {transform:none;}
.btn-primary {background:#1766ae;border-color:#1766ae;color:#fff;}
.btn-primary:hover {background:#12538f;border-color:#12538f;color:#fff;}
.btn-dark {background:#253a50;color:#fff;}
.btn-dark:hover {background:#1b2c40;}
.btn-secondary {border-color:#d8e0e9;color:#314a63;}
.btn-secondary:hover {background:#f2f6fa;}
.link-btn {color:#1766ae;}
.field label,.auth-panel label {color:#526b80;}
.field input,.field select,.field textarea,input,select,textarea {border-color:#d6dfe9;border-radius:6px;}
.field input:focus,.field select:focus,textarea:focus,.auth-panel input:focus {border-color:#1766ae;box-shadow:0 0 0 3px rgba(23,102,174,.14);}
.pill {background:#edf1f4;color:#4f6376;}
.pill.green {background:#e1f1e8;color:#2c6a4d;}
.pill.blue {background:#e7f0f9;color:#215f98;}
.pill.yellow {background:#fff3dd;color:#9f702f;}
.pill.red {background:#fbebeb;color:#ad4047;}
.pill.dark {background:#e7ecf2;color:#445d72;}
.data-table th {background:#f8fafc;color:#6d8092;}
.data-table tbody tr:hover {background:#f5f8fc;}
.warning {background:#fff9ef;border-color:#efdfc2;color:#7c5d2c;}
.info {background:#f1f6fc;border-color:#dfebf6;color:#3c6285;}
.upload-zone {background:#fbfdff;border-color:#bcd0e4;}
.upload-icon {background:#dcebf9;color:#246eaf;}
.route-card:hover {border-color:#a3c4e4;transform:none;}
.stop-no {background:#e3effa;color:#1e649e;}
.modal {border-radius:12px;background:#f8fafc;}
.modal-overlay {background:rgba(8,24,42,.72);}
.close-modal {background:#eaf0f6;color:#28465e;}
.toast {background:#193953;border-color:#315a7c;}
.auth-screen {background:linear-gradient(145deg,#112b45 0%,#0b1929 100%);gap:22px;}
.auth-brand {display:flex;flex-direction:column;align-items:center;gap:9px;letter-spacing:.18em;font-size:12px;color:#d0e1f0;}
.auth-logo {display:block;background:#f7f7f7;width:270px;max-width:85vw;height:auto;border-radius:8px;box-shadow:0 5px 22px #0000002e;}
.auth-panel {border-radius:10px;border-top:4px solid #1766ae;}
.auth-panel h1 {font-weight:725;}
.auth-footer {color:#aabed0;}
.checkbox-row input {accent-color:#1766ae;}
@media(max-width:1200px){.sidebar{width:220px;min-width:220px}.content{padding:25px}.topbar{padding:0 25px}}
@media(max-width:800px){.sidebar{width:250px;min-width:250px}.topbar{height:77px;padding:0 16px}.content{padding:20px 14px 76px}.identity{margin-bottom:26px}}
@media print{.sidebar,.topbar,.section-actions,.btn,.no-print,.modal-overlay,.toast{display:none!important}.card{box-shadow:none}}

/* Druckmappe: Fotoauswahl bleibt bewusst einfach und mobil bedienbar. */
.print-image-list{display:flex;flex-direction:column;gap:9px;max-height:350px;overflow:auto;padding:3px}
.print-image-choice{display:flex;gap:13px;align-items:center;padding:9px 11px;border:1px solid #d8e1ed;border-radius:8px;background:white;cursor:pointer}
.print-image-choice:hover{border-color:#1766ae;background:#f5f9fd}
.print-image-choice input{flex-shrink:0;min-width:18px;min-height:18px}
.print-image-choice img{display:block;flex-shrink:0;width:74px;height:69px;object-fit:contain;background:#eef3f8;border-radius:4px}
.print-image-choice span{display:flex;flex-direction:column;gap:4px;min-width:0}
.print-image-choice b{font-size:12px;overflow-wrap:anywhere}
.print-image-choice small{display:block;font-size:11px;color:#647589;overflow-wrap:anywhere}


/* VER.DIE v0.5 – Wochenanzeige und Touren-Kalenderwarnungen */
.week-chip{display:inline-flex;align-items:center;justify-content:center;padding:6px 10px;background:#e7f0f9;color:#1c588d;border:1px solid #d2e2f2;border-radius:7px;font-size:11px;font-weight:790;white-space:nowrap;font-variant-numeric:tabular-nums}
.calendar-overview{margin:0 0 18px}
.calendar-title{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:13px}
.calendar-title .card-title{margin:0 0 6px}
.calendar-title .subtle{margin:0}
.calendar-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.calendar-column-label{font-weight:800;color:#536a80;font-size:11px;text-transform:uppercase;letter-spacing:.05em;padding:7px 0;border-bottom:1px solid #e1e7ee}
.calendar-event{display:flex;align-items:flex-start;gap:12px;padding:10px 0;border-bottom:1px solid #edf1f5;font-size:12px}
.calendar-event:last-child{border-bottom:0}
.calendar-event>b{min-width:85px;white-space:nowrap;color:#275c8a;font-variant-numeric:tabular-nums}
.calendar-event>span{font-weight:660;color:#273a4d}
.calendar-event small{display:block;margin-top:3px;font-size:10px;font-weight:450;color:#6d8091}
.calendar-foot{margin:12px 0 0}
.calendar-inline{margin:12px 0}
.calendar-alert{padding:12px 14px;border:1px solid #e1c589;background:#fff7e7;color:#704b16;border-radius:8px;font-size:12px;line-height:1.55}
.calendar-alert strong{display:block;margin-bottom:6px;color:#6b4413}
.calendar-alert>div{margin:3px 0}
.calendar-clear{background:#f1f6fa;color:#526d83;border:1px solid #d8e5f0;border-radius:8px;padding:11px 13px;font-size:11px;line-height:1.45}
.calendar-neutral{color:#697d90;font-size:11px;padding:12px;border:1px dashed #d9e2eb;border-radius:7px}
@media(max-width:800px){.week-chip{display:inline-flex;font-size:11px;padding:5px 8px}.calendar-columns{grid-template-columns:1fr;gap:8px}.calendar-title{align-items:flex-start}}


/* VER.DIE v0.6 – schlichte, per Klick sortierbare Tabellenüberschriften */
.table-sort-button{appearance:none;border:0;background:transparent;color:inherit;
  font:inherit;text-transform:inherit;letter-spacing:inherit;font-weight:inherit;
  display:inline-flex;align-items:center;justify-content:flex-start;gap:7px;
  text-align:left;cursor:pointer;min-height:28px;padding:2px 0;width:auto;max-width:100%}
.table-sort-button:hover{color:#1766ae}
.table-sort-button:focus-visible{outline:2px solid #1766ae;outline-offset:3px;border-radius:2px}
.table-sort-indicator{display:inline-block;color:#9aabbb;font-size:12px;font-weight:800;flex:none;min-width:11px}
.data-table th[aria-sort="ascending"] .table-sort-indicator,
.data-table th[aria-sort="descending"] .table-sort-indicator{color:#1766ae}
.data-table th[aria-sort="ascending"],.data-table th[aria-sort="descending"]{color:#1c5c94;background:#eef5fb}
.doc-list-status{margin-bottom:5px}
.doc-list-status .pill{font-size:9px;padding:3px 7px}

/* Standortakte und ZIP-Sammelimport */
.site-open-link{appearance:none;border:0;background:transparent;color:#1b5d97;
  font:inherit;font-weight:750;cursor:pointer;padding:0;text-align:left;line-height:1.5}
.site-open-link:hover{text-decoration:underline;color:#0e4475}
.site-open-link:focus-visible{outline:2px solid #1766ae;outline-offset:2px}
.site-section{margin-top:18px;padding-top:14px;border-top:1px solid #dbe3ec}
.site-section h3{font-size:14px;margin:0 0 13px;color:#193f63}
.site-data-row,.site-ticket-line{display:flex;gap:14px;justify-content:space-between;align-items:flex-start;
  padding:11px 0;border-bottom:1px solid #e7edf3;font-size:12px}
.site-data-row span{color:#637a90;max-width:34%}
.site-data-row b{flex:1;text-align:right;overflow-wrap:anywhere;color:#28465c}
/* E-Mail als normale, gut erkennbare Aktion ohne zusaetzlichen Button. */
.site-email-link{color:#1766a6;text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}
.site-email-link:hover{color:#0f4878}
.site-email-link:focus-visible{outline:2px solid #1766a6;outline-offset:2px;border-radius:2px}

.site-ticket-line>div{flex:1;min-width:0}
.site-ticket-line .mini{margin-top:5px;overflow-wrap:anywhere}
.site-ticket-line .btn{flex:none}
.stat-clickable{width:100%;font:inherit;text-align:left;cursor:pointer;color:inherit}
.stat-clickable:hover{border-color:#9dbbda;background:#f9fcff}
.stat-clickable:focus-visible{outline:2px solid #1766ae;outline-offset:3px}
@media(max-width:800px){.site-ticket-line{flex-direction:column}.site-data-row{flex-direction:column;gap:4px}.site-data-row span{max-width:none}.site-data-row b{text-align:left}}

/* VER.DIE v0.10 – eigenständige Standortseite, große Fotovorschau und kompakte Dialoge */
.site-detail-page{width:100%;max-width:1550px;margin:0 auto}
.site-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:18px}
.site-heading h2{margin:7px 0 5px;font-size:27px;line-height:1.25;color:#152d44}
.site-heading p{margin:0;color:#627b91;font-size:13px}
.site-detail-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:18px}
.site-detail-page .card{border-radius:12px}
.site-detail-page .card h3{font-size:16px;color:#183d60;margin:0 0 10px}
.site-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(172px,1fr));gap:13px;margin-top:17px}
.site-photo-card{min-width:0;background:#f9fbfe;border:1px solid #dbe4ee;border-radius:10px;padding:9px}
.site-photo-zoom{width:100%;background:transparent;border:0;cursor:zoom-in;padding:0;text-align:left;color:#1d5888}
.site-photo-zoom img{display:block;width:100%;height:145px;object-fit:contain;background:#e6ecf2;border-radius:6px}
.site-photo-zoom span{display:block;margin-top:6px;font-size:11px;font-weight:720}
.site-photo-card .mini{overflow-wrap:anywhere;line-height:1.35}
.site-photo-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}
.site-photo-lightbox{display:flex;justify-content:center;align-items:center;min-height:220px;max-height:76vh}
.site-photo-lightbox img{display:block;max-width:100%;max-height:73vh;width:auto;height:auto;object-fit:contain;border-radius:6px}
.site-file-row{display:flex;align-items:center;flex-wrap:wrap;gap:11px;padding:9px 0;border-bottom:1px solid #e7edf3;font-size:12px}
.site-file-row a{font-weight:670;color:#1c659f;overflow-wrap:anywhere}
.site-file-row .mini{flex:1;min-width:160px}
.print-image-choice img{width:142px;height:106px;object-fit:contain}
.print-image-list{max-height:min(48vh,485px)}
.extra-stop-list{max-height:47vh;overflow-y:auto;overscroll-behavior:contain;padding:8px 4px;border:1px solid #e0e8ef;border-radius:8px;background:white}
.extra-stop-list .extra-item{padding:8px 9px;border-bottom:1px solid #eef1f5}
.extra-stop-list .extra-item:hover{background:#f1f6fa}
.modal-foot{position:sticky;bottom:0;z-index:2;background:white;box-shadow:0 -4px 13px #162b420a}
.input-kw-hint{display:block;font-size:11px;color:#255f92;font-weight:800;line-height:1.4}
@media(max-width:1100px){.site-detail-grid{grid-template-columns:1fr}}
@media(max-width:700px){.site-heading{flex-direction:column}.site-heading h2{font-size:22px}.site-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.site-photo-zoom img{height:118px}.print-image-choice img{width:112px;height:92px}.site-file-row .mini{width:100%}}

/* v0.11: dedicated workspace for tour editing, preserving navigation sidebar. */
.modal-overlay.route-page-mode{left:260px;top:0;right:0;bottom:0;z-index:30;background:#f3f6fa;display:flex;align-items:stretch;justify-content:center;padding:0;overflow-y:auto}
.route-page-mode .modal{width:100%;max-width:none;max-height:none;min-height:100vh;border-radius:0;box-shadow:none;background:#f3f6fa;overflow:visible}
.route-page-mode .modal-head{position:sticky;top:0;z-index:5;background:#fff;padding:21px clamp(22px,4vw,65px);border-bottom:1px solid #e1e8f0}
.route-page-mode .modal-head h3{font-size:27px}
.route-page-mode .modal-body{max-width:1400px;margin:0 auto;padding:28px clamp(20px,4vw,65px) 28px}
.route-page-mode .modal-foot{position:sticky;bottom:0;z-index:5;padding:17px clamp(20px,4vw,65px);background:#fff;border-top:1px solid #e1e8f0;justify-content:flex-start}
.route-page-mode .stop-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(360px,1fr));align-items:stretch;gap:13px}
.route-page-mode .route-stop{min-height:132px}
.route-page-mode .modal-body>.form-row{margin-bottom:10px}
/* Larger, still proportionate thumbnails. */
.site-photo-grid{grid-template-columns:repeat(auto-fill,minmax(218px,1fr));gap:15px}
.site-photo-zoom img{height:192px}
@media(max-width:800px){.modal-overlay.route-page-mode{left:0}.route-page-mode .modal-body{padding:18px 14px}.route-page-mode .stop-list{grid-template-columns:1fr}.route-page-mode .modal-head{padding:16px}.route-page-mode .modal-foot{padding:12px}.site-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.site-photo-zoom img{height:158px}}

/* VER.DIE v0.12 – Wochenplanung als Hauptarbeitsplatz. */
.week-plan-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:14px}
.week-plan-card{appearance:none;color:inherit;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:23px;text-align:left;cursor:pointer;border:1px solid #d9e4ec;min-height:152px;width:100%;background:#fff}
.week-plan-card:hover{background:#f5f9fd;border-color:#93b6d5}
.week-plan-card:focus-visible{outline:2px solid #1766ae;outline-offset:3px}
.week-plan-card h3{font-size:18px;margin:9px 0 6px;color:#17344e;line-height:1.35}
.week-plan-card p{margin:5px 0 9px;color:#577088;font-size:12px}
.week-plan-card .muted{font-size:12px}
.week-card-arrow{font-weight:800;font-size:27px;color:#2d6f9f}
.week-label{display:inline-block;font-size:11px;font-weight:820;color:#185889;background:#e8f2fa;border-radius:6px;padding:6px 10px}
.week-workspace{max-width:1720px;margin:0 auto}
.week-main-heading h2{font-size:27px;letter-spacing:-.2px;margin:8px 0 5px}
.week-main-heading .section-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.week-summary-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:15px}
.week-summary{padding:17px;border-radius:10px;min-width:0}
.week-summary span{font-size:10px;letter-spacing:.035em;display:block;font-weight:780;color:#627d95;text-transform:uppercase}
.week-summary strong{font-size:21px;font-weight:850;display:block;margin-top:9px;color:#1b4163}
.week-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:11px;margin:16px 0 20px}
.week-toolbar .spacer{flex:1}
.week-grid{display:grid;grid-template-columns:repeat(4,minmax(220px,1fr));gap:14px;align-items:stretch}
.week-day{padding:0;overflow:hidden;border:1px solid #d7e2ed;border-radius:11px;display:flex;flex-direction:column;min-height:288px}
.week-day-header{padding:17px 15px 13px;background:#edf4fa;display:flex;align-items:flex-start;justify-content:space-between;gap:6px}
.week-day-header b{font-size:12px;color:#345877;display:block;margin-top:5px}
.week-day-label{font-size:15px;font-weight:850;color:#133d60;display:block}
.week-day-target{display:flex;align-items:center;flex-wrap:wrap;gap:5px 8px;padding:9px 12px;background:#f8fbff;border-bottom:1px solid #dce7ef}
.week-day-target label{flex:1;min-width:115px;color:#294f6c;font-size:11px;font-weight:700}
.week-day-target input{width:70px;min-width:64px;max-width:100%;border:1px solid #b7cce0;border-radius:6px;padding:6px 7px;text-align:center;font-size:12px;background:#fff;color:#183f60}
.week-day-target input:focus-visible{outline:2px solid #1766ae;outline-offset:1px}
.week-day-stepper{display:flex;align-items:stretch;width:88px;height:33px;border:1px solid #b7cce0;border-radius:6px;background:#fff;overflow:hidden}
.week-day-stepper input{flex:1;min-width:0;width:61px;max-width:none;height:100%;border:0;border-radius:0;padding:4px 2px;font-size:12px;color:#183f60;text-align:center}
.week-step-buttons{display:flex;flex-direction:column;width:23px;flex:none;border-left:1px solid #d9e6f0}
.week-step-buttons button{flex:1;min-height:0;padding:0;border:0;background:#edf4fa;color:#29577a;font-size:11px;line-height:1;cursor:pointer}
.week-step-buttons button:first-child{border-bottom:1px solid #d9e6f0}
.week-step-buttons button:hover:not(:disabled){background:#dceefc}
.week-step-buttons button:disabled{opacity:.4;cursor:default}
.week-day-target .mini{width:100%;color:#617d94;margin:1px 0 0}
.week-stop-count{padding:5px 8px;background:#fff;color:#35719f;font-size:10px;font-weight:780;border-radius:6px;white-space:nowrap}
.week-stop-count.over{color:#956219;background:#fff3dd}
.week-day-stops{display:flex;flex-direction:column;gap:8px;padding:10px;flex:1}
.week-stop-entry{background:#fff;border:1px solid #e4ebf2;padding:10px;border-radius:8px;font-size:12px}
.week-stop-entry>b{color:#204a6a;line-height:1.4}
.week-stop-entry .mini{line-height:1.5;margin:4px 0}
.week-entry-controls{display:flex;align-items:center;gap:6px;margin-top:7px}
.week-entry-controls select{flex:1;min-width:0;max-width:100%;height:34px;border:1px solid #d8e2ea;border-radius:6px;color:#2a506a;font-size:11px;background:#fff;padding:4px}
.week-remove{flex:none;width:31px;height:31px;border:1px solid #e8d6d6;border-radius:6px;background:#fff;color:#9a4c4c;font-size:19px;cursor:pointer}
.week-remove:hover{background:#fff1f1}
.week-empty{display:flex;flex:1;align-items:center;justify-content:center;color:#8296a7;padding:24px;font-size:12px}
.week-day-alert{padding:9px 12px;font-size:11px;background:#fff4e5;color:#8b601e;border-top:1px solid #f0ddbb}
.week-day-metrics{border-top:1px solid #e4eaf2;padding:13px 15px;color:#54708a;font-size:11px;line-height:1.6}
.week-day-actions{border-top:1px solid #e8eef3;padding:11px 12px;display:flex;flex-wrap:wrap;gap:7px}
.week-day-actions .btn{font-size:11px}
.week-warning-list{display:grid;gap:8px;margin-top:18px}
.week-preview-content{max-height:45vh;overflow:auto;margin-top:12px;padding:6px}
.week-preview-header{display:flex;justify-content:space-between;gap:8px;padding:12px 0}
.week-ticket-choose{display:grid;gap:7px}
.week-ticket-choice{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 10px;background:#fff;border:1px solid #e0e7ee;border-radius:7px;font-size:12px}
.week-ticket-choice>div{min-width:0;flex:1}
.week-ticket-choice .mini{display:block;margin-top:5px}
.week-ticket-choice select{max-width:240px;min-width:170px;border:1px solid #dbe2e9;border-radius:6px;height:36px;padding:4px;background:#fff;font-size:12px}
.week-add-picker{max-height:50vh;overflow:auto;padding:8px;background:#fff;border:1px solid #d9e2ea;border-radius:8px}
.week-add-item{border-bottom:1px solid #e8eff5;padding:8px 9px}
.week-add-ticket-choice>span{display:flex;flex-direction:column;gap:3px;min-width:0}
.week-add-item .mini{overflow-wrap:anywhere}
@media(max-width:1500px){.week-grid{grid-template-columns:repeat(3,minmax(220px,1fr))}}
@media(max-width:1180px){.week-grid{grid-template-columns:repeat(2,minmax(220px,1fr))}.week-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){.week-grid,.week-plan-list{grid-template-columns:1fr}.week-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.week-ticket-choice{flex-direction:column;align-items:stretch}.week-ticket-choice select{width:100%;max-width:100%}.week-toolbar .spacer{display:none}.week-main-heading h2{font-size:23px}}

/* v0.12 – ruhige, großzügige Standortakte */
.site-photo-grid{grid-template-columns:repeat(auto-fill,minmax(265px,1fr));gap:16px}
.site-photo-zoom img{height:235px;object-fit:contain;background:#e8eef5}
.site-inline-edit{font-size:11px;color:#1766a6;border:1px solid #c9dcec;background:#f9fcff;border-radius:6px;padding:5px 9px;cursor:pointer;flex:none}
.site-inline-edit:hover,.site-inline-edit:focus-visible{background:#e8f2fb;border-color:#1766a6}
.site-correction-sources{padding:13px 15px;border-radius:9px;border:1px solid #dce7f0;background:#f7fafc;margin:12px 0}
.site-correction-sources>b{display:block;font-size:12px;margin-bottom:8px}
.site-correction-source{font-size:12px;padding:7px 0;border-top:1px solid #e3ebf1;display:flex;justify-content:space-between;align-items:start;gap:12px}
.site-correction-source span{color:#6d8195}.site-correction-source strong{color:#163b59;text-align:right}
.photo-carousel{display:flex;align-items:center;gap:12px;min-height:300px}
.photo-carousel-body{flex:1;min-width:0;text-align:center}
.photo-carousel-counter{font-size:12px;font-weight:750;margin-bottom:12px;color:#49647b}
.photo-carousel img{max-height:65vh;max-width:100%;width:auto;height:auto;object-fit:contain;border-radius:8px;background:#f3f6fa}
.photo-carousel-arrow{border:1px solid #c7d9e8;border-radius:9px;background:#fff;color:#1766a6;font-size:38px;cursor:pointer;width:48px;min-width:48px;height:66px}
.photo-carousel-arrow:hover{background:#e9f3fb}.photo-carousel-help{text-align:center;margin-top:10px}
.site-issue-list{border:1px solid #edc77e;background:#fff9ee;border-radius:12px;padding:17px 19px;margin:14px 0 18px}
.site-issue-list h3{margin:0 0 5px;color:#6f521e}.site-issue-list>p{font-size:12px;color:#856b44;margin-bottom:14px}
.site-issue-action{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:5px;width:100%;padding:12px;border:1px solid #ebd09b;border-radius:8px;background:#fff;margin:7px 0;cursor:pointer;color:#4f3e24}
.site-issue-action:hover{border-color:#c89948;background:#fffdf8}
.site-issue-label{font-weight:800}.site-issue-summary{font-size:12px}.site-issue-cta{font-size:11px;font-weight:800;color:#155b98}
.site-document-tasks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.site-document-task{border:1px solid #dee7ef;padding:13px;border-radius:9px;display:flex;flex-direction:column;justify-content:space-between;gap:12px}
.site-document-task .mini{font-size:11px}
.calendar-dashboard-top{margin:18px 0}.calendar-dashboard-top .calendar-overview{padding-bottom:10px}
@media(max-width:1000px){.site-document-tasks{grid-template-columns:1fr}.site-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.site-photo-zoom img{height:180px}}
@media(max-width:560px){.site-photo-grid{grid-template-columns:1fr}.site-photo-zoom img{height:230px}.photo-carousel-arrow{min-width:34px;width:34px}}


/* v0.13 – klare, dezente Vergleichszahlen und aufgeräumte Tourenaktionen. */
.route-comparison{margin-top:20px;overflow:hidden;border:1px solid #d5e4f0;box-shadow:0 2px 12px #17395508}
.route-comparison-head{display:flex;align-items:baseline;justify-content:space-between;gap:14px;padding:20px 22px 8px}
.route-comparison-head h3{font-size:16px;color:#193e5b;margin:0;font-weight:800}
.route-comparison-head span{font-size:11px;color:#6c8499}
.route-comparison-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:13px 20px 20px}
.route-compare-metric{background:#f6f9fc;border:1px solid #e4ebf2;border-radius:10px;padding:17px;min-width:0;display:flex;flex-direction:column;gap:3px}
.route-compare-label{font-size:11px;letter-spacing:.02em;font-weight:780;color:#54718b}
.route-compare-metric strong{display:block;font-size:28px;line-height:1.22;letter-spacing:-.04em;color:#244d68;margin-top:6px;font-variant-numeric:tabular-nums}
.route-compare-result{font-size:12px;font-weight:800;color:#59728a;margin:4px 0 5px}
.route-compare-metric small{font-size:11px;color:#7c8e9c;white-space:normal}
.route-compare-metric.is-saving strong,.route-compare-metric.is-saving .route-compare-result{color:#187047}
.route-compare-metric.is-increase strong,.route-compare-metric.is-increase .route-compare-result{color:#a45f24}
.route-compare-metric.is-unavailable strong{color:#8297a9}
.fuel-details{font-size:11px;color:#6e8395;margin:12px 0 0}
.fuel-details summary{cursor:pointer;font-weight:700;display:inline-block;padding:3px 0;color:#496a83}
.fuel-details p{margin:5px 0 0;line-height:1.5}
.route-page-mode .modal-foot{justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px}
.route-actions-left,.route-actions-right{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.route-actions-more{position:relative}
.route-actions-more>summary{list-style:none;padding:10px 14px;border-radius:9px;background:#fff;border:1px solid #d6e1eb;font-size:12px;font-weight:750;color:#3b5d75;cursor:pointer}
.route-actions-more>summary::-webkit-details-marker{display:none}
.route-actions-more>summary:after{content:' ▾'}
.route-actions-more[open]>summary{background:#eaf3fb}
.route-actions-menu{position:absolute;bottom:calc(100% + 9px);left:0;min-width:205px;background:#fff;border:1px solid #d6e2ed;border-radius:10px;padding:9px;box-shadow:0 10px 30px #123d5926;z-index:12;display:flex;flex-direction:column;gap:7px}
.route-actions-menu .btn{width:100%;justify-content:flex-start}
@media(max-width:1050px){.route-comparison-grid{grid-template-columns:1fr}.route-comparison-head{flex-direction:column;gap:5px}.route-page-mode .modal-foot{justify-content:space-between}}
@media(max-width:600px){.route-comparison-grid{padding:10px}.route-compare-metric strong{font-size:24px}.route-actions-right{width:100%}.route-actions-right .btn{flex:1}}

/* v0.14 – eine zentrale, klar gegliederte Planung statt doppelte Menüpunkte. */
.planning-tabs{display:flex;gap:5px;align-items:center;width:max-content;max-width:100%;padding:5px;margin-bottom:19px;border:1px solid #d8e4ee;border-radius:10px;background:#eaf1f8}
.planning-tab{appearance:none;border:0;background:transparent;color:#526d87;font:inherit;font-size:13px;font-weight:750;border-radius:7px;cursor:pointer;padding:11px 17px;white-space:nowrap}
.planning-tab:hover{background:#f7fbff;color:#164f83}
.planning-tab.is-active{background:#fff;color:#135a92;box-shadow:0 1px 5px #12345819}
.planning-tab:focus-visible{outline:2px solid #1766ae;outline-offset:2px}
.week-plan-item,.route-card-actions{padding:0;overflow:hidden;display:flex;flex-direction:column;min-height:0}
.week-plan-main,.route-card-main{border:0;text-align:left;background:transparent;color:inherit;cursor:pointer;font:inherit;flex:1;width:100%;display:flex;justify-content:space-between;gap:12px;padding:18px 21px}
.week-plan-main h3,.route-card-main .route-name{color:#1e405e}
.week-plan-main:hover,.route-card-main:hover{background:#f4f9fd}
.week-plan-main:focus-visible,.route-card-main:focus-visible{outline:2px solid #1766ae;outline-offset:-3px}
.week-plan-main h3{font-size:17px;margin:9px 0 7px}
.week-plan-main p{margin:4px 0 7px;color:#657b92}
.week-plan-foot,.route-card-foot{padding:10px 16px 12px;border-top:1px solid #e8edf3;background:#fff;display:flex;justify-content:flex-end}
.btn-danger-outline{border-color:#e4c1bd;background:white;color:#9a3e3c}
.btn-danger-outline:hover{background:#fff4f3;border-color:#bc7773}
.week-add-picker{max-height:min(46vh,460px);overflow:auto}
.week-add-picker .week-add-item[hidden]{display:none!important}
@media(max-width:700px){.planning-tabs{width:100%}.planning-tab{flex:1;padding:12px 6px;font-size:12px}.week-plan-main,.route-card-main{padding:16px}.week-main-heading .section-actions{justify-content:flex-start}}

/* v0.15 – Upload progress at the existing lower-right notification location. */
.zip-progress-toast{width:min(360px,calc(100vw - 32px));max-width:360px;padding:15px 17px;background:#193953;color:#fff}
.zip-progress-title{display:block;font-size:13px;margin-bottom:7px}
.zip-progress-stage{font-size:12px;line-height:1.4;margin-bottom:10px}
.zip-progress-meter{display:block;width:100%;height:9px;accent-color:#7fcbff}
.zip-progress-foot{font-size:11px;color:#c4dbea;margin-top:7px}

/* v0.15 – Gespeicherte Druckfotos werden pro Standort unter „Alle Tickets“ markiert. */
.print-photo-status-row{display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:12px 13px;margin-top:8px;background:#fff;border:1px solid #dbe5ed;border-radius:9px}
.print-photo-status-row>span{display:flex;flex-direction:column;gap:5px;min-width:0}
.print-photo-status-row b{font-size:12px;color:#183e5a;overflow-wrap:anywhere}
.print-photo-status-row small{color:#60788a;font-size:11px;line-height:1.4;overflow-wrap:anywhere}
.print-photo-status-row .btn{flex-shrink:0}
.import-photo-reminders{max-height:280px;overflow:auto;margin-top:8px}
.print-image-choice:has(input:checked){border-color:#2373aa;background:#eef7ff}
.print-image-choice input:focus-visible{outline:3px solid #2373aa;outline-offset:3px}
@media(max-width:620px){.print-photo-status-row{align-items:stretch;flex-direction:column}.print-photo-status-row .btn{align-self:flex-start}}


/* v0.15 – Tagesauswahl, direkt sichtbare Feiertage, klare Optimierungswerte. */
.week-day-select{appearance:none;width:100%;border:0;text-align:left;font:inherit;color:inherit;cursor:pointer}
.week-day-select:hover{background:#deecf8}
.week-day-select:focus-visible{outline:3px solid #196aa6;outline-offset:-4px}
.week-day-select-hint{display:block;margin-top:7px;color:#366d99;font-size:10px;font-weight:730}
.week-day.is-selected{border-color:#126dad;box-shadow:0 0 0 2px #338bd02b}
.week-day.is-selected .week-day-header{background:#d9eafa}
.week-holiday-inline{margin:9px 11px 0;background:#fff3da;border:1px solid #efc37d;border-radius:8px;padding:9px 11px;color:#7c4d15;display:flex;flex-wrap:wrap;gap:7px;align-items:baseline;font-size:11px;line-height:1.4}
.week-holiday-inline small{font-size:10px;color:#816341}
.week-focused-day{margin:2px 0 18px;padding:17px 20px;display:flex;justify-content:space-between;gap:16px;align-items:center;border:1px solid #b6d5ef;background:#fcfdff}
.week-focused-day h3{margin:6px 0 3px;font-size:19px;color:#1f4c70}
.week-focused-day .week-holiday-inline{margin:10px 0 0}
.week-focused-tickets{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}
.week-focused-tickets span{background:#ecf4fa;color:#275979;border:1px solid #d6e7f3;padding:7px 9px;border-radius:6px;font-size:11px}
.week-focused-actions{display:flex;flex-wrap:wrap;gap:8px}
@media(max-width:880px){.week-focused-day{flex-direction:column;align-items:stretch}}
.route-compare-metric strong{font-size:32px}
.route-compare-metric small{margin-top:7px;font-size:12px;color:#526f85}
.route-compare-result{font-size:12px;margin-top:8px}
.route-compare-metric.is-neutral strong{color:#173f61}
.route-compare-metric.is-uncertain strong{color:#173f61}
.route-compare-metric.is-uncertain .route-compare-result{color:#946321}
.route-compare-caution{margin:0 20px 17px;padding:11px 13px;background:#fff7e8;border:1px solid #f2d9a7;border-radius:8px;font-size:11px;color:#78571f;line-height:1.55}

/* v0.15 – Fotovorschau fast bildschirmfüllend, Dateiname außerhalb des Bildes. */
.modal-photo-view{width:min(98vw,1800px);height:calc(100dvh - 28px);max-height:calc(100dvh - 28px);display:flex;flex-direction:column}
.modal-photo-view .modal-head{padding:9px 14px}
.modal-photo-view .modal-head h3{font-size:15px}
.modal-photo-view .modal-body{flex:1;min-height:0;overflow:auto;padding:6px 10px}
.modal-photo-view .modal-foot{padding:7px 12px}
.modal-photo-view .photo-carousel{height:100%;gap:4px;min-height:0}
.modal-photo-view .photo-carousel-body{height:100%;display:flex;flex-direction:column;min-height:0}
.modal-photo-view .photo-carousel-frame{flex:1;min-height:0;display:flex;align-items:center;justify-content:center}
.modal-photo-view .photo-carousel img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;border-radius:2px}
.modal-photo-view .photo-carousel-counter{font-size:11px;margin:1px 0 4px}
.modal-photo-view .photo-carousel-filename{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;font-size:11px;color:#49657d;min-height:34px;overflow-wrap:anywhere}
.modal-photo-view .photo-carousel-help{margin:3px 0 0;font-size:10px}
.modal-photo-view .photo-carousel-arrow{border-radius:6px;width:38px;min-width:38px;height:58px}
@media(max-width:600px){.modal-photo-view .photo-carousel-arrow{width:28px;min-width:28px;height:48px;font-size:25px}.modal-photo-view .modal-body{padding:4px}}

/* Einheitliche, deutliche Maus- und Tastatur-Rückmeldung – ohne deaktivierte Elemente. */
@media(hover:hover) and (pointer:fine){
 button:not(:disabled),[role="button"]:not([aria-disabled="true"]),a[href]{transition:background-color .15s ease,border-color .15s ease,box-shadow .15s ease,color .15s ease,filter .15s ease}
 button:not(:disabled):hover{filter:brightness(.96);box-shadow:0 2px 8px #15446b22}
 a[href]:hover{color:#155c94;text-decoration:underline}
 .btn-primary:not(:disabled):hover,.btn-dark:not(:disabled):hover{filter:brightness(1.08);box-shadow:0 3px 12px #174e7c44}
 .nav-link:not(:disabled):hover{filter:none;background:#2b4e6b;color:white;box-shadow:inset 3px 0 0 #67c0fa}
}
button:not(:disabled):focus-visible,a[href]:focus-visible,summary:focus-visible,[role="button"]:focus-visible{outline:3px solid #2685ca;outline-offset:3px}
button:disabled{cursor:not-allowed;filter:none;box-shadow:none}
@media(prefers-reduced-motion:reduce){button,a[href],[role="button"]{transition:none!important;transform:none!important}}

.modal-photo-view .photo-carousel-frame{overflow:auto;scrollbar-width:thin}
.modal-photo-view .photo-carousel img{transition:transform .12s ease;transform-origin:center center}
.modal-photo-view .photo-carousel-zoom-controls{display:inline-flex;align-items:center;gap:5px}
.modal-photo-view .photo-carousel-zoom-controls .btn{padding:4px 8px;min-height:28px}
.modal-photo-view #photo-carousel-zoom-level{min-width:42px;text-align:center;color:#315675;font-weight:750}
@media(prefers-reduced-motion:reduce){.modal-photo-view .photo-carousel img{transition:none}}

/* v0.15: discreet self-service profile link, also available to viewer accounts */
.profile-open{display:flex;align-items:center;gap:9px;width:100%;margin:8px 0 0;border:1px solid #324951;
 background:transparent;color:#d9e6ed;border-radius:8px;padding:10px 12px;text-align:left;
 font-size:12px;font-weight:650;transition:background .15s,color .15s,border-color .15s}
.profile-open:hover{background:#274458;border-color:#83bee7;color:#fff}
.profile-open:focus-visible{outline:3px solid #96caf1;outline-offset:2px}
.profile-open:disabled{opacity:.5;cursor:not-allowed}

/* Freie Quellenhinweise gut lesbar, ohne den ursprünglichen Text zu kürzen. */
.site-original-note{border:1px solid #dae4ed;border-radius:8px;padding:12px 14px;margin:10px 0;background:#fff}
.site-original-note .site-note-title{display:flex;gap:9px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:6px}
.site-original-note .site-note-body{white-space:normal;line-height:1.55;overflow-wrap:anywhere;color:#263f54;margin-bottom:8px}
.site-original-note .mini{overflow-wrap:anywhere}

/* v0.15 release: site-thumbnail print selection and optional photo appendix. */
.site-photo-print-choice{display:flex;gap:8px;align-items:center;margin-top:10px;padding:9px 10px;
 border:1px solid #c3d6e5;border-radius:7px;color:#235372;background:#fff;cursor:pointer;
 font-size:12px;font-weight:720}
.site-photo-print-choice:has(input:checked){background:#eaf6ff;border-color:#2778b2}
.site-photo-print-choice input{width:18px;height:18px;accent-color:#135c9c;cursor:pointer}
.site-photo-print-choice input:disabled{cursor:wait}
.is-disabled{opacity:.55}

/* v0.16: durchgehend fester Seitenkopf, dieselben Aktionen in beiden Planungsarten. */
.topbar{position:sticky;top:0;z-index:23;box-shadow:0 2px 8px #172d4610}
.week-workspace{padding-bottom:86px}
.week-bottom-actions{position:sticky;bottom:0;z-index:17;display:flex;align-items:center;gap:9px;
 background:#fff;border:1px solid #d9e5ef;box-shadow:0 -4px 18px #12315019;
 border-radius:10px;padding:12px 16px;margin:25px 0 0;flex-wrap:wrap}
.week-bottom-actions>.spacer{flex:1}
.week-inline-editor{margin:22px 0;scroll-margin-top:115px;border-color:#bdd2e6}
.week-inline-editor .section-heading{margin-bottom:14px}
.week-inline-editor h3{margin:6px 0}
.week-inline-stops{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px;margin:16px 0}
.week-inline-stop{display:flex;flex-direction:column;gap:6px;align-items:flex-start;background:#f7fafe;border:1px solid #d9e5ef;border-radius:9px;padding:11px;font-size:12px}
.week-inline-stop>span{color:#607587;font-size:11px}
.week-inline-stop>div{display:flex;gap:5px;margin-top:auto}
.week-inline-editor .toolbar{margin:17px 0 0;flex-wrap:wrap}
.week-navigation{margin-bottom:14px}
.week-navigation-fields{display:flex;align-items:end;flex-wrap:wrap;gap:9px}
.week-navigation-fields label{display:flex;flex-direction:column;gap:6px;font-weight:650;font-size:12px}
.week-navigation-fields select{min-width:108px;max-width:240px}
.calendar-state-filter{margin:2px 0 8px;font-size:12px}
.calendar-state-filter label{display:flex;align-items:center;gap:8px}
.calendar-state-filter select{max-width:240px}
.photo-audit{margin-bottom:16px}
.photo-audit h3{margin:0 0 7px;color:#183d60}
.photo-audit-row{display:flex;align-items:center;justify-content:space-between;gap:12px;
 border-bottom:1px solid #e2e9f1;padding:11px 0;font-size:12px}
.photo-audit-row:last-child{border-bottom:0}
.photo-audit-row .mini{margin-top:5px}
.print-photo-site-list{margin:15px 0;border:1px solid #d9e4ee;border-radius:8px;padding:10px}
.print-readiness{padding:11px 13px;margin:0 0 13px;line-height:1.45}
.print-readiness>div{margin-top:4px}
.print-readiness details{margin-top:8px}
.print-readiness summary{font-weight:650;font-size:12px;cursor:pointer}
.print-readiness-list{max-height:165px;overflow-y:auto;margin-top:7px}
.print-readiness-row{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:7px 0;border-top:1px solid #e8d7ba}
.print-readiness-row span{display:flex;flex-direction:column;min-width:0;gap:3px}
.print-readiness-row small{font-size:11px;line-height:1.4}
.print-readiness-row .btn{flex-shrink:0}
@media(max-width:620px){.print-readiness-row{align-items:flex-start;flex-direction:column}}
.print-photo-site-list summary{font-weight:720;cursor:pointer;font-size:12px}
.print-photo-status-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 4px;border-bottom:1px solid #e4edf5}
.print-photo-status-row:last-child{border-bottom:0}
.print-photo-status-row span{min-width:0;font-size:12px}
.print-photo-status-row small{display:block;color:#607587;line-height:1.45;margin-top:3px}
.app-version-label{text-align:right;font-size:10px;color:#7990a4;margin:14px 5px 0}
.side-user-button{width:100%;border:1px solid #294967;cursor:pointer;text-align:left;font:inherit}
.side-user-button:hover,.side-user-button:focus-visible{background:#254f75;border-color:#6e9fcc;outline:none}
.profile-chevron{margin-left:auto;color:#a7c4e1;font-size:17px}
@media(max-width:800px){
 .topbar{position:sticky;top:0;z-index:25}
 .week-bottom-actions{padding:10px;gap:5px}
 .week-bottom-actions .btn{font-size:11px}
 .week-inline-stops{grid-template-columns:1fr}
 .photo-audit-row{align-items:flex-start;flex-direction:column}
}

/* Korrektur aus v0.16-Abnahme: Profilname auf dunkler Seitenleiste weiss. */
.sidebar .side-user b, .sidebar .side-user-button b { color:#ffffff!important; }

/* v0.16 Karten-Test R3: Standortpruefung direkt in den Wochen-Tageskarten. */
.week-site-open{display:flex;align-items:center;justify-content:space-between;width:100%;border:0;background:transparent;padding:0;text-align:left;gap:8px;color:#204a6a;font-size:12px;font-weight:760;line-height:1.4;cursor:pointer}
.week-site-open:hover,.week-focused-ticket-link:hover{text-decoration:underline;color:#185e9a}
.week-site-open:focus-visible,.week-focused-ticket-link:focus-visible{outline:2px solid #176aa5;outline-offset:3px;border-radius:3px}
.week-site-open-arrow{font-size:13px;font-weight:650;color:#557992}
.week-site-review-badge{display:inline-flex;align-items:center;gap:3px;max-width:100%;width:max-content;color:#92611d;background:#fff7e9;border:1px solid #efdbb6;border-radius:6px;padding:2px 6px;font-size:10px;font-weight:700;line-height:1.4;margin-top:6px}
.week-focused-ticket-link{border:1px solid #d6e7f3;background:#ecf4fa;color:#275979;border-radius:6px;padding:7px 9px;font-size:11px;text-align:left;cursor:pointer}
.week-focused-ticket-link .week-site-review-badge{margin-top:0;margin-left:4px}
.week-site-preview h3{margin:0 0 4px;color:#1b4163}
.week-site-preview .warning,.week-site-preview .info{margin:10px 0}
.week-site-preview-docs{border:1px solid #dce5ee;background:#fff;border-radius:8px;margin:15px 0;padding:13px;line-height:1.85;font-size:12px}
.week-site-preview-docs b{display:block;margin-bottom:6px}
.week-return-site{margin-bottom:12px}

/* v0.16 R4 – Dokumentenabgleich statt pauschaler Konfliktwarnung */
.report-conflict-list{display:grid;gap:12px;margin:14px 0}.report-conflict-card{border:1px solid #e9bc75;background:#fffaf3;border-radius:9px;padding:12px;min-width:0}.report-conflict-card legend{font-weight:700;font-size:.9rem}.report-conflict-choice{display:flex;align-items:start;gap:8px;background:#fff;border:1px solid #d7e1ed;border-radius:6px;padding:9px;margin:6px 0;cursor:pointer}.report-conflict-choice span{display:grid;gap:4px;min-width:0;overflow-wrap:anywhere}.report-conflict-custom{width:100%;margin-top:6px}

/* v0.16 R4 – Ansteuerbare Prüf- und Druckbildhinweise */
button.week-site-review-badge,button.week-site-photo-badge{display:inline-flex;align-items:center;text-align:left;max-width:100%;border:1px solid #efc477;border-radius:5px;padding:3px 7px;font:inherit;font-size:11px;font-weight:600;cursor:pointer;background:#fff6e7;color:#83521a;margin:2px 3px 2px 0}button.week-site-photo-badge{background:#eaf3ff;border-color:#c3d9f1;color:#17558c}button.week-site-review-badge:hover,button.week-site-photo-badge:hover{filter:brightness(.96)}.site-issue-list,#site-print-photos{scroll-margin-top:100px}

/* v0.16 R4 – Standort-Drag-and-drop auf dem Wochenboard */
.week-drag-grip{float:left;cursor:grab;background:transparent;border:0;color:#567e9e;font-size:18px;line-height:1;margin-right:5px;padding:2px 4px;touch-action:none}.week-drag-grip:active{cursor:grabbing}.week-stop-entry.is-dragging{opacity:.45}.week-drop-highlight{outline:2px dashed #2e7bbb;outline-offset:-3px;background-color:#edf6ff!important}.week-day-stops[data-week-drop],.week-empty[data-week-drop]{min-height:60px}.week-stop-entry{position:relative}

/* v0.16 R4 – dieselbe Fußleistenhierarchie in beiden Planungsbereichen */
.week-bottom-actions{justify-content:space-between}.week-bottom-actions .route-actions-left,.week-bottom-actions .route-actions-right{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.week-bottom-actions .route-actions-more .route-actions-menu{z-index:25}

/* Sichtbares Drag & Drop der vollständigen Standortkacheln (R5). */
.week-stop-entry[draggable="true"]{cursor:grab;transition:background-color .15s ease,border-color .15s ease,box-shadow .15s ease}
.week-stop-entry[draggable="true"]:active{cursor:grabbing}
.week-stop-entry.is-dragging{opacity:.18;border:1px dashed #88a6bf}
.week-drop-placeholder{box-sizing:border-box;min-height:54px;margin:5px 0;border:2px dashed #4382b7;border-radius:8px;background:#eaf5fd;box-shadow:inset 0 0 0 1px #d5e8f8;position:relative;transition:height .12s ease}
.week-drop-placeholder:after{content:'Hier ablegen';position:absolute;inset:0;display:flex;justify-content:center;align-items:center;font-size:11px;color:#376c95;pointer-events:none}
.week-drag-preview{position:fixed;top:-9000px;left:0;z-index:99999;pointer-events:none;border:1px solid #629ac5!important;background:#fff!important;box-shadow:0 14px 30px rgba(20,49,80,.25)!important;transform:rotate(-1deg);opacity:.96;border-radius:9px}
.week-drag-preview *{pointer-events:none!important}
@media(prefers-reduced-motion:reduce){.week-stop-entry,.week-drop-placeholder{transition:none}}

/* Reduzierte, einklappbare Planungs-Einstellungen pro Woche */
.week-planning-settings{background:#fff;border:1px solid #dce5ec;border-radius:9px;margin:13px 0;padding:12px 15px}
.week-planning-settings summary{cursor:pointer;font-size:13px;font-weight:650;color:#254968;list-style-position:inside}
.week-planning-settings summary .muted{font-weight:400;font-size:11px;margin-left:8px}
.week-prefs-content{padding:14px 2px 4px;display:grid;gap:13px}
.week-prefs-times{display:flex;flex-wrap:wrap;gap:14px}
.week-prefs-times label,.week-prefs-days label{display:flex;align-items:center;justify-content:space-between;gap:9px;font-size:12px;color:#3b5268}
.week-prefs-times input{width:126px;padding:7px}
.week-prefs-days{display:grid;grid-template-columns:repeat(7,minmax(72px,1fr));gap:10px}
.week-prefs-days label{display:flex;flex-direction:column;align-items:stretch;gap:4px}
.week-prefs-days input{width:100%;min-width:0;padding:7px;text-align:center}
.week-prefs-content>.btn{justify-self:start}
@media(max-width:920px){.week-prefs-days{grid-template-columns:repeat(4,minmax(72px,1fr))}}
@media(max-width:550px){.week-prefs-days{grid-template-columns:repeat(2,minmax(72px,1fr))}}

/* Google Maps in planbarer Reihenfolge, bei vielen Stopps mehrere Abschnitte */
.google-planning-list{max-height:60vh;overflow:auto;display:grid;gap:12px}
.google-planning-part{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:12px;border:1px solid #dbe5ec;background:#fff;border-radius:8px}
.google-planning-part>div{flex:1;min-width:0;overflow-wrap:anywhere}
.google-planning-part>a{white-space:nowrap;text-decoration:none}
@media(max-width:650px){.google-planning-part{flex-direction:column;align-items:stretch}}

.week-planning-notices{background:#fff;border:1px solid #e1e8f0;padding:10px 13px;border-radius:8px;margin-top:15px;font-size:12px}
.week-planning-notices summary{cursor:pointer;color:#6d5a35;font-weight:600}
.week-planning-notices .calendar-neutral{margin:7px 0}

/* R6.1: clear visual breathing room between day cards and sticky controls. */
.week-grid{row-gap:24px;padding-bottom:44px}
.week-bottom-actions{margin-top:28px;bottom:10px}
.week-workspace{padding-bottom:115px}


/* v0.16 R6.2: breathing space between the week plan cards and holiday info.
   Both are direct siblings in the week list, also when no plans exist. */
#content .week-plan-list + .calendar-overview,
#content .card.empty + .calendar-overview { margin-top: 24px; }


/* VERDIE-ONLINE-R6.9-PLAN-MARKING */
/* Geplante Praxedo-Tickets: vollstaendige Tabellenzeile dezent blau markieren.
   Extern statt inline, da style-src 'self' keine Inline-Styles erlaubt. */
.data-table.ticket-overview tbody tr.ticket-planned-row > td {
  background-color: #e5f1ff !important;
}
.data-table.ticket-overview tbody tr.ticket-planned-row:hover > td {
  background-color: #d8eafb !important;
}
.data-table.ticket-overview tbody tr:has(input.ticket-check:checked) > td:first-child {
  box-shadow: inset 3px 0 #548aba;
}

/* VERDIE-R6.10: sehr feine, durchgehende Zeilentrenner, auch auf blau. */
.data-table.ticket-overview tbody tr:not(:last-child) > td {
  border-bottom: 1px solid #ccdae6 !important;
}

/* VERDIE-R6.10: Standortadresse statt redundantem Tages-Dropdown. */
.week-site-address {
  display:block;
  margin:6px 0 5px 20px;
  font-size:11px;
  line-height:1.5;
  color:#245f90;
  overflow-wrap:anywhere;
  text-decoration:none;
  width:fit-content;
  max-width:calc(100% - 20px);
}
.week-site-address:hover {color:#164d7b;text-decoration:underline;}
.week-site-address:focus-visible {outline:2px solid #1766ae;outline-offset:2px;border-radius:3px;}
.week-site-address-empty {color:#7a8a99;cursor:default;}
.week-entry-controls {justify-content:flex-end;margin-top:4px;}
.week-entry-controls .week-remove {margin-left:auto;}

/* R6.11 – Standortadresse bündig mit BAU, ohne Symbol. */
.week-site-address{margin-left:0;max-width:100%;}
/* R6.11 – gemeinsame, ruhige Kartenübersicht für Wochen und Einzeltouren. */
.unified-plan-list{margin-bottom:24px;grid-template-columns:repeat(2,minmax(0,1fr));}
@media(max-width:860px){.unified-plan-list{grid-template-columns:1fr;}}
.unified-plan-item{min-width:0;}
.unified-plan-item .week-plan-main{width:100%;}
.ticket-tour-links{display:flex;gap:4px;flex-wrap:wrap;margin-top:5px;}
.ticket-tour-link{font:inherit;font-size:10px;color:#245d91;background:#eff6ff;border:1px solid #cbdef2;border-radius:5px;padding:3px 6px;text-align:left;cursor:pointer;max-width:100%;white-space:normal;}
.ticket-tour-link:hover,.ticket-tour-link:focus-visible{background:#dfeefe;border-color:#84b1dd;text-decoration:underline;}
.week-ticket-target{outline:2px solid #5d92c5;outline-offset:-2px;background:#eff7ff;}
.week-day-actions{gap:6px;flex-wrap:wrap;}

/* R6.12 – geplante Tickets auch in der Wochen-Ticketauswahl dezent markieren. */
.week-add-picker .week-add-item.ticket-planned-item {
  background-color:#e5f1ff;
  border-bottom-color:#cbdff2;
}
.week-add-picker .week-add-item.ticket-planned-item:hover {
  background-color:#d8eafb;
}
.week-add-plan-note {
  font-size:10px;
  color:#245d91;
  font-weight:650;
}

/* R6.19: Eine Aktionsleiste; geplante Tickets mit direktem Touren-Link. */
.week-bottom-actions .route-actions-left{flex:1 1 auto;gap:8px}
.week-bottom-actions .route-actions-right{margin-left:auto}
.week-bottom-actions #week-plan-all{white-space:nowrap}
.week-add-ticket-choice{align-items:flex-start;margin:0;cursor:pointer}
.week-add-ticket-choice input{flex:0 0 auto;margin-top:3px}
.week-add-ticket-choice>span{gap:4px}
.week-add-item.ticket-planned-item .week-add-ticket-choice{cursor:default}
.week-add-picker .week-add-item.ticket-planned-item{background:#f0f7ff;border-left:3px solid #a4c6e6}
.week-add-picker .week-add-item.ticket-planned-item:hover{background:#e8f3ff}
.week-add-assignment-links{display:flex;align-items:flex-start;gap:5px 9px;flex-wrap:wrap;margin:5px 0 2px 25px}
.week-add-assignment-links .ticket-tour-links{margin:0;flex:1 1 200px}
.week-add-assignment-links .ticket-tour-link{font-size:11px;padding:5px 8px}
.week-add-plan-note{padding-top:4px}
/* R6.20: Die gezogene Karte belegt keinen zweiten Platz im selben Tag. */
.week-stop-entry.is-dragging{height:0!important;min-height:0!important;max-height:0!important;padding:0!important;margin:0!important;border-width:0!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}
@media(max-width:800px){
 .week-bottom-actions .route-actions-right{margin-left:0}
 .week-bottom-actions #week-plan-all{white-space:normal}
 .week-add-assignment-links{margin-left:24px}
}

/* R6.23: kompakte Uebersicht, echter Praxedo-CSV-Drop und feste Aktionsleiste. */
.dashboard-workspace{padding-bottom:108px}
.dashboard-import{margin-top:18px}
.dashboard-import-last{margin-top:13px}
.dashboard-upload-intro{display:flex;gap:15px;align-items:center;min-width:0}
.dashboard-upload-zone{transition:background .15s,border-color .15s,box-shadow .15s}
.dashboard-upload-zone.is-dragover{border-color:#2779c2;background:#eaf5ff;box-shadow:0 0 0 3px #2e80bf26}
.dashboard-upload-zone.is-dragover .upload-icon{background:#c7e5ff}
.dashboard-upload-zone.is-uploading{opacity:.76;cursor:progress}
.dashboard-upload-zone.is-uploading .btn{pointer-events:none}
.dashboard-changes{margin-top:18px}
.dashboard-changes-table{width:100%;min-width:850px}
.dashboard-changes-table td{vertical-align:top;line-height:1.5;overflow-wrap:anywhere}
.dashboard-changes-table td small{display:block;color:#7c8b9b;font-size:10px;margin-top:5px;line-height:1.5}
.dashboard-changes-table td:first-child{white-space:nowrap}
.dashboard-changes-table td:nth-child(2){min-width:175px}
.dashboard-changes-table td:nth-child(3){min-width:180px}
.dashboard-changes-table td:nth-child(4){min-width:120px}
.dashboard-change-values{color:#526f87;font-size:11px;margin-top:5px;overflow-wrap:anywhere}
.dashboard-change-history{margin-top:7px;font-size:11px;color:#38658b}
.dashboard-change-history summary{cursor:pointer;width:fit-content;color:#1b5d97;font-weight:650}
.dashboard-change-history[open] summary{margin-bottom:8px}
.dashboard-change-history-items{display:grid;gap:8px;padding-left:8px;border-left:2px solid #dce8f4}
.dashboard-change-history-items>div+div{padding-top:5px;border-top:1px solid #e9edf2}
.dashboard-bottom-actions{position:fixed;bottom:12px;left:calc(50% + 124px);
 transform:translateX(-50%);width:calc(100vw - 316px);max-width:1532px;
 margin:0;z-index:24;justify-content:flex-start}
.dashboard-bottom-actions .route-actions-left{flex:1 1 auto;display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:800px){
 .dashboard-bottom-actions{left:50%;bottom:8px;width:calc(100vw - 28px);padding:9px}
 .dashboard-workspace{padding-bottom:152px}
 .dashboard-upload-zone{align-items:stretch}
 .dashboard-upload-zone .btn{align-self:flex-start}
}
@media(max-width:620px){
 .dashboard-bottom-actions .route-actions-left{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:7px}
 .dashboard-bottom-actions .btn{min-width:0;white-space:normal;font-size:11px;padding:8px 6px;text-align:center}
}
@media print{.dashboard-bottom-actions{display:none!important}}

/* R6.26: Eine einzige, kompakte Adressentscheidung. */
.site-address-review{display:grid;gap:10px;max-width:100%}
.site-address-review>p{margin:0}
.report-address-option{display:flex;align-items:flex-start;gap:10px;padding:12px;border:1px solid #dbe5ef;border-radius:8px;background:#fff;cursor:pointer;min-width:0}
.report-address-option:has(input:checked){border-color:#2873b8;background:#f0f7ff}
.report-address-option input{margin-top:3px;flex-shrink:0}
.report-address-option span{display:flex;flex-direction:column;gap:3px;min-width:0;overflow-wrap:anywhere}
.report-address-option small{font-size:12px;color:#3e5871}

/* R6.40: vier Filterkacheln statt separater Foto-Prüfleiste. */
.document-review-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}
.document-review-card{min-width:0;text-align:left;min-height:130px}
.document-review-card .stat-top{align-items:flex-start;line-height:1.35}
.document-review-card .stat-top>span:first-child{overflow-wrap:anywhere}
.document-review-card .stat-value{font-variant-numeric:tabular-nums}
.document-review-card.is-active{border-color:#1766ae;background:#f1f7fd;box-shadow:inset 0 0 0 1px #1766ae}
.document-review-card.is-active .stat-footer{color:#195e9f;font-weight:750}
.document-review-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:14px}
.document-review-heading h3{font-size:16px;margin:0;color:#193f63}
.document-review-heading .mini{margin:0}
.document-photo-action{margin-top:7px}
.document-review-table .data-table td{vertical-align:middle}
@media(max-width:1050px){.document-review-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.document-review-stats{grid-template-columns:1fr}.document-review-card{min-height:0}}

/* R6.41: Flexibler Excel/CSV-Import ohne neues Hauptmenue. */
.flex-import-workspace{margin-top:10px}.flex-map-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:14px;row-gap:2px}.flex-map-grid .field{margin-bottom:9px}.flex-extra{border-top:1px solid #e4e9e8;padding:12px 0;margin:6px 0}.flex-extra summary{font-size:12px;font-weight:750;cursor:pointer;color:#385b4a}.flex-extra[open] summary{margin-bottom:13px}@media(max-width:650px){.flex-map-grid{grid-template-columns:1fr}}

/* R6.42: compact manual-only actions in the existing ticket list */
.manual-ticket-actions{display:flex;gap:12px;align-items:center;margin-top:5px;flex-wrap:wrap}
.manual-ticket-actions .link-btn{font-size:12px}
.manual-ticket-actions .manual-delete{color:#ac3c32}
