@font-face{font-family:Eurostile;src:url('/assets/eurostile.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:Eurostile;src:url('/assets/eurostile-bold.ttf') format('truetype');font-weight:700;font-display:swap}
:root{color:#202d49;background:#f3f4f7;font-family:'Segoe UI',Arial,sans-serif;--blue:#263f87;--yellow:#ffeb20}
header{padding:16px max(24px,calc((100vw - 1124px)/2));border-bottom:3px solid var(--yellow);min-height:94px}
.brand{display:flex;align-items:center;gap:24px;letter-spacing:0}.company-logo{width:205px;height:65px;object-fit:contain}.brand .product-name{all:unset;font:700 25px Eurostile,Arial,sans-serif;color:var(--blue);border-left:1px solid #dce0e9;padding-left:24px}.product-name b{color:#b09b00}
h1,h2,h3,.stat strong{font-family:Eurostile,'Segoe UI',sans-serif}h1{letter-spacing:-.8px}p,.note{color:#667085}.eyebrow{color:var(--blue);letter-spacing:1.7px}
main{padding-top:30px}.intro{position:relative;isolation:isolate;overflow:hidden;min-height:310px;border-radius:18px;background:#142846 url('/assets/werkstatt-banner-v7.webp') center/cover no-repeat;padding:38px 40px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:24px;box-shadow:0 12px 32px #14284612}
.intro:before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#102442b8,transparent 90%);z-index:-1}.intro .eyebrow{color:var(--yellow);font-size:11px}.intro h1{color:white;font-size:44px;max-width:480px;line-height:1.12;margin:14px 0}.intro p{color:#e0e6f0}.intro .actions{gap:12px}.intro .primary{background:#ffffff12;border-color:#ffffff70;color:white}.intro .primary:hover{background:#ffffff28}
button{border-color:#dce1ea;border-radius:9px;transition:background .15s,border-color .15s,box-shadow .15s}button:hover{background:#f0f3fa}.primary,.filters button.active,.toast{background:var(--blue);border-color:var(--blue);color:#fff}.primary:hover{background:#1d316b}.accent{background:var(--yellow);border-color:var(--yellow);color:#18284d}.accent:hover{background:#f0da09;border-color:#f0da09}button:focus-visible,a:focus-visible{outline:3px solid #6687de;outline-offset:3px}
.stats{gap:16px;margin:24px 0 30px}.stat{border-color:#e0e4ed;border-radius:12px;padding:20px 24px;border-top:3px solid var(--blue)}.stat:nth-child(2){border-top-color:var(--yellow)}.stat strong{color:var(--blue);font-size:36px}.stat small{color:#606c82}
input,select,textarea{border-color:#cdd4e1;color:#202d49}input:focus,select:focus,textarea:focus{outline:2px solid #6687de;outline-offset:1px}.toolbar{align-items:center}.filters button{font-size:13px}.categorybar{padding:16px 18px;background:#e9edf5;border-radius:12px}.categorybar label{color:var(--blue)}.management button,.management a{border-color:#dce1ea}.grid{gap:18px}.card{border-color:#e0e4ed;border-radius:12px;padding:22px;min-height:220px}.card:hover{border-color:#8497c6;box-shadow:0 8px 24px #263f8710}.card h3{color:#213869;font-size:23px;margin-top:23px}.code{color:#65728d}.card .categoryname{color:#52678e}.card .bottom{color:#62708a;border-top:1px solid #eef0f5;margin-top:18px;padding-top:15px;gap:14px}.card .bottom span:last-child{color:var(--blue);font-weight:600;white-space:nowrap}.badge{background:#edf4ed;color:#376344}.badge.out{background:#edf0fc;color:#344e98}.badge.warn{background:#ffebe5;color:#9a3b2c}
dialog{color:#202d49;border-color:#dce1ea;box-shadow:0 24px 90px #0b173e33}dialog::backdrop{background:#15244080}.dialogtop h2{color:var(--blue)}.auth{max-width:460px;border-color:#dce1ea;border-top:5px solid var(--yellow);box-shadow:0 16px 50px #162a4e12;margin:40px auto;padding:34px}.auth h1{color:var(--blue)}main:has(.auth){max-width:none;min-height:calc(100vh - 100px);background:linear-gradient(90deg,#102442ad,#10244240),url('/assets/werkstatt-banner-v7.webp') center/cover no-repeat}.auth .eyebrow{font-size:10px}.auth-tagline{margin:0 0 24px;font:700 11px Eurostile,sans-serif;letter-spacing:1.2px;color:var(--blue)}footer{border-color:#dce1ea;color:#6c778c}.empty{border-color:#cdd4e1}.scanvideo{background:#142846}
@media(min-width:801px){.intro h1{max-width:420px}.toolbar input{min-width:240px}.toolbar{gap:20px}}
@media(max-width:800px){header{padding:14px 24px}.intro{min-height:280px;padding:30px}.intro h1{font-size:38px}.toolbar{align-items:stretch}.company-logo{width:180px;height:58px}.brand{gap:16px}.brand .product-name{padding-left:16px;font-size:22px}}
@media(max-width:520px){header{padding:12px 16px;gap:10px;flex-wrap:wrap}.company-logo{width:157px;height:52px}.brand{gap:12px}.brand .product-name{font-size:20px;padding-left:12px}.userbar{width:100%;justify-content:space-between;border-top:1px solid #edf0f5;padding-top:8px}.userbar:empty{display:none}main{padding:18px 16px}.intro{padding:24px 20px;min-height:265px;gap:22px;border-radius:12px;background-position:62% center}.intro:before{background:linear-gradient(90deg,#102442ed,#10244255)}.intro h1{font-size:34px;max-width:260px}.intro .eyebrow{font-size:9px;letter-spacing:1px}.intro p{font-size:14px}.intro .actions{width:100%;gap:8px}.intro .actions button{padding:13px 9px;font-size:13px;flex:1}.stats{gap:8px;margin:16px 0 24px}.stat{padding:14px 10px}.stat small{font-size:11px}.stat strong{font-size:29px}.categorybar{padding:12px}.card{min-height:205px}.auth{margin:16px auto;padding:26px 23px}main:has(.auth){padding-top:22px}.filters button{min-height:42px}footer{margin-top:30px}}
@media(prefers-reduced-motion:reduce){button{transition:none}}
/* On narrow screens the photograph has its own space above the controls. */
@media(max-width:800px){
 .intro{background:#142846;padding:20px;gap:16px;min-height:0}
 .intro:before{position:relative;inset:auto;z-index:auto;order:-1;flex:none;display:block;width:calc(100% + 40px);aspect-ratio:2/1;margin:-20px -20px 0;background:url('/assets/werkstatt-banner-v7.webp') right center/150% auto no-repeat}
 .intro h1{max-width:none;font-size:30px;margin:10px 0}
 .intro .actions{width:100%}
}






.stat-link{text-align:left;width:100%;cursor:pointer;font:inherit;background:white}.stat-link:hover,.stat-link:focus-visible{border-color:var(--blue);box-shadow:0 0 0 2px #263f8720}#whereabouts{padding:20px;background:#e9edf5;border-radius:12px;margin:0 0 20px}#whereabouts h2{margin:0 0 8px}#whereabouts .filters{margin-bottom:16px;flex-wrap:wrap}#whereabouts select{width:100%;max-width:540px}

.category-heading,.category-back,.available-category{grid-column:1/-1}.category-heading h2{margin:0 0 8px}.category-heading p{margin:0 0 8px}.available-category{display:flex;align-items:center;gap:12px;text-align:left;padding:18px;background:white;border:1px solid #dce1ea;border-radius:12px;color:var(--blue);min-width:0}.available-category>span:first-child{flex:1;overflow-wrap:anywhere}.available-category strong{font-size:13px;white-space:nowrap}.available-category:hover{border-color:var(--blue)}.category-back{justify-self:start}

.device-photo{width:100%;height:140px;object-fit:contain;background:#f5f6fa;border-radius:10px;margin-top:12px}.details .device-photo{height:220px}.intro .actions{flex-wrap:wrap}.available-category.full{margin:10px 0}#batchbook .full{margin-top:12px}.card .note{font-size:12px}

.photo-credit{display:block;font-size:11px;color:#626b7d;margin-top:3px}.photo-credit a{color:inherit}

.existing-device{display:flex;flex-direction:column;align-items:flex-start;text-align:left;width:100%;gap:6px;margin:10px 0;padding:16px;white-space:normal;overflow-wrap:anywhere}.existing-device span{font-size:13px;font-weight:400}.existing-device b{font-size:13px;color:var(--blue)}

.existing-device .device-photo{height:150px;margin-top:0;object-fit:contain}.existing-device .photo-credit{font-size:11px}

.existing-selection{border-bottom:1px solid #dce1ea;padding-top:14px}.existing-selection input{width:auto}.booking-notice{background:#fff;border:2px solid #263f87;border-radius:12px;padding:12px;box-shadow:0 4px 20px #0002}body>.booking-notice{position:fixed;bottom:16px;left:16px;right:16px;z-index:100}.booking-notice button{width:100%}

.live-booking{position:fixed;top:90px;right:18px;width:min(400px,calc(100vw - 36px));padding:18px;border:2px solid #ffdf20;background:#fff;color:#263f87;border-radius:14px;box-shadow:0 8px 30px #0003;z-index:20;overflow-wrap:anywhere}.live-booking p{white-space:pre-line;font-size:14px;margin:10px 0}.live-booking .dismiss{float:right;padding:0 5px}.notification-toggle{display:flex;gap:12px;align-items:center}.notification-toggle input{width:22px;height:22px}dialog .live-booking{position:sticky;top:0;right:auto;width:100%;margin:12px 0}
/* Admin inventory and label preparation, also usable on a phone. */
.inventory-row{padding:16px 0;border-bottom:1px solid #dde1e8}
.inventory-row small{display:block;margin-top:4px;color:#687080}
.inventory-row p{font-size:14px}
.label-measures{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px}
@media(max-width:400px){.label-measures{grid-template-columns:1fr}}
.supply-summary{display:block;width:100%;text-align:left;margin:0 0 16px;padding:16px 20px;border:1px solid #d8dfec;border-left:4px solid #263f87;background:#fff;color:#263f87;border-radius:12px;font-weight:700}.supply-summary:hover{background:#eef2fa}.supply-note{padding:12px 0;border-top:1px solid #ded8bb}.supply-note p{white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 8px}.supply-note small{color:#52596a}.supply-note button{display:block;margin-top:8px}#supply-list{max-height:320px;overflow:auto}#supply-text{width:100%;box-sizing:border-box;font:inherit;padding:12px;border:1px solid #bfc5d0;border-radius:10px}

.supply-note.completed p{color:#808795;text-decoration:line-through}.supply-note.completed small{color:#808795}.supply-status{display:block;margin-top:6px}.supply-note.completed{background:#f7f8fa}

.supply-status{display:table;padding:4px 10px;border-radius:20px;font-size:12px;font-weight:700;margin:10px 0}.supply-status.is-open{background:#fff0cf;color:#795000}.supply-status.is-done{background:#eceff2;color:#626c78}.supply-note:not(.completed) p{color:#25334a}.supply-note .supply-complete{background:#263f87;color:white;border:1px solid #263f87;margin-top:12px}.supply-note .supply-complete:hover{background:#1e326d}
/* Compact material list: the dialog is the only scroll container. */
#supply-list{max-height:none;overflow:visible}.supply-toolbar{margin:16px 0 22px}.supply-toolbar p{font-size:13px;margin:0 0 14px}.supply-toolbar button{width:100%}.supply-group-title{display:flex;align-items:center;gap:8px;font-size:14px;margin:20px 0 8px;color:#263f87}.supply-group-title span{background:#edf0f7;padding:3px 8px;border-radius:20px;font-size:12px}.supply-done-title{color:#6c7480;margin-top:26px}.supply-rows{list-style:none;padding:0;margin:0}.supply-row{border-bottom:1px solid #e6e9ef;padding:14px 0}.supply-row-main{display:flex;align-items:flex-start;gap:10px}.supply-marker{color:#b07800;font-size:21px;line-height:24px;flex:0 0 18px}.supply-row-copy{flex:1;min-width:0}.supply-row-copy p{margin:0 0 6px;color:#25334a;font-size:15px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}.supply-row-copy small{font-size:11px;color:#727b87}.supply-row.completed .supply-row-copy p{text-decoration:line-through;color:#858c96}.supply-row.completed .supply-marker{color:#8b939d}.supply-menu{flex:0 0 40px;position:relative}.supply-menu summary{list-style:none;cursor:pointer;border:1px solid #dfe4ed;border-radius:8px;width:40px;height:40px;display:grid;place-items:center;font-size:24px;color:#263f87;background:white}.supply-menu summary::-webkit-details-marker{display:none}.supply-menu[open]{z-index:2}.supply-menu>div{position:absolute;right:0;top:44px;width:210px;background:white;padding:5px;border:1px solid #dfe4ed;border-radius:10px;box-shadow:0 6px 20px #14284626}.supply-menu button{display:block;width:100%;border:0;text-align:left;padding:12px;font-size:13px;background:white;min-height:42px}.supply-menu button:hover{background:#eef2fa}.supply-menu .supply-delete{color:#a13e30}.supply-empty{font-size:14px;padding:14px;background:#f5f7fa;border-radius:10px}.supply-row:has(.supply-menu[open]){padding-bottom:150px}

/* Keep the booked location prominent, including long site names on phones. */
.card .bottom{flex-direction:column;gap:10px}
.card .bottom .device-location{display:block;width:100%;padding:12px 14px;background:#fff8cc;border-left:4px solid var(--blue);border-radius:8px;color:#213869;font-size:15px;font-weight:750;line-height:1.45;white-space:normal;overflow-wrap:anywhere}
.card .bottom>span:last-child{align-self:flex-end}
