/* GOracle exec dashboard — SCION (NL Query) design language, light theme, polished. */

:root {
  --go-purple: #4b2d7f;
  --go-violet: #6b3fa0;
  --go-teal: #2aabb3;
  --go-coral: #e8734a;
  --go-magenta: #c74b8b;
  --go-blue: #0098fc;
  --go-purple-light: #f3eefa;
  --go-bg: #f7f8fc;
  --text: #1f2937;
  --text-2: #374151;
  --muted: #64748b;
  --faint: #94a3b8;
  --border: #e5e7eb;
  --grid: #eef1f6;
  --panel: #ffffff;
  --card-border: rgba(75, 45, 127, 0.07);
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 24px rgba(75, 45, 127, 0.07);
  --glass: rgba(255, 255, 255, 0.9);
  --header-bg: rgba(255, 255, 255, 0.78);
  --btn-bg: rgba(255, 255, 255, 0.8);
  --btn-border: #d8dde5;
  --value-ink: #111827;
  --row-hover: #faf9fd;
  --row-border: #f3f4f6;
  --cell-base: #f1f5f9;
  --spectrum: linear-gradient(90deg, var(--go-teal), var(--go-blue), var(--go-purple), var(--go-magenta), var(--go-coral), var(--go-teal));
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Sora", "Inter", -apple-system, sans-serif;
  /* chart series — GO brand palette, dataviz-validated on white
     (worst adjacent CVD dE 21.3) */
  --series-1: #0098fc;
  --series-2: #e8734a;
  --series-3: #2aabb3;
  --series-4: #9225c8;
  --series-5: #c74b8b;
  --series-6: #c98500;
  --up: #059669;
  --down: #b91c1c;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--text);
  background:
    radial-gradient(ellipse 70% 45% at 12% -4%, rgba(42, 171, 179, 0.14), transparent 60%),
    radial-gradient(ellipse 60% 40% at 92% -6%, rgba(146, 37, 200, 0.09), transparent 60%),
    radial-gradient(ellipse 50% 35% at 55% 108%, rgba(232, 115, 74, 0.06), transparent 60%),
    linear-gradient(180deg, #fcfdff 0%, #f6f8fc 100%);
  background-attachment: fixed;
}

::selection { background: rgba(107, 63, 160, 0.18); }

.hidden { display: none !important; }

/* --- scrollbar --- */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: rgba(75, 45, 127, 0.14);
  border-radius: 99px;
  border: 3px solid transparent;
  background-clip: content-box;
}
*::-webkit-scrollbar-thumb:hover { background-color: rgba(75, 45, 127, 0.28); }

/* --- sign-in --- */
.signin { height: 100vh; display: flex; align-items: center; justify-content: center; }
.signin-card {
  position: relative;
  background: var(--glass);
  backdrop-filter: blur(14px);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03), 0 24px 64px rgba(75, 45, 127, 0.13);
  padding: 2.8rem 3.4rem;
  text-align: center;
  max-width: 26rem;
  animation: riseIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}
.signin-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--spectrum);
  background-size: 300% 100%;
  animation: spectrumFlow 8s linear infinite;
}
.signin-mark { width: 92px; height: 92px; margin-bottom: 0.4rem; }
.signin-card h1 { font-size: 1.3rem; letter-spacing: 3px; text-transform: uppercase; }
.signin-card p { color: var(--muted); margin: 0.8rem 0 1.6rem; line-height: 1.5; font-size: 0.9rem; }
#gis-button { display: flex; justify-content: center; }
.back-link { margin-top: 1.2rem; font-size: 0.85rem; }
.back-link a { color: var(--go-violet); text-decoration: none; font-weight: 600; }

/* --- header --- */
h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--go-purple);
  white-space: nowrap;
}
h1 span { color: var(--value-ink); font-weight: 700; }
h1 em {
  font-style: normal;
  color: white;
  font-weight: 700;
  margin-left: 0.4rem;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, var(--go-purple), var(--go-violet));
  border-radius: 99px;
  padding: 0.18rem 0.55rem;
  vertical-align: 2px;
}

