/* Quote editors: common hierarchy, readable controls and local overflow. */
.crm-workspace:has(.quote-editor)>.quote-tools{display:none}
.crm-workspace .quote-editor{padding-bottom:120px;min-width:0}
.quote-editor .page-head{align-items:flex-start;gap:16px;flex-wrap:wrap;margin-bottom:18px}
.crm-workspace .quote-editor h1{font-size:28px;line-height:1.2;overflow-wrap:anywhere}
.quote-editor h2,.quote-editor h3{letter-spacing:-.02em}
.quote-editor .quote-context{position:sticky;top:74px;z-index:30;border:1px solid #cfded6;background:#f5faf6;box-shadow:0 4px 14px #213c3510;border-radius:14px;padding:14px 18px;margin:0 0 18px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center}
.quote-context-info{display:flex;flex-wrap:wrap;gap:8px 22px;min-width:0}
.quote-context-info>div{min-width:0;max-width:100%}
.quote-context-info small{display:block;color:#53675d;font-size:11px;font-weight:600;letter-spacing:.02em}
.quote-context-info strong{display:block;color:#1a4032;font-size:13px;overflow-wrap:anywhere}
.quote-context-actions .quote-tools{margin:0!important;width:auto!important;padding:0!important;display:flex!important;gap:0!important}
.quote-context-actions .quote-tools>span{display:none}
.quote-context-actions .btn small{display:block;font-size:10px;font-weight:500}
.quote-context-status{border-radius:20px;padding:4px 10px;display:inline-block;font-size:12px;color:#685000;background:#fff0c7;line-height:1.5}
.quote-context-status[data-state="saved"]{color:#245139;background:#deeee2}
.quote-context-status[data-state="blocked"]{color:#8d281c;background:#fbe6df}
.crm-workspace .quote-editor .editor-save-status{margin:0 0 16px;padding:12px 16px;font-size:13px;line-height:1.5;border-left:4px solid #ba8c24;border-radius:9px}
.crm-workspace .quote-editor .btn,.quote-editor button:not(.workspace-menu){font-size:13px;min-height:44px;line-height:1.3;cursor:pointer}
.quote-editor .btn.danger{background:#fff1ed;color:#942e20;border:1px solid #edc7be}
.quote-editor .field{min-width:0}
.quote-editor .field label{font-size:13px;line-height:1.5;color:#334c42}
.quote-editor input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),.quote-editor select,.quote-editor textarea{max-width:100%;min-width:0;font-size:14px;min-height:44px;color:#223e34;background:#fff}
.quote-editor input[type="checkbox"],.quote-editor input[type="radio"]{width:18px;height:18px;vertical-align:middle;accent-color:#1b4b43}
.quote-editor .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.quote-editor .quote-jumpbar,.quote-editor .tz-edit-tabs,.quote-editor .domestic-tabs{display:flex!important;flex-wrap:wrap!important;gap:6px!important;background:#e9efec!important;padding:6px!important;border:1px solid #d5e0da!important;border-radius:12px!important;margin:0 0 18px!important}
.quote-editor [role="tab"]{flex:1 1 auto;background:transparent!important;color:#40564a!important;border:0!important;border-radius:8px!important;font-weight:600!important;padding:12px 14px!important;white-space:nowrap;min-height:44px}
.quote-editor [role="tab"][aria-selected="true"]{background:#1b4b43!important;color:white!important;box-shadow:0 2px 5px #1b4b4320}
.quote-editor [role="tab"]:focus-visible,.quote-editor button:focus-visible,.quote-editor summary:focus-visible{outline:3px solid #ae7822!important;outline-offset:3px!important}
.quote-editor [role="tabpanel"][hidden]{display:none!important}
.quote-editor .card{padding:22px;margin-bottom:18px}
.quote-editor .section-label{font-family:inherit;font-style:normal;font-size:17px;font-weight:650;margin-top:20px}
.quote-editor .override-state{font-size:12px;display:block;line-height:1.5;color:#635320}
.quote-editor .pricing-editor-row{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:14px 16px}
.quote-editor .pricing-editor-row>div:first-child{flex:1 1 220px;min-width:0}
.quote-editor .pricing-editor-row .override-state{flex:1 0 100%}
.quote-editor .pricing-live-note,.quote-editor .tz-edit-note,.quote-editor .tz-section-description,.quote-editor .quote-subtitle{font-size:13px!important;line-height:1.6;color:#526256!important}
.quote-editor .pricing-kpis{gap:12px}
.quote-editor .pricing-kpi,.quote-editor .tz-cost-grid>div{background:#f4f8f5;border-color:#dce6df}
.quote-editor .pricing-kpi span{font-size:12px}
.quote-editor .pricing-total-row{background:#edf6ee;border-top:2px solid #779c7d}
.quote-editor .tz-cost-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.quote-editor .tz-fee-card{padding:16px 0;border-bottom:1px solid #dae4dd}
.quote-editor .tz-fee-card h3{font-size:15px}
.quote-editor .tz-edit-actions button[data-move]{width:44px}
.quote-editor .quote-actions{position:fixed;bottom:0;left:238px;right:0;z-index:40;display:flex;gap:12px;align-items:center;justify-content:space-between;border-top:1px solid #cfdbd3;background:#fffffffa;box-shadow:0 -3px 14px #20382b0d;padding:12px 32px}
.quote-actions-copy{font-size:12px;color:#53655a;max-width:55%;line-height:1.5}
.quote-actions-buttons{display:flex;gap:8px;flex-wrap:wrap}
.quote-editor .tz-edit-sticky{position:static;box-shadow:none;background:#f3f7f3}
.quote-editor .quote-local-scroll{overflow-x:auto;max-width:100%;border-radius:8px}
.quote-editor table{font-size:13px}
.quote-editor .quote-empty{padding:20px;border:1px dashed #bcccbe;border-radius:10px;background:#f6f9f5;color:#526657;font-size:14px}
.quote-editor .stay-overview{margin:0 0 18px;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.quote-editor .stay-overview article{background:#f5f9f5;border:1px solid #d6e4d7;border-radius:12px;padding:16px;min-width:0}
.stay-overview h3{font-size:16px;margin:0 0 7px;overflow-wrap:anywhere}.stay-overview p{font-size:13px;color:#506457;margin:4px 0}.stay-overview a{display:inline-flex;align-items:center;min-height:44px;font-size:13px;font-weight:600}
.quote-editor .park-block{background:#fbfdfb;border-color:#d5e1d7!important}
.quote-editor .room-line-row,.quote-editor .safari-line-row,.quote-editor .vehicle-line-row{flex-wrap:wrap;gap:12px!important}
.quote-editor .safari-line-row{padding:14px;border:1px solid #d8e4da;border-radius:10px;margin-top:10px}
.quote-editor .domestic-help{font-size:13px;color:#526456;padding:14px;border-radius:10px;background:#f0f5ef;margin-bottom:20px}
.quote-editor .field-help{color:#587b5b}
@media(max-width:1100px){.quote-editor .quote-context{grid-template-columns:1fr}.quote-context-actions{justify-self:start}.quote-context-info{gap:8px 18px}}
@media(max-width:900px){.quote-editor .quote-context{top:62px}.quote-editor .quote-actions{left:0;padding:12px 20px}.quote-editor .quote-actions-copy{max-width:45%}}
@media(max-width:650px){
 .crm-workspace .quote-editor{padding:18px 14px 140px;width:100%;max-width:100%}
 .crm-workspace .quote-editor h1{font-size:24px}
 .quote-editor .quote-context{position:static;padding:14px;gap:12px}
 .quote-context-info{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .quote-context-info>div:first-child{grid-column:1/-1}
 .quote-editor .card{padding:16px}
 .quote-editor .form-grid,.quote-editor .tz-edit-grid{grid-template-columns:1fr!important}
 .quote-editor .field-row{flex-wrap:wrap;min-width:0;max-width:100%}
 .quote-editor .room-line-row>.field,.quote-editor .vehicle-line-row>.field,.quote-editor .room-child-row>.field{min-width:0!important;width:100%!important;flex:1 1 100%!important}
 .quote-editor .room-child-row input,.quote-editor .room-child-row select{width:100%!important}
 .quote-editor .safari-line-row input,.quote-editor .safari-line-row select{width:100%!important;flex:1 1 100%!important}
 .quote-editor .custom-room-model{display:var(--custom-room-display,flex);flex-wrap:wrap}
 .quote-editor .custom-room-model>.field{min-width:0!important;flex:1 1 100%;width:100%!important}
 .quote-editor .vehicle-line-onetime{flex-wrap:wrap;max-width:100%}
 .quote-editor .vehicle-line-onetime>.field{min-width:0;width:100%!important;flex:1 1 100%}
 .quote-editor .room-line-row,.quote-editor .park-block{padding:12px!important}
 .quote-editor .transfer-leg-block{margin-left:0!important}
 .quote-editor .tz-edit-row{grid-template-columns:1fr!important}
 .quote-editor .pricing-editor-row{padding:14px 12px}
 .quote-editor .pricing-inline-controls{flex-wrap:wrap;max-width:100%}
 .quote-editor .pricing-kpis{grid-template-columns:1fr!important}
 .quote-editor .tz-cost-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .quote-editor [role="tab"]{flex:1 1 calc(33% - 6px);padding:10px 8px!important;font-size:12px!important;white-space:normal}
 .quote-editor .quote-actions{padding:10px 14px;display:block}
 .quote-editor .quote-actions-copy{max-width:none;margin-bottom:6px;font-size:11px}
 .quote-editor .quote-actions-buttons{display:flex;flex-wrap:nowrap}.quote-actions-buttons>.btn{flex:1;min-width:0}
 .quote-editor .stay-overview{grid-template-columns:1fr}
 .quote-editor dialog{max-width:calc(100vw - 28px)!important}
}
@media print{.quote-context,.quote-actions,.quote-editor [role="tablist"],.editor-save-status{display:none!important}.quote-editor [role="tabpanel"][hidden]{display:block!important}.crm-workspace .quote-editor{padding:0}}

/* Constrain airport-name grid tracks without clipping editable controls. */
.quote-editor .kenya-transport-row{grid-template-columns:122px repeat(3,minmax(0,1fr)) 105px 44px!important;max-width:100%;min-width:0}
.quote-editor .kenya-transport-row>label{min-width:0}
.quote-editor .kenya-transport-row input{width:100%!important}
.quote-editor .tz-summary{display:none}
.quote-editor [role="tab"],.quote-editor input,.quote-editor select,.quote-editor textarea{scroll-margin-top:240px;scroll-margin-bottom:140px}
.quote-selling-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;padding:16px;border:1px solid #c7dccb;background:#ecf5ed;border-radius:12px;margin:16px 0}.quote-selling-summary strong{display:block;font-size:18px;color:#20482e}.quote-selling-summary .tz-edit-total{margin:4px 0}
@media(max-width:1100px){.quote-editor .kenya-transport-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:650px){.quote-editor .kenya-transport-row{grid-template-columns:1fr!important}.quote-editor .quote-context{position:sticky;top:62px;padding:10px 12px;gap:8px}.quote-context-info{gap:6px 12px}.quote-context-info strong{font-size:12px}.quote-context-info small{font-size:10px}.quote-context-actions .btn{min-height:36px!important;font-size:12px!important;padding:7px 10px!important}.quote-context-actions .btn small{display:inline;margin-left:6px}.quote-context-status{font-size:11px}.quote-editor .quote-subtitle{margin-bottom:0}.quote-editor [role="tab"],.quote-editor input,.quote-editor select,.quote-editor textarea{scroll-margin-top:290px}.quote-editor #kenya-panel-flights .form-grid{grid-template-columns:1fr!important}.quote-editor #kenya-panel-flights .pricing-editor-row>div{min-width:0!important;width:100%;max-width:100%}}

.quote-editor .quote-shortcuts>summary{display:none}.quote-editor .quote-shortcuts>div{display:flex;gap:8px;flex-wrap:wrap}.quote-editor .quote-shortcuts{position:relative}
@media(max-width:650px){.quote-editor .kenya-flight-selector{grid-template-columns:1fr!important;min-width:0}.quote-editor .kenya-flight-selector>div{grid-column:1/-1!important}.quote-editor .kenya-flight-selector>label{min-width:0}.quote-editor .quote-subtitle{display:none}.quote-editor .page-head>div:first-child{flex:1;min-width:150px}.quote-editor .quote-shortcuts>summary{display:block;font-size:12px;padding:10px;background:#edf3f4;border:1px solid #dfe9ed;border-radius:8px;cursor:pointer;min-height:44px}.quote-editor .quote-shortcuts[open]>:not(summary){position:absolute;right:0;top:46px;z-index:50;background:white;border:1px solid #d5e1d7;border-radius:10px;padding:12px;width:220px;box-shadow:0 5px 15px #193e341c}.quote-editor .quote-shortcuts[open] a{width:100%;margin-bottom:6px}}

.quote-editor .editor-save-status[hidden]{display:none!important}.quote-editor .quote-help{margin:12px 0 20px;border:1px solid #d7e3da;border-radius:10px;background:#f4f8f3}.quote-editor .quote-help>summary{min-height:44px;padding:11px 14px;font-size:13px;font-weight:600;cursor:pointer;color:#315841}.quote-editor .quote-help>p{margin:0!important;padding:12px 14px;font-size:13px!important;line-height:1.6}.quote-editor .quote-help .domestic-help{background:transparent}
/* Room groups keep physical-room fields in the form without ten open editors. */
.quote-editor .room-groups{margin:12px 0 18px;border:1px solid #b9cec3;border-radius:12px;background:#fff;overflow:hidden}
.quote-editor .room-groups-heading{padding:16px 18px;background:#eaf3ed;color:#173e32}
.quote-editor .room-groups-heading p{margin:5px 0 0;font-size:12px;color:#415e51}
.quote-editor .room-group-card{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:16px 18px;border-top:1px solid #dbe5df}
.quote-editor .room-group-card>div{flex:1;min-width:180px}.room-group-card strong,.room-group-card span{display:block}.room-group-card span{font-size:12px;margin-top:5px;color:#415e51}
.quote-editor .room-group-card label{font-size:11px;color:#415e51;display:block}.quote-editor .room-group-card input{display:block;width:90px;margin-top:4px}
.quote-editor .room-group-message{flex-basis:100%;font-size:12px;color:#7d3c25;margin:0}.room-group-message:empty{display:none}
.quote-editor .room-group-edit{padding:16px 18px;background:#fff6de;border-top:1px solid #d5b75d}.room-group-edit p{font-size:12px}.room-group-edit button{margin-right:8px}
.quote-editor .room-line-row[hidden],.quote-editor .room-block[hidden]{display:none!important}
.quote-editor .room-compact>:not([data-room-toggle]){display:none!important}
.quote-editor [data-room-toggle]{width:100%;text-align:left;white-space:normal;background:#f2f7f3;color:#173e32;border-color:#b9cec3}
.quote-editor .stay-section{margin:16px 0;border:1px solid #c8d9cf;border-radius:10px;background:#fff}.quote-editor .stay-section>summary{padding:14px 16px;cursor:pointer;color:#173e32;font-weight:600}.quote-editor .stay-section-body{padding:0 16px 16px}
.quote-editor .quote-price-rail{position:sticky;top:230px;align-self:start;border:1px solid #b9cec3;border-radius:12px;background:#fff;padding:18px;max-height:calc(100vh - 350px);overflow:auto}.quote-price-rail h3{margin:0;font-size:16px}.quote-price-rail p{font-size:12px;color:#415e51}.quote-price-rail dl{margin:0}.quote-price-rail dl>div{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #e0e8e2;padding:10px 0;font-size:13px}.quote-price-rail dd{margin:0;font-weight:600;text-align:right}.quote-price-rail[data-stale="true"]{border-color:#c59a41}.quote-price-rail[data-stale="true"] .price-rail-status{color:#794b00;background:#fff2cc;padding:8px;border-radius:6px}
@media(min-width:1250px){.quote-editor.has-price-rail{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:0 22px}.quote-editor.has-price-rail>.page-head,.quote-editor.has-price-rail>.quote-context{grid-column:1/-1}.quote-editor.has-price-rail>.quote-price-rail{grid-column:2;grid-row:3 / span 12}.quote-editor.has-price-rail>:not(.page-head):not(.quote-context):not(.quote-price-rail):not(.quote-actions){grid-column:1;min-width:0}}
@media(max-width:1249px){.quote-editor .quote-price-rail{position:static;max-height:none;margin:16px 0}.quote-editor .quote-price-rail dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:0 14px}}
@media(max-width:650px){.quote-editor .room-group-card>div{flex-basis:100%}.quote-editor .room-group-card{padding:14px}.quote-editor .room-group-card .btn{flex:1 1 40%}.quote-editor .stay-section-body{padding:0 10px 12px}.quote-editor .room-line-row .field{min-width:0!important;max-width:100%}.quote-editor .room-line-row input,.quote-editor .room-line-row select{max-width:100%}}

.quote-editor [data-stay-section="rooms"]>.stay-section-body>p{display:none}
.quote-editor .quote-price-rail summary{cursor:pointer;padding:8px 0;color:#173e32;font-size:12px;font-weight:600}

.quote-editor .quote-save-confirmation{display:flex;gap:8px 16px;align-items:center;flex-wrap:wrap;padding:12px 16px;margin:0 0 16px;border:1px solid #afccbb;border-radius:10px;background:#edf6ef;color:#173e32;font-size:13px}.quote-save-confirmation>span{font-size:12px}.quote-save-confirmation .quote-save-total{margin-left:auto;font-weight:600}@media(max-width:650px){.quote-save-confirmation .quote-save-total{margin-left:0;flex-basis:100%}}

.quote-editor .room-group-card .room-group-rates{flex:1 1 100%;display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding:12px;background:#f5f8f6;border-radius:8px}
.quote-editor .room-group-rates>strong,.quote-editor .room-group-rates>span{flex-basis:100%}
.quote-editor .room-group-rates input,.quote-editor .room-group-rates select{width:160px;max-width:100%;padding:8px}
.quote-editor .room-group-remove{color:#a52c25;border-color:#d9aaa6}
.quote-editor .room-group-rates label[hidden]{display:none!important}
.quote-editor .room-group-rates input[type="checkbox"]{display:inline-block;width:auto;margin:0 6px 0 0}
