:root {
  --repair-ink: #11171a;
  --repair-muted: #4f5854;
  --repair-paper: #f5f2ec;
  --repair-white: #fff;
  --repair-line: #ded8cf;
  --repair-orange: #f43d0a;
  --repair-green: #177456;
  --repair-red: #9a3412;
}

/* Release 17: guarded employee account actions on Accounts & Phones. */
.account-list-head,
.account-list article {
  grid-template-columns: minmax(12rem, 1.35fr) minmax(11rem, 1fr) minmax(11rem, 1fr) minmax(9rem, .8fr) minmax(12rem, auto) !important;
}

.account-list article .repair-account-actions {
  grid-column: auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  border: 0;
}

.account-list article .repair-account-actions button {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid #bcb7af;
  background: #fff;
  color: #252826;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
}

.account-list article .repair-account-protected {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #d7d2ca;
  background: #f6f3ed;
  color: #777975;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.account-list article .repair-account-actions button:disabled {
  cursor: default;
  opacity: .55;
}

.account-list article .repair-account-actions .repair-account-delete {
  border-color: #b53a24;
  color: #9d2e1d;
}

.repair-account-notice {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-left: 4px solid #178454;
  background: #eef8f3;
  color: #185f43;
  font-size: 11px;
  font-weight: 800;
}

.repair-account-notice.error {
  border-left-color: #b53a24;
  background: #fff2ee;
  color: #8e2c1e;
}

/* Release 27: current-job shortcut and menu-based app installation. */
.employee-shift-actions.repair-shift-actions-with-update {
  grid-template-columns: 1fr 1fr;
}

.employee-shift-actions .repair-update-current-job {
  grid-column: 1 / -1;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #fff;
  background: #fff;
  color: #17191a;
  font: 900 13px/1 Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.employee-shift-actions .repair-update-current-job:hover,
.employee-shift-actions .repair-update-current-job:focus-visible {
  border-color: var(--repair-orange);
  color: var(--repair-orange);
}

.repair-sidebar nav .repair-install-menu-item {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: .4rem;
  align-items: center;
  width: 100%;
  min-height: 3.8rem;
  padding: .8rem 1rem;
  border: 0;
  border-left: 4px solid transparent;
  background: transparent;
  color: #c9cbc8;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.repair-sidebar nav .repair-install-menu-item:hover,
.repair-sidebar nav .repair-install-menu-item:focus-visible {
  border-left-color: var(--repair-orange);
  background: #25292a;
  color: #fff;
}

@media (max-width: 1200px) {
  .account-list-head,
  .account-list article {
    grid-template-columns: 1.4fr 1fr 1fr .8fr !important;
  }

  .account-list-head .repair-account-actions-heading { display: none; }

  .account-list article .repair-account-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    padding-top: 10px;
    border-top: 1px solid #ece8e1;
  }
}

@media (max-width: 620px) {
  .account-list article { grid-template-columns: 1fr 1fr !important; }

  .account-list article .repair-account-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .account-list article .repair-account-actions button {
    flex: 1;
  }
}

/* Release 18: installable phone app prompt and device instructions. */
.repair-install-app {
  position: fixed;
  z-index: 9000;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 7px 15px 7px 8px;
  border: 1px solid #f43d0a;
  border-radius: 24px;
  background: #121617;
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .24);
  font: 800 12px/1 Arial, Helvetica, sans-serif;
  letter-spacing: .03em;
  cursor: pointer;
}

.repair-install-app img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f5f2ec;
}

.repair-install-dialog {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 13, 15, .72);
}

.repair-install-panel {
  width: min(420px, 100%);
  padding: 28px;
  border-top: 5px solid #f43d0a;
  background: #fff;
  color: #11171a;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  text-align: center;
}

.repair-install-panel img {
  width: 84px;
  height: 84px;
  margin-bottom: 12px;
}

.repair-install-panel h2 {
  margin: 0 0 12px;
  font: 800 24px/1.15 Arial, Helvetica, sans-serif;
}

.repair-install-panel p {
  margin: 0 0 22px;
  color: #555e5a;
  font: 16px/1.5 Arial, Helvetica, sans-serif;
}

.repair-install-panel button {
  min-width: 120px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  background: #121617;
  color: #fff;
  font: 800 12px/1 Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 620px) {
  .repair-install-app {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
  }

  .repair-install-panel {
    padding: 24px 20px;
  }
}

