/* fila.css - Estilos para a página de fila (cliente) e painel do barbeiro
   Reaproveita as variáveis definidas em style.css (--bg, --gold, --text, etc) */

.container-fila {
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 24px;
  min-height: 100vh;
}

.titulo-pagina {
  font-family: var(--font-display);
  font-size: clamp(30px, 8vw, 42px);
  letter-spacing: 1px;
  color: var(--gold-light);
  margin-bottom: 24px;
  text-align: center;
}

/* Cartão que envolve o formulário */
.card {
  background: var(--surface);
  border: 1px solid rgba(217, 164, 65, 0.45);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(217, 164, 65, 0.08);
}

.campo {
  margin-bottom: 18px;
}

.campo label {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.campo input,
.campo select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
}

.campo input:focus,
.campo select:focus {
  outline: none;
  border-color: var(--gold);
}

.btn-principal {
  width: 100%;
  min-height: 48px;
  padding: 14px;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 60%, #b58530 100%);
  color: var(--bg);
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s, filter 0.2s;
  box-shadow: 0 4px 14px rgba(217, 164, 65, 0.25);
}

.btn-principal:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  filter: brightness(1.06);
}

/* Estado de carregamento do botão: desabilitado com spinner animado */
.btn-principal.carregando {
  pointer-events: none;
  opacity: 0.85;
  cursor: wait;
}

.btn-principal.carregando::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 10px;
  vertical-align: middle;
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-top-color: var(--bg);
  border-radius: 50%;
  animation: girar-carregando 0.8s linear infinite;
}

@keyframes girar-carregando {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.btn-secundario {
  padding: 11px 18px;
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--gold);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.btn-secundario:hover {
  background: var(--gold);
  color: var(--bg);
}

/* Botão de voltar para o site principal */
.btn-voltar {
  display: inline-block;
  margin-bottom: 16px;
}

/* Mensagem de status de posição na fila */
.status-fila {
  background: var(--bg-alt);
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--gold-light);
  margin-bottom: 24px;
}

/* Lista de espera (cliente) */
.subtitulo {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--gold-light);
  letter-spacing: 0.5px;
  margin: 24px 0 12px;
}

.lista-fila {
  list-style: none;
  padding: 0;
}

.lista-fila li,
.item-fila-cliente {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  color: var(--text);
}

.item-fila-cliente .nome-cliente {
  font-weight: 500;
}

.erro-texto {
  color: #a83246;
  font-family: var(--font-body);
  font-size: 14px;
  margin-top: 8px;
  text-align: center;
}

/* Cabeçalho do painel do barbeiro, com botão de sair */
.cabecalho-painel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.cabecalho-painel .titulo-pagina {
  margin-bottom: 0;
  text-align: left;
}

/* Tela de login */
#area-login {
  max-width: 420px;
  margin: 0 auto;
  padding-top: 40px;
}

#area-login .card {
  margin-bottom: 0;
}

#area-login .campo input,
#area-login .campo select {
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

#area-login .campo input:focus,
#area-login .campo select:focus {
  border-color: var(--gold);
}

#area-login .campo input::placeholder {
  color: var(--muted);
}

