:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --ink: #17202a;
  --muted: #667085;
  --line: #d9e1ea;
  --primary: #176b87;
  --primary-dark: #104e63;
  --accent: #d97706;
  --danger: #b42318;
  --green: #16866a;
  --shadow: 0 14px 34px rgba(31, 41, 55, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(135deg, #eef6f8 0%, #f8fafc 52%, #fff7ed 100%);
}

.login-card {
  width: min(440px, 100%);
  display: grid;
  gap: 16px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.brand.compact {
  color: var(--ink);
  margin-bottom: 4px;
}

.brand.compact p {
  color: var(--muted);
}

.login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  background: #eef2f6;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.login-tab {
  border: 0;
  border-radius: 6px;
  padding: 10px 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.login-tab.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 6px 14px rgba(23, 107, 135, 0.14);
}

.login-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.employee-portal {
  min-height: 100vh;
  padding: 28px;
}

.portal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.portal-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.portal-topbar h2,
.portal-topbar p {
  margin: 0;
}

.portal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef2f6;
}

.portal-nav-item {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  padding: 0 14px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.portal-nav-item.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 6px 14px rgba(23, 107, 135, 0.12);
}

.portal-section {
  display: none !important;
}

.portal-section.active {
  display: grid !important;
}

.chart-grid.portal-section.active {
  display: grid !important;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.sidebar {
  background: #111827;
  color: #fff;
  padding: 26px 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  font-weight: 800;
  font-size: 22px;
}

.brand h1,
.brand p,
.topbar h2,
.topbar p,
.panel h3,
.form-panel h3 {
  margin: 0;
}

.brand h1 {
  font-size: 19px;
}

.brand p {
  color: #aab4c3;
  font-size: 13px;
  margin-top: 4px;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav-item {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #dbe4ef;
  min-height: 44px;
  padding: 0 14px;
  text-align: left;
}

.nav-item:hover,
.nav-item.active {
  background: #233145;
  color: #fff;
}

.main {
  padding: 28px;
  min-width: 0;
}

.app-shell.finance-mode {
  grid-template-columns: 220px minmax(0, 1fr);
}

.finance-mode .sidebar {
  display: block;
  padding: 24px 14px;
}

.finance-mode .main {
  width: 100%;
  margin: 0;
  padding: 34px;
}

.finance-mode .topbar {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.finance-mode #costsView .cost-workspace,
.finance-mode #invoicesView .invoice-workspace {
  grid-template-columns: 1fr;
  gap: 20px;
}

.finance-mode #costsView .panel,
.finance-mode #invoicesView .panel {
  padding: 24px;
}

.finance-mode #costsView .panel-head,
.finance-mode #invoicesView .panel-head {
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.finance-mode #costsView .report-controls,
.finance-mode #invoicesView .report-controls {
  justify-content: flex-start;
  gap: 12px;
}

.finance-mode #costsView .report-controls select,
.finance-mode #costsView .report-controls input,
.finance-mode #invoicesView .report-controls select,
.finance-mode #invoicesView .report-controls input {
  min-width: 160px;
}

.finance-mode .cost-category-grid {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 16px;
}

.finance-mode .cost-category-card {
  padding: 18px;
  min-height: 168px;
}

.finance-mode .cost-card-actions {
  margin-top: 4px;
}

.finance-mode .payment-summary-panel {
  padding: 18px;
  margin: 18px 0;
}

