/* ===== Library Tab ===== */

.library-subnav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}

.btn-library-sub {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.3rem 0.85rem;
  color: var(--text-faint);
  transition: background 0.15s, color 0.15s;
}

.btn-library-sub:hover { background: var(--surface-alt); color: var(--text); }

.btn-library-sub.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* Customer tags */
.customer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.customer-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.8rem;
  padding: 0.15rem 0.5rem;
}

.btn-remove-customer {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-faint);
  font-size: 0.75rem;
  padding: 0;
  line-height: 1;
  transition: color 0.15s;
}

.btn-remove-customer:hover { color: var(--danger); }

.kit-customer-assign {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.kit-customer-assign select {
  flex: 1;
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.875rem;
}

/* Material selector in modal */
.material-selector {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.material-selector input[type="text"] {
  padding: 0.38rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.875rem;
  background: var(--surface);
  color: var(--text);
}

.material-selector select {
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.875rem;
  padding: 0.25rem;
  background: var(--surface);
  color: var(--text);
}

.new-panel-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.new-panel-row input {
  flex: 1;
  padding: 0.38rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.875rem;
  background: var(--surface);
  color: var(--text);
}

/* Pricing */
.price-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.price-customer {
  flex: 1;
  color: var(--text-muted);
}

.price-value {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.price-add-form {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin-top: 0.25rem;
}

.price-add-form select,
.price-add-form input {
  padding: 0.25rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.8rem;
}

.price-add-form select { flex: 1; }
.price-add-form input  { width: 110px; }
