.rfca{--rfca-primary:#124777;--rfca-accent:#328574;--rfca-border:#cad4df;--rfca-soft:#f3f5f7;--rfca-red:#873443;max-width:1400px;margin:0 auto;padding:18px 0;color:#18334c;font-family:inherit;font-size:15px}
.rfca *{box-sizing:border-box}.rfca a{color:var(--rfca-primary)}.rfca h1{font-size:28px;line-height:1.25;margin:0}.rfca h2{font-size:21px;margin:18px 0 10px}.rfca h3{font-size:18px;margin:10px 0}.rfca .rfca-title{border-bottom:3px solid var(--rfca-primary);padding-bottom:14px}.rfca-title small{display:block;margin-top:6px;color:#63758a}
.rfca-nav{display:flex;flex-wrap:wrap;gap:7px;border-bottom:1px solid var(--rfca-border);padding:14px 0}.rfca-nav a{text-decoration:none;display:inline-block;border:1px solid var(--rfca-border);padding:7px 11px;border-radius:4px;background:#fff;color:var(--rfca-primary);font-weight:600;font-size:13px}.rfca-nav a:hover{background:#eef4f7}.rfca-nav a.rfca-active{background:#dfe6ed;color:#586775;pointer-events:none}
.rfca-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.rfca-stats>div{border:1px solid var(--rfca-border);padding:14px;border-radius:5px;background:#f8fafb}.rfca-stats strong{display:block;font-size:28px;color:var(--rfca-primary)}.rfca-stats span{font-size:13px;color:#63758a}
.rfca .rfca-btn,.rfca button.rfca-btn{background:var(--rfca-primary);color:white;border:1px solid var(--rfca-primary);padding:9px 15px;font:inherit;font-size:14px;font-weight:600;border-radius:4px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.rfca .rfca-btn:hover{background:#29618c;color:white}.rfca .rfca-btn-secondary{background:#fff;color:var(--rfca-primary)}.rfca .rfca-btn-secondary:hover{background:#f4f7fa;color:var(--rfca-primary)}.rfca-heading{display:flex;justify-content:space-between;gap:15px;align-items:center}.rfca-heading h2{margin:10px 0}.rfca-link{font-weight:600;text-decoration:underline}
.rfca-scroll{overflow:auto;max-width:100%;border:1px solid var(--rfca-border);border-radius:5px}.rfca-table{width:100%;border-collapse:collapse;font-size:13px;background:#fff;margin:0}.rfca-table th{white-space:nowrap;text-align:left;background:#e8edf2;color:var(--rfca-primary);font-weight:700}.rfca-table th,.rfca-table td{padding:8px 9px;border-bottom:1px solid #dce3eb;vertical-align:middle}.rfca-table tr:hover td{background:#f8fafc}.rfca-table .rfca-center{text-align:center}.rfca-table input[type=checkbox]{width:18px;height:18px;accent-color:var(--rfca-accent);cursor:pointer}.rfca-table tr:last-child td{border-bottom:0}
.rfca-hint{color:#5b6f82;font-size:13px;margin:6px 0 14px}.rfca-filter{display:flex;flex-wrap:wrap;gap:9px;align-items:flex-end;margin:12px 0;padding:12px;background:var(--rfca-soft);border:1px solid var(--rfca-border);border-radius:4px}.rfca-filter label{display:flex;gap:4px;flex-direction:column;font-size:12px;font-weight:600}.rfca-filter input,.rfca-filter select{font:inherit;font-size:14px;padding:7px;min-height:37px;background:#fff;border:1px solid #b7c6d4;border-radius:3px;color:#173753}.rfca-pager{display:flex;align-items:center;gap:20px;padding:12px;color:#526479;font-size:13px}
.rfca-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.rfca-editor{background:var(--rfca-soft);padding:16px;border:1px solid var(--rfca-border);border-radius:5px}.rfca-field{min-width:0;display:flex;flex-direction:column;gap:4px}.rfca-field label{font-weight:600;font-size:13px}.rfca-field input,.rfca-field select,.rfca-field textarea{max-width:100%;min-height:38px;font:inherit;font-size:14px;padding:7px 9px;background:#fff;color:#173753;border:1px solid #b7c6d4;border-radius:3px}.rfca-field small{color:#66788b;font-size:12px}.rfca-field .rfca-locked{background:#e7ebef}.rfca-actions{display:flex;flex-wrap:wrap;align-items:center;gap:13px;margin-top:16px}.rfca-actions span{font-size:12px;color:#718294}.rfca-footer{border-top:1px solid var(--rfca-border);font-size:12px;color:#6c7d8e;padding-top:12px;margin-top:25px}.rfca-notice{margin:14px 0;padding:11px 13px;border-left:4px solid}.rfca-success{background:#eef8f2;border-color:#278662}.rfca-error{background:#fff2f2;border-color:var(--rfca-red)}
.rfca-matrix{min-width:750px}.rfca-price-table{min-width:900px}.rfca-price-table th:not(:first-child){text-align:center}.rfca-price-table .rfca-sticky{position:sticky;left:0;z-index:2;background:#eaf0f4;min-width:215px;width:215px;max-width:260px}.rfca-price-table tbody td.rfca-sticky{background:#fff}.rfca-price-table td.rfca-sticky small{display:block;font-size:11px;color:#657789;margin-top:2px}.rfca-price-table .rfca-rate{width:76px;min-width:76px;font-size:13px;padding:6px 4px;border:1px solid #b8c9d8;border-radius:2px;text-align:right;font-variant-numeric:tabular-nums}.rfca-price-table .rfca-num{text-align:right;font-variant-numeric:tabular-nums}.rfca-muted{color:#8998a6}

/* Panel administratora przeznaczony wyłącznie do pracy na komputerze. */
.rfca{max-width:1600px;min-width:1100px}
.rfca-filter{align-items:end;gap:12px}
.rfca-filter label{min-width:165px}
.rfca-filter label:has(input[type=search]){min-width:220px}
.rfca-filter input[type=search],.rfca-filter select{width:100%;height:42px;min-height:42px;margin:0;box-sizing:border-box}
.rfca-filter .rfca-btn{height:42px;align-self:end;margin:0}
.rfca-fields{grid-template-columns:repeat(4,minmax(0,1fr))}
.rfca-field.rfca-invalid input,.rfca-field.rfca-invalid select,.rfca-field.rfca-invalid textarea{border:2px solid #873443!important;background:#fff4f4!important;box-shadow:0 0 0 2px rgba(135,52,67,.12)}
.rfca-field-error{color:#873443!important;font-size:12px;font-weight:700}
.rfca-icon-btn{display:inline-flex;justify-content:center;align-items:center;width:33px;height:33px;border:1px solid #a1b4c9;border-radius:3px;color:var(--rfca-primary)!important;background:#fff;text-decoration:none!important;font-size:20px;line-height:1}
.rfca-icon-btn:hover{background:#edf3f7}
.rfca-actions-cell{white-space:nowrap;text-align:center}
.rfca-pager{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.rfca-pager>span:first-child{margin-right:10px}
.rfca-page{height:32px;min-width:32px;padding:3px 7px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #b6c7d5;color:var(--rfca-primary)!important;background:#fff;border-radius:3px;text-decoration:none!important;font-weight:700}
.rfca-page-current{background:var(--rfca-primary);color:#fff!important}
.rfca-family-heading th{text-align:right!important;background:#f0f3f6!important;border-top:2px solid #cad4df;font-size:13px}
.rfca-family-heading small{font-size:11px;font-weight:400;color:#75859a}
.rfca-name-right{text-align:right!important}
.rfca-matrix td:first-child,.rfca-matrix th:first-child,.rfca-matrix td:nth-child(2),.rfca-matrix th:nth-child(2){text-align:center}
.rfca-price-preview{white-space:nowrap;font-size:12px;color:#405e78}
.rfca-matrix .rfca-recommend-box{accent-color:#8e9aa4!important}
.rfca-matrix .rfca-preset-box{accent-color:#26835b!important}
.rfca-unrecommended-divider th{background:#dbe7f3!important;color:#19476d!important;text-align:left!important;padding:11px 14px}
.rfca-unrecommended{background:#f4f6f8}
.rfca-recommend-box{filter:grayscale(1)}
.rfca-repeat-heading th{background:#d8e6f2!important;text-align:center!important;position:sticky;top:0}
.rfca-price-badge{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:3px;font-weight:750;color:#fff}
.rfca-badge-s{background:#88939e}
.rfca-badge-z{background:#17629b}
.rfca-price-hint{display:block;font-size:11px;color:#637488;margin-top:3px}
.rfca-entry-table{min-width:980px}
.rfca-entry-table td .rfca-rate{min-width:125px;width:125px}
.rfca-entry-table td:nth-child(3){min-width:260px}
.rfca-preview{max-width:900px}
.rfca-preview th{width:210px}
/* 0.2.1: admin wyłącznie na desktopie. Produkty i pakiety wiekowe. */
.rfca .rfca-product-editor{background:#fff;padding:0;border:0}
.rfca .rfca-top-actions{display:flex;gap:9px;align-items:center}
.rfca .rfca-field-section{border:1px solid #cbd7e1;background:#f8fafb;margin:13px 0 16px;padding:15px 18px;border-radius:3px}
.rfca .rfca-field-section h4{margin:0 0 14px;color:var(--rfca-primary);font-size:16px;border-bottom:1px solid #dce4ec;padding-bottom:9px}
.rfca .rfca-preview-value{background:#fff;border:1px solid #dae3ed;padding:8px 10px;min-height:40px;font-size:14px;border-radius:3px}
.rfca .rfca-products-table small{font-size:11px;color:#8494a3;font-weight:400}
.rfca .rfca-products-table strong{font-weight:700}
.rfca .rfca-products-table .rfca-nowrap,.rfca .rfca-products-table .rfca-age{white-space:nowrap}
.rfca .rfca-preset-heading{background:#f0f5f8;border-left:3px solid var(--rfca-primary);padding:11px 13px;margin:20px 0 0;font-size:16px}
.rfca .rfca-preset-table{min-width:1050px}
.rfca .rfca-preset-table td:nth-child(1),.rfca .rfca-preset-table td:nth-child(2),.rfca .rfca-preset-table td:nth-child(4){text-align:center}
.rfca .rfca-preset-table .rfca-price-preview{font-size:13px;font-weight:400}
.rfca .rfca-preset-table .rfca-price-preview strong{font-weight:750;color:#173a59}
.rfca .rfca-preset-table .rfca-variant-title td,.rfca .rfca-preset-table .rfca-variant-title th{background:#fff!important;border-bottom:0!important}
.rfca .rfca-preset-table .rfca-variant-title .rfca-variant-label{text-align:right!important;font-weight:750;color:var(--rfca-primary);font-size:13px}
.rfca .rfca-preset-table .rfca-variant-title .rfca-variant-empty{background:#fff;border-bottom:0}
.rfca .rfca-preset-table tr.rfca-variant-option:not(:has(+ tr:not(.rfca-variant-option))) td{border-bottom:1px solid #dce3eb}
.rfca .rfca-preset-table tr.rfca-variant-option:has(+ tr.rfca-variant-option) td{border-bottom:0}
.rfca .rfca-preset-table .rfca-area-gap td{padding:0!important;height:10px;border:0!important;background:#fff!important}
.rfca .rfca-preset-table tr.rfca-model-warning td,.rfca .rfca-preset-table tr.rfca-model-warning:hover td{background:#fff0f1!important}
.rfca .rfca-preset-table tr.rfca-model-secondary td{background:#fbf7f7}
.rfca .rfca-preset-table tr.rfca-model-secondary:hover td{background:#fcf0f1}
.rfca .rfca-model-details{margin:22px 0 0;border:1px solid #d9c4cb;border-radius:4px;padding:0;background:#fff}
.rfca .rfca-model-details>summary{background:#f7eff1;color:#743545;font-weight:700;padding:12px 15px;cursor:pointer;font-size:15px}
.rfca .rfca-model-details .rfca-scroll{border-radius:0;border:0;border-top:1px solid #d9c4cb}
.rfca .rfca-preset-copy{margin-top:22px;padding:17px;border-top:2px solid #b7cbd9}
.rfca .rfca-confirm{background:#f7f9fb;border:1px solid #cad5df;padding:20px;margin:18px 0}
.rfca .rfca-confirm .rfca-notice{color:#843c4a;font-weight:600}
.rfca .rfca-matrix .rfca-name-right{font-weight:500}
.rfca .rfca-preset-table .rfca-model-warning td:nth-child(3){color:#873443}

/* 0.2.3 — Grupy ochrony i szeroka macierz dostępności wieku (panel desktop). */
.rfca .rfca-group-name strong{font-weight:750;color:#153f64}
.rfca .rfca-group-name small{font-weight:400;font-size:12px;color:#8998a8}
.rfca .rfca-access-controls{display:flex;justify-content:flex-end;align-items:center;margin:8px 0 12px}
.rfca .rfca-price-toggle{display:inline-flex;align-items:center;gap:9px;font-size:13px;font-weight:650;cursor:pointer;color:#36516a}
.rfca .rfca-price-toggle input{appearance:none;-webkit-appearance:none;width:40px;height:22px;background:#aeb8c3;border-radius:16px;position:relative;cursor:pointer;transition:background .15s;margin:0}
.rfca .rfca-price-toggle input:before{content:'';width:16px;height:16px;position:absolute;left:3px;top:3px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #0003;transition:transform .15s}
.rfca .rfca-price-toggle input:checked{background:#328574}
.rfca .rfca-price-toggle input:checked:before{transform:translateX(18px)}
.rfca .rfca-price-toggle input:focus-visible{outline:2px solid #124777;outline-offset:2px}
.rfca .rfca-access-table{min-width:1170px}
.rfca .rfca-access-table thead th{text-align:center}
.rfca .rfca-access-table thead th:nth-child(3){text-align:right}
.rfca .rfca-access-table .rfca-access-choice{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:49px}
.rfca .rfca-access-table .rfca-access-choice input[type=checkbox]{flex:0 0 auto;margin:0}
.rfca .rfca-access-table .rfca-access-price{font-size:12px;color:#607b92;font-weight:400;line-height:1.1;font-variant-numeric:tabular-nums;white-space:nowrap}
.rfca .rfca-access-table .rfca-access-price-none{color:#b4bfc9}
.rfca .rfca-access-table.rfca-prices-hidden .rfca-access-price{display:none}
.rfca .rfca-access-table.rfca-prices-hidden .rfca-access-choice{min-height:29px}
.rfca .rfca-access-table .rfca-access-area th{background:#eaf0f4;color:#124777;text-align:left;padding:10px 12px}
.rfca .rfca-access-table .rfca-area-gap td{height:10px;padding:0;border:0!important;background:#fff!important}
.rfca .rfca-access-table .rfca-access-family th{background:#fff;text-align:right!important;color:#153f64;font-weight:700;border-bottom:0!important}
.rfca .rfca-access-table .rfca-access-family td.rfca-access-family-empty{background:#fff;border-bottom:0!important}
.rfca .rfca-access-table .rfca-access-option:has(+ .rfca-access-option) td{border-bottom-color:transparent}
.rfca .rfca-access-table tr.rfca-access-option td:nth-child(3){text-align:right}

/* 0.2.4 — produkty, umowy, pakiety i mnożniki: układ desktopowy. */
.rfca .rfca-products-table th:nth-child(4),.rfca .rfca-products-table th:nth-child(5),.rfca .rfca-products-table th:nth-child(6){white-space:nowrap}
.rfca .rfca-products-table td:nth-child(4),.rfca .rfca-products-table td:nth-child(5),.rfca .rfca-products-table td:nth-child(6){white-space:nowrap}
.rfca .rfca-products-table td:nth-child(5) small{font-weight:400;color:#77899a}
.rfca .rfca-products-table td:nth-child(6) strong{font-variant-numeric:tabular-nums}
.rfca .rfca-rider-family td,.rfca .rfca-rider-family th,.rfca .rfca-rider-family:hover td{background:#fff!important;color:#173a59;font-size:13px;font-weight:700;border-bottom:0!important}
.rfca .rfca-rider-family th{text-align:right!important}
.rfca .rfca-rider-option{font-size:13px;color:#18334c}
.rfca .rfca-variant-title td,.rfca .rfca-variant-title th{font-size:13px!important;color:#18334c!important;font-variant:normal!important;text-transform:none!important}
.rfca .rfca-preset-table .rfca-variant-title .rfca-variant-label{color:#173a59!important;font-size:13px!important;font-weight:700!important}
.rfca .rfca-preset-table tr.rfca-model-warning td,.rfca .rfca-preset-table tr.rfca-model-warning:hover td{background:#fff0f1!important}
.rfca .rfca-rule-factor{font-variant-numeric:tabular-nums}
.rfca .rfca-rule-factor span{color:#a3aeb8;font-weight:400}
.rfca .rfca-rule-factor strong{font-weight:750;color:#173a59}
.rfca .rfca-rate-rounded{text-align:right}
/* 0.2.5 — wyłącznie panel administracyjny na komputerze. */
.rfca .rfca-scroll:has(> .rfca-table){max-height:69vh;overflow:auto;position:relative;overscroll-behavior:contain}
.rfca .rfca-scroll .rfca-table{border-collapse:separate;border-spacing:0}
.rfca .rfca-scroll .rfca-table>thead>tr>th{position:sticky;top:0;z-index:5;background:#e6edf3;box-shadow:inset 0 -1px 0 #cbd7e2}
.rfca .rfca-scroll .rfca-table>thead>tr>th.rfca-sticky{z-index:6}
.rfca .rfca-scroll .rfca-table th,.rfca .rfca-scroll .rfca-table td{box-sizing:border-box}
.rfca .rfca-products-table td:nth-child(6) small{font-size:11px;font-weight:400;color:#8796a6}
.rfca .rfca-products-table td:nth-child(6) strong{font-weight:700}
.rfca .rfca-products-table .rfca-age small{color:#8a9ba9}
.rfca .rfca-products-table td:nth-child(5):empty{background:#fff}
.rfca .rfca-rider-family th.rfca-name-right{font-size:14px!important;font-weight:750!important;color:#153f64!important}
.rfca .rfca-rider-family td:nth-child(2){font-weight:400!important;color:#405d74!important}
.rfca .rfca-rider-single strong{font-size:13px;font-weight:750;color:#173a59}
.rfca .rfca-rider-option{font-size:13px;font-weight:400!important;color:#34516a}
.rfca .rfca-field-wide{grid-column:span 2}
.rfca .rfca-field-wide textarea{width:100%;min-height:116px;resize:vertical;line-height:1.45}
.rfca .rfca-required{color:#923546;font-weight:800}
.rfca .rfca-field label{display:block}
.rfca .rfca-price-table .rfca-repeat-heading{display:none}

/* 0.2.6 — jawne nazwy wariantów (::), jedna linia filtrów, krótsza macierz wieku */
.rfca .rfca-rider-family .rfca-rider-product,
.rfca .rfca-variant-title .rfca-family-product,
.rfca .rfca-access-family .rfca-family-product{
  text-align:left!important; font-size:13px!important; font-weight:400!important;
  color:inherit!important; background:#fff!important; letter-spacing:normal!important;
}
.rfca .rfca-rider-family th,.rfca .rfca-variant-title th,
.rfca .rfca-access-family th{font-family:inherit!important;font-variant:normal!important;text-transform:none!important;letter-spacing:normal!important}
.rfca .rfca-rider-family th.rfca-name-right,
.rfca .rfca-variant-title th.rfca-variant-label,
.rfca .rfca-access-family th.rfca-name-right{font-weight:700!important;font-size:13px!important;color:#18334c!important}
/* Dopasowanie wszystkich siedmiu przedziałów bez wymuszonego przewijania poziomego. */
.rfca .rfca-access-table{width:100%;min-width:0!important;table-layout:fixed}
.rfca .rfca-access-table th:nth-child(1),.rfca .rfca-access-table td:nth-child(1){width:66px}
.rfca .rfca-access-table th:nth-child(2),.rfca .rfca-access-table td:nth-child(2){width:72px}
.rfca .rfca-access-table th:nth-child(3),.rfca .rfca-access-table td:nth-child(3){width:31%;min-width:0;white-space:normal;overflow-wrap:break-word}
.rfca .rfca-access-table th:nth-child(n+4),.rfca .rfca-access-table td:nth-child(n+4){width:auto;padding:7px 3px;text-align:center;white-space:nowrap}
.rfca .rfca-access-table thead th:nth-child(n+4){font-size:11px;letter-spacing:-.15px}
.rfca .rfca-access-table .rfca-access-choice{min-height:44px}
.rfca .rfca-access-table tr.rfca-access-family td:nth-child(2){width:72px}
.rfca .rfca-access-table tr.rfca-access-family th:nth-child(3){text-align:right!important}
/* Kompaktowe filtry modelowych pakietów — także przy komputerze 1100px. */
.rfca .rfca-filter-presets{display:flex;flex-wrap:nowrap;align-items:end;gap:9px;width:100%;padding:12px}
.rfca .rfca-filter-presets label{min-width:0!important;flex:0 1 auto}
.rfca .rfca-filter-presets label:nth-of-type(1){flex:1.4 1 26%}
.rfca .rfca-filter-presets label:nth-of-type(2){flex:0.85 1 16%}
.rfca .rfca-filter-presets label:nth-of-type(3){flex:1 1 24%}
.rfca .rfca-filter-presets label:nth-of-type(4){flex:0.7 1 14%}
.rfca .rfca-filter-presets input,.rfca .rfca-filter-presets select{width:100%;min-width:0;max-width:100%}
.rfca .rfca-filter-presets .rfca-btn{flex:0 0 auto;min-width:82px}
.rfca .rfca-primary-presets{margin-top:12px}

/* 0.2.7 — przełącznik 0/1 w edycji umów dodatkowych. */
.rfca .rfca-toggle-control{display:flex;align-items:center;gap:9px;min-height:38px}
.rfca .rfca-toggle-control input.rfca-toggle-input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.rfca .rfca-toggle-control label.rfca-toggle-track{position:relative;display:inline-block;flex:0 0 42px;width:42px;height:24px;background:#aab5be;border-radius:13px;cursor:pointer;transition:background .15s ease}
.rfca .rfca-toggle-control label.rfca-toggle-track:before{content:'';position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003;transition:transform .15s ease}
.rfca .rfca-toggle-control input.rfca-toggle-input:checked+label.rfca-toggle-track{background:#328574}
.rfca .rfca-toggle-control input.rfca-toggle-input:checked+label.rfca-toggle-track:before{transform:translateX(18px)}
.rfca .rfca-toggle-control input.rfca-toggle-input:focus-visible+label.rfca-toggle-track{outline:2px solid #124777;outline-offset:3px}
.rfca .rfca-toggle-control .rfca-toggle-text{font-weight:700;font-size:13px;color:#657689}
.rfca .rfca-toggle-control .rfca-toggle-yes{display:none;color:#236d60}
.rfca .rfca-toggle-control input.rfca-toggle-input:checked~.rfca-toggle-yes{display:inline}
.rfca .rfca-toggle-control input.rfca-toggle-input:checked~.rfca-toggle-no{display:none}

/* 0.2.9 — konto, kontrola spójności i teksty */
.rfca .rfca-text-editor{display:grid;gap:6px;max-width:1050px;margin:14px 0 20px}
.rfca .rfca-text-editor textarea{width:100%;min-height:82px;resize:vertical;font:inherit;line-height:1.4;padding:9px}
.rfca .rfca-text-editor code{font-size:11px;color:#798995;font-weight:400}
.rfca .rfca-table input[type="date"]{max-width:172px}

/* 0.3.2 — kolumny umów, reguły, neutralne nagłówki modeli */
.rfca .rfca-rule-factor,.rfca .rfca-rule-factor .rfca-factor-nowrap{white-space:nowrap!important}
.rfca .rfca-factor-prefix{color:#8e9aa7;font-weight:400;padding:0;margin:0}
.rfca .rfca-factor-nowrap{display:inline-block;white-space:nowrap}
.rfca .rfca-factor-nowrap strong{white-space:nowrap}
.rfca .rfca-rider-rate{white-space:nowrap;font-size:12px}
.rfca .rfca-rider-rate small{color:#6a7c8d;font-size:11px;font-weight:400}
.rfca .rfca-model-details{border-color:#cbd6e0!important;background:#fff!important}
.rfca .rfca-model-details>summary{background:#eaf0f5!important;border-color:#cbd6e0!important;color:#173d61!important}
.rfca .rfca-model-details[open]>summary{background:#e5edf4!important;color:#173d61!important}
.rfca .rfca-secondary-presets tbody tr:not(.rfca-model-warning):not(.rfca-row-modified) td{background:#fff!important}
.rfca .rfca-filter:not(.rfca-filter-presets){gap:9px}
.rfca .rfca-filter:not(.rfca-filter-presets) label{min-width:125px}
.rfca .rfca-filter:not(.rfca-filter-presets) label:has(input[type=search]){min-width:170px}

/* 0.3.3 — osobna, nieedytowalna tabela niedostępnych; zachowanie checkboxów. */
.rfca .rfca-unavailable-details{border-color:#cad4df!important}
.rfca .rfca-unavailable-details>summary{background:#e8eef4!important;color:#183b5b!important;border-color:#cad4df!important}
.rfca .rfca-unavailable-table{width:100%!important;min-width:0!important;table-layout:fixed}
.rfca .rfca-unavailable-table th:first-child,.rfca .rfca-unavailable-table td:first-child{width:78px;text-align:center}
.rfca .rfca-unavailable-table th:nth-child(2),.rfca .rfca-unavailable-table td:nth-child(2){width:105px;text-align:center}
.rfca .rfca-unavailable-table th:nth-child(3),.rfca .rfca-unavailable-table td:nth-child(3){text-align:left!important}
.rfca .rfca-unavailable-table .rfca-unavailable-parent th{border-bottom:0!important;background:#fff!important;font-weight:750;color:#173d61!important;text-align:left!important}
.rfca .rfca-unavailable-table .rfca-unavailable-family tr:last-child td{border-bottom:1px solid #dce3eb}
.rfca .rfca-unavailable-table .rfca-area-gap td{height:12px;padding:0;border:0;background:white}
.rfca .rfca-preset-form .rfca-row-modified td,.rfca .rfca-preset-form .rfca-row-modified:hover td{background:#e9f7ef!important;box-shadow:inset 0 1px 0 #b5d8c3,inset 0 -1px 0 #b5d8c3}
.rfca .rfca-preset-form .rfca-dirty-alert{color:#246a4e;border-color:#3e9974;background:#eef9f2;font-weight:650}
.rfca .rfca-preset-form .rfca-dirty-inline{color:#236d52;font-weight:700}
.rfca .rfca-preset-form .rfca-preset-dirty-alert[hidden]{display:none!important}
.rfca .rfca-activation-date strong{font-weight:750;color:#153f64}
.rfca .rfca-activation-time{font-weight:400;color:#687c8e}
/* Kompaktowe kolumny cen: nie rozpychają tabeli w poziomie na komputerze. */
.rfca .rfca-price-scroll .rfca-price-table{width:100%;min-width:0!important;table-layout:fixed}
.rfca .rfca-price-scroll .rfca-price-table th:first-child,
.rfca .rfca-price-scroll .rfca-price-table td:first-child{width:250px;min-width:0!important;max-width:250px}
.rfca .rfca-price-scroll .rfca-price-table th:nth-child(2),
.rfca .rfca-price-scroll .rfca-price-table td:nth-child(2){width:48px}
.rfca .rfca-price-scroll .rfca-price-table th:nth-child(n+3),
.rfca .rfca-price-scroll .rfca-price-table td:nth-child(n+3){width:auto;min-width:0;padding:6px 2px;text-align:center}
.rfca .rfca-price-scroll .rfca-price-table input.rfca-rate{width:100%!important;min-width:0!important;max-width:58px;box-sizing:border-box;font-size:13px;text-align:right;padding:5px 3px}
.rfca .rfca-price-scroll .rfca-price-table td.rfca-sticky small{font-weight:400;font-size:11px;color:#7e91a2;line-height:1.25}

.rfca .rfca-price-table .rfca-price-family-heading td,
.rfca .rfca-price-table .rfca-price-family-heading:hover td{background:#fff!important;border-top:1px solid #cad5df!important;border-bottom:0!important;text-align:left!important;padding:9px 12px!important;color:#173a59!important}
.rfca .rfca-price-table .rfca-price-family-heading strong{font-weight:700;font-size:13px;font-variant:normal;text-transform:none}

/* 0.3.10 – porównanie cen dla sąsiednich wieków */
.rfca .rfca-entry-table{min-width:1000px}
.rfca .rfca-entry-table td:nth-child(2){min-width:250px}
.rfca .rfca-entry-table .rfca-price-family-heading td{text-align:left!important;background:#fff!important;color:#18334c!important;border-top:1px solid #cbd7e1!important;padding:9px 12px!important}
.rfca .rfca-entry-name{font-weight:750}
.rfca .rfca-entry-variant{font-weight:400}
.rfca .rfca-entry-reference{background:#f5f7f9;text-align:right;font-variant-numeric:tabular-nums;color:#42566b;white-space:nowrap}
.rfca .rfca-entry-fix{background:#88939e}
.rfca .rfca-entry-fxa{background:#83394a}
.rfca .rfca-entry-sua{background:#17629b}
.rfca .rfca-entry-sup{background:#2c8660}

/* Read-only FIX/SUP prices in age-based price entry table. */
.rfca td.rfca-entry-static { background: #f5f7f9; }
.rfca td.rfca-entry-static .rfca-entry-fixed {
    color: #587694;
    font-size: 1.13em;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* 0.3.20 - compact price editing columns, type follows prices */
.rfca .rfca-entry-table{width:auto;min-width:0;table-layout:auto}
.rfca .rfca-entry-table th,.rfca .rfca-entry-table td{padding-left:8px;padding-right:8px}
.rfca .rfca-entry-table th:nth-child(1),.rfca .rfca-entry-table td:nth-child(1){width:48px;min-width:48px}
.rfca .rfca-entry-table th:nth-child(2),.rfca .rfca-entry-table td:nth-child(2){width:340px;min-width:280px;max-width:450px}
.rfca .rfca-entry-table th:nth-child(3),.rfca .rfca-entry-table th:nth-child(4),.rfca .rfca-entry-table th:nth-child(5),
.rfca .rfca-entry-table td:nth-child(3),.rfca .rfca-entry-table td:nth-child(4),.rfca .rfca-entry-table td:nth-child(5){width:154px;min-width:154px}
.rfca .rfca-entry-table td .rfca-rate{width:125px;min-width:125px;max-width:125px}
.rfca .rfca-entry-table th:nth-child(6),.rfca .rfca-entry-table td:nth-child(6){width:54px;min-width:54px;max-width:54px;text-align:center}
.rfca .rfca-entry-table th:nth-child(7),.rfca .rfca-entry-table td:nth-child(7){width:155px;min-width:155px;white-space:nowrap}

/* 0.3.23 — nawigacja i filtry cen w jednym wierszu */
.rfca .rfca-nav{gap:5px;align-items:center}
.rfca .rfca-nav a{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:6px 9px;white-space:nowrap}
.rfca .rfca-price-filter{flex-wrap:nowrap;gap:8px;align-items:flex-end;width:100%;box-sizing:border-box}
.rfca .rfca-price-filter label,.rfca .rfca-price-filter label:has(input[type=search]){min-width:0!important;flex:0 0 auto}
.rfca .rfca-price-filter label:nth-of-type(1){width:180px}
.rfca .rfca-price-filter label:nth-of-type(2){width:150px}
.rfca .rfca-price-filter label:nth-of-type(3){width:170px}
.rfca .rfca-price-filter label:nth-of-type(4){width:116px}
.rfca .rfca-price-filter label:nth-of-type(5){width:106px}
.rfca .rfca-price-filter select,.rfca .rfca-price-filter input{box-sizing:border-box;width:100%;height:38px;min-height:38px;padding:5px 6px}
.rfca .rfca-price-filter .rfca-btn{height:38px}
.rfca .rfca-price-variant{font-weight:400!important}
.rfca .rfca-entry-product{display:block;font-weight:400;font-size:11px;color:#75899a;margin-top:3px}
.rfca .rfca-life-table{min-width:740px;table-layout:fixed}
.rfca .rfca-life-table th,.rfca .rfca-life-table td{text-align:center}
.rfca .rfca-life-table th.rfca-life-su{text-align:right!important;width:175px;color:#173b5d;font-weight:750;white-space:nowrap}
.rfca .rfca-life-table .rfca-life-rate{display:block;width:100%;max-width:145px;padding:8px;box-sizing:border-box;margin:auto;font:inherit;font-size:14px;text-align:right;border:1px solid #b7c6d4;border-radius:3px;color:#173753;background:#fff}
.rfca .rfca-life-table .rfca-life-rate::placeholder{color:#a3aebb;opacity:1}
.rfca .rfca-life-table .rfca-life-na{background:#f0f3f6;color:#a7b4c1;font-weight:500}
.rfca .rfca-life-filter{flex-wrap:nowrap}
.rfca .rfca-life-filter label{min-width:0}
.rfca .rfca-life-filter label:first-of-type{width:320px}
.rfca .rfca-life-filter label:nth-of-type(2){width:130px}
.rfca .rfca-life-filter select,.rfca .rfca-life-filter input{width:100%;box-sizing:border-box}
.rfca .rfca-life-grid-form .rfca-actions label{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:600}
.rfca .rfca-life-grid-form .rfca-actions input{width:165px;padding:8px;border:1px solid #bdcbd7;border-radius:3px}
.rfca-wp-texts{min-width:0;max-width:1100px}

.rfca .rfca-price-readonly{display:inline-block;box-sizing:border-box;min-width:56px;text-align:right;background:#f5f7f9;border:1px solid #e2e9ef;padding:6px 5px;border-radius:2px;color:#56748f;font-weight:650;font-variant-numeric:tabular-nums}

/* 0.3.24 — natural page scroll instead of internal vertical scrollbars */
.rfca .rfca-scroll,.rfca .rfca-scroll:has(> .rfca-table){
    max-height:none!important;
    height:auto!important;
    overflow-x:auto!important;
    overflow-y:visible!important;
    overscroll-behavior:auto!important;
}
/* Only the leading digits of whole SU are bold (100.000 => bold 100). */
.rfca .rfca-rule-factor .rfca-rule-remainder{font-weight:400!important;color:#173a59!important}
.rfca .rfca-access-table .rfca-access-option td:nth-child(3){font-weight:400}
.rfca .rfca-filter-limit{min-width:90px!important;max-width:95px;display:flex;flex-direction:column;gap:4px}
.rfca .rfca-filter-limit span{display:flex;align-items:center;justify-content:space-between;gap:5px}
.rfca .rfca-filter-limit span input[type=checkbox]{width:17px;height:17px;min-height:0;margin:0;accent-color:#328574}
.rfca .rfca-filter-limit input[type=number]{width:100%;min-width:0;height:42px;min-height:42px;margin:0}
.rfca .rfca-filter-presets .rfca-filter-limit{flex:0 0 92px!important}

/* 0.3.26 — pakiety: jasny szary dla Polecana i kolory zaznaczeń zależne od price_mode. */
.rfca .rfca-preset-table input.rfca-recommend-box{accent-color:#b8c4ce!important;filter:none!important}
.rfca .rfca-preset-table input.rfca-preset-box.rfca-price-mode-fix{accent-color:#88939e!important}
.rfca .rfca-preset-table input.rfca-preset-box.rfca-price-mode-fxa{accent-color:#83394a!important}
.rfca .rfca-preset-table input.rfca-preset-box.rfca-price-mode-sua{accent-color:#17629b!important}
.rfca .rfca-preset-table input.rfca-preset-box.rfca-price-mode-sup{accent-color:#2c8660!important}

/* Kalkulacje klientów — osobna sesja serwisowa w frontendowym panelu admina. */
.rfca-support{border:1px solid var(--rfca-border);background:#f6f9fc;border-radius:6px;padding:14px 16px;margin:15px 0 22px}
.rfca-support h2{margin-top:0}
.rfca-support-form{display:flex;flex-wrap:wrap;gap:12px;align-items:end}
.rfca-support-form label{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:600;min-width:190px}
.rfca-support-form input{font:inherit;font-size:14px;min-height:38px;padding:7px 9px;border-radius:4px;border:1px solid #b7c6d4;background:white;color:#173753}
.rfca-support-status{flex-basis:100%;margin:0;font-size:13px;color:#873443}
.rfca-support-select{font:inherit;font-size:12px;border:0;background:none;color:var(--rfca-primary);cursor:pointer;text-decoration:underline;margin-left:6px}

/* 0.3.29: link do analiz i kolor produktu w liście */
.rfca .rfca-analysis-entry{display:inline-flex;align-items:center;margin-left:auto;padding:8px 12px;border:1px solid #9ab8cc;border-radius:3px;text-decoration:none!important;background:#eef5f9;color:#1d5377!important;font-weight:700;font-size:13px}
.rfca .rfca-color-chip{display:inline-block;padding:4px 6px;border-radius:3px;color:#fff;font-size:11px;font-weight:750;min-width:44px;text-align:center}
