.admin-module-container {
    animation: fadeIn 0.3s ease-out;
}

/* ==========================================================================
   STATE HEATMAP & BRAZIL MAP (PAINEL DE CALOR DE VENDAS POR ESTADO - ERP)
   ========================================================================== */

.state-heatmap-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle, #e2e8f0);
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
    position: relative;
    overflow: hidden;
}

.state-heatmap-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.heatmap-title-box {
    max-width: 820px;
}

.heatmap-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main, #0f172a);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.heatmap-subtitle {
    margin: 0.4rem 0 0 0;
    font-size: 0.85rem;
    color: var(--text-muted, #64748b);
    line-height: 1.45;
}

.heatmap-subtitle code {
    background: #f1f5f9;
    color: #0f172a;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.775rem;
    font-family: monospace;
}

/* Seletor de Modo de Filtro (Pills) */
.filter-mode-pills {
    display: inline-flex;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.filter-pill-btn {
    border: none;
    background: transparent;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.filter-pill-btn:hover {
    color: #1e293b;
}

.filter-pill-btn.active {
    background: #ffffff;
    color: #059669;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Barra de Filtros */
.heatmap-filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.filter-group-month,
.filter-group-range {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-field {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.filter-field label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
    margin: 0;
    white-space: nowrap;
}

.heatmap-select,
.heatmap-input-date {
    height: 36px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.2rem 0.65rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #065f46;
    outline: none;
    transition: border-color 0.2s;
}

.heatmap-select:focus,
.heatmap-input-date:focus {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

/* Presets Rápidos */
.filter-presets {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-left: auto;
}

.preset-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    margin-right: 0.2rem;
}

.btn-preset {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    font-size: 0.775rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-preset:hover {
    background: #ecfdf5;
    color: #047857;
    border-color: #6ee7b7;
}

.btn-preset.active {
    background: #059669;
    color: #ffffff;
    border-color: #059669;
    font-weight: 700;
}

/* Ações de Filtro */
.filter-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-apply-heatmap {
    height: 36px;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0 1rem;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}

.btn-apply-heatmap:hover {
    background: linear-gradient(135deg, #047857 0%, #064e3b 100%);
    transform: translateY(-1px);
}

.btn-reset-heatmap {
    height: 36px;
    width: 36px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    color: #475569;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-reset-heatmap:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

/* KPI Grid */
.heatmap-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.heatmap-kpi-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.heatmap-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.heatmap-kpi-card.accent-emerald { border-left: 4px solid #059669; }
.heatmap-kpi-card.accent-blue    { border-left: 4px solid #2563eb; }
.heatmap-kpi-card.accent-purple  { border-left: 4px solid #7c3aed; }
.heatmap-kpi-card.accent-amber   { border-left: 4px solid #d97706; }
.heatmap-kpi-card.accent-teal    { border-left: 4px solid #0d9488; }

.kpi-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kpi-icon-wrap.emerald { background: #ecfdf5; color: #059669; }
.kpi-icon-wrap.blue    { background: #eff6ff; color: #2563eb; }
.kpi-icon-wrap.purple  { background: #f5f3ff; color: #7c3aed; }
.kpi-icon-wrap.amber   { background: #fffbeb; color: #d97706; }
.kpi-icon-wrap.teal    { background: #f0fdfa; color: #0d9488; }

.kpi-content {
    overflow: hidden;
}

.kpi-content .kpi-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.kpi-content .kpi-val {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0.15rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kpi-content .kpi-sub {
    font-size: 0.725rem;
    color: #94a3b8;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Layout Principal: Mapa + Ranking */
.heatmap-main-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (max-width: 1024px) {
    .heatmap-main-layout {
        grid-template-columns: 1fr;
    }
}

/* Card do Mapa Estático */
.heatmap-map-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 600px;
    max-height: 600px;
    overflow: hidden;
}

.heatmap-map-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1rem;
}

.heatmap-legend-scale {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.scale-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
}

.legend-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.725rem;
    font-weight: 700;
    color: #334155;
    background: #ffffff;
    padding: 2px 7px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.legend-badge .color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid rgba(0,0,0,0.15);
}

.heatmap-svg-container {
    position: relative;
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 480px;
    background: radial-gradient(circle at center, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    padding: 0.5rem;
    border: 1px solid #edf2f7;
}

#brazilHighchartsContainer {
    width: 100%;
    height: 530px;
    position: relative;
}

#brazilHighchartsContainer .highcharts-container {
    width: 100% !important;
    height: 100% !important;
}

.brazil-heatmap-svg {
    max-width: 580px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 6px 16px rgba(15, 23, 42, 0.08));
}

.state-path {
    stroke: #ffffff;
    stroke-width: 2.2;
    cursor: pointer;
    transition: fill 0.35s ease, stroke 0.2s ease, stroke-width 0.2s ease, filter 0.2s ease;
}

.state-path:hover {
    stroke: #0f172a;
    stroke-width: 3.5;
    filter: url(#hoverShadow);
    opacity: 0.95;
}

.state-path.is-active {
    stroke: #d97706 !important;
    stroke-width: 4 !important;
    filter: drop-shadow(0 0 10px rgba(217, 119, 6, 0.5));
}

/* Labels de Siglas sobre o Mapa */
.state-labels-group text {
    font-size: 13px;
    font-weight: 800;
    fill: #1e293b;
    text-anchor: middle;
    letter-spacing: -0.5px;
    text-shadow: 0 0 3px #ffffff, 0 0 4px #ffffff, 0 1px 2px rgba(255, 255, 255, 0.9);
}

.state-labels-group text.label-df {
    font-size: 10px;
}

/* Tooltip Dinâmico */
.heatmap-tooltip {
    position: absolute;
    pointer-events: none;
    z-index: 50;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    color: #ffffff;
    min-width: 230px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
    transform: translate(-50%, -115%);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.tooltip-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 0.5rem;
}

.tooltip-uf {
    font-weight: 900;
    font-size: 1.1rem;
    color: #6ee7b7;
    background: rgba(110, 231, 183, 0.15);
    padding: 2px 6px;
    border-radius: 5px;
}

.tooltip-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #ffffff;
}

.tooltip-badge {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    padding: 2px 6px;
    border-radius: 4px;
}

.tooltip-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.tooltip-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.775rem;
}

.tt-label {
    color: #94a3b8;
}

.tt-val-fat {
    color: #34d399;
    font-size: 0.85rem;
}

.tt-val {
    color: #ffffff;
}

.tt-val-pct {
    color: #fbbf24;
}

.tooltip-foot {
    margin-top: 0.5rem;
    padding-top: 0.45rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
    font-size: 0.7rem;
    color: #cbd5e1;
    font-weight: 700;
    text-align: center;
}

/* Painel Lateral (Ranking & Regiões) */
.heatmap-sidebar-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    height: 600px;
    max-height: 600px;
    overflow: hidden;
}

.tab-panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.tab-panel.d-none {
    display: none !important;
}

.sidebar-tabs {
    display: flex;
    gap: 0.5rem;
    background: #e2e8f0;
    padding: 3px;
    border-radius: 10px;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.heatmap-sidebar-card .tab-btn,
.ranking-tabs .tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.45rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.heatmap-sidebar-card .tab-btn.active,
.ranking-tabs .tab-btn.active {
    background: #ffffff;
    color: #065f46;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Controles de Ranking */
.ranking-controls {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

.search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.search-wrap svg {
    position: absolute;
    left: 0.65rem;
    color: #94a3b8;
    pointer-events: none;
}

.search-wrap input {
    width: 100%;
    height: 34px;
    padding: 0.2rem 0.65rem 0.2rem 2.1rem;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    font-size: 0.8rem;
    outline: none;
}

.search-wrap input:focus {
    border-color: #059669;
}

.sort-select {
    height: 34px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    font-size: 0.775rem;
    font-weight: 700;
    color: #334155;
    padding: 0 0.5rem;
}

/* Lista de Itens do Ranking com Barra de Scroll Fixa */
.ranking-list-wrap {
    flex: 1;
    min-height: 0;
    overflow-y: scroll !important;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-right: 0.4rem;
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 #f1f5f9;
}

.ranking-list-wrap::-webkit-scrollbar {
    width: 6px;
}

.ranking-list-wrap::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.ranking-list-wrap::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

.ranking-list-wrap::-webkit-scrollbar-thumb:hover {
    background: #059669;
}

.ranking-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    padding: 0.65rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.ranking-item:hover,
.ranking-item.is-highlighted {
    transform: translateX(3px);
    border-color: #059669;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.12);
}

.ranking-item.no-sales {
    opacity: 0.6;
}

.rank-pos-col {
    flex-shrink: 0;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 900;
    background: #f1f5f9;
    color: #64748b;
}

.rank-badge.rank-1 { background: #fef3c7; color: #b45309; } /* Ouro */
.rank-badge.rank-2 { background: #f1f5f9; color: #475569; } /* Prata */
.rank-badge.rank-3 { background: #ffedd5; color: #c2410c; } /* Bronze */

.rank-info-col {
    flex: 1;
    min-width: 0;
}

.rank-state-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.25rem;
}

.state-uf-tag {
    font-size: 0.85rem;
    font-weight: 900;
    color: #1e293b;
}

.state-full-name {
    font-size: 0.8rem;
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.state-reg-tag {
    font-size: 0.675rem;
    color: #94a3b8;
    background: #f8fafc;
    padding: 1px 4px;
    border-radius: 4px;
}

.rank-bar-wrap {
    height: 5px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.rank-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
}

.rank-metrics-sub {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #64748b;
}

.rank-val-col {
    text-align: right;
    flex-shrink: 0;
}

.rank-total-val {
    font-size: 0.9rem;
    font-weight: 800;
}

.rank-pct-val {
    font-size: 0.725rem;
    font-weight: 700;
    color: #64748b;
}

/* Lista por Macrorregião */
.regions-list-wrap {
    flex: 1;
    min-height: 0;
    overflow-y: scroll !important;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-right: 0.4rem;
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 #f1f5f9;
}

.regions-list-wrap::-webkit-scrollbar {
    width: 6px;
}

.regions-list-wrap::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.regions-list-wrap::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

.regions-list-wrap::-webkit-scrollbar-thumb:hover {
    background: #059669;
}

.region-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.85rem 1rem;
}

.region-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.region-indicator {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.region-indicator.reg-sudeste      { background: #047857; }
.region-indicator.reg-sul          { background: #059669; }
.region-indicator.reg-nordeste     { background: #34d399; }
.region-indicator.reg-centrooeste  { background: #10b981; }
.region-indicator.reg-norte        { background: #6ee7b7; }

.region-pct-badge {
    font-size: 0.775rem;
    font-weight: 800;
    color: #065f46;
    background: #ecfdf5;
    padding: 2px 7px;
    border-radius: 6px;
}

.region-kpi {
    display: flex;
    justify-content: space-between;
    font-size: 0.775rem;
    margin-bottom: 0.25rem;
}

.region-bar-wrap {
    height: 5px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin: 0.4rem 0;
}

.region-bar {
    height: 100%;
    background: #059669;
    border-radius: 3px;
}

.region-states-list {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

/* Overlay de Loading */
.heatmap-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(2px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.loading-box {
    text-align: center;
}

.loading-text {
    margin-top: 0.75rem;
    font-weight: 800;
    color: #065f46;
    font-size: 0.9rem;
}

/* Geo-Marcação dos Melhores Vendedores por Estado */
.geo-sellers-toggle-box {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    margin-bottom: 2px;
}

.geo-sellers-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.geo-sellers-toggle-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    height: 38px;
    padding: 0 0.95rem;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
    transition: all 0.2s ease;
}

.geo-sellers-toggle-box:hover .geo-sellers-toggle-pill {
    border-color: #059669;
    color: #065f46;
}

.geo-sellers-checkbox:checked + .geo-sellers-toggle-pill {
    background: #ecfdf5;
    border-color: #059669;
    color: #065f46;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.15);
}

.geo-pin-icon {
    font-size: 0.95rem;
}

/* Quick Strip de Campeões Estaduais */
.geo-sellers-quick-strip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-top: 0.75rem;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
}

.geo-strip-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0.25rem 0.55rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.geo-strip-chip:hover {
    border-color: #059669;
    background: #ecfdf5;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(5, 150, 105, 0.15);
}

.geo-strip-chip .chip-uf {
    font-weight: 900;
    color: #0f172a;
    background: #e2e8f0;
    padding: 1px 4px;
    border-radius: 4px;
    font-size: 0.7rem;
}

.geo-strip-chip .chip-name {
    font-weight: 700;
    color: #065f46;
}

.geo-strip-chip .chip-val {
    font-weight: 800;
    color: #0f172a;
    font-size: 0.72rem;
}

/* Cards de Vendedor por Estado no Painel Lateral */
.seller-state-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.85rem;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.seller-state-card:hover,
.seller-state-card.is-highlighted {
    border-color: #059669;
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.12);
}

.seller-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #f1f5f9;
}

.seller-state-badge {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.seller-state-badge .uf-tag {
    font-weight: 900;
    font-size: 0.775rem;
    color: #0f172a;
    background: #f1f5f9;
    padding: 1px 5px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
}

.seller-state-badge .state-name {
    font-weight: 700;
    font-size: 0.8rem;
    color: #334155;
}

.seller-state-badge .reg-tag {
    font-size: 0.68rem;
    color: #64748b;
    background: #f8fafc;
    padding: 1px 4px;
    border-radius: 3px;
}

.seller-rank-tag {
    font-size: 0.68rem;
    font-weight: 800;
    color: #b45309;
    background: #fef3c7;
    padding: 2px 6px;
    border-radius: 5px;
    border: 1px solid #fde68a;
}

.seller-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.seller-info {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.seller-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #059669;
    border: 1.5px solid #a7f3d0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.seller-details {
    min-width: 0;
    flex: 1;
}

.seller-full-name {
    display: block;
    font-size: 0.825rem;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.seller-areas-text {
    display: block;
    font-size: 0.7rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.seller-kpis {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0.35rem;
    background: #f8fafc;
    border-radius: 6px;
    padding: 0.45rem 0.6rem;
    border: 1px solid #f1f5f9;
}

.seller-kpis .kpi-item {
    display: flex;
    flex-direction: column;
}

.seller-kpis .kpi-lbl {
    font-size: 0.65rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
}

.seller-kpis .kpi-val {
    font-size: 0.775rem;
    font-weight: 800;
}