.finance-mode .table-wrap {
  max-height: none;
  overflow-x: auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.eyebrow {
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
}

.topbar h2 {
  font-size: 30px;
}

.actions,
.report-controls,
.form-row {
  display: flex;
  gap: 10px;
}

.report-controls {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.primary-btn,
.ghost-btn,
.secondary-btn,
.danger-btn,
.mini-btn {
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 14px;
  font-weight: 700;
}

.primary-btn {
  background: var(--primary);
  color: #fff;
}

.primary-btn:hover {
  background: var(--primary-dark);
}

.ghost-btn {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.secondary-btn {
  background: #f8fafc;
  color: var(--ink);
  border-color: var(--line);
}

.form-actions,
.inline-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.form-actions {
  justify-content: flex-start;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.danger-btn {
  background: #fff;
  color: var(--danger);
  border-color: #f0c1bd;
}

.mini-btn {
  min-height: 32px;
  padding: 0 10px;
  background: #eef6f8;
  color: var(--primary);
  border-color: #c9e2e9;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.chart-panel.embedded {
  box-shadow: none;
  background: #fbfcfe;
}

.metric,
.panel,
.form-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric {
  min-height: 112px;
  padding: 20px;
  display: grid;
  align-content: space-between;
}

.metric span {
  color: var(--muted);
}

.metric strong {
  font-size: 31px;
}

.split,
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: 16px;
  align-items: start;
}

.workspace {
  grid-template-columns: 330px minmax(0, 1fr);
}

.salary-workspace {
  grid-template-columns: 300px minmax(0, 1fr);
}

.cost-workspace {
  grid-template-columns: 310px minmax(0, 1fr);
}

.invoice-workspace {
  grid-template-columns: 310px minmax(0, 1fr);
}

.panel,
.form-panel {
  padding: 18px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.panel-head h3,
.form-panel h3 {
  font-size: 18px;
}

.panel-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.pie-wrap {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.chart-panel > div:last-child,
.chart-panel.embedded > div:last-child {
  min-height: 230px;
}

.money-pie-card {
  min-height: 230px;
}

.pie-chart {
  width: 220px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(23, 32, 42, 0.06);
}

.pie-center {
  width: 104px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  background: #fff;
  border: 1px solid var(--line);
  text-align: center;
}

.pie-center strong {
  display: block;
  font-size: 18px;
}

.pie-center span {
  color: var(--muted);
  font-size: 12px;
}

.chart-legend {
  display: grid;
  gap: 10px;
}

.legend-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 4px;
}

.cost-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.cost-category-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.cost-category-card h4 {
  margin: 0;
  font-size: 17px;
}

.cost-category-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.cost-category-card strong {
  font-size: 22px;
  color: var(--primary);
}

.cost-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-summary-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.payment-summary-panel h4 {
  margin: 0;
  font-size: 17px;
}

.payment-summary-panel p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.operation-log-panel {
  margin: 16px 0;
}

.operation-log-list {
  max-height: 360px;
  overflow-y: auto;
  display: grid;
  gap: 10px;
  padding-right: 4px;
}

.operation-log-item {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.operation-log-item strong,
.operation-log-item span,
.operation-log-item time {
  display: block;
}

.operation-log-item span,
.operation-log-item time {
  color: var(--muted);
  font-size: 12px;
}

.operation-log-item p {
  margin: 0;
  color: var(--ink);
}

#paymentAccountTotal {
  min-width: 120px;
  color: var(--danger);
  font-size: 20px;
}

.evidence-thumb {
  width: 74px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.file-pill {
  display: inline-flex;
  max-width: 220px;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
  word-break: break-all;
}

a.file-pill {
  text-decoration: none;
}

.evidence-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.penalty-evidence-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 300px;
}

.evidence-download {
  display: inline-grid;
  gap: 4px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}

.legend-item strong,
.legend-item span {
  display: block;
}

.legend-item strong {
  overflow-wrap: anywhere;
}

.legend-item span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.chart-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.daily-analysis-panel {
  margin-top: 16px;
}

.employee-compare-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.compare-filter {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.filter-title {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.compare-check {
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  color: var(--ink);
  font-weight: 700;
}

.bar-chart {
  display: grid;
  gap: 16px;
}

.bar-chart h4 {
  margin: 0;
  font-size: 16px;
}

.bar-group {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.bar-employee {
  font-weight: 800;
  overflow-wrap: anywhere;
}

.bar-lines {
  display: grid;
  gap: 9px;
}

.bar-line {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
}

.bar-label {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.bar-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f6;
}

.bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--green));
}

.form-panel {
  display: grid;
  gap: 14px;
}

.form-panel.wide {
  align-self: start;
}

#penaltyForm {
  height: fit-content;
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(15, 23, 42, 0.42);
}

.modal-card {
  width: min(460px, 100%);
  display: grid;
  gap: 14px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 11px;
  color: var(--ink);
  background: #fff;
}

textarea {
  resize: vertical;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

#salaryRows td {
  white-space: nowrap;
}

#penaltyList th,
#penaltyList td {
  min-width: 92px;
}

#penaltyList th:nth-child(4),
#penaltyList td:nth-child(4),
#penaltyList th:nth-child(7),
#penaltyList td:nth-child(7) {
  min-width: 220px;
}

#penaltyList th:nth-child(9),
#penaltyList td:nth-child(9) {
  min-width: 86px;
  text-align: center;
}

.danger-mini {
  border-color: #fecdca;
  background: #fff1f0;
  color: var(--danger);
}

.danger-mini:hover {
  border-color: var(--danger);
  background: #ffe4e0;
}

#penaltyList .highlight-row td {
  background: #fff7ed;
  border-bottom-color: #fed7aa;
  box-shadow: inset 0 1px 0 rgba(249, 115, 22, 0.08);
}

