:root {
    --bizka-primary: #26256B;
    --bizka-primary-light: #403f8f;
    --bizka-primary-dark: #1b1a4c;

    --bizka-accent: #F26A21;
    --bizka-accent-dark: #c65318;
    --bizka-accent-light: #ff874a;

    --bizka-gray: #6B6B6B;
    --bizka-bg-light: #f4f6f9;
}

body {
    font-size: 0.9rem !important; /* Ajusta: 0.85 / 0.9 / 0.95 / 1 */
}

/* Sidebar color */
.app-sidebar {
    background-color: var(--bizka-primary) !important;
}

/* Menu links */
.app-sidebar .menu-link {
    color: white !important;
}

/* Hover */
.app-sidebar .menu-link:hover {
    background-color: var(--bizka-primary-light) !important;
}

/* Botón naranja Bizkai Sida */
.btn-orange {
    background-color: var(--bizka-accent) !important;
    border-color: var(--bizka-accent) !important;
    color: #fff !important;
}

/* Hover */
.btn-orange:hover {
    background-color: var(--bizka-accent-dark) !important;
    border-color: var(--bizka-accent-dark) !important;
    color: #fff !important;
}

/* Active (clic) */
.btn-orange:active,
.btn-orange.active {
    background-color: var(--bizka-accent-dark) !important;
    border-color: var(--bizka-accent-dark) !important;
    color: #fff !important;
}

/* Focus (accesibilidad) */
.btn-orange:focus,
.btn-orange.focus {
    box-shadow: 0 0 0 0.25rem rgba(242, 106, 33, 0.4) !important; /* bizka-accent con transparencia */
}

/* Avatar */
.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #F46A1B;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.25s ease;
    cursor: pointer;
}

/* Animación hover */
.avatar-circle:hover {
    transform: scale(1.12);
    box-shadow: 0 4px 12px rgba(244, 106, 27, 0.4);
}

.symbol.symbol-35px .avatar-circle {
    width: 40px;
    height: 40px;
    font-size: 18px;
}

/* Logout */
.btn-logout {
    background-color: var(--bizka-accent);
    color: #fff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-logout:hover {
    background-color: var(--bizka-accent-dark);
}

/* Card */
.icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: var(--bizka-primary-light) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.card-config {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-config:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Botones pequeños para acciones en tablas */
.btn-action {
    transition: all .2s;
}

/* Al pasar el ratón: icono blanco */
.btn-action:hover i,
.btn-action:hover svg {
    color: #fff !important;
}

.section-box {
    background-color: #ffffff;
    padding: 2rem 2.5rem;
    border-radius: 0.95rem;
    box-shadow: var(--bs-card-box-shadow);
}

.page-title-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background-color: var(--bizka-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-right: 12px;
}

/* Filtros más compactos */
.filters-row .form-control,
.filters-row .form-select {
    font-size: 0.875rem;
    padding: 0.35rem 0.75rem;
}

.filters-wrapper {
    border-bottom: 1px solid #eef0f7;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Tabs pills outline azul */
.bizka-tabs {
    border-bottom: 1px solid #e4e6ef;
    margin-bottom: 1.5rem;
}

.bizka-tabs .nav-link {
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 0.45rem 1.1rem;
    margin-right: 0.5rem;
    font-weight: 500;
    color: #5e6278;
}

.bizka-tabs .nav-link.active {
    border-color: var(--bizka-primary);
    color: var(--bizka-primary);
    background-color: #f4f5ff;
}

.bizka-tabs .nav-link:hover {
    border-color: var(--bizka-primary-light);
    color: var(--bizka-primary-dark);
}

/* Layout del formulario */
.form-section-title {
    font-weight: 600;
    font-size: 1rem;
    color: #181c32;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #f1f2f7;
    padding-bottom: 0.4rem;
}

.form-subtle {
    font-size: 0.85rem;
    color: #7e8299;
}

.form-row-gap > .col-md-3,
.form-row-gap > .col-md-4,
.form-row-gap > .col-md-6 {
    margin-bottom: 1rem;
}

/* Tabla más legible */
.table-bizka thead th {
    background-color: #f5f7fb;
    border-bottom: 1px solid #e2e5ec;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
}

.table-bizka tbody td {
    border-top: 1px solid #f3f4f8;
    font-size: 0.9rem;
}

.table-bizka tbody tr:nth-child(even) {
    background-color: #fafbff;
}

table.dataTable td {
    white-space: unset !important;
}

.field-value {
    font-size: 1rem;
    color: #181c32;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Hace que los radios queden alineados y pequeños */
.form-check {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

/* Reduce tamaño del circulito */
.form-check-input[type="radio"] {
    width: 16px;
    height: 16px;
    margin-top: 0;
}

/* Quita el salto de línea feo */
.form-check-label {
    margin: 0;
}

.radio-required-group .form-check-label::after {
    content: '';
}

/* APLICAR A TODOS LOS CHOICE EXPANDED (RADIO BUTTONS) */
.form-check {
    display: inline-flex !important;
    align-items: center;
    margin-right: 1.2rem;
}

/* Alinear input + label */
.form-check-input[type="radio"] {
    margin-right: 6px;
    margin-top: 0;
}

.form-check-label {
    margin: 0;
}

.btn-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
}

.table .btn-icon i,
.btn-action i {
    color: #ffffff !important;
    transition: transform 0.2s ease-in-out;
}

.btn-warning.btn-icon {
    background-color: var(--bizka-accent-light);
}

.btn-warning.btn-icon:hover {
    background-color: var(--bizka-accent);
    transform: scale(1.05);
}

.btn-danger.btn-icon {
    background-color: #dc3545;
}

.btn-danger.btn-icon:hover {
    background-color: #b52a37;
    transform: scale(1.05);
}

.btn-success.btn-icon {
    background-color: #198754;
}

.btn-success.btn-icon:hover {
    background-color: #0f6c43;
    transform: scale(1.05);
}

.dashboard-card {
    background: #ffffff;
    border-radius: 14px;
    transition: all 0.25s ease;
    border: 1px solid #f0f0f0;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

/* Texto naranja Bizkaisida */
.text-orange {
    color: var(--bizka-accent) !important;
}

/* ---- Tarjetas Ámbitos ---- */

.bizka-card {
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    background: #f9fafb !important;
    padding: 24px !important;
    margin-bottom: 32px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03) !important;
}

/* Título elegante con icono */
.bizka-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #26256B;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.bizka-card-title i {
    color: #F26A21;
    font-size: 1.4rem;
}

/* Wrapper específico para DataTables dentro de tarjetas */
.datatable-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible !important;
    position: relative;
}

/* IMPORTANTE: evitar que las cards recorten el contenido del responsivo */
.bizka-card,
.section-box {
    overflow: visible !important;
}



