#work-type-management-page { display: grid; gap: 12px; }
.work-type-grid { display: grid; grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); gap: 12px; align-items: start; }
.work-type-editor, .technician-type-panel, .rate-tier-panel { padding: 16px; }
.work-type-list-panel { min-width: 0; }
.work-type-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.work-type-section-title h2 { font-size: 17px; }
.work-type-section-title .muted { margin-top: 3px; }
.work-type-table { min-width: 760px; }
.rate-row-actions { display: flex; gap: 5px; flex-wrap: wrap; }

.rate-work-type-select { width: min(280px, 100%); margin: 0; }
.rate-tier-grid { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 16px; align-items: start; }
.rate-tier-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rate-tier-form .rate-tier-actions, .rate-tier-form .error { grid-column: 1 / -1; }
.rate-tier-actions { display: flex; justify-content: flex-end; gap: 8px; }
.rate-tier-table-wrap { min-width: 0; }
.rate-tier-table { min-width: 520px; }

.technician-select-label { width: min(420px, 100%); margin-bottom: 12px; }
.technician-type-checks { display: grid; gap: 8px; }
.technician-work-type-row { display: grid; grid-template-columns: minmax(180px, 1.2fr) minmax(210px, 1fr) minmax(160px, .8fr) minmax(180px, .9fr); gap: 10px; align-items: end; padding: 10px 12px; border: 1px solid #d8dee6; background: #fff; }
.technician-work-type-row.is-selected { border-color: #9fb7ca; background: #f8fbfd; }
.technician-work-type-row.is-inactive { opacity: .65; }
.technician-work-type-name { display: flex; gap: 9px; align-items: center; margin: 0; }
.technician-work-type-name input { width: 16px; height: 16px; margin: 0; }
.technician-work-type-name span { min-width: 0; }
.technician-work-type-name strong { display: block; color: #2c3742; font-size: 13px; font-weight: 600; }
.technician-work-type-name small { display: block; margin-top: 2px; color: #718096; font-size: 11px; }
.technician-work-type-row > label { margin: 0; }
.technician-resolved-amount { min-height: 38px; display: flex; align-items: center; padding: 0 10px; border: 1px solid #d8dee6; background: #f6f8fa; color: #33546d; font-size: 12px; font-weight: 600; }

@media (max-width: 1100px) {
  .work-type-grid, .rate-tier-grid { grid-template-columns: 1fr; }
  .technician-work-type-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .work-type-editor, .technician-type-panel, .rate-tier-panel { padding: 14px; }
  .work-type-section-title { align-items: flex-start; flex-direction: column; }
  .rate-work-type-select { width: 100%; }
  .rate-tier-form { grid-template-columns: 1fr; }
  .rate-tier-form .rate-tier-actions, .rate-tier-form .error { grid-column: auto; }
  .technician-work-type-row { grid-template-columns: 1fr; align-items: stretch; }
  .technician-resolved-amount { min-height: 34px; }
}

.work-type-delete-button {
  border-color: #d9a4a4 !important;
  color: #a13a3a !important;
  background: #fff !important;
}
.work-type-delete-button:hover:not(:disabled) {
  border-color: #b85a5a !important;
  background: #fff5f5 !important;
  color: #8f2626 !important;
}
