/* Módulo Proveedores (Insumos, Refacciones y Servicios Z-2)
    Estilos Corporativos Kimberly-Clark México */

:root {
    --prv-navy: #082959;
    --prv-blue: #0879bd;
    --prv-cyan: #16b5df;
    --prv-ink: #172b4d;
    --prv-muted: #64748b;
    --prv-border: #e2e8f0;
    --prv-card-bg: #ffffff;
}

body,
#proveedores-page {
    background-color: #f8fafc !important;
    color: var(--prv-ink);
    font-family: 'Outfit', sans-serif;
}

.prv-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
}

/* Selector de Pestañas (Con Factura / Sin Factura) */
.prv-tab-nav {
    display: inline-flex;
    background: #e2eaf2;
    padding: 6px;
    border-radius: 999px;
    gap: 6px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.prv-tab-btn {
    border: none;
    background: transparent;
    color: #475569;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 0.65rem 1.6rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.prv-tab-btn:hover {
    color: #0879bd;
}

.prv-tab-btn.active {
    background: #0879bd;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(8, 121, 189, 0.35);
}

.prv-tab-btn.active.tab-sin-factura {
    background: linear-gradient(135deg, #0284c7, #0879bd);
}

.prv-badge-tag {
    font-size: 0.72rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
}

/* Tarjeta Principal del Formulario */
.prv-form-card {
    background: #ffffff;
    border: 1px solid rgba(226, 235, 244, 0.95);
    border-radius: 26px;
    box-shadow: 0 16px 45px rgba(9, 44, 91, 0.07);
    padding: clamp(1.5rem, 3.5vw, 3rem);
}

.prv-section-heading {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.prv-section-badge {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #e0f2fe;
    color: #0284c7;
    display: grid;
    place-items: center;
    font-size: 0.85rem;
    font-weight: 800;
}

.prv-divider {
    height: 1px;
    background: #edf2f7;
    margin: 2rem 0;
}

/* Botones de Selección Rápida (Proveedor vs Paquetería / Nacional vs Importado) */
.prv-radio-group {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.prv-radio-pill {
    position: relative;
    cursor: pointer;
    margin-bottom: 0;
    display: inline-flex;
}

.prv-radio-pill input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: -1px;
    clip: rect(0, 0, 0, 0);
    overflow: hidden;
}

.prv-radio-pill span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.15rem;
    font-size: 0.84rem;
    font-weight: 650;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    cursor: pointer;
    user-select: none;
    transition: all 0.18s ease;
}

.prv-radio-pill:hover span {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #1e293b;
}

.prv-radio-pill input:checked + span {
    background: #e0f2fe;
    color: #0369a1;
    border-color: #38bdf8;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.2);
    font-weight: 700;
}

/* Botón Principal de Envío */
.prv-submit-btn {
    min-height: 56px;
    width: 100%;
    border-radius: 14px;
    background: linear-gradient(100deg, #0879bd, #0ea5e9);
    border: none;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 750;
    box-shadow: 0 10px 24px rgba(8, 121, 189, 0.24);
    transition: all 0.2s ease;
}

.prv-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(8, 121, 189, 0.32);
    filter: saturate(1.1);
}

.prv-submit-btn:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.visitas-field-textarea textarea.form-control {
    min-height: 100px;
    height: 100px;
    resize: vertical;
}
/* ============ CELULAR ============ */
@media (max-width: 575.98px) {

    /* Pestañas Con / Sin factura: dos botones iguales que caben en el ancho de la pantalla */
    .prv-tab-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 4px;
        padding: 5px;
        border-radius: 20px;
    }

    .prv-tab-btn {
        justify-content: center;
        gap: 0.4rem;
        min-height: 48px;
        padding: 0.55rem 0.4rem;
        font-size: 0.86rem;
        line-height: 1.15;
        text-align: center;
        border-radius: 16px;
    }

    .prv-badge-tag {
        display: none;
    }

    /* Selector En vehículo / A pie a todo el ancho */
    .prv-radio-group {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
    }

    .prv-radio-pill {
        display: flex;
    }

    .prv-radio-pill span {
        flex: 1;
        justify-content: center;
        min-height: 46px;
        padding: 0.55rem 0.5rem;
    }

    .visitas-field-textarea textarea.form-control {
        min-height: 110px;
    }

    .prv-submit-btn {
        min-height: 52px;
    }
}
