
:root{--navy:#172554;--red:#d8062a;--gold:#edb72c;--text:#182237;--muted:#657086;--line:#dfe4ed;--pale:#f4f6fa;--bluewash:#edf2fd;--white:#fff;--green:#14795a;--danger:#b42334}*{box-sizing:border-box}body{margin:0;color:var(--text);background:var(--pale);font-family:Inter,'Segoe UI',Arial,sans-serif;font-size:14px;line-height:1.5}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible{outline:3px solid #e8ad1e;outline-offset:3px}input:focus,select:focus,textarea:focus{outline:2px solid #5676c6;outline-offset:1px}button{border:1px solid var(--line);background:#fff;color:var(--text);border-radius:7px;padding:9px 13px;font-weight:600}button:hover:not(:disabled){background:#f2f4fa}.primary{background:var(--navy);border-color:var(--navy);color:white}.primary:hover:not(:disabled){background:#263b7e}.red{color:var(--danger)}.quiet{border:0;background:transparent;padding:6px 8px}.small{font-size:12px}.muted{color:var(--muted)}h1,h2,h3,p{margin-top:0}h1{font-size:28px;line-height:1.2;margin-bottom:8px;font-weight:650;letter-spacing:-.6px}h2{font-size:18px;margin-bottom:16px;letter-spacing:-.2px}h3{font-size:14px;margin-bottom:12px}a{color:var(--navy)}.topbar{height:91px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:12px 30px;gap:20px}.logos{display:flex;align-items:center;gap:22px}.logos img:first-child{width:139px;height:62px;object-fit:contain}.logos img:nth-of-type(2){width:64px;height:64px;object-fit:contain}.logo-divider{height:38px;border-left:1px solid var(--line)}.product-name{padding-left:22px;border-left:1px solid var(--line);color:var(--muted);font-size:13px}.product-name strong{display:block;color:var(--navy);font-size:15px}.user-control{display:flex;align-items:center;gap:10px}.avatar{border-radius:50%;background:var(--bluewash);color:var(--navy);width:37px;height:37px;display:grid;place-items:center;font-weight:700}.user-control label{display:grid;font-size:11px;color:var(--muted);gap:1px}.user-control select{border:0;background:transparent;font-weight:600;font-size:13px;min-height:26px;color:var(--text)}.shell{display:grid;grid-template-columns:213px minmax(0,1fr);min-height:calc(100vh - 91px)}aside{background:#fff;border-right:1px solid var(--line);padding:27px 15px}.nav-label{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:1.6px;padding:0 13px;margin-bottom:13px}nav{display:grid;gap:5px}nav button{text-align:left;border:0;background:transparent;font-weight:500;padding:11px 14px;color:#526079}nav button.active{background:var(--bluewash);color:var(--navy);font-weight:650;border-left:3px solid var(--red);padding-left:11px}.sidebar-note{margin:34px 12px 0;padding-top:16px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}.sidebar-note strong{color:var(--navy);display:block;margin-bottom:5px}main{padding:23px 30px 45px;min-width:0;max-width:1510px;width:100%;margin:0 auto;align-self:start}.demo-banner{background:#fff8e8;color:#77530d;border:1px solid #f0dda9;padding:10px 14px;border-radius:7px;font-size:12px;margin-bottom:23px;display:flex;gap:10px;align-items:center}.demo-banner strong{white-space:nowrap}.heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}.heading p{margin-bottom:0;color:var(--muted);font-size:13px}.actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.panel{background:#fff;border:1px solid var(--line);border-radius:10px;padding:22px;margin-bottom:19px}.panel-heading{display:flex;justify-content:space-between;gap:15px;align-items:flex-start}.eyebrow{text-transform:uppercase;letter-spacing:1.3px;font-size:10px;color:var(--muted);margin-bottom:6px}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:21px}.stat{padding:17px 20px;background:white;border:1px solid var(--line);border-radius:9px;display:flex;justify-content:space-between;align-items:center}.stat label{display:block;font-size:12px;color:var(--muted)}.stat b{font-size:25px;font-weight:650;color:var(--navy)}.stat .stat-mark{width:4px;height:30px;border-radius:3px;background:var(--navy)}.stat:nth-child(2) .stat-mark{background:var(--gold)}.stat:nth-child(3) .stat-mark{background:var(--green)}.filters{display:flex;gap:10px;align-items:center;margin-bottom:18px;flex-wrap:wrap}.filters input{flex:1;min-width:190px}.filters select{max-width:205px}.field{display:grid;gap:6px;min-width:0}.field label{font-size:12px;font-weight:600;color:#43506a}.field small{font-size:11px;color:var(--muted)}input,select,textarea{width:100%;border:1px solid #ccd4e1;border-radius:6px;padding:9px 11px;background:#fff;color:var(--text);min-height:39px}textarea{resize:vertical;min-height:75px}input[type=checkbox]{width:auto;min-height:auto}.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.full{grid-column:1/-1}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;text-align:left;font-size:12px}th{font-size:10px;letter-spacing:.4px;color:var(--muted);font-weight:650;background:#f8f9fc;padding:12px 10px;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:15px 10px;border-bottom:1px solid #edf0f6;vertical-align:middle}tbody tr:last-child td{border:0}.num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.nowrap{white-space:nowrap}.table-main{font-weight:600;color:var(--navy)}.table-sub{font-size:11px;color:var(--muted);margin-top:3px}.badge{display:inline-block;padding:3px 8px;background:#edf0f5;color:#59627a;font-size:10px;font-weight:600;border-radius:5px;white-space:nowrap}.badge.sent{background:#edf2ff;color:#294ba4}.badge.success{background:#e8f6ee;color:#146a45}.badge.warning{background:#fff4da;color:#8c5c0f}.badge.closed{background:#fdecef;color:#a33649}.empty{padding:34px;text-align:center;color:var(--muted)}.empty strong{display:block;color:var(--text);margin-bottom:6px}.text-button{padding:4px 7px;border:0;background:transparent;font-size:12px;color:var(--navy)}.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:20px;align-items:start}.editor-summary{position:sticky;top:20px}.summary-row{display:flex;justify-content:space-between;gap:10px;font-size:12px;margin-bottom:11px}.summary-total{margin:17px -5px;padding:14px 5px;border-top:2px solid var(--navy);font-size:18px;color:var(--navy);font-weight:700;display:flex;justify-content:space-between}.editor-summary .actions{display:grid}.editor-summary button{width:100%}.line-item{padding:17px 0;border-top:1px solid var(--line)}.line-item:first-child{border-top:0;padding-top:0}.item-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.item-header b{font-size:12px;color:var(--navy)}.item-grid{display:grid;grid-template-columns:minmax(0,1fr) 85px 85px 115px;gap:10px}.item-grid textarea{min-height:67px;font-size:12px}.item-grid input,.item-grid select{padding:8px;font-size:12px}.item-sum{text-align:right;font-size:12px;margin:9px 0 0;color:var(--muted)}.form-message{font-size:12px;color:var(--danger);margin-bottom:12px;min-height:0}.hint{font-size:12px;padding:11px 13px;background:#f5f7fc;color:var(--muted);border-radius:6px;margin:14px 0 0}.product-card{border:1px solid var(--line);border-radius:8px;padding:19px;display:flex;gap:18px;align-items:flex-start;margin-bottom:12px}.product-card .sku{color:var(--muted);font-size:11px}.product-card h3{margin:4px 0 7px;font-size:16px}.product-card .details{flex:1}.product-card p{font-size:12px;color:var(--muted);margin-bottom:8px;max-width:600px}.product-card .price{font-size:19px;color:var(--navy);font-weight:650}.team-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.person{display:flex;align-items:center;gap:14px;border:1px solid var(--line);border-radius:8px;padding:20px}.person .avatar{width:44px;height:44px}.person strong{display:block}.person p{margin:2px 0 0;font-size:12px;color:var(--muted)}dialog{border:0;border-radius:12px;box-shadow:0 20px 90px #17255435;padding:0;width:min(660px,calc(100% - 32px));max-height:90vh;color:var(--text)}dialog::backdrop{background:#17255466}.dialog-head{padding:21px 24px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.dialog-head h2{margin:0}.dialog-content{padding:24px}.dialog-foot{padding:16px 24px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:10px}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--navy);color:white;border-radius:7px;padding:12px 20px;z-index:20;font-size:13px;max-width:calc(100% - 30px);box-shadow:0 4px 22px #15234a30}.audit-entry{padding:12px 0;border-bottom:1px solid var(--line);font-size:12px}.audit-entry time{display:block;color:var(--muted);font-size:11px;margin-bottom:3px}.preview-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:17px}.quote-paper{background:white;border:1px solid var(--line);box-shadow:0 4px 24px #17255408;padding:35px 39px;max-width:850px;margin:0 auto;color:#1d2638;font-family:Arial,sans-serif;font-size:11px;line-height:1.5}.q-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;border-bottom:2px solid var(--red);padding-bottom:17px;margin-bottom:20px}.q-logos{display:flex;align-items:center;gap:22px}.q-logos img:first-child{width:140px;height:70px;object-fit:contain}.q-logos img:last-child{width:70px;height:70px;object-fit:contain}.q-head-right{text-align:right}.q-head h2{font-size:20px;color:var(--navy);margin:0 0 4px}.q-folio{color:var(--red);font-size:13px;font-weight:700}.q-brands{font-size:9px;color:#657086;margin-top:10px}.q-client{display:flex;justify-content:space-between;gap:20px;margin:0 0 20px}.q-client strong{font-size:16px;color:var(--navy)}.q-title{background:#eef2fc;padding:11px 13px;color:var(--navy);font-size:15px;font-weight:700;margin-bottom:0}.q-items{font-size:10px;table-layout:fixed}.q-items th{background:var(--navy);color:#fff;font-size:9px;padding:10px 6px;white-space:normal}.q-items td{padding:13px 6px;vertical-align:top;overflow-wrap:anywhere}.q-items tbody tr:nth-child(odd){background:#f5f7fe}.q-items td.num{white-space:normal;overflow-wrap:normal}.q-lower{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(240px,1fr);gap:23px;margin:22px 0}.q-scope{font-size:10px;white-space:pre-line}.q-scope h3{font-size:12px;color:var(--navy);margin-bottom:9px}.q-totals{font-size:10px}.q-totals div{display:flex;justify-content:space-between;gap:10px;padding:5px 7px}.q-totals .total{background:var(--navy);color:white;font-size:13px;font-weight:700;padding:8px;margin:5px 0}.q-conditions h3{background:var(--navy);color:white;padding:8px 10px;font-size:11px;margin-bottom:9px}.q-condition{display:grid;grid-template-columns:120px minmax(0,1fr);gap:15px;padding:6px 0;font-size:10px;break-inside:avoid}.q-condition b{color:var(--navy)}.q-condition span{white-space:pre-line}.q-footer{border-top:1px solid var(--red);padding-top:12px;margin-top:23px;font-size:9px;color:#53617a}.q-footer strong{color:var(--navy)}.q-draft{margin-top:14px;font-size:9px;color:#996116}.history-link{display:block;margin:6px 0;color:var(--navy);font-size:12px}.t-right{text-align:right}#print-layer{display:none}[hidden]{display:none!important}
@media(max-width:1100px){main{padding:20px}.editor-layout{grid-template-columns:minmax(0,1fr) 225px}.item-grid{grid-template-columns:minmax(0,1fr) repeat(2,75px)}.item-grid .unit-price{grid-column:2/4}.product-name{display:none}.quote-paper{padding:28px 25px}}@media(max-width:850px){.topbar{padding:10px 18px}.product-name{display:none}.shell{display:block}.shell>aside{padding:10px;border-right:0;border-bottom:1px solid var(--line)}nav{display:flex;overflow-x:auto;gap:5px}nav button{white-space:nowrap;padding:9px 12px}nav button.active{padding-left:12px;border-left:0;border-bottom:2px solid var(--red)}.nav-label,.sidebar-note{display:none}.editor-layout{display:block}.editor-summary{position:static}.editor-summary .actions{display:flex;flex-wrap:wrap}.editor-summary button{width:auto;flex:1}.team-list{grid-template-columns:1fr 1fr}.logos{gap:12px}.logos img:first-child{width:120px}.logos img:nth-of-type(2){width:55px;height:55px}.quote-paper{min-width:0}.q-lower{grid-template-columns:1fr 1fr}.stats{gap:9px}.stat{padding:14px}.stat b{font-size:22px}}@media(max-width:580px){main{padding:16px 12px 30px}.topbar{height:auto;min-height:79px;padding:9px 12px}.logos{gap:8px}.logos img:first-child{width:95px;height:48px}.logos img:nth-of-type(2){width:45px;height:45px}.logo-divider{height:27px}.user-control{gap:5px}.user-control .avatar{display:none}.user-control select{max-width:115px;font-size:12px}h1{font-size:24px}.heading{align-items:flex-start;flex-wrap:wrap;gap:14px;margin-bottom:20px}.heading .actions{width:100%}.demo-banner{display:block;font-size:11px}.demo-banner strong{display:block;margin-bottom:2px}.stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.stat{padding:11px 9px}.stat label{font-size:10px}.stat b{font-size:22px}.stat-mark{display:none}.panel{padding:16px}.grid2,.grid3{grid-template-columns:1fr}.team-list{grid-template-columns:1fr}.item-grid{grid-template-columns:1fr 1fr}.item-grid .description{grid-column:1/-1}.item-grid .unit-price{grid-column:auto}.product-card{display:block}.product-card .price{margin:12px 0}.preview-toolbar{flex-wrap:wrap}.quote-paper{padding:18px 14px;font-size:10px}.q-head{gap:9px}.q-logos{gap:10px}.q-logos img:first-child{width:82px;height:45px}.q-logos img:last-child{width:45px;height:45px}.q-head h2{font-size:14px}.q-head-right{font-size:9px}.q-folio{font-size:10px}.q-brands{font-size:8px}.q-client strong{font-size:13px}.q-title{font-size:12px}.q-items,.q-items th{font-size:8px}.q-items th,.q-items td{padding:7px 4px}.q-lower{grid-template-columns:1fr;gap:15px}.q-condition{grid-template-columns:85px 1fr;gap:9px}.q-totals{font-size:10px}.q-condition,.q-scope{font-size:9px}.preview-toolbar button{padding:8px 10px;font-size:12px}}
@page{size:letter;margin:12mm 11mm}@media print{body{background:white}.topbar,.shell,.toast,dialog{display:none!important}#print-layer{display:block}.quote-paper{margin:0;max-width:none;border:0;box-shadow:none;padding:0;font-size:10px;line-height:1.4}.q-head{margin-bottom:14px;padding-bottom:12px}.q-logos img:first-child{width:128px;height:60px}.q-logos img:last-child{width:60px;height:60px}.q-client{margin-bottom:14px}.q-title{font-size:14px;padding:9px 11px}.q-items{font-size:9px}.q-items th{font-size:8px}.q-items th,.q-items td{padding:8px 6px}.q-lower{margin:16px 0;gap:20px}.q-scope,.q-totals,.q-condition{font-size:9px}.q-conditions h3{font-size:10px}.q-condition{padding:5px 0}.q-footer{font-size:8px;margin-top:16px}.q-draft{font-size:8px}.q-head,.q-lower,.q-footer,.q-condition{break-inside:avoid}thead{display:table-header-group}tr{break-inside:avoid}*{-webkit-print-color-adjust:exact;print-color-adjust:exact}}

.auth-wrap{max-width:440px;margin:65px auto;padding:0 18px}.auth-wrap h1{font-size:25px}.auth-wrap .panel{padding:28px}.auth-wrap .logos{margin-bottom:28px;justify-content:center}.auth-wrap .field{margin:15px 0}.auth-wrap button[type=submit]{width:100%;margin-top:10px}.install-wrap{max-width:850px;margin:35px auto;padding:0 20px 45px}.install-logos{margin-bottom:24px}.alert-error{padding:13px 16px;background:#fdecef;border:1px solid #f1c9d1;color:#9d2437;border-radius:7px;margin-bottom:18px}.button-link{display:inline-block;text-decoration:none;padding:10px 15px;border-radius:6px}.server-alert{padding:11px 15px;background:#fff5dd;border:1px solid #f0d99b;border-radius:6px;margin-bottom:18px;font-size:12px}.user-name{font-weight:650;font-size:13px}.role-label{font-size:11px;color:#657086}.user-actions{display:flex;align-items:center;gap:6px}.auth-foot{font-size:12px;color:#657086;text-align:center}.team-actions{margin-top:10px}.user-control .quiet{font-size:12px}.pending-pdf{display:block;color:#9d6507;font-size:10px;margin-top:4px}
@media(max-width:580px){.topbar .user-actions{display:grid;gap:0}.user-control{gap:6px}.user-control .avatar{display:none}.role-label{display:none}.user-control .quiet{padding:4px;font-size:11px}.user-name{font-size:12px}.topbar .logos img:first-child{width:82px}.topbar .logos img:nth-of-type(2){width:40px;height:40px}.topbar .product-name{display:none}}
