*{box-sizing:border-box}body{margin:0;background:#eef3f8;font:14px Arial,sans-serif;color:#122b45}.bar{height:75px;background:#0f2942;color:white;display:flex;justify-content:space-between;align-items:center;padding:10px max(20px,calc((100vw - 1100px)/2))}.bar strong{display:block;font-size:22px;letter-spacing:2px}.bar small{color:#49a942;font-size:10px;letter-spacing:2px}.container{max-width:1100px;padding:35px 20px;margin:auto}h1{font-size:32px;margin:10px 0}h2{font-size:19px}.muted{font-size:11px;letter-spacing:2px;color:#2d7a34;font-weight:700}.page-heading p,.help,.login p{color:#707b7b;line-height:1.6}.panel,.login,.history{background:#fff;padding:28px;border-radius:12px;margin:22px 0;box-shadow:0 3px 20px #00000009}.login{max-width:450px;margin:70px auto;padding:40px}label{display:block;font-weight:700;font-size:12px;color:#495553}input,textarea{font:inherit;border:1px solid #d5dcd9;border-radius:6px;padding:13px 12px;width:100%;margin-top:8px;color:#142021}input:focus,textarea:focus{outline:2px solid #49a942}button,.secondary{padding:13px 20px;cursor:pointer;font-weight:700;border:0;border-radius:5px;text-decoration:none;display:inline-block;font-size:13px}.primary{background:#49a942;color:#ffffff}.secondary{background:#dce7f3;color:#0f2942}.small{padding:9px}.login button{width:100%;margin-top:20px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:20px}.fields label:has(textarea){grid-column:span 2}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;margin:15px 0}th{text-align:left;background:#f1f4f2;font-size:10px;padding:14px 10px}td{border-bottom:1px solid #e6eae7;padding:10px}td input{min-width:100px;margin:0}.remove{border:0;background:#ffeded;color:#a33;padding:9px 13px}.preview{display:flex;justify-content:space-between;margin:20px 0;gap:25px}.preview label{display:flex;gap:8px;align-items:start}.preview input{width:16px;margin:0}.preview p{display:flex;gap:80px;justify-content:space-between}.grand{font-size:21px;font-weight:800;color:#0f2942}.save{width:100%;padding:19px}.history a{display:flex;justify-content:space-between;gap:10px;padding:14px;border-top:1px solid #e1e5e3;color:#182728;text-decoration:none}.history span{flex:1;margin-left:20px}.history small{color:#777}.tools{display:flex;justify-content:space-between;margin-bottom:20px}.sheet{background:#fff;padding:48px;max-width:920px;margin:auto;box-shadow:0 10px 35px #0001;min-height:1050px}.sheet-top{display:flex;justify-content:space-between;gap:30px;padding-bottom:25px;border-bottom:5px solid #49a942}.sheet-top h1{font-size:38px;letter-spacing:1px}.sheet-top h1 span{color:#b78947}.sheet-top b{font-size:10px;letter-spacing:1px}.sheet-top p{line-height:1.8;font-size:12px}.quote-id{text-align:right}.quote-id small{font-size:11px;letter-spacing:1px}.quote-id h2{font-size:23px}.client{background:#f0f3f1;padding:20px;margin:25px 0;display:flex;gap:50px;line-height:1.7}.client>b{font-size:11px;min-width:170px}.sheet table{margin:30px 0}.sheet th{background:#0f2942;color:white}.sheet td{padding:17px 10px;font-size:12px}.sheet th:not(:first-child),.sheet td:not(:first-child){text-align:right}.totals{margin:20px 0 20px auto;max-width:280px}.totals>div{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid #ddd}.totals .grand{border-top:3px solid #49a942}.note{margin-top:40px;line-height:1.6;min-height:85px}.note b,.bank b{font-size:11px}.bank{margin-top:40px;border:1px solid #9acb9e;background:#f4fbf4;padding:18px 24px;line-height:1.8}.bank div{padding-top:8px}.foot{text-align:center;border-top:1px solid #ddd;margin-top:60px;padding-top:20px;font-size:10px;color:#888}.alert{color:#972727;background:#fff1f0;padding:15px;border-radius:6px}@media(max-width:650px){.fields{grid-template-columns:1fr}.fields label:has(textarea){grid-column:auto}.sheet{padding:18px;min-height:auto}.sheet-top{display:block}.quote-id{text-align:left}.client{display:block}.sheet table{font-size:10px}.sheet td{padding:8px 4px}.sheet th{padding:8px 4px}.preview{display:block}.container{padding:15px}.history a{flex-wrap:wrap}}@media print{@page{size:A4;margin:12mm}body{background:white;-webkit-print-color-adjust:exact;print-color-adjust:exact}.bar,.tools{display:none!important}.container{padding:0;max-width:none}.sheet{box-shadow:none;padding:0;max-width:none;min-height:0}.sheet-top h1{font-size:35px}.bank,.client,.sheet th{print-color-adjust:exact;-webkit-print-color-adjust:exact}}

.print-logo{width:260px;max-width:100%;height:auto;display:block;margin:0 0 14px}.search-quotes{display:flex;gap:10px;margin:15px 0 24px}.search-quotes input{margin:0}.history .edit-link{flex:0 0 auto;color:#2b6db0;font-weight:bold}@media(max-width:650px){.search-quotes{flex-wrap:wrap}.search-quotes input{width:100%}.print-logo{width:230px}}@media print{.print-logo{width:245px}.history,.search-quotes{display:none}}

.sheet-top{border-bottom:5px solid #49a942}.sheet-top b{color:#49a942}.quote-id h2{color:#0f2942}.grand{color:#0f2942}.primary{box-shadow:0 10px 20px rgba(73,169,66,.18)}.primary:hover{filter:brightness(.96)}.contact-chip{color:#49a942}.print-logo{width:320px}.bar{box-shadow:0 8px 24px rgba(15,41,66,.12)}

.bar-actions{display:flex;gap:10px;align-items:center}.bar-actions form{margin:0}.quick-links{display:flex;gap:10px;align-items:center}.history-head{display:flex;justify-content:space-between;align-items:center;gap:15px}.history-item{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #e1e5e3}.history-item a{border-top:0;flex:1}.request-card{border-top:1px solid #e1e5e3;padding:14px 0}.request-card small{display:block;color:#6f7b88;margin-top:4px}.request-card p{margin:8px 0 0;color:#40556d}.request-meta{margin-top:6px;color:#2b425a}.tools-right{display:flex;gap:10px}.sheet{padding:24px 28px;max-width:920px;min-height:auto}.sheet-head-compact{display:grid;grid-template-columns:220px 1fr 210px;gap:18px;align-items:start;padding-bottom:12px;border-bottom:3px solid #49a942}.print-logo{width:210px;margin:0}.company-block h2{margin:0 0 8px;font-size:24px;color:#0f2942}.company-block p{margin:5px 0;font-size:12px;line-height:1.35;color:#18324d}.quote-box{background:#eef6ee;border:1px solid #9acb9e;border-radius:12px;padding:14px 16px}.quote-box small{font-size:10px;letter-spacing:1.4px;color:#2d7a34;font-weight:bold}.quote-box h1{font-size:24px;margin:8px 0;color:#0f2942;line-height:1.1}.quote-box p{margin:0;font-size:12px;line-height:1.45;color:#18324d}.client.compact{display:grid;grid-template-columns:1.2fr .8fr 1fr 1.2fr;gap:14px;background:#f5f9fc;border:1px solid #dce7f3;padding:14px 16px;margin:16px 0 14px;line-height:1.4}.client.compact b{font-size:10px;letter-spacing:1px;color:#2d7a34}.quote-table{margin:10px 0 12px}.quote-table th,.quote-table td{font-size:11px;padding:10px 8px}.summary-grid{display:grid;grid-template-columns:1.3fr .9fr;gap:18px;align-items:start;margin-top:10px}.compact-note{margin-top:0;min-height:auto}.compact-note p{margin:.5rem 0 0;line-height:1.5;font-size:12px}.compact-totals{margin:0 0 0 auto;max-width:300px;width:100%}.compact-totals>div{padding:8px 0}.footer-strip{margin-top:16px;padding-top:10px;border-top:1px solid #cfd9e2;font-size:10px;color:#556779;text-align:center}.login-note{margin-top:14px;font-size:12px;color:#5e6e7d}@media(max-width:850px){.sheet-head-compact{grid-template-columns:1fr}.quote-box,.company-block,.brand-block{width:100%}.client.compact{grid-template-columns:1fr 1fr}.summary-grid{grid-template-columns:1fr}.tools,.tools-right,.quick-links,.history-head{flex-wrap:wrap}}@media(max-width:650px){.client.compact{grid-template-columns:1fr}.sheet{padding:18px}.quote-box h1{font-size:21px}.company-block h2{font-size:20px}.bar-actions{flex-wrap:wrap;justify-content:flex-end}}@media print{@page{size:A4;margin:7mm}body{font-size:11px}.bar,.tools,.search-quotes,.history,.requests-list,.page-heading,form,.quick-links{display:none!important}.container{padding:0}.sheet{padding:0;box-shadow:none}.sheet-head-compact{grid-template-columns:170px 1fr 180px;gap:10px;padding-bottom:8px}.print-logo{width:165px}.company-block h2{font-size:18px}.company-block p,.quote-box p{font-size:10px;line-height:1.25}.quote-box{padding:10px 12px}.quote-box h1{font-size:18px;margin:6px 0}.client.compact{padding:10px 12px;margin:10px 0;gap:10px}.quote-table{margin:8px 0}.quote-table th,.quote-table td{font-size:10px;padding:6px 5px}.summary-grid{gap:10px}.compact-note p{font-size:10px;line-height:1.35}.compact-totals>div{font-size:10px;padding:5px 0}.grand{font-size:15px}.footer-strip{margin-top:10px;padding-top:6px;font-size:9px}.sheet,.sheet *{page-break-inside:avoid!important}}