header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  min-height: 62px;
  padding: 0.4rem 1.5rem;
  background: var(--header-bg);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(75, 45, 127, 0.08);
  box-shadow: 0 1px 12px rgba(75, 45, 127, 0.05);
  z-index: 5;
  flex-wrap: wrap;
}
header::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--spectrum);
  background-size: 300% 100%;
  animation: spectrumFlow 8s linear infinite;
}
.brand { display: flex; align-items: center; gap: 0.55rem; }
.brand img {
  width: 30px; height: 30px;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.brand:hover img { transform: rotate(-12deg) scale(1.12); }

.chat-link { color: var(--go-violet); text-decoration: none; font-size: 0.83rem; font-weight: 600; }
.chat-link:hover { text-decoration: underline; }

nav { display: flex; gap: 0.15rem; flex: 1; }
nav a {
  position: relative;
  white-space: nowrap;
  color: var(--muted);
  text-decoration: none;
  padding: 0.42rem 0.8rem;
  border-radius: 99px;
  font-size: 0.86rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
nav a:hover { background: var(--go-purple-light); color: var(--go-purple); transform: translateY(-1px); }
nav a.active {
  background: linear-gradient(135deg, var(--go-purple), var(--go-violet));
  color: white;
  box-shadow: 0 3px 10px rgba(75, 45, 127, 0.3);
}

.range { display: flex; gap: 0.3rem; }
.range button, .who button, select.picker {
  background: var(--btn-bg);
  border: 1.5px solid var(--btn-border);
  color: var(--text-2);
  border-radius: 99px;
  padding: 0.28rem 0.75rem;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.range button:hover, .who button:hover {
  transform: translateY(-1px);
  border-color: var(--go-violet);
  color: var(--go-violet);
  box-shadow: 0 3px 10px rgba(75, 45, 127, 0.12);
}
.range button.active {
  background: var(--go-purple-light);
  color: var(--go-purple);
  border-color: var(--go-purple);
}
.who { display: flex; align-items: center; gap: 0.6rem; color: var(--faint); font-size: 0.78rem; }
.who button:disabled { opacity: 0.6; cursor: wait; transform: none; }
select.picker { border-radius: 10px; }

/* --- content --- */
main { max-width: 76rem; margin: 0 auto; padding: 1.4rem 1.5rem 2rem; }

.banner {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid #fde68a;
  color: #92400e;
  border-radius: 12px;
  padding: 0.6rem 0.9rem;
  font-size: 0.84rem;
  margin-bottom: 1rem;
}

.controls { display: flex; gap: 0.6rem; margin-bottom: 1rem; align-items: center; }
.controls label {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.grid { display: grid; gap: 1rem; grid-template-columns: repeat(12, 1fr); }
/* vertical rhythm between stacked blocks (grids, standalone table cards,
   tiles) — grid gap only covers siblings INSIDE a grid */
.tab > * + * { margin-top: 1rem; }
.card {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  box-shadow: var(--card-shadow);
  padding: 1.1rem 1.2rem 0.9rem;
  grid-column: span 6;
  min-width: 0;
  animation: riseIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--spectrum);
  background-size: 300% 100%;
  animation: spectrumFlow 8s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card:hover::before { opacity: 1; }
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04), 0 14px 40px rgba(75, 45, 127, 0.12);
}
.grid > .card:nth-child(2) { animation-delay: 0.06s; }
.grid > .card:nth-child(3) { animation-delay: 0.12s; }
.grid > .card:nth-child(4) { animation-delay: 0.18s; }
.grid > .card:nth-child(5) { animation-delay: 0.24s; }
.grid > .card:nth-child(6) { animation-delay: 0.3s; }
.card.wide { grid-column: span 12; }
.card.third { grid-column: span 4; }
.card h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin: 0 0 0.7rem;
  font-size: 0.72rem;
  font-weight: 850;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* per-chart line/bar switcher */
.chart-kind {
  display: inline-flex;
  flex: none;
  gap: 2px;
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  border-radius: 8px;
  padding: 2px;
}
.chart-kind button {
  display: flex;
  width: 24px;
  height: 19px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--faint);
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
}
.chart-kind svg { width: 12px; height: 12px; }
.chart-kind button:hover { color: var(--go-violet); }
.chart-kind button.active { background: var(--go-purple-light); color: var(--go-purple); }
.card .chart-box { position: relative; height: 240px; }
.card .stat-note { color: var(--muted); font-size: 0.8rem; margin-top: 0.6rem; }

.section-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--go-purple);
  margin: 1.9rem 0 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.section-title::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--go-teal), var(--go-blue));
  box-shadow: 0 0 0 5px rgba(42, 171, 179, 0.14);
  animation: dotPulse 3.2s ease-in-out infinite;
}
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(75, 45, 127, 0.14), transparent);
}

