#serviceOpportunitiesView {
  color: #17343d;
}

.service-command-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  border: 1px solid #9eb7bd;
  border-left: 5px solid #0b7581;
  border-radius: 8px;
  background: #edf3f4;
  box-shadow: 0 10px 24px rgba(27, 58, 67, 0.08);
}

.service-command-head h2,
.service-command-head p {
  margin: 0;
}

.service-command-head h2 {
  margin-top: 3px;
  color: #102f38;
  font-size: 28px;
}

.service-command-head > div > p:last-child {
  margin-top: 6px;
  color: #557078;
}

.service-new-ticket-button,
.service-primary-action {
  border-color: #087986 !important;
  background: #087986 !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(8, 121, 134, 0.2) !important;
}

.service-new-ticket-button {
  min-width: 172px;
  min-height: 44px;
}

.service-heading-invoice-button {
  min-width: 142px;
}

.service-kpi-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.service-kpi-strip article {
  min-height: 96px;
  padding: 14px 16px;
  border: 1px solid #b5c6ca;
  border-radius: 7px;
  background: #f7f9f9;
}

.service-kpi-strip span,
.service-kpi-strip small {
  display: block;
}

.service-kpi-strip span {
  color: #5b7177;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.service-kpi-strip strong {
  display: block;
  margin: 3px 0;
  color: #17343d;
  font-size: 26px;
}

.service-kpi-strip small {
  color: #64777c;
}

.service-kpi-strip .is-alert {
  border-color: #d88077;
  background: #fff4f2;
}

.service-kpi-strip .is-ready {
  border-color: #85b79a;
  background: #f0f8f3;
}

.service-board-filters {
  display: flex;
  gap: 7px;
  padding: 8px 0 12px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.service-board-filters button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid #aec0c5 !important;
  background: #f3f6f6 !important;
  color: #294851 !important;
  box-shadow: none !important;
}

.service-board-filters button span {
  display: inline-grid;
  min-width: 20px;
  min-height: 20px;
  margin-left: 5px;
  place-items: center;
  border-radius: 50%;
  background: #dbe5e7;
  font-size: 11px;
}

.service-board-filters button.active {
  border-color: #126f7a !important;
  background: #163d47 !important;
  color: #fff !important;
}

.service-board-filters button.active span {
  background: rgba(255, 255, 255, 0.17);
}

.service-queue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
  align-items: start;
  padding-bottom: 10px;
}

.service-queue-grid.single-queue {
  grid-template-columns: minmax(300px, 900px);
}

.service-queue-column {
  min-width: 250px;
  border: 1px solid #aebfc3;
  border-radius: 8px;
  background: #e7edef;
}

.service-queue-column > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid #becbce;
  background: #dbe5e7;
}

.service-queue-column > header h3,
.service-queue-column > header p {
  margin: 0;
}

.service-queue-column > header h3 {
  color: #17343d;
  font-size: 15px;
}

.service-queue-column > header p {
  margin-top: 2px;
  color: #667b80;
  font-size: 11px;
}

.service-queue-column > header > span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #17343d;
  font-weight: 800;
}

.service-queue-list {
  display: grid;
  gap: 8px;
  padding: 8px;
}

.service-ticket-card {
  position: relative;
  padding: 11px;
  border: 1px solid #bdc9cc;
  border-left: 4px solid #739099;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 3px 9px rgba(24, 53, 62, 0.06);
  cursor: pointer;
}

.service-ticket-card:hover,
.service-ticket-card:focus-visible {
  border-color: #4b828d;
  box-shadow: 0 6px 14px rgba(24, 53, 62, 0.12);
  outline: none;
}