.repair-admin-page { margin: 0; min-height: 100vh; background: var(--repair-paper); color: var(--repair-ink); font-family: Arial, Helvetica, sans-serif; }
.repair-admin-page * { box-sizing: border-box; }
.repair-sidebar { position: fixed; inset: 0 auto 0 0; width: 18rem; padding: 2rem 1rem; background: #121617; color: #fff; }
.repair-brand { display: flex; align-items: center; gap: .8rem; margin: 0 1rem 2.5rem; color: #fff; font-size: .82rem; font-weight: 800; letter-spacing: .15em; line-height: 1.4; text-decoration: none; text-transform: uppercase; }
.repair-brand img { width: 2.2rem; height: 2.2rem; object-fit: contain; }
.repair-sidebar nav { display: grid; gap: .3rem; }
.repair-sidebar nav a { display: grid; grid-template-columns: 2rem 1fr; gap: .4rem; align-items: center; min-height: 3.8rem; padding: .8rem 1rem; border-left: 4px solid transparent; color: #c9cbc8; font-weight: 700; text-decoration: none; }
.repair-sidebar nav a:hover, .repair-sidebar nav a:focus-visible, .repair-sidebar nav a.active { border-left-color: var(--repair-orange); background: #25292a; color: #fff; }
.repair-main { margin-left: 18rem; padding: 3rem clamp(1.2rem, 4vw, 5rem) 5rem; }
.repair-page-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; margin-bottom: 2.5rem; }
.repair-page-header p, .repair-card > p, .repair-section-heading p { margin: 0 0 .55rem; color: var(--repair-orange); font-size: .76rem; font-weight: 900; letter-spacing: .16em; }
.repair-page-header h1 { margin: 0 0 .4rem; font-family: Georgia, serif; font-size: clamp(3rem, 6vw, 5.6rem); font-style: italic; font-weight: 500; line-height: .95; }
.repair-page-header span { color: var(--repair-muted); }
.repair-header-actions { display: flex; align-items: center; gap: .75rem; }
.repair-header-actions a, .repair-role { padding: .7rem .9rem; border: 1px solid var(--repair-line); background: var(--repair-white); color: var(--repair-ink) !important; font-size: .8rem; font-weight: 800; text-decoration: none; text-transform: uppercase; }
.repair-header-job-search { position: relative; display: block; }
.repair-header-job-search span { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.repair-header-job-search input { width: clamp(12rem, 19vw, 19rem); min-height: 2.65rem; padding: .65rem .8rem .65rem 2.35rem; border: 1px solid var(--repair-line); background: var(--repair-white) no-repeat .75rem center; color: var(--repair-ink); font: inherit; }
.repair-header-job-search::before { content: "⌕"; position: absolute; z-index: 1; left: .75rem; top: 50%; color: var(--repair-muted); font-size: 1.15rem; transform: translateY(-50%); pointer-events: none; }
.repair-header-job-search input:focus { border-color: var(--repair-orange); outline: 2px solid rgba(244, 61, 10, .14); }
.repair-card { margin-bottom: 1.5rem; padding: clamp(1.2rem, 2.5vw, 2rem); border: 1px solid var(--repair-line); border-top: 4px solid var(--repair-orange); background: var(--repair-white); }
.repair-card h2, .repair-card h3 { margin: 0 0 1rem; }
.repair-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.repair-section-heading h2 { margin: 0; font-size: 1.7rem; }
.repair-section-heading > span { color: var(--repair-muted); font-weight: 700; }
.repair-setup-summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer; list-style: none; }
.repair-setup-summary::-webkit-details-marker { display: none; }
.repair-setup-summary p { margin: 0 0 .4rem; color: var(--repair-orange); font-size: .76rem; font-weight: 900; letter-spacing: .16em; }
.repair-setup-summary h2 { margin: 0; font-size: 1.7rem; }
.repair-expand-label, .repair-summary-meta { display: flex; align-items: center; gap: .75rem; color: var(--repair-muted); font-size: .82rem; font-style: normal; font-weight: 800; }
.repair-expand-label::after, .repair-summary-meta::after { content: "+"; display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border: 1px solid var(--repair-line); color: var(--repair-orange); font-size: 1.25rem; }
.repair-setup-details[open] .repair-expand-label::after, .repair-setup-details[open] .repair-summary-meta::after { content: "−"; }
.repair-expand-label i, .repair-summary-meta i { display: none; font-style: normal; }
.repair-setup-details[open] .repair-expand-label b, .repair-setup-details[open] .repair-summary-meta b { display: none; }
.repair-setup-details[open] .repair-expand-label i, .repair-setup-details[open] .repair-summary-meta i { display: inline; }
.repair-setup-content { margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--repair-line); }
.repair-team-layout.repair-setup-content { margin-top: 1.4rem; }
.repair-form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.repair-form-grid[hidden] { display: none !important; }
.repair-form-grid .wide { grid-column: span 2; }
.repair-form-grid label, .repair-stack label { display: grid; gap: .45rem; color: #343b39; font-size: .82rem; font-weight: 800; }
.repair-form-grid input, .repair-form-grid select, .repair-form-grid textarea,
.repair-stack input, .repair-stack select, .repair-inline-form select, .repair-detail textarea,
.repair-photo-form input { width: 100%; min-height: 3rem; padding: .75rem; border: 1px solid #cfc8bd; border-radius: 0; background: #fff; color: var(--repair-ink); font: inherit; }
.repair-form-grid textarea, .repair-detail textarea { resize: vertical; }
.repair-form-actions { display: flex; justify-content: flex-start; align-items: flex-end; }
.repair-primary, .repair-secondary { min-height: 3rem; padding: .75rem 1rem; border: 1px solid var(--repair-ink); border-radius: 0; font-weight: 800; cursor: pointer; }
.repair-primary { background: var(--repair-ink); color: #fff; }
.repair-primary:hover, .repair-primary:focus-visible { background: var(--repair-orange); border-color: var(--repair-orange); }
.repair-secondary { background: #fff; color: var(--repair-ink); }
.repair-table-wrap { overflow-x: auto; }
.repair-table { width: 100%; border-collapse: collapse; font-size: .91rem; }
.repair-table th { padding: .8rem; border-bottom: 1px solid var(--repair-line); color: var(--repair-muted); font-size: .72rem; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.repair-table td { padding: 1rem .8rem; border-bottom: 1px solid var(--repair-line); vertical-align: top; }
.repair-table td small, .repair-job-link small { display: block; margin-top: .35rem; color: var(--repair-muted); }
.repair-job-link { padding: 0; border: 0; background: none; color: var(--repair-ink); text-align: left; cursor: pointer; }
.repair-job-link strong { color: var(--repair-orange); text-decoration: underline; text-underline-offset: .2rem; }
.repair-status, .repair-alert { display: inline-block; padding: .25rem .45rem; background: #eef1ee; font-size: .74rem; font-weight: 800; }
.repair-alert { background: #fff0e8; color: var(--repair-red); }
.repair-empty, .repair-loading { padding: 2rem; color: var(--repair-muted); text-align: center; }
.repair-notice { margin-bottom: 1.2rem; padding: 1rem; border-left: 5px solid var(--repair-green); background: #e7f5ef; color: #0f684c; font-weight: 800; }
.repair-notice.error { border-left-color: var(--repair-orange); background: #fff0e8; color: var(--repair-red); }
.repair-photo-storage-badge[hidden] { display: none !important; }
body.repair-admin-page .repair-page-header .repair-photo-storage-badge {
  display: grid;
  grid-template-columns: minmax(6.5rem, 1fr) 4.25rem;
  gap: .55rem;
  align-items: center;
  flex: 0 0 12.5rem;
  width: 12.5rem;
  min-height: 2.65rem;
  margin: 0;
  padding: .38rem .55rem;
  border: 1px solid var(--repair-line);
  border-left: 3px solid var(--repair-green);
  background: #fff;
  box-shadow: 0 2px 8px rgb(18 22 23 / 5%);
}
body.repair-admin-page .repair-page-header .repair-photo-storage-badge.warning { border-left-color: #d58a00; }
body.repair-admin-page .repair-page-header .repair-photo-storage-badge.critical { border-left-color: var(--repair-red); }
.repair-photo-badge-copy, .repair-photo-badge-meter { display: grid; min-width: 0; gap: .12rem; }
.repair-photo-badge-copy strong, .repair-photo-badge-meter b { color: var(--repair-ink); font-size: .64rem; line-height: 1.1; white-space: nowrap; }
.repair-photo-badge-copy small { overflow: hidden; color: var(--repair-muted); font-size: .51rem; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.repair-photo-badge-meter b { color: var(--repair-muted); font-size: .55rem; text-align: right; }
.repair-photo-badge-meter progress { width: 100%; height: .32rem; accent-color: var(--repair-green); }
.repair-photo-storage-badge.warning progress { accent-color: #d58a00; }
.repair-photo-storage-badge.critical progress { accent-color: var(--repair-red); }
.repair-detail { scroll-margin-top: 1rem; }
.repair-two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.5rem; }
.repair-two-column > section { padding: 1.2rem; border: 1px solid var(--repair-line); background: #fbfaf7; }
.repair-list { margin: 0 0 1rem; padding: 0; list-style: none; }
.repair-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--repair-line); }
.repair-inline-form, .repair-photo-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .7rem; align-items: end; }
.repair-photo-form small { grid-column: 1 / -1; color: var(--repair-muted); }
.repair-feed { display: grid; gap: .7rem; max-height: 24rem; overflow-y: auto; }
.repair-feed article { padding: .9rem; border-left: 3px solid var(--repair-orange); background: #fff; }
.repair-feed article p { margin: 0 0 .5rem; white-space: pre-wrap; }
.repair-feed small { color: var(--repair-muted); }
.repair-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin-top: 1rem; }
.repair-gallery a { color: var(--repair-ink); font-size: .75rem; text-decoration: none; }
.repair-gallery img { width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--repair-line); object-fit: cover; }
.repair-gallery span { display: block; padding-top: .3rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.repair-gallery a > small { display: block; padding-top: .2rem; color: var(--repair-muted); line-height: 1.35; }
.repair-three-column { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.repair-three-column .repair-card { min-width: 0; }
.repair-four-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.repair-four-column .repair-card { min-width: 0; }
.repair-stack { display: grid; gap: .9rem; }
.repair-stack select[multiple] { min-height: 8.5rem; }
.repair-stack label small { color: var(--repair-muted); font-weight: 500; line-height: 1.4; }
.repair-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.repair-spaced-form { margin-top: .8rem; }
.repair-team-list { display: grid; gap: .65rem; }
.repair-team-list button { display: grid; gap: .25rem; width: 100%; padding: .85rem; border: 1px solid var(--repair-line); background: #fff; color: var(--repair-ink); text-align: left; cursor: pointer; }
.repair-team-list button:hover, .repair-team-list button:focus-visible { border-color: var(--repair-orange); }
.repair-team-list span, .repair-team-list small { color: var(--repair-muted); }
.repair-state-group + .repair-state-group { margin-top: 2rem; }
.repair-state-group { border: 0; }
.repair-state-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .5rem; padding: .8rem 1rem; background: #f5f2ec; cursor: pointer; list-style: none; }
.repair-state-heading::-webkit-details-marker { display: none; }
.repair-state-heading::after { content: "−"; order: 3; color: var(--repair-orange); font-size: 1.35rem; font-weight: 900; }
.repair-state-group:not([open]) .repair-state-heading { margin-bottom: 0; }
.repair-state-group:not([open]) .repair-state-heading::after { content: "+"; }
.repair-state-heading h3 { margin: 0; font-size: 1.25rem; }
.repair-state-heading span { color: var(--repair-muted); font-size: .82rem; font-weight: 800; }
.repair-job-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; border-bottom: 1px solid var(--repair-line); }
.repair-job-tabs button { display: inline-flex; align-items: center; gap: .55rem; min-height: 3rem; padding: .7rem 1rem; border: 0; border-bottom: 4px solid transparent; background: transparent; color: var(--repair-muted); font: inherit; font-weight: 900; cursor: pointer; }
.repair-job-tabs button:hover, .repair-job-tabs button:focus-visible, .repair-job-tabs button.active { border-bottom-color: var(--repair-orange); color: var(--repair-ink); }
.repair-job-tabs button span { display: inline-flex; align-items: center; justify-content: center; min-width: 1.7rem; min-height: 1.7rem; padding: .15rem .4rem; border-radius: 99px; background: #ebe7df; font-size: .75rem; }
.repair-job-tabs button.active span { background: #fff0e8; color: var(--repair-red); }
.repair-job-filters { display: grid; grid-template-columns: repeat(5, minmax(9rem, 1fr)) auto; gap: .75rem; align-items: end; margin-bottom: 1.25rem; padding: 1rem; background: #faf9f6; }
.repair-job-filters label { display: grid; gap: .35rem; color: #343b39; font-size: .72rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.repair-job-filters input, .repair-job-filters select { width: 100%; min-height: 3rem; padding: .7rem; border: 1px solid #cfc8bd; background: #fff; color: var(--repair-ink); font: inherit; }
.repair-job-results-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin: .5rem 0 1rem; }
.repair-job-results-heading > div { display: grid; gap: .3rem; }
.repair-job-results-heading strong { font-size: 1.2rem; }
.repair-job-results-heading span, .repair-job-results-heading small { color: var(--repair-muted); }
.repair-load-more { display: flex; justify-content: center; padding-top: 1.25rem; }
.repair-report-filters { display: grid; grid-template-columns: minmax(11rem, 1fr) minmax(11rem, 1fr) auto; gap: 1rem; align-items: end; }
.repair-report-filters label { display: grid; gap: .45rem; color: #343b39; font-size: .82rem; font-weight: 800; }
.repair-report-filters input { width: 100%; min-height: 3rem; padding: .75rem; border: 1px solid #cfc8bd; background: #fff; color: var(--repair-ink); font: inherit; }
.repair-download-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.2rem; }
.repair-download-actions a { display: inline-flex; align-items: center; text-decoration: none; }
.repair-report-totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.repair-report-totals .repair-card { min-width: 0; }
.repair-report-totals strong { display: block; font-size: 2.2rem; }
.repair-help-copy { margin: -.35rem 0 1.25rem; color: var(--repair-muted); line-height: 1.55; }
.repair-week-link { display: grid; color: var(--repair-ink); text-decoration: none; }
.repair-week-link:hover, .repair-week-link:focus-visible { color: var(--repair-orange); }
.repair-review-link, .repair-back-row a { display: inline-flex; align-items: center; white-space: nowrap; text-decoration: none; }
.repair-back-row { margin-bottom: 1rem; }
.repair-week-totals { margin: 1rem 0; }
.repair-week-totals > div { padding: 1rem; border: 1px solid var(--repair-line); background: #faf9f6; }
.repair-week-totals small { display: block; margin-bottom: .35rem; color: var(--repair-muted); font-size: .72rem; font-weight: 900; letter-spacing: .08em; }
.repair-week-state { display: flex; align-items: center; gap: .7rem; margin: .5rem 0 0; color: var(--repair-muted); font-size: .88rem; }
.repair-status-submitted { background: #fff0e8; color: var(--repair-red); }
.repair-status-approved { background: #e7f5ef; color: #0f684c; }
.repair-status-rejected { background: #fce7e2; color: #8a2c16; }
.repair-week-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.repair-return { border-color: var(--repair-red); color: var(--repair-red); }
.repair-return:hover, .repair-return:focus-visible { background: #fce7e2; }
.repair-row-actions { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }
.repair-row-actions .repair-primary, .repair-row-actions .repair-secondary { min-height: 2.55rem; padding: .6rem .75rem; white-space: nowrap; }
.repair-week-toolbar { display: grid; grid-template-columns: auto minmax(22rem, 1fr) auto auto; gap: .75rem; align-items: end; }
.repair-week-toolbar form { display: grid; grid-template-columns: minmax(12rem, 1fr) auto; gap: .6rem; align-items: end; }
.repair-week-toolbar label { display: grid; gap: .35rem; color: var(--repair-muted); font-size: .72rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.repair-week-toolbar input { min-height: 3rem; padding: .7rem; border: 1px solid #cfc8bd; background: #fff; font: inherit; }
.repair-download-week { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; white-space: nowrap; }
.repair-add-time summary { cursor: pointer; font-size: 1.15rem; font-weight: 900; }
.repair-add-time[open] summary { margin-bottom: 1.2rem; }
.repair-day-card { border-top-color: #b6afa5; }
.repair-day-card .repair-section-heading { margin-bottom: .75rem; }
.repair-day-empty { margin: 0; padding: 1rem; background: #faf9f6; text-align: left; }
.repair-edit-row td { padding: 1.2rem !important; background: #faf9f6; }
.repair-edit-row[hidden] { display: none; }
.repair-edit-row .repair-form-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.repair-weekly-approval-banner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 0 0 1rem; padding: 1rem; border-left: 5px solid var(--repair-orange); background: #fff0e8; font-family: Arial, Helvetica, sans-serif; }
.repair-weekly-approval-banner a { padding: .7rem .9rem; border: 1px solid #11171a; background: #11171a; color: #fff; font-weight: 900; text-decoration: none; white-space: nowrap; }

.repair-employee-actions { display: flex; justify-content: flex-end; width: min(74rem, calc(100% - 2rem)); margin: .8rem auto 0; }
.repair-employee-signout { position: static; display: inline-flex; align-items: center; min-height: 2.75rem; padding: .7rem .9rem; border: 1px solid #d6d0c6; background: #fff; color: #11171a; font: 800 .82rem/1 Arial, sans-serif; text-decoration: none; box-shadow: 0 3px 14px rgba(0,0,0,.1); }
.repair-time-summary { margin: 1rem auto; max-width: 74rem; padding: 1rem 1.2rem; border: 1px solid #ded8cf; border-top: 4px solid #f43d0a; background: #fff; color: #11171a; font-family: Arial, sans-serif; }
.repair-time-summary[hidden] { display: none !important; }
.employee-main > .employee-shift-card:first-child { margin-top: 0; margin-bottom: 2.1rem; }
.repair-time-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.repair-time-heading > div { display: grid; grid-template-columns: auto auto; gap: .25rem 1rem; align-items: baseline; }
.repair-time-heading span { color: #f43d0a; font-size: .76rem; font-weight: 900; letter-spacing: .12em; }
.repair-time-heading strong { font-size: 1.7rem; }
.repair-time-heading small { grid-column: 1 / -1; color: #66706c; }
.repair-time-heading button { position: relative; z-index: 1; min-height: 2.75rem; padding: .55rem .7rem; border: 1px solid #11171a; background: #fff; font-weight: 800; cursor: pointer; touch-action: manipulation; }
.repair-active-shift { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: .9rem; padding: .8rem; border-left: 4px solid var(--repair-orange); background: #fff0e8; }
.repair-active-shift span { display: grid; gap: .2rem; }
.repair-active-shift small, .repair-clocked-in-status { color: var(--repair-orange); font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.repair-active-shift button, button.repair-clock-out { min-height: 2.75rem; padding: .65rem .9rem; border: 1px solid #11171a; background: #11171a; color: #fff; font: inherit; font-weight: 900; cursor: pointer; touch-action: manipulation; }
.repair-clocked-in-status { display: inline-flex; align-items: center; padding: .45rem .6rem; border: 1px solid var(--repair-orange); background: #fff0e8; }
.repair-completion-notice { position: sticky; top: .5rem; z-index: 20; width: min(74rem, calc(100% - 1.4rem)); margin: .7rem auto; padding: .9rem 1rem; border-left: 5px solid var(--repair-green); background: #e7f5ef; color: #0f684c; font-weight: 900; box-shadow: 0 4px 18px rgba(0,0,0,.12); }
.repair-completion-notice[hidden] { display: none; }
button.repair-completing { background: #66706c; border-color: #66706c; cursor: progress; }
button.repair-completion-success { background: var(--repair-green); border-color: var(--repair-green); color: #fff; }
.repair-time-summary details { margin-top: .8rem; }
.repair-time-summary summary { cursor: pointer; font-weight: 800; }
.repair-time-entries { display: grid; gap: .3rem; margin-top: .7rem; }
.repair-time-entries > div { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .65rem; background: #f7f5f0; }
.repair-time-entries span { display: grid; gap: .2rem; }
.repair-time-entries small { color: #66706c; }
.repair-date-controls { display: grid; grid-template-columns: auto auto minmax(12rem, 1fr) auto; gap: .55rem; align-items: end; margin-top: 1rem; }
.repair-date-controls button, .repair-date-controls input { min-height: 2.75rem; padding: .55rem .7rem; border: 1px solid #cfc8bd; background: #fff; color: #11171a; font: inherit; font-weight: 800; touch-action: manipulation; }
.repair-date-controls label { display: grid; gap: .25rem; color: #66706c; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.repair-active-schedule { border-left: 4px solid var(--repair-orange); }
.repair-daily-job-stack { display: grid !important; }
.repair-job-section-marker { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem .9rem; background: #f1eee7; color: #11171a; }
.repair-job-section-marker > span, .repair-job-section-marker button span { color: #66706c; font-size: .78rem; }
.repair-job-section-marker button { display: flex; justify-content: space-between; align-items: center; gap: 1rem; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.repair-job-window { display: block; margin-top: .25rem; color: var(--repair-orange); font-size: .78rem; font-weight: 800; }
.employee-job-card.repair-active-job { border-left-color: var(--repair-orange) !important; box-shadow: 0 0 0 2px rgba(244,61,10,.12); }

/* Release 29: improve gray-text contrast on light portal surfaces. */
.portal-shell { --muted: #535955; }
.portal-header-actions > a,
.compact-language,
.account-header-actions label,
.permission-summary span,
.account-empty,
.account-manager-title span,
.account-create-form label,
.owner-welcome > div > span,
.action-overview-grid div > span,
.employee-action-card p,
.employee-profile-form input:disabled,
.employee-modal-help,
.employee-bottom-nav button,
.job-time span,
.job-region-grid > button small,
.action-list p,
.weekly-person p,
.weekly-note,
.employee-timeline span,
.profile-avatar small,
.approval-person small,
.approval-card > div small,
.submission-card small,
.operations-empty,
.employee-job-title span,
.inventory-submit-row p,
.employee-job-choice-list b,
.employee-view-intro span,
.operations-form label,
.report-count,
.role-pill,
.operations-table small { color: #555b57; }

.job-facts small,
.daily-job-head,
.table-head,
.approval-head,
.timesheet-export-row.head,
.daily-time-row.head,
.employee-job-time small,
.employee-job-title small,
.employee-job-facts small,
.employee-instructions small,
.employee-inventory-list label small,
.inventory-minimum small,
.employee-profile-form label small,
.account-list label > span,
.inventory-list-head,
.operations-table-head { color: #59605b !important; }

@media (max-width: 1450px) {
  .repair-header-job-search input { width: 13rem; }
  .repair-job-filters { grid-template-columns: 1fr 1fr 1fr; }
  .repair-job-filters .wide { grid-column: span 2; }
}

@media (max-width: 1050px) {
  .repair-form-grid { grid-template-columns: 1fr 1fr; }
  .repair-three-column { grid-template-columns: 1fr; }
  .repair-four-column { grid-template-columns: 1fr 1fr; }
  .repair-report-totals { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .repair-sidebar { position: static; width: auto; padding: .8rem; }
  .repair-brand { margin: 0 0 .7rem; }
  .repair-sidebar nav { display: flex; gap: .25rem; overflow-x: auto; }
  .repair-sidebar nav a { display: flex; min-width: max-content; min-height: auto; padding: .75rem; border-left: 0; border-bottom: 3px solid transparent; }
  .repair-sidebar nav a.active { border-bottom-color: var(--repair-orange); }
  .repair-main { margin: 0; padding: 1.2rem .8rem 4rem; }
  .repair-page-header { flex-direction: column; align-items: stretch; gap: 1rem; }
  .repair-page-header h1 { font-size: 3rem; }
  .repair-page-header span, .repair-role { display: none; }
  .repair-header-actions { align-items: stretch; flex-wrap: wrap; justify-content: flex-end; }
  body.repair-admin-page .repair-page-header .repair-photo-storage-badge { flex: 0 0 12.5rem; width: min(12.5rem, 100%); margin-right: auto; }
  .repair-header-job-search { order: 3; flex: 1 0 100%; }
  .repair-header-job-search input { width: 100%; }
  .repair-setup-summary { align-items: flex-start; }
  .repair-expand-label b, .repair-expand-label i, .repair-summary-meta b, .repair-summary-meta i { display: none !important; }
  .repair-form-grid, .repair-two-column { grid-template-columns: 1fr; }
  .repair-four-column { grid-template-columns: 1fr; }
  .repair-form-grid .wide { grid-column: auto; }
  .repair-gallery { grid-template-columns: 1fr 1fr; }
  .repair-inline-form, .repair-photo-form { grid-template-columns: 1fr; }
  .repair-report-filters, .repair-report-totals { grid-template-columns: 1fr; }
  .repair-week-actions { align-items: stretch; flex-direction: column; }
  .repair-week-actions button { width: 100%; }
  .repair-week-toolbar, .repair-week-toolbar form { grid-template-columns: 1fr; }
  .repair-job-tabs { display: grid; grid-template-columns: 1fr; border-bottom: 0; }
  .repair-job-tabs button { justify-content: space-between; border: 1px solid var(--repair-line); border-left: 4px solid transparent; }
  .repair-job-tabs button.active { border-left-color: var(--repair-orange); border-bottom-color: var(--repair-line); }
  .repair-job-filters { grid-template-columns: 1fr; }
  .repair-job-filters .wide { grid-column: auto; }
  .repair-job-results-heading { align-items: flex-start; flex-direction: column; }
  .repair-row-actions { align-items: stretch; flex-direction: column; }
  .repair-row-actions > * { width: 100%; justify-content: center; }
  .repair-edit-row .repair-form-grid { grid-template-columns: 1fr; }
  .repair-employee-actions { width: auto; margin: .45rem .7rem 0; }
  .repair-time-summary { margin: .7rem; }
  .repair-active-shift { align-items: stretch; flex-direction: column; }
  .repair-active-shift button { width: 100%; }
  .repair-date-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .repair-date-controls label { grid-column: 1 / -1; grid-row: 1; }
  .repair-date-controls button { min-width: 0; padding: .55rem .3rem; font-size: .82rem; }
  .repair-date-controls [data-schedule-day="previous"] { grid-column: 1; }
  .repair-date-controls [data-schedule-day="today"] { grid-column: 2; }
  .repair-date-controls [data-schedule-day="next"] { grid-column: 3; }
  .repair-job-section-marker, .repair-job-section-marker button { align-items: flex-start; flex-direction: column; gap: .3rem; }
}

/* Release 25: improve employee-app readability on phones without changing the
   desktop portal. The original compiled app used 7–10px labels in many places;
   these overrides keep supporting text legible and preserve comfortable touch
   targets on both iPhone and Android. */
@media (max-width: 700px) {
  .employee-experience {
    padding-bottom: 84px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  .employee-header .compact-language select { font-size: 16px; }

  .employee-drawer nav button { min-height: 54px; font-size: 16px; }
  .employee-drawer nav button span { font-size: 21px; }
  .employee-drawer-truck small { font-size: 11px; }
  .employee-drawer-truck strong { font-size: 17px; }
  .employee-drawer-truck span { font-size: 13px; }

  .employee-page-top p,
  .employee-section-heading p,
  .employee-view-intro p,
  .employee-panel-heading p,
  .employee-next-job p,
  .employee-modal-head p { font-size: 11px; line-height: 1.35; }

  .employee-page-top h1 { font-size: 34px; }
  .employee-lead { font-size: 16px; line-height: 1.5; }
  .employee-notice { font-size: 14px; line-height: 1.45; }
  .employee-notice button { min-width: 44px; min-height: 44px; font-size: 12px; }

  .employee-shift-status small,
  .employee-current-job small { font-size: 11px; line-height: 1.35; }
  .employee-shift-status strong { font-size: 25px; }
  .employee-current-job strong { font-size: 18px; line-height: 1.35; }
  .employee-current-job span { font-size: 13px; line-height: 1.4; }
  .employee-primary,
  .employee-secondary,
  .employee-submit,
  .inventory-save { min-height: 48px; font-size: 13px; }

  .employee-section-heading h2 { font-size: 25px; }
  .employee-action-card { min-height: 202px; }
  .employee-action-card > small { font-size: 11px; line-height: 1.35; }
  .employee-action-card h3 { font-size: 24px; line-height: 1.2; }
  .employee-action-card p { margin-bottom: 36px; font-size: 15px; line-height: 1.55; }
  .employee-action-card b { font-size: 15px; }

  .employee-next-job h2 { font-size: 22px; }
  .employee-next-job span { font-size: 14px; line-height: 1.45; }
  .employee-next-job button { min-height: 46px; font-size: 13px; }

  .employee-view-intro h2 { font-size: 27px; }
  .employee-view-intro span { font-size: 15px; }
  .employee-view-intro > b { font-size: 11px; line-height: 1.45; }
  .employee-panel-heading h2 { font-size: 24px; }
  .employee-panel-heading > span { font-size: 13px; }

  .employee-timeline small { font-size: 10px; }
  .employee-timeline strong { font-size: 17px; }
  .employee-timeline span { font-size: 13px; line-height: 1.4; }
  .employee-timeline article > b { font-size: 10px; }
  .timeline-empty { font-size: 14px; }

  .employee-week-totals small { font-size: 10px; }
  .employee-week-totals strong { font-size: 28px; }
  .employee-week-totals span { font-size: 12px; }
  .employee-week-list > div { font-size: 13px; line-height: 1.4; }
  .employee-week-list small { font-size: 10px; }
  .employee-week-list b { font-size: 11px; }

  .employee-job-time strong { font-size: 19px; }
  .employee-job-time small,
  .employee-job-title small { font-size: 10px; line-height: 1.3; }
  .employee-job-title strong { font-size: 19px; line-height: 1.3; }
  .employee-job-title span { font-size: 13px; line-height: 1.4; }
  .employee-job-summary > b { font-size: 11px; line-height: 1.3; }
  .employee-job-facts small,
  .employee-instructions small { font-size: 10px; line-height: 1.3; }
  .employee-job-facts strong { font-size: 14px; line-height: 1.4; }
  .employee-instructions p { font-size: 14px; line-height: 1.6; }
  .employee-job-buttons button,
  .employee-job-link { min-height: 46px; font-size: 13px; }

  .employee-inventory-list article > div strong { font-size: 15px; line-height: 1.35; }
  .employee-inventory-list article > div small { font-size: 11px; line-height: 1.4; }
  .employee-inventory-list input { height: 46px; font-size: 16px; }
  .employee-inventory-list label small,
  .inventory-minimum small { font-size: 11px; }
  .employee-inventory-list article > button { min-height: 46px; font-size: 13px; }
  .inventory-submit-row p { font-size: 13px; line-height: 1.45; }

  .profile-avatar strong { font-size: 20px; }
  .profile-avatar small { font-size: 13px; }
  .employee-profile-form label,
  .job-update-modal > label { font-size: 11px; line-height: 1.35; }
  .employee-profile-form label small { font-size: 12px; }
  .employee-profile-form input,
  .employee-profile-form select,
  .job-update-modal input,
  .job-update-modal select,
  .job-update-modal textarea { min-height: 48px; font-size: 16px; }

  .employee-bottom-nav { height: 78px; padding-top: 7px; }
  .employee-bottom-nav button { min-width: 0; min-height: 58px; padding: 2px; }
  .employee-bottom-nav button span { font-size: 23px; }
  .employee-bottom-nav button small { font-size: 11px; line-height: 1.15; }

  .employee-modal-head h2 { font-size: 24px; }
  .employee-modal-help { font-size: 14px; line-height: 1.55; }
  .employee-job-choice-list small { font-size: 10px; }
  .employee-job-choice-list strong { font-size: 16px; }
  .employee-job-choice-list b { font-size: 12px; line-height: 1.4; }
  .employee-modal-actions button,
  .status-choice button { min-height: 48px; font-size: 13px; }
  .photo-picker { min-height: 60px; font-size: 13px; }
  .employee-form-error { font-size: 13px; line-height: 1.45; }

  .repair-time-heading span,
  .repair-active-shift small,
  .repair-clocked-in-status,
  .repair-date-controls label,
  .repair-job-section-marker > span,
  .repair-job-section-marker button span,
  .repair-job-window { font-size: 11px; line-height: 1.35; }
  .repair-time-heading strong { font-size: 1.9rem; }
  .repair-time-heading small,
  .repair-time-entries small { font-size: 13px; line-height: 1.4; }
  .repair-time-summary summary { font-size: 15px; }
  .repair-time-entries > div { font-size: 14px; }
  .repair-active-shift button,
  button.repair-clock-out,
  .repair-time-heading button,
  .repair-date-controls button,
  .repair-date-controls input { min-height: 48px; font-size: 14px; }
  .repair-date-controls input { font-size: 16px; }
}

@media (max-width: 390px) {
  .employee-action-card { min-height: 202px; }
}
