/* ========================================
   CLIENT DETAIL PAGE
======================================== */
.client-detail-identity {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.client-detail-avatar {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-sky));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.client-detail-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.client-detail-avatar span {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.client-detail-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Tab navigation */
.detail-tabs-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.detail-tabs-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-tabs {
    display: flex;
    gap: 0.3rem;
    background: var(--color-bg-2);
    border-radius: var(--radius-md);
    padding: 0.3rem;
    width: fit-content;
    margin-bottom: 1.25rem;
}

.detail-tab {
    padding: 0.55rem 1.25rem;
    border-radius: calc(var(--radius-md) - 2px);
    border: none;
    background: transparent;
    color: var(--color-text-muted);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.detail-tab:hover:not(.detail-tab--active) {
    background: rgba(15, 41, 82, 0.06);
    color: var(--color-text);
}

.detail-tab--active {
    background: var(--color-surface);
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

/* Offers container */
.offers-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.supply-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-label::before,
.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

/* Offer grid */
.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
    align-items: start;
}

@media (max-width: 640px) {
    .offer-grid { grid-template-columns: 1fr; }
}

/* Offer card */
.offer-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.offer-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.25rem 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.offer-card__company {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.company-logo-sm {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: contain;
    border: 1px solid var(--color-border);
    flex-shrink: 0;
}

.company-avatar-sm {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-sky));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
}

.offer-card__company-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.offer-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    flex-shrink: 0;
}

.offer-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.offer-badge--tariff {
    background: rgba(15, 41, 82, 0.08);
    color: var(--color-primary);
}

.offer-badge--indexed {
    background: rgba(245, 197, 24, 0.18);
    color: #7a5c00;
}

.offer-badge--solar {
    background: rgba(22, 163, 74, 0.1);
    color: var(--color-green);
}

.offer-badge--inactive {
    background: rgba(100, 116, 139, 0.14);
    color: var(--color-text-dim);
}

.offer-badge--subs {
    cursor: help;
}

/* ── Tooltip flotante de clientes suscritos ──
   position:fixed + JS: .offer-card tiene overflow:hidden, un tooltip
   position:absolute quedaría recortado por el borde de la card. */
.subs-hover-tooltip {
    display: none;
    position: fixed;
    z-index: 200;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.5rem 0.7rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    max-width: 240px;
    pointer-events: none;
}

.subs-hover-tooltip.is-visible {
    display: block;
}

.subs-hover-tooltip__title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-text-dim);
    margin-bottom: 0.35rem;
}

.subs-hover-tooltip__row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.15rem 0;
}

.subs-hover-tooltip__avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-sky));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    font-size: 0.68rem;
    font-weight: 700;
}

.subs-hover-tooltip__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.subs-hover-tooltip__item {
    font-size: 0.8125rem;
    color: var(--color-text);
    line-height: 1.5;
}

.offer-card__name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem 0.75rem;
    min-width: 0;
}

.offer-card__name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.01em;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Territory badges */
.territory-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    padding: 0 1.25rem 0.75rem;
}

.terr-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
    background: var(--color-bg-2);
    color: var(--color-text-dim);
    font-size: 0.7rem;
    font-weight: 600;
}

/* Price sections */
.price-section {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--color-border);
}

.price-section__label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--color-text-dim);
    margin-bottom: 0.45rem;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
}

.price-table tr + tr td { padding-top: 0.2rem; }

.price-period {
    color: var(--color-text-muted);
    padding-right: 1rem;
    white-space: nowrap;
    font-size: 0.82rem;
}

.price-value {
    color: var(--color-text);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    text-align: right;
}

/* Sparkline */
.sparkline-wrap {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sparkline-chart {
    flex: 1;
    min-width: 80px;
    display: flex;
    flex-direction: column;
}

.sparkline-svg {
    width: 100%;
    height: 40px;
    display: block;
}

.sparkline-months {
    position: relative;
    height: 14px;
    overflow: hidden;
}

.sparkline-months span {
    position: absolute;
    transform: translateX(-50%);
    font-size: 0.58rem;
    color: var(--color-text-dim);
    opacity: 0.6;
    white-space: nowrap;
}

.btn-history {
    flex-shrink: 0;
    font-size: 0.78rem;
    color: var(--color-sky);
    font-weight: 600;
    width: auto;
    height: auto;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-sm);
    background: rgba(30, 115, 195, 0.07);
    transition: background 0.15s;
    cursor: pointer;
    border: none;
    font-family: var(--font-sans);
}

.btn-history:hover {
    background: rgba(30, 115, 195, 0.14);
    color: var(--color-primary);
}

/* History section */
.history-table-wrap {
    padding: 0.5rem 1.25rem 1rem;
    border-top: 1px solid var(--color-border);
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}

