/* Agency Timesheets workspace v1 */

.agency-value-view-tabs {
  display: flex;
  gap: 6px;
  margin: 0 0 18px;
  padding: 5px;
  width: fit-content;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  background: #f4f7fb;
}

.agency-value-view-tab {
  appearance: none;
  border: 0;
  border-radius: 8px;
  padding: 9px 16px;
  background: transparent;
  color: #61708a;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.agency-value-view-tab.is-active {
  background: #ffffff;
  color: #102347;
  box-shadow: 0 2px 8px rgba(15, 35, 71, 0.1);
}

.agency-value-view-tab:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.25);
  outline-offset: 2px;
}

.agency-timesheets-workspace {
  color: #102347;
}

.agency-timesheets-head,
.agency-timesheets-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.agency-timesheets-head {
  margin-bottom: 18px;
}

.agency-timesheets-eyebrow {
  margin-bottom: 5px;
  color: #59708f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agency-timesheets-head h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.2;
}

.agency-timesheets-head p {
  max-width: 720px;
  margin: 7px 0 0;
  color: #687892;
  font-size: 13px;
  line-height: 1.55;
}

.agency-timesheets-estimate-badge {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid #f3d49a;
  border-radius: 999px;
  background: #fff8e8;
  color: #9a5d00;
  font-size: 11px;
  font-weight: 800;
}

.agency-timesheets-toolbar {
  align-items: flex-end;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid #dfe7f2;
  border-radius: 14px;
  background: #ffffff;
}

