*{box-sizing:border-box}body{margin:0;background:#f3f6fa;color:#1b3047;font:14px/1.55 Arial,sans-serif}a{color:#14649a;text-decoration:none}button,.button{display:inline-block;border:1px solid #cbd8e5;border-radius:7px;background:white;padding:10px 16px;color:#244760;font:inherit;cursor:pointer}.primary{background:#165f96;color:white;border-color:#165f96}button:hover,.button:hover{filter:brightness(.96)}.top{background:white;display:flex;align-items:center;gap:28px;padding:20px 5%;border-bottom:1px solid #dfe7f0}.top img{width:210px;display:block}.top span{color:#667b8d;flex:1}.top .button{white-space:nowrap}main{max-width:1400px;margin:35px auto;padding:0 30px}.page-title{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}h1{font-size:32px;line-height:1.2;margin:6px 0 12px}h2{font-size:18px;margin:0 0 22px}h3{margin:8px 0}p{margin:8px 0}.eyebrow{font-size:11px;letter-spacing:1.5px;color:#2676a9;font-weight:bold}.card{background:white;border:1px solid #dfe7ef;border-radius:12px;padding:26px;margin-bottom:22px;box-shadow:0 3px 15px #23497005}.narrow{max-width:650px;margin:60px auto}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.stats strong{display:block;font-size:20px;margin-top:8px}.stats small{color:#667c90}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}label{display:block;font-size:13px;font-weight:bold}input,textarea,select{display:block;width:100%;border:1px solid #cbd7e3;border-radius:6px;padding:10px;font:14px Arial;color:#233c53;background:#fff;margin-top:7px}input:focus,textarea:focus,select:focus{outline:2px solid #8bc5ee;outline-offset:1px}textarea{resize:vertical}details summary{cursor:pointer;font-weight:bold}details .grid{margin-top:24px}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.section-title h2{margin:0}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left}th{background:#edf3f8;color:#536b80;font-size:12px;padding:13px 10px}td{border-bottom:1px solid #e5ecf2;padding:13px 10px;vertical-align:top}td small{display:block;color:#708294}.actions{white-space:nowrap}.actions a{margin-right:12px}.badge{background:#eaf2fa;border-radius:15px;padding:5px 10px;font-size:12px}.empty{text-align:center;padding:55px;color:#697e90}.search{display:flex;gap:10px;margin-bottom:20px}.search input{margin:0;max-width:500px}.editor{min-width:900px}.editor th:nth-child(2){width:17%}.editor th:nth-child(3){width:39%}.editor th:nth-child(4){width:9%}.editor th:nth-child(5){width:13%}.editor input,.editor textarea{margin:0}.remove{padding:4px 9px;color:#b74444}.num{text-align:right;white-space:nowrap}.pricing{display:flex;justify-content:flex-end;gap:20px;margin-top:24px}.pricing>label{max-width:170px}.summary{width:280px}.summary p,.totals p{display:flex;justify-content:space-between;gap:20px}.grand{border-top:1px solid #cad9e6;padding-top:12px;font-size:18px;color:#155f96}.hint{color:#6c8192;font-size:12px;margin-top:20px}.save-bar{display:flex;align-items:center;gap:12px;background:#e5edf5;padding:20px;border-radius:10px}.save-bar span{flex:1;color:#526d82}.alert{background:#fff1ef;color:#a52e22;padding:15px}.success{background:#eaf6ef;color:#187342;padding:15px}.app-footer{text-align:center;color:#8496a6;padding:24px}.print-tools{display:flex;align-items:center;gap:16px;margin-bottom:25px}.print-tools span{color:#6b7d90;font-size:12px}.paper{max-width:1000px;margin:auto;background:white;padding:40px;border:1px solid #dce5ec}.letterhead{display:flex;justify-content:space-between;align-items:center;gap:30px;border-bottom:3px solid #1c6ca5;padding-bottom:20px}.letterhead img{width:300px;max-width:40%}.letterhead>div{max-width:50%;font-size:11px}.paper h1{font-size:25px;color:#185e90;margin-top:25px}.quote-meta{display:flex;justify-content:space-between;gap:25px;margin-bottom:25px;font-size:12px}.quote-meta>div{max-width:52%}dl{display:grid;grid-template-columns:90px 1fr;gap:6px 12px;max-width:45%;align-content:start}dt{font-weight:bold}dd{margin:0;overflow-wrap:anywhere}.quote-table{font-size:11px;table-layout:fixed}.quote-table th{background:#195f91;color:white;padding:9px 6px;font-size:10px}.quote-table td{border:1px solid #dae3eb;padding:10px 6px;overflow-wrap:anywhere}.quote-table th:nth-child(1){width:6%}.quote-table th:nth-child(2){width:17%}.quote-table th:nth-child(3){width:42%}.quote-table th:nth-child(4){width:6%}.quote-table th:nth-child(5){width:14%}.quote-table th:nth-child(6){width:15%}.totals{margin:18px 0 25px auto;width:330px;font-size:12px}.terms{font-size:12px;border-top:1px solid #d5e0e9;padding-top:14px}.terms h3{font-size:13px}.signature{margin-top:30px;font-size:12px;break-inside:avoid}.paper-footer{font-size:10px;text-align:center;border-top:1px solid #dde5ec;padding-top:15px;margin-top:28px}tr{break-inside:avoid}thead{display:table-header-group}.totals,.quote-meta,.letterhead{break-inside:avoid}@media(max-width:800px){.grid,.stats{grid-template-columns:1fr}.top{gap:12px;flex-wrap:wrap}.top img{width:170px}.top span{display:none}main{padding:0 14px}.page-title{align-items:flex-start;flex-direction:column}.pricing,.save-bar{flex-wrap:wrap}.save-bar span{flex-basis:100%}.print-tools{flex-wrap:wrap}.paper{padding:20px;overflow:auto}.letterhead{align-items:flex-start}.letterhead img{width:200px}.quote-table{min-width:650px}.quote-meta{gap:10px}.quote-meta>div{max-width:50%}}@page{size:A4;margin:12mm}@media print{body{background:white;font-size:11px;color:#111}.top,.app-footer,.print-tools{display:none}main{margin:0;padding:0;max-width:none}.paper{border:0;padding:0;max-width:none;overflow:visible}.quote-table{min-width:0;width:100%}.letterhead img{width:260px}.quote-table th{background:#195f91!important;color:white!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}.paper h1{margin-top:16px}.quote-table td{padding:7px 5px}.terms{font-size:11px}.totals{break-inside:avoid}.signature{margin-top:20px}}

/* Quotation layout follows the supplied Word template. */
.sample-template{font-family:Calibri,Arial,sans-serif;color:#111;padding:36px 40px 25px;line-height:1.3}
.sample-brand{display:flex;justify-content:space-between;align-items:flex-start;min-height:95px;gap:20px}.sample-brand img{width:185px;height:auto;margin-top:4px}.sample-number{font-size:40px;color:#4472c4;text-align:right;overflow-wrap:anywhere;max-width:55%;padding-top:12px;font-weight:400}
.sample-details{display:grid;grid-template-columns:53% 43%;column-gap:4%;row-gap:28px;padding:0 10px;font-size:15px}.sample-reference{text-align:right}.sample-details a{color:#0070c0;text-decoration:underline}.sample-trn{align-self:center;text-align:right}.sample-template h1{text-align:center;text-decoration:underline;color:#111;font-size:21px;font-weight:400;margin:20px 0 27px}.sample-template .quote-table{font-size:12px;line-height:1.22}.sample-template .quote-table th{background:#4472c4;color:white;font-size:12px;padding:5px 4px;text-align:center;border:1px solid #c9c9c9}.sample-template .quote-table th:nth-child(1){width:7%}.sample-template .quote-table th:nth-child(2){width:18%}.sample-template .quote-table th:nth-child(3){width:39%}.sample-template .quote-table th:nth-child(4){width:5%}.sample-template .quote-table th:nth-child(5){width:15%}.sample-template .quote-table th:nth-child(6){width:16%}.sample-template .quote-table td{border:1px solid #ccc;padding:4px 7px;vertical-align:top}.sample-template .quote-table tbody:not(.sample-totals) tr:nth-child(odd){background:#f2f2f2}.sample-template .quote-table td:nth-child(1),.sample-template .quote-table td:nth-child(4){text-align:center}.sample-template .quote-table tbody:not(.sample-totals) td:nth-child(1),.sample-template .quote-table tbody:not(.sample-totals) td:nth-child(2),.sample-template .quote-table tbody:not(.sample-totals) td:nth-child(3){font-weight:bold}.sample-template .quote-table tbody:not(.sample-totals) td:nth-child(2){vertical-align:middle}.sample-template .quote-table .num{text-align:center;white-space:normal}.sample-template .sample-totals{break-inside:avoid;background:#4472c4;color:white;font-weight:bold}.sample-template .sample-totals td{border:0;padding:5px 8px;text-align:right!important}.sample-template .sample-totals td:last-child{text-align:center!important}.sample-template .terms{border:0;margin-top:24px;padding:0;font-size:15px;line-height:1.4}.sample-template .terms h3{font-size:15px;margin:0 0 2px}.sample-template .terms ul{list-style:none;padding-left:28px;margin:0 0 24px}.sample-template .terms li::before{content:'-';margin-left:-16px;margin-right:12px}.sample-template .terms p{margin:0}.sample-template .paper-footer{background:#404040;color:white;font-size:14px;border:0;padding:8px 12px;margin:38px -40px -25px;text-align:center}
@page{size:A4;margin:12.7mm 12.7mm 15mm}
@media print{.sample-template{padding:0;line-height:1.27}.sample-brand{min-height:72px}.sample-brand img{width:145px}.sample-number{font-size:32px;padding-top:12px}.sample-details{font-size:11.5px;row-gap:22px;padding:0 6px}.sample-template h1{font-size:16px;margin:17px 0 20px}.sample-template .quote-table{font-size:9px}.sample-template .quote-table th{font-size:9px;padding:4px 3px;background:#4472c4!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}.sample-template .quote-table td{padding:3px 5px}.sample-template .quote-table tbody:not(.sample-totals) tr:nth-child(odd){print-color-adjust:exact;-webkit-print-color-adjust:exact}.sample-template .sample-totals{background:#4472c4!important;color:white!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}.sample-template .sample-totals td{padding:4px 5px}.sample-template .terms{font-size:11.5px;margin-top:22px}.sample-template .terms h3{font-size:11.5px}.sample-template .terms ul{margin-bottom:22px}.sample-template .paper-footer{font-size:11px;margin:30px 0 0;background:#404040!important;color:white!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}.sample-details{break-inside:avoid}}

.workspace-nav{display:flex;gap:14px;flex:1;flex-wrap:wrap;font-size:13px;font-weight:bold}.top{gap:20px}.top img{width:175px}.check{display:flex;align-items:center;gap:10px;margin-top:20px}.check input{width:auto;margin:0}.terms-preview{background:#edf5fc;border-left:3px solid #4472c4;padding:14px;margin-top:20px}.report-filter{display:flex;align-items:flex-end;gap:14px;flex-wrap:wrap;margin-bottom:24px}.report-filter label{flex:1;min-width:140px}.search select{width:230px;margin:0}.report-table td{min-width:120px;overflow-wrap:anywhere}.report-table td:nth-child(3){min-width:230px}.card>.summary{margin-left:auto;margin-top:20px}.no-print{display:block}td.no-print,th.no-print{display:table-cell}.top{flex-wrap:wrap}@media(max-width:800px){.workspace-nav{flex-basis:100%;order:3}.search{flex-wrap:wrap}.search input{flex:1;min-width:150px}}@media print{.no-print,.page-title .actions,.page-title>.button,.page-title>a{display:none!important}.card{box-shadow:none;border:0;border-radius:0;padding:12px 0;margin:0 0 18px}.table-wrap{overflow:visible}.report-table{font-size:9px;table-layout:fixed}.report-table td{min-width:0!important;overflow-wrap:anywhere}.grid{grid-template-columns:repeat(3,1fr)}.page-title h1{font-size:23px}.stats{grid-template-columns:repeat(3,1fr)}}

.module-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.module-card{display:block;background:#f0f6fc;border:1px solid #c9dced;border-radius:9px;padding:20px;min-height:110px}.module-card b{display:block;font-size:17px;color:#165f96;margin-bottom:9px}.module-card span{display:block;color:#536b80;font-size:13px}.module-card:hover{background:#e3effa}.workspace-launcher .section-title{gap:14px;flex-wrap:wrap}@media(max-width:900px){.module-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:500px){.module-grid{grid-template-columns:1fr}}@media print{.workspace-launcher{display:none}}

.account-tools{display:flex;align-items:center;gap:12px;font-size:12px}.account-tools form{margin:0}.auth-card label{margin:18px 0}.auth-card button{width:100%;margin-top:12px}.auth-grid{grid-template-columns:1fr 1fr;margin:20px 0}.inline-form{display:flex;gap:8px;align-items:center}.inline-form input{margin:0;min-width:170px}.view-only{color:#7890a0;font-size:12px}.account-tools button{padding:7px 10px}@media(max-width:600px){.auth-grid{grid-template-columns:1fr}}

.assign-creator{margin-top:12px;font-size:12px}.assign-creator summary{cursor:pointer;color:#165f96}.assign-creator form{margin-top:10px}.assign-creator select{min-width:140px}

.profit-summary{display:grid;grid-template-columns:repeat(2,1fr);gap:8px 24px;margin-top:20px}.audit-change{border-top:1px solid #dce5ed;padding:12px 0;max-width:650px;overflow-wrap:anywhere}.audit-change p{white-space:pre-wrap;max-height:250px;overflow:auto}.editor th:nth-child(6){min-width:110px}@media(max-width:600px){.profit-summary{grid-template-columns:1fr}}

.pagination{display:flex;align-items:center;gap:12px;margin-top:22px}.pagination span{flex:1;color:#617b90}
