
:root{
  --violet:#7e45eb;
  --blue:#357cf0;
  --turquoise:#31b8c7;
  --ink:#1b1d25;
  --muted:#747a86;
  --line:#e9ebf1;
  --bg:#f7f8fc;
  --card:#ffffff;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:Segoe UI,Arial,sans-serif;
  background:var(--bg);
  color:var(--ink);
}
button{font:inherit}
.topbar{
  position:sticky;top:0;z-index:10;
  display:flex;align-items:center;justify-content:space-between;
  padding:16px 5vw;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(220,223,232,.9);
}
.brand{font-weight:900;font-size:22px;line-height:1}
.brand small{
  display:block;font-size:11px;letter-spacing:.08em;
  color:#777f8b;margin-bottom:5px
}
.brand span{
  background:linear-gradient(90deg,var(--violet),var(--blue),var(--turquoise));
  -webkit-background-clip:text;color:transparent;
}
nav{display:flex;gap:8px}
nav a{
  text-decoration:none;color:#535b67;
  padding:10px 13px;border-radius:11px;
}
nav a.active{
  color:var(--violet);
  background:#f2edff;
  font-weight:700;
}
.account{display:flex;align-items:center;gap:12px}
.bell{
  width:42px;height:42px;border:0;border-radius:13px;
  background:#fff;box-shadow:0 8px 24px rgba(30,42,70,.08);
  cursor:pointer;position:relative;
}
.bell:after{
  content:"";position:absolute;right:8px;top:7px;
  width:9px;height:9px;border-radius:50%;
  background:#ef5465;border:2px solid white;
}
.avatar{
  width:42px;height:42px;border-radius:50%;
  display:grid;place-items:center;
  background:linear-gradient(135deg,var(--violet),var(--blue));
  color:white;font-weight:800;
}
.wrapper{max-width:1660px;margin:auto;padding:34px 2.2vw 48px}
.hero{
  display:grid;grid-template-columns:1.35fr .65fr;
  gap:22px;align-items:stretch;
}
.hero-main{
  min-height:300px;
  padding:38px;
  border-radius:30px;
  background:
    radial-gradient(circle at 85% 10%,rgba(255,255,255,.22),transparent 28%),
    linear-gradient(135deg,var(--violet) 0%,var(--blue) 54%,var(--turquoise) 100%);
  color:white;
  box-shadow:0 26px 70px rgba(68,77,160,.24);
  display:flex;flex-direction:column;justify-content:space-between;
}
.eyebrow{font-size:13px;opacity:.78}
.hero h1{font-size:44px;line-height:1.08;margin:12px 0 14px;max-width:760px}
.hero p{font-size:18px;line-height:1.5;color:#edf6ff;max-width:760px;margin:0}
.hero-actions{display:flex;gap:12px;margin-top:26px;flex-wrap:wrap}
.btn{
  border:0;border-radius:13px;padding:12px 16px;cursor:pointer;
  font-weight:800;
}
.btn-light{background:white;color:#353b47}
.btn-ghost{background:rgba(255,255,255,.14);color:white;border:1px solid rgba(255,255,255,.28)}
.score-card{
  background:white;border:1px solid var(--line);border-radius:30px;
  padding:30px;box-shadow:0 22px 60px rgba(41,48,84,.12);
  display:flex;flex-direction:column;align-items:center;justify-content:center;
}
.ring{
  width:180px;height:180px;border-radius:50%;
  background:conic-gradient(var(--violet) 0 34%,var(--blue) 34% 70%,var(--turquoise) 70% 97%,#ebedf3 97%);
  display:grid;place-items:center;position:relative;
}
.ring:before{
  content:"";position:absolute;inset:16px;background:white;border-radius:50%;
}
.ring-inner{position:relative;text-align:center}
.ring-inner strong{font-size:48px;display:block}
.ring-inner span{font-size:13px;color:var(--muted)}
.score-title{font-size:18px;font-weight:800;margin-top:18px}
.score-note{color:var(--muted);font-size:13px;margin-top:5px;text-align:center}
.metrics{
  display:grid;grid-template-columns:repeat(4,1fr);
  gap:18px;margin-top:22px;
}
.metric{
  background:white;border:1px solid var(--line);border-radius:22px;
  padding:22px;box-shadow:0 12px 34px rgba(41,48,84,.07);
}
.metric .label{color:var(--muted);font-size:13px}
.metric .value{font-size:31px;font-weight:900;margin:8px 0 4px}
.metric .hint{color:var(--muted);font-size:13px}
.main-grid{
  display:grid;grid-template-columns:1.2fr .8fr;
  gap:22px;margin-top:22px;
}
.panel{
  background:white;border:1px solid var(--line);border-radius:24px;
  padding:24px;box-shadow:0 14px 38px rgba(41,48,84,.07);
}
.panel h2{font-size:19px;margin:0 0 16px}
.row{
  display:flex;justify-content:space-between;align-items:center;
  gap:16px;padding:16px 0;border-bottom:1px solid var(--line);
}
.row:last-child{border-bottom:0}
.left{display:flex;align-items:center;gap:13px}
.status{
  width:12px;height:12px;border-radius:50%;
  box-shadow:0 0 0 7px rgba(0,0,0,.03);
}
.ok{background:#26ad74}
.warn{background:#f1b525}
.danger{background:#e35766}
.title{font-weight:800}
.sub{font-size:13px;color:var(--muted);margin-top:4px}
.action{
  border:0;border-radius:12px;padding:10px 14px;cursor:pointer;
  color:white;font-weight:800;
  background:linear-gradient(90deg,var(--violet),var(--blue),var(--turquoise));
  white-space:nowrap;
}
.file{
  width:42px;height:42px;border-radius:13px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,#f0ebff,#e9f6ff);
  font-size:12px;font-weight:900;color:#4b4f5d;
}
.badge{
  padding:6px 10px;border-radius:999px;
  background:#f1f3f7;color:#5e6672;font-size:12px;
}
.offer{
  margin-top:22px;
  background:linear-gradient(90deg,#f5efff,#edf6ff,#ecfbfb);
  border:1px solid #e1e6f3;
  border-radius:24px;padding:24px;
  display:flex;justify-content:space-between;align-items:center;gap:20px;
}
.offer strong{font-size:18px}
.activity{
  margin-top:22px;
  display:grid;grid-template-columns:1fr 1fr;
  gap:22px;
}
.timeline-item{
  display:flex;gap:14px;padding:14px 0;border-bottom:1px solid var(--line)
}
.timeline-item:last-child{border-bottom:0}
.timeline-dot{
  width:11px;height:11px;border-radius:50%;
  margin-top:5px;background:linear-gradient(135deg,var(--violet),var(--turquoise));
  box-shadow:0 0 0 7px #f1efff;
}
.hidden{display:none}
.modal-bg{
  position:fixed;inset:0;background:rgba(9,15,27,.72);
  display:flex;align-items:center;justify-content:center;
  padding:20px;z-index:30;
}
.modal{
  width:min(600px,100%);
  background:white;border-radius:24px;padding:30px;
  box-shadow:0 30px 90px rgba(0,0,0,.28);
}
.modal h3{font-size:26px;margin:0 0 10px}
.modal p{color:var(--muted);line-height:1.55}
.modal-step{
  background:linear-gradient(90deg,#f5efff,#edf6ff,#ecfbfb);
  border:1px solid #e4e8f2;border-radius:16px;padding:16px;margin:18px 0;
}
.modal-actions{display:flex;justify-content:flex-end;gap:10px}
.secondary{
  border:1px solid var(--line);background:white;color:#4b5360;
  border-radius:12px;padding:11px 14px;cursor:pointer;
}
@media(max-width:1050px){
  nav{display:none}
  .hero,.main-grid,.activity{grid-template-columns:1fr}
  .metrics{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:620px){
  .wrapper{padding:22px 18px 40px}
  .topbar{padding:14px 18px}
  .hero-main{padding:28px;min-height:330px}
  .hero h1{font-size:34px}
  .metrics{grid-template-columns:1fr}
  .offer{flex-direction:column;align-items:flex-start}
  .account .company{display:none}
}


.page{display:none}.page.active{display:block}
.navbtn{border:0;background:transparent;text-decoration:none;color:#535b67;padding:10px 13px;border-radius:11px;cursor:pointer;font:inherit}
.navbtn.active{color:var(--violet);background:#f2edff;font-weight:700}
.customer-switch{border:1px solid var(--line);border-radius:11px;padding:8px 10px;background:white;color:#535b67}
.doc-head{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin-bottom:22px}
.doc-head h1{margin:0;font-size:34px}.doc-head p{margin:6px 0 0;color:var(--muted)}
.searchbox{width:min(430px,100%);border:1px solid var(--line);border-radius:13px;padding:12px 14px;background:#fff}
.doc-layout{display:grid;grid-template-columns:280px 1fr;gap:22px}
.tree-panel,.content-panel{background:white;border:1px solid var(--line);border-radius:24px;padding:22px;box-shadow:0 14px 38px rgba(41,48,84,.07)}
.tree-panel{max-height:70vh;overflow:auto}
.tree-panel ul{list-style:none;margin:4px 0;padding-left:16px}
.tree-panel li{margin:5px 0}
.tree-panel button{border:0;background:transparent;padding:6px 7px;border-radius:8px;cursor:pointer;color:#4f5662;text-align:left}
.tree-panel button:hover{background:#f3f5f9}
.tree-panel .folder:before{content:"📁 ";}.tree-panel .filebtn:before{content:"📄 ";}
.breadcrumbs{font-size:13px;color:var(--muted);margin-bottom:16px}
.doc-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.doc-tile{border:1px solid var(--line);border-radius:18px;padding:18px;background:#fff;transition:.2s ease}
.doc-tile:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(41,48,84,.08)}
.doc-tile .dicon{width:42px;height:42px;border-radius:13px;background:linear-gradient(135deg,#f0ebff,#e9f6ff);display:grid;place-items:center}
.doc-tile h3{font-size:15px;margin:11px 0 4px;overflow-wrap:anywhere}
.doc-tile a{display:inline-block;margin-top:11px;color:var(--blue);font-weight:700;text-decoration:none}
.offer-grid{display:grid;grid-template-columns:1fr .75fr;gap:22px}
.offer-form,.price-panel{background:white;border:1px solid var(--line);border-radius:24px;padding:26px;box-shadow:0 14px 38px rgba(41,48,84,.07)}
.price-panel{color:white;background:linear-gradient(135deg,#42266f 0%,var(--blue) 60%,var(--turquoise) 100%);display:flex;flex-direction:column;justify-content:center;min-height:320px}
.price-panel .bigprice{font-size:48px;font-weight:900;margin:10px 0}
.formrow{display:grid;grid-template-columns:1fr 180px;gap:14px;align-items:center;padding:13px 0;border-bottom:1px solid var(--line)}
.formrow input{border:1px solid var(--line);border-radius:10px;padding:10px 12px;width:100%}
.notify-list{background:#fff;border:1px solid var(--line);border-radius:24px;padding:24px;box-shadow:0 14px 38px rgba(41,48,84,.07)}
.notify-item{padding:16px 0;border-bottom:1px solid var(--line)}.notify-item:last-child{border-bottom:0}
.login-overlay{position:fixed;inset:0;z-index:100;background:linear-gradient(135deg,#f7f8fc,#fff);display:grid;place-items:center;padding:24px}
.login-wrap{width:min(1000px,100%);display:grid;grid-template-columns:1.05fr .95fr;border-radius:30px;overflow:hidden;box-shadow:0 30px 90px rgba(41,48,84,.18);background:white}
.login-brand{padding:42px;color:white;background:radial-gradient(circle at 80% 10%,rgba(255,255,255,.22),transparent 25%),linear-gradient(135deg,var(--violet),var(--blue),var(--turquoise));min-height:520px;display:flex;flex-direction:column;justify-content:space-between}
.login-brand h1{font-size:48px;line-height:1.02;margin:15px 0}.login-brand p{font-size:18px;line-height:1.5;color:#eef6ff}
.login-form{padding:48px;display:flex;flex-direction:column;justify-content:center}
.login-form h2{font-size:32px;margin:0 0 8px}.login-form p{color:var(--muted)}
.login-field{margin:12px 0}.login-field label{display:block;font-size:13px;font-weight:700;margin-bottom:7px}.login-field input{width:100%;border:1px solid var(--line);border-radius:12px;padding:12px 13px}
.toast2{position:fixed;right:22px;bottom:22px;z-index:90;background:#202632;color:white;padding:14px 18px;border-radius:12px;box-shadow:0 15px 50px rgba(0,0,0,.25)}
@media(max-width:1000px){.doc-layout,.offer-grid,.login-wrap{grid-template-columns:1fr}.login-brand{display:none}.doc-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.doc-head{flex-direction:column;align-items:stretch}.doc-grid{grid-template-columns:1fr}.formrow{grid-template-columns:1fr}.login-form{padding:28px}}


.page{display:none}.page.active{display:block}
.navbtn{border:0;background:transparent;text-decoration:none;color:#535b67;padding:10px 13px;border-radius:11px;cursor:pointer;font:inherit}
.navbtn.active{color:var(--violet);background:#f2edff;font-weight:700}
.doc-head{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin-bottom:22px}.doc-head h1{margin:0;font-size:34px}.doc-head p{margin:6px 0 0;color:var(--muted)}
.searchbox{width:min(430px,100%);border:1px solid var(--line);border-radius:13px;padding:12px 14px;background:#fff}
.doc-layout{display:grid;grid-template-columns:280px 1fr;gap:22px}.tree-panel,.content-panel{background:white;border:1px solid var(--line);border-radius:24px;padding:22px;box-shadow:0 14px 38px rgba(41,48,84,.07)}
.tree-panel ul{list-style:none;margin:4px 0;padding-left:16px}.tree-panel li{margin:5px 0}.tree-panel button{border:0;background:transparent;padding:6px 7px;border-radius:8px;cursor:pointer;color:#4f5662;text-align:left}.tree-panel .folder:before{content:"📁 "}.tree-panel .filebtn:before{content:"📄 "}
.breadcrumbs{font-size:13px;color:var(--muted);margin-bottom:16px}.doc-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.doc-tile{border:1px solid var(--line);border-radius:18px;padding:18px;background:#fff}.doc-tile .dicon{width:42px;height:42px;border-radius:13px;background:linear-gradient(135deg,#f0ebff,#e9f6ff);display:grid;place-items:center}.doc-tile h3{font-size:15px;margin:11px 0 4px;overflow-wrap:anywhere}.doc-tile a{display:inline-block;margin-top:11px;color:var(--blue);font-weight:700;text-decoration:none}
.offer-grid{display:grid;grid-template-columns:1fr .75fr;gap:22px}.offer-form,.price-panel{background:white;border:1px solid var(--line);border-radius:24px;padding:26px;box-shadow:0 14px 38px rgba(41,48,84,.07)}.price-panel{color:white;background:linear-gradient(135deg,#42266f 0%,var(--blue) 60%,var(--turquoise) 100%);display:flex;flex-direction:column;justify-content:center;min-height:320px}.price-panel .bigprice{font-size:48px;font-weight:900;margin:10px 0}.formrow{display:grid;grid-template-columns:1fr 180px;gap:14px;align-items:center;padding:13px 0;border-bottom:1px solid var(--line)}.formrow input{border:1px solid var(--line);border-radius:10px;padding:10px 12px;width:100%}
.login-overlay{position:fixed;inset:0;z-index:100;background:linear-gradient(135deg,#f7f8fc,#fff);place-items:center;padding:24px}.login-wrap{width:min(1000px,100%);display:grid;grid-template-columns:1.05fr .95fr;border-radius:30px;overflow:hidden;box-shadow:0 30px 90px rgba(41,48,84,.18);background:white}.login-brand{padding:42px;color:white;background:radial-gradient(circle at 80% 10%,rgba(255,255,255,.22),transparent 25%),linear-gradient(135deg,var(--violet),var(--blue),var(--turquoise));min-height:520px;display:flex;flex-direction:column;justify-content:space-between}.login-brand h1{font-size:48px;line-height:1.02;margin:15px 0}.login-brand p{font-size:18px;line-height:1.5;color:#eef6ff}.login-form{padding:48px;display:flex;flex-direction:column;justify-content:center}.login-form h2{font-size:32px;margin:0 0 8px}.login-form p{color:var(--muted)}.login-field{margin:12px 0}.login-field label{display:block;font-size:13px;font-weight:700;margin-bottom:7px}.login-field input{width:100%;border:1px solid var(--line);border-radius:12px;padding:12px 13px}
@media(max-width:1000px){.doc-layout,.offer-grid,.login-wrap{grid-template-columns:1fr}.login-brand{display:none}.doc-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:620px){.doc-grid{grid-template-columns:1fr}.formrow{grid-template-columns:1fr}}

.customer-docs{display:grid;gap:16px}
.doctype-card{background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:0 14px 38px rgba(41,48,84,.07);overflow:hidden}
.doctype-head{width:100%;border:0;background:#fff;padding:22px 24px;display:flex;justify-content:space-between;align-items:center;cursor:pointer;text-align:left}
.doctype-head>div{display:flex;align-items:center;gap:14px}.doctype-head strong{display:block;font-size:18px}.doctype-head span:not(.doctype-icon):not(.chev){display:block;color:var(--muted);font-size:13px;margin-top:4px}
.doctype-icon{width:38px;height:38px;border-radius:12px;display:grid!important;place-items:center;background:linear-gradient(135deg,#f0ebff,#e9f6ff);color:var(--violet);font-weight:900}
.chev{font-size:28px;color:#8b919b;transform:rotate(90deg)}
.doctype-body{display:none;border-top:1px solid var(--line);padding:8px 24px 22px}.doctype-body.open{display:block}
.year-block{border-bottom:1px solid var(--line)}.year-block:last-child{border-bottom:0}
.year-head{width:100%;border:0;background:transparent;padding:16px 0;display:flex;justify-content:space-between;cursor:pointer;color:var(--ink);text-align:left}.year-head span{color:var(--muted);font-size:13px}
.year-docs{display:none;padding:0 0 10px}.year-docs.open{display:block}
.customer-doc-row{display:grid;grid-template-columns:52px 1fr auto;gap:13px;align-items:center;padding:12px 0}
.customer-doc-info strong{display:block;font-size:14px}.customer-doc-info span{display:block;color:var(--muted);font-size:12px;margin-top:3px}
.doc-open{color:var(--blue);font-weight:700;text-decoration:none;padding:9px 12px;border-radius:10px;background:#f2f6ff;white-space:nowrap}
.excel-panel{background:#fff;border:1px solid var(--line);border-radius:24px;padding:24px;box-shadow:0 14px 38px rgba(41,48,84,.07)}
.excel-sheet-title{font-size:18px;font-weight:800;margin-bottom:14px}.excel-scroll{overflow:auto;max-height:72vh;border:1px solid var(--line);border-radius:14px}
.excel-table{border-collapse:collapse;min-width:100%;font-size:13px}.excel-table th,.excel-table td{padding:9px 11px;border-right:1px solid #eceef3;border-bottom:1px solid #eceef3;text-align:left;white-space:nowrap}.excel-table th{position:sticky;top:0;background:#f5f6fa;z-index:1;font-weight:800}.excel-table tr:hover td{background:#fafbfe}
.empty-state{padding:28px;text-align:center;color:var(--muted)}
@media(max-width:700px){.customer-doc-row{grid-template-columns:44px 1fr}.doc-open{grid-column:2}.doctype-head,.doctype-body{padding-left:16px;padding-right:16px}}

/* v0.8 – approved SafetyCenter One visual language */
.service-section{margin-top:22px}
.service-title{margin:0 0 14px}.service-title h2{margin:0;font-size:19px}.service-title p{margin:5px 0 0;color:var(--muted);font-size:13px}
.service-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.service-tile{background:#fff;border:1px solid var(--line);border-radius:24px;padding:24px;box-shadow:0 14px 38px rgba(41,48,84,.07);display:flex;flex-direction:column;min-height:210px}
.service-head{display:flex;align-items:center;gap:14px}.service-head h3{margin:0 0 5px;font-size:18px}.service-head p{margin:0;color:var(--muted);font-size:13px}
.service-icon{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;font-weight:900}.service-icon.ov{background:linear-gradient(135deg,#eef8f4,#edfafa);color:#1a9870}.service-icon.of{background:linear-gradient(135deg,#fff4dc,#fff9ea);color:#bd8800}
.service-meta{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:22px;padding-top:17px;border-top:1px solid var(--line)}.service-meta b{font-size:18px}.service-meta span{font-size:12px;color:var(--muted)}
.service-actions{margin-top:auto;padding-top:20px;display:flex;gap:10px;justify-content:flex-end}.service-secondary{border:1px solid var(--line)!important;background:#fff!important;color:#4f5865!important}
@media(max-width:850px){.service-grid{grid-template-columns:1fr}}

/* real Excel web view */
.excel-panel{background:#fff;border:1px solid var(--line);border-radius:24px;padding:24px;box-shadow:0 14px 38px rgba(41,48,84,.07)}
.excel-sheet-title{font-size:18px;font-weight:800;margin-bottom:14px}
.excel-scroll{overflow:auto;max-height:72vh;border:1px solid var(--line);border-radius:14px}
.excel-table{border-collapse:collapse;min-width:100%;font-size:13px}
.excel-table th,.excel-table td{padding:9px 11px;border-right:1px solid #eceef3;border-bottom:1px solid #eceef3;text-align:left;white-space:nowrap}
.excel-table th{position:sticky;top:0;background:#f5f6fa;z-index:1;font-weight:800}
.excel-table tr:hover td{background:#fafbfe}

/* v0.9 – one service card, no duplicated year level */
.flat-doc-card{padding:0}
.flat-doc-head{padding:22px 24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}
.flat-doc-title{display:flex;align-items:center;gap:14px}.flat-doc-title strong{display:block;font-size:18px}.flat-doc-title span:not(.doctype-icon){display:block;color:var(--muted);font-size:13px;margin-top:4px}
.flat-doc-list{padding:8px 24px 18px}
.year-select{border:1px solid var(--line);border-radius:10px;background:#fff;padding:8px 10px;color:#555d69}
.doc-actions{display:flex;align-items:center;gap:8px}.doc-download{color:#66707c;text-decoration:none;font-size:12px;font-weight:700;padding:9px 10px}
@media(max-width:760px){.doc-actions{grid-column:2;flex-wrap:wrap}}

/* v0.11 */
.new-badge{display:inline-block;margin-left:7px;padding:3px 7px;border-radius:999px;background:linear-gradient(90deg,var(--violet),var(--blue));color:#fff;font-size:10px;font-weight:900;vertical-align:middle}
.ov-kpis,.defect-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:22px}
.ov-kpi{background:#fff;border:1px solid var(--line);border-radius:22px;padding:22px;box-shadow:0 12px 34px rgba(41,48,84,.07)}
.ov-kpi span{display:block;color:var(--muted);font-size:13px}.ov-kpi strong{display:block;font-size:34px;margin:7px 0 3px}.ov-kpi small{color:var(--muted)}
.ov-area-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-bottom:22px}
.ov-area-card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:24px;box-shadow:0 14px 38px rgba(41,48,84,.07)}
.ov-area-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}.ov-area-head h2{margin:9px 0 0;font-size:19px}.ov-area-head>strong{font-size:30px}
.ov-area-values{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}
.ov-area-values span{display:block;color:var(--muted);font-size:12px}.ov-area-values b{display:block;margin-top:5px;font-size:15px}
.ov-details{background:#fff;border:1px solid var(--line);border-radius:24px;padding:20px;box-shadow:0 14px 38px rgba(41,48,84,.07)}
.ov-tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:16px}.ov-tabbtn{border:0;border-radius:11px;background:#f2f4f8;color:#59616e;padding:9px 12px;cursor:pointer}.ov-tabbtn.active{background:#f0ebff;color:var(--violet);font-weight:800}
.ov-tab{display:none}.ov-tab.active{display:block}
.defect-actions{display:flex;gap:10px;flex-wrap:wrap}
.defect-panel{background:#fff;border:1px solid var(--line);border-radius:24px;padding:24px;box-shadow:0 14px 38px rgba(41,48,84,.07);margin-top:20px}
.defect-panel h2{margin:0 0 14px;font-size:19px}.defect-row{display:grid;grid-template-columns:38px 1fr;gap:13px;padding:15px 0;border-bottom:1px solid var(--line)}.defect-row:last-child{border-bottom:0}
.defect-no{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:#fff5dc;color:#a97100;font-weight:900}.defect-row strong{font-size:12px;color:#a97100}.defect-row p{margin:5px 0 0;line-height:1.45}
.defect-notes{margin:0;padding-left:20px;color:#525a66}.defect-notes li{margin:8px 0;line-height:1.5}
@media(max-width:850px){.ov-kpis,.defect-summary,.ov-area-grid{grid-template-columns:1fr}.ov-area-values{grid-template-columns:1fr}}

/* v0.12 */
.area-card{position:relative}.area-notification-dot{position:absolute;right:16px;top:15px;width:11px;height:11px;border-radius:50%;background:#e53935;box-shadow:0 0 0 4px #fff;z-index:3}
.history-link{border:0;background:transparent;color:var(--violet);font-weight:800;cursor:pointer;padding:8px 12px}.history-years{display:none;border-top:1px solid var(--line);padding:0 24px 18px;background:#fafbfe}.history-years.open{display:block}.history-year{padding-top:18px}.history-year h4{margin:0 0 8px;color:#59616e}
.object-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;background:#fff;border:1px solid var(--line);border-radius:20px;padding:18px 22px;margin-bottom:18px}.object-strip span{display:block;color:var(--muted);font-size:12px;margin-bottom:5px}.object-strip strong{font-size:15px}
.defect-meta{display:flex;gap:10px 18px;flex-wrap:wrap;margin-bottom:8px;color:#59616e;font-size:12px}
.next-inspections{margin:22px 0;background:#fff;border:1px solid var(--line);border-radius:24px;padding:22px;box-shadow:0 14px 38px rgba(41,48,84,.06)}.section-head h2{margin:0 0 4px}.section-head p{margin:0 0 16px;color:var(--muted)}
.next-list{display:grid;gap:8px}.next-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 0;border-top:1px solid var(--line)}.next-row:first-child{border-top:0}.next-row span{display:block;color:var(--muted);font-size:12px;margin-top:3px}.next-row b{white-space:nowrap}
@media(max-width:850px){.object-strip{grid-template-columns:1fr}.next-row{align-items:flex-start;flex-direction:column}}

/* v0.14 – OV Prüfregister from database */
.register-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:18px}
.register-summary>div{background:#fff;border:1px solid var(--line);border-radius:18px;padding:17px 20px;box-shadow:0 10px 28px rgba(41,48,84,.05)}
.register-summary span{display:block;color:var(--muted);font-size:12px}.register-summary strong{display:block;font-size:27px;margin-top:4px}
.register-panel{background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:0 14px 38px rgba(41,48,84,.07);overflow:hidden}
.register-scroll{overflow:auto;max-height:70vh}.register-table{width:100%;border-collapse:collapse;font-size:13px;min-width:980px}
.register-table th{position:sticky;top:0;z-index:2;background:#f7f8fb;padding:13px 15px;text-align:left;border-bottom:1px solid var(--line);color:#59616e;font-size:12px}
.register-table td{padding:13px 15px;border-bottom:1px solid #edf0f4}.register-row{cursor:pointer;outline:none}.register-row:hover td,.register-row:focus td{background:#f8faff}.row-arrow{font-size:23px;color:#7f8792}
.status-pill{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:800;white-space:nowrap}.status-pill.passed{background:#eaf8f1;color:#14784f}.status-pill.failed{background:#fff0ef;color:#c43732}.status-pill.large{font-size:14px;padding:9px 14px}
.device-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:20px}.device-facts>div{background:#fff;border:1px solid var(--line);border-radius:18px;padding:17px 19px}.device-facts span{display:block;color:var(--muted);font-size:12px;margin-bottom:5px}.device-facts strong{font-size:15px}
.device-documents,.device-defects{background:#fff;border:1px solid var(--line);border-radius:22px;padding:22px;box-shadow:0 12px 32px rgba(41,48,84,.06);margin-top:18px}.device-documents h2,.device-defects h2{margin:0 0 14px;font-size:19px}
.device-doc{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 0;border-top:1px solid var(--line)}.device-doc:first-of-type{border-top:0}.device-doc strong,.device-doc span{display:block}.device-doc span{color:var(--muted);font-size:12px;margin-top:4px}.device-doc-actions{display:flex;gap:8px;flex-wrap:wrap}.device-doc.missing{color:#7b838e}
.device-defects ul{margin:0;padding-left:20px}.device-defects li{margin:7px 0;line-height:1.45}
@media(max-width:850px){.register-summary,.device-facts{grid-template-columns:1fr}.device-doc{align-items:flex-start;flex-direction:column}}

/* v0.15 – filters for OV inspection register */
.register-filters{display:grid;grid-template-columns:minmax(260px,1.5fr) minmax(150px,.7fr) minmax(180px,.8fr) minmax(220px,1fr) auto;gap:12px;align-items:end;background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px 16px;margin:0 0 14px;box-shadow:0 8px 24px rgba(41,48,84,.05)}
.register-filters label{display:block;font-size:12px;font-weight:800;color:#626a76;margin:0 0 6px}
.register-filters .searchbox{width:100%;height:42px}
.filter-field select{width:100%;height:42px;border:1px solid var(--line);border-radius:11px;background:#fff;padding:0 34px 0 11px;color:var(--ink);font:inherit}
.filter-reset{height:42px;border:1px solid var(--line);border-radius:11px;background:#f7f8fc;color:#59616d;padding:0 14px;font-weight:700;cursor:pointer;white-space:nowrap}
.filter-reset:hover{background:#f0f2f7}
.filter-empty{padding:30px;text-align:center;color:var(--muted);font-weight:600}
@media(max-width:1100px){.register-filters{grid-template-columns:1fr 1fr 1fr}.filter-search{grid-column:1/-1}.filter-reset{width:100%}}
@media(max-width:700px){.register-filters{grid-template-columns:1fr}.filter-search{grid-column:auto}}

/* v0.15 – filters for OV inspection register */
.register-filters{display:grid;grid-template-columns:minmax(260px,1.5fr) minmax(150px,.7fr) minmax(180px,.8fr) minmax(220px,1fr) auto;gap:12px;align-items:end;background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px 16px;margin:0 0 14px;box-shadow:0 8px 24px rgba(41,48,84,.05)}
.register-filters label{display:block;font-size:12px;font-weight:800;color:#626a76;margin:0 0 6px}
.register-filters .searchbox{width:100%;height:42px}
.filter-field select{width:100%;height:42px;border:1px solid var(--line);border-radius:11px;background:#fff;padding:0 34px 0 11px;color:var(--ink);font:inherit}
.filter-reset{height:42px;border:1px solid var(--line);border-radius:11px;background:#f7f8fc;color:#59616d;padding:0 14px;font-weight:700;cursor:pointer;white-space:nowrap}
.filter-reset:hover{background:#f0f2f7}
.filter-empty{padding:30px;text-align:center;color:var(--muted);font-weight:600}
@media(max-width:1100px){.register-filters{grid-template-columns:1fr 1fr 1fr}.filter-search{grid-column:1/-1}.filter-reset{width:100%}}
@media(max-width:700px){.register-filters{grid-template-columns:1fr}.filter-search{grid-column:auto}}

/* v0.17 OV inspection history */
.history-section{margin-top:24px}
.history-title{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:14px}
.history-title h2{margin:4px 0 0}
.history-count{font-size:13px;font-weight:700;padding:8px 12px;border-radius:999px;background:#eef3ff;color:#3156a7;white-space:nowrap}
.history-card{background:#fff;border:1px solid #e5e9f2;border-radius:18px;padding:18px 20px;margin:12px 0;box-shadow:0 8px 26px rgba(28,48,86,.05)}
.history-head{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-bottom:12px;border-bottom:1px solid #eef1f6}
.history-head h3{margin:3px 0 0;font-size:20px}.history-kicker{font-size:12px;color:#758199;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.history-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:14px}.history-meta div{background:#f8f9fc;border-radius:12px;padding:12px}.history-meta span{display:block;font-size:12px;color:#788398;margin-bottom:5px}.history-meta strong{font-size:14px}
.history-links{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.history-defects{margin-top:12px}.history-defects summary{cursor:pointer;font-weight:700}.history-defects ul{margin:10px 0 0;padding-left:20px}.muted{color:#7d8798;font-size:13px}
.status-pill.unknown{background:#eef1f5;color:#5d687a}
@media(max-width:900px){.history-meta{grid-template-columns:1fr 1fr}}@media(max-width:600px){.history-meta{grid-template-columns:1fr}.history-head,.history-title{align-items:flex-start;flex-direction:column}}

/* v0.21 dynamic inspection areas */
.dynamic-area{position:relative}.service-new-dot{position:absolute;right:20px;top:20px;width:12px;height:12px;border-radius:50%;background:#e53935;box-shadow:0 0 0 4px #fff,0 3px 10px rgba(229,57,53,.35)}
.area-unread-label{font-size:12px;font-weight:800;color:#d52e32;background:#fff2f2;border:1px solid #ffd6d6;padding:8px 10px;border-radius:999px}
.area-ov,.area-of,.area-ma,.area-thermo,.area-regal,.area-tore,.area-brand,.area-leiter{background:linear-gradient(135deg,#edf1ff,#e8f7ff)!important;color:#5261b8!important}
.area-title{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin:28px 0 22px}.area-title h1{font-size:38px;margin:6px 0}.area-title p{color:var(--muted);margin:0}.area-title>.btn{white-space:nowrap}
.area-metrics{margin-bottom:22px}.area-visuals{display:grid;grid-template-columns:1.25fr .75fr;gap:22px;margin:22px 0}.visual-card,.area-section{background:#fff;border:1px solid var(--line);border-radius:24px;padding:24px;box-shadow:0 14px 38px rgba(41,48,84,.07)}
.visual-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.visual-head h2{margin:5px 0 18px}.visual-head>strong{font-size:30px}.status-bar{height:18px;background:#eef0f5;border-radius:999px;overflow:hidden;display:flex}.bar-passed{background:linear-gradient(90deg,#7dd5b2,#47b991)}.bar-failed{background:linear-gradient(90deg,#ffb5b5,#ef7777)}.chart-legend{display:flex;gap:28px;margin-top:15px;color:var(--muted)}.chart-legend b{color:var(--text);margin-left:5px}
.mini-bars{display:grid;gap:13px}.mini-bar-row{display:grid;grid-template-columns:92px 1fr 42px;align-items:center;gap:12px;font-size:13px}.mini-bar-row>div{height:10px;background:#eef0f5;border-radius:99px;overflow:hidden}.mini-bar-row i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#8c73dc,#5fc7df)}.mini-bar-row b{text-align:right}
.area-section{margin:22px 0}.area-section .section-head{margin-top:0}.area-downloads{display:grid;gap:10px}.area-download-row{display:grid;grid-template-columns:48px 1fr auto;gap:14px;align-items:center;padding:14px 0;border-top:1px solid var(--line)}.area-download-row:first-child{border-top:0}.area-download-info strong{display:block}.area-download-info span{display:block;color:var(--muted);font-size:13px;margin-top:3px}.location-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.location-row{display:flex;justify-content:space-between;gap:18px;background:#f8f9fc;border:1px solid var(--line);border-radius:14px;padding:12px 14px}.location-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.muted{color:var(--muted);font-size:13px}
@media(max-width:850px){.area-visuals{grid-template-columns:1fr}.area-title{align-items:flex-start;flex-direction:column}.location-list{grid-template-columns:1fr}.area-download-row{grid-template-columns:44px 1fr}.area-download-row>a{grid-column:2;justify-self:start}}

/* v0.21.1 generic dashboard + fully clickable inspection-area tiles */
.metrics-generic{grid-template-columns:repeat(3,1fr)}
.service-tile-link{text-decoration:none;color:inherit;cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
.service-tile-link:hover{transform:translateY(-2px);box-shadow:0 18px 44px rgba(41,48,84,.11);border-color:#d9dded}
.service-tile-link:focus-visible{outline:3px solid rgba(111,76,255,.25);outline-offset:3px}
@media(max-width:850px){.metrics-generic{grid-template-columns:1fr}}

/* v0.21.2 dashboard layout, contact card, offer alert, OV integrated register */
.dashboard-top{display:grid;grid-template-columns:270px minmax(0,1fr) 360px;gap:26px;align-items:start;margin:28px 0 22px}
.metrics-side{display:grid;gap:14px}.metrics-side .metric{background:#fff;border:1px solid var(--line);border-radius:20px;padding:20px;box-shadow:0 12px 30px rgba(41,48,84,.06)}
.metrics-side .value{font-size:32px;font-weight:800;margin:6px 0}.metrics-side .label{color:var(--muted);font-size:12px}.metrics-side .hint{color:var(--muted);font-size:12px;line-height:1.35}
.dashboard-center{display:grid;gap:16px}.compact-hero{min-height:280px;border-radius:26px;padding:34px 38px;background:linear-gradient(135deg,#7644ef,#3c78ee 55%,#2eb7ba);color:#fff;box-shadow:0 18px 42px rgba(67,84,167,.16);display:flex;align-items:center}.compact-hero .eyebrow,.compact-hero p{color:#fff;opacity:.92}.compact-hero h1{font-size:42px;line-height:1.08;margin:12px 0 16px}.compact-hero p{font-size:17px;line-height:1.55;margin:0}
.dashboard-right{display:grid;gap:16px}.dashboard-right .score-card{min-height:280px}
.contact-card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:22px;box-shadow:0 14px 36px rgba(41,48,84,.07)}.contact-card h2{margin:5px 0 6px;font-size:21px}.contact-card>p{color:var(--muted);font-size:13px;margin:0 0 16px}.contact-card form{display:grid;gap:11px}.contact-card label{display:grid;gap:5px;font-size:12px;font-weight:700;color:#555f6d}.contact-card input[type="text"],.contact-card textarea{width:100%;border:1px solid var(--line);border-radius:11px;padding:10px 11px;font:inherit;resize:vertical}.contact-check{display:flex!important;align-items:center;gap:8px!important;font-weight:600!important}.contact-card small{color:var(--muted)}
.offer-alert{display:flex;justify-content:space-between;align-items:center;gap:18px;background:#fff8e8;border:1px solid #f3d998;border-radius:20px;padding:18px 20px}.offer-alert strong{display:block;margin:4px 0;font-size:18px}.offer-alert p{margin:0;color:#6c6250;font-size:13px}.offer-alert .action{white-space:nowrap}
.visual-title{font-size:23px;font-weight:800;line-height:1.1}.visual-sub{font-size:12px;color:var(--muted);margin-top:5px;font-weight:400}.passed-number{color:#198c5f!important}.failed-number{color:#d33b3b!important}.chart-legend b{font-size:17px}
.analysis-select{height:38px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:0 30px 0 10px;font:inherit;font-size:13px}.analysis-list{display:grid;gap:11px;margin-top:16px}.analysis-row{display:grid;grid-template-columns:minmax(120px,1fr) 1.4fr 42px;align-items:center;gap:12px;font-size:13px}.analysis-row>div{height:10px;background:#eef0f5;border-radius:99px;overflow:hidden}.analysis-row i{height:100%;display:block;background:linear-gradient(90deg,#8c73dc,#5fc7df);border-radius:99px}.analysis-row b{text-align:right}.analysis-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.register-inline{padding:24px}.register-inline .register-filters{box-shadow:none}.register-inline .register-panel{box-shadow:none}.register-inline .register-scroll{max-height:58vh}
#sammeldownloads{scroll-margin-top:90px}
@media(max-width:1200px){.dashboard-top{grid-template-columns:220px minmax(0,1fr)}.dashboard-right{grid-column:1/-1;grid-template-columns:1fr 1fr}.dashboard-right .score-card{min-height:0}.contact-card{min-height:0}}
@media(max-width:850px){.dashboard-top{grid-template-columns:1fr}.metrics-side{grid-template-columns:repeat(3,1fr)}.dashboard-right{grid-template-columns:1fr}.compact-hero{min-height:0}.compact-hero h1{font-size:34px}.analysis-row{grid-template-columns:1fr 1fr 36px}}
@media(max-width:620px){.metrics-side{grid-template-columns:1fr}.compact-hero{padding:26px}.compact-hero h1{font-size:30px}.offer-alert{align-items:flex-start;flex-direction:column}}

/* v0.21.4 compact dashboard flow: due inspections directly below hero */
.dashboard-next{margin:0;background:#fff;border:1px solid var(--line);border-radius:22px;padding:20px 22px;box-shadow:0 12px 30px rgba(41,48,84,.06)}
.dashboard-next .section-head{margin:0 0 12px}.dashboard-next .section-head h2{font-size:19px;margin:0 0 4px}.dashboard-next .section-head p{font-size:12px;margin:0;color:var(--muted)}
.dashboard-next .next-list{display:grid;gap:8px}.dashboard-next .next-row{padding:11px 13px;border-radius:13px;background:#f8f9fc;border:1px solid var(--line)}
.dashboard-services{margin:0}.dashboard-services .service-title{margin:0 0 12px}.dashboard-services .service-title h2{font-size:20px;margin:0 0 4px}.dashboard-services .service-title p{font-size:12px;margin:0;color:var(--muted)}
.compact-service-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.compact-service-grid .service-tile{padding:16px 18px;border-radius:18px;min-height:0}.compact-service-grid .service-head{gap:12px}.compact-service-grid .service-icon{width:42px;height:42px;border-radius:13px}.compact-service-grid h3{font-size:16px;margin:0 0 3px}.compact-service-grid .service-head p{font-size:12px;margin:0}.compact-service-grid .service-meta{margin-top:12px;padding-top:10px}.compact-service-grid .service-meta b{font-size:18px}.compact-service-grid .service-meta span{font-size:11px}
@media(max-width:1050px){.compact-service-grid{grid-template-columns:1fr}}

/* v0.22 – Kunden-/Benutzerverwaltung und Registrierung */
.form-error{background:#fff0f0;border:1px solid #f1c2c2;color:#a42d2d;border-radius:11px;padding:10px 12px;margin:12px 0;font-size:13px}
.simple-shell{min-height:100vh;display:grid;place-items:center;padding:32px;background:linear-gradient(145deg,#f7f8fc,#edf0f7)}
.simple-card{width:min(720px,100%);background:#fff;border:1px solid var(--line);border-radius:26px;padding:30px;box-shadow:0 24px 70px rgba(37,45,78,.12)}
.simple-card h1{margin:7px 0 9px}.simple-card>p{color:var(--muted)}.register-card{max-width:560px}.register-card .brand{margin-bottom:28px}
.admin-wrapper{display:grid;gap:22px;padding-bottom:50px
    padding-left: 0;
}.admin-hero{background:linear-gradient(120deg,#122b58,#536fc7);color:#fff;border-radius:24px;padding:26px 30px}.admin-hero h1{margin:5px 0 6px}.admin-hero p{margin:0;opacity:.82}
.admin-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.72fr);gap:20px}.admin-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:22px;box-shadow:0 12px 34px rgba(41,48,84,.06)}.admin-card h2{margin:0 0 15px}.admin-info p{color:var(--muted);line-height:1.55}
.admin-form{display:grid;gap:12px}.admin-form label,.invite-link-label{display:grid;gap:6px;font-size:12px;font-weight:700;color:#555f6d}.admin-form input,.admin-form select,.invite-link,.inline-invite input,.inline-invite select{width:100%;border:1px solid var(--line);border-radius:11px;padding:10px 11px;background:#fff;font:inherit}.admin-form .action{justify-self:start}.admin-actions{display:flex;gap:10px;margin-top:16px}.invite-link{margin-top:7px;resize:none;font-size:13px}
.admin-table-wrap{overflow:auto}.admin-table{width:100%;border-collapse:collapse;font-size:13px}.admin-table th{text-align:left;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.05em;border-bottom:1px solid var(--line);padding:10px 8px}.admin-table td{padding:12px 8px;border-bottom:1px solid #edf0f5;vertical-align:top}.admin-table td small{display:block;color:var(--muted);margin-top:3px}.inline-invite{display:grid;grid-template-columns:130px 190px 160px auto;gap:7px;min-width:600px}.inline-invite input,.inline-invite select{padding:8px 9px}.hero-team-link{margin-left:auto;align-self:flex-start;white-space:nowrap}.hero-main{display:flex;gap:16px;align-items:flex-start}
@media(max-width:1050px){.admin-grid{grid-template-columns:1fr}.inline-invite{grid-template-columns:1fr;min-width:240px}.hero-main{display:block}.hero-team-link{display:inline-flex;margin-top:14px}}

/* v0.22.1 – interne Steuerungszentrale */
.admin-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.admin-dashboard-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.admin-mini-kpi{background:#fff;border:1px solid var(--line);border-radius:18px;padding:17px 18px;box-shadow:0 10px 26px rgba(41,48,84,.05)}
.admin-mini-kpi span{display:block;font-size:12px;font-weight:700;color:var(--muted)}
.admin-mini-kpi strong{display:block;font-size:29px;line-height:1.1;margin:7px 0 3px;color:#1c2850}
.admin-mini-kpi small{color:var(--muted)}
.admin-launch-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.admin-launch-card{display:grid;grid-template-columns:auto 1fr auto;gap:16px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:22px;padding:24px;text-decoration:none;color:inherit;box-shadow:0 12px 34px rgba(41,48,84,.06);transition:.16s ease}
.admin-launch-card:hover{transform:translateY(-2px);box-shadow:0 16px 40px rgba(41,48,84,.1);border-color:#cbd4ee}
.admin-launch-card h2{margin:0 0 6px;color:#17254d}.admin-launch-card p{margin:0;color:var(--muted);line-height:1.45}.admin-launch-card>b{color:#3458b7;white-space:nowrap}
.launch-icon{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;background:#edf2ff;color:#3557ad;font-weight:800;font-size:12px}
.customer-admin-grid,.inspection-customer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.customer-admin-card,.inspection-customer-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:19px 20px;box-shadow:0 10px 28px rgba(41,48,84,.05)}
.customer-disabled{opacity:.7;background:#f8f9fb}
.customer-admin-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.customer-admin-head h3{margin:4px 0 3px;font-size:18px}.customer-admin-head small{color:var(--muted)}
.customer-number{font-size:11px;font-weight:800;letter-spacing:.06em;color:#4562b0;background:#eef2ff;padding:5px 8px;border-radius:999px;display:inline-block}
.customer-admin-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}.customer-admin-meta span{font-size:12px;color:var(--muted);overflow-wrap:anywhere}.customer-admin-meta b{display:block;color:#313b52;margin-bottom:4px}
.inline-user-edit{display:grid;grid-template-columns:1fr 1.25fr 160px auto;gap:7px;min-width:680px}.inline-user-edit input,.inline-user-edit select{border:1px solid var(--line);border-radius:10px;padding:8px 9px;background:#fff;font:inherit}
.row-actions{display:flex;gap:7px;align-items:center}.row-actions form{margin:0}.danger-button{border:1px solid #efc4c4;background:#fff3f3;color:#a42b2b;border-radius:10px;padding:9px 12px;font:inherit;font-weight:700;cursor:pointer}.danger-button:hover{background:#ffe8e8}
.admin-status-form{margin-top:16px}.danger-zone{margin-top:18px;padding:15px;border:1px solid #efc4c4;background:#fff7f7;border-radius:14px}.danger-zone h3{margin:0 0 7px;color:#9e2626}.danger-zone p{font-size:12px;color:#7a4b4b}.danger-zone form{display:flex;gap:8px}.danger-zone input{flex:1;border:1px solid #e3bcbc;border-radius:10px;padding:9px 10px}
.muted{color:var(--muted);font-size:13px}.due-section h2{margin-bottom:2px}.customer-area-line{display:grid;grid-template-columns:minmax(180px,1fr) 130px 170px;gap:10px;padding:11px 0;border-top:1px solid #edf0f5;font-size:13px}.customer-area-line:first-of-type{margin-top:15px}.customer-area-line span{color:var(--muted)}
.account small{display:block;color:var(--muted);font-size:10px;margin-top:2px}
@media(max-width:1200px){.admin-dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-admin-grid,.inspection-customer-grid{grid-template-columns:1fr}.customer-admin-meta{grid-template-columns:1fr 1fr}.admin-launch-grid{grid-template-columns:1fr}}
@media(max-width:760px){.admin-dashboard-kpis{grid-template-columns:1fr}.admin-launch-card{grid-template-columns:auto 1fr}.admin-launch-card>b{grid-column:2}.customer-admin-meta{grid-template-columns:1fr}.customer-area-line{grid-template-columns:1fr}.admin-hero{display:block}.admin-hero>a{display:inline-flex;margin-top:14px}.topbar nav{display:none}}

/* v0.22.2: gebündelte Fälligkeiten / Angebots-Arbeitsliste */
.due-cluster-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.due-cluster-card{display:block;background:#fff;border:1px solid var(--line);border-radius:22px;padding:22px;text-decoration:none;color:inherit;box-shadow:0 12px 32px rgba(41,48,84,.06);transition:.16s ease}
.due-cluster-card:hover{transform:translateY(-2px);border-color:#cbd4ee;box-shadow:0 16px 40px rgba(41,48,84,.1)}
.due-cluster-top{display:flex;justify-content:space-between;gap:12px;align-items:center}.due-chip{font-size:12px;font-weight:700;color:#2f5bc4;background:#eef3ff;border-radius:999px;padding:6px 9px}
.due-cluster-card h2{margin:13px 0 3px;font-size:20px;color:#17254d}.due-area{font-size:14px;font-weight:700;color:#526080;margin-bottom:22px}.due-date-label{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}.due-date{display:block;font-size:28px;color:#17254d;margin-top:3px}.due-footer{display:flex;justify-content:space-between;gap:10px;margin-top:20px;padding-top:14px;border-top:1px solid #edf0f5;font-size:12px;color:var(--muted)}.due-footer b{color:#3458b7;white-space:nowrap}
.due-detail-hero{align-items:center}.due-detail-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.due-detail-actions form{margin:0}
@media(max-width:1200px){.due-cluster-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.due-cluster-grid{grid-template-columns:1fr}.due-detail-actions{margin-top:14px}}

a.brand-home{color:inherit;text-decoration:none;cursor:pointer}.brand-home:hover{opacity:.88}.login-help{display:flex;justify-content:flex-end;margin-top:-4px;margin-bottom:8px}.login-help a,.simple-card a{color:#1557d5;text-decoration:none;font-weight:650}.form-success{padding:12px 14px;border-radius:10px;background:#eef9f1;border:1px solid #c9e9d0;color:#246b35;margin:12px 0;font-size:14px}


/* v0.22.9 – OV Fehlerquote / Prüffristbegründung */
.ov-rate-card{
  margin:18px 0 20px;
  padding:22px 24px;
  border-radius:18px;
  border:1px solid rgba(17,24,39,.10);
  background:#fff;
  box-shadow:0 10px 30px rgba(15,23,42,.05);
}
.ov-rate-main{
  display:flex;
  justify-content:space-between;
  gap:24px;
  align-items:flex-start;
}
.ov-rate-main h2{margin:4px 0 6px;font-size:22px}
.ov-rate-main p{margin:0;color:#4b5563}
.ov-rate-number{
  min-width:170px;
  text-align:right;
  font-size:34px;
  line-height:1;
  font-weight:800;
}
.ov-rate-number small{
  display:block;
  margin-top:8px;
  font-size:12px;
  line-height:1.35;
  font-weight:500;
  color:#6b7280;
}
.ov-rate-rule{
  margin-top:18px;
  padding:14px 16px;
  border-radius:12px;
  background:rgba(15,23,42,.035);
}
.ov-rate-rule strong,.ov-rate-rule span{display:block}
.ov-rate-rule strong{margin-bottom:5px}
.ov-rate-rule span{font-size:14px;line-height:1.5;color:#4b5563}
.ov-rate-note{margin-top:10px;font-size:12px;color:#6b7280}
.ov-rate-card.rate-alert .ov-rate-number{color:#b42318}
.ov-rate-card.rate-ok .ov-rate-number{color:#147d64}
@media(max-width:760px){
  .ov-rate-main{display:block}
  .ov-rate-number{text-align:left;margin-top:16px}
}


/* v0.22.10 – Hinweis zur Prüffrist nur ab 2,0 % */
.ov-rate-card{display:none!important}
.ov-rate-inline{
  margin-top:22px;
  padding-top:18px;
  border-top:1px solid rgba(17,24,39,.10);
}
.ov-rate-inline-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
}
.ov-rate-label{
  display:block;
  font-size:13px;
  color:#6b7280;
  margin-bottom:4px;
}
.ov-rate-inline-head strong{
  display:block;
  font-size:17px;
}
.ov-rate-inline-value{
  text-align:right;
  font-size:26px;
  line-height:1;
  font-weight:800;
  color:#b42318;
}
.ov-rate-inline-value small{
  display:block;
  margin-top:6px;
  font-size:12px;
  font-weight:500;
  color:#6b7280;
}
.ov-rate-inline-rule{
  margin-top:12px;
  font-size:13px;
  line-height:1.5;
  color:#4b5563;
}
.ov-rate-source{
  margin-top:10px;
  padding:10px 12px;
  border-radius:10px;
  background:rgba(180,35,24,.06);
  font-size:12px;
  line-height:1.45;
  color:#4b5563;
}
.ov-rate-source strong{color:#111827}
.ov-rate-source span{margin-left:4px}
@media(max-width:760px){
  .ov-rate-inline-head{display:block}
  .ov-rate-inline-value{text-align:left;margin-top:12px}
}

/* v0.22.12 – Mehrfach-Dokumentupload */
.multi-upload{
  padding:16px;
  border:1px dashed rgba(17,24,39,.22);
  border-radius:14px;
  background:rgba(15,23,42,.025);
}
.multi-upload-title{font-weight:700;margin-bottom:4px}
.multi-upload p{margin:0 0 12px;font-size:13px;color:#6b7280;line-height:1.45}
#documentPicker{display:none}
.multi-upload-button{margin-bottom:10px}
.selected-files{display:grid;gap:7px;margin-top:4px}
.selected-file{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto 28px;
  gap:10px;
  align-items:center;
  padding:8px 10px;
  border-radius:9px;
  background:#fff;
  border:1px solid rgba(17,24,39,.08);
  font-size:13px;
}
.selected-file span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.selected-file small{color:#6b7280}
.selected-file button{
  border:0;background:transparent;cursor:pointer;
  font-size:20px;line-height:1;color:#6b7280;
}


/* v0.22.14 – Fehlerquote immer sichtbar, Hinweis erst ab 2 % */
.ov-rate-inline.rate-ok .ov-rate-inline-value{
  color:#147d64;
}

/* Dateiauswahl im Admin deutlich hervorheben */
.multi-upload-button{
  margin-bottom:10px;
  border:0 !important;
  color:#fff !important;
  font-weight:800 !important;
  background:linear-gradient(90deg,#7447f5 0%,#2bb6c8 100%) !important;
  box-shadow:0 8px 20px rgba(67,97,238,.22);
}
.multi-upload-button:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 24px rgba(67,97,238,.30);
}

.field-help{display:block;margin-top:5px;font-size:.78rem;color:#667085}.work-access-box,.work-access-edit{border:1px solid #e3e8ef;border-radius:12px;padding:10px;background:#fafbfd}.work-check{display:inline-flex!important;align-items:center;gap:6px;margin:4px 10px 4px 0!important}.work-check input{width:auto!important;margin:0!important}.structure-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px}.structure-grid.buildings{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.structure-tile{display:flex;flex-direction:column;gap:5px;padding:18px;border:1px solid #dfe6ee;border-radius:16px;background:#fff;text-decoration:none;color:#162033;box-shadow:0 4px 14px rgba(16,24,40,.05)}.structure-tile:hover{transform:translateY(-2px);border-color:#6d5dfc}.structure-tile span{font-size:.68rem;letter-spacing:.12em;font-weight:800;color:#7a8497}.structure-tile strong{font-size:1.2rem}.structure-subhead{display:flex;justify-content:space-between;align-items:center;margin:20px 0 10px}

/* v0.22.18 – hierarchical OV drill-down */
.structure-grid.buildings{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));}


/* v0.22.20 – dynamische Hierarchie */
.dynamic-structure-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.structure-tile.dynamic-depth{transition:transform .15s ease,box-shadow .15s ease,background .15s ease}
.structure-tile.dynamic-depth:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(34,51,105,.10)}
.structure-tile.depth-0{background:linear-gradient(135deg,rgba(92,104,255,.065),rgba(69,196,210,.035))}
.structure-tile.depth-1{background:linear-gradient(135deg,rgba(92,104,255,.095),rgba(69,196,210,.05))}
.structure-tile.depth-2{background:linear-gradient(135deg,rgba(92,104,255,.12),rgba(69,196,210,.06))}
.structure-tile.depth-3{background:linear-gradient(135deg,rgba(92,104,255,.145),rgba(69,196,210,.075))}
.structure-tile.depth-4,.structure-tile.depth-5{background:linear-gradient(135deg,rgba(92,104,255,.17),rgba(69,196,210,.09))}
.structure-tile.unassigned{background:rgba(120,130,150,.06)}
.structure-breadcrumb{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0 0 16px;font-size:13px}
.structure-breadcrumb a{font-weight:800;text-decoration:none}
.pending-file-note{padding:10px 12px;border-radius:12px;background:rgba(57,181,142,.09);border:1px solid rgba(57,181,142,.20);font-size:13px}

/* v0.22.20 – kompakte Kundenverwaltung */
.customer-list-head{align-items:end}
.customer-search-box{width:min(420px,100%)}
.customer-admin-grid.compact-grid{grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:12px}
.customer-admin-card.compact{min-height:0;padding:14px 16px}
.customer-admin-card.compact .customer-admin-head{align-items:center}
.customer-admin-card.compact h3{margin:3px 0 2px;font-size:16px}
.customer-admin-card.compact .secondary{padding:8px 11px}
.customer-admin-card[hidden]{display:none!important}


/* v0.22.26 – kompakte Werk/Gebäude-Navigation */
.dynamic-structure-grid{
  grid-template-columns:repeat(auto-fit,minmax(190px,280px));
  justify-content:start;
  gap:14px;
}
.compact-hierarchy-tile{
  position:relative;
  min-height:94px;
  padding:15px 18px !important;
  border-radius:18px;
  overflow:visible;
}
.compact-hierarchy-tile strong{font-size:18px}
.compact-hierarchy-tile small{margin-top:4px}
.hierarchy-parent{
  margin-bottom:24px;
  background:linear-gradient(135deg,rgba(91,74,244,.095),rgba(47,187,201,.055)) !important;
}
.hierarchy-terminal{
  background:linear-gradient(135deg,rgba(47,187,201,.075),rgba(91,74,244,.04)) !important;
}
.hierarchy-arrow{
  position:absolute;
  left:50%;
  bottom:-29px;
  width:30px;
  height:30px;
  margin-left:-15px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#fff;
  border:1px solid rgba(76,91,180,.17);
  box-shadow:0 6px 16px rgba(36,48,94,.10);
  font-size:18px;
  font-weight:900;
  line-height:1;
  animation:hierarchyArrowFloat 1.8s ease-in-out infinite;
  pointer-events:none;
}
@keyframes hierarchyArrowFloat{
  0%,100%{transform:translateY(0);opacity:.72}
  50%{transform:translateY(4px);opacity:1}
}

/* große Register beim Filtern entlasten */
.register-row{contain:layout style}
.register-table tbody{contain:layout style}

/* v0.22.32 – OV Lebensakte */
.history-title p{margin:6px 0 0;color:var(--muted,#6f798a)}
.history-entry{background:#fff;border:1px solid rgba(42,55,97,.10);border-radius:15px;margin:10px 0;overflow:hidden;box-shadow:0 5px 18px rgba(38,51,88,.045)}
.history-entry>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 18px;user-select:none}
.history-entry>summary::-webkit-details-marker{display:none}
.history-entry>summary:hover{background:rgba(63,81,181,.025)}
.history-summary-main{display:flex;align-items:center;gap:16px;min-width:0}
.history-date{font-size:16px;font-weight:800;color:#172033;white-space:nowrap}
.history-summary-text{font-size:13px;color:#778093;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.history-summary-side{display:flex;align-items:center;gap:12px}
.history-chevron{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:#f4f6fb;font-weight:900;transition:transform .18s ease}
.history-entry[open] .history-chevron{transform:rotate(180deg)}
.history-entry-body{border-top:1px solid rgba(42,55,97,.08);padding:17px 18px 19px;animation:historyOpen .16s ease-out}
@keyframes historyOpen{from{opacity:.25;transform:translateY(-3px)}to{opacity:1;transform:translateY(0)}}
.history-defect-block{margin-top:14px;padding-top:13px;border-top:1px solid rgba(42,55,97,.08)}
.history-defect-block ul{margin:8px 0 0}
@media(max-width:720px){.history-entry>summary{align-items:flex-start}.history-summary-main{display:block}.history-summary-text{display:block;margin-top:5px;white-space:normal}}

/* Prüfcenter Integration Release 1 */
.upload-queue-card{margin-bottom:18px}.upload-card-head{display:flex;justify-content:space-between;gap:18px}.upload-card-head h2{margin:6px 0}.upload-status,.processed-badge{display:inline-flex;padding:7px 11px;border-radius:999px;background:#eef3fb;font-size:12px;font-weight:700;white-space:nowrap}.notice.compact{margin:12px 0;padding:11px 13px}@media(max-width:760px){.upload-card-head{display:block}.upload-status{margin-top:8px}}

/* v0.23.4: kompaktere Kacheln ausschließlich im internen Admin-Dashboard */
.admin-launch-grid{gap:12px}
.admin-launch-grid .admin-launch-card{
  gap:12px;
  padding:14px 16px;
  border-radius:18px;
  min-height:88px;
  box-shadow:0 8px 22px rgba(41,48,84,.05);
}
.admin-launch-grid .admin-launch-card:nth-child(even){
  background:linear-gradient(135deg,#f7f9ff,#f4f7fc);
}
.admin-launch-grid .admin-launch-card .launch-icon{
  width:40px;
  height:40px;
  border-radius:12px;
  font-size:11px;
}
.admin-launch-grid .admin-launch-card h2{
  margin:0 0 3px;
  font-size:17px;
  line-height:1.2;
}
.admin-launch-grid .admin-launch-card p{
  font-size:12.5px;
  line-height:1.35;
}
.admin-launch-grid .admin-launch-card>b{
  font-size:13px;
}
@media(max-width:760px){
  .admin-launch-grid .admin-launch-card{padding:13px 14px;min-height:0}
}


/* v0.23.5 – offene Techniker-Uploads auf Admin-Startseite */
.admin-upload-alert{
  margin:18px 0 22px;
  padding:18px;
  border:1px solid rgba(197,121,20,.22);
  border-radius:18px;
  background:linear-gradient(135deg,rgba(255,247,225,.98),rgba(255,252,244,.98));
  box-shadow:0 8px 26px rgba(69,51,19,.06);
}
.admin-upload-alert-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:10px;
}
.admin-upload-alert-head h2{margin:2px 0 4px}
.admin-upload-alert-head p{margin:0;color:#6f624c}
.admin-upload-alert-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:11px 12px;
  margin-top:8px;
  border-radius:12px;
  background:rgba(255,255,255,.8);
  border:1px solid rgba(197,121,20,.12);
  text-decoration:none;
  color:inherit;
}
.admin-upload-alert-row span{display:flex;flex-direction:column;gap:3px;min-width:0}
.admin-upload-alert-row small{color:#776f63;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.admin-upload-alert-row strong{white-space:nowrap}
.admin-upload-alert-more{padding:9px 12px 0;color:#756b5b;font-size:13px}
@media(max-width:760px){
  .admin-upload-alert-head{align-items:flex-start;flex-direction:column}
  .admin-upload-alert-row{align-items:flex-start}
}

/* v0.23.10 - getrennte parallele Login-Kontexte */
.login-context-links{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:0 0 20px;padding:5px;border-radius:12px;background:#f2f4f8}
.login-context-links a{padding:9px 8px;border-radius:9px;text-align:center;text-decoration:none;color:#667085;font-size:13px;font-weight:700}
.login-context-links a.active{background:#fff;color:#172033;box-shadow:0 2px 8px rgba(32,43,69,.08)}

/* v0.23.12 - Test-/Importdaten Reset */
.danger-zone{border:1px solid rgba(185,28,28,.22);background:linear-gradient(135deg,#fffafa,#fff)}
.danger-zone h2{color:#991b1b}
.danger-button{border:0;border-radius:11px;padding:11px 16px;background:#b42318;color:#fff;font-weight:800;cursor:pointer}
.danger-button:hover{filter:brightness(.96)}

/* v0.23.16 - customer mismatch warning */
.customer-mismatch-warning{
  background:#fff1f2 !important;
  border:1px solid #dc2626 !important;
  color:#991b1b !important;
  font-weight:650;
  box-shadow:0 8px 24px rgba(153,27,27,.08);
}
.customer-mismatch-warning b{color:#b91c1c}

.test-report-generator{margin-top:16px;padding:16px 18px;border:1px dashed rgba(37,99,235,.35);border-radius:14px;background:rgba(239,246,255,.7);display:flex;align-items:center;justify-content:space-between;gap:18px}.test-report-generator strong{display:block;margin-bottom:4px}.test-report-generator span{display:block;color:#64748b;font-size:.92rem}.test-report-generator form{margin:0;flex:0 0 auto}

.test-document-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.test-document-actions form{margin:0}

/* v0.23.25 - technician upload statuses/comments */
.upload-status.status-pending{
  background:#fff3e0;color:#b85c00;border:1px solid #f2b66d;
}
.upload-status.status-processed{
  background:#e9f8ee;color:#187a3d;border:1px solid #8fd1a5;
}
.technician-comment{
  margin:10px 0 12px;padding:10px 12px;border-radius:10px;
  background:#fff8e8;border:1px solid #f0d28a;color:#6b4b00;
}
.technician-comment b{color:#5a3e00}

/* v0.23.28 - technician upload status as plain colored text */
.upload-status,
.upload-status.status-pending,
.upload-status.status-processed{
  display:inline !important;
  padding:0 !important;
  margin:0 !important;
  min-width:0 !important;
  width:auto !important;
  height:auto !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  line-height:normal !important;
}
.upload-status.status-pending{
  color:#c66700 !important;
  font-weight:700;
}
.upload-status.status-processed{
  color:#16803c !important;
  font-weight:700;
}


/* v0.23.36: visible upload / processing state */
.upload-working{display:none;align-items:center;gap:12px;margin-top:12px;padding:13px 14px;border:1px solid rgba(20,84,145,.18);border-radius:12px;background:rgba(20,84,145,.06)}
.upload-working.is-visible{display:flex}
.upload-working div{display:flex;flex-direction:column;gap:2px}
.upload-working small{opacity:.72}
.upload-spinner{width:22px;height:22px;min-width:22px;border:3px solid rgba(30,80,130,.18);border-top-color:currentColor;border-radius:50%;animation:safetycenter-spin .8s linear infinite}
.upload-progress-form button[disabled]{opacity:.65;cursor:wait}
@keyframes safetycenter-spin{to{transform:rotate(360deg)}}

/* v0.23.38: completion feedback for asynchronous imports */
.job-completion-toast{position:fixed;right:24px;top:24px;z-index:9999;display:grid;grid-template-columns:1fr auto;gap:5px 16px;min-width:320px;max-width:560px;padding:18px 48px 18px 20px;border-radius:14px;background:#fff;box-shadow:0 18px 55px rgba(16,35,70,.22);border:1px solid #dce5f1;transition:opacity .25s ease,transform .25s ease}.job-completion-toast b{font-size:16px}.job-completion-toast span{grid-column:1/3;font-size:14px;line-height:1.45;color:#4c5b70}.job-completion-toast.success{border-left:5px solid #198754}.job-completion-toast.error{border-left:5px solid #c93434}.job-completion-toast.hide{opacity:0;transform:translateY(-10px);pointer-events:none}.job-toast-close{position:absolute;right:10px;top:8px;border:0;background:transparent;font-size:24px;line-height:1;color:#68778d;cursor:pointer}@media(max-width:700px){.job-completion-toast{left:14px;right:14px;top:14px;min-width:0;max-width:none}}


/* v0.23.39 – dauerhafte Rueckmeldung nach Hintergrundverarbeitung */
.job-completion-notice{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin:0 0 18px;padding:16px 18px;border-radius:14px;background:#fff;border:1px solid #dce5f1;box-shadow:0 8px 24px rgba(16,35,70,.08)}
.job-completion-notice>div{display:flex;flex-direction:column;gap:4px}.job-completion-notice b{font-size:16px}.job-completion-notice span{font-size:14px;line-height:1.5;color:#4c5b70}.job-completion-notice.success{border-left:5px solid #198754;background:#f5fbf7}.job-completion-notice.error{border-left:5px solid #c93434;background:#fff7f7}.job-notice-close{flex:0 0 auto;text-decoration:none;color:#68778d;font-size:24px;line-height:1;padding:0 2px}.job-notice-close:hover{color:#172033}

/* SafetyCenter One v0.23.45 · kompakte OF-Kundenansicht */
.of-wrapper{max-width:1600px}.of-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:18px 0}.of-kpis>div{background:#fff;border:1px solid #e6eaf1;border-radius:18px;padding:18px 20px;box-shadow:0 6px 24px rgba(18,38,63,.05)}.of-kpis span,.of-detail-grid span{display:block;color:#718096;font-size:.82rem}.of-kpis strong{display:block;font-size:1.75rem;margin:5px 0;color:#17233c}.of-kpis small{color:#8a95a7}.of-main-grid{display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:18px;align-items:start}.of-list-card{min-width:0}.of-filter{display:flex;gap:8px;flex-wrap:wrap}.of-filter input,.of-filter select{border:1px solid #dfe5ef;border-radius:10px;padding:10px 12px;background:#fff}.of-table td{vertical-align:middle}.of-object-link{display:flex;flex-direction:column;gap:2px;text-decoration:none;color:#17233c}.of-object-link span{font-size:.82rem;color:#6b7280}.of-status{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:6px 10px;font-weight:700;font-size:.78rem;white-space:nowrap}.of-status-good{background:#e9f9f0;color:#167647}.of-status-bad{background:#fff3e8;color:#b45309}.of-cat{text-align:center;font-weight:700}.of-doc-actions{display:flex;gap:6px;flex-wrap:wrap}.of-doc-actions .action,.of-doc-actions .secondary{padding:7px 9px;font-size:.78rem}.of-table tr.selected td{background:#f4f8ff}.of-detail-card{background:#fff;border:1px solid #e6eaf1;border-radius:18px;padding:20px;box-shadow:0 6px 24px rgba(18,38,63,.06);position:sticky;top:92px}.of-detail-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;border-bottom:1px solid #edf0f5;padding-bottom:15px}.of-detail-head h2{margin:2px 0;font-size:1.25rem}.of-detail-head p{margin:0;color:#687386}.of-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:0;margin:10px 0}.of-detail-grid>div{padding:11px 4px;border-bottom:1px solid #f0f2f6}.of-detail-grid b{display:block;margin-top:3px;color:#202b3d}.of-defects{margin-top:14px}.of-defects h3{font-size:1rem}.of-defects ul{padding-left:0;list-style:none;display:flex;flex-direction:column;gap:9px}.of-defects li{display:flex;gap:8px;align-items:flex-start;color:#39465a;font-size:.9rem}.of-cat-badge{flex:0 0 auto;background:#eef3ff;color:#4255a5;border-radius:999px;padding:3px 7px;font-size:.7rem;font-weight:800}.of-report-button{display:block;text-align:center;margin-top:16px}.of-info-note{margin:18px 0;background:#eef7ff;border:1px solid #d7eaff;border-radius:14px;padding:14px 16px;display:flex;gap:12px;align-items:flex-start}.of-info-note b{white-space:nowrap;color:#2557a7}.of-info-note span{color:#55657a}.upload-progress-box{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:12px;background:#eef7ff;border:1px solid #cfe7ff}.upload-progress-box[hidden]{display:none}.upload-progress-box small{display:block;color:#62758d;margin-top:2px}.upload-spinner{width:22px;height:22px;border:3px solid #d6e8ff;border-top-color:#3478e5;border-radius:50%;animation:sc-spin .8s linear infinite}@keyframes sc-spin{to{transform:rotate(360deg)}}
@media(max-width:1100px){.of-main-grid{grid-template-columns:1fr}.of-detail-card{position:static}.of-kpis{grid-template-columns:repeat(2,1fr)}}@media(max-width:680px){.of-kpis{grid-template-columns:1fr}.of-info-note{flex-direction:column}.of-detail-grid{grid-template-columns:1fr}}
/* v0.23.51 granular customer data management */
.inline-delete-form{display:inline-flex;margin:0}.compact-danger{padding:8px 11px;border-radius:9px;font-size:13px}.danger-link{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border-radius:10px;border:1px solid #efb4b4;background:#fff5f5;color:#a51d1d;font-weight:800;text-decoration:none}.danger-link:hover{background:#ffe8e8}

/* v0.23.55 – Datenschutzbestätigung bei Kundenregistrierung */
.consent-check{display:flex!important;align-items:flex-start;gap:10px;padding:12px 14px;border:1px solid #d9dee7;border-radius:10px;background:#f8fafc;font-weight:500;line-height:1.35}
.consent-check input[type="checkbox"]{width:18px;height:18px;margin-top:1px;flex:0 0 auto}
.consent-check span{display:block}
.consent-check a{text-decoration:underline}

/* v0.23.64 – modernes Kunden-Onboarding beim ersten Login */
.welcome-body{margin:0;min-height:100vh;background:linear-gradient(145deg,#f5f8fc 0%,#eef3f9 48%,#f8fafc 100%);color:#17233c}
.welcome-shell{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:38px 20px;box-sizing:border-box}
.welcome-panel{width:min(980px,100%);background:#fff;border:1px solid #e2e8f0;border-radius:26px;padding:34px;box-shadow:0 24px 70px rgba(18,38,63,.12)}
.welcome-brand{display:flex;align-items:center;gap:13px;padding-bottom:22px;border-bottom:1px solid #edf1f5}
.welcome-brand img{width:48px;height:48px;object-fit:contain;border-radius:11px;background:#fff}
.welcome-brand div{display:flex;flex-direction:column;line-height:1.15}.welcome-brand span{font-size:.76rem;letter-spacing:.08em;text-transform:uppercase;color:#738197;font-weight:800}.welcome-brand strong{font-size:1.14rem;color:#17233c}
.welcome-intro{text-align:center;max-width:760px;margin:30px auto 26px}.welcome-intro h1{font-size:clamp(1.8rem,4vw,2.55rem);line-height:1.12;margin:7px 0 12px;color:#17233c}.welcome-intro p{font-size:1.02rem;line-height:1.6;color:#5d6b7f;margin:0}
.welcome-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:24px 0}
.welcome-feature{display:flex;gap:14px;align-items:flex-start;padding:18px;border:1px solid #e7ecf3;border-radius:17px;background:#fbfcfe;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.welcome-feature:hover{transform:translateY(-2px);box-shadow:0 8px 26px rgba(31,60,93,.08);border-color:#d8e3f0}
.welcome-icon{width:38px;height:38px;flex:0 0 38px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:#eef4fb;color:#245d97;font-size:.76rem;font-weight:900;letter-spacing:.03em}.welcome-feature h2{font-size:1rem;margin:1px 0 5px;color:#17233c}.welcome-feature p{margin:0;color:#66758a;font-size:.9rem;line-height:1.48}
.welcome-login-note{margin:20px 0 22px;padding:15px 18px;border-radius:15px;background:#f1f6fb;border:1px solid #dce7f2;display:grid;grid-template-columns:auto 1fr;gap:3px 14px;align-items:center}.welcome-login-note span{font-size:.78rem;color:#6a788c;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.welcome-login-note strong{font-size:.96rem;color:#1f5d95;word-break:break-all}.welcome-login-note small{grid-column:2;color:#718096}
.welcome-action{text-align:center;margin:0}.welcome-start{min-width:260px;padding:13px 24px;font-size:1rem}.welcome-once{text-align:center;margin:12px 0 0;color:#8a96a8;font-size:.8rem}
@media(max-width:720px){.welcome-shell{padding:18px 12px}.welcome-panel{padding:23px 17px;border-radius:20px}.welcome-grid{grid-template-columns:1fr}.welcome-intro{margin-top:24px}.welcome-login-note{grid-template-columns:1fr}.welcome-login-note small{grid-column:1}.welcome-start{width:100%;min-width:0}}

/* v0.23.65 – Onboarding-Finish & echtes Kontaktformular */
.welcome-guide-note{margin:22px auto 10px;max-width:820px;display:flex;gap:16px;align-items:flex-start;padding:16px 18px;border:1px solid #cfe0f3;background:#f2f7fd;border-radius:16px;color:#17233c}
.welcome-guide-badge{flex:0 0 auto;padding:7px 10px;border-radius:10px;background:#e4eefb;color:#245d97;font-size:.75rem;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.welcome-guide-note strong{display:block;font-size:.98rem;margin:1px 0 4px}.welcome-guide-note p{margin:0;color:#64748b;font-size:.88rem;line-height:1.45}
.welcome-intro{margin-top:22px}.welcome-intro h1{font-size:clamp(1.65rem,3.2vw,2.2rem)}
.welcome-brand img{width:54px;height:auto;max-height:46px;object-fit:contain;border-radius:0;background:transparent}
.contact-result{margin:12px 0}.contact-hint{display:block;margin-top:10px;color:#7a8799;line-height:1.4}
@media(max-width:720px){.welcome-guide-note{flex-direction:column;gap:10px}.welcome-guide-badge{align-self:flex-start}}


/* v0.23.67 – Admin-Dashboard nach Hauptbereichen gruppiert */
.admin-hub-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:4px}
.admin-hub-card{position:relative;display:flex;align-items:flex-start;gap:20px;min-height:185px;padding:28px;border:1px solid #e2e7f1;border-radius:24px;background:#fff;text-decoration:none;color:#17254d;box-shadow:0 12px 32px rgba(41,48,84,.055);overflow:hidden;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
.admin-hub-card:after{content:"";position:absolute;inset:auto -55px -70px auto;width:180px;height:180px;border-radius:50%;background:rgba(63,99,205,.055);pointer-events:none}
.admin-hub-card:hover{transform:translateY(-3px);border-color:#c9d4ed;box-shadow:0 18px 42px rgba(41,48,84,.095)}
.admin-hub-icon{flex:0 0 58px;width:58px;height:58px;display:grid;place-items:center;border-radius:17px;background:linear-gradient(135deg,#eef3ff,#f1ecff);font-size:14px;font-weight:900;color:#2452b9;letter-spacing:.03em}
.admin-hub-copy{position:relative;z-index:1}
.admin-hub-copy .eyebrow{margin-bottom:8px;font-size:11px}
.admin-hub-copy h2{margin:0 0 8px;font-size:23px;line-height:1.18}
.admin-hub-copy p{margin:0 0 18px;max-width:560px;color:#68748b;line-height:1.5}
.admin-hub-copy span{display:inline-flex;color:#2856bd;font-weight:800;font-size:13px}
.admin-section-hero{margin-bottom:22px}
.admin-section-launch-grid{margin-top:0;grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:1100px){.admin-hub-grid,.admin-section-launch-grid{grid-template-columns:1fr}.admin-hub-card{min-height:150px}}
@media(max-width:760px){.admin-hub-card{padding:20px;gap:14px;min-height:0}.admin-hub-icon{flex-basis:46px;width:46px;height:46px;border-radius:14px}.admin-hub-copy h2{font-size:19px}.admin-hub-copy p{font-size:13px}}

/* v0.23.69 – OF: Mängelkategorien, klickbare Zeilen */
.of-table .of-head-group th { vertical-align: middle; }
.of-table .of-cat-group {
  text-align: center;
  letter-spacing: .02em;
  color: #44516a;
  background: #f7f9fc;
  border-bottom: 0;
}
.of-table .of-head-categories th { text-align: center; padding-top: 7px; padding-bottom: 7px; }
.of-table .of-cat-head-1 { background: #fde7e7; color: #a61b1b; }
.of-table .of-cat-head-2 { background: #fff3cf; color: #8a5b00; }
.of-table .of-cat-head-3 { background: #e7f7ed; color: #166534; }
.of-table td.of-cat { text-align: center; font-weight: 800; }
.of-table td.of-cat-1 { background: #fff0f0; color: #9f1d1d; }
.of-table td.of-cat-2 { background: #fff8df; color: #7a5100; }
.of-table td.of-cat-3 { background: #edf9f1; color: #176536; }
.of-table tr.selected td.of-cat-1 { background: #f9dddd; }
.of-table tr.selected td.of-cat-2 { background: #f9edc4; }
.of-table tr.selected td.of-cat-3 { background: #dcf1e4; }
.of-click-row { cursor: pointer; }
.of-click-row:hover td:not(.of-cat) { background-color: #f6f9ff; }
.of-click-row:focus { outline: 2px solid #4f46e5; outline-offset: -2px; }
.of-doc-cell { cursor: default; }


/* v0.23.71 – ruhige Mängelkategorien + OV-Score nur im OV-Bereich */
.of-table .of-cat-head-1,
.of-table .of-cat-head-2,
.of-table .of-cat-head-3 { background: transparent !important; }
.of-table .of-cat-head-1 { color:#a61b1b; }
.of-table .of-cat-head-2 { color:#8a5b00; }
.of-table .of-cat-head-3 { color:#166534; }
.of-table td.of-cat,
.of-table tr.selected td.of-cat { background: transparent !important; }
.of-table td.of-cat-zero { color:#17233c !important; font-weight:700; }
.of-table td.of-cat-value { font-weight:900; }
.of-table td.of-cat-1.of-cat-value { color:#b42318 !important; }
.of-table td.of-cat-2.of-cat-value { color:#b7791f !important; }
.of-table td.of-cat-3.of-cat-value { color:#167647 !important; }
.of-table tr.selected td { background:#f4f8ff; }
.dashboard-right-contact-only { align-content:start; }
.dashboard-right-contact-only .contact-card { min-height:0; }
.ov-score-section { display:flex; justify-content:flex-end; margin:18px 0; }
.ov-score-card { width:min(100%,360px); min-height:0; padding:22px; }
.ov-score-card .ring { margin-top:0; }
@media(max-width:900px){.ov-score-section{justify-content:stretch}.ov-score-card{width:100%}}

/* v0.23.73 – Status nach Prüfbereich: saubere Dashboard-Karte */
.dashboard-right-status {
  align-content: start;
  display: grid;
  gap: 18px;
}
.dashboard-area-status-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 14px 36px rgba(41,48,84,.07);
  overflow: hidden;
}
.dashboard-area-status-card .eyebrow {
  margin-bottom: 6px;
}
.dashboard-area-status-card h2 {
  margin: 0 0 7px;
  font-size: 23px;
  line-height: 1.18;
}
.dashboard-area-status-card > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 18px;
}
.dashboard-area-status-list {
  display: grid;
  gap: 10px;
}
.dashboard-area-status-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) 28px;
  align-items: center;
  gap: 14px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 14px 14px 16px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
.dashboard-area-status-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  bottom: 11px;
  width: 4px;
  border-radius: 0 6px 6px 0;
  background: #8b95a5;
}
.dashboard-area-status-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 22px rgba(41,48,84,.09);
  border-color: #cfd6e2;
  background: #fbfcff;
}
.dashboard-area-status-row > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.dashboard-area-status-row span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .01em;
  color: #263047;
}
.dashboard-area-status-row strong {
  display: block;
  font-size: 17px;
  line-height: 1.25;
  color: #111827;
}
.dashboard-area-status-row small {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}
.dashboard-area-status-row > b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f2f5f9;
  color: #667085;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}
.dashboard-area-status-row.status-area-ov::before { background: #5d6bd8; }
.dashboard-area-status-row.status-area-ma::before { background: #2e9bb7; }
.dashboard-area-status-row.status-area-of::before { background: #2f80d0; }
.dashboard-area-status-row.status-area-generic::before { background: #8b95a5; }
@media (max-width: 1200px) {
  .dashboard-right-status { grid-template-columns: 1fr 1fr; }
  .dashboard-area-status-card,
  .dashboard-right-status .contact-card { min-height: 0; }
}
@media (max-width: 850px) {
  .dashboard-right-status { grid-template-columns: 1fr; }
}

/* v0.23.74 — Dashboard auf zwei klare Hauptspalten reduziert */
.dashboard-top.dashboard-top-clean{
  grid-template-columns:minmax(0,1fr) 360px;
  gap:26px;
  align-items:start;
}
.dashboard-top-clean .dashboard-center,
.dashboard-top-clean .dashboard-right{
  min-width:0;
}
.dashboard-top-clean .dashboard-services{
  margin-top:2px;
}
.dashboard-top-clean .compact-service-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.dashboard-nav-tile{
  min-height:0 !important;
  padding:16px 18px !important;
}
.dashboard-nav-tile .service-head{
  width:100%;
}
.dashboard-nav-tile .service-head > div:nth-child(2){
  flex:1;
  min-width:0;
}
.dashboard-nav-tile .service-head p{
  margin:2px 0 0;
  color:var(--muted);
  font-size:12px;
}
.dashboard-nav-arrow{
  width:34px;
  height:34px;
  border-radius:50%;
  display:grid;
  place-items:center;
  margin-left:auto;
  background:#f3f5f9;
  color:#667085;
  font-size:22px;
  font-weight:700;
  flex:0 0 auto;
}
.dashboard-nav-tile:hover .dashboard-nav-arrow{
  background:#eceffd;
  color:#4f5fd4;
}
@media(max-width:1100px){
  .dashboard-top.dashboard-top-clean{grid-template-columns:1fr;}
  .dashboard-top-clean .dashboard-right{grid-template-columns:1fr 1fr;}
}
@media(max-width:760px){
  .dashboard-top-clean .dashboard-right{grid-template-columns:1fr;}
  .dashboard-top-clean .compact-service-grid{grid-template-columns:1fr;}
}


/* v0.23.75 - dashboard alignment, OV compact layout, direct document actions, CSV customer import */
.dashboard-grid-v2{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:20px 26px;align-items:start;margin-top:28px}
.dashboard-hero{grid-area:hero;margin:0;min-height:0;height:100%}
.dashboard-status-slot{grid-area:status;align-self:stretch}.dashboard-status-slot>.dashboard-area-status-card{height:100%;box-sizing:border-box;margin:0}
.dashboard-next{grid-area:next;margin:0}.dashboard-contact-slot{grid-area:contact}.dashboard-contact-slot>.contact-card{margin:0}
.dashboard-services{grid-area:services;margin:0}.dashboard-grid-v2 .next-inspections .empty-state{padding:18px 10px}.dashboard-grid-v2 .next-inspections{min-height:0}
.area-title-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.ov-summary-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px;align-items:stretch;margin:18px 0 22px}.ov-summary-grid .area-metrics{margin:0;height:100%}.ov-summary-grid .ov-score-section{margin:0;justify-content:stretch}.ov-summary-grid .ov-score-card{width:100%;height:100%;min-height:0;padding:20px;box-sizing:border-box}.ov-summary-grid .ring{width:150px;height:150px}.ov-summary-grid .ring-inner{inset:14px}.ov-summary-grid .score-title{margin-top:10px}
.register-doc-actions{display:flex;align-items:center;gap:7px;white-space:nowrap}.mini-doc-btn{display:inline-flex;align-items:center;justify-content:center;padding:7px 10px;border-radius:10px;border:1px solid #dbe2ec;background:#fff;color:#28354a;text-decoration:none;font-size:12px;font-weight:750}.mini-doc-btn:hover{background:#f2f6ff;border-color:#b9c8e7}.secondary-doc{background:#f7f3ff;color:#5f3fd7}.register-doc-actions .row-arrow{margin-left:3px}
.csv-import-card{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:22px}.csv-import-card h2{margin:0 0 5px}.csv-import-card p{margin:0;color:var(--muted)}.csv-import-form{display:flex;gap:10px;align-items:center;min-width:430px}.csv-import-form input[type=file]{min-width:260px}.customer-master-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
@media(max-width:1100px){.dashboard-grid-v2{grid-template-columns:1fr}.dashboard-status-slot>.dashboard-area-status-card{height:auto}.ov-summary-grid{grid-template-columns:1fr}.ov-summary-grid .ov-score-card{height:auto}.csv-import-card{display:block}.csv-import-form{min-width:0;margin-top:16px;flex-wrap:wrap}}
@media(max-width:720px){.customer-master-grid{grid-template-columns:1fr}.area-title-actions{justify-content:flex-start}.register-table{min-width:1120px}}

/* v0.23.76 - OV compact score + reliable direct document/excel actions */
.ov-summary-grid{grid-template-columns:minmax(0,1fr) 230px;gap:18px;align-items:stretch}
.ov-summary-grid .area-metrics{gap:14px;margin-top:0}
.ov-summary-grid .area-metrics .metric{padding:18px 20px;min-height:112px;box-sizing:border-box}
.ov-summary-grid .area-metrics .metric .value{font-size:30px;margin:6px 0 2px}
.ov-summary-grid .ov-score-card{padding:14px 14px 12px;display:flex;flex-direction:column;align-items:center;justify-content:center}
.ov-summary-grid .ring{width:104px;height:104px}
.ov-summary-grid .ring:before{inset:11px}
.ov-summary-grid .ring-inner strong{font-size:31px;line-height:1}
.ov-summary-grid .ring-inner span{font-size:10px}
.ov-summary-grid .score-title{font-size:15px;margin-top:7px}
.ov-summary-grid .score-note{font-size:11px;line-height:1.25;margin-top:3px;max-width:190px}
.register-doc-actions{gap:8px;min-width:255px}
.doc-action-pair{display:inline-flex;align-items:stretch}
.doc-action-pair .mini-doc-btn{border-radius:10px 0 0 10px}
.mini-download-btn{display:inline-flex;align-items:center;justify-content:center;width:28px;border:1px solid #dbe2ec;border-left:0;border-radius:0 10px 10px 0;background:#f7f9fc;color:#42526a;text-decoration:none;font-size:16px;font-weight:900}
.mini-download-btn:hover{background:#edf2f9}
.mini-no-doc{font-size:12px;white-space:nowrap}
.ov-excel-missing{display:inline-flex;align-items:center;padding:10px 12px;border:1px dashed #d5dbe5;border-radius:12px;color:#7b8494;font-size:12px;background:#fafbfc}
@media(max-width:1100px){.ov-summary-grid{grid-template-columns:1fr}.ov-summary-grid .ov-score-card{max-width:none}.register-doc-actions{min-width:230px}}

/* v0.23.80 - OV Safety Score value geometrically centered in donut */
.ov-summary-grid .ring{position:relative;display:block}
.ov-summary-grid .ring:before{z-index:0}
.ov-summary-grid .ring-inner{
  position:absolute;
  inset:0;
  z-index:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  transform:none;
  margin:0;
  padding:0;
}
.ov-summary-grid .ring-inner strong{
  display:block;
  margin:0;
  padding:0;
  line-height:1;
}
.ov-summary-grid .ring-inner span{
  display:block;
  margin:4px 0 0;
  padding:0;
  line-height:1;
}

/* v0.23.81 - compact invitation history */
.invite-status{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:700;background:#f1f4f8;color:#465366;white-space:nowrap}
.invite-registriert{background:#eaf7ef;color:#24733f}
.invite-e-mail-gesendet{background:#eaf2ff;color:#2e5f9e}
.invite-abgelaufen{background:#fff1ed;color:#a94a2f}
.invite-offen{background:#fff8e2;color:#8a6717}


/* v0.23.82 - structured thermography customer view */
.thermo-table .thermo-temp{font-variant-numeric:tabular-nums;white-space:nowrap}
.thermo-detail-card .of-detail-grid b{overflow-wrap:anywhere}
.thermo-findings p{margin:.45rem 0;line-height:1.5}
.thermo-detail-actions{margin-top:18px;display:flex;gap:10px;flex-wrap:wrap}
.of-status-neutral{background:#f2f4f7;color:#667085}
.dashboard-area-status-row.status-area-thermo::before{background:#20aebb}
@media (max-width:900px){.thermo-table{min-width:860px}}

/* v0.23.85 – Dashboard-Spalten unabhängig stapeln */
.dashboard-grid-v2{
  display:grid;
  grid-template-columns:minmax(0,1fr) 360px;
  gap:20px 26px;
  align-items:start;
  margin-top:28px;
}
.dashboard-left-stack,.dashboard-right-stack{display:grid;gap:20px;align-content:start;min-width:0}
.dashboard-left-stack .dashboard-services{margin-top:0}
.dashboard-right-stack .dashboard-status-slot,.dashboard-right-stack .dashboard-contact-slot{min-width:0}
.status-area-lade{--status-accent:#2aa9bd}
.lade-table td{vertical-align:middle}
.lade-detail-card .of-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:1100px){
  .dashboard-grid-v2{grid-template-columns:1fr}
  .dashboard-left-stack,.dashboard-right-stack{display:contents}
  .dashboard-hero{order:1}.dashboard-status-slot{order:2}.dashboard-next{order:3}.dashboard-contact-slot{order:4}.dashboard-services{order:5}
}
.dashboard-left-stack .dashboard-hero,.dashboard-left-stack .dashboard-next,.dashboard-left-stack .dashboard-services,.dashboard-right-stack .dashboard-status-slot,.dashboard-right-stack .dashboard-contact-slot{grid-area:auto;height:auto}
.dashboard-right-stack .dashboard-status-slot>.dashboard-area-status-card{height:auto}


/* v0.23.86 – strukturierte Tore */
.status-area-tore{--status-accent:#7b5bc7}
.gate-table td{vertical-align:middle}
.gate-detail-card .of-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.gate-detail-card .of-defects p{white-space:normal;line-height:1.5}
@media(max-width:900px){.gate-table{min-width:960px}}

/* v0.23.88 – Live-Filter in „Prüfungen nach Kunden“ */
.inspection-customer-filter{margin-bottom:18px}
.inspection-filter-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.inspection-filter-row input{flex:1 1 360px;min-width:240px;border:1px solid #d9e0ea;border-radius:12px;padding:12px 14px;font:inherit;background:#fff}
.inspection-filter-row .muted{margin-left:auto;white-space:nowrap}
@media(max-width:700px){
  .inspection-filter-row{align-items:stretch}
  .inspection-filter-row input,.inspection-filter-row .secondary{width:100%}
  .inspection-filter-row .muted{margin-left:0}
}

/* v0.23.89 – OV-Kundenzuordnung per Sicherheitsrückfrage */
.customer-assignment-confirm{margin:10px 0 4px}
.confirm-check{
  display:flex !important;
  gap:12px;
  align-items:flex-start;
  padding:14px 16px;
  border:1px solid #f1c98b;
  border-radius:12px;
  background:#fffaf2;
}
.confirm-check input{width:18px;height:18px;margin-top:2px;flex:0 0 auto}
.confirm-check span{display:block}
.confirm-check .field-help{display:block;margin-top:5px}

/* v0.23.90 – Standortfilter + Import-Dublettenschutz */
.of-filter select[name="location"]{min-width:190px}
.customer-assignment-confirm .status-pill{margin-top:6px}
@media(max-width:900px){
  .of-filter select[name="location"]{min-width:0}
}


/* v0.24.01 · Montageplanung Phase 1 */
.planning-enable-check{display:flex!important;gap:12px;align-items:flex-start;padding:14px 16px;border:1px solid #dfe5ef;border-radius:12px;background:#f8faff}
.planning-enable-check input{width:auto!important;margin-top:3px}
.planning-enable-check span{display:flex;flex-direction:column;gap:3px}
.planning-enable-check small{color:#6f798a;font-weight:400}
.planning-wrapper{max-width:1050px}
.planning-hero{display:flex;justify-content:space-between;align-items:flex-end;margin:22px 0 18px;padding:24px 26px;border:1px solid #dfe5ef;border-radius:18px;background:#fff}
.planning-hero h1{margin:5px 0 8px}
.planning-hero p{margin:0;color:#687386}
.planning-card{background:#fff;border:1px solid #dfe5ef;border-radius:18px;padding:25px;margin-bottom:16px}
.planning-area-head{display:flex;align-items:center;gap:14px;margin-bottom:22px}
.planning-area-head span{font-size:13px;color:#6b7587;font-weight:700}
.planning-area-head h2{margin:3px 0 0}
.planning-form-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.8fr);gap:18px;align-items:stretch}
.planning-form-grid label{display:flex;flex-direction:column;gap:7px;font-weight:700}
.planning-form-grid input{font-size:22px;padding:14px 16px;border:1px solid #cfd7e5;border-radius:11px}
.planning-form-grid small{font-weight:400;color:#6f798a}
.planning-calc{display:flex;flex-direction:column;justify-content:center;gap:7px;padding:18px;border-radius:13px;background:#f5f8fe;border:1px solid #e0e7f3}
.planning-calc span,.planning-result span{font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:#6d788b;font-weight:800}
.planning-calc strong{font-size:18px}
.planning-calc small{color:#6f798a}
.planning-result{margin-top:20px;padding:19px 20px;border-radius:14px;background:#edf5ff;border:1px solid #cfe1fb;display:flex;flex-direction:column;gap:5px}
.planning-result strong{font-size:30px;color:#1957d8}
.planning-result small{color:#526176}
.planning-result.empty{background:#f7f8fb;border-color:#e3e7ee}
.planning-result.empty strong{color:#8993a3}
.planning-info{padding:18px 20px;border:1px solid #e1e5ec;border-radius:14px;background:#fafbfc}
.planning-info p{margin:6px 0 0;color:#687386;line-height:1.55}
.planning-dashboard-tile{border-color:#cbdcf8}
.planning-icon{background:#e9f1ff;color:#1957d8}
@media(max-width:760px){.planning-form-grid{grid-template-columns:1fr}.planning-hero{padding:20px}.planning-card{padding:20px}}


/* v0.24.03 · Montageplanung Phase 2 */
.planning-area-select{display:flex;flex-direction:column;gap:7px;font-weight:700;margin-bottom:18px}
.planning-area-select select{padding:13px 14px;border:1px solid #cfd7e5;border-radius:11px;background:#fff;font-size:16px}
.planning-conditional[hidden]{display:none!important}
.planning-conditional{display:flex;flex-direction:column;gap:16px;margin-bottom:18px}
.planning-submit-row{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:20px;padding-top:18px;border-top:1px solid #e3e7ee}
.planning-submit-row div{display:flex;flex-direction:column;gap:4px}.planning-submit-row small{color:#687386}
.planning-card textarea{width:100%;padding:12px 14px;border:1px solid #cfd7e5;border-radius:11px;box-sizing:border-box}
.planning-history-card{background:#fff;border:1px solid #dfe5ef;border-radius:18px;padding:24px;margin-bottom:16px}
.planning-history-head h2{margin:4px 0 16px}
.planning-history-row{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:13px 0;border-top:1px solid #edf0f5}
.planning-history-row:first-of-type{border-top:0}
.planning-history-row div{display:flex;flex-direction:column;gap:3px}
.planning-history-row small{color:#6f798a}
.planning-history-row>span,.planning-status-pill{padding:6px 10px;border-radius:999px;background:#eef2f8;font-size:12px;font-weight:800}
.planning-status-approved>span,.planning-status-approved .planning-status-pill{background:#e8f7ee;color:#1f7a46}
.planning-status-rescheduled>span,.planning-status-rescheduled .planning-status-pill{background:#fff4dd;color:#8a5b00}
.planning-status-cancelled>span,.planning-status-cancelled .planning-status-pill{background:#fdebec;color:#a42c34}
.planning-admin-list{display:flex;flex-direction:column;gap:16px}
.planning-admin-card{background:#fff;border:1px solid #dfe5ef;border-radius:16px;padding:20px}
.planning-admin-card-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}
.planning-admin-card-head h2{margin:4px 0}.planning-admin-card-head p{margin:0;color:#687386}
.planning-admin-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0}
.planning-admin-facts div{padding:12px;border:1px solid #edf0f5;border-radius:10px;background:#fafbfc;display:flex;flex-direction:column;gap:4px}
.planning-admin-facts span{font-size:11px;text-transform:uppercase;color:#778295;font-weight:800}
.planning-admin-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;border-top:1px solid #edf0f5;padding-top:16px}
.planning-admin-actions form{margin:0}
.planning-reschedule-form{display:flex;gap:8px;align-items:flex-end;flex-wrap:wrap}
.planning-reschedule-form label{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:700}
.planning-reschedule-form input,.planning-cancel-form input{padding:9px 10px;border:1px solid #ccd5e3;border-radius:8px}
.planning-cancel-form{display:flex;gap:8px;align-items:center}
.planning-admin-decision{display:flex;flex-direction:column;gap:4px;border-top:1px solid #edf0f5;padding-top:14px}
.planning-customer-note{margin:0 0 14px;padding:12px 14px;border-radius:10px;background:#fff9eb;border:1px solid #f2dfae;color:#665320}
@media(max-width:760px){.planning-admin-facts{grid-template-columns:1fr 1fr}.planning-submit-row{flex-direction:column;align-items:stretch}}

/* v0.24.04 · übergeordnete Prüfstelle */
.planning-area-select input{padding:13px 14px;border:1px solid #cfd7e5;border-radius:11px;background:#fff;font-size:16px}
.planning-area-select small{font-weight:400;color:#6f798a}

/* v0.24.05 · interne Planungsbenachrichtigung */
.planning-admin-alert{border-color:#b9cff7}
.planning-admin-alert .admin-upload-alert-head{background:linear-gradient(180deg,#f4f8ff,#ffffff)}


/* SafetyCenter new inspection data */

.sc-new-row td {
    background: #eef6ff !important;
}

.sc-new-row:hover td {
    background: #e2f0ff !important;
}



.sc-new-summary {
    display: inline-block;
    margin-top: 6px;
    margin-bottom: 4px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e9f2ff;
    color: #1957d8;
    font-size: 12px;
    font-weight: 800;
}



/* SafetyCenter One - kompaktes NEU-Badge */
.sc-new-badge{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;

    width:auto !important;
    min-width:0 !important;
    max-width:max-content !important;

    height:auto !important;

    flex:0 0 auto !important;

    margin:0 0 0 7px !important;
    padding:3px 7px !important;

    border-radius:999px !important;

    background:#2460df !important;
    color:#fff !important;

    font-size:10px !important;
    line-height:12px !important;
    font-weight:900 !important;

    letter-spacing:0 !important;
    white-space:nowrap !important;

    vertical-align:middle !important;

    box-shadow:none !important;
}

/* NEU soll niemals als langer Balken dargestellt werden */
td .sc-new-badge,
strong .sc-new-badge,
.register-table .sc-new-badge,
.of-table .sc-new-badge,
.ma-table .sc-new-badge{
    width:auto !important;
    min-width:0 !important;
    max-width:max-content !important;
    flex-grow:0 !important;
    flex-shrink:0 !important;
}


/* Admin Hauptnavigation als Reiter – 19.08.2026 */
.admin-main-tabs{
  display:flex;
  align-items:flex-end;
  gap:5px;
  margin:0;
  padding:0 6px;
  border-bottom:1px solid #dfe5ec;
  overflow-x:auto;
}

.admin-main-tab{
  position:relative;
  flex:0 0 auto;
  margin-bottom:-1px;
  border:1px solid transparent;
  border-bottom:0;
  border-radius:9px 9px 0 0;
  background:#f4f6f8;
  color:#6b7280;
  padding:10px 18px 11px;
  font-size:12px;
  font-weight:800;
  text-decoration:none;
  white-space:nowrap;
  transition:.15s ease;
}

.admin-main-tab:hover{
  color:#374151;
  background:#eef1f5;
}

.admin-main-tab.active{
  color:#4f46c8;
  background:#fff;
  border-color:#dfe5ec;
  box-shadow:0 -3px 8px rgba(32,45,70,.04);
}

.admin-main-tab.active::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-1px;
  height:2px;
  background:#fff;
}

@media(max-width:760px){
  .admin-main-tabs{
    padding-bottom:0;
  }
}

/* Admin-Reiter ohne sichtbare Scrollleiste */
.admin-main-tabs{
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:none;
}

.admin-main-tabs::-webkit-scrollbar{
  display:none;
}

/* Neue Montageplanungsanfragen im Admin-Reiter */
.admin-tab-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-left:7px;
  padding:2px 7px;
  border-radius:999px;
  background:#d71920;
  color:#fff;
  font-size:10px;
  font-weight:900;
  line-height:1.4;
  vertical-align:middle;
}


.admin-mini-kpi.is-empty{
    opacity:.58;
    background:#f8f9fc;
}

/* SafetyCenter One - kompakte Bearbeitung bestätigter Montageplanungen */
.planning-manage-row{
    display:flex;
    align-items:center;
    gap:10px;
    margin-top:10px;
    flex-wrap:wrap;
}

.planning-manage-row > form{
    margin:0;
}

.planning-manage-row .danger,
.planning-manage-edit > summary{
    padding:7px 12px;
    font-size:13px;
    min-height:auto;
}

.planning-manage-edit > summary{
    cursor:pointer;
    display:inline-block;
    border:1px solid #d8deea;
    border-radius:8px;
    background:#fff;
    font-weight:700;
}

.planning-manage-edit[open]{
    width:100%;
}

.planning-manage-edit form{
    display:flex;
    align-items:flex-end;
    gap:10px;
    flex-wrap:wrap;
    margin-top:10px;
    padding:12px;
    border:1px solid #e2e7f0;
    border-radius:10px;
    background:#f8fafc;
}

.planning-manage-edit label{
    margin:0;
    min-width:150px;
}

.planning-manage-edit input{
    margin-top:4px;
}

.planning-manage-edit button{
    margin:0;
}


/* ==========================================================
   Montageplanung Admin – kompakte Darstellung
   ========================================================== */

.planning-admin-list{
    display:flex;
    flex-direction:column;
    gap:10px !important;
}

/* komplette Anfragekarte */
.planning-admin-list article{
    padding:14px 16px !important;
    border-radius:12px !important;
    margin:0 !important;
}

/* Kopfbereich */
.planning-admin-card-head{
    gap:12px !important;
    margin-bottom:10px !important;
}

.planning-admin-card-head .eyebrow{
    font-size:11px !important;
    margin-bottom:2px !important;
}

.planning-admin-card-head h2{
    font-size:19px !important;
    line-height:1.15 !important;
    margin:0 0 3px 0 !important;
}

.planning-admin-card-head p{
    font-size:13px !important;
    margin:0 !important;
}

/* Status oben rechts */
.planning-status-pill{
    font-size:11px !important;
    padding:5px 9px !important;
}

/* Faktenbereich */
.planning-admin-facts{
    display:grid !important;
    grid-template-columns:repeat(5,minmax(120px,1fr)) !important;
    gap:8px !important;
    margin:8px 0 !important;
}

.planning-admin-facts > div{
    padding:8px 10px !important;
    min-height:0 !important;
    border-radius:9px !important;
}

.planning-admin-facts span{
    display:block;
    font-size:10px !important;
    margin-bottom:2px !important;
}

.planning-admin-facts strong{
    font-size:13px !important;
    line-height:1.2 !important;
}

/* Kundenhinweis */
.planning-customer-note{
    padding:8px 10px !important;
    margin:8px 0 !important;
    font-size:12px !important;
}

/* Status-/Bestätigungszeile */
.planning-admin-decision{
    margin-top:8px !important;
    padding-top:8px !important;
    font-size:12px !important;
    gap:5px !important;
}

.planning-admin-decision strong{
    font-size:13px !important;
}

.planning-admin-decision span,
.planning-admin-decision small{
    font-size:12px !important;
}

/* Aktionen */
.planning-admin-actions,
.planning-manage-row{
    margin-top:8px !important;
    gap:8px !important;
}

.planning-admin-actions button,
.planning-manage-row button,
.planning-manage-edit > summary{
    padding:6px 10px !important;
    min-height:0 !important;
    font-size:12px !important;
    border-radius:7px !important;
}

/* Bearbeiten aufgeklappt */
.planning-manage-edit form{
    margin-top:8px !important;
    padding:8px !important;
    gap:8px !important;
}

.planning-manage-edit label{
    font-size:11px !important;
    min-width:135px !important;
}

.planning-manage-edit input{
    padding:6px 8px !important;
    font-size:12px !important;
}

/* Neue / noch nicht entschiedene Anfrage */
.planning-reschedule-form,
.planning-cancel-form{
    gap:8px !important;
}

.planning-reschedule-form label{
    font-size:11px !important;
}

.planning-reschedule-form input,
.planning-cancel-form input{
    padding:6px 8px !important;
    font-size:12px !important;
}

/* Hero oben ebenfalls etwas kompakter */
.admin-wrapper > .admin-hero{
    padding:18px 22px !important;
    margin-bottom:14px !important;
}

.admin-wrapper > .admin-hero h1{
    font-size:26px !important;
    margin:2px 0 4px !important;
}

.admin-wrapper > .admin-hero p{
    font-size:13px !important;
    margin:0 !important;
}

/* kleinere Displays */
@media (max-width:1100px){
    .planning-admin-facts{
        grid-template-columns:repeat(3,minmax(140px,1fr)) !important;
    }
}

@media (max-width:700px){
    .planning-admin-facts{
        grid-template-columns:1fr 1fr !important;
    }
}


/* ==========================================================
   Angebotsdetail
   ========================================================== */

.offer-detail-card{
    padding:18px !important;
}

.offer-detail-meta{
    display:grid;
    grid-template-columns:repeat(5,minmax(120px,1fr));
    gap:8px;
    margin-bottom:16px;
}

.offer-detail-meta > div{
    padding:9px 10px;
    border:1px solid #e2e7f0;
    border-radius:9px;
    background:#f8fafc;
}

.offer-detail-meta span{
    display:block;
    font-size:10px;
    opacity:.7;
    margin-bottom:2px;
}

.offer-detail-meta strong{
    font-size:13px;
}

.offer-table-scroll{
    overflow-x:auto;
}

.offer-edit-table{
    width:100%;
    border-collapse:collapse;
}

.offer-edit-table th{
    font-size:11px;
    text-align:left;
    padding:8px;
    white-space:nowrap;
}

.offer-edit-table td{
    padding:8px;
    vertical-align:top;
    font-size:12px;
}

.offer-pos{
    white-space:nowrap;
    font-weight:700;
}

.offer-item-description{
    margin-top:3px;
    font-size:11px;
    line-height:1.35;
    opacity:.72;
    max-width:640px;
}

.offer-number-input{
    width:90px !important;
    padding:6px !important;
}

.offer-price-input{
    width:100px !important;
    padding:6px !important;
}

.offer-option-check{
    display:flex;
    align-items:center;
    gap:5px;
    white-space:nowrap;
}

.offer-option-check input{
    width:auto !important;
    margin:0 !important;
}

.offer-line-total{
    white-space:nowrap;
    font-weight:700;
}

.offer-detail-footer{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
    margin-top:16px;
}

.offer-totals{
    width:300px;
}

.offer-totals > div{
    display:flex;
    justify-content:space-between;
    padding:6px 0;
    font-size:13px;
}

.offer-total-gross{
    border-top:2px solid currentColor;
    margin-top:4px;
    padding-top:9px !important;
    font-size:15px !important;
}

@media(max-width:1000px){
    .offer-detail-meta{
        grid-template-columns:repeat(2,1fr);
    }
}


/* ==========================================================
   Angebotsrabatt
   ========================================================== */

.offer-discount-box{
    margin:0 0 14px 0;
    padding:11px 13px;
    border:1px solid #dfe4ea;
    border-radius:9px;
    background:#f8fafc;
    max-width:520px;
}

.offer-discount-box label{
    display:block;
}

.offer-discount-box strong{
    display:block;
    font-size:13px;
    margin-bottom:6px;
}

.offer-discount-box small{
    display:block;
    margin-top:5px;
    font-size:11px;
    opacity:.7;
}

.offer-discount-input{
    display:flex;
    align-items:center;
    gap:6px;
}

.offer-discount-input input{
    width:90px !important;
    padding:6px 8px !important;
}

.offer-discount-input span{
    font-weight:700;
}

.offer-totals small{
    font-size:10px;
    opacity:.65;
}


/* SafetyCenter One - Angebotsrabatt */

.offer-discount-box{
    margin:0 0 14px 0;
    padding:11px 13px;
    max-width:520px;
    background:#f8fafc;
    border:1px solid #dfe4ea;
    border-radius:9px;
}

.offer-discount-box strong{
    display:block;
    margin-bottom:5px;
    font-size:13px;
}

.offer-discount-input{
    display:flex;
    align-items:center;
    gap:6px;
}

.offer-discount-input input{
    width:90px !important;
    padding:6px 8px !important;
}

.offer-discount-input span{
    font-weight:700;
}

.offer-discount-box small{
    display:block;
    margin-top:5px;
    opacity:.68;
    font-size:11px;
}


/* SafetyCenter One – Angebots-Preissteuerung */
.offer-discount-box{
    border:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    padding:0 !important;
    margin-top:10px !important;
    margin-bottom:14px !important;
}

.offer-discount-box input[type="number"]{
    max-width:110px;
}



/* ==========================================================
   ANGEBOTE – AUSFÜHRUNGSORT / PREISSTEUERUNG
   ========================================================== */

.offer-execution-card{
    margin-bottom:22px !important;
    padding:22px 24px !important;
}

.offer-execution-card .section-head{
    margin-bottom:16px;
}

.offer-execution-card .section-head h2{
    margin-bottom:4px;
}

.offer-execution-card .section-head p{
    margin:0;
}

.offer-execution-card > label{
    display:flex !important;
    align-items:center !important;
    gap:9px !important;
    margin:0 0 18px 0 !important;
    font-weight:600;
}

.offer-execution-card > label input[type="checkbox"]{
    width:auto !important;
    margin:0 !important;
}

#execution-detail-fields{
    display:grid;
    grid-template-columns:minmax(240px,1fr) minmax(240px,1fr);
    gap:14px 18px;
    max-width:850px;
}

#execution-detail-fields > label{
    margin:0 !important;
}

#execution-detail-fields > div{
    display:contents !important;
}

#execution-detail-fields input{
    width:100%;
    margin-top:5px;
}

#execution-detail-fields > label:last-child{
    max-width:300px;
}

.offer-execution-card .secondary{
    white-space:nowrap;
}


/* Preissteuerung */

.offer-markup-control{
    margin-top:12px;
    padding-top:12px;
    border-top:1px solid #eceef3;
    max-width:520px;
}

.offer-markup-control > label{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    margin:0;
}

.offer-markup-control > label > span{
    font-weight:700;
}

.offer-percent-input{
    display:flex;
    align-items:center;
    gap:7px;
    flex:0 0 auto;
}

.offer-percent-input input{
    width:90px !important;
    min-width:90px !important;
    margin:0 !important;
    text-align:right;
}

.offer-percent-input strong{
    font-size:14px;
}

.offer-markup-control small{
    display:block;
    margin-top:6px;
    color:#747986;
    line-height:1.35;
}


/* bisherigen Rabattblock bewusst ohne grauen Kasten */

.offer-discount-box,
.offer-title-discount,
.offer-discount{
    border:0 !important;
    box-shadow:none !important;
    background:transparent !important;
    padding:0 !important;
}


/* Mobile */

@media (max-width:760px){

    #execution-detail-fields{
        grid-template-columns:1fr;
    }

    .offer-markup-control > label{
        align-items:flex-start;
        flex-direction:column;
        gap:7px;
    }

}


/* ==========================================================
   ANGEBOT – Rabatt / Preisaufschlag klar trennen
   ========================================================== */

.offer-title-discount,
.offer-discount-box,
.offer-discount{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(220px,280px)) !important;
    gap:18px !important;
    align-items:start !important;
    max-width:600px !important;
    padding:0 !important;
    margin:14px 0 10px 0 !important;
    border:0 !important;
    background:transparent !important;
    box-shadow:none !important;
}

/* Rabatt-Feld */

.offer-title-discount > label,
.offer-discount-box > label,
.offer-discount > label{
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-start !important;
    gap:6px !important;
    margin:0 !important;
    font-weight:700 !important;
}

/* Zahlenfelder */

.offer-title-discount input[type="number"],
.offer-discount-box input[type="number"],
.offer-discount input[type="number"],
.offer-markup-control input[type="number"]{
    width:110px !important;
    height:42px !important;
    padding:8px 12px !important;
    font-size:16px !important;
    font-weight:700 !important;
    text-align:right !important;
    border:1px solid #cbd1dc !important;
    border-radius:8px !important;
    background:#fff !important;
}

/* Aufschlag */

.offer-markup-control{
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    max-width:none !important;
}

.offer-markup-control > label{
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-start !important;
    gap:6px !important;
    margin:0 !important;
}

.offer-markup-control > label > span{
    font-weight:700 !important;
}

.offer-percent-input{
    display:flex !important;
    align-items:center !important;
    gap:7px !important;
}

.offer-percent-input strong{
    font-size:15px !important;
}

.offer-markup-control small{
    margin-top:7px !important;
    max-width:260px !important;
    line-height:1.35 !important;
    color:#7a8190 !important;
}

/* Prozentzeichen beim Rabatt sauber neben dem Feld */

.offer-title-discount > span,
.offer-discount-box > span,
.offer-discount > span{
    align-self:end !important;
}

/* Mobile */

@media (max-width:700px){

    .offer-title-discount,
    .offer-discount-box,
    .offer-discount{
        grid-template-columns:1fr !important;
    }

}


/* ==========================================================
   ANGEBOT – Preissteuerung V3
   ========================================================== */

/* ----- AUSFÜHRUNGSORT ----- */

.offer-execution-card{
    position:relative !important;
    padding:22px 24px !important;
}

.offer-execution-card .section-head{
    display:block !important;
    position:relative !important;
    padding-right:190px !important;
    margin-bottom:18px !important;
}

.offer-execution-card .section-head .secondary{
    position:absolute !important;
    right:0 !important;
    top:3px !important;
    margin:0 !important;
}

.offer-execution-card .section-head h2{
    margin:2px 0 4px 0 !important;
}

.offer-execution-card .section-head p{
    margin:0 !important;
}


/* ----- RABATT / AUFSCHLAG ----- */

.offer-discount-box,
.offer-title-discount,
.offer-discount{
    position:relative !important;

    display:grid !important;
    grid-template-columns:minmax(180px,240px) minmax(220px,280px) !important;

    column-gap:38px !important;

    align-items:start !important;

    max-width:560px !important;

    padding:12px 0 !important;
    margin:12px 0 8px 0 !important;

    border:0 !important;
    background:transparent !important;
    box-shadow:none !important;
}


/* senkrechte Trennlinie */

.offer-discount-box::after,
.offer-title-discount::after,
.offer-discount::after{
    content:"" !important;

    position:absolute !important;

    top:8px !important;
    bottom:8px !important;

    left:calc(240px + 18px) !important;

    width:1px !important;

    background:#d9dee8 !important;
}


/* Rabattseite */

.offer-discount-box > label,
.offer-title-discount > label,
.offer-discount > label{
    grid-column:1 !important;

    display:flex !important;
    flex-direction:column !important;

    align-items:flex-start !important;

    gap:7px !important;

    margin:0 !important;

    font-size:14px !important;
    font-weight:700 !important;
}


/* Rabatt-Eingabe */

.offer-discount-box input[name^="discount_title_"],
.offer-title-discount input[name^="discount_title_"],
.offer-discount input[name^="discount_title_"]{
    width:110px !important;
    height:42px !important;

    padding:8px 12px !important;

    margin:0 !important;

    font-size:16px !important;
    font-weight:700 !important;

    text-align:right !important;

    border:1px solid #c8ced9 !important;
    border-radius:8px !important;

    background:#fff !important;
}


/* überzählige alte Prozentanzeige ausblenden */

.offer-discount-box > span,
.offer-title-discount > span,
.offer-discount > span{
    display:none !important;
}


/* Aufschlag rechte Seite */

.offer-markup-control{
    grid-column:2 !important;
    grid-row:1 / span 3 !important;

    margin:0 !important;
    padding:0 !important;

    border:0 !important;

    max-width:none !important;
}

.offer-markup-control > label{
    display:flex !important;
    flex-direction:column !important;

    align-items:flex-start !important;

    gap:7px !important;

    margin:0 !important;
}

.offer-markup-control > label > span{
    font-size:14px !important;
    font-weight:700 !important;
}


/* Prozentfeld sauber */

.offer-percent-input{
    display:flex !important;

    align-items:center !important;

    gap:8px !important;

    height:42px !important;
}

.offer-percent-input input{
    width:110px !important;
    height:42px !important;

    padding:8px 12px !important;

    margin:0 !important;

    text-align:right !important;

    font-size:16px !important;
    font-weight:700 !important;

    border:1px solid #c8ced9 !important;
    border-radius:8px !important;

    background:#fff !important;
}

.offer-percent-input strong{
    display:block !important;

    font-size:15px !important;
    font-weight:700 !important;
}


/* Hilfstext nur unter Aufschlag */

.offer-markup-control small{
    display:block !important;

    margin-top:7px !important;

    max-width:250px !important;

    color:#848b98 !important;

    font-size:12px !important;
    line-height:1.35 !important;
}


/* bestehender Hinweis darunter */

.offer-discount-box > small,
.offer-title-discount > small,
.offer-discount > small{
    grid-column:1 / -1 !important;

    margin-top:12px !important;

    color:#6f7682 !important;
}


/* Responsive */

@media (max-width:760px){

    .offer-execution-card .section-head{
        padding-right:0 !important;
    }

    .offer-execution-card .section-head .secondary{
        position:static !important;
        display:inline-block !important;
        margin-top:10px !important;
    }

    .offer-discount-box,
    .offer-title-discount,
    .offer-discount{
        grid-template-columns:1fr !important;
        gap:16px !important;
    }

    .offer-discount-box::after,
    .offer-title-discount::after,
    .offer-discount::after{
        display:none !important;
    }

    .offer-markup-control{
        grid-column:1 !important;
        grid-row:auto !important;

        padding-top:15px !important;

        border-top:1px solid #d9dee8 !important;
    }

}



/* ==========================================================
   ANGEBOT – PREISSTEUERUNG FINAL
   ========================================================== */

.offer-price-controls{
    display:grid;
    grid-template-columns:220px 1px 260px;
    column-gap:24px;
    align-items:start;

    width:max-content;
    max-width:100%;

    margin:16px 0 8px 0;
}


/* linke und rechte Seite */

.offer-price-control{
    min-width:0;
}

.offer-price-discount{
    grid-column:1;
}

.offer-price-markup{
    grid-column:3;
}


/* echte senkrechte Trennlinie */

.offer-price-controls::before{
    content:"";
    grid-column:2;
    grid-row:1;

    width:1px;
    height:100%;

    min-height:104px;

    background:#d8dde7;
}


/* Überschrift */

.offer-price-control-title{
    height:38px;

    display:flex;
    align-items:flex-end;

    margin:0 0 8px 0;

    font-size:14px;
    line-height:1.2;
    font-weight:750;

    color:#111827;
}


/* Eingabe + Prozentzeichen */

.offer-price-field{
    display:flex;
    align-items:center;
    gap:8px;

    height:44px;
}

.offer-price-field input{
    box-sizing:border-box;

    width:110px !important;
    height:42px !important;

    margin:0 !important;
    padding:7px 10px !important;

    border:1px solid #c8cfdb !important;
    border-radius:8px !important;

    background:#fff !important;

    font-size:16px !important;
    font-weight:700 !important;
    text-align:right !important;
}

.offer-price-field span{
    display:inline-block !important;

    margin:0 !important;

    font-size:15px !important;
    font-weight:700 !important;
    line-height:42px !important;

    color:#111827 !important;
}


/* Hilfstext */

.offer-price-control-help{
    margin-top:7px;

    max-width:245px;

    font-size:12px;
    line-height:1.35;

    color:#8a909c;
}


/* Hinweis darunter */

.offer-price-note{
    margin:10px 0 18px 0;

    max-width:520px;

    font-size:12px;
    line-height:1.4;

    color:#666d79;
}


/* alte Preissteuerungs-CSS zuverlässig neutralisieren */

.offer-discount-box,
.offer-title-discount,
.offer-discount,
.offer-markup-control{
    all:unset;
}


/* Mobile */

@media (max-width:650px){

    .offer-price-controls{
        display:grid;
        grid-template-columns:1fr;

        width:100%;

        row-gap:18px;
    }

    .offer-price-discount,
    .offer-price-markup{
        grid-column:1;
    }

    .offer-price-controls::before{
        grid-column:1;

        width:100%;
        height:1px;
        min-height:1px;

        margin:4px 0;
    }

    .offer-price-markup{
        padding-top:4px;
    }

}



/* ==========================================================
   ANGEBOT – DIGITALER VERSAND
   ========================================================== */

.offer-send-card{
    margin-top:20px !important;
}

.offer-send-card .section-head{
    align-items:flex-start;
}

.offer-send-card.accepted{
    border:1px solid #b8dfc3 !important;
    background:#f8fcf8 !important;
}

.offer-send-card input[type="text"]{
    max-width:620px;
}



/* =========================================================
   Angebots-Neuanlage: kompakte Prüfbereich-Auswahl
   ========================================================= */

.offer-area-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
}

.offer-area-option {
    display:flex !important;
    align-items:center !important;
    gap:10px !important;
    min-height:0 !important;
    height:auto !important;
    padding:10px 12px !important;
    margin:0 !important;
    border:1px solid #d8dce6;
    border-radius:10px;
    cursor:pointer;
}

.offer-area-option input[type="checkbox"] {
    width:16px !important;
    height:16px !important;
    min-width:16px !important;
    max-width:16px !important;
    margin:0 !important;
    padding:0 !important;
    flex:0 0 16px;
}

.offer-area-option span {
    display:block;
    line-height:1.25;
}

.offer-area-option strong {
    display:block;
    margin-bottom:2px;
}

.offer-manual-areas {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
    margin-top:10px;
}

.offer-manual-area {
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:9px !important;
    min-height:0 !important;
    height:auto !important;
    margin:0 !important;
    padding:10px 12px !important;
    border:1px solid #d8dce6;
    border-radius:10px;
    cursor:pointer;
}

.offer-manual-area input[type="checkbox"] {
    width:16px !important;
    height:16px !important;
    min-width:16px !important;
    max-width:16px !important;
    margin:0 !important;
    padding:0 !important;
    flex:0 0 16px;
}

.offer-manual-area span {
    display:block;
    line-height:1.25;
}

@media (max-width:900px) {
    .offer-area-grid,
    .offer-manual-areas {
        grid-template-columns:1fr;
    }
}


/* =========================================================
   SAFETYCENTER ONE
   ANGEBOTSEDITOR ADMIN – UI V1
   Ausschließlich innerhalb .offer-editor-admin
   ========================================================= */

.offer-editor-admin {
    --oe-accent:#5b46cf;
    --oe-accent-soft:#f1eefc;
    --oe-text:#1a202b;
    --oe-muted:#697383;
    --oe-faint:#9299a5;
    --oe-border:#e4e7ed;
    --oe-border-strong:#d7dce5;
    --oe-soft:#f7f8fa;
    --oe-white:#ffffff;
    --oe-radius:10px;
    --oe-radius-lg:14px;

    color:var(--oe-text);
}


/* ---------------------------------------------------------
   Kopf / Metadaten
   --------------------------------------------------------- */

.offer-editor-admin .offer-editor-meta {
    margin-bottom:24px;
}

.offer-editor-admin .offer-editor-meta > div {
    padding:13px 15px;
    border:0;
    border-radius:9px;
    background:var(--oe-soft);
}

.offer-editor-admin .offer-editor-meta span {
    font-size:12px;
    color:var(--oe-muted);
}

.offer-editor-admin .offer-editor-meta strong {
    margin-top:2px;
    font-size:14px;
    font-weight:600;
}


/* ---------------------------------------------------------
   Globale Rabatt-/Aufschlagsbox
   --------------------------------------------------------- */

.offer-editor-admin .offer-global-price-card {
    margin:0 0 26px !important;
    padding:18px 20px !important;
    border:1px solid var(--oe-border) !important;
    border-radius:var(--oe-radius-lg) !important;
    background:var(--oe-soft) !important;
    box-shadow:none !important;
}

.offer-editor-admin .offer-global-price-card > b {
    display:block;
    margin-bottom:2px;
    font-size:15px;
    font-weight:600;
}

.offer-editor-admin .offer-global-price-card input {
    min-height:40px;
    margin-top:5px;
    border:1px solid var(--oe-border-strong);
    border-radius:8px;
    background:#fff;
    font-weight:600;
}


/* ---------------------------------------------------------
   Titelbereiche
   --------------------------------------------------------- */

.offer-editor-admin .offer-editor-title-section {
    margin-top:30px !important;
    padding:24px 0 4px !important;
    border-top:1px solid var(--oe-border) !important;
}

.offer-editor-admin .offer-editor-titlebar {
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:18px !important;
    margin-bottom:16px !important;
}

.offer-editor-admin .offer-editor-titlebar .eyebrow {
    margin-bottom:5px;
    font-size:12px;
    font-weight:500;
    letter-spacing:.02em;
    text-transform:none;
    color:var(--oe-faint);
}

.offer-editor-admin .offer-editor-titlebar h2 {
    margin:0 !important;
    font-size:21px !important;
    line-height:1.25;
    font-weight:600 !important;
    letter-spacing:-.015em;
}


/* ---------------------------------------------------------
   Manuellen Titel bearbeiten
   --------------------------------------------------------- */

.offer-editor-admin .offer-title-edit-card {
    max-width:720px !important;
    margin:0 0 18px !important;
    padding:14px 16px !important;
    border:0 !important;
    border-radius:var(--oe-radius) !important;
    background:var(--oe-soft) !important;
}

.offer-editor-admin .offer-title-edit-card form {
    gap:12px !important;
}

.offer-editor-admin .offer-title-edit-card label {
    font-size:12px;
    color:var(--oe-muted);
}

.offer-editor-admin .offer-title-edit-card input {
    min-height:40px;
    margin-top:5px;
    border:1px solid var(--oe-border-strong);
    border-radius:8px;
    background:#fff;
}


/* ---------------------------------------------------------
   Titel-Rabatt / Aufschlag
   --------------------------------------------------------- */

.offer-editor-admin .offer-price-controls {
    display:grid !important;
    grid-template-columns:
        repeat(auto-fit,minmax(220px,280px));
    gap:12px !important;
    margin:0 0 8px !important;
}

.offer-editor-admin .offer-price-control {
    min-width:0 !important;
    padding:14px 16px !important;
    border:0 !important;
    border-radius:var(--oe-radius) !important;
    background:var(--oe-soft) !important;
}

.offer-editor-admin .offer-price-control-title {
    margin-bottom:7px !important;
    font-size:12px !important;
    font-weight:500 !important;
    color:var(--oe-muted) !important;
}

.offer-editor-admin .offer-price-field {
    display:flex;
    align-items:center;
    gap:7px;
}

.offer-editor-admin .offer-price-field input {
    width:95px !important;
    min-height:38px !important;
    padding:7px 9px !important;
    border:1px solid var(--oe-border-strong) !important;
    border-radius:8px !important;
    background:#fff !important;
    text-align:right;
    font-size:14px;
    font-weight:600;
}

.offer-editor-admin .offer-price-control-help {
    margin-top:7px !important;
    font-size:12px !important;
    line-height:1.4;
    color:var(--oe-faint) !important;
}

.offer-editor-admin .offer-price-note {
    margin:3px 0 18px !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
    font-size:12px !important;
    color:var(--oe-faint) !important;
}


/* ---------------------------------------------------------
   Positionstabelle
   --------------------------------------------------------- */

.offer-editor-admin .offer-table-scroll {
    overflow-x:auto;
    border:1px solid var(--oe-border);
    border-radius:var(--oe-radius-lg);
    background:#fff;
}

.offer-editor-admin .offer-edit-table {
    width:100%;
    min-width:900px;
    margin:0 !important;
    border-collapse:collapse !important;
    border-spacing:0 !important;
}

.offer-editor-admin .offer-edit-table thead th {
    padding:10px 14px !important;
    border:0 !important;
    border-bottom:1px solid var(--oe-border) !important;
    background:#fff !important;
    color:var(--oe-faint) !important;
    font-size:12px !important;
    font-weight:500 !important;
    letter-spacing:0 !important;
    text-transform:none !important;
}

.offer-editor-admin .offer-edit-table tbody td {
    padding:13px 14px !important;
    border:0 !important;
    border-bottom:1px solid var(--oe-border) !important;
    background:#fff !important;
    vertical-align:middle !important;
}

.offer-editor-admin .offer-edit-table tbody tr:last-child td {
    border-bottom:0 !important;
}

.offer-editor-admin .offer-edit-table tbody tr:hover td {
    background:#fafbfc !important;
}

.offer-editor-admin .offer-pos {
    width:60px;
    font-size:12px !important;
    font-weight:500 !important;
    color:var(--oe-faint) !important;
}

.offer-editor-admin .offer-edit-table td strong {
    font-size:14px;
    font-weight:600;
}

.offer-editor-admin .offer-item-description {
    margin-top:3px !important;
    max-width:520px;
    font-size:12px !important;
    line-height:1.45 !important;
    color:var(--oe-muted) !important;
}


/* ---------------------------------------------------------
   Mengen / Preise
   --------------------------------------------------------- */

.offer-editor-admin .offer-number-input,
.offer-editor-admin .offer-price-input {
    min-height:38px !important;
    padding:7px 9px !important;
    border:1px solid var(--oe-border-strong) !important;
    border-radius:8px !important;
    background:#fff !important;
    font-size:14px !important;
    font-weight:500 !important;
}

.offer-editor-admin .offer-number-input {
    width:90px !important;
}

.offer-editor-admin .offer-price-input {
    width:105px !important;
    text-align:right;
}

.offer-editor-admin input:focus,
.offer-editor-admin select:focus,
.offer-editor-admin textarea:focus {
    outline:none;
    border-color:var(--oe-accent) !important;
    box-shadow:0 0 0 3px rgba(91,70,207,.11) !important;
}


/* ---------------------------------------------------------
   Löschen dezenter
   --------------------------------------------------------- */

.offer-editor-admin .offer-line-total form button {
    min-height:28px !important;
    padding:3px 7px !important;
    border:0 !important;
    background:transparent !important;
    color:#a05d69 !important;
    font-size:11px !important;
}

.offer-editor-admin .offer-line-total form button:hover {
    background:#fff3f5 !important;
    color:#bd334d !important;
}


/* ---------------------------------------------------------
   Hinzufügen
   --------------------------------------------------------- */

.offer-editor-admin .offer-add-grid {
    display:grid !important;
    grid-template-columns:
        repeat(2,minmax(0,1fr)) !important;
    gap:14px !important;
    margin-top:18px !important;
}

.offer-editor-admin .offer-template-card {
    grid-column:1/-1 !important;
    padding:17px 18px !important;
    border:1px solid var(--oe-border) !important;
    border-radius:var(--oe-radius-lg) !important;
    background:var(--oe-soft) !important;
}

.offer-editor-admin .offer-add-card {
    padding:18px !important;
    border:1px solid var(--oe-border) !important;
    border-radius:var(--oe-radius-lg) !important;
    background:#fff !important;
}

.offer-editor-admin .offer-add-card > strong,
.offer-editor-admin .offer-template-card strong {
    font-size:14px !important;
    font-weight:600 !important;
}

.offer-editor-admin .offer-add-card .admin-form {
    gap:10px;
}

.offer-editor-admin .offer-add-card label {
    font-size:12px;
    color:var(--oe-muted);
}

.offer-editor-admin .offer-add-card input,
.offer-editor-admin .offer-add-card textarea,
.offer-editor-admin .offer-add-card select,
.offer-editor-admin .offer-template-card select {
    margin-top:5px;
    min-height:40px;
    border:1px solid var(--oe-border-strong);
    border-radius:8px;
    background:#fff;
    font-size:14px;
}

.offer-editor-admin .offer-add-card textarea {
    min-height:82px;
}


/* ---------------------------------------------------------
   Titelsummen
   --------------------------------------------------------- */

.offer-editor-admin .offer-totals {
    border:0 !important;
    background:transparent !important;
    box-shadow:none !important;
}

.offer-editor-admin .offer-totals > div {
    padding:6px 0 !important;
}

.offer-editor-admin .offer-total-gross {
    margin-top:5px !important;
    padding-top:10px !important;
    border-top:1px solid var(--oe-border-strong) !important;
}


/* ---------------------------------------------------------
   Allgemeine Nebenleistungen
   --------------------------------------------------------- */

.offer-editor-admin .offer-common-section h2 {
    margin-top:3px;
    font-size:20px;
    font-weight:600;
}


/* ---------------------------------------------------------
   Footer / Gesamtsummen
   --------------------------------------------------------- */

.offer-editor-admin .offer-detail-footer {
    position:sticky;
    bottom:10px;
    z-index:12;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    margin-top:28px;
    padding:14px 18px !important;
    border:1px solid var(--oe-border) !important;
    border-radius:var(--oe-radius-lg) !important;
    background:rgba(255,255,255,.97) !important;
    box-shadow:0 -3px 18px rgba(20,27,40,.06);
    backdrop-filter:blur(8px);
}

.offer-editor-admin .offer-detail-footer .offer-totals {
    min-width:330px;
    margin:0 !important;
}


/* ---------------------------------------------------------
   Neuer Titel
   --------------------------------------------------------- */

.offer-editor-admin .offer-new-title-card {
    margin-top:26px !important;
    padding:20px !important;
    border:1px dashed var(--oe-border-strong) !important;
    border-radius:var(--oe-radius-lg) !important;
    background:#fafbfc !important;
}

.offer-editor-admin .offer-new-title-card h3 {
    margin:0 0 14px !important;
    font-size:15px;
    font-weight:600;
}


/* ---------------------------------------------------------
   Buttons etwas ruhiger
   --------------------------------------------------------- */

.offer-editor-admin button.secondary {
    border-radius:8px !important;
    font-weight:500 !important;
}

.offer-editor-admin button.action {
    border-radius:8px !important;
}


/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media(max-width:900px){

    .offer-editor-admin .offer-add-grid {
        grid-template-columns:1fr !important;
    }

    .offer-editor-admin .offer-detail-footer {
        position:static;
        align-items:flex-start;
        flex-direction:column;
    }

    .offer-editor-admin .offer-detail-footer .offer-totals {
        width:100%;
        min-width:0;
    }
}



/* =========================================================
   ANGEBOTSEDITOR – COMPACT OVERRIDE
   Nur Admin-Eingabemaske
   ========================================================= */


/* Grundsätzlich weniger Luft */
.offer-editor-admin {
    font-size:14px;
}

.offer-editor-admin .offer-editor-meta {
    margin-bottom:14px !important;
}

.offer-editor-admin .offer-editor-meta > div {
    padding:9px 11px !important;
}


/* ---------------------------------------------------------
   Globaler Rabatt / Aufschlag
   --------------------------------------------------------- */

.offer-editor-admin .offer-global-price-card {
    padding:12px 14px !important;
    margin-bottom:16px !important;
}

.offer-editor-admin .offer-global-price-card > b {
    margin-bottom:6px !important;
    font-size:14px !important;
}

.offer-editor-admin .offer-global-price-card > div {
    gap:12px !important;
    margin-top:4px !important;
    align-items:center !important;
}

.offer-editor-admin .offer-global-price-card label {
    width:140px !important;
    font-size:12px !important;
}

.offer-editor-admin .offer-global-price-card input {
    width:86px !important;
    min-height:34px !important;
    height:34px !important;
    padding:5px 8px !important;
    margin-top:3px !important;
}

.offer-editor-admin .offer-global-price-card .muted {
    max-width:560px !important;
    padding-bottom:0 !important;
    font-size:11px !important;
    line-height:1.35 !important;
}


/* ---------------------------------------------------------
   Titel
   --------------------------------------------------------- */

.offer-editor-admin .offer-editor-title-section {
    margin-top:18px !important;
    padding-top:16px !important;
}

.offer-editor-admin .offer-editor-titlebar {
    margin-bottom:10px !important;
}

.offer-editor-admin .offer-editor-titlebar .eyebrow {
    margin-bottom:2px !important;
    font-size:11px !important;
}

.offer-editor-admin .offer-editor-titlebar h2 {
    font-size:19px !important;
}


/* ---------------------------------------------------------
   Manueller Titel
   --------------------------------------------------------- */

.offer-editor-admin .offer-title-edit-card {
    max-width:620px !important;
    margin-bottom:12px !important;
    padding:10px 12px !important;
}

.offer-editor-admin .offer-title-edit-card form {
    grid-template-columns:minmax(220px,1fr) 80px auto !important;
    gap:8px !important;
}

.offer-editor-admin .offer-title-edit-card input {
    min-height:34px !important;
    height:34px !important;
    padding:5px 8px !important;
}


/* ---------------------------------------------------------
   Rabatt / Aufschlag pro Titel
   --------------------------------------------------------- */

.offer-editor-admin .offer-price-controls {
    display:flex !important;
    gap:8px !important;
    margin-bottom:4px !important;
}

.offer-editor-admin .offer-price-control {
    flex:0 0 230px !important;
    min-width:230px !important;
    padding:10px 12px !important;
}

.offer-editor-admin .offer-price-control-title {
    margin-bottom:5px !important;
    font-size:11px !important;
}

.offer-editor-admin .offer-price-field input {
    width:80px !important;
    min-height:34px !important;
    height:34px !important;
    padding:5px 7px !important;
}

.offer-editor-admin .offer-price-control-help {
    margin-top:5px !important;
    font-size:10.5px !important;
    line-height:1.3 !important;
}

.offer-editor-admin .offer-price-note {
    margin:3px 0 10px !important;
    font-size:10.5px !important;
}


/* ---------------------------------------------------------
   Tabelle kompakter
   --------------------------------------------------------- */

.offer-editor-admin .offer-edit-table thead th {
    padding:7px 10px !important;
    font-size:11px !important;
}

.offer-editor-admin .offer-edit-table tbody td {
    padding:8px 10px !important;
}

.offer-editor-admin .offer-edit-table td strong {
    font-size:13px !important;
}

.offer-editor-admin .offer-item-description {
    margin-top:2px !important;
    font-size:11px !important;
    line-height:1.3 !important;
}

.offer-editor-admin .offer-number-input,
.offer-editor-admin .offer-price-input {
    min-height:32px !important;
    height:32px !important;
    padding:4px 7px !important;
    font-size:13px !important;
}

.offer-editor-admin .offer-number-input {
    width:78px !important;
}

.offer-editor-admin .offer-price-input {
    width:92px !important;
}


/* Fahrt-Automatik */
.offer-editor-admin .offer-edit-table label {
    font-size:11px !important;
}

.offer-editor-admin .offer-edit-table small {
    font-size:10px !important;
}


/* ---------------------------------------------------------
   Positionen hinzufügen
   --------------------------------------------------------- */

.offer-editor-admin .offer-add-grid {
    gap:10px !important;
    margin-top:12px !important;
}

.offer-editor-admin .offer-template-card {
    padding:12px 14px !important;
}

.offer-editor-admin .offer-add-card {
    padding:12px 14px !important;
}

.offer-editor-admin .offer-add-card > strong,
.offer-editor-admin .offer-template-card strong {
    font-size:13px !important;
}

.offer-editor-admin .offer-add-card .admin-form {
    gap:7px !important;
    margin-top:7px !important;
}

.offer-editor-admin .offer-add-card label {
    font-size:11px !important;
}

.offer-editor-admin .offer-add-card input,
.offer-editor-admin .offer-add-card select,
.offer-editor-admin .offer-template-card select {
    min-height:34px !important;
    height:34px !important;
    padding:5px 8px !important;
    margin-top:3px !important;
    font-size:13px !important;
}

.offer-editor-admin .offer-add-card textarea {
    min-height:58px !important;
    padding:6px 8px !important;
    margin-top:3px !important;
    font-size:13px !important;
}


/* ---------------------------------------------------------
   Freie Position – Mengenzeile kompakt
   --------------------------------------------------------- */

.offer-editor-admin .offer-add-card div[style*="grid-template-columns:100px 120px 1fr"] {
    grid-template-columns:80px 90px minmax(130px,1fr) !important;
    gap:7px !important;
}


/* Checkbox "im Leistungskatalog speichern" reparieren */
.offer-editor-admin .offer-add-card label[style*="display:flex"] {
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:7px !important;
    margin-top:3px !important;
}

.offer-editor-admin .offer-add-card label[style*="display:flex"] input[type="checkbox"] {
    width:16px !important;
    height:16px !important;
    min-height:0 !important;
    margin:0 !important;
    flex:0 0 16px !important;
}

.offer-editor-admin .offer-add-card label[style*="display:flex"] span {
    font-size:11px !important;
}


/* Buttons in Zusatzkarten kleiner */
.offer-editor-admin .offer-add-card button,
.offer-editor-admin .offer-template-card button {
    min-height:34px !important;
    padding:6px 10px !important;
    font-size:12px !important;
}


/* ---------------------------------------------------------
   Summen
   --------------------------------------------------------- */

.offer-editor-admin .offer-totals {
    max-width:400px !important;
}

.offer-editor-admin .offer-totals > div {
    padding:4px 0 !important;
    font-size:12px !important;
}

.offer-editor-admin .offer-total-gross {
    padding-top:7px !important;
}


/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */

.offer-editor-admin .offer-detail-footer {
    padding:10px 14px !important;
    margin-top:18px !important;
    gap:16px !important;
}

.offer-editor-admin .offer-detail-footer .offer-totals {
    min-width:290px !important;
}


/* ---------------------------------------------------------
   Neuer Titel
   --------------------------------------------------------- */

.offer-editor-admin .offer-new-title-card {
    margin-top:16px !important;
    padding:12px 14px !important;
}

.offer-editor-admin .offer-new-title-card h3 {
    margin-bottom:8px !important;
    font-size:13px !important;
}

.offer-editor-admin .offer-new-title-card input {
    min-height:34px !important;
    height:34px !important;
}


/* ---------------------------------------------------------
   Große Standardabstände innerhalb Admin-Form hier reduzieren
   --------------------------------------------------------- */

.offer-editor-admin .admin-form {
    gap:8px !important;
}

.offer-editor-admin small.muted {
    font-size:10.5px !important;
}


/* Mobile */
@media(max-width:900px){

    .offer-editor-admin .offer-price-controls {
        flex-wrap:wrap !important;
    }

    .offer-editor-admin .offer-price-control {
        flex:1 1 200px !important;
    }
}


/* Angebotseditor: Summen-/Aktionsblock nicht schwebend */
.offer-editor-admin .offer-detail-footer {
    position: static !important;
    bottom: auto !important;
    z-index: auto !important;
    margin-top: 18px !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}


/* Angebotseditor: Rabatt / Aufschlag extra kompakt */
.offer-editor-admin .offer-price-controls {
    display:flex !important;
    gap:6px !important;
    margin:0 0 2px !important;
    align-items:flex-start !important;
}

.offer-editor-admin .offer-price-control {
    flex:0 0 185px !important;
    min-width:185px !important;
    padding:7px 9px !important;
    border-radius:8px !important;
}

.offer-editor-admin .offer-price-control-title {
    margin-bottom:3px !important;
    font-size:10.5px !important;
    line-height:1.2 !important;
}

.offer-editor-admin .offer-price-field {
    gap:5px !important;
}

.offer-editor-admin .offer-price-field input {
    width:72px !important;
    height:30px !important;
    min-height:30px !important;
    padding:3px 6px !important;
    font-size:12px !important;
}

.offer-editor-admin .offer-price-field span {
    font-size:11px !important;
}

.offer-editor-admin .offer-price-control-help {
    margin-top:3px !important;
    font-size:9.5px !important;
    line-height:1.2 !important;
}

.offer-editor-admin .offer-price-note {
    margin:2px 0 6px !important;
    font-size:9.5px !important;
    line-height:1.25 !important;
}


/* =========================================================
   ANGEBOTSEDITOR – CI PRICE BOXES
   ========================================================= */

.offer-editor-admin {

    --ci-violet:#6b5cff;
    --ci-violet-dark:#5544df;
    --ci-violet-soft:#f4f1ff;

    --ci-blue:#3696e8;
    --ci-blue-soft:#f0f7ff;

    --ci-border:#dcd7ff;
}


/* GLOBALER BEREICH */
.offer-editor-admin .offer-global-price-card {
    background:
        linear-gradient(
            90deg,
            var(--ci-violet-soft) 0%,
            var(--ci-blue-soft) 100%
        ) !important;

    border:
        1px solid
        var(--ci-border) !important;
}

.offer-editor-admin .offer-global-price-card > b {
    color:#42388f !important;
}


/* TITEL RABATT / AUFSCHLAG */
.offer-editor-admin .offer-price-controls {
    display:flex !important;
    gap:8px !important;
    margin:0 0 4px !important;
}

.offer-editor-admin .offer-price-control {

    flex:0 0 190px !important;
    min-width:190px !important;

    padding:9px 10px !important;

    border:
        1px solid
        var(--ci-border) !important;

    border-radius:9px !important;

    background:
        linear-gradient(
            135deg,
            #f8f6ff 0%,
            #f2f7ff 100%
        ) !important;
}


/* Rabatt etwas violetter */
.offer-editor-admin .offer-price-discount {
    border-left:
        3px solid
        var(--ci-violet) !important;
}


/* Aufschlag etwas blauer */
.offer-editor-admin .offer-price-markup {
    border-left:
        3px solid
        var(--ci-blue) !important;
}


/* Überschriften */
.offer-editor-admin .offer-price-control-title {
    margin-bottom:4px !important;

    font-size:10.5px !important;
    font-weight:700 !important;

    color:#514997 !important;
}


/* Eingabefelder */
.offer-editor-admin .offer-price-field input {

    width:74px !important;

    height:30px !important;
    min-height:30px !important;

    padding:3px 6px !important;

    border:
        1px solid
        #cfc9f7 !important;

    border-radius:7px !important;

    background:#fff !important;

    font-size:12px !important;
    font-weight:600 !important;
}


/* Prozentzeichen */
.offer-editor-admin .offer-price-field span {
    font-size:11px !important;
    font-weight:600 !important;

    color:#554c84 !important;
}


/* Hilfe */
.offer-editor-admin .offer-price-control-help {

    margin-top:4px !important;

    font-size:9.5px !important;
    line-height:1.25 !important;

    color:#77719a !important;
}


/* Hinweis unter beiden Boxen */
.offer-editor-admin .offer-price-note {

    display:inline-block !important;

    margin:3px 0 8px !important;

    padding:4px 7px !important;

    border-radius:6px !important;

    background:#f6f4ff !important;

    color:#726b99 !important;

    font-size:9.5px !important;
    line-height:1.2 !important;
}


/* Manueller Titel ebenfalls leicht CI */
.offer-editor-admin .offer-title-edit-card {

    background:
        linear-gradient(
            90deg,
            #f8f7ff 0%,
            #f5f9ff 100%
        ) !important;

    border:
        1px solid
        #e0dcff !important;
}


/* Fokus CI */
.offer-editor-admin .offer-price-field input:focus,
.offer-editor-admin .offer-title-edit-card input:focus {

    border-color:
        var(--ci-violet) !important;

    box-shadow:
        0 0 0 3px
        rgba(107,92,255,.12) !important;
}


/* =========================================================
   TITEL-RABATT / AUFSCHLAG
   Wie globale Preisleiste darstellen
   ========================================================= */

.offer-editor-admin .offer-price-controls {
    display:flex !important;
    align-items:flex-end !important;
    gap:28px !important;

    width:100% !important;
    max-width:none !important;

    padding:10px 14px !important;
    margin:0 0 5px !important;

    border:1px solid #dcd7ff !important;
    border-radius:10px !important;

    background:
        linear-gradient(
            90deg,
            #f4f1ff 0%,
            #f0f7ff 100%
        ) !important;
}


/* Einzelkarten komplett auflösen */
.offer-editor-admin .offer-price-control {
    flex:0 0 auto !important;
    min-width:0 !important;

    padding:0 !important;

    border:0 !important;
    border-left:0 !important;
    border-radius:0 !important;

    background:transparent !important;
}


/* Überschrift */
.offer-editor-admin .offer-price-control-title {
    margin:0 0 3px !important;

    font-size:10.5px !important;
    font-weight:600 !important;

    color:#42388f !important;
}


/* Feld + Prozent */
.offer-editor-admin .offer-price-field {
    display:flex !important;
    align-items:center !important;
    gap:5px !important;
}

.offer-editor-admin .offer-price-field input {
    width:85px !important;

    height:32px !important;
    min-height:32px !important;

    margin:0 !important;
    padding:4px 7px !important;

    border:1px solid #d2d5e1 !important;
    border-radius:7px !important;

    background:#fff !important;

    font-size:12px !important;
    font-weight:600 !important;
}

.offer-editor-admin .offer-price-field span {
    font-size:11px !important;
    font-weight:600 !important;
}


/* Hilfetexte nicht mehr unter jedem Feld anzeigen */
.offer-editor-admin .offer-price-control-help {
    display:none !important;
}


/* Ein gemeinsamer kleiner Hinweis darunter */
.offer-editor-admin .offer-price-note {
    display:block !important;

    margin:0 0 8px !important;
    padding:0 2px !important;

    border:0 !important;
    background:transparent !important;

    font-size:9.5px !important;
    line-height:1.3 !important;

    color:#77719a !important;
}


/* Auf kleinen Displays umbrechen */
@media(max-width:700px){

    .offer-editor-admin .offer-price-controls {
        flex-wrap:wrap !important;
        gap:10px 20px !important;
    }
}


/* Titel-Rabatt/Aufschlag: extra flach */
.offer-editor-admin .offer-price-controls {
    min-height:0 !important;
    height:auto !important;

    padding:7px 12px !important;
    margin:0 0 3px !important;

    align-items:center !important;
    gap:24px !important;
}

.offer-editor-admin .offer-price-control {
    display:flex !important;
    align-items:center !important;
    gap:8px !important;

    min-height:0 !important;
    height:auto !important;

    padding:0 !important;
    margin:0 !important;
}

.offer-editor-admin .offer-price-control-title {
    margin:0 !important;
    white-space:nowrap !important;
}

.offer-editor-admin .offer-price-field {
    margin:0 !important;
}

.offer-editor-admin .offer-price-field input {
    width:72px !important;
    height:29px !important;
    min-height:29px !important;
    margin:0 !important;
}

.offer-editor-admin .offer-price-note {
    margin:2px 0 6px !important;
    padding:0 !important;
}


/* =========================================================
   TITEL-RABATT / AUFSCHLAG
   Optisch identisch zur globalen Box
   ========================================================= */

.offer-editor-admin .offer-price-controls {

    display:grid !important;
    grid-template-columns:130px 165px minmax(260px,1fr) !important;

    align-items:center !important;
    gap:22px !important;

    width:100% !important;
    min-height:0 !important;
    height:auto !important;

    padding:12px 14px !important;
    margin:0 0 3px !important;

    border:1px solid #dcd7ff !important;
    border-radius:10px !important;

    background:
        linear-gradient(
            90deg,
            #f4f1ff 0%,
            #f0f7ff 100%
        ) !important;
}


/* Einzelkarten komplett entfernen */
.offer-editor-admin .offer-price-control {

    display:block !important;

    min-width:0 !important;
    width:auto !important;

    padding:0 !important;
    margin:0 !important;

    border:0 !important;
    border-left:0 !important;
    border-radius:0 !important;

    background:transparent !important;
}


/* Beschriftung exakt wie oben */
.offer-editor-admin .offer-price-control-title {

    display:block !important;

    margin:0 0 3px !important;

    font-size:10.5px !important;
    font-weight:500 !important;
    line-height:1.2 !important;

    color:#252535 !important;
}


/* Eingabe + Prozent */
.offer-editor-admin .offer-price-field {

    display:flex !important;
    align-items:center !important;
    gap:5px !important;

    margin:0 !important;
}

.offer-editor-admin .offer-price-field input {

    width:86px !important;

    height:34px !important;
    min-height:34px !important;

    margin:0 !important;
    padding:5px 8px !important;

    border:1px solid #d2d6e2 !important;
    border-radius:8px !important;

    background:#fff !important;

    font-size:12px !important;
    font-weight:600 !important;
}

.offer-editor-admin .offer-price-field span {

    font-size:11px !important;
    font-weight:500 !important;

    color:#252535 !important;
}


/* Einzel-Hilfetexte weg */
.offer-editor-admin .offer-price-control-help {
    display:none !important;
}


/* Erklärung rechts – genau wie globale Box */
.offer-editor-admin .offer-price-controls::after {

    content:
        "Leer = Gesamtwert. Eigene Titelwerte überschreiben den globalen Rabatt bzw. Aufschlag.";

    display:block;

    max-width:520px;

    font-size:10.5px;
    line-height:1.35;

    color:#69738b;
}


/* Alten Hinweis darunter entfernen */
.offer-editor-admin .offer-price-note {
    display:none !important;
}


/* Mobile */
@media(max-width:750px){

    .offer-editor-admin .offer-price-controls {

        grid-template-columns:1fr 1fr !important;
        gap:10px 14px !important;
    }

    .offer-editor-admin .offer-price-controls::after {
        grid-column:1 / -1;
    }
}


/* =========================================================
   TITEL-PREISLEISTE FINAL
   Aufbau exakt wie globale Preisbox
   ========================================================= */

.offer-editor-admin .offer-price-controls {
    display:grid !important;

    grid-template-columns:
        130px
        170px
        minmax(300px, 1fr) !important;

    grid-template-rows:auto !important;

    align-items:center !important;
    column-gap:22px !important;
    row-gap:0 !important;

    width:100% !important;

    padding:10px 14px !important;
    margin:0 0 4px !important;

    min-height:0 !important;
    height:auto !important;

    border:1px solid #dcd7ff !important;
    border-radius:10px !important;

    background:
        linear-gradient(
            90deg,
            #f4f1ff 0%,
            #f0f7ff 100%
        ) !important;
}


/* Rabatt */
.offer-editor-admin .offer-price-control:nth-child(1) {
    grid-column:1 !important;
    grid-row:1 !important;
}


/* Aufschlag */
.offer-editor-admin .offer-price-control:nth-child(2) {
    grid-column:2 !important;
    grid-row:1 !important;
}


/* Beide Felder */
.offer-editor-admin .offer-price-control {
    display:block !important;

    width:auto !important;
    min-width:0 !important;
    min-height:0 !important;
    height:auto !important;

    padding:0 !important;
    margin:0 !important;

    border:0 !important;
    border-left:0 !important;

    background:transparent !important;
}


/* Bezeichnung über Feld */
.offer-editor-admin .offer-price-control-title {
    margin:0 0 3px !important;

    font-size:10.5px !important;
    font-weight:500 !important;
    line-height:1.2 !important;

    color:#222535 !important;
}


/* Eingabe */
.offer-editor-admin .offer-price-field {
    display:flex !important;
    align-items:center !important;
    gap:5px !important;

    margin:0 !important;
}

.offer-editor-admin .offer-price-field input {
    width:86px !important;

    height:34px !important;
    min-height:34px !important;

    margin:0 !important;
    padding:5px 8px !important;

    border:1px solid #d2d6e2 !important;
    border-radius:8px !important;

    background:#fff !important;
}

.offer-editor-admin .offer-price-field span {
    font-size:11px !important;
}


/* Alte Einzelhilfen komplett weg */
.offer-editor-admin .offer-price-control-help {
    display:none !important;
}


/* Erklärung fest rechts in DERSELBEN Zeile */
.offer-editor-admin .offer-price-controls::after {
    content:
        "Leer = Gesamtwert. Eigene Titelwerte überschreiben den globalen Rabatt bzw. Aufschlag.";

    grid-column:3 !important;
    grid-row:1 !important;

    align-self:center !important;

    display:block !important;

    margin:0 !important;
    padding:0 !important;

    max-width:520px !important;

    font-size:10.5px !important;
    line-height:1.35 !important;

    color:#69738b !important;
}


/* Alten Hinweis darunter weg */
.offer-editor-admin .offer-price-note {
    display:none !important;
}


/* Mobile */
@media(max-width:750px) {

    .offer-editor-admin .offer-price-controls {
        grid-template-columns:1fr 1fr !important;
        row-gap:8px !important;
    }

    .offer-editor-admin .offer-price-controls::after {
        grid-column:1 / -1 !important;
        grid-row:2 !important;
    }
}


/* =========================================================
   TITEL-RABATT / AUFSCHLAG – HART FLACH
   ========================================================= */

.offer-editor-admin .offer-price-controls {
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;

    width:100% !important;

    min-height:0 !important;
    height:58px !important;
    max-height:58px !important;

    padding:8px 14px !important;
    margin:0 0 4px !important;

    gap:34px !important;

    overflow:hidden !important;

    border:1px solid #dcd7ff !important;
    border-radius:10px !important;

    background:
        linear-gradient(
            90deg,
            #f4f1ff 0%,
            #f0f7ff 100%
        ) !important;
}

.offer-editor-admin .offer-price-control {
    display:flex !important;
    align-items:center !important;
    gap:7px !important;

    flex:0 0 auto !important;

    width:auto !important;
    min-width:0 !important;
    min-height:0 !important;
    height:auto !important;

    padding:0 !important;
    margin:0 !important;

    border:0 !important;
    background:transparent !important;
}

.offer-editor-admin .offer-price-control-title {
    margin:0 !important;
    padding:0 !important;

    font-size:11px !important;
    font-weight:500 !important;

    white-space:nowrap !important;
}

.offer-editor-admin .offer-price-field {
    display:flex !important;
    align-items:center !important;
    gap:4px !important;

    margin:0 !important;
    padding:0 !important;
}

.offer-editor-admin .offer-price-field input {
    width:84px !important;

    height:34px !important;
    min-height:34px !important;
    max-height:34px !important;

    margin:0 !important;
    padding:4px 7px !important;
}

.offer-editor-admin .offer-price-control-help {
    display:none !important;
}

.offer-editor-admin .offer-price-controls::after {
    content:
        "Leer = Gesamtwert. Eigene Titelwerte überschreiben den globalen Rabatt bzw. Aufschlag.";

    display:block !important;

    margin-left:16px !important;

    max-width:520px !important;

    font-size:10.5px !important;
    line-height:1.3 !important;

    color:#69738b !important;
}

.offer-editor-admin .offer-price-note {
    display:none !important;
}


/* =========================================================
   TITEL-RABATT / AUFSCHLAG
   Sauberer eigener HTML-Block
   ========================================================= */

.offer-editor-admin .offer-title-pricebar {
    display:grid !important;
    grid-template-columns:130px 170px minmax(280px,1fr) !important;
    align-items:center !important;
    gap:22px !important;

    width:100% !important;
    min-height:0 !important;

    padding:10px 14px !important;
    margin:0 0 5px !important;

    border:1px solid #dcd7ff !important;
    border-radius:10px !important;

    background:
        linear-gradient(
            90deg,
            #f4f1ff 0%,
            #f0f7ff 100%
        ) !important;
}

.offer-editor-admin .offer-title-pricebar-field {
    display:block !important;
    margin:0 !important;
    padding:0 !important;
}

.offer-editor-admin .offer-title-pricebar-field > span {
    display:block !important;

    margin:0 0 3px !important;

    font-size:10.5px !important;
    line-height:1.2 !important;
    font-weight:500 !important;

    color:#222535 !important;
}

.offer-editor-admin .offer-title-pricebar-field input {
    display:block !important;

    width:86px !important;
    height:34px !important;
    min-height:34px !important;

    margin:0 !important;
    padding:5px 8px !important;

    border:1px solid #d2d6e2 !important;
    border-radius:8px !important;

    background:#fff !important;

    font-size:12px !important;
    font-weight:600 !important;
}

.offer-editor-admin .offer-title-pricebar-help {
    align-self:center !important;

    max-width:520px !important;

    font-size:10.5px !important;
    line-height:1.35 !important;

    color:#69738b !important;
}


/* Alte Preisbox-Struktur spielt hier keine Rolle mehr */
.offer-editor-admin .offer-title-pricebar
.offer-price-control,
.offer-editor-admin .offer-title-pricebar
.offer-price-note {
    display:none !important;
}


@media(max-width:750px){

    .offer-editor-admin .offer-title-pricebar {
        grid-template-columns:1fr 1fr !important;
        gap:8px 14px !important;
    }

    .offer-editor-admin .offer-title-pricebar-help {
        grid-column:1 / -1 !important;
    }
}


/* ==========================================================
   RW-SCO ADMIN SHELL 20260904
   Nur interne Admin-Oberfläche.
   Kundenportal und Technikerbereich bleiben unverändert.
   ========================================================== */

.admin-sidebar{
    position:fixed;
    top:0;
    left:0;
    bottom:0;
    z-index:40;
    width:238px;
    display:flex;
    flex-direction:column;
    background:#fff;
    border-right:1px solid #e4e8ef;
    box-shadow:8px 0 28px rgba(32,45,70,.035);
}

.admin-sidebar-brand{
    padding:22px 20px 18px;
    border-bottom:1px solid #edf0f4;
}

.admin-sidebar-brand a{
    display:block;
    color:inherit;
    text-decoration:none;
}

.admin-sidebar-brand small{
    display:block;
    margin-bottom:5px;
    color:#7b8492;
    font-size:10px;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.admin-sidebar-brand strong{
    display:block;
    font-size:18px;
    line-height:1.2;
    background:linear-gradient(
        90deg,
        var(--violet),
        var(--blue),
        var(--turquoise)
    );
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
}

.admin-side-nav{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:5px;
    padding:18px 12px;
    overflow-y:auto;
}

.admin-side-link{
    display:grid;
    grid-template-columns:34px minmax(0,1fr) auto;
    align-items:center;
    gap:10px;
    min-height:44px;
    padding:8px 10px;
    border-radius:11px;
    color:#596273;
    text-decoration:none;
    font-size:13px;
    font-weight:700;
    transition:
        background .14s ease,
        color .14s ease;
}

.admin-side-link:hover{
    background:#f4f6fa;
    color:#273246;
}

.admin-side-link.active{
    background:#eef1ff;
    color:#4f46c8;
}

.admin-side-icon{
    display:grid;
    place-items:center;
    width:32px;
    height:32px;
    border-radius:9px;
    background:#f2f4f8;
    color:#687386;
    font-size:10px;
    font-weight:900;
    letter-spacing:.02em;
}

.admin-side-link.active .admin-side-icon{
    background:#fff;
    color:#4f46c8;
    box-shadow:0 3px 10px rgba(60,75,140,.08);
}

.admin-side-label{
    min-width:0;
}

.admin-side-link .admin-tab-badge{
    margin-left:auto;
}

.admin-sidebar-foot{
    margin-top:auto;
    padding:15px 20px 18px;
    border-top:1px solid #edf0f4;
    color:#98a0ac;
    font-size:11px;
}

.admin-topbar-sidebar{
    margin-left:238px;
    width:calc(100% - 238px);
    min-height:72px;
    padding:12px 2.2vw 12px 0;
}

.admin-topbar-context{
    display:flex;
    align-items:center;
    min-width:0;
}

.admin-area-switch{
    display:flex;
    align-items:center;
    gap:4px;
    padding:4px;
    border:1px solid #e1e6ed;
    border-radius:12px;
    background:#f4f6f9;
}

.admin-area-label{
    padding:0 8px 0 6px;
    color:#8a93a1;
    font-size:11px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.04em;
}

.admin-area-option{
    height:34px;
    border:0;
    border-radius:9px;
    padding:0 13px;
    background:transparent;
    color:#687284;
    font:inherit;
    font-size:12px;
    font-weight:800;
    cursor:default;
}

.admin-area-option.active{
    background:#fff;
    color:#3546a5;
    box-shadow:0 2px 8px rgba(34,48,85,.09);
}

/*
 Nur interne Seiten, auf denen _admin_header() die Sidebar
 direkt vor dem übrigen Admin-Inhalt ausgibt.
*/
.admin-sidebar ~ .admin-wrapper{
    max-width:none;
    margin-left:238px;
    padding-left:0;
    padding-right:2.2vw;
}

@media(max-width:1050px){
    .admin-sidebar{
        width:205px;
    }

    .admin-topbar-sidebar{
        margin-left:205px;
        width:calc(100% - 205px);
    }

    .admin-sidebar ~ .admin-wrapper{
        margin-left:205px;
    }

    .admin-side-link{
        grid-template-columns:32px minmax(0,1fr) auto;
        font-size:12px;
    }
}

@media(max-width:760px){
    .admin-sidebar{
        position:static;
        width:100%;
        height:auto;
        border-right:0;
        border-bottom:1px solid #e4e8ef;
        box-shadow:none;
    }

    .admin-sidebar-brand{
        padding:14px 18px 10px;
    }

    .admin-side-nav{
        flex-direction:row;
        overflow-x:auto;
        padding:8px 12px 12px;
        scrollbar-width:none;
    }

    .admin-side-nav::-webkit-scrollbar{
        display:none;
    }

    .admin-side-link{
        display:flex;
        flex:0 0 auto;
        min-height:40px;
    }

    .admin-side-icon,
    .admin-sidebar-foot{
        display:none;
    }

    .admin-topbar-sidebar{
        margin-left:0;
        width:100%;
        position:sticky;
        top:0;
    }

    .admin-sidebar ~ .admin-wrapper{
        margin-left:auto;
    }

    .admin-area-label{
        display:none;
    }

    .admin-area-option{
        padding:0 9px;
        font-size:11px;
    }
}

/* ==========================================================
   RW-SCO SIDEBAR SVG ICONS 20260904
   Nur interne Admin-Sidebar
   ========================================================== */

.admin-side-icon svg{
    width:17px;
    height:17px;
    display:block;
    fill:none;
    stroke:currentColor;
    stroke-width:1.7;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.admin-side-link:hover .admin-side-icon{
    color:#4f5d73;
}

.admin-side-link.active .admin-side-icon{
    color:#4f46c8;
}


/* ==========================================================
   RW-SCO AREA SWITCH BLUE 20260904
   ========================================================== */

.admin-area-switch{
    gap:3px;
    padding:4px;
    background:#f3f5f8;
    border:1px solid #dde3eb;
    border-radius:13px;
}

.admin-area-option{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:82px;
    height:34px;
    padding:0 13px;
    border-radius:9px;
    text-decoration:none !important;
    color:#667085;
    background:transparent;
    font-size:12px;
    font-weight:800;
    line-height:1;
    transition:
        background .12s ease,
        color .12s ease,
        box-shadow .12s ease;
}

.admin-area-option:hover{
    text-decoration:none !important;
    color:#344054;
    background:#e9edf3;
}

.admin-area-option.active{
    color:#fff !important;
    background:#3267d6 !important;
    box-shadow:0 3px 10px rgba(50,103,214,.24);
}

.admin-area-option.active:hover{
    color:#fff !important;
    background:#2d5fc8 !important;
}



/* =========================================================
   CSV-KUNDENIMPORT MODERN
   isoliert auf .csv-import-modern
   ========================================================= */

.csv-import-modern{
    display:flex;
    align-items:flex-end;
    gap:18px;
    flex-wrap:wrap;
    margin-top:8px;
}

.csv-import-modern .csv-import-area{
    display:flex;
    flex-direction:column;
    gap:7px;
}

.csv-import-modern .csv-import-label{
    font-size:13px;
    font-weight:700;
    color:#53627a;
}

.csv-import-modern .csv-area-switch{
    display:inline-flex;
    align-items:center;
    padding:4px;
    border:1px solid #dbe3ef;
    background:#f4f7fb;
    border-radius:14px;
    min-height:48px;
}

.csv-import-modern .csv-area-option{
    position:relative;
    margin:0;
    cursor:pointer;
}

.csv-import-modern .csv-area-option input{
    position:absolute;
    opacity:0;
    pointer-events:none;
}

.csv-import-modern .csv-area-option span{
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:112px;
    height:40px;
    padding:0 18px;
    border-radius:10px;
    font-size:14px;
    font-weight:700;
    color:#5b6780;
    transition:
        background .18s ease,
        color .18s ease,
        box-shadow .18s ease;
}

.csv-import-modern .csv-area-option input:checked + span{
    background:#ffffff;
    color:#294a86;
    box-shadow:0 3px 10px rgba(42,65,110,.12);
}

.csv-import-modern .csv-file-picker{
    display:flex;
    align-items:center;
    gap:12px;
    min-width:330px;
    min-height:58px;
    padding:10px 16px;
    margin:0;
    border:1px dashed #cbd6e6;
    border-radius:14px;
    background:#f8faff;
    cursor:pointer;
    transition:
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}

.csv-import-modern .csv-file-picker:hover{
    border-color:#819ac5;
    background:#f4f7fd;
    box-shadow:0 4px 14px rgba(47,73,122,.08);
}

.csv-import-modern .csv-file-picker input{
    position:absolute;
    width:1px;
    height:1px;
    overflow:hidden;
    opacity:0;
    pointer-events:none;
}

.csv-import-modern .csv-file-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    width:38px;
    height:38px;
    flex:0 0 38px;
    border-radius:11px;
    background:#e8eef9;
    color:#31538f;
    font-size:22px;
    font-weight:700;
}

.csv-import-modern .csv-file-text{
    display:flex;
    flex-direction:column;
    gap:2px;
    min-width:0;
}

.csv-import-modern .csv-file-text strong{
    font-size:14px;
    color:#20334f;
}

.csv-import-modern .csv-file-text small{
    max-width:250px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:12px;
    color:#7a8799;
}

.csv-import-modern .csv-import-submit{
    min-height:58px;
    padding-left:26px;
    padding-right:26px;
    white-space:nowrap;
}

@media (max-width:1100px){

    .csv-import-modern{
        align-items:stretch;
    }

    .csv-import-modern .csv-file-picker{
        flex:1 1 320px;
    }

}

@media (max-width:720px){

    .csv-import-modern{
        display:flex;
        flex-direction:column;
        align-items:stretch;
    }

    .csv-import-modern .csv-area-switch{
        display:flex;
        width:100%;
    }

    .csv-import-modern .csv-area-option{
        flex:1;
    }

    .csv-import-modern .csv-area-option span{
        min-width:0;
        width:100%;
    }

    .csv-import-modern .csv-file-picker{
        min-width:0;
        width:100%;
        box-sizing:border-box;
    }

    .csv-import-modern .csv-import-submit{
        width:100%;
    }

}



/* =========================================================
   KUNDENVERWALTUNG – NEUER KUNDE MODAL
   ========================================================= */

.customer-create-toolbar{
    display:flex;
    justify-content:flex-end;
    margin:18px 0 16px;
}

.customer-create-button{
    white-space:nowrap;
}

.customer-modal[hidden]{
    display:none !important;
}

.customer-modal{
    position:fixed;
    inset:0;
    z-index:5000;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:24px;
}

.customer-modal-backdrop{
    position:absolute;
    inset:0;
    background:rgba(25,38,57,.50);
    backdrop-filter:blur(2px);
}

.customer-modal-window{
    position:relative;
    z-index:1;
    width:min(980px,100%);
    max-height:calc(100vh - 48px);
    overflow:auto;
    background:#fff;
    border-radius:18px;
    box-shadow:
        0 25px 80px
        rgba(17,30,50,.28);
}

.customer-modal-header{
    display:flex;
    justify-content:space-between;
    gap:24px;
    padding:24px 28px 18px;
    border-bottom:1px solid #e5eaf1;
}

.customer-modal-header h2{
    margin:4px 0;
}

.customer-modal-header p{
    margin:0;
    color:#6d788a;
}

.customer-modal-x{
    flex:0 0 auto;
    width:38px;
    height:38px;
    border:0;
    border-radius:10px;
    background:#f0f3f7;
    color:#536176;
    font-size:26px;
    line-height:1;
    cursor:pointer;
}

.customer-modal-form{
    padding:22px 28px 28px;
}

.customer-modal-area{
    padding:16px;
    margin-bottom:22px;
    background:#f7f9fc;
    border:1px solid #e0e6ef;
    border-radius:14px;
}

.customer-modal-area-title{
    display:block;
    margin-bottom:9px;
    font-size:13px;
    font-weight:700;
    color:#506078;
}

.customer-modal-area-options{
    display:flex;
    gap:10px;
    margin-bottom:8px;
}

.customer-modal-area-options label{
    cursor:pointer;
}

.customer-modal-area-options input{
    position:absolute;
    opacity:0;
    pointer-events:none;
}

.customer-modal-area-options span{
    display:block;
    padding:9px 16px;
    border:1px solid #d5dde8;
    border-radius:10px;
    background:#fff;
    font-weight:700;
}

.customer-modal-area-options input:checked + span{
    border-color:#315f9c;
    background:#edf4ff;
    color:#224f89;
}

.customer-modal-area small{
    color:#748095;
}

.customer-modal-grid{
    display:grid;
    grid-template-columns:
        repeat(2,minmax(0,1fr));
    gap:15px 18px;
}

.customer-modal-grid label{
    display:flex;
    flex-direction:column;
    gap:6px;
    font-size:13px;
    font-weight:600;
    color:#536176;
}

.customer-modal-grid input,
.customer-modal-grid textarea{
    width:100%;
    box-sizing:border-box;
}

.customer-modal-grid textarea{
    resize:vertical;
}

.customer-modal-grid .span2{
    grid-column:1 / -1;
}

.customer-modal-actions{
    display:flex;
    justify-content:flex-end;
    gap:10px;
    margin-top:24px;
    padding-top:18px;
    border-top:1px solid #e5eaf1;
}

body.customer-modal-open{
    overflow:hidden;
}

@media(max-width:720px){

    .customer-modal{
        padding:10px;
    }

    .customer-modal-window{
        max-height:calc(100vh - 20px);
    }

    .customer-modal-grid{
        grid-template-columns:1fr;
    }

    .customer-modal-grid .span2{
        grid-column:auto;
    }

    .customer-modal-area-options{
        flex-direction:column;
    }

    .customer-modal-actions{
        flex-direction:column-reverse;
    }

    .customer-modal-actions button{
        width:100%;
    }
}


/* =========================================================
   KUNDENMODAL – UI VERFEINERUNG
   ========================================================= */

.customer-create-toolbar{
    justify-content:flex-start !important;
    margin:18px 0 18px !important;
}

.customer-create-button{
    min-height:42px;
    padding:0 18px;
    border-radius:12px;
    font-weight:700;
}

.customer-modal-window{
    width:min(900px,100%);
    border-radius:20px;
}

.customer-modal-header{
    padding:22px 26px 16px;
    background:#fbfcfe;
}

.customer-modal-header h2{
    font-size:24px;
    line-height:1.2;
}

.customer-modal-form{
    padding:20px 26px 26px;
}

.customer-modal-area{
    padding:14px 16px;
    margin-bottom:20px;
    border-radius:14px;
}

.customer-modal-area-options{
    gap:8px;
}

.customer-modal-area-options span{
    min-width:120px;
    text-align:center;
    padding:10px 16px;
    border-radius:10px;
}

.customer-modal-area-options input:checked + span{
    box-shadow:0 0 0 2px rgba(49,95,156,.08);
}

.customer-modal-grid{
    gap:14px 16px;
}

.customer-modal-grid label{
    gap:6px;
    font-size:12px;
    font-weight:700;
    color:#44536a;
}

.customer-modal-grid input,
.customer-modal-grid textarea{
    min-height:40px;
    padding:9px 11px;
    border:1px solid #d8e0ea;
    border-radius:10px;
    background:#fff;
    font:inherit;
    color:#1f2a3a;
    outline:none;
    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}

.customer-modal-grid textarea{
    min-height:82px;
}

.customer-modal-grid input:focus,
.customer-modal-grid textarea:focus{
    border-color:#3b71b8;
    box-shadow:0 0 0 3px rgba(59,113,184,.10);
}

.customer-modal-grid input:hover,
.customer-modal-grid textarea:hover{
    border-color:#bfcbd9;
}

.customer-modal-actions{
    position:sticky;
    bottom:0;
    background:#fff;
    margin-left:-26px;
    margin-right:-26px;
    margin-bottom:-26px;
    padding:16px 26px 20px;
    box-shadow:0 -8px 20px rgba(25,38,57,.04);
}

.customer-modal-actions .action,
.customer-modal-actions .secondary{
    min-height:42px;
    border-radius:10px;
    padding:0 18px;
}

.customer-modal-x{
    transition:
        background .15s ease,
        transform .15s ease;
}

.customer-modal-x:hover{
    background:#e6ebf2;
    transform:scale(1.03);
}

@media(max-width:720px){

    .customer-create-toolbar{
        justify-content:flex-start !important;
    }

    .customer-create-button{
        width:auto;
    }

    .customer-modal-header{
        padding:18px 18px 14px;
    }

    .customer-modal-form{
        padding:18px;
    }

    .customer-modal-actions{
        margin-left:-18px;
        margin-right:-18px;
        margin-bottom:-18px;
        padding:14px 18px 18px;
    }
}



/* =========================================================
   KUNDENMODAL – STAMMDATENBEREICHE
   ========================================================= */

.customer-form-sections{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.customer-form-section{
    border:1px solid #e1e7ef;
    border-radius:15px;
    background:#fff;
    overflow:hidden;
}

.customer-form-section-head{
    display:flex;
    align-items:center;
    gap:12px;
    padding:14px 16px;
    background:#f7f9fc;
    border-bottom:1px solid #e5eaf1;
}

.customer-form-section-number{
    flex:0 0 auto;
    display:flex;
    align-items:center;
    justify-content:center;
    width:30px;
    height:30px;
    border-radius:9px;
    background:#edf4ff;
    color:#2c5f9e;
    font-weight:800;
    font-size:13px;
}

.customer-form-section-head h3{
    margin:0;
    font-size:15px;
    color:#17243a;
}

.customer-form-section-head p{
    margin:2px 0 0;
    font-size:12px;
    color:#7a8698;
}

.customer-form-section-grid{
    display:grid;
    grid-template-columns:
        repeat(2,minmax(0,1fr));
    gap:14px 16px;
    padding:16px;
}

.customer-form-section-grid label{
    display:flex;
    flex-direction:column;
    gap:6px;
    font-size:12px;
    font-weight:700;
    color:#44536a;
}

.customer-form-section-grid .span2{
    grid-column:1 / -1;
}

.customer-form-section-grid input,
.customer-form-section-grid textarea{
    width:100%;
    box-sizing:border-box;
    min-height:40px;
    padding:9px 11px;
    border:1px solid #d8e0ea;
    border-radius:10px;
    background:#fff;
    font:inherit;
    color:#1f2a3a;
    outline:none;
    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.customer-form-section-grid textarea{
    min-height:82px;
    resize:vertical;
}

.customer-form-section-grid input:focus,
.customer-form-section-grid textarea:focus{
    border-color:#3b71b8;
    box-shadow:0 0 0 3px rgba(59,113,184,.10);
}

@media(max-width:720px){

    .customer-form-section-grid{
        grid-template-columns:1fr;
    }

    .customer-form-section-grid .span2{
        grid-column:auto;
    }

}



/* =========================================================
   KUNDENMODAL – ZAHLUNGSZIEL
   ========================================================= */

.customer-form-section-grid select{
    width:100%;
    box-sizing:border-box;
    min-height:40px;
    padding:9px 11px;
    border:1px solid #d8e0ea;
    border-radius:10px;
    background:#fff;
    color:#1f2a3a;
    font:inherit;
    outline:none;
}

.customer-form-section-grid select:focus{
    border-color:#3b71b8;
    box-shadow:0 0 0 3px rgba(59,113,184,.10);
}


/* =========================================================
   KUNDENMODAL – WEITERE ANSPRECHPARTNER
   ========================================================= */

.customer-additional-contacts{
    margin-top:6px;
    padding-top:16px;
    border-top:1px solid #e5eaf1;
}

.customer-additional-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    margin-bottom:12px;
}

.customer-additional-head strong{
    display:block;
    font-size:13px;
    color:#24344c;
}

.customer-additional-head small{
    display:block;
    margin-top:3px;
    color:#7b8798;
    font-weight:400;
}

.customer-add-contact-button{
    flex:0 0 auto;
    min-height:36px;
    font-size:12px;
}

.customer-additional-contact{
    margin-top:12px;
    overflow:hidden;
    border:1px solid #dfe6ef;
    border-radius:12px;
    background:#fbfcfe;
}

.customer-additional-contact-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:10px 13px;
    background:#f4f7fa;
    border-bottom:1px solid #e7ecf2;
    font-size:12px;
    color:#45556c;
}

.customer-additional-contact-remove{
    width:28px;
    height:28px;
    border:0;
    border-radius:8px;
    background:#fff;
    color:#78869a;
    cursor:pointer;
    font-size:20px;
    line-height:1;
}

.customer-additional-contact-remove:hover{
    background:#feecec;
    color:#a93d3d;
}

.customer-additional-contact
.customer-form-section-grid{
    padding:13px;
}

@media(max-width:720px){

    .customer-additional-head{
        align-items:stretch;
        flex-direction:column;
    }

    .customer-add-contact-button{
        width:100%;
    }

}


/* =========================================================
   AUDIT – PAGINATION
   ========================================================= */

.audit-pagination{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
    padding:20px 12px 4px;
}

.audit-page-info{
    min-width:190px;
    text-align:center;
    font-size:13px;
    color:#607087;
}

.audit-page-disabled{
    opacity:.38;
    pointer-events:none;
    cursor:default;
}



/* =========================================================
   AUDIT – ANSICHTSFILTER
   ========================================================= */

.audit-hero{
    align-items:flex-end;
}

.audit-view-switch{
    display:flex;
    align-items:center;
    gap:4px;
    padding:4px;
    border:1px solid #dce4ee;
    border-radius:12px;
    background:#f3f6fa;
}

.audit-view-switch a{
    display:block;
    padding:8px 14px;
    border-radius:9px;
    color:#5b687c;
    text-decoration:none;
    font-size:13px;
    font-weight:700;
    transition:
        background .15s ease,
        color .15s ease,
        box-shadow .15s ease;
}

.audit-view-switch a:hover{
    color:#244f8c;
    background:#fff;
}

.audit-view-switch a.active{
    color:#fff;
    background:#3568c9;
    box-shadow:
        0 2px 7px
        rgba(37,78,154,.22);
}

.audit-table td{
    vertical-align:top;
}

.audit-table td:nth-child(1){
    white-space:nowrap;
}

.audit-table td:nth-child(2){
    font-weight:650;
}

@media(max-width:800px){

    .audit-hero{
        align-items:flex-start;
    }

    .audit-view-switch{
        width:100%;
    }

    .audit-view-switch a{
        flex:1;
        text-align:center;
    }

}


/* ==========================================================
   RW-SCO ADMIN SHELL – KANTEN EXAKT AUSRICHTEN
   ========================================================== */

.admin-sidebar{
    width:238px !important;
    box-sizing:border-box !important;
}

.admin-topbar-sidebar{
    margin-left:238px !important;
    width:calc(100% - 238px) !important;
    box-sizing:border-box !important;
    padding-left:0 !important;
}

.admin-sidebar ~ .admin-wrapper{
    margin-left:238px !important;
    margin-right:0 !important;
    width:calc(100% - 238px) !important;
    max-width:none !important;
    box-sizing:border-box !important;

    padding-left:0 !important;
    padding-right:2.2vw !important;
}

/* kein zweiter optischer Rand zwischen Sidebar und Inhalt */
.admin-sidebar ~ .admin-wrapper > .admin-hero,
.admin-sidebar ~ .admin-wrapper > .admin-card{
    margin-left:0 !important;
}

@media(max-width:1050px){
    .admin-sidebar{
        width:205px !important;
    }

    .admin-topbar-sidebar{
        margin-left:205px !important;
        width:calc(100% - 205px) !important;
    }

    .admin-sidebar ~ .admin-wrapper{
        margin-left:205px !important;
        width:calc(100% - 205px) !important;
    }
}

@media(max-width:760px){
    .admin-sidebar{
        width:100% !important;
    }

    .admin-topbar-sidebar,
    .admin-sidebar ~ .admin-wrapper{
        margin-left:0 !important;
        width:100% !important;
    }
}


/* Test: linke Admin-Kante bündig zur Sidebar */
.admin-sidebar ~ .admin-wrapper > .admin-hero{
    border-top-left-radius:0 !important;
    border-bottom-left-radius:0 !important;
}

.admin-sidebar ~ .admin-wrapper > .admin-card{
    border-top-left-radius:0 !important;
    border-bottom-left-radius:0 !important;
}


/* ==========================================================
   ADMIN SHELL – obere Trennlinien exakt auf gleiche Höhe
   ========================================================== */

.admin-sidebar-brand{
    height:72px !important;
    min-height:72px !important;
    box-sizing:border-box !important;

    padding:12px 20px !important;

    display:flex !important;
    align-items:center !important;
}

.admin-sidebar-brand > a{
    width:100% !important;
}

.admin-topbar-sidebar{
    height:72px !important;
    min-height:72px !important;
    box-sizing:border-box !important;
}


/* ==========================================================
   ADMIN SHELL – saubere Kante + angenehmer Abstand
   ========================================================== */

/* Topbar-Inhalt etwas von der Sidebar abrücken */
.admin-topbar-sidebar{
    padding-left:20px !important;
}

/* Hauptinhalt mit etwas Luft zur Sidebar */
.admin-sidebar ~ .admin-wrapper{
    padding-left:20px !important;
}

/* Rundungen wieder vollständig herstellen */
.admin-sidebar ~ .admin-wrapper > .admin-hero{
    border-radius:24px !important;
}

.admin-sidebar ~ .admin-wrapper > .admin-card{
    border-radius:22px !important;
}

/* Mobile unverändert bündig */
@media(max-width:760px){
    .admin-topbar-sidebar,
    .admin-sidebar ~ .admin-wrapper{
        padding-left:18px !important;
        padding-right:18px !important;
    }
}


/* ============================================================
   QR COMPACT UI V2
   Nur /admin/qr optisch kompakter
   ============================================================ */

body:has(a[href="/admin/qr"]) .admin-hero {
    padding: 14px 18px !important;
    min-height: auto !important;
    border-radius: 18px !important;
}

body:has(a[href="/admin/qr"]) .admin-hero h1 {
    font-size: 1.65rem !important;
    line-height: 1.05 !important;
    margin-bottom: 4px !important;
}

body:has(a[href="/admin/qr"]) .admin-hero p {
    font-size: .82rem !important;
    line-height: 1.25 !important;
}

body:has(a[href="/admin/qr"]) .admin-dashboard-kpis {
    gap: 10px !important;
    margin: 10px 0 !important;
}

body:has(a[href="/admin/qr"]) .admin-mini-kpi {
    padding: 12px 14px !important;
    border-radius: 14px !important;
    min-height: auto !important;
}

body:has(a[href="/admin/qr"]) .admin-mini-kpi span,
body:has(a[href="/admin/qr"]) .admin-mini-kpi small {
    font-size: .76rem !important;
}

body:has(a[href="/admin/qr"]) .admin-mini-kpi strong {
    font-size: 1.55rem !important;
    line-height: 1 !important;
}

body:has(a[href="/admin/qr"]) .admin-card {
    padding: 12px 14px !important;
    border-radius: 14px !important;
}

body:has(a[href="/admin/qr"]) .admin-card h2 {
    font-size: 1rem !important;
    line-height: 1.15 !important;
    margin-bottom: 5px !important;
}

body:has(a[href="/admin/qr"]) .admin-card p,
body:has(a[href="/admin/qr"]) .admin-card li,
body:has(a[href="/admin/qr"]) .muted,
body:has(a[href="/admin/qr"]) .notice,
body:has(a[href="/admin/qr"]) label {
    font-size: .78rem !important;
    line-height: 1.25 !important;
}

body:has(a[href="/admin/qr"]) .eyebrow {
    font-size: .64rem !important;
}

body:has(a[href="/admin/qr"]) .admin-grid {
    gap: 10px !important;
}

body:has(a[href="/admin/qr"]) .section-head {
    margin-bottom: 6px !important;
}

body:has(a[href="/admin/qr"]) .action,
body:has(a[href="/admin/qr"]) .secondary,
body:has(a[href="/admin/qr"]) button {
    font-size: .76rem !important;
    padding: 6px 10px !important;
    border-radius: 9px !important;
}

body:has(a[href="/admin/qr"]) input,
body:has(a[href="/admin/qr"]) select {
    font-size: .76rem !important;
    padding: 6px 8px !important;
}

body:has(a[href="/admin/qr"]) .admin-table th,
body:has(a[href="/admin/qr"]) .admin-table td {
    font-size: .74rem !important;
    padding: 6px 8px !important;
}

body:has(a[href="/admin/qr"]) .notice {
    padding: 7px 9px !important;
    border-radius: 9px !important;
}


/* ==========================================================
   QR COMPACT V3
   ========================================================== */

body.qr-compact .admin-wrapper {
    padding-top: 14px !important;
}

body.qr-compact .admin-hero {
    padding: 12px 18px !important;
    min-height: 0 !important;
    border-radius: 16px !important;
    margin-bottom: 12px !important;
}

body.qr-compact .admin-hero h1 {
    font-size: 1.45rem !important;
    margin: 2px 0 3px !important;
    line-height: 1.05 !important;
}

body.qr-compact .admin-hero p {
    font-size: .76rem !important;
    margin: 0 !important;
}

body.qr-compact .admin-dashboard-kpis {
    gap: 8px !important;
    margin: 8px 0 12px !important;
}

body.qr-compact .admin-mini-kpi {
    padding: 10px 14px !important;
    min-height: 82px !important;
    border-radius: 13px !important;
}

body.qr-compact .admin-mini-kpi span,
body.qr-compact .admin-mini-kpi small {
    font-size: .7rem !important;
}

body.qr-compact .admin-mini-kpi strong {
    font-size: 1.45rem !important;
    margin: 2px 0 !important;
}

body.qr-compact .admin-card {
    padding: 11px 14px !important;
    border-radius: 13px !important;
}

body.qr-compact .admin-grid {
    gap: 8px !important;
}

body.qr-compact .admin-card h2 {
    font-size: .98rem !important;
    margin: 2px 0 5px !important;
    line-height: 1.15 !important;
}

body.qr-compact .admin-card p {
    font-size: .74rem !important;
    line-height: 1.25 !important;
    margin: 4px 0 !important;
}

body.qr-compact .eyebrow {
    font-size: .6rem !important;
}

body.qr-compact .muted,
body.qr-compact .notice,
body.qr-compact label {
    font-size: .72rem !important;
    line-height: 1.25 !important;
}

body.qr-compact .section-head {
    margin-bottom: 5px !important;
}

body.qr-compact .action,
body.qr-compact .secondary,
body.qr-compact button {
    font-size: .7rem !important;
    padding: 5px 9px !important;
    border-radius: 8px !important;
}

body.qr-compact input,
body.qr-compact select {
    font-size: .72rem !important;
    padding: 5px 7px !important;
}

body.qr-compact .admin-table th,
body.qr-compact .admin-table td {
    font-size: .7rem !important;
    padding: 5px 7px !important;
}

body.qr-compact .notice {
    padding: 6px 8px !important;
}


/* ==========================================================
   QR PAKETE EXTRA KOMPAKT
   ========================================================== */

body.qr-compact .qr-package-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
    align-items: start !important;
}

body.qr-compact .qr-package-grid > .admin-card {
    min-height: 0 !important;
    height: auto !important;
    align-self: start !important;
    padding: 9px 11px !important;
}

body.qr-compact .qr-package-grid .admin-card h2 {
    font-size: .9rem !important;
    margin: 1px 0 4px !important;
}

body.qr-compact .qr-package-grid .admin-card p {
    margin: 2px 0 !important;
    line-height: 1.18 !important;
}

body.qr-compact .qr-package-grid .secondary {
    margin-top: 4px !important;
    display: inline-block !important;
}

body.qr-compact .qr-package-grid .eyebrow {
    margin-bottom: 1px !important;
}

@media (max-width: 1300px) {
    body.qr-compact .qr-package-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 750px) {
    body.qr-compact .qr-package-grid {
        grid-template-columns: 1fr !important;
    }
}


/* ==========================================================
   QR ETIKETTENBESTELLUNG V4
   Paketwahl + gruppierter Bestellkorb
   ========================================================== */

body.qr-compact .label-package-order-form {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #e4e8ef;
    border-radius: 10px;
    background: #fafbfc;
}

body.qr-compact .label-package-order-main {
    display: grid;
    grid-template-columns: 110px minmax(260px, 1fr) auto;
    gap: 8px;
    align-items: end;
}

body.qr-compact .label-package-order-main label {
    margin: 0;
}

body.qr-compact .label-manual-address {
    margin-top: 8px;
    padding-top: 7px;
    border-top: 1px solid #e8ebf0;
}

body.qr-compact .label-manual-address summary {
    cursor: pointer;
    font-size: .72rem;
    font-weight: 600;
}

body.qr-compact .label-address-grid {
    display: grid;
    grid-template-columns:
        minmax(180px,1fr)
        minmax(220px,1.2fr)
        minmax(160px,.8fr)
        100px
        minmax(160px,.8fr)
        80px;
    gap: 6px;
    margin-top: 8px;
}

body.qr-compact .label-grouped-cart {
    display: grid;
    gap: 10px;
}

body.qr-compact .label-recipient-group {
    border: 1px solid #dfe4ec;
    border-radius: 11px;
    overflow: hidden;
    background: #fff;
}

body.qr-compact .label-recipient-head {
    padding: 9px 12px;
    background: #f6f8fb;
    border-bottom: 1px solid #e5e9ef;
}

body.qr-compact .label-recipient-head h3 {
    margin: 0;
    font-size: .92rem;
}

body.qr-compact .label-recipient-head p {
    margin: 2px 0 0;
    font-size: .7rem;
    color: #667085;
}

body.qr-compact .label-package-group {
    padding: 8px 10px 10px;
}

body.qr-compact .label-package-group-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 5px;
}

body.qr-compact .label-package-group-head > div {
    display: flex;
    gap: 8px;
    align-items: baseline;
    flex-wrap: wrap;
}

body.qr-compact .label-package-group-head strong {
    font-size: .78rem;
}

body.qr-compact .label-package-group-head span {
    font-size: .68rem;
    color: #667085;
}

body.qr-compact .label-recipient-group.is-unassigned {
    border-style: dashed;
}

@media (max-width: 1100px) {
    body.qr-compact .label-package-order-main {
        grid-template-columns: 100px 1fr;
    }

    body.qr-compact .label-package-order-main button {
        grid-column: 1 / -1;
    }

    body.qr-compact .label-address-grid {
        grid-template-columns: repeat(2,minmax(160px,1fr));
    }
}

@media (max-width: 700px) {
    body.qr-compact .label-package-order-main,
    body.qr-compact .label-address-grid {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================
   QR BESTELLUNG V5
   kompakte Paketvorschau + Einzelartikel-Versand
   ========================================================== */

body.qr-compact .label-selected-package {
    padding: 9px 12px !important;
}

body.qr-compact .label-selected-package-head {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
}

body.qr-compact .label-selected-package-head h2 {
    margin:2px 0 !important;
    font-size:.92rem !important;
}

body.qr-compact .label-selected-package-head p {
    margin:1px 0 !important;
    font-size:.7rem !important;
}

body.qr-compact .label-package-details {
    margin-top:6px;
}

body.qr-compact .label-package-details > summary {
    cursor:pointer;
    font-size:.7rem;
    font-weight:600;
    width:max-content;
}

body.qr-compact .label-package-details .admin-table-wrap {
    margin-top:6px;
}

body.qr-compact .label-package-order-form {
    margin-top:7px !important;
    padding:7px 9px !important;
}

body.qr-compact .label-package-order-main {
    grid-template-columns:
        80px
        minmax(260px,420px)
        auto !important;
    justify-content:start;
}

body.qr-compact .label-single-order-form {
    margin:0;
}

body.qr-compact .label-single-main {
    display:grid;
    grid-template-columns:
        minmax(300px,1fr)
        100px
        minmax(220px,320px)
        auto;
    gap:7px;
    align-items:end;
}

body.qr-compact .label-single-main label {
    margin:0;
}

body.qr-compact .label-single-new-recipient {
    margin-top:7px;
    padding-top:6px;
    border-top:1px solid #e6e9ef;
}

body.qr-compact .label-single-new-recipient > summary {
    cursor:pointer;
    font-size:.7rem;
    font-weight:600;
}

body.qr-compact .label-single-recipient-grid {
    display:grid;
    grid-template-columns:
        minmax(180px,1fr)
        minmax(180px,1fr)
        minmax(220px,1.2fr)
        minmax(150px,.8fr)
        90px
        minmax(150px,.8fr)
        70px;
    gap:6px;
    margin-top:7px;
}

body.qr-compact .label-single-recipient-grid label {
    margin:0;
}

@media (max-width:1200px) {
    body.qr-compact .label-single-main {
        grid-template-columns:
            1fr
            100px
            minmax(200px,300px);
    }

    body.qr-compact .label-single-main button {
        grid-column:1/-1;
        width:max-content;
    }

    body.qr-compact .label-single-recipient-grid {
        grid-template-columns:
            repeat(2,minmax(160px,1fr));
    }
}

@media (max-width:700px) {
    body.qr-compact .label-single-main,
    body.qr-compact .label-single-recipient-grid,
    body.qr-compact .label-package-order-main {
        grid-template-columns:1fr !important;
    }
}


/* ==========================================================
   QR BESTELLUNG V6 SAFE
   ========================================================== */

body.qr-compact .label-single-main {
    display:grid !important;
    grid-template-columns:
        minmax(360px,1fr)
        90px
        minmax(250px,330px)
        95px !important;
    gap:10px !important;
    align-items:end !important;
}

body.qr-compact .label-single-main > label {
    min-width:0 !important;
    width:100% !important;
}

body.qr-compact .label-single-main input,
body.qr-compact .label-single-main select {
    display:block !important;
    width:100% !important;
    max-width:none !important;
    box-sizing:border-box !important;
}

body.qr-compact .label-single-main button {
    width:95px !important;
    white-space:nowrap !important;
}

body.qr-compact .label-single-new-recipient {
    margin-top:8px !important;
    padding:7px 10px !important;
    border:1px solid #e3e7ed !important;
    border-radius:9px !important;
    background:#fafbfc !important;
}

body.qr-compact .label-single-new-recipient > summary {
    cursor:pointer !important;
    font-size:.7rem !important;
    font-weight:600 !important;
}

body.qr-compact .label-single-recipient-grid {
    display:grid !important;
    grid-template-columns:
        220px
        180px
        minmax(220px,1fr)
        160px
        90px
        180px
        70px !important;
    gap:8px !important;
    align-items:end !important;
    margin-top:8px !important;
}

body.qr-compact .label-single-recipient-grid > label {
    min-width:0 !important;
}

body.qr-compact .label-single-recipient-grid input,
body.qr-compact .label-single-recipient-grid select {
    width:100% !important;
    box-sizing:border-box !important;
}

@media (max-width:1350px) {
    body.qr-compact .label-single-recipient-grid {
        grid-template-columns:
            repeat(3,minmax(180px,1fr)) !important;
    }
}

@media (max-width:1000px) {
    body.qr-compact .label-single-main {
        grid-template-columns:
            1fr 90px !important;
    }

    body.qr-compact .label-single-main button {
        width:auto !important;
    }

    body.qr-compact .label-single-recipient-grid {
        grid-template-columns:
            repeat(2,minmax(180px,1fr)) !important;
    }
}

@media (max-width:650px) {
    body.qr-compact .label-single-main,
    body.qr-compact .label-single-recipient-grid {
        grid-template-columns:1fr !important;
    }
}


body.qr-compact .label-cart-package-details {
    margin-top:5px;
}

body.qr-compact .label-cart-package-details > summary {
    cursor:pointer;
    font-size:.7rem;
    font-weight:600;
    width:max-content;
}

body.qr-compact .label-cart-package-details .admin-table-wrap {
    margin-top:6px;
}

/* ==========================================================
   ETIKETTEN-BESTELLKORB
   ========================================================== */

body.label-cart-page .label-cart-recipient {
    padding:0 !important;
    overflow:hidden;
}

body.label-cart-page .label-recipient-head {
    padding:10px 14px !important;
}

body.label-cart-page .label-recipient-head h2 {
    margin:2px 0 !important;
    font-size:1rem !important;
}

body.label-cart-page .label-recipient-head p {
    margin:2px 0 0 !important;
}

body.label-cart-page .label-cart-package {
    padding:10px 14px !important;
}

body.label-cart-page .label-cart-package-head {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}

body.label-cart-page .label-cart-package-head > div {
    display:flex;
    align-items:baseline;
    gap:8px;
    flex-wrap:wrap;
}

body.label-cart-page .label-cart-package-head strong {
    font-size:.8rem;
}

body.label-cart-page .label-cart-package-head span {
    font-size:.68rem;
    color:#667085;
}

body.label-cart-page .label-cart-extras {
    padding:8px 14px 12px;
    border-top:1px solid #e5e9ef;
}

body.label-cart-page .label-cart-extra-title {
    font-size:.76rem;
    font-weight:700;
    margin-bottom:5px;
}

body.label-cart-page .label-cart-checkout {
    margin-top:12px;
}

body.qr-compact .label-cart-summary .section-head {
    margin:0 !important;
    align-items:center !important;
}

body.qr-compact .label-cart-summary h2 {
    margin:2px 0 !important;
}


/* ==========================================================
   QR BESTELLKORB BUTTON
   ========================================================== */

body.qr-compact .label-cart-button {
    display:inline-flex !important;
    align-items:center !important;
    gap:7px !important;
    white-space:nowrap !important;
    text-decoration:none !important;
    padding:8px 13px !important;
    border-radius:9px !important;
}

body.qr-compact .label-cart-button strong {
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-width:22px !important;
    height:22px !important;
    padding:0 6px !important;
    border-radius:999px !important;
    background:rgba(255,255,255,.22) !important;
    font-size:.72rem !important;
}

body.qr-compact .label-cart-icon {
    font-size:1rem !important;
    line-height:1 !important;
}

body.qr-compact #etiketten-bestellkorb {
    scroll-margin-top:90px !important;
}


/* ==========================================================
   SICHTBARER ETIKETTEN-BESTELLKORB
   ========================================================== */

body.qr-compact .label-cart-visible {
    display:flex !important;
    width:100% !important;
    box-sizing:border-box !important;

    align-items:center !important;
    justify-content:space-between !important;

    margin:8px 0 10px !important;
    padding:9px 12px !important;

    border:1px solid #d6dde7 !important;
    border-radius:10px !important;

    background:#f7f9fc !important;
    color:#182230 !important;

    text-decoration:none !important;
}

body.qr-compact .label-cart-visible:hover {
    background:#eef2f7 !important;
}

body.qr-compact .label-cart-visible-left {
    display:flex !important;
    align-items:center !important;
    gap:9px !important;
}

body.qr-compact .label-cart-visible-icon {
    font-size:1.25rem !important;
    line-height:1 !important;
}

body.qr-compact .label-cart-visible strong {
    display:block !important;
    font-size:.82rem !important;
}

body.qr-compact .label-cart-visible small {
    display:block !important;
    margin-top:1px !important;
    font-size:.68rem !important;
    color:#667085 !important;
}

body.qr-compact .label-cart-visible-count {
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    min-width:30px !important;
    height:30px !important;
    padding:0 8px !important;

    border-radius:999px !important;
    background:#182230 !important;
    color:#fff !important;

    font-size:.76rem !important;
    font-weight:700 !important;
}


/* ==========================================================
   BESTELLKORB KLEIN / INLINE
   ========================================================== */

body.qr-compact .label-order-head {
    display:flex !important;
    justify-content:space-between !important;
    align-items:flex-start !important;
    gap:14px !important;
    margin-bottom:8px !important;
}

body.qr-compact .label-order-head > div:first-child {
    flex:1 1 auto !important;
    min-width:0 !important;
}

body.qr-compact .label-cart-visible-inline {
    flex:0 0 320px !important;
    width:320px !important;
    min-width:280px !important;
    max-width:340px !important;

    margin:0 !important;
    padding:7px 10px !important;

    border-radius:9px !important;
}

body.qr-compact .label-cart-visible-inline .label-cart-visible-left {
    gap:8px !important;
}

body.qr-compact .label-cart-visible-inline .label-cart-visible-icon {
    font-size:1rem !important;
}

body.qr-compact .label-cart-visible-inline strong {
    font-size:.78rem !important;
    line-height:1.1 !important;
}

body.qr-compact .label-cart-visible-inline small {
    font-size:.66rem !important;
    line-height:1.15 !important;
    margin-top:1px !important;
}

body.qr-compact .label-cart-visible-inline .label-cart-visible-count {
    min-width:26px !important;
    height:26px !important;
    padding:0 7px !important;
    font-size:.72rem !important;
}

@media (max-width:1100px) {
    body.qr-compact .label-order-head {
        flex-direction:column !important;
        align-items:stretch !important;
    }

    body.qr-compact .label-cart-visible-inline {
        width:100% !important;
        max-width:none !important;
        min-width:0 !important;
    }
}


/* ==========================================================
   ETIKETTEN BESTELLKORB V2
   ========================================================== */

body.label-cart-page .label-cart-recipient {
    padding:0 !important;
    overflow:hidden !important;
}

body.label-cart-page .label-recipient-head {
    padding:11px 14px !important;
}

body.label-cart-page .label-recipient-head h2 {
    margin:2px 0 !important;
    font-size:1rem !important;
}

body.label-cart-page .label-recipient-head p {
    margin:2px 0 0 !important;
}

body.label-cart-page .label-cart-package {
    padding:9px 14px 11px !important;
    border-top:1px solid #e5e9ef !important;
}

body.label-cart-page .label-cart-package-head {
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:12px !important;
}

body.label-cart-page .label-cart-package-head > div {
    display:flex !important;
    align-items:baseline !important;
    gap:8px !important;
    flex-wrap:wrap !important;
}

body.label-cart-page .label-cart-package-head strong {
    font-size:.8rem !important;
}

body.label-cart-page .label-cart-package-head span {
    font-size:.68rem !important;
    color:#667085 !important;
}

body.label-cart-page .label-cart-package-details {
    margin-top:5px !important;
}

body.label-cart-page .label-cart-package-details > summary {
    cursor:pointer !important;
    width:max-content !important;
    font-size:.7rem !important;
    font-weight:600 !important;
}

body.label-cart-page .label-cart-extras {
    padding:9px 14px 12px !important;
    border-top:1px solid #e5e9ef !important;
}

body.label-cart-page .label-cart-extra-title {
    margin-bottom:5px !important;
    font-size:.76rem !important;
    font-weight:700 !important;
}

body.label-cart-page .label-cart-checkout {
    margin-top:12px !important;
}



/* ==========================================================
   SCO_GLOBAL_UI_2026_V1
   Globale visuelle Modernisierung SafetyCenter One
   Nur Darstellung – keine Fachlogik
   ========================================================== */

:root{
    --sco-radius-sm:10px;
    --sco-radius-md:14px;
    --sco-radius-lg:20px;
    --sco-radius-xl:24px;

    --sco-border:#dfe5ee;
    --sco-border-strong:#ccd6e4;

    --sco-text:#1c2a3d;
    --sco-text-soft:#68768a;

    --sco-shadow-sm:0 4px 14px rgba(26,43,72,.045);
    --sco-shadow-md:0 10px 28px rgba(26,43,72,.065);
}


/* ----------------------------------------------------------
   TYPOGRAFIE
   ---------------------------------------------------------- */

html{
    font-size:16px;
}

body{
    font-family:
        "Segoe UI Variable Text",
        "Segoe UI Variable",
        "Segoe UI",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        Arial,
        sans-serif;

    color:var(--sco-text);
    line-height:1.45;

    -webkit-font-smoothing:antialiased;
    text-rendering:optimizeLegibility;
}

button,
input,
select,
textarea{
    font-family:inherit;
}

h1,
h2,
h3,
h4,
h5{
    letter-spacing:-.018em;
}

h1{
    font-weight:800;
}

h2,
h3{
    font-weight:750;
}

.eyebrow{
    letter-spacing:.025em;
}


/* ----------------------------------------------------------
   BUTTONS
   ---------------------------------------------------------- */

.action,
.btn,
.secondary,
.danger-button,
.danger-link,
.filter-reset,
.doc-open{
    border-radius:var(--sco-radius-md);
    transition:
        transform .14s ease,
        box-shadow .14s ease,
        border-color .14s ease,
        background .14s ease;
}

.action,
.btn{
    box-shadow:0 5px 14px rgba(59,82,185,.10);
}

.action:hover,
.btn:hover{
    transform:translateY(-1px);
    box-shadow:0 8px 20px rgba(59,82,185,.16);
}

.secondary:hover{
    border-color:var(--sco-border-strong);
    background:#f8fafc;
}


/* ----------------------------------------------------------
   FORMULARE
   ---------------------------------------------------------- */

input:not([type="checkbox"])
     :not([type="radio"]){
    border-radius:var(--sco-radius-md);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="search"],
input[type="tel"],
input[type="url"],
select,
textarea{
    border-radius:var(--sco-radius-md) !important;
    border-color:var(--sco-border) !important;

    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus{
    outline:none;
    border-color:#7184df !important;
    box-shadow:0 0 0 3px rgba(75,103,214,.11);
}


/* ----------------------------------------------------------
   KARTEN / PANELS
   ---------------------------------------------------------- */

.admin-card,
.panel,
.contact-card,
.visual-card,
.area-section,
.register-panel,
.next-inspections,
.customer-admin-card,
.inspection-customer-card,
.device-documents,
.device-defects{
    border-color:#e3e8f0;
    box-shadow:var(--sco-shadow-md);
}

.admin-card{
    border-radius:var(--sco-radius-xl);
}

.admin-hero{
    border-radius:var(--sco-radius-xl);
    box-shadow:0 10px 30px rgba(28,48,94,.09);
}


/* ----------------------------------------------------------
   TABELLEN
   ---------------------------------------------------------- */

.admin-table{
    color:var(--sco-text);
}

.admin-table th{
    color:#718096;
    font-weight:750;
    letter-spacing:.055em;
}

.admin-table td{
    border-bottom-color:#edf1f5;
}

.admin-table tbody tr{
    transition:background .12s ease;
}

.admin-table tbody tr:hover td{
    background:#fafbfe;
}


/* ----------------------------------------------------------
   NAVIGATION / KLEINE BEDIENELEMENTE
   ---------------------------------------------------------- */

nav a,
.navbtn,
.customer-switch,
.year-select,
.analysis-select{
    border-radius:var(--sco-radius-md);
}

.badge,
.status-pill,
.customer-number,
.new-badge{
    border-radius:999px;
}


/* ----------------------------------------------------------
   MODALS / POPUPS
   ---------------------------------------------------------- */

.modal{
    border-radius:var(--sco-radius-xl);
}

.es-offer-menu{
    border-radius:16px !important;
    border-color:#dce3ed !important;
    box-shadow:0 18px 44px rgba(21,35,60,.16) !important;
}

.es-offer-dots{
    border-radius:12px !important;
}


/* ----------------------------------------------------------
   LINKS
   ---------------------------------------------------------- */

.admin-table a{
    text-decoration:none;
}

.admin-table a:hover{
    text-decoration:underline;
    text-underline-offset:3px;
}


/* ----------------------------------------------------------
   MOBILE
   ---------------------------------------------------------- */

@media(max-width:760px){

    .admin-card,
    .admin-hero{
        border-radius:18px;
    }

}


/* ==========================================================
   SCO_COMPACT_UI_V1
   Globale kompakte Desktop-Darstellung
   ========================================================== */

:root{
    --sco-compact-control-h:34px;
    --sco-compact-radius:9px;
    --sco-compact-card-padding:16px;
    --sco-compact-gap:12px;
}

/* ----------------------------------------------------------
   BASIS
   ---------------------------------------------------------- */

body{
    font-size:14px;
}

.admin-wrapper{
    gap:14px !important;
    padding-bottom:32px !important;
}

.eyebrow{
    font-size:11px !important;
}

/* ----------------------------------------------------------
   TOPBAR / NAVIGATION
   ---------------------------------------------------------- */

.topbar{
    padding-top:9px !important;
    padding-bottom:9px !important;
}

.brand{
    font-size:19px !important;
}

.brand small{
    font-size:9px !important;
    margin-bottom:3px !important;
}

nav{
    gap:4px !important;
}

nav a,
.navbtn{
    padding:7px 10px !important;
    border-radius:9px !important;
    font-size:13px;
}

.account{
    gap:8px !important;
}

.bell{
    width:34px !important;
    height:34px !important;
    border-radius:10px !important;
}

/* ----------------------------------------------------------
   ADMIN HERO
   ---------------------------------------------------------- */

.admin-hero{
    padding:17px 20px !important;
    border-radius:16px !important;
    gap:14px !important;
}

.admin-hero h1{
    font-size:25px !important;
    line-height:1.15 !important;
    margin:3px 0 4px !important;
}

.admin-hero p{
    font-size:13px !important;
    line-height:1.4 !important;
}

/* ----------------------------------------------------------
   KARTEN / PANELS
   ---------------------------------------------------------- */

.admin-card,
.contact-card,
.visual-card,
.area-section,
.next-inspections,
.customer-admin-card,
.inspection-customer-card,
.device-documents,
.device-defects{
    padding:var(--sco-compact-card-padding) !important;
    border-radius:15px !important;
}

.admin-card h2{
    font-size:18px !important;
    margin-bottom:10px !important;
}

.admin-grid{
    gap:14px !important;
}

.admin-dashboard-kpis{
    gap:10px !important;
}

.admin-mini-kpi{
    padding:12px 14px !important;
    border-radius:13px !important;
}

.admin-mini-kpi span{
    font-size:11px !important;
}

.admin-mini-kpi strong{
    font-size:23px !important;
    margin:4px 0 2px !important;
}

.admin-mini-kpi small{
    font-size:11px !important;
}

/* große Admin-Startkacheln */

.admin-launch-grid,
.admin-hub-grid{
    gap:12px !important;
}

.admin-launch-card{
    padding:13px 15px !important;
    border-radius:15px !important;
}

.admin-hub-card{
    min-height:125px !important;
    padding:18px !important;
    gap:14px !important;
    border-radius:17px !important;
}

.admin-hub-icon{
    width:44px !important;
    height:44px !important;
    flex-basis:44px !important;
    border-radius:12px !important;
}

.admin-hub-copy h2{
    font-size:18px !important;
    margin-bottom:5px !important;
}

.admin-hub-copy p{
    font-size:13px !important;
    margin-bottom:10px !important;
}

/* ----------------------------------------------------------
   BUTTONS
   ---------------------------------------------------------- */

.action,
.btn,
.secondary,
.danger-button,
.danger-link,
.filter-reset,
.doc-open{
    min-height:32px !important;
    padding:6px 11px !important;
    border-radius:8px !important;
    font-size:13px !important;
    line-height:1.25 !important;
}

.row-actions{
    gap:5px !important;
}

.action:hover,
.btn:hover{
    transform:none !important;
}

/* ----------------------------------------------------------
   FORMULARE
   ---------------------------------------------------------- */

.admin-form{
    gap:9px !important;
}

.admin-form label,
.invite-link-label{
    gap:4px !important;
    font-size:11px !important;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="search"],
input[type="tel"],
input[type="url"],
select{
    min-height:34px !important;
    padding:6px 9px !important;
    border-radius:8px !important;
    font-size:13px !important;
}

textarea{
    padding:8px 9px !important;
    border-radius:8px !important;
    font-size:13px !important;
}

.searchbox{
    padding:7px 10px !important;
    border-radius:8px !important;
}

/* ----------------------------------------------------------
   TABELLEN
   ---------------------------------------------------------- */

.admin-table{
    font-size:12px !important;
}

.admin-table th{
    padding:7px 7px !important;
    font-size:10px !important;
}

.admin-table td{
    padding:8px 7px !important;
    line-height:1.35 !important;
}

.admin-table td small{
    margin-top:2px !important;
    font-size:10px !important;
}

.register-table{
    font-size:12px !important;
}

.register-table th{
    padding:8px 10px !important;
    font-size:10px !important;
}

.register-table td{
    padding:8px 10px !important;
}

.excel-table{
    font-size:12px !important;
}

.excel-table th,
.excel-table td{
    padding:6px 8px !important;
}

/* ----------------------------------------------------------
   STATUS / BADGES
   ---------------------------------------------------------- */

.badge,
.status-pill,
.customer-number,
.new-badge,
.due-chip,
.invite-status{
    padding:4px 7px !important;
    font-size:10px !important;
}

.status-pill.large{
    padding:6px 9px !important;
    font-size:12px !important;
}

/* ----------------------------------------------------------
   SEKTIONEN / ABSTÄNDE
   ---------------------------------------------------------- */

.section-head h2{
    font-size:18px !important;
}

.section-head p{
    font-size:12px !important;
    margin-bottom:10px !important;
}

.area-title{
    margin:18px 0 14px !important;
    gap:14px !important;
}

.area-title h1{
    font-size:28px !important;
    margin:3px 0 !important;
}

.area-title p{
    font-size:13px !important;
}

.next-inspections,
.area-section{
    margin-top:14px !important;
    margin-bottom:14px !important;
}

/* ----------------------------------------------------------
   MODALS
   ---------------------------------------------------------- */

.modal{
    padding:20px !important;
    border-radius:16px !important;
}

.modal h3{
    font-size:20px !important;
}

.modal-step{
    padding:11px !important;
    margin:12px 0 !important;
    border-radius:10px !important;
}

.modal-actions{
    gap:7px !important;
}

/* ----------------------------------------------------------
   FILTER
   ---------------------------------------------------------- */

.register-filters{
    gap:8px !important;
    padding:10px 12px !important;
    border-radius:12px !important;
}

.register-filters label{
    font-size:10px !important;
    margin-bottom:4px !important;
}

.register-filters .searchbox,
.filter-field select,
.filter-reset{
    height:34px !important;
}

/* ----------------------------------------------------------
   OF / PRÜFANSICHTEN
   ---------------------------------------------------------- */

.of-kpis{
    gap:10px !important;
    margin:12px 0 !important;
}

.of-kpis > div{
    padding:12px 14px !important;
    border-radius:13px !important;
}

.of-kpis strong{
    font-size:1.4rem !important;
}

.of-detail-card{
    padding:15px !important;
    border-radius:14px !important;
}

.of-detail-grid > div{
    padding:8px 3px !important;
}

/* ----------------------------------------------------------
   PLANUNG
   ---------------------------------------------------------- */

.planning-hero{
    margin:14px 0 !important;
    padding:16px 18px !important;
    border-radius:14px !important;
}

.planning-card,
.planning-history-card{
    padding:17px !important;
    border-radius:14px !important;
}

.planning-area-head{
    margin-bottom:14px !important;
}

.planning-form-grid input{
    font-size:16px !important;
    padding:8px 10px !important;
}

.planning-result{
    margin-top:12px !important;
    padding:13px 14px !important;
}

.planning-result strong{
    font-size:24px !important;
}

/* ----------------------------------------------------------
   MOBILE
   Mobil nicht künstlich zu klein machen.
   ---------------------------------------------------------- */

@media(max-width:760px){

    body{
        font-size:14px;
    }

    .admin-card,
    .contact-card,
    .visual-card,
    .area-section{
        padding:15px !important;
    }

    .admin-hero{
        padding:16px !important;
    }

    .admin-hero h1{
        font-size:23px !important;
    }

}


/* ==========================================================
   SCO_COMPACT_UI_V2
   Bessere Flächennutzung / weniger Leerraum
   ========================================================== */

/* ----------------------------------------------------------
   GLOBALE CONTENT-BREITE
   ---------------------------------------------------------- */

.wrapper,
.admin-wrapper{
    max-width:none !important;
}

/* ----------------------------------------------------------
   HERO NOCH FLACHER
   ---------------------------------------------------------- */

.admin-hero{
    min-height:0 !important;
    padding-top:13px !important;
    padding-bottom:13px !important;
}

.admin-hero h1{
    font-size:23px !important;
}

.admin-hero p{
    margin-top:2px !important;
}

.compact-hero{
    min-height:190px !important;
    padding:22px 26px !important;
    border-radius:18px !important;
}

.compact-hero h1{
    font-size:31px !important;
    margin:7px 0 9px !important;
}

.compact-hero p{
    font-size:14px !important;
    line-height:1.4 !important;
}

/* ----------------------------------------------------------
   KPI-BEREICHE
   ---------------------------------------------------------- */

.admin-dashboard-kpis{
    align-items:stretch;
}

.admin-mini-kpi{
    min-height:74px !important;
    padding:10px 12px !important;
}

.admin-mini-kpi strong{
    font-size:21px !important;
}

.metrics{
    gap:10px !important;
    margin-top:14px !important;
}

.metric{
    padding:14px 16px !important;
    border-radius:15px !important;
}

.metric .value{
    font-size:24px !important;
    margin:4px 0 2px !important;
}

/* ----------------------------------------------------------
   DASHBOARD-KARTEN FLACHER
   ---------------------------------------------------------- */

.dashboard-top,
.dashboard-grid-v2{
    gap:14px 18px !important;
    margin-top:18px !important;
}

.dashboard-left-stack,
.dashboard-right-stack{
    gap:14px !important;
}

.dashboard-next{
    padding:14px 16px !important;
    border-radius:15px !important;
}

.dashboard-next .next-row{
    padding:8px 10px !important;
    border-radius:9px !important;
}

.dashboard-area-status-card{
    padding:16px !important;
    border-radius:15px !important;
}

.dashboard-area-status-card h2{
    font-size:18px !important;
}

.contact-card{
    padding:15px !important;
}

/* ----------------------------------------------------------
   STARTKACHELN KOMPAKTER
   ---------------------------------------------------------- */

.admin-hub-card{
    min-height:105px !important;
    padding:15px !important;
}

.admin-hub-copy p{
    line-height:1.35 !important;
}

/* ----------------------------------------------------------
   ANGEBOTS-/FORMULARSEITEN
   ---------------------------------------------------------- */

/* Karten nicht unnötig aufblasen */
.admin-card{
    min-height:0 !important;
}

/* typische breite Formulare begrenzen */
.admin-card .admin-form,
.offer-form,
.planning-card form{
    max-width:1180px;
}

/* normale Formularzeilen sinnvoll nutzen */
.formrow{
    padding:8px 0 !important;
    gap:10px !important;
}

/* breite Textfelder nicht riesig ziehen */
.admin-form textarea{
    max-width:100%;
}

/* Angebotsseite: Hauptformular optisch enger */
.offer-grid{
    gap:14px !important;
}

.offer-form,
.price-panel{
    padding:17px !important;
    border-radius:15px !important;
}

.price-panel{
    min-height:220px !important;
}

.price-panel .bigprice{
    font-size:36px !important;
}

/* ----------------------------------------------------------
   FILTER / SUCHBEREICHE
   ---------------------------------------------------------- */

.register-filters,
.es-offer-filter-grid{
    gap:7px !important;
}

.es-offer-filter-card{
    padding:12px 14px !important;
}

.es-offer-filter-head{
    margin-bottom:8px !important;
}

/* ----------------------------------------------------------
   TABELLEN-KARTEN
   ---------------------------------------------------------- */

.admin-table-wrap{
    margin-top:4px !important;
}

.register-panel{
    border-radius:14px !important;
}

/* ----------------------------------------------------------
   BEREICHSSEITEN
   ---------------------------------------------------------- */

.area-title{
    margin:13px 0 10px !important;
}

.area-visuals{
    gap:14px !important;
    margin:14px 0 !important;
}

.visual-card,
.area-section{
    padding:15px !important;
}

.service-grid{
    gap:12px !important;
}

.service-tile{
    padding:15px !important;
    min-height:150px !important;
    border-radius:15px !important;
}

.service-meta{
    margin-top:12px !important;
    padding-top:10px !important;
}

.service-actions{
    padding-top:12px !important;
}

/* ----------------------------------------------------------
   KUNDEN-/VERWALTUNGS-KARTEN
   ---------------------------------------------------------- */

.customer-admin-grid,
.inspection-customer-grid{
    gap:10px !important;
}

.customer-admin-card,
.inspection-customer-card{
    padding:13px 14px !important;
    border-radius:14px !important;
}

.customer-admin-meta{
    gap:8px !important;
    margin-top:10px !important;
}

/* ----------------------------------------------------------
   DUE / FÄLLIGKEITEN
   ---------------------------------------------------------- */

.due-cluster-grid{
    gap:12px !important;
}

.due-cluster-card{
    padding:15px !important;
    border-radius:15px !important;
}

.due-cluster-card h2{
    font-size:17px !important;
    margin:8px 0 2px !important;
}

.due-area{
    margin-bottom:12px !important;
}

.due-date{
    font-size:22px !important;
}

.due-footer{
    margin-top:12px !important;
    padding-top:9px !important;
}

/* ----------------------------------------------------------
   PLANUNG FLACHER
   ---------------------------------------------------------- */

.planning-card,
.planning-history-card,
.planning-admin-card{
    padding:15px !important;
}

.planning-admin-facts{
    margin:12px 0 !important;
    gap:7px !important;
}

.planning-admin-facts div{
    padding:8px !important;
}

/* ----------------------------------------------------------
   DOKUMENTE
   ---------------------------------------------------------- */

.doc-layout{
    gap:14px !important;
}

.tree-panel,
.content-panel{
    padding:15px !important;
    border-radius:15px !important;
}

.doc-grid{
    gap:10px !important;
}

.doc-tile{
    padding:12px !important;
    border-radius:13px !important;
}

/* ----------------------------------------------------------
   DESKTOP: FORMULARE BREITER AUFTEILEN
   ---------------------------------------------------------- */

@media(min-width:1100px){

    .admin-form.compact-two-col{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .admin-card form:not(.inline-invite):not(.inline-user-edit){
        max-width:1200px;
    }

}

/* ----------------------------------------------------------
   MOBILE BLEIBT STABIL
   ---------------------------------------------------------- */

@media(max-width:760px){

    .compact-hero{
        min-height:0 !important;
        padding:18px !important;
    }

    .compact-hero h1{
        font-size:25px !important;
    }

    .admin-hub-card,
    .service-tile{
        min-height:0 !important;
    }

}


/* ==========================================================
   SCO_OFFER_EDITOR_COMPACT_V1
   Angebotseditor: Arbeitsfläche statt Vollbreite
   ========================================================== */

.es-offer-new-page{
    align-items:start;
}

.es-offer-new-page > .admin-hero{
    width:min(1180px,100%);
}

.es-offer-new-page > .admin-grid{
    width:min(1180px,100%);
    justify-self:start;
}

.es-offer-new-page .es-offer-standard-card{
    width:100%;
    max-width:1180px;
    padding:16px 18px !important;
}

.es-offer-new-page .es-offer-standard-form{
    width:100%;
    max-width:1050px !important;
}

.es-offer-new-page .es-offer-customer-fields{
    max-width:720px;
}

.es-offer-new-page .es-offer-customer-row{
    max-width:850px;
}

.es-offer-new-page textarea{
    max-width:980px !important;
}

.es-offer-new-page .admin-card{
    justify-self:start;
}

@media(max-width:1250px){
    .es-offer-new-page > .admin-hero,
    .es-offer-new-page > .admin-grid{
        width:100%;
    }

    .es-offer-new-page .es-offer-standard-form{
        max-width:100% !important;
    }
}



/* ==========================================================
   SCO_OFFER_EDITOR_2COL_V1
   Angebotseditor links/rechts statt untereinander
   ========================================================== */

.es-offer-new-page > .admin-grid{
    display:grid !important;
    grid-template-columns:minmax(720px, 2fr) minmax(300px, 0.95fr) !important;
    gap:18px !important;
    align-items:start !important;
    width:min(1380px, 100%) !important;
    justify-self:start !important;
}

.es-offer-new-page .es-offer-standard-card{
    width:100% !important;
    max-width:none !important;
}

.es-offer-new-page .es-offer-standard-form{
    max-width:none !important;
}

.es-offer-new-page .admin-grid > .admin-card:first-child{
    min-width:0 !important;
}

.es-offer-new-page .admin-grid > .admin-card:last-child{
    min-width:0 !important;
    position:sticky;
    top:18px;
}

.es-offer-new-page textarea{
    max-width:100% !important;
}

@media (max-width: 1180px){
    .es-offer-new-page > .admin-grid{
        grid-template-columns:1fr !important;
    }

    .es-offer-new-page .admin-grid > .admin-card:last-child{
        position:static !important;
        top:auto !important;
    }
}



/* ==========================================================
   SCO_OFFER_PRICELOGIC_V1
   Rechte Preislogik-Karte kompakter und ruhiger
   ========================================================== */

.es-offer-new-page
.admin-grid > .admin-card:last-child{
    padding:14px 16px !important;
    border-radius:14px !important;
    background:#fbfcfe !important;
}

.es-offer-new-page
.admin-grid > .admin-card:last-child h2{
    font-size:17px !important;
    margin:0 0 8px !important;
}

.es-offer-new-page
.admin-grid > .admin-card:last-child p{
    margin:6px 0 !important;
    font-size:12px !important;
    line-height:1.4 !important;
    color:#667085 !important;
}

.es-offer-new-page
.admin-grid > .admin-card:last-child h3{
    font-size:14px !important;
    margin:14px 0 7px !important;
}

.es-offer-new-page
.admin-grid > .admin-card:last-child ul{
    margin:5px 0 0 !important;
    padding-left:18px !important;
}

.es-offer-new-page
.admin-grid > .admin-card:last-child li{
    margin:4px 0 !important;
    font-size:12px !important;
    line-height:1.35 !important;
}

.es-offer-new-page
.admin-grid > .admin-card:last-child .muted,
.es-offer-new-page
.admin-grid > .admin-card:last-child small{
    font-size:11px !important;
    line-height:1.35 !important;
}

/* dezente Trennung zwischen Info und Vorlagen */
.es-offer-new-page
.admin-grid > .admin-card:last-child h3{
    padding-top:10px !important;
    border-top:1px solid #e8edf3;
}

/* Sticky rechts, aber mit etwas Abstand zur Oberkante */
@media(min-width:1181px){

    .es-offer-new-page
    .admin-grid > .admin-card:last-child{
        position:sticky !important;
        top:74px !important;
    }

}



/* ==========================================================
   SCO_OFFER_EDITOR_V3
   Hero volle Breite + Ausführungsort kompakt
   ========================================================== */

/* ----------------------------------------------------------
   HERO WIEDER ÜBER DIE VOLLE INHALTSBREITE
   ---------------------------------------------------------- */

.es-offer-new-page > .admin-hero{
    width:100% !important;
    max-width:none !important;
    justify-self:stretch !important;
}

/* ----------------------------------------------------------
   2-SPALTEN-BEREICH BLEIBT DARUNTER KOMPAKT
   ---------------------------------------------------------- */

.es-offer-new-page > .admin-grid{
    width:min(1380px,100%) !important;
    justify-self:start !important;
}

/* ----------------------------------------------------------
   AUSFÜHRUNGSORT KOMPAKT
   ---------------------------------------------------------- */

.es-offer-new-page .es-offer-standard-form fieldset,
.es-offer-new-page .es-offer-standard-form .offer-location-box,
.es-offer-new-page .es-offer-standard-form .execution-location-box{
    min-height:0 !important;
}

/* generischer Block rund um Ausführungsort */
.es-offer-new-page .es-offer-standard-form
div:has(> strong:first-child){
    min-height:0;
}

/* vorhandenen sichtbaren Ausführungsort-Block verdichten */
.es-offer-new-page .es-offer-standard-form
div[style*="border"]{
    min-height:0 !important;
}

/* Checkbox-Zeile kompakt */
.es-offer-new-page .es-offer-standard-form
input[type="checkbox"]{
    width:16px !important;
    height:16px !important;
    min-height:0 !important;
}

/* Kartenartige Box unter Angebotsdatum */
.es-offer-new-page .es-offer-standard-form
> div:has(input[type="checkbox"]){
    max-width:620px !important;
    padding:9px 12px !important;
    border-radius:10px !important;
    margin-top:2px !important;
    margin-bottom:8px !important;
}

/* direkte Kinder darin dichter */
.es-offer-new-page .es-offer-standard-form
> div:has(input[type="checkbox"]) > *{
    margin-top:0 !important;
    margin-bottom:0 !important;
}

/* kleine Hilfetexte darunter */
.es-offer-new-page .es-offer-standard-form
> div:has(input[type="checkbox"]) small,
.es-offer-new-page .es-offer-standard-form
> div:has(input[type="checkbox"]) .muted{
    font-size:10px !important;
    line-height:1.3 !important;
}

/* ----------------------------------------------------------
   MOBILE
   ---------------------------------------------------------- */

@media(max-width:760px){

    .es-offer-new-page .es-offer-standard-form
    > div:has(input[type="checkbox"]){
        max-width:100% !important;
    }

}



/* ==========================================================
   DASHBOARD_FOREIGN_OV_V1
   Einzelner Prüfbereich auf dem Kunden-Dashboard kompakt.
   ========================================================== */

.dashboard-services
.compact-service-grid.single-area-grid{
    grid-template-columns:minmax(0,440px);
    justify-content:start;
}

@media(max-width:600px){
    .dashboard-services
    .compact-service-grid.single-area-grid{
        grid-template-columns:1fr;
    }
}


/* ==========================================================
   DASHBOARD_DUE_HIDE_V1
   Einzelner Prüfbereich kompakter.
   ========================================================== */

.dashboard-services
.compact-service-grid.single-area-grid{
    grid-template-columns:360px !important;
    max-width:360px;
}

.dashboard-services
.compact-service-grid.single-area-grid
.service-tile{
    width:100%;
    box-sizing:border-box;
}

@media(max-width:600px){
    .dashboard-services
    .compact-service-grid.single-area-grid{
        grid-template-columns:1fr !important;
        max-width:none;
        width:100%;
    }
}


/* DASHBOARD_SINGLE_TILE_COMPACT_V2 */
.dashboard-services .compact-service-grid.single-area-grid{
    grid-template-columns:320px !important;
    max-width:320px !important;
    width:320px !important;
}

.dashboard-services .compact-service-grid.single-area-grid .service-tile{
    width:320px !important;
    max-width:320px !important;
    min-height:0 !important;
    box-sizing:border-box;
}

@media(max-width:600px){
    .dashboard-services .compact-service-grid.single-area-grid{
        grid-template-columns:1fr !important;
        width:100% !important;
        max-width:none !important;
    }

    .dashboard-services .compact-service-grid.single-area-grid .service-tile{
        width:100% !important;
        max-width:none !important;
    }
}



/* ==========================================================
   ADMIN_DASHBOARD_WIDTH_FIX_V11
   Admin-Inhalt darf Sidebar-Restbreite nicht aufziehen
   ========================================================== */

.admin-sidebar ~ .admin-wrapper{
    min-width:0 !important;
    max-width:calc(100% - 238px) !important;
    overflow-x:visible !important;
}

.admin-sidebar ~ .admin-wrapper > *{
    min-width:0 !important;
    max-width:100% !important;
    box-sizing:border-box !important;
}

.admin-dashboard-kpis,
.admin-dashboard-compact,
.admin-grid,
.admin-card{
    min-width:0 !important;
    max-width:100% !important;
    box-sizing:border-box !important;
}

.admin-dashboard-kpis{
    width:100% !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
}

.admin-mini-kpi{
    min-width:0 !important;
    max-width:100% !important;
    overflow:hidden;
    box-sizing:border-box !important;
}

@media(max-width:1050px){
    .admin-sidebar ~ .admin-wrapper{
        max-width:calc(100% - 205px) !important;
    }
}

@media(max-width:760px){
    .admin-sidebar ~ .admin-wrapper{
        max-width:100% !important;
    }
}


/* OFFER_MAIN_FORM_FULLWIDTH_V1 */

/* Nur das eigentliche Angebotsformular auf volle Kartenbreite */
.offer-editor-admin #offer-main-form{
    display:block !important;
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    box-sizing:border-box !important;
    justify-self:stretch !important;
    grid-column:1 / -1 !important;
}

/* Alle Titel innerhalb dieses Formulars ebenfalls volle Breite */
.offer-editor-admin #offer-main-form .offer-editor-title-section{
    display:block !important;
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    box-sizing:border-box !important;
}

/* Tabellenrahmen bis an die volle Formularbreite */
.offer-editor-admin #offer-main-form .offer-table-scroll{
    display:block !important;
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    box-sizing:border-box !important;
}

/* OF und Maschinen identisch über die volle Breite */
.offer-editor-admin #offer-main-form .offer-edit-table{
    width:100% !important;
    min-width:100% !important;
    max-width:none !important;
    table-layout:auto !important;
}

/* ==========================================================
   ORDERS_LIST_REFERENCE_CHAT_V3
   ========================================================== */

.orders-customer{
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-start !important;
    gap:2px !important;
}

.orders-customer strong{
    font-weight:800 !important;
}

.orders-reference{
    display:block !important;
    font-size:11px !important;
    line-height:1.3 !important;
    color:#667085 !important;
    font-weight:500 !important;
}

.orders-list-card{
    margin-bottom:140px !important;
}



/* SCO_OV_SCORE_VERTICAL_ALIGNMENT_V1
   Safety Score vertikal an Kennzahlenkacheln ausrichten.
   Nur Desktopansicht. */
@media (min-width:1101px) {
  .ov-summary-grid .ov-score-section {
    transform: translateY(12px);
  }
}


/* SCO_OF_MA_COMPACT_ROWS_V1 */
/* Kompakte Anlagen- und Maschinenzeilen mit NEU-Badge */

.of-table .of-click-row .of-object-link,
.ma-table .of-click-row .of-object-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 7px;
    min-width: 0;
}

.of-table .of-click-row .of-object-link > b,
.ma-table .of-click-row .of-object-link > b {
    flex: 0 0 auto;
    white-space: nowrap;
}

.of-table .of-click-row .of-object-link > span:not(.sc-new-badge),
.ma-table .of-click-row .of-object-link > span:not(.sc-new-badge) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* NEU bleibt rechts in der Zeile */
.of-table .of-click-row .of-object-link > .sc-new-badge,
.ma-table .of-click-row .of-object-link > .sc-new-badge {
    order: 3;
    margin: 0 0 0 4px !important;
}

.of-table .of-click-row td,
.ma-table .of-click-row td {
    vertical-align: middle;
    padding-top: 7px;
    padding-bottom: 7px;
}