.agency-timesheets-week-controls,
.agency-timesheets-actions {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.agency-timesheets-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #65758e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.agency-timesheets-toolbar input,
.agency-timesheets-toolbar select,
.agency-timesheets-toolbar button {
  min-height: 38px;
  border: 1px solid #d6e0ed;
  border-radius: 9px;
  background: #ffffff;
  color: #173158;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.agency-timesheets-toolbar input,
.agency-timesheets-toolbar select {
  padding: 0 11px;
}

.agency-timesheets-toolbar button {
  padding: 0 13px;
  cursor: pointer;
}

.agency-timesheets-toolbar button:hover:not(:disabled) {
  border-color: #9db8dc;
  background: #f5f9ff;
}

.agency-timesheets-toolbar button:disabled,
.agency-timesheets-toolbar input:disabled,
.agency-timesheets-toolbar select:disabled {
  cursor: wait;
  opacity: 0.55;
}

.agency-timesheets-toolbar
.agency-timesheets-generate {
  border-color: #2f77ef;
  background: #2f77ef;
  color: #ffffff;
}

.agency-timesheets-toolbar
.agency-timesheets-generate:hover:not(:disabled) {
  border-color: #2366d4;
  background: #2366d4;
}

.agency-timesheets-message {
  margin-bottom: 14px;
  padding: 11px 13px;
  border: 1px solid #cbdcf4;
  border-radius: 10px;
  background: #f2f7ff;
  color: #244d84;
  font-size: 12px;
  font-weight: 700;
}

.agency-timesheets-message.is-success {
  border-color: #afe4d1;
  background: #edfbf6;
  color: #087653;
}

.agency-timesheets-message.is-warning {
  border-color: #f4d39b;
  background: #fff8e8;
  color: #965b00;
}

.agency-timesheets-message.is-error {
  border-color: #f1b5b5;
  background: #fff1f1;
  color: #a82d2d;
}

.agency-timesheets-summary {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.agency-timesheets-summary-card {
  padding: 13px;
  border: 1px solid #dfe7f2;
  border-radius: 12px;
  background: #ffffff;
}

.agency-timesheets-summary-card strong,
.agency-timesheets-summary-card span {
  display: block;
}

.agency-timesheets-summary-card strong {
  font-size: 20px;
}

.agency-timesheets-summary-card span {
  margin-top: 4px;
  color: #718099;
  font-size: 11px;
  font-weight: 700;
}

.agency-timesheets-summary-card.is-attention {
  border-color: #f1cc8a;
  background: #fffaf0;
}

.agency-timesheet-list {
  overflow: hidden;
  border: 1px solid #dfe7f2;
  border-radius: 14px;
  background: #ffffff;
}

.agency-timesheet-card + .agency-timesheet-card {
  border-top: 1px solid #e4ebf4;
}

.agency-timesheet-card.is-open {
  background: #f4f9ff;
}

.agency-timesheet-card-summary {
  display: grid;
  grid-template-columns:
    minmax(220px, 1.5fr)
    125px
    105px
    minmax(105px, 0.7fr)
    minmax(105px, 0.7fr)
    minmax(105px, 0.7fr)
    24px;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.agency-timesheet-card-summary:hover {
  background: #f8fbff;
}

.agency-timesheet-identity strong,
.agency-timesheet-identity span,
.agency-timesheet-counts strong,
.agency-timesheet-counts span,
.agency-timesheet-money strong,
.agency-timesheet-money span {
  display: block;
}

.agency-timesheet-identity strong {
  font-size: 14px;
}

.agency-timesheet-identity span,
.agency-timesheet-counts span,
.agency-timesheet-money span {
  margin-top: 4px;
  color: #75839a;
  font-size: 10px;
  font-weight: 700;
}

.agency-timesheet-counts strong,
.agency-timesheet-money strong {
  font-size: 12px;
}

.agency-timesheet-money.is-margin strong {
  color: #0a9d6f;
}

.agency-timesheet-status {
  width: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  background: #eef2f7;
  color: #56657d;
  font-size: 10px;
  font-weight: 800;
}

.agency-timesheet-status.is-needs_review,
.agency-timesheet-status.is-changes_requested {
  background: #fff0d8;
  color: #9a5d00;
}

.agency-timesheet-status.is-ready {
  background: #e6f8f1;
  color: #087653;
}

.agency-timesheet-status.is-approved {
  background: #dff3ff;
  color: #176495;
}

.agency-timesheet-chevron {
  color: #8a99ae;
  font-size: 18px;
  transition: transform 0.2s ease;
}

.agency-timesheet-card.is-open
.agency-timesheet-chevron {
  transform: rotate(180deg);
}

.agency-timesheet-detail {
  padding: 0 16px 16px;
}

.agency-timesheet-line-table {
  overflow: hidden;
  border: 1px solid #d8e4f2;
  border-radius: 12px;
  background: #ffffff;
}

.agency-timesheet-line-head,
.agency-timesheet-line {
  display: grid;
  grid-template-columns:
    minmax(190px, 1.5fr)
    minmax(105px, 0.8fr)
    minmax(90px, 0.7fr)
    minmax(95px, 0.7fr)
    minmax(100px, 0.75fr)
    minmax(100px, 0.75fr)
    minmax(100px, 0.75fr);
  gap: 12px;
  align-items: center;
}

.agency-timesheet-line-head {
  padding: 10px 13px;
  background: #f1f5fa;
  color: #60718b;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.agency-timesheet-line {
  padding: 13px;
  border-top: 1px solid #e4ebf4;
  font-size: 11px;
}

.agency-timesheet-line > div strong,
.agency-timesheet-line > div span,
.agency-timesheet-line > div small {
  display: block;
}

.agency-timesheet-line > div strong {
  font-size: 11px;
}

.agency-timesheet-line > div span,
.agency-timesheet-line > div small {
  margin-top: 3px;
  color: #738199;
  font-size: 9px;
  font-style: normal;
}

.agency-timesheet-line.is-needs_review {
  background: #fffbf3;
}

.agency-timesheet-line.is-excluded {
  background: #f5f7fa;
  color: #657187;
}

.agency-timesheet-line-warnings {
  display: flex !important;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.agency-timesheet-line-warnings span {
  margin: 0 !important;
  padding: 5px 7px;
  border-radius: 999px;
  background: #fff0d8;
  color: #925700 !important;
  font-weight: 800;
}

.agency-timesheets-loading,
.agency-timesheets-empty {
  padding: 34px 20px;
  border: 1px dashed #ccd9e9;
  border-radius: 13px;
  background: #f8fbff;
  color: #75839a;
  text-align: center;
  font-size: 12px;
}

.agency-timesheets-empty strong,
.agency-timesheets-empty span {
  display: block;
}

.agency-timesheets-empty strong {
  color: #263b5d;
  font-size: 14px;
}

.agency-timesheets-empty span {
  margin-top: 6px;
}

@media (max-width: 1180px) {
  .agency-timesheet-card-summary {
    grid-template-columns:
      minmax(210px, 1.5fr)
      115px
      95px
      repeat(3, minmax(95px, 0.7fr))
      20px;
    gap: 9px;
  }

  .agency-timesheet-line-head,
  .agency-timesheet-line {
    grid-template-columns:
      minmax(170px, 1.4fr)
      repeat(6, minmax(85px, 0.7fr));
    gap: 8px;
  }
}

@media (max-width: 900px) {
  .agency-timesheets-head,
  .agency-timesheets-toolbar {
    flex-direction: column;
  }

  .agency-timesheets-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .agency-timesheet-card-summary {
    grid-template-columns: 1fr 120px 24px;
  }

  .agency-timesheet-counts,
  .agency-timesheet-money {
    display: none;
  }

  .agency-timesheet-line-head {
    display: none;
  }

  .agency-timesheet-line {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .agency-value-view-tabs {
    display: none;
  }

  [data-agency-value-panel="timesheets"] {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agency-timesheet-chevron {
    transition: none;
  }
}
/* Agency Timesheet review controls v3 */

.agency-timesheet-review-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid #d7e3f1;
  border-radius: 12px;
  background: #f7faff;
}

.agency-timesheet-review-progress strong,
.agency-timesheet-review-progress span {
  display: block;
}

.agency-timesheet-review-progress strong {
  color: #263b5d;
  font-size: 12px;
}

.agency-timesheet-review-progress span {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 800;
}

.agency-timesheet-review-progress .has-warnings {
  color: #a45e00;
}

.agency-timesheet-review-progress .is-clear {
  color: #087653;
}

.agency-timesheet-review-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.agency-timesheet-review-button,
.agency-timesheet-line-action {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 10px;
  font-weight: 800;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    opacity 0.15s ease;
}

.agency-timesheet-review-button {
  padding: 8px 12px;
}

.agency-timesheet-review-button.is-primary {
  background: #3478f6;
  color: #ffffff;
}

.agency-timesheet-review-button.is-secondary {
  border: 1px solid #c7d5e8;
  background: #ffffff;
  color: #36506f;
}

.agency-timesheet-review-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.agency-timesheet-review-locked {
  color: #687892;
  font-size: 10px;
  font-weight: 800;
}

.agency-timesheet-line.is-ready {
  background: #f2fbf7;
}

.agency-timesheet-line-review {
  display: flex !important;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: flex-end;
  padding-top: 2px;
}

.agency-timesheet-line-action {
  padding: 7px 10px;
  border: 1px solid #bfd0e5;
  background: #ffffff;
  color: #36506f;
}

.agency-timesheet-line-action.is-reviewed {
  border-color: #9ed7c4;
  background: #e7f8f1;
  color: #087653;
}

.agency-timesheet-line-action.is-warning {
  border-color: #efbd6c;
  background: #fff0d8;
  color: #925700;
}

.agency-timesheet-line-review-state {
  color: #687892;
  font-size: 10px;
  font-weight: 800;
}

.agency-timesheet-line-review-state.has-warning {
  color: #925700;
}

.agency-timesheet-line-review-state.is-excluded {
  color: #7b8798;
}

@media (max-width: 900px) {
  .agency-timesheet-review-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .agency-timesheet-review-actions {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agency-timesheet-review-button,
  .agency-timesheet-line-action {
    transition: none;
  }
}

/*
 * Responsive Timesheet header v4.
 *
 * Scope every override to the Timesheets workspace so generic portal
 * header styles cannot turn this content header into a fixed banner.
 */
.agency-timesheets-workspace
.agency-timesheets-head {
  position: static !important;
  inset: auto !important;
  z-index: auto !important;

  display: grid !important;
  grid-template-columns:
    minmax(0, 1fr)
    auto;

  align-items: start !important;
  gap: 18px;

  width: auto !important;
  height: auto !important;
  min-height: 0 !important;

  margin: 0 0 18px !important;
  padding: 0 !important;

  background: transparent !important;
  box-shadow: none !important;
  color: #102347 !important;
}

.agency-timesheets-workspace
.agency-timesheets-head > div {
  min-width: 0;
}

.agency-timesheets-workspace
.agency-timesheets-eyebrow {
  display: flex;
  align-items: center;

  min-height: 28px;
  margin: 0 0 4px;

  color: #526b8d;
  line-height: 1.25;
}

.agency-timesheets-workspace
.agency-timesheets-head h2 {
  position: static !important;

  margin: 0 !important;
  padding: 0 !important;

  color: #102347 !important;
  font-size: 25px;
  line-height: 1.2;
  text-shadow: none !important;
}

.agency-timesheets-workspace
.agency-timesheets-head p {
  position: static !important;

  max-width: 720px;
  margin: 7px 0 0 !important;
  padding: 0 !important;

  color: #687892 !important;
  line-height: 1.55;
}

.agency-timesheets-workspace
.agency-timesheets-estimate-badge {
  align-self: start;

  display: inline-flex;
  align-items: center;

  min-height: 28px;
  margin: 0;

  white-space: nowrap;
}

@media (max-width: 900px) {
  .agency-timesheets-workspace
  .agency-timesheets-head {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start !important;
    gap: 10px;
  }

  .agency-timesheets-workspace
  .agency-timesheets-eyebrow {
    min-height: 0;
  }

  .agency-timesheets-workspace
  .agency-timesheets-estimate-badge {
    white-space: normal;
  }
}
/*
 * Agency Timesheet submission modal v5.
 *
 * The dialog remains usable on wide desktop, narrow tablet and
 * compact screens even though Timesheets navigation is desktop-only.
 */
body.agency-timesheet-approval-open {
  overflow: hidden;
}

.agency-timesheet-approval-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(16, 31, 57, 0.58);
  backdrop-filter: blur(3px);
}

.agency-timesheet-approval-overlay.is-open {
  display: flex;
}

.agency-timesheet-approval-dialog {
  width: min(100%, 620px);
  max-height: min(90vh, 760px);
  overflow: auto;
  border: 1px solid #d8e3f1;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(12, 29, 55, 0.25);
}

.agency-timesheet-approval-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #e3eaf3;
}

.agency-timesheet-approval-kicker {
  display: block;
  margin-bottom: 5px;
  color: #3478f6;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agency-timesheet-approval-head h3 {
  margin: 0;
  color: #172b4d;
  font-size: 21px;
  line-height: 1.25;
}

.agency-timesheet-approval-head p {
  margin: 7px 0 0;
  color: #687892;
  font-size: 12px;
  line-height: 1.5;
}

.agency-timesheet-approval-close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid #d6e0ed;
  border-radius: 9px;
  background: #f7f9fc;
  color: #536985;
  cursor: pointer;
  font: inherit;
  font-size: 22px;
  line-height: 1;
}

.agency-timesheet-approval-body {
  display: grid;
  gap: 15px;
  padding: 20px 24px;
}

.agency-timesheet-approval-notice {
  padding: 13px 14px;
  border: 1px solid #cfe0fa;
  border-radius: 11px;
  background: #f2f7ff;
}

.agency-timesheet-approval-notice strong,
.agency-timesheet-approval-notice span {
  display: block;
}

.agency-timesheet-approval-notice strong {
  color: #264e88;
  font-size: 12px;
}

.agency-timesheet-approval-notice span {
  margin-top: 4px;
  color: #58708f;
  font-size: 11px;
  line-height: 1.5;
}

.agency-timesheet-approval-field {
  display: grid;
  gap: 6px;
}

.agency-timesheet-approval-field > span {
  color: #425a78;
  font-size: 11px;
  font-weight: 800;
}

.agency-timesheet-approval-field input,
.agency-timesheet-approval-field select {
  width: 100%;
  min-height: 43px;
  box-sizing: border-box;
  border: 1px solid #cbd8e8;
  border-radius: 9px;
  background: #ffffff;
  color: #172b4d;
  font: inherit;
  font-size: 13px;
  padding: 9px 11px;
}

.agency-timesheet-approval-field input:focus,
.agency-timesheet-approval-field select:focus {
  outline: 3px solid rgba(52, 120, 246, 0.16);
  border-color: #3478f6;
}

.agency-timesheet-approval-field input:disabled,
.agency-timesheet-approval-field select:disabled {
  background: #f4f7fa;
  color: #63748c;
}

.agency-timesheet-approval-route {
  color: #65768e;
  font-size: 11px;
  line-height: 1.55;
}

.agency-timesheet-approval-error {
  padding: 10px 12px;
  border: 1px solid #efb1b1;
  border-radius: 9px;
  background: #fff2f2;
  color: #9b3030;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

.agency-timesheet-approval-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 16px 24px 22px;
  border-top: 1px solid #e3eaf3;
}

.agency-timesheet-approval-cancel,
.agency-timesheet-approval-send {
  min-height: 41px;
  border-radius: 9px;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  padding: 9px 15px;
}

.agency-timesheet-approval-cancel {
  border: 1px solid #cbd8e8;
  background: #ffffff;
  color: #49617e;
}

.agency-timesheet-approval-send {
  border: 1px solid #3478f6;
  background: #3478f6;
  color: #ffffff;
}

.agency-timesheet-approval-send:disabled,
.agency-timesheet-approval-cancel:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

@media (max-width: 640px) {
  .agency-timesheet-approval-overlay {
    align-items: flex-end;
    padding: 10px;
  }

  .agency-timesheet-approval-dialog {
    width: 100%;
    max-height: calc(100vh - 20px);
    border-radius: 16px;
  }

  .agency-timesheet-approval-head,
  .agency-timesheet-approval-body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .agency-timesheet-approval-actions {
    display: grid;
    grid-template-columns: 1fr;
    padding: 14px 16px 16px;
  }

  .agency-timesheet-approval-send {
    grid-row: 1;
  }

  .agency-timesheet-approval-cancel {
    grid-row: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agency-timesheet-approval-overlay {
    backdrop-filter: none;
  }
}


/*
 * Attendance refresh guidance v7.
 *
 * Keep the generated-snapshot workflow visible on wide and narrow
 * screens without competing with warning or success messages.
 */
.agency-timesheets-refresh-help {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: -3px;
  margin-bottom: 14px;
  padding: 9px 12px;
  border: 1px solid rgba(245, 166, 35, 0.28);
  border-radius: 9px;
  background: rgba(245, 166, 35, 0.07);
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.5;
}

.agency-timesheets-refresh-help strong {
  flex: 0 0 auto;
  color: var(--amber-dim);
  font-size: 11px;
}

@media (max-width: 640px) {
  .agency-timesheets-refresh-help {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .agency-timesheets-generate {
    white-space: normal;
    line-height: 1.25;
  }
}


/*
 * Static approval recipient v8.
 *
 * Contact details come from the stored client record. Only the
 * available delivery route remains editable.
 */
.agency-timesheet-approval-static {
  display: flex;
  width: 100%;
  min-height: 43px;
  box-sizing: border-box;
  align-items: center;
  padding: 9px 11px;
  border: 1px solid #d9e2ed;
  border-radius: 9px;
  background: #f4f7fa;
  color: #172b4d;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.agency-timesheet-approval-static.is-missing {
  border-color: #efb1b1;
  background: #fff2f2;
  color: #9b3030;
}

@media (max-width: 640px) {
  .agency-timesheet-approval-static {
    min-height: 41px;
    font-size: 12px;
  }
}

/* Agency Timesheet additional-hours controls v1 */

#agency-timesheets-root .agency-timesheet-additional,
#agency-timesheets-root .agency-timesheet-additional-note {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  background: #f8fbff;
  overflow-wrap: anywhere;
}

#agency-timesheets-root .agency-timesheet-additional.is-pending {
  border-color: #efcf90;
  background: #fffaf0;
}

#agency-timesheets-root .agency-timesheet-additional-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

#agency-timesheets-root .agency-timesheet-additional-status {
  display: inline-block;
  margin: 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf2f8;
  color: #36506f;
  font-size: 11px;
  font-weight: 700;
}

#agency-timesheets-root .is-authorised .agency-timesheet-additional-status {
  background: #e7f8f1;
  color: #087653;
}

#agency-timesheets-root .is-rejected .agency-timesheet-additional-status {
  background: #fff0ed;
  color: #a33f2a;
}

#agency-timesheets-root .agency-timesheet-additional p {
  margin: 8px 0 0;
  color: #526580;
  font-size: 12px;
  line-height: 1.5;
}

