/* Enhanced styling for manufacturing quote parsing */

/* Item type select styling */
.item-type-select {
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  font-size: 12px;
  min-width: 80px;
}

.item-type-select option[value="Production"] {
  background: #e8f5e8;
  color: #2d5a2d;
}

.item-type-select option[value="Tooling"] {
  background: #fff3cd;
  color: #856404;
}

.item-type-select option[value="NRE"] {
  background: #f8d7da;
  color: #721c24;
}

.item-type-select option[value="Secondary"] {
  background: #d1ecf1;
  color: #0c5460;
}

/* Lead time cell styling */
.line-leadtime-cell {
  font-style: italic;
  color: #666;
  white-space: nowrap;
}

/* Enhanced confidence badges */
.confidence-badge {
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
}

.confidence-high {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.confidence-medium {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #faeeba;
}

.confidence-low {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Item type badges */
.item-type-badge {
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  display: inline-block;
  min-width: 60px;
  text-align: center;
}

.item-type-badge.production {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.item-type-badge.tooling {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #faeeba;
}

.item-type-badge.nre {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.item-type-badge.secondary {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* Enhanced parsed table styling */
.parsed-table th:nth-child(3), /* Material column */
.parsed-table td:nth-child(3) {
  width: 100px;
  text-align: center;
  font-size: 11px;
}

.parsed-table th:nth-child(7), /* Lead Time column */
.parsed-table td:nth-child(7) {
  width: 70px;
  text-align: center;
  font-size: 11px;
}

.parsed-table th:nth-child(8), /* Type column */
.parsed-table td:nth-child(8) {
  width: 90px;
  text-align: center;
}

/* Action column styling for thumbnails/CAD */
.parsed-table th:nth-child(10), /* Actions column */
.parsed-table td:nth-child(10) {
  width: 80px;
  text-align: center;
}

.action-thumbnail-btn {
  padding: 1px 3px;
  margin: 0 1px;
  border: 1px solid #007bff;
  background: #fff;
  color: #007bff;
  border-radius: 2px;
  font-size: 9px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  min-width: 35px;
  text-align: center;
}

.action-thumbnail-btn:hover {
  background: #007bff;
  color: #fff;
}

.action-cad-btn {
  padding: 1px 3px;
  margin: 0 1px;
  border: 1px solid #28a745;
  background: #fff;
  color: #28a745;
  border-radius: 2px;
  font-size: 9px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  min-width: 35px;
  text-align: center;
}

.action-cad-btn:hover {
  background: #28a745;
  color: #fff;
}

.actions-cell {
  white-space: nowrap;
  text-align: center;
  padding: 2px !important;
}