*{box-sizing:border-box}body{margin:0;background:#f3f5f7;color:#14202c;font-family:Arial,Helvetica,sans-serif}.top{height:80px;background:#17212b;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 22px}.brand{font-size:24px;font-weight:800;letter-spacing:2px}.sub{font-size:11px;color:#cbd2d8}.nav{display:flex;gap:8px;align-items:center}.nav a{color:#fff;text-decoration:none;padding:10px 12px;border-radius:8px}.nav a.active,.nav a:hover{background:#fff;color:#17212b}.container{max-width:1100px;margin:28px auto;padding:0 16px}.hero-grid{display:grid;grid-template-columns:2fr 1.25fr;gap:20px}.grid2{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;margin-top:20px}.card{background:#fff;border:1px solid #dde3e8;border-radius:16px;padding:22px;box-shadow:0 3px 12px rgba(20,32,44,.05);margin-top:20px}.hero-grid .card{margin-top:0}.eyebrow{font-size:12px;letter-spacing:1.2px;color:#617080}.weight{font-size:78px;font-weight:800;line-height:1.05;margin:25px 0 8px}.weight span{font-size:25px}.status{font-weight:700}.actions{display:flex;gap:10px;margin-top:24px}.button,button{display:inline-block;border:0;background:#e9eef2;color:#17212b;padding:10px 14px;border-radius:8px;text-decoration:none;font-weight:700;cursor:pointer}.button.primary,button.primary,button{background:#17212b;color:#fff}.camera-placeholder{height:208px;background:#dfe5e9;border-radius:12px;display:flex;align-items:center;justify-content:center;text-align:center;color:#617080;margin-top:12px}.bigtext{font-size:30px;font-weight:800;margin:20px 0 10px}.toolbar{display:flex;justify-content:space-between;align-items:center}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:11px;border-bottom:1px solid #e4e8eb;vertical-align:top}th{font-size:12px;color:#617080;text-transform:uppercase}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}label{display:block;font-size:13px;font-weight:700;margin-bottom:6px}input,select,textarea{width:100%;padding:10px;border:1px solid #ccd5dc;border-radius:8px;font:inherit}textarea{min-height:90px}.full{grid-column:1/-1}.inline{display:flex;gap:10px}.inline input{flex:1}.flash{background:#e8f4ea;border:1px solid #b9ddbf;padding:12px 15px;border-radius:10px;margin-bottom:15px}footer{text-align:center;color:#87929b;font-size:12px;padding:25px}@media(max-width:800px){.hero-grid,.grid2,.form-grid{grid-template-columns:1fr}.top{height:auto;gap:15px;flex-direction:column;align-items:flex-start;padding:15px}.nav{flex-wrap:wrap}.weight{font-size:55px}}
.table-heading{margin-bottom:10px}.row-actions{white-space:nowrap}.delete-form{display:inline;margin-left:8px}.button-danger{display:inline-block;border:1px solid #b3261e;background:#fff;color:#b3261e;padding:10px 14px;border-radius:8px;font-weight:700;cursor:pointer;text-decoration:none}.text-link{font-weight:700;color:#17212b}.button-danger:hover{background:#b3261e;color:#fff}.actions{align-items:center}.actions .button{display:inline-block}
.row-actions{white-space:nowrap}.row-actions form{display:inline}.row-actions .button{margin-left:8px;padding:10px 14px}

.row-actions > a:not(.button){display:inline-block;background:#e9eef2;color:#17212b;padding:10px 14px;border-radius:8px;text-decoration:none;font-weight:700;margin-right:8px}.row-actions > a:not(.button):hover{background:#dfe6eb}.error{background:#fdeceb;border-color:#f0b6b0}.muted{color:#7d8790}

.button-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}

.check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:10px 0 22px}.check-item{display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:8px;padding:10px;border:1px solid #dde3e8;border-radius:8px;font-weight:400;margin:0}.check-item span{font-weight:700}.check-item input[type=radio]{width:auto}.check-item small{font-size:11px;color:#617080}.check-item input{width:auto}@media(max-width:800px){.check-grid{grid-template-columns:1fr}}

/* v0.6.7 – Wiegungstabelle auf Desktop kompakter und besser nutzbar */
.weighings-table-card{padding:16px 14px}
.weighings-table-card table{font-size:13px;min-width:0}
.weighings-table-card th,.weighings-table-card td{padding:9px 7px}
.weighings-table-card th{font-size:11px;white-space:nowrap}
.weighings-table-card td:nth-child(1){white-space:nowrap}
.weighings-table-card td:nth-child(6),.weighings-table-card td:nth-child(7),.weighings-table-card td:nth-child(8){white-space:nowrap}
.weighings-table-card .row-actions{white-space:nowrap}
.weighings-table-card .row-actions .button,.weighings-table-card .row-actions .button-danger{padding:8px 10px;font-size:12px}
.weighings-table-card .row-actions .button{margin-left:4px}
.weighings-table-card .delete-form{margin-left:4px}
@media(min-width:1000px){.weighings-table-card{padding-left:10px;padding-right:10px}}
.userbar{display:flex;align-items:center;gap:8px;font-size:12px;color:#dce3e8;white-space:nowrap}.userbar a{color:#fff;text-decoration:none;font-weight:700}.user-role{background:#fff;color:#17212b;border-radius:999px;padding:3px 7px;font-size:10px;font-weight:800}.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:20px;background:#f3f5f7}.login-card{width:min(460px,100%);margin:0}.login-card .brand{color:#17212b;margin-bottom:3px}.login-card h1{margin-top:26px}.login-hint{font-size:12px;text-align:center}.generated-box{border-color:#b9ddbf;background:#f7fcf8}.generated-box input[readonly]{background:#f1f5f2;font-weight:700}
@media(max-width:1000px){.userbar{flex-wrap:wrap}.top{align-items:flex-start}}


/* v1.0.0 – Produktionsoberfläche */
.setting-toggle{display:flex;align-items:center;justify-content:flex-start;gap:8px;width:max-content;font-size:13px;font-weight:700;margin:0}.setting-toggle input[type=checkbox]{width:16px;height:16px;margin:0;flex:0 0 auto}.setting-toggle span{display:inline-block;line-height:16px}
.camera-placeholder{height:208px;background:#e9eef2;border-radius:12px;display:flex;align-items:center;justify-content:center;text-align:center;color:#617080;margin-top:12px;border:1px dashed #c8d1d8;font-weight:700}
.weighing-layout{display:grid;grid-template-columns:minmax(390px,1.1fr) minmax(0,1.6fr);gap:20px;align-items:stretch}.weighing-layout>.card{margin-top:0}.live-scale-card{display:flex;flex-direction:column;min-height:520px}.live-scale-card .weight{margin-top:32px}.scale-status-panel{margin-top:auto;padding-top:24px;border-top:1px solid #e4e8eb;display:flex;align-items:center;gap:20px}.scale-light{width:72px;padding:9px 0;border-radius:999px;background:#17212b;display:flex;flex-direction:column;align-items:center;gap:7px;flex:0 0 auto;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08),0 4px 12px rgba(20,32,44,.12)}.scale-bulb{display:block;width:35px;height:35px;border-radius:50%;background:#3a4249;box-shadow:inset 0 2px 4px rgba(0,0,0,.25)}.scale-light.ready .scale-bulb.green{background:#28a745;box-shadow:0 0 14px rgba(40,167,69,.55),inset 0 2px 4px rgba(0,0,0,.18)}.scale-light.waiting .scale-bulb.yellow{background:#f2c94c;box-shadow:0 0 14px rgba(242,201,76,.55),inset 0 2px 4px rgba(0,0,0,.18)}.scale-light.processing .scale-bulb.red{background:#dc3545;box-shadow:0 0 14px rgba(220,53,69,.55),inset 0 2px 4px rgba(0,0,0,.18)}.scale-light-label{font-size:14px;line-height:1.35;font-weight:700;color:#17212b;max-width:260px}.weighing-form-card{min-height:520px}.weighing-form-card h2{margin:8px 0 14px}.weighing-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0}.weighing-summary>div{padding:12px 14px;background:#f6f8fa;border:1px solid #e0e6eb;border-radius:10px}.weighing-summary span{display:block;font-size:11px;color:#697783;text-transform:uppercase;margin-bottom:5px}.weighing-summary strong{display:block;font-size:15px}.select-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end;margin-bottom:18px}.large-button{min-height:46px}.weighing-actions{margin-top:22px}.weighing-form-card textarea{min-height:110px}@media(max-width:900px){.weighing-layout{grid-template-columns:1fr}.live-scale-card,.weighing-form-card{min-height:auto}.scale-status-panel{margin-top:30px}.weighing-summary{grid-template-columns:1fr}}@media(max-width:600px){.select-row{grid-template-columns:1fr}.scale-status-panel{align-items:flex-start}.weighing-actions{flex-direction:column;align-items:stretch}.weighing-actions .button{width:100%;text-align:center}}

.dashboard-scale-light{width:92px;padding:12px 0;margin:22px auto 14px}.dashboard-scale-light .scale-bulb{width:40px;height:40px}.scale-light-card{text-align:center}.test-weight-form{display:grid;grid-template-columns:minmax(220px,320px) auto;gap:12px;align-items:end}.test-weight-form button{min-height:42px}.test-weight-card{margin-top:20px}@media(max-width:600px){.test-weight-form{grid-template-columns:1fr}.test-weight-form button{width:100%}}

/* Mobile-Fernbedienung: gleiche Gestaltungssprache wie die Webversion */
.mobile-remote-page{background:#f3f5f7;min-height:100vh;}
.mobile-remote{width:min(100%,560px);margin:0 auto;padding:18px 14px 28px;}
.mobile-brand{background:#17212b;color:#fff;border-radius:16px;padding:18px 20px;margin-bottom:14px;font-size:22px;font-weight:800;letter-spacing:1.2px;line-height:1.12;box-shadow:0 3px 12px rgba(20,32,44,.12);}
.mobile-brand span{display:block;font-size:12px;font-weight:600;letter-spacing:1.5px;color:#cbd2d8;margin-top:5px;}
.mobile-card{background:#fff;border:1px solid #dde3e8;border-radius:18px;padding:22px 20px;box-shadow:0 3px 12px rgba(20,32,44,.06);}
.mobile-card h1{font-size:34px;line-height:1.08;margin:8px 0 14px;}
.mobile-vehicle{background:#f6f8fa;border:1px solid #e0e6eb;border-radius:10px;padding:12px 14px;font-size:17px;font-weight:700;margin-bottom:14px;}
.gps-box{padding:12px 14px;border-radius:10px;background:#f6f8fa;border:1px solid #e0e6eb;font-size:14px;line-height:1.4;margin-bottom:20px;}
.mobile-weight{border-top:1px solid #e4e8eb;border-bottom:1px solid #e4e8eb;padding:18px 0 16px;margin:8px 0 18px;}
.mobile-weight #currentWeight{font-size:54px;font-weight:800;line-height:1.05;margin:8px 0 7px;white-space:nowrap;}
.mobile-weight #currentWeight span{font-size:21px;font-weight:700;}
.mobile-first{font-size:17px;color:#4f5e6b;font-weight:600;}
.mobile-start{width:100%;min-height:62px;border-radius:12px;font-size:18px;line-height:1.1;letter-spacing:.4px;}
.mobile-start:disabled{opacity:.55;cursor:not-allowed;}
.mobile-status{font-size:15px;line-height:1.45;margin-top:14px;color:#4f5e6b;}
.mobile-success{margin-top:18px;padding:18px;border-radius:12px;background:#e8f4ea;border:1px solid #b9ddbf;text-align:center;}
.mobile-success-icon{font-size:32px;font-weight:800;}
.mobile-success-title{font-size:18px;font-weight:800;margin-top:4px;}
.mobile-success-details{font-size:20px;font-weight:800;margin-top:10px;}
.mobile-success-countdown{font-size:13px;color:#617080;margin-top:10px;line-height:1.4;}
.mobile-note{font-size:13px;color:#617080;line-height:1.45;padding:12px 4px 0;text-align:center;}
@media(max-width:380px){.mobile-remote{padding:10px 8px 20px}.mobile-card{padding:18px 16px}.mobile-card h1{font-size:30px}.mobile-weight #currentWeight{font-size:46px}.mobile-brand{font-size:20px;}}

/* v1.2.0 – Dashboard, Einstellungen und Tabellen */
.dashboard-top-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.55fr);gap:20px}.dashboard-top-grid .card{margin-top:0}.camera-full{grid-column:1/-1}.camera-full .camera-placeholder{height:260px}.dashboard-clock{margin-top:20px;display:flex;align-items:center;justify-content:space-between;gap:20px}.clock-value{font-size:25px;font-weight:800;white-space:nowrap}.settings-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px}.settings-tabs a{background:#e9eef2;color:#17212b;text-decoration:none;padding:10px 14px;border-radius:8px;font-weight:700}.settings-tabs a.active,.settings-tabs a:hover{background:#17212b;color:#fff}.connection-status{display:flex;align-items:flex-start;gap:12px;padding:14px 16px;border:1px solid #dde3e8;border-radius:12px;margin:14px 0 18px}.connection-status>div:last-child>div{margin-top:3px;color:#617080;font-size:13px;line-height:1.4}.connection-dot{width:14px;height:14px;border-radius:50%;background:#87929b;margin-top:3px;flex:0 0 auto}.connection-status.connected .connection-dot{background:#28a745;box-shadow:0 0 10px rgba(40,167,69,.45)}.connection-status.error .connection-dot{background:#dc3545;box-shadow:0 0 10px rgba(220,53,69,.35)}.connection-status.disabled .connection-dot{background:#87929b}.weighings-table-card{width:100%}.weighings-table-card table{min-width:1180px}.weighings-table-card .row-actions{min-width:290px}.weighings-table-card .row-actions .button,.weighings-table-card .row-actions .button-danger{white-space:nowrap}.mobile-note{max-width:520px;margin-left:auto;margin-right:auto}
@media(max-width:800px){.dashboard-top-grid{grid-template-columns:1fr}.camera-full{grid-column:auto}.camera-full .camera-placeholder{height:210px}.dashboard-clock{align-items:flex-start;flex-direction:column}.clock-value{white-space:normal}.weighings-table-card table{min-width:1180px}}


/* v1.2.1 – Layoutkorrekturen */
.dashboard-clock{display:flex;align-items:center;justify-content:flex-start;margin:0 0 14px;padding:0 4px;background:transparent}
.dashboard-clock .clock-value{font-size:15px;font-weight:700;color:#17212b;white-space:nowrap}
.dashboard-clock .eyebrow{display:none}
.page-dashboard .container{position:relative}
.weighings-table-card{overflow:auto;position:relative}
.weighings-table-card table{min-width:1080px;table-layout:auto}
.weighings-table-card th:last-child,.weighings-table-card td:last-child{position:sticky;right:0;background:#fff;z-index:2;box-shadow:-5px 0 8px rgba(20,32,44,.08)}
.weighings-table-card th:last-child{z-index:3}
.weighings-table-card .row-actions{min-width:300px}
.weighings-table-card .row-actions .button,.weighings-table-card .row-actions .button-danger{padding:8px 9px;font-size:11px}
.live-scale-card{min-width:0}
.live-scale-card .weight{font-size:clamp(54px,6vw,78px);white-space:nowrap;letter-spacing:-1.5px}
.test-weight-card{min-width:0}
.test-weight-form{grid-template-columns:minmax(260px,1fr) minmax(300px,1.8fr)}
@media(max-width:900px){.weighing-layout{grid-template-columns:1fr}.live-scale-card,.weighing-form-card{min-height:auto}.live-scale-card .weight{font-size:clamp(52px,12vw,72px)}.test-weight-form{grid-template-columns:1fr}}
@media(max-width:800px){
  .dashboard-clock{margin:0 0 10px;padding:0 2px}
  .dashboard-clock .clock-value{font-size:14px}
  .weighings-table-card table{min-width:1080px}
  .weighings-table-card th:last-child,.weighings-table-card td:last-child{position:static;box-shadow:none}
}

/* v1.2.1 – Software-Update-Hinweis */
.software-update-banner{position:sticky;top:0;z-index:1000;background:#fff;border:1px solid #b9ddbf;box-shadow:0 4px 16px rgba(20,32,44,.12);padding:14px 18px;display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.software-update-banner>strong{font-size:15px}.software-update-banner>span{color:#617080;font-size:13px;flex:1 1 260px}.software-update-actions{display:flex;gap:8px;flex-wrap:wrap}.software-update-actions .button{padding:8px 11px;font-size:12px}
.update-result{margin-top:10px;font-weight:700}

/* v1.2.2 – Waagenauflösung, Dashboard-Uhrzeit und Wiegungstabelle */
.brand-block{display:flex;flex-direction:column;align-items:flex-start;gap:1px}.dashboard-clock{margin:0 -16px 10px;padding:8px 22px 2px;color:#17212b;line-height:1;background:transparent}.dashboard-clock.clock-value{font-family:Arial,Helvetica,sans-serif;font-size:18px;font-weight:800;letter-spacing:1.1px;white-space:nowrap}.weighings-table-card table{min-width:1180px}.weighings-table-card th:nth-child(9),.weighings-table-card td:nth-child(9){min-width:90px;white-space:nowrap}.weighings-table-card th:last-child,.weighings-table-card td:last-child{min-width:315px}.live-scale-card{min-width:330px}.live-scale-card .weight{font-size:clamp(58px,6vw,82px);letter-spacing:-2px;white-space:nowrap}.live-scale-card .weight span{font-size:25px}.test-weight-card{width:100%}.test-weight-form{grid-template-columns:minmax(280px,360px) minmax(320px,1fr)}
@media(max-width:900px){.live-scale-card .weight{font-size:clamp(52px,12vw,72px)}}
@media(max-width:600px){.dashboard-clock.clock-value{font-size:15px;letter-spacing:.8px}.weighings-table-card th:last-child,.weighings-table-card td:last-child{min-width:290px}}

/* v1.2.2 – Update-Aktion direkt in Einstellungen */
.software-update-inline{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:10px;padding:12px 14px;border:1px solid #b9ddbf;background:#f7fcf8;border-radius:10px}.software-update-inline>span{color:#617080;font-size:13px;flex:1 1 280px}.software-update-inline .software-update-actions{display:flex;gap:8px;flex-wrap:wrap}


/* Entwicklungsstand: Dashboard-Uhrzeit unter Anlagenname und breitere Wiegungstabelle */
.dashboard-clock-header{margin-top:3px;font-family:Arial,Helvetica,sans-serif;font-size:16px;font-weight:800;letter-spacing:.8px;color:#d7dde2;line-height:1.2;white-space:nowrap}
@media(min-width:801px){.page-weighings .container{max-width:1500px}.weighings-table-card table{min-width:1420px}.weighings-table-card th:nth-child(1),.weighings-table-card td:nth-child(1){min-width:155px}.weighings-table-card th:nth-child(2),.weighings-table-card td:nth-child(2){min-width:150px}.weighings-table-card th:nth-child(3),.weighings-table-card td:nth-child(3){min-width:150px}.weighings-table-card th:nth-child(4),.weighings-table-card td:nth-child(4){min-width:145px}.weighings-table-card th:nth-child(5),.weighings-table-card td:nth-child(5){min-width:140px}.weighings-table-card th:nth-child(6),.weighings-table-card td:nth-child(6),.weighings-table-card th:nth-child(7),.weighings-table-card td:nth-child(7),.weighings-table-card th:nth-child(8),.weighings-table-card td:nth-child(8){min-width:105px}.weighings-table-card th:nth-child(9),.weighings-table-card td:nth-child(9){min-width:110px}.weighings-table-card th:last-child,.weighings-table-card td:last-child{min-width:320px}}
@media(max-width:800px){.dashboard-clock-header{font-size:14px}.page-weighings .container{max-width:100%}}

/* v1.2.5 – Uhrzeit dauerhaft im Kopfbereich und Versionsnummer sichtbar */
.dashboard-clock-header{margin-top:4px;font-family:Arial,Helvetica,sans-serif;font-size:16px;font-weight:800;letter-spacing:.8px;color:#d7dde2;line-height:1.2;white-space:nowrap}

/* v1.2.8 – Kamera und Wiegungsbilder */
.camera-full .camera-image{height:260px;overflow:hidden;border-radius:12px;background:#dfe5e9;margin-top:12px}.camera-full .camera-image img{width:100%;height:100%;display:block;object-fit:cover}.weighing-photo-cell{width:82px;text-align:center}.camera-thumb-button{border:0;padding:0;background:none;cursor:pointer}.camera-thumb-button img{width:64px;height:46px;object-fit:cover;border-radius:7px;display:block;border:1px solid #d5dde3}.camera-image-modal{position:fixed;inset:0;background:rgba(0,0,0,.78);z-index:9999;display:flex;align-items:center;justify-content:center;padding:24px}.camera-image-modal[hidden]{display:none}.camera-image-modal-inner{position:relative;max-width:94vw;max-height:94vh}.camera-image-modal-inner img{display:block;max-width:94vw;max-height:90vh;width:auto;height:auto;border-radius:10px;box-shadow:0 12px 40px rgba(0,0,0,.45)}.camera-image-close{position:absolute;right:-12px;top:-12px;width:36px;height:36px;border:0;border-radius:50%;font-size:28px;line-height:32px;background:#fff;color:#17212b;cursor:pointer;z-index:2}.weighings-table-card table{min-width:1260px}
