:root{--navy:#101341;--navy-2:#181d55;--blue:#2f63f5;--cyan:#16b7d4;--bg:#f3f5f9;--card:#fff;--text:#171a2e;--muted:#70768d;--line:#e3e7ef;--green:#13a36f;--orange:#f19a38;--red:#dc4c64;--purple:#8456d8;--shadow:0 10px 30px rgba(16,19,65,.07);--radius:16px}
*{box-sizing:border-box}html{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);background:var(--bg)}body{margin:0;min-height:100vh}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}a{color:inherit;text-decoration:none}
.sidebar{position:fixed;inset:0 auto 0 0;width:244px;background:var(--navy);color:#fff;display:flex;flex-direction:column;padding:24px 16px;z-index:20}.brand{display:flex;align-items:center;gap:13px;font-weight:800;font-size:18px;letter-spacing:-.02em;padding:0 10px 28px}.brand img{width:47px;height:36px;object-fit:contain}.sidebar nav{display:flex;flex-direction:column;gap:5px}.sidebar nav a,.sidebar-bottom a,.nav-button{border:0;background:transparent;color:#bfc4dc;display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px;border-radius:10px;font-weight:650;cursor:pointer;text-align:left}.sidebar nav a:hover,.sidebar-bottom a:hover,.nav-button:hover,.sidebar a.active{background:rgba(255,255,255,.1);color:#fff}.nav-icon{width:20px;text-align:center;font-size:19px}.sidebar-bottom{margin-top:auto;border-top:1px solid rgba(255,255,255,.12);padding-top:14px}.sidebar-bottom form{margin:0}
.app-shell{margin-left:244px;min-height:100vh}.topbar{height:68px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 34px;position:sticky;top:0;z-index:10}.topbar>div{display:flex;flex-direction:column}.topbar strong{font-size:16px}.topbar small{color:var(--muted);margin-top:2px}.menu-button{display:none;background:transparent;border:0;font-size:24px;margin-right:12px}.content{padding:34px;max-width:1650px;margin:0 auto}.page-title{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:24px}.page-title h1{margin:0;font-size:30px;letter-spacing:-.04em}.page-title p{margin:7px 0 0;color:var(--muted)}
.panel{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow);margin-bottom:22px}.panel h2{font-size:18px;margin:0 0 20px}.panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.panel-head h2{margin:0}.panel-head p{margin:5px 0 0}.count{background:#edf0f6;color:var(--navy);font-weight:800;border-radius:999px;min-width:31px;text-align:center;padding:5px 10px}.two-column{display:grid;grid-template-columns:minmax(280px,390px) minmax(0,1fr);gap:22px;align-items:start}.two-column.wide-left{grid-template-columns:minmax(390px,490px) minmax(0,1fr)}.sticky-panel{position:sticky;top:90px}
.stack{display:flex;flex-direction:column;gap:16px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.span-2{grid-column:span 2}.form-actions{display:flex;gap:10px}label{display:flex;flex-direction:column;gap:7px;font-weight:700;font-size:13px}label small{display:inline;color:var(--muted);font-weight:500}input,select,textarea{width:100%;border:1px solid #cfd5e1;border-radius:10px;background:#fff;padding:11px 12px;color:var(--text);outline:none;min-height:44px}textarea{resize:vertical}input:focus,select:focus,textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(47,99,245,.12)}.required{color:var(--red)}.button{border:1px solid transparent;border-radius:10px;min-height:43px;padding:10px 16px;font-weight:750;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.button.primary{background:var(--blue);color:#fff}.button.primary:hover{background:#2455dd}.button.secondary{background:#fff;border-color:var(--line);color:var(--text)}.button:disabled{opacity:.45;cursor:not-allowed}.button.full{width:100%}.icon-button{width:35px;height:35px;border:1px solid var(--line);background:#fff;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;font-weight:800}.icon-button:hover{background:#f4f6fa}.icon-button.danger{color:var(--red)}.icon-button.plan{color:var(--blue)}.text-button{border:0;background:transparent;color:var(--blue);font-weight:750;padding:3px;cursor:pointer}.muted{color:var(--muted)}.top-gap{margin-top:18px}
.checkbox-label{flex-direction:row;align-items:flex-start;gap:11px;border:1px solid var(--line);border-radius:11px;padding:12px;background:#f8f9fc;cursor:pointer}.checkbox-label input{width:18px;height:18px;min-height:0;margin:2px 0 0;flex:0 0 auto}.checkbox-label span{display:flex;flex-direction:column;gap:3px}.checkbox-label strong{font-size:13px}
.item-list{display:flex;flex-direction:column}.list-item{display:flex;align-items:center;gap:13px;padding:15px 4px;border-bottom:1px solid var(--line)}.list-item:last-child{border-bottom:0}.list-item.inactive{opacity:.55}.item-main{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}.item-main strong,.item-main span,.item-main small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.item-main span{font-size:13px}.item-main small{color:var(--muted);font-size:12px}.item-actions{display:flex;gap:6px;align-items:center}.item-actions form{display:flex}.status-dot{width:9px;height:9px;border-radius:50%;background:var(--green);flex:0 0 auto}.status-dot.offerte{background:var(--orange)}.mast-symbol{width:38px;height:38px;border-radius:10px;background:var(--navy);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:900;clip-path:polygon(20% 0,80% 0,100% 100%,0 100%)}
.mast-link{display:flex;align-items:center;gap:13px;min-width:0;flex:1;border-radius:10px}.mast-link:hover strong,.mast-number-link:hover{color:var(--blue);text-decoration:underline}.mast-number-link{font-weight:800;color:var(--navy)}.mast-type-thumb{width:52px;height:64px;object-fit:contain;flex:0 0 auto;background:#f5f7fb;border:1px solid var(--line);border-radius:10px;padding:4px}
.fuel-note{color:#a54b00!important;font-size:11px!important;font-weight:800;white-space:normal!important;overflow:visible!important}.fuel-warning{display:flex;align-items:center;gap:12px;background:#fff3df;border:1px solid #f3d1a2;border-left:5px solid var(--orange);border-radius:11px;padding:12px 14px;margin:-4px 0 18px;color:#7c4504}.fuel-warning strong{white-space:nowrap}.fuel-warning span{font-size:12px}
.mast-detail{border-top:4px solid var(--blue)}.mast-detail-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.mast-detail-title,.mast-detail-actions{display:flex;align-items:center;gap:18px}.mast-detail-title h2{font-size:26px;margin:2px 0 0}.mast-detail-title p{margin:4px 0 0;color:var(--muted);font-size:13px;font-weight:700}.mast-detail-visual{width:110px;height:150px;background:linear-gradient(145deg,#f8f9fc,#eef1f7);border:1px solid var(--line);border-radius:14px;display:flex;align-items:center;justify-content:center;padding:7px}.mast-detail-visual img{width:100%;height:100%;object-fit:contain}.detail-grid{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));border:1px solid var(--line);border-radius:13px;overflow:hidden}.detail-field{padding:16px 18px;display:flex;flex-direction:column;gap:7px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);min-width:0}.detail-field:nth-child(4n){border-right:0}.detail-field small{color:var(--muted);font-size:11px;font-weight:700}.detail-field strong{font-size:14px;white-space:normal}.detail-field .badge{align-self:flex-start}.history-head{display:flex;align-items:center;justify-content:space-between;margin-top:24px}.history-head h3{font-size:15px;margin:0}.mast-history{margin-top:10px}.history-row{display:grid;grid-template-columns:minmax(180px,1fr) minmax(180px,.8fr) auto 24px;align-items:center;gap:14px;padding:12px;border-top:1px solid var(--line)}.history-row:hover{background:#f7f9fc}.history-row>div{display:flex;flex-direction:column;gap:3px}.history-row small{color:var(--muted)}.history-row>b{color:var(--blue)}.compact-empty{padding:20px}
.badge{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;border-radius:999px;padding:6px 10px;font-size:11px;font-weight:800;background:#edf0f6;color:#596076}.badge.definitief,.badge.voorraad{background:#e0f6ed;color:#087a53}.badge.offerte,.badge.gereserveerd_offerte{background:#fff0de;color:#a85d05}.badge.op_locatie{background:#e7edff;color:#224fcf}.badge.gereserveerd_toekomst{background:#eee8fc;color:#6736b7}.search-input{margin:0 0 8px}.empty{text-align:center;color:var(--muted);padding:32px 16px}.large-empty{background:#fff;border:1px dashed #cfd5e1;border-radius:var(--radius);margin-top:20px;padding:60px 20px}.large-empty h2{margin:8px 0}.large-empty p{margin:0}.empty-icon{font-size:40px;color:var(--blue)}.bulk-panel summary{font-weight:800;cursor:pointer}
.badge.reseller{background:#e8eafa;color:var(--navy)}.badge.reseller-client{background:#fff0de;color:#9a5608}.customer-item{align-items:flex-start}.customer-item>.badge,.customer-item>.item-actions{margin-top:2px}.customer-item.reseller-customer{background:#fffaf3;margin:4px -8px;padding:14px 12px;border:1px solid #f6ddbb;border-radius:12px}.reseller-warning{display:flex;flex-direction:column;gap:2px;background:#fff0de;color:#874b07;border-left:4px solid var(--orange);border-radius:7px;padding:8px 10px;margin-top:8px;white-space:normal}.reseller-warning b{font-size:12px}.reseller-warning span{font-size:11px;white-space:normal}
.flash{border-radius:11px;padding:13px 16px;margin:0 0 18px;font-weight:650;font-size:14px}.flash-success{background:#dff7ed;color:#08734f;border:1px solid #bcebd8}.flash-error{background:#ffeaee;color:#a8263e;border:1px solid #f8c8d1}.flash-info{background:#eaf0ff;color:#294ca9;border:1px solid #ccd9ff}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:20px}.stat{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px 20px;display:flex;align-items:center;justify-content:space-between;box-shadow:var(--shadow)}.stat span{color:var(--muted);font-weight:650;font-size:13px}.stat strong{font-size:28px;color:var(--navy)}.location-picker{display:flex;align-items:end}.location-picker label{width:min(700px,100%)}.selected-location{background:linear-gradient(125deg,var(--navy),var(--navy-2));color:#fff;border-radius:var(--radius);padding:23px 26px;margin-bottom:20px;display:flex;justify-content:space-between;align-items:center;box-shadow:var(--shadow)}.selected-location.offerte{background:linear-gradient(125deg,#633c12,#99570b)}.selected-location h2{margin:10px 0 5px}.selected-location p{margin:0;color:#d5d9ed}.selected-location .period{display:flex;flex-direction:column;text-align:right;gap:5px}.selected-location .period small{color:#c5cae2}.planning-board{display:grid;grid-template-columns:minmax(330px,1fr) minmax(330px,1fr);gap:20px}.select-tools{display:flex;justify-content:space-between;margin:8px 0 12px}.mast-cards{max-height:560px;overflow:auto;padding-right:4px}.mast-card{display:flex;flex-direction:row;align-items:center;gap:11px;border:1px solid var(--line);border-radius:11px;padding:12px;margin-bottom:8px;cursor:grab;transition:.15s}.mast-card:hover{border-color:#b6c5f5}.mast-card.selected{border-color:var(--blue);background:#f0f4ff}.mast-card.dragging{opacity:.45}.mast-card input{width:18px;height:18px;min-height:0}.mast-card>span:nth-child(3){display:flex;flex-direction:column;gap:2px}.mast-card small{font-weight:500;color:var(--muted)}.drag-handle{color:#adb3c2;font-size:19px}.drop-target{border:2px dashed #c9d0dd;border-radius:14px;padding:18px;background:#fafbfc;transition:.15s}.drop-target.drag-over{border-color:var(--blue);background:#eef3ff}.drop-message{height:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--muted);gap:4px}.drop-message>span{font-size:36px;color:var(--blue)}.drop-message strong{color:var(--text)}.drop-message small{font-size:12px}.assigned-list{margin-top:18px}.assigned-mast{display:flex;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid var(--line)}.assigned-mast>div:nth-child(2){display:flex;flex-direction:column;flex:1}.assigned-mast small{color:var(--muted);font-size:12px}.assigned-mast form{display:flex}
.timeline-controls{display:flex;align-items:end;justify-content:space-between;gap:16px}.filter-form{width:260px}.timeline-nav{display:flex;gap:8px}.legend{display:flex;gap:20px;margin:2px 0 12px;color:var(--muted);font-size:12px}.legend span{display:flex;align-items:center;gap:6px}.legend-block{width:22px;height:10px;border-radius:4px}.legend-block.definite{background:var(--blue)}.legend-block.quote{background:var(--orange)}.today-mark{height:14px;border-left:2px solid var(--red)}.timeline-wrap{padding:0;overflow:auto}.timeline{min-width:1200px}.timeline-row{display:grid;grid-template-columns:180px repeat(16,minmax(58px,1fr));min-height:56px;border-bottom:1px solid var(--line)}.timeline-row:last-child{border-bottom:0}.timeline-row>div{border-right:1px solid var(--line)}.mast-label{position:sticky;left:0;z-index:2;background:#fff;padding:10px 13px;display:flex;flex-direction:column;justify-content:center}.mast-label strong{font-size:13px}.mini-status{font-size:10px;margin-top:3px;color:var(--muted)}.mini-status.op_locatie{color:var(--blue)}.mini-status.voorraad{color:var(--green)}.mini-status.gereserveerd_offerte{color:#a85d05}.timeline-header{position:sticky;top:0;z-index:4;background:#f8f9fb}.timeline-header .mast-label{background:#f8f9fb;font-weight:800}.week{padding:9px 4px;text-align:center;display:flex;flex-direction:column}.week strong{font-size:11px}.week small{font-size:9px;color:var(--muted)}.week-cell{min-width:0;display:flex;align-items:center;overflow:hidden}.week-cell.current-week,.week.current-week{box-shadow:inset 2px 0 var(--red)}.week-cell.filled{margin:9px 0;background:var(--blue);border-right-color:transparent;color:#fff;padding:0 5px;font-size:9px;font-weight:700}.week-cell.filled.quote{background:var(--orange)}.week-cell.filled span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.timeline-note{font-size:12px;color:var(--muted)}
.check-list{list-style:none;padding:0;margin:0 0 18px}.check-list li{padding:8px 0 8px 28px;position:relative;border-bottom:1px solid var(--line)}.check-list li:before{content:'✓';position:absolute;left:3px;color:var(--green);font-weight:900}.security-card p{margin-bottom:0}
.login-body{background:radial-gradient(circle at 70% 20%,#242b72 0,var(--navy) 40%,#090b28 100%);display:grid;place-items:center;padding:20px}.login-card{width:min(430px,100%);background:#fff;border-radius:22px;padding:40px;box-shadow:0 30px 80px rgba(0,0,0,.3)}.login-logo{display:block;width:150px;height:95px;object-fit:contain;margin:0 auto 15px}.eyebrow{text-transform:uppercase;letter-spacing:.18em;color:var(--blue);font-size:11px;font-weight:900;margin:0 0 7px}.login-card h1{font-size:30px;letter-spacing:-.04em;margin:0 0 7px}.login-card>.muted{margin:0 0 24px}
.sidebar-overlay{display:none}
@media(max-width:980px){.sidebar{transform:translateX(-100%);transition:.2s}.sidebar.open{transform:none}.app-shell{margin-left:0}.topbar{padding:0 18px}.menu-button{display:block}.sidebar-overlay{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:15}.sidebar-overlay.show{display:block}.content{padding:22px}.two-column,.two-column.wide-left,.planning-board{grid-template-columns:1fr}.sticky-panel{position:static}.stats-grid{grid-template-columns:repeat(2,1fr)}.detail-grid{grid-template-columns:repeat(2,1fr)}.detail-field:nth-child(4n){border-right:1px solid var(--line)}.detail-field:nth-child(2n){border-right:0}}
@media(max-width:640px){.content{padding:16px}.topbar{height:62px}.page-title h1{font-size:25px}.panel{padding:17px;border-radius:13px}.form-grid{grid-template-columns:1fr}.span-2{grid-column:span 1}.selected-location{align-items:flex-start;gap:17px;flex-direction:column}.selected-location .period{text-align:left}.stats-grid{gap:8px}.stat{padding:14px;flex-direction:column;align-items:flex-start;gap:5px}.stat strong{font-size:24px}.list-item{align-items:flex-start;flex-wrap:wrap}.list-item .badge{order:3}.item-actions{margin-left:auto}.timeline-controls{align-items:stretch;flex-direction:column}.filter-form{width:100%}.timeline-nav{display:grid;grid-template-columns:repeat(3,1fr)}.timeline-nav .button{font-size:11px;padding:7px}.login-card{padding:28px 22px}.mast-detail-head{align-items:flex-start}.mast-detail-actions .button{display:none}.mast-detail-visual{width:74px;height:105px}.detail-grid{grid-template-columns:1fr}.detail-field,.detail-field:nth-child(2n),.detail-field:nth-child(4n){border-right:0}.history-row{grid-template-columns:1fr auto}.history-row>span:nth-child(2){grid-column:1/-1;grid-row:2}.history-row>b{display:none}.fuel-warning{align-items:flex-start;flex-direction:column;gap:3px}}
