.rc-cortes-metrics {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}
.rc-cortes-metrics .kpi-card {min-width:0;padding:14px 16px}
.rc-cortes-metrics .kpi-card span {display:block;font-size:12px;letter-spacing:.01em}
.rc-cortes-metrics .kpi-card strong {display:block;font-size:23px;margin-top:7px}
.rc-cortes-tabs {display:flex;gap:4px;padding:5px;width:max-content;max-width:100%;flex-wrap:wrap;margin:12px 0 16px;background:var(--rz-base-100,#fff);border:1px solid var(--rz-base-300,#e0e4e8);border-radius:12px}
.rc-cortes-tabs button {display:flex;align-items:center;gap:7px;background:transparent;border:0;border-radius:9px;padding:10px 14px;color:inherit;font-weight:600;cursor:pointer}
.rc-cortes-tabs button.active {background:var(--rz-primary-lighter,#e7f5ff);color:var(--rz-primary,#087fad)}
.rc-cortes-tabs button .rz-icon {font-size:19px}
.rc-cortes-config {max-width:950px}
.rc-cortes-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:18px 0}
.rc-cortes-fields label {display:flex;flex-direction:column;gap:6px;font-weight:600}
.rc-cortes-fields label input {max-width:260px}
.rc-cortes-fields label small {font-weight:400;opacity:.78}
.rc-cortes-toggles {display:flex;flex-direction:column;gap:16px;margin:18px 0}
.rc-cortes-toggles label {display:flex;align-items:center;gap:10px;cursor:pointer}
.rc-cortes-toggles input {width:17px;height:17px}
.rc-cortes-actions {margin-top:20px;display:flex;justify-content:flex-end}
.rc-cortes-table {width:100%;min-width:900px}
.rc-cortes-table td {vertical-align:middle;overflow-wrap:anywhere}
.rc-cortes-state {display:inline-flex;align-items:center;border-radius:7px;padding:5px 9px;font-size:12px;line-height:1.3;font-weight:650;background:var(--rz-base-200,#eef0f2);color:var(--rz-text-color,#3b4550)}
.rc-cortes-state.ok {background:#daf3e5;color:#16653b}
.rc-cortes-state.ready {background:#e5f2ff;color:#0867a7}
.rc-cortes-state.warning {background:#fff0d7;color:#956400}
.rc-cortes-state.bad {background:#fee4e4;color:#9e2828}
.rc-cortes-state.info {background:#e3edf9;color:#245789}
.rc-cortes-state.muted {background:var(--rz-base-200,#e7e7e7);color:var(--rz-text-color,#424242)}
.rc-cortes-selected {background:var(--rz-primary-lighter,#f0f8ff)}
.rc-cortes-empty {padding:26px 12px;text-align:center;opacity:.72}
.rc-cortes-details {margin-top:18px}
@media (max-width:1000px){.rc-cortes-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.rc-cortes-metrics,.rc-cortes-fields{grid-template-columns:1fr}}
:root[data-theme="dark"] .rc-cortes-state.ok {background:#163b2b;color:#a3eac2}
:root[data-theme="dark"] .rc-cortes-state.ready {background:#16374d;color:#a9d8ff}
:root[data-theme="dark"] .rc-cortes-state.warning {background:#4b381a;color:#ffce7b}
:root[data-theme="dark"] .rc-cortes-state.bad {background:#53292d;color:#ffb5bd}
:root[data-theme="dark"] .rc-cortes-state.info {background:#223b54;color:#add3ff}

/* V31.5.3 · Consulta paginada del historial */
.rc-cortes-filters {display:grid;grid-template-columns:minmax(150px,1.4fr) repeat(2,minmax(130px,1fr)) repeat(3,minmax(120px,.8fr));gap:12px 14px;align-items:end;margin:16px 0 18px}
.rc-cortes-filters>label {display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:600;min-width:0;color:var(--rz-text-color)}
.rc-cortes-filters .rz-datepicker,.rc-cortes-filters .rz-textbox,.rc-cortes-filters .rc-native-input {width:100%;min-width:0}
.rc-cortes-filter-actions {grid-column:1/-1;display:flex;justify-content:flex-end;gap:8px;align-items:center}
.rc-cortes-pager {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:14px 2px 2px;font-size:13px;color:var(--rz-text-secondary-color,var(--rz-text-color))}
.rc-cortes-page-actions {display:flex;gap:10px;align-items:center}
.rc-cortes-page-actions label {display:flex;align-items:center;gap:9px;white-space:nowrap;font-size:12px}
.rc-cortes-page-actions select {width:80px;min-width:75px}
@media(max-width:1250px){.rc-cortes-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:690px){.rc-cortes-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.rc-cortes-filter-actions{justify-content:stretch}.rc-cortes-filter-actions .rz-button{flex:1}}
@media(max-width:440px){.rc-cortes-filters{grid-template-columns:1fr}.rc-cortes-page-actions{width:100%;justify-content:flex-end}}
