/* ===== rev-table.css =====
   Estilos compartidos del sistema de tabla expandible (rev-*)
   Usado en: seguimiento, solicitudes, mis-casos
   ================================================================ */

/* ----------------------------------------------------------------
   Folio
   ---------------------------------------------------------------- */
.ui-div-table .ui-div-cell.rev-folio {
    font-family: monospace;
    font-size: 12px;
    color: rgba(221,232,245,.6) !important;
    font-weight: 400;
}
body.light .ui-div-table .ui-div-cell.rev-folio {
    color: rgba(30,58,95,.6) !important;
}

/* ----------------------------------------------------------------
   Relación
   ---------------------------------------------------------------- */
.rev-relacion {
    font-size: 13px;
    color: var(--text-soft);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ----------------------------------------------------------------
   Distrito
   ---------------------------------------------------------------- */
.rev-distrito-cell {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
}

.rev-distrito-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    font-family: monospace;
    color: var(--text-soft);
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 4px;
    padding: 2px 7px;
    flex-shrink: 0;
}

.rev-estado-mx {
    font-size: 12px;
    color: var(--text-soft);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ----------------------------------------------------------------
   Días — semáforo de color
   ---------------------------------------------------------------- */
.rev-dias {
    text-align: center;
    font-weight: 600;
    font-size: 13px;
}
.ui-div-table .ui-div-cell.rev-dias.rev-dias-green  { color: #22c55e; }
.ui-div-table .ui-div-cell.rev-dias.rev-dias-yellow { color: #f59e0b; }
.ui-div-table .ui-div-cell.rev-dias.rev-dias-orange { color: #f97316; }
.ui-div-table .ui-div-cell.rev-dias.rev-dias-red    { color: #ef4444; }

/* ----------------------------------------------------------------
   Fila expandible
   ---------------------------------------------------------------- */
.rev-row-clickable {
    cursor: pointer;
}

.rev-row-clickable.is-expanded {
    background: rgba(91,170,223,.06);
    border-bottom-color: transparent;
}

.rev-expand {
    border-bottom: 1px solid var(--stroke, rgba(255,255,255,.08));
}

.rev-expand-inner {
    padding: 14px 16px 18px;
    background: rgba(91,170,223,.04);
}

/* ----------------------------------------------------------------
   Grid de detalle 4 columnas
   ---------------------------------------------------------------- */
.rev-detalle-4col {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 0 24px;
}

.rev-detalle-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rev-detalle-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.rev-detalle-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-soft);
}

.rev-detalle-val {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}

.rev-detalle-texto {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin: 0;
    line-height: 1.5;
    white-space: pre-wrap;
}

/* ----------------------------------------------------------------
   Loading
   ---------------------------------------------------------------- */
.rev-loading {
    padding: 40px 0;
    text-align: center;
    color: var(--text-soft);
}

.rev-loading .icon-buscar {
    font-size: 22px;
    display: block;
    margin-bottom: 8px;
    opacity: .4;
    animation: rev-pulse 1s ease-in-out infinite;
}

@keyframes rev-pulse {
    0%, 100% { opacity: .4; }
    50%       { opacity: .9; }
}
