@font-face {
    font-family: "Inter";
    src: url("../branding/fonts/Inter-Variable.ttf") format("truetype");
    font-display: swap;
    font-style: normal;
    font-weight: 100 900;
}

@font-face {
    font-family: "Manrope";
    src: url("../branding/fonts/Manrope-Variable.ttf") format("truetype");
    font-display: swap;
    font-style: normal;
    font-weight: 200 800;
}

:root {
    --ares-bg: var(--ares-evo-bg);
    --ares-surface: var(--ares-evo-surface);
    --ares-border: var(--ares-evo-border);
    --ares-text: var(--ares-evo-text);
    --ares-muted: var(--ares-evo-text-muted);
    --ares-accent: var(--ares-evo-accent);
    --ares-menta-operativa: var(--ares-evo-success);
    --ares-azul-evo: var(--ares-evo-azul-evo);
    --ares-ambar-aviso: var(--ares-evo-warning);
    --ares-rojo-alerta: var(--ares-evo-danger);
    --ares-azul-orbit: var(--ares-evo-azul-orbit);
    --ares-chart-primary: var(--ares-evo-azul-evo);
    --ares-chart-energy: var(--ares-evo-verde-electrico);
    --ares-chart-data: var(--ares-evo-azul-datos);
    --ares-chart-orbit: var(--ares-evo-azul-orbit);
    --ares-chart-success: var(--ares-evo-success);
    --ares-chart-warning: var(--ares-evo-warning);
    --ares-chart-danger: var(--ares-evo-danger);
    --ares-chart-derived-deep: var(--ares-evo-azul-profundo);
    --ares-chart-derived-evo-soft: var(--ares-evo-azul-evo);
    --ares-chart-derived-energy-soft: var(--ares-evo-verde-electrico);
    --ares-shell-bg: var(--ares-evo-azul-profundo);
    --ares-shell-text: var(--ares-evo-blanco-nube);
    --ares-shell-muted: color-mix(in srgb, var(--ares-evo-blanco-nube) 72%, var(--ares-evo-azul-evo));
    --ares-shell-border: color-mix(in srgb, var(--ares-evo-azul-profundo) 72%, var(--ares-evo-azul-evo));
    --ares-shell-active: color-mix(in srgb, var(--ares-evo-azul-profundo) 64%, var(--ares-evo-azul-evo));
    --ares-danger-border: color-mix(in srgb, var(--ares-evo-danger) 34%, var(--ares-evo-blanco-nube));
    --ares-loading-overlay-bg: rgb(248 250 252 / 86%);
    --ares-action-primary: var(--ares-evo-azul-datos);
    --ares-on-action-primary: var(--ares-evo-blanco-nube);
    --ares-action-primary-hover: var(--ares-evo-azul-profundo);
    --ares-secondary-action: var(--ares-evo-azul-datos);
    --ares-disabled-bg: var(--ares-evo-surface-2);
    --ares-disabled-text: var(--ares-evo-text-muted);
}

html[data-theme="dark"] {
    --ares-loading-overlay-bg: rgb(7 59 76 / 86%);
    --ares-action-primary: var(--ares-evo-azul-evo);
    --ares-on-action-primary: var(--ares-evo-grafito-nocturno);
    --ares-action-primary-hover: color-mix(in srgb, var(--ares-evo-azul-evo) 88%, var(--ares-evo-blanco-nube));
    --ares-secondary-action: var(--ares-evo-azul-evo);
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--ares-text);
    background: var(--ares-bg);
    font-family: var(--ares-evo-font-ui);
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: inherit;
}

html[data-theme] .e-control,
html[data-theme] .e-control .e-btn,
html[data-theme] .e-control .e-input,
html[data-theme] .e-control .e-toolbar,
html[data-theme] .e-control .e-grid,
html[data-theme] .e-control .e-rowcell,
html[data-theme] .e-control .e-headercell,
html[data-theme] .e-popup,
html[data-theme] .e-tooltip-wrap,
html[data-theme] .e-dropdown-popup,
html[data-theme] .e-control text {
    font-family: var(--ares-evo-font-ui) !important;
}

html[data-theme] .e-chart text,
html[data-theme] .e-accumulationchart text,
html[data-theme] .e-control svg text {
    font-family: var(--ares-evo-font-ui) !important;
}

.customer-energy-chart,
.customer-energy-chart .e-chart,
.customer-energy-chart .e-chart svg {
    background: transparent !important;
}

.not-found-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    min-height: 220px;
    color: var(--ares-muted);
    font-size: 0.95rem;
}

.loading-panel {
    display: grid;
    place-items: center;
    min-height: 220px;
    color: var(--ares-muted);
}

.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 2400;
    display: grid;
    place-items: center;
    background: var(--ares-loading-overlay-bg);
    backdrop-filter: blur(2px);
}

.loading-overlay .ares-loading-spinner-svg {
    width: 96px;
    height: 96px;
}

.boot-panel {
    display: grid;
    place-items: center;
    min-height: 100vh;
    background: var(--ares-evo-azul-profundo);
}

.boot-panel img {
    width: 92px;
    height: 92px;
}

.ares-loading-spinner {
    display: inline-grid;
    justify-items: center;
    gap: 10px;
    color: var(--ares-text);
    font-weight: 700;
}

.ares-loading-spinner-svg {
    width: 64px;
    height: 64px;
}

.ares-loading-spinner.compact .ares-loading-spinner-svg {
    width: 34px;
    height: 34px;
}

.ares-loading-spinner.large .ares-loading-spinner-svg {
    width: 92px;
    height: 92px;
}

.ares-shell {
    min-height: 100vh;
}

.ares-topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 1.5rem;
    min-height: 56px;
    padding: 12px 24px;
    color: var(--ares-shell-text);
    background: var(--ares-shell-bg);
    border-bottom: 1px solid var(--ares-shell-border);
}

.brand-block {
    display: flex;
    align-items: center;
    min-width: 280px;
}

.ares-brand-logo {
    display: block;
    width: clamp(224px, 22vw, 320px);
    height: auto;
}

.ares-brand {
    font-weight: 700;
    margin-right: 14px;
}

.ares-module {
    color: var(--ares-shell-muted);
    font-family: var(--ares-evo-font-brand);
    font-size: 0.92rem;
    font-weight: 600;
}

.ares-topbar nav {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    max-width: none;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.ares-topbar nav::-webkit-scrollbar {
    display: none;
}

.topbar-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
}

.customer-topbar-tools {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ares-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    color: var(--ares-shell-text);
    background: var(--ares-shell-active);
    border: 1px solid var(--ares-shell-border);
    border-radius: 999px;
    cursor: pointer;
}

.ares-icon-button:hover,
.ares-icon-button:focus-visible {
    color: var(--ares-evo-grafito-nocturno);
    background: var(--ares-evo-azul-evo);
}

.ares-icon-button:focus-visible {
    outline: 2px solid var(--ares-evo-verde-electrico);
    outline-offset: 2px;
}

.ares-icon-button:disabled {
    cursor: progress;
    opacity: 0.68;
}

.ares-icon {
    display: inline-block;
    width: 1.1em;
    height: 1.1em;
    flex: 0 0 auto;
    fill: currentColor;
    overflow: visible;
}

.ares-icon-button .ares-icon {
    width: 1.12rem;
    height: 1.12rem;
}

.ares-icon-button .is-spinning {
    animation: ares-spin 0.9s linear infinite;
}

@keyframes ares-spin {
    to {
        transform: rotate(360deg);
    }
}

.ares-topbar > .topbar-actions > nav > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    color: var(--ares-shell-text);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.88rem;
    white-space: nowrap;
    cursor: pointer;
}

.ares-topbar > .topbar-actions > nav > a.active {
    background: var(--ares-shell-active);
}

.ares-theme-toggle {
    display: inline-grid;
    grid-template-columns: repeat(3, minmax(44px, auto));
    gap: 2px;
    padding: 3px;
    background: var(--ares-shell-active);
    border: 1px solid var(--ares-shell-border);
    border-radius: 8px;
}

.ares-theme-toggle button {
    min-height: 36px;
    padding: 0 8px;
    color: var(--ares-shell-muted);
    background: transparent;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0;
}

.ares-theme-toggle button.is-active {
    color: var(--ares-evo-grafito-nocturno);
    background: var(--ares-evo-azul-evo);
}

.ares-theme-toggle button:focus-visible {
    outline: 2px solid var(--ares-evo-verde-electrico);
    outline-offset: 2px;
}

.ares-theme-toggle button:disabled {
    cursor: default;
    opacity: 0.72;
}

