/* Codex 2026-06-27: compact repair order center columns. */
.pool-table {
  min-width: 1120px !important;
}

.pool-table th,
.pool-table td {
  padding-left: 10px;
  padding-right: 10px;
}

.pool-table th:nth-child(1),
.pool-table col:nth-child(1),
.pool-table td:nth-child(1) {
  width: 106px !important;
}

.pool-table th:nth-child(2),
.pool-table col:nth-child(2),
.pool-table td:nth-child(2) {
  width: 92px !important;
}

.pool-table th:nth-child(3),
.pool-table col:nth-child(3),
.pool-table td:nth-child(3) {
  width: 150px !important;
}

.pool-table th:nth-child(4),
.pool-table col:nth-child(4),
.pool-table td:nth-child(4) {
  width: 120px !important;
}

.pool-table th:nth-child(5),
.pool-table col:nth-child(5),
.pool-table td:nth-child(5) {
  width: 140px !important;
}

.pool-table th:nth-child(6),
.pool-table col:nth-child(6),
.pool-table td:nth-child(6) {
  width: 136px !important;
}

.pool-table th:nth-child(7),
.pool-table col:nth-child(7),
.pool-table td:nth-child(7) {
  width: 112px !important;
  min-width: 112px !important;
}

.pool-table td:nth-child(7) {
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  font-variant-numeric: tabular-nums;
}

.pool-table td:nth-child(7) b {
  display: inline-block;
  min-width: max-content;
}

.pool-table th:nth-child(8),
.pool-table col:nth-child(8),
.pool-table td:nth-child(8) {
  width: 102px !important;
}

.pool-table th:nth-child(9),
.pool-table col:nth-child(9),
.pool-table td:nth-child(9) {
  width: 96px !important;
}

.pool-table th:nth-child(10),
.pool-table col:nth-child(10),
.pool-table td:nth-child(10) {
  width: 92px !important;
}

.pool-table th:last-child,
.pool-table td.pool-action-cell {
  min-width: 130px !important;
  width: 130px !important;
}

.pool-row-actions {
  gap: 6px;
  justify-content: flex-start;
}

.pool-row-actions button {
  font-size: 12px;
  white-space: nowrap;
}

.pool-row-actions button.returned {
  color: #e66a00;
}

.pool-row-actions button.pickup {
  color: #005bc0;
}

.pool-row-actions button.pickup:disabled {
  color: #94a3b8;
  text-decoration: none;
}

.pool-device-cell b,
.pool-customer-cell b {
  font-size: 13px;
}

.pool-device-cell span,
.pool-customer-cell span {
  font-size: 11px;
}

.pool-table td.pool-device-td,
.pool-table td.pool-customer-td,
.pool-table td.pool-fault-td {
  line-height: 1.35;
}

/* Codex 2026-06-27: flatten customer fault chips in the create-order modal. */
.create-order-modal .customer-fault-picker {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 120px minmax(0, 1fr) !important;
  align-items: flex-start;
  column-gap: 14px;
}

.create-order-modal .info-line.customer-fault-picker,
.create-order-modal .order-editable-line.customer-fault-picker {
  grid-column: 1 / -1 !important;
  display: grid !important;
  grid-template-columns: 92px minmax(0, 1fr) !important;
  align-items: flex-start !important;
  gap: 8px 12px !important;
  position: relative !important;
}

.create-order-modal .customer-fault-picker > .order-field-label {
  padding-top: 8px;
}

.create-order-modal .customer-fault-options,
.create-order-modal .create-order-grid .ant-checkbox-group,
.create-order-modal .create-order-grid .ant-radio-group {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  max-height: 240px;
  overflow-y: auto;
  padding: 2px 0;
}

.create-order-modal .info-line.customer-fault-picker .customer-fault-options,
.create-order-modal .order-editable-line.customer-fault-picker .customer-fault-options {
  display: flex !important;
  flex-flow: row wrap !important;
  align-content: flex-start !important;
  width: 100% !important;
  max-height: 260px !important;
  min-height: 190px !important;
  padding-right: 170px !important;
}

.create-order-modal .customer-fault-options .fault-chip,
.create-order-modal .create-order-grid .ant-checkbox-wrapper,
.create-order-modal .create-order-grid .ant-radio-button-wrapper {
  flex: 0 0 auto;
  margin: 0 !important;
}

.create-order-modal .customer-fault-options .fault-chip {
  width: auto;
  min-height: 32px;
  padding: 5px 12px;
  border-radius: 999px;
}

.create-order-modal .info-line.customer-fault-picker .fault-chip,
.create-order-modal .order-editable-line.customer-fault-picker .fault-chip {
  width: auto !important;
  min-width: 0 !important;
  max-width: 180px !important;
  min-height: 30px !important;
  padding: 4px 10px !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  overflow: hidden !important;
}

/* Codex 2026-06-27: simplify create-order form per repair desk workflow. */
.create-order-modal {
  padding: 16px 20px !important;
}

.create-order-modal .order-detail-layout,
.create-order-modal .create-order-detail-layout,
.create-order-modal .order-main-column {
  gap: 12px !important;
}

.create-order-modal .order-card {
  padding-top: 16px !important;
  padding-bottom: 16px !important;
}

.create-order-modal .repair-card-head {
  margin-bottom: 10px !important;
}

.create-order-modal .order-info-grid {
  row-gap: 12px !important;
}

.create-order-modal .order-honorific-group {
  display: none !important;
}

.create-order-modal .customer-fault-print-create {
  position: absolute !important;
  right: 0 !important;
  bottom: 0 !important;
  min-width: 148px !important;
  height: 38px !important;
  color: #fff !important;
  background: #0b5ed7 !important;
  border-color: #0b5ed7 !important;
  box-shadow: 0 8px 18px rgba(11, 94, 215, 0.18) !important;
}

.create-order-modal .create-order-actions .print-create-button {
  display: none !important;
}

/* Codex 2026-06-27: simplify order detail page for repair desk. */
.order-detail-shell .device-card .order-info-grid .info-line:nth-child(3),
.order-detail-shell .device-card .order-info-grid .info-line:nth-child(4),
.order-detail-shell .customer-card .order-info-grid .info-line:nth-child(4) {
  display: none !important;
}

.order-detail-shell .device-card .order-info-grid,
.order-detail-shell .customer-card .order-info-grid {
  grid-template-columns: repeat(2, minmax(180px, 1fr)) !important;
}

@media (max-width: 900px) {
  .create-order-modal .customer-fault-picker {
    grid-template-columns: 1fr;
  }
}
