/* ==================== BOTÓN PRINCIPAL DE ACTIVACIÓN ==================== */

.alpha-company-sales-sidebar-toggle {
    position: fixed;
    top: 15px;
    left: 10px;
    width: 62px;
    height: 62px;
    font-size: 18px;
    line-height: 1;
    z-index: 2000;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    /* Icono arriba, texto abajo */
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    gap: 4px;
    border: none;
    /* background: var(--footer-background); */
    /* color: #ffffff; */
    background: var(--color-accent-aqua-secondary);
    color: var(--color-text-tertiary);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    transition: transform 400ms ease, opacity 400ms ease;
}

@media (max-width: 800px) {
    .alpha-company-sales-sidebar-toggle {
        top: 125px;
        left: 10px;
    }
}

.alpha-company-sales-sidebar-toggle:hover {
    transform: translateY(0) scale(1.06);
}

.alpha-company-sales-sidebar-toggle:active {
    transform: translateY(0) scale(0.94);
}

.alpha-company-sales-sidebar-toggle.is-hidden {
    opacity: 0;
    /* Desaparece visualmente */
    pointer-events: none;
    /* Evita clicks fantasma */
    transform: translateY(0) scale(0.94);
}

/* ==================== ANIMACIÓN DE ENTREDA Y SALIDA ==================== */

/* Body */
.company-offcanvas .offcanvas-body {
    padding: 0;
    background: transparent;
}

/* Panel */
.company-offcanvas.offcanvas-start {
    transition: transform 0.25s ease;
    will-change: transform;
}

/* Backdrop */
.offcanvas-backdrop {
    transition: opacity 0.25s ease;
}

/* ==================== CONTENEDOR ==================== */

.sidebar-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--color-text-tertiary);
}

/* ==================== ENCABEZADO ==================== */

.sidebar-header {
    background: var(--color-bg-footer-gray);
    color: var(--color-text-tertiary);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.sidebar-close-btn {
    background: transparent;
    border: none;
    color: var(--color-text-tertiary);
    font-size: 20px;
    cursor: pointer;
    transition: transform 400ms ease;
}

.sidebar-close-btn:hover {
    transform: translateY(0) scale(1.5);
}

/* ==================== CARD INTERNA ==================== */

.sidebar-body {
    padding: 15px;
    overflow-y: auto;
    flex: 1;
}

.sidebar-card {
    background: var(--color-text-tertiary);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 14px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}

.sidebar-section-title {
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
    color: var(--color-text-quaternary);
}

.sidebar-inline-group {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 20px;
}

.sidebar-field-label {
    font-size: 12px;
    color: var(--color-text-quaternary);
    display: block;
}

/* ==================== FOOTER INTERNO ==================== */

.sidebar-footer {
    position: sticky;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 12px 14px;
    background: var(--color-bg-footer-gray);
    /* border-top: 1px solid rgba(0, 0, 0, 0.15); */
}

/* ==================== BOTÓN ICON + LABEL ==================== */

.sidebar-action-btn {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    /* Icono arriba, texto abajo */
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: var(--color-accent-aqua-secondary);
    color: var(--color-text-tertiary);
    border: none;
    cursor: pointer;
    transition: transform 0.20s ease,
        box-shadow 0.20s ease,
        background 0.20s ease,
        border-color 0.20s ease,
        color 0.20s ease;
}

/* Icono */
.sidebar-action-btn i {
    font-size: 20px;
    line-height: 1;
}

/* Label */
.sidebar-action-label {
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

/* Hover */
.sidebar-action-btn:hover {
    transform: translateY(0) scale(1.06);
    /* background: var(--color-accent-aqua-primary); */
    /* color: var(--color-text-quaternary); */
}

/* Activo al presionar */
.sidebar-action-btn:active {
    transform: translateY(0) scale(0.96);
}

/* Estilos por defecto del enlace html.A */
.sidebar-link {
    text-decoration: none;
    /* Elimina subrayado por defecto */
    color: inherit;
    /* Hereda color del botón */
}


/*
Estilos personalizados para el sidebar y dropdown en Ventas
*/
/* Color del texto principal */
.betha_company-custom-sidebar {
    color: #F5F5F5;
}

/* Contenedor general del dropdown */
.betha_company-custom-sidebar .Select * {
    background-color: #3A3A3A !important;
    /* Fondo gris oscuro */
    color: #E0E0E0 !important;
    /* Texto gris claro */
    border-color: #5A5A5A !important;
    /* Borde gris medio */
    border-radius: 6px !important;
}

/* Texto de la opción seleccionada */
.betha_company-custom-sidebar .Select-value {
    color: #EAEAEA !important;
}

/* Placeholder del dropdown */
.betha_company-custom-sidebar .Select-placeholder {
    color: #AAAAAA !important;
}

/* Fondo del menú desplegable y texto de opciones */
.betha_company-custom-sidebar .Select-menu-outer {
    background-color: #2C2C2C !important;
    color: #F0F0F0 !important;
}

/* Estilo base de cada opción */
.betha_company-custom-sidebar .Select-option {
    background-color: #2C2C2C !important;
    color: #EAEAEA !important;
}

/* Hover sobre una opción */
.betha_company-custom-sidebar .Select-option.is-focused {
    background-color: #505050 !important;
    color: #FFFFFF !important;
}

/* Opción ya seleccionada */
.betha_company-custom-sidebar .Select-option.is-selected {
    background-color: #1A1A1A !important;
    color: #B0D0FF !important;
    /* Azul tenue para destacar */
    font-weight: bold !important;
}