/* ============================================================
   3V GLOBAL — BASE CSS v2.0
   Token único. Reemplaza styles.css + solar-consumo.css
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Mono:wght@400;500&display=swap');

:root {
  --brand:        #041a67;
  --brand-mid:    #154d9e;
  --brand-light:  #eaf2ff;
  --cyan:         #3aa6db;
  --action:       #0f766e;
  --action-h:     #115e59;
  --danger:       #b91c1c;
  --danger-h:     #991b1b;
  --warning-bg:   #fef3c7;
  --warning-text: #92400e;
  --warn-dot:     #f59e0b;

  --bg:       #f0f4f9;
  --card:     #ffffff;
  --card2:    #f8fbff;
  --surface:  #eef3fa;
  --text:     #0f172a;
  --muted:    #475569;
  --hint:     #94a3b8;
  --border:   #d7dfeb;
  --focus:    rgba(125,211,252,.25);

  --sh-sm: 0 1px 3px rgba(15,23,42,.07);
  --sh-md: 0 4px 16px rgba(15,23,42,.08);
  --sh-lg: 0 12px 32px rgba(15,23,42,.10);

  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 20px; --r-full: 999px;
  --topbar-h: 68px; --stepper-h: 44px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 15px; color: var(--text); background: var(--bg);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font: inherit; }
img { display: block; max-width: 100%; }

/* ─── Shell ─── */
.v-shell { min-height: 100vh; display: flex; flex-direction: column; }
.v-main  { flex: 1; max-width: 1800px; width: 100%; margin: 0 auto; padding: 20px 22px 56px; }