.ares-user-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.ares-user-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    color: var(--ares-shell-text);
    background: var(--ares-shell-active);
    border: 1px solid var(--ares-shell-border);
    border-radius: 999px;
    cursor: pointer;
}

.customer-shell .ares-user-menu-button {
    width: 44px;
    min-width: 44px;
    padding: 0;
    border-radius: 999px;
}

.customer-shell .brand-block {
    color: inherit;
    text-decoration: none;
}

.web-action-button,
.web-inline-button,
.web-inline-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    color: var(--ares-on-action-primary);
    background: var(--ares-action-primary);
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 900;
    letter-spacing: 0;
    text-decoration: none;
}

.web-action-button.e-btn,
.web-action-button.e-control.e-btn,
.web-action-button.e-btn.e-primary {
    color: var(--ares-on-action-primary) !important;
    background: var(--ares-action-primary) !important;
    border-color: var(--ares-action-primary) !important;
    box-shadow: none !important;
}

.web-inline-button.e-btn,
.web-inline-button.e-control.e-btn {
    color: var(--ares-secondary-action) !important;
    background: transparent !important;
    border-color: color-mix(in srgb, var(--ares-secondary-action) 54%, var(--ares-border)) !important;
    box-shadow: none !important;
}

.web-inline-button.danger.e-btn,
.web-inline-button.danger.e-control.e-btn {
    color: var(--ares-rojo-alerta) !important;
    border-color: color-mix(in srgb, var(--ares-rojo-alerta) 36%, var(--ares-border)) !important;
}

.web-action-button:hover,
.web-inline-button:hover,
.web-inline-action:hover {
    filter: brightness(1.04);
}

.web-action-button .ares-icon,
.web-inline-button .ares-icon,
.web-inline-action .ares-icon {
    margin-right: 8px;
}

.web-inline-button {
    min-height: 34px;
    color: var(--ares-secondary-action);
    background: transparent;
    border-color: color-mix(in srgb, var(--ares-secondary-action) 54%, var(--ares-border));
}

.web-history-actions {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.web-icon-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    min-width: 38px;
    height: 38px;
    padding: 0;
    color: var(--ares-on-action-primary);
    background: var(--ares-action-primary);
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
}

.web-icon-action:hover {
    filter: brightness(1.04);
}

.web-icon-action:disabled,
.web-icon-action.is-disabled {
    color: var(--ares-disabled-text);
    background: var(--ares-disabled-bg);
    border-color: var(--ares-border);
    cursor: not-allowed;
    opacity: 0.68;
}

.web-icon-action:disabled:hover,
.web-icon-action.is-disabled:hover {
    filter: none;
}

.web-icon-action .ares-icon {
    width: 21px;
    height: 21px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.web-inline-button:disabled,
.web-action-button:disabled {
    cursor: default;
    opacity: 0.62;
    color: var(--ares-disabled-text);
    background: var(--ares-disabled-bg);
    border-color: var(--ares-border);
}

.dashboard-alert.success {
    color: var(--ares-evo-grafito-nocturno);
    background: var(--ares-evo-success);
    border-color: var(--ares-evo-success);
}

.responsive-table {
    width: 100%;
    overflow-x: auto;
}

.web-data-table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
    color: var(--ares-text);
    font-size: 0.92rem;
}

.web-data-table th,
.web-data-table td {
    padding: 13px 12px;
    text-align: left;
    border-bottom: 1px solid var(--ares-border);
}

