.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.metric-card { position: relative; min-height: 126px; overflow: hidden; border: 1px solid rgb(32 38 43 / 8%); border-radius: 13px; padding: 1rem; background: white; box-shadow: var(--shadow-soft); transition: transform .18s ease, box-shadow .18s ease; }
.metric-card:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgb(18 25 30 / 9%); }
.metric-card > span, .metric-card > strong, .metric-card > small { display: block; }
.metric-card > span { color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.metric-card > strong { font-size: 2.15rem; line-height: 1.1; margin: .45rem 0 .2rem; }
.metric-card > small { color: var(--muted); }
.metric-icon { position: absolute; right: 1rem; top: 1rem; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: white; background: var(--ink); font-size: .66rem; font-weight: 850; }
.metric-icon.orange { color: #593200; background: #ffe1ae; }
.metric-icon.blue { color: #145477; background: #dceef8; }
.metric-icon.red { color: #923939; background: #fae1e1; }
.metric-dark { color: white; border-color: #20262b; background: linear-gradient(135deg, #30393f, #171d21); }
.metric-dark::after { content: ""; position: absolute; right: -30px; bottom: -70px; width: 150px; height: 150px; border: 28px solid rgb(245 155 35 / 13%); border-radius: 50%; }
.metric-dark > span, .metric-dark > small { color: #a9c0c7; }
.metric-dark > strong { color: white; }
.metric-dark .metric-icon { color: #1b343d; background: var(--orange); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .5fr); gap: 1rem; margin-top: 1rem; }
.chart-wrap { position: relative; height: 245px; max-height: 280px; }
.hours-card { display: flex; flex-direction: column; }
.hours-number { display: flex; align-items: baseline; gap: .45rem; margin: auto 0 1rem; }
.hours-number strong { font-size: 3.1rem; }
.hours-number span { color: var(--muted); }
.progress-thick { height: 9px; background: #e5ecee; }
.progress-thick .progress-bar { background: linear-gradient(90deg, var(--orange), #f7bb5d); }
.hours-meta { display: flex; justify-content: space-between; margin-top: .75rem; }
.hours-meta span, .hours-meta b { display: block; }
.hours-meta span { color: var(--muted); font-size: .68rem; }
.hours-meta b { color: var(--ink); font-size: .85rem; margin-top: .15rem; }
.analytics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.analytics-grid .chart-wrap { height: 250px; min-height: 220px; max-height: 280px; }
.analytics-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dashboard-priority { display: grid; gap: 1rem; margin-bottom: 1rem; }
.dashboard-insights { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-soft); }
.dashboard-insights > summary { display: flex; cursor: pointer; padding: 1rem 1.2rem; list-style: none; }
.dashboard-insights > summary::-webkit-details-marker { display: none; }
.dashboard-insights > summary::after { content: "＋"; margin-left: auto; color: var(--orange-dark); font-size: 1.2rem; font-weight: 800; }
.dashboard-insights[open] > summary::after { content: "−"; }
.dashboard-insights > summary span, .dashboard-insights > summary small { display: block; }
.dashboard-insights > summary small { color: var(--muted); margin-top: .12rem; }
.dashboard-insights > section { margin: 0 1rem 1rem; }
.indicators-panel-content { padding: 1rem; }
.indicators-panel-content .dashboard-grid { margin-top: 1rem; }
@media (max-width: 992px) {
  .analytics-grid, .analytics-metrics { grid-template-columns: 1fr; }
}
