/* ==========================================================================
   SEMPRE BELLA — painel da equipe
   ========================================================================== */
body[data-mode="admin"] { background: #f7eff3; }
body[data-mode="admin"] .cursor-glow { display: none; }

.adm { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 100vh; }
.adm-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 22px; padding: 22px 16px; overflow-y: auto; color: var(--cream); background: radial-gradient(400px 300px at 0 0, #5e2147, transparent 60%), linear-gradient(180deg, var(--wine-800), var(--wine-900)); z-index: 70; scrollbar-width: thin; }
.adm-brand { display: grid; justify-items: start; gap: 8px; padding: 6px 10px 12px; }
.adm-logo { display: block; width: 200px; max-width: 100%; height: auto; transition: transform 0.6s var(--ease); }
.adm-brand:hover .adm-logo { transform: scale(1.03); }
.adm-brand-sub { font-size: 0.62rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold-300); padding-left: 4px; }
.adm-nav { display: grid; gap: 3px; }
.adm-link { position: relative; display: flex; align-items: center; gap: 13px; padding: 12px 14px; border-radius: 14px; color: rgba(252, 247, 247, 0.7); font-size: 0.93rem; border: 0; background: none; width: 100%; text-align: left; transition: background 0.3s, color 0.3s, transform 0.4s var(--ease); }
.adm-link .ic { color: var(--gold-300); opacity: 0.85; transition: transform 0.5s var(--spring); }
.adm-link:hover { background: rgba(255, 255, 255, 0.07); color: #fff; transform: translateX(3px); }
.adm-link:hover .ic { transform: scale(1.12) rotate(-6deg); }
.adm-link.is-active { background: rgba(255, 255, 255, 0.12); color: #fff; font-weight: 500; }
.adm-link.is-active::before { content: ""; position: absolute; left: -16px; top: 12px; bottom: 12px; width: 4px; border-radius: 0 4px 4px 0; background: var(--gold-400); }
.nav-badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: grid; place-items: center; background: var(--rose-500); color: #fff; font-size: 0.7rem; font-style: normal; font-weight: 600; animation: pop 0.5s var(--spring); }
.nav-badge.is-soft { background: rgba(255, 255, 255, 0.18); }
.nav-badge[hidden] { display: none; }
.adm-side-foot { margin-top: auto; display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.adm-user { display: flex; align-items: center; gap: 10px; padding: 8px 6px 4px; }
.adm-user > div { flex: 1; min-width: 0; line-height: 1.2; }
.adm-user b { font-weight: 500; display: block; }
.adm-user small { color: rgba(252, 247, 247, 0.55); font-size: 0.72rem; display: block; overflow: hidden; text-overflow: ellipsis; }
.adm-user button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.08); color: var(--cream); display: grid; place-items: center; transition: background 0.3s; }
.adm-user button:hover { background: var(--rose-500); }
.adm-scrim { display: none; }
.adm-main { min-width: 0; display: flex; flex-direction: column; }
.adm-top { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 14px; padding: 14px clamp(16px, 2.4vw, 32px); background: rgba(247, 239, 243, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.adm-title { flex: 1; min-width: 0; line-height: 1.15; }
.adm-title h2 { font-size: 1.7rem; }
.adm-title small { color: var(--muted); }
.adm-title small::first-letter { text-transform: uppercase; }
.adm-top-actions { display: flex; gap: 8px; }
.adm-burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--wine-700); place-items: center; }
.adm-page { padding: clamp(16px, 2.6vw, 32px); width: 100%; max-width: 1560px; animation: slide-up 0.6s var(--ease) both; }
@media (max-width: 1020px) {
  .adm { grid-template-columns: 1fr; }
  .adm-side { position: fixed; left: 0; top: 0; width: min(300px, 86vw); transform: translateX(-102%); transition: transform 0.5s var(--ease); box-shadow: var(--shadow-lg); }
  .adm-side.is-open { transform: none; }
  .adm-scrim { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(37, 12, 28, 0.5); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity 0.35s; }
  .adm-scrim.is-on { opacity: 1; pointer-events: auto; }
  .adm-burger { display: grid; }
}

/* ---------------- blocos genéricos ---------------- */
.adm-pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.adm-pagehead h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.adm-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.adm-card { background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow-xs); overflow: hidden; }
.adm-card + .adm-card { margin-top: 20px; }
.adm-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 22px 26px 4px; }
.adm-card-head h3 { line-height: 1.1; }
.adm-card-body { padding: 18px 26px 24px; }
.adm-card-foot { padding: 16px 26px; background: var(--cream); border-top: 1px solid var(--line-2); display: flex; gap: 10px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.adm-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.adm-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.adm-split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1100px) { .adm-grid-3 { grid-template-columns: 1fr 1fr; } .adm-split { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .adm-grid-2, .adm-grid-3 { grid-template-columns: 1fr; } .adm-card-body, .adm-card-head, .adm-card-foot { padding-inline: 18px; } }
.adm-empty { text-align: center; padding: 50px 20px; color: var(--muted); display: grid; justify-items: center; gap: 8px; }
.adm-empty > .ic { color: var(--rose-400); }
.toggle-row { display: grid; gap: 4px; padding: 6px 0; }
.toggle-row small { padding-left: 54px; }
.adm-sub { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-600); font-weight: 500; margin: 22px 0 10px; }
.adm-sub:first-child { margin-top: 0; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink-2); display: inline-grid; place-items: center; transition: transform 0.3s var(--spring), background 0.2s, color 0.2s, border-color 0.2s; flex: none; }
.icon-btn:hover { background: var(--blush-100); color: var(--wine-700); transform: scale(1.1); border-color: var(--blush-200); }
.icon-btn.danger:hover { background: var(--danger-bg); color: var(--danger); border-color: #f4c9c7; }
.icon-btn:disabled { opacity: 0.35; pointer-events: none; }

/* ---------------- tabelas ---------------- */
.table-wrap { overflow-x: auto; border-radius: 18px; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.adm-table th { text-align: left; font-weight: 500; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fffcfd; position: sticky; top: 0; }
.adm-table td { padding: 13px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.adm-table tbody tr { transition: background 0.2s; }
.adm-table tbody tr:hover { background: var(--blush-50); }
.adm-table tr.is-click { cursor: pointer; }
.adm-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.cell-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cell-main b { font-weight: 500; display: block; line-height: 1.2; }
.cell-main small { color: var(--muted); font-size: 0.78rem; display: block; }
.dot-pro { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }

/* ---------------- KPIs ---------------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 22px; }
.kpi { position: relative; padding: 20px 20px 18px; border-radius: 24px; background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform 0.45s var(--ease), box-shadow 0.45s; }
.kpi:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.kpi::after { content: ""; position: absolute; right: -24px; top: -24px; width: 90px; height: 90px; border-radius: 50%; background: var(--blush-100); opacity: 0.7; transition: transform 0.6s var(--ease); }
.kpi:hover::after { transform: scale(1.4); }
.kpi.gold::after { background: #f3e6c8; } .kpi.sage::after { background: var(--sage-100); } .kpi.wine::after { background: #ead3d9; }
.kpi-ico { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: var(--wine-700); color: var(--gold-300); margin-bottom: 14px; }
.kpi b { position: relative; z-index: 1; display: block; font-family: var(--font-display); font-size: 2.3rem; line-height: 1; font-weight: 600; color: var(--wine-700); }
.kpi b.sm { font-size: 1.7rem; }
.kpi span { position: relative; z-index: 1; display: block; margin-top: 6px; color: var(--ink-2); font-size: 0.86rem; }
.kpi small { position: relative; z-index: 1; display: block; color: var(--muted); font-size: 0.76rem; margin-top: 2px; }
.kpi.is-alert { border-color: #ecd49a; background: #fffaf0; }
.kpi .ring { position: absolute; right: 16px; bottom: 14px; z-index: 1; width: 54px; height: 54px; }
.kpi .ring circle { fill: none; stroke-width: 6; }
.kpi .ring .bg { stroke: var(--line); } .kpi .ring .fg { stroke: var(--rose-500); stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; stroke-dasharray: 126; stroke-dashoffset: 126; transition: stroke-dashoffset 1.6s var(--ease) 0.3s; }
.kpi .ring.is-in .fg { stroke-dashoffset: var(--off); }

/* ---------------- gráfico de barras ---------------- */
.bar-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.bar-chart .axis { stroke: var(--line); stroke-width: 1; }
.bar-chart .bar { fill: var(--blush-300); transform-box: fill-box; transform-origin: bottom; animation: bar-grow 0.9s var(--ease) both; animation-delay: calc(var(--i) * 28ms); transition: fill 0.25s; }
.bar-chart .hl .bar { fill: var(--wine-700); }
.bar-chart .bar-g:hover .bar { fill: var(--rose-500); }
.bar-chart .bar-v { font-size: 10px; fill: var(--ink-2); font-family: var(--font-body); }
.bar-chart .bar-l { font-size: 9px; fill: var(--muted); font-family: var(--font-body); }
@keyframes bar-grow { from { transform: scaleY(0); } to { transform: none; } }
.hbars { display: grid; gap: 14px; }
.hbar-row { display: grid; gap: 6px; }
.hbar-row > div { display: flex; justify-content: space-between; gap: 10px; font-size: 0.9rem; }
.hbar-row b { font-weight: 500; }
.hbar-row .track { height: 9px; border-radius: 9px; background: var(--line-2); overflow: hidden; }
.hbar-row .track i { display: block; height: 100%; width: 0; border-radius: 9px; background: linear-gradient(90deg, var(--gold-400), var(--rose-500)); transition: width 1.2s var(--ease) 0.2s; }
.hbars.is-in .track i { width: var(--w); }

/* ---------------- listas de compromissos ---------------- */
.mini-list { display: grid; gap: 8px; }
.mini-appt { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 18px; background: var(--cream); border: 1px solid var(--line-2); border-left: 4px solid var(--pc, var(--rose-400)); transition: transform 0.35s var(--ease), box-shadow 0.35s, background 0.25s; cursor: pointer; text-align: left; width: 100%; }
.mini-appt:hover { transform: translateX(4px); background: #fff; box-shadow: var(--shadow-sm); }
.mini-appt .t { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--wine-700); line-height: 1; }
.mini-appt .t small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.7rem; color: var(--muted); margin-top: 3px; }
.mini-appt b { font-weight: 500; display: block; line-height: 1.2; }
.mini-appt p { font-size: 0.8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-appt.is-done { opacity: 0.6; }
.todo-list { display: grid; gap: 10px; }
.todo { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 18px; background: var(--cream); border: 1px solid var(--line-2); transition: background 0.3s; }
.todo .ck { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--blush-300); display: grid; place-items: center; color: transparent; flex: none; transition: all 0.4s var(--spring); }
.todo.is-done { opacity: 0.7; }
.todo.is-done .ck { background: var(--ok); border-color: var(--ok); color: #fff; }
.todo.is-done b { text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, 0.25); }
.todo > div { flex: 1; min-width: 0; }
.todo b { font-weight: 500; display: block; line-height: 1.2; }
.todo small { color: var(--muted); }
.prog-line { height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; margin: 6px 0 16px; }
.prog-line i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--gold-400), var(--rose-500)); transition: width 1s var(--ease); }
.bday { display: flex; align-items: center; gap: 12px; padding: 8px 4px; }
.bday .d { width: 40px; height: 40px; border-radius: 14px; background: var(--blush-100); color: var(--rose-700); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; flex: none; }
.bday > div { flex: 1; min-width: 0; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.filter-bar .input, .filter-bar .select { width: auto; padding: 10px 14px; border-radius: 999px; min-width: 160px; }
.filter-bar .search { flex: 1; min-width: 200px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 18px; color: var(--muted); font-size: 0.9rem; }

/* ==========================================================================
   Agenda
   ========================================================================== */
.ag-bar { display: grid; gap: 14px; margin-bottom: 18px; }
.ag-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ag-title { font-size: 1.8rem; margin-left: 8px; flex: 1; min-width: 200px; }
.ag-title::first-letter { text-transform: uppercase; }
.ag-date { width: auto; padding: 9px 14px; border-radius: 999px; }
.ag-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.seg-ctl { display: inline-flex; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.seg-ctl button { border: 0; background: none; padding: 8px 20px; border-radius: 999px; font-size: 0.88rem; color: var(--ink-2); transition: background 0.35s, color 0.35s; }
.seg-ctl button.is-on { background: var(--wine-700); color: #fff; box-shadow: 0 8px 18px -8px rgba(74, 26, 54, 0.8); }
.ag-filter { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ag-filter .chip { padding: 8px 14px; font-size: 0.84rem; }
.switch.sm { font-size: 0.84rem; margin-left: auto; }
.switch.sm .track { width: 38px; height: 22px; } .switch.sm .track::after { width: 16px; height: 16px; } .switch.sm input:checked + .track::after { transform: translateX(16px); }

.tl-wrap { overflow: auto; max-height: calc(100vh - 300px); min-height: 420px; background: #fff; border: 1px solid var(--line); border-radius: 24px; position: relative; box-shadow: var(--shadow-xs); }
.tl { display: grid; grid-template-columns: 58px repeat(var(--cols), minmax(200px, 1fr)); min-width: min-content; }
.tl.week { grid-template-columns: 58px repeat(var(--cols), minmax(140px, 1fr)); }
.tl-corner, .tl-colhead { position: sticky; top: 0; z-index: 7; height: 58px; background: #fffcfd; border-bottom: 1px solid var(--line); }
.tl-corner { left: 0; z-index: 9; border-right: 1px solid var(--line-2); }
.tl-colhead { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-left: 1px solid var(--line-2); text-align: left; }
.tl-colhead b { font-weight: 500; display: block; line-height: 1.15; }
.tl-colhead small { color: var(--muted); font-size: 0.74rem; display: block; }
button.tl-colhead { border-top: 0; border-right: 0; cursor: pointer; justify-content: space-between; transition: background 0.2s; }
button.tl-colhead:hover { background: var(--blush-50); }
.tl-colhead.day b { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; }
.tl-colhead.is-today { background: var(--blush-50); }
.tl-colhead.is-today b { color: var(--rose-600); }
.tl-axis { position: sticky; left: 0; z-index: 6; background: #fffcfd; border-right: 1px solid var(--line-2); }
.tl-hour { position: absolute; left: 0; right: 0; transform: translateY(-9px); font-size: 0.72rem; color: var(--muted); text-align: right; padding-right: 9px; font-variant-numeric: tabular-nums; }
.tl-axis .tl-hour:first-child { transform: translateY(2px); }
.tl-body { position: relative; border-left: 1px solid var(--line-2); background: linear-gradient(var(--line-2) 1px, transparent 1px) 0 0 / 100% 76px, linear-gradient(rgba(234, 223, 217, 0.4) 1px, transparent 1px) 0 38px / 100% 76px; cursor: cell; }
.tl-off { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, rgba(122, 90, 80, 0.07) 0 6px, transparent 6px 12px); z-index: 0; }
.tl-off.brk { background: repeating-linear-gradient(135deg, rgba(122, 90, 80, 0.1) 0 6px, transparent 6px 12px); display: grid; place-items: center; }
.tl-off.brk span { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); background: rgba(255, 255, 255, 0.8); padding: 2px 10px; border-radius: 999px; }
.tl-block { position: absolute; left: 3px; right: 3px; z-index: 2; border: 1px dashed rgba(180, 65, 63, 0.45); border-radius: 12px; background: repeating-linear-gradient(45deg, rgba(180, 65, 63, 0.1) 0 8px, rgba(180, 65, 63, 0.03) 8px 16px); color: var(--danger); font-size: 0.74rem; text-align: left; padding: 5px 9px; overflow: hidden; }
.tl-block span { display: inline-flex; gap: 6px; align-items: center; }
.tl-block.hol { border-color: rgba(154, 122, 68, 0.5); background: repeating-linear-gradient(45deg, rgba(212, 176, 120, 0.2) 0 8px, rgba(212, 176, 120, 0.06) 8px 16px); color: var(--gold-600); }
.tl-appt { position: absolute; z-index: 3; border: 0; border-left: 4px solid var(--pc); border-radius: 12px; padding: 6px 10px; text-align: left; display: flex; flex-direction: column; gap: 1px; overflow: hidden; font-size: 0.78rem; line-height: 1.25; color: var(--ink); cursor: grab; background: #fff; background: color-mix(in srgb, var(--pc) 15%, #fff); box-shadow: 0 2px 6px -2px rgba(74, 26, 54, 0.25); transition: box-shadow 0.25s, transform 0.3s var(--ease), opacity 0.25s; touch-action: pan-y; animation: pop-in 0.45s var(--spring) both; }
.tl-appt:hover { box-shadow: var(--shadow); transform: scale(1.02); z-index: 5; }
.tl-appt b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ta-time { font-size: 0.7rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ta-svc { color: var(--ink-2); font-size: 0.72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ta-flag { position: absolute; right: 6px; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: #f3d98a; color: #6a4a15; display: grid; place-items: center; font-style: normal; }
.ta-flag.r { right: 28px; background: var(--blush-200); color: var(--rose-700); }
.tl-appt.s-pending { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.75) 0 6px, transparent 6px 12px), color-mix(in srgb, var(--pc) 12%, #fff); outline: 1.5px dashed #e3bb54; outline-offset: -2px; }
.tl-appt.s-completed { opacity: 0.62; }
.tl-appt.s-cancelled { opacity: 0.38; text-decoration: line-through; }
.tl-appt.s-noshow { opacity: 0.55; filter: grayscale(0.7); }
.tl-appt.is-drag { z-index: 30; box-shadow: var(--shadow-lg); cursor: grabbing; opacity: 0.92; transition: none; transform-origin: center; }
.tl-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--rose-500); z-index: 4; pointer-events: none; }
.tl-now::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--rose-500); }

.mg { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.mg-wd { text-align: center; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding: 6px 0; }
.mg-day { position: relative; min-height: 112px; padding: 10px; border-radius: 18px; background: #fff; border: 1px solid var(--line); text-align: left; display: flex; flex-direction: column; gap: 6px; transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.25s; }
.mg-day:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--blush-300); }
.mg-day.out { opacity: 0.45; } .mg-day.closed { background: var(--cream); }
.mg-day.today { border-color: var(--rose-500); box-shadow: inset 0 0 0 1px var(--rose-500); }
.mg-n { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--wine-700); line-height: 1; }
.mg-count { position: absolute; right: 10px; top: 10px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: var(--wine-700); color: #fff; font-size: 0.74rem; display: grid; place-items: center; }
.mg-list { display: grid; gap: 3px; }
.mg-chip { display: block; font-size: 0.7rem; padding: 2px 6px; border-radius: 6px; border-left: 3px solid var(--pc); background: color-mix(in srgb, var(--pc) 14%, #fff); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mg-chip.s-cancelled { opacity: 0.4; text-decoration: line-through; }
.mg-list small { color: var(--muted); font-size: 0.7rem; }
@media (max-width: 760px) { .mg-day { min-height: 74px; padding: 6px; border-radius: 12px; } .mg-list { display: none; } .mg-count { right: 4px; top: 4px; } .mg { gap: 4px; } .tl-wrap { max-height: calc(100vh - 260px); } }

/* ---------------- ficha do agendamento ---------------- */
.appt-drawer-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.ad-block { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; margin-bottom: 12px; }
.ad-when { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.ad-when b { display: block; font-family: var(--font-display); font-size: 1.4rem; color: var(--wine-700); line-height: 1.15; font-weight: 600; }
.ad-when b::first-letter { text-transform: uppercase; }
.ad-when span { display: block; color: var(--ink-2); font-size: 0.9rem; }
.ad-when small { color: var(--muted); }
.ad-items { display: grid; gap: 6px; }
.ad-items li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 14px; background: var(--cream); font-size: 0.92rem; }
.ad-items small { display: block; color: var(--muted); font-size: 0.76rem; }
.ad-items b { font-weight: 500; color: var(--wine-700); }
.timeline-log { display: grid; gap: 0; }
.timeline-log li { display: grid; grid-template-columns: 14px 1fr; gap: 14px; padding-bottom: 14px; position: relative; font-size: 0.88rem; }
.timeline-log li i { width: 10px; height: 10px; border-radius: 50%; background: var(--rose-400); margin-top: 6px; position: relative; z-index: 1; }
.timeline-log li::before { content: ""; position: absolute; left: 4.5px; top: 14px; bottom: 0; width: 1px; background: var(--line); }
.timeline-log li:last-child::before { display: none; }
.timeline-log small { display: block; color: var(--muted); font-size: 0.74rem; }
.danger-text { color: var(--danger); }
.rv-ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--wine-700); color: var(--gold-300); flex: none; }

/* ---------------- novo agendamento ---------------- */
.new-appt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
@media (max-width: 880px) { .new-appt { grid-template-columns: 1fr; } }
.picked-client { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--ok-bg); border: 1px solid #cfe5d3; }
.picked-client > div { flex: 1; min-width: 0; } .picked-client b { display: block; font-weight: 500; } .picked-client small { color: #4f7a58; }
.client-results { display: grid; gap: 4px; margin-top: 8px; }
.client-opt { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 14px; border: 1px solid var(--line-2); background: #fff; text-align: left; transition: background 0.2s, transform 0.3s var(--ease); }
.client-opt:hover { background: var(--blush-50); transform: translateX(3px); }
.client-opt b { display: block; font-weight: 500; line-height: 1.2; } .client-opt small { color: var(--muted); font-size: 0.78rem; }
.svc-select { max-height: 260px; overflow-y: auto; display: grid; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--cream); }
.svc-group h5 { font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-600); display: flex; gap: 8px; align-items: center; margin-bottom: 7px; font-weight: 500; }
.svc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.svc-chips .chip { padding: 7px 12px; font-size: 0.82rem; } .svc-chips .chip small { opacity: 0.65; }
.svc-sum { margin-top: 8px; font-size: 0.86rem; color: var(--ink-2); padding: 0 4px; }
.slot-picker .cal { padding: 16px; } .slot-picker .cal-title { font-size: 1.3rem; } .slot-picker .times { margin-top: 18px; }
/* ==========================================================================
   Serviços, equipe, horários, conteúdo e configurações
   ========================================================================== */
.save-bar { position: fixed; z-index: 80; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 24px; padding: 12px 14px 12px 22px; border-radius: 999px; background: var(--wine-800); color: #fff; box-shadow: var(--shadow-lg); animation: toast-in 0.55s var(--spring) both; max-width: calc(100vw - 24px); }
.save-bar[hidden] { display: none; }
.save-bar > span { display: inline-flex; align-items: center; gap: 10px; color: var(--gold-300); font-size: 0.92rem; }
.save-bar b { color: #fff; }
.save-bar .btn-ghost { --btn-fg: #fff; border-color: rgba(255, 255, 255, 0.3); }
.cat-block.is-off { opacity: 0.75; }
.svc-table td { padding: 8px 10px; }
.svc-table tr.is-off td:not(:last-child):not(:nth-child(6)) { opacity: 0.55; }
.svc-table tr.is-dirty { background: #fffaf0; }
.svc-table .input { padding: 10px 12px; border-radius: 12px; }
.svc-table .in-name { min-width: 220px; }
.in-wrap { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.82rem; }
.in-wrap .in-dur { width: 88px; }
.in-wrap.money span { font-weight: 500; color: var(--ink-2); } .in-wrap .in-price { width: 118px; font-variant-numeric: tabular-nums; }
.reorder { display: flex; flex-direction: column; gap: 2px; }
.icon-btn.sm { width: 24px; height: 18px; border-radius: 6px; border: 0; background: var(--cream); }
.check.sm { font-size: 0.8rem; white-space: nowrap; } .check.sm .box { width: 18px; height: 18px; border-radius: 6px; }
.icon-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.icon-choices .icon-btn.is-on { background: var(--wine-700); color: var(--gold-300); border-color: var(--wine-700); }
.svcs .svc-ico { border-radius: 50%; display: grid; place-items: center; background: var(--blush-100); color: var(--rose-600); flex: none; }

.team-adm { display: grid; gap: 20px; }
.team-adm .adm-card + .adm-card { margin-top: 0; }
.team-adm > .adm-pagehead { margin-bottom: 0; }
.photo-box { display: flex; align-items: center; gap: 16px; }
.color-pick { display: inline-flex; align-items: center; gap: 10px; font-size: 0.8rem; color: var(--muted); }
.color-pick input { width: 44px; height: 44px; border: 0; padding: 0; background: none; border-radius: 50%; cursor: pointer; }
.chips-wrap .chip { padding: 8px 14px; font-size: 0.84rem; }
.sched td, .sched th { padding: 8px 10px; }
.sched tr.is-off td:not(:nth-child(2)) { opacity: 0.4; }
.sched .input.t { padding: 9px 10px; border-radius: 12px; min-width: 112px; }
.adm-card.is-off { opacity: 0.8; }
.hol-list { display: grid; gap: 4px; max-height: 420px; overflow-y: auto; }
.hol-row { display: grid; grid-template-columns: 24px 54px 44px 1fr auto; gap: 12px; align-items: center; padding: 9px 12px; border-radius: 14px; cursor: pointer; font-size: 0.92rem; transition: background 0.2s; position: relative; }
.hol-row:hover { background: var(--blush-50); }
.hol-row input { position: absolute; opacity: 0; }
.hol-row .box { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--blush-300); background: #fff; display: grid; place-items: center; color: transparent; transition: all 0.3s var(--spring); }
.hol-row input:checked + .box { background: var(--rose-500); border-color: var(--rose-500); color: #fff; }
.hol-row .d { font-weight: 600; color: var(--wine-700); font-variant-numeric: tabular-nums; } .hol-row .wd { color: var(--muted); font-size: 0.8rem; }
.hol-row.is-added { opacity: 0.55; cursor: default; }

.dropzone { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 34px 20px; border: 2px dashed var(--blush-300); border-radius: 24px; background: var(--blush-50); color: var(--ink-2); cursor: pointer; transition: background 0.3s, border-color 0.3s, transform 0.4s var(--spring); }
.dropzone:hover, .dropzone.is-over { background: var(--blush-100); border-color: var(--rose-500); transform: scale(1.01); }
.dropzone .ic { color: var(--rose-500); animation: float-y 3.4s ease-in-out infinite; }
.dropzone b { font-family: var(--font-display); font-size: 1.5rem; color: var(--wine-700); font-weight: 600; }
.dropzone span { font-size: 0.85rem; color: var(--muted); }
.upload-list { display: grid; gap: 6px; }
.up-row { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 14px; background: var(--cream); font-size: 0.86rem; }
.up-row.ok { background: var(--ok-bg); color: #2f5a38; } .up-row.err { background: var(--danger-bg); color: #8b2c2a; }
.pf-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.pf-tile { position: relative; margin: 0; aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: var(--blush-100); animation: card-in 0.6s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
.pf-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.pf-tile:hover img { transform: scale(1.08); }
.pf-tile figcaption { position: absolute; inset: auto 0 0 0; padding: 30px 12px 10px; color: #fff; font-size: 0.8rem; background: linear-gradient(transparent, rgba(37, 12, 28, 0.8)); display: grid; line-height: 1.2; }
.pf-tile figcaption small { opacity: 0.8; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }
.pf-tools { position: absolute; right: 8px; top: 8px; display: flex; gap: 6px; opacity: 0; transform: translateY(-6px); transition: opacity 0.3s, transform 0.4s var(--ease); }
.pf-tile:hover .pf-tools, .pf-tile:focus-within .pf-tools { opacity: 1; transform: none; }
@media (hover: none) { .pf-tools { opacity: 1; transform: none; } }
.pf-edit-img { width: 100%; max-height: 260px; object-fit: cover; border-radius: 18px; }
.slots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.slot { display: grid; gap: 10px; padding: 14px; border-radius: 22px; border: 1px solid var(--line); background: var(--cream); }
.slot-prev { height: 150px; border-radius: 16px; overflow: hidden; background: #fff; display: grid; place-items: center; position: relative; }
.slot-prev img, .slot-prev .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot-prev .art svg { width: 100%; height: 100%; }
.slot-prev.logo img { object-fit: contain; padding: 12px; background: var(--wine-700); }
.slot .btn-soft { cursor: pointer; }
.review-list { display: grid; gap: 10px; }
.review-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px 16px; border-radius: 20px; background: var(--cream); border: 1px solid var(--line-2); }
.review-row.is-new { background: #fffaf0; border-color: #ecd49a; }
.review-row.is-off { opacity: 0.6; }
.review-row p { color: var(--ink-2); font-size: 0.9rem; margin-top: 6px; }
.faq-n { width: 34px; height: 34px; border-radius: 50%; background: var(--wine-700); color: var(--gold-300); display: grid; place-items: center; font-size: 0.85rem; font-weight: 600; }
.sys-info { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; font-size: 0.88rem; padding: 16px 18px; border-radius: 18px; background: var(--cream); }
.sys-info dt { color: var(--muted); } .sys-info dd { margin: 0; word-break: break-all; }
.sys-info code { background: #fff; padding: 3px 8px; border-radius: 8px; font-size: 0.8rem; }
.client-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.client-head > div:nth-child(2) { flex: 1; min-width: 180px; }
.stats-row.sm { grid-template-columns: repeat(4, 1fr); margin: 0 0 14px; gap: 8px; } .stats-row.sm .stat-card { padding: 14px 12px; border-radius: 18px; } .stats-row.sm .stat-card b { font-size: 1.6rem; } .stats-row.sm .stat-card b.sm { font-size: 1.1rem; min-height: 1.6rem; }
.stamps.sm { gap: 8px; margin: 0; } .stamps.sm .stamp { font-size: 0.7rem; }
.loyalty.mini { max-width: none; transform: none; padding: 20px; border-radius: 22px; } .loyalty.mini::after { display: none; } .loyalty.mini:hover { transform: none; } .loyalty.mini::before { inset: 6px; border-radius: 16px; }
.temp-pass { font-family: var(--font-display); font-size: 2.2rem; letter-spacing: 0.1em; text-align: center; padding: 14px; border-radius: 16px; background: var(--blush-50); color: var(--wine-700); font-weight: 600; user-select: all; }

/* ---------------- login da equipe / área da profissional ---------------- */
.auth-staff-logo { display: block; width: min(260px, 80%); height: auto; margin: 18px 0 6px; }
.staff-hint { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--blush-50); border: 1px solid var(--blush-100); color: var(--rose-700); font-size: 0.82rem; line-height: 1.35; }
.staff-hint .ic { flex: none; }
body[data-role="staff"] .adm-side { background: radial-gradient(400px 300px at 0 0, #6a2250, transparent 60%), linear-gradient(180deg, var(--wine-800), var(--wine-900)); }

/* ---------------- equipe: acesso ao painel ---------------- */
.access-box { margin-top: 22px; padding-top: 4px; border-top: 1px dashed var(--line); }
.access-box .adm-sub { margin-top: 18px; }
.access-on, .access-off { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border-radius: 18px; background: var(--cream); border: 1px solid var(--line-2); margin-bottom: 8px; }
.access-on > div:nth-child(2), .access-off > div:nth-child(2) { flex: 1; min-width: 180px; line-height: 1.3; }
.access-on b, .access-off b { display: block; font-weight: 500; word-break: break-all; }
.access-on small, .access-off small { color: var(--muted); font-size: 0.8rem; }
.access-ico { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--wine-700); color: var(--gold-300); }
.access-off .access-ico { background: var(--blush-100); color: var(--rose-600); }
.access-share { white-space: pre-wrap; word-break: break-word; font-family: inherit; font-size: 0.9rem; line-height: 1.6; margin: 0; padding: 16px 18px; border-radius: 16px; background: var(--blush-50); border: 1px dashed var(--blush-200); color: var(--ink); user-select: all; }

/* ---------------- folha de pagamento ---------------- */
.pay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.pay-card { --pc: var(--rose-500); position: relative; display: flex; flex-direction: column; gap: 16px; padding: 22px; border-radius: 26px; background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.pay-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--pc), var(--brand-soft) 70%, var(--gold-400)); }
.pay-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--pc) 16%, transparent), transparent 70%); pointer-events: none; transition: transform 0.8s var(--ease); }
.pay-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.pay-card:hover::after { transform: scale(1.3); }
.pay-card > header { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.pay-card > header > div { flex: 1; min-width: 0; line-height: 1.25; }
.pay-card > header small { color: var(--muted); font-size: 0.8rem; }
.pay-now { position: relative; z-index: 1; padding: 16px 18px; border-radius: 20px; background: linear-gradient(135deg, var(--blush-50), #fff 80%); border: 1px solid var(--blush-100); display: grid; gap: 2px; }
.pay-now small { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-600); }
.pay-now b { font-family: var(--font-display); font-size: 2.1rem; line-height: 1.1; font-weight: 600; color: var(--wine-700); font-variant-numeric: tabular-nums; }
.pay-now span { color: var(--muted); font-size: 0.82rem; }
.pay-meta { display: grid; gap: 6px; font-size: 0.84rem; color: var(--ink-2); }
.pay-meta span { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pay-meta .ic { color: var(--rose-500); flex: none; }
.pay-meta em { font-style: normal; color: var(--wine-700); font-weight: 500; }
.pay-card > footer { margin-top: auto; }
.pay-sum { text-align: center; padding: 18px; border-radius: 20px; background: linear-gradient(140deg, var(--wine-800), var(--wine-900)); color: var(--cream); display: grid; gap: 2px; }
.pay-sum small { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-300); }
.pay-sum b { font-family: var(--font-display); font-size: 2.3rem; font-weight: 600; line-height: 1.15; }
.pay-sum span { font-size: 0.82rem; opacity: 0.75; }
.cfg-preview { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 18px; background: linear-gradient(135deg, var(--blush-50), #fff); border: 1px solid var(--blush-100); color: var(--ink-2); font-size: 0.92rem; line-height: 1.5; }
.cfg-preview .ic { color: var(--brand); flex: none; margin-top: 2px; }
.cat-pct { border: 1px solid var(--line); border-radius: 18px; padding: 12px 16px; background: #fffcfd; }
.cat-pct summary { cursor: pointer; font-size: 0.9rem; color: var(--wine-700); font-weight: 500; }
.cat-pct[open] summary { margin-bottom: 4px; }

/* editor de fechamento */
.pay-editor { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 26px; align-items: start; }
.pay-editor .payslip { padding: 16px; border-radius: 20px; }
.pay-editor .ps-head { padding-bottom: 12px; }
.pay-editor .ps-logo { height: 34px; }
.pay-editor .ps-num b { font-size: 1.15rem; }
.pay-editor .ps-cards { gap: 8px; margin: 12px 0; }
.pay-editor .ps-cards > div { padding: 10px 12px; font-size: 0.78rem; }
.pay-editor .ps-table { font-size: 0.78rem; }
.pay-editor .ps-table th { padding: 9px 7px; font-size: 0.58rem; letter-spacing: 0.06em; }
.pay-editor .ps-table td { padding: 8px 7px; }
.pay-editor .ps-bottom { grid-template-columns: 1fr; }
.pay-editor .ps-net { text-align: left; min-width: 0; }
.pay-editor .ps-net b { font-size: 1.7rem; }
.pay-editor > div:last-child { position: sticky; top: 0; }
.pay-editor .seg { gap: 6px; }
.pay-editor .seg .chip { padding: 8px 14px; font-size: 0.82rem; }
.pay-editor .seg .chip small { opacity: 0.65; font-size: 0.74rem; }
.manual-list { display: grid; gap: 8px; }
.manual-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 132px 36px; gap: 8px; align-items: center; padding: 8px; border-radius: 16px; background: var(--cream); border-left: 3px solid var(--sage-500, #7a9a7e); animation: card-in 0.45s var(--ease) both; }
.manual-row.deduction { border-left-color: var(--danger); }
.manual-row .input, .manual-row .select { padding: 9px 12px; font-size: 0.86rem; min-height: 0; }
.manual-row .in-wrap.money .input { width: 100%; }
.manual-row .mr-type { grid-column: 1 / 3; grid-row: 1; } .manual-row .mr-amt { grid-column: 3; grid-row: 1; } .manual-row .mr-del { grid-column: 4; grid-row: 1; }
.manual-row .mr-desc { grid-column: 1 / 3; grid-row: 2; } .manual-row .mr-ref { grid-column: 3 / 5; grid-row: 2; }
.presets { margin-top: 10px; }
.presets .chip { padding: 6px 12px; font-size: 0.78rem; }
.presets .chip.ded:hover { border-color: #f4c9c7; color: var(--danger); }

/* holerite (HTML) */
.payslip { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 22px; box-shadow: 0 20px 40px -32px rgba(74, 26, 54, 0.5); position: relative; overflow: hidden; }
.payslip::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--wine-700), var(--brand) 55%, var(--gold-400)); }
.ps-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); }
.ps-logo { height: 44px; width: auto; }
.ps-num { text-align: right; display: grid; line-height: 1.25; }
.ps-num small { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-600); }
.ps-num b { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--wine-700); }
.ps-num span { font-size: 0.82rem; color: var(--muted); }
.ps-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.ps-cards > div { padding: 12px 14px; border-radius: 16px; background: var(--blush-50); display: grid; gap: 1px; font-size: 0.82rem; color: var(--ink-2); line-height: 1.35; min-width: 0; }
.ps-cards small { font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rose-600); margin-bottom: 2px; }
.ps-cards b { font-weight: 600; color: var(--ink); font-size: 0.92rem; }
.ps-table { font-size: 0.84rem; }
.ps-table thead th { background: var(--wine-700); color: #fff; letter-spacing: 0.1em; position: static; }
.ps-table thead th:first-child { border-radius: 12px 0 0 0; } .ps-table thead th:last-child { border-radius: 0 12px 0 0; }
.ps-table tbody tr:nth-child(even) { background: #fdf6f9; }
.ps-table td { padding: 10px 12px; }
.ps-table .ded { color: var(--danger); }
.ps-table tr.is-manual td:nth-child(2)::after { content: "manual"; margin-left: 8px; font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-600); background: #f6ecd9; padding: 2px 7px; border-radius: 999px; vertical-align: 1px; }
.ps-table tfoot td { border-top: 2px solid var(--wine-700); border-bottom: 0; background: var(--blush-50); }
.ps-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: stretch; margin-top: 16px; }
.ps-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.ps-stats > div { padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line-2); display: grid; gap: 4px; align-content: start; }
.ps-stats small { font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ps-stats b { font-weight: 600; color: var(--wine-700); font-size: 1.02rem; }
.ps-stats .badge { justify-self: start; }
.ps-net { position: relative; min-width: 200px; padding: 16px 22px 16px 26px; border-radius: 18px; background: linear-gradient(140deg, var(--wine-800), var(--wine-900)); color: #fff; display: grid; align-content: center; text-align: right; overflow: hidden; }
.ps-net::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(180deg, var(--brand), var(--gold-400)); }
.ps-net small { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-300); }
.ps-net b { font-family: var(--font-display); font-size: 2rem; font-weight: 600; line-height: 1.15; font-variant-numeric: tabular-nums; }
.ps-notes { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--cream); font-size: 0.86rem; color: var(--ink-2); }
.ps-notes small { font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-600); display: block; margin-bottom: 2px; }
.ps-notes p { white-space: pre-line; }
.ps-details { margin-top: 10px; }
.ps-det-table { font-size: 0.8rem; }
.ps-det-table td { padding: 8px 10px; }
.ps-actions { margin-bottom: 16px; }

/* área da profissional: lista de holerites */
.slip-list { display: grid; gap: 10px; }
.slip-card { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto 20px; gap: 16px; align-items: center; width: 100%; padding: 16px 18px; border-radius: 22px; border: 1px solid var(--line); background: #fff; text-align: left; color: inherit; transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s; }
.slip-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--blush-200); }
.slip-card > div { line-height: 1.3; min-width: 0; }
.slip-card b { font-weight: 500; display: block; }
.slip-card small { color: var(--muted); font-size: 0.82rem; }
.slip-card strong { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; color: var(--wine-700); font-variant-numeric: tabular-nums; }
.slip-card > .ic:last-child { color: var(--rose-400); transition: transform 0.4s var(--spring); }
.slip-card:hover > .ic:last-child { transform: translateX(4px); }
.slip-ico { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--wine-700), #6e2652); color: var(--gold-300); }

@media (max-width: 980px) {
  .pay-editor { grid-template-columns: minmax(0, 1fr); }
  .pay-editor > div:last-child { position: static; }
}
@media (max-width: 640px) {
  .manual-row .mr-desc, .manual-row .mr-ref { grid-column: 1 / -1; grid-row: auto; }
  .ps-cards, .ps-bottom { grid-template-columns: 1fr; }
  .ps-net { text-align: left; }
  .ps-num { text-align: left; }
  .slip-card { grid-template-columns: 42px minmax(0, 1fr) auto; }
  .slip-card .badge, .slip-card > .ic:last-child { display: none; }
  .pay-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .ag-date { display: none; }
  .ag-title { font-size: 1.45rem; flex-basis: 100%; margin: 6px 0 0; order: 5; }
  .ag-tools { gap: 8px; }
  .ag-tools .btn { padding: 9px 14px; }
}