/* FOURMI THINK — Barbeiro: correções da auditoria de 23/10/2026.
   Troca o verde do Professor por marinho e latão nas telas do Barbeiro. Só vale com data-profession="barber". */

/* Agenda: grade, filtros, Mês, horários de encaixe e painel de disponibilidade */
#workspace:is([data-profession="barber"],[data-profession="other"]) .sg-root{--st-deep:#0a1626;--st-teal:#0d1b2e}
#workspace:is([data-profession="barber"],[data-profession="other"]) .sg-root .student-segmented button.active{background:#0a1626}
#workspace:is([data-profession="barber"],[data-profession="other"]) .sg-root .student-filter-row button.active{border-color:#0d1b2e;background:#0d1b2e}
body:is([data-profession="barber"],[data-profession="other"]) .sg-variant-barber .tg-block{box-shadow:0 1px 4px #0a162614}
body:is([data-profession="barber"],[data-profession="other"]) .pa-icon{color:#0d1b2e}
body:is([data-profession="barber"],[data-profession="other"]) .rm-done input{accent-color:#0d1b2e}
body:is([data-profession="barber"],[data-profession="other"]) .block-allday input{accent-color:#0d1b2e}
body:is([data-profession="barber"],[data-profession="other"]) .rm-quick-btn{color:#0d1b2e}
body:is([data-profession="barber"],[data-profession="other"]) .rm-quick-btn.is-on{background:#0d1b2e;border-color:#0d1b2e}
body:is([data-profession="barber"],[data-profession="other"]) .bg-stage{color:#0d1b2e}
body:is([data-profession="barber"],[data-profession="other"]) .sg-variant-barber .bg-ind .bg-ok{background:#0d1b2e}
body:is([data-profession="barber"],[data-profession="other"]) .sg-variant-barber .bg-card.stage-inService{box-shadow:0 0 0 2px #c99b47,0 2px 6px #0a16261f}
body:is([data-profession="barber"],[data-profession="other"]) .sg-variant-barber .bg-card.stage-arrived{box-shadow:0 0 0 1.5px #e3c47f,0 1px 4px #0a162614}
body:is([data-profession="barber"],[data-profession="other"]) .bg-center-link{color:#0d1b2e}
body:is([data-profession="barber"],[data-profession="other"]) .bg-count{background:#0d1b2e}
body:is([data-profession="barber"],[data-profession="other"]) .bc-group legend{color:#0d1b2e}
body:is([data-profession="barber"],[data-profession="other"]) .bc-toggle input:checked{background:#0d1b2e}
body:is([data-profession="barber"],[data-profession="other"]) .bc-seg button.active{background:#0a1626}
body:is([data-profession="barber"],[data-profession="other"]) .bc-icon-btn{color:#0d1b2e}
body:is([data-profession="barber"],[data-profession="other"]) .bc-slot{border:1px solid #e7dfcd;background:#fbf6e9;color:#0d1b2e}
body:is([data-profession="barber"],[data-profession="other"]) .bc-steps li.is-done{color:#0d1b2e}
body:is([data-profession="barber"],[data-profession="other"]) .bc-steps li.is-done i{border-color:#0d1b2e;background:#0d1b2e}
body:is([data-profession="barber"],[data-profession="other"]) .bc-chip{color:#0d1b2e}
body:is([data-profession="barber"],[data-profession="other"]) .bc-alert{background:#0a1626}
body:is([data-profession="barber"],[data-profession="other"]) .sg-root{--st-ink:#14201b}
body:is([data-profession="barber"],[data-profession="other"]) #agenda-screen{--emerald:#9a7426}

body:is([data-profession="barber"],[data-profession="other"]) .tap-free{border-color:#dcc38a;background:#fbf6e9}
body:is([data-profession="barber"],[data-profession="other"]) .tap-free span{color:#8a6420}
body:is([data-profession="barber"],[data-profession="other"]) .tap-wk-col.is-today{background-color:#f4f1ea}
body:is([data-profession="barber"],[data-profession="other"]) .tap-av-bars span{background:linear-gradient(180deg,#5b6e8a,#26374f)}
body:is([data-profession="barber"],[data-profession="other"]) .avp-slots i{background:#f6eedb;color:#7a5a1c}
body:is([data-profession="barber"],[data-profession="other"]) .avp-pdf i{color:#7a5a1c}
body:is([data-profession="barber"],[data-profession="other"]) .av-grid thead th.is-today{background:#f4f1ea;color:#0d1b2e;box-shadow:inset 0 -2px 0 #d4a853}
body:is([data-profession="barber"],[data-profession="other"]) .av-cell.is-free button{background:#f6eedb;color:#7a5a1c}

/* Tela de sucesso: véu marinho e check em latão */
body:is([data-profession="barber"],[data-profession="other"]) .success-overlay.is-cinematic{background:
  radial-gradient(70% 42% at 50% 26%,rgba(212,168,83,.20),rgba(212,168,83,0) 70%),
  radial-gradient(120% 60% at 50% 110%,rgba(5,11,20,.75),rgba(5,11,20,0) 70%),
  linear-gradient(180deg,rgba(13,27,46,.82) 0%,rgba(10,22,38,.88) 45%,rgba(6,14,26,.94) 100%)}
body:is([data-profession="barber"],[data-profession="other"]) .success-overlay.is-cinematic::backdrop{background:rgba(6,14,26,.32)}
body:is([data-profession="barber"],[data-profession="other"]) .so-bokeh.b2{background:rgba(70,100,150,.28)}
body:is([data-profession="barber"],[data-profession="other"]) .success-overlay.is-cinematic .so-check{border-color:rgba(10,22,38,.88);background:radial-gradient(circle at 35% 30%,#f3d58e,#d4a853 60%,#a87a26)}
body:is([data-profession="barber"],[data-profession="other"]) .success-overlay.is-cinematic .so-check svg{stroke:#0d1b2e}
body:is([data-profession="barber"],[data-profession="other"]) .so-avatar{background:#f5f1e8;color:#0d1b2e}

/* Topo: só a tesoura do Barbeiro, sem o halter do Personal */
body:is([data-profession="barber"],[data-profession="other"]) .barber-home-brand-name .premium-trainer-icon,
#workspace:is([data-profession="barber"],[data-profession="other"]) .brand-hierarchy .premium-trainer-icon{display:none!important}

/* Fundo atrás das janelas e avatar da ficha em marinho */
body:is([data-profession="barber"],[data-profession="other"]) dialog::backdrop{background:#0a1626b8}
body:is([data-profession="barber"],[data-profession="other"]) #client-detail-dialog .tsp-hero-av{background:#f5f1e8;color:#0d1b2e}

/* Aviso de cliente repetido acima do botão Salvar (o botão fica preso no rodapé) */
body:is([data-profession="barber"],[data-profession="other"]) #client-dialog.bf-on #client-error{order:19}
body:is([data-profession="barber"],[data-profession="other"]) #client-dialog.bf-on #client-error:empty{display:none}

/* Cancelar: título em latão e três escolhas empilhadas (manter, só este, este e os próximos) */
body:is([data-profession="barber"],[data-profession="other"]) #status-decision-dialog .eyebrow{color:#a87a26}
body:is([data-profession="barber"],[data-profession="other"]) #status-decision-dialog .appointment-conflict-actions:has(#confirm-status-series:not([hidden])){display:grid;grid-template-columns:1fr;gap:10px}
body:is([data-profession="barber"],[data-profession="other"]) #status-decision-dialog .appointment-conflict-actions:has(#confirm-status-series:not([hidden])) #back-status-decision{order:3}

/* Novo atendimento: avatar do cliente, quantidade por semana, aviso da repetição e escolha do horário */
body:is([data-profession="barber"],[data-profession="other"]) #contact-picker-avatar{background:#f5f1e8;color:#0d1b2e}
body:is([data-profession="barber"],[data-profession="other"]) #appointment-dialog .lp-count-chips button.selected{border-color:#0d1b2e;background:#0d1b2e;color:#fff}
body:is([data-profession="barber"],[data-profession="other"]) #recurrence-validation-summary{background:#fbf6e9;color:#7a5a1c}
body:is([data-profession="barber"],[data-profession="other"]) #recurrence-validation-summary:empty{display:none}
body:is([data-profession="barber"],[data-profession="other"]) #lesson-day-picker .lp-mode-tabs button.active{color:#0d1b2e}
body:is([data-profession="barber"],[data-profession="other"]) #lesson-day-picker-count{color:#0d1b2e}

/* Horários de trabalho: chaves ligadas em marinho */
body:is([data-profession="barber"],[data-profession="other"]) :is(#catalog-setup-dialog,#working-hours-dialog){--bs-green:#0d1b2e}

/* Botão da loja no Início em marinho */
body:is([data-profession="barber"],[data-profession="other"]) .shop-entry{background:linear-gradient(180deg,#1b2d47,#0d1b2e)}

/* Clube: corte só agendado aparece vazado, feito aparece cheio */
body:is([data-profession="barber"],[data-profession="other"]) .bclub-dots i.is-booked{background:transparent;box-shadow:inset 0 0 0 2px #d4a853}

/* Receita avulsa: forma de pagamento logo depois de "Quando" */
body:is([data-profession="barber"],[data-profession="other"]) #income-dialog.tqp-on .bfi-method-label{order:6;margin-top:14px}
body:is([data-profession="barber"],[data-profession="other"]) #income-dialog.tqp-on .bfi-methods{order:7;display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
body:is([data-profession="barber"],[data-profession="other"]) #income-dialog .bfi-methods button.active{border-color:#0d1b2e;background:#0d1b2e;color:#fff}
/* Horários livres no Novo atendimento: latão, como na agenda (antes verde do Professor). */
body:is([data-profession="barber"],[data-profession="other"]) .bf-chip.is-free{border-color:#dcc38a;background:#fbf6e9;color:#8a6420}
body:is([data-profession="barber"],[data-profession="other"]) .bf-chip.is-free.active{border-color:#0d1b2e;background:#0d1b2e;color:#fffdf8}
/* M9: atendimento em data passada (Já foi feito · Já pagou). */
body:is([data-profession="barber"],[data-profession="other"]) #appointment-dialog.bf-on .bf-past{order:8;margin:0 0 14px;padding:14px;border:1px solid #e3d3a8;border-radius:18px;background:#fbf6e9}
body:is([data-profession="barber"],[data-profession="other"]) #appointment-dialog.bf-on .bf-past[hidden]{display:none}
body:is([data-profession="barber"],[data-profession="other"]) .bf-past-title{display:flex;gap:10px;align-items:flex-start;margin:0 0 12px}
body:is([data-profession="barber"],[data-profession="other"]) .bf-past-title svg{flex:none;width:22px;height:22px;fill:none;stroke:#8a6420;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body:is([data-profession="barber"],[data-profession="other"]) .bf-past-title span{display:grid;gap:2px}
body:is([data-profession="barber"],[data-profession="other"]) .bf-past-title strong{color:#0d1b2e;font-size:.95rem}
body:is([data-profession="barber"],[data-profession="other"]) .bf-past-title small{color:#6b5a3a;font-size:.8rem;line-height:1.35}
body:is([data-profession="barber"],[data-profession="other"]) .bf-past-paid{display:flex;width:100%;align-items:center;justify-content:space-between;min-height:44px;margin:0 0 10px;padding:0 4px 0 0;border:0;background:none;color:#0d1b2e;font:inherit;font-weight:750;cursor:pointer}
body:is([data-profession="barber"],[data-profession="other"]) .bf-past-paid i{position:relative;width:46px;height:28px;border-radius:999px;background:#cfc6b4;transition:background .2s}
body:is([data-profession="barber"],[data-profession="other"]) .bf-past-paid i::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003;transition:transform .2s}
body:is([data-profession="barber"],[data-profession="other"]) .bf-past-paid[aria-checked="true"] i{background:#0d1b2e}
body:is([data-profession="barber"],[data-profession="other"]) .bf-past-paid[aria-checked="true"] i::after{transform:translateX(18px);background:#d4a853}
body:is([data-profession="barber"],[data-profession="other"]) .bf-past-paid:focus-visible{outline:3px solid #d4a853;outline-offset:2px;border-radius:12px}
body:is([data-profession="barber"],[data-profession="other"]) .bf-past .bf-chips{margin:0}
body:is([data-profession="barber"],[data-profession="other"]) .bf-past-note{margin:0;color:#6b5a3a;font-size:.82rem}
/* M7: busca por @ no Novo cliente, antes do cadastro pelo nome. */
body:is([data-profession="barber"],[data-profession="other"]) #client-dialog.bf-on .bf-at{order:0;margin:0 0 12px;padding:12px 14px;border:1px solid #e3d3a8;border-radius:18px;background:#fbf6e9}
body:is([data-profession="barber"],[data-profession="other"]) .bf-at .bf-label{display:block;margin:0 0 8px}
body:is([data-profession="barber"],[data-profession="other"]) .bf-at-field{display:flex;align-items:center;gap:6px;min-height:46px;padding:0 12px;border:1px solid var(--bf-line,#e6dfd0);border-radius:14px;background:#fffdf8}
body:is([data-profession="barber"],[data-profession="other"]) .bf-at-field:focus-within{border-color:#0d1b2e;box-shadow:0 0 0 3px #d4a85355}
body:is([data-profession="barber"],[data-profession="other"]) .bf-at-field span{color:#8a6420;font-weight:800;font-size:1.05rem}
body:is([data-profession="barber"],[data-profession="other"]) .bf-at-field input{flex:1;min-width:0;margin:0;padding:10px 0;border:0;background:transparent;box-shadow:none;font:inherit;font-weight:700;color:#0d1b2e}
body:is([data-profession="barber"],[data-profession="other"]) .bf-at-field input:focus{outline:none}
body:is([data-profession="barber"],[data-profession="other"]) .bf-at .bf-hint{margin:8px 2px 0;padding:0;background:none}
body:is([data-profession="barber"],[data-profession="other"]) .bf-at .bf-hint.is-note{color:#6b5a3a}
body:is([data-profession="barber"],[data-profession="other"]) .bf-at-open{margin-left:4px;padding:0;border:0;background:none;color:#0d1b2e;font:inherit;font-weight:800;text-decoration:underline;cursor:pointer}
/* Aviso de cliente com o mesmo nome (Novo cliente). */
#client-error [data-open-duplicate]{display:inline;padding:0;border:0;background:none;color:inherit;font:inherit;font-weight:800;text-decoration:underline;text-underline-offset:3px;cursor:pointer}

/* Auditoria do Autônomo (23/10/2026, M8): verde do Professor que sobrou em telas comuns.
   Barbeiro em marinho e latão; Autônomo em grafite e cobre. */
body[data-profession="barber"]{--pro-ink:#0d1b2e;--pro-accent:#9a7426;--pro-line:#dcc38a;--pro-soft:#fbf6e9}
body[data-profession="other"]{--pro-ink:#252321;--pro-accent:#a45a30;--pro-line:#e2b897;--pro-soft:#fbf2ea}
body:is([data-profession="barber"],[data-profession="other"]) #profile-screen{--emerald:var(--pro-accent)}
body:is([data-profession="barber"],[data-profession="other"]) .shop-profile-entry-mark{background:var(--pro-ink)}
/* Selecionar ou cadastrar cliente */
body:is([data-profession="barber"],[data-profession="other"]) .contact-picker{--picker-accent:var(--pro-ink)}
body:is([data-profession="barber"],[data-profession="other"]) .contact-picker-label{color:var(--pro-ink)}
body:is([data-profession="barber"],[data-profession="other"]) .contact-picker-trigger{border-color:#e3dccf;color:var(--pro-ink)}
body:is([data-profession="barber"],[data-profession="other"]) .contact-picker-trigger:hover{border-color:var(--pro-line)}
body:is([data-profession="barber"],[data-profession="other"]) .contact-picker-trigger:focus-visible,
body:is([data-profession="barber"],[data-profession="other"]) .contact-picker.is-open .contact-picker-trigger{border-color:var(--pro-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--pro-accent) 18%,transparent)}
body:is([data-profession="barber"],[data-profession="other"]) .contact-picker-avatar svg,
body:is([data-profession="barber"],[data-profession="other"]) .contact-picker-search svg{stroke:var(--pro-ink)}
body:is([data-profession="barber"],[data-profession="other"]) .contact-picker-trigger.has-value .contact-picker-value strong,
body:is([data-profession="barber"],[data-profession="other"]) .contact-picker-option-copy strong{color:var(--pro-ink)}
body:is([data-profession="barber"],[data-profession="other"]) .contact-picker-panel,
body:is([data-profession="barber"],[data-profession="other"]) .contact-picker-search{border-color:#e3dccf}
body:is([data-profession="barber"],[data-profession="other"]) .contact-picker-search:focus-within{border-color:var(--pro-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--pro-accent) 14%,transparent)}
body:is([data-profession="barber"],[data-profession="other"]) .contact-picker-option:hover,
body:is([data-profession="barber"],[data-profession="other"]) .contact-picker-option.is-active{background:#f4f1ea}
body:is([data-profession="barber"],[data-profession="other"]) .contact-picker-option.is-active{box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--pro-accent) 40%,transparent)}
body:is([data-profession="barber"],[data-profession="other"]) .contact-picker-option.is-selected{background:var(--pro-soft)}
body:is([data-profession="barber"],[data-profession="other"]) .contact-picker-check{stroke:var(--pro-accent)}
body:is([data-profession="barber"],[data-profession="other"]) .contact-picker-create{border-color:var(--pro-line);background:var(--pro-soft);color:var(--pro-accent)}
body:is([data-profession="barber"],[data-profession="other"]) .contact-picker-create:hover{background:color-mix(in srgb,var(--pro-soft) 70%,var(--pro-line))}
body:is([data-profession="barber"],[data-profession="other"]) .contact-picker-create:focus-visible,
body:is([data-profession="barber"],[data-profession="other"]) .contact-picker-option:focus-visible{outline-color:var(--pro-accent)}
/* Encaixes livres do Início */
body:is([data-profession="barber"],[data-profession="other"]) .bh-gap{border-color:var(--pro-line);background:var(--pro-soft)}
body:is([data-profession="barber"],[data-profession="other"]) .bh-gap small{color:var(--pro-accent)}
/* Avisos curtos (toast) */
body:is([data-profession="barber"],[data-profession="other"]) .app-toast,
body:is([data-profession="barber"],[data-profession="other"]) .app-toast.success{background:var(--pro-ink);box-shadow:0 12px 34px rgba(0,0,0,.28)}
