/* FOURMI THINK — Barbeiro: Resumo do mês funcional + estados visuais (só Barbeiro). */
:root{--bm-deep:#0f2b3a;--bm-ink:#14262f;--bm-muted:#5f6f72;--bm-line:#e6e0d3;--bm-cream:#fbf8f1;--bm-gold:#c9a24c;--bm-green:#0b8a5a;--bm-coral:#d9705a;--bm-amber:#b7791f;--bm-blue:#2f6f9f}
#workspace:not(:is([data-profession="barber"],[data-profession="other"])) .bm-month{display:none!important}
.bm-month[hidden]{display:none!important}
#workspace:is([data-profession="barber"],[data-profession="other"]) .bm-month{margin:14px 0 0;padding:18px 16px 14px;border:1px solid var(--bm-line);border-radius:24px;background:#fffdf8;box-shadow:0 12px 30px -22px rgba(15,43,58,.45)}
.bm-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:14px}
.bm-head h2{margin:0;color:var(--bm-ink);font-size:1.22rem;font-weight:850;letter-spacing:-.01em}
.bm-nav{display:inline-flex;align-items:center;gap:2px;color:var(--bm-muted);font-size:.86rem;font-weight:700}
.bm-nav span{min-width:0;padding:0 2px;white-space:nowrap}
.bm-nav-btn{display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--bm-ink);cursor:pointer}
.bm-nav-btn svg,.bm-details svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.bm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.bm-card{display:grid;align-content:start;gap:8px;min-width:0;min-height:128px;padding:14px;border:1px solid var(--bm-line);border-radius:18px;background:#fff;color:var(--bm-ink);font:inherit;text-align:left;cursor:pointer;transition:transform .14s cubic-bezier(.23,1,.32,1),box-shadow .2s,border-color .2s}
.bm-card:hover{border-color:#d7cdb6;box-shadow:0 10px 22px -16px rgba(15,43,58,.5)}
.bm-card:active,.bm-card.is-pressed{transform:scale(.98)}
.bm-card:focus-visible,.bm-details:focus-visible,.bm-nav-btn:focus-visible{outline:3px solid var(--bm-gold);outline-offset:2px}
.bm-card-head{display:grid;justify-items:start;gap:8px;min-width:0}
.bm-card-icon{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:11px;background:#f7efdb;color:var(--bm-gold)}
.bm-card.is-completed .bm-card-icon{background:#e5f4ec;color:var(--bm-green)}
.bm-card.is-missed .bm-card-icon{background:#fbe9e3;color:var(--bm-coral)}
.bm-card.is-attention .bm-card-icon{background:#fdf0d6;color:var(--bm-amber)}
.bm-card-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.bm-card-title{min-width:0;color:#3c4d50;font-size:.82rem;font-weight:750;line-height:1.2;overflow-wrap:anywhere}
.bm-card-value{font-size:clamp(1.6rem,7.6vw,2rem);font-weight:850;line-height:1;font-variant-numeric:tabular-nums}
.bm-card-foot{display:grid;gap:2px;min-width:0}
.bm-card-foot b{font-size:.8rem;font-weight:800;color:var(--bm-muted)}
.bm-card.is-completed .bm-card-foot b{color:var(--bm-green)}.bm-card.is-missed .bm-card-foot b{color:var(--bm-coral)}.bm-card.is-attention .bm-card-foot b,.bm-card.is-open .bm-card-foot b{color:var(--bm-amber)}
.bm-card-foot small{color:var(--bm-muted);font-size:.72rem;line-height:1.3}
.bm-details{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:44px;margin-top:10px;border:0;border-radius:14px;background:transparent;color:var(--bm-deep);font:inherit;font-size:.9rem;font-weight:800;cursor:pointer}
@media(max-width:359px){#workspace:is([data-profession="barber"],[data-profession="other"]) .bm-month{padding:14px 12px}.bm-card{padding:12px;min-height:118px}.bm-card-title{font-size:.74rem}.bm-card-icon{width:30px;height:30px}}

/* Listagem (componente único) */
.bm-sheet{width:min(560px,calc(100vw - 20px));max-width:560px;max-height:min(92dvh,980px);padding:0;border:0;border-radius:28px;background:var(--bm-cream);color:var(--bm-ink);overflow:hidden}
.bm-sheet::backdrop{background:rgba(9,25,32,.55);backdrop-filter:blur(8px)}
.bm-shell{max-height:inherit;overflow:auto;overscroll-behavior:contain}
.bm-sheet-head{position:sticky;top:0;z-index:2;display:grid;grid-template-columns:44px minmax(0,1fr);gap:10px;align-items:start;padding:calc(14px + env(safe-area-inset-top,0px)) 16px 10px;background:color-mix(in srgb,var(--bm-cream) 92%,transparent);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.bm-sheet-head h2{margin:4px 0 0;font-size:1.32rem;font-weight:850;line-height:1.2}
.bm-sheet-head p{margin:3px 0 0;color:var(--bm-muted);font-size:.88rem}
.bm-round{display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--bm-ink);cursor:pointer}
.bm-round svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#bm-sheet-body{padding:4px 16px calc(26px + env(safe-area-inset-bottom,0px))}
#bm-sheet-body.bm-enter{animation:bm-lift 240ms cubic-bezier(.23,1,.32,1) both}
.bm-tabs{display:flex;gap:4px;margin:2px 0 12px;padding:4px;border-radius:16px;background:#ece6d9;overflow-x:auto;scrollbar-width:none}
.bm-tab{flex:1 0 auto;display:flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:0 12px;border:0;border-radius:12px;background:transparent;color:#4b5a5d;font:inherit;font-size:.86rem;font-weight:750;white-space:nowrap;cursor:pointer}
.bm-tab.is-on{background:#fff;color:var(--bm-ink);box-shadow:0 1px 3px rgba(15,43,58,.14)}
.bm-tab b{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#e1dacb;font-size:.74rem}
.bm-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-bottom:10px}
.bm-search{position:relative;display:block}
.bm-search svg{position:absolute;left:13px;top:50%;width:18px;height:18px;transform:translateY(-50%);fill:none;stroke:var(--bm-muted);stroke-width:2;stroke-linecap:round}
.bm-search input{width:100%;box-sizing:border-box;min-height:46px;padding:0 12px 0 40px;border:1px solid var(--bm-line);border-radius:14px;background:#fff;font:inherit;font-size:16px}
.bm-filter{display:inline-flex;align-items:center;gap:6px;min-height:46px;padding:0 14px;border:1px solid var(--bm-line);border-radius:14px;background:#fff;color:var(--bm-ink);font:inherit;font-size:.86rem;font-weight:750;cursor:pointer}
.bm-filter svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.bm-filter b{display:grid;place-items:center;min-width:20px;height:20px;border-radius:99px;background:var(--bm-gold);font-size:.7rem}
.bm-filter.is-on{border-color:var(--bm-deep)}
.bm-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin:0 0 12px;padding:12px;border:1px solid var(--bm-line);border-radius:16px;background:#fff;animation:bm-lift 200ms cubic-bezier(.23,1,.32,1) both}
.bm-filters[hidden]{display:none}
.bm-filters label{display:grid;gap:5px;color:var(--bm-muted);font-size:.74rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.bm-filters :is(select,input){min-height:44px;padding:0 10px;border:1px solid var(--bm-line);border-radius:12px;background:#fff;color:var(--bm-ink);font:inherit;font-size:16px;text-transform:none;letter-spacing:0}
.bm-list{display:grid;gap:10px}
.bm-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:6px 12px;padding:12px;border:1px solid var(--bm-line);border-radius:18px;background:#fff;transition:transform .14s cubic-bezier(.23,1,.32,1)}
.bm-row.is-pressed{transform:scale(.99)}
.bm-row.is-noShow{border-left:4px solid var(--bm-coral)}.bm-row.is-cancelled{border-left:4px solid #9aa3a5}.bm-row.is-attention{border-left:4px solid var(--bm-amber)}.bm-row.is-completed{border-left:4px solid var(--bm-green)}
.bm-avatar{display:grid;place-items:center;width:46px;height:46px;padding:0;border:0;border-radius:50%;background:linear-gradient(145deg,#e6edf0,#d4e0e4);color:var(--bm-deep);font:inherit;font-size:.95rem;font-weight:800;overflow:hidden;cursor:pointer}
span.bm-avatar{cursor:default}
.bm-avatar img{width:100%;height:100%;object-fit:cover}
.bm-row-main{display:grid;gap:2px;min-width:0;padding:4px 0;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.bm-row-main strong{font-size:.98rem;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bm-row-main span{color:var(--bm-muted);font-size:.86rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bm-row-main small{color:#3c4d50;font-size:.8rem;font-variant-numeric:tabular-nums}
.bm-chip{justify-self:end;padding:5px 10px;border-radius:999px;font-size:.72rem;font-weight:800;white-space:nowrap}
.bm-chip.is-done{background:#e5f4ec;color:#0a6f49}.bm-chip.is-noshow{background:#fbe5de;color:#a3412c}.bm-chip.is-cancelled{background:#eceeee;color:#5c6466}.bm-chip.is-attention{background:#fdf0d6;color:#8a5a0f}.bm-chip.is-scheduled{background:#e7f0f7;color:#245a82}.bm-chip.is-confirmed{background:#e3eef7;color:#1e5277}.bm-chip.is-other{background:#eceeee;color:#5c6466}
.bm-row-extra{grid-column:2/-1;display:grid;gap:6px}
.bm-line{color:#3c4d50;font-size:.82rem;line-height:1.35;overflow-wrap:anywhere}
.bm-pay.is-pending{color:#8a5a0f;font-weight:750}.bm-pay.is-paid{color:#0a6f49;font-weight:750}
.bm-actions{display:flex;flex-wrap:wrap;gap:8px}
.bm-act{min-height:38px;padding:0 13px;border:1px solid var(--bm-line);border-radius:12px;background:#fff;color:var(--bm-ink);font:inherit;font-size:.84rem;font-weight:800;cursor:pointer}
.bm-act.is-primary,.bm-act[data-bm-pay]{border-color:var(--bm-deep);background:var(--bm-deep);color:#fff}
.bm-act:focus-visible,.bm-row-main:focus-visible,.bm-avatar:focus-visible,.bm-tab:focus-visible,.bm-filter:focus-visible{outline:3px solid var(--bm-gold);outline-offset:2px}
.bm-empty{margin:20px 0;padding:22px 16px;border:1px dashed #d9cfba;border-radius:16px;color:var(--bm-muted);text-align:center}
@media(max-width:560px){.bm-sheet{width:100vw;max-width:none;height:100dvh;max-height:100dvh;margin:0;border-radius:0}}
@media(max-width:359px){.bm-row{grid-template-columns:auto minmax(0,1fr)}.bm-chip{grid-column:2;justify-self:start}}
@keyframes bm-lift{from{opacity:0;transform:translate3d(0,6px,0)}to{opacity:1;transform:none}}

/* Estados visuais do Barbeiro (Hoje e Agenda) — texto sempre presente */
#workspace:is([data-profession="barber"],[data-profession="other"]) .barber-timeline-status .status-completed{background:#e3f4ea;color:#0a7a52}
#workspace:is([data-profession="barber"],[data-profession="other"]) .barber-timeline-status .status-noShow{background:#fbe5de;color:#a3412c}
#workspace:is([data-profession="barber"],[data-profession="other"]) .barber-timeline-status .status-cancelled{background:#eceeee;color:#5c6466;text-decoration:none}
#workspace:is([data-profession="barber"],[data-profession="other"]) .barber-timeline-status .status-awaiting{background:#fdf0d6;color:#8a5a0f}
#workspace:is([data-profession="barber"],[data-profession="other"]) .barber-timeline-status .status-scheduled,#workspace:is([data-profession="barber"],[data-profession="other"]) .barber-timeline-status .status-confirmed{background:#e7f0f7;color:#245a82}
#teacher-agenda-grid[data-agenda-mode="barber"] .tg-block.status-noShow{--block:#d9705a!important;background:#fdf1ed;opacity:1}
#teacher-agenda-grid[data-agenda-mode="barber"] .tg-block.status-noShow .sg-block-title{color:#7d3324}
.bs-noshow-tag{display:inline-block;justify-self:start;width:max-content;margin-top:1px;padding:1px 6px;border-radius:999px;background:#f6d5cb;color:#8f3826;font-size:.6rem;font-weight:850;white-space:nowrap}
@media(prefers-reduced-motion:reduce){.bm-card,.bm-row,#bm-sheet-body,.bm-filters{animation:none!important;transition:none!important}}
#teacher-agenda-grid[data-agenda-mode="barber"] .bg-stage.is-noShow{display:inline-block;padding:1px 7px;border-radius:999px;background:#f6d5cb;color:#8f3826;font-weight:850}
