/* Editable rate form: scoped so reference/detail dialogs retain their behavior. */
#modal.quote-entry-modal{width:min(880px,calc(100% - 40px));max-height:90svh;overflow-y:auto;overscroll-behavior:contain;border-color:#dbe5f0;border-radius:12px;color:#193c60}
.quote-entry-modal .modal-header{z-index:4;background:#fff;padding:22px 28px;border-bottom:1px solid #e6edf5}.quote-entry-modal .modal-header h2{font-size:21px;color:#173c65}.quote-entry-modal #modal-body{padding:22px 28px 28px}.quote-entry-modal .quote-form-grid{gap:20px 22px}.quote-entry-modal .quote-field>span,.quote-route-field>label{font-size:12px;line-height:1.6;color:#617d98;font-weight:400}.quote-entry-modal .quote-field input,.quote-entry-modal .quote-field select,.quote-entry-modal .quote-field textarea{font-size:13px;color:#244e77;border:1px solid #d8e3ee;border-radius:6px;background:#fff;min-height:41px;line-height:1.5}.quote-entry-modal .quote-field input::placeholder,.quote-entry-modal .quote-field textarea::placeholder{font-size:12px;color:#a3b0bf}.quote-entry-modal input:focus,.quote-entry-modal select:focus,.quote-entry-modal textarea:focus{border-color:#77a4d3;box-shadow:0 0 0 3px #367cb710;outline:none}.quote-entry-modal input:focus-visible,.quote-entry-modal select:focus-visible,.quote-entry-modal textarea:focus-visible{outline:2px solid #82afe1;outline-offset:2px}.quote-entry-modal .form-help{font-size:11px;color:#8397ac;line-height:1.9;margin-top:20px}.quote-entry-modal .form-error{font-size:12px;line-height:1.8;background:#fff8ed;color:#9d713b;border-color:#f0dfc3}.quote-entry-modal .modal-actions{position:sticky;bottom:-28px;background:#fff;padding:18px 0 0;border-top:1px solid #eaf0f6;z-index:3;gap:10px;margin-top:22px}.quote-entry-modal .modal-actions button{min-height:39px;font-size:12px;padding:10px 16px}.quote-entry-modal [aria-busy=true]{cursor:progress}.quote-entry-modal [aria-busy=true] input,.quote-entry-modal [aria-busy=true] select,.quote-entry-modal [aria-busy=true] textarea{background:#f3f6fa;color:#7c91a7}.quote-entry-modal .icon-button:disabled{opacity:.35;cursor:progress}
.quote-draft-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid #e0e9f4;background:#f4f8fd;border-radius:7px;padding:10px 13px;margin-bottom:9px}.quote-draft-banner>span{display:flex;align-items:center;gap:7px;font-size:11px;color:#7891ac;line-height:1.8}.quote-draft-banner svg{width:15px;height:15px;color:#8aa4c0}.quote-draft-banner .quote-clear-draft{flex:none;font-size:11px;color:#7b8fa4;padding:5px 0;text-decoration:underline;text-underline-offset:3px}.quote-draft-banner .quote-clear-draft:hover{color:#a37345}.quote-draft-status{font-size:11px;color:#8a9cb0;line-height:1.8;margin:0 0 20px;min-height:20px;overflow-wrap:anywhere}.quote-draft-status.storage-error{color:#a77c42;background:#fff8ed;border-radius:4px;padding:8px 11px}
.quote-route-field{position:relative}.quote-route-field em,.quote-date-field em{font-style:normal;color:#b69662}.quote-route-combobox{position:relative}.quote-route-combobox>input[data-route-input]{width:100%;padding:10px 36px 10px 12px;min-height:43px}.quote-route-combobox:after{content:'';position:absolute;right:16px;top:17px;width:6px;height:6px;border-right:1px solid #7994b0;border-bottom:1px solid #7994b0;transform:rotate(45deg);pointer-events:none}.quote-route-options{position:absolute;top:calc(100% + 5px);left:0;right:0;z-index:8;background:#fff;border:1px solid #d9e4f1;border-radius:7px;box-shadow:0 9px 25px #102d4c1a;max-height:240px;overflow-y:auto;overscroll-behavior:contain;padding:5px;scrollbar-width:thin;scrollbar-color:#becfe0 #f7f9fc}.quote-route-options>button{width:100%;display:flex;align-items:flex-start;flex-direction:column;justify-content:flex-start;text-align:left;padding:10px 12px;gap:4px;line-height:1.7;border-radius:4px;color:#395f84;white-space:normal}.quote-route-options>button>span{font-size:13px}.quote-route-options>button>small{font-size:10px;color:#9aadc0}.quote-route-options>button:hover,.quote-route-options>button[aria-selected=true]{background:#edf4fc;color:#0a3474}.quote-route-options>button:focus-visible{outline:2px solid #83add9;outline-offset:-2px}.quote-route-help{font-size:10px;color:#9aaabe;line-height:1.8;min-height:18px}.quote-route-help.route-selected{color:#688bae}.quote-route-more{font-size:11px;line-height:1.8;color:#8b9fb5;padding:11px 12px}
.quote-date-field{border:0;padding:0;margin:0;min-width:0}.quote-date-field>legend{font-size:12px;line-height:1.6;color:#617d98;padding:0;margin:0 0 9px;font-weight:400}.quote-date-parts{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:8px;min-width:0}.quote-date-parts>label{display:flex;align-items:center;gap:7px;color:#8da2b7;font-size:11px;min-width:0}.quote-date-parts input,.quote-date-parts select{width:100%;height:41px;min-width:0;border:1px solid #d8e3ee;border-radius:6px;background:#fff;padding:9px 8px;color:#244e77;font-size:13px;font-family:inherit;box-sizing:border-box;line-height:1.5}.quote-date-parts input{text-align:center;font-variant-numeric:tabular-nums}.quote-date-parts select{padding-right:3px}.quote-date-parts input::placeholder{color:#a3b0bf;font-size:12px}.quote-date-hint{display:block;font-size:10px;line-height:1.7;color:#b4864c;margin-top:5px;min-height:0}.quote-date-hint:empty{display:none}.quote-date-field.has-date-error input,.quote-date-field.has-date-error select{border-color:#d7b991}
@media(max-width:700px){#modal.quote-entry-modal{width:calc(100% - 24px);max-height:92svh;border-radius:9px}.quote-entry-modal .modal-header{padding:18px 19px}.quote-entry-modal .modal-header h2{font-size:19px}.quote-entry-modal #modal-body{padding:18px 18px 22px}.quote-entry-modal .quote-form-grid{gap:18px 13px}.quote-entry-modal .quote-field>span,.quote-route-field>label,.quote-date-field>legend{font-size:11px}.quote-entry-modal .quote-field input,.quote-entry-modal .quote-field select,.quote-entry-modal .quote-field textarea{font-size:12px;min-height:42px;padding:10px}.quote-entry-modal .quote-field input::placeholder,.quote-entry-modal .quote-field textarea::placeholder{font-size:11px}.quote-draft-banner{padding:9px 10px;gap:9px}.quote-draft-banner>span{font-size:10px;gap:6px}.quote-draft-banner svg{width:13px;height:13px}.quote-draft-banner .quote-clear-draft{font-size:10px;white-space:nowrap}.quote-draft-status{font-size:10px;line-height:1.8;margin-bottom:18px}.quote-route-combobox:after{right:14px;top:17px}.quote-route-combobox>input[data-route-input]{padding-right:30px}.quote-route-options{max-height:225px}.quote-route-options>button{padding:10px}.quote-route-options>button>span{font-size:12px}.quote-route-options>button>small{font-size:10px}.quote-route-help{font-size:10px}.quote-date-field{grid-column:1/-1}.quote-date-parts{grid-template-columns:1.25fr 1fr 1fr;gap:12px}.quote-date-parts input,.quote-date-parts select{height:42px;font-size:13px}.quote-date-parts>label{gap:8px}.quote-date-hint{font-size:10px}.quote-entry-modal .modal-actions{bottom:-22px;padding-top:16px;flex-wrap:wrap;margin-top:20px}.quote-entry-modal .modal-actions button{font-size:11px;min-height:39px;padding:10px 12px}.quote-entry-modal .modal-actions .primary-button{min-width:104px}.quote-entry-modal .form-help{font-size:10px}.quote-entry-modal .form-error{font-size:11px}}
@media(prefers-reduced-motion:reduce){.quote-entry-modal *{scroll-behavior:auto!important}}
/* The range shares one currency and unit; the separate minimum charge is unchanged. */
.quote-entry-modal .quote-amount-range{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr) minmax(0,.85fr);gap:16px;align-items:start}.quote-entry-modal .quote-amount-range>.quote-field{min-width:0;align-self:start;justify-content:flex-start}.quote-entry-modal .quote-amount-range input{font-variant-numeric:tabular-nums}.quote-entry-modal .quote-amount-range select{height:42px}.quote-entry-modal .quote-field>.form-help{margin:0;font-size:10px;line-height:1.8}
@media(max-width:700px){.quote-entry-modal .quote-amount-range{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 13px}.quote-entry-modal .quote-amount-range>.quote-field:last-child{grid-column:1/-1}.quote-entry-modal .quote-amount-range>.quote-field>span{font-size:10px}.quote-entry-modal .quote-amount-range input::placeholder{font-size:10px}}
.entered-price strong,.record-price,.quote-card-top>strong{overflow-wrap:anywhere;min-width:0}
.quote-pending-value{color:#ae6e38;font-weight:600}.migration-original-info{margin:9px 0;color:#8297ad;font-size:10px;line-height:1.9;overflow-wrap:anywhere}.migration-original-info>summary{cursor:pointer;color:#567fa7;font-size:11px}.migration-original-info p{font-size:10px;line-height:1.9;margin:6px 0}.migration-original-info>summary:focus-visible{outline:2px solid #82afe1;outline-offset:3px}