.web-data-table th {
    color: var(--ares-muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.transaction-history-table {
    min-width: 1120px;
}

.transaction-cell-stack,
.transaction-payment-cell {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.transaction-cell-stack > span:not(.status-badge) {
    overflow: hidden;
    color: var(--ares-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.transaction-cell-stack .status-badge,
.transaction-payment-cell .status-badge {
    justify-self: start;
}

.transaction-payment-cell > strong {
    font-variant-numeric: tabular-nums;
}

.transaction-actions-header,
.transaction-actions-cell {
    position: sticky;
    right: 0;
    min-width: 116px;
    text-align: right !important;
    white-space: nowrap;
    background: var(--ares-surface);
    box-shadow: -10px 0 18px -16px color-mix(in srgb, var(--ares-text) 48%, transparent);
}

.expanded-list {
    gap: 10px;
}

.expanded-list .client-list-item {
    grid-template-columns: minmax(160px, 1.2fr) minmax(140px, 0.9fr) auto auto;
}

.payment-action-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
}

.payment-action-panel p,
.web-note {
    color: var(--ares-muted);
}

.payment-consent-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    margin-top: 14px;
    max-width: 820px;
    color: var(--ares-muted);
    line-height: 1.45;
}

.payment-consent-option input {
    margin-top: 4px;
}

.processor-receipt-link {
    display: inline-flex;
    justify-content: center;
    margin-top: 14px;
    text-decoration: none;
}

.web-card-list .payment-method-item {
    grid-template-columns: auto minmax(0, 1fr) auto minmax(220px, auto);
}

.profile-detail-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 24px;
}

.profile-detail-panel dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
}

.profile-detail-panel div {
    padding: 16px;
    background: var(--ares-surface);
    border: 1px solid var(--ares-border);
    border-radius: 8px;
}

.profile-detail-panel dt {
    margin-bottom: 6px;
    color: var(--ares-muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.profile-detail-panel dd {
    margin: 0;
    word-break: break-word;
}

.customer-profile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgb(7 59 76 / 62%);
    backdrop-filter: blur(8px);
}

.customer-profile-dialog {
    width: min(620px, 100%);
    max-height: min(760px, calc(100vh - 48px));
    overflow: auto;
    color: var(--ares-text);
    background: var(--ares-surface);
    border: 1px solid var(--ares-border);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgb(7 59 76 / 26%);
}

.customer-profile-dialog header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-bottom: 1px solid var(--ares-border);
}

.customer-profile-dialog h2 {
    margin: 0;
    font-size: 1.2rem;
}

.customer-about-content {
    display: grid;
    justify-items: center;
    gap: 18px;
    padding: 38px 28px 32px;
    cursor: pointer;
    text-align: center;
}

.customer-about-dialog {
    cursor: pointer;
}

.customer-about-logo-pair {
    display: grid;
    place-items: center;
    width: 100%;
}

.customer-theme-logo {
    display: block;
    grid-area: 1 / 1;
    width: 100%;
    height: auto;
}

.customer-theme-logo-dark {
    display: none;
}

html[data-theme="dark"] .customer-about-dialog .customer-theme-logo-light {
    display: none;
}

html[data-theme="dark"] .customer-about-dialog .customer-theme-logo-dark {
    display: block;
}

.customer-about-primary-logo {
    width: min(430px, 94%);
}

.customer-about-primary-logo img {
    max-height: 104px;
}

.customer-about-content .customer-about-version {
    margin: 0;
    color: var(--ares-muted);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.customer-about-endorsement {
    display: grid;
    justify-items: center;
    gap: 8px;
    width: 100%;
    padding-top: 18px;
    border-top: 1px solid var(--ares-border);
}

.customer-about-endorsement span {
    color: var(--ares-muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.customer-about-endorsement-logo {
    width: min(230px, 70%);
}

.customer-about-endorsement-logo img {
    max-height: 64px;
}

.profile-detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 18px;
}

.profile-detail-list div {
    min-width: 0;
    padding: 14px;
    background: var(--ares-bg);
    border: 1px solid var(--ares-border);
    border-radius: 8px;
}

.profile-detail-list dt {
    margin-bottom: 6px;
    color: var(--ares-muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.profile-detail-list dd {
    margin: 0;
    word-break: break-word;
}

.customer-profile-shortcuts {
    display: grid;
    gap: 10px;
    padding: 0 18px 18px;
}

.customer-profile-shortcuts a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    color: var(--ares-text);
    background: var(--ares-bg);
    border: 1px solid var(--ares-border);
    border-radius: 8px;
    text-decoration: none;
}

.customer-profile-shortcuts a:hover,
.customer-profile-shortcuts a:focus-visible {
    border-color: var(--ares-secondary-action);
}

.customer-profile-shortcuts a > span {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.customer-profile-shortcuts small {
    color: var(--ares-muted);
}

.billing-empty-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
}

.billing-empty-panel h2 {
    margin: 0 0 8px;
}

.billing-empty-panel .empty-state {
    padding: 0;
    background: transparent;
    border: 0;
}

@media (max-width: 820px) {
    .payment-action-panel,
    .profile-detail-panel,
    .profile-detail-panel dl,
    .profile-detail-list {
        grid-template-columns: 1fr;
    }

    .expanded-list .client-list-item,
    .web-card-list .payment-method-item {
        grid-template-columns: 1fr;
    }

    .payment-method-actions {
        justify-content: flex-start;
    }
}

.ares-user-menu-button:hover,
.ares-user-menu-button:focus-visible {
    color: var(--ares-evo-grafito-nocturno);
    background: var(--ares-evo-azul-evo);
}

.ares-user-menu-button:focus-visible {
    outline: 2px solid var(--ares-evo-verde-electrico);
    outline-offset: 2px;
}

.ares-user-menu-button .ares-icon {
    width: 1.18rem;
    height: 1.18rem;
}

.ares-user-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 30;
    width: min(280px, calc(100vw - 32px));
    padding: 10px;
    color: var(--ares-text);
    background: var(--ares-surface);
    border: 1px solid var(--ares-border);
    border-radius: 8px;
    box-shadow: 0 18px 38px color-mix(in srgb, var(--ares-evo-grafito-nocturno) 18%, transparent);
}

.ares-user-menu-header {
    display: grid;
    gap: 2px;
    padding: 8px 10px 10px;
    border-bottom: 1px solid var(--ares-border);
}

.ares-user-menu-header strong {
    font-family: var(--ares-evo-font-brand);
    font-size: 0.95rem;
}

.ares-user-menu-header span,
.ares-user-menu-section p,
.ares-user-menu-about span {
    color: var(--ares-muted);
    font-size: 0.78rem;
}

.ares-user-menu-section {
    display: grid;
    gap: 8px;
    padding: 10px 0;
}

.ares-user-menu-section p {
    margin: 0 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.ares-user-theme-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
}

.ares-user-theme-options button,
.ares-user-menu-item {
    min-height: 44px;
    font: inherit;
    cursor: pointer;
}

.ares-user-theme-options button {
    color: var(--ares-muted);
    background: var(--ares-bg);
    border: 1px solid var(--ares-border);
    border-radius: 7px;
    font-size: 0.78rem;
    font-weight: 800;
}

.ares-user-theme-options button.is-active {
    color: var(--ares-evo-grafito-nocturno);
    background: var(--ares-evo-azul-evo);
    border-color: var(--ares-evo-azul-evo);
}

.ares-user-theme-options button:disabled {
    cursor: default;
    opacity: 0.7;
}

.ares-user-menu-item {
    display: grid;
    grid-template-columns: 20px 1fr;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 0 10px;
    color: var(--ares-text);
    text-align: left;
    text-decoration: none;
    background: transparent;
    border: 0;
    border-radius: 7px;
}

.ares-user-menu-item > span:last-child {
    min-width: 0;
    white-space: nowrap;
}

.ares-about-symbol {
    display: inline-block;
    width: 1.2rem;
    height: 1.2rem;
    background: center / contain no-repeat url("../branding/ares-evo-symbol-grafito.svg");
}

html[data-theme="dark"] .ares-about-symbol {
    background-image: url("../branding/ares-evo-symbol-blanco.svg");
}

.ares-user-menu-item:hover,
.ares-user-menu-item:focus-visible,
.ares-user-theme-options button:hover,
.ares-user-theme-options button:focus-visible {
    background: color-mix(in srgb, var(--ares-evo-azul-evo) 12%, var(--ares-surface));
}

.ares-user-menu-item:focus-visible,
.ares-user-theme-options button:focus-visible {
    outline: 2px solid var(--ares-evo-verde-electrico);
    outline-offset: 1px;
}

.ares-user-menu-item.danger {
    color: var(--ares-rojo-alerta);
}

.ares-user-menu-about {
    display: grid;
    gap: 3px;
    margin: 4px 0 6px;
    padding: 10px;
    background: var(--ares-bg);
    border: 1px solid var(--ares-border);
    border-radius: 7px;
}

.ares-main {
    padding: 24px;
}

.auth-page {
    display: grid;
    grid-template-columns: minmax(280px, 0.92fr) minmax(360px, 520px);
    gap: 24px;
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: clamp(20px, 4vw, 56px) 0;
}

.auth-page.compact {
    grid-template-columns: minmax(320px, 520px);
    justify-content: center;
    min-height: 70vh;
    align-items: center;
}

.auth-brand-panel,
.auth-card {
    border-radius: 8px;
    border: 1px solid var(--ares-border);
}

.auth-brand-panel {
    display: flex;
    min-height: 520px;
    flex-direction: column;
    justify-content: flex-end;
    gap: 18px;
    padding: clamp(28px, 4vw, 48px);
    color: var(--ares-evo-blanco-nube);
    background: var(--ares-evo-azul-profundo);
}

.auth-brand-panel img {
    width: min(470px, 100%);
    height: auto;
    margin-bottom: auto;
}

.auth-brand-panel h1,
.auth-card h2,
.client-profile-panel h2 {
    margin: 0;
    letter-spacing: 0;
}

.auth-brand-panel h1 {
    max-width: 520px;
    font-family: var(--ares-evo-font-brand);
    font-size: clamp(2rem, 4vw, 4.3rem);
    line-height: 0.98;
}

.auth-brand-panel p {
    max-width: 460px;
    margin: 0;
    color: color-mix(in srgb, var(--ares-evo-blanco-nube) 74%, var(--ares-evo-azul-evo));
    font-size: 1.05rem;
    line-height: 1.5;
}

.auth-card {
    align-self: center;
    padding: clamp(24px, 4vw, 40px);
    background: var(--ares-surface);
    box-shadow: 0 24px 70px rgb(20 33 61 / 12%);
}

.auth-card h2 {
    font-size: clamp(1.8rem, 3vw, 2.45rem);
}

.auth-form {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.auth-form label {
    display: grid;
    gap: 7px;
    color: var(--ares-text);
    font-weight: 800;
}

.auth-form input {
    width: 100%;
    min-height: 50px;
    box-sizing: border-box;
    padding: 0 16px;
    color: var(--ares-text);
    background: var(--ares-bg);
    border: 1px solid var(--ares-border);
    border-radius: 8px;
    font: inherit;
    font-weight: 600;
}

.auth-form input:focus {
    border-color: var(--ares-action-primary);
    outline: 2px solid color-mix(in srgb, var(--ares-action-primary) 28%, transparent);
    outline-offset: 1px;
}

.auth-form .validation-message {
    color: var(--ares-rojo-alerta);
    font-size: 0.82rem;
    font-weight: 700;
}

.auth-primary {
    min-height: 52px;
    color: var(--ares-on-action-primary);
    background: var(--ares-action-primary);
    border: 1px solid var(--ares-action-primary);
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    text-align: center;
}

.auth-primary:hover,
.auth-primary:focus-visible {
    background: var(--ares-action-primary-hover);
    border-color: var(--ares-action-primary-hover);
}

.auth-primary:focus-visible {
    outline: 2px solid var(--ares-evo-verde-electrico);
    outline-offset: 2px;
}

.auth-primary:disabled {
    cursor: default;
    opacity: 0.72;
    color: var(--ares-disabled-text);
    background: var(--ares-disabled-bg);
    border-color: var(--ares-border);
}

.auth-forgot-link,
.auth-secondary-action a {
    color: var(--ares-accent);
    font-weight: 900;
}

.auth-forgot-link {
    justify-self: center;
    font-size: 0.92rem;
    text-decoration: none;
}

.auth-secondary-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
    color: var(--ares-muted);
}

.auth-social-actions {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.auth-provider-button {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 16px;
    color: var(--ares-text);
    background: var(--ares-bg);
    border: 1px solid var(--ares-border);
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    text-align: center;
}

.auth-provider-button.apple {
    color: white;
    background: #111111;
    border-color: #111111;
}

.auth-provider-button:disabled {
    cursor: default;
    opacity: 0.72;
}

.auth-provider-mark {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--ares-surface);
    color: var(--ares-text);
    font-weight: 900;
}

.auth-provider-button.apple .auth-provider-mark {
    color: #111111;
}

.auth-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin: 18px 0 4px;
    color: var(--ares-muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    background: var(--ares-border);
}

.auth-checkline {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 10px !important;
    color: var(--ares-muted) !important;
    font-size: 0.9rem;
    font-weight: 800 !important;
}

.auth-checkline input {
    width: 18px;
    min-height: 18px;
    accent-color: var(--ares-action-primary);
}

.auth-link-button {
    display: grid;
    place-items: center;
    margin-top: 18px;
    text-decoration: none;
}

.auth-callback-card {
    text-align: center;
}

.auth-callback-text {
    color: var(--ares-muted);
    font-weight: 700;
}

.client-page {
    display: grid;
    gap: 18px;
}

.client-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 2px;
}

.client-summary-grid .kpi-card {
    min-height: 132px;
    padding: 16px;
    background: var(--ares-surface);
    border-right: 1px solid var(--ares-border);
    border-bottom: 1px solid var(--ares-border);
    border-left: 1px solid var(--ares-border);
    border-radius: 8px;
}

.client-profile-panel {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    background: var(--ares-surface);
    border: 1px solid var(--ares-border);
    border-radius: 8px;
}

.client-profile-panel p {
    margin: 5px 0 10px;
    color: var(--ares-muted);
}

.client-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    min-width: 64px;
    height: 64px;
    color: var(--ares-evo-grafito-nocturno);
    background: var(--ares-evo-verde-electrico);
    border-radius: 999px;
    font-weight: 900;
}

.client-panels {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.client-list,
.payment-method-list {
    display: grid;
    gap: 10px;
}

.client-list-item,
.payment-method-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 10px 12px;
    background: var(--ares-bg);
    border: 1px solid var(--ares-border);
    border-radius: 8px;
}

.client-list-item {
    grid-template-columns: minmax(0, 1fr) auto auto;
}

.payment-method-item {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.client-list-item div,
.payment-method-item div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.client-list-item span,
.payment-method-item span,
.empty-state {
    color: var(--ares-muted);
}

.client-list-item strong,
.payment-method-item strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.payment-card-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    min-width: 70px;
    height: 44px;
    color: var(--ares-muted);
}

.payment-card-brand img {
    display: block;
    width: 66px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgb(20 33 61 / 12%);
}

html[data-theme="dark"] .payment-card-brand img {
    box-shadow: 0 10px 20px rgb(0 0 0 / 24%);
}

.payment-method-inline {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    color: var(--ares-muted);
    font-weight: 800;
    line-height: 1.2;
}

.payment-method-card-icon {
    display: block;
    width: 34px;
    min-width: 34px;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 5px 12px rgb(20 33 61 / 12%);
}

html[data-theme="dark"] .payment-method-card-icon {
    box-shadow: 0 7px 14px rgb(0 0 0 / 24%);
}

.payment-method-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.empty-state {
    margin: 0;
    padding: 16px;
    background: var(--ares-bg);
    border: 1px dashed var(--ares-border);
    border-radius: 8px;
}

.dashboard-page {
    max-width: 1480px;
    margin: 0 auto;
}

.dashboard-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 18px;
    margin-bottom: 14px;
}

