/* Unified Admin expense register; isolated from other finance screens. */
.expense-report-page {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.expense-report-heading {
  align-items: center;
}

.expense-report-page > * { min-width: 0; }
.expense-report-feedback:empty { display: none; }

.expense-report-heading__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.expense-report-add {
  min-height: 40px;
  text-decoration: none;
}

.expense-report-heading p:last-child {
  max-width: 760px;
  color: #667085;
}

.expense-report-feedback {
  min-height: 20px;
  margin: -6px 0;
  color: #667085;
  font-size: 13px;
  font-weight: 650;
}

.expense-report-feedback--error {
  color: #b42318;
}

.expense-report-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  align-items: end;
  padding: 16px;
}

.expense-report-filter {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #475467;
  font-size: 12px;
  font-weight: 750;
}

.expense-report-filter input,
.expense-report-filter select {
  width: 100%;
  height: 42px;
  border: 1px solid #d0d5dd;
  border-radius: 9px;
  background: #fff;
  color: #101828;
  padding: 0 34px 0 11px;
}

.expense-report-filters__actions {
  display: flex;
  grid-column: 4;
  justify-content: flex-end;
}

.expense-report-filters__actions button {
  min-width: 126px;
  min-height: 42px;
}

.expense-report-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.expense-report-summary article {
  display: grid;
  gap: 8px;
  min-height: 86px;
  align-content: center;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #fff;
  padding: 14px 16px;
}

.expense-report-summary span {
  color: #667085;
  font-size: 11px;
  font-weight: 750;
}

.expense-report-summary strong {
  color: #101828;
  font-size: clamp(18px, 1.6vw, 24px);
  font-variant-numeric: tabular-nums;
}

.expense-report-table-region {
  max-height: min(68vh, 780px);
  min-width: 0;
  overflow: auto;
  padding: 0;
  scrollbar-gutter: stable;
}

.expense-report-table {
  width: 100%;
  min-width: 1880px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
}

.expense-report-table th,
.expense-report-table td {
  height: 44px;
  border-bottom: 1px solid #eaecf0;
  background: #fff;
  padding: 9px 12px;
  text-align: left;
  white-space: nowrap;
}

.expense-report-table thead th {
  position: sticky;
  z-index: 3;
  top: 0;
  background: #f8fafc;
  color: #475467;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.expense-report-table tfoot th {
  position: sticky;
  z-index: 2;
  bottom: 0;
  background: #eef2f8;
  font-weight: 850;
}

.expense-report-table select {
  min-width: 190px;
  height: 38px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  padding: 0 28px 0 9px;
}

.expense-report-payment select {
  min-width: 340px;
}

.expense-report-status {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  border-radius: 999px;
  padding: 3px 9px;
  font-weight: 800;
}

.expense-report-status--expense {
  background: #eef2f8;
  color: #344054;
}

.expense-report-status--pending {
  background: #fff3d6;
  color: #934d00;
}

.expense-report-status--settled {
  background: #dcfae6;
  color: #067647;
}

.expense-report-pagination {
  border: 1px solid #e4e7ec;
  border-radius: 12px;
}

@media (max-width: 1280px) {
  .expense-report-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .expense-report-filters__actions { grid-column: 2; }
  .expense-report-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .expense-report-heading { display: flex; flex-direction: column; margin: 0; padding: 0; gap: 12px; align-items: stretch; }
  .expense-report-heading h1 { font-size: 1.3rem; }
  .expense-report-heading p:last-child { font-size: .84rem; line-height: 1.45; }
  .expense-report-heading__actions { width: 100%; flex-direction: row; justify-content: flex-end; }
  .expense-report-heading__actions > * { width: auto; flex: 0 1 auto; }
  .expense-report-filters, .expense-report-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .expense-report-filters { padding: 12px; }
  .expense-report-filters__actions { grid-column: 1 / -1; }
  .expense-report-filters__actions button { width: auto; }
  .expense-report-summary article { min-height: 76px; padding: 12px; gap: 5px; }
  .expense-report-summary strong { font-size: 1.2rem; overflow-wrap: anywhere; }
}
