/* === PARCHE VISUAL v2.2.1: BARRA DE LICENCIAS ALTO CONTRASTE + METRICAS GRANDES + MUNDO FDL === */

/* Contenedor centrado ejecutivo para que en pantallas anchas de laptop todo mantenga proporcion armoniosa */
.dash-exec-container {
    max-width: 880px;
    margin: 0 auto;
}

/* 1. Barra Superior de Tipos de Licencias (Alto Contraste, Iconos Grandes 26px, Sin 'Todos') */
.dash-product-bar {
    background: #FFFFFF;
    border-radius: 18px;
    padding: 7px;
    display: grid;
    grid-template-columns: repeat(6, minmax(76px, 1fr));
    gap: 6px;
    margin: 0 auto 16px;
    box-shadow: 0 8px 24px rgba(10, 37, 64, 0.09);
    border: 1.5px solid #C5E0F2;
    overflow-x: auto;
}
body.dark-mode .dash-product-bar {
    background: #091E36;
    border-color: rgba(60, 226, 236, 0.30);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.42);
}

.dash-prod-tab {
    background: transparent;
    border: 1.5px solid transparent;
    border-radius: 13px;
    color: #12385B;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: all 0.16s ease;
}
body.dark-mode .dash-prod-tab {
    color: #DCEEFF;
}

.dash-prod-tab:hover {
    background: #EEF7FC;
    border-color: #B6DCEF;
    color: #0B4F8A;
}
body.dark-mode .dash-prod-tab:hover {
    background: rgba(34, 199, 214, 0.12);
    border-color: rgba(60, 226, 236, 0.28);
    color: #FFFFFF;
}