.eyebrow {
    margin: 0 0 6px;
    color: var(--ares-accent);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.dashboard-header h1 {
    margin: 0;
    font-size: 1.72rem;
    line-height: 1.15;
    letter-spacing: 0;
}

.dashboard-header:focus,
.dashboard-header:focus-visible,
.dashboard-header > div:focus,
.dashboard-header > div:focus-visible,
.dashboard-header h1:focus,
.dashboard-header h1:focus-visible,
.dashboard-header p:focus,
.dashboard-header p:focus-visible,
.panel-title-row:focus,
.panel-title-row:focus-visible,
.panel-title-row > div:focus,
.panel-title-row > div:focus-visible,
.panel-title-row h2:focus,
.panel-title-row h2:focus-visible,
.panel-title-row p:focus,
.panel-title-row p:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.dashboard-title {
    display: grid;
    min-width: 0;
    gap: 6px;
}

.dashboard-title-lockup {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
    flex-wrap: wrap;
}

.dashboard-title-copy {
    display: grid;
    gap: 4px;
    min-width: 280px;
}

.dashboard-title-logo {
    width: min(210px, 36vw);
    height: auto;
    flex: 0 0 auto;
}

.theme-logo-dark {
    display: none;
}

html[data-theme="dark"] .theme-logo-light {
    display: none;
}

html[data-theme="dark"] .theme-logo-dark {
    display: block;
}

.dashboard-subtitle {
    margin: 0;
    color: var(--ares-muted);
}

.dashboard-status-panel {
    display: grid;
    align-self: flex-start;
    justify-items: end;
    gap: 8px;
    max-width: 560px;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.connection-pill,
.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.connection-pill.connected,
.badge-success {
    color: var(--ares-evo-text);
    background: var(--ares-evo-success);
}

.payment-status-badge {
    gap: 6px;
}

.payment-status-badge .ares-icon {
    flex: 0 0 auto;
}

.connection-pill.disconnected,
.badge-warning {
    color: var(--ares-evo-text);
    background: var(--ares-evo-warning);
}

.badge-info {
    color: var(--ares-evo-bg);
    background: var(--ares-evo-info);
}

.badge-danger {
    color: var(--ares-evo-bg);
    background: var(--ares-evo-danger);
}

.badge-neutral {
    color: var(--ares-evo-text);
    background: var(--ares-evo-border);
}

.dashboard-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    color: var(--ares-evo-bg);
    background: var(--ares-evo-danger);
    border: 1px solid var(--ares-evo-danger);
    border-radius: 6px;
}

.dashboard-success {
    margin-bottom: 16px;
    padding: 12px 14px;
    color: var(--ares-evo-text);
    background: var(--ares-evo-success);
    border: 1px solid var(--ares-evo-success);
    border-radius: 6px;
}

.meta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--ares-muted);
    font-size: 0.88rem;
}

.dashboard-status-panel .meta-strip {
    justify-content: flex-end;
    margin-bottom: 0;
}

.meta-strip span {
    padding: 7px 10px;
    background: var(--ares-surface);
    border: 1px solid var(--ares-border);
    border-radius: 6px;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.kpi-grid-4 {
    grid-template-columns: repeat(4, minmax(170px, 1fr));
}

.kpi-grid-5 {
    grid-template-columns: repeat(5, minmax(150px, 1fr));
}

.kpi-card.e-card {
    min-height: 132px;
    border-radius: 8px;
    border: 1px solid var(--ares-border);
    box-shadow: none;
}

.kpi-card .e-card-header-title,
.kpi-card-heading {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--ares-muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.kpi-card-heading h2 {
    margin: 0;
    color: inherit;
    font: inherit;
}

.kpi-card-icon {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    color: var(--ares-text);
    background: color-mix(in srgb, currentColor 10%, transparent);
    border-radius: 7px;
}

.kpi-card.status-good .kpi-card-icon {
    color: var(--ares-menta-operativa);
}

.kpi-card.status-energy .kpi-card-icon {
    color: var(--ares-azul-evo);
}

.kpi-card.status-money .kpi-card-icon {
    color: var(--ares-accent);
}

.kpi-card.status-sync .kpi-card-icon {
    color: var(--ares-ambar-aviso);
}

.kpi-card.status-firmware .kpi-card-icon {
    color: var(--ares-azul-orbit);
}

.kpi-card.status-alert .kpi-card-icon {
    color: var(--ares-rojo-alerta);
}

.customer-profile-save-button,
.customer-vehicle-save-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.kpi-value {
    margin-top: 2px;
    font-size: 1.72rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
}

.kpi-caption {
    margin-top: 8px;
    color: var(--ares-muted);
    font-size: 0.86rem;
}

.kpi-card.status-good {
    border-top: 4px solid var(--ares-menta-operativa);
}

.kpi-card.status-energy {
    border-top: 4px solid var(--ares-azul-evo);
}

.kpi-card.status-money {
    border-top: 4px solid var(--ares-accent);
}

.kpi-card.status-sync {
    border-top: 4px solid var(--ares-ambar-aviso);
}

.kpi-card.status-firmware {
    border-top: 4px solid var(--ares-azul-orbit);
}

.kpi-card.status-alert {
    border-top: 4px solid var(--ares-rojo-alerta);
}

.dashboard-panels {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
}

.dashboard-panel {
    min-width: 0;
    padding: 16px;
    background: var(--ares-surface);
    border: 1px solid var(--ares-border);
    border-radius: 8px;
}

.panel-wide {
    grid-column: 1 / -1;
}

.panel-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.panel-title-row h2 {
    margin: 0;
    font-size: 1.08rem;
    letter-spacing: 0;
}

.panel-title-row p {
    margin: 4px 0 0;
    color: var(--ares-muted);
    font-size: 0.88rem;
}

.customer-dashboard-header > div > p:last-child {
    margin: 6px 0 0;
    color: var(--ares-muted);
}

.customer-kpi-comparison {
    display: block;
    margin-top: 8px;
    color: var(--ares-muted);
    font-size: 0.76rem;
}

.customer-dashboard-summary-grid {
    grid-template-columns: repeat(4, minmax(180px, 1fr));
}

.customer-active-session-panel {
    display: grid;
    gap: 18px;
    border-color: color-mix(in srgb, var(--ares-evo-info) 34%, var(--ares-border));
}

.customer-active-session-heading,
.customer-active-session-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.customer-active-session-heading h2 {
    margin: 2px 0 0;
    font-size: 1.16rem;
}

.customer-active-session-heading p,
.customer-active-session-footer > span {
    margin: 4px 0 0;
    color: var(--ares-muted);
}

.customer-active-session-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(110px, 1fr));
    gap: 10px;
}

