.group-statistics { width: 100%; min-width: 0; }
.group-statistics h2, .group-statistics h3 { margin: 0; }
.gs-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.gs-heading h2 { font-size: 22px; }
.gs-heading p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.gs-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.gs-filters label { width: 180px; min-width: 0; }
.gs-month-actions { display: flex; gap: 6px; }
.gs-month-actions button[data-gs-step] { width: 36px; padding: 0; font-size: 22px; }
.gs-view-tabs, .gs-period-tabs { display: flex; gap: 4px; margin-bottom: 16px; }
.gs-view-tabs { border-bottom: 1px solid var(--line); }
.gs-view-tabs button, .gs-period-tabs button { border: 0; box-shadow: none; background: transparent; min-height: 38px; }
.gs-view-tabs button[aria-pressed="true"] { color: var(--accent); box-shadow: inset 0 -2px var(--accent); border-radius: 0; }
.gs-period-tabs button { flex: 0 1 70px; }
.gs-period-tabs button[aria-pressed="true"] { background: var(--soft-blue); color: var(--accent); }
.gs-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 20px 0 12px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--surface); }
.gs-metric { min-width: 0; min-height: 102px; border: 0; border-right: 1px solid var(--line); border-radius: 0; padding: 16px; text-align: left; box-shadow: none; }
.gs-metric:last-child { border-right: 0; }
.gs-sampler-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gs-metric span { display: block; color: var(--muted); font-size: 13px; }
.gs-metric strong { display: block; margin-top: 8px; font-size: 28px; font-variant-numeric: tabular-nums; }
.gs-metric.selected { background: var(--soft-blue); box-shadow: inset 0 -3px var(--accent); }
.gs-overdue strong, .gs-danger-text { color: #ba3535; }
.gs-definition { margin: 0 0 24px; font-size: 12px; line-height: 1.8; color: var(--muted); }
.gs-definition strong { display: block; font-weight: 500; color: var(--ink); }
.gs-section { margin-top: 24px; min-width: 0; }
.gs-section h3 { font-size: 16px; margin-bottom: 12px; }
.gs-table-wrap { width: 100%; overflow-x: auto; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gs-table-wrap table { width: 100%; min-width: 550px; border-collapse: collapse; }
.gs-table-wrap th, .gs-table-wrap td { padding: 10px 12px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); font-size: 13px; font-variant-numeric: tabular-nums; }
.gs-table-wrap th:first-child { text-align: left; }
.gs-table-wrap thead { color: var(--muted); background: #f3f6f8; }
.gs-table-wrap tr:last-child td, .gs-table-wrap tr:last-child th { border-bottom: 0; }
.gs-table-wrap button { background: transparent; color: var(--accent); padding: 2px 0; min-height: 30px; border: 0; box-shadow: none; }
.gs-table-wrap tr.selected { background: var(--soft-blue); }
.gs-list-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 10px; }
.gs-list-heading h3 { margin-bottom: 0; }
.gs-list-heading h3 span { color: var(--muted); font-size: 13px; font-weight: 400; margin-left: 6px; }
.gs-status-tabs { display: flex; gap: 5px; overflow-x: auto; padding-bottom: 12px; }
.gs-status-tabs button { white-space: nowrap; min-height: 34px; border: 0; background: transparent; box-shadow: none; }
.gs-status-tabs .selected { background: var(--soft-blue); color: var(--accent); }
.gs-flow-list { background: var(--surface); border-top: 1px solid var(--line); }
.gs-flow { display: flex; align-items: start; justify-content: space-between; gap: 16px; width: 100%; margin: 0; padding: 16px 12px; text-align: left; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; }
button.gs-flow:hover { background: #f5f8fc; box-shadow: none; }
.gs-flow-main { min-width: 0; display: grid; gap: 7px; }
.gs-flow-main strong { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.gs-flow-main > span { font-size: 12px; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; }
.gs-flow-end { flex: 0 0 auto; display: grid; justify-items: end; gap: 10px; max-width: 100px; }
.gs-state { font-size: 12px; color: #8a5700; background: var(--soft-warn); border-radius: 4px; padding: 4px 7px; text-align: center; }
.gs-state.done { color: #11724e; background: var(--soft-green); }
.gs-state.late { color: #ba3535; background: var(--soft-red); }
.gs-flow-end small { color: var(--muted); font-size: 11px; }
.gs-pagination { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: end; padding-top: 12px; font-size: 13px; color: var(--muted); }
.gs-pagination > span { margin-right: auto; }
.gs-message { margin: 0; padding: 32px 12px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.gs-error { color: #ba3535; }
@media (max-width: 980px) {
  .nav-group[data-nav-parent="quotes"] .nav-submenu,
  .nav-group[data-nav-parent="samples"] .nav-submenu { grid-template-columns: repeat(3, max-content); }
}
@media (max-width: 640px) {
  .gs-heading { margin-bottom: 16px; }
  .gs-heading h2 { font-size: 20px; }
  .gs-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gs-filters label { width: 100%; }
  .gs-filters input, .gs-filters select { min-width: 0; width: 100%; min-height: 40px; }
  .gs-month-actions { grid-column: 1 / -1; justify-content: end; }
  .gs-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gs-metric { min-height: 88px; padding: 12px; border-bottom: 1px solid var(--line); }
  .gs-metric:nth-child(even) { border-right: 0; }
  .gs-metric:last-child { grid-column: 1 / -1; border-bottom: 0; min-height: 70px; display: flex; justify-content: space-between; align-items: center; }
  .gs-metric:last-child strong { margin-top: 0; }
  .gs-metric strong { font-size: 25px; }
  .gs-flow { padding: 14px 8px; gap: 10px; }
  .gs-flow-end { max-width: 80px; }
}
