:root{--reg-ink:#251f1b;--reg-muted:#6f625a;--reg-red:#c51d0b;--reg-orange:#ef6508;--reg-gold:#ffbc2f;--reg-cream:#fff8ef;--reg-line:#eed8c8;--reg-green:#16814b;--reg-shadow:0 18px 48px rgba(90,51,24,.1)}
*{box-sizing:border-box}body{margin:0;font-family:Manrope,"Segoe UI",Arial,sans-serif;color:#211a16;background:#fff8ef;font-size:13px;line-height:1.6}a{color:#a52e0a;text-decoration:none}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:3px}button{cursor:pointer}h1,h2,p{margin-top:0}h1{font-size:28px;letter-spacing:-.8px;margin-bottom:3px;line-height:1.25}h2{font-size:16px;line-height:1.4;margin-bottom:3px}p{color:#7b6c62;font-size:12px}.muted{color:#857468;font-size:11px}.orange{color:#ed650d}.sidebar{width:240px;position:fixed;inset:0 auto 0 0;background:#fffdfa;border-right:1px solid #ecd9ca;display:flex;flex-direction:column;padding:27px 18px;z-index:10}.brand{display:flex;align-items:center;font-size:19px;font-weight:850;letter-spacing:-.7px;color:#211a16;gap:10px}.brand:hover{text-decoration:none}.brand small{display:block;color:#958174;font-size:8px;letter-spacing:1px;margin-top:3px}.brand-icon{font-size:31px;color:#ea620c}.nav-caption{font-size:9px;letter-spacing:1.6px;font-weight:800;color:#a18a78;margin:32px 12px 12px}.sidebar nav a{display:flex;align-items:center;gap:13px;padding:7px 14px;margin-bottom:2px;border-radius:11px;color:#756355;font-size:15px}.sidebar nav a span{font-size:14px;font-weight:500}.sidebar nav a.active{background:linear-gradient(90deg,#fff0da,#fff5e9);color:#c13c09;border:1px solid #f4d0ad}.sidebar nav .nav-caption{margin-top:16px;margin-bottom:8px}.sidebar-bottom{margin-top:auto;display:flex;gap:9px;align-items:center;padding-top:18px;border-top:1px solid #ecd9ca}.avatar{display:grid;place-items:center;background:#ffecd7;color:#b74b0b;border-radius:10px;width:33px;height:33px;font-weight:800}.sidebar-bottom b{font-size:11px}.sidebar-bottom small{display:block;font-size:9px;color:#988374}.logout{background:none;border:0;font-size:22px;color:#96735a}.sidebar-bottom form{margin-left:auto}.workspace{margin-left:240px;min-height:100vh;display:flex;flex-direction:column}.topbar{height:70px;display:flex;align-items:center;justify-content:space-between;padding:0 32px;background:#fffdf9;border-bottom:1px solid #efdfd0;color:#8b7767;font-size:11px}.topbar b{font-weight:600;color:#44362c}.top-status{color:#32639b;font-size:9px;font-weight:700;letter-spacing:.6px}.workspace main{padding:24px 32px 35px;flex:1;max-width:1700px;width:100%;margin:auto}.breadcrumb{font-size:10px;color:#9b806b;margin-bottom:22px}.breadcrumb span{margin:0 10px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:23px}.page-heading p{margin:7px 0 0}.eyebrow{font-size:9px;letter-spacing:1.6px;font-weight:800;color:#bd5821;margin-bottom:9px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:10px;padding:10px 17px;min-height:39px;font-size:11px;font-weight:800;white-space:nowrap}.button:hover{text-decoration:none;filter:brightness(.97)}.primary{background:linear-gradient(90deg,#f47b12,#b71909);color:#fff;box-shadow:0 6px 15px #dd63251c}.secondary{background:#fff8ef;border-color:#e5cdbb;color:#73503a}.subtle{color:#87644b}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:22px}.stat,.panel{background:#fffdf9;border:1px solid #ecd9ca;border-radius:17px;box-shadow:0 6px 20px #68381705}.stat{padding:20px}.stat-top{display:flex;justify-content:space-between;align-items:center;color:#7c6555;font-size:11px;font-weight:700}.stat-top span{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:#fff0dd;font-size:19px;color:#e16d19}.stat:nth-child(2) .stat-top span{background:#edf3fc;color:#32639b}.stat strong{font-size:31px;display:block;line-height:1.5}.stat small{font-size:10px;color:#a08877}.welcome-panel{display:flex;align-items:center;justify-content:space-between;padding:28px 32px;background:radial-gradient(ellipse at right,#ffe0b5,transparent 65%),#fff1df;border:1px solid #efd1ae;border-radius:18px;margin-bottom:24px;overflow:hidden}.welcome-panel h2{font-size:24px;letter-spacing:-.6px}.welcome-panel p{margin:8px 0 20px}.inline-actions{display:flex;gap:9px}.welcome-box{font-size:110px;line-height:1;color:#e77523;transform:rotate(-12deg);margin-right:30px;text-shadow:10px 14px 0 #ffd0a2}.two-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px}.panel-heading{padding:21px 22px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-heading a{font-size:10px;font-weight:800;color:#32639b}.panel-heading p{font-size:10px;margin-bottom:0}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:11px;text-align:left}th{background:#fff5e9;color:#94715a;font-weight:800;font-size:9px;text-transform:uppercase;letter-spacing:.5px;padding:12px 18px}td{padding:15px 18px;border-bottom:1px solid #f2e6db}td small{display:block;color:#a18c7c;font-size:10px}td a{font-weight:700;color:#32639b}.badge{display:inline-block;border:1px solid #cce1cd;background:#f0f8ef;color:#3b7644;border-radius:20px;padding:3px 9px;font-size:9px}.badge.inactive{background:#f6f0ea;color:#8c7969;border-color:#e5d9d0}.empty{text-align:center;padding:40px 15px;color:#8b7260;font-size:12px}.empty b{color:#594537}.empty p{margin:6px 0 12px;font-size:11px}.empty a{color:#32639b;font-weight:700}.search-bar{display:flex;align-items:center;gap:9px;padding:18px 20px}.search-bar input{width:300px}.search-bar .muted{margin-left:auto}.notice{padding:12px 16px;border:1px solid;border-radius:10px;margin-bottom:18px;font-size:12px}.error,.validation{color:#b71909;background:#fff0e5;border-color:#efc2a4}.success{color:#27653c;background:#f0f9f0;border-color:#bdddc4}.validation:empty,.validation.validation-summary-valid{display:none}.validation ul{padding-left:20px;margin:0}.validation{padding:10px 16px;border-radius:10px;margin-bottom:15px}.master-form{padding:22px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-section{border:1px solid #ebd7c6;border-radius:15px;padding:18px;background:linear-gradient(135deg,#fffaf4,#fffdf9)}.form-section:last-child{grid-column:1/-1}.section-heading{display:flex;align-items:center;gap:10px;margin-bottom:15px}.section-heading>b{display:grid;place-items:center;flex-shrink:0;width:34px;height:34px;border-radius:10px;color:#fff;font-size:11px;background:linear-gradient(135deg,#f47b12,#b71909)}.section-heading h2{font-size:13px;font-weight:850}.section-heading p{font-size:10px;margin:0}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-section:last-child .field-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.field{min-width:0}.field.full{grid-column:1/-1}.field label{display:block;font-size:14px;color:#69513e;font-weight:500;margin-bottom:5px}input,select,textarea{width:100%;min-height:38px;padding:9px 11px;border:1px solid #dfcec2;border-radius:9px;background:#fff;color:#33271e;font-size:14px;font-weight:500;line-height:1.4}textarea{resize:vertical;min-height:62px}input:focus,select:focus,textarea:focus{border-color:#f47b12;box-shadow:0 0 0 3px #f47b1217;outline:none}input[readonly]{background:#fff6e9;color:#98745b}.field span{font-size:10px;color:#b71909}.form-actions{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #ebd7c6;padding-top:18px;margin-top:20px;gap:14px}.form-actions>div{display:flex;gap:8px}footer{padding:15px 32px;border-top:1px solid #efdfd0;color:#a58c77;font-size:9px;display:flex;justify-content:space-between}.menu-toggle{display:none}.login-page{min-height:100vh;display:grid;place-items:center;padding:30px;background:radial-gradient(ellipse at 15% 30%,#ffe5c6,transparent 60%),#fff8ef}.login-shell{max-width:940px;width:100%;display:grid;grid-template-columns:1fr 1fr;background:#fffdf9;border:1px solid #ecd2bb;border-radius:24px;overflow:hidden;box-shadow:0 25px 90px #83411416}.login-story{padding:44px 40px;background:linear-gradient(140deg,#fff0da,#ffdeb2);position:relative}.login-story h1{font-size:37px;line-height:1.22;letter-spacing:-1px}.login-story h1 span{color:#c84a0e}.login-story p{max-width:290px;line-height:1.9}.box-art{font-size:63px;color:#ea731a;margin:24px 0;line-height:1}.story-tags{display:flex;gap:8px;margin-top:27px}.story-tags span{font-size:9px;padding:5px 11px;border:1px solid #edc29b;border-radius:20px;color:#97613e}.login-form{padding:48px 40px;display:flex;flex-direction:column;justify-content:center}.login-form .brand{display:block;font-size:22px;margin-bottom:35px}.login-form h2{font-size:21px;letter-spacing:-.5px}.login-form>.muted{margin:6px 0 24px}.login-form .field{margin-bottom:15px}.login-form input{min-height:42px}.login-button{width:100%;margin-top:10px;justify-content:space-between}.login-foot{font-size:9px;color:#a58b77;margin-top:35px;text-align:center}@media(min-width:1500px){.form-grid{grid-template-columns:1fr 1fr 1.3fr}.form-section:last-child{grid-column:auto}.form-section:last-child .field-grid{grid-template-columns:1fr 1fr}}@media(max-width:1100px){.sidebar{width:210px;padding:22px 12px}.workspace{margin-left:210px}.workspace main{padding:22px}.topbar{padding:0 22px}.stats{grid-template-columns:repeat(2,1fr)}.two-columns{grid-template-columns:1fr}.brand{font-size:17px}.search-bar{flex-wrap:wrap}.search-bar .muted{width:100%;margin:0}.welcome-box{margin:0;font-size:80px}.form-section:last-child .field-grid{grid-template-columns:1fr 1fr}}@media(max-width:750px){.sidebar{transform:translateX(-100%);width:235px;transition:transform .2s}.nav-open .sidebar{transform:translateX(0)}.workspace{margin:0}.menu-toggle{display:inline-block;background:none;border:0;margin-right:8px;color:#b74b0b}.topbar{height:58px;padding:0 14px}.top-status{display:none}.workspace main{padding:18px 14px}.page-heading{align-items:flex-start;flex-wrap:wrap}h1{font-size:24px}.stats{gap:10px}.stat{padding:14px}.stat-top{font-size:10px}.stat small{font-size:9px}.welcome-panel{padding:22px}.welcome-panel h2{font-size:21px}.welcome-box{display:none}.form-grid{grid-template-columns:1fr}.form-section:last-child{grid-column:auto}.master-form{padding:12px}.form-actions{flex-direction:column;align-items:stretch}.form-actions>div{justify-content:flex-end}.field-grid,.form-section:last-child .field-grid{grid-template-columns:1fr 1fr}.search-bar{padding:13px}.search-bar input{width:100%}.login-page{padding:18px}.login-shell{grid-template-columns:1fr;max-width:450px}.login-story{padding:25px}.login-story h1{font-size:28px}.login-story h1 br{display:none}.login-story h1 br:after{content:' '}.box-art,.story-tags,.login-story p{display:none}.login-form{padding:28px}.login-form .brand{margin-bottom:25px}footer{padding:14px}.inline-actions{flex-wrap:wrap}}@media(max-width:420px){.field-grid,.form-section:last-child .field-grid{grid-template-columns:1fr}.stat-top span{display:none}.topbar{font-size:10px}}
/* Basic masters share one panel, with plain section headings and responsive fields. */
.single-box-form .form-grid{display:block}
.single-box-form .form-section{border:0;border-radius:0;padding:0;background:none}
.single-box-form .form-section+.form-section{margin-top:24px}
.single-box-form .section-heading{margin-bottom:12px}
.single-box-form .section-heading h2{margin:0;font-size:13px;color:var(--reg-ink)}
.single-box-form .field-grid,.single-box-form .form-section:last-child .field-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 18px}
.single-box-form .field.full{grid-column:span 2}
@media(max-width:1100px){.single-box-form .field-grid,.single-box-form .form-section:last-child .field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.single-box-form .field-grid,.single-box-form .form-section:last-child .field-grid{grid-template-columns:minmax(0,1fr)}.single-box-form .field.full{grid-column:auto}}

.single-box-form .form-actions{justify-content:flex-end}

.master-form .button,.login-form .button{font-size:14px}

.sidebar nav{overflow-y:auto;min-height:0}.sidebar-bottom{flex-shrink:0}.search-bar .button{font-size:14px}
.purchase-lines-heading{justify-content:space-between}.purchase-lines{min-width:1030px}.purchase-lines th,.purchase-lines td{padding:10px 8px;vertical-align:top}.purchase-lines th:first-child{width:28%}.purchase-lines td:nth-child(2){width:115px}.purchase-lines td:nth-child(4){width:125px}.purchase-lines td:nth-child(5),.purchase-lines td:nth-child(6){width:95px}.purchase-lines td span[data-valmsg-for]{display:block;color:#b71909;font-size:11px}.purchase-lines .line-remarks{margin-top:8px}.line-total{display:block;padding-top:10px;white-space:nowrap}.line-unit{display:block;padding-top:10px}.purchase-hint{font-size:12px;margin:12px 0 0}.purchase-totals,.purchase-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 18px;margin:24px 0 0}.purchase-totals>div{padding:12px 0;border-top:1px solid var(--reg-line)}.purchase-totals dt,.purchase-facts dt{font-size:14px;color:#69513e;font-weight:500}.purchase-totals dd,.purchase-facts dd{font-size:14px;margin:4px 0 0;overflow-wrap:anywhere}.purchase-totals .net-total dd{font-size:20px;font-weight:600;color:var(--reg-red)}.purchase-facts{margin:0 0 24px}.purchase-note{white-space:pre-wrap;font-size:14px;margin:18px 0 0}.button:disabled{opacity:.5;cursor:default}@media(max-width:1000px){.purchase-totals,.purchase-facts{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.purchase-totals,.purchase-facts{grid-template-columns:minmax(0,1fr)}.purchase-lines-heading{align-items:flex-start;gap:12px}}

.purchase-lines th{font-size:14px;font-weight:500;text-transform:none;letter-spacing:0}
.quotation-specs{display:grid;grid-template-columns:1fr;gap:5px;margin-top:8px}.quotation-specs label{font-size:14px;font-weight:500;color:#69513e}.quotation-specs input{margin-top:3px}.quotation-document .button{font-size:14px}.print-brand{display:none}@media print{.sidebar,.topbar,footer,.no-print,.notice{display:none!important}.workspace{margin:0}.workspace main{padding:0;max-width:none}.page-heading{display:block}.panel{box-shadow:none;border:0;border-radius:0}.master-form{padding:0}.quotation-document .print-brand{display:block;font-size:18px;font-weight:600;margin-bottom:18px}.table-wrap{overflow:visible}table{font-size:10px}th,td{padding:8px 5px}tr{break-inside:avoid}thead{display:table-header-group}.purchase-totals{grid-template-columns:repeat(4,1fr);break-inside:avoid}.purchase-facts{grid-template-columns:repeat(4,1fr)}body{background:#fff;color:#000}.purchase-note{break-inside:avoid}}
.page-heading .button{font-size:14px}.quotation-print-preview{background:#fff}.quotation-print-preview main{max-width:1100px;margin:32px auto;padding:24px}.quotation-print-preview .quotation-document{padding:0;border:0;box-shadow:none}.quotation-print-preview .print-brand{display:block;font-size:18px;font-weight:600;margin-bottom:18px}@media print{.quotation-print-preview main{margin:0;padding:0;max-width:none}}