.customer-active-session-metrics > div {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 12px;
    background: var(--ares-bg);
    border: 1px solid var(--ares-border);
    border-radius: 8px;
}

.customer-active-session-metrics span {
    color: var(--ares-muted);
    font-size: 0.78rem;
}

.customer-active-session-metrics strong {
    overflow: hidden;
    font-variant-numeric: tabular-nums;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-priority-alert-list {
    display: grid;
    gap: 8px;
}

.customer-priority-alert-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--ares-border);
}

.customer-priority-alert-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.customer-priority-alert-item > div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.customer-priority-alert-item strong,
.customer-priority-alert-item span:not(.customer-priority-alert-icon) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-priority-alert-item span:not(.customer-priority-alert-icon) {
    color: var(--ares-muted);
    font-size: 0.82rem;
}

.customer-priority-alert-icon {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: var(--ares-rojo-alerta);
    background: color-mix(in srgb, var(--ares-rojo-alerta) 10%, transparent);
    border-radius: 8px;
}

.customer-charging-insights-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.customer-charging-insights-grid > article {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 14px;
    background: var(--ares-bg);
    border: 1px solid var(--ares-border);
    border-radius: 8px;
}

.customer-charging-insights-grid strong {
    font-size: 1.16rem;
    font-variant-numeric: tabular-nums;
}

.customer-insight-label,
.customer-charging-insights-grid small {
    color: var(--ares-muted);
}

.customer-insight-label {
    font-size: 0.78rem;
}

.customer-charging-insights-grid small {
    font-size: 0.82rem;
}

.customer-energy-chart-panel .panel-title-row {
    margin-bottom: 0;
}

.charger-discovery-page {
    display: grid;
    gap: 14px;
}

.charger-discovery-page .dashboard-header {
    margin-bottom: 0;
}

.charger-location-refresh {
    min-height: 42px;
    align-self: center;
}

.charger-vehicle-context {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 15px 16px;
    background: var(--ares-surface);
    border: 1px solid var(--ares-border);
    border-left: 4px solid var(--ares-accent);
    border-radius: 8px;
}

.charger-vehicle-context-icon,
.compatible-charger-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--ares-action-primary);
    background: color-mix(in srgb, var(--ares-action-primary) 12%, var(--ares-surface));
    border: 1px solid color-mix(in srgb, var(--ares-action-primary) 24%, var(--ares-border));
    border-radius: 8px;
}

.charger-vehicle-context > div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.charger-vehicle-context p,
.charger-vehicle-context span {
    margin: 0;
    color: var(--ares-muted);
    font-size: 0.82rem;
}

.charger-vehicle-context strong {
    overflow: hidden;
    color: var(--ares-text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.charger-discovery-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 14px;
    padding: 14px;
    background: var(--ares-surface);
    border: 1px solid var(--ares-border);
    border-radius: 8px;
}

.charger-discovery-filter-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.charger-discovery-filter-fields label {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.charger-discovery-filter-fields label > span {
    color: var(--ares-muted);
    font-size: 0.76rem;
    font-weight: 800;
}

.charger-discovery-filter-fields select {
    width: 100%;
    height: 42px;
    min-width: 0;
    padding: 0 11px;
    color: var(--ares-text);
    background: var(--ares-bg);
    border: 1px solid var(--ares-border);
    border-radius: 7px;
}

.charger-discovery-filter-fields select:focus-visible {
    border-color: var(--ares-action-primary);
    outline: 2px solid color-mix(in srgb, var(--ares-action-primary) 24%, transparent);
    outline-offset: 1px;
}

.charger-view-toggle {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(94px, 1fr));
    gap: 3px;
    padding: 3px;
    background: var(--ares-bg);
    border: 1px solid var(--ares-border);
    border-radius: 8px;
}

.charger-view-toggle button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 12px;
    color: var(--ares-muted);
    background: transparent;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 800;
}

.charger-view-toggle button.is-active {
    color: var(--ares-on-action-primary);
    background: var(--ares-action-primary);
}

.charger-view-toggle button:focus-visible {
    outline: 2px solid var(--ares-evo-verde-electrico);
    outline-offset: 1px;
}

.charger-view-toggle button:disabled,
.charger-discovery-filter-fields select:disabled {
    cursor: default;
    opacity: 0.62;
}

.charger-discovery-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 44px;
    padding: 8px 12px;
    color: var(--ares-muted);
    background: color-mix(in srgb, var(--ares-accent) 7%, var(--ares-surface));
    border: 1px solid color-mix(in srgb, var(--ares-accent) 22%, var(--ares-border));
    border-radius: 8px;
}

.charger-discovery-summary > div {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    white-space: nowrap;
}

.charger-discovery-summary strong {
    color: var(--ares-text);
    font-size: 1.18rem;
}

.charger-discovery-summary p {
    margin: 0;
    text-align: right;
    font-size: 0.84rem;
}

.charger-discovery-loading,
.charger-location-required,
.charger-discovery-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 220px;
    text-align: center;
}

.charger-discovery-loading {
    flex-direction: column;
}

.charger-discovery-loading.compact {
    min-height: 130px;
}

.charger-discovery-loading p,
.charger-location-required p,
.charger-discovery-empty p {
    margin: 5px 0 0;
    color: var(--ares-muted);
}

.charger-location-required h2,
.charger-discovery-empty h2 {
    margin: 0;
}

.compatible-charger-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.compatible-charger-card {
    display: grid;
    gap: 14px;
    min-width: 0;
    padding: 16px;
    background: var(--ares-surface);
    border: 1px solid var(--ares-border);
    border-radius: 9px;
    box-shadow: 0 10px 26px color-mix(in srgb, var(--ares-evo-grafito-nocturno) 7%, transparent);
}

