:root {
  --claro-red: #da291c;
  --claro-red-deep: #7a0f12;
  --claro-red-dark: #4b0e0e;
  --claro-bg: #f7f2f0;
  --claro-ink: #1f1010;
  --claro-muted: #6b4d4d;
  --font-display: "Outfit", "Segoe UI", sans-serif;
  --font-body: "Montserrat", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  color: var(--claro-ink);
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(218, 41, 28, 0.18), transparent 60%),
    radial-gradient(900px 400px at 100% 0%, rgba(75, 14, 14, 0.12), transparent 55%),
    var(--claro-bg);
}

a { color: inherit; text-decoration: none; }

h1, h2, h3, .font-display { font-family: var(--font-display); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--claro-red-deep);
  color: #fff;
  box-shadow: 0 8px 24px rgba(75, 14, 14, 0.25);
}

.site-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}

.brand strong { display: block; font-size: 1.1rem; }
.brand span { display: block; font-size: 0.75rem; opacity: 0.75; }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.nav-links a {
  padding: 0.45rem 0.8rem;
  border-radius: 0.65rem;
  font-size: 0.9rem;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.18);
}

.user-box { text-align: right; font-size: 0.85rem; }
.user-box small { opacity: 0.75; }

.btn, button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  cursor: pointer;
  border-radius: 0.85rem;
  padding: 0.7rem 1.15rem;
  font-weight: 600;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--claro-red), var(--claro-red-deep));
  color: #fff;
  box-shadow: 0 8px 20px rgba(218, 41, 28, 0.25);
}

.btn-primary:hover { filter: brightness(1.05); }

.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.app-header .btn-ghost { color: #fff; }
.container .btn-ghost {
  background: #fff;
  color: var(--claro-red-deep);
  border: 1px solid rgba(122, 15, 18, 0.22);
}

.btn-outline {
  background: #fff;
  color: var(--claro-red-deep);
  border: 1px solid rgba(122, 15, 18, 0.25);
}

.btn-danger {
  background: #9b1c1c;
  color: #fff;
  border: 1px solid #7f1d1d;
}
.btn-danger:hover { filter: brightness(1.08); }

.hierarchy-hint {
  margin: 0.25rem 0 0.5rem;
  font-size: 0.8rem;
}
.hierarchy-check {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.75rem;
  font-weight: 600;
}
.equipe-role-tabs { margin-top: -0.35rem; margin-bottom: 1.1rem; }
.folha-person-actions form { margin: 0; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3.5rem;
}
body.app-shell .container {
  padding-top: 1.15rem;
}

.card {
  background: #fff;
  border: 1px solid rgba(122, 15, 18, 0.1);
  border-radius: 1.15rem;
  padding: 1.4rem;
}

.card > h2:first-child,
.card > h3:first-child { margin-top: 0; }

.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .user-box { display: none; }
}

.stat {
  background: linear-gradient(150deg, #8b1218, #4b0e0e 75%);
  color: #fff;
  border-radius: 1.1rem;
  padding: 1.25rem;
}

.stat p { margin: 0; opacity: 0.78; font-size: 0.85rem; font-weight: 600; }
.stat strong { display: block; margin-top: 0.45rem; font-size: 1.9rem; line-height: 1.05; font-family: var(--font-display); }

label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.85rem; }
input, select, textarea {
  width: 100%;
  margin-top: 0.4rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(75, 14, 14, 0.15);
  padding: 0.7rem 0.9rem;
  font: inherit;
  background: #fff;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--claro-red);
  box-shadow: 0 0 0 3px rgba(218, 41, 28, 0.15);
}

