/* One compact rate template; physical bases remain separate city records. */
.cp-panel{display:grid;gap:18px;min-width:0;max-width:100%;color:var(--tf-ink,#123d35)}
.cp-panel *{box-sizing:border-box;min-width:0}
.cp-panel .tf-card{margin:0;padding:20px}
.cp-panel h2{margin:0;font:400 27px/1.2 Georgia,serif}
.cp-panel h3{margin:0;font-size:16px}
.cp-panel p{line-height:1.5}
.cp-panel .tf-field{font-size:14px}
.cp-panel .tf-field input,.cp-panel .tf-field select,.cp-panel .tf-field textarea{font-size:16px;min-width:0;max-width:100%}
.cp-context{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.3fr);gap:24px;align-items:start}
.cp-city{display:grid;gap:12px}
.cp-base{display:grid;gap:12px;padding-left:24px;border-left:1px solid var(--tf-line,#dce4df)}
.cp-base h2{font-size:24px}
.cp-base .tf-field{margin:0}
.cp-base .tf-actions{gap:8px}
.cp-base-summary{display:grid;gap:4px;font-size:14px;overflow-wrap:anywhere}
.cp-base-summary strong{font-weight:650}
.cp-muted,.cp-panel .cp-note{color:var(--tf-muted,#64776e);font-size:14px}
.cp-meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px 18px;padding:12px 16px;border:1px solid var(--tf-line,#dce4df);border-radius:8px;background:var(--tf-bg,#f5f7f3);font-size:14px}
.cp-meta strong{font-weight:650}
.cp-scope{display:grid;gap:12px}
.cp-scope-row{display:flex;gap:12px 18px;align-items:end;flex-wrap:wrap}
.cp-scope-label{flex:1 1 190px;font-weight:650;font-size:16px}
.cp-scope-buttons{display:flex;border:1px solid #bdcec4;border-radius:7px;overflow:hidden;flex:0 1 330px;min-height:42px}
.cp-scope-buttons .tf-button{border:0;border-radius:0;flex:1;padding:8px 14px;min-width:0}
.cp-scope-buttons .tf-button+.tf-button{border-left:1px solid #bdcec4}
.cp-scope-country{flex:1 1 190px;max-width:280px}
.cp-source{display:flex;gap:8px 16px;justify-content:space-between;align-items:center;flex-wrap:wrap;border-top:1px solid var(--tf-line,#dce4df);padding-top:12px}
.cp-source-text{display:grid;gap:3px}
.cp-source-badge{display:inline-flex;gap:5px;align-items:center;max-width:100%;border:1px solid #c5a969;color:#79602d;background:#fffaf0;border-radius:6px;padding:5px 9px;font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.cp-category-tabs{display:flex;gap:8px;flex-wrap:wrap}
.cp-category-tabs .tf-button{flex:1 1 160px;white-space:normal;font-size:16px;min-height:44px}
.cp-prices{display:grid;gap:14px}
.cp-price-heading{display:flex;gap:10px 18px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.cp-price-heading>div{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.cp-currency{max-width:185px}
.cp-form-fields{padding:0;border:0;margin:0;min-width:0;display:grid;gap:14px}
.cp-form-fields:disabled{opacity:.75}
.cp-matrix{display:grid;gap:0;min-width:0;width:100%}
.cp-matrix-row{display:grid;grid-template-columns:minmax(0,1.3fr) repeat(3,minmax(0,1fr));gap:12px;align-items:center;padding:8px 10px;border-bottom:1px solid var(--tf-line,#dce4df)}
.cp-matrix-row>strong,.cp-row-label{font-size:14px;line-height:1.35;overflow-wrap:anywhere}
.cp-matrix-header{background:#edf1e8;border-radius:7px;border:0;font-weight:700;padding-block:10px}
.cp-matrix-header>strong{font-size:16px}
.cp-segment-heading{background:#edf1e8;border:0;border-radius:6px;margin-top:16px;padding-block:9px}
.cp-segment-heading>.cp-row-label{font-weight:700}
.cp-role-check{display:flex;align-items:center;gap:7px;font-size:14px;line-height:1.35;min-height:30px;cursor:pointer}
.cp-role-check input{width:18px;height:18px;flex:0 0 18px;accent-color:var(--tf-green,#143f36);margin:0}
.cp-money{display:flex;align-items:center;gap:5px;border:1px solid #b5c8bc;border-radius:5px;background:#fff;min-height:36px;padding:0 9px;width:100%}
.cp-money>span{color:#64776e;font-size:14px;flex:0 0 auto}
.cp-money input{border:0;outline:0;background:transparent;color:var(--tf-ink,#123d35);font:inherit;font-size:16px;width:100%;min-width:0;padding:6px 0;font-variant-numeric:tabular-nums;min-height:34px}
.cp-money:focus-within{outline:3px solid #b59a60;outline-offset:2px}
.cp-money input:focus-visible{outline:0}
.cp-money input[aria-invalid="true"]{color:#8c302b}
.cp-role-state{font-size:13px;font-weight:400;color:var(--tf-muted,#64776e)}
.cp-section{margin:0;border:1px solid var(--tf-line,#dce4df);border-radius:7px;background:#fff;min-width:0}
.cp-section>summary{font-weight:650;cursor:pointer;padding:11px 14px;font-size:15px}
.cp-section-body{padding:0 14px 14px;display:grid;gap:14px}
.cp-extra-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.cp-save{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}
.cp-save-text{flex:1 1 240px;display:grid;gap:4px;font-size:14px}
.cp-save-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.cp-save-actions .tf-button{white-space:normal}
.cp-status{padding:12px 14px;border-radius:7px;border:1px solid #c6decb;background:#edf6ef;font-size:14px;overflow-wrap:anywhere}
.cp-status[hidden]{display:none}
.cp-status[data-error="true"]{border-color:#e5b8b3;background:#fff4f2;color:#8c302b}
.cp-import-note{border-left:3px solid var(--tf-gold,#b59a60);padding:8px 12px;background:#faf7ef;font-size:14px;overflow-wrap:anywhere}
.cp-dirty{font-size:14px;color:#866125}
.cp-panel .rt-search-select-list{max-height:min(280px,45dvh)}
.cp-panel [data-cp-base-picker]:empty{display:none}
.cp-panel .rlp-panel{margin:0}
.cp-panel .cp-link{padding:4px 0;min-height:32px;font-size:14px}
.cp-panel .tf-button[aria-pressed="true"]{background:var(--tf-green,#143f36);border-color:var(--tf-green,#143f36);color:#fff}
.cp-panel .tf-button{white-space:normal;overflow-wrap:normal;line-height:1.35;min-height:44px;max-width:100%;touch-action:manipulation}
.cp-panel .tf-field>span{overflow-wrap:normal;line-height:1.4}
.cp-city-currency{display:grid;gap:10px;padding-top:16px;border-top:1px solid var(--tf-line,#dce4df)}
.cp-city-currency .tf-button{justify-self:start}
.cp-city-currency p,.cp-new-city p{margin:0}
.cp-new-city{display:grid;gap:14px}
.cp-new-city .tf-field{margin:0}
.cp-archived-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--tf-line,#dce4df);overflow-wrap:anywhere}
.cp-archived-row:last-child{border-bottom:0}
.cp-archived-row .tf-button{flex-shrink:0}
.cp-panel .cp-danger{color:#8e3f38;border-color:#d8aaa3;background:#fff8f6}
.cp-delete-confirm{padding:14px;border:1px solid #d8aaa3;border-radius:8px;background:#fff8f6;color:#76362f;line-height:1.5}
.cp-delete-confirm p{font-size:14px;margin:8px 0 12px}
.cp-hourly{padding-top:14px}
.cp-hourly p,.cp-diagnostics p{margin:0}
.cp-diagnostics{border-color:#d2a165;background:#fff9ef}
.cp-diagnostics ul{margin:0;padding-left:20px;display:grid;gap:10px}
.cp-diagnostics li{line-height:1.5;overflow-wrap:anywhere}
.cp-diagnostics li>span{display:block}
.cp-diagnostics .tf-link{padding:3px 0;min-height:34px;text-align:left}
.cp-airport-amount{display:grid;gap:4px}
.cp-airport-amount>.tf-link{font-size:12px;min-height:34px;text-align:left}
.cp-panel input[aria-invalid="true"]{border-color:#b42318;outline:2px solid #b42318;outline-offset:2px}
@media(max-width:760px){
 .cp-panel{gap:14px}.cp-panel .tf-card{padding:16px}.cp-context{grid-template-columns:1fr;gap:18px}.cp-base{border-left:0;border-top:1px solid var(--tf-line,#dce4df);padding:18px 0 0}.cp-scope-row{align-items:stretch}.cp-scope-label{flex-basis:100%}.cp-scope-buttons{flex:1 1 260px}.cp-scope-country{flex:1 1 170px;max-width:none}.cp-price-heading{align-items:start}.cp-save-actions{width:100%}.cp-save-actions .tf-button{flex:1 1 200px;min-height:44px}.cp-category-tabs .tf-button{flex-basis:calc(50% - 8px)}.cp-matrix-row{grid-template-columns:minmax(0,.95fr) repeat(3,minmax(0,1fr));gap:8px;padding-inline:6px}.cp-money{padding-inline:6px}.cp-matrix-header>strong{font-size:14px}.cp-role-check{gap:5px;font-size:13px}.cp-role-check input{width:17px;height:17px;flex-basis:17px}.cp-base .tf-button{min-height:44px}.cp-source-badge{font-size:14px}
}
@media(max-width:430px){
 .cp-panel .tf-card{padding:12px}.cp-panel h2{font-size:24px}.cp-matrix-row{gap:5px;padding-inline:2px}.cp-segment-heading>.cp-row-label{grid-column:1/-1}.cp-segment-heading .cp-role-check:nth-child(2){grid-column:2}.cp-matrix-header>strong{font-size:13px}.cp-row-label{font-size:13px}.cp-money{padding-inline:4px;gap:2px}.cp-money>span{font-size:12px}.cp-money input{font-size:16px}.cp-currency{max-width:none;width:100%}.cp-extra-grid{grid-template-columns:1fr}.cp-source{align-items:flex-start}.cp-meta{gap:5px 12px;padding:10px 12px}.cp-role-state{font-size:12px}.cp-role-check span{overflow-wrap:anywhere}.cp-category-tabs .tf-button{font-size:15px}
}
/* Phones retain three clear party columns; the description gets its own row. */
@media(max-width:600px){
 .cp-matrix-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:10px 0}
 .cp-matrix-row>.cp-row-label,.cp-matrix-row>.cp-role-state{grid-column:1/-1;font-size:14px;overflow-wrap:normal}
 .cp-matrix-header{padding:10px 6px;text-align:center}
 .cp-matrix-header>strong:first-child{display:none}
 .cp-matrix-header>strong{font-size:14px;overflow-wrap:normal;word-break:normal}
 .cp-segment-heading{padding:12px 6px}
 .cp-segment-heading .cp-role-check:nth-child(2){grid-column:auto}
 .cp-role-check{flex-direction:column;justify-content:center;gap:5px;min-height:44px;font-size:13px;text-align:center}
 .cp-role-check input{width:20px;height:20px;flex-basis:20px}
 .cp-role-check span{overflow-wrap:normal;word-break:normal}
 .cp-money{min-height:44px;padding-inline:5px;gap:3px}
 .cp-money input{min-height:42px;padding-block:8px}
 .cp-panel .tf-actions{display:flex;flex-wrap:wrap}
 .cp-panel .tf-actions>.tf-button{flex:1 1 140px}
 .cp-city-currency .tf-button{justify-self:stretch}
 .cp-archived-row{align-items:start;flex-wrap:wrap}
 .cp-archived-row>span{flex:1 1 150px}
 .cp-extra-grid{grid-template-columns:1fr}
}
@media(max-width:360px){
 .cp-matrix-header{column-gap:6px;padding-inline:4px}
 .cp-matrix-header>strong{font-size:13px}
}
/* Booking revenue is rendered only from the authorized frozen allocation. */
.tf-revenue-allocation .tf-card-head{align-items:flex-start;gap:20px}
.tf-revenue-allocation .tf-card-head>div:first-child{min-width:0;flex:1}
.tf-revenue-allocation .tf-card-head p{max-width:70ch;margin-bottom:0}
.tf-revenue-total{display:grid;gap:4px;text-align:right;flex-shrink:0}
.tf-revenue-total>strong{font-size:24px;font-variant-numeric:tabular-nums}
.tf-revenue-shares{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0 0}
.tf-revenue-shares>div{padding:16px;border:1px solid var(--tf-line,#dce4df);border-radius:10px;min-width:0}
.tf-revenue-shares dt,.tf-revenue-components dt{font-size:14px;overflow-wrap:anywhere}
.tf-revenue-shares dd{margin:8px 0 0;font-size:24px;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.tf-revenue-components{border-top:1px solid var(--tf-line,#dce4df);margin-top:20px;padding-top:16px}
.tf-revenue-components h3{margin:0 0 12px;font-size:16px}
.tf-revenue-components dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}
.tf-revenue-components dd{margin:4px 0 0;font-weight:600;font-variant-numeric:tabular-nums}
.tf-revenue-components p{margin:12px 0 0;font-size:13px}
.tf-revenue-pending{font-size:14px;font-weight:400;color:var(--tf-muted,#536b66)}
@media(max-width:600px){
 .tf-revenue-allocation .tf-card-head{flex-direction:column;gap:14px}
 .tf-revenue-total{text-align:left}
 .tf-revenue-shares{grid-template-columns:1fr;gap:8px}
 .tf-revenue-shares>div{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:8px 16px;padding:12px}
 .tf-revenue-shares dt{flex:1 1 140px}
 .tf-revenue-shares dd{margin:0;font-size:21px}
 .tf-revenue-components dl{grid-template-columns:1fr}
}
.cp-region-tabs{display:flex;flex-wrap:wrap;gap:.65rem;margin:1rem 0}.cp-region-tabs [aria-pressed="true"]{outline:2px solid currentColor;outline-offset:2px}.cp-euro-info{margin-block:1rem}.cp-euro-info p{max-width:76ch;line-height:1.6}
/* All five commercial roles stay aligned; small screens scroll this table only. */
.cp-allocation-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;border-radius:7px}
.cp-allocation-scroll:focus-visible{outline:3px solid var(--tf-gold,#b59a60);outline-offset:3px}
.cp-allocation-matrix{min-width:950px}
.cp-allocation-matrix .cp-matrix-row{grid-template-columns:minmax(150px,1.2fr) repeat(5,minmax(130px,1fr));gap:12px;padding:10px;align-items:center}
.cp-allocation-matrix .cp-matrix-header>strong:first-child{display:block}
.cp-allocation-matrix .cp-row-label,.cp-allocation-matrix .cp-role-state{grid-column:auto}
.cp-allocation-matrix .cp-segment-heading .cp-role-check:nth-child(2){grid-column:auto}
.cp-allocation-matrix .cp-role-check{flex-direction:row;align-items:center;justify-content:flex-start}
.cp-allocation-cell{display:grid;gap:8px;align-content:start}
.cp-allocation-cell .tf-field,.cp-allocation-cell .cp-note{margin:0}
.cp-allocation-cell .cp-note{font-size:13px;line-height:1.45}
.cp-allocation-matrix .cp-allocation-controls{align-items:start;padding-top:16px;background:#f8faf6}
.cp-allocation-switch{grid-column:span 2}
.cp-allocation-matrix .cp-matrix-header>strong{font-size:16px}
.cp-distribution{padding-top:14px}
.cp-distribution p{margin:0}
.cp-distribution>.cp-role-check{flex-direction:row;justify-content:flex-start;text-align:left}
