.excel-caption {
  color: #60736a;
  margin-bottom: 18px;
  font-size: 13px;
}
.excel-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-top: 16px;
}
.excel-tabs .btn {
  flex-shrink: 0;
}
.excel-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: end;
  background: #fff;
  border: 1px solid #dce3d5;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 18px;
}
.excel-filters label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  min-width: 100px;
  flex: 1 1 120px;
}
.excel-filters input,
.excel-filters select {
  width: 100%;
  min-width: 0;
  border: 1px solid #ccd7d0;
  border-radius: 5px;
  padding: 9px;
  background: #fff;
  color: #244238;
}
.excel-scroll {
  overflow: auto;
  max-width: 100%;
  border: 1px solid #dce3d5;
  border-radius: 8px;
  background: #fff;
  margin-bottom: 16px;
}
.excel-ledger {
  max-height: 65vh;
}
.excel-grid {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 100%;
  font-size: 12px;
  text-align: left;
}
.excel-grid th,
.excel-grid td {
  padding: 11px 14px;
  border-right: 1px solid #e2e8e1;
  border-bottom: 1px solid #e2e8e1;
  white-space: nowrap;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.excel-grid th {
  position: sticky;
  top: 0;
  background: #e8efe8;
  color: #24483c;
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.2px;
}
.excel-grid tbody tr:nth-child(even) {
  background: #f8faf6;
}
.excel-grid tbody tr:hover {
  background: #f5f1e5;
}
.excel-ledger th:first-child,
.excel-ledger .excel-name {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #f7f9f4;
  min-width: 150px;
  border-right: 2px solid #c2d0c6;
}
.excel-ledger th:first-child {
  z-index: 3;
  background: #e8efe8;
}
.excel-name a {
  color: #245747;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.excel-grid tfoot td,
.excel-grid tfoot th {
  background: #edf2e9;
  font-weight: 700;
}
.excel-count {
  border: 0;
  background: transparent;
  color: #28604c;
  text-decoration: underline;
  cursor: pointer;
  min-width: 32px;
  padding: 3px;
}
.excel-pagination {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  font-size: 12px;
}
.excel-metrics {
  display: flex;
  gap: 16px;
  margin: 20px 0;
}
.excel-metrics > div {
  background: white;
  border: 1px solid #dce3d5;
  border-radius: 8px;
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.excel-metrics strong {
  font-size: 30px;
  color: #245344;
}
.excel-metrics span {
  font-size: 12px;
  color: #647267;
}
.mobile-mode .excel-filters {
  padding: 12px;
  gap: 8px;
}
.mobile-mode .excel-metrics {
  gap: 6px;
}
.mobile-mode .excel-metrics > div {
  padding: 12px 8px;
}
.mobile-mode .excel-metrics strong {
  font-size: 24px;
}
.mobile-mode .excel-pagination {
  flex-wrap: wrap;
}
.mobile-mode .excel-ledger {
  max-height: 65vh;
}
.mobile-mode .excel-grid td,
.mobile-mode .excel-grid th {
  padding: 9px;
}
.mobile-mode .excel-ledger .excel-name {
  min-width: 115px;
}

.excel-grid td.excel-difference {
  white-space: normal;
  min-width: 240px;
  max-width: 320px;
  overflow-wrap: anywhere;
  color: #75531f;
}
