*{box-sizing:border-box}body{margin:0;background:#f4f5f7;color:#202124;font:15px system-ui,-apple-system,sans-serif}.shell{display:flex;min-height:100vh}.sidebar{background:#171717;color:#eee;width:240px;flex:none;padding:27px 15px;display:flex;flex-direction:column}.brand{padding:6px 12px 30px}.brand b{color:#ef4444;font-size:17px;letter-spacing:.6px}.brand small{display:block;color:#999;margin-top:5px}nav{display:grid;gap:3px}.nav,.bottom a,.setting{display:block;text-align:left;width:100%;padding:12px 13px;border-radius:8px;color:#eee;border:0;background:none;font:inherit;text-decoration:none;cursor:pointer}.nav.active{background:#333;border-left:3px solid #e23b3b}.nav:hover:not(.muted),.bottom a:hover{background:#2b2b2b}.nav.muted{color:#777;cursor:default}.nav small{font-size:10px;float:right}.bottom{margin-top:auto;border-top:1px solid #333;padding-top:12px}.setting{color:#aaa;cursor:default}.bottom a{padding-left:26px}main{padding:32px 38px;flex:1;min-width:0;max-width:1300px}header,.toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:25px}.eyebrow{font-size:11px;letter-spacing:1.3px;color:#777;font-weight:700}h1{font-size:27px;margin:8px 0 0}h2{font-size:19px;margin:0 0 16px}.user{background:white;border:1px solid #e7e7e9;border-radius:30px;padding:9px 16px;font-size:13px}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:20px}.card,.panel{background:white;border:1px solid #e5e7eb;border-radius:13px;padding:22px;margin-bottom:18px}.card{color:#777}.card strong{color:#181818;display:block;font-size:30px;margin-top:10px}.panel p{color:#666;line-height:1.7}.primary{background:#d72f35;color:white;border:0;border-radius:8px;font-weight:700;padding:12px 17px;cursor:pointer}.primary:hover{background:#b42329}.subtle{background:#f5f5f6;border:1px solid #ddd;padding:11px 14px;border-radius:8px;cursor:pointer}input,select,textarea{font:inherit;display:block;width:100%;background:white;border:1px solid #d6d9dd;border-radius:7px;padding:11px;margin-top:7px}label{font-weight:600;font-size:13px;display:block;margin-bottom:18px}.two{display:grid;grid-template-columns:1fr 1fr;gap:16px}.toolbar input{max-width:430px;margin:0}.customer-row{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #eee;padding:14px 0}.customer-row:last-child{border-bottom:0}.customer-row strong{display:block}.meta{font-size:12px;color:#777;padding-top:6px}.notice{position:fixed;right:20px;bottom:10px;background:#222;color:white;padding:12px 18px;border-radius:8px;display:none}.notice.show{display:block}[hidden]{display:none!important}@media(max-width:800px){.shell{display:block}.sidebar{width:100%;padding:12px}.brand{padding:5px}.sidebar nav{display:flex;overflow:auto}.nav{white-space:nowrap}.nav.muted,.bottom{display:none}main{padding:20px}.cards{grid-template-columns:1fr}.two{grid-template-columns:1fr}header{align-items:start}.user{display:none}}
.job-row{display:grid;grid-template-columns:160px 1fr 140px 110px 90px;gap:12px;align-items:center;border-bottom:1px solid #eee;padding:14px 0}.job-row:last-child{border-bottom:0}.job-number{font-weight:700;color:#333}.job-row .meta{padding-top:0}.status{display:inline-block;padding:6px 9px;background:#f3f4f6;border-radius:20px;font-size:12px}.job-row button{justify-self:end}@media(max-width:820px){.job-row{grid-template-columns:1fr auto}.job-row .job-number,.job-row .status,.job-row .meta{grid-column:1}.job-row button{grid-row:1/4;grid-column:2}}

.status-summary{display:flex;flex-wrap:wrap;gap:10px}.status{font-weight:600}.s-new{background:#e2e8f0;color:#334155}.s-planned{background:#dbeafe;color:#1d4ed8}.s-progress{background:#fef3c7;color:#92400e}.s-paused{background:#f3e8ff;color:#6b21a8}.s-done{background:#dcfce7;color:#166534}.s-cancelled{background:#fee2e2;color:#991b1b}.quote-item{display:grid;grid-template-columns:115px 2fr 80px 90px 110px 44px;align-items:center;gap:8px;margin-bottom:10px}.quote-item input,.quote-item select{margin:0}.quote-total{display:flex;justify-content:flex-end;gap:14px;font-size:19px;margin:25px 0 10px}.quote-price{white-space:nowrap;font-weight:700}.job-row:has(.quote-price){grid-template-columns:135px 1fr 120px 110px 100px 90px}@media(max-width:850px){.quote-item{grid-template-columns:1fr 1fr}.job-row:has(.quote-price){grid-template-columns:1fr auto}}

.checkrow{display:flex;align-items:center;gap:10px}.checkrow input{width:auto;margin:0}.toolbar button:disabled{opacity:.5;cursor:not-allowed}@media print{.sidebar{display:none}}

.checkrow{display:flex;align-items:center;gap:10px}.checkrow input{width:auto;margin:0}.toolbar button:disabled{opacity:.5;cursor:not-allowed}@media print{.sidebar{display:none}}

#priceList,#regionList,#pickerList{margin-top:15px}#regionList .customer-row{flex-wrap:wrap}#regionList input{margin:0}#priceEditPanel{scroll-margin-top:24px}#pricePicker{margin:16px 0;background:#f9fafb}#priceSearch{max-width:500px}

/* ERP 2.0.8 - bundle composition editor */
.bundle-editor{margin:18px 0;padding:20px;border:1px solid #e3e5eb;border-radius:12px;background:#fafbfc}.bundle-editor h3{margin:0 0 8px}.bundle-actions{display:flex;gap:8px;align-items:end;flex-wrap:wrap}.bundle-row{display:grid;grid-template-columns:minmax(130px,2fr) minmax(100px,1fr) 95px 110px 44px;gap:8px;align-items:end;margin:10px 0;padding:12px;background:white;border:1px solid #e7e7eb;border-radius:8px}.bundle-row input,.bundle-row select{max-width:100%;box-sizing:border-box}.bundle-row label{font-size:12px}.bundle-row button{padding:9px}.bundle-summary{display:flex;gap:18px;justify-content:flex-end;flex-wrap:wrap;margin-top:12px;font-size:14px}@media(max-width:850px){.bundle-row{grid-template-columns:1fr 1fr}.bundle-row label:first-child{grid-column:1 / -1}.bundle-summary{justify-content:flex-start}}
