#crm-agreement[hidden],#crm-form label[hidden]{display:none!important}
.proposal-preview-actions,.acceptance-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:14px 0}
#proposal-email-send{background:#008e87!important;color:#fff!important;border-color:#008e87!important}
#acceptance-admin-message:not(:empty){padding:12px 14px;border:1px solid #b7e4df;border-left:4px solid #008e87;border-radius:8px;background:#e8f8f5;color:#173b50;line-height:1.6;white-space:normal}
#acceptance-admin-message.proposal-send-error{background:#fff1f0;border-color:#e4b4ad;border-left-color:#b33b31;color:#8c2b23}
#agreement-preview-dialog{width:min(980px,96vw);max-width:96vw;box-sizing:border-box}
#agreement-preview-content{box-sizing:border-box;width:100%;height:70vh;background:#eef5f7;border:1px solid #d9e8e7}
@media(max-width:760px){#agreement-preview-dialog{padding:14px}#agreement-preview-dialog .dialog-title{gap:12px;flex-wrap:wrap}#agreement-preview-dialog h2{font-size:20px}#agreement-preview-dialog .dialog-title button{font-size:14px}#crm-acceptance{box-sizing:border-box;min-width:0}}

#crm-quotations[hidden],#crm-view>.board[hidden],#crm-summary[hidden],#crm-quote[hidden]{display:none!important}
.crm-quote-filters{display:flex;align-items:end;gap:16px;flex-wrap:wrap;margin:14px 0}.crm-quote-filters label{flex:1;min-width:210px}.crm-quotes-table{width:100%;border-collapse:collapse}.crm-quotes-table th,.crm-quotes-table td{padding:14px 12px;text-align:left;border-bottom:1px solid #dce7ec}.crm-quotes-table th{background:#edf4f8;color:#173b50}.crm-quote-actions{min-width:235px}.crm-quote-actions button{margin:3px;padding:7px 10px}.crm-calculator{grid-column:1/-1;border:1px solid #d4e5ed;border-radius:12px;padding:18px;margin:12px 0;background:#f6fafc}.crm-calculator h3{margin:0 0 12px}.crm-quote-totals{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:20px}.crm-quote-totals>div{background:#fff;border:1px solid #d8e7ee;border-radius:10px;padding:14px}.crm-quote-totals strong,.crm-quote-totals small{display:block}.crm-quote-totals strong{font-size:20px;color:#087d79;margin-top:7px}#crm-quote-summary button{text-align:left}#crm-quotations .table-scroll{overflow-x:auto}#crm-quotations .hint{padding:0 16px}@media(max-width:700px){.crm-quote-totals{grid-template-columns:1fr}.crm-calculator{padding:12px}.crm-quotes-table{min-width:1000px}}

#crm-view:has(>#crm-quotations:not([hidden]))>#crm-summary,#crm-view:has(>#crm-quotations:not([hidden]))>.board{display:none!important}

#crm-dialog{width:min(1180px,96vw)!important;max-width:96vw!important;padding:22px!important}#crm-form{max-width:none!important}.commercial-form-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:20px;align-items:start}.commercial-form-main{min-width:0}.commercial-form-section{border:1px solid #d9e5ed;border-radius:10px;padding:18px;margin-bottom:16px;background:#fff}.commercial-form-section>h3,.commercial-form-summary>h3{display:flex;align-items:center;gap:9px;font-size:16px;margin:0 0 18px;color:#173b50}.commercial-form-section>h3>span,.commercial-form-summary>h3>span{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;background:#e5f6f2;color:#087d79;border-radius:7px;font-size:12px;flex-shrink:0}.commercial-type-picker{display:grid;grid-template-columns:1fr 1fr;gap:12px}.commercial-type-picker button{display:flex;align-items:center;gap:12px;text-align:left;white-space:normal;padding:16px!important}.commercial-type-picker svg{width:22px;height:22px;flex:0 0 22px}.commercial-type-picker small{display:block;margin-top:5px;font-size:11px;font-weight:400}.commercial-type-picker button[aria-pressed=true]{background:#e7faf4!important;border:1px solid #5fc3ad!important;color:#007b70!important}.commercial-form-summary{width:100%!important;box-sizing:border-box;position:sticky;top:0;background:#f1f7fb;border:1px solid #d2e4ee;border-radius:12px;padding:18px;min-width:0}.commercial-document-title{font-size:14px;font-weight:600;color:#087d79}.commercial-live-totals{margin:18px 0}.commercial-live-totals dt{font-size:12px;color:#526e80;margin-top:16px}.commercial-live-totals dd{font-size:22px;font-weight:600;color:#173b50;margin:6px 0}.commercial-form-summary .dialog-actions,.commercial-form-summary .proposal-preview-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.commercial-form-summary button{white-space:normal}.commercial-form-summary .acceptance-actions{display:grid;gap:8px}.commercial-form-summary input{width:100%;box-sizing:border-box}.commercial-terms{margin-top:15px;border-top:1px solid #d6e3ed;padding-top:14px}.commercial-terms>summary{font-size:13px;font-weight:600;cursor:pointer;margin-bottom:12px}.commercial-fees-pane[hidden],.commercial-task-details[hidden]{display:none!important}.commercial-form-section .crm-calculator{margin:8px 0 16px}.commercial-form-section .crm-quote-totals{display:none!important}.commercial-form-summary #crm-acceptance h3{font-size:14px}.commercial-form-summary #crm-acceptance p{font-size:12px;line-height:1.5}.commercial-form-section #crm-agreement{border:0;padding:0;margin:0}.commercial-form-section #crm-agreement>p{font-size:12px}.commercial-form-section #crm-services-fieldset{min-width:0}.commercial-form-section .form-grid{min-width:0}.commercial-form-section #crm-service-options{min-width:0}.commercial-form-section .service-option-grid{grid-template-columns:1fr 1fr}.commercial-form-section label{min-width:0}@media(max-width:850px){.commercial-form-layout{grid-template-columns:1fr}.commercial-form-summary{position:static}.commercial-type-picker{grid-template-columns:1fr}#crm-dialog{padding:14px!important}.commercial-form-section{padding:14px}}
