.report-status-groups {
  scroll-margin-top: 18px;
  display: grid;
  gap: 12px;
}

.report-filter-grid {
  display: grid;
  grid-template-columns: repeat(5,minmax(150px,1fr));
  align-items: end;
  gap: 10px;
}

.report-filter-toggle { display: none; }
.report-filter-form { display: block !important; }

.report-filter-field {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.report-filter-field label {
  margin: 0;
  color: #405a74;
  font-size: .72rem;
  font-weight: 800;
}

.report-filter-field .form-control,
.report-filter-field .form-select,
.report-filter-actions .btn {
  width: 100%;
  min-width: 0;
  min-height: 48px;
}

.report-filter-field .form-select {
  padding-right: 2.35rem;
  text-overflow: ellipsis;
}

.report-filter-actions {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.report-filter-actions .btn {
  flex: 1 1 0;
  white-space: nowrap;
}

.report-summary-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 13px;
  border-bottom: 1px solid #dbe5ef;
  background: #f4f8fd;
}

.report-summary-heading h2 {
  margin: 0;
  color: #173858;
  font-size: 1rem;
  font-weight: 850;
}

.report-summary-heading span {
  color: #64748b;
  font-size: .72rem;
  font-weight: 750;
}

.employee-report-summary-table td {
  padding-top: .55rem !important;
  padding-bottom: .55rem !important;
  font-size: .78rem;
}

.employee-report-detail {
  max-width: 310px;
  overflow: hidden;
  color: #566d84;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-record-detail-list {
  display: grid;
  gap: 2px;
}

.employee-report-card-list {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.employee-report-card {
  overflow: hidden;
  border: 1px solid #dbe5ef;
  border-radius: 10px;
  background: #fff;
}

.employee-report-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border-bottom: 1px solid #0e5fca;
  background: linear-gradient(100deg,#061c35 0%,#0a3d76 100%);
  box-shadow: inset 4px 0 0 #2d8ff0;
}

.employee-report-card > header strong {
  color: #fff;
  font-size: 1rem;
  font-weight: 850;
}
.employee-report-card > header small {
  padding: 3px 8px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: #f3f8ff;
  font-weight: 750;
}
.employee-report-card .employee-record-detail-list { padding: 3px 10px; }

.employee-category-summary-list {
  display: grid;
  gap: 3px;
  padding: 5px;
}

.employee-category-summary-row {
  overflow: hidden;
  border: 1px solid #dce6f0;
  border-radius: 8px;
  background: #fff;
}

.employee-category-summary-row > summary {
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto 24px;
  align-items: center;
  gap: 10px;
  padding: 5px 8px 5px 11px;
  color: #173858;
  cursor: pointer;
  list-style: none;
}

.employee-category-summary-row > summary::-webkit-details-marker { display: none; }
.employee-category-summary-row > summary:hover { background: #f6faff; }
.employee-category-summary-row > summary > span { min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.employee-category-summary-row > summary > span strong { font-size: .78rem; font-weight: 850; }
.employee-category-summary-row > summary > span small { color: #6b7f94; font-size: .65rem; }
.employee-category-summary-row > summary > b { font-size: .8rem; font-weight: 850; white-space: nowrap; }
.employee-category-summary-row > summary > i {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #edf5ff;
  color: #1769e0;
  font-style: normal;
}
.employee-category-summary-row > summary > i:before { content: '⌄'; transform: translateY(-2px); transition: transform .15s ease; }
.employee-category-summary-row[open] > summary { border-bottom: 1px solid #dce6f0; background: #f8fbff; }
.employee-category-summary-row[open] > summary > i:before { transform: rotate(180deg) translateY(1px); }

.employee-category-records { padding: 3px 9px; }
.employee-category-record-columns,
.employee-category-records > a {
  display: grid;
  grid-template-columns: 125px minmax(150px,1fr) auto;
  align-items: center;
  gap: 10px;
}
.employee-category-record-columns {
  padding: 4px 0 2px;
  color: #72859a;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.employee-category-record-columns span:last-child { text-align: right; }
.employee-category-records > a {
  min-height: 38px;
  padding: 3px 0;
  border-bottom: 1px solid #edf1f5;
  color: #173858;
  font-size: .68rem;
}
.employee-category-records > a:last-child { border-bottom: 0; }
.employee-category-records > a:hover { color: #1769e0; }
.employee-category-records > a time { display: grid; color: #60748a; white-space: nowrap; }
.employee-category-records > a time small { color: #8290a0; font-size: .6rem; }
.employee-category-records > a > span { display: grid; min-width: 0; color: #1769e0; font-weight: 750; overflow-wrap: anywhere; }
.employee-category-records > a > span > b { font-weight: 750; }
.employee-category-records .report-record-remark { margin-top: 2px; color: #52677d; font-size: .62rem; font-weight: 500; line-height: 1.35; }
.employee-category-records .report-record-remark b { color: #9a5a00; font-weight: 750; }
.employee-category-records > a > strong { text-align: right; white-space: nowrap; }
.employee-category-records > a.is-rejected > span,
.employee-category-records > a.is-rejected > strong { color: #b42332; }

.employee-record-columns {
  display: grid;
  grid-template-columns: 110px minmax(120px,1fr) auto;
  gap: 8px;
  padding: 5px 10px 2px;
  color: #72859a;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.employee-record-columns span:last-child { text-align: right; }

.employee-report-card > footer {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1px;
  border-top: 1px solid #cbd9e6;
  background: #dbe5ef;
}

.employee-report-card > footer > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 11px;
  background: #f4f8fd;
}

.employee-report-card > footer small {
  color: #60748a;
  font-size: .72rem;
  font-weight: 750;
}

.employee-report-card > footer strong {
  color: #173858;
  font-size: .9rem;
}

.employee-report-card > footer .employee-rejected-total { background: #fff3f4; }
.employee-report-card > footer .employee-rejected-total strong { color: #b42332; }
.employee-report-card > footer .employee-claim-total { background: #f1fbf5; }
.employee-report-card > footer .employee-claim-total strong { color: #08713b; }

.employee-record-detail-list > span {
  display: grid;
  grid-template-columns: 110px minmax(120px,1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  border-bottom: 1px solid #edf1f5;
  font-size: .72rem;
}

.employee-record-detail-list > span:last-child { border-bottom: 0; }
.employee-record-detail-list time { color: #60748a; white-space: nowrap; }
.employee-record-detail-list b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.employee-record-detail-list strong { color: #173858; white-space: nowrap; }
.employee-record-detail-list .is-rejected b,
.employee-record-detail-list .is-rejected strong { color: #b42332; }

.report-net-strip {
  display: grid;
  grid-template-columns: 1.15fr repeat(3,1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid #d7e1eb;
  border-radius: 12px;
  background: #d7e1eb;
}

.report-net-strip > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 14px;
  background: #f1fbf5;
}

.report-net-strip small {
  color: #567089;
  font-weight: 750;
}

.report-net-strip strong {
  color: #08713b;
  font-size: 1.05rem;
}

.report-net-strip .report-rejected-total {
  background: #fff3f4;
}

.report-net-strip .report-rejected-total strong {
  color: #b42332;
}

.report-net-strip .report-submitted-total {
  background: #f4f8fd;
}

.report-net-strip .report-period-total {
  background: #edf5ff;
}

.report-net-strip .report-period-total strong {
  color: #155ab4;
  font-size: .92rem;
}

.report-net-strip .report-submitted-total strong {
  color: #173858;
}

.report-net-strip .report-claim-total {
  background: #f1fbf5;
}

.report-status-group {
  border-left: 4px solid #94a3b8;
}

.report-status-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 13px;
  border-bottom: 1px solid #dbe5ef;
  background: #f8fafc;
}

.report-status-heading h2 {
  margin: 0;
  color: #173858;
  font-size: .95rem;
  font-weight: 850;
}

.report-status-heading span {
  color: #64748b;
  font-size: .72rem;
  font-weight: 750;
}

.report-status-approved { border-left-color: #138b50; }
.report-status-approved .report-status-heading { background: #f1fbf5; }
.report-status-approved .report-status-heading h2 { color: #08713b; }
.report-status-rejected { border-left-color: #d9293b; }
.report-status-rejected .report-status-heading { background: #fff3f4; }
.report-status-rejected .report-status-heading h2 { color: #b42332; }
.report-status-other { border-left-color: #d78a13; }
.report-status-other .report-status-heading { background: #fff9ed; }
.report-status-other .report-status-heading h2 { color: #925708; }

@media (max-width: 767.98px) {
  .report-filter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .report-filter-actions { grid-column: 1 / -1; }
  .report-status-groups { gap: 8px; }
  .report-status-heading { padding: 8px 10px; }
  .report-net-strip { grid-template-columns: 1fr; }
  .employee-report-card > footer { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
  .report-filter-panel { padding: 0 !important; overflow: hidden; }
  .report-filter-toggle {
    min-height: 52px;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto 28px;
    align-items: center;
    gap: 8px;
    padding: 9px 11px;
    color: #173858;
    cursor: pointer;
    list-style: none;
  }
  .report-filter-toggle::-webkit-details-marker { display: none; }
  .report-filter-toggle > span { min-width: 0; display: grid; }
  .report-filter-toggle b { font-size: .86rem; font-weight: 850; }
  .report-filter-toggle small { color: #718399; font-size: .65rem; }
  .report-filter-toggle em {
    padding: 4px 7px;
    border-radius: 999px;
    background: #e5f0ff;
    color: #1769e0;
    font-size: .62rem;
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
  }
  .report-filter-toggle i {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #edf5ff;
    color: #1769e0;
    font-style: normal;
  }
  .report-filter-toggle i:before { content: '⌄'; transform: translateY(-2px); transition: transform .15s ease; }
  .report-filter-panel[open] .report-filter-toggle { border-bottom: 1px solid #dbe5ef; background: #f8fbff; }
  .report-filter-panel[open] .report-filter-toggle i:before { transform: rotate(180deg) translateY(1px); }
  .report-filter-panel:not([open]) .report-filter-form { display: none !important; }
  .report-filter-form { padding: 10px; }
  .report-filter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .report-filter-field { gap: 3px; }
  .report-filter-field label { font-size: .64rem; }
  .report-filter-field .form-control,
  .report-filter-field .form-select { min-height: 44px; padding-top: .45rem; padding-bottom: .45rem; font-size: .86rem; }
  .report-filter-actions { grid-column: auto; }
  .report-filter-actions .btn { min-height: 44px; font-size: .82rem; }
  .employee-category-summary-row > summary { grid-template-columns: minmax(0,1fr) auto 22px; gap: 7px; padding-left: 9px; }
  .employee-category-summary-row > summary > span { align-items: flex-start; flex-direction: column; gap: 0; }
  .employee-category-record-columns { display: none; }
  .employee-category-records > a { grid-template-columns: minmax(0,1fr) auto; gap: 5px 9px; padding: 6px 0; }
  .employee-category-records > a time { grid-column: 1; grid-row: 2; font-size: .63rem; }
  .employee-category-records > a > span { grid-column: 1; grid-row: 1; }
  .employee-category-records > a > strong { grid-column: 2; grid-row: 1 / 3; }
}

@media (max-width: 390px) {
  .report-filter-grid { grid-template-columns: 1fr; }
  .report-filter-actions { grid-column: 1; }
}