.compatible-charger-card > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.compatible-charger-title {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.compatible-charger-title > div {
    min-width: 0;
}

.compatible-charger-title p,
.compatible-charger-title h2 {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compatible-charger-title p {
    color: var(--ares-muted);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.compatible-charger-title h2 {
    margin-top: 3px;
    font-size: 1.04rem;
}

.compatible-charger-heading-meta {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 6px;
}

.charger-compatibility-pill {
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
}

.charger-compatibility-pill.compatibility-direct {
    color: color-mix(in srgb, var(--ares-menta-operativa) 72%, black);
    background: color-mix(in srgb, var(--ares-menta-operativa) 14%, var(--ares-surface));
}

.charger-compatibility-pill.compatibility-adapter {
    color: color-mix(in srgb, var(--ares-accent) 72%, black);
    background: color-mix(in srgb, var(--ares-accent) 14%, var(--ares-surface));
}

.charger-compatibility-pill.compatibility-incompatible,
.charger-compatibility-pill.compatibility-unknown {
    color: var(--ares-muted);
    background: color-mix(in srgb, var(--ares-muted) 12%, var(--ares-surface));
}

.charger-distance-pill {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 3px 9px;
    color: var(--ares-text);
    background: color-mix(in srgb, var(--ares-accent) 12%, var(--ares-bg));
    border: 1px solid color-mix(in srgb, var(--ares-accent) 30%, var(--ares-border));
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.compatible-charger-address {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: var(--ares-muted);
    font-size: 0.84rem;
}

.compatible-charger-address .ares-icon {
    color: var(--ares-action-primary);
}

.compatible-charger-compatibility {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: -4px 0 0;
    color: var(--ares-muted);
    font-size: 0.84rem;
}

.compatible-charger-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.compatible-charger-metrics > div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 10px;
    background: var(--ares-bg);
    border: 1px solid var(--ares-border);
    border-radius: 7px;
}

.compatible-charger-metrics > div > .ares-icon,
.charger-price-symbol {
    color: var(--ares-action-primary);
}

.charger-price-symbol {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    font-size: 0.68rem;
    font-weight: 900;
}

.compatible-charger-metrics span {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.compatible-charger-metrics strong,
.compatible-charger-metrics small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compatible-charger-metrics strong {
    font-size: 0.82rem;
}

.compatible-charger-metrics small {
    color: var(--ares-muted);
    font-size: 0.7rem;
}

.charger-directions-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    gap: 7px;
    min-height: 36px;
    padding: 0 12px;
    color: var(--ares-secondary-action);
    background: transparent;
    border: 1px solid color-mix(in srgb, var(--ares-secondary-action) 45%, var(--ares-border));
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 800;
    text-decoration: none;
}

.charger-directions-link:hover,
.charger-directions-link:focus-visible {
    background: color-mix(in srgb, var(--ares-secondary-action) 9%, var(--ares-surface));
}

.compatible-charger-map-shell {
    display: grid;
    gap: 12px;
}

.compatible-charger-map-frame {
    position: relative;
    height: 522px;
    min-width: 0;
    overflow: hidden;
    background: var(--ares-surface);
    border: 1px solid var(--ares-border);
    border-radius: 9px;
}

.compatible-charger-map-frame .e-maps,
.compatible-charger-map-frame svg {
    display: block;
}

.compatible-map-attribution {
    position: absolute;
    right: 8px;
    bottom: 7px;
    z-index: 2;
    padding: 3px 6px;
    color: var(--ares-text);
    background: color-mix(in srgb, var(--ares-surface) 90%, transparent);
    border-radius: 4px;
    font-size: 0.68rem;
    text-decoration: none;
}

.charger-map-marker {
    display: inline-grid;
    place-items: center;
    width: 54px;
    height: 68px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    filter: drop-shadow(0 5px 7px rgb(7 59 76 / 30%));
    transform: translateY(-28px);
    transform-origin: center bottom;
    pointer-events: none;
}

.charger-map-marker img {
    display: block;
    width: 100%;
    height: 100%;
}

.compatible-map-selection {
    position: absolute;
    inset: 14px 14px auto;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    align-items: center;
    gap: 18px;
    padding: 15px 54px 15px 16px;
    background: var(--ares-surface);
    border: 1px solid var(--ares-border);
    border-radius: 8px;
    box-shadow: 0 14px 28px rgb(7 59 76 / 22%);
}

.compatible-map-selection-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    color: var(--ares-muted);
    background: transparent;
    border: 1px solid var(--ares-border);
    border-radius: 6px;
    cursor: pointer;
}

.compatible-map-selection-close:hover,
.compatible-map-selection-close:focus-visible {
    color: var(--ares-text);
    background: color-mix(in srgb, var(--ares-action-primary) 10%, var(--ares-surface));
    border-color: var(--ares-action-primary);
}

.compatible-map-selection p,
.compatible-map-selection h2,
.compatible-map-selection span {
    margin: 0;
}

.compatible-map-selection p,
.compatible-map-selection span,
.compatible-map-selection dt {
    color: var(--ares-muted);
    font-size: 0.76rem;
}

.compatible-map-selection h2 {
    margin: 3px 0;
    font-size: 1rem;
}

.compatible-map-selection dl {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 18px;
    margin: 0;
}

.compatible-map-selection dt,
.compatible-map-selection dd {
    margin: 0;
}

.compatible-map-selection dd {
    margin-top: 3px;
    font-size: 0.82rem;
    font-weight: 800;
}

.ticket-detail-stage {
    display: grid;
    justify-items: center;
    padding: clamp(20px, 5vw, 36px);
    background: linear-gradient(135deg, var(--ares-evo-azul-profundo), color-mix(in srgb, var(--ares-evo-azul-profundo) 76%, var(--ares-evo-azul-evo)));
    border: 1px solid var(--ares-shell-border);
    border-radius: 8px;
}

.ticket-receipt-shell {
    width: min(100%, 390px);
    --ticket-receipt-paper: #F8FAFC;
    filter: drop-shadow(0 18px 30px rgb(20 33 61 / 22%));
}

.ticket-receipt-tear {
    height: 18px;
    background-repeat: repeat-x;
    background-size: 360px 18px;
}

.ticket-receipt-tear-top {
    background-image: url("/branding/receipt-tear-top.svg");
}

.ticket-receipt-tear-bottom {
    background-image: url("/branding/receipt-tear-bottom.svg");
}

.ticket-receipt-paper {
    margin: 0;
    padding: 18px 20px 22px;
    color: var(--ares-evo-grafito-nocturno);
    background: var(--ticket-receipt-paper);
    font-family: "Courier New", Courier, monospace;
    font-size: 0.82rem;
    line-height: 1.45;
}

.ticket-receipt-logo {
    display: block;
    width: min(190px, 86%);
    height: auto;
    margin: 0 auto 10px;
}

.ticket-receipt-paper p {
    margin: 0 0 7px;
}

.ticket-receipt-kicker,
.ticket-receipt-label,
.ticket-receipt-divider,
.ticket-receipt-center {
    text-align: center;
}

.ticket-receipt-kicker,
.ticket-receipt-label,
.ticket-receipt-divider {
    color: var(--ares-evo-text-muted);
}

.ticket-receipt-strong {
    font-weight: 700;
}

.ticket-receipt-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: baseline;
    margin-bottom: 7px;
}

.ticket-receipt-row strong {
    text-align: right;
}

.ticket-receipt-total {
    margin-top: 10px;
    font-size: 1.08rem;
    font-weight: 700;
}

.ticket-receipt-payment-divider {
    margin-top: 12px;
}

.fallback-editor {
    display: grid;
    gap: 14px;
}

.mode-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fallback-mode-button.e-btn {
    min-height: 40px;
}

.fallback-notes-label {
    color: var(--ares-muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.fallback-notes {
    width: 100%;
    min-height: 96px;
    padding: 10px 12px;
    color: var(--ares-text);
    background: var(--ares-bg);
    border: 1px solid var(--ares-border);
    border-radius: 6px;
    resize: vertical;
}

.fallback-actions {
    display: flex;
    justify-content: flex-end;
}

.report-period-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.report-period-strip span {
    padding: 7px 11px;
    color: var(--ares-muted);
    background: var(--ares-surface);
    border: 1px solid var(--ares-border);
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 700;
}

.report-period-strip .active {
    color: var(--ares-on-action-primary);
    background: var(--ares-action-primary);
    border-color: var(--ares-action-primary);
}

.identity-page {
    display: grid;
    gap: 16px;
}

.identity-success {
    padding: 12px 14px;
    color: var(--ares-evo-text);
    background: var(--ares-evo-success);
    border: 1px solid var(--ares-evo-success);
    border-radius: 6px;
}

.identity-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.identity-tab {
    min-height: 36px;
    padding: 7px 12px;
    color: var(--ares-text);
    background: var(--ares-surface);
    border: 1px solid var(--ares-border);
    border-radius: 6px;
    cursor: pointer;
}

.identity-tab.active {
    color: var(--ares-on-action-primary);
    background: var(--ares-action-primary);
    border-color: var(--ares-action-primary);
}

.identity-panels {
    grid-template-columns: 1fr;
}

.mobile-ops-panels {
    grid-template-columns: 1fr;
}

.commercial-section {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}

.inline-action-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding: 12px 14px;
    color: var(--ares-text);
    background: var(--ares-surface);
    border: 1px solid var(--ares-border);
    border-radius: 6px;
}

.commercial-panels {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.readiness-gate-panel {
    margin-bottom: 16px;
}

.readiness-gate-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.readiness-gate-content h2 {
    margin: 0;
    font-size: 1.2rem;
    letter-spacing: 0;
}

.readiness-gate-content p {
    margin: 6px 0 0;
    color: var(--ares-muted);
}

.readiness-gate-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.readiness-gate-metrics span {
    min-height: 28px;
    padding: 6px 10px;
    color: var(--ares-evo-text);
    background: var(--ares-bg);
    border: 1px solid var(--ares-border);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.readiness-gate-action {
    margin: 12px 0 0;
    color: var(--ares-evo-text);
    font-size: 0.9rem;
    font-weight: 700;
}

.dependency-panel {
    margin-bottom: 16px;
}

.scenario-readiness-panel {
    margin-bottom: 16px;
}

.demo-cycle-panel {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
    border-top: 4px solid var(--ares-evo-verde-electrico);
}

.demo-cycle-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.demo-cycle-header h2 {
    margin: 0;
    font-size: 1.26rem;
    letter-spacing: 0;
}

.demo-cycle-header p {
    margin: 6px 0 0;
    color: var(--ares-muted);
}

.demo-cycle-status {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.demo-cycle-rail {
    display: grid;
    grid-template-columns: repeat(5, minmax(142px, 1fr));
    gap: 10px;
}

.demo-cycle-step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    min-height: 116px;
    padding: 12px;
    background: var(--ares-bg);
    border: 1px solid var(--ares-border);
    border-radius: 8px;
}

.demo-cycle-step-number {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: var(--ares-on-action-primary);
    background: var(--ares-action-primary);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.demo-cycle-step h3 {
    margin: 0;
    font-size: 0.96rem;
    letter-spacing: 0;
}

.demo-cycle-step p {
    margin: 5px 0 8px;
    color: var(--ares-muted);
    font-size: 0.82rem;
}

.demo-cycle-step strong {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    color: var(--ares-text);
    font-size: 0.9rem;
}

.demo-cycle-step.active {
    border-color: var(--ares-azul-evo);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ares-azul-evo) 22%, transparent);
}

.demo-cycle-step.complete {
    border-color: var(--ares-evo-success);
}

.demo-cycle-step.complete .demo-cycle-step-number {
    color: var(--ares-evo-text);
    background: var(--ares-evo-success);
}

.demo-cycle-live {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    color: var(--ares-muted);
    background: var(--ares-bg);
    border: 1px solid var(--ares-border);
    border-radius: 8px;
}

.demo-cycle-live strong {
    color: var(--ares-text);
    text-align: right;
}

.dependency-list {
    display: grid;
    gap: 10px;
}

.dependency-row {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 14px;
    align-items: start;
    padding: 12px 0;
    border-top: 1px solid var(--ares-border);
}

.dependency-row:first-child {
    border-top: 0;
}

.dependency-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dependency-title-row h3 {
    margin: 0;
    font-size: 0.98rem;
    letter-spacing: 0;
}

.dependency-main p {
    margin: 6px 0 0;
    color: var(--ares-muted);
    font-size: 0.88rem;
}

.dependency-main .dependency-required-action {
    color: var(--ares-evo-text);
    font-weight: 700;
}

.dependency-flags {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 7px;
}

.dependency-flags span {
    min-height: 26px;
    padding: 5px 9px;
    color: var(--ares-muted);
    background: var(--ares-bg);
    border: 1px solid var(--ares-border);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.identity-table-wrap {
    overflow-x: auto;
}

.identity-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
}

.identity-table th,
.identity-table td {
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--ares-border);
}

.identity-table th {
    color: var(--ares-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.identity-actions,
.identity-form-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.identity-login-actions {
    align-content: end;
}

.identity-action,
.identity-primary {
    min-height: 34px;
    padding: 6px 10px;
    color: var(--ares-text);
    background: var(--ares-surface);
    border: 1px solid var(--ares-border);
    border-radius: 6px;
    cursor: pointer;
}

.identity-primary {
    color: var(--ares-on-action-primary);
    background: var(--ares-action-primary);
    border-color: var(--ares-action-primary);
}

.identity-action.danger {
    color: var(--ares-rojo-alerta);
    border-color: var(--ares-danger-border);
}

.identity-action:disabled,
.identity-primary:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    color: var(--ares-disabled-text);
    background: var(--ares-disabled-bg);
    border-color: var(--ares-border);
}

.identity-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 12px;
}

.identity-form-grid label,
.identity-option-block {
    display: grid;
    gap: 6px;
}

.identity-form-grid span,
.identity-option-block h3,
.identity-permission-group h4 {
    margin: 0;
    color: var(--ares-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.identity-form-grid input[type="text"],
.identity-form-grid input[type="password"] {
    min-height: 36px;
    padding: 7px 10px;
    color: var(--ares-text);
    background: var(--ares-surface);
    border: 1px solid var(--ares-border);
    border-radius: 6px;
}

.identity-check {
    align-content: end;
    grid-template-columns: auto 1fr;
    align-items: center;
}

.identity-option-block {
    margin-top: 16px;
}

.identity-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 8px;
}

.identity-option {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 7px 10px;
    background: var(--ares-bg);
    border: 1px solid var(--ares-border);
    border-radius: 6px;
}

.identity-permission-group {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.customer-profile-page-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
}

.customer-profile-page-copy,
.customer-profile-page-title-row > div {
    min-width: 0;
}

.customer-profile-page-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.customer-profile-page-title-row h2,
.customer-profile-section-heading h2 {
    margin: 0;
}

.customer-profile-page-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
    margin: 18px 0 0;
}

.customer-profile-page-details > div {
    min-width: 0;
}

.customer-profile-page-details dt,
.customer-profile-form-field > span {
    color: var(--ares-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.customer-profile-page-details dd {
    margin: 4px 0 0;
    overflow-wrap: anywhere;
    color: var(--ares-text);
}

.customer-profile-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.customer-profile-form-field {
    display: grid;
    align-content: start;
    gap: 6px;
    min-width: 0;
}

.customer-profile-form-field small {
    color: var(--ares-muted);
    font-size: 0.78rem;
    line-height: 1.4;
}

.customer-profile-text-input {
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    padding: 10px 12px;
    color: var(--ares-text);
    background: var(--ares-surface);
    border: 1px solid var(--ares-border);
    border-radius: 8px;
}

.customer-profile-text-input:focus {
    border-color: var(--ares-secondary-action);
    outline: 2px solid color-mix(in srgb, var(--ares-secondary-action) 20%, transparent);
    outline-offset: 1px;
}

.customer-profile-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 18px;
}

.customer-profile-save-button {
    min-height: 36px;
    padding: 7px 12px;
    color: var(--ares-on-action-primary);
    background: var(--ares-action-primary);
    border: 1px solid var(--ares-action-primary);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
}

.customer-profile-save-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.customer-profile-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
}

.customer-profile-section-heading p:last-child {
    margin: 4px 0 0;
    color: var(--ares-muted);
}

.customer-vehicle-selected-panel,
.customer-vehicle-title-row,
.customer-vehicle-form-actions,
.customer-vehicle-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.customer-vehicle-selected-panel p,
.customer-vehicle-form-panel p,
.customer-vehicle-copy p {
    margin: 4px 0 0;
    color: var(--ares-muted);
}

.customer-vehicle-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.customer-vehicle-form-field {
    display: grid;
    align-content: start;
    gap: 6px;
    min-width: 0;
}

.customer-vehicle-form-field > span {
    color: var(--ares-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.customer-vehicle-text-input,
.customer-vehicle-form-grid .e-input-group.e-control-wrapper {
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    color: var(--ares-text);
    background: var(--ares-surface) !important;
    border: 1px solid var(--ares-border) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

.customer-vehicle-text-input {
    padding: 10px 12px;
}

.customer-vehicle-form-grid .e-input-group.e-control-wrapper input.e-input {
    min-height: 44px;
    padding: 9px 12px !important;
    color: var(--ares-text) !important;
    background: transparent !important;
}

.customer-vehicle-text-input:focus,
.customer-vehicle-form-grid .e-input-group.e-control-wrapper:focus-within {
    border-color: var(--ares-secondary-action) !important;
    outline: 2px solid color-mix(in srgb, var(--ares-secondary-action) 20%, transparent);
    outline-offset: 1px;
}

.customer-vehicle-form-grid .e-input-group.e-disabled {
    color: var(--ares-disabled-text);
    background: var(--ares-disabled-bg) !important;
    opacity: 0.72;
}

.customer-vehicle-selection-summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 12px 14px;
    color: var(--ares-text);
    background: color-mix(in srgb, var(--ares-secondary-action) 7%, var(--ares-bg));
    border: 1px solid color-mix(in srgb, var(--ares-secondary-action) 28%, var(--ares-border));
    border-radius: 8px;
}

.customer-vehicle-selection-summary > div {
    display: grid;
    gap: 3px;
}

.customer-vehicle-selection-summary span {
    color: var(--ares-muted);
    font-size: 0.88rem;
}

.customer-vehicle-default-option {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 14px 0;
    color: var(--ares-muted);
}

.customer-vehicle-save-button {
    min-height: 36px;
    padding: 7px 12px;
    color: var(--ares-on-action-primary);
    background: var(--ares-action-primary);
    border: 1px solid var(--ares-action-primary);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
}

.customer-vehicle-save-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.customer-vehicle-list {
    display: grid;
    gap: 10px;
}

.customer-vehicle-list-panel {
    display: grid;
    gap: 14px;
}

.customer-vehicle-list-panel .panel-title-row {
    margin-bottom: 0;
}

.customer-vehicle-app-list {
    display: grid;
    gap: 10px;
}

.customer-vehicle-app-item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    background: var(--ares-bg);
    border: 1px solid var(--ares-border);
    border-radius: 9px;
}

.customer-vehicle-app-item.is-selected {
    background: color-mix(in srgb, var(--ares-secondary-action) 8%, var(--ares-surface));
    border-color: color-mix(in srgb, var(--ares-secondary-action) 32%, var(--ares-border));
}

.customer-vehicle-app-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    background: color-mix(in srgb, var(--ares-secondary-action) 10%, var(--ares-surface));
    border: 1px solid color-mix(in srgb, var(--ares-secondary-action) 24%, var(--ares-border));
    border-radius: 9px;
}

.vehicle-theme-icon {
    display: block;
    width: 36px;
    height: 36px;
}

.vehicle-theme-icon-dark {
    display: none;
}

html[data-theme="dark"] .vehicle-theme-icon-light {
    display: none;
}

html[data-theme="dark"] .vehicle-theme-icon-dark {
    display: block;
}

.customer-vehicle-app-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.customer-vehicle-app-copy p,
.customer-vehicle-app-copy > span,
.customer-vehicle-app-copy small {
    margin: 0;
    overflow: hidden;
    color: var(--ares-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-vehicle-app-copy > span {
    font-size: 0.86rem;
}

.customer-vehicle-app-copy small {
    font-size: 0.78rem;
}

.customer-vehicle-selected-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
}

.customer-vehicle-selected-mark img {
    display: block;
    width: 26px;
    height: 26px;
}

.customer-vehicle-add-action {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 12px;
    gap: 12px;
    align-items: center;
    width: 100%;
    min-height: 64px;
    padding: 12px 14px;
    color: var(--ares-text);
    background: transparent;
    border: 1px dashed color-mix(in srgb, var(--ares-secondary-action) 48%, var(--ares-border));
    border-radius: 9px;
    cursor: pointer;
    font-weight: 800;
    text-align: left;
}

.customer-vehicle-add-action:hover,
.customer-vehicle-add-action:focus-visible {
    background: color-mix(in srgb, var(--ares-secondary-action) 8%, var(--ares-surface));
    border-style: solid;
}

.customer-vehicle-add-action:disabled {
    cursor: default;
    opacity: 0.62;
}

.customer-vehicle-add-action > img {
    display: block;
    width: 30px;
    height: 30px;
}

.customer-vehicle-add-action .customer-vehicle-add-chevron {
    justify-self: end;
    width: 10px;
    height: 18px;
}

.customer-adapter-list {
    display: grid;
    gap: 10px;
}

.customer-adapter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px;
    border: 1px solid var(--ares-border);
    border-radius: 9px;
}

.customer-adapter-item h3,
.customer-adapter-item p {
    margin: 0;
}

.customer-adapter-item small {
    color: var(--ares-muted);
}

.customer-adapter-toggle {
    display: flex;
    gap: 6px;
}

.customer-adapter-toggle button {
    padding: 7px 10px;
    color: var(--ares-text);
    background: transparent;
    border: 1px solid var(--ares-border);
    border-radius: 999px;
    cursor: pointer;
}

.customer-adapter-toggle button.is-active {
    color: color-mix(in srgb, var(--ares-menta-operativa) 72%, black);
    background: color-mix(in srgb, var(--ares-menta-operativa) 14%, var(--ares-surface));
    border-color: var(--ares-menta-operativa);
}

.customer-adapter-toggle button.is-active.is-negative {
    color: var(--ares-rojo-alerta);
    background: color-mix(in srgb, var(--ares-rojo-alerta) 10%, var(--ares-surface));
    border-color: var(--ares-rojo-alerta);
}

.customer-vehicle-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid var(--ares-border);
}

.customer-vehicle-item:first-child {
    border-top: 0;
}

.customer-vehicle-title-row {
    justify-content: flex-start;
}

.customer-vehicle-title-row h3 {
    margin: 0;
}

.customer-vehicle-copy > span {
    display: block;
    margin-top: 5px;
    color: var(--ares-muted);
    font-size: 0.86rem;
}

#blazor-error-ui {
    display: none;
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1000;
    max-width: 520px;
    padding: 12px 14px;
    color: var(--ares-evo-bg);
    background: var(--ares-evo-danger);
    border: 1px solid var(--ares-evo-danger);
    border-radius: 8px;
    box-shadow: 0 16px 40px rgb(15 23 42 / 16%);
}

