.nav-icon-accounting {
  width: 16px;
  text-align: center;
  font: 600 14px/16px 'DM Sans', sans-serif;
}

.accounting-header {
  align-items: flex-end;
  gap: 12px 20px;
  flex-wrap: wrap;
}

.accounting-period {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-width: 100%;
  color: #65666d;
  font-size: 13px;
  font-weight: 600;
}

.accounting-period select {
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: 16px 'DM Sans', sans-serif;
}

.accounting-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr));
  gap: 10px;
}

.accounting-metric {
  min-width: 0;
  min-height: 90px;
  padding: 12px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.accounting-metric:hover, .accounting-metric[aria-pressed='true'] {
  border-color: #ef766a;
  background: #fff7f6;
}

.accounting-metric .metric-label { color: #65666d; }
.accounting-metric .metric-value {
  display: block;
  margin: 6px 0 0;
  font-size: clamp(18px, 2vw, 25px);
  letter-spacing: -.5px;
  overflow-wrap: anywhere;
}

.accounting-board .board-heading { gap: 8px; flex-wrap: wrap; }
.accounting-count, .accounting-table td small { color: #65666d; font-size: 13px; }
.accounting-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.accounting-table th, .accounting-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  overflow-wrap: anywhere;
}
.accounting-table th { color: #65666d; font-size: 12px; }
.accounting-table td { font-size: 14px; }
.accounting-table th:first-child { width: 16%; }
.accounting-table th:nth-child(3) { width: 24%; }
.accounting-table th:nth-child(4) { width: 19%; }
.accounting-table th:last-child { width: 52px; }
.accounting-table th:nth-child(4), .accounting-table .accounting-amount { text-align: right; }
.accounting-amount { font-weight: 700; font-variant-numeric: tabular-nums; }
.accounting-table td small { display: block; margin-top: 3px; }
.accounting-action .row-actions button { background: #f6f7f3; border: 1px solid var(--line); width: 28px; height: 28px; }
.accounting-action .row-actions button:hover { background: #edf3e5; color: #658047; }
.accounting-pagination { padding: 0 12px; }
.accounting-pagination[hidden] { display: none; }
.accounting-wait, .accounting-empty, .accounting-note { color: #65666d; font-size: 13px; }
.accounting-empty { padding: 0 20px 14px; }

@media (min-width: 721px) and (max-width: 1100px), (min-width: 721px) and (max-width: 1600px) and (pointer: coarse) {
  .sidebar:has([href='#contabilidade']:not([hidden])) { flex-wrap: wrap; }
}

@media (max-width: 540px) {
  .accounting-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .accounting-metric { min-height: 76px; }
  .accounting-table th, .accounting-table td { padding: 8px 5px; font-size: 12px; }
  .accounting-table td small { font-size: 11px; }
  .accounting-table th:first-child { width: 25%; }
  .accounting-table th:nth-child(3) { width: 19%; }
  .accounting-table th:nth-child(4) { width: 22%; }
  .accounting-table th:last-child { width: 38px; }
}
