.quotation-dialog{width:calc(100vw - 32px);max-width:1500px;height:calc(100dvh - 32px);max-height:none;border:0;border-radius:13px;padding:0;color:#213a53;background:#edf2f7;box-shadow:0 20px 90px #08214255}.quotation-dialog[open]{display:flex;flex-direction:column}.quotation-dialog::backdrop{background:#102a4888}.quotation-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#fff;border-bottom:1px solid #dce5ef;padding:16px 20px}.quotation-heading span{font-size:10px;color:#73889d}.quotation-heading h2{font-size:20px;margin:4px 0 0}.quotation-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.quotation-actions .btn{font-size:11px;padding:10px 13px}.quotation-dialog #quotation-status{margin:0;padding:8px 20px;background:#fff;font-size:11px;line-height:1.6;color:#617c95;border-bottom:1px solid #dfe7f0}.quotation-dialog #quotation-status.database-error{color:#b42318}.quotation-layout{flex:1;min-height:0;display:grid;grid-template-columns:290px minmax(0,1fr)}.quotation-layout>aside{background:#fff;border-right:1px solid #dce5ef;padding:16px;overflow:auto}.quotation-layout aside summary{font-size:12px;font-weight:700;cursor:pointer;margin-bottom:14px}.quotation-layout aside form label{display:block;font-size:11px;color:#59728a;margin:12px 0}.quotation-layout aside input,.quotation-layout aside textarea{display:block;margin-top:5px;width:100%;box-sizing:border-box;border:1px solid #cddbea;border-radius:6px;padding:8px;font:12px/1.5 system-ui;color:#274a68;background:#fff}.quotation-layout aside textarea{resize:vertical}.quotation-layout aside .btn{font-size:11px;width:100%;padding:9px}.quotation-layout aside p{font-size:10px;line-height:1.7;color:#7b8da0}.quotation-identity-button{background:none;border:0;color:#3c76ac;font:11px system-ui;text-align:left;padding:10px 0;cursor:pointer}.quotation-preview{overflow:auto;padding:22px;min-width:0}.quotation-preview #quotation-validation:empty{display:none}.quotation-preview #quotation-validation p{background:#fff7e8;border:1px solid #f0dbb2;color:#966623;font-size:12px;padding:12px;border-radius:6px;max-width:794px;margin:0 auto 14px}.quotation-paper{box-sizing:border-box;width:794px;min-height:1123px;padding:48px 45px;background:#fff;box-shadow:0 3px 20px #18344f14;margin:0 auto;font:12px/1.55 Arial,system-ui,sans-serif;color:#183654;letter-spacing:0}.quotation-paper header{display:flex;gap:24px;align-items:start;justify-content:space-between;border-bottom:2px solid #183654;padding:0 0 20px;margin-bottom:23px;background:none;color:inherit}.quotation-provider{width:60%;min-width:0}.quotation-provider h2{font-size:19px;line-height:1.35;margin:0 0 7px;overflow-wrap:anywhere}.quotation-provider p{font-size:10px;margin:4px 0;color:#65798d;white-space:normal;overflow-wrap:anywhere}.quotation-document-title{width:40%;text-align:right;min-width:0}.quotation-document-title h1{font-size:17px;line-height:1.35;margin:0;color:#183654}.quotation-document-title p{font-size:10px;margin:7px 0;color:#65798d;overflow-wrap:anywhere}.quotation-paper dl{display:grid;grid-template-columns:76px minmax(0,1fr);gap:6px 9px;margin:0 0 22px}.quotation-paper dt{font-size:11px;color:#6b7f93}.quotation-paper dd{font-size:12px;margin:0;overflow-wrap:anywhere}.quotation-paper dd::before{content:':';display:inline-block;margin-right:9px}.quotation-table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:10px}.quotation-table th,.quotation-table td{padding:9px 6px;border:1px solid #dce5ef;vertical-align:middle;overflow-wrap:anywhere}.quotation-table th{background:#183654;color:#fff;font-size:10px;text-align:left;font-weight:700;line-height:1.5}.quotation-table td:first-child,.quotation-table th:first-child,.quotation-table td:nth-child(5),.quotation-table th:nth-child(5){text-align:center}.quotation-table th:nth-child(4),.quotation-table th:nth-child(6),.quotation-table th:nth-child(7),.quotation-table .num{text-align:right;font-variant-numeric:tabular-nums}.quotation-table .quotation-group{background:#e6eef8;font-weight:700}.quotation-table .quotation-subtotal{background:#f5f8fc;font-weight:700}.quotation-table .quotation-subtotal td:first-child{text-align:right}.quotation-table tfoot td{background:#183654;color:#fff;font-weight:700;font-size:12px}.quotation-table tfoot td:first-child{text-align:right}.quotation-words{font-size:11px;line-height:1.8;color:#5c738b;margin:17px 0}.quotation-notes{font-size:11px;line-height:1.8;color:#5c738b;margin-top:18px;overflow-wrap:anywhere}.quotation-notes p{margin:3px 0;white-space:normal}.quotation-signature{width:42%;margin:29px 0 0 auto;text-align:center;break-inside:avoid}.quotation-signature p{font-size:12px;margin:0 0 64px}.quotation-signature strong{font-size:12px;display:block;overflow-wrap:anywhere}.shell-export .quotation-data-exports{border-top:1px solid #e3ebf4;padding-top:8px}.shell-export .quotation-data-exports>summary{font-size:10px;color:#73889c;cursor:pointer;margin-bottom:7px}.shell-export .quotation-data-exports>div{display:flex;flex-direction:column;gap:7px}.shell-export #export-rab{background:#1d65d7;color:white}
@media(max-width:1100px){.quotation-layout{grid-template-columns:250px minmax(0,1fr)}.quotation-preview{padding:14px}}
@media(max-width:900px){.quotation-dialog{width:100vw;height:100dvh;border-radius:0}.quotation-heading{align-items:start;flex-direction:column;padding:12px 14px;gap:10px}.quotation-heading h2{font-size:18px}.quotation-actions .btn{padding:8px 10px;font-size:10px}.quotation-layout{display:block;overflow:auto}.quotation-layout>aside{overflow:visible;border:0;border-bottom:1px solid #dce5ef;padding:14px}.quotation-layout aside summary{margin:0}.quotation-layout aside form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 12px}.quotation-layout aside form label:nth-child(2),.quotation-layout aside form label:last-child{grid-column:1/-1}.quotation-layout aside .btn{width:auto}.quotation-preview{overflow:auto;padding:14px 10px}.quotation-paper{margin:0}.quotation-dialog #quotation-status{padding:7px 14px;font-size:10px}.quotation-preview #quotation-validation p{font-size:11px}}
@page quotation{size:A4 portrait;margin:12mm}


.quotation-table tbody tr:not(.quotation-group):not(.quotation-subtotal)>td:nth-child(2){padding-left:11px}

.quotation-paper .quotation-table thead th{ text-align:center;vertical-align:middle }
.quotation-table [contenteditable]:focus{outline:2px solid #1d65d7;outline-offset:-2px;background:#f0f6ff}

.quotation-breakdown{margin-top:24px}.quotation-logo{display:block;max-width:140px;max-height:65px;object-fit:contain;object-position:left;margin-bottom:12px}.quotation-summary tbody td:nth-child(2){padding-left:6px!important}.quotation-paper h3{font-size:13px;margin:0 0 12px}


.quotation-paper header{gap:20px;padding-bottom:18px;margin-bottom:20px;align-items:flex-start}.quotation-provider{display:flex;align-items:flex-start;gap:14px;width:66%}.quotation-company-copy{min-width:0;flex:1}.quotation-provider .quotation-logo{flex:0 0 64px;width:64px;max-height:70px;margin:0}.quotation-provider h2{font-size:16px;margin:0 0 6px}.quotation-provider p{font-size:10px;line-height:1.6}.quotation-document-title{width:34%;padding-top:2px}.quotation-document-title h1{font-size:15px}.quotation-document-title p{line-height:1.5}.quotation-words{background:#f5f8fc;border-left:3px solid #dce5ef;padding:10px 12px;margin:14px 0 0;font-style:italic}.quotation-terms{display:grid;grid-template-columns:minmax(0,1fr) 200px;gap:24px;margin-top:22px;break-inside:avoid}.quotation-terms .quotation-notes{margin:0}.quotation-terms .quotation-notes p{margin:6px 0;line-height:1.9}.quotation-terms .quotation-signature{width:auto;margin:0;text-align:center;padding-top:0}.quotation-terms .quotation-signature p{margin:0 0 48px}.quotation-terms .quotation-signature strong{text-decoration:underline;text-underline-offset:4px}


.quotation-provider .quotation-logo{width:100px;flex-basis:100px;max-height:100px}.quotation-terms .quotation-notes p{padding-left:14px}.quotation-signature-role{display:block;margin-top:6px;font-size:11px;line-height:1.5;color:#65798d;overflow-wrap:anywhere}


@media print{
  html:has(body.quotation-printing){overflow:visible!important;background:#fff}
  body.quotation-printing{page:quotation;margin:0!important;padding:0!important;background:#fff!important;overflow:visible!important;width:auto!important;height:auto!important}
  body.quotation-printing>*:not(#quotation-dialog){display:none!important}
  body.quotation-printing #quotation-dialog{display:block!important;position:static;inset:auto;margin:0;padding:0;width:100%;max-width:none;height:auto;max-height:none;border:0;border-radius:0;box-shadow:none;overflow:visible;background:#fff}
  body.quotation-printing #quotation-dialog::backdrop{display:none}
  body.quotation-printing .quotation-heading,body.quotation-printing #quotation-status,body.quotation-printing aside,body.quotation-printing #quotation-validation{display:none!important}
  body.quotation-printing .quotation-layout,body.quotation-printing .quotation-preview{display:block;overflow:visible;padding:0;margin:0}
  body.quotation-printing .quotation-paper{page:quotation;width:100%;min-height:0;margin:0;padding:0;box-shadow:none}
  /* Restore the letterhead hidden by the application's older global print rules. */
  body.quotation-printing .quotation-paper header{display:flex!important;break-inside:avoid}
  body.quotation-printing .quotation-breakdown{break-before:page;margin-top:0}
  body.quotation-printing .quotation-paper,body.quotation-printing .quotation-paper *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
  body.quotation-printing .quotation-table thead{display:table-header-group}
  body.quotation-printing .quotation-table tfoot{display:table-row-group}
  body.quotation-printing .quotation-table tr,body.quotation-printing .quotation-terms,body.quotation-printing .quotation-words{break-inside:avoid}
  body.quotation-printing [contenteditable]{outline:0!important;caret-color:transparent}
}