.service-ticket-card.priority-emergency { border-left-color: #c84036; }
.service-ticket-card.priority-urgent { border-left-color: #d77a1d; }
.service-ticket-card.priority-standard { border-left-color: #397ca3; }
.service-ticket-card.priority-planned { border-left-color: #6f8f7b; }

.service-ticket-topline,
.service-ticket-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.service-ticket-number {
  color: #35616b;
  font-size: 12px;
  font-weight: 800;
}

.service-priority-badge,
.service-status-label {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid #bdc9cc;
  border-radius: 999px;
  background: #eef2f3;
  color: #35515a;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.service-priority-badge.priority-emergency { border-color: #d27a72; background: #fff0ee; color: #9c251d; }
.service-priority-badge.priority-urgent { border-color: #dfad78; background: #fff5e9; color: #945312; }
.service-priority-badge.priority-standard { border-color: #8ab1c8; background: #eff7fb; color: #2b6486; }
.service-priority-badge.priority-planned { border-color: #9ab5a4; background: #f1f7f3; color: #486c55; }

.service-ticket-card h3 {
  margin: 8px 0 3px;
  color: #17343d;
  font-size: 15px;
  line-height: 1.2;
}

.service-ticket-property,
.service-ticket-address,
.service-ticket-issue {
  margin: 0;
}

.service-ticket-property { color: #3f5d65; font-weight: 700; }
.service-ticket-address { color: #708187; font-size: 11px; }
.service-ticket-issue {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  color: #465f66;
  font-size: 12px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.service-ticket-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 10px;
  margin-top: 10px;
  padding: 8px 0;
  border-top: 1px solid #e1e7e8;
  border-bottom: 1px solid #e1e7e8;
}

.service-ticket-facts span {
  color: #50676e;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.service-ticket-facts strong {
  display: block;
  color: #7a8a8e;
  font-size: 9px;
  text-transform: uppercase;
}

.service-ticket-footer { margin-top: 9px; }
.service-ticket-footer button { pointer-events: auto; }
.service-queue-empty { padding: 22px 12px; color: #718287; text-align: center; }

.service-intake-create-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.service-intake-create-fields .service-intake-wide,
.service-field-wide {
  grid-column: 1 / -1;
}

.service-phase-layout,
.service-field-work-layout,
.service-review-layout,
.service-billing-layout {
  display: grid;
  gap: 12px;
}

.service-dispatch-layout {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.8fr);
}

.service-form-section,
.service-travel-destination,
.service-timer-card,
.service-dispatch-summary,
.service-review-checklist,
.service-review-summary,
.service-billing-summary,
.service-closed-summary {
  padding: 16px;
  border: 1px solid #b7c7ca;
  border-radius: 8px;
  background: #f7f9f9;
}

.service-form-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.service-form-heading span,
.service-travel-destination > span,
.service-timer-card > span,
.service-closed-summary > div > span {
  color: #60767c;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.service-form-heading h4,
.service-travel-destination h4,
.service-review-summary h4,
.service-closed-summary h4 {
  margin: 2px 0 0;
  color: #17343d;
  font-size: 18px;
}

.service-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.service-form-grid label,
.service-material-entry label,
.service-file-upload-row label,
.service-review-summary label {
  min-width: 0;
  color: #486068;
  font-size: 12px;
  font-weight: 700;
}

.service-form-grid textarea {
  min-height: 78px;
}

.service-request-files,
.service-file-upload-row {
  margin-top: 12px;
}

.service-dispatch-section .service-primary-action {
  width: 100%;
  margin-top: 12px;
}

.service-travel-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(300px, 1fr) minmax(260px, 1fr);
  gap: 12px;
}

.service-travel-destination p {
  margin: 5px 0 14px;
  color: #5a7076;
}

.service-directions-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid #8da9af;
  border-radius: 6px;
  background: #fff;
  color: #175e6a;
  font-weight: 800;
  text-decoration: none;
}

.service-timer-card > strong {
  display: block;
  margin: 10px 0 3px;
  color: #102f38;
  font-size: 34px;
  font-variant-numeric: tabular-nums;
}

.service-timer-card > small { color: #63777c; }

.service-timer-actions,
.service-phase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.service-generated-invoices {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid #c9d5d8;
}

.service-generated-invoices .service-form-heading {
  margin-bottom: 8px;
}

.service-generated-invoices .folder-items + .service-form-heading {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #d4dee1;
}

.service-generated-invoices .service-form-heading > strong {
  display: grid;
  min-width: 30px;
  height: 26px;
  place-items: center;
  border: 1px solid #b8c9cd;
  border-radius: 6px;
  background: #fff;
  color: #17343d;
  font-size: 12px;
}

.service-dispatch-summary,
.service-review-summary dl,
.service-billing-summary dl,
.service-closed-summary dl {
  display: grid;
  gap: 9px;
  margin: 0;
}

.service-dispatch-summary div,
.service-review-summary dl div,
.service-billing-summary dl div,
.service-closed-summary dl div {
  display: grid;
  gap: 2px;
}

.service-dispatch-summary dt,
.service-review-summary dt,
.service-billing-summary dt,
.service-closed-summary dt {
  color: #74858a;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.service-dispatch-summary dd,
.service-review-summary dd,
.service-billing-summary dd,
.service-closed-summary dd {
  margin: 0;
  color: #29434b;
  overflow-wrap: anywhere;
}

.service-review-summary dd {
  white-space: pre-wrap;
}

.service-review-documentation {
  display: grid;
  gap: 12px;
  margin: 12px 0 15px;
}

.service-review-record-group {
  overflow: hidden;
  border: 1px solid #bccace;
  border-radius: 7px;
  background: #fff;
}

.service-review-record-group > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  padding: 8px 11px;
  border-bottom: 1px solid #cbd6d9;
  background: #e8eef0;
}

.service-review-record-group > header h5 {
  margin: 0;
  color: #213f48;
  font-size: 13px;
}

.service-review-record-group > header span {
  display: grid;
  min-width: 27px;
  height: 25px;
  place-items: center;
  border: 1px solid #adbec2;
  border-radius: 5px;
  background: #fff;
  color: #294750;
  font-size: 11px;
  font-weight: 900;
}

.service-review-record {
  padding: 11px 12px;
  border-bottom: 1px solid #d7dfe1;
}

.service-review-record:last-child {
  border-bottom: 0;
}

.service-review-record-heading > span,
.service-review-record-heading small {
  display: block;
  color: #667b81;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.service-review-record-heading h6 {
  margin: 2px 0;
  color: #18363f;
  font-size: 14px;
}

.service-review-record > p {
  margin: 8px 0 0;
  color: #3f5860;
  font-size: 12px;
  line-height: 1.48;
  white-space: pre-wrap;
}

.service-review-record-result {
  padding-top: 8px;
  border-top: 1px solid #dce3e5;
}

.service-review-record-empty {
  margin: 0;
  padding: 12px;
  color: #687c82;
  font-size: 12px;
}

.service-review-facts {
  padding-top: 12px;
  border-top: 1px solid #cbd6d9;
}

.service-review-narrative {
  margin-bottom: 12px !important;
}

.service-timer-bar {
  display: grid;
  grid-template-columns: minmax(130px, 0.4fr) minmax(160px, 0.5fr) 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid #9fb6bb;
  border-radius: 8px;
  background: #e9f0f1;
}

.service-timer-bar span { display: block; color: #667c82; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.service-timer-bar strong { color: #17343d; font-size: 20px; font-variant-numeric: tabular-nums; }
.service-timer-bar .service-timer-actions { justify-content: flex-end; margin-top: 0; }

.service-material-list { display: grid; gap: 6px; }
.service-material-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid #d1dadd;
  border-radius: 6px;
  background: #fff;
}
.service-material-row span small { display: block; color: #6b7d82; }
.service-material-entry {
  display: grid;
  grid-template-columns: minmax(180px, 2fr) 80px 90px 120px auto;
  gap: 8px;
  align-items: end;
  margin-top: 10px;
}

.service-file-upload-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.4fr) minmax(260px, 1fr);
  gap: 10px;
  align-items: end;
}

.service-review-layout,
.service-billing-layout {
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
}

.service-review-checklist { display: grid; gap: 7px; }
.service-submit-guidance,
.service-review-alert {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid #b8c8cc;
  border-left: 4px solid #4f7e8b;
  border-radius: 6px;
  background: #f6f9fa;
  color: #314b54;
}
.service-submit-guidance span,
.service-review-alert span { color: #60757c; font-size: 12px; line-height: 1.4; }
.service-review-alert.has-missing { border-left-color: #cc7a24; background: #fff8ef; }
.service-review-alert.is-complete { border-left-color: #3f8a5a; background: #f2f8f4; }
.service-review-check {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid #c9d3d5;
  border-radius: 6px;
  background: #fff;
  color: #405a62;
}
.service-review-check > div { display: grid; gap: 1px; min-width: 0; }
.service-review-check > div strong { color: #314b54; font-size: 13px; line-height: 1.25; }
.service-review-check > div small { color: #718288; font-size: 11px; line-height: 1.25; }
.service-review-check span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #dce5e7;
  font-weight: 900;
}
.service-review-check.complete span { background: #dcefe3; color: #277246; }
.service-review-check.missing span { background: #fff0dd; color: #a85e12; }
.service-review-summary textarea { min-height: 100px; }
.service-approval-note { align-self: center; color: #6b7d82; font-size: 12px; }

.service-closed-summary {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) minmax(300px, 1fr);
  gap: 18px;
  align-items: center;
  background: #eef7f1;
  border-color: #8eb59b;
}
.service-closed-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: #2f8150;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
}
.service-closed-summary p { margin: 4px 0 0; color: #5e7378; }
.service-closed-summary dl { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-closed-documents {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(190px, 0.38fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid #b9d1c1;
}
.service-closed-documents-heading {
  display: grid;
  gap: 3px;
}
.service-closed-documents-heading span,
.service-closed-document > span {
  color: #60766a;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.service-closed-documents-heading strong {
  color: #173d2a;
  font-size: 15px;
}
.service-closed-document-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.service-closed-document {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #83ad91;
  border-radius: 7px;
  background: #fff;
  color: #155f39;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(35, 83, 53, .08);
}
.service-closed-document:hover,
.service-closed-document:focus-visible {
  border-color: #347c51;
  box-shadow: 0 5px 14px rgba(35, 83, 53, .15);
  transform: translateY(-1px);
}
.service-closed-document strong {
  overflow-wrap: anywhere;
  font-size: 14px;
}
.service-closed-document small {
  overflow: hidden;
  color: #60736a;
  font-size: 10px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.service-closed-document.is-missing {
  border-color: #c7d4ca;
  background: #f6f8f6;
  box-shadow: none;
  color: #74827a;
}
.service-closed-document.is-missing small {
  white-space: normal;
}
.service-closed-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.service-ticket-page-heading {
  align-items: center;
}

.service-ticket-page-heading .eyebrow,
.service-ticket-page-heading h2 {
  margin: 0;
}

.service-ticket-heading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.service-mobile-overview-toggle {
  display: none;
}

.service-ticket-command-card {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(250px, 0.72fr) minmax(160px, 0.38fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid #aebfc3;
  border-left: 5px solid #0b7581;
  border-radius: 8px;
  background: #edf2f3;
}

.service-ticket-core,
.service-ticket-dispatch-card,
.service-ticket-metrics {
  min-width: 0;
  padding: 14px;
  border: 1px solid #c0cccf;
  border-radius: 7px;
  background: #f9fbfb;
}

.service-ticket-core-heading {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
}

.service-ticket-core-heading span,
.service-ticket-dispatch-card > span,
.service-ticket-request > span,
.service-ticket-sections > span,
.service-workflow-heading span {
  color: #647a80;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.service-ticket-core-heading h3,
.service-ticket-dispatch-card h3,
.service-workflow-heading h3 {
  margin: 2px 0;
  color: #17343d;
  font-size: 18px;
}

.service-ticket-core-heading h3 a {
  color: inherit;
}

.service-ticket-core-heading p {
  margin: 0;
  color: #62777c;
}

.service-ticket-request {
  margin: 13px 0;
  padding: 10px;
  border-left: 3px solid #ca8b3c;
  background: #f7f2e9;
}

.service-ticket-request p {
  margin: 3px 0 0;
  color: #344e56;
  line-height: 1.45;
}

.service-ticket-detail-list,
.service-ticket-dispatch-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 12px;
  margin: 0;
}

.service-ticket-detail-list div,
.service-ticket-dispatch-card dl div {
  min-width: 0;
}

.service-ticket-detail-list dt,
.service-ticket-dispatch-card dt {
  color: #71858a;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.service-ticket-detail-list dd,
.service-ticket-dispatch-card dd {
  margin: 2px 0 0;
  color: #29434b;
  overflow-wrap: anywhere;
}

.service-ticket-detail-list dd small {
  display: block;
  color: #6e8085;
}

.service-ticket-dispatch-card dl {
  grid-template-columns: 1fr;
  margin-top: 13px;
}

.service-ticket-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.service-ticket-metrics article {
  display: grid;
  align-content: center;
  min-height: 68px;
  padding: 8px;
  border: 1px solid #d2dcde;
  border-radius: 6px;
  background: #eef3f4;
}

.service-ticket-metrics span {
  color: #6e8186;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.service-ticket-metrics strong {
  color: #17343d;
  font-size: 17px;
}

html body:not(.login-active) .app-shell #projectDetail .service-ticket-map-card {
  min-width: 0;
  height: 300px;
  align-self: stretch;
  grid-area: auto / 1 / auto / -1 !important;
}

@media (min-width: 1700px) {
  .service-ticket-command-card {
    grid-template-columns: minmax(320px, 1fr) minmax(260px, 0.7fr) minmax(170px, 0.38fr) minmax(380px, 0.95fr);
  }
  html body:not(.login-active) .app-shell #projectDetail .service-ticket-map-card {
    grid-area: auto !important;
  }
}

.service-ticket-map-card .project-detail-map {
  min-height: 255px;
  height: 255px;
}

.service-ticket-sections,
.service-workflow-shell {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #b6c6ca;
  border-radius: 8px;
  background: #edf2f3;
}

.service-ticket-sections .pill-row {
  margin-top: 7px;
}

.service-workflow-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.service-workflow-heading h3 {
  margin: 1px 0 0;
}

.service-workflow-heading small {
  color: #61767c;
}

.service-progress-track {
  margin-bottom: 12px;
}

.service-phase-card {
  margin: 0;
  background: #f8fafa !important;
}

.service-leak-workflow {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #aebec3;
  border-radius: 8px;
  background: #eef2f3;
}

.service-leak-progress-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.service-leak-progress-head span {
  color: #586f77;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.service-leak-progress-head h4 {
  margin: 2px 0 0;
  color: #17343d;
  font-size: 21px;
}

.service-leak-progress-head p {
  margin: 4px 0 0;
  color: #5b7077;
  line-height: 1.4;
}

.service-leak-progress-head > strong {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid #9cafb5;
  border-radius: 6px;
  background: #fff;
  color: #274951;
  font-size: 12px;
}

.service-leak-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 6px;
  background: #d2dadd;
}

.service-leak-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #3f845e;
  transition: width 180ms ease;
}

.service-doc-stage {
  padding: 14px;
  border: 1px solid #c2cdd0;
  border-left: 4px solid #d09b45;
  border-radius: 7px;
  background: #fff;
}

.service-doc-stage.is-complete {
  border-left-color: #4e8b67;
}

.service-doc-stage > header {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  margin-bottom: 11px;
}

.service-doc-step {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #274a54;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.service-doc-stage > header h4,
.service-doc-entry h5 {
  margin: 0;
  color: #1b363e;
}

.service-doc-stage > header h4 {
  font-size: 17px;
}

.service-doc-stage > header p {
  margin: 3px 0 0;
  color: #667a80;
  font-size: 12px;
  line-height: 1.35;
}

.service-doc-status {
  align-self: start;
  padding: 4px 7px;
  border: 1px solid #bdc9cc;
  border-radius: 6px;
  background: #f3f6f7;
  color: #566c73;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.service-doc-stage.is-complete > header > .service-doc-status,
.service-doc-entry.is-complete .service-doc-status {
  border-color: #9dbba7;
  background: #edf7f0;
  color: #377052;
}

.service-doc-summary {
  margin: 0 0 10px;
  color: #405860;
  white-space: pre-wrap;
}

.service-doc-list {
  display: grid;
  gap: 9px;
  margin-bottom: 10px;
}

.service-doc-entry {
  padding: 11px;
  border: 1px solid #ced7d9;
  border-radius: 7px;
  background: #f7f9f9;
}

.service-doc-entry.is-incomplete {
  border-color: #d7bc90;
}

.service-doc-entry > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.service-doc-entry > header > div > span,
.service-doc-entry > header small {
  display: block;
  color: #687d83;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.service-doc-entry h5 {
  margin-top: 2px;
  font-size: 15px;
}

.service-doc-entry-copy {
  margin: 8px 0;
  color: #415960;
  line-height: 1.42;
}

.service-doc-entry-copy p {
  margin: 4px 0;
  white-space: pre-wrap;
}

.service-doc-links {
  display: grid;
  gap: 6px;
  margin: 9px 0;
  padding: 9px 10px;
  border: 1px solid #c5d1d4;
  border-left: 4px solid #6a8790;
  border-radius: 6px;
  background: #eef3f4;
}

.service-doc-links > span {
  color: #526970;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.service-doc-links > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.service-doc-link-chip {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 8px;
  border: 1px solid #aebfc3;
  border-radius: 5px;
  background: #fff;
  color: #294750;
  font-size: 10px;
  font-weight: 800;
}

.service-doc-links.no-links {
  border-left-color: #c69a4b;
  background: #fbf7ed;
}

.service-doc-links em {
  color: #6d7779;
  font-size: 11px;
  font-style: normal;
}

.service-doc-media-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: min(100%, 420px);
  max-width: 420px;
  min-width: 0;
  justify-self: start;
  gap: 7px;
  margin: 10px 0;
}

.service-doc-photo-carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
  background: #e7edef;
}

.service-doc-photo-carousel .service-doc-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  padding: 0;
  border-color: #b8c8cc;
  background: #e7edef;
}

.service-doc-photo-carousel .service-doc-thumb img,
.service-doc-photo-carousel .service-doc-thumb video {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  background: #e7edef;
}

.service-doc-media-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.service-doc-media-footer > span {
  color: #5e7278;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.service-doc-pin {
  min-height: 30px;
  padding: 5px 7px;
  border: 1px solid #b7c7cb;
  border-radius: 5px;
  background: #eef3f4;
  color: #31525b;
  font-size: 10px;
  box-shadow: none;
}

.service-doc-pin.is-missing {
  border-color: #d29c44;
  background: #fff7e8;
  color: #8a5b16;
}

.service-doc-pin.is-set {
  border-color: #8fb69d;
  background: #edf7f0;
  color: #326b4c;
}

.service-doc-entry-actions {
  display: flex;
  gap: 7px;
  justify-content: flex-end;
  margin-top: 8px;
}

.service-doc-empty {
  padding: 12px;
  border: 1px dashed #bdc9cc;
  border-radius: 6px;
  background: #f7f9fa;
  color: #6c7e83;
  text-align: center;
}

.service-doc-stage > button {
  min-height: 38px;
}

.service-leak-closeout {
  border-left: 4px solid #597d91;
}

.service-document-dialog-panel {
  width: min(720px, calc(100vw - 28px));
  max-height: min(820px, calc(100dvh - 28px));
  overflow: auto;
}

.service-document-dialog-copy {
  margin: 4px 0 15px;
  color: #5e7278;
  line-height: 1.45;
}

.service-document-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.service-document-form-grid label,
.service-document-upload > div:first-child {
  color: #455f67;
  font-size: 12px;
  font-weight: 800;
}

.service-document-form-grid textarea {
  min-height: 92px;
}

.service-document-wide {
  grid-column: 1 / -1;
}

.service-document-finding-links {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid #b9c9cd;
  border-radius: 7px;
  background: #f3f6f7;
}

.service-document-finding-links[hidden] {
  display: none;
}

.service-document-finding-links legend {
  padding: 0 5px;
  color: #294750;
  font-size: 12px;
  font-weight: 900;
}

.service-document-finding-links > p {
  margin: 0 0 9px;
  color: #62767c;
  font-size: 11px;
  line-height: 1.4;
}

#serviceDocumentFindingLinks {
  display: grid;
  gap: 6px;
}

#serviceDocumentFindingLinks > label {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-height: 42px;
  padding: 8px 9px;
  border: 1px solid #c4d0d3;
  border-radius: 6px;
  background: #fff;
  color: #294750;
  cursor: pointer;
}

#serviceDocumentFindingLinks input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
}

#serviceDocumentFindingLinks strong,
#serviceDocumentFindingLinks small {
  display: block;
}

#serviceDocumentFindingLinks strong {
  font-size: 11px;
}

#serviceDocumentFindingLinks small {
  margin-top: 2px;
  color: #6b7e83;
  font-size: 10px;
}

.service-document-link-empty {
  padding: 10px;
  border: 1px dashed #c3cdd0;
  border-radius: 6px;
  color: #6c7e83;
  font-size: 11px;
}

.service-document-upload {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #c6d1d4;
  border-radius: 7px;
  background: #f5f8f9;
}

.service-document-upload > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.service-document-upload > div:first-child span {
  color: #6c7e83;
  font-size: 11px;
  font-weight: 500;
  text-align: right;
}

.service-document-dialog-panel menu {
  position: sticky;
  bottom: -1px;
  margin: 14px -2px -2px;
  padding: 10px 2px 2px;
  background: #fff;
}

@media (max-width: 1100px) {
  .service-kpi-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-dispatch-layout,
  .service-travel-panel,
  .service-review-layout,
  .service-billing-layout { grid-template-columns: 1fr; }
  .service-material-entry { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-material-entry button { grid-column: 1 / -1; }
  .service-ticket-command-card { grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr); }
  .service-ticket-metrics { grid-column: 1; }
  html body:not(.login-active) .app-shell #projectDetail .service-ticket-map-card {
    grid-area: 1 / 2 / span 2 / 3 !important;
  }
}

@media (max-width: 720px) {
  .service-command-head { align-items: stretch; padding: 16px; flex-direction: column; }
  .service-command-head h2 { font-size: 23px; }
  .service-new-ticket-button { width: 100%; }
  .service-kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-kpi-strip article { min-height: 84px; padding: 11px; }
  .service-kpi-strip strong { font-size: 22px; }
  .service-queue-grid,
  .service-queue-grid.single-queue { display: block; overflow: visible; }
  .service-queue-column { min-width: 0; margin-bottom: 10px; }
  .service-intake-create-fields,
  .service-form-grid,
  .service-file-upload-row,
  .service-timer-bar,
  .service-material-entry,
  .service-closed-summary { grid-template-columns: 1fr; }
  .service-field-wide { grid-column: auto; }
  .service-timer-bar .service-timer-actions { justify-content: flex-start; }
  .service-material-row { grid-template-columns: minmax(0, 1fr) auto; }
  .service-material-row button { grid-column: 1 / -1; justify-self: start; }
  .service-closed-summary dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-closed-documents { grid-template-columns: 1fr; }
  .service-closed-document-links { grid-template-columns: 1fr; }
  .service-closed-actions { display: grid; grid-template-columns: 1fr; }
  .service-ticket-page-heading,
  .service-workflow-heading { align-items: stretch; flex-direction: column; }
  .service-ticket-heading-actions { justify-content: flex-start; }
  .service-mobile-overview-toggle {
    align-items: center;
    display: flex;
    justify-content: space-between;
    order: -1;
    width: 100%;
  }
  .service-ticket-mobile-overview.mobile-overview-collapsed {
    display: none !important;
  }
  .service-ticket-command-card { grid-template-columns: 1fr; padding: 8px; }
  .service-ticket-metrics { grid-column: auto; grid-row: auto; }
  html body:not(.login-active) .app-shell #projectDetail .service-ticket-map-card {
    grid-area: auto !important;
  }
  .service-ticket-map-card { height: 240px; }
  .service-ticket-map-card .project-detail-map { min-height: 195px; height: 195px; }
  .service-ticket-core-heading { flex-direction: column; }
  .service-ticket-detail-list { grid-template-columns: 1fr 1fr; }
  .service-workflow-shell { margin-top: 8px; padding: 8px; }
  .service-leak-workflow { padding: 10px; }
  .service-leak-progress-head { align-items: stretch; flex-direction: column; gap: 8px; }
  .service-leak-progress-head > strong { align-self: flex-start; }
  .service-doc-stage { padding: 11px; }
  .service-doc-stage > header { grid-template-columns: 30px minmax(0, 1fr); }
  .service-doc-stage > header > .service-doc-status { grid-column: 2; justify-self: start; }
  .service-doc-entry > header { align-items: stretch; flex-direction: column; gap: 6px; }
  .service-doc-entry .service-doc-status { align-self: flex-start; }
  .service-doc-media-stack {
    width: 100%;
    max-width: none;
  }
  .service-doc-photo-carousel,
  .service-doc-photo-carousel .service-doc-thumb { aspect-ratio: 4 / 3; }
  .service-doc-entry-actions > button,
  .service-doc-stage > button { min-height: 44px; }
  .service-document-dialog-panel {
    width: calc(100vw - 12px);
    max-height: calc(100dvh - 12px);
    padding: 16px 12px;
  }
  .service-document-form-grid { grid-template-columns: 1fr; }
  .service-document-wide { grid-column: auto; }
  .service-document-upload > div:first-child { align-items: flex-start; flex-direction: column; }
  .service-document-upload > div:first-child span { text-align: left; }
  .service-document-dialog-panel menu { display: grid; grid-template-columns: 1fr 1fr; }
  .service-document-dialog-panel menu button { min-height: 44px; }
}

/* Shared service material catalog */
.service-operations-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  padding: 5px;
  border: 1px solid #b9c9cd;
  border-radius: 9px;
  background: #e8eef0;
}

.service-operations-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 16px;
  border: 0 !important;
  background: transparent !important;
  color: #36545c !important;
  box-shadow: none !important;
}

.service-operations-tabs button.active {
  background: #173f49 !important;
  color: #fff !important;
}

.service-operations-tabs button span {
  display: inline-grid;
  min-width: 24px;
  min-height: 22px;
  padding: 2px 6px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.72rem;
}

.service-material-command-head {
  align-items: flex-start;
}

.service-material-command-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.service-material-command-actions .button,
.service-material-template-card .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid #8ca7ad;
  border-radius: 6px;
  background: #fff;
  color: #214d57;
  font-weight: 800;
  text-decoration: none;
}

.service-material-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.service-material-kpis article {
  min-height: 92px;
  padding: 14px 16px;
  border: 1px solid #b5c6ca;
  border-radius: 7px;
  background: #f7f9f9;
}

.service-material-kpis span,
.service-material-kpis small {
  display: block;
  color: #60767c;
}

.service-material-kpis span {
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.service-material-kpis strong {
  display: block;
  margin: 4px 0;
  color: #17343d;
  font-size: 1.65rem;
}

.service-material-template-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid #99b7ac;
  border-left: 5px solid #257755;
  border-radius: 8px;
  background: #eff7f2;
}

.service-material-template-card p {
  max-width: 980px;
  margin: 4px 0 0;
  color: #536d64;
  line-height: 1.45;
}

.service-material-list-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 0.45fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #b9c9cd;
  border-radius: 8px;
  background: #f4f7f7;
}

.service-material-list-toolbar label {
  display: grid;
  gap: 5px;
  color: #49636a;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.service-material-list-toolbar input,
.service-material-list-toolbar select {
  min-height: 40px;
  background: #fff;
  text-transform: none;
}

.service-material-list-count {
  display: grid;
  min-width: 130px;
  justify-items: end;
}

.service-material-list-count strong {
  color: #17343d;
  font-size: 1.45rem;
}

.service-material-list-count span {
  color: #697d82;
  font-size: 0.73rem;
}

.service-material-category-list {
  display: grid;
  gap: 12px;
}

.service-material-category {
  overflow: hidden;
  border: 1px solid #acbfc3;
  border-radius: 8px;
  background: #fff;
}

.service-material-category > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid #bccace;
  background: #dfe9eb;
}

.service-material-category.is-collapsed > header {
  border-bottom: 0;
}

.service-material-category-toggle,
.service-material-category-summary {
  flex: 1 1 auto;
  min-width: 0;
}

.service-material-category-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 44px;
  padding: 4px 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  color: #183b45;
  text-align: left;
}

.service-material-category-toggle:hover {
  background: rgba(255, 255, 255, 0.62);
}

.service-material-category-toggle:focus-visible {
  outline: 3px solid rgba(37, 119, 85, 0.34);
  outline-offset: 2px;
}

.service-material-category-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.service-material-category-copy strong {
  overflow: hidden;
  font-size: 1rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-material-category-copy small {
  color: #647a80;
  font-size: 0.72rem;
  font-weight: 750;
}

.service-material-category-toggle-state {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  color: #315b64;
  font-size: 0.72rem;
  font-weight: 850;
}

.service-material-category-toggle-state i {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 140ms ease;
}

.service-material-category-toggle[aria-expanded="true"] .service-material-category-toggle-state i {
  transform: rotate(45deg);
}

.service-material-category > header .ghost {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.72);
}

.service-material-category-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.service-material-modifier {
  display: grid;
  gap: 3px;
  color: #385a62;
  font-size: 0.65rem;
  font-weight: 850;
  text-transform: uppercase;
}

.service-material-modifier-control {
  display: grid;
  grid-template-columns: 88px auto auto;
  align-items: center;
  gap: 5px;
}

.service-material-modifier-control input {
  min-width: 0;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid #8ca7ad;
  border-radius: 6px;
  background: #fff;
  font-weight: 800;
}

.service-material-modifier-control b {
  color: #264c55;
  font-size: 0.82rem;
}

.service-material-modifier small {
  color: #657a80;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: none;
}

.service-material-category h3,
.service-material-category p {
  margin: 0;
}

.service-material-category h3 {
  color: #183b45;
  font-size: 1rem;
}

.service-material-category p {
  margin-top: 2px;
  color: #647a80;
  font-size: 0.72rem;
}

.service-material-category .table-wrap {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.service-material-category table {
  min-width: 1180px;
}

.service-material-category th {
  background: #f0f4f5;
  color: #49646b;
  font-size: 0.67rem;
  text-transform: uppercase;
}

.service-material-category td {
  vertical-align: top;
}

.service-material-category td:nth-child(6),
.service-material-category td:nth-child(7) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.service-material-category td strong,
.service-material-category td small,
.service-material-category td span {
  display: block;
}

.service-material-category td small {
  margin-top: 3px;
  color: #718287;
}

.service-material-category td .service-material-price-history {
  color: #4f686f;
  font-weight: 750;
  line-height: 1.35;
}

.service-material-load-more {
  display: block;
  width: min(420px, 100%);
  margin: 14px auto;
}

.service-catalog-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 92px;
}

.service-material-dialog-panel {
  width: min(760px, calc(100vw - 28px));
}

.service-material-dialog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-top: 16px;
}

.service-material-dialog-grid label {
  display: grid;
  gap: 5px;
  color: #49636a;
  font-size: 0.75rem;
  font-weight: 800;
}

.service-material-sale-price {
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid #9ebbb1;
  border-radius: 6px;
  background: #edf6f1;
  color: #0d6849;
  font-size: 1rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.service-material-dialog-grid label > small {
  color: #657a80;
  font-size: 0.65rem;
  font-weight: 650;
}

.service-material-dialog-grid .span-2 {
  grid-column: span 2;
}

.service-material-category-picker {
  min-width: 0;
  margin: 2px 0 0;
  padding: 12px;
  border: 1px solid #b7c9cc;
  border-radius: 7px;
  background: #f6f9f9;
}

.service-material-category-picker legend {
  padding: 0 5px;
  color: #36575f;
  font-size: 0.75rem;
  font-weight: 850;
}

.service-material-category-picker p {
  margin: 0 0 10px;
  color: #657a80;
  font-size: 0.7rem;
}

.service-material-category-picker > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 12px;
}

.service-material-category-picker > div label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: #294b53;
  font-size: 0.72rem;
  font-weight: 700;
}