#penaltyList .highlight-row td:first-child {
  box-shadow: inset 4px 0 0 var(--accent), inset 0 1px 0 rgba(249, 115, 22, 0.08);
}

.latest-pill {
  margin-left: 8px;
  min-height: 22px;
  padding: 0 7px;
  background: #fff1f0;
  color: var(--danger);
  font-size: 12px;
}

.save-receipt {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #fed7aa;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #fff7ed;
}

.save-receipt h4 {
  margin: 0;
}

.receipt-grid {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px 12px;
  align-items: baseline;
}

.receipt-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.receipt-grid strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.salary-detail-table th {
  width: 140px;
  background: #f4f6f8;
}

.salary-detail-table td {
  min-width: 160px;
  font-weight: 700;
}

.card-grid,
.standard-list,
.record-list,
.ranking-list {
  display: grid;
  gap: 12px;
}

.category-block {
  display: grid;
  gap: 10px;
}

.category-title {
  margin: 12px 0 2px;
  padding: 10px 12px;
  border-left: 4px solid var(--primary);
  background: #eef6f8;
  border-radius: 8px;
  color: var(--primary-dark);
}

.category-title span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.standard-summary {
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.standard-table th:nth-child(1),
.standard-table td:nth-child(1) {
  min-width: 280px;
}

.standard-table th:nth-child(2),
.standard-table td:nth-child(2),
.standard-table th:nth-child(3),
.standard-table td:nth-child(3) {
  min-width: 96px;
  white-space: nowrap;
  text-align: center;
}

.standard-table th:nth-child(4),
.standard-table td:nth-child(4) {
  min-width: 360px;
}

.employee-card,
.standard-item,
.record-item,
.rank-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.employee-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.employee-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}

.admin-pill {
  background: #ecfeff;
  color: #0e7490;
}

.employee-card h4,
.standard-item h4,
.record-item h4,
.rank-item h4 {
  margin: 0 0 6px;
}

.rank-main {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.rank-place {
  flex: 0 0 auto;
  min-width: 58px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef6f8;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.rank-item h4 small {
  margin-left: 6px;
  color: var(--danger);
  font-size: 13px;
}

.meta,
.empty {
  color: var(--muted);
  font-size: 14px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.money {
  color: var(--danger);
}

.danger-pill {
  background: #fff1f0;
  color: var(--danger);
}

.points {
  color: var(--accent);
}

.good {
  color: var(--green);
}

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: middle;
}

.status-dot.red {
  background: var(--danger);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}

.daily-submitted-row td {
  background: #f0fdf4;
  border-bottom-color: #bbf7d0;
}

.daily-submitted-row td:first-child {
  box-shadow: inset 4px 0 0 var(--green);
}

.daily-entry-form,
.daily-task-inputs {
  display: grid;
  gap: 14px;
}

.daily-task-inputs {
  grid-template-columns: repeat(3, minmax(120px, 1fr));
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.faq-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.faq-card h4 {
  margin: 0 0 8px;
}

.faq-card p {
  margin: 0 0 10px;
  color: var(--muted);
  white-space: pre-wrap;
}

.faq-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.faq-media {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.evidence-img {
  width: 132px;
  height: 92px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.evidence-img.large {
  width: 180px;
  height: 126px;
}

.record-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
}

.report-head {
  align-items: flex-start;
}

.report-controls select {
  min-width: 220px;
}

.report-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 22px;
  min-height: 420px;
}

.report-preview h2 {
  margin: 0 0 8px;
}

.report-section {
  margin-top: 22px;
}

.report-section h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.report-evidence {
  max-width: 220px;
  max-height: 160px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .nav {
    grid-template-columns: repeat(3, 1fr);
  }

  .metric-grid,
  .chart-grid,
  .compare-filter,
  .cost-category-grid,
  .split,
  .workspace {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .main {
    padding: 18px;
  }

  .topbar,
  .portal-topbar,
  .payment-summary-panel,
  .actions,
  .report-head,
  .report-controls,
  .form-row,
  .daily-task-inputs,
  .record-item,
  .operation-log-item,
  .employee-card {
    display: grid;
    grid-template-columns: 1fr;
  }

  .nav {
    grid-template-columns: 1fr 1fr;
  }

  .metric strong {
    font-size: 26px;
  }

  .pie-wrap {
    grid-template-columns: 1fr;
  }

  .pie-chart {
    width: min(220px, 100%);
    margin: 0 auto;
  }

  .bar-group,
  .bar-line {
    grid-template-columns: 1fr;
  }

  .bar-line strong {
    justify-self: end;
  }
}
