.resource-menu small{float:right;margin-left:12px;color:#8a94a6;font-size:11px}.quote-page{min-height:100vh;background:#f4f7fb}.quote-hero{padding:46px 0;background:linear-gradient(120deg,#061f49,#0b4fb3);color:#fff}.quote-hero-inner{display:flex;align-items:center;justify-content:space-between;gap:34px}.quote-kicker{font-size:12px;font-weight:900;letter-spacing:.13em;color:#b9d5ff}.quote-hero h1{margin:6px 0 8px;font-size:40px;line-height:1.2;letter-spacing:-1.5px}.quote-hero p{margin:0;color:#e3edfc;font-size:17px;font-weight:700}.privacy-chip{min-width:255px;padding:16px 18px;border:1px solid rgba(255,255,255,.23);border-radius:14px;background:rgba(255,255,255,.1)}.privacy-chip strong,.privacy-chip span{display:block}.privacy-chip span{margin-top:3px;color:#d8e6f9;font-size:13px}.quote-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:22px;padding-top:20px;padding-bottom:60px}.quote-editor{min-width:0}.tool-button{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 14px;border:1px solid #b8c8dd;border-radius:9px;background:#fff;color:#17345f;font:inherit;font-size:13px;font-weight:900;cursor:pointer}.tool-button:hover,.tool-button:focus-visible{border-color:#0b4fb3;background:#eef5ff;outline:none}.tool-button.primary{border-color:#06306f;background:#06306f;color:#fff}.file-button{position:relative}.file-button input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.save-status{min-height:18px;margin:0 4px 8px;color:#607089;font-size:12px;text-align:right}.save-status.success{color:#147a47}.save-status.error{color:#b42318}.editor-card,.side-card{margin-bottom:16px;border:1px solid #dce4ef;border-radius:16px;box-shadow:0 7px 22px rgba(15,35,68,.045)}.editor-card{padding:24px;background:#f8fbff}.side-card{background:#fff}.card-title{display:flex;align-items:flex-start;gap:13px;margin-bottom:20px}.card-title>span{display:grid;width:34px;height:34px;place-items:center;flex:0 0 auto;border-radius:9px;background:#e6f0fd;color:#0b4fb3;font-size:12px;font-weight:900}.card-title h2{margin:1px 0 2px;color:#0b234b;font-size:20px;line-height:1.25}.card-title p{margin:0;color:#68758a;font-size:13px}.action-title .mini-button{margin-left:auto}.mini-button{padding:7px 11px;border:1px solid #acc0dc;border-radius:8px;background:#fff;color:#0b4fb3;font-weight:900;cursor:pointer}.quote-fields{gap:14px}.quote-fields label,.amount-settings label{display:block;color:#34435a;font-size:13px;font-weight:900}.quote-fields input,.quote-fields select,.amount-settings input,.amount-settings select,.editor-card textarea{margin-top:6px;padding:11px 12px;border-color:#ccd7e6;background:#fff;font-size:14px}.items-table-wrap{overflow-x:auto}.items-table{width:100%;min-width:800px;border-collapse:collapse}.items-table th{padding:9px 7px;border-bottom:2px solid #b9c9de;color:#526176;font-size:12px;text-align:left;white-space:nowrap}.items-table th:nth-child(3),.items-table th:nth-child(4){width:72px}.items-table th:nth-child(5),.items-table th:nth-child(6){width:125px}.items-table th:last-child{width:38px}.items-table td{padding:6px 4px;border-bottom:1px solid #e6ebf2}.items-table input{min-width:0;padding:8px 7px;border:1px solid #d6dfeb;border-radius:6px;background:#fff;font-size:13px}.items-table .number{text-align:right}.item-total{display:block;padding:8px 5px;color:#1d3455;font-size:13px;font-weight:900;text-align:right;white-space:nowrap}.remove-item{width:30px;height:30px;border:0;border-radius:7px;background:#fff0f0;color:#b42318;font-weight:900;cursor:pointer}.amount-settings{display:grid;grid-template-columns:1fr 1.25fr 1fr;gap:16px;align-items:end;padding:17px;border-radius:12px;background:#f0f5fb}.amount-settings .check-label{display:flex;align-items:center;gap:8px;min-height:44px;padding-bottom:7px}.check-label input{width:18px;height:18px;margin:0;flex:0 0 auto}.amount-summary{max-width:470px;margin:20px 0 0 auto}.amount-summary div{display:flex;justify-content:space-between;gap:30px;padding:8px 4px;border-bottom:1px solid #e3e9f1}.amount-summary dt{color:#5e6b7e;font-weight:800}.amount-summary dd{margin:0;color:#172f53;font-weight:900}.amount-summary .grand{margin-top:5px;padding:13px 10px;border:0;border-radius:9px;background:#06306f;color:#fff}.amount-summary .grand dt,.amount-summary .grand dd{color:#fff;font-size:18px}.quote-side{min-width:0}.side-card{position:relative;padding:19px}.side-card h2{margin:0 0 7px;color:#0b234b;font-size:17px}.side-card p{margin:0 0 12px;color:#657287;font-size:13px}.file-actions-card{position:sticky;top:82px}.file-action-group{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:9px;border:1px solid #d8e2ee;border-radius:11px;background:#f8fafc}.file-action-group+.file-action-group{margin-top:10px}.file-action-group .tool-button{min-width:0;padding:9px 7px;font-size:12px}.file-actions-card .preview-action{width:100%;margin-top:10px;border-color:#8eacd0;background:#edf5ff;color:#0b4fb3}.calculator-link{display:flex;width:100%;align-items:center;justify-content:space-between;margin-top:8px;padding:11px 12px;border:1px solid #d4deeb;border-radius:9px;background:#f8fafc;color:#435169;text-align:left}.calculator-link small{color:#8a94a6}.notice-card ul{margin:0;padding-left:18px;color:#5e6b7e;font-size:13px}.notice-card li+li{margin-top:7px}@media(max-width:1050px){.quote-layout{grid-template-columns:1fr}.quote-side{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.side-card{margin:0}.file-actions-card{position:static}}@media(max-width:720px){.quote-hero{padding:32px 0}.quote-hero-inner{display:block}.quote-hero h1{font-size:30px}.quote-hero p{font-size:15px}.privacy-chip{margin-top:20px}.quote-layout{padding-top:14px}.tool-button{flex:1 1 calc(50% - 9px)}.editor-card{padding:18px}.card-title p{display:none}.action-title{flex-wrap:wrap}.action-title .mini-button{margin-left:47px}.amount-settings{grid-template-columns:1fr}.amount-settings .check-label{padding-bottom:0}.quote-side{grid-template-columns:1fr}.save-status{text-align:left}}
.material-card{border-color:#c8d8ed;background:linear-gradient(180deg,#fff 0%,#fbfdff 100%)}.material-title{align-items:center}.material-options{display:flex;align-items:center;gap:13px;margin-left:auto}.material-options .check-label{display:flex;align-items:center;gap:7px;color:#425169;font-size:12px;font-weight:900;white-space:nowrap}.material-options input{width:18px;height:18px;margin:0}.material-table-wrap{overflow-x:auto}.material-table{width:100%;min-width:1120px;border-collapse:separate;border-spacing:0}.material-table th{padding:10px 6px;border-top:1px solid #b7c8df;border-bottom:1px solid #b7c8df;background:#edf4fd;color:#2c466b;font-size:11px;line-height:1.35;text-align:center;white-space:nowrap}.material-table th:first-child{border-left:1px solid #b7c8df;border-radius:8px 0 0 0}.material-table th:last-child{border-right:1px solid #b7c8df;border-radius:0 8px 0 0}.material-table td{padding:6px 4px;border-bottom:1px solid #e0e7f0;background:#fff}.material-table td:first-child{width:34px;color:#6e7c90;font-size:12px;font-weight:900;text-align:center}.material-table input,.material-table select{min-width:0;padding:8px 6px;border:1px solid #d2dce9;border-radius:6px;background:#fff;font-size:12px}.material-table .material-name{width:150px}.material-table .material-grade{width:90px}.material-dims{display:grid;grid-template-columns:repeat(3,68px);gap:4px;align-items:center}.material-dims input{text-align:right}.material-qty,.material-price{width:72px;text-align:right}.material-weight,.material-cost{display:block;color:#19385f;font-size:12px;font-weight:900;text-align:right;white-space:nowrap}.material-summary{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-top:14px;padding:13px 15px;border:1px solid #d5e1ef;border-radius:10px;background:#f5f9fe}.material-summary>p{max-width:620px;margin:0;color:#68768a;font-size:12px}.material-summary>p strong{color:#315477}.material-summary dl{display:flex;gap:22px;margin:0}.material-summary dl div{text-align:right}.material-summary dt{color:#66758a;font-size:11px;font-weight:800}.material-summary dd{margin:1px 0 0;color:#0b315f;font-size:16px;font-weight:900}.calculator-link.active{border-color:#a8c3e6;background:#eef5ff;color:#0b4fb3;font-weight:900}.calculator-link.active small{color:#0b4fb3}@media(max-width:900px){.material-title{flex-wrap:wrap}.material-options{width:100%;margin-left:47px}.material-summary{display:block}.material-summary dl{justify-content:flex-end;margin-top:12px}}@media(max-width:720px){.material-options{display:grid;width:calc(100% - 47px);margin-left:47px}.material-summary dl{justify-content:space-between}.material-summary dl div{text-align:left}}
.material-title{flex-wrap:wrap}.material-options{width:calc(100% - 47px);justify-content:flex-end;margin:10px 0 0 47px}
.material-dialog{width:min(1400px,calc(100vw - 36px));max-width:none;height:min(860px,calc(100vh - 36px));max-height:none;margin:auto;padding:0;border:0;border-radius:20px;background:#f5f8fc;color:var(--ink);box-shadow:0 30px 90px rgba(4,23,53,.35);overflow:hidden}.material-dialog::backdrop{background:rgba(3,19,45,.68);backdrop-filter:blur(4px)}.material-dialog-shell{display:grid;height:100%;grid-template-rows:auto minmax(0,1fr) auto}.material-dialog-header{display:flex;align-items:flex-start;justify-content:space-between;gap:28px;padding:25px 28px;background:linear-gradient(120deg,#061f49,#0b4fb3);color:#fff}.material-dialog-header span{color:#bcd7fa;font-size:11px;font-weight:900;letter-spacing:.13em}.material-dialog-header h2{margin:3px 0 4px;font-size:28px;line-height:1.2}.material-dialog-header p{margin:0;color:#dbe9fa;font-size:13px;font-weight:700}.dialog-close{display:grid;width:40px;height:40px;place-items:center;flex:0 0 auto;border:1px solid rgba(255,255,255,.35);border-radius:11px;background:rgba(255,255,255,.1);color:#fff;font-size:26px;line-height:1;cursor:pointer}.dialog-close:hover,.dialog-close:focus-visible{background:rgba(255,255,255,.2);outline:none}.material-dialog-body{min-height:0;padding:22px 25px;overflow:auto}.material-dialog .material-table{min-width:1180px}.material-dialog-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 25px;border-top:1px solid #d4deeb;background:#fff}.material-dialog-footer .check-label{display:flex;align-items:center;gap:8px;color:#34465f;font-size:13px;font-weight:900}.material-dialog-footer .check-label input{width:18px;height:18px;margin:0}.material-dialog-footer>div{display:flex;gap:9px}.material-dialog[open]{animation:dialog-in .18s ease-out}@keyframes dialog-in{from{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:none}}@media(max-width:720px){.material-dialog{width:calc(100vw - 16px);height:calc(100vh - 16px);border-radius:14px}.material-dialog-header{padding:19px}.material-dialog-header h2{font-size:23px}.material-dialog-header p{display:none}.material-dialog-body{padding:15px}.material-dialog-footer{display:grid;padding:13px 15px}.material-dialog-footer>div{display:grid;grid-template-columns:1fr 1.5fr}.material-dialog-footer .tool-button{width:100%}}
@media print{.topbar,.quote-hero,.editor-toolbar,.save-status,.quote-side,.footer{display:none!important}.quote-layout{display:block;padding:0}.editor-card{box-shadow:none}.quote-page{background:#fff}}

body:has(.pdf-preview-dialog[open]){overflow:hidden}.pdf-preview-dialog{width:calc(100vw - 20px);max-width:1540px;height:calc(100vh - 20px);max-height:none;margin:auto;padding:0;border:0;border-radius:18px;background:#e9eef4;box-shadow:0 30px 90px rgba(4,23,53,.38);overflow:hidden}.pdf-preview-dialog::backdrop{background:rgba(3,19,45,.7);backdrop-filter:blur(4px)}.pdf-preview-dialog>header{display:flex;height:72px;box-sizing:border-box;align-items:center;justify-content:space-between;padding:12px 22px;background:#102c4e;color:#fff}.pdf-preview-dialog>header span{color:#aac9ec;font-size:10px;font-weight:900;letter-spacing:.13em}.pdf-preview-dialog>header h2{margin:2px 0 0;font-size:20px}.pdf-preview-pages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:18px;height:calc(100% - 72px);box-sizing:border-box;padding:14px 18px 18px;overflow:hidden}.pdf-preview-page{display:flex;min-width:0;min-height:0;flex-direction:column;margin:0}.pdf-preview-page figcaption{flex:0 0 auto;margin-bottom:6px;color:#506176;font-size:11px;font-weight:900;text-align:center}.pdf-preview-page img{display:block;width:100%;height:calc(100% - 24px);min-height:0;object-fit:contain;background:transparent;filter:drop-shadow(0 6px 15px rgba(21,39,64,.18))}@media(max-width:800px){.pdf-preview-dialog{width:calc(100vw - 10px);height:calc(100vh - 10px);border-radius:12px}.pdf-preview-pages{grid-template-columns:1fr;padding:10px;overflow:auto}.pdf-preview-page{min-height:calc(100vh - 100px)}}

.material-table-actions{display:flex;justify-content:flex-end;gap:8px;margin:0 0 12px}.mini-button.primary{border-color:#0b4fb3;background:#0b4fb3;color:#fff}.material-table th:last-child,.material-table td:last-child{width:42px;text-align:center}.material-table .remove-material{width:30px;height:30px;border:0;border-radius:7px;background:#fff0f0;color:#b42318;font-size:17px;font-weight:900;cursor:pointer}.material-table .remove-material:hover,.material-table .remove-material:focus-visible{background:#ffe2e2;outline:none}