.service-material-category-picker input {
  width: 17px;
  height: 17px;
  margin: 0;
}

@media (max-width: 820px) {
  .service-material-command-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .service-material-kpis {
    grid-template-columns: 1fr;
  }

  .service-material-template-card,
  .service-material-list-toolbar {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .service-material-template-card {
    flex-direction: column;
  }

  .service-material-category > header,
  .service-material-category-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .service-material-category-actions > .ghost {
    width: 100%;
  }

  .service-material-modifier-control {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .service-material-template-card .button {
    width: 100%;
  }

  .service-material-list-count {
    justify-items: start;
  }
}

@media (max-width: 620px) {
  .service-operations-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .service-operations-tabs button {
    min-width: 0;
    padding-inline: 8px;
  }

  .service-material-dialog-panel {
    width: calc(100vw - 12px);
    padding: 16px 12px;
  }

  .service-material-dialog-grid {
    grid-template-columns: 1fr;
  }

  .service-material-dialog-grid .span-2 {
    grid-column: auto;
  }

  .service-material-category-picker > div {
    grid-template-columns: 1fr;
  }
}

.service-repair-command-head {
  align-items: flex-start;
}

.service-repair-list-toolbar {
  grid-template-columns: minmax(0, 1fr) auto;
}

.service-repair-category-list {
  display: grid;
  gap: 12px;
}

.service-repair-category {
  overflow: hidden;
  border: 1px solid #c8d6da;
  border-radius: 10px;
  background: #f8fafb;
  box-shadow: 0 5px 16px rgba(24, 52, 61, 0.06);
}

.service-repair-category > summary {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
  background: #fff;
  color: #17343c;
}

.service-repair-category > summary::-webkit-details-marker,
.service-repair-card > summary::-webkit-details-marker {
  display: none;
}

.service-repair-category > summary > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.service-repair-category > summary strong,
.service-repair-category > summary small {
  display: block;
}

.service-repair-category > summary strong {
  font-size: 1.05rem;
}

.service-repair-category > summary small {
  margin-top: 2px;
  color: #6a7e84;
  font-weight: 700;
}

.service-repair-category-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid #b6d2d5;
  border-radius: 7px;
  background: #e9f3f4;
  color: #176b72;
  font-weight: 900;
}

.service-repair-category-toggle,
.service-repair-card-summary {
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-repair-category-toggle {
  color: #557078;
  font-size: 0.75rem;
  font-weight: 800;
}

.service-repair-category-toggle i,
.service-repair-card-summary i {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.service-repair-category[open] > summary {
  border-bottom: 1px solid #d5e0e3;
}

.service-repair-category[open] > summary .service-repair-category-toggle i,
.service-repair-card[open] > summary .service-repair-card-summary i {
  transform: rotate(225deg);
}

.service-repair-category > .service-repair-grid {
  padding: 12px;
}

.service-repair-grid {
  display: grid;
  gap: 8px;
}

.service-repair-card {
  border: 1px solid #c8d6da;
  border-left: 4px solid #168c94;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(24, 52, 61, 0.05);
}

.service-repair-card > summary {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
}

.service-repair-card-title {
  min-width: 0;
}

.service-repair-card-summary {
  flex: 0 0 auto;
  color: #61777e;
  font-size: 0.72rem;
  font-weight: 800;
}

.service-repair-card-summary > strong {
  min-width: 64px;
  padding: 6px 8px;
  border-radius: 999px;
  background: #e6f4f5;
  color: #116a71;
  text-align: center;
}

.service-repair-card-body {
  display: grid;
  gap: 14px;
  padding: 0 14px 14px;
  border-top: 1px solid #e0e7e9;
}

.service-repair-card-body > p {
  padding-top: 14px;
}

.service-repair-card footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.service-repair-card-title > span,
.service-repair-card section > span {
  display: block;
  margin-bottom: 4px;
  color: #61777e;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-repair-card h3,
.service-repair-card p {
  margin: 0;
}

.service-repair-card h3 {
  color: #17343c;
  font-size: 1.18rem;
}

.service-repair-card-body > p,
.service-repair-procedure p {
  color: #4c6269;
  line-height: 1.5;
  white-space: pre-wrap;
}

.service-repair-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-repair-card li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 7px;
  background: #f2f6f7;
  color: #2f4850;
}

.service-repair-card li small {
  color: #70858c;
}

.service-repair-card footer {
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #d8e1e4;
}

.service-repair-card footer > small {
  color: #61777e;
  font-weight: 700;
}

.service-repair-dialog-panel {
  width: min(920px, calc(100vw - 28px));
}

.service-repair-dialog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.service-repair-dialog-grid label,
.service-repair-material-row label {
  display: grid;
  gap: 5px;
  color: #49636a;
  font-size: 0.75rem;
  font-weight: 800;
}

.service-repair-dialog-grid .span-2 {
  grid-column: span 2;
}

.service-repair-material-editor {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #c9d7db;
  border-radius: 10px;
  background: #f5f8f9;
}

.service-repair-material-editor > header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 10px;
}

.service-repair-material-editor > header strong,
.service-repair-material-editor > header small {
  display: block;
}

.service-repair-material-editor > header small {
  margin-top: 3px;
  color: #667c83;
}

.service-repair-material-lines {
  display: grid;
  gap: 8px;
}

.service-repair-material-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 130px 92px auto;
  gap: 9px;
  align-items: end;
  padding: 10px;
  border: 1px solid #d5e0e3;
  border-radius: 8px;
  background: #fff;
}

.service-repair-material-search {
  position: relative;
  display: grid;
  gap: 4px;
}

.service-repair-material-search > small {
  color: #71858b;
}

.service-repair-material-row > strong {
  min-height: 42px;
  display: grid;
  place-items: center;
  color: #26444c;
}

.service-repair-reference-preview,
.service-repair-reference-badge {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid #b8d7da;
  border-left: 5px solid #168c94;
  border-radius: 8px;
  background: #eef7f7;
  color: #38555d;
}

.service-repair-reference-preview strong,
.service-repair-reference-badge strong {
  color: #173b43;
}

.service-repair-reference-preview small {
  margin-top: 3px;
  line-height: 1.4;
  white-space: pre-wrap;
}

.service-repair-reference-badge {
  margin: 8px 0;
  padding-block: 8px;
}

.service-repair-reference-badge > span {
  color: #537077;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .service-repair-list-toolbar,
  .service-repair-dialog-grid {
    grid-template-columns: 1fr;
  }

  .service-repair-dialog-grid .span-2 {
    grid-column: auto;
  }

  .service-repair-grid {
    grid-template-columns: 1fr;
  }

  .service-repair-category > summary,
  .service-repair-card > summary {
    gap: 10px;
    padding-inline: 11px;
  }

  .service-repair-category-toggle {
    font-size: 0;
  }

  .service-repair-card-summary > span {
    display: none;
  }

  .service-repair-card h3 {
    font-size: 1rem;
  }

  .service-repair-card footer {
    align-items: stretch;
    flex-direction: column;
  }

  .service-repair-card footer .row-actions {
    justify-content: flex-end;
  }

  .service-repair-material-row {
    grid-template-columns: minmax(0, 1fr) 105px;
  }

  .service-repair-material-search {
    grid-column: 1 / -1;
  }

  .service-repair-material-row > strong {
    justify-items: start;
  }
}
/* Material tracker */
.material-inventory-command-head .row-actions { justify-content: flex-end; }
.material-inventory-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.material-inventory-kpis .is-alert { border-color: #d39b32; background: #fff8e8; }
.material-inventory-locations { display: flex; gap: 9px; margin: 14px 0; padding: 3px 1px 8px; overflow-x: auto; scrollbar-width: thin; }
.material-inventory-locations button { display: grid; flex: 0 0 190px; gap: 2px; min-height: 72px; padding: 10px 13px; border: 1px solid #b8c8cc; border-radius: 7px; background: #f8faf9; color: #223d43; text-align: left; }
.material-inventory-locations button > span { color: #6a7c82; font-size: 0.62rem; font-weight: 900; letter-spacing: 0.1em; }
.material-inventory-locations button strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.material-inventory-locations button small { color: #63767c; }
.material-inventory-locations button.active { border-color: #217981; box-shadow: inset 0 -4px #217981; background: #e9f2f2; }
.material-inventory-ledger, .material-inventory-history { margin-top: 12px; padding: 17px; border: 1px solid #b8c9cd; border-radius: 8px; background: #f7f9f9; }
.material-inventory-ledger > header { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 12px; }
.material-inventory-ledger h3, .material-inventory-history h3 { margin: 2px 0 0; color: #17383e; }
.material-inventory-ledger > header > span { color: #61767d; font-size: 0.78rem; }
.material-inventory-table-wrap { overflow-x: auto; }
.material-inventory-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.material-inventory-table th { padding: 9px 10px; border-bottom: 2px solid #9fb5ba; color: #557078; font-size: 0.67rem; letter-spacing: 0.06em; text-align: left; text-transform: uppercase; }
.material-inventory-table td { padding: 10px; border-bottom: 1px solid #d4dee0; color: #29434a; vertical-align: middle; }
.material-inventory-table td small { display: block; margin-top: 2px; color: #718288; }
.material-inventory-table tr.is-low { background: #fff9e9; }
.material-stock-status { display: inline-flex; padding: 4px 8px; border-radius: 999px; background: #e7f3ed; color: #176348; font-size: 0.69rem; font-weight: 850; }
.material-stock-status.low { background: #fff0c9; color: #805b0a; }
.material-inventory-history > div { display: grid; gap: 2px; margin-top: 11px; }
.material-inventory-history article { display: grid; grid-template-columns: minmax(0, 1fr) auto 150px; gap: 14px; align-items: center; padding: 9px 10px; border-bottom: 1px solid #d5dfe1; }
.material-inventory-history article span strong, .material-inventory-history article span small { display: block; }
.material-inventory-history article span small, .material-inventory-history time { color: #6a7e84; font-size: 0.74rem; }
.material-inventory-search { position: relative; }
.material-inventory-search .service-material-suggestions { top: calc(100% + 4px); left: 0; right: 0; }
.fleet-service-truck-toggle { display: flex !important; align-items: center; gap: 9px; min-height: 42px; }
.fleet-service-truck-toggle input { width: 18px; height: 18px; margin: 0; }

@media (max-width: 720px) {
  .material-inventory-kpis { grid-template-columns: 1fr; }
  .material-inventory-command-head .row-actions, .material-inventory-command-head .row-actions button { width: 100%; }
  .material-inventory-ledger, .material-inventory-history { padding: 12px; }
  .material-inventory-history article { grid-template-columns: 1fr auto; }
  .material-inventory-history time { grid-column: 1 / -1; }
}
