/* ============================================================
   CATÁLOGO DE SERVIÇOS — estilos complementares
   ============================================================ */

/* ---------- KPIs / tabela ---------- */
#view-catalogo .kpi-grid { margin-bottom: 1.2rem; }

#view-catalogo .card-head-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

#tabela-catalogo .cat-preco {
  font-weight: 600;
  color: var(--accent-2, #00d4ff);
  white-space: nowrap;
}

.badge-tipo {
  background: rgba(124, 92, 255, .16);
  color: #a78bfa;
  font-size: .72rem;
  padding: .18rem .55rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

#view-catalogo .acoes-estoque {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
}

/* ---------- Picker do catálogo dentro da Nova OS ---------- */
.cat-picker {
  border: 1px solid var(--border, rgba(255,255,255,.1));
  border-radius: 12px;
  padding: .7rem;
  background: rgba(255,255,255,.02);
}

.cat-picker > input[type="search"] {
  width: 100%;
  margin-bottom: .6rem;
}

.cat-picker-lista {
  max-height: 250px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.cat-opt {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
  padding: .55rem .7rem;
  border-radius: 9px;
  border: 1px solid transparent;
  background: rgba(255,255,255,.035);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
}

.cat-opt:hover {
  background: rgba(0, 212, 255, .1);
  border-color: rgba(0, 212, 255, .35);
}
.cat-opt:active { transform: scale(.995); }

.cat-opt.sel {
  background: rgba(34, 197, 94, .12);
  border-color: rgba(34, 197, 94, .45);
}

.cat-opt-nome {
  flex: 1;
  font-size: .88rem;
  font-weight: 500;
}

.cat-opt-meta {
  font-size: .74rem;
  opacity: .65;
  white-space: nowrap;
}

.cat-opt-add {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  font-size: .8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.cat-opt.sel .cat-opt-add {
  background: #22c55e;
  color: #04121f;
}

.cat-opt-foot {
  margin-top: .5rem;
  display: flex;
  justify-content: flex-end;
}

.cat-selecionados { margin-top: .8rem; }

.cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(0, 212, 255, .12);
  border: 1px solid rgba(0, 212, 255, .35);
  color: #d6f6ff;
  border-radius: 999px;
  padding: .28rem .4rem .28rem .75rem;
  font-size: .8rem;
}

.cat-chip em {
  font-style: normal;
  opacity: .8;
  font-size: .76rem;
}

.cat-chip button {
  border: 0;
  background: rgba(255,255,255,.14);
  color: inherit;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
  font-size: .68rem;
  line-height: 1;
  display: grid;
  place-items: center;
}

.cat-chip button:hover { background: #ef4444; color: #fff; }

.cat-total {
  margin-top: .6rem;
  font-size: .9rem;
  display: flex;
  justify-content: flex-end;
  gap: .4rem;
  align-items: baseline;
}

.cat-total strong {
  font-size: 1.05rem;
  color: #22c55e;
}

/* ---------- Serviços no modal da OS ---------- */
.os-serv-list {
  list-style: none;
  padding: 0;
  margin: .35rem 0 0;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.os-serv-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .45rem .65rem;
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  font-size: .87rem;
}

.os-serv-list li strong { white-space: nowrap; }

/* ---------- Modal de orçamento ---------- */
#modal-orcamento .modal { max-width: 620px; width: 100%; }

.orc-lista {
  list-style: none;
  padding: 0;
  margin: .8rem 0 0;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  max-height: 260px;
  overflow-y: auto;
}

.orc-lista li {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .6rem;
  border-radius: 9px;
  background: rgba(255,255,255,.04);
  font-size: .87rem;
}

.orc-lista li > span { flex: 1; }

.orc-lista li input[type="number"] {
  width: 110px;
  padding: .3rem .45rem;
  text-align: right;
}

.orc-total {
  margin-top: 1rem;
  padding: .8rem 1rem;
  border-radius: 10px;
  background: rgba(34, 197, 94, .1);
  border: 1px solid rgba(34, 197, 94, .3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .92rem;
}

.orc-total strong { font-size: 1.2rem; color: #22c55e; }

@media (max-width: 760px) {
  .cat-opt-meta { display: none; }
  #view-catalogo .card-head-actions { width: 100%; }
  #view-catalogo .card-head-actions .btn { flex: 1; }
}
