/* MPAIVA — Login interno (fichas de clientes).
   Visual próprio, mais funcional que a landing page, reaproveitando as mesmas cores e fontes do site
   (tokens copiados de css/style.css) para parecer a mesma marca. */
:root {
  --pink: #FCDFDF;
  --pink-mid: #D9ADAD;
  --pink-light: #F7D4D4;
  --grey-dark: #6E6E6E;
  --grey: #838383;
  --ink: #4F4F4F;
  --ink-strong: #463B3B;
  --near-black: #2A2424;
  --line: #E7D4D4;
  --bg: #FBF3F3;
  --danger: #B3413A;
  --ok: #3F7A4E;
  --f-tight: 'Inter Tight', sans-serif;
  --f-round: 'SF Pro Rounded', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}
* , *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); }
body { font-family: var(--f-round); color: var(--ink-strong); }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, p, ul { margin: 0; }

/* ---------- Login ---------- */
.login {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: radial-gradient(120% 100% at 50% 0%, var(--pink) 0%, var(--pink-light) 55%, var(--bg) 100%);
}
.login__card {
  width: 100%; max-width: 380px;
  padding: 40px 32px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(70,59,59,.14);
  text-align: center;
}
.login__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.login__logo { height: 93px; width: auto; margin-bottom: 18px; }
.login__title { font-family: var(--f-tight); font-size: 26px; font-weight: 500; color: var(--ink-strong); }
.login__sub { margin: 6px 0 28px; font-size: 15px; color: var(--grey); }
.field { text-align: left; margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--grey-dark); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  font-size: 15px;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--pink-mid); outline-offset: 1px; }
.field textarea { resize: vertical; min-height: 90px; }
.field--password { position: relative; }
.password-wrap {
  position: relative;
}
.password-wrap input {
  padding-right: 46px;
}
.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(70, 59, 59, 0.04);
  color: var(--grey-dark);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: background .2s ease, color .2s ease;
}
.password-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
}
.password-toggle:hover {
  background: rgba(70, 59, 59, 0.08);
  color: var(--ink-strong);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  padding: 13px 20px;
  border: 0; border-radius: 999px;
  background: var(--near-black);
  color: var(--pink);
  font-family: var(--f-tight); font-weight: 600; font-size: 15px;
  cursor: pointer;
  transition: transform .2s var(--ease-out), opacity .2s ease;
}
.btn:hover { opacity: .92; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: default; }
.btn--ghost { background: transparent; color: var(--ink-strong); border: 1px solid var(--line); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--small { width: auto; padding: 9px 16px; font-size: 14px; }
.msg { margin-top: 14px; font-size: 14px; }
.msg--error { color: var(--danger); }
.msg--ok { color: var(--ok); }
.login__next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 12px auto 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink-strong);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.login__next svg {
  width: 20px;
  height: 20px;
}
.login__next:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(70,59,59,.06);
}

/* ---------- Sistema temporário ---------- */
.shell--system {
  min-height: 100vh;
  background: radial-gradient(120% 100% at 50% 0%, var(--pink) 0%, var(--pink-light) 55%, var(--bg) 100%);
}
.system-screen {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 32px 20px 48px;
}
.system-screen__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  text-align: center;
}
.system-screen__title {
  font-family: var(--f-tight);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--ink-strong);
}
.system-screen__logo {
  width: auto;
  height: 96px;
}

/* ---------- Sistema em desenvolvimento ---------- */
.system-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f1ecec 0%, #f5eef0 100%);
  padding: 40px 22px;
}
.system-frame {
  width: min(1100px, 100%);
  min-height: 700px;
  display: flex;
  background: rgba(255,255,255,0.82);
  border-radius: 30px;
  box-shadow: 0 24px 55px rgba(94, 78, 82, 0.08);
  overflow: hidden;
  border: 1px solid rgba(147, 133, 137, 0.12);
}
.system-sidebar {
  width: 260px;
  background: linear-gradient(180deg, rgba(247,244,244,0.96) 0%, rgba(239,235,235,0.92) 100%);
  border-right: 1px solid rgba(119, 110, 110, 0.08);
  padding: 24px 18px 20px;
  color: var(--ink-strong);
}
.system-sidebar__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 24px;
  text-align: center;
  font-family: var(--f-tight);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink-strong);
  text-transform: uppercase;
}
.brand-mark {
  width: 220px;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 12px rgba(90, 72, 76, 0.06));
}
.system-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(119,110,110,0.08);
  color: var(--grey);
  margin-bottom: 18px;
}
.system-search span { font-size: 16px; }
.system-search input {
  border: 0;
  background: transparent;
  width: 100%;
  color: var(--grey-dark);
  outline: none;
  font-size: 14px;
}
.system-search input::placeholder { color: #9c8f92; }
.system-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.system-nav__item {
  width: 100%;
  display: flex;
  align-items: center;
  text-align: left;
  border: 0;
  padding: 11px 12px;
  border-radius: 12px;
  background: transparent;
  color: var(--grey-dark);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: all .2s ease;
}
.system-nav__item.is-active,
.system-nav__item:hover {
  background: rgba(255,255,255,0.78);
  color: var(--ink-strong);
  box-shadow: inset 0 0 0 1px rgba(137,118,123,0.05);
}
.system-side-card {
  margin-top: 24px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(132,114,117,0.08);
  border-radius: 18px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.system-side-card__label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
}
.system-side-card strong {
  font-size: 22px;
  color: var(--ink-strong);
}
.system-side-card small {
  color: var(--grey-dark);
  line-height: 1.4;
}

.anamnese-shell {
  width: 100%;
  min-height: 100vh;
  display: flex;
  overflow: visible;
  background: linear-gradient(180deg, #faf7f7 0%, #f4efef 100%);
}
.anamnese-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
}
.anamnese-content {
  width: 100%;
  max-width: none;
  padding: 24px 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 6px;
}
.anamnese-card {
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(118,106,109,0.06);
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(78, 62, 65, 0.03);
  padding: 22px 20px;
}
.anamnese-card--toolbar {
  padding: 0;
  overflow: hidden;
}
.toolbar-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 16px 10px;
  background: linear-gradient(135deg, #f7e1e4 0%, #f0ced6 48%, #ebd9dd 100%);
}
.toolbar-tab {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.18);
  color: rgba(77,61,64,0.9);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14);
}
.toolbar-tab.is-active {
  background: rgba(255,255,255,0.9);
  color: var(--ink-strong);
  box-shadow: 0 8px 16px rgba(119, 90, 98, 0.08);
}
.lead-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px 18px;
  background: rgba(250,246,246,0.88);
}
.lead-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid rgba(118,106,109,0.08);
  border-radius: 12px;
  color: var(--grey);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.55);
}
.lead-search input {
  width: 100%;
  border: 0;
  background: transparent;
  outline: none;
  color: var(--ink-strong);
  font-size: 14px;
}
.lead-search input::placeholder {
  color: var(--grey);
}
.lead-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.soft-tool-btn {
  border: 1px solid rgba(118,106,109,0.16);
  border-radius: 10px;
  background: rgba(255,255,255,0.82);
  color: var(--ink-strong);
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.soft-tool-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(99, 82, 85, 0.06);
}
.soft-tool-btn--muted {
  background: rgba(246,238,239,0.82);
}
.soft-tool-btn--primary {
  background: linear-gradient(135deg, #fce5e8 0%, #f3d1d8 100%);
  border-color: rgba(167, 122, 133, 0.18);
  color: var(--ink-strong);
}

.lead-list {
  width: 100%;
  display: block;
}
.lead-status-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 0 18px;
}
.lead-filter {
  border: 1px solid rgba(118,106,109,0.1);
  background: rgba(255,255,255,0.7);
  color: var(--grey-dark);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.lead-filter.is-active {
  background: linear-gradient(135deg, #fce5e8 0%, #f3d1d8 100%);
  border-color: rgba(167, 122, 133, 0.12);
  color: var(--ink-strong);
}
.lead-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow: visible;
  border: 1px solid rgba(118,106,109,0.08);
  border-radius: 22px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 20px 35px rgba(81, 61, 65, 0.04);
}
.lead-table {
  width: 100%;
  min-width: 1400px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  table-layout: auto;
}
.lead-table th,
.lead-table td {
  padding: 13px 11px;
  border-bottom: 1px solid rgba(118,106,109,0.07);
  text-align: left;
  vertical-align: middle;
  color: var(--ink-strong);
  white-space: normal;
  word-break: break-word;
}
.lead-table thead th {
  background: rgba(250,245,246,0.96);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-strong);
  font-weight: 700;
  position: sticky;
  top: 0;
}
.lead-row {
  cursor: pointer;
  transition: background 0.2s ease;
}
.lead-row:hover {
  background: rgba(247, 212, 212, 0.06);
}
.lead-table tbody tr td {
  background: rgba(255,255,255,0.16);
}
.lead-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(247, 212, 212, 0.32);
  color: var(--ink-strong);
  font-weight: 700;
  font-size: 12px;
  box-shadow: inset 0 0 0 1px rgba(147, 116, 126, 0.05);
}
.lead-pill--soft {
  background: rgba(213, 230, 255, 0.7);
}
.lead-pill--muted {
  background: rgba(236,236,236,0.9);
}
.lead-status-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.lead-status-label--new {
  background: rgba(250, 230, 233, 0.9);
  color: var(--ink-strong);
}
.lead-status-label--review {
  background: rgba(235, 233, 255, 0.9);
  color: #544d7a;
}
.lead-status-label--scheduled {
  background: rgba(218, 241, 227, 0.9);
  color: #2d6a52;
}
.lead-detail-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(47, 39, 40, 0.26);
  padding: 24px;
  z-index: 30;
}
.lead-detail-modal.is-open {
  display: flex;
}
.lead-detail-card {
  position: relative;
  width: min(780px, 100%);
  background: rgba(255,255,255,0.96);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(45, 35, 37, 0.14);
  padding: 24px;
  border: 1px solid rgba(118,106,109,0.06);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #d9b3bc transparent;
}
.lead-detail-close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(117,93,97,0.08);
  padding: 0;
  font-size: 0;
  cursor: pointer;
}
.lead-detail-close { z-index: 5; }
.lead-detail-close::before,
.lead-detail-close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background: var(--ink-strong);
}
.lead-detail-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.lead-detail-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.lead-detail-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}
.lead-detail-header h3 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 30px);
  color: var(--ink-strong);
}
.lead-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 14px 18px;
  margin-bottom: 18px;
}
.lead-detail-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid rgba(118,106,109,0.08);
  border-radius: 14px;
  background: rgba(249,245,245,0.7);
}
.lead-detail-field span,
.lead-detail-doc span,
.lead-detail-observacoes span {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-dark);
}
.lead-detail-field strong {
  color: var(--ink-strong);
  font-size: 15px;
}
.lead-detail-id {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lead-detail-photo-box {
  position: relative;
  flex: 0 0 auto;
  width: 128px;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(118,106,109,0.15);
  border-radius: 14px;
  background: #f9f5f5;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lead-detail-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lead-detail-photo-box__empty {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-dark);
}
.lead-detail-photo-box.has-photo .lead-detail-photo-box__empty { display: none; }
.lead-detail-photo-box { cursor: zoom-in; }
.photo-lightbox__empty {
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #f9f5f5;
  color: var(--grey-dark);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(30,24,24,0.35);
  cursor: zoom-out;
}
.photo-lightbox.is-open { display: flex; }
.photo-lightbox__frame {
  position: relative;
  width: min(20cm, 90vmin);
  aspect-ratio: 1 / 1;
  cursor: default;
}
.photo-lightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(30,24,24,0.7);
  padding: 0;
  font-size: 0;
  cursor: pointer;
}
.photo-lightbox__close::before,
.photo-lightbox__close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background: #fff;
}
.photo-lightbox__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.photo-lightbox__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.photo-lightbox__close:hover { background: rgba(30,24,24,0.9); }
.photo-lightbox img {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  background: #f9f5f5;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}
.lead-detail-docs {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.lead-detail-doc {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lead-detail-doc img {
  width: 100%;
  min-height: 160px;
  max-height: 220px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(118,106,109,0.08);
  background: #f9f5f5;
}
.lead-detail-observacoes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(118,106,109,0.08);
}
.lead-detail-observacoes textarea {
  width: 100%;
  min-height: 96px;
  padding: 14px 18px;
  border: 1px solid rgba(118,106,109,0.15);
  border-radius: 24px;
  background: rgba(249,245,245,0.7);
  color: var(--ink-strong);
  font: inherit;
  line-height: 1.6;
  resize: vertical;
}
.lead-detail-observacoes textarea:focus {
  outline: none;
  border-color: rgba(118,106,109,0.4);
}
.lead-detail-observacoes p {
  margin: 0;
  color: var(--ink-strong);
  line-height: 1.6;
}
.lead-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 6px 16px rgba(37,211,102,0.35);
  transition: transform .2s, filter .2s;
}
.lead-whatsapp-btn svg { width: 22px; height: 22px; }
.lead-detail-wa-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.lead-detail-wa-row .lead-whatsapp-btn {
  width: 30px;
  height: 30px;
  box-shadow: none;
}
.lead-detail-wa-row .lead-whatsapp-btn svg { width: 18px; height: 18px; }
.lead-whatsapp-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.lead-detail-pigmento {
  margin-top: 14px;
  border-top: 1px solid rgba(118,106,109,0.08);
  padding-top: 12px;
}
.lead-detail-pigmento summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-strong);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lead-detail-pigmento .pigmento-sub {
  font-family: inherit;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--grey-dark);
}
.lead-detail-pigmento summary::-webkit-details-marker { display: none; }
.lead-detail-pigmento summary::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s;
}
.lead-detail-pigmento[open] summary::after { transform: rotate(-135deg); }
.pigmento-marcas {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(118,106,109,0.08);
  border-radius: 14px;
  background: rgba(249,245,245,0.7);
}
.pigmento-marcas__title {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-dark);
}
.pigmento-sub-details > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pigmento-sub-details > summary::-webkit-details-marker { display: none; }
.pigmento-sub-details > summary::after {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s;
}
.pigmento-sub-details[open] > summary::after { transform: rotate(-135deg); }
.pigmento-sub-details[open] > summary { margin-bottom: 8px; }
.pigmento-marcas label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-strong);
  font-size: 15px;
  cursor: pointer;
}
.pigmento-campos {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}
.pigmento-campos > .pigmento-campo__nome:not(:first-child) { margin-top: 8px; }
.pigmento-cartucho { margin-top: 8px; }
.pigmento-campo__nome {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-strong);
}
.pigmento-cartucho {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}
.pigmento-cartucho .pigmento-select { width: 100%; }
.pigmento-modelos { display: inline-flex; flex-wrap: nowrap; gap: 6px; }
.pigmento-select[hidden] { display: none; }
.pigmento-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 19px) 55%, calc(100% - 14px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.pigmento-marcas .pigmento-modelos label {
  display: inline-flex;
  flex-direction: row;
  gap: 0;
  cursor: pointer;
}
.pigmento-modelos input { position: absolute; opacity: 0; pointer-events: none; }
.pigmento-modelos span {
  padding: 2px 9px;
  border: 1px solid rgba(118,106,109,0.16);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-strong);
  transition: background .2s, border-color .2s, color .2s;
}
.pigmento-modelos input:checked + span {
  background: #d58a9d;
  border-color: #d58a9d;
  color: #fff;
}
.pigmento-modelos input:focus-visible + span { box-shadow: 0 0 0 3px rgba(213,138,157,0.25); }
.pigmento-campo,
.sessao-input {
  width: 100%;
  min-width: 0;
  padding: 10px 16px;
  border: 1px solid rgba(118,106,109,0.16);
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.55);
  outline: none;
  font: inherit;
  font-size: 14px;
  color: var(--ink-strong);
  transition: border-color .2s, box-shadow .2s;
}
.pigmento-campo::placeholder { color: var(--grey); }
.pigmento-campo:focus,
.sessao-input:focus {
  border-color: #d58a9d;
  box-shadow: 0 0 0 3px rgba(213,138,157,0.18);
}
.lead-name {
  font-weight: 700;
  color: var(--ink-strong);
  min-width: 180px;
  white-space: normal;
  word-break: break-word;
}
.lead-check-col {
  width: 34px;
  text-align: center;
}
.lead-check-col input {
  accent-color: #d58a9d;
}
.lead-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(247, 212, 212, 0.26);
  color: var(--ink-strong);
  font-weight: 700;
  font-size: 12px;
}
.lead-pill--soft {
  background: rgba(213, 230, 255, 0.6);
}
.lead-pill--muted {
  background: rgba(236,236,236,0.9);
}
.lead-thumb {
  width: 46px;
  height: 46px;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(118,106,109,0.08);
  background: #f9f4f4;
}
.lead-thumb--sig {
  width: 78px;
  object-fit: contain;
  background: #fff;
}
.lead-thumb--empty {
  display: grid;
  place-items: center;
  font-size: 10px;
  color: var(--grey);
}