#blazor-error-ui .reload,
#blazor-error-ui .dismiss {
    margin-left: 10px;
    font-weight: 700;
}

@media (max-width: 1180px) {
    .kpi-grid,
    .kpi-grid-4,
    .kpi-grid-5 {
        grid-template-columns: repeat(3, minmax(180px, 1fr));
    }

    .demo-cycle-rail {
        grid-template-columns: repeat(3, minmax(170px, 1fr));
    }

    .identity-form-grid,
    .identity-options {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }

    .client-summary-grid {
        grid-template-columns: 1fr 1fr;
    }

    .client-profile-panel {
        grid-column: 1 / -1;
    }

    .customer-charging-insights-grid {
        grid-template-columns: 1fr 1fr;
    }

    .customer-active-session-metrics {
        grid-template-columns: repeat(3, minmax(110px, 1fr));
    }
}

@media (max-width: 1400px) {
    .ares-topbar {
        grid-template-columns: 1fr auto;
        gap: 10px 18px;
    }

    .brand-block {
        min-width: 0;
    }

    .topbar-actions {
        display: contents;
    }

    .ares-user-menu {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .ares-topbar nav {
        grid-column: 1 / -1;
        grid-row: 2;
        gap: 5px;
        flex-wrap: wrap;
        overflow-x: visible;
    }

    .ares-topbar > .topbar-actions > nav > a {
        padding: 7px 8px;
        font-size: 0.82rem;
    }
}

@media (max-width: 920px) {
    .ares-main {
        padding: 16px;
    }

    .auth-page {
        grid-template-columns: 1fr;
        padding-top: 18px;
    }

    .auth-brand-panel {
        min-height: 300px;
    }

    .dashboard-header {
        grid-template-columns: 1fr;
    }

    .dashboard-status-panel {
        justify-items: start;
        width: 100%;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .dashboard-status-panel .meta-strip {
        justify-content: flex-start;
    }

    .dashboard-panels {
        grid-template-columns: 1fr;
    }

    .client-summary-grid,
    .client-panels {
        grid-template-columns: 1fr;
    }

    .customer-active-session-heading,
    .customer-active-session-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .customer-active-session-metrics {
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .customer-charging-insights-grid {
        grid-template-columns: 1fr;
    }

    .demo-cycle-header,
    .demo-cycle-live {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .demo-cycle-live strong {
        text-align: left;
    }

    .customer-vehicle-selected-panel,
    .customer-vehicle-item,
    .customer-vehicle-app-item,
    .customer-profile-page-panel {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .customer-vehicle-form-grid,
    .customer-profile-form-grid {
        grid-template-columns: 1fr;
    }

    .compatible-charger-list {
        grid-template-columns: 1fr;
    }

    .compatible-map-selection {
        position: absolute;
        grid-template-columns: 1fr;
    }

    .compatible-map-selection dl {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .compatible-map-selection .charger-directions-link {
        justify-self: start;
    }
}

@media (max-width: 640px) {
    .ares-topbar {
        align-items: center;
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 12px 16px;
    }

    .brand-block {
        width: 100%;
    }

    .ares-topbar nav {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .ares-brand-logo {
        width: 212px;
    }

    .dashboard-header h1 {
        font-size: 1.58rem;
    }

    .dashboard-title-logo {
        width: min(210px, 74vw);
    }

    .dashboard-title-copy {
        min-width: 0;
    }

    .kpi-grid,
    .kpi-grid-4,
    .kpi-grid-5 {
        grid-template-columns: 1fr;
    }

    .demo-cycle-rail {
        grid-template-columns: 1fr;
    }

    .identity-form-grid,
    .identity-options,
    .customer-vehicle-form-grid,
    .customer-profile-form-grid,
    .customer-profile-page-details {
        grid-template-columns: 1fr;
    }

    .customer-vehicle-actions,
    .customer-vehicle-form-actions,
    .customer-profile-form-actions {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .customer-vehicle-app-item {
        gap: 12px;
    }

    .customer-vehicle-app-item .customer-vehicle-actions {
        width: 100%;
    }

    .auth-brand-panel,
    .auth-card {
        padding: 22px;
    }

    .client-profile-panel,
    .client-list-item,
    .payment-method-item {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .payment-method-item {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .client-profile-panel {
        display: grid;
    }

    .payment-card-brand {
        justify-content: flex-start;
    }

    .billing-empty-panel {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .charger-vehicle-context,
    .charger-discovery-toolbar,
    .charger-discovery-filter-fields {
        grid-template-columns: 1fr;
    }

    .charger-vehicle-context-icon {
        display: none;
    }

    .charger-vehicle-context .web-inline-action,
    .charger-view-toggle {
        width: 100%;
    }

    .charger-discovery-summary,
    .compatible-charger-card > header,
    .charger-location-required,
    .charger-discovery-empty {
        align-items: flex-start;
        flex-direction: column;
    }

    .charger-discovery-summary p {
        text-align: left;
    }

    .compatible-charger-heading-meta {
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .compatible-charger-metrics,
    .compatible-map-selection dl {
        grid-template-columns: 1fr;
    }

    .charger-directions-link {
        justify-self: stretch;
    }

    .compatible-charger-map-frame {
        height: 442px;
    }

    .compatible-charger-map-frame .e-maps {
        height: 440px !important;
    }
}
