/* BOSS home uses natural document flow. Hidden panels must not reserve rows. */
@media (min-width: 980px) {
  html body #appContent.app-shell.desktop-layout.home-route-layout.boss-home-layout {
    grid-template-rows: 52px !important;
    grid-auto-rows: max-content !important;
    align-content: start !important;
    align-items: start !important;
  }

  html body #appContent.app-shell.desktop-layout.home-route-layout.boss-home-layout > section.app-route-active {
    grid-row: auto !important;
    align-self: start !important;
  }

  /* The existing fixed header is out of flow. Reserve only its first row. */
  html body #appContent.app-shell.desktop-layout.home-route-layout.boss-home-layout::before {
    content: "";
    grid-column: 1 / -1;
    grid-row: 1;
    height: 52px;
    pointer-events: none;
  }
}

#bossExpenseReportR337 { margin-top: 20px; padding: 16px; min-width: 0; border-radius: 12px; color: #173446; background: #ffffff; }
body.theme-dark #bossExpenseReportR337 { color: #e8f2f6; background: #102431; }
#adminExpensesPanel .admin-picker-row { display: grid; grid-template-columns: minmax(150px,1fr) minmax(200px,2fr); gap: 12px; align-items: end; }
#adminExpensesPanel .admin-picker-row :is(select,input,button) { width: 100%; min-width: 0; box-sizing: border-box; }
#bossExpenseReportR337 :is(h4,h5,p) { margin: 0 0 8px; overflow-wrap: anywhere; }
.expense-report-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.expense-park-groups { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,260px),1fr)); gap: 12px; margin-bottom: 24px; }
.expense-park-group { padding: 18px; border: 1px solid #a8becd; border-radius: 12px; background: #f3f8fc; color: #173446; }
.expense-park-group > strong { display: block; margin: 10px 0; font-size: 1.5rem; }
.expense-detail-list { display: grid; gap: 8px; }
.expense-detail-list > article { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px; border: 1px solid #a8becd; border-radius: 10px; background: #f3f8fc; color: #173446; }
.expense-detail-list > article > div { min-width: 0; }
.expense-detail-list > article > strong { white-space: nowrap; }
#bossExpenseReportR337 :is(button,select) { min-height: 44px; font-size: 16px; }
body.theme-dark :is(.expense-park-group,.expense-detail-list > article) { background: #162d3c; color: #e8f2f6; border-color: #7394a4; }
#bossExpenseReportR337 :is(h4,h5,p,small,strong) { color: inherit; }
@media (max-width: 600px) {
  #adminExpensesPanel .admin-picker-row { grid-template-columns: minmax(0,1fr); }
  .expense-report-heading { flex-direction: column; }
  .expense-report-heading > button { width: 100%; }
  .expense-detail-list > article { flex-direction: column; gap: 10px; }
}