.anamnese-head {
  margin-bottom: 18px;
}
.section-kicker {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 8px;
}
.anamnese-head h2 {
  margin: 0;
  font-size: clamp(20px, 2vw, 28px);
  color: var(--ink-strong);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.field span,
.question-item span,
.upload-label {
  font-size: 13px;
  color: var(--grey-dark);
  font-weight: 600;
}
.field input,
.field textarea,
.question-item textarea {
  width: 100%;
  border: 1px solid rgba(130,114,117,0.14);
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--ink-strong);
}
.field input:focus,
.field textarea:focus,
.question-item textarea:focus {
  outline: 2px solid rgba(212, 161, 172, 0.38);
  outline-offset: 2px;
}
.question-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.question-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.question-item textarea {
  min-height: 90px;
  resize: vertical;
}
.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 18px;
}
.upload-box {
  border: 1px dashed rgba(110, 96, 98, 0.18);
  border-radius: 18px;
  background: rgba(248,245,245,0.8);
  padding: 16px;
}
.upload-box input[type="file"] {
  margin-top: 14px;
  font-size: 14px;
  color: var(--grey-dark);
}
.upload-box--signature {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#signature-pad {
  width: 100%;
  height: 170px;
  background: #fff;
  border: 1px solid rgba(130,114,117,0.14);
  border-radius: 14px;
  touch-action: none;
}
.signature-actions {
  display: flex;
  justify-content: flex-end;
}
.mini-btn {
  border: 0;
  border-radius: 999px;
  background: rgba(117,93,97,0.08);
  color: var(--ink-strong);
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
}
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--ink-strong);
  margin-top: 6px;
}
.check-row input {
  margin-top: 3px;
}
.submit-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.lead-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 18px;
}
.lead-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(249,246,246,0.96) 100%);
  border: 1px solid rgba(118,106,109,0.08);
  border-radius: 22px;
  padding: 16px 14px 18px;
  box-shadow: 0 12px 26px rgba(78,62,65,0.04);
  min-height: 100%;
}
.lead-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(118,106,109,0.08);
}
.lead-card__name {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-strong);
  line-height: 1.2;
}
.lead-card__star {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(118,106,109,0.12);
  border-radius: 50%;
  background: rgba(247, 212, 212, 0.25);
  color: #8b6d72;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.lead-field-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lead-field-row--split {
  display: grid;
  grid-template-columns: repeat(2, minmax(90px, 1fr));
  gap: 12px;
}
.lead-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.lead-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
}
.lead-value {
  display: inline-block;
  font-size: 14px;
  color: var(--ink-strong);
  line-height: 1.45;
  word-break: break-word;
}
.lead-value--soft {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-width: 68px;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(247, 212, 212, 0.28);
  color: var(--ink-strong);
  font-weight: 700;
}
.lead-doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 12px;
}
.lead-doc-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lead-doc {
  border-radius: 14px;
  overflow: hidden;
  background: rgba(248,245,245,0.9);
  border: 1px solid rgba(118,106,109,0.08);
  min-height: 120px;
}
.lead-photo,
.lead-signature {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
  background: #fafafa;
}
.lead-photo--empty,
.lead-signature--empty {
  display: grid;
  place-items: center;
  color: var(--grey);
  font-size: 12px;
  height: 120px;
}
.lead-chip-row {
  display: flex;
  justify-content: flex-start;
}
.lead-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fce7e9 0%, #f2d2d8 100%);
  color: var(--ink-strong);
  font-size: 12px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(113, 89, 93, 0.04);
}
.lead-answer-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(118,106,109,0.08);
  color: var(--ink-strong);
  font-size: 13px;
}
.lead-answer-box p {
  margin: 0;
  line-height: 1.5;
}
.empty-state {
  padding: 26px 10px;
  text-align: center;
  color: var(--grey);
  font-size: 15px;
}

