:root {
    --selected: #2c85ff29;
}

.cnt-cd-rcl {
    transition: 0.2s;
    /* display: none; */
    /* opacity: 0; */
    height: 100%;
    width: 100%;
}

.cnt-cd-rcl .header-card-rcl {
    justify-content: space-between;
    display: flex;
    margin-top: 18px;
}

.cnt-cd-rcl .header-card-rcl h6 {
    margin: 0;
}

.cnt-cd-rcl .header-card-rcl p {
    margin: 0;
}

.cnt-cd-rcl .card-rcl {
    padding: 8px;
    border-radius: 4px;
    background-color: #ffffff12;
    box-shadow: 0 0 2px #363636bd;
    margin-top: 12px;
    cursor: pointer;
    transition: 0.4s;
}

.cnt-cd-rcl .card-rcl:hover {
    background-color: #2c85ff29;
}

.highlight-card-selected {
    background-color: var(--selected) !important;
}

.cnt-cd-rcl .card-rcl .title {
    margin: 0;
    display: flex;
    justify-content: space-between;
}

.cnt-cd-rcl .card-rcl .title h4 {
    color: var(--text-primary-color-arb);
    margin: 0;
    font-size: 1rem;
}

.cnt-cd-rcl .card-rcl .title .date {
    margin: 0;
    font-style: italic;
}

.cnt-cd-rcl .card-rcl .row {
    justify-content: space-between;
    margin: 0;
}

.cnt-cd-rcl .card-rcl .row .right p {
    font-weight: 500;
}

.cnt-cd-rcl .card-rcl .row .right p span {
    font-weight: 300;
}

.cnt-cd-rcl .card-rcl .row .right {
    text-align: end;
}

.cnt-cd-rcl .card-rcl .row h3 {
    margin: 0;
    color: var(--text-primary-color-arb);
    font-weight: 500;
    font-size: 1.1rem;

}

.cnt-cd-rcl .card-rcl .row .origin {
    margin: 0;
}

/* Identificación de movimientos por tipo: acento de color a la izquierda
   (azul débito / rojo crédito). El tipo ya se comunica con el borde y la
   etiqueta, así que se retira el signo +/- del monto. El monto toma el
   color del tipo para reforzar la lectura. */
.cnt-cd-rcl .card-rcl.rcl-card--debit {
    border-left: 4px solid #2563eb;
}

.cnt-cd-rcl .card-rcl.rcl-card--credit {
    border-left: 4px solid #dc3545;
}

.cnt-cd-rcl .card-rcl .rcl-amount-positive::before,
.cnt-cd-rcl .card-rcl .rcl-amount-negative::before {
    content: '';
}

.cnt-cd-rcl .card-rcl.rcl-card--debit .row h3 {
    color: #2563eb;
}

.cnt-cd-rcl .card-rcl.rcl-card--credit .row h3 {
    color: #dc3545;
}



/* Cartas sencillas para mostrar
información campos de propiedades */

.cnt-head-otr-dts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cnt-head-otr-dts .crd-otr-dts {
    min-width: 32%;
    display: flex;
    padding: 4px;
    box-shadow: 0 0 2px gray;
    flex-grow: 1;
}

.cnt-head-otr-dts .crd-otr-dts .left {
    display: flex;
    align-items: center;
    padding: 8px;
}

.cnt-head-otr-dts .crd-otr-dts .left i {
    color: var(--text-primary-color-arb);
    font-weight: 600;
}