textarea { min-height: 90px; resize: vertical; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th, td {
  text-align: left;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

th { color: var(--claro-muted); font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }

.flash {
  border-radius: 0.9rem;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
}

.flash-ok { background: #e8f8ef; color: #146c43; }
.flash-err { background: #fde8e8; color: #9b1c1c; }

.product-pick {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-pick label {
  margin: 0;
  cursor: pointer;
}

.product-pick input { display: none; }

.product-pick span {
  display: block;
  border-radius: 1rem;
  padding: 0.9rem;
  background: #fff;
  border: 1px solid rgba(122,15,18,0.1);
}

.product-pick input:checked + span {
  background: var(--claro-red);
  color: #fff;
  border-color: transparent;
}

@media (max-width: 700px) {
  .product-pick { grid-template-columns: 1fr; }
}

.shortcut {
  display: block;
  transition: transform .15s ease;
}

.shortcut:hover { transform: translateY(-2px); }

.welcome {
  border-left: 4px solid var(--claro-red);
}

.muted { color: var(--claro-muted); font-size: 0.92rem; }

/* Login */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(circle at 20% 20%, #9a1a1f, transparent 45%),
    radial-gradient(circle at 80% 0%, #da291c55, transparent 40%),
    linear-gradient(160deg, #4b0e0e, #7a0f12 45%, #2a0909);
  color: #fff;
}

.login-wrap {
  width: min(1100px, 100%);
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

@media (max-width: 860px) {
  .login-wrap { grid-template-columns: 1fr; }
}

.login-card {
  background: rgba(255,255,255,0.96);
  color: var(--claro-ink);
  border-radius: 1.5rem;
  padding: 1.6rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.login-hero img {
  width: 96px;
  height: 96px;
  border-radius: 1.2rem;
  margin-bottom: 1rem;
}

.login-hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
}

.login-hero h1 span {
  display: block;
  font-size: 0.55em;
  opacity: 0.8;
  font-weight: 600;
}

/* Clara assistant */
.clara-root {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  width: min(360px, calc(100vw - 2rem));
  pointer-events: none;
}
.clara-btn {
  pointer-events: auto;
  position: relative;
  right: auto;
  bottom: auto;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 0;
  background: var(--claro-red);
  color: #fff;
  box-shadow: 0 12px 30px rgba(122,15,18,0.35);
  cursor: pointer;
  animation: bounce 2.2s ease-in-out 2;
}
.landing-commercial .clara-btn {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: var(--claro-red);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.clara-panel {
  pointer-events: auto;
  position: relative;
  right: auto;
  bottom: auto;
  width: 100%;
  max-width: 360px;
  max-height: calc(100vh - 7.5rem);
  background: #fff;
  color: var(--claro-ink);
  border-radius: 1.2rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  overflow: hidden;
  display: none;
  flex-direction: column;
  order: -1;
}
.clara-panel.open,
.clara-panel.is-open {
  display: flex !important;
}

.clara-head {
  flex: 0 0 auto;
  background: var(--claro-red-deep);
  color: #fff;
  padding: 0.9rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.clara-status { font-size: 0.75rem; opacity: .75; }

.clara-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
  padding: 0.85rem;
  gap: 0.7rem;
  background: #fff;
}
.clara-thread {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 120px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 0.15rem;
}
.clara-bubble {
  max-width: 92%;
  padding: 0.75rem 0.85rem;
  font-size: 0.9rem;
  line-height: 1.45;
}
.clara-bubble-clara {
  align-self: flex-start;
  background: #f6f1ef;
  border-radius: 1rem 1rem 1rem 0.25rem;
}
.clara-bubble-user {
  align-self: flex-end;
  background: var(--claro-red);
  color: #fff;
  border-radius: 1rem 1rem 0.25rem 1rem;
  font-weight: 600;
}
.clara-download {
  display: block;
  margin-top: 0.7rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.75rem;
  background: var(--claro-red);
  color: #fff !important;
  font-weight: 700;
  text-align: center;
}
.clara-composer {
  display: flex;
  gap: 0.45rem;
  flex: 0 0 auto;
}
.clara-composer input {
  flex: 1;
  min-width: 0;
  margin: 0;
  border-radius: 0.8rem;
  padding: 0.65rem 0.75rem;
}
.clara-composer button {
  width: auto;
  border: 0;
  border-radius: 0.8rem;
  padding: 0.65rem 0.9rem;
  background: var(--claro-red-deep);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.clara-pulse { animation: bounce 1.4s ease-in-out infinite; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.clara-options {
  display: grid;
  gap: 0.45rem;
}

.clara-options button {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(218,41,28,0.2);
  background: #fff;
  color: var(--claro-red-deep);
  border-radius: 0.8rem;
  padding: 0.7rem 0.8rem;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.clara-options button:hover {
  background: var(--claro-red);
  color: #fff;
}

/* TV */
.tv-page {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 20%, #da291c55, transparent 40%),
    radial-gradient(circle at 85% 10%, #7a0f1288, transparent 35%),
    linear-gradient(160deg, #1a0505, #4b0e0e 50%, #120303);
  color: #fff;
  font-family: var(--font-body);
}

.tv-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tv-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.tv-header img {
  width: 72px;
  height: 72px;
  border-radius: 1rem;
}

.tv-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.4fr 1fr;
  flex: 1;
}

@media (max-width: 980px) {
  .tv-grid { grid-template-columns: 1fr; }
}

.tv-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.4rem;
  padding: 1.2rem;
  backdrop-filter: blur(6px);
}

.tv-stat strong {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-family: var(--font-display);
}

.tv-highlight {
  background: linear-gradient(135deg, #da291c, #7a0f12);
}

.tv-ticker-wrap {
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0,0,0,0.3);
  padding: 0.75rem 0;
}

.tv-ticker {
  display: inline-block;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  opacity: 0.85;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  height: 180px;
  padding-top: 0.5rem;
}

.chart-bars .bar {
  flex: 1;
  background: linear-gradient(180deg, #da291c, #7a0f12);
  border-radius: 0.5rem 0.5rem 0 0;
  min-width: 18px;
  position: relative;
}

.chart-bars .bar span {
  position: absolute;
  bottom: -1.4rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: var(--claro-muted);
}

.pie-legend {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.pie-legend div {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.4rem;
}

.progress-track {
  height: 10px;
  border-radius: 999px;
  background: #efe4e2;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--claro-red), var(--claro-red-deep));
}

/* Badges / tabs / conferência */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}
.badge-ok { background: #e6f6ec; color: #146c43; }
.badge-warn { background: #fff4e5; color: #9a5b00; }
.badge-danger { background: #fde8e8; color: #9b1c1c; }
.badge-info { background: #e8f1fb; color: #1d4f91; }

.tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tab {
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  background: #fff;
  border: 1px solid rgba(122,15,18,.12);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--claro-red-deep);
}
.tab.active {
  background: var(--claro-red);
  color: #fff;
  border-color: transparent;
}

.conf-row {
  display: block;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,.05);
  transition: background .15s ease;
}
.conf-row:hover { background: #faf5f4; }
.conf-row.active {
  background: #f8e9e7;
  border-left: 3px solid var(--claro-red);
}

/* ===== Retorno Claro ===== */
.retorno-page {
  --retorno-ink: #2a1212;
  --retorno-muted: #7a5a58;
  --retorno-line: rgba(122, 15, 18, 0.12);
  --retorno-sand: #f7f0ee;
  --retorno-panel: #fffdfb;
  color: var(--retorno-ink);
}
.retorno-hero {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 1.25rem;
  align-items: end;
  margin-bottom: 1.25rem;
  padding: 1.4rem 1.5rem;
  border-radius: 1.25rem;
  background:
    radial-gradient(1200px 280px at 10% -40%, rgba(218, 41, 28, 0.16), transparent 55%),
    linear-gradient(135deg, #fff8f6 0%, #f6efe8 52%, #f3e4e1 100%);
  border: 1px solid var(--retorno-line);
  color: var(--retorno-ink);
}
.retorno-hero h1 {
  margin: 0.15rem 0 0.4rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--claro-red-deep);
}
.retorno-hero-copy p { margin: 0; max-width: 46rem; color: var(--retorno-muted); }
.retorno-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--claro-red);
}
.clara-explica-btn {
  gap: 0.45rem;
}
.clara-explica-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.retorno-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}
.retorno-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(122,15,18,.25);
  background: #fff;
  font-weight: 600;
  cursor: pointer;
  color: var(--claro-red-deep);
}
.retorno-upload-btn input { display: none; }

.retorno-upload { margin-bottom: 1.1rem; }
.retorno-upload-form {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: end;
}
.retorno-upload-form h2 { margin: 0 0 0.25rem; color: var(--claro-red-deep); }
.retorno-upload-fields {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}

.retorno-history { margin-bottom: 1.25rem; }
.retorno-history h2 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  color: var(--claro-red-deep);
}
.retorno-history-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(140px, 1fr);
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}
.retorno-history-card {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  background: var(--retorno-panel);
  border: 1px solid var(--retorno-line);
  text-decoration: none;
  color: inherit;
  min-width: 140px;
  transition: transform .15s ease, border-color .15s ease;
}
.retorno-history-card:hover { transform: translateY(-2px); border-color: rgba(218,41,28,.35); }
.retorno-history-card.is-active {
  border-color: var(--claro-red);
  background: #fff5f3;
}
.retorno-history-card strong { color: var(--claro-red-deep); }
.retorno-history-card span,
.retorno-history-card em,
.retorno-history-card small {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--retorno-muted);
}

.retorno-sim-history {
  margin-top: 1.5rem;
  margin-bottom: 1.25rem;
}
.retorno-sim-history > h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  color: var(--claro-red-deep);
}
.retorno-sim-month {
  margin-top: 1rem;
}
.retorno-sim-month h3 {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  font-weight: 700;
}
.retorno-sim-month h3 small {
  font-weight: 500;
  color: var(--retorno-muted);
  margin-left: 0.4rem;
}
.retorno-history-track {
  grid-auto-columns: minmax(170px, 1fr);
}

.retorno-metrics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}
.retorno-plano-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
}
.retorno-panel .retorno-plano-bar,
.retorno-collab .retorno-plano-bar,
.retorno-fold-body .retorno-plano-bar,
.retorno-table-wrap .retorno-plano-bar {
  margin: 0 0 0.75rem;
}
.retorno-plano-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--retorno-muted);
  margin-right: 0.25rem;
}
.retorno-plano-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  color: inherit;
  border: 1px solid var(--retorno-line);
  background: #fff;
}
.retorno-plano-chip em {
  font-style: normal;
  font-weight: 600;
  opacity: .65;
  font-size: 0.72rem;
}
.retorno-plano-chip:hover { border-color: rgba(218,41,28,.4); }
.retorno-plano-chip.is-on {
  background: var(--claro-red);
  color: #fff;
  border-color: var(--claro-red);
}
.retorno-metric {
  padding: 1.05rem 1.1rem;
  border-radius: 1.1rem;
  background: #fff;
  color: var(--retorno-ink);
  cursor: pointer;
  border: 1px solid var(--retorno-line);
  border-top: 3px solid var(--claro-red);
  box-shadow: 0 10px 24px rgba(75, 14, 14, 0.06);
  min-height: 118px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.retorno-metric:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(75, 14, 14, 0.1);
}
.retorno-metric p {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 700;
  color: var(--claro-red);
  opacity: 1;
}
.retorno-metric strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.15;
  color: var(--claro-red-deep);
}
.retorno-metric span,
.retorno-metric small {
  font-size: 0.86rem;
  color: var(--retorno-muted);
  opacity: 1;
}
.retorno-metric-mkt {
  background: #fff8f6;
  border-top-color: var(--claro-red-deep);
}
.retorno-metric-delta {
  background: #fff;
}
.retorno-metric-estorno {
  background: #fff5f4;
  border-top-color: #9b1c1c;
}
.retorno-metric a {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: inherit;
  height: 100%;
}
.retorno-metric.is-on,
.retorno-metric-estorno.is-on {
  box-shadow: 0 0 0 2px #9b1c1c;
}

.retorno-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}
.retorno-panel {
  background: var(--retorno-panel);
  border: 1px solid var(--retorno-line);
  border-radius: 1.2rem;
  padding: 1.1rem 1.15rem;
}
.retorno-panel-mkt { background: linear-gradient(180deg, #fff8f5, #fff); }
.retorno-panel-delta { background: linear-gradient(180deg, #f8f4f6, #fff); }
.retorno-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: start;
  margin-bottom: 0.55rem;
}
.retorno-panel-head h2 {
  margin: 0.1rem 0 0;
  color: var(--claro-red-deep);
  font-size: 1.35rem;
}
.retorno-panel-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.retorno-panel-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
  margin-top: 0.85rem;
}
.retorno-panel-stats div {
  background: var(--retorno-sand);
  border-radius: 0.85rem;
  padding: 0.7rem 0.75rem;
}
.retorno-panel-stats span {
  display: block;
  font-size: 0.72rem;
  color: var(--retorno-muted);
  margin-bottom: 0.2rem;
}
.retorno-panel-stats strong { font-size: 1rem; }
.retorno-stat-estorno { background: #fdeeee !important; }
.retorno-stat-estorno small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: #9b1c1c;
}
.text-warn { color: #9b1c1c; }
.retorno-collab-table th.col-estorno,
.retorno-collab-table td.col-estorno {
  background: #fdeeee;
  color: #9b1c1c;
}
.retorno-collab-table th.col-estorno { font-weight: 800; }
.retorno-collab-table tr.has-estorno td.col-estorno a { color: #9b1c1c; }
.retorno-table tbody tr.is-estorno td { background: #fdeeee; }
.retorno-table tbody tr.is-estorno.is-credit td { background: #f4fbf6; }
.retorno-table .col-clara { width: 2.6rem; text-align: center; }

.retorno-faixas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}
.retorno-faixa {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease;
}
.retorno-faixa:hover { transform: translateY(-1px); }
.retorno-faixa.is-pos { background: #e8f6ee; color: #146c43; }
.retorno-faixa.is-neg { background: #fde8e8; color: #9b1c1c; }
.retorno-faixa.is-on {
  box-shadow: 0 0 0 2px currentColor;
  transform: translateY(-1px);
}
.retorno-faixa-hint { margin: 0.65rem 0 0; font-size: 0.82rem; }
.retorno-faixa-detail {
  margin-top: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 0.85rem;
  align-items: start;
}
.retorno-faixa-detail.is-pos {
  background: #eef8f2;
  border: 1px solid #b7e0c6;
}
.retorno-faixa-detail.is-neg {
  background: #fdeeee;
  border: 1px solid #f0b8b8;
}
.retorno-faixa-detail h3 {
  margin: 0.15rem 0 0.35rem;
  font-size: 1.05rem;
}
.retorno-faixa-detail p { margin: 0; }
.retorno-faixa-fatores { margin-top: 0.45rem !important; font-size: 0.86rem; }
.retorno-faixa-fatores em {
  font-style: normal;
  font-weight: 700;
  margin-right: 0.45rem;
}

.retorno-title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}
.retorno-stat-label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.th-with-clara {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem;
}
.retorno-collab-table th:first-child .th-with-clara { justify-content: flex-start; }
.retorno-fam-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.retorno-collab-table tr.is-on td { background: rgba(218, 41, 28, 0.08); }

.clara-hint {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #1a0d0d;
  cursor: help;
  flex-shrink: 0;
  z-index: 2;
}
.clara-hint-face { display: block; }
.clara-hint-bubble {
  display: none;
  position: fixed;
  min-width: 220px;
  max-width: 280px;
  padding: 0.65rem 0.75rem;
  border-radius: 0.85rem;
  background: #1a0d0d;
  color: #ffe8e4;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
  z-index: 90;
  text-align: left;
  pointer-events: none;
}
.clara-hint-bubble strong {
  display: block;
  color: #ffb4a8;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 0.2rem;
}
.clara-hint:hover .clara-hint-bubble,
.clara-hint:focus .clara-hint-bubble { display: block; }

.retorno-fold {
  margin-bottom: 1.1rem;
  padding: 0;
}
.retorno-fold > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
}
.retorno-fold > summary::-webkit-details-marker { display: none; }
.retorno-fold > summary .retorno-kicker {
  display: block;
  margin-bottom: 0.15rem;
}
.retorno-fold > summary .font-display {
  display: block;
  font-size: 1.2rem;
  color: var(--claro-red-deep);
}
.retorno-fold > summary small {
  color: var(--retorno-muted);
  font-size: 0.8rem;
}
.retorno-fold-body { padding: 0 1.15rem 1.15rem; }

.retorno-aace-card { overflow: visible; }
.retorno-aace-card .retorno-collab-scroll { overflow: auto; }

.retorno-people {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 360px;
  overflow: auto;
}
.retorno-person {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.85rem;
  background: #fff;
  border: 1px solid var(--retorno-line);
  text-decoration: none;
  color: inherit;
}
.retorno-person:hover { border-color: rgba(218,41,28,.35); background: #fff8f6; }
.retorno-person strong { display: block; color: var(--claro-red-deep); }
.retorno-person span { font-size: 0.8rem; color: var(--retorno-muted); }
.retorno-person-tags {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  font-style: normal;
}
.retorno-person-tags em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  color: #9a5b00;
  background: #fff4e5;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

.retorno-map-form {
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--retorno-line);
}
.retorno-map-fields {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.retorno-map-fields input,
.retorno-map-fields select {
  min-width: 120px;
  flex: 1;
}

.retorno-table-wrap { padding: 1.1rem; }
.retorno-table-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: end;
  margin-bottom: 0.85rem;
}
.retorno-table-head h2 { margin: 0; color: var(--claro-red-deep); }
.retorno-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.retorno-filters input,
.retorno-filters select {
  min-width: 110px;
}
.retorno-table-scroll {
  overflow: auto;
  max-height: 70vh;
  border-radius: 0.85rem;
  border: 1px solid var(--retorno-line);
}
.retorno-table {
  margin: 0;
  width: 100%;
  min-width: 920px;
  table-layout: fixed;
}
.retorno-table thead th {
  position: sticky;
  top: 0;
  background: #f8f1ef;
  z-index: 1;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.retorno-table th,
.retorno-table td {
  vertical-align: top;
  padding: 0.65rem 0.55rem;
  overflow: hidden;
}
.retorno-table tbody tr:nth-child(even) { background: #fcf8f7; }
.retorno-table .col-evt { width: 110px; }
.retorno-table .col-cli { width: 22%; }
.retorno-table .col-cot { width: 100px; }
.retorno-table .col-num { width: 110px; }
.retorno-table .col-mkt { width: 100px; }
.retorno-table .col-delta { width: 120px; }
.retorno-table .col-pes { width: 130px; }
.retorno-table .col-cod { width: 72px; }
.retorno-table .cell-title {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.retorno-table .cell-sub {
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: var(--retorno-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.retorno-table code {
  font-size: 0.78rem;
  word-break: break-all;
}
.retorno-table .badge {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.retorno-save-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
  padding: 0.95rem 1.1rem;
  border-radius: 1rem;
  background: #fff4e5;
  border: 1px solid rgba(154, 91, 0, 0.25);
}
.retorno-save-bar strong {
  display: block;
  color: #9a5b00;
}
.retorno-save-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.retorno-collab {
  margin-bottom: 1.1rem;
  padding: 1.1rem 1.15rem;
}
.retorno-collab .font-display { color: var(--claro-red-deep); margin: 0.1rem 0 0; }
.retorno-collab-scroll {
  overflow: auto;
  margin-top: 0.85rem;
  border: 1px solid var(--retorno-line);
  border-radius: 0.85rem;
  max-height: 480px;
}
.retorno-collab-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  min-width: 720px;
}
.retorno-collab-table th,
.retorno-collab-table td {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--retorno-line);
  text-align: left;
  vertical-align: middle;
}
.retorno-collab-table th {
  position: sticky;
  top: 0;
  background: #f8f1ef;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--retorno-muted);
  z-index: 1;
}
.retorno-collab-table .num { text-align: right; white-space: nowrap; }
.retorno-collab-table tbody tr:hover { background: #fff8f6; }
.retorno-collab-table tfoot td {
  background: #f3e8e6;
  border-bottom: 0;
  font-size: 0.95rem;
}
.retorno-collab-table a { color: inherit; text-decoration: none; }
.retorno-collab-table a:hover strong { color: var(--claro-red); }
.text-receber { color: var(--claro-red-deep); }

@media (max-width: 980px) {
  .retorno-hero,
  .retorno-metrics,
  .retorno-split,
  .retorno-panel-stats { grid-template-columns: 1fr; }
  .retorno-hero-actions { justify-content: flex-start; }
}

.collab-missing-retorno a { color: inherit; font-weight: 700; text-decoration: underline; }
.collab-retorno-ok {
  margin-bottom: 1.1rem;
  padding: 0.85rem 1.05rem;
  border-radius: 1rem;
  background: #eef8f2;
  border: 1px solid #b7e0c6;
  color: #146c43;
  font-size: 0.92rem;
}
.collab-bars { display: flex; flex-direction: column; gap: 0.45rem; }
.collab-bar-row {
  display: grid;
  grid-template-columns: minmax(7.5rem, 28%) 1fr auto;
  gap: 0.65rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 0.2rem 0;
}
.collab-bar-name {
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--claro-red-deep);
}
.collab-bar-track {
  height: 10px;
  border-radius: 999px;
  background: #f3e8e6;
  overflow: hidden;
}
.collab-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--claro-red);
}
.collab-bar-row.is-estorno .collab-bar-fill { background: #9b1c1c; }
.collab-bar-row strong {
  font-size: 0.8rem;
  white-space: nowrap;
  color: var(--claro-red-deep);
}
.collab-bar-row.is-estorno strong { color: #9b1c1c; }
.retorno-panel-estorno { background: linear-gradient(180deg, #fff6f5, #fff); }
.dev-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.65rem 0 0.9rem;
}
.dev-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #ead4d0;
  background: #fff;
  color: var(--claro-red-deep);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
}
.dev-chip em {
  font-style: normal;
  color: #9b1c1c;
  font-weight: 800;
}
.dev-chip.is-on {
  background: var(--claro-red);
  border-color: var(--claro-red);
  color: #fff;
}
.dev-chip.is-on em { color: #ffe8e4; }
.dev-chip.is-credit { border-color: #b7e0c6; color: #146c43; }
.dev-chip.is-credit em { color: #146c43; }
.dev-chip.is-credit.is-on { background: #146c43; border-color: #146c43; color: #fff; }
.dev-chip.is-credit.is-on em { color: #e6f6ec; }
.dev-kind {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}
.dev-kind.is-neg { background: #fde8e8; color: #9b1c1c; }
.dev-kind.is-pos { background: #e6f6ec; color: #146c43; }
.dev-faixa {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border-radius: 0.4rem;
  background: #f3e8e6;
  color: var(--claro-red-deep);
  font-size: 0.75rem;
  font-weight: 700;
}
.dev-faixa.has-delta { background: #ffe8cc; color: #8a4b08; }
.dev-table-wrap { overflow-x: auto; }
.dev-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.dev-table th, .dev-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--retorno-line);
  text-align: left;
  vertical-align: top;
}
.dev-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--retorno-muted);
  white-space: nowrap;
}
.dev-table .num { text-align: right; white-space: nowrap; }
.dev-table .col-clara { width: 2.4rem; text-align: center; }
.dev-table tr.is-credit td { background: #f4fbf6; }
.dev-table tr.is-neg td { background: #fff7f6; }
.dev-table .cell-sub { color: var(--retorno-muted); font-size: 0.78rem; margin-top: 0.15rem; }
.collab-unmatched {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  columns: 2;
  gap: 1.5rem;
}
.collab-unmatched li { margin: 0.2rem 0; font-size: 0.88rem; }
.collab-mix {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.55rem;
  margin-bottom: 1.1rem;
}
.collab-mix > div {
  background: #f7f0ee;
  border-radius: 0.85rem;
  padding: 0.7rem 0.75rem;
}
.collab-mix span {
  display: block;
  font-size: 0.72rem;
  color: #7a5a58;
  margin-bottom: 0.2rem;
}
@media (max-width: 980px) {
  .collab-unmatched { columns: 1; }
  .collab-mix { grid-template-columns: repeat(2, 1fr); }
  .collab-bar-row { grid-template-columns: 1fr; gap: 0.2rem; }
}

.rc-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-bottom: 1.15rem;
}
.rc-chart-card {
  background: #fff;
  border: 1px solid var(--retorno-line);
  border-radius: 1.25rem;
  padding: 1.05rem 1.15rem 1.15rem;
  min-height: 280px;
}
.rc-chart-card.is-estorno {
  background: linear-gradient(180deg, #fff6f5, #fff);
  border-color: #f0d4d0;
}
.rc-chart-card h2 { font-size: 1.22rem; }
.rc-chart-empty { margin: 1.5rem 0 0; }
.rc-hbar { display: flex; flex-direction: column; gap: 0.42rem; }
.rc-hbar-row {
  display: grid;
  grid-template-columns: minmax(6.5rem, 30%) 1fr auto;
  gap: 0.55rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.rc-hbar-name {
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--claro-red-deep);
}
.rc-hbar-track {
  height: 11px;
  border-radius: 999px;
  background: #f3e8e6;
  overflow: hidden;
}
.rc-hbar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--claro-red);
}
.rc-hbar[data-tone="wine"] .rc-hbar-fill { background: #9b1c1c; }
.rc-hbar-row.is-neg .rc-hbar-fill { background: #9b1c1c; }
.rc-hbar-row.is-muted .rc-hbar-name { color: #7a5a58; }
.rc-hbar-row strong {
  font-size: 0.78rem;
  white-space: nowrap;
  color: var(--claro-red-deep);
}
.rc-vbar {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  height: 210px;
  padding-top: 0.4rem;
}
.rc-vbar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  min-width: 0;
}
.rc-vbar-shaft {
  flex: 1;
  width: 100%;
  max-width: 42px;
  background: #f3e8e6;
  border-radius: 0.55rem 0.55rem 0.2rem 0.2rem;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.rc-vbar-fill {
  width: 100%;
  background: var(--claro-red);
  border-radius: 0.45rem 0.45rem 0 0;
}
.rc-vbar-col em {
  margin-top: 0.35rem;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--claro-red-deep);
  text-align: center;
  line-height: 1.2;
}
.rc-vbar-col small { color: var(--retorno-muted); font-size: 0.7rem; }
.rc-donut {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  align-items: center;
  margin-top: 0.4rem;
}
.rc-donut svg { width: 140px; height: 140px; }
.rc-donut ul { list-style: none; margin: 0; padding: 0; }
.rc-donut li {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 0.45rem;
  align-items: center;
  margin: 0.28rem 0;
  font-size: 0.82rem;
}
.rc-donut i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: block;
}
@media (max-width: 980px) {
  .rc-charts { grid-template-columns: 1fr; }
  .rc-donut { grid-template-columns: 1fr; }
  .rc-hbar-row { grid-template-columns: 1fr; gap: 0.2rem; }
}

/* Simulador RC Telecom 2 */
.rc-simulator {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.15rem;
}
.rc-simulator > *,
.rc-simulator form { min-width: 0; }
.rc-simulator-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr);
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  border-radius: 1.35rem;
  color: #fff;
  background: linear-gradient(145deg, var(--claro-red-deep), var(--claro-red-dark));
}
.rc-simulator-hero > * { min-width: 0; }
.rc-simulator-hero h1 { margin: .2rem 0 .45rem; font-size: clamp(1.9rem, 4vw, 2.7rem); }
.rc-simulator-hero p { margin: 0; max-width: 48rem; color: rgba(255,255,255,.78); }
.rc-kicker {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  font-weight: 700;
  color: #fff !important;
}
.rc-formula {
  padding: 1rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 1rem;
  background: rgba(255,255,255,.08);
}
.rc-formula span { display: block; margin-bottom: .35rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.rc-formula strong { font-size: .92rem; line-height: 1.45; }
.rc-simulator-card {
  padding: 0;
  overflow: hidden;
  max-width: 100%;
}
.rc-simulator-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem;
}
.rc-simulator-heading h2,
.rc-breakdown h2 { margin: 0; color: var(--claro-red-deep); }
.rc-simulator-heading p { margin: .25rem 0 0; }
.rc-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border-top: 1px solid rgba(122,15,18,.08);
}
.rc-simulator-table { min-width: 1080px; }
.rc-simulator-table th {
  padding: .65rem .45rem;
  background: #f8f1ef;
  text-transform: uppercase;
  letter-spacing: .035em;
  font-size: .68rem;
  white-space: nowrap;
}
.rc-simulator-table td { padding: .45rem; vertical-align: middle; }
.rc-simulator-table input {
  width: 100%;
  min-width: 82px;
  margin: 0;
  border-radius: .65rem;
  padding: .5rem .55rem;
  font-size: .82rem;
}
.rc-simulator-table td:first-child input { min-width: 118px; }
.rc-simulator-table td:nth-child(2) input { min-width: 140px; }
.rc-simulator-table .rc-small-input { min-width: 58px; width: 58px; }
.rc-percent-input { position: relative; min-width: 88px; }
.rc-percent-input input { padding-right: 1.7rem; }
.rc-percent-input span { position: absolute; top: 50%; right: .6rem; transform: translateY(-50%); color: var(--claro-muted); font-size: .78rem; }
.rc-output { white-space: nowrap; font-size: .82rem; }
.rc-receivable strong { color: var(--claro-red-deep); }
.rc-remove-line {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: #fde8e8;
  color: #9b1c1c;
  cursor: pointer;
  font-size: 1.15rem;
}
.rc-error-row td { padding: .35rem .65rem .7rem; color: #9b1c1c; background: #fff7f7; font-size: .78rem; }
.rc-form-actions {
  display: flex;
  align-items: center;
  gap: .8rem;
  flex-wrap: wrap;
  padding: 1rem 1.2rem 1.2rem;
}
.rc-totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: .75rem;
}
.rc-totals > div {
  min-width: 0;
  padding: 1rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid rgba(122,15,18,.1);
}
.rc-totals span { display: block; color: var(--claro-muted); font-size: .78rem; }
.rc-totals strong {
  display: block;
  margin-top: .35rem;
  color: var(--claro-red-deep);
  font-family: var(--font-display);
  font-size: 1.25rem;
  overflow-wrap: anywhere;
}
.rc-totals .rc-total-highlight { background: var(--claro-red); border-color: var(--claro-red); }
.rc-total-highlight span,
.rc-total-highlight strong { color: #fff; }
.rc-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.rc-breakdown-grid > div { min-width: 0; }
.rc-breakdown-grid div > span {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  margin-bottom: .65rem;
  border-radius: 999px;
  color: #fff;
  background: var(--claro-red);
  font-weight: 700;
}
.rc-breakdown-grid strong { display: block; color: var(--claro-red-deep); }
.rc-breakdown-grid p { margin: .3rem 0 0; color: var(--claro-muted); font-size: .84rem; line-height: 1.5; }

.rc-table-hint {
  display: none;
  margin: 0;
  padding: .55rem 1.2rem 0;
  color: var(--claro-muted);
  font-size: .78rem;
}

@media (max-width: 1100px) {
  .rc-totals,
  .rc-breakdown-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 900px) {
  .rc-simulator-hero { grid-template-columns: 1fr; }
  .rc-simulator-heading { align-items: flex-start; flex-direction: column; }
  .rc-table-hint { display: block; }
}

@media (max-width: 620px) {
  .rc-totals,
  .rc-breakdown-grid { grid-template-columns: 1fr; }
  .rc-simulator-hero { padding: 1.15rem; }
  .rc-simulator-heading,
  .rc-form-actions { padding-left: .9rem; padding-right: .9rem; }
  .rc-table-hint { padding-left: .9rem; padding-right: .9rem; }
}

/* ===== Landing comercial RC Telecom ===== */
.landing-commercial {
  --l-ink: #1c1717;
  --l-muted: #5f5757;
  --l-line: #e4dedb;
  --l-soft: #f6f2f0;
  margin: 0;
  background: #fff;
  color: var(--l-ink);
  font-family: var(--font-body);
  line-height: 1.6;
}

.landing-commercial .landing-top-inner,
.landing-commercial .landing-wrap,
.landing-commercial .landing-hero-inner {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Topo */
.landing-commercial .landing-top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--claro-red-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.landing-commercial .landing-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.landing-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #fff;
}
.landing-brand img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--claro-red-dark);
}
.landing-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.15;
}
.landing-brand span {
  display: block;
  margin-top: 0.1rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
}
.landing-nav {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}
.landing-nav a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  font-weight: 600;
}
.landing-nav a:hover { color: #fff; text-decoration: underline; }
.landing-commercial .btn { border-radius: 999px; font-size: 0.95rem; }
.landing-commercial .btn-primary {
  background: var(--claro-red);
  box-shadow: none;
}
.landing-login-link { white-space: nowrap; }

/* Hero */
.commercial-hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 5rem;
  background: linear-gradient(150deg, #2c0d0e 0%, #4b0e0e 55%, #240a0b 100%);
  color: #fff;
}
.commercial-hero .landing-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 3.5rem;
  align-items: center;
}
.eyebrow {
  margin: 0 0 1rem;
  color: #ffb4ad;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
}
.commercial-hero-copy h1 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(2.4rem, 4.6vw, 3.9rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
}
.commercial-hero-copy h1 em { color: #ff8078; font-style: normal; }
.lead {
  margin: 1.4rem 0 2rem;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  line-height: 1.75;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); }
.hero-proof {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.hero-proof strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
}
.hero-proof span {
  display: block;
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
}
.commercial-highlight {
  padding: 1.9rem;
  border-radius: 1.4rem;
  background: #fff;
  color: var(--l-ink);
}
.commercial-highlight > span {
  color: var(--claro-red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 700;
}
.commercial-highlight h2 {
  margin: 0.8rem 0 0;
  color: var(--claro-red-deep);
  font-size: 1.5rem;
  line-height: 1.25;
}
.highlight-speed {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  margin: 1.1rem 0 0.4rem;
}
.highlight-speed small { margin-bottom: 0.5rem; color: var(--l-muted); font-size: 0.9rem; }
.highlight-speed strong {
  color: var(--claro-red);
  font-family: var(--font-display);
  font-size: 2.9rem;
  line-height: 1;
}
.commercial-highlight ul,
.fiber-card ul { margin: 1.1rem 0 1.4rem; padding: 0; list-style: none; }
.commercial-highlight li,
.fiber-card li {
  position: relative;
  margin: 0.7rem 0;
  padding-left: 1.6rem;
  color: var(--l-muted);
  font-size: 0.95rem;
}
.commercial-highlight li::before,
.fiber-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--claro-red);
  font-weight: 700;
}
.commercial-highlight > a { color: var(--claro-red); font-weight: 700; font-size: 0.95rem; }

/* Faixa de benefícios */
.benefit-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1160px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem;
  border-bottom: 1px solid var(--l-line);
}
.benefit-strip strong,
.benefit-strip span { display: block; }
.benefit-strip strong { font-size: 1rem; }
.benefit-strip span { margin-top: 0.25rem; color: var(--l-muted); font-size: 0.9rem; }

/* Seções */
.landing-commercial .landing-section { padding: 4.5rem 0; }
.landing-white { background: #fff; }
.landing-soft { background: var(--l-soft); }
.section-kicker {
  margin: 0 0 0.8rem;
  color: var(--claro-red);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
}
.landing-commercial .landing-section h2 {
  margin: 0;
  color: var(--claro-red-deep);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 2.5rem;
  align-items: end;
  margin-bottom: 2.5rem;
}
.section-heading p,
.consult-layout > div > p,
.about-layout p {
  margin: 0;
  color: var(--l-muted);
  font-size: 1rem;
  line-height: 1.75;
}

/* Planos de fibra */
.fiber-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.fiber-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border: 1px solid var(--l-line);
  border-radius: 1.25rem;
  background: #fff;
}
.fiber-featured { border-color: var(--claro-red); }
.fiber-badge {
  position: absolute;
  top: 0;
  right: 1.4rem;
  transform: translateY(-50%);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--claro-red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}
.fiber-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.fiber-card-head > div:first-child strong,
.fiber-card-head > div:first-child span { display: block; }
.fiber-card-head > div:first-child strong { font-size: 1.2rem; }
.fiber-card-head > div:first-child span { margin-top: 0.25rem; color: var(--l-muted); font-size: 0.88rem; }
.fiber-speed { display: flex; align-items: baseline; gap: 0.25rem; color: var(--claro-red); }
.fiber-speed strong { font-family: var(--font-display); font-size: 2.3rem; line-height: 1; }
.fiber-speed span { font-size: 0.85rem; font-weight: 700; }
.fiber-card ul { flex: 1; }
.fiber-card .btn { width: 100%; }
.legal-note { margin: 1.75rem 0 0; color: #8a807d; font-size: 0.85rem; line-height: 1.7; }

/* Estrutura */
.split-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 3rem;
}
.capability-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.capability-grid article {
  padding: 1.4rem;
  border: 1px solid var(--l-line);
  border-radius: 1rem;
  background: #fff;
}
.capability-grid > article > span { color: var(--claro-red); font-size: 0.8rem; font-weight: 700; }
.capability-grid h3 { margin: 0.5rem 0; font-size: 1.1rem; color: var(--claro-red-deep); }
.capability-grid p { margin: 0; color: var(--l-muted); font-size: 0.92rem; line-height: 1.65; }

/* Móvel */
.mobile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.mobile-grid article {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-top: 3px solid var(--claro-red);
  border-radius: 0 0 1rem 1rem;
  background: var(--l-soft);
}
.mobile-grid > article > span { color: var(--claro-red); font-size: 0.85rem; font-weight: 700; }
.mobile-grid h3 { margin: 1rem 0 0.6rem; font-size: 1.15rem; color: var(--claro-red-deep); }
.mobile-grid p { flex: 1; margin: 0 0 1.2rem; color: var(--l-muted); font-size: 0.95rem; line-height: 1.7; }
.mobile-grid a { color: var(--claro-red); font-weight: 700; font-size: 0.92rem; }

/* Consultoria */
.consult-section { background: #23100f; color: #fff; }
.consult-section .section-kicker { color: #ff8078; }
.landing-commercial .consult-section h2 { color: #fff; }
.consult-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.consult-layout > div > p { color: rgba(255, 255, 255, 0.72); }
.consult-steps { margin: 0; padding: 0; list-style: none; }
.consult-steps li {
  display: flex;
  gap: 1.2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.consult-steps li:last-child { border-bottom: 0; }
.consult-steps li > span { color: #ff8078; font-weight: 700; }
.consult-steps strong { font-size: 1.05rem; }
.consult-steps p { margin: 0.3rem 0 0; color: rgba(255, 255, 255, 0.65); font-size: 0.95rem; }

/* Processo */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.process-grid article { padding-top: 1rem; border-top: 2px solid var(--claro-red); }
.process-grid article > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--claro-red);
  color: #fff;
  font-weight: 700;
}
.process-grid h3 { margin: 1rem 0 0.5rem; font-size: 1.08rem; color: var(--claro-red-deep); }
.process-grid p { margin: 0; color: var(--l-muted); font-size: 0.92rem; line-height: 1.65; }

/* Sobre */
.about-section { background: var(--l-soft); }
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; }
.about-layout blockquote {
  margin: 1.75rem 0 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--claro-red);
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--claro-red-deep);
}

/* FAQ */
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 3.5rem; }
.faq-list details { border-bottom: 1px solid var(--l-line); }
.faq-list summary {
  position: relative;
  padding: 1.15rem 2.5rem 1.15rem 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.02rem;
  font-weight: 600;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0.3rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--claro-red);
  font-size: 1.4rem;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0 0 1.25rem; color: var(--l-muted); font-size: 0.97rem; line-height: 1.75; }

/* Área restrita */
.access-section { background: linear-gradient(150deg, #4b0e0e, #7a0f12 60%, #2c0a0b); }
.access-section .section-kicker { color: #ffb4ad; }
.landing-commercial .access-section h2 { color: #fff; }
.login-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 3rem;
  align-items: start;
}
.access-copy > p:not(.section-kicker) {
  margin: 1.2rem 0 0;
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.02rem;
  line-height: 1.75;
}
.access-credentials { display: grid; gap: 0.85rem; margin-top: 1.75rem; }
.access-credentials article {
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.access-credentials h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.access-credentials dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.9rem;
  margin: 0;
  font-size: 0.95rem;
}
.access-credentials dt { color: rgba(255, 255, 255, 0.65); }
.access-credentials dd { margin: 0; font-weight: 600; word-break: break-all; }
.access-note { margin: 0.9rem 0 0; color: rgba(255, 255, 255, 0.6); font-size: 0.85rem; }
.access-section .login-card { box-shadow: none; }
.access-section .login-card h3 { margin: 0; color: var(--claro-red-deep); font-size: 1.5rem; }
.access-section .login-card > p { margin: 0.35rem 0 1.25rem; }
.access-section .login-card button { width: 100%; margin-top: 0.35rem; }

/* Rodapé */
.landing-commercial .landing-footer {
  padding: 2rem 0;
  background: #1a0808;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}
.landing-footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
  align-items: center;
}
.landing-footer-grid .landing-brand span { color: rgba(255, 255, 255, 0.6); }

@media (max-width: 1080px) {
  .landing-nav { gap: 1.2rem; font-size: 0.88rem; }
}

@media (max-width: 960px) {
  .landing-nav { display: none; }
  .commercial-hero .landing-hero-inner,
  .section-heading,
  .split-intro,
  .consult-layout,
  .about-layout,
  .faq-layout,
  .login-split { grid-template-columns: 1fr; gap: 2.25rem; }
  .fiber-grid,
  .mobile-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .benefit-strip { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .landing-commercial .landing-section { padding: 3rem 0; }
  .commercial-hero { padding: 3rem 0 3.5rem; }
  .landing-brand img { width: 44px; height: 44px; }
  .landing-brand strong { font-size: 1rem; }
  .hero-proof { gap: 1.5rem; }
  .capability-grid,
  .process-grid,
  .benefit-strip { grid-template-columns: 1fr; }
  .landing-footer-grid { grid-template-columns: 1fr; gap: 1rem; }
}

/* ===== Shell interno (admin e vendedor) ===== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--claro-red-deep);
  color: #fff;
  overflow: visible;
  padding-top: env(safe-area-inset-top, 0px);
}
.app-header-top,
.app-nav-inner {
  max-width: 1240px;
  margin: 0 auto;
}
.app-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.05rem 1.25rem 0.95rem;
}
.app-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  min-width: 0;
  flex: 1;
}
.app-user { display: flex; align-items: center; gap: 0.85rem; flex-shrink: 0; }
.app-brand img {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  object-fit: cover;
}
.app-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.2;
}
.app-brand span {
  display: block;
  margin-top: 0.1rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
}
.app-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.app-user-info { text-align: right; line-height: 1.3; }
.app-user-info strong { display: block; font-size: 0.92rem; }
.app-user-info span { color: rgba(255, 255, 255, 0.7); font-size: 0.76rem; }
.app-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.16);
  overflow: visible;
}
.app-nav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.05rem 0.1rem;
  overflow: visible;
  padding: 0.15rem 1.25rem 0.1rem;
}
.app-nav-inner > a,
.app-nav-group > summary {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0.72rem 0.9rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  font-family: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
.app-nav-inner > a:hover,
.app-nav-group > summary:hover { color: #fff; }
.app-nav-inner > a.active,
.app-nav-group.is-on > summary { color: #fff; }
.app-nav-inner > a.active::after,
.app-nav-group.is-on > summary::before {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #ff8078;
}
.app-nav-group {
  position: relative;
}
.app-nav-group > summary {
  list-style: none;
  gap: 0.4rem;
}
.app-nav-group > summary::-webkit-details-marker,
.app-nav-group > summary::marker { display: none; content: ""; }
.app-nav-group > summary::after {
  content: "";
  width: 0.38em;
  height: 0.38em;
  margin-top: -0.15em;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.7;
}
.app-nav-drop {
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  min-width: 14rem;
  padding: 0.35rem 0;
  background: #5a0c10;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0 0 0.9rem 0.9rem;
  box-shadow: 0 18px 36px rgba(0,0,0,0.28);
  z-index: 80;
}
.app-nav-drop a {
  display: block;
  padding: 0.62rem 1rem;
  color: rgba(255,255,255,0.88);
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
}
.app-nav-drop a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.app-nav-drop a.active {
  background: rgba(255,255,255,0.14);
  color: #fff;
}
.app-nav-drop a.active::after { display: none; }

/* Cabeçalho de página */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.page-head h1 {
  margin: 0.35rem 0 0;
  color: var(--claro-red-deep);
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  line-height: 1.15;
}
.page-head p { margin: 0.45rem 0 0; color: var(--claro-muted); font-size: 0.98rem; }
.page-kicker {
  margin: 0;
  color: var(--claro-red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.74rem;
  font-weight: 700;
}
.head-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.head-actions .btn { font-size: 0.88rem; padding: 0.6rem 1rem; }

/* Indicadores */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.kpi {
  padding: 1.25rem;
  border: 1px solid rgba(122, 15, 18, 0.12);
  border-radius: 1.1rem;
  background: #fff;
}
.kpi > span {
  display: block;
  color: var(--claro-muted);
  font-size: 0.82rem;
  font-weight: 600;
}
.kpi > strong {
  display: block;
  margin-top: 0.5rem;
  color: var(--claro-red-deep);
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}
.kpi > small { display: block; margin-top: 0.55rem; color: var(--claro-muted); font-size: 0.8rem; }
.kpi-accent {
  border-color: transparent;
  background: linear-gradient(150deg, #8b1218, #4b0e0e 75%);
  color: #fff;
}
.kpi-accent > span { color: rgba(255, 255, 255, 0.75); }
.kpi-accent > strong { color: #fff; font-size: 1.7rem; }
.kpi-accent > small { color: rgba(255, 255, 255, 0.7); }

/* Painéis */
.panel {
  border: 1px solid rgba(122, 15, 18, 0.1);
  border-radius: 1.15rem;
  background: #fff;
  overflow: hidden;
}
.panel + .panel { margin-top: 1.25rem; }
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid rgba(122, 15, 18, 0.08);
}
.panel-head h2 {
  margin: 0;
  color: var(--claro-red-deep);
  font-size: 1.15rem;
}
.panel-head p { margin: 0.25rem 0 0; color: var(--claro-muted); font-size: 0.88rem; }
.panel-head a { color: var(--claro-red); font-size: 0.88rem; font-weight: 700; }
.panel-body { padding: 1.35rem; }
.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 1.25rem;
}
.panel-grid > .panel + .panel { margin-top: 0; }

/* Funcionalidades */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.module-card {
  display: flex;
  flex-direction: column;
  padding: 1.2rem;
  border: 1px solid rgba(122, 15, 18, 0.12);
  border-radius: 1rem;
  background: #fff;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.module-card:hover { border-color: var(--claro-red); transform: translateY(-2px); }
.module-glyph {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 0.9rem;
  border-radius: 0.75rem;
  background: rgba(218, 41, 28, 0.1);
  color: var(--claro-red);
  font-size: 1.15rem;
}
.module-card h3 { margin: 0 0 0.35rem; color: var(--claro-red-deep); font-size: 1.05rem; }
.module-card p { flex: 1; margin: 0 0 0.9rem; color: var(--claro-muted); font-size: 0.9rem; line-height: 1.6; }
.module-go { color: var(--claro-red); font-size: 0.85rem; font-weight: 700; }

/* Tabelas de painel */
.table-scroll { overflow-x: auto; }
.data-table { min-width: 640px; }
.data-table th {
  padding: 0.75rem 1.35rem;
  background: #faf5f4;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
}
.data-table td { padding: 0.85rem 1.35rem; font-size: 0.92rem; }
.data-table tbody tr:hover { background: #fdf8f7; }
.data-table .num { text-align: right; white-space: nowrap; }
.data-table strong { color: var(--claro-red-deep); }
.empty-state {
  margin: 0;
  padding: 2.5rem 1.35rem;
  color: var(--claro-muted);
  text-align: center;
  font-size: 0.95rem;
}

/* Boas-vindas */
.welcome-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.5rem;
  margin-bottom: 1.75rem;
  border-radius: 1.15rem;
  background: linear-gradient(150deg, #7a0f12, #4b0e0e 75%);
  color: #fff;
}
.welcome-banner h2 { margin: 0.3rem 0 0.4rem; font-size: 1.5rem; }
.welcome-banner p { margin: 0; max-width: 52ch; color: rgba(255, 255, 255, 0.78); font-size: 0.95rem; }
.welcome-banner .page-kicker { color: #ffb4ad; }
.welcome-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.partner-chart-wrap { position: relative; height: 240px; }
.partner-legend {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.85rem;
  color: var(--claro-muted);
  font-size: 0.82rem;
  font-weight: 600;
}
.partner-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 0.35rem;
  border-radius: 999px;
  vertical-align: middle;
}
.partner-dot-open { background: #da291c; }
.partner-dot-paid { background: #146c43; }
.partner-dot-late { background: #9a5b00; }
.partner-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.65rem;
  min-height: 190px;
  overflow-x: auto;
  padding-top: 0.5rem;
}
.partner-bar-col {
  flex: 1 1 0;
  min-width: 52px;
  text-align: center;
}
.partner-bar-pair {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.25rem;
  height: 168px;
}
.partner-bar-pair span {
  display: block;
  width: 14px;
  border-radius: 8px 8px 4px 4px;
}
.partner-bar-open { background: #da291c; }
.partner-bar-paid { background: #7a0f12; }
.partner-bar-col small {
  display: block;
  margin-top: 0.45rem;
  color: var(--claro-muted);
  font-size: 0.72rem;
}
.partner-donut-wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.partner-donut {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  flex: 0 0 auto;
  mask: radial-gradient(circle at center, transparent 52%, #000 53%);
  -webkit-mask: radial-gradient(circle at center, transparent 52%, #000 53%);
}
.partner-donut-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.partner-donut-legend strong {
  display: block;
  margin-top: 0.15rem;
  color: var(--claro-red-deep);
}
.partner-chart-donut { max-width: 320px; margin: 0 auto; }

.partner-section { background: #fff; }
.partner-section .login-card { box-shadow: 0 18px 40px rgba(75, 14, 14, 0.08); }
.partner-section .login-card h3 { margin: 0; color: var(--claro-red-deep); font-size: 1.5rem; }
.partner-section .login-card > p { margin: 0.35rem 0 1.25rem; }
.partner-section .login-card button { width: 100%; margin-top: 0.35rem; }
.partner-section .login-card label { display: grid; gap: 0.35rem; margin-bottom: 0.85rem; font-weight: 600; color: var(--claro-muted); font-size: 0.88rem; }
.partner-section .access-credentials article {
  color: var(--claro-ink);
  background: #faf5f4;
  border-color: rgba(122, 15, 18, 0.12);
}
.partner-section .access-credentials dt { color: var(--claro-muted); }
.partner-picks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 1.75rem;
}
.partner-pick {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(122, 15, 18, 0.14);
  border-radius: 1.1rem;
  padding: 1.15rem;
  background: #fff;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.partner-pick strong { display: block; color: var(--claro-red-deep); font-size: 1.05rem; }
.partner-pick span { display: block; margin-top: 0.4rem; color: var(--claro-muted); font-size: 0.9rem; line-height: 1.5; }
.partner-pick.is-selected,
.partner-pick:hover { border-color: var(--claro-red); background: #fdf6f5; }
.partner-login-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 2rem;
  align-items: start;
}
.partner-hint { margin: 0.85rem 0 0; color: var(--claro-muted); font-size: 0.88rem; }

.data-table tr.is-active { background: #fdf6f5; }

.lead-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.lead-form .btn { margin-top: 0.35rem; }
.lead-focus {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.lead-focus h3 { margin: 0.2rem 0 0.3rem; color: var(--claro-red-deep); }
.lead-treatment {
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  border-radius: 0.9rem;
  background: #faf5f4;
}
.lead-treatment p { margin: 0.35rem 0 0; }
.lead-origin {
  margin: 0 0 1rem;
  color: var(--claro-muted);
}
.lead-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.lead-timeline li {
  padding-left: 0.9rem;
  border-left: 3px solid rgba(218, 41, 28, 0.35);
}
.lead-timeline span,
.lead-timeline small {
  display: block;
  color: var(--claro-muted);
  font-size: 0.78rem;
}
.lead-timeline strong { display: block; margin: 0.15rem 0; font-size: 0.92rem; }
.lead-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(180px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  overflow-x: auto;
}
.lead-column {
  min-width: 180px;
  padding: 0.85rem;
  border: 1px solid rgba(122, 15, 18, 0.1);
  border-radius: 1rem;
  background: #fff;
}
.lead-column header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: var(--claro-red-deep);
}
.lead-column header span {
  color: var(--claro-muted);
  font-size: 0.8rem;
}
.lead-card {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem;
  margin-bottom: 0.55rem;
  border: 1px solid rgba(122, 15, 18, 0.1);
  border-radius: 0.8rem;
  background: #faf5f4;
}
.lead-card strong { color: var(--claro-red-deep); font-size: 0.92rem; }
.lead-card span,
.lead-card em {
  color: var(--claro-muted);
  font-size: 0.78rem;
  font-style: normal;
}
.lead-card.is-active,
.lead-card:hover { border-color: var(--claro-red); background: #fff; }
.lead-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .panel-grid { grid-template-columns: 1fr; }
  .app-user-info { display: none; }
  .page-head { align-items: flex-start; }
  .lead-form-row,
  .lead-admin-grid,
  .lead-board,
  .partner-picks,
  .partner-login-grid { grid-template-columns: 1fr; }
}

/* ===== Folha de pagamento / holerite ===== */
.folha-page,
.holerite-page { margin-top: -0.35rem; }
.folha-page .retorno-hero,
.holerite-page .retorno-hero { display: none; }

.folha-toolbar,
.holerite-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.folha-toolbar h1,
.holerite-toolbar h1 {
  margin: 0.15rem 0 0.2rem;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  color: var(--claro-red-deep);
}
.folha-toolbar p,
.holerite-toolbar p { margin: 0; color: var(--claro-muted); max-width: 42rem; }
.folha-toolbar-actions,
.holerite-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.folha-filter {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.9fr auto;
  gap: 0.7rem 0.85rem;
  align-items: end;
  margin-bottom: 0.75rem;
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid rgba(122, 15, 18, 0.12);
  border-radius: 1.15rem;
  box-shadow: 0 10px 28px rgba(75, 14, 14, 0.04);
}
.folha-filter label {
  display: grid;
  gap: 0.28rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--claro-red);
}
.folha-filter input,
.folha-filter select {
  width: 100%;
  min-height: 2.55rem;
}
.folha-filter-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: end;
}

.periodo-pager {
  display: grid;
  grid-template-columns: 1fr minmax(9.5rem, 0.9fr) 1fr;
  gap: 0.55rem;
  align-items: stretch;
  margin: 0 0 1.15rem;
  padding: 0.4rem;
  background: linear-gradient(180deg, #fff 0%, #faf5f4 100%);
  border: 1px solid rgba(122, 15, 18, 0.12);
  border-radius: 1.2rem;
  box-shadow: 0 10px 28px rgba(75, 14, 14, 0.04);
}
.periodo-pager-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3.35rem;
  padding: 0.55rem 0.85rem;
  border-radius: 0.95rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--claro-red-deep);
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
}
.periodo-pager-btn.is-prev { justify-content: flex-start; }
.periodo-pager-btn.is-next { justify-content: flex-end; text-align: right; }
.periodo-pager-btn:not(.is-disabled):hover {
  background: #fff;
  border-color: rgba(218, 41, 28, 0.28);
  transform: translateY(-1px);
}
.periodo-pager-btn.is-disabled {
  opacity: 0.42;
  cursor: not-allowed;
  color: var(--claro-muted);
}
.periodo-pager-arrow {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: #7a0f12;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}
.periodo-pager-btn.is-disabled .periodo-pager-arrow {
  background: #c9b4b1;
}
.periodo-pager-meta {
  display: grid;
  gap: 0.05rem;
  min-width: 0;
}
.periodo-pager-meta small,
.periodo-pager-now small {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--claro-muted);
}
.periodo-pager-meta strong {
  font-size: 0.92rem;
  font-weight: 800;
  color: inherit;
}
.periodo-pager-now {
  display: grid;
  place-content: center;
  text-align: center;
  gap: 0.1rem;
  padding: 0.45rem 0.7rem;
  border-radius: 0.95rem;
  background: linear-gradient(135deg, #7a0f12, #da291c);
  color: #fff;
  box-shadow: 0 8px 18px rgba(122, 15, 18, 0.28);
}
.periodo-pager-now small { color: rgba(255, 255, 255, 0.78); }
.periodo-pager-now strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.15;
}

.folha-people {
  display: grid;
  gap: 0.75rem;
}
.folha-person {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto minmax(0, 1.3fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 1.1rem;
  background: #fff;
  border: 1px solid rgba(122, 15, 18, 0.1);
  border-radius: 1.1rem;
  box-shadow: 0 8px 22px rgba(75, 14, 14, 0.04);
}
.folha-person:hover { border-color: rgba(218, 41, 28, 0.28); }
.folha-person-id {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}
.folha-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #7a0f12, #da291c);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
}
.folha-person-id strong {
  display: block;
  color: var(--claro-red-deep);
  font-size: 1rem;
}
.folha-person-id span { color: var(--claro-muted); font-size: 0.82rem; }
.folha-person-rpa { text-align: right; }
.folha-person-rpa small {
  display: block;
  font-size: 0.7rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--claro-muted);
  font-weight: 700;
}
.folha-person-rpa strong { font-size: 1.12rem; color: var(--claro-red-deep); }
.folha-person-rpa strong.is-empty { color: var(--claro-muted); font-weight: 600; }
.folha-person-rpa .muted { display: block; font-size: 0.75rem; margin-top: 0.15rem; }
.equipe-page .folha-filter { grid-template-columns: 1.6fr 0.95fr auto; }
.equipe-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}
.equipe-tabs a {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(122, 15, 18, 0.15);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--claro-red-deep);
}
.equipe-tabs a.is-on {
  background: var(--claro-red-deep);
  border-color: var(--claro-red-deep);
  color: #fff;
}
.equipe-add {
  background: #fff;
  border: 1px solid rgba(122, 15, 18, 0.12);
  border-radius: 1.15rem;
  padding: 0.15rem 1.15rem;
  margin-bottom: 1.1rem;
}
.equipe-add > summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--claro-red-deep);
  padding: 0.9rem 0;
  list-style: none;
}
.equipe-add > summary::-webkit-details-marker,
.equipe-add > summary::marker { display: none; content: ""; }
.equipe-add > summary::after {
  content: " +";
  color: var(--claro-red);
}
.equipe-add[open] { padding-bottom: 1.15rem; }
.equipe-add[open] > summary::after { content: " −"; }
.folha-person-actions {
  display: flex;
  gap: 0.4rem;
  justify-content: flex-end;
}
.folha-person-actions .btn { padding: 0.45rem 0.85rem; font-size: 0.82rem; }

.folha-hist-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.folha-hist-chips .dev-chip,
.folha-hist-chips a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: #f7f0ee;
  border: 1px solid #ead8d4;
  color: var(--claro-red-deep);
  font-size: 0.75rem;
  font-weight: 700;
}
.folha-hist-chips .dev-chip.is-on,
.folha-hist-chips a.is-on {
  background: #7a0f12;
  border-color: #7a0f12;
  color: #fff;
}
.folha-hist-chips em { font-style: normal; font-weight: 800; }
.folha-hist-chips small {
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.85;
}
.folha-hist-chips a.is-on small { color: #ffd6d0; }

.holerite-toolbar {
  padding: 0.9rem 1.1rem;
  background: #fff;
  border: 1px solid rgba(122, 15, 18, 0.12);
  border-radius: 1.15rem;
  box-shadow: 0 10px 28px rgba(75, 14, 14, 0.04);
}
.holerite-sheet {
  background: #fff;
  border: 1px solid #ead8d4;
  border-radius: 1.4rem;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(75, 14, 14, 0.08);
  margin-bottom: 2rem;
}
.holerite-brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #7a0f12, #da291c);
  color: #fff;
}
.holerite-brand-mark {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.holerite-brand-mark img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  background: #fff;
}
.holerite-brand h2 { margin: 0.15rem 0 0; font-size: 1.55rem; color: #fff; }
.holerite-brand .retorno-kicker { color: #ffd6d0; }
.holerite-ref {
  text-align: right;
  background: rgba(255,255,255,0.14);
  border-radius: 0.9rem;
  padding: 0.65rem 0.95rem;
  min-width: 8.5rem;
}
.holerite-ref span { display: block; font-size: 0.72rem; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.holerite-ref strong { font-size: 1.3rem; }
.holerite-who {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 1rem;
  padding: 1.15rem 1.5rem;
  background: #fbf6f4;
  border-bottom: 1px solid #ead8d4;
}
.holerite-who p {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #9b1c1c;
  font-weight: 700;
}
.holerite-who strong { display: block; font-size: 1.12rem; color: var(--claro-red-deep); }
.holerite-who span { display: block; margin-top: 0.15rem; color: var(--claro-muted); font-size: 0.85rem; }
.holerite-liquido {
  min-width: 12rem;
  background: #fff;
  border: 1px solid #cdebd8;
  border-radius: 1rem;
  padding: 0.75rem 1rem;
}
.holerite-liquido strong { font-size: 1.45rem; color: #146c43; }
.holerite-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.holerite-cols section {
  padding: 1.15rem 1.4rem 1.3rem;
}
.holerite-cols section + section { border-left: 1px solid #ead8d4; }
.holerite-ghead {
  margin: 0.85rem 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--claro-muted);
  font-weight: 700;
}
.holerite-ghead:first-child { margin-top: 0; }
.holerite-cols h3,
.holerite-block h3 {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--claro-red);
}
.holerite-lines { list-style: none; margin: 0; padding: 0; }
.holerite-lines li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid #f3e8e6;
}
.holerite-lines li span { display: block; color: var(--claro-muted); font-size: 0.8rem; margin-top: 0.15rem; }
.holerite-lines em { font-style: normal; font-weight: 800; white-space: nowrap; color: var(--claro-red-deep); }
.holerite-lines.is-desc em { color: #9b1c1c; }
.holerite-totais {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 0.7rem;
  padding: 1rem 1.4rem;
  background: #f7f0ee;
}
.holerite-totais div {
  background: #fff;
  border-radius: 0.9rem;
  padding: 0.75rem 0.9rem;
}
.holerite-totais span { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--claro-muted); }
.holerite-totais strong { font-size: 1.15rem; color: var(--claro-red-deep); }
.holerite-ghead.is-sub {
  font-size: 0.68rem;
  letter-spacing: .04em;
  color: var(--claro-red);
  margin-top: 0.45rem;
}
.holerite-totais.is-fam { background: #fff; padding-top: 0; }
.folha-month-nav { display: flex; gap: 0.35rem; margin-top: 0.35rem; }
.folha-month-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border: 1px solid #ead8d4;
  border-radius: 0.4rem;
  color: var(--claro-red-deep);
  text-decoration: none;
  font-weight: 700;
}
.how-tip { display: inline-block; position: relative; margin-left: 0.25rem; vertical-align: middle; }
.how-tip summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  border: 1px solid #c9a8a3;
  color: var(--claro-red);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  vertical-align: middle;
}
.how-tip summary::-webkit-details-marker,
.how-tip summary::marker { display: none; content: none; }
.how-tip:not([open]) > .how-tip-body { display: none !important; }
.how-tip-body {
  position: absolute;
  z-index: 20;
  right: 0;
  top: 1.4rem;
  width: 18rem;
  background: #fff;
  border: 1px solid #ead8d4;
  border-radius: 0.7rem;
  padding: 0.7rem 0.8rem;
  color: var(--claro-ink, #2a1212);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  box-shadow: 0 8px 24px rgba(80, 20, 20, 0.12);
}
.how-tip-title { margin: 0 0 0.45rem; font-size: 0.78rem; font-weight: 700; }
.how-tip-body ul { list-style: none; margin: 0; padding: 0; }
.how-tip-body li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.2rem 0;
  font-size: 0.75rem;
  border-bottom: 1px solid #f3e8e6;
}
.how-tip-body em { font-style: normal; font-weight: 700; white-space: nowrap; }
.how-tip-foot { margin: 0.45rem 0 0; font-size: 0.72rem; color: var(--claro-muted); }
.holerite-liquido p { display: flex; align-items: center; gap: 0.25rem; }
.holerite-totais span { display: flex; align-items: center; gap: 0.2rem; }
.holerite-block { padding: 1.15rem 1.4rem 0.4rem; }
.holerite-foot {
  padding: 1rem 1.4rem 1.3rem;
  color: var(--claro-muted);
  font-size: 0.8rem;
}

@media (max-width: 980px) {
  .folha-filter { grid-template-columns: 1fr 1fr; }
  .folha-person { grid-template-columns: 1fr; }
  .folha-person-rpa, .folha-person-actions { text-align: left; justify-content: flex-start; }
  .periodo-pager { grid-template-columns: 1fr; }
  .periodo-pager-btn.is-next { justify-content: flex-start; text-align: left; }
}
@media (max-width: 900px) {
  .holerite-who, .holerite-cols, .holerite-totais { grid-template-columns: 1fr; }
  .holerite-cols section + section { border-left: 0; border-top: 1px solid #ead8d4; }
  .folha-filter { grid-template-columns: 1fr; }
}
@media print {
  .app-header, .clara-root, .flash, .retorno-hero, .head-actions,
  .holerite-toolbar, .folha-toolbar, .periodo-pager { display: none !important; }
  .how-tip, .folha-month-nav { display: none !important; }
  body { background: #fff !important; }
  main.container { max-width: none; padding: 0; }
  .holerite-sheet { box-shadow: none; border: 0; border-radius: 0; }
}