@media (max-width: 900px) {
  .anamnese-shell { flex-direction: column; }
  .system-sidebar { width: 100%; }
  .form-grid,
  .upload-grid,
  .lead-list { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .anamnese-content { padding-left: 16px; padding-right: 16px; }
  .system-topbar { flex-direction: column; align-items: flex-start; }
}
.system-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,0.56) 0%, rgba(249,241,243,0.75) 100%);
}
.system-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px 18px;
  background: rgba(255,255,255,0.18);
  border-bottom: 1px solid rgba(133, 118, 122, 0.06);
}
.system-topbar--crm {
  background: rgba(255,255,255,0.2);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(161, 141, 147, 0.08);
}
.crm-page-title h1 {
  margin: 0;
  font-family: var(--f-tight);
  font-size: clamp(22px, 2.4vw, 34px);
  color: var(--ink-strong);
  letter-spacing: -0.03em;
}
.status-line {
  color: var(--grey-dark);
  font-size: 13px;
}
.system-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.system-tab {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(126, 98, 105, 0.12);
  background: rgba(255,255,255,0.52);
  color: var(--grey-dark);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.system-tab.is-active {
  background: linear-gradient(135deg, #f8e7ea 0%, #f0d4d9 100%);
  color: var(--ink-strong);
  box-shadow: 0 12px 18px rgba(181, 124, 134, 0.1);
}
.system-topbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.user-pill {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f3d5d5 0%, #d2b0b0 100%);
  display: grid;
  place-items: center;
  color: #3f3033;
  font-weight: 700;
  font-size: 12px;
}
.system-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: #fff;
  color: var(--ink-strong);
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(95, 74, 79, 0.06);
}
.system-btn--soft {
  background: #f9dfe0;
}
.system-content {
  padding: 8px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.content-header h1 {
  margin: 0;
  font-family: var(--f-tight);
  font-size: clamp(28px, 3.2vw, 44px);
  color: var(--ink-strong);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 18px;
}
.stat-card {
  padding: 22px 18px 18px;
  border-radius: 28px;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 14px 28px rgba(125, 110, 114, 0.08);
  position: relative;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(126, 98, 105, 0.08);
}
.stat-card--peach {
  background: linear-gradient(135deg, #f7d5d4 0%, #e5b1ab 100%);
}
.stat-card--pink {
  background: linear-gradient(135deg, #f5d3e3 0%, #d1b0e8 100%);
}
.stat-card--blue {
  background: linear-gradient(135deg, #dfeeff 0%, #b8cdf4 100%);
}
.stat-card__icon {
  position: absolute;
  top: 18px;
  left: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: grid;
  place-items: center;
  font-size: 18px;
}
.stat-card__meta {
  font-size: 12px;
  opacity: 0.9;
  margin-bottom: 8px;
  margin-top: 18px;
}
.stat-card__days {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.stat-card__amount {
  font-size: 18px;
  font-weight: 700;
}
.lower-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}
.panel-card {
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(119,110,110,0.08);
  padding: 18px 18px 16px;
  border-radius: 24px;
  box-shadow: 0 12px 24px rgba(105, 79, 83, 0.05);
}
.panel-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.panel-card__head h2 {
  margin: 0;
  font-size: 15px;
  color: var(--ink-strong);
}
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-strong);
}
.chart-bars {
  height: 150px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding-top: 16px;
}
.chart-bars span {
  flex: 1;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, #85d8bf 0%, #51b79c 100%);
  min-height: 20px;
}
.person-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}
.person-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.avatar--one { background: linear-gradient(135deg, #f7d6d6 0%, #d9a4a4 100%); }
.avatar--two { background: linear-gradient(135deg, #d7d7f7 0%, #9fa9e7 100%); }
.avatar--three { background: linear-gradient(135deg, #f5d7af 0%, #d8a06d 100%); }
.person-copy strong {
  font-size: 14px;
  color: var(--ink-strong);
}
.person-value {
  font-size: 12px;
  font-weight: 700;
}
.person-value.positive { color: #3a8f6f; }
.person-value.negative { color: #cf5e65; }

@media (max-width: 900px) {
  .system-frame { flex-direction: column; }
  .system-sidebar { width: 100%; }
  .stats-grid { grid-template-columns: 1fr; }
  .lower-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .system-shell { padding: 18px 12px; }
  .system-topbar { flex-direction: column; align-items: flex-start; }
  .system-tabs { overflow-x: auto; }
  .system-content { padding: 8px 18px 20px; }
}

/* ---------- Shell (dashboard + ficha) ---------- */
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
  background: var(--near-black);
  color: var(--pink);
}
.topbar__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.topbar__brand img { height: 34px; width: auto; filter: invert(1); }
.topbar__brand span { font-family: var(--f-tight); font-weight: 600; letter-spacing: .02em; }
.topbar__right { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.topbar__email { opacity: .75; }

.main { flex: 1; padding: 32px 28px 60px; max-width: 980px; width: 100%; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { font-family: var(--f-tight); font-size: 30px; font-weight: 500; color: var(--ink-strong); }
.page-head p { margin-top: 4px; color: var(--grey); font-size: 15px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; font-size: 14px; color: var(--grey-dark); text-decoration: none; }
.back-link:hover { color: var(--ink-strong); }

.toolbar { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.toolbar input[type="search"] {
  flex: 1; min-width: 220px;
  padding: 11px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 15px;
}

.card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 24px rgba(70,59,59,.06);
  padding: 24px;
}
.card + .card { margin-top: 20px; }
.card h2 { font-family: var(--f-tight); font-size: 19px; font-weight: 500; margin-bottom: 16px; }

.list { display: flex; flex-direction: column; gap: 10px; }
.list-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(70,59,59,.06);
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s ease, transform .2s ease;
}
.list-row:hover { box-shadow: 0 8px 24px rgba(70,59,59,.12); transform: translateY(-1px); }
.list-row__name { font-family: var(--f-tight); font-weight: 500; font-size: 16px; }
.list-row__meta { font-size: 13px; color: var(--grey); margin-top: 2px; }
.list-row__chevron { color: var(--grey); flex: none; }
.empty { padding: 40px 20px; text-align: center; color: var(--grey); font-size: 15px; }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checks { display: flex; flex-direction: column; gap: 10px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.check input { width: 18px; height: 18px; }

.note {
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.note + .note { margin-top: 12px; }
.note__meta { font-size: 13px; color: var(--grey); margin-bottom: 6px; }
.note__meta strong { color: var(--ink-strong); }
.note__text { font-size: 15px; line-height: 1.5; white-space: pre-wrap; }

.consent {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #FFF7ED;
  border: 1px solid #F3D9A8;
  font-size: 14px;
  line-height: 1.5;
  color: #6B4E1D;
  margin-bottom: 18px;
}
.consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; }

@media (max-width: 640px) {
  .topbar { padding: 14px 16px; }
  .main { padding: 24px 16px 48px; }
  .row2 { grid-template-columns: 1fr; }
}

/* ---------- Ficha de Anamnese: menu no topo (em vez da lateral) ----------
   Libera a largura toda da tela para a tabela de clientes, que antes ficava espremida e saía para fora. */
.anamnese-shell { flex-direction: column; }
.anamnese-shell > .system-sidebar {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 28px;
  border-right: 0;
  border-bottom: 1px solid rgba(119, 110, 110, 0.08);
}
.anamnese-shell > .system-sidebar .system-sidebar__brand {
  flex-direction: row;
  gap: 12px;
  padding: 0;
  text-align: left;
  flex: none;
}
.anamnese-shell > .system-sidebar .brand-mark { width: 104px; }
.anamnese-shell > .system-sidebar .system-nav {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  flex: 1;
}
.anamnese-shell > .system-sidebar .system-nav__item { width: auto; white-space: nowrap; }
.anamnese-shell > .system-sidebar .system-side-card {
  margin: 0;
  flex: none;
  max-width: 320px;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
}
.anamnese-shell > .system-sidebar .system-side-card small { font-size: 11px; }
.anamnese-shell .lead-list { display: block; grid-template-columns: none; width: 100%; }
.anamnese-shell { overflow-x: hidden; }
.anamnese-shell .system-main { min-width: 0; width: 100%; }
.anamnese-shell .system-content { max-width: none; width: 100%; }
.anamnese-shell .lead-table-wrap { overflow: visible; }
.anamnese-shell .lead-table { min-width: 0; width: 100%; }
/* Células não quebram (WhatsApp, data, etc. ficam em uma linha); só o nome pode quebrar */
.anamnese-shell .lead-table th,
.anamnese-shell .lead-table td { white-space: nowrap; word-break: normal; padding: 13px 9px; }
.anamnese-shell .lead-table td.lead-name { white-space: normal; min-width: 130px; }
.anamnese-shell .lead-table .lead-thumb { width: 44px; height: 44px; }

/* Telas menores: cada cliente vira um cartão, sem rolagem horizontal */
@media (max-width: 1000px) {
  .anamnese-shell .lead-table,
  .anamnese-shell .lead-table tbody,
  .anamnese-shell .lead-table tr,
  .anamnese-shell .lead-table td { display: block; width: 100%; }
  .anamnese-shell .lead-table thead { display: none; }
  .anamnese-shell .lead-table tr.lead-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 4px 16px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(118,106,109,0.1);
  }
  .anamnese-shell .lead-table td { padding: 6px 0; border: 0; background: none; }
  .anamnese-shell .lead-table td.lead-check-col { grid-column: 1 / -1; }
  .anamnese-shell .lead-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--grey-dark);
    font-weight: 700;
    margin-bottom: 2px;
  }
}

@media (max-width: 1100px) {
  .anamnese-shell > .system-sidebar { flex-wrap: wrap; gap: 14px; }
  .anamnese-shell > .system-sidebar .system-nav { order: 3; flex-basis: 100%; }
}

.toolbar-tab-wrap { position: relative; display: inline-flex; margin-top: 8px; }
.toolbar-tab__count {
  position: absolute;
  top: -9px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--ink-strong);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
  pointer-events: none;
}
.lead-procedimento { color: var(--ink-strong); font-weight: 600; white-space: nowrap; }

.toolbar-tabs { align-items: center; }
.toolbar-bell {
  position: relative;
  margin-left: auto;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: var(--ink-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(119, 90, 98, 0.08);
}
.toolbar-bell svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.toolbar-bell__slash { display: none; }
.toolbar-tabs.counts-off .toolbar-bell { background: rgba(255,255,255,0.35); color: rgba(77,61,64,0.7); box-shadow: none; }
.toolbar-tabs.counts-off .toolbar-bell__slash { display: block; }
.toolbar-tabs.counts-off .toolbar-tab__count { display: none; }

/* Efeito ao abrir a ficha do cliente */
@keyframes leadModalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes leadCardIn {
  0%   { opacity: 0; transform: translateY(28px) scale(.94); }
  60%  { opacity: 1; transform: translateY(-4px) scale(1.01); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes leadItemIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.lead-detail-modal.is-open {
  animation: leadModalFade .25s ease-out both;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.lead-detail-modal.is-open .lead-detail-card { animation: leadCardIn .45s cubic-bezier(.22, 1, .36, 1) both; }
.lead-detail-modal.is-open .lead-detail-header,
.lead-detail-modal.is-open .lead-detail-grid,
.lead-detail-modal.is-open .lead-detail-docs,
.lead-detail-modal.is-open .lead-detail-observacoes,
.lead-detail-modal.is-open .lead-detail-pigmento { animation: leadItemIn .4s ease-out both; }
.lead-detail-modal.is-open .lead-detail-header { animation-delay: .12s; }
.lead-detail-modal.is-open .lead-detail-grid { animation-delay: .18s; }
.lead-detail-modal.is-open .lead-detail-docs { animation-delay: .24s; }
.lead-detail-modal.is-open .lead-detail-observacoes { animation-delay: .3s; }
.lead-detail-modal.is-open .lead-detail-pigmento { animation-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  .lead-detail-modal.is-open,
  .lead-detail-modal.is-open .lead-detail-card,
  .lead-detail-modal.is-open [class^="lead-detail-"] { animation: none; }
}

/* Efeito ao fechar a ficha do cliente */
@keyframes leadModalFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes leadCardOut { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(20px) scale(.95); } }
.lead-detail-modal.is-open.is-closing { animation: leadModalFadeOut .26s ease-in both; pointer-events: none; }
.lead-detail-modal.is-open.is-closing .lead-detail-card { animation: leadCardOut .26s ease-in both; }
.lead-detail-modal.is-open.is-closing .lead-detail-card > * { animation: none; }

/* Visão geral: ocupa toda a área da tela */
.system-shell { padding: 0; align-items: stretch; justify-content: stretch; }
.system-frame {
  width: 100%;
  min-height: 100vh;
  border-radius: 0;
  border: 0;
  box-shadow: none;
}
.system-main { flex: 1; min-width: 0; }

/* ---------- Financeiro (Visão geral) ---------- */
.system-content[hidden] { display: none; }
.fin-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.fin-months { display: flex; flex-wrap: wrap; gap: 8px; }
.fin-month {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(126,98,105,0.12);
  background: rgba(255,255,255,0.52);
  color: var(--grey-dark);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, box-shadow .2s;
}
.fin-month:hover { background: rgba(255,255,255,0.85); }
.fin-month.is-active {
  background: linear-gradient(135deg, #f8e7ea 0%, #f0d4d9 100%);
  color: var(--ink-strong);
  box-shadow: 0 12px 18px rgba(181,124,134,0.1);
}
.fin-seg {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(119,110,110,0.08);
}
.fin-seg button {
  border: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--grey-dark);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.fin-seg button.is-active { background: #f9dfe0; color: var(--ink-strong); }
.fin-view .stat-card { min-height: 150px; }
.fin-view .stat-card__amount { font-size: clamp(22px, 2.4vw, 30px); font-family: var(--f-tight); }
.fin-view .stat-card__days { font-size: 14px; font-weight: 600; opacity: .95; }
.fin-chart {
  height: 190px;
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.fin-bar {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-rows: 18px 1fr 20px;
  justify-items: center;
  align-items: end;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.fin-bar__value { font-size: 11px; font-weight: 700; color: var(--grey-dark); }
.fin-bar__fill {
  width: 100%;
  max-width: 44px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, #f3cdd3 0%, #e0a3ad 100%);
  transition: filter .2s, transform .2s;
}
.fin-bar:hover .fin-bar__fill { filter: brightness(1.05); }
.fin-bar.is-active .fin-bar__fill { background: linear-gradient(180deg, #d98f9c 0%, #b7606f 100%); }
.fin-bar.is-active .fin-bar__value,
.fin-bar.is-active .fin-bar__label { color: var(--ink-strong); }
.fin-bar__label { font-size: 11px; font-weight: 600; color: var(--grey); align-self: center; }
.fin-table-wrap { max-height: 560px; overflow: auto; border-radius: 16px; }
.fin-table th.num,
.fin-table td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fin-table td { white-space: nowrap; }
.fin-table td:last-child { white-space: normal; min-width: 160px; color: var(--grey-dark); }
.fin-table thead th { position: sticky; top: 0; z-index: 2; }
.fin-row--laser td:first-child { box-shadow: inset 3px 0 0 #b8cdf4; }
@media (max-width: 800px) {
  .fin-view .stats-grid { grid-template-columns: 1fr; }
  .fin-chart { gap: 4px; }
  .fin-bar__value { display: none; }
}

/* Financeiro: meses em botões distribuídos e planilha ocupando toda a largura */
.fin-controls { flex-direction: column; align-items: stretch; gap: 14px; }
.fin-months { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 8px; }
.fin-month { padding: 10px 4px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fin-seg { align-self: flex-start; }
.fin-table-card { padding: 18px 0 8px; }
.fin-table-card .panel-card__head { padding: 0 18px; }
.fin-table-wrap { max-height: none; border-radius: 0; overflow-x: auto; }
.fin-table { width: 100%; table-layout: auto; font-size: 12px; }
.fin-table th, .fin-table td { padding: 10px 8px; white-space: normal; vertical-align: middle; }
.fin-table th { font-size: 10px; letter-spacing: 0.08em; }
.fin-table th.num, .fin-table td.num, .fin-table td:nth-child(2), .fin-table td:nth-child(3), .fin-table td:nth-child(7) { white-space: nowrap; }
.fin-table td.lead-name { min-width: 150px; }
.fin-table td:last-child { min-width: 120px; }
.fin-table tbody tr:nth-child(even) td { background: rgba(249,241,243,0.5); }
.fin-table tbody tr:hover td { background: rgba(248,231,234,0.7); }
@media (max-width: 1100px) {
  .fin-months { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .fin-months { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Cores das linhas: as mesmas da planilha original (verde = apenas sinal) */
.fin-table tbody tr:nth-child(even) td { background: transparent; }
.fin-table tbody tr.fin-row--sinal td { background: #B6D7A8; }
.fin-table tbody tr.fin-row--cinza td { background: #EFEFEF; }
.fin-table tbody tr.fin-row--branco td { background: #FFFFFF; }
.fin-table tbody tr.fin-row--amarelo td { background: #FFF2CC; }
.fin-table tbody tr.fin-row--vermelho td { background: #F4CCCC; }
.fin-table tbody tr:hover td { filter: brightness(0.96); }
.fin-row--laser td:first-child { box-shadow: inset 4px 0 0 #9FC5E8; }
.fin-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0 18px 12px; font-size: 12px; color: var(--grey-dark); }
.fin-legend span { display: inline-flex; align-items: center; gap: 6px; }
.fin-dot { width: 14px; height: 14px; border-radius: 4px; border: 1px solid rgba(70,59,59,0.15); display: inline-block; }
.fin-dot--sinal { background: #B6D7A8; }
.fin-dot--amarelo { background: #FFF2CC; }
.fin-dot--vermelho { background: #F4CCCC; }
.fin-dot--laser { background: #fff; box-shadow: inset 4px 0 0 #9FC5E8; }

/* Lançamentos: faixa de largura total, encostada na lateral esquerda abaixo do menu */
.system-frame { flex-wrap: wrap; }
.fin-table-full { flex: 0 0 100%; min-width: 0; padding: 0 0 24px; background: linear-gradient(180deg, rgba(249,241,243,0.75) 0%, rgba(255,255,255,0.6) 100%); border-top: 1px solid rgba(133,118,122,0.08); }
.fin-table-full[hidden] { display: none; }
.fin-table-full .fin-table-card { border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; background: transparent; padding: 20px 0 8px; }
.fin-table-full .panel-card__head { padding: 0 24px; }
.fin-table-full .fin-legend { padding: 0 24px 12px; }
.fin-table-full .fin-table-wrap { border-radius: 0; }

/* Meses em uma única linha, sem quebrar o nome */
.fin-months { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.fin-month { flex: 1 0 auto; padding: 10px 14px; overflow: visible; text-overflow: clip; white-space: nowrap; word-break: normal; overflow-wrap: normal; }

/* Divisão dos meses e do Laser, como os espaços em branco da planilha */
.fin-table tbody tr.fin-gap td { height: 22px; padding: 0; background: transparent !important; border: 0; }
.fin-table tbody tr.fin-band td {
  padding: 10px 16px;
  font-family: var(--f-tight);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-strong);
  border-bottom: 0;
}
.fin-table tbody tr.fin-band--month td { background: linear-gradient(135deg, #f8e7ea 0%, #f0d4d9 100%); }
.fin-table tbody tr.fin-band--laser td { background: #dfeeff; }
.fin-table tbody tr.fin-band:hover td, .fin-table tbody tr.fin-gap:hover td { filter: none; }

/* ---------- Planilha editável ---------- */
.fin-head-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fin-save { font-size: 12px; color: var(--grey-dark); }
.fin-reset {
  border: 1px solid rgba(126,98,105,0.18);
  background: rgba(255,255,255,0.8);
  color: var(--ink-strong);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.fin-reset:hover { background: #f9dfe0; }
.fin-table td[contenteditable] { cursor: text; }
.fin-table td[contenteditable]:hover { box-shadow: inset 0 0 0 1px rgba(183,96,111,0.35); }
.fin-table td[contenteditable]:focus {
  outline: 2px solid #d98f9c;
  outline-offset: -2px;
  background: #fff !important;
  filter: none !important;
  border-radius: 4px;
  white-space: nowrap;
}
.fin-table td[data-f="total"] { font-weight: 700; }
.fin-table td[data-f="procedimento"] { font-weight: 600; }
.fin-table td[data-f="dia"], .fin-table td[data-f="hora"], .fin-table td[data-f="dataSinal"] { white-space: nowrap; }
.fin-table td[data-f="dia"], .fin-table td[data-f="hora"] { min-width: 44px; }
.fin-table td[data-f]:empty { min-width: 40px; }
.fin-month-cell { white-space: nowrap; color: var(--grey-dark); }
.fin-act-th { width: 58px; }
.fin-act { white-space: nowrap; width: 58px; padding-left: 12px !important; }
.fin-color {
  width: 16px; height: 16px; border-radius: 5px; padding: 0; cursor: pointer;
  border: 1px solid rgba(70,59,59,0.3); vertical-align: middle;
}
.fin-color.fin-dot--branco { background: #fff; }
.fin-color.fin-dot--cinza { background: #EFEFEF; }
.fin-del {
  border: 0; background: transparent; color: var(--grey); font-size: 18px; line-height: 1;
  margin-left: 6px; padding: 0 2px; cursor: pointer; opacity: 0; transition: opacity .15s, color .15s; vertical-align: middle;
}
.fin-table tbody tr:hover .fin-del { opacity: 1; }
.fin-del:hover { color: var(--danger); }
.fin-table tbody tr.fin-add td { padding: 6px 12px; background: transparent !important; border-bottom: 0; }
.fin-add button {
  border: 1px dashed rgba(126,98,105,0.35);
  background: transparent;
  color: var(--grey-dark);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.fin-add button:hover { background: rgba(249,223,224,0.7); color: var(--ink-strong); }

/* Faixas dos meses e do Laser com o texto centralizado */
.fin-table tbody tr.fin-band td { text-align: center; }

/* Planilha: cabeçalhos e células sempre em uma única linha */
.fin-table th,
.fin-table td,
.fin-table td.lead-name,
.fin-table td:last-child { white-space: nowrap; }
.fin-table td.lead-name { min-width: 0; }
.fin-table td:last-child { min-width: 0; }
.fin-table th.fin-notes-th { min-width: 160px; }

/* Cada mês: nome em cima, títulos das colunas logo abaixo, depois as informações */
.fin-table tbody tr.fin-head th {
  position: static;
  padding: 10px 8px;
  background: rgba(250,245,246,0.96);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-strong);
  white-space: nowrap;
  text-align: left;
  border-bottom: 1px solid rgba(118,106,109,0.12);
}
.fin-table tbody tr.fin-head th.num { text-align: right; }

/* Linhas verticais dividindo as colunas, como numa planilha */
.fin-table { border-collapse: collapse; }
.fin-table tbody tr:not(.fin-band):not(.fin-gap):not(.fin-add) > td,
.fin-table tbody tr.fin-head > th {
  border-right: 1px solid rgba(70,59,59,0.22);
  border-bottom: 1px solid rgba(70,59,59,0.14);
}
.fin-table tbody tr:not(.fin-band):not(.fin-gap):not(.fin-add) > td:last-child,
.fin-table tbody tr.fin-head > th:last-child { border-right: 0; }
.fin-table tbody tr.fin-head > th { border-top: 1px solid rgba(70,59,59,0.22); }

/* Menu do botão direito na planilha */
.fin-ctx {
  position: fixed;
  z-index: 60;
  min-width: 210px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(119,110,110,0.12);
  box-shadow: 0 16px 36px rgba(70,59,59,0.18);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fin-ctx[hidden] { display: none; }
.fin-ctx button {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-strong);
  cursor: pointer;
}
.fin-ctx button:hover { background: #f9dfe0; }
.fin-ctx button[data-ctx="del"] { color: var(--danger); }

/* Lista de modelos do cartucho com cantos redondos (navegadores que suportam select personalizável) */
@supports (appearance: base-select) {
  .pigmento-select,
  .pigmento-select::picker(select) { appearance: base-select; }
  .pigmento-select { background-image: none; padding-right: 16px; display: flex; align-items: center; justify-content: space-between; }
  .pigmento-select::picker-icon {
    content: '';
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s;
  }
  .pigmento-select:open::picker-icon { transform: rotate(-135deg); }
  .pigmento-select::picker(select) {
    margin-top: 6px;
    padding: 6px;
    border: 1px solid rgba(118,106,109,0.12);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(45,35,37,0.14);
    max-height: 260px;
    position-area: block-end span-inline-end;
    position-try-fallbacks: none;
    inline-size: anchor-size(self-inline);
    scrollbar-width: thin;
    scrollbar-color: #d9b3bc transparent;
  }
  .pigmento-select option {
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 14px;
    color: var(--ink-strong);
    cursor: pointer;
  }
  .pigmento-select option::checkmark { display: none; }
  .pigmento-select option:hover,
  .pigmento-select option:focus-visible { background: rgba(213,138,157,0.14); outline: none; }
  .pigmento-select option:checked { background: #d58a9d; color: #fff; }
}

/* ---------- Sessões da cliente (páginas 1/2, 2/3...) ---------- */
.lead-detail-sessao {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 20px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(118,106,109,0.08);
  border-radius: 18px;
  background: rgba(249,245,245,0.7);
}
.sessao-pager { display: inline-flex; align-items: center; gap: 8px; }
.sessao-count {
  min-width: 52px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-strong);
}
.sessao-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(118,106,109,0.16);
  border-radius: 50%;
  background: #fff;
  color: var(--ink-strong);
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, opacity .2s;
}
.sessao-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sessao-btn:hover:not(:disabled) { background: rgba(213,138,157,0.14); border-color: #d58a9d; }
.sessao-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(213,138,157,0.25); }
.sessao-btn:disabled { opacity: .35; cursor: default; }
.sessao-btn--add { margin-left: 6px; border-color: #d58a9d; color: #d58a9d; }
.sessao-btn--add svg { width: 24px; height: 24px; stroke-width: 1.8; }
.sessao-btn--add:hover:not(:disabled) { background: #d58a9d; color: #fff; }
.sessao-campos { display: flex; flex-wrap: wrap; gap: 10px; flex: 1; justify-content: flex-end; }
.sessao-campo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 170px;
  flex: 1 1 170px;
  max-width: 260px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-strong);
}
.sessao-input { padding: 8px 14px; min-height: 38px; }

/* Botão "+" só com o círculo interno, e botão Apagar da sessão */
.sessao-btn--add {
  width: 40px;
  height: 40px;
  margin-left: 6px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.sessao-btn--add svg { width: 34px; height: 34px; stroke-width: 1.6; }
.sessao-btn--add:hover:not(:disabled) { background: transparent; color: #b86a80; transform: scale(1.08); }
.sessao-btn--add:hover:not(:disabled) svg circle { fill: rgba(213,138,157,0.16); }
.sessao-btn--add { transition: transform .2s, color .2s; }
.sessao-apagar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 44px;
  padding: 9px 16px;
  border: 1px solid rgba(118,106,109,0.16);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-strong);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.sessao-apagar svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sessao-apagar:hover { background: rgba(213,138,157,0.14); border-color: #d58a9d; color: #b3475f; }
.sessao-apagar:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(213,138,157,0.25); }
#lead-detail-status[hidden] { display: none !important; }

/* ---------- Calendário da data do procedimento ---------- */
.sessao-campo > label { font-size: 12px; font-weight: 600; color: var(--ink-strong); }
.cal-wrap { position: relative; }
.cal-wrap .sessao-input { padding-right: 46px; }
.cal-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #d58a9d;
  cursor: pointer;
  transition: background .2s;
}
.cal-toggle:hover, .cal-toggle[aria-expanded="true"] { background: rgba(213,138,157,0.16); }
.cal-toggle:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(213,138,157,0.25); }
.cal-toggle svg, .cal-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cal-pop {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  width: 296px;
  padding: 14px;
  border: 1px solid rgba(118,106,109,0.12);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(45,35,37,0.16);
  animation: leadItemIn .2s ease-out both;
}
.cal-pop[hidden] { display: none; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-title { font-size: 14px; font-weight: 700; letter-spacing: 0.04em; color: var(--ink-strong); }
.cal-nav {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(118,106,109,0.16);
  border-radius: 50%;
  background: #fff;
  color: var(--ink-strong);
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.cal-nav:hover { background: rgba(213,138,157,0.14); border-color: #d58a9d; }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-week { margin-bottom: 4px; }
.cal-week span { text-align: center; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: var(--grey-dark); }
.cal-grid { gap: 2px; }
.cal-day {
  height: 34px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  font: inherit;
  font-size: 13px;
  color: var(--ink-strong);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.cal-day:hover { background: rgba(213,138,157,0.16); }
.cal-day.is-out { color: rgba(118,106,109,0.4); }
.cal-day.is-today { border-color: #d58a9d; }
.cal-day.is-selected, .cal-day.is-selected:hover { background: #d58a9d; border-color: #d58a9d; color: #fff; font-weight: 700; }
.cal-foot { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(118,106,109,0.08); }
.cal-link { border: 0; background: transparent; padding: 4px 8px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 600; color: #b86a80; cursor: pointer; }
.cal-link:hover { background: rgba(213,138,157,0.14); }

/* Assinatura com opção de ampliar (zoom) */
.lead-detail-doc__frame { position: relative; cursor: zoom-in; }
#lead-detail-signature { object-fit: contain; background: #fff; min-height: 120px; }
.doc-zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(118,106,109,0.16);
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: #d58a9d;
  cursor: zoom-in;
  transition: background .2s, color .2s;
}
.doc-zoom svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lead-detail-doc__frame:hover .doc-zoom, .doc-zoom:focus-visible { background: #d58a9d; color: #fff; outline: none; }
.lead-detail-photo-box { cursor: zoom-in; }

/* ---------- Páginas da ficha (1 = anamnese, 2 = lead completo) ---------- */
.lead-page[hidden] { display: none; }
.lead-page { animation: leadItemIn .3s ease-out both; }
.lead-page__title { margin: 4px 0 0; font-size: 22px; font-weight: 700; color: var(--ink-strong); }
.lead-page__empty {
  margin-top: 18px;
  padding: 48px 24px;
  border: 1px dashed rgba(118,106,109,0.22);
  border-radius: 20px;
  background: rgba(249,245,245,0.7);
  text-align: center;
  color: var(--grey-dark);
}
.lead-page__empty p { margin: 0 0 8px; font-size: 15px; color: var(--ink-strong); }
.lead-page__empty small { font-size: 12px; }
.lead-page-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(118,106,109,0.16);
  border-radius: 50%;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 12px 30px rgba(45,35,37,0.18);
  color: #d58a9d;
  cursor: pointer;
  z-index: 31;
  transition: background .2s, color .2s, transform .2s;
}
.lead-page-arrow[hidden] { display: none; }
.lead-page-arrow svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lead-page-arrow:hover { background: #d58a9d; color: #fff; transform: translateY(-50%) scale(1.06); }
.lead-page-arrow:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(213,138,157,0.3); }
.lead-page-arrow--next { left: calc(50% + min(390px, 50vw - 32px) + 16px); }
.lead-page-arrow--prev { right: calc(50% + min(390px, 50vw - 32px) + 16px); }
@media (max-width: 960px) {
  .lead-page-arrow { top: auto; bottom: 18px; transform: none; width: 52px; height: 52px; }
  .lead-page-arrow:hover { transform: scale(1.06); }
  .lead-page-arrow--next { left: auto; right: 18px; }
  .lead-page-arrow--prev { right: auto; left: 18px; }
}
.lead-detail-modal:not(.is-open) .lead-page-arrow { display: none; }

/* Página 1: respostas da ficha de anamnese */
.lead-page__hint { margin: 6px 0 0; font-size: 12px; color: var(--grey-dark); }
.anamnese-respostas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.anamnese-resposta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(118,106,109,0.08);
  border-radius: 16px;
  background: rgba(249,245,245,0.7);
}
.anamnese-resposta > span:first-child { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey-dark); }
.anamnese-resposta strong { font-size: 15px; font-weight: 600; color: var(--ink-strong); }
.anamnese-resposta .lead-pill { align-self: flex-start; }
.anamnese-vazio { font-weight: 400; color: var(--grey); }
.anamnese-secao { grid-column: 1 / -1; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line, rgba(0,0,0,.08)); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rose-deep, #c47790); }
.anamnese-secao:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.anamnese-resposta--wide { grid-column: 1 / -1; }
.anamnese-img { display: block; max-width: 100%; max-height: 260px; object-fit: contain; margin-top: 6px; padding: 8px; border-radius: 12px; background: #fff; border: 1px solid rgba(0,0,0,.08); }
@media (max-width: 640px) { .anamnese-respostas { grid-template-columns: 1fr; } }

/* Instagram (mesmo padrão do WhatsApp) */
.lead-instagram-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #fff;
  transition: transform .2s, filter .2s;
}
.lead-instagram-btn svg { width: 18px; height: 18px; }
.lead-instagram-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.lead-detail-field--full { grid-column: 1 / -1; }
.lead-detail-sessao { margin-bottom: 16px; }
.lead-detail-pigmento + .lead-detail-observacoes { margin-top: 16px; }

/* Página Agenda: só o título centralizado */
.agenda-main {
  flex: 1;
  min-height: calc(100vh - 110px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.agenda-title {
  margin: 0;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-strong);
}

/* menu do topo do painel: uma linha só, com rolagem lateral, no celular */
@media (max-width: 640px) {
  .anamnese-shell > .system-sidebar { flex-wrap: wrap; gap: 10px 16px; padding: 12px 14px; }
  .anamnese-shell > .system-sidebar .system-nav { flex: 1 1 100%; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .anamnese-shell > .system-sidebar .system-nav::-webkit-scrollbar { display: none; }
  .anamnese-shell > .system-sidebar .brand-mark { width: 84px; }
  .anamnese-shell > .system-sidebar .system-side-card { max-width: 100%; }
}

/* =====================================================================
   Visão geral / Planilha no celular e no iPad
   ===================================================================== */
.system-frame, .system-main, .system-content { min-width: 0; max-width: 100%; }
@media (max-width: 900px) {
  .system-frame { overflow-x: clip; }
  /* menu lateral vira uma barra fina no topo: logo + menu em uma linha com rolagem */
  .system-frame > .system-sidebar { padding: 12px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; border-right: 0; border-bottom: 1px solid rgba(119,110,110,0.08); }
  .system-frame > .system-sidebar .system-sidebar__brand { flex-direction: row; padding: 0; gap: 10px; text-align: left; }
  .system-frame > .system-sidebar .system-sidebar__brand span { display: none; }
  .system-frame > .system-sidebar .brand-mark { width: 92px; }
  .system-frame > .system-sidebar .system-search, .system-frame > .system-sidebar .system-side-card { display: none; }
  .system-frame > .system-sidebar .system-nav { flex: 1 1 100%; flex-direction: row; gap: 4px; margin: 0; overflow-x: auto; scrollbar-width: none; }
  .system-frame > .system-sidebar .system-nav::-webkit-scrollbar { display: none; }
  .system-frame > .system-sidebar .system-nav__item { width: auto; white-space: nowrap; flex: none; }
  .system-topbar { flex-wrap: wrap; gap: 10px; }
  .system-tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .system-tabs::-webkit-scrollbar { display: none; }
  .system-tab { flex: none; white-space: nowrap; }
}
@media (max-width: 640px) {
  .system-content { padding: 8px 12px 20px; }
  .system-topbar { padding-left: 12px; padding-right: 12px; }
  .system-topbar__right { width: 100%; justify-content: space-between; }
  .fin-controls { gap: 10px; }
  .fin-seg { max-width: 100%; overflow-x: auto; }
  .fin-table-card { padding: 14px 0 6px; }
  .fin-table-card .panel-card__head { padding: 0 12px; }
  .fin-table-wrap { -webkit-overflow-scrolling: touch; }
  .fin-table { min-width: 720px; }
}
@media (max-width: 900px) {
  .system-frame { flex-wrap: nowrap; }
  .fin-table-full { flex: 0 0 auto; width: 100%; max-width: 100%; min-width: 0; overflow: hidden; }
  .fin-table-full .fin-table-wrap { max-width: 100%; overflow-x: auto; }
  .fin-table-full .panel-card__head, .fin-table-full .fin-legend { padding-left: 12px; padding-right: 12px; }
  .fin-table-full .panel-card__head { flex-wrap: wrap; gap: 8px; }
  .fin-head-actions { flex-wrap: wrap; }
}

/* Gráfico "Faturamento por mês" no celular na vertical: cada mês tem largura própria e o gráfico rola para o lado */
@media (max-width: 640px) {
  .fin-chart { height: 230px; gap: 8px; overflow-x: auto; overflow-y: hidden; padding: 0 4px 4px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
  .fin-bar { flex: 0 0 46px; min-width: 46px; }
  .fin-bar__value { display: block; font-size: 10px; }
  .fin-bar__fill { max-width: 34px; min-height: 6px; }
  .fin-chart-card .panel-card__head { flex-wrap: wrap; gap: 8px; }
}

/* Seleção de células estilo Google Planilhas */
.fin-table td[data-f] { user-select: none; -webkit-user-select: none; cursor: cell; }
.fin-table td[data-f].fin-editing { user-select: text; -webkit-user-select: text; cursor: text; }
.fin-table td[data-f]:hover { box-shadow: inset 0 0 0 1px rgba(183,96,111,0.35); }
.fin-table td.fin-sel { box-shadow: inset 0 0 0 9999px rgba(217,143,156,0.32); }
.fin-table td.fin-anchor { outline: 2px solid #b7606f; outline-offset: -2px; }
.fin-table td.fin-editing {
  outline: 2px solid #b7606f;
  outline-offset: -2px;
  background: #fff !important;
  box-shadow: none !important;
  filter: none !important;
}

/* Seletor de ano (aparece quando a planilha tem mais de um ano) */
.fin-years { display: flex; flex-wrap: wrap; gap: 8px; }
.fin-years[hidden] { display: none; }
.fin-year {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(126,98,105,0.18);
  background: rgba(255,255,255,0.8);
  color: var(--ink-strong);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.fin-year:hover { background: rgba(255,255,255,1); }
.fin-year.is-active { background: var(--near-black); color: var(--pink); border-color: var(--near-black); }

/* Planilha com barra de rolagem horizontal sempre visível (a tabela rola dentro da própria caixa, como no Google Planilhas) */
.fin-table-full .fin-table-wrap {
  max-height: calc(100vh - 140px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: auto;
  scrollbar-color: #d98f9c rgba(249,223,224,0.6);
}
.fin-table-full .fin-table-wrap::-webkit-scrollbar { height: 0; width: 14px; }
.fin-table-full .fin-table-wrap::-webkit-scrollbar-track { background: rgba(249,223,224,0.6); }
.fin-table-full .fin-table-wrap::-webkit-scrollbar-thumb { background: #d98f9c; border-radius: 999px; border: 3px solid rgba(249,223,224,0.6); }
.fin-table-full .fin-table-wrap::-webkit-scrollbar-thumb:hover { background: #b7606f; }
.fin-table-full .fin-table { min-width: 1500px; }

/* Rolagem horizontal da planilha: barra FIXA no rodapé da janela, sempre à vista enquanto a tabela estiver na tela */
.system-frame { overflow: clip; }
.fin-table-full { overflow: clip; }
.fin-table-full .fin-table-wrap { max-height: none; overflow-x: auto; overflow-y: visible; }
.fin-hbar {
  position: sticky; bottom: 0; z-index: 30; height: 18px;
  overflow-x: scroll; overflow-y: hidden;
  background: rgba(252,240,242,0.96);
  border-top: 1px solid rgba(126,98,105,0.15);
  scrollbar-width: auto; scrollbar-color: #d98f9c rgba(249,223,224,0.6);
}
.fin-hbar[hidden] { display: none; }
.fin-hbar > div { height: 1px; }
.fin-hbar::-webkit-scrollbar { height: 16px; }
.fin-hbar::-webkit-scrollbar-track { background: rgba(249,223,224,0.6); }
.fin-hbar::-webkit-scrollbar-thumb { background: #d98f9c; border-radius: 999px; border: 3px solid rgba(249,223,224,0.6); }
.fin-hbar::-webkit-scrollbar-thumb:hover { background: #b7606f; }

/* Barra de rolagem horizontal da planilha: FIXA no rodapé da tela em qualquer momento (não depende de onde a página está rolada) */
.fin-hbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; box-shadow: 0 -6px 18px rgba(70,59,59,0.10); }
.fin-table-full { padding-bottom: 34px; }

/* Barra de títulos (Data, Hora, Nome do cliente...) acompanha a rolagem como guia */
.fin-table-full .fin-table-wrap { max-height: calc(100vh - 44px); overflow: auto; overscroll-behavior: auto; }
.fin-table tbody tr.fin-head > th {
  position: sticky; top: 0; z-index: 6;
  background: #faf5f6;
  box-shadow: 0 2px 0 rgba(70,59,59,0.14), 0 8px 12px rgba(70,59,59,0.07);
}

/* Barras de rolagem do painel em rosa (a vertical da página também, que estava cinza) */
html, body, * { scrollbar-color: #d98f9c #f9dfe0; }
::-webkit-scrollbar { width: 14px; height: 14px; }
::-webkit-scrollbar-track { background: #f9dfe0; }
::-webkit-scrollbar-thumb { background: #d98f9c; border-radius: 999px; border: 3px solid #f9dfe0; }
::-webkit-scrollbar-thumb:hover { background: #b7606f; }
/* a barra horizontal própria da tabela fica escondida: quem rola é a barra fixa no rodapé da tela */
.fin-table-full .fin-table-wrap { scrollbar-color: auto; }
.fin-table-full .fin-table-wrap::-webkit-scrollbar { width: 14px; height: 0; }

/* Letras (A, B, C...) e números de linha, como no Google Planilhas */
:root { --fin-letters-h: 26px; }
.fin-table .fin-rn {
  width: 46px; min-width: 46px; max-width: 46px; padding: 0 4px !important; text-align: center; font-size: 11px; font-weight: 600;
  color: var(--grey-dark, #6E6E6E); background: #f3eeef !important; position: sticky; left: 0; z-index: 4;
  border-right: 1px solid rgba(70,59,59,0.22); user-select: none; -webkit-user-select: none; cursor: default; letter-spacing: 0;
  text-transform: none;
}
.fin-table td.fin-rn[data-row] { cursor: pointer; }
.fin-table td.fin-rn.is-sel, .fin-table th.fin-rn.is-sel { background: #f0c5cf !important; color: #463B3B; }
.fin-letters th {
  position: sticky; top: 0; z-index: 9; height: var(--fin-letters-h); padding: 0 8px; background: #f3eeef;
  font-size: 11px; font-weight: 700; color: var(--grey-dark, #6E6E6E); text-align: center; letter-spacing: 0; text-transform: none;
  border-right: 1px solid rgba(70,59,59,0.18); border-bottom: 1px solid rgba(70,59,59,0.22); cursor: pointer; user-select: none; -webkit-user-select: none;
}
.fin-letters th:hover { background: #f8e3e8; }
.fin-letters th.is-sel { background: #f0c5cf; color: #463B3B; }
.fin-letters th.fin-corner { left: 0; z-index: 12; width: 46px; min-width: 46px; cursor: default; }
.fin-letters th.fin-actth { width: 58px; cursor: default; }
.fin-table tbody tr.fin-head > th { top: var(--fin-letters-h); }
.fin-table tbody tr.fin-head > th.fin-rn { left: 0; z-index: 11; top: var(--fin-letters-h); background: #f3eeef !important; }
.fin-table tbody tr.fin-band > td.fin-rn, .fin-table tbody tr.fin-gap > td.fin-rn { background: #f3eeef !important; color: var(--grey-dark, #6E6E6E); font-size: 11px; letter-spacing: 0; text-transform: none; border-bottom: 0; }
.fin-ref { min-width: 48px; padding: 4px 12px; border-radius: 999px; background: #fff; border: 1px solid rgba(126,98,105,0.2); font-size: 12px; font-weight: 700; text-align: center; color: var(--ink-strong); }
.fin-ref:empty { display: none; }
.fin-table td[data-f="pagoPor"] { min-width: 180px; }

/* Barra das letras (A, B, C...) fechada por uma linha em cima e um pouco mais escura */
.fin-table-full .fin-table-wrap { border-top: 1px solid rgba(70,59,59,0.35); }
.fin-letters th { background: #ebe3e5; box-shadow: inset 0 1px 0 rgba(70,59,59,0.35), inset 0 -1px 0 rgba(70,59,59,0.28); border-bottom: 0; }
.fin-letters th:hover { background: #f3d9df; }
.fin-letters th.is-sel { background: #f0c5cf; }
.fin-table .fin-rn, .fin-table tbody tr.fin-head > th.fin-rn, .fin-table tbody tr.fin-band > td.fin-rn, .fin-table tbody tr.fin-gap > td.fin-rn { background: #ebe3e5 !important; }
.fin-table td.fin-rn.is-sel, .fin-table th.fin-rn.is-sel { background: #f0c5cf !important; }

/* Sinal repetido na linha branca: só referência visual (não soma) */

/* Logo MPAIVA maior */
.login__logo { height: 130px; margin-bottom: 20px; }
.brand-mark { width: 215px; }
.anamnese-shell > .system-sidebar .brand-mark { width: 165px; }
.anamnese-shell > .system-sidebar { padding-top: 10px; padding-bottom: 10px; }
@media (max-width: 1000px) { .system-frame > .system-sidebar .brand-mark { width: 130px; } }
@media (max-width: 640px) { .anamnese-shell > .system-sidebar .brand-mark { width: 112px; } .login__logo { height: 110px; } }

/* Menu do topo centralizado no meio da tela (Agenda, Ficha de Anamnese...) */
.anamnese-shell > .system-sidebar .system-nav { justify-content: center; }
@media (min-width: 1000px) {
  .anamnese-shell > .system-sidebar:not(:has(.system-side-card)) .system-sidebar__brand { flex: 1 1 0; }
  .anamnese-shell > .system-sidebar:not(:has(.system-side-card)) .system-nav { flex: 0 1 auto; }
  .anamnese-shell > .system-sidebar:not(:has(.system-side-card))::after { content: ''; flex: 1 1 0; }
}
/* Em telas largas o cartão "Leads recebidos" sai do fluxo (canto direito) e o menu fica no centro exato da tela, em uma linha */
@media (min-width: 1200px) {
  .anamnese-shell > .system-sidebar { position: relative; }
  .anamnese-shell > .system-sidebar .system-sidebar__brand { flex: 1 1 0; }
  .anamnese-shell > .system-sidebar .system-nav { flex: 0 1 auto; flex-wrap: nowrap; }
  .anamnese-shell > .system-sidebar::after { content: ''; flex: 1 1 0; }
  .anamnese-shell > .system-sidebar .system-side-card { position: absolute; right: 28px; top: 50%; transform: translateY(-50%); }
  .anamnese-shell > .system-sidebar .system-side-card small { display: none; }
}

/* Logo do topo mais para a direita (sem encostar no menu do centro) */
@media (min-width: 1200px) {
  .anamnese-shell > .system-sidebar .system-sidebar__brand { padding-left: clamp(0px, calc((50vw - 612px) * 0.6), 80px); }
}

/* Olho da Planilha: esconde/mostra os totais e o gráfico, no canto direito da linha dos meses */
.fin-monthsrow { display: flex; align-items: center; gap: 12px; }
.fin-monthsrow .fin-months { flex: 1; min-width: 0; }
.fin-eye {
  position: relative; flex: none; width: 40px; height: 40px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(118,106,109,0.16); background: #fff; color: #6b5960; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(45,35,37,0.10); transition: transform .2s, background .2s;
}
.fin-eye:hover { transform: translateY(-1px); background: #fbf3f3; }
.fin-eye:active { transform: scale(.95); }
.fin-eye svg { position: absolute; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: opacity .2s, transform .3s; }
.fin-eye .fin-eye__off { opacity: 0; transform: scale(.7); }
.fin-eye[aria-pressed="true"] .fin-eye__open { opacity: 0; transform: scale(.7); }
.fin-eye[aria-pressed="true"] .fin-eye__off { opacity: 1; transform: none; }
.fin-view.fin-oculto #fin-stats, .fin-view.fin-oculto .fin-chart-card { display: none; }

/* Olho em cima do bloco azul (canto direito, acima dos cartões de totais) */
.fin-eyerow { display: flex; justify-content: flex-end; margin: 2px 0 -8px; }
/* Meses: os 13 botões cabem na linha sem cortar o "Julho" (menos espaço interno quando a tela é mais estreita) */
.fin-month { padding: 10px 10px; font-size: 12px; }
@media (min-width: 1500px) { .fin-month { padding: 10px 14px; } }

/* Números de linha da barra de títulos (a linha branca) alinhados com os das outras linhas: centralizados e no meio da altura */
.fin-table tbody tr.fin-head > th.fin-rn,
.fin-table tbody tr.fin-band > td.fin-rn,
.fin-table tbody tr.fin-gap > td.fin-rn,
.fin-table tbody td.fin-rn {
  text-align: center; vertical-align: middle; padding: 0 4px !important;
  font-size: 11px; font-weight: 600; letter-spacing: 0; text-transform: none; line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* ---------- Visão geral: menu no topo, igual às outras telas (Agenda, Ficha de Anamnese...) ----------
   O menu deixa de ser uma coluna na esquerda: todas as opções ficam sempre visíveis lá em cima. */
.system-frame { flex-direction: column; flex-wrap: nowrap; }
.system-frame > .system-sidebar {
  width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 28px;
  padding: 10px 28px; border-right: 0; border-bottom: 1px solid rgba(119,110,110,0.08); position: relative;
}
.system-frame > .system-sidebar .system-sidebar__brand { flex-direction: row; gap: 12px; padding: 0; text-align: left; flex: none; }
.system-frame > .system-sidebar .system-sidebar__brand span { display: none; }
.system-frame > .system-sidebar .brand-mark { width: 165px; }
.system-frame > .system-sidebar .system-search { display: none; }
.system-frame > .system-sidebar .system-nav { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 0; }
.system-frame > .system-sidebar .system-nav__item { width: auto; white-space: nowrap; flex: none; }
.system-frame > .system-sidebar .system-side-card { display: none; }
.system-frame > .system-main { width: 100%; flex: 1 1 auto; }
.system-frame > .fin-table-full { flex: 0 0 auto; width: 100%; }
@media (min-width: 1200px) {
  .system-frame > .system-sidebar { flex-wrap: nowrap; }
  .system-frame > .system-sidebar .system-sidebar__brand { flex: 1 1 0; padding-left: clamp(0px, calc((50vw - 612px) * 0.6), 80px); }
  .system-frame > .system-sidebar .system-nav { flex: 0 1 auto; flex-wrap: nowrap; }
  .system-frame > .system-sidebar::after { content: ''; flex: 1 1 0; }
  .system-frame > .system-sidebar .system-side-card {
    display: flex; position: absolute; right: 28px; top: 50%; transform: translateY(-50%);
    margin: 0; flex-direction: row; align-items: center; gap: 12px; padding: 10px 16px; max-width: 320px;
  }
  .system-frame > .system-sidebar .system-side-card small { display: none; }
}
/* Visão geral: ajustes finos — logo deslocada sem empurrar o menu; cartão da receita só onde sobra espaço */
@media (min-width: 1200px) {
  .system-frame > .system-sidebar .system-sidebar__brand { padding-left: 0; position: relative; left: clamp(0px, calc((50vw - 612px) * 0.6), 80px); }
  .system-frame > .system-sidebar .system-side-card { display: none; }
}
@media (min-width: 1500px) {
  .system-frame > .system-sidebar .system-side-card { display: flex; }
}

/* Visão geral sem as abas Dashboard/Atendimentos/Clientes/Planilha: a barra de cima fica só com os botões do canto direito */
.system-frame .system-topbar { justify-content: flex-end; padding-top: 12px; padding-bottom: 6px; }
.system-frame .system-topbar__right { margin-left: auto; }

/* Os 3 botões do canto (níveis de cinza, sol/lua e perfil) ficam dentro da barra cinza do topo, à direita do menu */
.system-sidebar { position: relative; }
.tema-slot { position: absolute; right: 16px; top: 14px; display: flex; align-items: center; gap: 10px; z-index: 6; }
.tema-slot .tema-toggle, .tema-slot .tema-nivel { margin: 0; }
.tema-slot .user-pill { flex: none; }
@media (min-width: 1200px) { .tema-slot { right: 28px; top: 50%; transform: translateY(-50%); } }
/* o cartão da receita só aparece onde sobra espaço, à esquerda dos botões */
@media (min-width: 1200px) and (max-width: 1799px) {
  .system-frame > .system-sidebar .system-side-card, .anamnese-shell > .system-sidebar .system-side-card { display: none; }
}
@media (min-width: 1800px) {
  .system-frame > .system-sidebar .system-side-card, .anamnese-shell > .system-sidebar .system-side-card { right: 210px; }
}

/* Menu do topo: letras maiúsculas e fonte 20% maior (14px -> 16.8px) */
.system-frame > .system-sidebar .system-nav__item,
.anamnese-shell > .system-sidebar .system-nav__item { font-size: 15px; text-transform: uppercase; letter-spacing: 0.01em; padding: 10px 11px; }

/* Menu grande (maiúsculas): até 1699px ele desce para uma segunda linha, centralizado; a partir de 1500px fica na linha da logo */
@media (min-width: 1200px) and (max-width: 1499px) {
  .anamnese-shell > .system-sidebar, .system-frame > .system-sidebar { flex-wrap: wrap !important; gap: 4px 28px !important; padding-top: 10px !important; padding-bottom: 8px !important; }
  .anamnese-shell > .system-sidebar .system-sidebar__brand, .system-frame > .system-sidebar .system-sidebar__brand { flex: none !important; padding-left: 0 !important; left: 0 !important; }
  .anamnese-shell > .system-sidebar .system-nav, .system-frame > .system-sidebar .system-nav { flex: 1 1 100% !important; flex-wrap: wrap !important; justify-content: center !important; order: 3; }
  .anamnese-shell > .system-sidebar::after, .system-frame > .system-sidebar::after { display: none !important; }
  .tema-slot { top: 16px !important; right: 28px !important; transform: none !important; }
}

/* Barra cinza do topo: logo, palavras do menu e botões no mesmo eixo vertical */
.anamnese-shell > .system-sidebar, .system-frame > .system-sidebar { align-items: center; }
.anamnese-shell > .system-sidebar .brand-mark, .system-frame > .system-sidebar .brand-mark { transform: translateY(-6px); }
.anamnese-shell > .system-sidebar .system-nav__item, .system-frame > .system-sidebar .system-nav__item { line-height: 1.2; display: inline-flex; align-items: center; }
@media (min-width: 1200px) and (max-width: 1499px) {
  /* menu em segunda linha: os botões descem para a altura da logo */
  .tema-slot { top: 49px !important; }
}

/* Corta o cinza que sobrava em volta da logo: o desenho da logo ocupa só o meio da imagem, então mostramos só esse trecho */
.anamnese-shell > .system-sidebar .brand-mark, .system-frame > .system-sidebar .brand-mark {
  transform: none; height: auto; aspect-ratio: 1.927; object-fit: cover; object-position: 50% 68.6%;
}
@media (min-width: 1200px) and (max-width: 1499px) { .tema-slot { top: 33px !important; } }

/* Logo um pouco mais baixa, alinhada com o corpo do texto do menu (o desenho tem o "M" alto e a palavra "Paiva" mais embaixo) */
.anamnese-shell > .system-sidebar .brand-mark, .system-frame > .system-sidebar .brand-mark { position: relative; top: 5px; }
@media (min-width: 1500px) { .anamnese-shell > .system-sidebar, .system-frame > .system-sidebar { padding-bottom: 14px; } }

/* Menu e botões do canto na mesma linha do corpo da logo (a logo está 5px mais baixa) */
@media (min-width: 1500px) {
  .anamnese-shell > .system-sidebar .system-nav, .system-frame > .system-sidebar .system-nav { position: relative; top: 3px; }
  .tema-slot { transform: translateY(calc(-50% + 1px)); }
}

/* ===== Barra do topo: logo, menu e botões SEMPRE na mesma linha (a partir de 1100px). O tamanho encolhe conforme a largura da tela ===== */
@media (min-width: 1100px) {
  .anamnese-shell > .system-sidebar, .system-frame > .system-sidebar {
    flex-wrap: nowrap !important; gap: 0 clamp(14px, 1.8vw, 28px) !important; padding: 10px 28px 14px !important; position: relative;
  }
  .anamnese-shell > .system-sidebar .system-sidebar__brand, .system-frame > .system-sidebar .system-sidebar__brand { flex: 1 1 0 !important; padding-left: 0 !important; left: 0 !important; order: 0 !important; }
  .anamnese-shell > .system-sidebar .brand-mark, .system-frame > .system-sidebar .brand-mark { width: clamp(110px, 10.3vw, 165px) !important; top: 5px; }
  .anamnese-shell > .system-sidebar .system-nav, .system-frame > .system-sidebar .system-nav {
    flex: 0 1 auto !important; flex-wrap: nowrap !important; justify-content: center !important; order: 0 !important; position: relative; top: 3px;
  }
  .anamnese-shell > .system-sidebar .system-nav__item, .system-frame > .system-sidebar .system-nav__item {
    font-size: clamp(11px, 1vw, 15px) !important; padding: 10px clamp(6px, 0.73vw, 11px) !important;
  }
  .anamnese-shell > .system-sidebar::after, .system-frame > .system-sidebar::after { display: block !important; content: ''; flex: 1 1 0 !important; }
  .tema-slot { position: absolute; right: clamp(14px, 1.8vw, 28px) !important; top: 50% !important; transform: translateY(calc(-50% + 1px)) !important; }
}
@media (min-width: 1000px) and (max-width: 1099px) {
  .tema-slot { top: 33px !important; }
}

/* A logo leva para a página inicial (Agenda) */
.brand-link { display: inline-flex; line-height: 0; }

.lead-del-col { text-align: right; }
.lead-del { font: inherit; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(190,70,70,.45); background: transparent; color: #b04444; cursor: pointer; white-space: nowrap; }
.lead-del:hover { background: rgba(190,70,70,.1); }
html[data-theme="escuro"] .lead-del { color: #e58b8b; border-color: rgba(229,139,139,.5); }

/* Respostas "Sim" da Ficha de Anamnese em rosa forte */
.anamnese-resposta .lead-pill.lead-pill--sim,
html[data-theme] .anamnese-resposta .lead-pill.lead-pill--sim { background: #d9678a; color: #fff; }
.anamnese-resposta.anamnese-resposta--sim,
html[data-theme] .anamnese-resposta.anamnese-resposta--sim { background: #fbe1e9; border-color: #efb1c3; }
.anamnese-resposta.anamnese-resposta--sim > span:first-child,
html[data-theme] .anamnese-resposta.anamnese-resposta--sim > span:first-child { color: #a8445f; font-weight: 700; }
html[data-theme="escuro"] .anamnese-resposta .lead-pill.lead-pill--sim { background: #d9678a; color: #fff; }
html[data-theme="escuro"] .anamnese-resposta.anamnese-resposta--sim { background: rgba(217,103,138,.22); border-color: rgba(217,103,138,.55); }
html[data-theme="escuro"] .anamnese-resposta.anamnese-resposta--sim > span:first-child { color: #f5b6c8; }

/* Meses da Planilha: arrastar para reordenar */
.fin-month { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.fin-month[data-m]:not([data-m="ano"]) { cursor: grab; }
.fin-months { position: relative; }
.fin-month.is-vaga { opacity: .35; border-style: dashed; border-color: #d58a9d; box-shadow: none; }
.fin-month--solto { position: fixed; z-index: 120; margin: 0; pointer-events: none; cursor: grabbing; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--ink-strong, #463b3b); border-color: #d58a9d;
  transform: scale(1.08) rotate(-2deg); box-shadow: 0 14px 30px rgba(45,35,37,.25); }
.fin-month--solto.is-pousando { transform: none; box-shadow: 0 4px 10px rgba(45,35,37,.12); }
html[data-theme="escuro"] .fin-month--solto { background: #3a3033; color: #f3ebec; }
body.fin-arrastando, body.fin-arrastando * { cursor: grabbing !important; }

/* Uma linha de meses por ano (o ano mais novo em cima) */
.fin-months { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 24px; overflow: visible; padding-bottom: 0; }
.fin-monthrow { position: relative; display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }

/* Botão "Novo ano" (acima da linha do ano mais novo) */
.fin-newyear { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px 7px 9px; border-radius: 999px; border: 1.5px solid #d58a9d; background: #fff; color: #b8627c; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; transition: background .15s, color .15s; }
.fin-newyear svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.fin-newyear:hover { background: #d58a9d; color: #fff; }
html[data-theme="escuro"] .fin-newyear { background: transparent; color: #f5b6c8; }
html[data-theme="escuro"] .fin-newyear:hover { background: #d58a9d; color: #fff; }

/* × para excluir o ano, no canto do botão "Ano" */
.fin-yearpill { position: relative; flex: none; display: inline-flex; }
.fin-yeardel { position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; padding: 0; border-radius: 50%; border: 1px solid rgba(126,98,105,.25); background: #fff; color: #8a7a7e; font: inherit; font-size: 14px; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 6px rgba(45,35,37,.12); z-index: 2; }
.fin-yeardel:hover { background: #c0392b; border-color: #c0392b; color: #fff; }
html[data-theme="escuro"] .fin-yeardel { background: #3a3033; color: #d8c9cd; border-color: rgba(255,255,255,.2); }
.fin-monthrow { padding-top: 8px; padding-right: 8px; }

/* Linha dividindo os anos, com mais espaço */
.fin-months { gap: 22px; }
.fin-monthrow + .fin-monthrow { margin-top: 8px; padding-top: 30px; border-top: 1px solid rgba(126,98,105,.22); }
html[data-theme="escuro"] .fin-monthrow + .fin-monthrow { border-top-color: rgba(255,255,255,.16); }

/* Botão "M" com o menu Sair */
.conta-wrap { position: relative; display: inline-flex; flex: none; }
.conta-wrap .user-pill { cursor: pointer; transition: box-shadow .15s; }
.conta-wrap .user-pill:hover, .conta-wrap .user-pill[aria-expanded="true"] { box-shadow: 0 0 0 3px rgba(213,138,157,.35); }
.conta-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 300; min-width: 150px; padding: 6px; border-radius: 14px; background: #fff; border: 1px solid rgba(126,98,105,.14); box-shadow: 0 16px 36px rgba(45,35,37,.18); }
.conta-menu[hidden] { display: none; }
.conta-menu__sair { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: #463b3b; cursor: pointer; text-align: left; }
.conta-menu__sair svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.conta-menu__sair:hover { background: #fbe9ee; color: #b04466; }
html[data-theme="escuro"] .conta-menu { background: #2a2224; border-color: rgba(255,255,255,.12); }
html[data-theme="escuro"] .conta-menu__sair { color: #f3ebec; }
html[data-theme="escuro"] .conta-menu__sair:hover { background: rgba(217,103,138,.25); color: #fff; }

/* Olho em cada bloco colorido da Planilha: esconde/mostra o valor daquele bloco */
.stat-eye { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.22); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .15s; }
.stat-eye:hover { background: rgba(255,255,255,.38); }
.stat-eye svg { position: absolute; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.stat-eye .stat-eye__off { opacity: 0; }
.stat-eye[aria-pressed="true"] .stat-eye__open { opacity: 0; }
.stat-eye[aria-pressed="true"] .stat-eye__off { opacity: 1; }
/* olho fechado: só o texto do valor some; o bloco colorido continua igual */
.stat-card.is-oculto .stat-card__amount, .stat-card.is-oculto .stat-card__days.tem-valor { visibility: hidden; }

/* Botão "Ano" com seta: abre a lista dos anos criados */
.fin-yearbtn { padding-right: 38px !important; }
.fin-yeararrow { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; z-index: 1; }
.fin-yeararrow:hover { background: rgba(213,138,157,.18); }
.fin-yeararrow svg { width: 16px; height: 16px; fill: none; stroke: #8a5a68; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fin-yearlist { position: fixed; z-index: 95; min-width: 170px; padding: 6px; border-radius: 16px; background: #fff; border: 1px solid rgba(126,98,105,.14); box-shadow: 0 18px 40px rgba(45,35,37,.18); }
.fin-yearlist[hidden] { display: none; }
.fin-yearlist__title { display: block; padding: 6px 12px 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--grey-dark, #7a6d70); }
.fin-yearlist button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: #463b3b; cursor: pointer; text-align: left; }
.fin-yearlist button:hover { background: #fbe9ee; }
.fin-yearlist button.is-on { color: #b04466; }
.fin-yearlist svg, .fin-yearlist i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
html[data-theme="escuro"] .fin-yearlist { background: #2a2224; border-color: rgba(255,255,255,.12); }
html[data-theme="escuro"] .fin-yearlist button { color: #f3ebec; }
html[data-theme="escuro"] .fin-yearlist button:hover { background: rgba(217,103,138,.25); }
html[data-theme="escuro"] .fin-yeararrow svg { stroke: #f5b6c8; }

/* Linha "Total:" no fim de cada mês (soma das colunas K e L) */
.fin-table tbody tr.fin-total > td { background: #f6ecee; font-weight: 700; color: var(--ink-strong, #463b3b); border-top: 1.5px solid rgba(70,59,59,.3); }
.fin-table tbody tr.fin-total > td.fin-total__label { text-align: right; padding-right: 12px; }
.fin-table tbody tr.fin-total > td.fin-total__l { color: #b8405a; }
html[data-theme="escuro"] .fin-table tbody tr.fin-total > td { background: #33292c; color: #f3ebec; }
html[data-theme="escuro"] .fin-table tbody tr.fin-total > td.fin-total__l { color: #f5a3b6; }

/* "Soma:" das células selecionadas (canto de baixo, à direita, como no Google Planilhas) */
.fin-somabar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 85; height: 46px; display: flex; align-items: center; justify-content: flex-end; padding: 0 22px; background: #f8f9fa; border-top: 1px solid rgba(60,64,67,.15); }
.fin-somabar[hidden] { display: none; }
.fin-soma { padding: 7px 14px; border-radius: 8px; background: #cdebd6; color: #1e4d2b; font-size: 14px; font-weight: 600; }
html[data-theme="escuro"] .fin-somabar { background: #231c1e; border-top-color: rgba(255,255,255,.12); }
html[data-theme="escuro"] .fin-soma { background: #2f5a3b; color: #e3f5e8; }

/* Toque (celular/iPad): segurar o dedo numa célula não seleciona o texto nem abre o menu do sistema */
@media (hover: none) {
  .fin-table td[data-f]:not([contenteditable]) { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
}

/* Cursor em cima das células da Planilha: a seta normal do mouse no lugar do "+" */
.fin-table td[data-f] { cursor: default; }
.fin-table td[data-f][contenteditable] { cursor: text; }

/* Célula selecionada continua com o fundo da seleção mesmo com o mouse em cima (senão parece que ficou de fora da soma) */
.fin-table td.fin-sel[data-f]:hover { box-shadow: inset 0 0 0 1px rgba(183,96,111,0.35), inset 0 0 0 9999px rgba(217,143,156,0.32); }

/* Seleção da Planilha: rosa firme de ponta a ponta (fica rosa até em cima das linhas verdes/amarelas) */
.fin-table td.fin-sel, .fin-table td.fin-sel[data-f]:hover,
html[data-theme] .fin-table td.fin-sel, html[data-theme] .fin-table td.fin-sel[data-f]:hover { box-shadow: inset 0 0 0 9999px rgba(246,184,202,0.94); color: #5a2334; }
html[data-theme] .fin-table td.fin-anchor, .fin-table td.fin-anchor { outline-color: #b7606f; }

/* Valor do gráfico (Faturamento anual / de cada mês) com a mesma fonte do título "Faturamento Mensal:" */
.fin-chart-card .panel-card__head #fin-year-total { font-size: 15px; font-weight: 700; }

/* Aba ativa da Ficha de Anamnese: rosa do site (antes era branca e destoava das outras) */
.toolbar-tab.is-active { background: linear-gradient(135deg, #e0a3ad 0%, #c47790 100%); color: #fff; box-shadow: 0 6px 14px rgba(196,119,144,0.25); }

/* Janela "Alterar senha" (menu do M) */
.conta-senha { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(47,39,40,.38); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.conta-senha__card { width: min(400px, 100%); padding: 24px; border-radius: 22px; background: #fff; box-shadow: 0 30px 80px rgba(45,35,37,.25); color: #463b3b; display: flex; flex-direction: column; gap: 12px; }
.conta-senha__card h2 { margin: 0 0 4px; font-size: 20px; }
.conta-senha__card label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.conta-senha__card label small { font-weight: 400; color: var(--grey-dark, #7a6d70); }
.conta-senha__card input[type="email"], .conta-senha__card input[type="password"], .conta-senha__card input[type="text"] { font: inherit; font-size: 15px; font-weight: 400; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(126,98,105,.25); background: #fff; color: inherit; }
.conta-senha__card input:focus { outline: none; border-color: #d58a9d; box-shadow: 0 0 0 3px rgba(213,138,157,.2); }
.conta-senha__ver { flex-direction: row !important; align-items: center; font-weight: 400 !important; }
.conta-senha__msg { margin: 0; min-height: 18px; font-size: 13px; color: #b3413a; }
.conta-senha__msg.is-ok { color: #1e6b3a; }
.conta-senha__btns { display: flex; justify-content: flex-end; gap: 8px; }
.conta-senha__btns button { font: inherit; font-size: 14px; font-weight: 600; padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(126,98,105,.2); background: #fff; color: inherit; cursor: pointer; }
.conta-senha__btns button.is-pri { background: #d58a9d; border-color: #d58a9d; color: #fff; }
.conta-senha__btns button:disabled { opacity: .6; cursor: default; }
html[data-theme="escuro"] .conta-senha__card { background: #2a2224; color: #f3ebec; }
html[data-theme="escuro"] .conta-senha__card input[type="email"], html[data-theme="escuro"] .conta-senha__card input[type="password"], html[data-theme="escuro"] .conta-senha__card input[type="text"] { background: #3a3033; border-color: rgba(255,255,255,.18); }
html[data-theme="escuro"] .conta-senha__btns button:not(.is-pri) { background: #3a3033; border-color: rgba(255,255,255,.18); }
