:root{
 --bg:#f5f7fa;--surface:#fff;--surface2:#f8fafc;--text:#17202a;--muted:#667085;--line:#e1e6eb;
 --nav:#07141d;--nav2:#0b1d28;--green:#139b43;--green2:#0b7f35;--blue:#1473e6;--red:#b42318;
 --radius:8px;--shadow:0 1px 4px rgba(16,24,40,.05);--sidebar:235px;--top:64px
}
*{box-sizing:border-box}html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;min-width:320px;background:var(--bg);color:var(--text);font:14px/1.5 "Segoe UI",Arial,sans-serif;-webkit-font-smoothing:antialiased}
a{color:var(--blue);text-decoration:none}button,input,select,textarea{font:inherit}
.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:linear-gradient(180deg,#06131c,#091a24);color:#fff;z-index:50;box-shadow:2px 0 8px rgba(0,0,0,.08)}
.side-brand{height:64px;padding:0 18px;display:flex;align-items:center;gap:9px;color:#fff;border-bottom:1px solid rgba(255,255,255,.08)}
.brand-main{font-size:15px;font-weight:900;letter-spacing:.25px}.version-pill{font-size:10px;background:#3a9e42;color:#fff;padding:2px 6px;border-radius:4px;font-weight:800}
.side-nav{padding:14px 10px;display:grid;gap:4px}.side-nav a{color:#d8e2e8;display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:5px;border-left:3px solid transparent}
.side-nav a:hover{background:rgba(255,255,255,.06);color:#fff}.side-nav a.active{background:rgba(255,255,255,.08);border-left-color:#1bc45c;color:#fff}
.nav-icon{width:20px;text-align:center;font-size:16px}
.app-topbar{position:fixed;top:0;left:var(--sidebar);right:0;height:var(--top);background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 24px;z-index:40}
.breadcrumb-title{font-weight:650;color:#344054}.user-pill{font-weight:650;color:#344054;display:flex;align-items:center;gap:7px}
.container.app-container{margin-left:var(--sidebar);padding-top:calc(var(--top) + 24px)}
.container{max-width:none;padding-left:28px;padding-right:28px}.login-topbar{height:64px;background:var(--nav);padding:0 24px;display:flex;align-items:center}.login-topbar .brand{color:#fff;font-weight:900}
h1{font-size:26px;line-height:1.2;margin:0 0 7px}h2{font-size:17px;margin:0 0 12px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:1px;color:var(--green);margin-bottom:4px}.page-subtitle,.muted{color:var(--muted)}
.hero-row{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:22px}.hero-actions{display:flex;gap:8px;flex-wrap:wrap}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:18px;margin-bottom:18px}
.button,button{border:0;border-radius:5px;min-height:38px;padding:8px 13px;background:var(--blue);color:#fff;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;font-weight:650}
.button:hover,button:hover{filter:brightness(.95)}.button.success{background:var(--green)}.button.outline{background:#fff;color:var(--blue);border:1px solid #82b7f5}.button.subtle,.button.secondary,button.secondary{background:#fff;color:#475467;border:1px solid #d0d5dd}.button.small{min-height:32px;padding:5px 10px;font-size:12px}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.stat-card{background:#fff;border:1px solid var(--line);border-radius:7px;padding:16px;display:flex;gap:12px;align-items:center}.stat-card small{display:block;color:var(--muted);font-weight:600}.stat-card strong{font-size:27px;line-height:1}.stat-icon{width:38px;height:38px;border-radius:7px;background:#eef6ff;color:#136fd1;display:grid;place-items:center;font-weight:900}.warning-card .stat-icon{background:#fff1f0;color:var(--red)}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(320px,.85fr);gap:18px}.section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:10px}.section-head h2{margin-bottom:2px}.section-head span{color:var(--muted);font-size:12px}
table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:10px;border-bottom:1px solid #edf0f3;vertical-align:middle}th{font-size:12px;color:#667085;font-weight:700;background:#fafbfc}tbody tr:hover{background:#fbfcfd}.table-primary{font-weight:700;color:#182230}.table-secondary{font-size:12px;color:#667085}.empty-state{text-align:center!important;color:#98a2b3;padding:24px!important}
.badge{display:inline-block;border-radius:999px;padding:3px 8px;font-size:11px;font-weight:750}.ok{background:#dcfae6;color:#067647}.bad{background:#fee4e2;color:#b42318}
.due-list{display:grid}.due-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #edf0f3;color:var(--text)}.due-item strong,.due-item span{display:block}.due-item span{color:var(--muted);font-size:12px}.due-date{text-align:right;font-weight:700}.due-date small{display:block;color:#667085;font-weight:500}.due-item.overdue .due-date{color:var(--red)}.due-item.soon .due-date{color:#b54708}
.formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.formgrid>div:last-child{grid-column:1/-1}label{display:flex;flex-direction:column;gap:5px;font-weight:650;color:#344054}input,select,textarea{width:100%;min-height:40px;border:1px solid #cfd6de;border-radius:5px;padding:8px 10px;background:#fff;color:var(--text)}textarea{min-height:110px;resize:vertical}.full{grid-column:1/-1}
.flash,.error{padding:11px 13px;border-radius:6px;margin-bottom:16px}.flash{background:#ecfdf3;border:1px solid #abefc6;color:#067647}.error{background:#fee4e2;border:1px solid #fecdca;color:#b42318}.auth{max-width:420px;margin:8vh auto}.auth form{display:grid;gap:13px}
.crumbs{display:flex;gap:8px;color:#667085;font-size:12px;margin-bottom:14px}.crumbs a{color:#667085}
.asset-layout{display:grid;grid-template-columns:minmax(0,1.75fr) 300px;gap:14px}.asset-main-card{min-height:430px}.asset-title{font-size:22px;margin-bottom:22px}.asset-dl{display:grid;grid-template-columns:180px 1fr;gap:9px 18px}.asset-dl dt{color:#475467}.asset-dl dd{margin:0;font-weight:600}.mono{font-family:Consolas,"Courier New",monospace}.success-text{color:var(--green)}.stack-actions{display:grid;gap:8px}.asset-actions-col .button{width:100%}.qr-card{text-align:center}.qr-card h2{text-align:left}.qr-faux,.label-mini-qr{position:relative;background:#fff;border:5px solid #111;display:grid;place-items:center;color:#111;font-weight:900;overflow:hidden}.qr-faux{width:95px;height:95px;margin:18px auto}.qr-faux span,.label-mini-qr i{position:absolute;width:28%;height:28%;border:5px solid #111;background:#fff}.qr-faux span:nth-child(1),.label-mini-qr i:nth-child(1){left:5%;top:5%}.qr-faux span:nth-child(2),.label-mini-qr i:nth-child(2){right:5%;top:5%}.qr-faux span:nth-child(3),.label-mini-qr i:nth-child(3){left:5%;bottom:5%}.qr-faux b,.label-mini-qr b{font-size:12px}
.tabs{display:flex;gap:24px;border-bottom:1px solid var(--line);margin:-4px 0 8px}.tab{padding:10px 0;color:#667085}.tab.active{color:var(--green);border-bottom:2px solid var(--green);font-weight:700}
.label-bottom-grid,.label-page-grid{display:grid;grid-template-columns:minmax(400px,1fr) minmax(300px,.85fr);gap:16px}
.label-preview{background:#fff;color:#111;border:1.6px solid #111;border-radius:14px;padding:10px;box-shadow:none;overflow:hidden}.label-57x32{width:min(100%,570px);aspect-ratio:57/32}.label-top{display:grid;grid-template-columns:68px 1fr 82px;gap:10px;align-items:start}.label-logo{width:58px;height:58px;border:5px solid #111;border-radius:8px;display:grid;place-items:center;font-size:27px;font-weight:900;line-height:.8}.label-logo small{font-size:10px;display:block}.label-data strong{font-size:19px;display:block;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.label-data span{display:block;margin-top:7px;font-size:12px}.label-data b{display:block;font-size:20px}.label-mini-qr{width:74px;height:74px;border-width:3px}.label-mini-qr i{border-width:3px}.barcode-preview{height:54px;margin:6px 5px 0;overflow:hidden}.code128-svg{width:100%;height:100%;display:block}.barcode-human{text-align:center;font:700 11px/1.1 Consolas,monospace;letter-spacing:.2px}.spec-list{display:grid;grid-template-columns:130px 1fr;gap:9px}.spec-list dt{color:#667085}.spec-list dd{margin:0}.note{background:#f8fafc;border-left:3px solid var(--green);padding:10px 12px;color:#475467}.code-area{min-height:260px;font-family:Consolas,monospace;font-size:12px}
.messrow{display:grid;grid-template-columns:2fr 1fr 1fr 1fr 1fr;gap:8px;margin-bottom:8px}.inline{display:inline-flex;gap:6px;align-items:center}
.app-footer{margin-left:var(--sidebar);padding:22px 28px;color:#98a2b3;font-size:12px}
@media(max-width:1050px){.stats-grid{grid-template-columns:repeat(2,1fr)}.dashboard-grid,.asset-layout,.label-bottom-grid,.label-page-grid{grid-template-columns:1fr}.asset-actions-col{display:grid;grid-template-columns:1fr 1fr;gap:14px}.messrow{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){:root{--sidebar:0px}.sidebar{position:static;width:100%;height:auto}.side-brand{height:56px}.side-nav{display:flex;overflow:auto;padding:8px}.side-nav a{white-space:nowrap}.app-topbar{position:static;height:52px}.container.app-container{margin-left:0;padding-top:18px}.container{padding-left:12px;padding-right:12px}.stats-grid{grid-template-columns:1fr 1fr}.hero-row{flex-direction:column}.asset-actions-col{grid-template-columns:1fr}.formgrid{grid-template-columns:1fr}.asset-dl{grid-template-columns:1fr}.label-57x32{min-width:500px;transform-origin:left top}.label-preview{overflow:auto}.messrow{grid-template-columns:1fr}.app-footer{margin-left:0}.table-wrap{overflow-x:auto}}
@media(max-width:480px){.stats-grid{grid-template-columns:1fr}.button{width:100%}.hero-actions{width:100%}.label-57x32{transform:scale(.62);margin-bottom:-105px}}

.brand-logo-img{width:38px;height:38px;object-fit:contain;background:#fff;border-radius:50%;padding:2px}
.label-top-plakette{grid-template-columns:88px 1fr 106px;align-items:center}
.label-logo-image{width:78px;height:78px;display:grid;place-items:center}
.label-logo-image img{max-width:100%;max-height:100%;object-fit:contain}
.label-data-id strong{font-size:20px}
.label-data-id span{font-size:13px;font-weight:700;margin-top:8px}
.plakette-space{width:98px;height:98px;border:2px dashed #98a2b3;border-radius:50%;display:grid;place-items:center;text-align:center;color:#667085;font-size:11px;font-weight:700;background:#fff}
.label-bottom-row{display:grid;grid-template-columns:minmax(0,1fr) 72px;gap:8px;align-items:end;margin-top:3px}
.barcode-area{min-width:0}
.label-bottom-row .barcode-preview{height:48px;margin:0}
.label-bottom-row .label-mini-qr{width:68px;height:68px}

.label-premium{padding:8px 10px}
.label-premium-top{display:grid;grid-template-columns:105px minmax(0,1fr) 76px 102px;gap:8px;align-items:center}
.label-logo-image.big{width:100px;height:92px}
.label-logo-image.big img{width:100%;height:100%;object-fit:contain;filter:contrast(1.18)}
.label-premium-id{align-self:start;padding-top:9px;min-width:0}
.label-premium-id strong{display:block;font-size:21px;line-height:1.05;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.label-premium-id span{display:block;font-size:14px;font-weight:800;margin-top:8px}
.label-premium-qr{text-align:center;align-self:center}
.label-premium-qr .label-mini-qr{width:66px;height:66px;margin:auto}
.label-premium-qr small{display:block;font-size:9px;font-weight:700;margin-top:2px}
.plakette-space.premium{width:94px;height:94px;border-width:2px}
.barcode-wide{height:52px;margin:3px 6px 0}
.barcode-wide .code128-svg{width:100%;height:100%}
.barcode-human.premium{font-size:13px;letter-spacing:1.2px;margin-top:1px}
@media(max-width:650px){.label-premium-top{grid-template-columns:90px minmax(0,1fr) 68px 90px}.label-logo-image.big{width:86px;height:82px}.plakette-space.premium{width:84px;height:84px}.label-premium-id strong{font-size:18px}}


/* V1.2d – finales 57x32-Etikett */
.label-final{
  padding:7px 9px 6px;
}

.label-final-top{
  display:grid;
  grid-template-columns:108px minmax(0,1fr) 92px;
  gap:9px;
  align-items:start;
}

.label-final-logo{
  width:104px;
  height:100px;
  display:grid;
  place-items:center;
  overflow:hidden;
}

.label-final-logo img{
  width:100%;
  height:100%;
  object-fit:contain;
  filter:contrast(1.3);
}

.label-final-content{
  min-width:0;
  padding-top:6px;
}

.label-final-id{
  font-size:20px;
  line-height:1.05;
  font-weight:900;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  margin-bottom:7px;
}

.label-final-middle{
  display:grid;
  grid-template-columns:70px minmax(0,1fr);
  align-items:center;
  gap:8px;
}

.label-final-qr .label-mini-qr{
  width:66px;
  height:66px;
}

.label-final-dguv{
  font-size:13px;
  line-height:1.2;
  font-weight:700;
}

.label-final-dguv strong{
  font-size:14px;
}

.plakette-space.final{
  width:86px;
  height:86px;
  border:2px dashed #139b43;
  border-radius:50%;
  background:#fff;
}

.label-final-barcode{
  height:42px;
  margin:5px 26px 0 48px;
  overflow:hidden;
}

.label-final-barcode .code128-svg{
  width:100%;
  height:100%;
  display:block;
}

.barcode-human.final{
  font-size:12px;
  letter-spacing:1.2px;
  margin-top:1px;
  text-align:center;
  font-weight:700;
}

@media(max-width:650px){
  .label-final-top{
    grid-template-columns:96px minmax(0,1fr) 80px;
  }

  .label-final-logo{
    width:92px;
    height:90px;
  }

  .label-final-id{
    font-size:18px;
  }

  .label-final-middle{
    grid-template-columns:60px 1fr;
  }

  .label-final-qr .label-mini-qr{
    width:58px;
    height:58px;
  }

  .plakette-space.final{
    width:76px;
    height:76px;
  }

  .label-final-barcode{
    margin-left:40px;
    margin-right:22px;
    height:38px;
  }
}

.check-panel{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.check-card{display:flex;flex-direction:row;align-items:flex-start;gap:12px;border:1px solid #d0d5dd;border-radius:8px;padding:16px;background:#fafbfc;cursor:pointer}
.check-card input{width:22px;height:22px;min-height:0;margin-top:2px;accent-color:#139b43}
.check-card span{display:block}.check-card strong,.check-card small{display:block}.check-card small{color:#667085;font-weight:400;margin-top:3px}
.upload-box{border:2px dashed #cbd5e1;border-radius:9px;padding:18px;background:#f8fafc}
.upload-box input{margin-top:8px;background:#fff}.upload-box small{color:#667085;font-weight:400}
@media(max-width:760px){.check-panel{grid-template-columns:1fr}}

.field-hint{display:block;color:#667085;font-weight:400;font-size:12px;margin-top:3px}
.danger-text{color:#b42318;font-weight:700}
.switch-row{flex-direction:row;align-items:center;gap:10px;border:1px solid #e1e6eb;border-radius:7px;padding:12px;background:#fafbfc}
.switch-row input{width:20px;height:20px;min-height:0;accent-color:#139b43}


/* V1.5 – ZD621 300dpi fixed label preview */
.label-final-300{
  padding:8px 10px 6px;
}

.label300-top{
  display:grid;
  grid-template-columns:118px minmax(0,1fr) 98px;
  gap:10px;
  align-items:start;
}

.label300-logo{
  width:114px;
  height:112px;
  overflow:hidden;
  display:grid;
  place-items:center;
}

.label300-logo img{
  width:100%;
  height:100%;
  object-fit:contain;
  filter:contrast(1.38);
}

.label300-content{
  padding-top:4px;
  min-width:0;
}

.label300-id{
  font-size:22px;
  font-weight:900;
  line-height:1.05;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  margin-bottom:6px;
}

.label300-mid{
  display:grid;
  grid-template-columns:78px minmax(0,1fr);
  gap:10px;
  align-items:center;
}

.label300-qr .label-mini-qr{
  width:72px;
  height:72px;
}

.label300-dguv{
  font-size:14px;
  line-height:1.2;
  font-weight:750;
}

.label300-dguv strong{
  font-size:15px;
}

.plakette-space.dpi300{
  width:92px;
  height:92px;
  border:2px dashed #139b43;
  border-radius:50%;
}

.label300-barcode{
  height:40px;
  margin:5px 44px 0 70px;
}

.label300-barcode .code128-svg{
  width:100%;
  height:100%;
  display:block;
}

.barcode-human.dpi300{
  text-align:center;
  font-size:12px;
  font-weight:700;
  letter-spacing:1.2px;
  margin-top:1px;
}


/* V1.6 – Premium DGUV label */
.label-v16{
  padding:7px 9px 5px;
  border:1.8px solid #111;
  border-radius:14px;
}

.v16-top{
  display:grid;
  grid-template-columns:112px minmax(0,1fr) 102px;
  gap:10px;
  align-items:start;
}

.v16-logo{
  width:108px;
  height:100px;
  display:grid;
  place-items:center;
}

.v16-logo img{
  width:100%;
  height:100%;
  object-fit:contain;
  filter:contrast(1.45);
}

.v16-inventory{
  padding-top:3px;
  min-width:0;
}

.v16-inventory span{
  display:block;
  font-size:13px;
  font-weight:700;
  line-height:1;
  margin-bottom:3px;
}

.v16-inventory strong{
  display:block;
  font-size:27px;
  line-height:1;
  font-weight:950;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.v16-plaque{
  width:98px;
  height:98px;
  border:2px solid #111;
  border-radius:50%;
  padding:11px;
  display:grid;
  place-items:center;
}

.v16-plaque-inner{
  width:100%;
  height:100%;
  border:1px solid #111;
  border-radius:50%;
}

.v16-middle{
  display:grid;
  grid-template-columns:108px 1fr;
  gap:12px;
  align-items:center;
  margin-top:-2px;
  padding-left:18px;
}

.v16-qr .label-mini-qr{
  width:92px;
  height:92px;
  border-width:4px;
}

.v16-dguv{
  position:relative;
  min-height:82px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding-left:4px;
}

.v16-dguv strong{
  font-size:22px;
  line-height:1;
}

.v16-dguv span{
  font-size:20px;
  line-height:1.1;
  font-weight:800;
  margin-top:5px;
}

.v16-check{
  position:absolute;
  left:118px;
  top:29px;
  width:36px;
  height:36px;
  border:2px solid #111;
  border-radius:8px 8px 14px 14px;
  display:grid;
  place-items:center;
  font-size:23px;
  font-weight:900;
}

.v16-separator{
  height:1px;
  background:#111;
  margin:2px 25px 4px;
}

.v16-barcode{
  height:52px;
  margin:0 28px;
  overflow:hidden;
}

.v16-barcode .code128-svg{
  width:100%;
  height:100%;
  display:block;
}

.v16-human{
  text-align:center;
  font-size:13px;
  font-weight:800;
  letter-spacing:1.5px;
  margin-top:1px;
}

@media(max-width:650px){
  .v16-top{
    grid-template-columns:98px minmax(0,1fr) 88px;
  }

  .v16-logo{
    width:94px;
    height:90px;
  }

  .v16-inventory strong{
    font-size:23px;
  }

  .v16-plaque{
    width:84px;
    height:84px;
  }

  .v16-middle{
    grid-template-columns:95px 1fr;
  }

  .v16-qr .label-mini-qr{
    width:82px;
    height:82px;
  }
}


/* V1.7 – real-print corrected label */
.label-v17{padding:7px 9px 5px}
.v17-top{display:grid;grid-template-columns:108px minmax(0,1fr) 96px;gap:10px;align-items:start}
.v17-logo{width:104px;height:96px;display:grid;place-items:center}
.v17-logo img{width:100%;height:100%;object-fit:contain;filter:contrast(1.45)}
.v17-inventory{padding-top:4px;min-width:0}
.v17-inventory span{display:block;font-size:12px;font-weight:700;margin-bottom:3px}
.v17-inventory strong{display:block;font-size:25px;line-height:1;font-weight:950;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v17-plaque{width:92px;height:92px;border:2px solid #111;border-radius:50%;padding:10px;display:grid;place-items:center}
.v17-plaque-inner{width:100%;height:100%;border:1px solid #111;border-radius:50%}
.v17-middle{display:grid;grid-template-columns:104px 1fr;gap:12px;align-items:center;margin-top:2px;padding-left:16px}
.v17-qr .label-mini-qr{width:82px;height:82px;border-width:4px}
.v17-dguv strong{display:block;font-size:21px;line-height:1}
.v17-dguv span{display:block;font-size:18px;font-weight:800;margin-top:5px}
.v17-barcode{height:42px;margin:8px 34px 0}
.v17-barcode .code128-svg{width:100%;height:100%;display:block}
.v17-human{text-align:center;font-size:12px;font-weight:800;letter-spacing:1.3px;margin-top:1px}

/* V1.8 - print corrected */
.label-v18{padding:7px 9px 5px}
.v18-head{display:grid;grid-template-columns:102px minmax(0,1fr) 92px;gap:10px;align-items:start}
.v18-logo{width:98px;height:88px;display:grid;place-items:center}
.v18-logo img{width:100%;height:100%;object-fit:contain;filter:contrast(1.45)}
.v18-inv{padding-top:4px;min-width:0}
.v18-inv span{display:block;font-size:11px;font-weight:700;margin-bottom:3px}
.v18-inv strong{display:block;font-size:24px;line-height:1;font-weight:950;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v18-plaque{width:86px;height:86px;border:2px solid #111;border-radius:50%}
.v18-mid{display:grid;grid-template-columns:88px 1fr;gap:14px;align-items:center;padding-left:16px;margin-top:7px;min-height:76px}
.v18-qr .label-mini-qr{width:70px;height:70px;border-width:4px}
.v18-dguv strong{display:block;font-size:20px;line-height:1}
.v18-dguv span{display:block;font-size:17px;font-weight:800;margin-top:5px}
.v18-barcode{height:34px;margin:16px 45px 0}
.v18-barcode .code128-svg{width:100%;height:100%;display:block}
.v18-human{text-align:center;font-size:11px;font-weight:800;letter-spacing:1.2px;margin-top:1px}

/* V1.9 - larger physical print visual */
.label-v19{padding:6px 8px 4px}
.v19-head{display:grid;grid-template-columns:112px minmax(0,1fr) 104px;gap:9px;align-items:start}
.v19-logo{width:108px;height:100px;display:grid;place-items:center}
.v19-logo img{width:100%;height:100%;object-fit:contain;filter:contrast(1.55)}
.v19-inv{padding-top:1px;min-width:0}
.v19-inv span{display:block;font-size:13px;font-weight:800;margin-bottom:2px}
.v19-inv strong{display:block;font-size:28px;line-height:1;font-weight:950;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v19-plaque{width:100px;height:100px;border:3px solid #111;border-radius:50%}
.v19-mid{display:grid;grid-template-columns:110px 1fr;gap:12px;align-items:center;margin-top:0;padding-left:8px;min-height:100px}
.v19-qr .label-mini-qr{width:96px;height:96px;border-width:4px}
.v19-dguv strong{display:block;font-size:23px;line-height:1}
.v19-dguv span{display:block;font-size:20px;font-weight:850;margin-top:5px}
.v19-barcode{height:52px;margin:5px 28px 0}
.v19-barcode .code128-svg{width:100%;height:100%;display:block}
.v19-human{text-align:center;font-size:13px;font-weight:850;letter-spacing:1.4px;margin-top:1px}


/* V1.10 – print-calibrated label */
.label-v110{
  padding:0 9px 5px;
}

.v110-safety{
  height:12px;
}

.v110-head{
  display:grid;
  grid-template-columns:105px minmax(0,1fr) 94px;
  gap:10px;
  align-items:start;
}

.v110-logo{
  width:100px;
  height:86px;
  display:grid;
  place-items:center;
}

.v110-logo img{
  width:100%;
  height:100%;
  object-fit:contain;
  filter:contrast(1.55);
}

.v110-inventory{
  min-width:0;
}

.v110-inventory span{
  display:block;
  font-size:12px;
  font-weight:800;
  margin-bottom:2px;
}

.v110-inventory strong{
  display:block;
  font-size:26px;
  line-height:1;
  font-weight:950;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.v110-plaque{
  width:90px;
  height:90px;
  border:3px solid #111;
  border-radius:50%;
}

.v110-mid{
  display:grid;
  grid-template-columns:86px 1fr;
  gap:14px;
  align-items:center;
  padding-left:12px;
  min-height:76px;
  margin-top:3px;
}

.v110-qr .label-mini-qr{
  width:68px;
  height:68px;
  border-width:4px;
}

.v110-dguv strong{
  display:block;
  font-size:22px;
  line-height:1;
}

.v110-dguv span{
  display:block;
  font-size:19px;
  font-weight:850;
  margin-top:5px;
}

.v110-barcode{
  width:56%;
  height:42px;
  margin:14px auto 0;
}

.v110-barcode .code128-svg{
  width:100%;
  height:100%;
  display:block;
}

.v110-human{
  text-align:center;
  font-size:12px;
  font-weight:850;
  letter-spacing:1.4px;
  margin-top:1px;
}


/* V1.11 – larger QR + stronger barcode */
.label-v111{padding:0 9px 5px}
.v111-topspace{height:13px}
.v111-head{display:grid;grid-template-columns:104px minmax(0,1fr) 95px;gap:10px;align-items:start}
.v111-logo{width:100px;height:86px;display:grid;place-items:center}
.v111-logo img{width:100%;height:100%;object-fit:contain;filter:contrast(1.55)}
.v111-inv{min-width:0}
.v111-inv span{display:block;font-size:12px;font-weight:800;margin-bottom:2px}
.v111-inv strong{display:block;font-size:27px;line-height:1;font-weight:950;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v111-plaque{width:91px;height:91px;border:3px solid #111;border-radius:50%}
.v111-middle{display:grid;grid-template-columns:112px 1fr;gap:14px;align-items:center;padding-left:7px;min-height:100px;margin-top:1px}
.v111-qr .label-mini-qr{width:98px;height:98px;border-width:4px}
.v111-dguv strong{display:block;font-size:23px;line-height:1}
.v111-dguv span{display:block;font-size:20px;font-weight:850;margin-top:5px}
.v111-barcode{width:64%;height:56px;margin:3px auto 0}
.v111-barcode .code128-svg{width:100%;height:100%;display:block}
.v111-human{text-align:center;font-size:13px;font-weight:850;letter-spacing:1.4px;margin-top:1px}


/* V1.12 – final label layout */
.label-v112{padding:0 10px 5px}
.v112-topspace{height:13px}
.v112-head{
  display:grid;
  grid-template-columns:112px minmax(0,1fr);
  gap:12px;
  align-items:start;
}
.v112-logo{width:108px;height:90px;display:grid;place-items:center}
.v112-logo img{
  width:100%;
  height:100%;
  object-fit:contain;
  filter:contrast(2.2) brightness(.72);
}
.v112-inv{min-width:0;padding-top:1px}
.v112-inv span{display:block;font-size:12px;font-weight:900;margin-bottom:2px}
.v112-inv strong{
  display:block;
  font-size:29px;
  line-height:1;
  font-weight:950;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.v112-middle{
  display:grid;
  grid-template-columns:120px 1fr;
  gap:16px;
  align-items:start;
  padding-left:7px;
  min-height:126px;
  margin-top:2px;
}
.v112-qr{
  align-self:end;
  margin-bottom:0;
}
.v112-qr .label-mini-qr{width:108px;height:108px;border-width:4px}
.v112-dguv{padding-top:8px}
.v112-dguv strong{display:block;font-size:23px;line-height:1}
.v112-dguv span{display:block;font-size:20px;font-weight:850;margin-top:5px}
.v112-barcode{
  width:62%;
  height:58px;
  margin:-59px 12px 0 auto;
}
.v112-barcode .code128-svg{width:100%;height:100%;display:block}
.v112-human{
  width:62%;
  margin:1px 12px 0 auto;
  text-align:center;
  font-size:13px;
  font-weight:850;
  letter-spacing:1.4px;
}


/* V1.13 – Label + Zebra Browser Print */
.label-v113{padding:0 10px 5px}
.v113-topspace{height:18px}
.v113-head{
  display:grid;
  grid-template-columns:118px minmax(0,1fr);
  gap:14px;
  align-items:start;
}
.v113-logo{width:114px;height:92px;display:grid;place-items:center}
.v113-logo img{
  width:100%;height:100%;object-fit:contain;
  filter:contrast(2.25) brightness(.70);
}
.v113-inv{min-width:0;padding-top:2px}
.v113-inv span{display:block;font-size:13px;font-weight:900;margin-bottom:3px}
.v113-inv strong{
  display:block;font-size:31px;line-height:1;font-weight:950;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
.v113-dguv{
  margin-left:136px;
  margin-top:-20px;
}
.v113-dguv strong{display:block;font-size:23px;line-height:1}
.v113-dguv span{display:block;font-size:20px;font-weight:850;margin-top:5px}
.v113-bottom{
  display:grid;
  grid-template-columns:120px minmax(0,1fr);
  gap:18px;
  align-items:end;
  margin-top:7px;
  padding-left:5px;
}
.v113-qr .label-mini-qr{width:108px;height:108px;border-width:4px}
.v113-barcode-wrap{align-self:end;padding-bottom:1px}
.v113-barcode{height:60px;width:100%}
.v113-barcode .code128-svg{width:100%;height:100%;display:block}
.v113-human{text-align:center;font-size:13px;font-weight:900;letter-spacing:1.5px;margin-top:2px}

.browserprint-status{
  display:flex;gap:12px;align-items:center;
  border:1px solid #d0d5dd;border-radius:8px;padding:13px 14px;
  margin:10px 0 15px;background:#f8fafc
}
.browserprint-status .bp-dot{
  width:13px;height:13px;border-radius:50%;background:#98a2b3;flex:0 0 auto
}
.browserprint-status strong,.browserprint-status small{display:block}
.browserprint-status small{color:#667085;margin-top:2px}
.browserprint-status.ok{background:#ecfdf3;border-color:#abefc6}
.browserprint-status.ok .bp-dot{background:#12b76a}
.browserprint-status.error{background:#fef3f2;border-color:#fecdca}
.browserprint-status.error .bp-dot{background:#f04438}
.browserprint-status.pending .bp-dot{background:#f79009}
.printer-select-label{margin-bottom:12px}
.direct-print-actions{display:flex;gap:8px;flex-wrap:wrap}
.bp-message{min-height:22px;margin-top:12px;font-weight:650}
.bp-message.success{color:#067647}
.bp-message.error{color:#b42318}
.bp-message.pending{color:#b54708}
.browserprint-help{
  margin-top:16px;padding:13px 14px;background:#eff8ff;
  border:1px solid #b2ddff;border-radius:8px;color:#344054
}
.browserprint-help p{margin:5px 0 0}
@media(max-width:650px){
  .direct-print-actions .button,.direct-print-actions button{width:100%}
}

.form-note{padding:12px 14px;background:#f8fafc;color:#475467}.form-note strong{color:#182230}

.v113-customer{margin-left:136px;margin-top:3px}
.v113-customer span{display:block;font-size:11px;color:#667085;font-weight:700}
.v113-customer strong{display:block;font-size:16px;line-height:1.1;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:260px}
.danger-actions{display:grid;gap:8px;margin-top:10px}
.button.warning{background:#f79009}
.button.danger{background:#d92d20}

.settings-db-warning{border-left:4px solid #f79009;background:#fffaeb}.settings-db-warning h2{margin-top:0}

/* V1.15f – Kunde größer, DGUV entfernt, QR tiefer */
.v115f-customer{
  margin-top:8px;
  margin-bottom:6px;
}
.v115f-customer span{
  font-size:13px;
  font-weight:800;
}
.v115f-customer strong{
  font-size:22px;
  line-height:1.05;
  font-weight:950;
  max-width:320px;
}

/* V1.16 – Auswahl Standard / Kabel-Wickeletikett */
.label-type-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.label-type-card{display:block;text-decoration:none;color:inherit;border:1px solid #d0d5dd;border-radius:12px;padding:14px;background:#fff}.label-type-card.selected{border:2px solid #1570ef;box-shadow:0 0 0 3px rgba(21,112,239,.08)}.label-type-card strong,.label-type-card span{display:block}.label-type-card span{color:#667085;margin-top:4px;font-size:13px}.type-mini{height:100px;border:1px solid #d0d5dd;border-radius:9px;margin-top:12px;position:relative;overflow:hidden;background:#fff}.standard-mini b{position:absolute;left:12px;top:13px;border:3px solid #111;padding:14px 9px}.standard-mini i{position:absolute;left:78px;top:22px;font-style:normal;font-weight:900}.standard-mini em{position:absolute;left:78px;bottom:18px;font-style:normal;font-weight:900;letter-spacing:-1px}.cable-mini:after{content:"";position:absolute;left:50%;top:0;bottom:0;border-left:1px dashed #98a2b3}.cable-mini em{position:absolute;left:8px;top:8px;bottom:8px;width:24px;writing-mode:vertical-rl;overflow:hidden;font-style:normal;font-weight:900;letter-spacing:-2px}.cable-mini b{position:absolute;left:42px;top:12px;border:3px solid #111;padding:9px 5px}.cable-mini i{position:absolute;left:84px;top:20px;writing-mode:vertical-rl;font-style:normal;font-weight:900}
.cable-label-preview{position:relative;width:min(100%,620px);aspect-ratio:57/32;border:1px solid #aab2bd;border-radius:14px;background:#fff;display:grid;grid-template-columns:1fr 1fr;overflow:hidden}.cable-half{position:relative;min-width:0}.cable-half.blank{background:#fff}.cable-fold-line{position:absolute;left:50%;top:0;bottom:0;border-left:2px dashed #98a2b3;pointer-events:none}.cable-barcode-rot{position:absolute;left:12px;top:10px;bottom:10px;width:74px;transform:none;overflow:hidden}.cable-barcode-rot .code128-svg{width:100%;height:100%;display:block;transform:rotate(90deg) scaleX(.95);transform-origin:center}.cable-qr-rot{position:absolute;left:105px;top:16px}.cable-qr-rot .label-mini-qr{width:82px;height:82px;border-width:4px}.cable-id-rot{position:absolute;left:215px;top:18px;writing-mode:vertical-rl;text-orientation:mixed;font-size:24px;font-weight:950;letter-spacing:.5px}
.pruefgeraet-scan-card{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border:1px solid #b2ddff;background:#eff8ff;border-radius:10px;margin-bottom:16px}.pruefgeraet-scan-card strong,.pruefgeraet-scan-card small{display:block}.pruefgeraet-scan-card small{color:#475467;margin-top:3px}.scan-selected{border-color:#75e0a7;background:#ecfdf3}.qr-action-group{display:flex;gap:6px;flex-wrap:wrap}.pruefgeraet-qr-preview{width:300px;max-width:100%;aspect-ratio:1.55;border:1px solid #d0d5dd;border-radius:12px;padding:18px;background:#fff;display:grid;grid-template-columns:120px 1fr;gap:14px;align-items:center}.pruefgeraet-qr-preview .label-mini-qr{width:105px;height:105px}.pruefgeraet-qr-preview strong{font-size:18px}.pruefgeraet-qr-preview small{display:block;color:#667085;margin-top:6px}
@media(max-width:700px){.label-type-grid{grid-template-columns:1fr}.pruefgeraet-scan-card{align-items:flex-start;flex-direction:column}.cable-id-rot{left:195px}}


/* V1.17 */
.label-help-card{
  background:#f8fbff;
  border:1px solid #d7e7ff;
}
.label-help-card h2{margin-top:0}
.label-help-card p{margin-bottom:0;color:#475467}

.label-type-card{
  border:1px solid #d0d5dd;
  border-radius:12px;
  padding:14px;
  background:#fff;
  transition:.18s ease;
}
.label-type-card:hover{
  border-color:#84adff;
  box-shadow:0 4px 14px rgba(16,24,40,.06);
}
.label-type-card.active{
  border:2px solid #1570ef;
  background:#f5f9ff;
}
.qr-selected-note{
  display:flex;
  gap:10px;
  align-items:center;
  background:#ecfdf3;
  border:1px solid #abefc6;
  color:#067647;
}
.qr-selected-note span{color:#027a48}


/* V1.17a – Kabel-Label entspricht jetzt der echten ZPL */
.cable-half.printed{
  position:relative;
  overflow:hidden;
  padding:4mm;
}
.cable-half.printed .cable-barcode-rot{
  position:absolute;
  left:4mm;
  top:4mm;
  bottom:4mm;
  width:6mm;
  margin:0;
  transform:none;
  display:flex;
  align-items:stretch;
  justify-content:center;
}
.cable-half.printed .cable-barcode-rot .code128-svg{
  width:100%;
  height:100%;
  transform:rotate(90deg);
  transform-origin:center;
}
.cable-half.printed .cable-qr-rot{
  position:absolute;
  left:12mm;
  top:5mm;
  transform:none;
}
.cable-half.printed .cable-id-rot{
  position:absolute;
  left:21mm;
  top:5mm;
  writing-mode:vertical-rl;
  transform:rotate(180deg);
  font-size:20px;
  font-weight:950;
  line-height:1;
}


/* V1.17b – Kabel-ZPL: größerer QR + Inventarnummer darunter */
.cable-half.printed .cable-qr-rot{
  left:13mm;
  top:4mm;
}
.cable-half.printed .cable-qr-rot .label-mini-qr{
  width:11mm;
  height:11mm;
}
.cable-half.printed .cable-id-rot{
  left:14mm;
  top:16mm;
  font-size:22px;
  font-weight:950;
  writing-mode:vertical-rl;
  transform:rotate(180deg);
}


/* V1.18 – Scanner + Stapeldruck */
.scan-action-grid{
  display:grid;
  grid-template-columns:1.25fr 1fr;
  gap:12px;
  margin:14px 0 16px;
}
.scan-action-card{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  padding:15px 16px;
  background:#fff;
  border:1px solid #d0d5dd;
  border-radius:12px;
}
.scan-action-card.primary-scan{
  border-color:#84adff;
  background:linear-gradient(135deg,#eff8ff,#f8fbff);
}
.scan-action-card.scan-selected{
  border-color:#abefc6;
  background:#ecfdf3;
}
.scan-action-icon{
  width:38px;height:38px;border-radius:10px;
  display:grid;place-items:center;
  background:#eaf2ff;color:#175cd3;
  font-size:22px;font-weight:900;
}
.scan-action-copy strong,.scan-action-copy small{display:block}
.scan-action-copy strong{font-size:15px}
.scan-action-copy small{margin-top:3px;color:#667085;line-height:1.35}
.scan-main-btn{min-width:150px}
.scan-result{
  display:none;
  padding:11px 14px;
  margin:-4px 0 14px;
  border:1px solid #abefc6;
  background:#ecfdf3;
  color:#067647;
  border-radius:9px;
}
.scan-result.visible{display:flex;gap:10px;align-items:center}
.scan-result span{color:#027a48}

.qr-scan-modal[hidden]{display:none}
.qr-scan-modal{
  position:fixed;inset:0;z-index:9999;
  background:rgba(16,24,40,.74);
  display:grid;place-items:center;
  padding:18px;
}
.qr-scan-dialog{
  width:min(560px,100%);
  background:#fff;border-radius:16px;
  overflow:hidden;box-shadow:0 22px 60px rgba(0,0,0,.28)
}
.qr-scan-head{
  display:flex;justify-content:space-between;align-items:center;
  padding:16px 18px;border-bottom:1px solid #eaecf0
}
.qr-scan-head strong,.qr-scan-head small{display:block}
.qr-scan-head small{color:#667085;margin-top:3px}
.qr-close{
  border:0;background:#f2f4f7;border-radius:50%;
  width:36px;height:36px;font-size:25px;cursor:pointer
}
.qr-camera-wrap{
  position:relative;
  aspect-ratio:4/3;
  background:#101828;
  overflow:hidden
}
.qr-camera-wrap video{
  width:100%;height:100%;object-fit:cover
}
.qr-camera-frame{
  position:absolute;
  width:54%;aspect-ratio:1;
  left:23%;top:14%;
  border:3px solid rgba(255,255,255,.95);
  border-radius:16px;
  box-shadow:0 0 0 999px rgba(0,0,0,.18)
}
.qr-scan-status{
  padding:11px 16px;font-weight:700;background:#f9fafb
}
.qr-scan-status.success{color:#067647;background:#ecfdf3}
.qr-scan-status.error{color:#b42318;background:#fef3f2}
.qr-scan-status.warning{color:#b54708;background:#fffaeb}
.qr-manual-fallback{
  padding:14px 16px 18px;
  display:grid;grid-template-columns:1fr auto;gap:8px
}
.qr-manual-fallback span{grid-column:1/-1;color:#667085;font-size:12px}
.modal-open{overflow:hidden}

.betriebsmittel-select-label{
  border:1px solid #b2ddff;
  background:#f5fbff;
  border-radius:9px;
  padding:10px;
}

.batch-toolbar{
  position:sticky;
  top:8px;
  z-index:20;
  box-shadow:0 6px 20px rgba(16,24,40,.08)
}
.batch-toolbar-title strong,.batch-toolbar-title span{display:block}
.batch-toolbar-title strong{font-size:18px}
.batch-toolbar-title span{color:#667085;margin-top:3px}
.batch-controls{
  display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin-top:14px
}
.batch-controls label{min-width:150px}
.batch-controls label select,.batch-controls label input{margin-top:5px}
.batch-controls input[type=number]{max-width:110px}
.batch-status-row{
  display:flex;justify-content:space-between;gap:12px;
  margin-top:12px;padding-top:10px;border-top:1px solid #eaecf0;
  color:#475467;font-weight:700
}
#batch-printer-status.ready{color:#067647}
.batch-table .check-col{width:42px;text-align:center}
.batch-table input[type=checkbox]{
  width:19px;height:19px;accent-color:#1570ef
}
.table-card{overflow-x:auto}

@media(max-width:800px){
  .scan-action-grid{grid-template-columns:1fr}
  .scan-action-card{grid-template-columns:auto 1fr}
  .scan-action-card .button{grid-column:1/-1;width:100%}
  .batch-toolbar{position:static}
  .batch-controls>*{width:100%}
}


/* V1.19 – iPad/Safari QR Scanner */
.qr-camera-wrap::before{
  content:"QR";
  position:absolute;
  top:12px;
  left:12px;
  z-index:3;
  padding:5px 8px;
  border-radius:7px;
  background:rgba(16,24,40,.72);
  color:#fff;
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
}
.qr-scan-status.success{
  font-weight:800;
}
\n/* V1.20 – Kabel-Label 30 x 9 mm */\n.cable30-preview{width:min(100%,600px);aspect-ratio:30/9;border:2px solid #111;border-radius:8px;background:#fff;padding:6px;display:grid;grid-template-columns:minmax(0,1fr) 29%;gap:5px;margin:14px auto}.cable30-left{min-width:0;display:grid;grid-template-rows:minmax(0,1fr) auto}.cable30-barcode{min-height:0;overflow:hidden}.cable30-barcode .code128-svg{width:100%;height:100%;display:block}.cable30-id{text-align:center;font-size:clamp(12px,2vw,22px);font-weight:950;line-height:1;white-space:nowrap}.cable30-qr{aspect-ratio:1;align-self:center;width:100%;overflow:hidden}.cable30-qr canvas,.cable30-qr img{width:100%!important;height:100%!important;display:block!important;image-rendering:pixelated}\n

/* V1.21 – Sammeldruck und Übersichten */
.batch-mode-cards{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-top:16px;
}
.batch-mode-card{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
  border:1px solid #d0d5dd;
  border-radius:12px;
  padding:15px;
  background:#fff;
}
.batch-mode-card strong,
.batch-mode-card span{
  display:block;
}
.batch-mode-card span{
  color:#667085;
  margin-top:4px;
  line-height:1.35;
}
.batch-controls.compact{
  margin-top:12px;
}
@media(max-width:800px){
  .batch-mode-cards{grid-template-columns:1fr}
  .batch-mode-card{display:grid}
  .batch-mode-card .button{width:100%}
}


/* V1.23 – Kabel-Label 30 x 9 mm: nur QR + Inventarnummer */
.cable30-preview.cable30-preview-v123{
  grid-template-columns:29% minmax(0,1fr);
  grid-template-rows:1fr;
  gap:10px;
  align-items:center;
}
.cable30-preview-v123 .cable30-qr{grid-column:1;width:100%;max-height:100%;aspect-ratio:1}
.cable30-preview-v123 .cable30-id-v123{grid-column:2;font-size:clamp(18px,3.2vw,34px);font-weight:950;line-height:1;text-align:center;white-space:nowrap;overflow:hidden}


/* V1.25 – Massenanlage & Gossen CSV */
.page-actions{
  display:flex;
  gap:9px;
  align-items:center;
  flex-wrap:wrap;
}
.bulk-info,
.gossen-export-note{
  display:flex;
  flex-direction:column;
  gap:5px;
  background:#f8fbff;
  border:1px solid #d7e7ff;
}
.bulk-info span,
.gossen-export-note span{
  color:#475467;
  line-height:1.45;
}
.bulk-submit-row{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
@media(max-width:720px){
  .page-actions{width:100%}
  .page-actions .button{flex:1;text-align:center}
}


/* V1.26 – Bedienungsanleitungen */
.manual-admin-upload{display:grid;gap:8px;margin-top:12px}.manual-admin-upload input[type=file]{width:100%}.document-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0}.manual-admin-card p{overflow-wrap:anywhere}@media(max-width:720px){.document-row{align-items:flex-start;flex-direction:column}.document-row .button{width:100%;text-align:center}}


/* V1.27 – Freigabe Kunden-Bedienungsanleitungen */
.manual-approval-box{
  display:grid;
  gap:9px;
  padding:13px;
  margin-bottom:14px;
  border:1px solid #fec84b;
  background:#fffaeb;
  border-radius:10px;
}
.manual-approval-box strong,
.manual-approval-box small{display:block}
.manual-approval-box small{color:#667085}
.manual-approval-actions{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}
.manual-approval-actions form{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:0;
}


/* V1.29 – Dashboard Freigaben */
.dashboard-manual-approval-card{
  border-color:#fec84b;
  background:#fffcf5;
}
.manual-dashboard-list{
  display:grid;
  gap:8px;
}
.manual-dashboard-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:12px 14px;
  border:1px solid #f2d68a;
  background:#fff;
  border-radius:10px;
  text-decoration:none;
  color:inherit;
}
.manual-dashboard-item:hover{
  border-color:#eaaa08;
  background:#fffaeb;
}
.manual-dashboard-item strong,
.manual-dashboard-item span{
  display:block;
}
.manual-dashboard-item span{
  margin-top:3px;
  color:#667085;
  font-size:13px;
}
.manual-dashboard-meta{
  text-align:right;
  color:#667085;
  font-size:12px;
  white-space:nowrap;
}
.manual-dashboard-meta b{
  display:block;
  margin-top:4px;
  color:#b54708;
}
@media(max-width:700px){
  .manual-dashboard-item{
    align-items:flex-start;
    flex-direction:column;
  }
  .manual-dashboard-meta{
    text-align:left;
  }
}


/* V1.30 – Betriebsmittel Mehrfachlöschen + Anleitungsaktionen */
.bulk-equipment-toolbar{
  display:grid;
  gap:10px;
  margin-bottom:14px;
}
.bulk-equipment-toolbar>div:first-child{
  display:flex;
  gap:10px;
  align-items:baseline;
}
.bulk-equipment-toolbar #equipment-selection-count{
  color:#667085;
}
.manual-approved-actions,
.document-actions{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}
.manual-approved-actions form,
.document-actions form{
  margin:0;
}


/* V1.31 – TS-Tools Branding / Web-App */
.app-brand-icon{
  width:42px!important;
  height:42px!important;
  border-radius:11px;
  object-fit:cover;
  box-shadow:0 4px 14px rgba(0,0,0,.28);
}
.side-brand{height:74px;padding:0 14px}
.brand-main{display:flex;flex-direction:column;font-weight:900;line-height:1.05;letter-spacing:.2px}
.brand-subline{font-size:9px;font-weight:600;color:#98a2b3;letter-spacing:0;margin-top:5px;white-space:nowrap}
.version-pill{margin-left:auto;font-size:9px;background:rgba(51,189,74,.14);border:1px solid rgba(51,189,74,.35);color:#75e08b;padding:3px 5px;border-radius:999px}
.side-nav a.active{color:#56d364;background:rgba(47,174,70,.12);box-shadow:inset 3px 0 0 #33bd4a}
.side-nav a:hover{background:rgba(255,255,255,.06)}

/* Prüfetikett-Erfassung */
.label-check-section{display:grid;gap:8px}
.field-title{font-weight:800;color:#344054}
.label-status-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.label-status-card{
  position:relative;
  display:grid!important;
  grid-template-columns:auto auto 1fr;
  align-items:center;
  gap:11px;
  padding:15px!important;
  border:1px solid #d0d5dd;
  border-radius:12px;
  background:#fff;
  cursor:pointer;
  transition:.15s ease;
}
.label-status-card:hover{border-color:#75e0a7;background:#f6fef9}
.label-status-card:has(input:checked){border-color:#32d583;box-shadow:0 0 0 3px rgba(50,213,131,.13);background:#ecfdf3}
.label-status-card.renewed:has(input:checked){border-color:#f79009;box-shadow:0 0 0 3px rgba(247,144,9,.13);background:#fffaeb}
.label-status-card input{width:18px;height:18px}
.label-status-card strong,.label-status-card small{display:block}
.label-status-card small{color:#667085;margin-top:3px;line-height:1.35}
.label-status-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:9px;background:#ecfdf3;color:#067647;font-weight:900}
.label-status-card.renewed .label-status-icon{background:#fffaeb;color:#b54708}
.single-result{grid-template-columns:minmax(0,520px)!important}

/* Web-App Mobile-Optik */
@media(max-width:760px){
  body{padding-bottom:76px;background:#f4f6f8}
  .sidebar{
    position:fixed!important;
    left:0!important;right:0!important;bottom:0!important;top:auto!important;
    width:100%!important;height:68px!important;
    background:#07151e!important;
    border-top:1px solid rgba(255,255,255,.1);
    z-index:100;
  }
  .side-brand{display:none!important}
  .side-nav{
    height:68px;
    display:flex!important;
    align-items:stretch;
    overflow-x:auto;
    gap:0;
    padding:0 4px!important;
    scrollbar-width:none;
  }
  .side-nav::-webkit-scrollbar{display:none}
  .side-nav a{
    min-width:76px;
    flex:1 0 76px;
    display:flex!important;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:2px!important;
    padding:7px 5px!important;
    border-radius:0!important;
    font-size:10px!important;
    text-align:center;
  }
  .side-nav a.active{
    box-shadow:none!important;
    background:transparent!important;
    color:#45d75f!important;
  }
  .nav-icon{font-size:20px!important;line-height:1}
  .app-topbar{
    position:sticky!important;
    top:0!important;
    background:#07151e!important;
    color:#fff!important;
    height:58px!important;
    padding:0 14px!important;
    z-index:70;
  }
  .breadcrumb-title{font-weight:850}
  .user-pill{background:rgba(255,255,255,.08)!important;color:#fff!important;border-color:rgba(255,255,255,.12)!important}
  .container.app-container{padding-top:16px!important}
}
@media(max-width:640px){
  .label-status-grid{grid-template-columns:1fr}
}


/* V1.32 – Web Push */
.topbar-actions{display:flex;align-items:center;gap:10px}
.push-top-button{
  appearance:none;
  border:1px solid #d0d5dd;
  background:#fff;
  color:#344054;
  border-radius:9px;
  padding:8px 11px;
  font-weight:800;
  cursor:pointer;
}
.push-top-button:hover{border-color:#32d583;color:#067647}
.push-dashboard-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:16px;
  background:linear-gradient(135deg,#07151e,#102631);
  color:#fff;
  border-color:#183542;
}
.push-dashboard-card h2{margin:4px 0}
.push-dashboard-card p{color:#cbd5df;max-width:760px}
.push-status{font-size:13px;margin-top:8px;color:#667085;font-weight:650}
.push-dashboard-card .push-status{color:#cbd5df}
.push-status.success{color:#067647}
.push-dashboard-card .push-status.success{color:#75e08b}
.push-status.error{color:#b42318}
.push-dashboard-card .push-status.error{color:#fda29b}
.push-settings-card label{display:block;margin-top:14px}
.push-settings-card input{width:100%}

@media(max-width:760px){
  .push-top-button{font-size:0;width:38px;height:38px;padding:0;border-radius:50%;background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.12)}
  .push-top-button::before{content:'🔔';font-size:17px}
  .push-dashboard-card{align-items:stretch;flex-direction:column}
  .push-dashboard-card .button{width:100%}
}


/* =========================================================
   V1.33 – Einheitliche Tabellen & Auswahlfelder
   ========================================================= */
.table-wrap{
  width:100%;
  overflow-x:auto;
  border-radius:10px;
}
table{
  width:100%;
  border-collapse:collapse;
  border-spacing:0;
  font-size:14px;
}
table thead th{
  height:46px;
  padding:10px 14px;
  background:#f8fafc;
  color:#475467;
  font-size:12px;
  font-weight:800;
  letter-spacing:.02em;
  text-align:left;
  white-space:nowrap;
  border-bottom:1px solid #e4e7ec;
  vertical-align:middle;
}
table tbody td{
  min-height:52px;
  padding:12px 14px;
  border-bottom:1px solid #eaecf0;
  vertical-align:middle;
  line-height:1.35;
}
table tbody tr:last-child td{border-bottom:0}
table tbody tr:hover{background:#fafbfc}
table .button.small{
  min-height:32px;
  padding:6px 10px;
  font-size:12px;
  line-height:18px;
}
.check-col{
  width:50px!important;
  min-width:50px!important;
  max-width:50px!important;
  padding-left:12px!important;
  padding-right:12px!important;
  text-align:center!important;
}
table input[type="checkbox"],
.bulk-equipment-toolbar input[type="checkbox"]{
  appearance:none;
  -webkit-appearance:none;
  width:20px!important;
  height:20px!important;
  min-width:20px!important;
  margin:0!important;
  border:2px solid #98a2b3;
  border-radius:5px;
  background:#fff;
  display:inline-grid;
  place-content:center;
  vertical-align:middle;
  cursor:pointer;
  transition:.12s ease;
}
table input[type="checkbox"]::before,
.bulk-equipment-toolbar input[type="checkbox"]::before{
  content:"";
  width:10px;
  height:10px;
  transform:scale(0);
  transition:.1s transform ease-in-out;
  background:#fff;
  clip-path:polygon(14% 44%,0 59%,40% 100%,100% 22%,84% 7%,38% 66%);
}
table input[type="checkbox"]:checked,
.bulk-equipment-toolbar input[type="checkbox"]:checked{
  background:#16a34a;
  border-color:#16a34a;
}
table input[type="checkbox"]:checked::before,
.bulk-equipment-toolbar input[type="checkbox"]:checked::before{transform:scale(1)}
table input[type="checkbox"]:indeterminate{
  background:#16a34a;
  border-color:#16a34a;
}
table input[type="checkbox"]:indeterminate::before{
  transform:scale(1);
  clip-path:none;
  width:10px;
  height:2px;
}
.table-primary{font-weight:750}
.table-secondary{font-size:12px;color:#667085;margin-top:3px}

/* Push-Einstellungen */
.push-settings-form{display:grid;gap:14px}
.push-master-row,
.settings-subcard-head,
.push-device-box{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
}
.push-master-row{
  padding:15px 16px;
  border-radius:12px;
  background:#07151e;
  color:#fff;
}
.push-master-row small,
.settings-subcard-head small{display:block;margin-top:4px;color:#98a2b3}
.settings-subcard{
  display:grid;
  gap:14px;
  padding:16px;
  border:1px solid #e4e7ec;
  border-radius:12px;
  background:#fff;
}
.push-grid{margin:0!important}
.switch-control{
  position:relative;
  display:inline-flex!important;
  padding:0!important;
  flex:0 0 auto;
}
.switch-control input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.switch-control span{
  width:46px;
  height:26px;
  border-radius:999px;
  background:#d0d5dd;
  position:relative;
  cursor:pointer;
  transition:.18s ease;
}
.switch-control span::after{
  content:"";
  position:absolute;
  width:20px;
  height:20px;
  left:3px;
  top:3px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 1px 4px rgba(16,24,40,.2);
  transition:.18s ease;
}
.switch-control input:checked + span{background:#16a34a}
.switch-control input:checked + span::after{transform:translateX(20px)}
.settings-check-row{
  display:flex!important;
  flex-direction:row!important;
  align-items:flex-start!important;
  gap:10px;
  padding:10px 0!important;
}
.settings-check-row input[type="checkbox"]{
  width:20px!important;height:20px!important;min-width:20px!important;margin-top:1px!important;
  accent-color:#16a34a;
}
.settings-check-row strong,.settings-check-row small{display:block}
.settings-check-row small{color:#667085;margin-top:2px}
.push-device-box{
  padding:14px 16px;
  background:#f8fafc;
  border-radius:12px;
  border:1px solid #e4e7ec;
}
.cron-box{
  padding:15px 16px;
  border:1px dashed #98a2b3;
  border-radius:12px;
  background:#fcfcfd;
}
.cron-box p{color:#667085}
.settings-save-row{display:flex;justify-content:flex-end}

@media(max-width:760px){
  table{font-size:13px}
  table thead th{padding:9px 10px;height:42px}
  table tbody td{padding:10px;min-height:48px}
  .check-col{width:46px!important;min-width:46px!important;max-width:46px!important}
  .push-master-row,.settings-subcard-head,.push-device-box{align-items:flex-start}
  .push-device-box{flex-direction:column}
  .push-device-box .button{width:100%}
  .settings-save-row .button,.settings-save-row button{width:100%}
}


/* =========================================================
   V1.33a – Checkbox-Proportionen & Abstand Page-Actions
   ========================================================= */

/* Mehrfachauswahl: Browser-/globale Input-Regeln vollständig neutralisieren */
table input[type="checkbox"],
.bulk-equipment-toolbar input[type="checkbox"]{
  box-sizing:border-box !important;
  width:20px !important;
  height:20px !important;
  min-width:20px !important;
  min-height:20px !important;
  max-width:20px !important;
  max-height:20px !important;
  padding:0 !important;
  margin:0 !important;
  line-height:20px !important;
  aspect-ratio:1 / 1;
  flex:0 0 20px !important;
  border-width:2px !important;
}

/* Auswahlspalte ebenfalls exakt und mittig halten */
table th.check-col,
table td.check-col{
  box-sizing:border-box;
  width:52px !important;
  min-width:52px !important;
  max-width:52px !important;
  padding:12px 16px !important;
  text-align:center !important;
  vertical-align:middle !important;
}

table th.check-col input[type="checkbox"],
table td.check-col input[type="checkbox"]{
  display:inline-grid !important;
  position:static !important;
  transform:none !important;
}

/* Abstand zwischen Seitentitel/Aktionsbuttons und folgendem Inhalt */
.pagehead{
  margin-bottom:22px !important;
}

.pagehead + form,
.pagehead + .card,
.pagehead + .table-wrap{
  margin-top:0 !important;
}

@media(max-width:760px){
  .pagehead{
    margin-bottom:18px !important;
  }

  table th.check-col,
  table td.check-col{
    width:48px !important;
    min-width:48px !important;
    max-width:48px !important;
    padding:10px 14px !important;
  }

  table input[type="checkbox"],
  .bulk-equipment-toolbar input[type="checkbox"]{
    width:20px !important;
    height:20px !important;
    min-width:20px !important;
    min-height:20px !important;
    max-width:20px !important;
    max-height:20px !important;
  }
}


/* V1.33b – Filterziel für Sammel-Push */
.equipment-filter-banner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
  padding:13px 16px;
  background:#fffaeb;
  border-color:#fedf89;
}
.equipment-filter-banner>div{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.equipment-filter-banner span{
  color:#667085;
  font-size:12px;
}
@media(max-width:640px){
  .equipment-filter-banner{
    align-items:stretch;
    flex-direction:column;
  }
  .equipment-filter-banner .button{
    width:100%;
    text-align:center;
  }
}


/* =========================================================
   V1.33c – Branding + mobile Navigation
   ========================================================= */

/* Versionsbadge bleibt sicher innerhalb der dunklen Sidebar */
.side-brand{
  position:relative;
  overflow:hidden;
  padding-right:58px !important;
}
.side-brand .brand-main{
  min-width:0;
  flex:1 1 auto;
}
.side-brand .version-pill{
  position:absolute;
  right:9px;
  top:9px;
  margin:0 !important;
  max-width:48px;
  white-space:nowrap;
  font-size:8px !important;
  line-height:1.2;
  padding:3px 5px !important;
  border-radius:999px !important;
  box-sizing:border-box;
}
.nav-label-mobile,
.mobile-more-toggle,
.mobile-more-menu{
  display:none;
}

/* Mobile: nur vier Hauptpunkte + "Mehr" in der Bottom-Bar */
@media(max-width:760px){
  body{
    padding-bottom:72px !important;
  }

  .sidebar{
    position:fixed !important;
    left:0 !important;
    right:0 !important;
    top:auto !important;
    bottom:0 !important;
    width:100% !important;
    height:68px !important;
    overflow:visible !important;
    z-index:100;
  }

  .side-brand{
    display:none !important;
  }

  .side-nav{
    display:grid !important;
    grid-template-columns:repeat(5,1fr);
    width:100%;
    height:68px;
    padding:0 !important;
    gap:0 !important;
    overflow:visible !important;
  }

  .side-nav .mobile-primary,
  .side-nav .mobile-more-toggle{
    min-width:0 !important;
    width:100%;
    height:68px;
    padding:7px 2px !important;
    margin:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    color:#b8c5cc;
    display:flex !important;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px !important;
    font:inherit;
    cursor:pointer;
    text-align:center;
    box-shadow:none !important;
  }

  .side-nav .mobile-primary.active,
  .side-nav .mobile-more-toggle.active,
  .side-nav .mobile-more-toggle[aria-expanded="true"]{
    color:#52d769 !important;
  }

  .side-nav .mobile-primary .nav-icon,
  .side-nav .mobile-more-toggle .nav-icon{
    width:auto !important;
    height:22px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:20px !important;
    line-height:1 !important;
    flex:0 0 22px;
  }

  .side-nav .nav-label{
    display:block;
    max-width:100%;
    font-size:10px !important;
    line-height:1.05;
    font-weight:700;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .nav-label-desktop{
    display:none !important;
  }
  .nav-label-mobile{
    display:block !important;
  }

  /* Diese Links liegen mobil ausschließlich im Mehr-Menü */
  .side-nav .mobile-more-item{
    display:none !important;
  }

  .mobile-more-toggle{
    appearance:none;
    -webkit-appearance:none;
  }

  /* Bottom-Sheet für die seltener benötigten Bereiche */
  .mobile-more-menu{
    position:fixed;
    left:10px;
    right:10px;
    bottom:78px;
    z-index:120;
    padding:8px 12px 14px;
    background:#0b1d28;
    color:#fff;
    border:1px solid rgba(255,255,255,.10);
    border-radius:17px;
    box-shadow:0 18px 50px rgba(0,0,0,.34);
  }
  .mobile-more-menu:not([hidden]){
    display:block !important;
  }
  .mobile-more-handle{
    width:38px;
    height:4px;
    border-radius:999px;
    background:rgba(255,255,255,.28);
    margin:1px auto 9px;
  }
  .mobile-more-title{
    font-size:13px;
    font-weight:850;
    color:#fff;
    padding:0 4px 8px;
  }
  .mobile-more-links{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
  }
  .mobile-more-links a{
    min-height:54px;
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px 12px;
    color:#d8e2e8;
    background:rgba(255,255,255,.045);
    border:1px solid rgba(255,255,255,.06);
    border-radius:11px;
    font-size:13px;
    font-weight:700;
  }
  .mobile-more-links a.active{
    color:#65df7b;
    background:rgba(45,192,75,.12);
    border-color:rgba(45,192,75,.22);
  }
  .mobile-more-links .nav-icon{
    width:24px !important;
    flex:0 0 24px;
    font-size:18px !important;
  }

  body.mobile-more-open::before{
    content:"";
    position:fixed;
    inset:0;
    background:rgba(5,15,22,.28);
    z-index:90;
    pointer-events:none;
  }
}

@media(max-width:380px){
  .side-nav .nav-label{
    font-size:9px !important;
  }
  .mobile-more-links{
    grid-template-columns:1fr;
  }
}

/* Desktop: Versionsbadge etwas dezenter und vollständig im Branding */
@media(min-width:761px){
  .side-brand .brand-subline{
    max-width:130px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
}


/* =========================================================
   V1.34 – Rechnungen & Zeiterfassung
   ========================================================= */
.price-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.money-input{display:flex;align-items:stretch}
.money-input input{border-radius:5px 0 0 5px}
.money-input span{
  display:flex;align-items:center;padding:0 10px;
  border:1px solid #cfd6de;border-left:0;border-radius:0 5px 5px 0;
  background:#f8fafc;color:#667085;white-space:nowrap;
}
.price-actions{margin-top:14px}

.invoice-filter{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1fr;
  gap:12px;
}
.invoice-filter-actions{
  grid-column:1/-1;
  display:flex;gap:8px;flex-wrap:wrap;
}
.invoice-preview-grid{
  display:grid;
  grid-template-columns:minmax(0,1.7fr) 310px;
  gap:16px;
}
.invoice-summary{align-self:start;display:grid;gap:0}
.invoice-summary>div{
  display:flex;justify-content:space-between;gap:12px;
  padding:10px 0;border-bottom:1px solid #edf0f3;
}
.invoice-summary>div span{color:#667085}
.invoice-summary .invoice-total{font-size:17px;padding:14px 0}
.invoice-summary form{margin-top:14px}
.invoice-summary form button{width:100%}
.invoice-summary>small{display:block;color:#667085;margin-top:9px}

.invoice-screen-actions{
  display:flex;gap:8px;align-items:center;flex-wrap:wrap;
  margin-bottom:18px;
}
.invoice-screen-actions form{margin:0}
.invoice-paper{
  width:min(100%,900px);
  min-height:1120px;
  margin:0 auto 30px;
  padding:56px 64px;
  background:#fff;
  border:1px solid #e1e6eb;
  box-shadow:0 4px 20px rgba(16,24,40,.08);
}
.invoice-letter-head{display:flex;justify-content:space-between;gap:30px;margin-bottom:58px}
.invoice-brand{font-size:24px;font-weight:900;color:#07151e;margin-bottom:8px}
.invoice-meta{text-align:right;display:flex;flex-direction:column;align-items:flex-end}
.invoice-meta>span{font-size:12px;color:#667085;text-transform:uppercase;letter-spacing:.08em}
.invoice-meta>strong{font-size:23px;margin:3px 0 8px}
.invoice-address{line-height:1.55;margin-bottom:42px}
.invoice-paper h1{font-size:25px;margin-bottom:24px}
.invoice-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:34px}
.invoice-facts>div{display:flex;flex-direction:column}
.invoice-facts span{font-size:11px;text-transform:uppercase;color:#667085;letter-spacing:.04em}
.invoice-facts strong{margin-top:3px}
.invoice-table th,.invoice-table td{padding:12px 10px}
.invoice-table .num{text-align:right}
.invoice-totals{width:360px;margin:28px 0 36px auto}
.invoice-totals>div{display:flex;justify-content:space-between;padding:7px 0}
.invoice-totals .grand{border-top:2px solid #07151e;margin-top:5px;padding-top:12px;font-size:18px}
.invoice-footer-text{border-top:1px solid #e1e6eb;padding-top:22px;color:#475467;font-size:12px}

/* Time clock */
.time-clock-card{
  display:flex;align-items:center;justify-content:space-between;gap:20px;
  background:linear-gradient(135deg,#07151e,#102d38);
  color:#fff;border-radius:14px;padding:22px 24px;margin-bottom:18px;
  box-shadow:0 5px 18px rgba(7,21,30,.16);
}
.time-clock-card.running{background:linear-gradient(135deg,#07351c,#0d552a)}
.time-clock-card h2{font-size:22px;margin:3px 0}
.time-clock-card span{color:#cbd5df}
.time-clock-card.running span{color:#c9f4d6}
.clock-main-button{min-width:180px;min-height:52px;font-size:16px}
.clock-out-form{display:flex;gap:8px;align-items:center;min-width:min(100%,430px)}
.clock-out-form input{background:#fff}
.time-stats .stat-card strong{font-size:20px}
.time-filter{
  display:flex;align-items:end;gap:10px;flex-wrap:wrap;
  margin-bottom:16px;
}
.time-filter label{min-width:180px}
.time-filter button{margin-bottom:0}

@media(max-width:900px){
 .invoice-preview-grid{grid-template-columns:1fr}
 .invoice-summary{order:-1}
 .invoice-filter{grid-template-columns:1fr 1fr}
}
@media(max-width:650px){
 .price-grid,.invoice-filter{grid-template-columns:1fr}
 .time-clock-card{flex-direction:column;align-items:stretch}
 .clock-out-form{flex-direction:column;align-items:stretch;min-width:0}
 .clock-main-button{width:100%}
 .invoice-paper{padding:28px 20px;min-height:0}
 .invoice-letter-head{margin-bottom:36px}
 .invoice-facts{grid-template-columns:1fr 1fr}
 .invoice-totals{width:100%}
}

/* Druckbare Rechnung */
@media print{
 body{background:#fff!important}
 .sidebar,.app-topbar,.invoice-screen-actions,.app-footer{display:none!important}
 .container.app-container{margin:0!important;padding:0!important}
 .container{padding:0!important}
 .invoice-paper{
   width:100%!important;min-height:0!important;margin:0!important;
   padding:14mm 16mm!important;border:0!important;box-shadow:none!important;
 }
 .invoice-paper .badge{border:1px solid #999}
}


/* V1.34a – Zeiterfassung mit Kunde */
.clock-in-form{
  display:grid;
  grid-template-columns:minmax(220px,340px) auto;
  gap:10px;
  align-items:end;
}
.clock-in-form label{
  color:#fff;
}
.clock-in-form select{
  background:#fff;
  color:#17202a;
}
@media(max-width:760px){
  .side-nav{
    grid-template-columns:repeat(6,1fr) !important;
  }
  .side-nav .nav-label{
    font-size:9px !important;
  }
  .side-nav .mobile-primary,
  .side-nav .mobile-more-toggle{
    padding-left:1px !important;
    padding-right:1px !important;
  }
  .clock-in-form{
    grid-template-columns:1fr;
  }
}


/* V1.34b – Monatsdiagramm Zeiterfassung */
.time-chart-card{
  overflow:hidden;
}
.time-chart-total{
  font-size:14px;
  color:#067647;
  background:#ecfdf3;
  border:1px solid #abefc6;
  border-radius:999px;
  padding:5px 10px;
  white-space:nowrap;
}
.time-chart-wrap{
  width:100%;
  overflow:hidden;
  padding-top:6px;
}
.time-chart-wrap canvas{
  display:block;
  width:100%;
  height:260px;
}
@media(max-width:600px){
  .time-chart-card .section-head{
    flex-direction:column;
  }
  .time-chart-total{
    align-self:flex-start;
  }
}


/* =========================================================
   V1.34d – Stempelbutton + bereinigte Navigation
   ========================================================= */
.time-pagehead{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
}
.time-pagehead-action{
  margin:0;
}
.time-quick-button{
  min-width:160px;
  min-height:44px;
  font-size:14px;
  font-weight:800;
  white-space:nowrap;
}
.time-clock-card .clock-main-button{
  min-height:50px;
  padding-left:20px;
  padding-right:20px;
  font-size:15px;
  font-weight:850;
}

/* Desktop: alle normalen Menülinks sichtbar */
@media(min-width:761px){
  .side-nav .desktop-primary,
  .side-nav .mobile-more-item{
    display:flex !important;
  }
}

/* Mobile: genau fünf feste Bottom-Bar-Punkte:
   Dashboard · Zeit · Kunden · Geräte · Mehr */
@media(max-width:760px){
  .side-nav{
    grid-template-columns:repeat(5,1fr) !important;
  }
  .side-nav .desktop-primary,
  .side-nav .mobile-more-item{
    display:none !important;
  }
  .time-pagehead{
    align-items:stretch;
    flex-direction:column;
  }
  .time-pagehead .time-quick-button{
    width:100%;
  }
  .time-pagehead-action{
    width:100%;
  }
  .time-pagehead-action button{
    width:100%;
  }
}

@media(max-width:480px){
  .time-clock-card{
    padding:18px 16px;
  }
}


/* =========================================================
   V1.34e – finaler Zeiterfassungs-Fix
   ========================================================= */
.time-clock-card{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(300px,430px) !important;
  gap:24px !important;
  align-items:center !important;
  padding:24px !important;
  margin-bottom:18px !important;
}
.time-clock-main h2{
  margin:4px 0 8px;
  font-size:24px;
}
.time-clock-description{
  margin:0;
  color:#cbd5df;
}
.time-running-meta{
  display:flex;
  flex-direction:column;
  gap:4px;
  color:#d1fadf;
}
.clock-action-form{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:12px !important;
  width:100%;
  margin:0 !important;
}
.clock-action-form label{
  display:grid !important;
  gap:5px;
  color:#fff !important;
  font-weight:700;
}
.clock-action-form input,
.clock-action-form select{
  width:100% !important;
  min-height:44px !important;
  background:#fff !important;
  color:#17202a !important;
  border:1px solid #d0d5dd !important;
  border-radius:9px !important;
}
.optional-label{
  font-size:11px;
  opacity:.7;
  font-weight:500;
}
.clock-primary-button{
  width:100% !important;
  min-height:62px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:12px !important;
  border-radius:10px !important;
  font-size:15px !important;
}
.clock-primary-button>span:last-child{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  line-height:1.15;
}
.clock-primary-button strong{
  font-size:16px;
}
.clock-primary-button small{
  margin-top:3px;
  font-size:11px;
  opacity:.85;
  font-weight:600;
}
.clock-button-icon{
  font-size:20px;
}
.admin-time-view-note{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  padding:12px 15px;
  margin-bottom:16px;
  border:1px solid #b2ddff;
  background:#eff8ff;
  border-radius:10px;
}
.admin-time-view-note>div{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.admin-time-view-note span{
  color:#475467;
  font-size:12px;
}

/* Desktop-Menü: Zeiterfassung darf nur der direkte Hauptlink sein */
@media(min-width:761px){
  .side-nav a[href="zeiterfassung.php"].mobile-more-item{
    display:none !important;
  }
}

/* Mobile: feste fünf Punkte */
@media(max-width:760px){
  .side-nav{
    grid-template-columns:repeat(5,1fr) !important;
  }
  .time-clock-card{
    grid-template-columns:1fr !important;
    gap:18px !important;
    padding:18px 16px !important;
  }
  .clock-primary-button{
    min-height:66px !important;
  }
  .admin-time-view-note{
    align-items:stretch;
    flex-direction:column;
  }
  .admin-time-view-note .button{
    width:100%;
    text-align:center;
  }
}


/* =========================================================
   V1.35 – Mitarbeiterrolle + Admin-Zeitauswertung
   ========================================================= */
.admin-time-report{
  margin-bottom:18px;
}
.admin-time-filter{
  display:grid;
  grid-template-columns:1fr 1fr 1.4fr auto;
  gap:10px;
  align-items:end;
  margin-bottom:16px;
}
.admin-report-summary{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-bottom:18px;
}
.stat-card.compact{
  min-height:86px;
  padding:14px;
}
.admin-report-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}
.admin-report-grid h3{
  margin:0 0 9px;
  font-size:15px;
}
.admin-report-grid .num{
  text-align:right;
}
@media(max-width:980px){
  .admin-report-grid{
    grid-template-columns:1fr;
  }
}
@media(max-width:760px){
  .admin-time-filter{
    grid-template-columns:1fr 1fr;
  }
  .admin-time-filter label:nth-child(3),
  .admin-time-filter button{
    grid-column:1/-1;
  }
  .admin-report-summary{
    grid-template-columns:1fr;
  }
}
@media(max-width:480px){
  .admin-time-filter{
    grid-template-columns:1fr;
  }
  .admin-time-filter label,
  .admin-time-filter button{
    grid-column:auto!important;
  }
}


/* =========================================================
   V1.35a – Adminbearbeitung Zeitbuchungen
   ========================================================= */
.time-admin-actions{
  display:flex;
  gap:6px;
  align-items:center;
  flex-wrap:wrap;
}
.time-admin-actions form{
  margin:0;
}
.time-edit-row td{
  background:#f8fafc !important;
  padding:16px !important;
}
.time-edit-form{
  display:grid;
  grid-template-columns:1.15fr 1.15fr 1.2fr .7fr;
  gap:12px;
  align-items:end;
}
.time-edit-form label{
  display:grid;
  gap:5px;
}
.time-edit-form label small{
  color:#667085;
  font-size:11px;
}
.time-edit-note{
  grid-column:1/4;
}
.time-edit-buttons{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  align-items:center;
}
@media(max-width:1050px){
  .time-edit-form{
    grid-template-columns:1fr 1fr;
  }
  .time-edit-note{
    grid-column:1/-1;
  }
  .time-edit-buttons{
    grid-column:1/-1;
  }
}
@media(max-width:620px){
  .time-edit-form{
    grid-template-columns:1fr;
  }
  .time-edit-note,
  .time-edit-buttons{
    grid-column:auto;
  }
  .time-edit-buttons{
    flex-direction:column;
    align-items:stretch;
  }
  .time-edit-buttons button{
    width:100%;
  }
}


/* =========================================================
   V1.36 – Lagerverwaltung
   ========================================================= */
.page-actions,.table-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.table-actions form{margin:0}
.button-count{margin-left:6px;background:rgba(255,255,255,.18);border-radius:999px;padding:1px 6px;font-size:11px}
.warehouse-stats a{color:inherit;text-decoration:none}
.warehouse-search{display:grid;grid-template-columns:minmax(260px,1fr) 220px auto auto;gap:8px;align-items:end}
.stock-badge{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:4px 9px;font-size:11px;font-weight:800}
.stock-badge.ok{background:#dcfae6;color:#067647}
.stock-badge.niedrig{background:#fef0c7;color:#b54708}
.stock-badge.leer{background:#fee4e2;color:#b42318}
.stock-badge.big{font-size:13px;padding:7px 12px}
.warehouse-scan-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:16px}
.warehouse-scan-head h1{margin-bottom:3px}.warehouse-scan-head p{margin:0;color:#667085}
.warehouse-scan-card{display:grid;grid-template-columns:minmax(230px,.8fr) minmax(280px,1fr);gap:18px;align-items:center}
.warehouse-stock small{display:block;color:#667085;font-weight:700}.warehouse-stock>strong{display:block;font-size:46px;line-height:1.05;margin:6px 0}.warehouse-stock>strong span{font-size:18px}.warehouse-stock>div{color:#667085}
.warehouse-quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.warehouse-quick-actions form{margin:0}
.warehouse-action{width:100%;min-height:92px;border-radius:12px;display:flex;flex-direction:column;gap:4px}.warehouse-action span{font-size:30px;font-weight:900}.warehouse-action small{font-size:12px}
.warehouse-action.minus{background:#344054}.warehouse-action.plus{background:#159447}
.warehouse-reorder-main{grid-column:1/-1;width:100%;min-height:82px;border-radius:12px;background:#e04f16;display:flex;align-items:center;justify-content:center;gap:12px;padding:14px}
.warehouse-reorder-main>span{font-size:28px}.warehouse-reorder-main>strong,.warehouse-reorder-main>small{display:block;text-align:left}.warehouse-reorder-main>strong{font-size:16px}.warehouse-reorder-main>small{font-size:11px;opacity:.9}.warehouse-reorder-main.queued{background:#667085}
.warehouse-reorder-secondary{grid-column:1/-1;width:100%}
.warehouse-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.warehouse-links{margin-top:18px}
.warehouse-moves{display:grid}.warehouse-moves>div{display:grid;grid-template-columns:110px 1fr auto;gap:8px;align-items:center;padding:9px 0;border-bottom:1px solid #edf0f3}.warehouse-moves small{color:#667085}.move-type{font-size:11px;font-weight:800}.move-type.entnahme{color:#b42318}.move-type.einlagerung{color:#067647}.move-type.korrektur{color:#b54708}
.qty-form{display:flex!important;gap:5px}.qty-form input{width:90px;min-height:32px;padding:5px}
.warehouse-order-tabs{margin-bottom:16px}
.warehouse-label-sheet{display:grid;place-items:start center;padding:20px}
.warehouse-label{width:70mm;height:35mm;border:1px solid #111;background:#fff;color:#111;padding:3mm;box-sizing:border-box}
.warehouse-label-place{font-size:16pt;font-weight:900;border-bottom:1px solid #111;padding-bottom:1.5mm;margin-bottom:1.5mm}
.warehouse-label-body{display:grid;grid-template-columns:24mm 1fr;gap:3mm;align-items:center}
.warehouse-label-qr{width:22mm;height:22mm;overflow:hidden}.warehouse-label-qr img,.warehouse-label-qr canvas{width:100%!important;height:100%!important}
.warehouse-label-text{min-width:0}.warehouse-label-text strong{display:block;font-size:11pt;line-height:1.1;margin-bottom:1.5mm;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.warehouse-label-text span{display:block;font-size:8pt}.warehouse-label-text b{display:block;font-size:7.5pt;margin-top:2mm}
.danger,button.danger,.button.danger{background:#d92d20!important;color:#fff!important}
.warning,.badge.warning{background:#fef0c7;color:#b54708}
@media(max-width:900px){
 .warehouse-search{grid-template-columns:1fr 1fr}
 .warehouse-scan-card,.warehouse-detail-grid{grid-template-columns:1fr}
}
@media(max-width:620px){
 .warehouse-search{grid-template-columns:1fr}
 .warehouse-search .button,.warehouse-search button{width:100%}
 .warehouse-scan-head{flex-direction:column}
 .warehouse-stock>strong{font-size:38px}
 .warehouse-quick-actions{grid-template-columns:1fr 1fr}
 .warehouse-moves>div{grid-template-columns:90px 1fr}.warehouse-moves small{grid-column:2}
}
@media print{
 .no-print,.sidebar,.app-topbar,.app-footer{display:none!important}
 .warehouse-label-sheet{padding:0!important}
 .warehouse-label{margin:0!important}
}


/* =========================================================
   V1.36b – Zebra Lageretikett
   ========================================================= */
.warehouse-zebra-preview{
  width:min(100%,570px);
  background:#fff;
  color:#111;
  border:1.5px solid #111;
  border-radius:7px;
  padding:10px 12px;
  overflow:hidden;
  margin-bottom:14px;
}
.warehouse-zebra-fach{
  font-size:27px;
  line-height:1;
  font-weight:950;
  letter-spacing:.2px;
}
.warehouse-zebra-bereich{
  font-size:12px;
  font-weight:750;
  margin-top:3px;
}
.warehouse-zebra-content{
  display:grid;
  grid-template-columns:105px minmax(0,1fr);
  gap:12px;
  align-items:center;
  margin-top:8px;
}
.warehouse-zebra-qr-faux{
  position:relative;
  width:100px;
  height:100px;
  background:
    repeating-linear-gradient(0deg,#111 0 3px,#fff 3px 6px),
    repeating-linear-gradient(90deg,#111 0 3px,#fff 3px 6px);
  border:5px solid #fff;
  outline:2px solid #111;
  display:grid;
  place-items:center;
  overflow:hidden;
}
.warehouse-zebra-qr-faux i{
  position:absolute;
  width:27px;
  height:27px;
  border:6px solid #111;
  background:#fff;
}
.warehouse-zebra-qr-faux i:nth-child(1){left:4px;top:4px}
.warehouse-zebra-qr-faux i:nth-child(2){right:4px;top:4px}
.warehouse-zebra-qr-faux i:nth-child(3){left:4px;bottom:4px}
.warehouse-zebra-qr-faux b{
  position:relative;
  z-index:2;
  background:#fff;
  padding:2px;
  font-size:11px;
}
.warehouse-zebra-data{
  min-width:0;
}
.warehouse-zebra-data strong{
  display:block;
  font-size:20px;
  line-height:1.08;
  font-weight:900;
  max-height:44px;
  overflow:hidden;
}
.warehouse-zebra-data span{
  display:block;
  margin-top:7px;
  font-size:12px;
  font-weight:700;
}
.warehouse-zebra-data small{
  display:block;
  margin-top:12px;
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
}
@media(max-width:620px){
  .warehouse-zebra-preview{
    min-width:440px;
    transform:scale(.72);
    transform-origin:left top;
    margin-bottom:-60px;
  }
}


/* =========================================================
   V1.37 – Fachbereiche & neues Dashboard
   ========================================================= */

/* Desktop-Navigation nach Fachbereichen */
.structured-nav{
  display:block;
}
.structured-nav .nav-dashboard{
  margin-bottom:8px;
}
.nav-section{
  margin:8px 0 12px;
}
.nav-section-title{
  padding:7px 16px 5px;
  font-size:9px;
  line-height:1;
  letter-spacing:.13em;
  font-weight:850;
  color:#61717b;
}
.nav-section-admin{
  padding-top:5px;
  border-top:1px solid rgba(255,255,255,.07);
}
.nav-logout{
  margin-top:2px;
}
.mobile-category-nav{
  display:none;
}

/* User menu */
.user-menu{
  position:relative;
}
.user-menu summary{
  list-style:none;
  cursor:pointer;
}
.user-menu summary::-webkit-details-marker{display:none}
.user-menu-popover{
  position:absolute;
  right:0;
  top:calc(100% + 7px);
  z-index:140;
  width:190px;
  padding:7px;
  border:1px solid #e4e7ec;
  border-radius:10px;
  background:#fff;
  box-shadow:0 14px 34px rgba(16,24,40,.16);
}
.user-menu-popover a{
  display:flex;
  padding:9px 10px;
  border-radius:7px;
  color:#344054;
  font-size:13px;
  font-weight:700;
}
.user-menu-popover a:hover{
  background:#f2f4f7;
}

/* Dashboard */
.dashboard-welcome{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
  margin-bottom:20px;
}
.dashboard-quick-actions{
  display:flex;
  gap:8px;
}
.dashboard-domain-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.dashboard-domain{
  min-width:0;
  background:#fff;
  border:1px solid #e4e7ec;
  border-radius:14px;
  box-shadow:0 2px 10px rgba(16,24,40,.05);
  padding:18px;
}
.domain-header{
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto;
  gap:11px;
  align-items:center;
  padding-bottom:14px;
  border-bottom:1px solid #edf0f3;
}
.domain-icon{
  width:42px;height:42px;
  display:grid;place-items:center;
  border-radius:10px;
  font-size:20px;
  font-weight:900;
  background:#eef4f7;
  color:#153746;
}
.domain-kicker{
  font-size:9px;
  letter-spacing:.12em;
  font-weight:900;
  color:#667085;
  margin-bottom:2px;
}
.domain-header h2{
  margin:0;
  font-size:17px;
}
.domain-header>a{
  font-size:12px;
  font-weight:750;
}
.time-domain .domain-icon{background:#ecfdf3;color:#067647}
.customer-domain .domain-icon{background:#eff8ff;color:#175cd3}
.dguv-domain .domain-icon{background:#f0f9ff;color:#026aa2}
.warehouse-domain .domain-icon{background:#fffaeb;color:#b54708}

.domain-metrics{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  margin:14px 0;
  border:1px solid #edf0f3;
  border-radius:10px;
  overflow:hidden;
}
.domain-metrics.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.domain-metrics.four{grid-template-columns:repeat(4,minmax(0,1fr))}
.domain-metrics>div{
  min-width:0;
  padding:12px;
  border-right:1px solid #edf0f3;
}
.domain-metrics>div:last-child{border-right:0}
.domain-metrics small{
  display:block;
  color:#667085;
  font-size:10px;
  font-weight:700;
  margin-bottom:4px;
}
.domain-metrics strong{
  display:block;
  font-size:20px;
  line-height:1.1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.domain-metrics .metric-danger{background:#fff4f3}
.domain-metrics .metric-danger strong{color:#b42318}
.domain-metrics .metric-warning{background:#fffaeb}
.domain-metrics .metric-warning strong{color:#b54708}

.domain-alert{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:56px;
  padding:10px 12px;
  border-radius:9px;
}
.domain-alert>div{
  flex:1;
  display:flex;
  flex-direction:column;
}
.domain-alert small{margin-top:2px}
.success-alert{
  background:#ecfdf3;
  border:1px solid #abefc6;
  color:#067647;
}
.live-dot{
  width:9px;height:9px;
  border-radius:50%;
  background:#12b76a;
  box-shadow:0 0 0 5px rgba(18,183,106,.12);
}
.domain-action-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:56px;
  padding:10px 12px;
  border:1px dashed #d0d5dd;
  border-radius:9px;
  color:#667085;
}
.domain-links{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:13px;
}
.domain-links a{
  border:1px solid #d0d5dd;
  border-radius:7px;
  padding:7px 9px;
  font-size:11px;
  font-weight:750;
  color:#344054;
  background:#fff;
}
.domain-links a:hover{border-color:#98a2b3;background:#f9fafb}

.domain-subsection{
  margin-top:4px;
}
.domain-subhead{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:6px;
  font-size:12px;
}
.domain-subhead>a{font-size:11px}
.dashboard-due-compact{
  display:grid;
  border-top:1px solid #edf0f3;
}
.dashboard-due-compact>a{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  padding:9px 2px;
  border-bottom:1px solid #edf0f3;
  color:#344054;
}
.dashboard-due-compact>a>div{
  min-width:0;
  display:flex;
  flex-direction:column;
}
.dashboard-due-compact small{
  color:#667085;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.dashboard-due-compact>a>span{
  white-space:nowrap;
  font-size:11px;
  font-weight:800;
}
.dashboard-due-compact>a.overdue>span{color:#b42318}
.dashboard-due-compact>a.soon>span{color:#b54708}

.warehouse-dashboard-alerts{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.stock-alert{
  display:flex;
  flex-direction:column;
  padding:10px;
  border-radius:8px;
}
.stock-alert strong{font-size:20px}
.stock-alert span{font-size:10px;font-weight:700}
.stock-alert.red{background:#fff4f3;color:#b42318}
.stock-alert.amber{background:#fffaeb;color:#b54708}
.stock-alert.blue{background:#eff8ff;color:#175cd3}

/* Handy: fünf Fachbereiche in der Bottom-Bar */
@media(max-width:760px){
  body{padding-bottom:72px!important}

  .sidebar{
    position:fixed!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    top:auto!important;
    width:100%!important;
    height:68px!important;
    overflow:visible!important;
    background:#07151e!important;
    z-index:100;
  }
  .side-brand{display:none!important}

  .structured-nav{
    display:block!important;
    width:100%!important;
    height:68px!important;
    padding:0!important;
    overflow:visible!important;
  }
  .structured-nav>.nav-dashboard,
  .structured-nav>.nav-section,
  .structured-nav>.nav-logout{
    display:none!important;
  }

  .mobile-category-nav{
    display:grid!important;
    grid-template-columns:repeat(5,1fr);
    width:100%;
    height:68px;
  }
  .mobile-category-nav a{
    min-width:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    padding:5px 1px;
    color:#b8c5cc;
    background:transparent!important;
    border-radius:0!important;
  }
  .mobile-category-nav a.active{color:#55db6e!important}
  .mobile-category-nav span{
    display:block;
    font-size:20px;
    line-height:1;
  }
  .mobile-category-nav small{
    display:block;
    font-size:9px;
    line-height:1;
    font-weight:750;
  }

  .dashboard-welcome{
    flex-direction:column;
  }
  .dashboard-quick-actions{
    width:100%;
  }
  .dashboard-quick-actions .button{
    flex:1;
  }
  .dashboard-domain-grid{
    grid-template-columns:1fr;
  }
  .domain-metrics.three,
  .domain-metrics.four{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .domain-metrics.three>div,
  .domain-metrics.four>div{
    border-bottom:1px solid #edf0f3;
  }
  .warehouse-dashboard-alerts{
    grid-template-columns:1fr;
  }
  .domain-header{
    grid-template-columns:40px minmax(0,1fr) auto;
  }
}

@media(max-width:420px){
  .dashboard-domain{padding:14px}
  .domain-header>a{font-size:0}
  .domain-header>a::after{content:'→';font-size:18px}
  .domain-metrics strong{font-size:18px}
}


/* V1.37a – Lageretikett: QR links mittig, Daten rechts */
.warehouse-zebra-preview-v137a{
  padding:15px 14px 11px;
}
.warehouse-zebra-preview-v137a .warehouse-zebra-content{
  height:100%;
  display:grid;
  grid-template-columns:112px minmax(0,1fr);
  gap:18px;
  align-items:center;
  margin:0;
}
.warehouse-zebra-preview-v137a .warehouse-zebra-qr-faux{
  align-self:center;
  justify-self:start;
  width:106px;
  height:106px;
}
.warehouse-zebra-preview-v137a .warehouse-zebra-data{
  height:100%;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-start;
  padding-top:2px;
  overflow:hidden;
}
.warehouse-zebra-preview-v137a .warehouse-zebra-fach{
  display:block;
  font-size:25px;
  line-height:1.05;
  font-weight:950;
  margin:0 0 4px;
}
.warehouse-zebra-preview-v137a .warehouse-zebra-bereich{
  display:block;
  font-size:12px;
  line-height:1.1;
  font-weight:700;
  margin:0 0 15px;
}
.warehouse-zebra-preview-v137a .warehouse-zebra-item{
  display:block;
  font-size:18px;
  line-height:1.08;
  font-weight:900;
  margin:0 0 7px;
}
.warehouse-zebra-preview-v137a .warehouse-zebra-meta{
  display:block;
  font-size:11px;
  line-height:1.15;
  font-weight:700;
  margin:0;
}


/* =========================================================
   V1.37b – Kompakte mobile Navigation mit Untermenüs
   ========================================================= */
.mobile-category-backdrop,
.mobile-category-sheet{
  display:none;
}

@media(max-width:760px){
  body{
    padding-bottom:62px!important;
  }

  .sidebar{
    height:58px!important;
  }

  .structured-nav{
    height:58px!important;
  }

  .mobile-category-nav{
    height:58px!important;
  }

  .mobile-category-nav>a,
  .mobile-category-nav>button{
    appearance:none;
    -webkit-appearance:none;
    border:0;
    outline:0;
    min-width:0;
    height:58px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:2px;
    padding:3px 1px;
    margin:0;
    background:transparent!important;
    color:#aebcc5;
    font:inherit;
    cursor:pointer;
    border-radius:0!important;
    box-shadow:none!important;
  }

  .mobile-category-nav>a.active,
  .mobile-category-nav>button.active,
  .mobile-category-nav>button[aria-expanded="true"]{
    color:#55db6e!important;
  }

  .mobile-category-icon{
    display:flex!important;
    align-items:center;
    justify-content:center;
    height:22px;
    font-size:19px!important;
    line-height:1!important;
  }

  .mobile-category-nav small{
    font-size:9px!important;
    font-weight:750!important;
    line-height:1!important;
  }

  .mobile-category-backdrop:not([hidden]){
    display:block;
    position:fixed;
    inset:0;
    z-index:108;
    background:rgba(7,21,30,.32);
    backdrop-filter:blur(1px);
    -webkit-backdrop-filter:blur(1px);
  }

  .mobile-category-sheet{
    position:fixed;
    left:8px;
    right:8px;
    bottom:66px;
    z-index:115;
    max-height:min(70vh,520px);
    overflow:auto;
    padding:7px 10px 12px;
    border:1px solid rgba(255,255,255,.09);
    border-radius:18px;
    background:#0b1c26;
    color:#fff;
    box-shadow:0 -7px 36px rgba(7,21,30,.28);
  }

  .mobile-category-sheet:not([hidden]){
    display:block;
    animation:mobileSheetIn .16s ease-out;
  }

  @keyframes mobileSheetIn{
    from{transform:translateY(12px);opacity:0}
    to{transform:translateY(0);opacity:1}
  }

  .mobile-sheet-handle{
    width:36px;
    height:4px;
    border-radius:999px;
    background:rgba(255,255,255,.22);
    margin:1px auto 8px;
  }

  .mobile-sheet-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    padding:2px 3px 9px;
  }

  .mobile-sheet-head>div{
    display:flex;
    flex-direction:column;
    gap:1px;
  }

  .mobile-sheet-head strong{
    font-size:16px;
    line-height:1.15;
  }

  .mobile-sheet-kicker{
    font-size:8px;
    font-weight:900;
    letter-spacing:.14em;
    color:#67df7c;
  }

  .mobile-sheet-close{
    width:34px;
    height:34px;
    min-height:34px;
    padding:0!important;
    border:0!important;
    border-radius:50%!important;
    background:rgba(255,255,255,.08)!important;
    color:#fff!important;
    display:grid;
    place-items:center;
    font-size:23px!important;
    line-height:1!important;
  }

  .mobile-sheet-links{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
  }

  .mobile-sheet-links.one-column{
    grid-template-columns:1fr;
  }

  .mobile-sheet-links>a{
    min-width:0;
    min-height:68px;
    display:grid;
    grid-template-columns:30px minmax(0,1fr) 12px;
    gap:8px;
    align-items:center;
    padding:10px;
    border:1px solid rgba(255,255,255,.07);
    border-radius:11px;
    background:rgba(255,255,255,.045);
    color:#d9e3e8;
  }

  .mobile-sheet-links>a.active{
    border-color:rgba(85,219,110,.3);
    background:rgba(85,219,110,.10);
    color:#69e17f;
  }

  .mobile-sheet-links>a>span{
    display:grid;
    place-items:center;
    width:30px;
    height:30px;
    border-radius:8px;
    background:rgba(255,255,255,.065);
    font-size:17px;
  }

  .mobile-sheet-links>a>div{
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:2px;
  }

  .mobile-sheet-links>a strong{
    font-size:12px;
    line-height:1.1;
  }

  .mobile-sheet-links>a small{
    display:block;
    font-size:9px;
    line-height:1.2;
    color:#91a1ab;
  }

  .mobile-sheet-links>a>b{
    font-size:18px;
    color:#70818c;
    font-weight:400;
  }

  body.mobile-category-open{
    overflow:hidden;
  }
}

@media(max-width:390px){
  .mobile-sheet-links{
    grid-template-columns:1fr;
  }
}


/* V1.37c – Lageretikett Vorschau: Fläche besser ausnutzen */
.warehouse-zebra-preview-v137a{
  padding:12px 12px 9px!important;
}
.warehouse-zebra-preview-v137a .warehouse-zebra-content{
  grid-template-columns:132px minmax(0,1fr)!important;
  gap:13px!important;
}
.warehouse-zebra-preview-v137a .warehouse-zebra-qr-faux{
  width:126px!important;
  height:126px!important;
}
.warehouse-zebra-preview-v137a .warehouse-zebra-data{
  padding-top:1px!important;
}
.warehouse-zebra-preview-v137a .warehouse-zebra-fach{
  font-size:29px!important;
  margin-bottom:4px!important;
}
.warehouse-zebra-preview-v137a .warehouse-zebra-bereich{
  font-size:13px!important;
  margin-bottom:14px!important;
}
.warehouse-zebra-preview-v137a .warehouse-zebra-item{
  font-size:21px!important;
  line-height:1.06!important;
  margin-bottom:8px!important;
}
.warehouse-zebra-preview-v137a .warehouse-zebra-meta{
  font-size:12px!important;
}


/* =========================================================
   V1.37d – Lageretikett final nach Testdruck
   ========================================================= */
.warehouse-zebra-preview-v137d{
  position:relative;
  padding:0!important;
  overflow:hidden;
}
.warehouse-zebra-preview-v137d .warehouse-label-guide{
  position:absolute;
  top:3px;
  left:37%;
  font-size:9px;
  font-weight:800;
  color:#12a150;
  opacity:.75;
}
.warehouse-zebra-preview-v137d .warehouse-zebra-content{
  position:absolute;
  inset:0;
  display:grid!important;
  grid-template-columns:34% 66%!important;
  gap:0!important;
  align-items:center!important;
  margin:0!important;
}
.warehouse-zebra-preview-v137d .warehouse-zebra-qr-faux{
  justify-self:center!important;
  align-self:center!important;
  width:132px!important;
  height:132px!important;
}
.warehouse-zebra-preview-v137d .warehouse-zebra-data{
  height:100%;
  padding:15.625% 12px 8px 6px!important; /* 5 mm bei 32 mm Höhe */
  box-sizing:border-box;
  display:flex!important;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-start!important;
  overflow:hidden;
}
.warehouse-zebra-preview-v137d .warehouse-zebra-fach{
  font-size:30px!important;
  line-height:1!important;
  font-weight:950!important;
  margin:0 0 5px!important;
}
.warehouse-zebra-preview-v137d .warehouse-zebra-bereich{
  font-size:13px!important;
  line-height:1.05!important;
  font-weight:700!important;
  margin:0 0 16px!important;
}
.warehouse-zebra-preview-v137d .warehouse-zebra-item{
  font-size:22px!important;
  line-height:1.05!important;
  font-weight:900!important;
  margin:0 0 9px!important;
}
.warehouse-zebra-preview-v137d .warehouse-zebra-meta{
  font-size:12px!important;
  line-height:1.1!important;
  font-weight:700!important;
  margin:0!important;
}
@media(max-width:620px){
  .warehouse-zebra-preview-v137d{
    min-width:440px;
    transform:scale(.72);
    transform-origin:left top;
    margin-bottom:-60px;
  }
}


/* =========================================================
   V1.38 – Benutzerrechte + QR-Korrektur
   ========================================================= */
.permission-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin:18px 0;
}
.permission-card{
  position:relative;
  display:grid!important;
  grid-template-columns:28px 42px minmax(0,1fr);
  gap:10px;
  align-items:center;
  min-height:92px;
  padding:14px;
  border:1px solid #d0d5dd;
  border-radius:12px;
  background:#fff;
  cursor:pointer;
}
.permission-card:hover{border-color:#98a2b3}
.permission-card input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.permission-check{
  width:24px;
  height:24px;
  border:2px solid #98a2b3;
  border-radius:6px;
  display:grid;
  place-items:center;
}
.permission-card input:checked + .permission-check{
  background:#12a150;
  border-color:#12a150;
}
.permission-card input:checked + .permission-check::after{
  content:"✓";
  color:#fff;
  font-size:15px;
  font-weight:900;
}
.permission-card:has(input:checked){
  border-color:#75e0a7;
  background:#f0fdf4;
}
.permission-icon{
  width:40px;
  height:40px;
  border-radius:9px;
  display:grid;
  place-items:center;
  background:#f2f4f7;
  font-size:20px;
  font-weight:900;
}
.permission-copy{
  display:flex;
  flex-direction:column;
  gap:3px;
}
.permission-copy strong{font-size:14px}
.permission-copy small{color:#667085;line-height:1.3}
.permission-user-summary{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  padding-bottom:15px;
  border-bottom:1px solid #edf0f3;
}
.permission-user-summary>div{
  display:flex;
  flex-direction:column;
}
.permission-user-summary>div>strong{font-size:17px}
.permission-user-summary>div>span{font-size:12px;color:#667085}
.permission-note{
  padding:11px 13px;
  border-radius:9px;
  background:#eff8ff;
  border:1px solid #b2ddff;
  color:#344054;
  font-size:12px;
}
.permission-admin-info{
  display:flex;
  flex-direction:column;
  gap:4px;
  border-color:#abefc6;
  background:#ecfdf3;
}
.permission-admin-info strong{color:#067647}
.permission-aware-nav{
  grid-template-columns:repeat(auto-fit,minmax(52px,1fr))!important;
}

/* QR-Vorschau entsprechend dem echten ZPL etwa 4 mm nach oben */
.warehouse-zebra-preview-v137d .warehouse-zebra-qr-faux{
  transform:translateY(-12.5%)!important;
}

@media(max-width:620px){
  .permission-grid{grid-template-columns:1fr}
  .permission-user-summary{
    flex-direction:column;
    align-items:stretch;
  }
}


/* =========================================================
   V1.39 – Dashboard-Stempeluhr + Pause
   ========================================================= */
.dashboard-welcome{
  margin-bottom:14px!important;
}
.dashboard-welcome h1{
  margin-bottom:0!important;
}
.dashboard-clock-panel{
  display:grid;
  gap:12px;
  margin-top:12px;
  padding:12px;
  border:1px solid #abefc6;
  border-radius:10px;
  background:#ecfdf3;
}
.dashboard-clock-panel.paused{
  border-color:#fedf89;
  background:#fffaeb;
}
.dashboard-clock-state{
  display:flex;
  align-items:center;
  gap:11px;
}
.dashboard-clock-state>div{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.dashboard-clock-state small{
  color:#667085;
}
.dashboard-clock-buttons{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.dashboard-clock-buttons form{
  margin:0;
}
.dashboard-clock-buttons button{
  width:100%;
  min-height:42px;
}
.dashboard-clock-in{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  align-items:end;
  margin-top:12px;
}
.dashboard-clock-in select{
  min-height:42px;
}
.dashboard-clock-in button{
  min-height:42px;
  min-width:130px;
}
.warning-button{
  background:#dc6803!important;
  color:#fff!important;
  border-color:#dc6803!important;
}
.time-clock-card.paused,
.time-clock-card.running:has(.warning-button){
  background:linear-gradient(135deg,#5b3a05,#854a0e);
}

/* Dashboard: keine Fachbereich-Kicker mehr */
.dashboard-domain .domain-kicker{
  display:none!important;
}
.dashboard-domain .domain-header h2{
  font-size:18px;
}

@media(max-width:600px){
  .dashboard-clock-buttons{
    grid-template-columns:1fr;
  }
  .dashboard-clock-in{
    grid-template-columns:1fr;
  }
  .dashboard-clock-in button{
    width:100%;
  }
}


/* =========================================================
   V1.40 – Passwort & kundenspezifisches Lager
   ========================================================= */
.password-form{
  max-width:620px;
  display:grid;
  gap:14px;
}
.password-form label{
  display:grid;
  gap:6px;
}
.warehouse-search{
  grid-template-columns:minmax(240px,1fr) 230px 210px auto auto!important;
}
.warehouse-order-filter{
  display:flex;
  justify-content:flex-end;
  margin-bottom:12px;
}
.warehouse-order-filter label{
  width:min(100%,360px);
}
.customer-warehouse-stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  border:1px solid #edf0f3;
  border-radius:10px;
  overflow:hidden;
  margin:12px 0 16px;
}
.customer-warehouse-stats>div{
  padding:12px 14px;
  border-right:1px solid #edf0f3;
}
.customer-warehouse-stats>div:last-child{border-right:0}
.customer-warehouse-stats small{
  display:block;
  color:#667085;
  font-size:10px;
  font-weight:700;
}
.customer-warehouse-stats strong{
  display:block;
  margin-top:3px;
  font-size:22px;
}
.customer-warehouse-stats .warn{
  background:#fffaeb;
  color:#b54708;
}
.customer-warehouse-stats .danger{
  background:#fff4f3;
  color:#b42318;
}
@media(max-width:1050px){
  .warehouse-search{
    grid-template-columns:1fr 1fr!important;
  }
}
@media(max-width:620px){
  .warehouse-search{
    grid-template-columns:1fr!important;
  }
}


/* =========================================================
   V1.42 – Kundenportal
   ========================================================= */
.customer-user-assignment{
  display:grid!important;
  grid-template-columns:minmax(150px,1fr) auto;
  gap:6px;
  align-items:center;
}
.customer-user-assignment select{
  min-width:170px;
}
@media(max-width:760px){
  .customer-user-assignment{
    grid-template-columns:1fr;
  }
}


/* =========================================================
   V1.43 – Dashboard Ausstempel-Notiz
   ========================================================= */
.dashboard-clockout-open{
  width:100%;
  min-height:42px;
}
.dashboard-clockout-note{
  display:grid;
  gap:9px;
  margin-top:2px;
  padding-top:11px;
  border-top:1px solid rgba(16,24,40,.10);
}
.dashboard-clockout-note[hidden]{display:none!important}
.dashboard-clockout-note label{
  display:grid;
  gap:5px;
}
.dashboard-clockout-note label>span{
  font-size:12px;
  font-weight:800;
  color:#344054;
}
.dashboard-clockout-note label small{
  font-weight:600;
  color:#667085;
}
.dashboard-clockout-note textarea{
  width:100%;
  min-height:64px;
  resize:vertical;
}
.dashboard-clockout-note-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.dashboard-clockout-note-actions button{width:100%}
@media(max-width:520px){
  .dashboard-clockout-note-actions{grid-template-columns:1fr}
}


/* V1.43b – Ausstempelnotiz dauerhaft kompakt sichtbar */
.dashboard-clockout-note-compact{
  margin-top:8px;
  padding-top:8px;
  gap:6px;
}
.dashboard-clockout-note-compact textarea{
  min-height:38px;
  height:38px;
  padding:7px 9px;
  font-size:13px;
  line-height:1.25;
  resize:vertical;
}
.dashboard-clockout-note-compact .dashboard-clockout-note-actions{
  grid-template-columns:1fr;
}
.dashboard-clockout-note-compact .dashboard-clockout-note-actions button{
  min-height:38px;
  padding:7px 12px;
}


/* =========================================================
   V1.43c – Pause + Ausstempeln gemeinsam in der letzten Zeile
   ========================================================= */
.dashboard-clock-final-actions{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:10px;
  width:100%;
  max-width:620px;
  margin:8px auto 0;
}
.dashboard-clock-final-actions form{
  margin:0;
  width:100%;
}
.dashboard-clock-final-actions button{
  width:100%;
  min-height:42px;
  padding:9px 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
}
.dashboard-pause-start{
  background:#2563eb;
  border:1px solid #2563eb;
  color:#fff;
}
.dashboard-pause-start:hover{
  background:#1d4ed8;
  border-color:#1d4ed8;
}
@media(max-width:520px){
  .dashboard-clock-final-actions{
    grid-template-columns:1fr 1fr;
    gap:8px;
  }
  .dashboard-clock-final-actions button{
    min-height:40px;
    padding:8px 9px;
    font-size:13px;
  }
}

/* =========================================================
   V1.43d – Homepage: Notiz speichern + Aktionsbuttons 50/50
   ========================================================= */
.dashboard-clockout-note-compact{
  width:100%;
}
.dashboard-clockout-note-compact .dashboard-clock-final-actions{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
  gap:10px;
  width:100% !important;
  max-width:none !important;
  margin:8px 0 0 !important;
}
.dashboard-clockout-note-compact .dashboard-clock-final-actions > button{
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  margin:0 !important;
  min-height:44px;
  padding:9px 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
}
@media(max-width:520px){
  .dashboard-clockout-note-compact .dashboard-clock-final-actions{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
    gap:8px;
  }
  .dashboard-clockout-note-compact .dashboard-clock-final-actions > button{
    min-height:42px;
    padding:8px 7px;
    font-size:13px;
  }
}

/* =========================================================
   V1.43g – Mobile Zeitübersicht + größere Bottom-Navigation
   ========================================================= */
.time-filter-overview{
  display:grid;
  grid-template-columns:minmax(220px,1.15fr) minmax(180px,.9fr) auto;
  gap:12px;
  align-items:end;
}
.time-filter-overview label{min-width:0;margin:0}
.time-filter-overview select,
.time-filter-overview input{width:100%;min-height:44px}
.time-filter-action{display:flex;flex-direction:column;gap:6px}
.time-filter-action-label{font-size:13px;font-weight:800;color:#344054}
.time-filter-action .secondary{min-height:44px;white-space:nowrap}
.time-filter-hint{
  display:flex;align-items:center;gap:8px;
  margin:-2px 0 16px;padding:10px 12px;
  border:1px solid #b2ddff;border-radius:9px;
  background:#eff8ff;color:#175cd3;font-size:12px;font-weight:650;
}
.time-table-wrap{border:1px solid #e4e7ec;border-radius:11px;overflow:hidden}
.time-overview-table{table-layout:auto}
.time-overview-table th,.time-overview-table td{white-space:nowrap}
.time-overview-table .time-customer-cell,
.time-overview-table .time-note-cell{white-space:normal}
.time-date-weekday{display:none}
.time-month-sum{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  margin-top:0;padding:13px 14px;border:1px solid #e4e7ec;border-top:0;
  border-radius:0 0 11px 11px;background:#f9fafb;color:#475467;font-weight:750;
}
.time-month-sum strong{font-size:16px;color:#182230}

@media(max-width:760px){
  /* Filter: Mitarbeiter über volle Breite, darunter Monat + Anzeigen sauber ausgerichtet */
  .time-filter-overview{
    grid-template-columns:minmax(0,1fr) minmax(112px,.42fr);
    gap:12px 10px;
  }
  .time-filter-overview .time-filter-employee{grid-column:1/-1}
  .time-filter-overview .time-filter-month{grid-column:1}
  .time-filter-overview .time-filter-action{grid-column:2}
  .time-filter-action .secondary{width:100%;padding-left:10px!important;padding-right:10px!important}
  .time-filter-hint{margin-top:2px}

  /* Zeitliste mobil als kompakte, lesbare Datensätze statt gequetschter Tabelle */
  .time-table-wrap{border:1px solid #e4e7ec;border-radius:12px;overflow:hidden;background:#fff}
  .time-overview-table{display:block;width:100%;font-size:13px}
  .time-overview-table thead{display:none}
  .time-overview-table tbody{display:block}
  .time-overview-table tr.time-entry-row{
    display:grid;
    grid-template-columns:minmax(112px,1.05fr) minmax(105px,1.15fr) repeat(3,minmax(58px,.58fr)) minmax(68px,.7fr);
    align-items:center;
    gap:0 9px;
    padding:13px 14px;
    border-bottom:1px solid #e4e7ec;
    background:#fff;
  }
  .time-overview-table tr.time-entry-row:last-of-type{border-bottom:0}
  .time-overview-table tr.time-entry-row:hover{background:#fff}
  .time-overview-table tr.time-entry-row>td{
    display:block!important;
    min-width:0!important;
    padding:0!important;
    border:0!important;
    white-space:normal!important;
    line-height:1.25;
  }
  .time-overview-table tr.time-entry-row>td::before{
    content:attr(data-label);
    display:block;
    margin-bottom:3px;
    color:#667085;
    font-size:10px;
    font-weight:750;
  }
  .time-date-main{display:block;font-weight:700}
  .time-date-weekday{display:block;color:#667085;font-size:11px;margin-top:2px}
  .time-customer-cell{font-weight:650;overflow-wrap:anywhere}
  .time-duration-cell strong{font-size:14px}
  .time-note-cell{
    grid-column:1/-1;
    margin-top:8px!important;
    padding-top:8px!important;
    border-top:1px dashed #e4e7ec!important;
    color:#475467;
  }
  .time-note-cell::before{display:inline!important;margin-right:6px!important}
  .time-entry-row>td:last-child:not(.time-note-cell){grid-column:1/-1;margin-top:9px!important}
  .time-admin-actions{justify-content:flex-start!important;gap:8px!important}
  .time-admin-actions .button{width:auto!important;min-width:105px}
  .time-edit-row{display:block!important}
  .time-edit-row[hidden]{display:none!important}
  .time-edit-row td{display:block!important;width:100%!important;padding:12px!important}
  .time-month-sum{padding:14px 15px}

  /* Bedienerfreundlichere Bottom-Navigation */
  body{padding-bottom:calc(88px + env(safe-area-inset-bottom))!important}
  .sidebar{
    height:calc(82px + env(safe-area-inset-bottom))!important;
    padding-bottom:env(safe-area-inset-bottom)!important;
  }
  .side-nav{height:82px!important}
  .mobile-category-nav{
    height:82px!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    padding:0 3px!important;
  }
  .mobile-category-nav>a,
  .mobile-category-nav>button{
    min-width:0!important;
    min-height:82px!important;
    width:100%!important;
    padding:9px 4px 10px!important;
    gap:5px!important;
    border-radius:10px!important;
    touch-action:manipulation;
  }
  .mobile-category-nav .mobile-category-icon{font-size:23px!important;line-height:1!important}
  .mobile-category-nav small{font-size:11px!important;line-height:1.1!important;font-weight:750!important}
  .mobile-category-sheet{bottom:calc(91px + env(safe-area-inset-bottom))!important}
}

@media(max-width:560px){
  .time-overview-table tr.time-entry-row{
    grid-template-columns:minmax(105px,1.05fr) minmax(108px,1.12fr) repeat(2,minmax(52px,.55fr));
    gap:10px 8px;
  }
  .time-overview-table tr.time-entry-row>td:nth-child(5),
  .time-overview-table tr.time-entry-row>td:nth-child(6){margin-top:5px!important}
  .time-overview-table tr.time-entry-row>td:nth-child(5){grid-column:3}
  .time-overview-table tr.time-entry-row>td:nth-child(6){grid-column:4}
}

@media(max-width:390px){
  .time-filter-overview{grid-template-columns:minmax(0,1fr) minmax(108px,.48fr)}
  .time-filter-action-label{font-size:12px}
  .time-overview-table tr.time-entry-row{padding:12px 11px;gap:9px 7px}
  .mobile-category-nav>a,.mobile-category-nav>button{padding-left:2px!important;padding-right:2px!important}
  .mobile-category-nav small{font-size:10.5px!important}
}


/* =========================================================
   V1.43l – Mobile Zeitübersicht final
   ========================================================= */
.time-mobile-list{display:none}

@media(max-width:760px){
  /* Filter: Mitarbeiter vollbreit, Monat und Anzeigen exakt 50/50 */
  .time-filter-overview{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:14px 12px!important;
    align-items:end!important;
  }
  .time-filter-overview .time-filter-employee{grid-column:1/-1!important}
  .time-filter-overview .time-filter-month{grid-column:1!important;width:100%!important}
  .time-filter-overview .time-filter-action{grid-column:2!important;width:100%!important}
  .time-filter-overview select,
  .time-filter-overview input,
  .time-filter-overview .time-filter-action .secondary{
    width:100%!important;
    min-width:0!important;
    height:48px!important;
    min-height:48px!important;
    box-sizing:border-box!important;
    border-radius:10px!important;
    font-size:15px!important;
  }
  .time-filter-overview .time-filter-action .secondary{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:0 10px!important;
    font-weight:800!important;
  }
  .time-filter-action-label{font-size:13px!important}

  /* Desktop-Tabelle auf Mobilgeräten ausblenden: eigene Mobile-Cards verhindern Überlappungen */
  .time-desktop-table{display:none!important}
  .time-mobile-list{display:grid!important;gap:12px;margin-top:16px}
  .time-mobile-entry{
    background:#fff;
    border:1px solid #e4e7ec;
    border-radius:14px;
    padding:16px;
    box-shadow:0 2px 8px rgba(16,24,40,.04);
  }
  .time-mobile-top{
    display:grid;
    grid-template-columns:132px minmax(0,1fr) auto;
    gap:12px;
    align-items:start;
  }
  .time-mobile-date strong,
  .time-mobile-customer{
    display:block;
    color:#182230;
    font-size:14px;
    line-height:1.3;
    font-weight:800;
  }
  .time-mobile-date small{
    display:block;
    margin-top:4px;
    color:#667085;
    font-size:12px;
    font-weight:600;
  }
  .time-mobile-customer{overflow-wrap:anywhere}
  .time-mobile-duration{
    justify-self:end;
    white-space:nowrap;
    padding:7px 10px;
    border-radius:9px;
    background:#ecfdf3;
    color:#067647;
    font-size:14px;
    line-height:1.2;
    font-weight:850;
  }
  .time-mobile-times{
    display:flex;
    flex-wrap:wrap;
    gap:16px 22px;
    margin:12px 0 0 144px;
    color:#182230;
  }
  .time-mobile-time{
    display:inline-flex;
    align-items:center;
    gap:7px;
    white-space:nowrap;
    font-size:13px;
    font-weight:650;
  }
  .time-mobile-time b{font-size:16px;line-height:1;font-weight:800}
  .time-mobile-time.start b{color:#16a34a}
  .time-mobile-time.end b{color:#ef4444}
  .time-mobile-time.pause b{color:#182230}
  .time-mobile-time em{font-style:normal;color:#067647;font-weight:800}
  .time-mobile-note{
    margin-top:14px;
    padding-top:12px;
    border-top:1px dashed #e4e7ec;
    color:#475467;
    font-size:13px;
    line-height:1.35;
  }
  .time-mobile-actions{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:10px;
    margin-top:14px;
  }
  .time-mobile-actions .inline-form{display:block!important;margin:0!important}
  .time-mobile-actions .button{
    width:100%!important;
    min-height:44px!important;
    font-size:14px!important;
    font-weight:800!important;
  }
  .time-mobile-edit{
    margin-top:14px;
    padding-top:14px;
    border-top:1px solid #e4e7ec;
  }
  .time-mobile-edit[hidden]{display:none!important}
  .time-mobile-edit-form{grid-template-columns:1fr 1fr!important}
  .time-mobile-empty{
    padding:20px 16px;
    border:1px solid #e4e7ec;
    border-radius:14px;
    background:#fff;
    color:#667085;
    text-align:center;
  }
  .time-month-sum{
    margin-top:12px!important;
    border:1px solid #e4e7ec!important;
    border-radius:12px!important;
    background:#fff!important;
  }

  /* Bottom-Navigation hoch, groß und gleichmäßig – Inhalte etwas weiter oben */
  body{padding-bottom:calc(96px + env(safe-area-inset-bottom))!important}
  .sidebar{
    height:calc(90px + env(safe-area-inset-bottom))!important;
    padding-bottom:env(safe-area-inset-bottom)!important;
  }
  .side-nav{height:90px!important}
  .mobile-category-nav{
    height:90px!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    padding:0!important;
  }
  .mobile-category-nav>a,
  .mobile-category-nav>button{
    position:relative!important;
    width:100%!important;
    min-width:0!important;
    min-height:90px!important;
    padding:8px 3px 17px!important;
    gap:5px!important;
    border-radius:0!important;
    justify-content:center!important;
    transform:translateY(-3px)!important;
  }
  .mobile-category-nav>a + a::before,
  .mobile-category-nav>button + button::before{
    content:"";
    position:absolute;
    left:0;top:11px;bottom:11px;width:1px;
    background:rgba(255,255,255,.12);
  }
  .mobile-category-nav .mobile-category-icon{font-size:24px!important}
  .mobile-category-nav small{font-size:11px!important;font-weight:750!important}
  .mobile-category-sheet{bottom:calc(99px + env(safe-area-inset-bottom))!important}
}

@media(max-width:430px){
  .time-mobile-entry{padding:14px}
  .time-mobile-top{grid-template-columns:116px minmax(0,1fr) auto;gap:10px}
  .time-mobile-times{margin-left:126px;gap:12px 16px}
}

@media(max-width:370px){
  .time-mobile-top{grid-template-columns:1fr auto;grid-template-areas:"date duration" "customer customer"}
  .time-mobile-date{grid-area:date}
  .time-mobile-customer{grid-area:customer;margin-top:2px}
  .time-mobile-duration{grid-area:duration}
  .time-mobile-times{margin-left:0}
}


/* =========================================================
   V1.43m – Monat / Anzeigen mobil exakt ausrichten
   ========================================================= */
@media(max-width:760px){
  .time-filter-overview{
    display:grid!important;
    grid-template-columns:calc(50% - 6px) calc(50% - 6px)!important;
    column-gap:12px!important;
    row-gap:14px!important;
    width:100%!important;
    align-items:stretch!important;
  }

  .time-filter-overview .time-filter-employee{
    grid-column:1 / -1!important;
    width:100%!important;
    min-width:0!important;
  }

  .time-filter-overview .time-filter-month,
  .time-filter-overview .time-filter-action{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    display:grid!important;
    grid-template-rows:22px 50px!important;
    gap:6px!important;
    align-items:stretch!important;
    box-sizing:border-box!important;
  }

  .time-filter-overview .time-filter-month{
    grid-column:1!important;
  }
  .time-filter-overview .time-filter-action{
    grid-column:2!important;
  }

  .time-filter-overview .time-filter-month > input,
  .time-filter-overview .time-filter-action > button.secondary{
    display:flex!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:50px!important;
    min-height:50px!important;
    max-height:50px!important;
    margin:0!important;
    padding:0 12px!important;
    box-sizing:border-box!important;
    border:1px solid #d0d5dd!important;
    border-radius:10px!important;
    font-size:15px!important;
    line-height:1!important;
    font-weight:800!important;
    align-items:center!important;
    justify-content:center!important;
    overflow:hidden!important;
  }

  .time-filter-overview .time-filter-month{
    font-size:13px!important;
    line-height:22px!important;
    font-weight:800!important;
    color:#344054!important;
  }

  .time-filter-overview .time-filter-action-label{
    display:block!important;
    height:22px!important;
    margin:0!important;
    padding:0!important;
    font-size:13px!important;
    line-height:22px!important;
    font-weight:800!important;
    color:#344054!important;
  }
}

@media(max-width:390px){
  .time-filter-overview{
    grid-template-columns:calc(50% - 5px) calc(50% - 5px)!important;
    column-gap:10px!important;
  }
  .time-filter-overview .time-filter-month > input,
  .time-filter-overview .time-filter-action > button.secondary{
    padding-left:8px!important;
    padding-right:8px!important;
    font-size:14px!important;
  }
}

/* =========================================================
   V1.43n – Zeitfilter strukturell korrigiert
   ========================================================= */
.time-filter-overview .time-filter-field{
  min-width:0;
}
.time-filter-overview .time-filter-field > label,
.time-filter-overview .time-filter-action-label{
  display:block;
  margin:0 0 6px;
  color:#344054;
  font-size:13px;
  font-weight:800;
  line-height:1.25;
}

@media(max-width:760px){
  .time-filter-overview{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:14px 12px!important;
    width:100%!important;
    align-items:start!important;
  }
  .time-filter-overview .time-filter-employee{
    grid-column:1/-1!important;
    width:100%!important;
  }
  .time-filter-overview .time-filter-month,
  .time-filter-overview .time-filter-action{
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    display:block!important;
  }
  .time-filter-overview .time-filter-month{grid-column:1!important}
  .time-filter-overview .time-filter-action{grid-column:2!important}

  .time-filter-overview .time-filter-month > label,
  .time-filter-overview .time-filter-action-label{
    display:block!important;
    height:18px!important;
    margin:0 0 7px!important;
    padding:0!important;
    font-size:13px!important;
    line-height:18px!important;
    font-weight:800!important;
  }

  .time-filter-overview #time-month,
  .time-filter-overview .time-filter-submit{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:50px!important;
    min-height:50px!important;
    max-height:50px!important;
    margin:0!important;
    box-sizing:border-box!important;
    border:1px solid #d0d5dd!important;
    border-radius:10px!important;
    background:#fff!important;
    color:#182230!important;
    font-size:15px!important;
    font-weight:800!important;
    line-height:1.2!important;
  }
  .time-filter-overview #time-month{
    padding:0 10px!important;
    text-align:center!important;
  }
  .time-filter-overview .time-filter-submit{
    padding:0 10px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    white-space:nowrap!important;
  }
}

@media(max-width:390px){
  .time-filter-overview{
    gap:14px 10px!important;
  }
  .time-filter-overview #time-month,
  .time-filter-overview .time-filter-submit{
    font-size:14px!important;
    padding-left:7px!important;
    padding-right:7px!important;
  }
}


/* =========================================================
   V1.43o – Zeitfilter robust neu aufgebaut
   Native Monatsauswahl entfernt; Monat + Anzeigen sind echte
   gleich große Komponenten in einer eigenen 2-Spalten-Zeile.
   ========================================================= */
.time-filter-bottom-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:12px;
  min-width:0;
  grid-column:1/-1;
}
.time-filter-bottom-row .time-filter-field{
  min-width:0;
  margin:0;
}
.time-filter-bottom-row .time-filter-field > label,
.time-filter-bottom-row .time-filter-action-label{
  display:block;
  margin:0 0 7px;
  height:18px;
  line-height:18px;
  font-size:13px;
  font-weight:800;
  color:#344054;
}
.time-filter-bottom-row #time-month,
.time-filter-bottom-row .time-filter-submit{
  width:100%;
  min-width:0;
  max-width:none;
  height:50px;
  min-height:50px;
  max-height:50px;
  box-sizing:border-box;
  margin:0;
  border:1px solid #d0d5dd;
  border-radius:10px;
  background:#fff;
  color:#182230;
  font:800 15px/1.2 inherit;
}
.time-filter-bottom-row #time-month{
  padding:0 38px 0 12px;
}
.time-filter-bottom-row .time-filter-submit{
  padding:0 12px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  white-space:nowrap!important;
}

@media(max-width:760px){
  /* Mobile: Parent nicht mehr für Monat/Aktion layouten */
  .time-filter-overview{
    display:block!important;
    width:100%!important;
  }
  .time-filter-overview .time-filter-employee{
    display:block!important;
    width:100%!important;
    margin:0 0 14px!important;
  }
  .time-filter-overview .time-filter-employee select{
    width:100%!important;
    height:50px!important;
    min-height:50px!important;
    box-sizing:border-box!important;
  }
  .time-filter-bottom-row{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:12px!important;
    width:100%!important;
    align-items:start!important;
  }
  .time-filter-bottom-row .time-filter-month,
  .time-filter-bottom-row .time-filter-action{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
  }
  .time-filter-bottom-row #time-month,
  .time-filter-bottom-row .time-filter-submit{
    width:100%!important;
    height:50px!important;
    min-height:50px!important;
    max-height:50px!important;
    margin:0!important;
    box-sizing:border-box!important;
    font-size:15px!important;
    line-height:1.2!important;
  }
}

@media(max-width:390px){
  .time-filter-bottom-row{gap:10px!important}
  .time-filter-bottom-row #time-month,
  .time-filter-bottom-row .time-filter-submit{
    font-size:14px!important;
  }
  .time-filter-bottom-row #time-month{padding-left:9px!important;padding-right:30px!important}
  .time-filter-bottom-row .time-filter-submit{padding-left:7px!important;padding-right:7px!important}
}


/* =========================================================
   V1.43p – Mobile Feinschliff
   ========================================================= */
@media(max-width:760px){

  /* Bearbeiten / Löschen etwas kompakter */
  .time-mobile-actions,
  .time-admin-actions{
    gap:10px!important;
  }
  .time-mobile-actions .button,
  .time-admin-actions .button,
  .time-entry-card .button{
    min-height:36px!important;
    height:36px!important;
    padding:0 14px!important;
    font-size:13px!important;
    line-height:34px!important;
    border-radius:8px!important;
  }

  /* Zusammenfassungswerte gleich groß wie Heute / Monatssumme */
  .time-summary-value,
  .time-stat-value,
  .time-overview-summary strong,
  .time-dashboard-summary strong,
  .time-employee-sum strong,
  .time-customer-sum strong,
  .time-internal-sum strong,
  .time-summary-card strong,
  .time-summary-row strong{
    font-size:16px!important;
    line-height:1.2!important;
    font-weight:800!important;
  }

  /* Falls die Werte über generische stat/metric-Klassen laufen */
  .stat-card .value,
  .metric-card .value,
  .summary-card .value,
  .summary-value,
  .dashboard-stat-value{
    font-size:16px!important;
    line-height:1.2!important;
    font-weight:800!important;
  }

  /* Fehlenden Trennstrich zwischen Home und Zeit erzwingen */
  .mobile-nav a{
    position:relative!important;
  }
  .mobile-nav a:not(:first-child)::before{
    content:""!important;
    position:absolute!important;
    left:0!important;
    top:8px!important;
    bottom:8px!important;
    width:1px!important;
    background:rgba(255,255,255,.14)!important;
    display:block!important;
  }
}

@media(max-width:390px){
  .time-mobile-actions .button,
  .time-admin-actions .button,
  .time-entry-card .button{
    min-height:34px!important;
    height:34px!important;
    padding:0 10px!important;
    font-size:12.5px!important;
    line-height:32px!important;
  }
}


/* =========================================================
   V1.43q – gezielter Feinschliff auf echten DOM-Klassen
   ========================================================= */

/* Admin-Auswertung: Zeitwerte gleich groß wie Heute/Monatssumme (20px) */
.admin-report-summary .stat-card.compact strong,
.admin-report-grid td.num strong{
  font-size:20px!important;
  line-height:1!important;
  font-weight:800!important;
}

@media(max-width:760px){

  /* Mobile Bearbeiten/Löschen bewusst niedriger */
  .time-mobile-actions{
    gap:8px!important;
  }
  .time-mobile-actions .button.small{
    width:100%!important;
    height:32px!important;
    min-height:32px!important;
    max-height:32px!important;
    padding:0 10px!important;
    border-radius:7px!important;
    font-size:12.5px!important;
    line-height:30px!important;
    font-weight:750!important;
  }
  .time-mobile-actions form.inline-form{
    height:32px!important;
    min-height:32px!important;
  }

  /* Mobile Navigation: Trenner zwischen JEDEM Nachbarelement,
     also auch zwischen Home (<a>) und Zeit (<button>) */
  .mobile-category-nav > *{
    position:relative!important;
  }
  .mobile-category-nav > * + *::before{
    content:""!important;
    display:block!important;
    position:absolute!important;
    left:0!important;
    top:11px!important;
    bottom:11px!important;
    width:1px!important;
    height:auto!important;
    background:rgba(255,255,255,.16)!important;
    border:0!important;
    transform:none!important;
    opacity:1!important;
    pointer-events:none!important;
  }

  /* Falls ältere spezifische Regeln den Home/Zeit-Trenner ausblenden */
  .mobile-category-nav > a + button::before,
  .mobile-category-nav > button + a::before,
  .mobile-category-nav > button + button::before,
  .mobile-category-nav > a + a::before{
    content:""!important;
    display:block!important;
  }

  /* Auch mobil bleiben die Auswertungs-Zeitwerte auf 20px */
  .admin-report-summary .stat-card.compact strong,
  .admin-report-grid td.num strong{
    font-size:20px!important;
    line-height:1!important;
  }
}


/* V1.43r – Gesamtzeit bei Mitarbeiter/Kunden dezenter */
.admin-report-grid td.num strong{
  font-size:16px!important;
  line-height:1.2!important;
  font-weight:700!important;
}
@media(max-width:760px){
  .admin-report-grid td.num strong{
    font-size:16px!important;
    line-height:1.2!important;
  }
}


/* V1.43s – Gesamtzeit Mitarbeiter/Kunden nochmals kleiner */
.admin-report-grid td.num strong{
  font-size:13px!important;
  line-height:1.2!important;
  font-weight:700!important;
}
@media(max-width:760px){
  .admin-report-grid td.num strong{
    font-size:13px!important;
    line-height:1.2!important;
  }
}

/* V1.44 – Zeitänderungsanfragen */
.za-request-card{margin-bottom:18px}
.za-form{display:grid;gap:14px}
.za-form label{display:grid;gap:7px;font-weight:700;color:#344054}
.za-time-grid{display:grid;grid-template-columns:1fr 1fr 180px;gap:12px}
.za-list{display:grid;gap:12px}
.za-item{border:1px solid #e4e7ec;border-radius:14px;padding:16px;background:#fff}
.za-item-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.za-item-head>div{display:flex;align-items:center;gap:10px}
.za-item-head span{color:#667085}
.za-status{padding:5px 9px;border-radius:999px;font-size:12px;font-weight:800}
.za-status-offen{background:#fff4cc;color:#7a5700}
.za-status-genehmigt{background:#e8f8ed;color:#087a2e}
.za-status-abgelehnt{background:#feeceb;color:#b42318}
.za-compare{display:grid;grid-template-columns:1fr auto 1fr;gap:14px;align-items:center;background:#f8fafb;border-radius:11px;padding:12px}
.za-compare>div:not(.za-arrow){display:grid;gap:3px}
.za-compare small,.za-reason small,.za-admin-note small{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:#667085;font-weight:800}
.za-compare strong{font-size:16px}
.za-compare span{font-size:13px;color:#667085}
.za-arrow{font-size:22px;color:#98a2b3}
.za-reason,.za-admin-note{margin-top:12px}
.za-reason p,.za-admin-note p{margin:4px 0 0}
.za-admin-note{padding:10px 12px;background:#eef7ff;border-radius:10px}
.za-admin-form{display:grid;gap:9px;margin-top:14px;padding-top:14px;border-top:1px solid #e4e7ec}
.za-admin-buttons{display:flex;gap:9px}
.za-admin-buttons button{flex:1}
@media(max-width:760px){
 .za-time-grid{grid-template-columns:1fr}
 .za-item{padding:13px}
 .za-compare{grid-template-columns:1fr auto 1fr;gap:8px;padding:10px}
 .za-compare strong{font-size:14px}
 .za-admin-buttons{flex-direction:column}
 .za-admin-buttons button{width:100%}
}

/* V1.44b – dauerhafte Anmeldung */
.login-remember{
  display:flex!important;
  align-items:center;
  gap:10px;
  font-weight:600!important;
  cursor:pointer;
}
.login-remember input{
  width:18px!important;
  height:18px!important;
  min-height:18px!important;
  margin:0!important;
  flex:0 0 18px;
}
.login-remember span{font-size:14px;color:#344054}

/* V1.44c */
.customer-contact{display:block;margin-top:3px;color:#667085;font-size:12px;font-weight:500}


/* V1.44e – einheitliche kundenbezogene DGUV-Filter */
.dguv-filter-card{margin-bottom:16px}
.dguv-filter-grid{
  display:grid;
  grid-template-columns:minmax(180px,.8fr) minmax(260px,1.5fr) minmax(170px,.8fr) minmax(180px,.8fr) auto;
  gap:12px;
  align-items:end;
}
.dguv-filter-grid-tests{
  grid-template-columns:minmax(180px,.8fr) minmax(240px,1.3fr) minmax(170px,.8fr) 150px 150px auto;
}
.dguv-filter-grid label{display:grid;gap:6px;font-size:13px;font-weight:750;color:#344054}
.dguv-filter-grid input,.dguv-filter-grid select{width:100%;min-width:0}
.dguv-filter-actions{display:flex;gap:8px;align-items:center}
.dguv-filter-actions .button,.dguv-filter-actions button{white-space:nowrap}
.dguv-filter-result{margin-top:10px;padding-top:10px;border-top:1px solid #eef0f3;color:#667085;font-size:13px}
.dguv-filter-result strong{color:#17202a;font-size:15px}
@media(max-width:1100px){
 .dguv-filter-grid,.dguv-filter-grid-tests{grid-template-columns:repeat(2,minmax(0,1fr))}
 .dguv-filter-search{grid-column:span 2}
 .dguv-filter-actions{grid-column:span 2}
}
@media(max-width:760px){
 .dguv-filter-grid,.dguv-filter-grid-tests{grid-template-columns:1fr!important}
 .dguv-filter-search,.dguv-filter-actions{grid-column:auto!important}
 .dguv-filter-actions{display:grid;grid-template-columns:1fr 1fr}
 .dguv-filter-actions .button,.dguv-filter-actions button{width:100%;text-align:center}
}


/* =========================================================
   V1.44h – Mobile Zeiterfassung / Bearbeiten neu geordnet
   ========================================================= */
@media(max-width:760px){
  .time-mobile-entry{
    padding:16px!important;
    border-radius:16px!important;
  }

  .time-mobile-top{
    grid-template-columns:minmax(110px,.8fr) minmax(0,1.35fr) auto!important;
    gap:12px!important;
    align-items:start!important;
  }
  .time-mobile-date strong{font-size:15px!important}
  .time-mobile-customer{
    font-size:15px!important;
    line-height:1.25!important;
    padding-top:1px;
  }
  .time-mobile-duration{
    display:grid!important;
    gap:2px!important;
    min-width:105px;
    padding:8px 11px!important;
    text-align:center!important;
  }
  .time-mobile-duration strong{
    font-size:15px!important;
    line-height:1.15!important;
    white-space:nowrap;
  }
  .time-mobile-duration small{
    display:block!important;
    font-size:10.5px!important;
    line-height:1.15!important;
    font-weight:650!important;
    color:#52866a!important;
    white-space:nowrap;
  }

  .time-mobile-times{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:0!important;
    margin:14px 0 0!important;
    border:1px solid #e4e7ec;
    border-radius:11px;
    background:#fafbfc;
    overflow:hidden;
  }
  .time-mobile-time{
    display:grid!important;
    grid-template-columns:28px minmax(0,1fr)!important;
    gap:7px!important;
    align-items:center!important;
    padding:10px 11px!important;
    min-width:0!important;
    white-space:normal!important;
    font-size:13px!important;
    position:relative;
  }
  .time-mobile-time + .time-mobile-time{
    border-left:1px solid #e4e7ec;
  }
  .time-mobile-time b{
    font-size:20px!important;
    text-align:center;
  }
  .time-mobile-time span{
    display:grid;
    gap:1px;
    min-width:0;
  }
  .time-mobile-time small{
    display:block;
    color:#667085;
    font-size:10.5px;
    line-height:1.1;
    font-weight:700;
  }
  .time-mobile-time strong,
  .time-mobile-time em{
    font-size:13.5px!important;
    line-height:1.2!important;
    font-weight:800!important;
    overflow-wrap:anywhere;
  }

  .time-mobile-note{
    margin-top:12px!important;
    padding-top:10px!important;
  }

  .time-mobile-actions{
    margin-top:12px!important;
    gap:8px!important;
  }
  .time-mobile-actions .button{
    height:36px!important;
    min-height:36px!important;
    padding:0 10px!important;
    font-size:13px!important;
    line-height:34px!important;
  }

  .time-mobile-entry.is-editing .time-mobile-actions{
    display:none!important;
  }

  .time-mobile-edit{
    margin-top:14px!important;
    padding-top:14px!important;
    border-top:1px solid #e4e7ec!important;
  }
  .time-mobile-edit-form{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:13px 12px!important;
    align-items:start!important;
  }
  .time-mobile-edit-form>label{
    display:grid!important;
    gap:6px!important;
    margin:0!important;
    min-width:0!important;
    font-size:13px!important;
    line-height:1.2!important;
    font-weight:800!important;
    color:#344054!important;
  }
  .time-mobile-edit-form input,
  .time-mobile-edit-form select,
  .time-mobile-edit-form .money-input{
    width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }
  .time-mobile-edit-form input,
  .time-mobile-edit-form select{
    height:46px!important;
    min-height:46px!important;
    font-size:14px!important;
    padding-top:0!important;
    padding-bottom:0!important;
  }
  .time-mobile-edit-form .money-input{
    height:46px!important;
  }
  .time-mobile-edit-form .money-input input{
    height:44px!important;
    min-height:44px!important;
  }
  .time-mobile-edit-form label small{
    margin-top:0!important;
    color:#667085!important;
    font-size:11px!important;
    line-height:1.25!important;
    font-weight:600!important;
  }
  .time-edit-note{
    grid-column:1/-1!important;
  }
  .time-edit-buttons{
    grid-column:1/-1!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:10px!important;
    margin-top:1px!important;
  }
  .time-edit-buttons button{
    width:100%!important;
    height:40px!important;
    min-height:40px!important;
    padding:0 12px!important;
    font-size:13.5px!important;
    line-height:38px!important;
  }
}

@media(max-width:430px){
  .time-mobile-top{
    grid-template-columns:minmax(95px,.75fr) minmax(0,1.15fr) auto!important;
    gap:9px!important;
  }
  .time-mobile-duration{min-width:92px;padding:7px 8px!important}
  .time-mobile-duration strong{font-size:14px!important}
  .time-mobile-duration small{font-size:9.5px!important}
  .time-mobile-time{
    grid-template-columns:23px minmax(0,1fr)!important;
    gap:5px!important;
    padding:9px 7px!important;
  }
  .time-mobile-time b{font-size:17px!important}
  .time-mobile-time strong,
  .time-mobile-time em{font-size:12.5px!important}
}

@media(max-width:365px){
  .time-mobile-top{
    grid-template-columns:1fr auto!important;
    grid-template-areas:"date duration" "customer customer"!important;
  }
  .time-mobile-date{grid-area:date!important}
  .time-mobile-customer{grid-area:customer!important;margin-top:3px}
  .time-mobile-duration{grid-area:duration!important}
  .time-mobile-times{
    grid-template-columns:1fr!important;
  }
  .time-mobile-time + .time-mobile-time{
    border-left:0!important;
    border-top:1px solid #e4e7ec!important;
  }
  .time-mobile-edit-form{
    grid-template-columns:1fr!important;
  }
  .time-edit-note,.time-edit-buttons{grid-column:1!important}
}


/* =========================================================
   V1.44i – Korrektur der mobilen Zeitkarten
   Überschreibt die problematischen V1.44h-Regeln gezielt.
   ========================================================= */
@media(max-width:760px){

  .time-mobile-entry{
    padding:14px!important;
    overflow:hidden!important;
  }

  /* Kopf: Datum links, Dauer rechts; Kunde darunter volle Breite */
  .time-mobile-top.time-mobile-top-stable{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:
      "date duration"
      "customer customer"!important;
    gap:6px 10px!important;
    align-items:start!important;
    width:100%!important;
  }

  .time-mobile-date{
    grid-area:date!important;
    min-width:0!important;
  }
  .time-mobile-date strong{
    font-size:15px!important;
    line-height:1.2!important;
    white-space:nowrap!important;
  }
  .time-mobile-date small{
    display:block!important;
    margin-top:3px!important;
    font-size:12px!important;
    line-height:1.15!important;
  }

  .time-mobile-customer{
    grid-area:customer!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    padding:2px 0 0!important;
    font-size:15px!important;
    line-height:1.25!important;
    font-weight:750!important;
    word-break:normal!important;
    overflow-wrap:anywhere!important;
  }

  .time-mobile-duration{
    grid-area:duration!important;
    display:grid!important;
    gap:1px!important;
    min-width:104px!important;
    max-width:128px!important;
    padding:8px 10px!important;
    border-radius:10px!important;
    text-align:center!important;
    align-self:start!important;
  }
  .time-mobile-duration strong{
    font-size:14px!important;
    line-height:1.15!important;
    white-space:nowrap!important;
  }
  .time-mobile-duration small{
    font-size:9.5px!important;
    line-height:1.1!important;
    white-space:normal!important;
  }

  /* Statuszeile: drei gleich breite Blöcke, ohne ineinanderzulaufen */
  .time-mobile-times{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:0!important;
    margin:12px 0 0!important;
    width:100%!important;
    border:1px solid #e4e7ec!important;
    border-radius:10px!important;
    overflow:hidden!important;
    background:#fafbfc!important;
  }
  .time-mobile-time{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:5px!important;
    min-width:0!important;
    padding:9px 5px!important;
    font-size:12px!important;
    line-height:1.15!important;
    white-space:normal!important;
    overflow:hidden!important;
  }
  .time-mobile-time + .time-mobile-time{
    border-left:1px solid #e4e7ec!important;
  }
  .time-mobile-time b{
    flex:0 0 auto!important;
    font-size:16px!important;
    line-height:1!important;
  }
  .time-mobile-time span{
    display:grid!important;
    gap:1px!important;
    min-width:0!important;
  }
  .time-mobile-time small{
    display:block!important;
    font-size:9.5px!important;
    line-height:1.05!important;
    color:#667085!important;
    font-weight:700!important;
  }
  .time-mobile-time strong,
  .time-mobile-time em{
    display:block!important;
    font-size:12px!important;
    line-height:1.1!important;
    font-weight:800!important;
    white-space:nowrap!important;
  }

  /* Bearbeiten/Löschen kompakt */
  .time-mobile-actions{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
    margin-top:12px!important;
  }
  .time-mobile-actions .button,
  .time-mobile-actions form,
  .time-mobile-actions form .button{
    width:100%!important;
  }
  .time-mobile-actions .button{
    height:34px!important;
    min-height:34px!important;
    line-height:32px!important;
    font-size:12.5px!important;
  }

  /* Bearbeitungsbereich bewusst einspaltig auf dem Handy */
  .time-mobile-edit{
    margin-top:12px!important;
    padding-top:12px!important;
    border-top:1px solid #e4e7ec!important;
  }
  .time-mobile-edit-form{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:11px!important;
    width:100%!important;
  }
  .time-mobile-edit-form>label,
  .time-mobile-edit-form>.time-edit-buttons{
    grid-column:1!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
  }

  .time-mobile-edit-form>label{
    display:grid!important;
    gap:5px!important;
    font-size:13px!important;
    font-weight:800!important;
    color:#344054!important;
  }

  .time-mobile-edit-form input,
  .time-mobile-edit-form select,
  .time-mobile-edit-form .money-input{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }

  .time-mobile-edit-form input,
  .time-mobile-edit-form select{
    height:44px!important;
    min-height:44px!important;
    font-size:14px!important;
  }

  .time-mobile-edit-form .money-input{
    height:44px!important;
  }
  .time-mobile-edit-form .money-input input{
    height:42px!important;
    min-height:42px!important;
  }

  .time-mobile-edit-form label small{
    margin:0!important;
    font-size:11px!important;
    line-height:1.2!important;
    color:#667085!important;
    font-weight:600!important;
  }

  .time-edit-buttons{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
    margin-top:2px!important;
  }
  .time-edit-buttons button{
    width:100%!important;
    height:38px!important;
    min-height:38px!important;
    line-height:36px!important;
    font-size:13px!important;
  }

  /* Wenn Editor offen ist, obere Aktionen ausblenden */
  .time-mobile-entry.is-editing .time-mobile-actions{
    display:none!important;
  }
}

@media(max-width:390px){
  .time-mobile-duration{
    min-width:96px!important;
    max-width:112px!important;
    padding:7px 8px!important;
  }
  .time-mobile-duration strong{font-size:13px!important}
  .time-mobile-duration small{font-size:9px!important}

  .time-mobile-time{
    gap:4px!important;
    padding:8px 4px!important;
  }
  .time-mobile-time strong,
  .time-mobile-time em{
    font-size:11.5px!important;
  }
  .time-mobile-time small{
    font-size:9px!important;
  }
}

/* Sehr schmale Geräte: Status untereinander statt zusammenquetschen */
@media(max-width:340px){
  .time-mobile-times{
    grid-template-columns:1fr!important;
  }
  .time-mobile-time + .time-mobile-time{
    border-left:0!important;
    border-top:1px solid #e4e7ec!important;
  }
}


/* =========================================================
   V1.44j – finale robuste mobile Zeitkarte
   ========================================================= */
@media(max-width:760px){
  .time-mobile-entry .time-mobile-top-stable{
    display:grid!important;
    grid-template-columns:1fr auto!important;
    grid-template-areas:
      "date duration"
      "customer customer"!important;
    width:100%!important;
  }
  .time-mobile-entry .time-mobile-date{grid-area:date!important}
  .time-mobile-entry .time-mobile-customer{
    grid-area:customer!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    writing-mode:horizontal-tb!important;
    word-break:normal!important;
    white-space:normal!important;
    overflow-wrap:break-word!important;
  }
  .time-mobile-entry .time-mobile-duration{
    grid-area:duration!important;
    width:auto!important;
    min-width:100px!important;
    max-width:130px!important;
  }

  .time-mobile-entry .time-mobile-times{
    display:grid!important;
    grid-template-columns:repeat(3,1fr)!important;
    width:100%!important;
  }

  .time-mobile-entry .time-mobile-edit-form{
    display:grid!important;
    grid-template-columns:1fr!important;
    width:100%!important;
  }
  .time-mobile-entry .time-mobile-edit-form > *{
    grid-column:1!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
  .time-mobile-entry .time-edit-buttons{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
  }
}


/* =========================================================
   V1.44k – Mobile Zeitkarte final nach freigegebener Ansicht
   ========================================================= */
@media(max-width:760px){

  /* Die komplette Karte darf niemals horizontal überlaufen */
  .time-mobile-entry,
  .time-mobile-entry *,
  .time-mobile-edit,
  .time-mobile-edit-form{
    box-sizing:border-box!important;
  }

  .time-mobile-entry{
    width:100%!important;
    max-width:100%!important;
    overflow:hidden!important;
  }

  /* Kopfbereich */
  .time-mobile-entry .time-mobile-top-stable{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:
      "date duration"
      "customer customer"!important;
    gap:7px 10px!important;
    width:100%!important;
    min-width:0!important;
  }

  .time-mobile-entry .time-mobile-date{
    grid-area:date!important;
    min-width:0!important;
  }

  .time-mobile-entry .time-mobile-customer{
    grid-area:customer!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin-top:2px!important;
    padding:0!important;
    font-size:15px!important;
    font-weight:800!important;
    line-height:1.25!important;
    white-space:normal!important;
    word-break:normal!important;
    overflow-wrap:break-word!important;
  }

  .time-mobile-entry .time-mobile-duration{
    grid-area:duration!important;
    width:auto!important;
    min-width:112px!important;
    max-width:135px!important;
    padding:8px 10px!important;
    border-radius:11px!important;
  }

  .time-mobile-entry .time-mobile-duration strong{
    font-size:14px!important;
  }

  /* Start / Status / Pause */
  .time-mobile-entry .time-mobile-times{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    width:100%!important;
    min-width:0!important;
    margin-top:12px!important;
  }

  .time-mobile-entry .time-mobile-time{
    min-width:0!important;
    overflow:hidden!important;
  }

  /* Bearbeitungsbereich */
  .time-mobile-entry .time-mobile-edit{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow:hidden!important;
  }

  .time-mobile-entry .time-mobile-edit-form{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:12px!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    padding:0!important;
    margin:0!important;
  }

  .time-mobile-entry .time-mobile-edit-form > label,
  .time-mobile-entry .time-mobile-edit-form > div{
    display:grid!important;
    grid-column:1!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
  }

  /* Hier lag der eigentliche Überlauf:
     datetime-local hat auf iOS/Chrome gern eine eigene Mindestbreite. */
  .time-mobile-entry .time-mobile-edit-form input,
  .time-mobile-entry .time-mobile-edit-form select,
  .time-mobile-entry .time-mobile-edit-form textarea,
  .time-mobile-entry .time-mobile-edit-form .money-input,
  .time-mobile-entry .time-mobile-edit-form .time-datetime-input{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    inline-size:100%!important;
    max-inline-size:100%!important;
    min-inline-size:0!important;
    box-sizing:border-box!important;
    margin:0!important;
  }

  .time-mobile-entry .time-mobile-edit-form .time-datetime-input{
    appearance:none!important;
    -webkit-appearance:none!important;
    height:46px!important;
    min-height:46px!important;
    padding:0 12px!important;
    font-size:14px!important;
    line-height:44px!important;
  }

  .time-mobile-entry .time-mobile-edit-form input[type="datetime-local"]::-webkit-date-and-time-value{
    min-width:0!important;
    text-align:left!important;
  }

  .time-mobile-entry .time-mobile-edit-form input[type="datetime-local"]::-webkit-calendar-picker-indicator{
    margin:0!important;
    padding:0!important;
  }

  .time-mobile-entry .time-mobile-edit-form .money-input{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    width:100%!important;
    max-width:100%!important;
  }

  .time-mobile-entry .time-mobile-edit-form .money-input input{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }

  .time-mobile-entry .time-mobile-edit-form label small{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    margin-top:4px!important;
    font-size:11px!important;
    line-height:1.25!important;
  }

  .time-mobile-entry .time-edit-buttons{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:10px!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin-top:2px!important;
  }

  .time-mobile-entry .time-edit-buttons button{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:40px!important;
    min-height:40px!important;
  }
}

/* Auf kleineren iPhones noch etwas mehr Sicherheitsabstand */
@media(max-width:430px){
  .time-mobile-entry{
    padding-left:13px!important;
    padding-right:13px!important;
  }

  .time-mobile-entry .time-mobile-duration{
    min-width:104px!important;
    max-width:125px!important;
  }

  .time-mobile-entry .time-mobile-edit-form .time-datetime-input{
    font-size:13.5px!important;
    padding-left:10px!important;
    padding-right:10px!important;
  }
}


/* =========================================================
   V1.45 – Dringende Hinweise / rote Badges
   ========================================================= */
.urgent-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:18px;
  height:18px;
  padding:0 5px;
  margin-left:auto;
  border-radius:999px;
  background:#e22b2b;
  color:#fff;
  font-size:10px;
  line-height:18px;
  font-weight:900;
  box-shadow:0 0 0 2px rgba(255,255,255,.12);
  vertical-align:middle;
  flex:0 0 auto;
}

.side-nav a .urgent-badge{
  margin-left:auto;
}

.mobile-category-nav > * .urgent-badge{
  position:absolute;
  top:5px;
  right:calc(50% - 24px);
  margin:0;
  min-width:17px;
  height:17px;
  padding:0 4px;
  line-height:17px;
  font-size:9px;
  z-index:3;
}

.mobile-sheet-links a .urgent-badge{
  margin-left:auto;
  margin-right:4px;
}

.urgent-center{
  position:relative;
}
.urgent-center summary{
  list-style:none;
}
.urgent-center summary::-webkit-details-marker{
  display:none;
}
.urgent-center-button{
  position:relative;
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border-radius:11px;
  border:1px solid #d9dee5;
  background:#fff;
  cursor:pointer;
  user-select:none;
}
.urgent-center-button:hover{
  background:#f8fafb;
}
.urgent-bell-icon{
  font-size:19px;
  line-height:1;
}
.urgent-center-button .urgent-badge{
  position:absolute;
  right:-5px;
  top:-5px;
  margin:0;
  box-shadow:0 0 0 2px #fff;
}
.urgent-center-popover{
  position:absolute;
  right:0;
  top:calc(100% + 9px);
  z-index:1000;
  width:min(360px,calc(100vw - 24px));
  background:#fff;
  border:1px solid #e0e5ea;
  border-radius:14px;
  box-shadow:0 16px 38px rgba(15,23,42,.18);
  overflow:hidden;
}
.urgent-center-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:13px 14px;
  border-bottom:1px solid #eef0f3;
}
.urgent-center-head strong{
  font-size:14px;
}
.urgent-center-head span{
  display:grid;
  place-items:center;
  min-width:23px;
  height:23px;
  padding:0 6px;
  border-radius:999px;
  background:#e22b2b;
  color:#fff;
  font-size:11px;
  font-weight:900;
}
.urgent-center-popover>a{
  display:grid;
  grid-template-columns:28px minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  padding:12px 14px;
  color:inherit;
  text-decoration:none;
  border-bottom:1px solid #f0f2f4;
}
.urgent-center-popover>a:hover{
  background:#f8fafb;
}
.urgent-center-popover>a>span:first-child{
  font-size:20px;
  text-align:center;
}
.urgent-center-popover>a>div{
  display:grid;
  gap:2px;
  min-width:0;
}
.urgent-center-popover>a strong{
  font-size:13px;
}
.urgent-center-popover>a small{
  font-size:11px;
  color:#667085;
}
.urgent-center-empty{
  padding:16px 14px;
  color:#667085;
  font-size:13px;
}

@media(max-width:760px){
  .urgent-center-button{
    width:38px;
    height:38px;
  }
  .urgent-center-popover{
    position:fixed;
    top:66px;
    right:10px;
    left:10px;
    width:auto;
  }
  .mobile-category-nav > *{
    position:relative!important;
  }
}


/* =========================================================
   V1.45c – Betriebsmittel mobil / Untermenü-Hinweise bereinigt
   ========================================================= */

/* Im geöffneten Untermenü grundsätzlich keine roten Zahlen mehr.
   Die dringenden Badges sitzen nur in der unteren Hauptnavigation. */
.mobile-sheet-links .urgent-badge{
  display:none!important;
}

.equipment-mobile-list{
  display:none;
}

@media(max-width:760px){

  /* Kopfaktionen wie im freigegebenen Entwurf */
  .pagehead{
    gap:12px!important;
  }
  .pagehead>h1{
    width:100%!important;
    margin-bottom:2px!important;
  }
  .pagehead .page-actions{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:10px!important;
    width:100%!important;
  }
  .pagehead .page-actions .button{
    width:100%!important;
    min-width:0!important;
    min-height:46px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
  }

  /* Filterkarte ruhig und einspaltig */
  .dguv-filter-card{
    padding:16px!important;
    border-radius:15px!important;
  }
  .dguv-filter-grid{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:13px!important;
  }
  .dguv-filter-grid label,
  .dguv-filter-search{
    grid-column:1!important;
  }
  .dguv-filter-grid input,
  .dguv-filter-grid select{
    height:46px!important;
    min-height:46px!important;
    font-size:14px!important;
  }
  .dguv-filter-actions{
    grid-column:1!important;
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:10px!important;
  }
  .dguv-filter-actions button,
  .dguv-filter-actions .button{
    width:100%!important;
    min-width:0!important;
    height:44px!important;
    min-height:44px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
  }
  .dguv-filter-result{
    display:none!important;
  }

  /* Dringender Hinweis ordentlich als eigene Karte */
  .equipment-filter-banner-v145c{
    padding:0!important;
    overflow:hidden!important;
    border-left:3px solid #d92d20!important;
    border-radius:14px!important;
    margin-bottom:14px!important;
  }
  .equipment-alert-main{
    display:grid!important;
    grid-template-columns:44px minmax(0,1fr) auto!important;
    gap:12px!important;
    align-items:center!important;
    padding:14px 14px 12px!important;
  }
  .equipment-alert-icon{
    display:grid!important;
    place-items:center!important;
    width:40px!important;
    height:40px!important;
    border-radius:12px!important;
    background:#fee4e2!important;
    color:#d92d20!important;
    font-size:20px!important;
    font-weight:900!important;
  }
  .equipment-alert-main>div:nth-child(2){
    display:grid!important;
    gap:3px!important;
    min-width:0!important;
  }
  .equipment-alert-main>div:nth-child(2)>strong{
    font-size:14px!important;
    line-height:1.2!important;
  }
  .equipment-alert-main>div:nth-child(2)>span{
    font-size:12px!important;
    color:#667085!important;
  }
  .equipment-alert-count{
    display:grid!important;
    gap:1px!important;
    text-align:center!important;
    min-width:42px!important;
  }
  .equipment-alert-count strong{
    font-size:22px!important;
    line-height:1!important;
    color:#d92d20!important;
  }
  .equipment-alert-count small{
    font-size:10px!important;
    color:#667085!important;
  }
  .equipment-alert-link{
    display:flex!important;
    justify-content:space-between!important;
    align-items:center!important;
    gap:10px!important;
    padding:10px 14px!important;
    border-top:1px solid #f1f3f5!important;
    color:#475467!important;
    text-decoration:none!important;
    font-size:12px!important;
    font-weight:750!important;
  }

  /* Mobile Ergebnisliste statt gequetschter Tabelle */
  .equipment-mobile-list{
    display:grid!important;
    gap:9px!important;
    margin-bottom:18px!important;
  }
  .equipment-mobile-card{
    display:grid!important;
    grid-template-columns:minmax(0,1.45fr) minmax(80px,.9fr) minmax(92px,.9fr) auto auto!important;
    gap:9px!important;
    align-items:center!important;
    width:100%!important;
    min-width:0!important;
    padding:12px 11px!important;
    border:1px solid #e4e7ec!important;
    border-radius:12px!important;
    background:#fff!important;
    color:inherit!important;
    text-decoration:none!important;
  }
  .equipment-mobile-card.is-overdue{
    border-left:3px solid #d92d20!important;
  }
  .equipment-mobile-main{
    display:grid!important;
    grid-template-columns:34px minmax(0,1fr)!important;
    gap:8px!important;
    align-items:center!important;
    min-width:0!important;
  }
  .equipment-mobile-icon{
    display:grid!important;
    place-items:center!important;
    width:32px!important;
    height:32px!important;
    border-radius:8px!important;
    background:#f2f4f7!important;
    color:#344054!important;
  }
  .equipment-mobile-info{
    display:grid!important;
    gap:2px!important;
    min-width:0!important;
  }
  .equipment-mobile-info strong{
    font-size:12.5px!important;
    line-height:1.2!important;
    overflow-wrap:anywhere!important;
  }
  .equipment-mobile-info small{
    font-size:10.5px!important;
    color:#667085!important;
  }
  .equipment-mobile-customer,
  .equipment-mobile-due{
    display:grid!important;
    gap:2px!important;
    min-width:0!important;
  }
  .equipment-mobile-customer small,
  .equipment-mobile-due small{
    display:none!important;
  }
  .equipment-mobile-customer strong,
  .equipment-mobile-due strong{
    font-size:11.5px!important;
    line-height:1.2!important;
    font-weight:700!important;
    overflow-wrap:anywhere!important;
  }
  .equipment-mobile-due span{
    font-size:10.5px!important;
    line-height:1.1!important;
    color:#d92d20!important;
    font-weight:750!important;
  }
  .equipment-mobile-status .badge{
    font-size:10px!important;
    white-space:nowrap!important;
  }
  .equipment-mobile-chevron{
    font-size:22px!important;
    color:#475467!important;
    font-weight:400!important;
  }
  .equipment-mobile-result-count{
    text-align:center!important;
    padding:5px 0 0!important;
    color:#667085!important;
    font-size:12px!important;
  }
  .equipment-mobile-result-count strong{
    color:#17202a!important;
  }
  .equipment-mobile-empty{
    padding:16px!important;
    text-align:center!important;
    color:#667085!important;
  }

  /* Desktop-/alte mobile Tabellen auf dem Handy ausblenden */
  #bulk-delete-form{
    display:none!important;
  }
  body:has(.equipment-mobile-list) > .app-shell .card > table,
  body:has(.equipment-mobile-list) .app-container > .card > table{
    /* intentionally broad only on equipment page; modern browsers */
  }

  /* Kundenansicht-Tabelle direkt hinter mobile list verstecken */
  .equipment-mobile-list + form#bulk-delete-form{
    display:none!important;
  }
}

/* Auf sehr schmalen Geräten Kunden- und Fälligkeitsinfo stapeln */
@media(max-width:430px){
  .equipment-mobile-card{
    grid-template-columns:minmax(0,1.4fr) minmax(72px,.7fr) auto!important;
    grid-template-areas:
      "main due chevron"
      "customer status chevron"!important;
  }
  .equipment-mobile-main{grid-area:main!important}
  .equipment-mobile-customer{grid-area:customer!important}
  .equipment-mobile-due{grid-area:due!important}
  .equipment-mobile-status{grid-area:status!important}
  .equipment-mobile-chevron{grid-area:chevron!important}
  .equipment-mobile-customer small,
  .equipment-mobile-due small{
    display:block!important;
    font-size:9px!important;
    color:#98a2b3!important;
  }
}


/* V1.45h – QR-Scan Betriebsmittel */
.equipment-page-actions #equipment-scan-open{white-space:nowrap}
@media(max-width:760px){
  .equipment-page-actions{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:9px!important;
  }
  .equipment-page-actions #equipment-scan-open{
    grid-column:1/-1!important;
    width:100%!important;
    min-height:46px!important;
  }
  .equipment-page-actions>a{width:100%!important}
}


/* =========================================================
   V1.45i – Betriebsmittel Mehrfachauswahl / Sammelaktionen
   ========================================================= */
.equipment-bulk-toolbar{
  display:grid;
  gap:12px;
  margin-bottom:14px;
}
.equipment-bulk-summary{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
}
.equipment-bulk-summary span{
  color:#667085;
  font-size:13px;
  font-weight:700;
}
.equipment-bulk-select-actions,
.equipment-bulk-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.equipment-bulk-actions .button{
  min-width:130px;
}
.equipment-bulk-actions .button.warning{
  background:#b54708;
  border-color:#b54708;
  color:#fff;
}
.equipment-bulk-actions .button:disabled{
  opacity:.45;
  cursor:not-allowed;
}
.equipment-mobile-select-row{
  display:grid;
  grid-template-columns:38px minmax(0,1fr);
  gap:7px;
  align-items:stretch;
}
.equipment-mobile-check{
  display:grid;
  place-items:center;
  border:1px solid #e4e7ec;
  border-radius:11px;
  background:#fff;
  cursor:pointer;
}
.equipment-mobile-check input{
  width:20px;
  height:20px;
  margin:0;
}
.equipment-mobile-select-row.is-selected .equipment-mobile-check{
  border-color:#1570ef;
  background:#eff8ff;
}
.equipment-mobile-select-row.is-selected .equipment-mobile-card{
  border-color:#84caff!important;
  background:#f5fbff!important;
}
.equipment-desktop-bulk-table{
  overflow:auto;
}
@media(max-width:760px){
  .equipment-bulk-toolbar{
    position:sticky;
    top:68px;
    z-index:15;
    padding:12px!important;
    box-shadow:0 6px 18px rgba(15,23,42,.10);
  }
  .equipment-bulk-summary{
    align-items:flex-start;
  }
  .equipment-bulk-select-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .equipment-bulk-select-actions .button{
    width:100%;
    min-width:0;
  }
  .equipment-bulk-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .equipment-bulk-actions .button{
    width:100%;
    min-width:0;
    font-size:12.5px;
    padding-left:8px;
    padding-right:8px;
  }
  .equipment-desktop-bulk-table{
    display:none!important;
  }
  .equipment-mobile-select-row .equipment-mobile-card{
    min-width:0;
  }
}
@media(min-width:761px){
  #equipment-bulk-form > .equipment-mobile-list{
    display:none!important;
  }
}


/* =========================================================
   V1.45j – Push-Glocke: mobiles Einstellmenü
   ========================================================= */
.push-mobile-wrap{
  position:relative;
}
.push-mobile-menu{
  display:none;
}
@media(max-width:760px){
  .push-mobile-wrap{
    position:relative;
    flex:0 0 auto;
  }

  .push-mobile-menu:not([hidden]){
    display:grid!important;
    gap:12px;
    position:fixed;
    top:64px;
    left:12px;
    right:12px;
    z-index:1200;
    padding:14px;
    border:1px solid #e4e7ec;
    border-radius:14px;
    background:#fff;
    color:#17202a;
    box-shadow:0 16px 38px rgba(15,23,42,.24);
  }

  .push-mobile-menu-head{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:12px;
    align-items:start;
  }

  .push-mobile-menu-head>div{
    display:grid;
    gap:4px;
    min-width:0;
  }

  .push-mobile-menu-head strong{
    font-size:15px;
    line-height:1.2;
  }

  .push-mobile-menu-head small,
  .push-mobile-status{
    font-size:12px;
    line-height:1.35;
    color:#667085;
  }

  .push-mobile-status.success{
    color:#067647;
  }

  .push-mobile-status.error{
    color:#b42318;
  }

  .push-mobile-close{
    width:32px;
    height:32px;
    padding:0;
    border:0;
    border-radius:8px;
    background:#f2f4f7;
    color:#344054;
    font-size:22px;
    line-height:1;
    cursor:pointer;
  }

  .push-mobile-action,
  .push-mobile-settings-link{
    width:100%!important;
    min-height:42px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
  }

  .push-top-button{
    position:relative;
  }
}


/* =========================================================
   V1.45k – sichtbarer Push-Status an der Glocke
   ========================================================= */
.push-top-button .push-bell-icon{
  display:inline-block;
  position:relative;
  line-height:1;
}
.push-top-button.push-state-active .push-bell-icon{
  filter:none;
  opacity:1;
}
.push-top-button.push-state-inactive{
  color:#98a2b3;
}
.push-top-button.push-state-inactive .push-bell-icon{
  filter:grayscale(1);
  opacity:.72;
}
.push-top-button.push-state-inactive .push-bell-icon::after{
  content:'';
  position:absolute;
  left:50%;
  top:50%;
  width:22px;
  height:2px;
  border-radius:2px;
  background:currentColor;
  transform:translate(-50%,-50%) rotate(-45deg);
  transform-origin:center;
  pointer-events:none;
}

@media(max-width:760px){
  .push-top-button{
    display:grid!important;
    place-items:center!important;
  }
  .push-top-button .push-button-label{
    display:none!important;
  }
  .push-top-button::before{
    content:none!important;
  }
  .push-top-button .push-bell-icon{
    font-size:18px!important;
  }
  .push-top-button.push-state-active{
    background:rgba(255,255,255,.10)!important;
    border-color:rgba(255,255,255,.18)!important;
    color:#fff!important;
  }
  .push-top-button.push-state-inactive{
    background:rgba(255,255,255,.04)!important;
    border-color:rgba(255,255,255,.09)!important;
    color:#98a2b3!important;
  }
}

/* V1.45l – Gebäudeinstallation: interaktiver Prüfleitfaden */
.guide-hero{display:flex;justify-content:space-between;gap:24px;align-items:center;background:linear-gradient(135deg,#0f2638,#153f5e);color:#fff;border:0}.guide-hero h1{color:#fff;margin:.2rem 0}.guide-hero p{margin:.25rem 0;color:#dbe9f2}.guide-slogan{font-weight:700;letter-spacing:.04em;text-transform:uppercase;font-size:.78rem}.guide-type{min-width:220px;border-radius:18px;padding:18px;background:rgba(255,255,255,.1);display:grid;grid-template-columns:42px 1fr;gap:2px 10px;align-items:center}.guide-type>span{grid-row:1/3;font-size:30px}.guide-type strong,.guide-type small{display:block}.guide-type small{color:#c9dbe6}.guide-type.first{box-shadow:inset 4px 0 #2fb36d}.guide-type.repeat{box-shadow:inset 4px 0 #6da9ff}.guide-progress-card{padding-bottom:18px}.guide-progress{height:10px;border-radius:999px;background:#e7edf2;overflow:hidden}.guide-progress i{display:block;width:0;height:100%;background:linear-gradient(90deg,#2389c9,#31ad6c);transition:width .25s}.guide-steps{display:grid;gap:10px}.guide-step{padding:0;overflow:hidden;transition:.2s}.guide-step.done{border-color:#8bd3a9;box-shadow:0 0 0 1px #8bd3a9 inset}.guide-step-head{width:100%;border:0;background:transparent;color:inherit;display:grid;grid-template-columns:34px 48px 1fr 28px;align-items:center;gap:10px;padding:14px 16px;text-align:left}.guide-step-number{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#eef2f6;font-weight:800}.guide-step.done .guide-step-number{background:#2da96b;color:#fff}.guide-step-icon{width:46px;height:40px;border-radius:11px;display:grid;place-items:center;font-weight:800;background:#eaf4fb;color:#176b9d}.guide-step-icon.pe,.guide-step-icon.fun{background:#e9f7ef;color:#20844f}.guide-step-icon.iso{background:#fff4cf;color:#9b7100}.guide-step-icon.volt{background:#fdebec;color:#b33d43}.guide-step-icon.loop{background:#f0ebfb;color:#6f50a6}.guide-step-icon.rcd{background:#e8f3ff;color:#2369a7}.guide-step-icon.pdf{background:#eef1f4;color:#394957;font-size:.72rem}.guide-step-title strong,.guide-step-title small{display:block}.guide-step-title small{margin-top:2px;color:#667085}.guide-chevron{font-size:22px;color:#98a2b3}.guide-step-head[aria-expanded="true"] .guide-chevron{transform:rotate(180deg)}.guide-step-body{padding:0 16px 16px 118px}.guide-how,.guide-note{padding:12px 14px;border-radius:10px;margin-bottom:8px}.guide-how{background:#f5f9fc}.guide-note{background:#fff8df}.guide-how p,.guide-note p{margin:.25rem 0 0}.guide-done{display:flex!important;align-items:center;gap:9px;font-weight:700;margin-top:12px}.guide-done input{width:21px;height:21px}.guide-finish{margin-top:14px;display:flex;gap:20px;align-items:center;justify-content:space-between}.guide-finish>div{max-width:760px}.guide-upload{white-space:nowrap}
@media(max-width:760px){.guide-hero,.guide-finish{display:block}.guide-type{min-width:0;margin-top:16px}.guide-step-head{grid-template-columns:30px 42px 1fr 20px;padding:12px 10px;gap:7px}.guide-step-icon{width:40px}.guide-step-body{padding:0 10px 13px 89px}.guide-upload{display:flex!important;margin-top:14px;width:100%;justify-content:center}}

/* V1.45m – Prüfleitfaden: Ergebnisstatus + Anlagenzustand */
.guide-status-legend{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.guide-pill{display:inline-flex;align-items:center;padding:6px 9px;border-radius:999px;font-size:.76rem;font-weight:800}.guide-pill.ok{background:#e8f7ef;color:#167447}.guide-pill.bad{background:#fdebec;color:#b42318}.guide-pill.skip{background:#eef2f6;color:#475467}.guide-pill.blocked{background:#fff4cf;color:#8a6500}.guide-result{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:12px}.guide-result button{min-height:42px;border:1px solid #d8dee5;border-radius:10px;background:#fff;color:#344054;font-weight:750;padding:7px;cursor:pointer}.guide-result button[data-status="ok"].active{background:#e8f7ef;border-color:#2da96b;color:#167447}.guide-result button[data-status="failed"].active{background:#fdebec;border-color:#d92d20;color:#b42318}.guide-result button[data-status="skip"].active{background:#eef2f6;border-color:#98a2b3;color:#344054}.guide-result button[data-status="blocked"].active{background:#fff4cf;border-color:#e0a800;color:#7a5900}.guide-step[data-status="ok"]{border-left:5px solid #2da96b}.guide-step[data-status="failed"]{border-left:5px solid #d92d20}.guide-step[data-status="skip"]{border-left:5px solid #98a2b3}.guide-step[data-status="blocked"]{border-left:5px solid #e0a800}.guide-reason{margin-top:10px;padding:12px;border-radius:10px;background:#f8fafc;border:1px solid #e4e7ec}.guide-reason label{display:grid;gap:6px}.guide-reason select,.guide-reason textarea{width:100%;margin-top:6px}.asset-condition-panel{margin:0 0 14px;padding:16px;border-radius:14px;background:#f8fafc;border:1px solid #e4e7ec}.asset-condition-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.asset-condition-title{display:flex;align-items:center;gap:10px}.asset-condition-light{width:14px;height:14px;border-radius:50%;box-shadow:0 0 0 5px rgba(0,0,0,.04)}.asset-condition-light.good{background:#2da96b}.asset-condition-light.due{background:#e0a800}.asset-condition-light.bad{background:#d92d20}.asset-condition-light.unknown{background:#98a2b3}.asset-condition-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.asset-condition-item{padding:10px 12px;border-radius:10px;background:#fff;border:1px solid #eaecf0}.asset-condition-item small,.asset-condition-item strong{display:block}.asset-condition-item small{color:#667085;margin-bottom:3px}.asset-condition-item strong{font-size:.9rem}.asset-condition-main{font-size:1.05rem;font-weight:800}.asset-condition-main.good{color:#167447}.asset-condition-main.due{color:#8a6500}.asset-condition-main.bad{color:#b42318}.asset-condition-main.unknown{color:#667085}@media(max-width:760px){.guide-result{grid-template-columns:1fr 1fr}.asset-condition-grid{grid-template-columns:1fr}.asset-condition-head{align-items:flex-start}.guide-step-body{padding-left:10px}}

/* =========================================================
 * TS-TOOLS Modern UI 2026 – responsive Desktop / iPad / iPhone
 * ========================================================= */
:root{--bg:#f4f7fb;--surface:#fff;--surface2:#f8fafc;--text:#142033;--muted:#667085;--line:#e4eaf1;--nav:#fff;--nav2:#fff;--green:#16a34a;--green2:#12823c;--blue:#1677e8;--red:#d92d20;--radius:12px;--shadow:0 3px 14px rgba(16,24,40,.055);--sidebar:220px;--top:60px}
body{font-size:13px;background:var(--bg);color:var(--text)}
h1{font-size:24px;letter-spacing:-.35px}h2{font-size:16px}.eyebrow{color:var(--blue);font-size:10px}.page-subtitle{font-size:13px;margin-top:4px}
.sidebar{background:#fff;color:#344054;border-right:1px solid var(--line);box-shadow:none}.side-brand{height:60px;color:#142033;border-bottom:1px solid var(--line);padding:0 15px}.brand-main{font-size:14px}.brand-subline{color:#98a2b3}.version-pill{background:#eef5ff;color:#1677e8}.side-nav{padding:12px 9px;gap:3px}.side-nav a{color:#475467;padding:9px 10px;border-radius:9px;border-left:0;font-size:13px}.side-nav a:hover{background:#f5f8fc;color:#142033}.side-nav a.active{background:#edf5ff;color:#1268cf;border-left:0}.nav-icon{color:#53657a}
.app-topbar{height:60px;background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);padding:0 20px;backdrop-filter:blur(12px)}.breadcrumb-title{font-size:13px}.user-pill{font-size:12px;background:#f7f9fc;border:1px solid #e5eaf0;border-radius:999px;padding:6px 10px}
.container.app-container{padding-top:calc(var(--top) + 20px)}.container{padding-left:22px;padding-right:22px}.card{border-color:var(--line);border-radius:12px;box-shadow:var(--shadow);padding:15px;margin-bottom:14px}.hero-row{margin-bottom:16px}.crumbs{margin-bottom:10px;font-size:11px}
.button,button{min-height:34px;padding:6px 11px;border-radius:8px;font-size:12px;font-weight:700;box-shadow:none}.button.small{min-height:29px;padding:4px 8px;font-size:11px}.button.secondary,button.secondary,.button.subtle{border-color:#d9e1ea}.hero-actions{gap:6px}
input,select,textarea{min-height:37px;border-color:#d8e0e9;border-radius:8px;padding:7px 9px;font-size:13px}textarea{min-height:92px}label{font-size:12px;gap:4px}.formgrid{gap:11px}.stats-grid{gap:11px}.stat-card{border-radius:12px;padding:13px}.stat-card strong{font-size:23px}.section-head{margin-bottom:8px}th,td{padding:8px 9px}.tabs{gap:18px}.tab{padding:8px 0;font-size:12px}
.asset-layout{grid-template-columns:minmax(0,1.8fr) 280px;gap:12px}.asset-main-card{min-height:0}.asset-title{font-size:20px;margin-bottom:16px}.asset-dl{grid-template-columns:160px 1fr;gap:7px 14px}.stack-actions{gap:6px}.asset-actions-col .button{min-height:34px}
.flash,.error{padding:9px 11px;border-radius:9px;margin-bottom:12px}.form-note{font-size:12px;line-height:1.45}
@media (min-width:761px) and (max-width:1180px){:root{--sidebar:190px}.side-nav a{padding:8px}.container{padding-left:16px;padding-right:16px}.asset-layout{grid-template-columns:1fr}.asset-actions-col{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){body{padding-bottom:70px}.sidebar{background:#fff;border:0}.side-brand{height:52px;padding:0 13px}.side-nav{display:none!important}.app-topbar{height:44px;padding:0 12px;border-top:1px solid var(--line)}.breadcrumb-title{font-size:12px}.user-pill{padding:5px 8px}.container.app-container{padding-top:12px}.container{padding-left:10px;padding-right:10px}h1{font-size:22px}.pagehead{margin-bottom:12px}.card{padding:12px;border-radius:11px;margin-bottom:10px}.button,button{min-height:34px;font-size:12px}.hero-row{gap:10px;margin-bottom:12px}.hero-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}.hero-actions .button{width:100%}.stats-grid{gap:8px}.stat-card{padding:11px}.formgrid{gap:9px}.app-footer{padding:14px 12px 76px}.asset-actions-col{gap:8px}.asset-dl{gap:3px}.asset-dl dt{font-size:11px;margin-top:8px}.asset-dl dd{font-size:13px}.table-wrap{border-radius:10px}}
@media(max-width:480px){.button{width:auto}.hero-actions .button{width:100%}.stats-grid{grid-template-columns:1fr 1fr}.stat-card strong{font-size:20px}.stat-card small{font-size:10px}.brand-main{font-size:13px}}

/* =========================================================
   V1.46 – Mobile Zeiterfassung: kompakter & ruhiger
   ========================================================= */
@media(max-width:760px){
  .time-pagehead{gap:10px!important;margin-bottom:12px!important}
  .time-pagehead h1{font-size:22px!important;line-height:1.15!important}
  .time-pagehead .page-subtitle{font-size:12px!important}

  .time-clock-card{
    grid-template-columns:1fr!important;
    gap:12px!important;
    padding:15px!important;
    border-radius:14px!important;
    margin-bottom:14px!important;
  }
  .time-clock-main h2{font-size:18px!important;line-height:1.2!important;margin:2px 0 4px!important}
  .time-clock-description{font-size:12px!important;line-height:1.35!important}
  .time-running-meta{font-size:12px!important;gap:2px!important}

  .clock-action-form{gap:9px!important}
  .clock-action-form label{font-size:12px!important;gap:4px!important}
  .clock-action-form input,.clock-action-form select{min-height:40px!important;height:40px!important;padding:7px 10px!important;font-size:13px!important;border-radius:8px!important}
  .clock-primary-button,.time-clock-card .clock-main-button,.time-quick-button{
    min-height:44px!important;
    height:auto!important;
    padding:9px 13px!important;
    border-radius:9px!important;
    font-size:13px!important;
    gap:8px!important;
    box-shadow:none!important;
  }
  .clock-primary-button strong{font-size:14px!important;line-height:1.15!important}
  .clock-primary-button small{font-size:10px!important;margin-top:1px!important}
  .clock-button-icon{font-size:17px!important}

  .time-chart-card,.time-entry-card,.time-mobile-entry{border-radius:12px!important}
  .time-chart-card{padding:14px!important}
  .time-chart-card h2,.time-entry-card h2{font-size:15px!important}
  .time-chart-total{font-size:11px!important;padding:4px 8px!important}
  .time-chart-wrap canvas{height:190px!important}

  .time-mobile-entry{padding:12px!important;margin-bottom:10px!important}
  .time-mobile-entry .time-mobile-top-stable{gap:5px 8px!important}
  .time-mobile-entry .time-mobile-date strong{font-size:13px!important}
  .time-mobile-entry .time-mobile-customer{font-size:13px!important;line-height:1.2!important;margin-top:0!important}
  .time-mobile-entry .time-mobile-duration{min-width:86px!important;max-width:105px!important;padding:6px 8px!important;border-radius:9px!important}
  .time-mobile-entry .time-mobile-duration strong{font-size:12px!important}
  .time-mobile-entry .time-mobile-duration small{font-size:9px!important}
  .time-mobile-entry .time-mobile-times{margin-top:9px!important;border-radius:9px!important}
  .time-mobile-entry .time-mobile-time{padding:7px 6px!important;grid-template-columns:20px minmax(0,1fr)!important;gap:4px!important;font-size:11px!important}
  .time-mobile-entry .time-mobile-time strong{font-size:11px!important}
  .time-mobile-entry .time-mobile-time small{font-size:9px!important}

  .time-summary-value,.time-stat-value,.time-overview-summary strong,.time-dashboard-summary strong,
  .time-employee-sum strong,.time-customer-sum strong,.time-internal-sum strong,.time-summary-card strong,
  .time-summary-row strong,.stat-card .value,.metric-card .value,.summary-card .value,.summary-value,.dashboard-stat-value{
    font-size:14px!important;line-height:1.15!important
  }
  .stat-card.compact{min-height:68px!important;padding:10px 12px!important}
  .stat-card strong{font-size:18px!important}
  .stat-card small{font-size:10px!important}

  .time-mobile-actions .button,.time-admin-actions .button,.time-entry-card .button{min-height:34px!important;height:34px!important;padding:0 11px!important;font-size:12px!important;border-radius:7px!important}
}


/* =========================================================
   V1.46c – Mobile Zeiterfassung, TS-Tools im Fiori-Stil
   ========================================================= */
@media(max-width:760px){
  /* Ruhige App-Fläche */
  body{background:#f4f5f6!important;padding-bottom:calc(76px + env(safe-area-inset-bottom))!important}
  .time-fiori-page{padding-bottom:8px}
  .time-fiori-page .time-pagehead{display:block!important;margin:2px 0 14px!important}
  .time-fiori-page .time-pagehead h1{font-size:30px!important;line-height:1.05!important;letter-spacing:-.6px!important;margin:0 0 5px!important;color:#1d2d3e!important;font-weight:850!important}
  .time-fiori-page .time-pagehead .page-subtitle{font-size:12.5px!important;line-height:1.35!important;margin:0!important;color:#6a7b8d!important}

  /* Stempeln = App-Karte statt großer Hero-Block */
  .time-fiori-page .time-clock-card,
  .time-fiori-page .time-clock-card.running{
    display:grid!important;grid-template-columns:1fr!important;gap:12px!important;
    margin:0 0 12px!important;padding:15px!important;background:#fff!important;color:#1d2d3e!important;
    border:1px solid #dfe3e7!important;border-radius:15px!important;box-shadow:0 2px 7px rgba(15,34,53,.08)!important;
  }
  .time-fiori-page .time-clock-card.running{border-left:4px solid #188918!important}
  .time-fiori-page .time-clock-main{min-width:0!important}
  .time-fiori-page .time-clock-main .eyebrow{font-size:10px!important;letter-spacing:.06em!important;color:#5b738b!important;margin:0 0 4px!important}
  .time-fiori-page .time-clock-card.running .eyebrow{color:#188918!important}
  .time-fiori-page .time-clock-main h2{font-size:17px!important;line-height:1.2!important;margin:0 0 5px!important;color:#1d2d3e!important;font-weight:800!important}
  .time-fiori-page .time-clock-description{font-size:12px!important;line-height:1.4!important;margin:0!important;color:#6a7b8d!important}
  .time-fiori-page .time-running-meta{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;margin-top:8px!important;color:#556b80!important;font-size:11px!important}
  .time-fiori-page .time-running-meta span{display:grid!important;gap:1px!important;min-width:0!important}
  .time-fiori-page .time-running-meta span:nth-child(2){grid-column:1/-1!important}
  .time-fiori-page .time-running-meta strong{font-size:12px!important;color:#1d2d3e!important;overflow-wrap:anywhere!important}

  .time-fiori-page .clock-action-form{display:grid!important;grid-template-columns:1fr!important;gap:9px!important;width:100%!important;margin:0!important}
  .time-fiori-page .clock-action-form label{display:grid!important;gap:4px!important;font-size:11px!important;color:#40566c!important;font-weight:700!important}
  .time-fiori-page .clock-action-form input,
  .time-fiori-page .clock-action-form select{height:42px!important;min-height:42px!important;padding:0 11px!important;border:1px solid #cbd3da!important;border-radius:9px!important;background:#fff!important;color:#1d2d3e!important;font-size:13px!important;box-shadow:none!important}
  .time-fiori-page .optional-label{font-size:10px!important;color:#8796a5!important;font-weight:500!important}
  .time-fiori-page .clock-primary-button,
  .time-fiori-page .time-clock-card .clock-main-button{
    width:100%!important;height:42px!important;min-height:42px!important;padding:0 14px!important;border-radius:9px!important;
    gap:7px!important;font-size:13px!important;font-weight:750!important;box-shadow:none!important;
  }
  .time-fiori-page .clock-primary-button.success{background:#0a6ed1!important}
  .time-fiori-page .clock-primary-button.secondary{background:#fff!important;color:#0a6ed1!important;border:1px solid #0a6ed1!important}
  .time-fiori-page .clock-primary-button.danger{background:#fff!important;color:#bb0000!important;border:1px solid #bb0000!important}
  .time-fiori-page .clock-primary-button>span:last-child{display:block!important;line-height:1!important;text-align:center!important}
  .time-fiori-page .clock-primary-button strong{font-size:13px!important;line-height:1!important}
  .time-fiori-page .clock-primary-button small{display:none!important}
  .time-fiori-page .clock-button-icon{font-size:13px!important;line-height:1!important}

  /* SAP-artige Kennzahlen: flach, klein, viel Luft */
  .time-fiori-page .stats-grid.time-stats{display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px!important;margin:0 0 12px!important}
  .time-fiori-page .time-stats .stat-card{min-height:72px!important;padding:11px 12px!important;gap:9px!important;border:1px solid #dfe3e7!important;border-radius:13px!important;background:#fff!important;box-shadow:0 2px 6px rgba(15,34,53,.06)!important}
  .time-fiori-page .time-stats .stat-icon{width:31px!important;height:31px!important;border-radius:50%!important;background:#edf5ff!important;color:#0a6ed1!important;font-size:13px!important}
  .time-fiori-page .time-stats small{font-size:10px!important;line-height:1.1!important;color:#6a7b8d!important;font-weight:650!important}
  .time-fiori-page .time-stats strong{display:block!important;margin-top:2px!important;font-size:16px!important;line-height:1.15!important;color:#1d2d3e!important;font-weight:800!important;white-space:normal!important}

  /* Monatsverlauf wie eine Monitoring-Karte */
  .time-fiori-page .time-chart-card{padding:13px!important;margin-bottom:12px!important;border:1px solid #dfe3e7!important;border-radius:14px!important;box-shadow:0 2px 6px rgba(15,34,53,.06)!important}
  .time-fiori-page .time-chart-card .section-head{display:flex!important;flex-direction:row!important;align-items:center!important;margin:0 0 5px!important}
  .time-fiori-page .time-chart-card .section-head h2{font-size:14px!important;margin:0!important;color:#1d2d3e!important}
  .time-fiori-page .time-chart-card .section-head span{display:none!important}
  .time-fiori-page .time-chart-total{font-size:10px!important;padding:4px 8px!important;border-radius:999px!important;background:#edf5ff!important;border-color:#d1e7ff!important;color:#0a6ed1!important}
  .time-fiori-page .time-chart-wrap{padding-top:2px!important}
  .time-fiori-page .time-chart-wrap canvas{height:155px!important}

  /* Buchungen als ruhige To-Do-Karten */
  .time-fiori-page .time-mobile-list{display:grid!important;gap:9px!important}
  .time-fiori-page .time-mobile-entry{padding:12px!important;margin:0!important;border:1px solid #dfe3e7!important;border-radius:13px!important;background:#fff!important;box-shadow:0 2px 6px rgba(15,34,53,.055)!important;overflow:hidden!important}
  .time-fiori-page .time-mobile-entry .time-mobile-top-stable{gap:5px 8px!important}
  .time-fiori-page .time-mobile-date strong{font-size:12px!important;color:#1d2d3e!important}
  .time-fiori-page .time-mobile-date small{font-size:9px!important;color:#8393a3!important}
  .time-fiori-page .time-mobile-customer{font-size:13px!important;line-height:1.2!important;color:#1d2d3e!important;font-weight:800!important}
  .time-fiori-page .time-mobile-duration{min-width:82px!important;max-width:100px!important;padding:6px 8px!important;border-radius:9px!important;background:#edf5ff!important;color:#0a6ed1!important}
  .time-fiori-page .time-mobile-duration strong{font-size:12px!important;color:#0a6ed1!important}
  .time-fiori-page .time-mobile-duration small{font-size:8.5px!important;color:#5b738b!important}
  .time-fiori-page .time-mobile-times{margin-top:9px!important;border:0!important;border-top:1px solid #edf0f2!important;border-radius:0!important;background:#fff!important}
  .time-fiori-page .time-mobile-time{padding:8px 5px 4px!important;grid-template-columns:18px minmax(0,1fr)!important;gap:4px!important;font-size:10px!important;border:0!important}
  .time-fiori-page .time-mobile-time strong,.time-fiori-page .time-mobile-time b{font-size:10.5px!important;color:#30465b!important}
  .time-fiori-page .time-mobile-time small{font-size:8.5px!important;color:#8796a5!important}
  .time-fiori-page .time-mobile-actions{gap:7px!important;margin-top:8px!important}
  .time-fiori-page .time-mobile-actions .button.small{height:32px!important;min-height:32px!important;padding:0 9px!important;border-radius:8px!important;font-size:11px!important;line-height:30px!important}
  .time-fiori-page .time-month-sum{border:0!important;background:transparent!important;padding:8px 2px!important;font-size:12px!important}
  .time-fiori-page .time-month-sum strong{font-size:14px!important;color:#1d2d3e!important}

  /* Filter/Admin ebenfalls leichter */
  .time-fiori-page .card{border-radius:14px!important}
  .time-fiori-page .admin-time-report{box-shadow:0 2px 6px rgba(15,34,53,.05)!important}

  /* Bottom-Navigation bewusst wie eine native App: weiß, luftig, keine Trenner. */
  .sidebar{
    position:fixed!important;left:0!important;right:0!important;top:auto!important;bottom:0!important;
    width:100%!important;height:calc(68px + env(safe-area-inset-bottom))!important;padding:0 0 env(safe-area-inset-bottom)!important;
    background:#fff!important;border-top:1px solid #dfe3e7!important;box-shadow:0 -2px 8px rgba(15,34,53,.05)!important;z-index:1000!important;
  }
  .side-brand{display:none!important}
  .side-nav.structured-nav{display:block!important;width:100%!important;height:68px!important;padding:0!important;margin:0!important;background:#fff!important;overflow:visible!important}
  .structured-nav>.nav-dashboard,.structured-nav>.nav-section,.structured-nav>.nav-logout{display:none!important}
  .mobile-category-nav.mobile-five-nav{
    display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:0!important;
    width:100%!important;height:68px!important;padding:0 8px!important;margin:0!important;background:#fff!important;
  }
  .mobile-category-nav.mobile-five-nav>a,
  .mobile-category-nav.mobile-five-nav>button{
    display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
    width:100%!important;min-width:0!important;height:68px!important;min-height:68px!important;margin:0!important;padding:7px 3px 6px!important;
    gap:4px!important;border:0!important;border-radius:0!important;background:transparent!important;color:#8b969f!important;box-shadow:none!important;transform:none!important;
  }
  .mobile-category-nav.mobile-five-nav>*::before{display:none!important;content:none!important}
  .mobile-category-nav.mobile-five-nav .mobile-category-icon{font-size:21px!important;line-height:1!important;color:inherit!important}
  .mobile-category-nav.mobile-five-nav small{font-size:9px!important;line-height:1!important;font-weight:500!important;color:inherit!important;white-space:nowrap!important}
  .mobile-category-nav.mobile-five-nav .active{color:#0a6ed1!important;background:transparent!important}
  .mobile-category-nav.mobile-five-nav button:disabled{opacity:.35!important}
  .mobile-category-sheet{bottom:calc(76px + env(safe-area-inset-bottom))!important}
}

/* =========================================================
   V1.46b – Mobile Arbeitswoche + kompakte Zeitauswertung
   ========================================================= */
.time-week-planner{padding:14px!important}
.time-week-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:11px}
.time-week-head>div{display:grid;gap:2px}.time-week-head span{font-size:11px;color:#667085;font-weight:700}.time-week-head strong{font-size:15px;color:#1d2d3e}.time-calendar-link{font-size:11px;font-weight:750;color:#0a6ed1;text-decoration:none}
.time-week-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.time-week-day{min-width:0!important;min-height:67px!important;padding:7px 2px!important;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:1px solid #e1e6eb!important;border-radius:11px!important;background:#fff!important;color:#1d2d3e!important;box-shadow:none!important}
.time-week-day small{font-size:9px;color:#7b8a99}.time-week-day b{font-size:15px}.time-week-day span{max-width:100%;font-size:8px;line-height:1.1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#667085}
.time-week-day.today{border-color:#0a6ed1!important}.time-week-day.selected{box-shadow:0 0 0 2px #0a6ed1 inset!important}
.time-week-day.status-arbeit{background:#eef6ff!important}.time-week-day.status-frei{background:#f3f4f6!important}.time-week-day.status-urlaub{background:#edf9f1!important}.time-week-day.status-krank{background:#fff0f0!important}.time-week-day.status-schule{background:#fff7e8!important}
.time-week-quick{display:flex;align-items:center;gap:9px;margin-top:11px;padding-top:10px;border-top:1px solid #edf0f2}.time-week-quick>span{font-size:10px;font-weight:750;color:#667085;white-space:nowrap}.time-week-quick>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;flex:1}.time-week-quick button{min-height:31px!important;padding:4px 5px!important;border-radius:8px!important;border:1px solid #d9e0e7!important;background:#fff!important;color:#344054!important;font-size:10px!important;box-shadow:none!important}.time-week-quick button[value="arbeit"]{color:#0a6ed1!important}.time-week-quick button[value="urlaub"]{color:#188918!important}
.time-month-inline{margin-top:10px;border-top:1px solid #edf0f2}.time-month-inline summary{display:flex;align-items:center;justify-content:space-between;padding:10px 1px 0;cursor:pointer;color:#0a6ed1;font-size:11px;font-weight:750;list-style:none}.time-month-inline summary::-webkit-details-marker{display:none}.time-month-inline[open] summary span{transform:rotate(180deg)}.time-month-inline-body{padding-top:10px}.time-month-title{text-align:center;font-size:13px;font-weight:800;margin-bottom:8px}.time-month-weekdays,.time-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.time-month-weekdays span{text-align:center;font-size:9px;color:#7b8a99;padding:3px 0}.time-month-grid .empty{min-height:38px}.time-month-day{min-width:0!important;min-height:38px!important;padding:3px!important;border:1px solid #e5e9ed!important;border-radius:8px!important;background:#fff!important;color:#26384a!important;display:grid!important;place-items:center;gap:0;box-shadow:none!important}.time-month-day b{font-size:11px}.time-month-day small{font-size:7px;line-height:1}.time-month-day.today{border-color:#0a6ed1!important}.time-month-day.selected{box-shadow:0 0 0 2px #0a6ed1 inset!important}.time-month-day.status-arbeit{background:#eef6ff!important}.time-month-day.status-frei{background:#f3f4f6!important}.time-month-day.status-urlaub{background:#edf9f1!important}.time-month-day.status-krank{background:#fff0f0!important}.time-month-day.status-schule{background:#fff7e8!important}.time-month-hint{font-size:9px;color:#7b8a99;margin:8px 0 0}

@media(max-width:760px){
  /* Bottom-Bar final: immer fünf gleich breite, luftige Felder. */
  .sidebar{display:block!important;position:fixed!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;width:100%!important;height:calc(72px + env(safe-area-inset-bottom))!important;padding:0 0 env(safe-area-inset-bottom)!important;background:#fff!important;border:0!important;border-top:1px solid #dfe3e7!important;z-index:1000!important;overflow:visible!important}
  .side-brand{display:none!important}
  .side-nav.structured-nav{display:block!important;width:100%!important;height:72px!important;padding:0!important;margin:0!important;background:#fff!important;overflow:visible!important}
  .structured-nav>.nav-dashboard,.structured-nav>.nav-section,.structured-nav>.nav-logout{display:none!important}
  .mobile-category-nav.mobile-five-nav{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:0!important;width:100%!important;height:72px!important;padding:0 10px!important;margin:0!important;background:#fff!important;overflow:visible!important}
  .mobile-category-nav.mobile-five-nav>a,.mobile-category-nav.mobile-five-nav>button{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;min-width:0!important;width:auto!important;height:72px!important;min-height:72px!important;margin:0!important;padding:8px 2px!important;gap:5px!important;border:0!important;background:transparent!important;color:#89939d!important;box-shadow:none!important;line-height:1!important}
  .mobile-category-nav.mobile-five-nav .mobile-category-icon{font-size:21px!important}.mobile-category-nav.mobile-five-nav small{font-size:9px!important;font-weight:600!important;white-space:nowrap!important}.mobile-category-nav.mobile-five-nav .active{color:#0a6ed1!important}
  .container.app-container{padding-bottom:calc(88px + env(safe-area-inset-bottom))!important}

  .time-fiori-page .time-pagehead{margin-bottom:10px!important}.time-fiori-page .time-pagehead h1{font-size:25px!important}.time-fiori-page .time-pagehead .page-subtitle{font-size:12px!important;line-height:1.35!important}
  .time-fiori-page .time-week-planner{margin-bottom:11px!important;border-radius:14px!important;box-shadow:0 2px 6px rgba(15,34,53,.05)!important}

  /* Admin-Zeitauswertung auf dem Handy bewusst sehr kompakt. */
  .time-fiori-page .admin-time-report{padding:12px!important;margin-bottom:11px!important}
  .time-fiori-page .admin-time-report .section-head{margin-bottom:8px!important}.time-fiori-page .admin-time-report .section-head h2{font-size:14px!important;margin:1px 0!important}.time-fiori-page .admin-time-report .section-head span{display:none!important}.time-fiori-page .admin-time-report .eyebrow{font-size:9px!important}
  .time-fiori-page .admin-time-filter{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;margin-bottom:9px!important}.time-fiori-page .admin-time-filter label{min-width:0!important;font-size:10px!important}.time-fiori-page .admin-time-filter label:nth-child(3){grid-column:1/-1!important}.time-fiori-page .admin-time-filter input,.time-fiori-page .admin-time-filter select{height:36px!important;min-height:36px!important;padding:0 8px!important;font-size:11px!important}.time-fiori-page .admin-time-filter button{grid-column:1/-1!important;min-height:34px!important;height:34px!important;font-size:11px!important}
  .time-fiori-page .admin-report-summary{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;margin-bottom:9px!important}.time-fiori-page .admin-report-summary .stat-card{min-height:58px!important;padding:7px!important;display:block!important}.time-fiori-page .admin-report-summary .stat-icon{display:none!important}.time-fiori-page .admin-report-summary small{font-size:8px!important;line-height:1.1!important}.time-fiori-page .admin-report-summary strong{font-size:13px!important;margin-top:3px!important}
  .time-fiori-page .admin-report-grid{display:none!important}
}
@media(max-width:390px){.time-week-days{gap:3px}.time-week-day{min-height:62px!important}.time-week-day span{font-size:7px}.time-week-quick{display:block}.time-week-quick>span{display:block;margin-bottom:6px}.mobile-category-nav.mobile-five-nav{padding-left:4px!important;padding-right:4px!important}}

/* V1.45q Mitarbeiterbereich */
.ma-status-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}
.ma-status-card{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px;border:1px solid #d9e0e5;border-radius:12px;text-decoration:none;color:inherit;background:#fff}
.ma-state{font-size:.8rem;font-weight:700;padding:5px 9px;border-radius:999px;background:#edf3f6;white-space:nowrap}
.ma-request{display:flex;justify-content:space-between;gap:16px;padding:14px 0;border-top:1px solid #dde4e8}.ma-request:first-of-type{border-top:0}
.ma-request small{display:block;margin-top:3px;color:#60717d}.ma-request p{margin:6px 0 0}
.ma-approve-form,.ma-manual-actions,.ma-manual-actions form{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.ma-approve-form input{min-width:180px}
.ma-filter{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin-bottom:18px}.ma-filter label{min-width:180px}
.ma-calendar{max-width:760px;margin-bottom:22px}.ma-weekdays,.ma-calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.ma-weekdays b{text-align:center;font-size:.75rem;color:#667680;padding:4px}
.ma-day{min-height:58px;border:1px solid #dfe5e8;border-radius:9px;padding:7px;background:#fff}.ma-day b,.ma-day small{display:block}.ma-day small{font-size:.7rem;margin-top:5px}
.ma-day.status-arbeit{background:#edf8f1}.ma-day.status-urlaub{background:#fff5d9}.ma-day.status-krank{background:#ffe9e9}.ma-day.status-frei{background:#eef2f5}.ma-day.status-schule{background:#eaf2ff}
.ma-time-head{display:flex;justify-content:space-between;align-items:center;margin:12px 0}.ma-edit-form{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:9px;align-items:end;padding:10px}.ma-edit-form>div{display:flex;gap:6px}
@media(max-width:760px){.ma-request{display:block}.ma-approve-form,.ma-manual-actions{margin-top:10px}.ma-edit-form{grid-template-columns:1fr}.ma-day{min-height:48px;padding:5px}.ma-day small{font-size:.6rem}.ma-status-grid{grid-template-columns:1fr}}

/* V1.45r Urlaubstage */
.ma-vacation-counter{display:flex;align-items:center;gap:9px;padding:7px 11px;border-radius:11px;background:#fff5d9;white-space:nowrap}
.ma-vacation-counter strong{font-size:1.35rem;line-height:1}.ma-vacation-counter span{font-size:.78rem;font-weight:700;color:#6b5a25}
@media(max-width:600px){.ma-vacation-counter{margin-top:8px}}

/* V1.45s Urlaub/Krank */
.time-absence-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 12px}
.time-absence-card{padding:12px 14px;border:1px solid #dce3e7;border-radius:13px;background:#fff}
.time-absence-card>span{display:block;font-size:.75rem;font-weight:700;color:#657681;margin-bottom:2px}.time-absence-card strong{display:block;font-size:1.12rem}.time-absence-card small{display:block;margin-top:2px;color:#71808a}
.time-absence-card.vacation{background:#fffaf0}.time-absence-card.sick{background:#fff4f4}.time-absence-progress{height:5px;margin-top:8px;border-radius:99px;background:#e5e8ea;overflow:hidden;color:#c79520}.time-absence-progress i{display:block;height:100%;background:currentColor;border-radius:inherit}
@media(max-width:600px){.time-absence-summary{grid-template-columns:1fr}}

/* V1.45t Admin-Kalender & Login-Meldung */
.ma-day-edit{font:inherit;text-align:left;color:inherit;cursor:pointer;width:100%}.ma-day-edit:hover{box-shadow:0 0 0 2px rgba(0,0,0,.08)}
.ma-calendar-edit{margin:10px 0 18px}.ma-calendar-edit-card{padding:14px;border:1px solid #dce3e7;border-radius:13px;background:#f8fafb}
.ma-calendar-edit-card>div:first-child small{display:block;margin-top:3px;color:#6d7c85}.ma-calendar-statuses{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}
.ma-calendar-statuses button{padding:9px 13px;border:1px solid #cfd8dd;border-radius:9px;background:#fff;font-weight:700;cursor:pointer}
.login-change-popup{position:fixed;inset:0;z-index:10000;background:rgba(19,31,38,.5);display:flex;align-items:center;justify-content:center;padding:18px}
.login-change-popup-card{width:min(430px,100%);background:#fff;border-radius:17px;padding:24px;box-shadow:0 18px 55px rgba(0,0,0,.25);text-align:center}
.login-change-icon{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;margin:0 auto 10px;background:#fff1c9;font-size:1.35rem;font-weight:800}
.login-change-popup-card h2{margin:5px 0 8px}.login-change-popup-card p{line-height:1.45;margin:0 0 17px}

/* V1.45u – Kalenderdialog Darstellungsfix */
.ma-calendar-edit-card{display:block!important}
.ma-calendar-edit-head{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:3px!important;margin-bottom:12px}
.ma-calendar-edit-head strong{display:block;font-size:.95rem}
.ma-calendar-edit-head small{display:block!important;font-size:.76rem;color:#6d7c85;line-height:1.35}
.ma-calendar-statuses{display:grid!important;grid-template-columns:repeat(5,minmax(78px,1fr));gap:8px!important;margin:0 0 12px!important}
.ma-calendar-statuses button{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:58px!important;padding:8px 7px!important;border:1px solid #cfd8dd!important;border-radius:10px!important;background:#fff!important;color:#17242c!important;font-size:.78rem!important;font-weight:700!important;line-height:1.1!important}
.ma-calendar-statuses button span{display:block;font-size:1rem;line-height:1}
.ma-calendar-cancel{display:inline-flex!important;width:auto!important}
@media(max-width:600px){.ma-calendar-statuses{grid-template-columns:repeat(3,1fr)}.ma-calendar-statuses button{min-height:54px!important}}

/* V1.45v Sicherungsübersicht + Netzwerkplanung */
.installation-doc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.installation-doc-card{display:flex;align-items:center;gap:12px;padding:15px;border:1px solid #dce3e7;border-radius:13px;text-decoration:none;color:inherit;background:#fff}
.installation-doc-card:hover{box-shadow:0 3px 14px rgba(0,0,0,.07)}.installation-doc-card .doc-icon{font-size:1.45rem}.installation-doc-card div{flex:1}.installation-doc-card strong,.installation-doc-card small{display:block}.installation-doc-card small{margin-top:3px;color:#6d7c85}
.fuse-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.fuse-form .span2{grid-column:span 2}.fuse-row-title{margin:18px 0 8px}.fuse-board{display:flex;align-items:stretch;gap:5px;overflow-x:auto;padding:6px 2px 12px}
.fuse-module{flex:0 0 145px;min-height:128px;border:1px solid #bcc8ce;border-top:5px solid #34444d;border-radius:6px;background:#fff;padding:9px;display:flex;flex-direction:column}.fuse-module.poles-2{flex-basis:185px}.fuse-module.poles-3{flex-basis:225px}.fuse-module.poles-4{flex-basis:265px}.fuse-pos{font-size:.72rem;font-weight:800;color:#657681}.fuse-module strong{margin:6px 0 3px}.fuse-module span,.fuse-module small{font-size:.75rem;color:#61717b}.fuse-actions{margin-top:auto;padding-top:8px;display:flex;gap:8px;font-size:.72rem}.fuse-actions form{display:inline}.fuse-actions button,.link-danger{border:0;background:none;padding:0;color:#b42318;cursor:pointer;font:inherit}
.network-create-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.network-form{display:grid;grid-template-columns:1fr 1fr;gap:9px}.network-form button{grid-column:1/-1}.network-form .check{display:flex;align-items:center;gap:7px}.network-device-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}.network-device{border:1px solid #dce3e7;border-radius:12px;padding:13px;background:#fff}.network-device h3{margin:5px 0}.network-device p,.network-device small{margin:0;color:#64757f;font-size:.78rem}.network-type{font-size:.68rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
@media(max-width:760px){.installation-doc-grid,.network-create-grid{grid-template-columns:1fr}.fuse-form,.network-form{grid-template-columns:1fr}.fuse-form .span2{grid-column:auto}.fuse-module{flex-basis:135px}}

/* V1.45w – globaler Kundenkontext */
.global-customer-context{position:fixed;z-index:1200;top:10px;right:18px;max-width:min(360px,42vw)}
.global-customer-context form{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #d8e0e5;border-radius:11px;padding:5px 8px;box-shadow:0 2px 10px rgba(0,0,0,.06)}
.customer-context-label{font-size:.68rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:#6c7c85}
.global-customer-context select{border:0;background:transparent;font-weight:700;min-width:170px;max-width:260px;padding:5px 24px 5px 4px}
.global-customer-context strong{font-size:.82rem;white-space:nowrap}
@media(max-width:760px){.global-customer-context{top:8px;right:10px;max-width:55vw}.customer-context-label{display:none}.global-customer-context form{padding:3px 6px}.global-customer-context select{min-width:0;max-width:48vw;font-size:.78rem}}

/* V1.45x – Netzwerk-Navigator + SPS/KNX-Projektsicherung */
.network-overview-grid{display:grid;gap:9px}.network-overview-card{display:flex;align-items:center;gap:14px;border:1px solid #dce3e7;border-radius:12px;padding:13px 15px;text-decoration:none;color:inherit;background:#fff}.network-overview-card:hover{box-shadow:0 3px 14px rgba(0,0,0,.07)}.network-overview-card>div:first-child{flex:1}.network-overview-card strong,.network-overview-card span,.network-overview-card small{display:block}.network-overview-card small,.network-overview-card span{color:#667780;font-size:.76rem}.network-overview-card strong{margin:3px 0}.network-overview-card em{font-style:normal;font-size:1.4rem}.network-overview-stats{display:grid;grid-template-columns:auto auto;gap:0 6px;align-items:baseline}.network-overview-stats b{text-align:right}.program-upload-form{display:grid;grid-template-columns:1fr 1fr;gap:10px}.program-upload-form .span2{grid-column:1/-1}.program-actions{white-space:nowrap}.program-actions form{display:inline-block;margin-left:5px}
@media(max-width:760px){.program-upload-form{grid-template-columns:1fr}.program-upload-form .span2{grid-column:auto}.network-overview-card{padding:11px}.network-overview-stats{display:none}}

/* V1.45zb – Kunden-Dropdown sichtbar, anklickbar und kollisionsfrei */
body>.global-customer-context{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  pointer-events:auto !important;
  position:fixed !important;
  z-index:5000 !important;
  top:10px !important;
  right:82px !important;
  left:auto !important;
  width:325px !important;
  max-width:calc(100vw - 420px) !important;
  margin:0 !important;
}
body>.global-customer-context form{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  width:100% !important;
  min-height:44px !important;
  box-sizing:border-box !important;
  pointer-events:auto !important;
}
body>.global-customer-context select{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  pointer-events:auto !important;
  position:relative !important;
  z-index:5001 !important;
  flex:1 1 auto !important;
  width:auto !important;
  min-width:0 !important;
  cursor:pointer !important;
}
@media(max-width:760px){
  body>.global-customer-context{
    top:8px !important;
    right:58px !important;
    width:min(285px,calc(100vw - 126px)) !important;
    max-width:none !important;
  }
  body>.global-customer-context form{min-height:42px !important}
  body>.global-customer-context select{width:100% !important}
}

/* V1.45zc – Kundenwähler als echtes Element der Topbar */
.app-topbar .topbar-actions{min-width:0}
.app-topbar .global-customer-context{display:block!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;position:static!important;inset:auto!important;z-index:auto!important;width:auto!important;max-width:none!important;margin:0!important;flex:0 1 330px!important}
.app-topbar .global-customer-context form{display:flex!important;align-items:center!important;gap:10px!important;width:100%!important;min-width:220px;min-height:42px!important;box-sizing:border-box!important;margin:0!important}
.app-topbar .global-customer-context select{display:block!important;visibility:visible!important;pointer-events:auto!important;position:static!important;z-index:auto!important;flex:1 1 auto!important;width:auto!important;min-width:135px!important;max-width:240px!important;cursor:pointer!important}
@media(max-width:1000px) and (min-width:761px){.app-topbar .global-customer-context{flex-basis:250px!important}.app-topbar .global-customer-context form{min-width:200px}.app-topbar .global-customer-context select{max-width:175px!important}}
@media(max-width:760px){.app-topbar{height:auto!important;min-height:52px;gap:8px;flex-wrap:wrap;padding:6px 10px!important}.app-topbar .breadcrumb-title{flex:1 1 auto}.app-topbar .topbar-actions{display:flex;flex:1 1 100%;width:100%;gap:7px;align-items:center}.app-topbar .global-customer-context{flex:1 1 auto!important;min-width:0}.app-topbar .global-customer-context form{min-width:0;min-height:40px!important}.app-topbar .global-customer-context select{min-width:0!important;max-width:none!important;width:100%!important}.app-topbar .user-menu{flex:0 0 auto}}
