/* ───────────── EV Charging area ─────────────
   Built on the Dashkit theme variables so it follows light and dark mode. */

.ev-shell { display: flex; gap: 1.5rem; align-items: flex-start; padding-top: 1.5rem; }
.ev-side { width: 230px; flex-shrink: 0; position: sticky; top: 1rem; }
.ev-main { flex: 1; min-width: 0; }

@media (max-width: 991.98px) {
    .ev-shell { flex-direction: column; gap: .75rem; }
    .ev-side { width: 100%; position: static; }
    .ev-nav { display: flex; flex-wrap: wrap; gap: .25rem; }
    .ev-nav .ev-nav-link { flex: 1 1 auto; justify-content: center; }
    .ev-nav-label { display: none; }
}

/* Service switcher */
.ev-service {
    display: flex; align-items: center; gap: .65rem; width: 100%;
    padding: .7rem .8rem; margin-bottom: 1rem; border-radius: .6rem;
    background: rgba(var(--bs-primary-rgb), .08); border: 1px solid rgba(var(--bs-primary-rgb), .18);
    color: inherit; text-align: left;
}
.ev-service:hover { background: rgba(var(--bs-primary-rgb), .13); }
.ev-service-icon {
    width: 34px; height: 34px; border-radius: .5rem; display: grid; place-items: center; flex-shrink: 0;
    background: rgb(var(--bs-primary-rgb)); color: #fff; font-size: .95rem;
}
.ev-service-name { font-weight: 600; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-service-sub { font-size: .75rem; opacity: .65; }

/* Side navigation */
.ev-nav-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; opacity: .5; margin: .9rem .8rem .35rem; }
.ev-nav-link {
    display: flex; align-items: center; gap: .65rem; padding: .5rem .8rem; border-radius: .5rem;
    color: inherit; opacity: .75; text-decoration: none; font-size: .9rem;
}
.ev-nav-link i { width: 1.1rem; text-align: center; }
.ev-nav-link:hover { opacity: 1; background: rgba(var(--bs-body-color-rgb), .05); color: inherit; }
.ev-nav-link.active { opacity: 1; font-weight: 600; background: rgba(var(--bs-primary-rgb), .1); color: rgb(var(--bs-primary-rgb)); }
.ev-nav-count { margin-left: auto; font-size: .7rem; }

/* Stripe status block in the sidebar */
.ev-stripe-status { margin-top: 1rem; padding: .7rem .8rem; border-radius: .6rem; font-size: .8rem;
    border: 1px dashed rgba(var(--bs-body-color-rgb), .2); }
.ev-stripe-status a { font-weight: 600; }

/* Page header */
.ev-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.ev-header h1 { font-size: 1.6rem; margin: 0; }
.ev-pretitle { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; opacity: .55; margin-bottom: .2rem; }

/* Stat tiles */
.ev-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.ev-stat { padding: 1.1rem 1.2rem; border-radius: .75rem; background: var(--bs-card-bg, rgba(var(--bs-body-color-rgb), .03));
    border: 1px solid rgba(var(--bs-body-color-rgb), .08); }
.ev-stat-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; opacity: .6; }
.ev-stat-value { font-size: 1.65rem; font-weight: 600; margin-top: .25rem; line-height: 1.1; }
.ev-stat-hint { font-size: .78rem; opacity: .6; margin-top: .2rem; }
.ev-stat.attention { border-color: rgba(var(--bs-danger-rgb), .45); }
.ev-stat.attention .ev-stat-value { color: rgb(var(--bs-danger-rgb)); }

/* Setup checklist */
.ev-steps { display: grid; gap: .6rem; }
.ev-step { display: flex; align-items: center; gap: .9rem; padding: .8rem 1rem; border-radius: .6rem;
    border: 1px solid rgba(var(--bs-body-color-rgb), .1); }
.ev-step-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
    font-size: .8rem; font-weight: 700; border: 2px solid rgba(var(--bs-body-color-rgb), .25); }
