.calendar-group {
  display: flex;
  flex-direction: column;
}
@media (min-width: 1200px) {
  .calendar-group {
    flex-direction: row;
  }
}

/* Meter-reading photo tiles on the entry/edit screen (WAT-302). */
.meter-reading-photo-tile {
  min-width: 180px;
}
.meter-reading-photo-tile .file-name {
  max-width: 160px;
}

/* District table: inline expand panel toggled by the chevron button (WAT-302 Pass A). */
.district-table .expand-chevron-col {
  width: 30px;
}
.district-table .district-expand-row > td {
  background-color: var(--bs-tertiary-bg, #f8f9fa);
  border-top: 0;
}
.district-table .district-expand-panel {
  padding: 0;
}

/* Pilot Use notice — in-page warning alert above @RenderBody() on every IDStaff
   surface (WAT-305 follow-up). Uses Bootstrap's .alert-warning as the base and
   adds a left accent strip + brand font so it reads as a deliberate notice rather
   than a generic alert. PM picked this placement after evaluating sticky-top,
   sticky-bottom, title-badge, and floating-corner alternatives. */
.pilot-use-alert {
  border-left: 4px solid var(--severe-warning, #F46434);
  letter-spacing: 0.06em;
  font-family: 'Barlow Semi Condensed', 'Inter', sans-serif;
}
.pilot-use-alert .bi {
  color: var(--severe-warning, #F46434);
}

/* Surface water delivery entry — one tabular row per reporting period. Explicit
   fr columns instead of g-col-* spans: the volume input is the only cell that
   wants real room, so status is sized down rather than taking an even share of
   twelve. The status track is a fixed width, not auto, so periods with no status
   still reserve it and the inputs stay aligned from card to card. The gear rides
   in the volume cell rather than a track of its own, which lets it sit tight to
   the input while the columns keep their wider rhythm. */
.sw-delivery-grid {
  display: grid;
  grid-template-columns: 1.5rem 2fr 0.75fr;
  gap: 1rem;
  align-items: center;
}

@media (max-width: 575.98px) {
  .sw-delivery-grid {
    grid-template-columns: 1fr;
  }
}

/* Admin review of the same periods. The checkbox leads because selecting is the
   primary action here; status trails the value, since the reviewer is deciding it
   rather than reading it. */
.sw-review-grid {
  display: grid;
  grid-template-columns: 1.75rem 1fr 1.5rem auto;
  gap: 1rem;
  align-items: center;
}

/* Flex items default to min-width:auto, which would let a long file name push the
   list item wider instead of letting .text-truncate ellipsize it. */
.sw-doc-list .text-truncate {
  min-width: 0;
}

.sw-doc-list .btn-close {
  font-size: 0.6rem;
}

/* Bare icon controls carrying the same weight as .btn-close, so the lock state does
   not read as a heavier action than remove. */
.sw-doc-list .sw-doc-icon-btn {
  padding: 0;
  border: 0;
  background: none;
  line-height: 1;
}

.sw-doc-list .sw-doc-icon-btn--subtle {
  color: var(--bs-body-color);
  opacity: 0.5;
}

.sw-doc-list .sw-doc-icon-btn--subtle:hover,
.sw-doc-list .sw-doc-icon-btn--subtle:focus-visible {
  opacity: 1;
}

/* .list-group-flush zeroes every item radius, so the last row's square background
   paints over the card's rounded corner. Clipping the card with overflow:hidden
   would fix it too, but that also clips the gear dropdown. */
.sw-doc-list.list-group-flush > .list-group-item:last-child {
  border-bottom-left-radius: var(--bs-border-radius);
  border-bottom-right-radius: var(--bs-border-radius);
}

.fancy-check__label__icon.sw-attach-check__icon {
  font-size: 1.125rem;
}

.fancy-check__label--icon-inline .fancy-check__label__icon.sw-attach-check__icon {
  margin-right: 0.75rem;
}

.fancy-check__label__icon.sw-attach-check__icon .fancy-check__label__icon__options {
  height: 1.125rem;
  width: 1.125rem;
}
