/* Local refinement: inherit GTracker's existing light/dark palette and type. */
.dashboard-v2 .gt-revenue-card,
.dashboard-v2 .gt-payment-card {
  padding: 22px;
  min-width: 0;
  color: var(--gt-ink);
  background: var(--gt-surface);
}
.dashboard-v2 .gt-revenue-card { display: flex; flex-direction: column; gap: 18px; justify-content: flex-start; }
.gt-chart-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 14px 24px; }
.gt-chart-heading { min-width: 0; }
.gt-chart-heading h3 { margin: 0; font-size: 16px; font-weight: 650; line-height: 1.4; }
.gt-chart-heading p { margin: 4px 0 0; color: var(--gt-subtle); font-size: 12px; line-height: 1.5; }
.gt-chart-total { display: grid; gap: 3px; text-align: right; margin-left: auto; }
.gt-chart-total > span { font-size: 12px; color: var(--gt-subtle); }
.gt-chart-total strong { font-size: clamp(20px, 2vw, 26px); line-height: 1.15; font-weight: 650; letter-spacing: -.025em; overflow-wrap: anywhere; }
.gt-chart-total .gt-chart-change { font-size: 11px; }
.gt-chart-change.is-positive { color: var(--gt-success); }
.gt-chart-change.is-negative { color: var(--gt-danger); }
.gt-chart-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.gt-chart-segmented { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--gt-line); border-radius: 10px; }
.gt-chart-segmented button { min-height: 38px; padding: 8px 12px; border: 0; border-radius: 7px; background: transparent; color: var(--gt-subtle); cursor: pointer; font-size: 12px; font-weight: 600; }
.gt-chart-segmented button:hover { background: var(--gt-hover); color: var(--gt-ink); }
.gt-chart-segmented button[aria-pressed="true"] { background: var(--gt-blue-soft); color: var(--gt-blue); }
.gt-chart-check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--gt-subtle); font-size: 12px; cursor: pointer; }
.gt-chart-check input { accent-color: var(--gt-blue); width: 16px; height: 16px; margin: 0; }
.gt-chart-check:has(input:disabled) { cursor: default; }
.gt-chart-check input:disabled { opacity: .55; }
.gt-chart-periods { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; color: var(--gt-subtle); font-size: 11px; line-height: 1.5; }
.gt-chart-periods > span { display: inline-flex; align-items: center; gap: 7px; }
.gt-chart-key { display: inline-block; width: 18px; height: 0; flex-shrink: 0; border-top: 3px solid var(--gt-blue); }
.gt-chart-key.is-previous { border-top-color: var(--gt-subtle); border-top-style: dashed; }
.gt-chart-key.is-spend { border-top-color: var(--gt-warning); border-top-style: dotted; }
.gt-chart-note { margin: -7px 0 0; color: var(--gt-subtle); font-size: 11px; line-height: 1.6; max-width: 75ch; }
.gt-chart-help { margin: -4px 0 -10px; color: var(--gt-subtle); font-size: 11px; line-height: 1.5; }
.gt-revenue-plot { min-width: 0; width: 100%; }
.gt-revenue-plot svg { display: block; overflow: visible; border-radius: 4px; }
.gt-chart-grid { stroke: var(--gt-line); stroke-width: 1; stroke-dasharray: 3 6; }
.gt-chart-axis { fill: var(--gt-subtle); font: 11px var(--gt-font); font-variant-numeric: tabular-nums; }
.gt-chart-line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.gt-chart-line-current { stroke: var(--gt-blue); }
.gt-chart-line-previous { stroke: var(--gt-subtle); stroke-width: 2; stroke-dasharray: 5 5; }
.gt-chart-line-spend { stroke: var(--gt-warning); stroke-width: 2; stroke-dasharray: 2 5; }
.gt-chart-cursor { stroke: var(--gt-subtle); stroke-width: 1; stroke-dasharray: 3 4; opacity: .6; }
.gt-chart-dot { fill: var(--gt-blue); stroke: var(--gt-surface); stroke-width: 2; }
.gt-chart-dot-previous { fill: var(--gt-subtle); }
.gt-chart-inspector { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px 20px; padding-top: 12px; border-top: 1px solid var(--gt-line); }
.gt-chart-inspector > div { display: grid; gap: 4px; min-width: 0; }
.gt-chart-inspector span { color: var(--gt-subtle); font-size: 11px; line-height: 1.5; }
.gt-chart-inspector strong { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.gt-chart-inspector .gt-chart-previous-value { color: var(--gt-subtle); }
.gt-chart-state { display: flex; flex: 1; min-height: 190px; flex-direction: column; gap: 8px; justify-content: center; align-items: center; text-align: center; padding: 24px 16px; }
.gt-chart-state strong { color: var(--gt-ink); font-size: 14px; font-weight: 600; }
.gt-chart-state p { margin: 0; color: var(--gt-subtle); font-size: 12px; max-width: 45ch; }
.gt-chart-data { margin-top: auto; color: var(--gt-subtle); font-size: 12px; }
.gt-chart-data summary { width: fit-content; min-height: 44px; padding: 12px 0; cursor: pointer; text-underline-offset: 3px; }
.gt-chart-data summary:hover { color: var(--gt-blue); text-decoration: underline; }
.gt-chart-data summary:focus-visible,
.gt-chart-table-scroll:focus-visible { outline: 2px solid var(--gt-blue); outline-offset: 3px; border-radius: 4px; }
.gt-chart-table-scroll { width: 100%; overflow-x: auto; max-height: 320px; scrollbar-color: var(--gt-subtle) var(--gt-surface); scrollbar-width: thin; }
.gt-chart-data table { width: 100%; border-collapse: collapse; font-size: 12px; }
.gt-chart-data th, .gt-chart-data td { padding: 10px 12px; border-bottom: 1px solid var(--gt-line); text-align: right; white-space: nowrap; }
.gt-chart-data th:first-child { text-align: left; }
.gt-chart-data th { font-weight: 600; }
.gt-chart-data thead { color: var(--gt-ink); }
.gt-payment-distribution { min-width: 0; }
.gt-payment-overview { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; }
.gt-payment-overview svg { flex-shrink: 0; width: 112px; height: 112px; }
.gt-payment-center { fill: var(--gt-subtle); font: 13px var(--gt-font); }
.gt-payment-total { display: grid; gap: 5px; min-width: 0; }
.gt-payment-total span { font-size: 11px; color: var(--gt-subtle); line-height: 1.5; }
.gt-payment-total strong { font-size: clamp(17px, 1.6vw, 23px); font-weight: 650; line-height: 1.2; overflow-wrap: anywhere; letter-spacing: -.025em; }
.gt-payment-legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.gt-payment-legend li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto); align-items: baseline; gap: 3px 12px; }
.gt-payment-name { display: inline-flex; align-items: center; gap: 7px; min-width: 0; font-size: 13px; font-weight: 550; overflow-wrap: anywhere; }
.gt-payment-name i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.gt-payment-legend strong { font-size: 13px; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.gt-payment-count, .gt-payment-share { font-size: 11px; color: var(--gt-subtle); line-height: 1.5; }
.gt-payment-count { padding-left: 14px; }
.gt-payment-share { text-align: right; }
.gt-payment-distribution .gt-chart-note { margin: 0 0 14px; }
.gt-payment-divider { margin-block: 18px; border-top: 1px solid var(--gt-line); }
.gt-pix-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.gt-pix-summary { color: var(--gt-subtle); font-size: 11px; line-height: 1.6; text-wrap: pretty; }
.gt-payment-card .gt-pix-details { padding-top: 2px; }
.dashboard-v2.is-private .gt-pix-details { visibility: hidden; }
@media (max-width: 767px) {
  .dashboard-v2 .gt-revenue-card, .dashboard-v2 .gt-payment-card { padding: 18px; }
  .gt-chart-header { gap: 16px; }
  .gt-chart-total { text-align: left; margin-left: 0; }
  .gt-chart-controls { gap: 4px 14px; }
  .gt-chart-segmented button { min-height: 40px; }
  .gt-chart-check { font-size: 11px; }
  .gt-chart-periods { gap: 7px; flex-direction: column; align-items: flex-start; }
  .gt-chart-inspector { gap: 10px; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
  .gt-chart-inspector strong { font-size: 15px; }
  .gt-chart-inspector span { min-height: 3em; }
}
@media (min-width: 768px) and (max-width: 1279px) {
  .gt-payment-overview { flex-wrap: wrap; }
  .gt-payment-overview svg { width: 100px; height: 100px; }
}
