.v68-report-toolbar {
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin:14px 0;
}
.v68-report-toolbar label {
  font-weight:700;
  color:var(--text,#173b2c);
}
.v68-report-toolbar select {
  min-width:220px;
  max-width:100%;
}
.v68-report-toolbar .muted {
  font-size:11px;
  margin-inline-start:auto;
}
.v68-report-kpis {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin:14px 0;
}
.v68-report-kpis .metric {
  min-width:0;
}
.v68-report-kpis .metric strong {
  overflow-wrap:anywhere;
}
.v68-report-panel {
  margin-top:15px;
}
.v68-report-panel .page-title {
  margin-bottom:12px;
}
.v68-price-values {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.v68-price-values > div {
  padding:15px;
  border:1px solid var(--line,#d9e3dc);
  border-radius:12px;
  background:var(--surface-2,#f5f8f5);
  min-width:0;
}
.v68-price-values small {
  display:block;
  color:var(--muted,#66776d);
  margin-bottom:8px;
}
.v68-price-values b {
  display:block;
  color:var(--text,#173b2c);
  overflow-wrap:anywhere;
  font-size:clamp(13px,2vw,19px);
}
.v68-report-note {
  color:var(--muted,#66776d);
  font-size:11px;
  margin:12px 0 0;
}
.v68-download-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.v68-download-card {
  border:1px solid var(--line,#d9e3dc);
  background:var(--surface-2,#f7f9f7);
  border-radius:14px;
  padding:16px;
  min-width:0;
}
.v68-download-card > b {
  color:var(--text,#173b2c);
  font-size:15px;
}
.v68-download-card p {
  color:var(--muted,#66776d);
  font-size:12px;
  line-height:1.8;
  min-height:48px;
}
.v68-download-card > div {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.v68-download-card button:disabled {
  opacity:.55;
  cursor:wait;
}
#reportCategoryRows td {
  vertical-align:middle;
}
@media(max-width:850px) {
  .v68-report-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .v68-price-values { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:560px) {
  .v68-download-grid { grid-template-columns:1fr; }
  .v68-report-toolbar { align-items:stretch; }
  .v68-report-toolbar select { width:100%; }
  .v68-report-toolbar .muted { margin-inline-start:0; }
}

/* V6.8 FINAL THEME CONTRAST FIX */

/* DARK THEME */
body.ibdaa-theme-dark .v68-price-values > div,
body.ibdaa-theme-dark .v68-download-card {
  background: linear-gradient(145deg,#153b29,#0c2419) !important;
  color: #f4f5ed !important;
  border-color: #527451 !important;
  box-shadow: 0 8px 22px #0005 !important;
}

body.ibdaa-theme-dark .v68-price-values small,
body.ibdaa-theme-dark .v68-download-card p,
body.ibdaa-theme-dark .v68-report-note {
  color: #c2d2c5 !important;
}

body.ibdaa-theme-dark .v68-price-values b,
body.ibdaa-theme-dark .v68-download-card > b {
  color: #ffe09a !important;
}

body.ibdaa-theme-dark .v68-download-card .btn.ghost {
  background: #173b29 !important;
  color: #f4f5ed !important;
  border-color: #66805f !important;
}

/* LIGHT THEME */
body.ibdaa-theme-light .v68-price-values > div,
body.ibdaa-theme-light .v68-download-card {
  background: #ffffff !important;
  color: #26372d !important;
  border-color: #d7e3d9 !important;
  box-shadow: 0 6px 18px #173b2510 !important;
}

body.ibdaa-theme-light .v68-price-values small,
body.ibdaa-theme-light .v68-download-card p,
body.ibdaa-theme-light .v68-report-note {
  color: #647369 !important;
}

body.ibdaa-theme-light .v68-price-values b,
body.ibdaa-theme-light .v68-download-card > b {
  color: #17633e !important;
}

body.ibdaa-theme-light .v68-download-card .btn.primary {
  background: #16734b !important;
  color: #ffffff !important;
  border-color: #16734b !important;
}

body.ibdaa-theme-light .v68-download-card .btn.ghost {
  background: #ffffff !important;
  color: #17633e !important;
  border-color: #cbdccf !important;
}

/* V6.8.1 - STRICT DARK/LIGHT CONTRAST */

html[data-ibdaa-theme="dark"] body .v68-price-values > div,
body.ibdaa-theme-dark .v68-price-values > div,
html[data-ibdaa-theme="dark"] body .v68-download-card,
body.ibdaa-theme-dark .v68-download-card {
  background: #102b1e !important;
  color: #f4f7f1 !important;
  border: 1px solid #486b52 !important;
  box-shadow: 0 8px 24px #0005 !important;
}

html[data-ibdaa-theme="dark"] body .v68-price-values small,
body.ibdaa-theme-dark .v68-price-values small,
html[data-ibdaa-theme="dark"] body .v68-download-card p,
body.ibdaa-theme-dark .v68-download-card p {
  color: #d2dfd5 !important;
}

html[data-ibdaa-theme="dark"] body .v68-price-values b,
body.ibdaa-theme-dark .v68-price-values b,
html[data-ibdaa-theme="dark"] body .v68-download-card > b,
body.ibdaa-theme-dark .v68-download-card > b {
  color: #ffdf91 !important;
}

html[data-ibdaa-theme="dark"] body .v68-download-card .btn.ghost,
body.ibdaa-theme-dark .v68-download-card .btn.ghost {
  background: #173c29 !important;
  color: #ffffff !important;
  border: 1px solid #6a8b70 !important;
}

html[data-ibdaa-theme="light"] body .v68-price-values > div,
body.ibdaa-theme-light .v68-price-values > div,
html[data-ibdaa-theme="light"] body .v68-download-card,
body.ibdaa-theme-light .v68-download-card {
  background: #ffffff !important;
  color: #25372b !important;
  border: 1px solid #d4e1d6 !important;
  box-shadow: 0 6px 20px #173b2510 !important;
}

html[data-ibdaa-theme="light"] body .v68-price-values small,
body.ibdaa-theme-light .v68-price-values small,
html[data-ibdaa-theme="light"] body .v68-download-card p,
body.ibdaa-theme-light .v68-download-card p {
  color: #53645a !important;
}

html[data-ibdaa-theme="light"] body .v68-price-values b,
body.ibdaa-theme-light .v68-price-values b,
html[data-ibdaa-theme="light"] body .v68-download-card > b,
body.ibdaa-theme-light .v68-download-card > b {
  color: #155a38 !important;
}

html[data-ibdaa-theme="light"] body .v68-download-card .btn.primary,
body.ibdaa-theme-light .v68-download-card .btn.primary {
  background: #167447 !important;
  color: #ffffff !important;
  border: 1px solid #167447 !important;
}

html[data-ibdaa-theme="light"] body .v68-download-card .btn.ghost,
body.ibdaa-theme-light .v68-download-card .btn.ghost {
  background: #ffffff !important;
  color: #155a38 !important;
  border: 1px solid #bdd2c2 !important;
}

html[data-ibdaa-theme="light"] body .v68-report-toolbar select,
body.ibdaa-theme-light .v68-report-toolbar select {
  background: #ffffff !important;
  color: #26372d !important;
  border-color: #cbd9ce !important;
}

html[data-ibdaa-theme="dark"] body .v68-report-toolbar select,
body.ibdaa-theme-dark .v68-report-toolbar select {
  background: #0a2015 !important;
  color: #f4f5ed !important;
  border-color: #54745b !important;
}