#agency-timesheets-root .agency-timesheet-additional-record strong {
  display: inline;
  font-size: inherit;
}

#agency-timesheets-root .agency-timesheet-additional-edit {
  margin-top: 10px;
}

#agency-timesheets-root .agency-timesheet-additional-edit summary {
  width: fit-content;
  cursor: pointer;
  color: #245ea8;
  font-weight: 700;
}

#agency-timesheets-root .agency-timesheet-additional-edit label {
  display: block;
  margin: 12px 0 6px;
  font-size: 12px;
  font-weight: 700;
}

#agency-timesheets-root .agency-timesheet-additional-edit textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 70px;
  padding: 10px;
  border: 1px solid #bfd0e5;
  border-radius: 8px;
  background: #fff;
  color: #102347;
  font: inherit;
  font-size: 13px;
  resize: vertical;
}

#agency-timesheets-root .agency-timesheet-additional-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

#agency-timesheets-root .agency-timesheet-additional-actions button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #bfd0e5;
  border-radius: 8px;
  background: #fff;
  color: #245ea8;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

#agency-timesheets-root .agency-timesheet-additional-actions button:disabled,
#agency-timesheets-root .agency-timesheet-additional-edit textarea:disabled {
  opacity: 0.6;
  cursor: wait;
}

#agency-timesheets-root .agency-timesheet-additional-edit summary:focus-visible,
#agency-timesheets-root .agency-timesheet-additional-edit textarea:focus-visible,
#agency-timesheets-root .agency-timesheet-additional-actions button:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 3px;
}

