/* Report-style layout, scoped so entry modules retain their compact sizing. */
#dashboardView.active {
  display: flex;
  flex-direction: column;
  gap: 24px;
  container-type: inline-size;
}
#dashboardView .dashboard-head { order: 0; margin: 0; }
#dashboardView .dashboard-overview { order: 1; }
#dashboardView .dashboard-sales-section { order: 2; }
#dashboardView .dashboard-production-section { order: 3; }
#dashboardView .dashboard-section {
  margin: 0;
  padding: 0 0 24px;
  border: 0;
  border-bottom: 1px solid #dedee2;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#dashboardView .dashboard-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
#dashboardView h3 { font-size: 16px; line-height: 1.5; }
#dashboardView .dashboard-scope { color: #6e6e73; font-size: 11px; }
#dashboardView .dashboard-metrics { gap: 12px; margin-bottom: 16px; }
#dashboardView .dashboard-overview-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
#dashboardView .dashboard-metric { min-width: 0; min-height: 132px; padding: 14px; border-radius: 6px; }
#dashboardView .dashboard-metric > strong { font-size: 23px !important; overflow-wrap: anywhere; }
#dashboardView .dashboard-card-context { flex-wrap: wrap; line-height: 1.5 !important; height: auto; }
#dashboardView .dashboard-period-label { font-size: 10px; }
#dashboardView .dashboard-attention {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #e5e5ea;
  border-bottom: 1px solid #e5e5ea;
}
#dashboardView .dashboard-attention button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 10px;
  text-align: left;
  background: transparent;
  color: #52525b;
  border-radius: 0;
  font-size: 11px;
}
#dashboardView .dashboard-attention strong { font-size: 20px; font-weight: 500; color: #6e6e73; }
#dashboardView .dashboard-attention .has-attention { color: #9a5600; }
#dashboardView .dashboard-attention button:hover { background: #f1f1f2; }
#dashboardView .dashboard-chart-tabs { display: flex; gap: 4px; margin-bottom: 12px; }
#dashboardView .dashboard-trend-grid { grid-template-columns: minmax(0, 1fr); }
#dashboardView .dashboard-production-chart-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#dashboardView .dashboard-production-chart-grid > :last-child { grid-column: 1 / -1; }
#dashboardView .dashboard-trend-panel {
  padding: 16px 0;
  min-width: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
#dashboardView .dashboard-trend-head { flex-wrap: wrap; gap: 8px; }
#dashboardView .dashboard-trend-head h2 { font-size: 14px; }
#dashboardView .dashboard-trend-chart { height: 260px; }
#dashboardView .dashboard-chart-empty { display: grid; place-items: center; height: 100%; color: #6e6e73; font-size: 12px; }
#dashboardView .dashboard-chart-reading { font-size: 12px; overflow-wrap: anywhere; }
#dashboardView .dashboard-trend-product-select { max-width: 100%; }
@container (max-width: 1000px) {
  #dashboardView .dashboard-overview-metrics,
  #dashboardView .dashboard-attention { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  #dashboardView .dashboard-production-chart-grid { grid-template-columns: minmax(0, 1fr); }
}
@container (max-width: 650px) {
  #dashboardView .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  #dashboardView .dashboard-metric > strong { font-size: 20px !important; }
}
@container (max-width: 380px) {
  #dashboardView .dashboard-metrics,
  #dashboardView .dashboard-attention { grid-template-columns: minmax(0, 1fr) !important; }
}
