/* Report-only extension of analytics-ui.css. Keep data, saved configurations,
   column order, precision, permissions and empty/error states unchanged. */
.bi-console .legacy-layout > .v-container,
.bi-console .channel-daily-container {
  height: auto;
  overflow: visible;
  padding: 0;
  min-width: 0;
}
.bi-console .legacy-layout > .v-container > p.text-h5:first-child,
.bi-console .channel-daily-container > p.text-h5:first-child { display: none; }
.bi-console .legacy-page > .v-alert[role="status"] {
  margin: 0 0 12px !important;
  padding: 8px 12px;
  min-height: 36px;
  font-size: 12px;
  line-height: 1.6;
  background: #edf3fa !important;
  border-color: #d9e3f0 !important;
  color: #465a75 !important;
}
.bi-console :is(.page-container, .channel-daily-container, .dws-container, .export-container) > .v-alert {
  font-size: 12px;
  padding: 10px 12px;
  line-height: 1.65;
}

/* Top-level report filters: equal minimum heights, with multi-selects free to
   grow when the user selects several chips. Textareas retain their own height. */
.bi-console :is(.legacy-layout:has(.page-container, .dws-container, .export-container, .grid-report-card), .channel-daily-container) .v-field:not(.v-textarea .v-field) {
  --v-input-control-height: 38px;
  --v-field-padding-top: 0px;
  --v-field-padding-bottom: 0px;
  font-size: 13px;
  border-radius: 7px;
  background: #fff;
}
.bi-console :is(.legacy-layout:has(.page-container, .dws-container, .export-container, .grid-report-card), .channel-daily-container) .v-field:not(.v-textarea .v-field) .v-field__input {
  min-height: 38px;
  padding-block: 4px;
  line-height: 22px;
  min-width: 0;
}
.bi-console :is(.legacy-layout:has(.page-container, .dws-container, .export-container, .grid-report-card), .channel-daily-container) .v-field-label { font-size: 12px; color: #596b82; opacity: 1; }
.bi-console :is(.legacy-layout:has(.page-container, .dws-container, .export-container, .grid-report-card), .channel-daily-container) .v-field__outline { --v-field-border-opacity: 1; color: var(--bi-control-line); }
.bi-console :is(.legacy-layout:has(.page-container, .dws-container, .export-container, .grid-report-card), .channel-daily-container) .v-field--focused .v-field__outline { color: var(--bi-blue); }
.bi-console :is(.legacy-layout:has(.page-container, .dws-container, .export-container, .grid-report-card), .channel-daily-container) .v-field--variant-filled { box-shadow: inset 0 0 0 1px var(--bi-control-line); }
.bi-console :is(.legacy-layout:has(.page-container, .dws-container, .export-container, .grid-report-card), .channel-daily-container) .v-field--variant-filled .v-field__overlay,
.bi-console :is(.legacy-layout:has(.page-container, .dws-container, .export-container, .grid-report-card), .channel-daily-container) .v-field--variant-filled .v-field__outline { display: none; }
.bi-console :is(.legacy-layout:has(.page-container, .dws-container, .export-container, .grid-report-card), .channel-daily-container) .v-field--variant-filled.v-field--focused { box-shadow: inset 0 0 0 2px var(--bi-blue); }
.bi-console :is(.legacy-layout:has(.page-container, .dws-container, .export-container, .grid-report-card), .channel-daily-container) .v-select__selection { min-width: 0; max-width: 100%; }
.bi-console :is(.legacy-layout:has(.page-container, .dws-container, .export-container, .grid-report-card), .channel-daily-container) .v-select__selection-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bi-console :is(.page-container, .channel-daily-container, .dws-container, .export-container) > .v-card:has(> .v-card-text > .v-row) > .v-card-text { padding: 14px 16px; }
.bi-console :is(.page-container, .channel-daily-container, .dws-container, .export-container) > .v-card:has(> .v-card-text > .v-row) .v-row { margin: -6px; }
.bi-console :is(.page-container, .channel-daily-container, .dws-container, .export-container) > .v-card:has(> .v-card-text > .v-row) .v-row > [class*="v-col"] { padding: 6px; min-width: 0; }
.bi-console .legacy-page > .v-alert[role="status"] .v-alert__underlay { opacity: 0; }
.bi-console :is(.page-container, .channel-daily-container, .dws-container, .export-container) > .v-alert--type-info { background: #edf4ff; color: #425e83; border: 1px solid #d7e4f5; }
.bi-console :is(.page-container, .channel-daily-container, .dws-container, .export-container) > .v-alert--type-info .v-alert__underlay { opacity: 0; }
.bi-console :is(.page-container, .channel-daily-container, .dws-container, .export-container) .v-btn { font-size: 12px; }
.bi-console :is(.page-container, .channel-daily-container) .gap-2 { flex-wrap: wrap; }
.bi-console :is(.legacy-layout:has(.page-container, .dws-container, .export-container, .grid-report-card), .channel-daily-container) .v-data-table { font-size: 12px; }
.bi-console :is(.legacy-layout:has(.page-container, .dws-container, .export-container, .grid-report-card), .channel-daily-container) .v-data-table th { background: #f0f4f9; padding-inline: 14px; }
.bi-console :is(.legacy-layout:has(.page-container, .dws-container, .export-container, .grid-report-card), .channel-daily-container) .v-data-table td { padding: 6px 14px; border-color: #e9eef5; white-space: nowrap; font-size: 12px; line-height: 20px; }
.bi-console :is(.legacy-layout:has(.page-container, .dws-container, .export-container, .grid-report-card), .channel-daily-container) .v-data-table-footer { padding: 8px 12px; gap: 8px; font-size: 12px; color: #596b82; flex-wrap: wrap; }
.bi-console :is(.legacy-layout:has(.page-container, .dws-container, .export-container, .grid-report-card), .channel-daily-container) .v-data-table-footer .v-field__input { min-height: 32px; }
.bi-console :is(.legacy-layout:has(.page-container, .dws-container, .export-container, .grid-report-card), .channel-daily-container) .v-data-table-footer .v-field { --v-input-control-height: 32px; }
.bi-console :is(.legacy-layout:has(.page-container, .dws-container, .export-container, .grid-report-card), .channel-daily-container) .metric-card { border-radius: 9px; }
.bi-console :is(.legacy-layout:has(.page-container, .dws-container, .export-container, .grid-report-card), .channel-daily-container) .metric-card > .v-card-text { padding: 12px 14px !important; }
.bi-console :is(.legacy-layout:has(.page-container, .dws-container, .export-container, .grid-report-card), .channel-daily-container) .metric-card .metric-label-row .text-caption { font-size: 12px !important; color: #596b82 !important; }
.bi-console :is(.legacy-layout:has(.page-container, .dws-container, .export-container, .grid-report-card), .channel-daily-container) .metric-value-row { font-variant-numeric: tabular-nums; }
.bi-console :is(.legacy-layout:has(.page-container, .dws-container, .export-container, .grid-report-card), .channel-daily-container) .metric-value-row > .font-weight-bold { font-size: 24px !important; line-height: 32px; }
.bi-console :is(.legacy-layout:has(.page-container, .dws-container, .export-container, .grid-report-card), .channel-daily-container) .metric-card:hover { box-shadow: 0 1px 3px #182b490a !important; }

/* Multi-dimensional tables keep their existing density and group/tree logic. */
@media (min-width: 1101px) {
  .bi-console .legacy-layout > .page-container > .v-card:has(> .v-card-text > .v-row input[type="date"]) > .v-card-text > .v-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; margin: 0; }
  .bi-console .legacy-layout > .page-container > .v-card:has(> .v-card-text > .v-row input[type="date"]) .v-row > [class*="v-col"] { width: auto; max-width: none; padding: 0; grid-column: span 2; }
  .bi-console .legacy-layout > .page-container > .v-card:has(> .v-card-text > .v-row input[type="date"]) .v-row > :first-child { grid-column: span 3; }
  .bi-console .legacy-layout > .page-container > .v-card:has(> .v-card-text > .v-row input[type="date"]) .v-row > [class*="v-col"]:has(input[type="date"]) { grid-column: span 3; }
  .bi-console .legacy-layout > .page-container > .v-card:has(.v-row > :nth-child(6):last-child) .v-row > :nth-child(4) { grid-column: span 2 !important; }
  .bi-console .legacy-layout > .page-container > .v-card:has(.v-row > :nth-child(6):last-child) .v-row > :last-child { grid-column: 1 / -1 !important; justify-self: end; }
  .bi-console .legacy-layout > .page-container > .v-card:has(.v-row > :nth-child(8):last-child) .v-row > :last-child { grid-column: span 6 !important; justify-self: end; align-self: end; }
}
.bi-console .grid-report-card { border-radius: 9px; }
.bi-console .grid-report-card > .pa-3 { padding: 12px !important; }
.bi-console .grid-report-card > .pa-3 > .d-flex { padding-bottom: 12px; gap: 8px !important; }
.bi-console .grid-report-card > .pa-3 .v-btn { height: 32px; font-size: 12px; }
.bi-console .grid-report-card .grid-sort-controls { padding-block: 8px; }
.bi-console .grid-report-card .grid-sort-pair .v-field__input { min-height: 32px; }
.bi-console .grid-report-card .grid-sort-pair .v-field { --v-input-control-height: 32px; }
.bi-console .grid-report-card .grid-sort-pair .v-field-label { font-size: 12px; }
.bi-console .grid-report-card .grid-search-input .v-field__input { min-height: 34px; }
.bi-console .grid-report-card .af-table { font-size: 12px; color: #344761; font-variant-numeric: tabular-nums; }
.bi-console .grid-report-card .af-table .af-header { background: #f0f4f9; color: #465a75; height: 40px; font-size: 12px; }
.bi-console .grid-report-card .af-table td { height: 40px; }
.bi-console .grid-report-card .af-table .totals-row td { background: #edf3fc; color: #263f60; }
.bi-console .grid-report-card .filter-bar { gap: 8px; }
.bi-console .grid-report-card .grid-table-card { overflow: hidden; }

/* Native reconciliation pages share the same controls and table palette. */
.bi-console :is(.platform-check, .release, .clean-check) { gap: 14px; min-width: 0; }
.bi-console :is(.platform-check, .release, .clean-check) :is(.heading, header, .check-heading) { gap: 12px; flex-wrap: wrap; }
.bi-console :is(.platform-check, .release, .clean-check) h2 { font-size: 16px; line-height: 24px; margin-bottom: 4px; }
.bi-console :is(.platform-check, .release, .clean-check) :is(.heading, header, .check-heading) p { color: #596b82; font-size: 12px; line-height: 20px; }
.bi-console :is(.platform-check, .release) .filters { padding: 12px 16px; gap: 12px; border-color: var(--bi-line); border-radius: 9px; }
.bi-console :is(.platform-check, .release) .filters label { font-size: 12px; color: #596b82; gap: 6px; min-width: 0; }
.bi-console :is(.platform-check, .release) .filters :is(input, select) { height: 38px; border-color: var(--bi-control-line); border-radius: 7px; padding-inline: 10px; font: inherit; color: #344761; max-width: 100%; }
.bi-console :is(.platform-check, .release, .clean-check) :is(.platform-cards, .stats, .check-stats) { gap: 12px; }
.bi-console :is(.platform-check, .release, .clean-check) :is(.platform-cards, .stats, .check-stats) article { padding: 12px 16px; border-color: var(--bi-line); border-radius: 9px; }
.bi-console :is(.platform-check, .release, .clean-check) :is(.platform-cards, .stats, .check-stats) :is(span, small) { color: #596b82; font-size: 12px; }
.bi-console :is(.platform-check, .release, .clean-check) :is(.platform-cards, .stats, .check-stats) :is(b, strong) { font-variant-numeric: tabular-nums; }
.bi-console :is(.platform-check, .release, .clean-check) :is(.table-wrap, .check-table) { border-color: var(--bi-line); border-radius: 9px; }
.bi-console :is(.platform-check, .release, .clean-check) table { font-size: 12px; }
.bi-console :is(.platform-check, .release, .clean-check) thead { position: sticky; top: 0; z-index: 2; }
.bi-console :is(.platform-check, .release, .clean-check) th { padding: 10px 14px; background: #f0f4f9; color: #465a75; font-size: 12px; }
.bi-console :is(.platform-check, .release, .clean-check) td { padding: 10px 14px; font-variant-numeric: tabular-nums; }
.bi-console :is(.platform-check, .release, .clean-check) td small:not(.warn):not(.ok) { color: #596b82; }
.bi-console :is(.platform-check, .release, .clean-check) :is(.limitations, .provenance, .details, footer) { padding: 14px 16px; }
.bi-console :is(.platform-check, .release, .clean-check) :is(.limitations, .provenance, .details, footer) :is(p, dt, small):not(.warn):not(.warning):not(.ok) { color: #596b82; }

/* Vuetify teleports menus/dialogs outside the console. Route ownership is
   determined from the rendered report root; login and account dialogs are untouched. */
body:has(.legacy-layout .page-container, .grid-report-card, .channel-daily-container, .dws-container, .export-container) .v-overlay--active {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 13px;
}
body:has(.legacy-layout .page-container, .grid-report-card, .channel-daily-container, .dws-container, .export-container) .v-menu .v-list-item { min-height: 36px; padding: 6px 12px; }
body:has(.legacy-layout .page-container, .grid-report-card, .channel-daily-container, .dws-container, .export-container) .v-menu .v-list-item-title { font-size: 13px; line-height: 20px; letter-spacing: 0; }
body:has(.legacy-layout .page-container, .grid-report-card, .channel-daily-container, .dws-container, .export-container) .v-menu .v-list-item-subtitle { font-size: 11px; line-height: 16px; color: #596b82; opacity: 1; }
body:has(.grid-report-card) .v-dialog .v-card-title { font-size: 16px; line-height: 24px; padding: 14px 16px; letter-spacing: 0; }
body:has(.grid-report-card) .v-dialog .v-card-actions { padding: 10px 16px; min-height: 56px; gap: 8px; flex-shrink: 0; }
body:has(.grid-report-card) .v-dialog .v-field { --v-input-control-height: 38px; font-size: 13px; border-radius: 7px; }
body:has(.grid-report-card) .v-dialog .v-field:not(.v-textarea .v-field) .v-field__input { min-height: 38px; padding-block: 4px; }
body:has(.grid-report-card) .v-dialog .v-field-label { font-size: 12px; color: #596b82; opacity: 1; }
body:has(.grid-report-card) .v-dialog .v-label { font-size: 13px; }
body:has(.grid-report-card) .v-dialog .v-btn { font-size: 12px; letter-spacing: 0; }
body:has(.grid-report-card) .v-dialog .grid-config-layout { min-height: 0; }
body:has(.grid-report-card) .v-dialog .grid-config-layout .left-panel { min-width: 0; }
body:has(.grid-report-card) .v-dialog .grid-config-layout .left-panel-inner { padding: 14px 16px; }
body:has(.grid-report-card) .v-dialog .v-card:has(> .v-card-text > .grid-config-layout) > .v-card-text { min-height: 0; flex: 1 1 auto; }
body:has(.grid-report-card) .v-dialog .grid-config-layout .right-panel { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 8px; min-height: 0; overflow: hidden; }
body:has(.grid-report-card) .v-dialog .grid-config-layout .right-panel > .v-card { min-height: 0; overflow: auto; margin-bottom: 0 !important; }
body:has(.grid-report-card) .v-dialog .grid-config-layout .right-panel > .justify-end { margin-top: 0 !important; padding-top: 8px; border-top: 1px solid var(--bi-line); flex-wrap: wrap; }
body:has(.grid-report-card) .v-dialog .grid-config-layout :is(.text-body-2, .text-subtitle-2) { font-size: 13px !important; }
body:has(.grid-report-card) .v-overlay :is(button, input, select, [tabindex]):focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
body:has(.grid-report-card) .v-overlay .v-field input:focus-visible { outline: none; }

@media (max-width: 760px) {
  .bi-console :is(.legacy-layout:has(.page-container, .dws-container, .export-container, .grid-report-card), .channel-daily-container) .v-field:not(.v-textarea .v-field) { --v-input-control-height: 44px; }
  .bi-console :is(.legacy-layout:has(.page-container, .dws-container, .export-container, .grid-report-card), .channel-daily-container) .v-field:not(.v-textarea .v-field) .v-field__input { min-height: 44px; }
  .bi-console :is(.platform-check, .release) .filters label { width: 100%; }
  .bi-console :is(.platform-check, .release) .filters :is(input, select) { width: 100%; min-width: 0; height: 44px; }
  .bi-console :is(.platform-check, .release, .clean-check) :is(.platform-cards, .stats, .check-stats) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bi-console .platform-check .platform-cards { grid-template-columns: 1fr; }
  .bi-console .grid-report-card > .pa-3 > .d-flex > .v-spacer { display: none; }
  .bi-console .grid-report-card .grid-search-actions { flex-wrap: wrap; margin-left: 0; }
  .bi-console .grid-report-card .grid-search-input { flex: 1; }
  .bi-console .grid-report-card .grid-sort-pair { flex: 1 1 220px; }
  body:has(.grid-report-card) .v-dialog .v-overlay__content { max-width: calc(100% - 24px); margin: 12px; }
  body:has(.grid-report-card) .v-dialog .grid-config-layout .left-panel { width: 100%; max-width: 100%; }
  body:has(.grid-report-card) .v-dialog .grid-config-layout { display: block; overflow: auto; }
  body:has(.grid-report-card) .v-dialog .grid-config-layout .left-panel { overflow: visible; border-right: 0; border-bottom: 1px solid var(--bi-line); }
  body:has(.grid-report-card) .v-dialog .grid-config-layout .right-panel { display: block; overflow: visible; padding: 12px; }
  body:has(.grid-report-card) .v-dialog .grid-config-layout .right-panel > .v-card { max-height: 50vh; }
  body:has(.grid-report-card) .v-dialog .grid-config-layout .right-panel > .justify-end { margin-top: 12px !important; }
  body:has(.grid-report-card) .v-dialog .grid-config-layout .right-panel > .justify-end .v-btn { min-height: 44px; }
}