@media (max-width: 600px) {
  #agency-timesheets-root .agency-timesheet-additional-actions {
    flex-direction: column;
  }
}


/* Agency partial-submission controls v1 */
#agency-timesheets-root .agency-timesheet-partial-notice {
  grid-column: 1 / -1;
  margin: 10px 0;
  padding: 12px;
  border: 1px solid #d7e3f0;
  border-radius: 10px;
  background: #f7faff;
  color: #526987;
}
#agency-timesheets-root .agency-timesheet-partial-notice > strong,
#agency-timesheets-root .agency-timesheet-partial-notice > span {
  display: block;
  margin-bottom: 6px;
}
#agency-timesheets-root .agency-timesheet-partial-notice > strong {
  color: #102347;
}
#agency-timesheets-root .agency-timesheet-batch-label {
  color: #245ea8;
  font-weight: 700;
}

/* Agency Hold checkbox with optional note v1 */
#agency-timesheets-root .agency-timesheet-hold-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #102347;
  font-weight: 600;
}
#agency-timesheets-root .agency-timesheet-hold-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 18px;
  accent-color: #3478f6;
}
#agency-timesheets-root .agency-timesheet-hold-help {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
}

/* Agency Timesheet summary quick filters v1 */
#agency-timesheets-root button.agency-timesheets-summary-card {
  width: 100%;
  min-width: 0;
  font-family: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
}
#agency-timesheets-root button.agency-timesheets-summary-card:hover:not(:disabled) {
  border-color: #3478f6;
}
#agency-timesheets-root button.agency-timesheets-summary-card.is-active {
  border-color: #3478f6;
  box-shadow: inset 0 0 0 1px #3478f6;
  background: #eef5ff;
}
#agency-timesheets-root button.agency-timesheets-summary-card:focus-visible {
  outline: 3px solid #3478f6;
  outline-offset: 3px;
}
#agency-timesheets-root button.agency-timesheets-summary-card:disabled {
  cursor: wait;
  opacity: 0.65;
}

/* Agency Held lines quick filter v1; existing mobile grid preserved. */

/* Agency Submitted quick filter v1; mobile grid unchanged. */

/* Agency client change request display v1. */
.agency-client-response,
.agency-client-response-history {
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid #dce6f3;
  border-radius: 12px;
  background: #f8fafc;
}
.agency-client-response.is-current {
  border-color: #f5cb87;
  background: #fff8ec;
}
.agency-client-response > strong {
  display: block;
  color: #925200;
}
.agency-client-response-entry + .agency-client-response-entry {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #dce6f3;
}
.agency-client-response-meta {
  display: block;
  margin-top: 7px;
  color: #64748b;
  font-size: 12px;
}
.agency-client-response-comment {
  margin: 7px 0 0;
  color: #102347;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.agency-client-response-history > summary {
  cursor: pointer;
  color: #102347;
  font-weight: 700;
}
.agency-client-response-history > summary:focus-visible {
  outline: 2px solid #3478f6;
  outline-offset: 4px;
}
