/* --- ESTILOS DE MÓDULO DE INFRACCIONES Y TABLA OFICIAL --- */
.inf-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
    margin: 20px 0;
    width: 100%;
    box-sizing: border-box;
}

.inf-header {
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
    margin-bottom: 18px;
}

.inf-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px 0;
}

.inf-subtitle {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0;
}

.inf-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.inf-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    font-size: 0.88rem;
}

.inf-table th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.inf-table td {
    padding: 12px 14px;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.inf-table tr:last-child td {
    border-bottom: none;
}

/* Badges para los montos y categorías de Ley 9078 */
.inf-badge-cat {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.75rem;
    white-space: nowrap;
}
.inf-cat-b { background: #ffedd5; color: #c2410c; }
.inf-cat-c { background: #fef9c3; color: #a16207; }
.inf-cat-d { background: #e0f2fe; color: #0369a1; }

.inf-monto {
    font-weight: 800;
    color: #b91c1c;
    white-space: nowrap;
}

/* Barra visual de incidencia */
.inf-bar-bg {
    background: #f1f5f9;
    border-radius: 10px;
    height: 8px;
    width: 80px;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
}

.inf-bar-fill {
    background: #0f4c81;
    height: 100%;
}
