.trip-summary-hero {
  margin-bottom: 16px;
  padding: 24px;
  overflow: hidden;
  border-color: #164a7c;
  background: linear-gradient(135deg,#123d68 0%,#1769e0 100%);
  color: #fff;
  box-shadow: 0 14px 32px rgba(18,61,104,.2);
}

.trip-summary-month-filter {
  display: block;
  margin-bottom: 14px;
  padding: 15px 17px;
}

.trip-summary-filter-fields {
  display: grid !important;
  grid-template-columns: minmax(190px,260px) auto;
  align-items: end;
  justify-content: start;
  gap: 10px;
}

.trip-summary-filter-actions { display: flex; align-items: end; gap: 8px; }
.trip-summary-filter-actions .btn { flex: 1 1 auto; white-space: nowrap; }

.trip-summary-month-filter .form-label {
  margin-bottom: 6px;
  font-size: .78rem;
  font-weight: 800;
}

.trip-summary-month-filter .form-control,
.trip-summary-month-filter .btn {
  min-height: 48px;
}

.trip-summary-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 2px 4px 20px;
}

.trip-summary-overview > div {
  display: grid;
  gap: 3px;
}

.trip-summary-overview span {
  color: #d7e8fa;
  font-size: .82rem;
  font-weight: 700;
}

.trip-summary-overview strong {
  color: #fff;
  font-size: 1rem;
}

.trip-summary-overview > b {
  color: #fff;
  font-size: 1.75rem;
  letter-spacing: -.025em;
  white-space: nowrap;
}

.trip-status-totals {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 8px;
  padding: 14px 4px 0;
  border-top: 1px solid rgba(255,255,255,.24);
}

.trip-status-total {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 11px;
  background: rgba(255,255,255,.1);
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}

.trip-status-total:hover {
  border-color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.18);
  color: #fff;
  transform: translateY(-1px);
}

.trip-status-total:focus-visible {
  outline: 3px solid rgba(255,255,255,.8);
  outline-offset: 2px;
}

.trip-status-total.is-active {
  border-color: #fff;
  background: #fff;
  box-shadow: 0 8px 20px rgba(5,35,72,.22);
}

