/* ============================================================
   console-shell.css — estilos de shell/dashboard exclusivos de Console

   Complementa a pkg/uikit/assets/moonshot.css (el design system
   compartido con Control). Lo que vive aquí es específico de
   features de Console: el mapa geográfico de SmartLinks, el ranking
   de países y la grilla de paneles del dashboard. Se carga
   inmediatamente después de moonshot.css y antes de console.css.
   ============================================================ */

/* ── Smart Links geo map ────────────────────────────────────────────────── */
.smartlinks-map {
    height: clamp(420px, 55vh, 700px);
    border-radius: .5rem;
    overflow: hidden;
    margin-top: .5rem;
    background: var(--surface-subtle, #f9f9f9);
}

.smartlinks-map__breadcrumb {
    font-size: .8125rem;
    color: var(--text-secondary);
    min-height: 1.25rem;
    margin: .25rem 0 .1rem;
}

.leaflet-control-zoom a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    font-size: 1.125rem !important;
}

/* ── Geo map card: allow natural height growth for the ranked list ───────── */
#smartlinks-map-container,
#smartlinks-map-container-dash article {
    overflow: visible;
    padding-bottom: var(--sp-4);
}

#smartlinks-geo-list,
#smartlinks-dash-geo-list {
    flex: none;
}

/* ── Geo country ranked list ──────────────────────────────────────────────── */
.geo-rank {
    margin-top: .75rem;
    display: flex;
    flex-direction: column;
    gap: .125rem;
}

.geo-rank__row {
    display: grid;
    grid-template-columns: 1.75rem 1.5rem minmax(0, 1fr) minmax(0, 8rem) 2.75rem 3.5rem;
    align-items: center;
    gap: .5rem;
    padding: .25rem .375rem;
    border-radius: .375rem;
    font-size: .8125rem;
    transition: background .1s;
}

.geo-rank__row:hover {
    background: var(--surface-subtle, #f3f3f3);
}

.geo-rank__pos {
    color: var(--text-secondary);
    text-align: right;
    font-size: .75rem;
    font-variant-numeric: tabular-nums;
}

.geo-rank__flag {
    font-size: 1rem;
    line-height: 1;
}

.geo-rank__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.geo-rank__bar-wrap {
    background: var(--border-divider, #e5e5e5);
    border-radius: 9999px;
    height: 5px;
    overflow: hidden;
}

.geo-rank__bar {
    height: 100%;
    background: var(--color-primary);
    border-radius: 9999px;
    min-width: 2px;
}

.geo-rank__pct {
    text-align: right;
    color: var(--text-secondary);
    font-size: .75rem;
    font-variant-numeric: tabular-nums;
}

.geo-rank__count {
    text-align: right;
    color: var(--text-secondary);
    font-size: .75rem;
    font-variant-numeric: tabular-nums;
}

/* Dashboard panels grid (SMS, WhatsApp, etc.) */
.dash-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-4);
    margin-top: var(--sp-5);
}

.dash-kpi__link {
    display: block;
    width: 100%;
    height: 100%;
}