.dash-prod-tab svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.15;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Estado Activo con Contraste Total en Azul Oceano -> Turquesa ideviOS */
.dash-prod-tab.active {
    background: linear-gradient(135deg, #125BA8 0%, #1B8EC4 60%, #20B8D0 100%);
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 6px 16px rgba(21, 98, 178, 0.34);
    transform: translateY(-1px);
}
body.dark-mode .dash-prod-tab.active {
    background: linear-gradient(135deg, #1565B8 0%, #1CA3C8 65%, #2BD4E0 100%);
    box-shadow: 0 6px 18px rgba(34, 199, 214, 0.32);
}

/* 2. Recuadro Compacto y Profesional de las 4 Metricas (Numeros Grandes e Imponentes) */
.dash-exec-container .quad-summary-card {
    background: linear-gradient(180deg, #E4F3FC 0%, #F7FCFF 100%);
    border: 1.5px solid #BDE0F4;
    border-radius: 22px;
    padding: 14px 10px;
    box-shadow: 0 10px 24px rgba(15, 62, 110, 0.08);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    text-align: center;
    margin: 0 auto 18px;
}
body.dark-mode .dash-exec-container .quad-summary-card {
    background: linear-gradient(180deg, #0F294A 0%, #0A1D36 100%);
    border-color: rgba(60, 226, 236, 0.28);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
}

.dash-exec-container .quad-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 0;
    border-right: 1px solid rgba(23, 98, 176, 0.13);
    transition: transform 0.14s ease, background 0.14s ease;
}
body.dark-mode .dash-exec-container .quad-metric {
    border-right-color: rgba(255, 255, 255, 0.10);
}
.dash-exec-container .quad-metric:last-child {
    border-right: none;
}
.dash-exec-container .quad-metric:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.55);
    border-radius: 14px;
}
body.dark-mode .dash-exec-container .quad-metric:hover {
    background: rgba(255, 255, 255, 0.05);
}

.dash-exec-container .quad-icon {
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dash-exec-container .quad-num {
    font-size: 2.05rem;
    font-weight: 900;
    color: #08223C;
    line-height: 1.08;
    letter-spacing: -0.5px;
    margin-top: 2px;
}
body.dark-mode .dash-exec-container .quad-num {
    color: #FFFFFF;
}
.dash-exec-container .quad-lbl {
    font-size: 0.82rem;
    color: #365878;
    font-weight: 700;
    line-height: 1.2;
    max-width: 135px;
}
body.dark-mode .dash-exec-container .quad-lbl {
    color: #A5C4E0;
}

/* 3. Fila Separada estilo FDL: Tarjeta Enroll Device (Izquierda) + Mundo FDL Independiente (Derecha) */
.enroll-and-globe-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 auto 22px;
}

.adb-enroll-card-only {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: var(--bg-panel);
    border: 1.5px solid var(--border-soft);
    border-radius: 18px;
    padding: 11px 18px;
    box-shadow: 0 6px 18px rgba(10, 37, 64, 0.06);
}
.adb-strip-info {
    flex: 1;
    min-width: 0;
}
.adb-strip-title {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--text-main);
}
.adb-strip-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.adb-add-pill {
    background: linear-gradient(135deg, #1E6FB8, #2789D2);
    color: #FFFFFF;
    border: none;
    border-radius: 999px;
    padding: 9px 30px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(30, 111, 184, 0.28);
    flex-shrink: 0;
    transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.adb-add-pill:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(30, 111, 184, 0.36); }
.adb-add-pill:active { transform: scale(0.96); }

/* 4. Mundo Identico a FDL: Esfera Terrestre Centrada con Pildora Horizontal Cruzando el Ecuador */
.fdl-globe-widget-btn {
    position: relative;
    width: 132px;
    height: 64px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    transition: transform 0.16s ease;
}
.fdl-globe-widget-btn:hover {
    transform: translateY(-2px) scale(1.03);
}
.fdl-globe-widget-btn:active {
    transform: scale(0.96);
}

/* Pildora horizontal que cruza de izquierda a derecha detras/a traves del globo */
.fdl-globe-equator-pill {
    position: absolute;
    left: 0;
    right: 0;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2573B9 0%, #2E88CE 50%, #2573B9 100%);
    box-shadow: 0 5px 14px rgba(25, 98, 172, 0.28);
    z-index: 1;
}

/* Esfera Terrestre Circular Nitida estilo FDL en el centro */
.fdl-earth-circle {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: radial-gradient(circle at 38% 32%, #E3F4FE 0%, #B9E1FA 62%, #8EC8F0 100%);
    border: 2px solid #0B3559;
    box-shadow: 0 4px 12px rgba(7, 37, 64, 0.22);
    z-index: 2;
}
body.dark-mode .fdl-earth-circle {
    border-color: #7CC7F8;
}

.fdl-earth-scroll-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 240px;
    height: 60px;
    display: flex;
    animation: fdlEarthSpin 10s linear infinite;
}
.fdl-earth-scroll-track svg {
    width: 120px;
    height: 60px;
    flex-shrink: 0;
}

.fdl-earth-grid-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

/* Banda translucida central sobre el globo con texto Mapa nitido como en FDL */
.fdl-globe-front-band {
    position: absolute;
    left: 4px;
    right: 4px;
    height: 28px;
    border-radius: 999px;
    background: rgba(31, 108, 178, 0.78);
    backdrop-filter: blur(1.5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    pointer-events: none;
}
.fdl-globe-label {
    color: #FFFFFF;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-shadow: 0 1px 3px rgba(5, 22, 42, 0.55);
}

@keyframes fdlEarthSpin {
    from { transform: translateX(0); }
    to { transform: translateX(-120px); }
}

.adb-step-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    background: rgba(34, 199, 214, 0.16);
    color: var(--primary);
    margin-bottom: 8px;
}
body.dark-mode .adb-step-badge { color: #3CE2EC; }

@media (max-width: 640px) {
    .dash-product-bar {
        grid-template-columns: repeat(6, minmax(62px, 1fr));
        padding: 5px;
        gap: 4px;
    }
    .dash-prod-tab {
        padding: 8px 4px;
        font-size: 0.78rem;
    }
    .dash-prod-tab svg {
        width: 22px;
        height: 22px;
    }
    .dash-exec-container .quad-num {
        font-size: 1.55rem;
    }
    .dash-exec-container .quad-lbl {
        font-size: 0.71rem;
    }
    .enroll-and-globe-row {
        gap: 10px;
    }
    .adb-enroll-card-only {
        padding: 10px 12px;
    }
    .adb-add-pill {
        padding: 8px 18px;
        font-size: 0.82rem;
    }
    .fdl-globe-widget-btn {
        width: 112px;
        height: 58px;
    }
    .fdl-earth-circle {
        width: 54px;
        height: 54px;
    }
}