/* ─── Topbar ─── */
.v-topbar {
  position: sticky; top: 0; z-index: 100;
  height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 0 22px;
  background: var(--brand);
  border-bottom: 3px solid var(--cyan);
  box-shadow: 0 2px 14px rgba(4,26,103,.3);
}
.v-brand { display: flex; align-items: center; gap: 12px; }
.v-logo  { width: 44px; height: 44px; border-radius: var(--r-sm); overflow: hidden; flex-shrink: 0; }
.v-logo img { width: 100%; height: 100%; object-fit: cover; }
.v-brand-text h1 { font-size: 1.05rem; font-weight: 700; color: #fff; line-height: 1.2; }
.v-brand-text p  { font-size: .78rem; color: rgba(255,255,255,.68); }
.v-topbar-right  { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ─── Stepper ─── */
.v-stepper {
  position: sticky; top: var(--topbar-h); z-index: 90;
  height: var(--stepper-h); display: flex; align-items: stretch;
  background: #fff; border-bottom: 1px solid var(--border);
  box-shadow: var(--sh-sm); overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none;
}
.v-stepper::-webkit-scrollbar { display: none; }
.v-step {
  display: flex; align-items: center; gap: 8px;
  padding: 0 16px; white-space: nowrap; flex-shrink: 0;
  font-size: .8rem; font-weight: 500; color: var(--hint);
  border-bottom: 3px solid transparent;
  text-decoration: none; cursor: default;
  transition: color .15s, border-color .15s;
}
.v-step.done   { color: var(--action); cursor: pointer; }
.v-step.active { color: var(--brand); border-bottom-color: var(--cyan); font-weight: 700; }
.v-step.done:hover { color: var(--action-h); }
.v-step-n {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 700;
  background: var(--surface); color: var(--hint);
  transition: background .15s, color .15s;
}
.v-step.done   .v-step-n { background: #dcfce7; color: #166534; }
.v-step.active .v-step-n { background: var(--brand); color: #fff; }

/* ─── Botones ─── */
.v-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 15px; border-radius: var(--r-md);
  font-size: .83rem; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; white-space: nowrap;
  transition: background .15s, transform .1s;
}
.v-btn:active { transform: scale(.97); }
.v-btn:disabled { opacity: .5; cursor: not-allowed; }
.v-btn-primary   { background: var(--action);   color: #fff; border-color: var(--action); }
.v-btn-primary:hover:not(:disabled) { background: var(--action-h); }
.v-btn-brand     { background: var(--brand);    color: #fff; border-color: var(--brand); }
.v-btn-brand:hover:not(:disabled) { background: var(--brand-mid); }
.v-btn-ghost-top { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.2); }
.v-btn-ghost-top:hover:not(:disabled) { background: rgba(255,255,255,.22); }
.v-btn-ghost     { background: #f1f5f9; color: var(--text); border-color: var(--border); }
.v-btn-ghost:hover:not(:disabled) { background: #e2e8f0; }
.v-btn-danger    { background: var(--danger); color: #fff; }
.v-btn-danger:hover:not(:disabled) { background: var(--danger-h); }
.v-btn-save      { background: #0f172a; color: #fff; border-color: #0f172a; }
.v-btn-save:hover:not(:disabled) { background: #1e293b; }
.v-btn-next {
  background: linear-gradient(135deg, var(--brand-mid), var(--cyan));
  color: #fff; border: none; padding: 10px 22px; font-size: .9rem; border-radius: var(--r-lg);
  box-shadow: 0 4px 14px rgba(58,166,219,.32);
}
.v-btn-next:hover:not(:disabled) { box-shadow: 0 6px 20px rgba(58,166,219,.44); transform: translateY(-1px); }
.v-btn-sm { padding: 6px 11px; font-size: .78rem; }

/* ─── Formularios ─── */
.v-field { display: flex; flex-direction: column; gap: 4px; }
.v-field label { font-size: .8rem; font-weight: 700; color: #334155; }
.v-field input, .v-field select, .v-field textarea {
  width: 100%; padding: 9px 12px;
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: #fff; color: var(--text); font-size: .88rem;
  transition: border-color .15s, box-shadow .15s;
}
.v-field input:focus, .v-field select:focus, .v-field textarea:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px var(--focus);
}
.v-field-help  { font-size: .73rem; color: var(--muted); margin-top: 2px; }
.v-field-out   { padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); font-weight: 700; font-size: .9rem; }
.v-grid        { display: grid; gap: 14px; }
.v-g2          { grid-template-columns: repeat(2,minmax(0,1fr)); }
.v-g3          { grid-template-columns: repeat(3,minmax(0,1fr)); }
.v-g4          { grid-template-columns: repeat(4,minmax(0,1fr)); }
.v-c2          { grid-column: span 2; }
.v-c3          { grid-column: span 3; }
.v-c4          { grid-column: 1/-1; }

/* ─── Cards ─── */
.v-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--sh-sm);
  padding: 18px 20px; margin-bottom: 18px;
}
.v-card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.v-card-title { display: flex; align-items: center; gap: 10px; }
.v-card-title h3 { font-size: .97rem; font-weight: 700; margin: 0; }
.v-num { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 800; background: var(--brand-light); color: var(--brand-mid); }
.v-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ─── KPIs ─── */
.v-kpi-grid { display: grid; gap: 12px; margin-bottom: 18px; }
.v-kpi-4    { grid-template-columns: repeat(4,minmax(0,1fr)); }
.v-kpi-3    { grid-template-columns: repeat(3,minmax(0,1fr)); }
.v-kpi-2    { grid-template-columns: repeat(2,minmax(0,1fr)); }
.v-kpi {
  background: linear-gradient(135deg, rgba(4,26,103,.88), rgba(21,77,158,.82));
  border: 1px solid rgba(58,166,219,.25);
  border-radius: var(--r-lg); padding: 15px 16px;
}
.v-kpi-hl   { background: linear-gradient(135deg, var(--cyan), #1d9e75); border-color: rgba(29,158,117,.35); }
.v-kpi-lbl  { font-size: .72rem; font-weight: 600; color: rgba(255,255,255,.72); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 5px; }
.v-kpi-val  { font-size: 1.4rem; font-weight: 700; color: #fff; }
.v-kpi-sub  { font-size: .7rem; color: rgba(255,255,255,.55); margin-top: 3px; }

/* ─── Tablas ─── */
.v-table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: var(--r-lg); }
.v-table-tall  { max-height: 520px; }
.v-table-short { max-height: 320px; }
.v-table { width: 100%; border-collapse: collapse; }
.v-table th, .v-table td { padding: 8px 10px; border-bottom: 1px solid #edf2f7; text-align: left; font-size: .83rem; }
.v-table th { background: var(--card2); position: sticky; top: 0; z-index: 1; font-weight: 700; color: #334155; }
.v-table tbody tr:last-child td { border-bottom: none; }
.v-table tbody tr:hover td { background: var(--surface); }
.v-table input[type=number], .v-table input[type=text] { width: 100%; padding: 5px 7px; border: 1px solid var(--border); border-radius: var(--r-sm); font-size: .82rem; }
.v-table input[readonly] { background: var(--surface); color: var(--muted); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.v-empty { text-align: center; color: var(--hint); padding: 20px !important; font-style: italic; }

/* ─── Badges / Pills ─── */
.v-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--r-full); font-size: .74rem; font-weight: 700; }
.v-b-blue   { background: var(--brand-light); color: var(--brand-mid); }
.v-b-green  { background: #dcfce7; color: #166534; }
.v-b-orange { background: #fff7ed; color: #9a3412; }
.v-b-gray   { background: var(--surface); color: var(--muted); }
.v-b-red    { background: #fee2e2; color: #991b1b; }

/* ─── Status / Alerts ─── */
.v-status {
  border-radius: var(--r-md); padding: 10px 14px;
  font-size: .86rem; margin-bottom: 14px; min-height: 40px;
  display: flex; align-items: center;
  background: var(--card2); border: 1px solid var(--border); color: var(--muted);
  transition: background .2s, color .2s;
}
.v-status.ok      { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.v-status.err     { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.v-status.loading { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.v-status.warning { background: var(--warning-bg); border-color: #fde68a; color: var(--warning-text); }
.v-alert-info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }

/* ─── Toast ─── */
#v-toasts {
  position: fixed; bottom: 22px; right: 22px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.v-toast {
  padding: 11px 16px; border-radius: var(--r-md);
  font-size: .86rem; font-weight: 500; max-width: 380px;
  pointer-events: auto; box-shadow: var(--sh-lg);
  animation: tIn .22s ease;
}
.v-toast.out { animation: tOut .22s ease forwards; }
.v-toast-ok      { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.v-toast-err     { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.v-toast-info    { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.v-toast-warning { background: var(--warning-bg); color: var(--warning-text); border: 1px solid #fde68a; }
@keyframes tIn  { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
@keyframes tOut { to   { opacity:0; transform:translateY(10px); } }

/* ─── Dirty dot ─── */
.v-dirty { display: none; align-items: center; gap: 5px; }
.v-dirty.on { display: flex; }
.v-dirty-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn-dot); animation: blink 1.5s infinite; }
.v-dirty-txt { font-size: .76rem; color: var(--warn-dot); font-weight: 600; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

/* ─── User chip ─── */
.v-chip { padding: 6px 12px; border-radius: var(--r-full); background: rgba(255,255,255,.13); color: #fff; font-size: .78rem; font-weight: 500; white-space: nowrap; }

/* ─── Page head ─── */
.v-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.v-page-title { font-size: 1.45rem; font-weight: 700; color: var(--text); }
.v-page-sub   { font-size: .86rem; color: var(--muted); margin-top: 4px; }

/* ─── Summary chips (oferta vinculada) ─── */
.v-chips-row { display: flex; gap: 10px; flex-wrap: wrap; }
.v-chip-card { background: var(--card2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 8px 14px; }
.v-chip-card-lbl { font-size: .7rem; font-weight: 700; color: var(--hint); text-transform: uppercase; letter-spacing: .04em; }
.v-chip-card-val { font-size: .92rem; font-weight: 700; color: var(--text); }

/* ─── Tarifa box ─── */
.v-tarifa-box { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--card2); padding: 10px 12px; margin-top: 12px; }
.v-tarifa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.v-tarifa-item { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 8px 11px; }
.v-tarifa-lbl  { font-size: .72rem; color: var(--muted); font-weight: 700; margin-bottom: 3px; }
.v-tarifa-val  { font-size: .9rem; font-weight: 700; }

/* ─── Layout 2 cols ─── */
.v-2col       { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.v-2col-wide  { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }

/* ─── DOW charts ─── */
.v-dow-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.v-dow-card { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 10px; background: var(--card); }
.v-dow-card h4 { font-size: .82rem; font-weight: 700; margin-bottom: 6px; color: var(--muted); }
.v-dow-card canvas { width: 100% !important; height: 170px !important; }

/* ─── Demand grid ─── */
.v-demand-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.v-demand-item { border: 1px solid var(--border); border-radius: var(--r-md); padding: 9px 11px; background: #fff; }
.v-demand-item label { font-size: .76rem; font-weight: 700; color: var(--muted); display: block; margin-bottom: 4px; }
.v-demand-item input { width: 100%; padding: 7px 9px; border: 1px solid var(--border); border-radius: var(--r-sm); font-size: .86rem; }

/* ─── Metrics row ─── */
.v-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.v-metric   { background: var(--card2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 14px; }
.v-metric-lbl { font-size: .72rem; font-weight: 700; color: var(--muted); }
.v-metric-val { font-size: 1.2rem; font-weight: 700; margin-top: 4px; }

/* ─── Chart wrap ─── */
.v-chart-wrap { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 12px; background: #fff; }
.v-chart-h300 { height: 300px; }
.v-chart-h300 canvas { width: 100% !important; height: 100% !important; }
.v-chart-h350 { height: 350px; }
.v-chart-h350 canvas { width: 100% !important; height: 100% !important; }

/* ─── Modal ─── */
.v-modal-bg {
  position: fixed; inset: 0; background: rgba(10,20,50,.5);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; z-index: 200;
}
.v-modal-bg[hidden] { display: none; }
.v-modal {
  width: min(1100px, 96vw); max-height: 88vh;
  background: #fff; border-radius: var(--r-xl);
  box-shadow: 0 32px 64px rgba(15,23,42,.25);
  display: flex; flex-direction: column; overflow: hidden;
}
.v-modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); background: var(--card2); }
.v-modal-head h3 { font-size: 1.05rem; margin: 0; }
.v-modal-head p  { font-size: .82rem; color: var(--muted); margin: 3px 0 0; }
.v-modal-body   { flex: 1; overflow-y: auto; padding: 16px 20px; }
.v-modal-toolbar { padding: 10px 20px; border-bottom: 1px solid var(--border); display: flex; gap: 10px; }
.v-modal-search  { flex: 1; padding: 9px 13px; border: 1px solid var(--border); border-radius: var(--r-md); font-size: .86rem; }
.v-modal-search:focus { outline: none; border-color: var(--cyan); }

/* ─── Chart modal ─── */
.v-chart-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; }
.v-chart-modal.hidden { display: none; }
.v-chart-modal-bg { position: absolute; inset: 0; background: rgba(10,20,50,.6); }
.v-chart-modal-box {
  position: relative;
  width: min(95vw,1100px); height: min(88vh,720px);
  background: #fff; border-radius: var(--r-xl);
  box-shadow: 0 32px 80px rgba(0,0,0,.3);
  padding: 14px; display: flex; flex-direction: column; gap: 10px;
}
.v-chart-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.v-chart-modal-head h3 { font-size: .97rem; margin: 0; }
.v-chart-modal-body { flex: 1; min-height: 0; }
.v-chart-modal-body canvas { width: 100% !important; height: 100% !important; }

/* ─── Note ─── */
.v-note { background: var(--card2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 9px 13px; font-size: .83rem; color: var(--muted); margin-bottom: 12px; line-height: 1.55; }

/* ─── Login ─── */
.v-login-wrap { min-height: 100vh; display: flex; align-items: center; padding-left: 80px; }
.v-login-box  { background: rgba(255,255,255,.97); border-radius: var(--r-xl); padding: 44px 48px; width: min(560px,94vw); box-shadow: 0 24px 64px rgba(4,26,103,.2); border: 1px solid rgba(255,255,255,.3); }
.v-login-box h1 { font-size: 1.55rem; font-weight: 700; color: var(--brand); margin-bottom: 4px; }
.v-login-box p  { color: var(--muted); margin-bottom: 24px; }
.v-login-logo   { width: 52px; height: 52px; border-radius: var(--r-md); overflow: hidden; margin-bottom: 16px; }
.v-login-logo img { width: 100%; height: 100%; object-fit: cover; }
.v-login-btns   { display: flex; gap: 10px; margin-top: 20px; }
.v-login-btns .v-btn { flex: 1; justify-content: center; padding: 12px; }
.v-login-info   { margin-top: 24px; padding: 12px; border: 1px dashed var(--border); border-radius: var(--r-md); font-size: .83rem; color: var(--muted); }

/* ─── Menu ─── */
.v-menu-grid { display: grid; gap: 16px; max-width: 760px; padding-top: 12px; }
.v-menu-card { background: linear-gradient(135deg, rgba(4,26,103,.9), rgba(21,77,158,.85)); border: 1px solid rgba(58,166,219,.3); border-radius: var(--r-xl); padding: 20px 22px; transition: transform .18s; }
.v-menu-card:hover { transform: translateY(-2px); }
.v-menu-card h3 { font-size: .97rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.v-menu-card p  { font-size: .83rem; color: rgba(255,255,255,.72); margin-bottom: 14px; }

/* ─── Catálogos ─── */
.v-cat-grid  { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 16px; }
.v-cat-card  { background: linear-gradient(135deg, rgba(4,26,103,.9), rgba(21,77,158,.85)); border: 1px solid rgba(58,166,219,.3); border-radius: var(--r-lg); padding: 18px 20px; transition: transform .18s; }
.v-cat-card:hover { transform: translateY(-2px); }
.v-cat-card h3 { font-size: .92rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.v-crud-grid  { display: grid; grid-template-columns: 400px 1fr; gap: 18px; align-items: start; }
.v-stat-grid  { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 18px; }
.v-stat-card  { background: linear-gradient(135deg, rgba(4,26,103,.9), rgba(21,77,158,.85)); border: 1px solid rgba(58,166,219,.3); border-radius: var(--r-lg); padding: 15px; }
.v-stat-lbl   { font-size: .72rem; color: rgba(255,255,255,.7); font-weight: 700; }
.v-stat-val   { font-size: 1.45rem; font-weight: 700; color: #fff; margin-top: 4px; }
.v-search-row { display: grid; grid-template-columns: 1fr 150px 150px; gap: 10px; margin-bottom: 12px; }
.v-pag        { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.v-pag-info   { font-size: .8rem; color: var(--muted); }
.v-pag-btns   { display: flex; gap: 6px; align-items: center; }
.v-pag-lbl    { font-size: .8rem; font-weight: 700; min-width: 100px; text-align: center; }

/* ─── Análisis financiero extras ─── */
.v-fin-sens td { text-align: center; font-size: .82rem; }
.v-fin-sens th { text-align: center; font-size: .78rem; }

/* ─── Utilidades ─── */
.hidden { display: none !important; }
.v-sep  { height: 1px; background: var(--border); margin: 14px 0; }

/* ─── Page fade-in ─── */
body { animation: pgIn .28s ease; }
@keyframes pgIn { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:translateY(0); } }

/* ─── Responsive ─── */
@media (max-width: 1200px) {
  .v-kpi-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .v-g4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .v-2col-wide, .v-2col { grid-template-columns: 1fr; }
  .v-dow-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .v-crud-grid { grid-template-columns: 1fr; }
  .v-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .v-main { padding: 12px 12px 36px; }
  .v-topbar { padding: 0 12px; }
  .v-login-wrap { padding-left: 0; justify-content: center; }
  .v-kpi-4, .v-kpi-3, .v-g3, .v-g4, .v-g2 { grid-template-columns: 1fr; }
  .v-c2, .v-c3, .v-c4 { grid-column: auto; }
  .v-dow-grid, .v-demand-grid, .v-stat-grid, .v-metrics { grid-template-columns: 1fr; }
  .v-2col { grid-template-columns: 1fr; }
  .v-search-row { grid-template-columns: 1fr; }
}

/* ─── Footer global ─── */
.v-footer {
  text-align: center;
  padding: 14px 22px;
  font-size: .74rem;
  color: var(--hint);
  border-top: 1px solid var(--border);
  background: var(--card);
  letter-spacing: .02em;
}
.v-footer strong { color: var(--muted); font-weight: 600; }