.history-table th {
    text-align: center;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-dim);
    padding: 0.25rem 0.5rem;
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap;
}

.history-table th:first-child { text-align: left; }

.history-table .col-e   { background: rgba(59, 130, 246, 0.04); }
.history-table .col-p   { background: rgba(16, 185, 129, 0.04); }
.history-table .col-p-start { border-left: 1px solid var(--color-border); }

.history-legend {
    font-size: 0.72rem;
    color: var(--color-text-dim);
    margin: 0 0 0.5rem;
}

.history-table td {
    text-align: right;
    padding: 0.3rem 0.5rem;
    color: var(--color-text-muted);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    border-bottom: 1px solid rgba(15, 41, 82, 0.04);
}

.history-table td:first-child {
    text-align: left;
    color: var(--color-text);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.82rem;
}

.history-table tr:last-child td { border-bottom: none; }

.history-edit-bar {
    display: flex;
    justify-content: flex-end;
    padding: 0.5rem 0 0;
}

.btn-history-edit {
    font-size: 0.75rem;
    color: var(--color-text-dim);
    background: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.25rem 0.65rem;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

.btn-history-edit:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.history-edit-form {
    padding: 0 0 0.5rem;
}

.history-edit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0 0.75rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 0.5rem;
}

.history-edit-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-add-month {
    font-size: 0.75rem;
    color: var(--color-sky);
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    padding: 0;
}

.btn-add-month:hover { text-decoration: underline; }

.history-rows { display: flex; flex-direction: column; gap: 0.4rem; }

.history-edit-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 0.5rem 0.6rem;
}

.history-row__header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.history-row__header input[type="month"] { flex: 1; }

.history-row__group {
    display: flex;
    align-items: flex-end;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.history-row__glabel {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--color-text-muted);
    min-width: 1rem;
    padding-bottom: 0.3rem;
}

.labeled-input {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    align-items: center;
}

.labeled-input::before {
    content: attr(data-label);
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--color-text-dim);
    line-height: 1;
}

.history-row__group .edit-input--price {
    width: 100px;
}

.edit-input--month {
    width: 7.5rem;
    flex-shrink: 0;
}

/* Offer notes */
.offer-notes {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.83rem;
    color: var(--color-text-muted);
}

.offer-notes summary {
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-dim);
    list-style: none;
    user-select: none;
}

.offer-notes[open] summary { margin-bottom: 0.5rem; }

.offer-notes p {
    line-height: 1.5;
    font-size: 0.83rem;
}

/* Empty state for offers (distinct from page-level .empty-state) */
.empty-offers {
    padding: 2rem;
    text-align: center;
    color: var(--color-text-dim);
    font-size: 0.875rem;
    background: var(--color-surface);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-md);
}

.tab-loading {
    padding: 3rem;
    text-align: center;
    color: var(--color-text-dim);
    font-size: 0.875rem;
}

/* ========================================
   DRILL-DOWN: COMPANY PILLS + TARIFF TABS
======================================== */

/* Buscador de comercializadora */
.company-search-wrap {
    position: relative;
    max-width: 300px;
    margin-bottom: 1rem;
}

.company-search__icon {
    position: absolute;
    left: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    color: var(--color-text-dim);
    pointer-events: none;
}

.company-search {
    width: 100%;
    padding: 0.55rem 0.75rem 0.55rem 2.1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.company-search:focus {
    border-color: var(--color-sky);
    box-shadow: 0 0 0 3px rgba(30, 115, 195, 0.1);
}

.company-search::placeholder { color: var(--color-text-dim); }

/* Selector de comercializadora */
.company-selector {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) transparent;
}

.company-selector::-webkit-scrollbar {
    height: 4px;
}

.company-selector::-webkit-scrollbar-track {
    background: transparent;
}

.company-selector::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 2px;
}

.company-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem 0.45rem;
    width: 150px;
    min-height: 130px;
    flex-shrink: 0;
    border-radius: var(--radius-lg);
    border: 2px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text-muted);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    line-height: 1.3;
    transition: border-color 0.15s, color 0.15s, box-shadow 0.15s, background 0.15s;
    box-shadow: var(--shadow-sm);
}

.company-pill:hover:not(.is-active) {
    border-color: var(--color-border-hover);
    color: var(--color-text);
    box-shadow: var(--shadow-md);
}

.company-pill.is-active {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(15, 41, 82, 0.03);
    box-shadow: 0 0 0 3px rgba(15, 41, 82, 0.08), var(--shadow-sm);
}