/* Ajustes para telas de celular */
@media (max-width: 480px) {
  .container-fila {
    padding: 28px 16px;
  }

  .card,
  .status-fila {
    padding: 18px;
  }

  .item-fila-cliente {
    flex-wrap: wrap;
    gap: 8px;
  }

  .cabecalho-painel {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* Cartões de seleção de barbeiro */
.grade-barbeiros {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.cartao-barbeiro {
  flex: 0 0 calc((100% - 2 * 12px) / 3);
  cursor: pointer;
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  background: var(--bg-alt);
  transition: border-color 0.2s;
}

.cartao-barbeiro:hover {
  border-color: var(--gold-light);
}

.cartao-barbeiro img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 6px;
  background: var(--bg-alt);
}

.cartao-barbeiro span {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.5px;
}

.cartao-barbeiro.selecionado {
  border-color: var(--gold);
}

/* Botão de desistir, dentro da caixa de status */
.status-fila #btn-desistir {
  margin-top: 14px;
}

/* --- ESTILOS DO CARDÁPIO DE SERVIÇOS (SELEÇÃO DO CLIENTE) --- */
/* Filtro de categorias (chips) da etapa de escolha de serviços.
   Grid fixo de 2 colunas x 2 linhas: os 4 botões ficam alinhados
   e com a mesma largura, independente do tamanho do texto. */
.filtro-categorias {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 4px 0 16px;
}

.chip-categoria {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 999px;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.chip-categoria:hover {
  color: var(--text);
  border-color: var(--gold);
}

.chip-categoria.ativo {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(217, 164, 65, 0.35);
}

/* Esconde visualmente um serviço quando o filtro de categoria não o inclui.
   Usa display:none apenas para ocultar — nunca desmarca o checkbox. */
.servico-opcao.filtrado-off {
  display: none;
}

.lista-servicos {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

.servico-opcao {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  /* Checkbox | Detalhes (nome, desc) | Valor */
  align-items: flex-start;
  /* Alinha o conteúdo ao topo, para a descrição caber */
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.servico-opcao:hover {
  border-color: var(--gold-light);
  background: var(--surface);
}

.servico-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkbox-custom {
  width: 24px;
  height: 24px;
  border: 2px solid var(--gold);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.checkbox-custom::after {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 3px;
  transform: scale(0);
  transition: transform 0.15s;
}

.servico-checkbox:checked+.checkbox-custom {
  background: var(--gold);
  border-color: var(--gold);
}

.servico-checkbox:checked+.checkbox-custom::after {
  transform: scale(1);
}

.servico-detalhes {
  /* Novo: Para agrupar nome e descrição */
  flex-grow: 1;
  min-width: 0;
  margin-right: 10px;
}

.servico-detalhes .servico-nome {
  /* Ajuste: para usar dentro de .servico-detalhes */
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
  white-space: normal;
  /* Permite quebrar linha */
}

.servico-descricao {
  /* Novo: Estilo para a descrição */
  font-size: 0.85em;
  color: var(--muted);
  margin-top: 2px;
}

.servico-valores-tempo {
  /* Agora só terá o valor */
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  /* Alinha à direita */
  flex-shrink: 0;
}

.servico-valores-tempo .servico-valor {
  /* Ajuste: para usar dentro de .servico-valores-tempo */
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
}

#btn-voltar-dados {
  width: 100%;
  margin-top: 12px;
}

/* --- ESTILOS DOS SERVIÇOS NO PAINEL DO BARBEIRO --- */
.item-fila {
  /* Item da fila no painel admin - coluna */
  flex-direction: column;
  align-items: flex-start;
  padding: 16px;
  gap: 8px;
}

.cliente-info {
  /* Container do nome + whatsapp */
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(217, 164, 65, 0.35);
  margin-bottom: 8px;
}

.cliente-info .nome-cliente {
  font-family: var(--font-display);
  font-size: 1.4em;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--gold-light);
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}

.whatsapp-link:hover {
  background: #1ebd5a;
  transform: scale(1.1);
}

.whatsapp-link svg {
  width: 20px;
  height: 20px;
}

.servicos-cliente {
  /* Container dos serviços no painel admin */
  width: 100%;
  padding-top: 4px;
}

.servico-item-admin {
  /* Item individual de serviço no painel admin */
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 4px 0;
  font-size: 14px;
}

.servico-item-admin .servico-nome-admin {
  font-weight: 500;
  color: var(--text);
  flex-grow: 1;
}

.servico-item-admin .servico-detalhes-admin {
  /* Exibe valor e descrição */
  font-size: 1em;
  font-weight: 600;
  color: var(--gold);
  margin-left: 10px;
  white-space: nowrap;
  text-shadow: 0 0 10px rgba(217, 164, 65, 0.3);
}

.servico-item-admin.total {
  border-top: 1px dashed rgba(217, 164, 65, 0.35);
  margin-top: 8px;
  padding-top: 8px;
  font-weight: bold;
  font-size: 1.1em;
}

.servico-item-admin.total span:last-child {
  font-family: var(--font-display);
  font-size: 1.25em;
  letter-spacing: 0.5px;
  color: var(--gold-light);
  text-shadow: 0 0 12px rgba(217, 164, 65, 0.35);
}

.sem-servicos {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  padding: 4px 0;
}

/* Botões de ação no admin */
.acoes-cliente {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

@media (max-width: 480px) {
  .servico-opcao {
    grid-template-columns: 24px 1fr;
    /* Remove a coluna de valores para telas pequenas */
    gap: 8px;
  }

  /* Em telas pequenas o texto "Barba & Outros" (nowrap) precisa de uma
     fonte um pouco menor para caber na metade do grid sem quebrar */
  .chip-categoria {
    font-size: 14px;
    padding: 12px 10px;
  }

  .servico-valores-tempo {
    grid-column: 2 / 3;
    /* Coloca os valores abaixo do nome/descrição */
    text-align: left;
    align-items: flex-start;
    margin-top: -8px;
    /* Ajusta o espaçamento visual */
  }

  .cliente-info {
    flex-wrap: wrap;
    /* Permite quebrar linha no admin */
  }

  .whatsapp-link {
    margin-left: auto;
    /* Empurra o botão pro canto se quebrar linha */
  }

  .item-fila {
    padding: 12px;
  }
}

/* --- ESTILOS DO MODAL DE FORMA DE PAGAMENTO --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 12, 12, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-conteudo {
  max-width: 420px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  border: 1px solid rgba(217, 164, 65, 0.35);
}

.lista-servicos {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
}

.btn-servico {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  min-height: 48px;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 60%, #b58530 100%);
  border: none;
  border-radius: 10px;
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: filter 0.2s;
  box-shadow: 0 4px 14px rgba(217, 164, 65, 0.25);
}

.btn-servico:hover {
  filter: brightness(1.08);
}

/* Campo de comissão editável (declaração legada, mantida por compatibilidade) */
.comissao-config {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

.comissao-config label {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.input-comissao {
  width: 80px;
  padding: 8px 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.input-comissao:focus {
  outline: none;
  border-color: var(--gold);
}

/* ==========================================
   CARD "Por Barbeiro" — versão compacta com ícones
   ========================================== */

.barbeiros-lista {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.barbeiro-card-v2 {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.barbeiro-card-v2:hover {
  border-color: var(--gold);
}

.barbeiro-header-v2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2px;
}

.barbeiro-header-v2 .barbeiro-foto {
  width: 56px;
  height: 56px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 2px solid var(--gold);
  margin-bottom: 8px;
}

.barbeiro-nome-v2 {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.5px;
  color: var(--text);
}

.barbeiro-divisor-v2 {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 65%;
  margin-top: 4px;
}

.barbeiro-divisor-v2 .linha-v2 {
  flex: 1;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.barbeiro-divisor-v2 .icone-divisor-v2 {
  font-size: 11px;
}

.linha-caixas-v2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.caixa-stat-v2 {
  background: var(--bg-alt);
  border: 1px solid rgba(217, 164, 65, 0.25);
  border-radius: 10px;
  padding: 10px 12px;
}

.caixa-larga-v2 {
  width: 100%;
}

.caixa-topo-v2 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.caixa-topo-v2 .icone-v2 {
  font-size: 13px;
}

.caixa-valor-v2 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text);
  letter-spacing: 0.2px;
}

.caixa-destaque-v2 {
  background: rgba(217, 164, 65, 0.12);
  border: 1px solid var(--gold);
}

.caixa-destaque-v2 .caixa-topo-v2 {
  color: var(--gold-light);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.caixa-valor-grande-v2 {
  color: var(--gold);
  font-size: 19px;
}

.caixa-dividida-v2 {
  background: var(--bg-alt);
  border: 1px solid rgba(217, 164, 65, 0.25);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lado-esquerdo-v2,
.lado-direito-v2 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  flex: 1;
}

.lado-direito-v2 {
  justify-content: flex-end;
  color: var(--gold);
  font-weight: 600;
  font-size: 16px;
}

.lado-esquerdo-v2.coluna-v2,
.lado-direito-v2.coluna-v2 {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.lado-direito-v2.coluna-v2 {
  align-items: flex-end;
}

.linha-icone-label-v2 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.divisor-vertical-v2 {
  width: 1px;
  align-self: stretch;
  background: var(--border);
}

.caixa-dividida-v2 .input-comissao {
  width: 52px;
  padding: 5px 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.caixa-dividida-v2 .input-comissao:focus {
  outline: none;
  border-color: var(--gold);
}

@media (max-width: 420px) {
  .linha-caixas-v2 {
    grid-template-columns: 1fr;
  }
}

/* Modal de detalhe em tela cheia */
.modal-detalhe-conteudo {
  background: var(--bg);
  border-radius: 20px;
  padding: 32px 24px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.btn-fechar-detalhe {
  position: sticky;
  top: 0;
  float: right;
  margin-bottom: 16px;
  z-index: 10;
}

.modal-detalhe-conteudo .barbeiro-header-v2 .barbeiro-foto {
  width: 96px;
  height: 96px;
}

.modal-detalhe-conteudo .barbeiro-nome-v2 {
  font-size: 32px;
}

.modal-detalhe-conteudo .caixa-valor-v2 {
  font-size: 22px;
}

.modal-detalhe-conteudo .caixa-valor-grande-v2 {
  font-size: 32px;
}

/* Cards de resumo (Faturamento do Dia / do Mês) */
.faturamento-resumo {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faturamento-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.faturamento-item:last-child {
  border-bottom: none;
}

.faturamento-label {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 14px;
}

.faturamento-valor {
  color: var(--text);
  font-weight: 600;
  font-size: 18px;
}

.faturamento-item.destaque {
  background: rgba(217, 164, 65, 0.1);
  border: 1px solid var(--gold);
  border-radius: 10px;
  padding: 16px;
  border-bottom: 1px solid var(--gold);
}

.faturamento-item.destaque .faturamento-valor {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 28px;
}

/* Abas do painel (Fila / Relatórios), visíveis só para o dono */
#abas-painel {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
}

.aba-btn {
  background: transparent;
  border: none;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  transition: color 0.2s, background 0.2s;
  position: relative;
}

.aba-btn:hover {
  color: var(--text);
  background: var(--bg-alt);
}

.aba-btn.ativa {
  color: var(--gold-light);
  font-weight: 700;
  background: var(--bg-alt);
}

.aba-btn.ativa::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(217, 164, 65, 0.6);
}

/* ==========================================
   MODAL FINALIZAR ATENDIMENTO
   ========================================== */

.modal-finalizar {
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-finalizar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.btn-fechar-modal {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.btn-fechar-modal:hover {
  color: var(--gold);
  background: var(--bg-alt);
}

.modal-section {
  margin-bottom: 20px;
}

.modal-section-title {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--gold-light);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

/* Lista de serviços atuais */
.servicos-lista {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.servico-item-editavel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  gap: 12px;
}

.servico-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.servico-nome {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.servico-valor {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--gold);
  font-weight: 600;
}

.servico-badge-adicional {
  font-size: 10px;
  font-weight: 600;
  color: var(--gold);
  background: rgba(217, 164, 65, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  align-self: flex-start;
}

.btn-remover-servico {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-remover-servico:hover {
  border-color: #a83246;
  color: #a83246;
  background: rgba(168, 50, 70, 0.1);
}

.sem-servicos {
  color: var(--muted);
  font-style: italic;
  text-align: center;
  padding: 16px;
}

/* Catálogo de serviços do modal (não afeta fila.html) */
.catalogo-wrapper {
  display: none;
  flex-direction: column;
  gap: 12px;
}
.catalogo-wrapper.catalogo-aberto {
  display: flex;
}

.btn-toggle-catalogo {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-toggle-catalogo:hover {
  border-color: var(--gold);
  background: var(--surface);
  color: var(--gold);
}

/* Chips de categoria do catálogo */
.catalogo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-catalogo {
  padding: 8px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.chip-catalogo:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}
.chip-catalogo[aria-pressed="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
  font-weight: 700;
}

/* Lista de serviços do catálogo (grade 2 colunas) */
.catalogo-lista {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.btn-catalogo {
  padding: 10px 8px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.btn-catalogo:hover {
  border-color: var(--gold);
  background: var(--surface);
  color: var(--gold-light);
}

.btn-catalogo-nome {
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
}

.btn-catalogo-valor {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
}

/* Responsivo */
@media (max-width: 480px) {
  .catalogo-chips {
    gap: 6px;
  }
  .chip-catalogo {
    padding: 6px 10px;
    font-size: 11px;
  }
}

/* Total */
.modal-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: linear-gradient(135deg, rgba(217, 164, 65, 0.15), rgba(217, 164, 65, 0.05));
  border: 1px solid var(--gold);
  border-radius: 10px;
  margin: 16px 0;
}
.modal-total span:first-child {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
#modal-total-valor {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--gold);
  font-weight: 700;
}

/* Forma de pagamento */
.pagamento-opcoes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.btn-pagamento {
  padding: 14px 10px;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 60%, #b58530 100%);
  border: none;
  border-radius: 10px;
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.2s, transform 0.1s;
  min-height: 48px;
  box-shadow: 0 4px 14px rgba(217, 164, 65, 0.25);
}
.btn-pagamento:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.btn-pagamento:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: none;
  transform: none;
}

/* Actions */
.modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* Responsivo */
@media (max-width: 480px) {
  .pagamento-opcoes {
    grid-template-columns: 1fr;
  }
  .catalogo-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   ESTOQUE (APENAS DONO) - prefixo estoque-*
   ========================================== */

/* Formulário de estoque */
.estoque-formulario {
  margin-bottom: 16px;
}

.estoque-formulario .campo-checkbox {
  margin-bottom: 12px;
}

.estoque-formulario .checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
}

.estoque-formulario .checkbox-wrapper input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.estoque-formulario .checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid var(--gold);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: background 0.2s, border-color 0.2s;
}

.estoque-formulario .checkbox-custom::after {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 2px;
  transform: scale(0);
  transition: transform 0.15s;
}

.estoque-formulario .checkbox-wrapper input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--gold);
  border-color: var(--gold);
}

.estoque-formulario .checkbox-wrapper input[type="checkbox"]:checked + .checkbox-custom::after {
  transform: scale(1);
}

.estoque-formulario .checkbox-label {
  line-height: 1.4;
}

.estoque-form-botoes {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.estoque-form-botoes .btn-principal,
.estoque-form-botoes .btn-secundario {
  flex: 1;
}

/* Resumo do estoque */
.estoque-resumo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.estoque-resumo-item {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.estoque-resumo-item.destaque {
  background: rgba(217, 164, 65, 0.12);
  border: 1px solid var(--gold);
}

.estoque-resumo-item.alerta {
  background: rgba(168, 50, 70, 0.1);
  border: 1px solid #a83246;
}

.estoque-resumo-label {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.estoque-resumo-valor {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text);
  font-weight: 600;
}

.estoque-resumo-item.destaque .estoque-resumo-valor {
  color: var(--gold);
  font-size: 22px;
}

.estoque-resumo-item.alerta .estoque-resumo-valor {
  color: #a83246;
}

/* Lista de produtos */
.estoque-lista {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Card de produto */
.estoque-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.estoque-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.estoque-card-nome {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text);
  margin: 0;
  flex: 1;
  word-break: break-word;
}

.estoque-selo {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.estoque-selo.baixo {
  background: rgba(217, 164, 65, 0.2);
  color: var(--gold);
  border: 1px solid var(--gold);
}

.estoque-selo.esgotado {
  background: rgba(168, 50, 70, 0.2);
  color: #a83246;
  border: 1px solid #a83246;
}

.estoque-card-info {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 4px;
  border-top: 1px dashed rgba(217, 164, 65, 0.25);
}

.estoque-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 100px;
}

.estoque-info-label {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.estoque-info-valor {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--text);
  font-weight: 600;
}

.estoque-card-acoes {
  display: flex;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(217, 164, 65, 0.25);
  flex-wrap: wrap;
}

.estoque-card-acoes .btn-secundario {
  flex: 1;
  min-width: 80px;
  text-align: center;
}

.estoque-btn-excluir:hover {
  background: rgba(168, 50, 70, 0.1) !important;
  color: #a83246 !important;
}

/* Modal de repor estoque */
.estoque-modal-repor .campo label {
  font-size: 13px;
}

.estoque-modal-repor .campo input {
  text-align: center;
  font-size: 18px;
}

/* Responsivo estoque */
@media (max-width: 480px) {
  .estoque-resumo-grid {
    grid-template-columns: 1fr;
  }

  .estoque-card-info {
    flex-direction: column;
    gap: 12px;
  }

  .estoque-info-item {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    min-width: auto;
  }

  .estoque-card-acoes {
    flex-direction: column;
  }

  .estoque-card-acoes .btn-secundario {
    width: 100%;
  }

  .estoque-form-botoes {
    flex-direction: column;
  }
}

/* ==========================================
   VENDA DE PRODUTOS NO MODAL - prefixo venda-*
   ========================================== */

/* Seção de venda (estilo similar ao catálogo) */
.venda-lista {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
}

.venda-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  gap: 12px;
}

.venda-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.venda-item-nome {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.venda-item-detalhes {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted);
}

.venda-controles {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.venda-btn-qtd {
  width: 36px;
  height: 36px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  background: var(--surface);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.venda-btn-qtd:hover:not(:disabled) {
  background: var(--gold);
  color: var(--bg);
}

.venda-btn-qtd:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: var(--border);
  color: var(--muted);
}

.venda-qtd-display {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  min-width: 28px;
  text-align: center;
}

/* Produtos selecionados para venda */
.venda-selecionados {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 4px;
}

.venda-selecionado-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  gap: 12px;
}

.venda-selecionado-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.venda-selecionado-nome {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.venda-selecionado-valor {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--gold);
  font-weight: 600;
}

.venda-selecionado-comissao {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  background: rgba(217, 164, 65, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  align-self: flex-start;
}

.venda-btn-remover {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.venda-btn-remover:hover {
  border-color: #a83246;
  color: #a83246;
  background: rgba(168, 50, 70, 0.1);
}

.sem-produtos-venda {
  color: var(--muted);
  font-style: italic;
  text-align: center;
  padding: 16px;
}

/* Responsivo venda */
@media (max-width: 480px) {
  .venda-item {
    flex-wrap: wrap;
    gap: 8px;
  }

  .venda-controles {
    width: 100%;
    justify-content: flex-end;
  }

  .venda-selecionado-item {
    flex-wrap: wrap;
    gap: 8px;
  }

  .venda-btn-remover {
    width: 100%;
    margin-top: 4px;
  }
}

/* ==========================================
   DETALHE DE PRODUTOS VENDIDOS NO BARBEIRO
   ========================================== */

.barbeiro-detalhe-produtos {
  margin-top: 16px;
}

.produtos-vendidos-lista {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 4px;
}

.produto-vendido-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  gap: 12px;
}

.produto-vendido-nome {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.produto-vendido-valor {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--gold);
  font-weight: 600;
  white-space: nowrap;
}

.produto-vendido-comissao {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  background: rgba(217, 164, 65, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ==========================================
   VENDAS DO MÊS (ABA ESTOQUE)
   ========================================== */

.vendas-mes {
  margin-top: 24px;
}

.vendas-mes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.vendas-mes-bloco {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  min-width: 0;
  box-sizing: border-box;
}

.vendas-mes-titulo {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--gold-light);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.vendas-mes-lista {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.vendas-mes-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text);
}

.vendas-mes-rank {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--gold);
  font-weight: 600;
  min-width: 28px;
  text-align: center;
}

.vendas-mes-nome {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vendas-mes-qtd {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.vendas-mes-valor {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  white-space: nowrap;
}

.vendas-mes-comissao {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  background: rgba(217, 164, 65, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Responsivo vendas-mes */
@media (max-width: 480px) {
  .vendas-mes-grid {
    grid-template-columns: 1fr;
  }

  .vendas-mes-item {
    flex-wrap: wrap;
    gap: 6px;
  }

  .vendas-mes-rank {
    width: 100%;
    text-align: left;
  }

  .vendas-mes-comissao {
    width: 100%;
    text-align: center;
  }
}