/* OBSERVACAO: Precificação Compras — Signal (navy/sky), sem cards genéricos. */
.ss-precificacao-signal {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}

.ss-precificacao-signal[hidden] {
  display: none !important;
}

.ss-px-sticky {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  padding: 0.65rem 0.85rem;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.ss-px-modes {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.ss-px-mode {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
}

.ss-px-mode.is-active {
  background: #1b365d;
  border-color: #1b365d;
  color: #fff;
}

.ss-px-sticky-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem 0.75rem;
  flex: 1;
  min-width: 12rem;
}

.ss-px-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #64748b;
}

.ss-px-field input[type="search"],
.ss-px-field input[type="number"],
.ss-px-field select {
  min-width: 7rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.45rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #0f172a;
  background: #fff;
}

.ss-px-field select {
  min-width: 10.5rem;
  max-width: 14rem;
}

.ss-px-field--fiscal {
  min-width: 12rem;
  max-width: 18rem;
}

.ss-px-fiscal-line {
  margin: 0;
  padding: 0.35rem 0;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: #1b365d;
  line-height: 1.3;
}

.ss-px-field--fiscal .ss-link-btn {
  font-size: 0.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: #0369a1;
  cursor: pointer;
  text-align: left;
  font-weight: 600;
}

.ss-px-tax {
  font-variant-numeric: tabular-nums;
  color: #475569;
  font-size: 0.8125rem;
}

.ss-px-fam-tipo {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
}

.ss-px-field input[type="search"] {
  min-width: 11rem;
}

.ss-px-sticky-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-left: auto;
}

.ss-px-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0.85rem 1rem 1.25rem;
}

.ss-px-hint {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.4;
}

.ss-px-hint strong {
  color: #1b365d;
}

.ss-px-table-wrap {
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
  background: #fff;
}

.ss-px-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.ss-px-table th {
  text-align: left;
  padding: 0.65rem 0.75rem;
  background: #f8fafc;
  color: #475569;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}

.ss-px-table th.ss-px-num,
.ss-px-table td.ss-px-num {
  text-align: right;
}

.ss-px-table td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
  color: #0f172a;
}

.ss-px-table tr:last-child td {
  border-bottom: none;
}

.ss-px-table tbody tr:hover td {
  background: #f8fafc;
}

.ss-px-sku {
  font-weight: 700;
  color: #1b365d;
}

.ss-px-sub {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}

.ss-px-custo {
  font-weight: 700;
  color: #0369a1;
}

.ss-px-impostos {
  font-size: 0.75rem;
  color: #475569;
  line-height: 1.35;
}

.ss-px-impostos .ss-px-sum {
  display: block;
  margin-top: 0.25rem;
  font-weight: 700;
  color: #b45309;
}

.ss-px-input {
  width: 5.5rem;
  padding: 0.35rem 0.45rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.4rem;
  text-align: right;
  font-size: 0.875rem;
  background: #fff;
}

.ss-px-input--preco {
  width: 6.5rem;
}

.ss-px-empty {
  padding: 1.5rem 1rem;
  text-align: center;
  color: #64748b;
  font-size: 0.875rem;
}

.ss-px-badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: #e2e8f0;
  color: #475569;
}

.ss-px-badge--ok {
  background: #dcfce7;
  color: #166534;
}

.ss-px-badge--pend {
  background: #e0f2fe;
  color: #0369a1;
}