.company-pill__avatar {
    width: 96px;
    height: 96px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-sky));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.company-pill__logo {
    width: 96px;
    height: 96px;
    border-radius: 18px;
    object-fit: contain;
    flex-shrink: 0;
    border: 1px solid var(--color-border);
    padding: 4px;
    background: white;
}

/* El lápiz de editar se monta sobre el logo: lo mostramos como chip flotante solo
   al hover o en la comercializadora activa, para que en reposo el logo se vea entero */
.company-pill .company-pill__edit {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text-muted);
    box-shadow: var(--shadow-sm);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.company-pill:hover .company-pill__edit,
.company-pill:focus-within .company-pill__edit,
.company-pill.is-active .company-pill__edit {
    opacity: 1;
    pointer-events: auto;
}

.company-pill .company-pill__edit:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.company-pill span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

/* Barra de filtros */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.filter-group {
    display: flex;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.filter-group .filter-chip {
    border: none;
    border-radius: 0;
    box-shadow: none;
    border-right: 1px solid var(--color-border);
}

.filter-group .filter-chip:last-child {
    border-right: none;
}

.filter-group .filter-chip.is-active {
    box-shadow: none;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-md);
    border: 2px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text-muted);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    white-space: nowrap;
}

.filter-chip:hover:not(.is-active) {
    border-color: var(--color-border-hover);
    color: var(--color-text);
}

.filter-chip.is-active {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(15, 41, 82, 0.05);
}

.filter-chip input[type="radio"],
.filter-chip input[type="checkbox"] {
    display: none;
}

.filter-select {
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-md);
    border: 2px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s;
    appearance: auto;
}

.filter-select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.btn-export {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-md);
    border: 2px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text-muted);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
    white-space: nowrap;
    margin-left: auto;
}

.btn-export:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.empty-offers--filtered {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    padding: 2rem 0;
}

.empty-offers--filtered p {
    margin: 0 0 1rem;
}

/* Panels (show/hide) */
.company-panel.is-hidden,
.tariff-panel.is-hidden {
    display: none;
}

/* ── Modo "Todas": todas las comercializadoras apiladas como secciones ── */
/* Cabecera de sección y etiqueta de tarifa solo se ven en modo "Todas" */
.company-panel__header,
.tariff-panel__label {
    display: none;
}

/* Revela todos los paneles ocultos (4 clases → gana a .company-panel.is-hidden sin !important) */
.offers-container.offers-all .company-panel.is-hidden,
.offers-container.offers-all .tariff-panel.is-hidden {
    display: block;
}

.offers-container.offers-all .tariff-tabs {
    display: none;
}

.offers-container.offers-all .company-panel__header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.offers-container.offers-all .tariff-panel__label {
    display: flex;
    margin: 1.25rem 0 1rem;
}

/* Separación entre secciones de comercializadora (solo entre paneles consecutivos,
   nunca encima del primero — :first-of-type no sirve porque el primer div del
   contenedor es .offers-toolbar, no un .company-panel) */
.offers-container.offers-all .company-panel + .company-panel {
    padding-top: 1.75rem;
    margin-top: 1.75rem;
    border-top: 1px solid var(--color-border);
}

.company-panel__logo,
.company-panel__avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: contain;
    flex-shrink: 0;
}

.company-panel__logo {
    border: 1px solid var(--color-border);
    padding: 4px;
    background: white;
}

.company-panel__avatar {
    background: linear-gradient(135deg, var(--color-primary), var(--color-sky));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.4rem;
}

.company-panel__name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-text);
}

/* En "Todas": cada subsección de ofertas es una tira horizontal scrolleable,
   para que las secciones de comercializadora no crezcan en vertical. */
.offers-container.offers-all .offer-grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 1.25rem;
    overflow-x: auto;
    padding: 0.25rem 0 0.5rem;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) transparent;
    /* Fade en el borde derecho como pista de que hay más ofertas */
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
}

.offers-container.offers-all .offer-grid > .offer-card {
    flex: 0 0 300px;
}

.offers-container.offers-all .offer-grid::-webkit-scrollbar { height: 6px; }
.offers-container.offers-all .offer-grid::-webkit-scrollbar-track { background: transparent; }
.offers-container.offers-all .offer-grid::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 3px;
}

/* Tariff type tabs */
.tariff-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    /* Con muchos tipos de tarifa la fila no cabe en móvil: se desplaza ella, no la página */
    overflow-x: auto;
}

.tariff-tab {
    padding: 0.5rem 1.1rem;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    background: transparent;
    color: var(--color-text-dim);
    font-family: var(--font-sans);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    letter-spacing: 0.01em;
    white-space: nowrap;
    flex-shrink: 0;
}

.tariff-tab:hover:not(.is-active) {
    color: var(--color-text);
}

.tariff-tab.is-active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