.cnt-head-otr-dts .crd-otr-dts .right {
    padding: 0 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cnt-head-otr-dts .crd-otr-dts .right h4 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.cnt-head-otr-dts .crd-otr-dts .right p {
    margin: 0;
    font-size: 0.8rem;
}


/* Carta mediana */
.cnt-mtc-dcm {
    margin: 0px;
    transition: 0.4s;
    opacity: 0;
    transform: scale(0);
}

/* Reconciled pairs panel */
.rcl-pair-item {
    margin-bottom: 12px;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.rcl-pair-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    border: 1px solid #e4e9f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15,23,42,0.05);
    transition: box-shadow 0.18s ease;
}
.rcl-pair-row:hover {
    box-shadow: 0 6px 18px rgba(15,23,42,0.07);
}

.rcl-doc {
    flex: 1;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.rcl-doc--bank {
    background: #f4f8ff;
    border-right: 1px solid #e4e9f0;
}

.rcl-doc--system {
    background: #f5fcf7;
}

/* Badge y fecha en la misma fila — lectura rápida tipo estado de cuenta */
.rcl-doc__header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 4px;
}

.rcl-doc__badge {
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 9px;
    border-radius: 20px;
}

.rcl-doc__badge--bank {
    background: #ddeaff;
    color: #2563eb;
}

.rcl-doc__badge--system {
    background: #d4f5e2;
    color: #16a34a;
}

.rcl-doc__date {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 500;
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
}

.rcl-doc__amount {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
    color: var(--text-primary-color-arb, #1e293b);
    line-height: 1.15;
    margin-top: 2px;
}

.rcl-doc__type {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 500;
}

.rcl-doc__label {
    font-size: 0.62rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin-top: 6px;
}

.rcl-doc__text {
    font-size: 0.82rem;
    color: #334155;
    line-height: 1.35;
    /* Hasta 2 líneas con elipsis — la descripción respira sin desbordar la carta */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.rcl-pair-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    background: #fff;
    gap: 6px;
    flex-shrink: 0;
}

.rcl-pair-connector__line {
    width: 1px;
    flex: 1;
    background: #e4e9f0;
}

.rcl-pair-connector__icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #64748b;
    font-size: 0.7rem;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

button.rcl-pair-connector__icon:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
    transform: scale(1.2);
}

/* Celda de estatus: badge de estado + leyenda "Sin postear" debajo, centradas
   y compactas para no ensanchar ni desbordar la columna. */
.rcl-status-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

/* Leyenda sin caja: solo ícono + texto ámbar, pequeño. */
.rcl-unposted-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.62rem;
    font-weight: 600;
    line-height: 1.1;
    color: #d97706;
    white-space: nowrap;
}
.rcl-unposted-tag i { font-size: 0.66rem; }

/* Columna sistema: flex:1 igual que el lado banco — sin este estilo la columna banco se comprime */
.rcl-sys-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Monto contextualizado: el color del número sigue la paleta del lado */
.rcl-doc--bank .rcl-doc__amount {
    color: #1d4ed8;
}

.rcl-doc--system .rcl-doc__amount {
    color: #15803d;
}

/* Botón info Mayor */
.btn-mayor-info {
    background: none;
    border: none;
    padding: 0 0 0 4px;
    cursor: pointer;
    color: var(--text-primary-color-arb, #2563eb);
    font-size: 0.8rem;
    vertical-align: middle;
    line-height: 1;
    transition: opacity 0.15s;
}
.btn-mayor-info:hover { opacity: 0.7; }

/* Tooltip desglose Mayor */
.mayor-tooltip {
    position: absolute;
    top: 0;
    right: calc(100% + 8px);
    z-index: 999;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.13);
    min-width: 260px;
    animation: fadeInUp 0.18s ease;
}

.mayor-tooltip__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px 6px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary-color-arb, #2563eb);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mayor-tooltip__close {
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    font-size: 0.8rem;
    padding: 0;
    line-height: 1;
    transition: color 0.15s;
}
.mayor-tooltip__close:hover { color: #dc2626; }

.mayor-tooltip__body {
    padding: 8px 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mayor-tooltip__row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #334155;
}

.mayor-tooltip__row span:last-child {
    font-weight: 600;
    color: #1e293b;
}

.mayor-tooltip__divider {
    margin: 4px 0 2px;
    font-size: 0.72rem;
    color: #64748b;
}

/* Movement type — icon colors for Datos del Banco */
.mvt-icon-deposito    { color: #16a34a !important; }
.mvt-icon-cheque      { color: #f59e0b !important; }
.mvt-icon-nota-debito { color: #dc2626 !important; }
.mvt-icon-nota-credito { color: #0ea5e9 !important; }
.mvt-icon-balance     { color: var(--text-primary-color-arb, #2563eb) !important; }

/* Movement type — badge in candidates table */
.mvt-type-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid currentColor;
    background: transparent;
    white-space: nowrap;
}

.vertical-align-init {
    vertical-align: initial !important;
}