/* ============================================================
   AGENDAR · tipos de atendimento + "o que saber" + dia da profissional
   (23/out/2026) · mesma linguagem do modal .v2s- (admin-v2.html)
   Prefixos: atp- (tipos / editor) · actx- (painel ao lado e linha do tempo)
   ============================================================ */

/* ── modal largo com painel ao lado ─────────────────────────── */
.v2s-modal.actx-larga { max-width: 1100px; }
.actx-cols { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; }
.actx-side { position: sticky; top: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.actx-side-box { background: #FBF8F3; border: 1px solid rgba(46,42,38,.1); border-radius: 14px; padding: 14px 14px 12px; min-width: 0; }
.actx-side-tit { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #9E8B76; font-weight: 700; margin-bottom: 10px; }
.actx-carregando { font-size: 11.5px; color: var(--v2-ter, #A99B8C); padding: 6px 0; }

/* ── tiles agrupados ────────────────────────────────────────── */
.atp-grupos { display: flex; flex-direction: column; gap: 12px; margin-bottom: 10px; }
.atp-grupo-lab { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--v2-ter, #A99B8C); font-weight: 700; margin: 0 0 6px 2px; }
.atp-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(142px, 1fr)); gap: 8px; }
.atp-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; text-align: left;
  background: #FBF8F3; border: 1px solid rgba(46,42,38,.12); border-radius: 12px; padding: 10px 11px 9px 12px; cursor: pointer; font-family: inherit;
  transition: border-color .12s, background .12s, box-shadow .12s; }
.atp-tile::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--atp-cor, #CAA967); opacity: .75; }
.atp-tile:hover { border-color: rgba(46,42,38,.3); }
.atp-tile:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(140,122,79,.25); }
.atp-tile-ico { color: #6E6254; display: flex; min-height: 20px; }
.atp-tile-lab { font-size: 11.5px; font-weight: 600; color: var(--v2-ink, #241F1B); line-height: 1.25; }
.atp-tile-meta { font-size: 10px; color: var(--v2-sub, #8D7B6A); line-height: 1.3; }
.atp-tile-meta b { font-weight: 700; color: #5A5049; }
.atp-tile.on { background: #211D18; border-color: #211D18; }
.atp-tile.on .atp-tile-lab { color: #F6F2EE; }
.atp-tile.on .atp-tile-ico { color: #E8E0CE; }
.atp-tile.on .atp-tile-meta, .atp-tile.on .atp-tile-meta b { color: #CDBFA9; }
.atp-tile.on::before { opacity: 1; }
.atp-rodape { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.atp-editar { background: transparent; border: 0; padding: 4px 2px; font: 600 11px/1.2 inherit; color: var(--v2-link, #8A6B26); cursor: pointer; margin-left: auto; }
.atp-editar:hover { text-decoration: underline; }
.atp-aviso { font-size: 11px; color: #7A5F2F; background: #F5EDD9; border: 1px solid rgba(176,138,46,.3); border-radius: 10px; padding: 8px 11px; line-height: 1.45; margin-bottom: 10px; }
.atp-aviso code { font-size: 10.5px; }

/* ── campo Duração (presets + livre) ────────────────────────── */
.atp-presets { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.atp-chip { border: 1px solid rgba(46,42,38,.14); background: #FFFFFF; color: #5A5049; border-radius: 8px; padding: 5px 9px; font: 600 11px/1 inherit; cursor: pointer; }
.atp-chip:hover { border-color: rgba(176,138,46,.55); }
.atp-chip.on { background: #211D18; border-color: #211D18; color: #F6F2EE; }

/* ── editor "Tipos de atendimento" ──────────────────────────── */
.atp-ovl { position: fixed; inset: 0; background: rgba(20,15,10,.55); display: flex; align-items: flex-start; justify-content: center; z-index: 100001; padding: 44px 20px; overflow-y: auto; backdrop-filter: blur(2px); }
.atp-modal { background: #FFFFFF; border: 1px solid var(--v2-line, rgba(46,42,38,.08)); border-radius: 18px; max-width: 680px; width: 100%; padding: 26px 28px 20px; box-shadow: 0 30px 80px rgba(20,15,10,.35); position: relative; }
.atp-x { position: absolute; top: 14px; right: 14px; background: transparent; border: 0; font-size: 22px; color: var(--v2-ter, #A99B8C); cursor: pointer; padding: 6px; line-height: 1; }
.atp-x:hover { color: var(--v2-ink, #241F1B); }
.atp-eyebrow { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: #9E8B76; font-weight: 700; }
.atp-titulo { font-family: 'Mirante', 'Helvetica Neue', serif; font-size: 21px; font-weight: 600; color: var(--v2-ink, #241F1B); margin: 5px 0 16px; letter-spacing: -.01em; }
.atp-lista { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.atp-linha { display: flex; align-items: center; gap: 10px; background: #FBF8F3; border: 1px solid rgba(46,42,38,.1); border-radius: 11px; padding: 9px 10px 9px 12px; min-width: 0; }
.atp-linha.off { opacity: .6; }
.atp-linha-ico { display: flex; flex: none; }
.atp-linha-txt { flex: 1; min-width: 0; }
.atp-linha-nome { font-size: 12.5px; font-weight: 600; color: var(--v2-ink, #241F1B); overflow: hidden; text-overflow: ellipsis; }
.atp-linha-nome em { font-style: normal; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: #8A6B26; background: rgba(202,169,103,.16); border-radius: 5px; padding: 2px 6px; margin-left: 4px; }
.atp-linha-sub { font-size: 11px; color: var(--v2-sub, #8D7B6A); margin-top: 2px; }
.atp-linha-acoes { display: flex; gap: 4px; flex: none; }
.atp-mini { border: 1px solid rgba(46,42,38,.14); background: #FFFFFF; color: #5A5049; border-radius: 8px; min-width: 30px; height: 30px; padding: 0 8px; font: 600 12px/1 inherit; cursor: pointer; }
.atp-mini:disabled { opacity: .35; cursor: default; }
.atp-mini:not(:disabled):hover { border-color: rgba(176,138,46,.55); }
.atp-mini-txt { font-size: 11px; }
.atp-form { display: flex; flex-direction: column; }
.atp-gap { margin-top: 12px; }
.atp-icones { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.atp-ico-op { width: 36px; height: 36px; border-radius: 9px; border: 1px solid rgba(46,42,38,.14); background: #FBF8F3; color: #6E6254; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.atp-ico-op.on { background: #211D18; border-color: #211D18; color: #F6F2EE; }
.atp-cor { width: 42px; height: 36px; border: 1px solid rgba(46,42,38,.14); border-radius: 9px; background: #FFFFFF; padding: 3px; cursor: pointer; }
.atp-checks { display: flex; flex-direction: column; gap: 7px; font-size: 12px; color: #5A5049; }
.atp-checks label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.atp-checks input { accent-color: #B08A2E; }
.atp-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--v2-line, rgba(46,42,38,.08)); padding-top: 14px; margin-top: 16px; flex-wrap: wrap; }
.atp-sp { flex: 1; }
.atp-arquivar { background: transparent; color: var(--v2-vermelho, #A5584E); border: 1px dashed rgba(165,88,78,.4); border-radius: 11px; padding: 10px 14px; font: 600 11.5px/1 inherit; cursor: pointer; }

/* ── painel "O que saber antes de marcar" ───────────────────── */
.actx-pac { display: flex; flex-direction: column; gap: 10px; }
.actx-sec { background: #FFFFFF; border: 1px solid rgba(46,42,38,.08); border-radius: 11px; padding: 10px 12px; min-width: 0; }
.actx-lab { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--v2-ter, #A99B8C); font-weight: 700; margin-bottom: 6px; }
.actx-linha-txt { font-size: 12px; color: #2E2A26; line-height: 1.45; }
.actx-linha-txt + .actx-linha-txt { margin-top: 5px; }
.actx-linha-txt em, .actx-corpo em { font-style: normal; font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: #8A6B26; background: rgba(202,169,103,.16); border-radius: 5px; padding: 1px 5px; margin-left: 4px; white-space: nowrap; }
.actx-sub { font-size: 11px; color: var(--v2-sub, #8D7B6A); line-height: 1.45; margin-top: 3px; }
.actx-ruim { color: var(--v2-vermelho, #A5584E); font-style: normal; }
.actx-red { background: #F7E9E6; border-color: rgba(165,88,78,.35); }
.actx-red .actx-lab { color: #A5584E; }
.actx-red ul { margin: 0; padding-left: 16px; font-size: 12px; color: #6E2F27; line-height: 1.5; }
.actx-aviso { background: #F5EDD9; border-color: rgba(176,138,46,.35); font-size: 12px; color: #6B5320; line-height: 1.45; }
.actx-fin-ruim { border-color: rgba(165,88,78,.3); }
.actx-tipo { background: #F8F1E2; border-color: rgba(202,169,103,.4); }
.actx-bloco b { display: block; font-size: 10.5px; font-weight: 700; color: #5A5049; margin-bottom: 2px; }
.actx-bloco p { margin: 0; font-size: 11.5px; color: #3A342E; line-height: 1.5; }
.actx-bloco + .actx-bloco { margin-top: 8px; }
.actx-confere b { color: #7A5F2F; }
.actx-tel { font-size: 12px; color: #5A5049; }
.actx-tel a { color: var(--v2-link, #8A6B26); text-decoration: none; font-weight: 600; }
.actx-vazio { font-size: 11.5px; color: var(--v2-ter, #A99B8C); line-height: 1.45; padding: 4px 0; }

/* ── linha do tempo do dia da profissional ──────────────────── */
.actx-dia { display: flex; flex-direction: column; gap: 8px; }
.actx-dia-head b { display: block; font-family: 'Mirante', 'Helvetica Neue', serif; font-size: 14px; font-weight: 600; color: var(--v2-ink, #241F1B); }
.actx-dia-head span { font-size: 11px; color: var(--v2-sub, #8D7B6A); line-height: 1.4; }
.actx-prop { border-radius: 10px; padding: 8px 10px; background: rgba(95,107,78,.1); border: 1px solid rgba(95,107,78,.28); font-size: 11px; color: #4E5A40; line-height: 1.4; }
.actx-prop b { display: block; font-size: 11.5px; }
.actx-prop.fora { background: #F5EDD9; border-color: rgba(176,138,46,.35); color: #6B5320; }
.actx-prop.choque { background: #F7E9E6; border-color: rgba(165,88,78,.4); color: #8A3F35; }
.actx-disp { display: flex; flex-wrap: wrap; gap: 5px; }
.actx-disp span { font-size: 10px; color: #3C5A48; background: #E4ECE5; border-radius: 6px; padding: 3px 7px; }
.actx-linha { position: relative; display: flex; flex-direction: column; gap: 5px; max-height: 360px; overflow-y: auto; padding-right: 2px; }
.actx-item { display: flex; gap: 9px; align-items: stretch; min-width: 0; }
.actx-h { flex: none; width: 40px; text-align: right; font-size: 11px; font-weight: 700; color: #241F1B; line-height: 1.2; padding-top: 6px; }
.actx-h small { display: block; font-size: 9.5px; font-weight: 600; color: var(--v2-ter, #A99B8C); }
.actx-corpo { flex: 1; min-width: 0; border-radius: 9px; padding: 6px 9px; font-size: 11px; line-height: 1.35; display: flex; flex-direction: column; gap: 1px; }
.actx-corpo b { font-size: 11.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.actx-corpo > span { color: inherit; opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.actx-ev .actx-corpo { background: #F5EDD8; color: #5A4520; border-left: 3px solid var(--actx-cor, #B08A2E); }
.actx-bloq .actx-corpo { background: #EDE8E1; color: #5A5049; border-left: 3px solid #A99B8C; }
.actx-item.choque .actx-corpo { background: #F7E9E6; color: #8A3F35; border-left-color: #A5584E; }
.actx-livre .actx-corpo { background: transparent; border: 1px dashed rgba(95,107,78,.45); color: #4E5A40; }
.actx-livre.curto .actx-corpo { border-color: rgba(46,42,38,.15); color: var(--v2-ter, #A99B8C); }
.actx-chips { display: flex !important; flex-wrap: wrap; gap: 4px; margin-top: 4px; white-space: normal !important; opacity: 1 !important; }
.actx-chip { border: 1px solid rgba(95,107,78,.4); background: #FFFFFF; color: #3F4A33; border-radius: 7px; padding: 4px 7px; font: 700 10.5px/1 inherit; cursor: pointer; min-height: 26px; }
.actx-chip:hover { background: #E4ECE5; }
.actx-chip.on { background: #4E5A40; border-color: #4E5A40; color: #F6F2EE; }
.actx-chip:focus-visible, .atp-chip:focus-visible, .atp-mini:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(140,122,79,.25); }

/* ── telas estreitas ────────────────────────────────────────── */
@media (max-width: 960px) {
  .actx-cols { grid-template-columns: 1fr; }
  .actx-side { position: static; }
}
@media (max-width: 680px) {
  .atp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atp-modal { padding: 20px 16px 16px; }
  .atp-ovl { padding: 16px 10px; }
  .atp-linha { flex-wrap: wrap; }
  .atp-linha-acoes { width: 100%; justify-content: flex-end; }
  .actx-linha { max-height: none; }
  .actx-chip { min-height: 32px; padding: 6px 9px; }
}
@media (max-width: 360px) {
  .atp-tiles { grid-template-columns: 1fr; }
}
