.bay-records {
  --records-ink: #173b3c;
  --records-teal: #16494a;
  --records-muted: #687d79;
  --records-paper: #fbfcf7;
  --records-line: #dce5dc;
  --records-coral: #c97961;
  color: var(--records-ink);
  width: 100%;
  min-width: 0;
  font-family: "DM Sans", sans-serif;
}

.bay-records *, .bay-records *::before, .bay-records *::after { box-sizing: border-box; }
.bay-records button, .bay-records input, .bay-records select { font: inherit; }
.bay-records button { cursor: pointer; }
.bay-records button:disabled { cursor: not-allowed; opacity: .48; }
.bay-records button:focus-visible, .bay-records input:focus-visible, .bay-records select:focus-visible, .bay-records a:focus-visible {
  outline: 3px solid #c97961;
  outline-offset: 3px;
}

.bay-records-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 25px;
}
.bay-records-kicker, .bay-records-overline {
  margin: 0 0 8px;
  color: #66847c;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .17em;
  line-height: 1.4;
  text-transform: uppercase;
}
.bay-records h2, .bay-records h4 { color: var(--records-ink); font-family: "Manrope", sans-serif; }
.bay-records h2 {
  margin: 0;
  font-size: clamp(26px, 3.3vw, 37px);
  font-weight: 600;
  letter-spacing: -.052em;
  line-height: 1.13;
}
.bay-records-intro { margin: 8px 0 0; color: var(--records-muted); font-size: 14px; line-height: 1.55; }
.bay-records-count {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  padding: 12px 15px;
  border: 1px solid var(--records-line);
  background: #f4f7f0;
  color: var(--records-muted);
  font-size: 12px;
}
.bay-records-count strong { color: var(--records-teal); font-family: "Manrope", sans-serif; font-size: 21px; font-weight: 600; }
.bay-records-filters {
  display: grid;
  grid-template-columns: minmax(190px, 1.6fr) minmax(145px, 1fr) repeat(2, minmax(145px, .8fr));
  gap: 12px;
  margin-bottom: 18px;
  padding: 17px;
  border: 1px solid var(--records-line);
  background: #f5f7f1;
}
.bay-records-field { display: flex; min-width: 0; flex-direction: column; gap: 7px; }
.bay-records-field > span { color: #526d67; font-size: 11px; font-weight: 700; letter-spacing: .035em; }
.bay-records-field input, .bay-records-field select {
  width: 100%;
  min-width: 0;
  height: 43px;
  padding: 0 11px;
  border: 1px solid #cad8ce;
  border-radius: 4px;
  background: var(--records-paper);
  color: var(--records-ink);
  font-size: 13px;
}
.bay-records-field input::placeholder { color: #8b9a94; }
.bay-records-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--records-line);
  background: var(--records-paper);
  overscroll-behavior-x: contain;
}
.bay-records-table {
  width: 100%;
  min-width: 710px;
  border-collapse: collapse;
  text-align: left;
}
.bay-records-table th {
  height: 43px;
  padding: 0 15px;
  border-bottom: 1px solid #d8e2da;
  background: #eff4ed;
  color: #58716a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .105em;
  text-transform: uppercase;
  white-space: nowrap;
}
.bay-records-table td {
  min-height: 62px;
  padding: 13px 15px;
  border-bottom: 1px solid #e6ece5;
  color: #536b66;
  font-size: 13px;
  line-height: 1.45;
  vertical-align: middle;
}
.bay-records-table tbody tr:last-child > td { border-bottom: 0; }
.bay-records-primary-cell { color: var(--records-ink) !important; font-weight: 600; }
.bay-records-file-mark {
  display: inline-flex;
  width: 32px;
  height: 36px;
  align-items: center;
  justify-content: center;
  margin-right: 11px;
  border: 1px solid #d8aaa0;
  background: #fbefea;
  color: #a6584b;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .04em;
  vertical-align: middle;
}
.bay-records-type, .bay-records-status {
  display: inline-flex;
  max-width: 190px;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid #d6e2da;
  border-radius: 3px;
  background: #f1f6f0;
  color: #315f56;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}
.bay-records-open, .bay-records-details-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 37px;
  padding: 0 12px;
  border: 1px solid #afc7bc;
  border-radius: 3px;
  background: transparent;
  color: var(--records-teal);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.bay-records-open:hover, .bay-records-details-toggle:hover { border-color: var(--records-teal); background: #edf4ef; }
.bay-records-sort {
  padding: 9px 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}
.bay-records-sort span { color: #a36253; letter-spacing: 0; }
.bay-records-unavailable { color: #86958e; font-style: italic; }
.bay-records-footnote { margin: 13px 0 0; color: #71817b; font-size: 11px; line-height: 1.6; }
.bay-records-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 17px;
  border: 1px solid #d7e3da;
  background: #f2f7f1;
  color: var(--records-ink);
}
.bay-records-notice.is-error { border-color: #e4c3b9; background: #fcf2ed; }
.bay-records-notice__mark {
  display: flex;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid #acc5b7;
  border-radius: 50%;
  color: #3b7162;
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  font-weight: 700;
}
.bay-records-notice.is-error .bay-records-notice__mark { border-color: #d6a496; color: #a65b4a; }
.bay-records-notice > div { min-width: 0; flex: 1; }
.bay-records-notice strong { display: block; font-size: 13px; font-weight: 700; }
.bay-records-notice p { margin: 4px 0 0; color: #667b73; font-size: 12px; line-height: 1.5; }
.bay-records-text-button {
  min-height: 36px;
  padding: 6px 9px;
  border: 0;
  background: transparent;
  color: #315f56;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.bay-records-contract-table { min-width: 950px; }
.bay-records-contract-table td { padding-top: 11px; padding-bottom: 11px; }
.bay-records-contract-table .is-expanded > td { background: #f0f5ef; border-bottom-color: transparent; }
.bay-records-expand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: var(--records-ink);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}
.bay-records-expand__icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid #bfd0c5;
  border-radius: 50%;
  color: #426c60;
  font-size: 16px;
  font-weight: 400;
}
.bay-records-person { display: block; margin: 2px 0; color: #385c55; }
.bay-records-detail-row > td { padding: 0; background: #f7f9f4; }
.bay-records-detail { padding: 0 22px 20px 52px; border-bottom: 1px solid #e2e9df; }
.bay-records-tabs { display: flex; gap: 22px; border-bottom: 1px solid #d8e3d9; }
.bay-records-tabs [role="tab"] {
  position: relative;
  min-height: 46px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: #71817a;
  font-size: 12px;
  font-weight: 600;
}
.bay-records-tabs [role="tab"][aria-selected="true"] { color: var(--records-teal); }
.bay-records-tabs [role="tab"][aria-selected="true"]::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--records-coral);
  content: "";
}
.bay-records-tabpanel { padding: 17px 0 0; }
.bay-records-scope-note {
  margin: 0 0 14px;
  padding: 11px 13px;
  border-left: 3px solid #c97961;
  background: #f8f0e9;
  color: #695e53;
  font-size: 12px;
  line-height: 1.55;
}
.bay-records-progress { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 15px; }
.bay-records-progress > div {
  display: flex;
  min-height: 104px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 15px;
  border: 1px solid #dce6dc;
  background: var(--records-paper);
}
.bay-records-progress span, .bay-records-rate-grid span { color: #71827a; font-size: 11px; font-weight: 600; }
.bay-records-progress strong { color: var(--records-teal); font-family: "Manrope", sans-serif; font-size: 23px; font-weight: 600; letter-spacing: -.035em; }
.bay-records-progress small { color: #839089; font-size: 10px; }
.bay-records-assignment { margin-top: 12px; border: 1px solid #dce5dc; background: var(--records-paper); }
.bay-records-assignment__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  border-bottom: 1px solid #e2eae1;
}
.bay-records-assignment__heading h4 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.025em; }
.bay-records-assignment__heading .bay-records-overline { margin-bottom: 3px; font-size: 9px; }
.bay-records-assignment__dates { color: #708079; font-size: 11px; text-align: right; }
.bay-records-rate-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 15px; }
.bay-records-rate-grid > div { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.bay-records-rate-grid strong { color: #355a52; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.bay-records-range { display: flex; align-items: flex-end; gap: 10px; margin: 0 0 14px; }
.bay-records-range .bay-records-field { width: min(190px, 30%); }
.bay-records-button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--records-teal);
  border-radius: 3px;
  background: var(--records-teal);
  color: #f7f8f1;
  font-size: 12px;
  font-weight: 700;
}
.bay-records-button:hover:not(:disabled) { background: #103b3b; }
.bay-records-button--quiet { background: transparent; color: var(--records-teal); }
.bay-records-button--quiet:hover:not(:disabled) { background: #edf4ef; }
.bay-records-result-meta { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 9px; color: #74837d; font-size: 11px; }
.bay-records-timesheet-table { min-width: 600px; }
.bay-records-timesheet-table code { color: #315f56; font-size: 11px; }
.bay-records-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding-top: 12px; color: #6c7d76; font-size: 11px; }
.bay-records-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}
.bay-records-skeleton { display: grid; gap: 9px; padding: 16px 0; }
.bay-records-skeleton span { display: block; height: 42px; border: 1px solid #e4ebe3; background: #eef3ec; animation: bay-records-pulse 1.45s ease-in-out infinite alternate; }
.bay-records-skeleton span:nth-child(2) { animation-delay: .14s; }
.bay-records-skeleton span:nth-child(3) { animation-delay: .28s; }
@keyframes bay-records-pulse { to { opacity: .56; } }

.bay-records-update-notice {
  margin-bottom: 20px;
  padding: 14px 18px;
  border: 1px solid #cddbd4;
  border-radius: 8px;
  background: #edf4ef;
  color: #16494a;
  font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
  .bay-records-skeleton span { animation: none; }
}

@media (max-width: 760px) {
  .bay-records-documents .bay-records-table { display: block; min-width: 0; }
  .bay-records-documents thead,
  .bay-records-documents tbody { display: block; }
  .bay-records-documents thead tr { display: flex; flex-wrap: wrap; }
  .bay-records-documents thead th { display: block; padding: 8px 12px; }
  .bay-records-documents thead th:last-child { display: none; }
  .bay-records-documents tbody > tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bay-records-documents tbody > tr > td { min-width: 0; overflow-wrap: anywhere; padding: 12px; }
  .bay-records-documents tbody > tr > td:first-child,
  .bay-records-documents tbody > tr > td:last-child { grid-column: 1 / -1; }
  .bay-records-documents td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 6px; color: #6c7d76; font-size: 10px; }
  .bay-records-contract-table { display: block; min-width: 0; }
  .bay-records-contract-table thead,
  .bay-records-contract-table tbody { display: block; }
  .bay-records-contract-table thead tr { display: flex; flex-wrap: wrap; }
  .bay-records-contract-table thead th { display: none; }
  .bay-records-contract-table thead th:nth-child(-n+3) { display: block; padding: 8px 12px; }
  .bay-records-contract-table tbody > tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bay-records-contract-table tbody > tr > td { min-width: 0; overflow-wrap: anywhere; padding: 10px 12px; }
  .bay-records-contract-table tbody > tr > td:first-child,
  .bay-records-contract-table tbody > tr > td:last-child,
  .bay-records-contract-table .bay-records-detail-row > td { grid-column: 1 / -1; }
  .bay-records-contract-table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 4px; color: #6c7d76; font-size: 10px; }
  .bay-records-heading { align-items: flex-start; }
  .bay-records-count { padding: 9px 11px; gap: 7px; font-size: 10px; }
  .bay-records-count strong { font-size: 18px; }
  .bay-records-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; padding: 13px; }
  .bay-records-filters > :first-child { grid-column: 1 / -1; }
  .bay-records-detail { padding-left: 18px; padding-right: 14px; }
  .bay-records-rate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bay-records-range { flex-wrap: wrap; }
  .bay-records-range .bay-records-field { width: calc(50% - 5px); }
  .bay-records-range .bay-records-button { flex: 1; }
  .bay-records-range .bay-records-text-button { flex: 1 0 100%; text-align: left; }
}
@media (max-width: 480px) {
  .bay-records-heading { gap: 10px; }
  .bay-records-heading > div:first-child { min-width: 0; }
  .bay-records-count { flex-direction: column; align-items: flex-start; gap: 1px; }
  .bay-records h2 { font-size: 27px; }
  .bay-records-intro { font-size: 12px; }
  .bay-records-filters { grid-template-columns: 1fr 1fr; }
  .bay-records-filters .bay-records-field:first-child { grid-column: 1 / -1; }
  .bay-records-detail { padding: 0 10px 15px; }
  .bay-records-tabs { gap: 15px; }
  .bay-records-progress { grid-template-columns: 1fr 1fr; gap: 7px; }
  .bay-records-progress > div { min-height: 92px; padding: 10px; }
  .bay-records-progress strong { font-size: 18px; }
  .bay-records-assignment__heading { align-items: flex-start; flex-direction: column; }
  .bay-records-assignment__dates { text-align: left; }
  .bay-records-rate-grid { gap: 12px 8px; padding: 12px; }
  .bay-records-range { gap: 8px; }
  .bay-records-range .bay-records-field { width: 100%; }
  .bay-records-range .bay-records-button { width: 100%; }
  .bay-records-result-meta { flex-direction: column; gap: 4px; }
  .bay-records-notice { padding: 13px; }
}
