/* ==========================================================================
   Mockups animados da agenda do Scal (fiéis ao app.sistemascal.com.br)
   --------------------------------------------------------------------------
   <div class="am" data-agenda-mockup="fluxo|recortes" role="img" aria-label="..."></div>
   + assets/mockups/agenda-mockups.css e assets/mockups/agenda-mockups.js (defer)
   Dados fictícios. Prints de referência em assets/mockups/originais/agenda/.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;600;700&display=swap');

.am {
  --am-ink: #212529;
  --am-navy: #102B3F;
  --am-muted: #8B8FA1;
  --am-line: #DDDDDD;
  --am-field: #E0E6EF;
  --am-blue: #1875F0;
  --am-green: #5CB85C;
  --am-lead: #02D203;
  --am-lime: #7AF365;
  --am-dark: #14231A;
  --am-fisio: #C2185B;
  --am-pilates: #1875F0;
  --am-centro: #FDD835;
  position: relative; width: 100%; overflow: hidden; contain: layout paint;
}
.am.fluxo { background: #fff; border-radius: inherit; }
.am-app {
  position: absolute; left: 0; top: 0; transform-origin: 0 0;
  font-family: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif;
  font-size: 16px; line-height: 1.3; color: var(--am-ink);
  -webkit-font-smoothing: antialiased; user-select: none; pointer-events: none;
}
.am-app * { box-sizing: border-box; }
.am-app p { color: inherit; }
.am-app svg { display: block; }

/* ---------- moldura do sistema ---------- */
.am-fluxo { background: #fff; display: grid; grid-template-rows: 60px 1fr; grid-template-columns: 250px 1fr; overflow: hidden; }
.am-nav { grid-column: 1 / -1; display: flex; align-items: center; border-bottom: 1px solid #EEF0F4; background: #fff; }
.am-logo { width: 56px; height: 60px; background: var(--am-lime); display: grid; place-items: center; }
.am-logo img { width: 30px; height: auto; }
.am-menu { display: flex; height: 60px; margin-left: 14px; }
.am-menu span { display: flex; align-items: center; gap: 4px; padding: 0 22px; font-weight: 600; color: var(--am-dark); position: relative; }
.am-menu span svg { width: 11px; height: 11px; }
.am-menu span.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--am-lead); }
.am-cora { display: flex; align-items: center; gap: 4px; margin-left: 18px; height: 22px; }
.am-cora img { height: 100%; width: auto; }
.am-cora img.c { height: 19px; margin-top: 2px; }
.am-lead { margin-left: 26px; height: 36px; padding: 0 18px; border-radius: 4px; background: var(--am-lead); color: #fff; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.am-lead svg { width: 14px; height: 14px; }
.am-busca { margin-left: auto; width: 215px; height: 38px; border: 1px solid var(--am-muted); border-radius: 4px; display: flex; align-items: center; gap: 8px; padding: 0 10px; color: #808080; }
.am-busca svg { width: 18px; height: 18px; color: #22A447; }
.am-ics { display: flex; align-items: center; gap: 26px; margin: 0 22px 0 34px; color: var(--am-dark); }
.am-ics svg { width: 20px; height: 20px; }
.am-ics .av { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #7FB4F5; background: #E9F2FE; color: var(--am-navy); font-weight: 700; font-size: 14px; display: grid; place-items: center; }

.am-side { padding: 50px 34px 0; border-right: 1px solid #EEF0F4; }
.am-novo { height: 47px; border-radius: 4px; background: var(--am-green); color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; transition: transform .18s, filter .18s; }
.am-novo svg { width: 18px; height: 18px; }
.am-bloq { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--am-blue); margin: 14px 0 30px; }
.am-bloq svg { width: 16px; height: 16px; }
.am-sec { color: var(--am-muted); text-transform: uppercase; font-size: 15px; margin: 22px 0 10px; letter-spacing: .01em; }
.am-chk { display: flex; align-items: center; gap: 9px; margin: 0 0 8px; }
.am-chk i { width: 20px; height: 20px; border-radius: 3px; background: var(--am-blue); display: grid; place-items: center; }
.am-chk i::after { content: ""; width: 10px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.am-side p { margin: 0; font-size: 15px; }

.am-cal { display: grid; grid-template-rows: 92px 80px 48px 1fr; min-width: 0; position: relative; }
.am-bar { display: flex; align-items: center; gap: 24px; padding: 0 24px 0 46px; }
.am-sel { height: 38px; border: 1px solid var(--am-field); border-radius: 4px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--am-navy); background: #fff; }
.am-sel svg { width: 13px; height: 13px; }
.am-bc { width: 220px; height: 38px; border: 1px solid var(--am-muted); border-radius: 4px; display: flex; align-items: center; gap: 10px; padding: 0 10px; color: var(--am-muted); }
.am-bc svg { width: 18px; height: 18px; color: #22A447; }
.am-per { display: flex; align-items: center; gap: 18px; margin: 0 auto; font-size: 18px; }
.am-per b { font-weight: 400; }
.am-per span { width: 28px; height: 26px; border-radius: 4px; background: var(--am-field); color: var(--am-blue); display: grid; place-items: center; }
.am-per span svg { width: 13px; height: 13px; }
.am-hoje { height: 38px; padding: 0 16px; border-radius: 4px; border: 1px solid var(--am-field); display: flex; align-items: center; color: var(--am-navy); }
.am-exp { width: 38px; height: 34px; border-radius: 4px; background: var(--am-field); color: var(--am-blue); display: grid; place-items: center; }
.am-exp svg { width: 16px; height: 16px; }

.am-head, .am-allday, .am-grid { display: grid; grid-template-columns: 46px repeat(6, 1fr); }
.am-head > div { background: #F3F3F3; border-top: 1px solid var(--am-line); border-left: 1px solid var(--am-line); color: #9B9B9B; padding: 12px 14px; }
.am-head > div:first-child { background: #fff; display: grid; place-items: center; }
.am-head > div:first-child svg { width: 20px; height: 20px; color: #9B9B9B; }
.am-head small { display: block; font-size: 14px; text-transform: uppercase; }
.am-head b { display: block; font-size: 35px; font-weight: 400; line-height: 1; margin-top: 4px; }
.am-allday > div { border-left: 1px solid var(--am-line); border-top: 1px solid var(--am-line); border-bottom: 4px solid #E6E6E6; }
.am-allday > div:first-child { font-size: 12px; color: var(--am-muted); text-align: center; padding-top: 8px; line-height: 1.4; }
.am-grid { position: relative; overflow: hidden; }
.am-axis > div { height: 40px; border-top: 1px solid var(--am-line); font-size: 12px; color: var(--am-muted); text-align: center; padding-top: 4px; }
.am-day { position: relative; border-left: 1px solid var(--am-line); background-image: linear-gradient(var(--am-line) 1px, transparent 1px); background-size: 100% 20px; }
.am-slot-hl { position: absolute; left: 1px; right: 1px; height: 20px; background: #DFF1F5; opacity: 0; transition: opacity .25s; }
.am-slot-hl.on { opacity: 1; }

/* ---------- cartão de agendamento ---------- */
.am-ev { position: absolute; left: 3px; right: 6px; display: flex; color: #fff; border-radius: 0 0 4px 0; overflow: hidden; }
.am-ev .ini { width: 40px; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: rgba(255,255,255,.95); background: rgba(0,0,0,.18); }
.am-ev .tx { flex: 1; padding: 8px 6px 0; min-width: 0; }
.am-ev .tx span { display: block; font-size: 12px; }
.am-ev .tx p { color: inherit; margin: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-ev.claro { color: var(--am-ink); }
.am-ev.claro .ini { color: var(--am-ink); background: rgba(0,0,0,.08); }
.am-dot { position: absolute; right: 4px; top: 4px; width: 15px; height: 15px; border-radius: 50%; background: rgba(255,255,255,.25); display: grid; place-items: center; }
.am-dot::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.42); position: absolute; }
.am-dot i { width: 10px; height: 10px; border-radius: 50%; background: var(--am-dark); position: relative; transition: background .4s; }
.am-dot.ok i { background: #3DD13D; }
.am-dot.pulse::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid #3DD13D; animation: amRing 1s ease-out 2; }
@keyframes amRing { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.am-ev.in { animation: amEvIn .6s cubic-bezier(.2,.9,.3,1.2); }
@keyframes amEvIn { from { opacity: 0; transform: scale(.85); } }

/* ---------- janelas (modais do sistema) ---------- */
.am-ov { position: absolute; inset: 0; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .3s; display: grid; place-items: center; }
.am-ov.on { opacity: 1; }
.am-mdl { width: 928px; background: #fff; border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,.25); transform: translateY(14px); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.am-ov.on .am-mdl { transform: none; }
.am-mdl-h { display: flex; justify-content: space-between; align-items: center; padding: 26px 50px; border-bottom: 1px solid #E9ECEF; }
.am-mdl-h b { font-size: 26px; font-weight: 400; color: #1D2B36; }
.am-mdl-h svg { width: 26px; height: 26px; color: #BBB; }
.am-mdl-b { padding: 34px 50px 40px; }
.am-row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 22px; }
.am-row.tres { grid-template-columns: 185px 185px 185px; gap: 30px; }
.am-lbl { color: var(--am-muted); margin-bottom: 8px; display: block; }
.am-inp { height: 43px; border: 1px solid #D8DDE5; border-radius: 4px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; color: var(--am-ink); background: #fff; transition: border-color .2s, box-shadow .2s; }
.am-inp.foco { border-color: #8FBDF7; box-shadow: 0 0 0 3px rgba(24,117,240,.15); }
.am-inp.off { background: #EDEDED; color: #9A9A9A; }
.am-inp[data-cli], .am-inp[data-tel] { justify-content: flex-start; }
.am-inp svg { width: 15px; height: 15px; color: #666; }
.am-inp .caret { display: inline-block; width: 1.5px; height: 18px; background: var(--am-ink); margin-left: 1px; vertical-align: -3px; animation: amCaret 1s steps(1) infinite; }
@keyframes amCaret { 50% { opacity: 0; } }
.am-inp .pf { display: flex; align-items: center; gap: 10px; }
.am-inp .pf i { width: 26px; height: 26px; border-radius: 50%; background: #F4D9E4; color: var(--am-fisio); font: 700 11px/26px 'Source Sans 3', sans-serif; text-align: center; font-style: normal; }
.am-sug { border: 1px solid #E3E6EA; border-top: 0; border-radius: 0 0 4px 4px; box-shadow: 0 6px 12px rgba(0,0,0,.08); }
.am-sug div { padding: 9px 12px; display: flex; justify-content: space-between; }
.am-sug div.on { background: #EEF5FE; }
.am-sug small { color: var(--am-muted); }
.am-sug a { display: block; padding: 9px 12px; color: var(--am-blue); }
.am-link { color: var(--am-blue); align-self: end; padding-bottom: 11px; }
.am-resumo { display: flex; gap: 40px; padding: 20px 50px; border-bottom: 1px solid #E9ECEF; }
.am-resumo small { display: block; color: var(--am-muted); font-size: 14px; text-transform: uppercase; }
.am-resumo span { display: block; margin-top: 2px; }
.am-resumo .sep { width: 1px; background: #E9ECEF; }
.am-svc { font-size: 22px; font-weight: 600; color: #1D2B36; margin: 0 0 20px; }
.am-mdl-f { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.am-mdl-f .v { color: #555; display: flex; align-items: center; gap: 4px; }
.am-mdl-f .v svg { width: 13px; height: 13px; }
.am-salvar { height: 45px; padding: 0 22px; border-radius: 4px; background: var(--am-blue); color: #fff; display: flex; align-items: center; transition: transform .18s, filter .18s; }
.press { transform: scale(.95) !important; filter: brightness(.9); }
.am-cursor { position: absolute; left: 0; top: 0; width: 22px; height: 22px; z-index: 20; transition: transform .8s cubic-bezier(.45,0,.2,1); filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
.am-cursor.click { animation: amClick .3s ease; }
@keyframes amClick { 50% { scale: .82; } }

/* ---------- recortes flutuando ---------- */
.am.recortes { background: transparent; }
.am-rec { position: relative; left: 10px; top: 8px; width: 100%; height: 100%; animation: amFloat 7s ease-in-out infinite alternate; }
/* uma composição só: a janela de detalhes é a base e as outras peças se encaixam sobre as bordas dela */
.am-peca { position: absolute; background: #fff; border-radius: 10px; box-shadow: 0 22px 44px -20px rgba(0,43,31,.42), 0 0 0 1px rgba(0,43,31,.07); overflow: hidden; }
@keyframes amFloat { from { translate: 0 0; } to { translate: 0 -6px; } }
.am-peca.cartao { z-index: 4; left: 0; top: 10px; width: 300px; height: 96px; background: transparent; box-shadow: 0 24px 40px -18px rgba(0,43,31,.5); border-radius: 0 0 8px 0; }
.am-peca.cartao .am-ev { position: static; height: 100%; border-radius: 0 0 8px 0; }
.am-peca.cartao .am-ev .ini { width: 68px; font-size: 22px; }
.am-peca.cartao .am-ev .tx { padding: 16px 12px 0; }
.am-peca.cartao .am-ev .tx span { font-size: 18px; }
.am-peca.cartao .am-ev .tx p { font-size: 24px; }
.am-peca.cartao .am-dot { right: 8px; top: 8px; transform: scale(1.5); transform-origin: top right; }
.am-peca.det { z-index: 1; left: 120px; top: 84px; width: 520px; }
.am-det-b { padding: 26px 32px 18px; position: relative; }
.am-det-b > svg.x { position: absolute; right: 18px; top: 16px; width: 22px; height: 22px; color: #BBB; }
.am-pill { display: inline-block; background: var(--am-blue); color: #fff; font-size: 12px; font-weight: 600; padding: 1px 10px; border-radius: 999px; }
.am-det-nome { display: flex; align-items: center; gap: 8px; color: var(--am-blue); font-size: 24px; font-weight: 600; margin-top: 4px; }
.am-det-nome svg { width: 20px; height: 20px; }
.am-det-tel { margin-top: 2px; }
.am-det-li { display: flex; gap: 8px; margin-top: 18px; }
.am-det-li + .am-det-li { margin-top: 10px; }
.am-det-li svg { width: 18px; height: 18px; color: #666; flex: none; margin-top: 2px; }
.am-det-li small { display: block; color: var(--am-muted); font-size: 15px; }
.am-tog { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.am-tog i { width: 30px; height: 16px; border-radius: 999px; background: #8E9196; position: relative; transition: background .3s; flex: none; }
.am-tog i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.am-tog.on i { background: var(--am-green); }
.am-tog.on i::after { transform: translateX(14px); }
.am-det-f { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #E9ECEF; padding: 16px 26px; }
.am-det-f .falta { color: #E5484D; font-size: 15px; }
.am-det-f .acts { display: flex; align-items: center; gap: 14px; }
.am-det-f .ed { color: var(--am-blue); display: flex; align-items: center; gap: 5px; }
.am-det-f .ed svg { width: 16px; height: 16px; }
.am-pres { height: 44px; padding: 0 16px; border-radius: 4px; background: var(--am-green); color: #fff; display: flex; align-items: center; gap: 8px; transition: transform .18s, filter .18s, background .3s; }
.am-pres svg { width: 18px; height: 18px; }
.am-pres.done { background: #3E9A3E; }
.am-peca.leg { z-index: 2; left: 540px; top: 150px; width: 190px; padding: 10px 0; }
.am-leg div { display: flex; align-items: center; gap: 8px; padding: 5px 14px; font-size: 15px; transition: background .3s; }
.am-leg div i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.am-leg div.on { background: #EEF9EE; font-weight: 600; }
.am-peca.bl { z-index: 3; left: 20px; top: 402px; width: 340px; padding: 16px 20px; }
.am-bl-t { font-size: 18px; color: #1D2B36; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.am-bl-t svg { width: 16px; height: 16px; color: var(--am-blue); }
.am-bl-r { display: flex; align-items: center; gap: 10px; }
.am-bl-r .am-inp { height: 36px; font-size: 15px; padding: 0 10px; }
.am-bl-r .ate { color: var(--am-muted); }
.am-bl-r2 { display: flex; align-items: center; gap: 22px; margin-top: 14px; }
.am-cb { display: flex; align-items: center; gap: 8px; color: var(--am-muted); }
.am-cb i { width: 18px; height: 18px; border: 2px solid var(--am-blue); border-radius: 3px; }

@media (prefers-reduced-motion: reduce) {
  .am-app *, .am-app *::before, .am-app *::after { animation: none !important; transition: none !important; }
}