.ev-step.done { opacity: .6; }
.ev-step.done .ev-step-dot { background: #00D97E; border-color: #00D97E; color: #fff; }
.ev-step.next { border-color: rgba(var(--bs-primary-rgb), .5); background: rgba(var(--bs-primary-rgb), .05); }
.ev-step.next .ev-step-dot { border-color: rgb(var(--bs-primary-rgb)); color: rgb(var(--bs-primary-rgb)); }
.ev-step-body { flex: 1; }
.ev-step-title { font-weight: 600; }
.ev-step-text { font-size: .82rem; opacity: .7; }

/* Charger cards */
.ev-charger { border-radius: .75rem; } /* no overflow:hidden: it clips the Start and … dropdowns */
.ev-charger-top { display: flex; align-items: center; gap: .9rem; }
.ev-charger-icon { width: 46px; height: 46px; border-radius: .7rem; display: grid; place-items: center; font-size: 1.3rem;
    background: rgba(var(--bs-body-color-rgb), .06); flex-shrink: 0; }
.ev-charger.online .ev-charger-icon { background: rgba(0, 217, 126, .14); color: #00B368; }
.ev-charger.charging .ev-charger-icon { background: rgba(44, 123, 229, .15); color: #2C7BE5; }
.ev-live { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 600; }
.ev-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ev-live.on { color: #00B368; }
.ev-live.on::before { animation: ev-pulse 1.6s infinite; }
.ev-live.off { opacity: .5; }
@keyframes ev-pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 179, 104, .55); } 70% { box-shadow: 0 0 0 7px rgba(0, 179, 104, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 179, 104, 0); } }

.ev-session-live { margin-top: 1rem; padding: .9rem 1rem; border-radius: .6rem; background: rgba(44, 123, 229, .08); }
.ev-session-live .big { font-size: 1.5rem; font-weight: 600; }
.ev-bar { height: 6px; border-radius: 3px; background: rgba(var(--bs-body-color-rgb), .1); overflow: hidden; margin-top: .5rem; display: flex; }
.ev-bar .night { background: #6E84A3; }
.ev-bar .day { background: #F6C343; }

.ev-kv { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; font-size: .84rem; }
.ev-kv dt { font-weight: 400; opacity: .6; }
.ev-kv dd { margin: 0; }

/* Copyable URL */
.ev-copy { display: flex; align-items: center; gap: .5rem; padding: .45rem .7rem; border-radius: .45rem; font-size: .82rem;
    background: rgba(var(--bs-body-color-rgb), .05); font-family: var(--bs-font-monospace); word-break: break-all; }
.ev-copy button { margin-left: auto; flex-shrink: 0; }

/* Empty / hero states */
.ev-hero { text-align: center; padding: 3rem 1.5rem; }
.ev-hero-icon { width: 72px; height: 72px; border-radius: 1.1rem; margin: 0 auto 1.2rem; display: grid; place-items: center;
    font-size: 2rem; color: #fff; background: linear-gradient(135deg, rgb(var(--bs-primary-rgb)), #2C7BE5); }
.ev-hero h2 { margin-bottom: .5rem; }
.ev-hero p { max-width: 520px; margin: 0 auto 1.4rem; opacity: .75; }

/* Stripe brand button */
.btn-stripe { background: #635BFF; border-color: #635BFF; color: #fff; }
.btn-stripe:hover, .btn-stripe:focus { background: #5146f0; border-color: #5146f0; color: #fff; }

/* Section heading inside cards */
.ev-section { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; opacity: .55; margin-bottom: .6rem; font-weight: 600; }
.ev-mode { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1.25rem; }
.ev-mode-option { border: 1px solid rgba(var(--bs-body-color-rgb), .15); border-radius: .6rem; padding: .8rem 1rem; cursor: pointer; }
.ev-mode-option.selected { border-color: rgb(var(--bs-primary-rgb)); background: rgba(var(--bs-primary-rgb), .06); }
.ev-mode-option .t { font-weight: 600; }
.ev-mode-option .d { font-size: .8rem; opacity: .7; }
@media (max-width: 575.98px) { .ev-mode { grid-template-columns: 1fr; } }
.ev-plan { padding: .45rem .7rem; border-radius: .5rem; background: rgba(var(--bs-primary-rgb), .08); }
