/* ===== BOM Tab ===== */

/* BOM table overrides */
#bom-table th,
#bom-table td {
  padding: 0.45rem 0.5rem;
  font-size: 0.82rem;
}

/* Model picker spacing */
.model-picker {
  margin-bottom: 2rem;
}

/* Selected row highlight */
.row-selected {
  background: var(--row-selected) !important;
}

/* Info button next to hierarchy steps */
.btn-bom-info {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-faint);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.25rem;
  transition: color 0.15s, background 0.15s;
  line-height: 1;
}

.btn-bom-info:hover {
  color: var(--navy);
  background: var(--btn-hover-bg);
}

/* BOM info view modal body */
.bom-info-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bom-info-item {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}

.bom-info-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  min-width: 60px;
  flex-shrink: 0;
}

.bom-info-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.bom-info-branch {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  padding-left: 1.25rem;
  margin-left: 0.25rem;
}

.bom-info-branch::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  bottom: 0.6rem;
  border-left: 2px solid var(--border-mid);
}

.bom-info-path {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
}

.bom-info-path::before {
  content: '';
  position: absolute;
  left: -1.25rem;
  top: 0.6rem;
  width: 1rem;
  border-top: 2px solid var(--border-mid);
}

.bom-info-path-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 0.15rem;
}

/* Odoo label button */
.btn-odoo-label {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  transition: opacity 0.15s;
}

.btn-odoo-label:hover { opacity: 0.7; }
.odoo-o   { color: #714B67; }
.odoo-doo { color: var(--text-faint); }

/* Cycle sheet */
.flip-indicator {
  color: var(--danger);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.cycle-table th,
.cycle-table td {
  white-space: nowrap;
}