/* KPI / metric tiles — 3px colored bottom bar, heavy values */
.tiles { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); margin-bottom: 1rem; }
.tile {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  padding: 0.9rem 1rem 0.75rem;
  overflow: hidden;
  animation: riseIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04), 0 14px 36px rgba(75, 45, 127, 0.13);
}
.tiles .tile:nth-child(2) { animation-delay: 0.05s; }
.tiles .tile:nth-child(3) { animation-delay: 0.1s; }
.tiles .tile:nth-child(4) { animation-delay: 0.15s; }
.tiles .tile:nth-child(5) { animation-delay: 0.2s; }
.tiles .tile:nth-child(6) { animation-delay: 0.25s; }
.tile::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--metric-accent, var(--go-teal)), transparent 140%);
  transition: height 0.25s ease;
}
.tile:hover::after { height: 6px; }
.tile .label { transition: color 0.25s ease; }
.tile:hover .label { color: var(--go-purple); }
.tiles .tile:nth-child(6n+1) { --metric-accent: var(--go-teal); }
.tiles .tile:nth-child(6n+2) { --metric-accent: var(--go-blue); }
.tiles .tile:nth-child(6n+3) { --metric-accent: var(--go-coral); }
.tiles .tile:nth-child(6n+4) { --metric-accent: var(--go-purple); }
.tiles .tile:nth-child(6n+5) { --metric-accent: var(--go-magenta); }
.tiles .tile:nth-child(6n+6) { --metric-accent: #c98500; }
.tile .label {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.tile .value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  margin: 0.18rem 0 0;
  color: var(--value-ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.tile .spark { height: 34px; margin-top: 0.3rem; }
.tile .delta { font-size: 0.72rem; font-weight: 600; color: var(--muted); margin: 0.25rem 0 0.2rem; }
.tile .delta.delta-good { color: var(--up); }
.tile .delta.delta-bad { color: var(--down); }

/* --- tables --- */
table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
th, td { text-align: left; padding: 0.5rem 0.6rem; }
th {
  color: var(--faint);
  font-weight: 700;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1.5px solid var(--border);
}
td {
  color: var(--text);
  border-bottom: 1px solid var(--row-border);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--go-teal); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr:hover td { background: var(--row-hover); }
tr:last-child td { border-bottom: none; }

footer {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0.6rem 1.5rem 1.8rem;
  color: var(--faint);
  font-size: 0.74rem;
  line-height: 1.8;
}
footer .stale { color: var(--down); font-weight: 600; }

.empty { color: var(--faint); padding: 1.2rem 0.4rem; font-size: 0.85rem; }
.loading-block { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 3rem 0; color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.loading-block img { width: 96px; height: 78px; object-fit: contain; }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(42, 171, 179, 0.14); }
  50% { box-shadow: 0 0 0 9px rgba(42, 171, 179, 0.06); }
}
button:focus-visible, a:focus-visible, select:focus-visible {
  outline: 2px solid var(--go-teal);
  outline-offset: 2px;
}
@keyframes spectrumFlow {
  from { background-position: 0% 0; }
  to { background-position: 300% 0; }
}

@media (max-width: 900px) {
  .card, .card.third { grid-column: span 12; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* usage-rhythm heatmap (sequential blue, light -> dark = more messages) */
.heatmap { overflow-x: auto; padding-bottom: 0.4rem; }
.heatmap table { border-collapse: separate; border-spacing: 2px; width: 100%; }
.heatmap th { border: none; font-size: 0.6rem; color: var(--faint); padding: 0 0 4px; text-align: center; }
.heatmap td { border: none; padding: 0; }
.heatmap td.cell { height: 22px; min-width: 14px; border-radius: 3px; background: var(--cell-base); transition: transform 0.15s ease; }
.heatmap td.cell:hover { transform: scale(1.25); }
.heatmap td.dow { font-size: 0.68rem; font-weight: 700; color: var(--muted); padding-right: 6px; width: 2.4rem; }

/* ============================ dark mode ============================
   Series colors are a separate dark-validated set (lightness band
   L 0.48-0.67, >=3:1 on the dark surface, CVD dE 21.3+) — not a flip. */
:root[data-theme="dark"] {
  --go-purple-light: rgba(146, 92, 216, 0.18);
  --go-bg: #0e1016;
  --text: #e7e9ee;
  --text-2: #c6cbd4;
  --muted: #98a1b1;
  --faint: #687083;
  --border: #262b38;
  --grid: #202532;
  --panel: #161923;
  --card-border: rgba(146, 92, 216, 0.16);
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.35), 0 8px 28px rgba(0, 0, 0, 0.42);
  --glass: rgba(19, 22, 31, 0.88);
  --header-bg: rgba(14, 16, 22, 0.78);
  --btn-bg: rgba(255, 255, 255, 0.05);
  --btn-border: #333a4a;
  --value-ink: #f4f6fa;
  --row-hover: rgba(146, 92, 216, 0.08);
  --row-border: #1f2431;
  --cell-base: #1b2030;
  --series-2: #db6134;
  --series-3: #23a0a8;
  --series-4: #a03fd6;
  color-scheme: dark;
}
:root[data-theme="dark"] body {
  background:
    radial-gradient(ellipse 70% 45% at 12% -4%, rgba(42, 171, 179, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 40% at 92% -6%, rgba(146, 37, 200, 0.10), transparent 60%),
    radial-gradient(ellipse 50% 35% at 55% 108%, rgba(232, 115, 74, 0.05), transparent 60%),
    linear-gradient(180deg, #10121a 0%, #0d0f15 100%);
  background-attachment: fixed;
}
:root[data-theme="dark"] h1 { color: #b490e4; }
:root[data-theme="dark"] .banner {
  background: rgba(146, 100, 20, 0.14);
  border-color: rgba(217, 160, 40, 0.35);
  color: #e8c06a;
}
:root[data-theme="dark"] .section-title { color: #b490e4; }
:root[data-theme="dark"] nav a:hover { color: #d3bdf0; }
:root[data-theme="dark"] .range button.active {
  background: rgba(146, 92, 216, 0.2);
  color: #d3bdf0;
  border-color: #8352c2;
}
:root[data-theme="dark"] .tile .delta.delta-good { color: #34d399; }
:root[data-theme="dark"] .tile .delta.delta-bad { color: #f87171; }
:root[data-theme="dark"] footer .stale { color: #f87171; }

:root[data-theme="dark"] .tile:hover .label { color: #b490e4; }

:root[data-theme="dark"] .chart-kind button.active { background: rgba(146, 92, 216, 0.25); color: #d3bdf0; }

/* ============================ mobile ============================ */
@media (max-width: 720px) {
  header { padding: 0.45rem 0.7rem; gap: 0.5rem; min-height: 0; background: var(--header-bg-solid, var(--header-bg)); }
  :root { --header-bg-solid: rgba(255, 255, 255, 0.96); }
  :root[data-theme="dark"] { --header-bg-solid: rgba(14, 16, 22, 0.96); }
  .brand img { width: 24px; height: 24px; }
  h1 { font-size: 0.95rem; }
  h1 em { display: none; }
  .chat-link { order: 1; }
  /* tabs become a single scrollable strip on their own row */
  nav {
    order: 3;
    flex-basis: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  nav::-webkit-scrollbar { display: none; }
  nav a { padding: 0.34rem 0.65rem; font-size: 0.8rem; }
  .range { order: 4; }
  .range button { padding: 0.22rem 0.55rem; font-size: 0.72rem; }
  .who { order: 2; margin-left: auto; gap: 0.4rem; }
  .who button { padding: 0.24rem 0.6rem; font-size: 0.72rem; }
  #who-email { display: none; }

  main { padding: 0.8rem 0.7rem 1.4rem; }
  .card { padding: 0.85rem 0.9rem 0.75rem; border-radius: 14px; }
  .card .chart-box { height: 210px; }
  .tiles { grid-template-columns: repeat(auto-fit, minmax(8.2rem, 1fr)); gap: 0.55rem; }
  .tile .value { font-size: 1.3rem; }
  .tile .label { font-size: 0.6rem; }
  .section-title { margin-top: 1.3rem; }
  table { font-size: 0.78rem; }
  th, td { padding: 0.4rem 0.45rem; }
  footer { padding: 0.5rem 0.8rem 1.2rem; }
}

/* tables scroll inside their card instead of stretching the page */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table { min-width: 30rem; }

/* ============================ export ============================ */
.export-wrap { position: relative; }
#export-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 60;
  min-width: 13rem;
  background: var(--panel);
  border: 1px solid rgba(75, 45, 127, 0.14);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(30, 20, 60, 0.18);
  padding: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
#export-menu.hidden { display: none; }
#export-menu button {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  font-size: 0.82rem;
  white-space: nowrap;
}
#export-menu button:hover { background: rgba(75, 45, 127, 0.08); }
:root[data-theme="dark"] #export-menu { border-color: rgba(255, 255, 255, 0.1); }
:root[data-theme="dark"] #export-menu button:hover { background: rgba(255, 255, 255, 0.08); }

@media (max-width: 720px) {
  #export-btn .label { display: none; }
}

/* ============================ print / PDF ============================ */
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  header, footer, .chart-kind, #export-menu, .loading-block, .banner a { display: none !important; }
  body { background: #fff; }
  main { max-width: 100%; padding: 0; }
  main::before {
    content: attr(data-print-title);
    display: block;
    font-family: "Sora", sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 0.9rem;
  }
  .card, .tile {
    box-shadow: none !important;
    border: 1px solid #e4e1ed;
    break-inside: avoid;
    animation: none !important;
    opacity: 1 !important;
  }
  .table-scroll { overflow: visible; }
  .table-scroll table { min-width: 0; }
  /* paper is narrower than the desktop grid — scale chart bitmaps, don't clip */
  .card .chart-box { height: auto; }
  .card .chart-box canvas { position: static !important; max-width: 100% !important; height: auto !important; }
}
