﻿/* ═══════════════════════════════════
   UserProfile — Layout compacto
   ═══════════════════════════════════ */
.profile-wrapper {
    max-width: 680px;
    margin: auto;
    padding: 1.5rem 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.profile-section {
    margin-bottom: 1.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.edit-btn {
    background: #eee;
    border: none;   
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.85rem;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.section-divider {
    border: none;
    border-top: 1px solid #e8e8e8;
    margin: 0.5rem 0;
}

/* ── Inputs compactos ── */
.form-input {
    height: 2.2rem;
    padding: 0.35rem 0.6rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.9rem;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
}

.btn-primary {
    background-color: #1F8F90;
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.error-message {
    color: red;
    font-size: 0.8rem;
    margin-top: 0.15rem;
}

.terms {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #333;
}

/* ═══════════════════════════════════
   Botones — Estado deshabilitado
   Especificidad alta para ganar a
   .onb-btn.onb-btn-form !important
   ═══════════════════════════════════ */
button.onb-btn.onb-btn-form:disabled {
    background-color: #b0b0b0 !important;
    color: #e0e0e0 !important;
    cursor: not-allowed !important;
    opacity: 0.65 !important;
    pointer-events: none !important;
}

button.onb-btn.onb-btn-form:disabled:hover {
    background-color: #b0b0b0 !important;
    filter: none !important;
}

/* ═══════════════════════════════════
   Modal — Disclaimer autenticación
   ═══════════════════════════════════ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background: white;
    padding: 2rem;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.modal-content h3 {
    margin-top: 0;
    color: #0078D4;
}

.modal-content ul {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.modal-content .onb-btn-primary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: var(--v-primary, #5FBCBC);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(128, 128, 128, 0.3);
    margin-top: 1rem;
    transition: filter 0.15s, background 0.15s;
}

.modal-content .onb-btn-primary:hover {
    background-color: var(--v-primary-hover, #4da8a8);
    filter: brightness(1.05);
}

.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* ═══════════════════════════════════
   Selects — Estilo limpio compacto
   ═══════════════════════════════════ */
select.form-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 0.35rem 2rem 0.35rem 0.6rem;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.4;
    width: 100%;
    height: 2.2rem;
    box-shadow: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%23666' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px 6px;
}

select.form-input:hover,
select.form-input:focus {
    border-color: var(--v-input-focus, #5FBCBC);
    box-shadow: 0 0 0 2px var(--v-input-focus-ring, rgba(95, 188, 188, 0.2));
}

/* ── Actividades económicas: dropdown nativo limpio ── */
select.form-input.eco-select {
    font-size: 0.78rem;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

select.form-input.eco-select option {
    font-size: 0.78rem;
    padding: 0.3rem 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Scrollbar para selects */
select.form-input::-webkit-scrollbar {
    width: 6px;
}

select.form-input::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 3px;
}

select.form-input::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* ═══════════════════════════════════
   Checkbox — Retenedor de impuestos
   ═══════════════════════════════════ */
.tax-withholder-group {
    background: #f9fafa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 0.7rem 0.9rem;
    margin-top: 0.2rem;
}

.tax-withholder-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--v-text, #333);
    cursor: pointer;
    margin: 0;
}

.tax-withholder-label input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--v-primary-dark, #1F8F90);
    cursor: pointer;
    flex-shrink: 0;
}

.tax-withholder-hint {
    font-size: 0.78rem;
    color: #777;
    margin: 0.35rem 0 0 1.5rem;
    line-height: 1.4;
}
