/* src/client/inventory-repair.css */
.inventory-repair-panel {
  color: #334155;
  font-size: 14px;
  line-height: 1.55;
}
.inventory-repair-root {
  clear: both;
  margin-top: 14px;
  min-width: 0;
}
.inventory-repair-subtabs {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin: 0 0 12px;
  border-bottom: 1px solid #dfe8f1;
  font-size: 14px;
}
.inventory-repair-subtabs button {
  margin: 0 0 -1px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  line-height: 1.4;
  padding: 8px 12px;
}
.inventory-repair-subtabs button:hover {
  background: #f4f9fd;
  color: #185fa5;
}
.inventory-repair-subtabs button[aria-selected=true] {
  border-color: #b9d5ed;
  background: #edf7ff;
  color: #185fa5;
}
.inventory-repair-link {
  color: #185fa5;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.inventory-repair-link:hover {
  color: #0c447c;
  text-decoration: underline;
}
.inventory-repair-panel *,
.inventory-repair-panel *::before,
.inventory-repair-panel *::after {
  box-sizing: border-box;
}
.inventory-repair-card {
  overflow: hidden;
  border: 1px solid #dfe8f1;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(15 23 42 / 4%);
}
.inventory-repair-header,
.inventory-repair-toolbar,
.inventory-repair-editor-head,
.inventory-repair-confirm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.inventory-repair-header {
  padding: 14px 16px 10px;
}
.inventory-repair-title {
  margin: 0;
  color: #1e293b;
  font-size: 15px;
  font-weight: 650;
}
.inventory-repair-subtitle,
.inventory-repair-muted {
  margin: 2px 0 0;
  color: #64748b;
  font-size: 12px;
}
.inventory-repair-toolbar {
  flex-wrap: wrap;
  padding: 10px 16px;
  border-top: 1px solid #edf2f7;
  border-bottom: 1px solid #edf2f7;
  background: #fbfdff;
}
.inventory-repair-filter {
  display: flex;
  min-width: min(100%, 410px);
  flex: 1 1 300px;
  align-items: center;
  gap: 8px;
}
.inventory-repair-label {
  flex: 0 0 auto;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
}
.inventory-repair-input,
.inventory-repair-select,
.inventory-repair-textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #1e293b;
  font: inherit;
  line-height: 1.4;
  outline: none;
}
.inventory-repair-input,
.inventory-repair-select {
  min-height: 32px;
  padding: 6px 8px;
}
.inventory-repair-textarea {
  min-height: 58px;
  resize: vertical;
  padding: 7px 8px;
}
.inventory-repair-input:focus,
.inventory-repair-select:focus,
.inventory-repair-textarea:focus {
  border-color: #5b9bd5;
  box-shadow: 0 0 0 3px rgb(24 95 165 / 12%);
}
.inventory-repair-actions,
.inventory-repair-row-actions,
.inventory-repair-page-actions,
.inventory-repair-editor-actions,
.inventory-repair-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.inventory-repair-button {
  min-height: 30px;
  border: 1px solid #b7c7d9;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 7px 10px;
}
.inventory-repair-button:hover:not(:disabled) {
  border-color: #83b3df;
  background: #f4f9fd;
  color: #185fa5;
}
.inventory-repair-button:focus-visible {
  outline: 2px solid #5b9bd5;
  outline-offset: 2px;
}
.inventory-repair-button:disabled {
  cursor: not-allowed;
  opacity: .52;
}
.inventory-repair-button-primary {
  border-color: #185fa5;
  background: #185fa5;
  color: #fff;
}
.inventory-repair-button-primary:hover:not(:disabled) {
  border-color: #0c447c;
  background: #0c447c;
  color: #fff;
}
.inventory-repair-button-danger {
  border-color: #efb5b5;
  color: #b42318;
}
.inventory-repair-alert,
.inventory-repair-notice,
.inventory-repair-warning {
  margin: 10px 16px 0;
  border: 1px solid;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 12px;
}
.inventory-repair-alert {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b42318;
}
.inventory-repair-notice {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #185fa5;
}
.inventory-repair-warning {
  border-color: #f7d9a1;
  background: #fffbeb;
  color: #854d0e;
}
.inventory-repair-table-wrap {
  width: 100%;
  overflow-x: auto;
}
.inventory-repair-table {
  width: 100%;
  min-width: 930px;
  border-collapse: collapse;
}
.inventory-repair-table th,
.inventory-repair-table td {
  border-bottom: 1px solid #edf2f7;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.inventory-repair-table th {
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.inventory-repair-table td {
  color: #334155;
  font-size: 12px;
}
.inventory-repair-table tbody tr:hover {
  background: #fbfdff;
}
.inventory-repair-cell-main {
  display: block;
  color: #1e293b;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.inventory-repair-cell-sub {
  display: block;
  margin-top: 2px;
  color: #64748b;
  overflow-wrap: anywhere;
}
.inventory-repair-cell-error {
  max-width: 260px;
  color: #b42318;
  overflow-wrap: anywhere;
}
.inventory-repair-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
  white-space: nowrap;
}
.inventory-repair-badge-pending,
.inventory-repair-badge-error {
  background: #fff1f2;
  color: #b42318;
}
.inventory-repair-badge-ready {
  background: #ecfdf5;
  color: #047857;
}
.inventory-repair-badge-queued {
  background: #eff6ff;
  color: #185fa5;
}
.inventory-repair-badge-success {
  background: #ecfdf5;
  color: #047857;
}
.inventory-repair-badge-existing {
  background: #f1f5f9;
  color: #475569;
}
.inventory-repair-empty,
.inventory-repair-loading {
  padding: 28px 16px;
  color: #64748b;
  font-size: 13px;
  text-align: center;
}
.inventory-repair-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
}
.inventory-repair-page-text {
  color: #64748b;
  font-size: 12px;
}
.inventory-repair-editor,
.inventory-repair-confirm {
  margin: 14px 16px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #fafdff;
  padding: 13px;
}
.inventory-repair-confirm {
  border-color: #f7d9a1;
  background: #fffbeb;
}
.inventory-repair-editor-title,
.inventory-repair-confirm-title {
  margin: 0;
  color: #1e293b;
  font-size: 14px;
  font-weight: 650;
}
.inventory-repair-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 12px;
  margin-top: 12px;
}
.inventory-repair-field {
  min-width: 0;
}
.inventory-repair-field-wide {
  grid-column: span 2;
}
.inventory-repair-field-full {
  grid-column: 1 / -1;
}
.inventory-repair-field-label {
  display: block;
  margin-bottom: 4px;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
}
.inventory-repair-required {
  color: #b42318;
}
.inventory-repair-check {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  color: #475569;
  font-size: 12px;
}
.inventory-repair-check input {
  margin: 0;
}
.inventory-repair-details {
  margin-top: 12px;
  border-top: 1px dashed #dbe5ef;
  padding-top: 10px;
}
.inventory-repair-details summary {
  cursor: pointer;
  color: #185fa5;
  font-size: 12px;
  font-weight: 600;
}
.inventory-repair-details .inventory-repair-grid {
  margin-top: 10px;
}
.inventory-repair-editor-actions,
.inventory-repair-confirm-actions {
  justify-content: flex-end;
  margin-top: 13px;
}
.inventory-repair-inline-warning {
  margin: 8px 0 0;
  color: #b45309;
  font-size: 12px;
}
.inventory-repair-readonly {
  color: #64748b;
  font-size: 12px;
}
@media (max-width: 760px) {
  .inventory-repair-header,
  .inventory-repair-toolbar,
  .inventory-repair-pagination {
    align-items: flex-start;
    flex-direction: column;
  }
  .inventory-repair-filter {
    width: 100%;
    min-width: 0;
  }
  .inventory-repair-grid {
    grid-template-columns: 1fr;
  }
  .inventory-repair-field-wide,
  .inventory-repair-field-full {
    grid-column: auto;
  }
}