.trip-status-total.is-active small,
.trip-status-total.is-active strong { color: #123d68; }

.trip-status-approved.is-active { box-shadow: inset 0 0 0 2px #59dfa0,0 8px 20px rgba(5,35,72,.22); }
.trip-status-submitted.is-active { box-shadow: inset 0 0 0 2px #ffd06a,0 8px 20px rgba(5,35,72,.22); }
.trip-status-rejected.is-active { box-shadow: inset 0 0 0 2px #ff7d88,0 8px 20px rgba(5,35,72,.22); }

.trip-status-total small {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #d9e9fa;
  font-size: .7rem;
  font-weight: 750;
}

.trip-status-total i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,.11);
}

.trip-status-total strong {
  overflow: hidden;
  color: #fff;
  font-size: .93rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trip-status-approved i { background: #59dfa0; }
.trip-status-submitted i { background: #ffd06a; }
.trip-status-rejected i { background: #ff7d88; }

.report-employee-expense-groups {
  display: grid;
  gap: 9px;
  margin-top: 9px;
}

.report-employee-expense-group {
  overflow: hidden;
  border: 1px solid #d5e1ed;
  border-radius: 14px;
  background: #f8fbff;
}

.report-employee-expense-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid #06192f;
  background: linear-gradient(100deg,#061c35 0%,#0a3d76 100%);
  box-shadow: inset 4px 0 0 #2d8ff0;
}

.report-employee-expense-heading h3 {
  margin: 0;
  color: #123256;
  font-size: 1rem;
  font-weight: 850;
}

.report-employee-expense-heading > div {
  min-width: 0;
  display: grid;
}

.report-employee-expense-heading > strong {
  flex: 0 0 auto;
  color: #fff;
  font-size: .9rem;
  font-weight: 850;
  white-space: nowrap;
}

.report-employee-expense-group .trip-expense-details small b {
  color: #1769e0;
  font-weight: 800;
}

.report-employee-expense-heading span {
  color: #d9ebff;
  font-size: .74rem;
  font-weight: 700;
}

.report-category-groups {
  display: grid;
  gap: 3px;
  padding: 5px;
}

.report-category-group {
  overflow: hidden;
  border: 1px solid #dce6f0;
  border-radius: 9px;
  background: #fff;
}

.report-category-group > summary {
  min-height: 46px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto 24px;
  align-items: center;
  gap: 12px;
  padding: 6px 10px 6px 12px;
  color: #123256;
  cursor: pointer;
  list-style: none;
}

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

.report-employee-expense-group .trip-expense-summary-list {
  gap: 3px;
  margin-top: 0;
  padding: 5px;
}

.report-employee-expense-group .trip-expense-summary-list > a {
  min-height: 48px;
  padding: 5px 9px;
  border-radius: 8px;
}

@media (max-width: 575.98px) {
  .trip-status-total { pointer-events: none; }
  .report-employee-expense-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .report-employee-expense-heading > strong { font-size: .82rem; }
  .report-category-group > summary { grid-template-columns: minmax(0,1fr) auto 22px; gap: 7px; padding-left: 9px; }
  .report-category-group > summary > span { align-items: flex-start; flex-direction: column; gap: 0; }
}

.trip-employee-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.18);
}

.trip-employee-summary {
  min-width: 0;
  min-height: 122px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 14px;
  background: rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.trip-employee-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.trip-employee-heading h2 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trip-employee-heading strong {
  flex: 0 0 auto;
  color: #fff;
  font-size: 1.05rem;
  white-space: nowrap;
}

.trip-employee-summary p {
  margin: 9px 0 6px;
  color: #e7f2ff;
  font-size: .8rem;
  line-height: 1.4;
}

.trip-employee-summary small {
  display: block;
  color: #c9def5;
  font-size: .74rem;
}

.trip-summary-empty {
  padding: 18px;
  border-top: 1px solid rgba(255,255,255,.24);
  color: #e7f2ff;
  text-align: center;
}

.trip-card-stats .trip-card-destination {
  margin-left: auto;
  color: #1769e0;
  font-weight: 800;
}

.trip-summary-page .category-claim-date {
  margin-top: 3px;
  color: #496681;
  font-weight: 700;
}

.trip-summary-page .category-summary-list {
  grid-template-columns: 1fr;
  gap: 0;
}

.trip-summary-page .category-summary-list > div {
  width: 100%;
  padding: 14px 2px;
}

.trip-expense-summary-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-top: 8px;
}

.trip-expense-summary-list > a {
  display: grid;
  grid-template-columns: minmax(155px,.65fr) minmax(180px,1.4fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 7px 11px;
  border: 1px solid #d8e2ec;
  border-left: 4px solid #1769e0;
  border-radius: 10px;
  background: #fff;
  color: #173858;
}

.trip-expense-summary-list > a:hover {
  border-color: #9fc2eb;
  background: #f8fbff;
}

.trip-expense-date,
.trip-expense-details,
.trip-expense-amount {
  display: grid;
  min-width: 0;
}

.trip-expense-date small,
.trip-expense-details small {
  color: #6b7f94;
  font-size: .68rem;
}

.trip-expense-date strong,
.trip-expense-details strong {
  overflow: hidden;
  font-size: .84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trip-expense-remark {
  margin-top: 2px;
  color: #52677d !important;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: normal !important;
}

.trip-expense-remark b,
.trip-record-remark b { color: #9a5a00; }

.trip-expense-amount {
  grid-auto-flow: column;
  align-items: center;
  gap: 9px;
}

.trip-expense-amount > strong {
  font-size: .9rem;
  white-space: nowrap;
}

.trip-expense-amount .status-badge {
  font-size: .6rem;
}

.trip-summary-no-expenses {
  padding: 18px;
  color: #6b7f94;
  text-align: center;
}

.trip-summary-bottom-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 12px;
}

.trip-summary-bottom-actions .btn {
  min-width: 145px;
}

.trip-mobile-category-view { display: none; }

@media (max-width: 991.98px) {
  .trip-employee-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 575.98px) {
  .trip-summary-month-filter { grid-template-columns: 1fr; }
  .trip-summary-month-filter > div { grid-column: 1 / -1; }
  .trip-summary-filter-actions { display: grid; grid-template-columns: minmax(0,2fr) minmax(92px,1fr); grid-column: 1 / -1; }
  .trip-summary-filter-actions .btn { width: 100%; }
  .trip-summary-hero { padding: 17px; }
  .trip-summary-overview { align-items: flex-start; padding: 0 0 16px; }
  .trip-summary-overview > b { font-size: 1.42rem; }
  .trip-status-totals { gap: 5px; padding: 9px 0 0; }
  .trip-status-total { gap: 3px; padding: 7px 6px; border-radius: 9px; }
  .trip-status-total small { gap: 4px; font-size: .59rem; }
  .trip-status-total i { width: 6px; height: 6px; flex-basis: 6px; }
  .trip-status-total strong { font-size: .76rem; }
  .trip-employee-grid { grid-template-columns: 1fr; padding-top: 14px; }
  .trip-employee-summary {
    min-height: 0;
    padding: 14px;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
  }
  .trip-employee-summary:active { transform: scale(.99); }
  .trip-employee-summary:focus-visible { outline: 3px solid rgba(90,225,211,.75); outline-offset: 2px; }
  .trip-employee-summary.is-active {
    border-color: #77eadc;
    background: rgba(8,181,166,.24);
    box-shadow: 0 0 0 2px rgba(77,224,208,.35), inset 0 1px 0 rgba(255,255,255,.16);
  }
  .trip-expense-summary-list > a {
    grid-template-columns: minmax(0,1fr) auto;
    gap: 4px 9px;
    padding: 7px 9px;
  }
  .trip-expense-date { grid-column: 1; grid-row: 2; }
  .trip-expense-date small { display: none; }
  .trip-expense-date strong { color: #567089; font-size: .7rem; }
  .trip-expense-details { grid-column: 1; grid-row: 1; }
  .trip-expense-amount { grid-column: 2; grid-row: 1 / 3; grid-auto-flow: row; justify-items: end; gap: 3px; }
  .trip-summary-bottom-actions .btn { width: 100%; }

  .trip-summary-page { padding-bottom: 98px; }
  .trip-summary-page .trip-summary-hero { margin-bottom: 11px; padding: 13px; border-radius: 15px; }
  .trip-summary-page .trip-summary-overview { align-items: center; padding-bottom: 10px; }
  .trip-summary-page .trip-summary-overview > b { font-size: 1.28rem; }
  .trip-summary-page .trip-status-totals { padding-top: 8px; }
  .trip-summary-desktop-expenses,
  .trip-summary-desktop-pagination { display: none !important; }
  .trip-mobile-category-view { display: block; }
  .trip-mobile-status-tabs {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 4px;
    margin: 0 0 10px;
    padding: 4px;
    border: 1px solid #d5e2ef;
    border-radius: 13px;
    background: #eaf0f6;
  }
  .trip-mobile-status-tabs button {
    min-width: 0;
    min-height: 42px;
    padding: 5px 3px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #536b82;
    font-size: .67rem;
    font-weight: 800;
  }
  .trip-mobile-status-tabs button.active {
    background: #fff;
    color: #075f66;
    box-shadow: 0 2px 8px rgba(18,50,86,.11);
  }
  .trip-mobile-status-tabs button[data-trip-status="approved"].active { color: #08713b; }
  .trip-mobile-status-tabs button[data-trip-status="submitted"].active { color: #9a5a00; }
  .trip-mobile-status-tabs button[data-trip-status="rejected"].active { color: #b91c2b; }
  .trip-mobile-category-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin: 0 2px 8px;
  }
  .trip-mobile-category-heading > div { display: grid; }
  .trip-mobile-category-heading span { color: #60758b; font-size: .66rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
  .trip-mobile-category-heading strong { color: #102f50; font-size: 1rem; }
  .trip-mobile-category-heading small { color: #71869a; font-size: .65rem; }
  .trip-mobile-category-list { display: grid; gap: 7px; }
  .trip-mobile-category-group {
    overflow: hidden;
    border: 1px solid #d5e2ed;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(18,50,86,.06);
  }
  .trip-mobile-category-group > summary {
    min-height: 58px;
    display: grid;
    grid-template-columns: 38px minmax(0,1fr) auto 22px;
    align-items: center;
    gap: 9px;
    padding: 8px 9px;
    cursor: pointer;
    list-style: none;
  }
  .trip-mobile-category-group > summary::-webkit-details-marker { display: none; }
  .trip-category-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #dff6f3;
    color: #07847e;
    font-size: .9rem;
    font-weight: 900;
  }
  .trip-category-label { min-width: 0; display: grid; }
  .trip-category-label > strong { overflow: hidden; color: #102f50; font-size: .84rem; text-overflow: ellipsis; white-space: nowrap; }
  .trip-category-label small { color: #708399; font-size: .65rem; }
  .trip-category-label small b { font-weight: 750; }
  .trip-category-label em { font-style: normal; }
  .trip-category-total { color: #102f50; font-size: .83rem; white-space: nowrap; }
  .trip-mobile-category-group > summary > i {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e8f7f6;
    color: #07847e;
    font-style: normal;
  }
  .trip-mobile-category-group > summary > i:before { content: '⌄'; transform: translateY(-2px); transition: transform .16s ease; }
  .trip-mobile-category-group[open] > summary > i:before { transform: rotate(180deg) translateY(1px); }
  .trip-mobile-category-group[open] > summary { border-bottom: 1px solid #dce7f0; background: #f5fbfb; }
  .trip-mobile-category-records { display: grid; }
  .trip-mobile-category-record {
    min-height: 58px;
    display: grid;
    grid-template-columns: 72px minmax(0,1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-bottom: 1px solid #e4ebf2;
    color: #153653;
  }
  .trip-mobile-category-record.is-extra { display: none; }
  .trip-mobile-category-group.show-all .trip-mobile-category-record.is-extra { display: grid; }
  .trip-record-date,
  .trip-record-main,
  .trip-record-value { min-width: 0; display: grid; }
  .trip-record-date strong { font-size: .67rem; }
  .trip-record-date small,
  .trip-record-main small { color: #71869a; font-size: .58rem; }
  .trip-record-main strong { overflow: hidden; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
  .trip-record-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .trip-record-main .trip-record-remark { overflow: visible; color: #52677d; line-height: 1.35; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
  .trip-record-value { justify-items: end; gap: 3px; }
  .trip-record-value > strong { font-size: .74rem; white-space: nowrap; }
  .trip-record-value .status-badge { font-size: .52rem; }
  .trip-category-show-more {
    min-height: 44px;
    border: 0;
    background: #f5fbfb;
    color: #07847e;
    font-size: .7rem;
    font-weight: 850;
  }
  .trip-mobile-category-empty { padding: 28px 16px; border: 1px dashed #cbd9e6; border-radius: 14px; color: #6b7f94; background: #fff; text-align: center; font-size: .78rem; }
  .trip-summary-bottom-actions { margin-top: 10px; }
  .trip-summary-bottom-actions .btn { min-height: 44px; font-size: .76rem; }
}
