/* V3 dash: screen styles for this work package only. Built on css/odoo.css classes (see its header and docs/V3_A_REPORT.md); no new colours or sizes outside the Odoo tokens. */

/* ===== Control panel: title + period / days facets (the Dashboard has no person or week filter) ===== */
@media screen {
  main > .o_control_panel:first-child { margin: -8px -16px 8px; }
}
.cp-facets.dc-facets { flex: 0 1 auto; width: auto; min-height: 36.5px; padding: 4px 8px; gap: 8px; }
.dc-facets .o_searchview_facet { padding: 0 8px; }
.dc-facets .is-groupby { background: var(--odoo-teal-tint); color: var(--odoo-link); }
.dc-facets .o_info_btn { margin-left: 4px; }

/* ===== Scorecards: 7-day sparkline bleeds to the card edges (C10) ===== */
.kpi-grid { align-items: stretch; }
.dc-spark { margin: 8px -16px -12px; line-height: 0; }
.dc-spark svg { display: block; width: 100%; height: 36px; }

/* ===== Graph cards ===== */
.dc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.dc-card { min-width: 0; }
.dc-card > .card { margin-bottom: 0; height: 100%; }
.dc-wide { grid-column: 1 / -1; }
.dc-card .card-h { flex-wrap: wrap; }
.dc-tools { display: inline-flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
/* Stacked / Cumulative switches make no sense for these figures (the day rows are already the running totals the tables show). */
.dc-card .msc-tb [data-ch-act="stk"], .dc-card .msc-tb [data-ch-act="cum"] { display: none; }
.dc-card .msc-tb { gap: 8px; }
.dc-plot { min-width: 0; }
.dc-tbl-wrap { max-height: 420px; overflow: auto; }
.dc-tbl-wrap table { margin: 0; }
.dc-legend { margin: 12px 0 0; font-size: 12px; line-height: 18px; color: var(--odoo-dash-muted); text-align: center; }
.dc-tbl-wrap .dc-legend { text-align: left; }
.dc-gauge { max-width: 320px; margin: 0 auto; }
.dc-gauge svg { width: 100%; height: auto; }

@media (max-width: 991.98px) {
  .dc-grid { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .dc-tools, .msc-tb { display: none !important; }
  .dc-grid { display: block; }
  .dc-card { break-inside: avoid; margin-bottom: 12px; }
  .dc-tbl-wrap[hidden] { display: none !important; }
}
