/* Fontes hospedadas localmente em /assets/fonts. */
@font-face {
  font-family: "DM Sans";
  src: url("./fonts/DMSans-VariableFont_opsz,wght.ttf") format("truetype"),
       url("./fonts/DM-Sans-Regular.woff2") format("woff2"),
       url("./fonts/DMSans-Regular.ttf") format("truetype"),
       url("./fonts/DM_Sans/static/DMSans-Regular.ttf") format("truetype"),
       url("./fonts/DM_Sans,Google_Sans,Manrope/DM_Sans/static/DMSans-Regular.ttf") format("truetype"),
       url("./fonts/static/DMSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("./fonts/DMSans-VariableFont_opsz,wght.ttf") format("truetype"),
       url("./fonts/DM-Sans-Medium.woff2") format("woff2"),
       url("./fonts/DMSans-Medium.ttf") format("truetype"),
       url("./fonts/DM_Sans/static/DMSans-Medium.ttf") format("truetype"),
       url("./fonts/DM_Sans,Google_Sans,Manrope/DM_Sans/static/DMSans-Medium.ttf") format("truetype"),
       url("./fonts/static/DMSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("./fonts/DMSans-VariableFont_opsz,wght.ttf") format("truetype"),
       url("./fonts/DM-Sans-SemiBold.woff2") format("woff2"),
       url("./fonts/DMSans-SemiBold.ttf") format("truetype"),
       url("./fonts/DM_Sans/static/DMSans-SemiBold.ttf") format("truetype"),
       url("./fonts/DM_Sans,Google_Sans,Manrope/DM_Sans/static/DMSans-SemiBold.ttf") format("truetype"),
       url("./fonts/static/DMSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("./fonts/DMSans-VariableFont_opsz,wght.ttf") format("truetype"),
       url("./fonts/DM-Sans-Bold.woff2") format("woff2"),
       url("./fonts/DMSans-Bold.ttf") format("truetype"),
       url("./fonts/DM_Sans/static/DMSans-Bold.ttf") format("truetype"),
       url("./fonts/DM_Sans,Google_Sans,Manrope/DM_Sans/static/DMSans-Bold.ttf") format("truetype"),
       url("./fonts/static/DMSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("./fonts/Manrope-VariableFont_wght.ttf") format("truetype"),
       url("./fonts/Manrope-Regular.woff2") format("woff2"),
       url("./fonts/Manrope-Regular.ttf") format("truetype"),
       url("./fonts/Manrope/static/Manrope-Regular.ttf") format("truetype"),
       url("./fonts/DM_Sans,Google_Sans,Manrope/Manrope/static/Manrope-Regular.ttf") format("truetype"),
       url("./fonts/static/Manrope-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("./fonts/Manrope-VariableFont_wght.ttf") format("truetype"),
       url("./fonts/Manrope-Medium.woff2") format("woff2"),
       url("./fonts/Manrope-Medium.ttf") format("truetype"),
       url("./fonts/Manrope/static/Manrope-Medium.ttf") format("truetype"),
       url("./fonts/DM_Sans,Google_Sans,Manrope/Manrope/static/Manrope-Medium.ttf") format("truetype"),
       url("./fonts/static/Manrope-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("./fonts/Manrope-VariableFont_wght.ttf") format("truetype"),
       url("./fonts/Manrope-SemiBold.woff2") format("woff2"),
       url("./fonts/Manrope-SemiBold.ttf") format("truetype"),
       url("./fonts/Manrope/static/Manrope-SemiBold.ttf") format("truetype"),
       url("./fonts/DM_Sans,Google_Sans,Manrope/Manrope/static/Manrope-SemiBold.ttf") format("truetype"),
       url("./fonts/static/Manrope-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("./fonts/Manrope-VariableFont_wght.ttf") format("truetype"),
       url("./fonts/Manrope-Bold.woff2") format("woff2"),
       url("./fonts/Manrope-Bold.ttf") format("truetype"),
       url("./fonts/Manrope/static/Manrope-Bold.ttf") format("truetype"),
       url("./fonts/DM_Sans,Google_Sans,Manrope/Manrope/static/Manrope-Bold.ttf") format("truetype"),
       url("./fonts/static/Manrope-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("./fonts/Manrope-VariableFont_wght.ttf") format("truetype"),
       url("./fonts/Manrope-ExtraBold.woff2") format("woff2"),
       url("./fonts/Manrope-ExtraBold.ttf") format("truetype"),
       url("./fonts/Manrope/static/Manrope-ExtraBold.ttf") format("truetype"),
       url("./fonts/DM_Sans,Google_Sans,Manrope/Manrope/static/Manrope-ExtraBold.ttf") format("truetype"),
       url("./fonts/static/Manrope-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
:root {
  --navy: #0a2b54;
  --blue: #0878c9;
  --sky: #e9f5fc;
  --ink: #15324d;
  --muted: #71869a;
  --line: #e3ebf1;
  --bg: #f6f9fb;
  --white: #fff;
  --green: #11865c;
  --green-bg: #e9f7f0;
  --amber: #e8dfdf;
  --amber-bg: #e91919;
  --shadow: 0 9px 32px rgba(18, 59, 92, 0.055);
}

/* Review de imagem — esteira visual para classificação rápida. */
.topnav .view-tab[data-view="review"] {
  color: #46657d;
}
.topnav .view-tab[data-view="review"].active {
  color: #0b78bd;
  border-bottom-color: #0b78bd;
}
.topnav .view-tab[data-view="review"] .tab-count {
  background: #e8f5fc;
  color: #0b78bd;
}
.image-review-section {
  display: block;
  margin-top: 6px;
  animation: rise 0.35s both;
}
.review-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.review-head h2 {
  margin: 0;
  color: var(--navy);
  font: 700 25px/1.15 "Manrope", sans-serif;
  letter-spacing: -0.04em;
}
.review-head .muted {
  max-width: 500px;
  line-height: 1.45;
}
.review-head-actions {
  display: flex;
  align-items: center;
  gap: 13px;
  flex: 0 0 auto;
}
.review-live-note,
.review-queue-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #7590a2;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.review-live-note i,
.review-queue-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2aa778;
  box-shadow: 0 0 0 3px #e5f6ee;
}
.review-refresh {
  min-width: 136px;
}
.review-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.review-stat {
  position: relative;
  min-height: 100px;
  padding: 14px 16px 13px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e6eef3;
  border-radius: 10px;
  box-shadow: 0 5px 18px rgba(18, 59, 92, 0.035);
}
.review-stat::after {
  position: absolute;
  right: 15px;
  bottom: 0;
  width: 25px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #8fa9b9;
  content: "";
}
.review-stat span,
.review-context-label,
.review-kicker,
.review-decision-copy > span {
  display: block;
  color: #7991a1;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
}
.review-stat strong {
  display: block;
  margin-top: 6px;
  color: var(--navy);
  font: 800 29px/1 "Manrope", sans-serif;
  letter-spacing: -0.05em;
}
.review-stat small {
  display: block;
  margin-top: 7px;
  color: #8a9ca8;
  font-size: 10px;
}
.review-stat.is-pending::after {
  background: #e39a48;
}
.review-stat.is-pending strong {
  color: #b36b20;
}
.review-stat.is-approved::after {
  background: #20a370;
}
.review-stat.is-approved strong {
  color: #16845b;
}
.review-stat.is-rejected::after {
  background: #d34757;
}
.review-stat.is-rejected strong {
  color: #c13c4d;
}
.review-stage {
  overflow: hidden;
  padding: 20px;
  background: #061d38;
  border: 1px solid #153b5d;
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(9, 43, 78, 0.13);
}
.review-stage-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 1px 2px 16px;
}
.review-stage-topline strong {
  display: block;
  margin-top: 5px;
  color: #f2fbff;
  font: 700 16px/1 "Manrope", sans-serif;
  letter-spacing: -0.03em;
}
.review-stage-topline strong em {
  color: #7592a7;
  font-style: normal;
  font-weight: 500;
}
.review-stage-topline .review-kicker {
  color: #77b5d4;
}
.review-queue-state {
  color: #a7c6d4;
}
.review-queue-state i {
  background: #e09b48;
  box-shadow: 0 0 0 3px rgba(224, 155, 72, 0.14);
}
.review-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(285px, 0.72fr);
  gap: 16px;
  align-items: stretch;
}
.review-image-frame {
  position: relative;
  display: grid;
  min-height: min(61vh, 610px);
  overflow: hidden;
  place-items: center;
  background: #0a2d4c;
  border: 1px solid rgba(147, 207, 229, 0.23);
  border-radius: 9px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}
.review-image-frame::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(112deg, rgba(255, 255, 255, 0.08), transparent 22%, transparent 78%, rgba(91, 190, 222, 0.09));
  content: "";
  pointer-events: none;
}
.review-image-frame::after {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(202, 236, 244, 0.12);
  border-radius: 6px;
  content: "";
  pointer-events: none;
}
.review-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: min(61vh, 610px);
  object-fit: contain;
  background: #092742;
}
.review-image-index {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(223, 244, 249, 0.24);
  border-radius: 7px;
  background: rgba(6, 29, 56, 0.78);
  color: #e3f6fa;
  font: 800 12px "Manrope", sans-serif;
}
.review-image-frame.is-empty,
.review-image-frame.is-broken {
  min-height: min(61vh, 610px);
}
.review-image-frame.is-empty::before,
.review-image-frame.is-broken::before {
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.035) 0, rgba(255, 255, 255, 0.035) 1px, transparent 1px, transparent 10px);
}
.review-no-image {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  color: #b9d3dd;
  text-align: center;
}
.review-no-image span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(240, 178, 91, 0.45);
  border-radius: 50%;
  color: #efb15e;
  font: 800 18px "Manrope", sans-serif;
}
.review-no-image strong {
  font: 700 13px "Manrope", sans-serif;
}
.review-no-image small {
  color: #7896a6;
  font-size: 10px;
}
.review-image-frame.is-broken::after {
  border-color: rgba(223, 111, 111, 0.45);
  content: "Imagem indisponível";
  display: grid;
  place-items: center;
  color: #e8a0a5;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.review-context {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px 21px 20px;
  background: #0b2a49;
  border: 1px solid rgba(148, 201, 221, 0.17);
  border-radius: 9px;
}
.review-context-label {
  color: #75b1cb;
}
.review-context h3 {
  overflow: hidden;
  margin: 9px 0 22px;
  color: #fff;
  font: 700 24px/1.1 "Manrope", sans-serif;
  letter-spacing: -0.045em;
  text-overflow: ellipsis;
}
.review-detail {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid rgba(155, 201, 218, 0.13);
}
.review-detail span {
  flex: 0 0 auto;
  color: #78a1b4;
  font-size: 10px;
}
.review-detail strong {
  overflow: hidden;
  color: #dceef3;
  font-size: 11px;
  font-weight: 700;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.review-decision-copy {
  margin-top: auto;
  padding: 24px 0 14px;
}
.review-decision-copy > span {
  color: #79a8ba;
}
.review-decision-copy p {
  max-width: 270px;
  margin: 7px 0 0;
  color: #91afbb;
  font-size: 11px;
  line-height: 1.45;
}
.review-decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.review-decision {
  display: flex;
  min-height: 82px;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 11px 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: transform 0.16s ease, filter 0.16s ease, opacity 0.16s ease;
}
.review-decision:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}
.review-decision:disabled {
  cursor: wait;
  opacity: 0.48;
  transform: none;
}
.review-decision span {
  font: 700 18px/1 "Manrope", sans-serif;
}
.review-decision strong {
  font: 800 13px "Manrope", sans-serif;
}
.review-decision small {
  font-size: 9px;
  opacity: 0.8;
}
.review-reject {
  background: #bd3e4d;
  border-color: #d76571;
  color: #fff;
  box-shadow: 0 8px 18px rgba(152, 32, 48, 0.22);
}
.review-approve {
  background: #238e64;
  border-color: #4ab888;
  color: #fff;
  box-shadow: 0 8px 18px rgba(18, 116, 78, 0.21);
}
.review-decision.is-saving {
  animation: review-pulse 0.8s infinite alternate;
}
@keyframes review-pulse {
  to {
    filter: brightness(1.25);
  }
}
.review-complete {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  min-height: min(52vh, 500px);
  padding: 44px 20px;
  text-align: center;
}
.review-complete-mark {
  display: grid;
  width: 66px;
  height: 66px;
  margin-bottom: 18px;
  place-items: center;
  border: 1px solid rgba(81, 199, 145, 0.45);
  border-radius: 50%;
  background: rgba(28, 148, 99, 0.15);
  color: #64d5a3;
  font: 700 29px "Manrope", sans-serif;
}
.review-complete .eyebrow {
  color: #6fc69c;
}
.review-complete h3 {
  margin: 0;
  color: #f6ffff;
  font: 700 22px "Manrope", sans-serif;
  letter-spacing: -0.04em;
}
.review-complete p:last-child {
  margin: 8px 0 0;
  color: #94b2bf;
  font-size: 11px;
}
@media (max-width: 900px) {
  .review-stage-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .review-image-frame,
  .review-image-frame.is-empty,
  .review-image-frame.is-broken,
  .review-photo {
    min-height: min(58vh, 560px);
  }
  .review-context {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
  }
  .review-context-label,
  .review-context h3,
  .review-decision-copy,
  .review-decision-grid {
    grid-column: 1/-1;
  }
  .review-decision-copy {
    margin-top: 10px;
  }
}
@media (max-width: 760px) {
  .review-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .review-head-actions {
    width: 100%;
    justify-content: space-between;
  }
  .review-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .review-stage {
    padding: 12px;
  }
  .review-stage-topline {
    padding: 2px 2px 12px;
  }
  .review-image-frame,
  .review-image-frame.is-empty,
  .review-image-frame.is-broken,
  .review-photo {
    min-height: 55vw;
  }
  .review-context {
    display: flex;
  }
  .review-decision-copy {
    margin-top: 14px;
  }
}
@media (max-width: 430px) {
  .review-head-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .review-refresh {
    width: 100%;
  }
  .review-stage-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }
  .review-image-frame,
  .review-image-frame.is-empty,
  .review-image-frame.is-broken,
  .review-photo {
    min-height: 64vw;
  }
  .review-context {
    padding: 19px 15px 15px;
  }
  .review-context h3 {
    font-size: 20px;
  }
  .review-decision-grid {
    gap: 7px;
  }
  .review-decision {
    min-height: 76px;
    padding: 10px;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,
input {
  font: inherit;
}
.topbar {
  height: 78px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(calc((100vw - 1216px) / 2), 32px);
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 15px;
}
.brand img {
  width: 153px;
  height: auto;
  display: block;
}
.brand-divider {
  height: 29px;
  border-left: 1px solid #d7e1e9;
}
.brand-caption {
  font-size: 9px;
  line-height: 1.35;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: #688096;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 26px;
}
.live-indicator {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: #5d788f;
  display: flex;
  align-items: center;
  gap: 8px;
}
.live-indicator i {
  width: 7px;
  height: 7px;
  background: #25a977;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #e4f6ed;
}
.top-date {
  font-size: 12px;
  color: #8092a2;
}
.logout {
  font-size: 12px;
  text-decoration: none;
  color: #527087;
  border-left: 1px solid var(--line);
  padding-left: 22px;
}
.logout span {
  color: var(--blue);
  margin-left: 5px;
}
.page {
  max-width: 1216px;
  margin: 0 auto;
  padding: 42px 28px 28px;
}
.welcome {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: #7190a8;
  margin: 0 0 10px;
}
.welcome h1 {
  font:
    800 30px/1.2 "Manrope",
    sans-serif;
  letter-spacing: -0.04em;
  margin: 0;
  color: var(--navy);
}
.subheading {
  font-size: 14px;
  color: var(--muted);
  margin: 8px 0 0;
}
.welcome-right {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.welcome-right label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: #7890a3;
}
.welcome-right input {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  padding: 0 11px;
  color: var(--ink);
  font-size: 12px;
  outline: none;
}
.welcome-right input:focus,
.searchbox:focus-within {
  border-color: #70b6e0;
  box-shadow: 0 0 0 3px #e7f5fc;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
}
.summary-card {
  position: relative;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid #eaf0f4;
  border-radius: 10px;
  min-height: 142px;
  padding: 18px 19px 15px;
  overflow: hidden;
}
.summary-card.blue-card {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.metric-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: #8197a9;
}
.blue-card .metric-head {
  color: #bdd7e8;
}
.metric-icon {
  font-size: 20px;
  font-weight: 400;
  color: #9cb2c2;
}
.metric-icon.blue {
  color: #2389cb;
}
.summary-card strong {
  font:
    800 33px/1.2 "Manrope",
    sans-serif;
  letter-spacing: -0.04em;
  display: block;
  margin-top: 12px;
  color: var(--navy);
}
.blue-card strong {
  color: #fff;
}
.summary-card strong small {
  font-size: 18px;
  margin-left: 2px;
}
.summary-card p {
  font-size: 11px;
  color: #8295a4;
  margin: 5px 0 0;
}
.blue-card p {
  color: #bad0df;
}
.metric-rule {
  position: absolute;
  left: 19px;
  bottom: 0;
  width: 35px;
  height: 3px;
  background: #1590d2;
  border-radius: 3px 3px 0 0;
}
.progress-track {
  height: 4px;
  background: #edf2f5;
  margin-top: 12px;
  border-radius: 4px;
  overflow: hidden;
}
.progress-track i {
  height: 100%;
  width: 0;
  display: block;
  background: #1690d2;
  border-radius: 4px;
  transition: width 0.5s;
}
.content-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 39px;
}
.content-head h2 {
  font:
    700 20px/1.3 "Manrope",
    sans-serif;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--navy);
}
.content-head .eyebrow {
  margin-bottom: 6px;
}
.muted {
  color: var(--muted);
  font-size: 12px;
  margin: 6px 0 0;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
}
.searchbox {
  height: 38px;
  width: 228px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  align-items: center;
  padding: 0 11px;
  gap: 8px;
  transition: 0.15s;
}
.searchbox span {
  font-size: 20px;
  color: #85a0b3;
  transform: rotate(-15deg);
}
.searchbox input {
  border: 0;
  outline: 0;
  width: 100%;
  font-size: 11px;
  color: var(--ink);
  background: transparent;
}
.searchbox input::placeholder {
  color: #9aabb9;
}
.upload-button {
  height: 38px;
  border: 1px solid #b9d9ec;
  background: #f3faff;
  color: #0875b8;
  border-radius: 7px;
  padding: 0 13px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.15s;
}
.upload-button:hover {
  background: #e4f3fc;
  border-color: #84bddd;
}
.upload-button span {
  font-size: 15px;
  margin-right: 5px;
}
.filter-line {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  margin-top: 20px;
  color: #8193a1;
  font-size: 10px;
}
.legend {
  display: flex;
  align-items: center;
  gap: 6px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  margin-left: 9px;
}
.dot.done {
  background: #20a370;
}
.dot.pending {
  background: #d50c0c;
}
.brand-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 12px;
}
.brand-card {
  background: white;
  border: 1px solid #e7eef3;
  border-radius: 9px;
  box-shadow: 0 3px 12px rgba(18, 59, 92, 0.025);
  overflow: hidden;
  animation: rise 0.35s both;
}
.brand-toggle {
  border: 0;
  background: none;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(200px, 1.3fr) 1fr 1fr 1.2fr 20px;
  align-items: center;
  gap: 18px;
  text-align: left;
  padding: 16px 19px;
  cursor: pointer;
  color: inherit;
}
.brand-toggle:hover {
  background: #fbfdfe;
}
.brand-name-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-monogram {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #edf7fc;
  color: #0874b7;
  font:
    700 12px "Manrope",
    sans-serif;
  flex: none;
}
.brand-name {
  font:
    700 13px "Manrope",
    sans-serif;
  color: #193953;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-small {
  display: block;
  font-size: 9px;
  color: #94a4b0;
  margin-top: 3px;
}
.brand-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.brand-stat span:first-child {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #92a2ad;
}
.brand-stat strong {
  font-size: 12px;
  color: #37546b;
  font-weight: 600;
}
.brand-adherence {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-adherence b {
  font-size: 12px;
  color: #31516a;
  width: 32px;
}
.tiny-track {
  height: 4px;
  background: #eef2f5;
  border-radius: 4px;
  flex: 1;
  max-width: 85px;
  overflow: hidden;
}
.tiny-track i {
  height: 100%;
  display: block;
  background: #1995d0;
  border-radius: 4px;
}
.chevron {
  font-size: 17px;
  color: #99abb7;
  transition: transform 0.2s;
}
.brand-card.open .chevron {
  transform: rotate(180deg);
}
.brand-details {
  display: none;
  border-top: 1px solid #edf2f5;
  background: #fcfdfe;
  padding: 4px 18px 12px;
}
.brand-card.open .brand-details {
  display: block;
  animation: fade 0.25s;
}
.visit-row {
  display: grid;
  grid-template-columns: 1fr 1.15fr 95px 95px 100px;
  align-items: center;
  gap: 14px;
  padding: 11px 2px;
  border-bottom: 1px solid #edf2f5;
  font-size: 10px;
}
.visit-row:last-child {
  border-bottom: 0;
}
.visit-main {
  font-weight: 600;
  color: #385870;
}
.visit-main small {
  display: block;
  font-size: 9px;
  color: #92a3b0;
  font-weight: 400;
  margin-top: 3px;
}
.visit-promoter {
  color: #667e90;
}
.visit-day {
  color: #7990a0;
}
.status {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 600;
  border-radius: 20px;
  padding: 5px 8px;
  white-space: nowrap;
}
.status:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.status.ok {
  background: var(--green-bg);
  color: var(--green);
}
.status.pending {
  background: var(--amber-bg);
  color: var(--amber);
}
.photo-link {
  color: #087bbd;
  text-decoration: none;
}
.empty {
  padding: 32px;
  text-align: center;
  color: #8193a1;
  font-size: 12px;
}
.loading {
  padding: 32px;
  text-align: center;
  color: #8094a5;
  font-size: 12px;
}
.loading i {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid #d8e8f1;
  border-top-color: #1387c7;
  border-radius: 50%;
  vertical-align: -2px;
  margin-right: 8px;
  animation: spin 0.8s linear infinite;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 27px;
  padding-top: 15px;
  color: #9bacb8;
  font-size: 9px;
  letter-spacing: 0.1em;
}
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: #12385a;
  color: white;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 12px;
  box-shadow: 0 8px 24px #102c4530;
  transition: 0.22s;
  z-index: 9;
}
.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}
.login-page {
  min-height: 100vh;
  background: linear-gradient(115deg, #f6fafd 0%, #eef6fa 52%, #e7f2f8 100%);
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.login-page:before,
.login-page:after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border: 1px solid #dcebf4;
  border-radius: 50%;
  right: -210px;
  top: -180px;
}
.login-page:after {
  width: 650px;
  height: 650px;
  right: -290px;
  top: -265px;
}
.login-shell {
  width: min(100%, 390px);
  position: relative;
  z-index: 1;
}
.login-brand {
  text-align: center;
  margin-bottom: 26px;
}
.login-brand img {
  width: 210px;
  display: block;
  margin: 0 auto 13px;
}
.login-brand span {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: #7994a9;
  font-weight: 700;
}
.login-card {
  background: white;
  border: 1px solid #e0eaf0;
  border-radius: 12px;
  padding: 30px 32px;
  box-shadow: 0 18px 54px #163c5a12;
}
.login-card h1 {
  font:
    700 22px "Manrope",
    sans-serif;
  color: var(--navy);
  letter-spacing: -0.03em;
  margin: 0;
}
.login-card > .muted {
  font-size: 12px;
  line-height: 1.6;
  margin: 8px 0 23px;
}
.login-card label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #5b7488;
  margin: 14px 0;
}
.login-card input {
  width: 100%;
  height: 41px;
  border: 1px solid #dfe8ee;
  border-radius: 6px;
  margin-top: 7px;
  padding: 0 11px;
  outline: none;
  font-size: 13px;
  color: var(--ink);
}
.login-card input:focus {
  border-color: #78bce1;
  box-shadow: 0 0 0 3px #eaf6fc;
}
.primary-button {
  height: 43px;
  border: 0;
  border-radius: 6px;
  background: #0876bd;
  color: white;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 9px;
  box-shadow: 0 5px 12px #0876bd24;
}
.primary-button:hover {
  background: #0569aa;
}
.primary-button span {
  float: right;
  font-size: 17px;
  line-height: 12px;
}
.full {
  width: 100%;
  padding: 0 13px;
}
.login-error {
  background: #fff0f0;
  border: 1px solid #f4d4d4;
  color: #ad4747;
  padding: 9px 10px;
  border-radius: 5px;
  font-size: 11px;
}
.login-foot {
  text-align: center;
  color: #91a4b2;
  font-size: 9px;
  letter-spacing: 0.15em;
  margin: 21px 0;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (max-width: 850px) {
  .page {
    padding: 32px 20px;
  }
  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .content-head {
    align-items: flex-start;
    gap: 16px;
    flex-direction: column;
  }
  .toolbar {
    width: 100%;
  }
  .searchbox {
    flex: 1;
  }
  .brand-toggle {
    grid-template-columns: minmax(150px, 1.5fr) 1fr 1fr 16px;
    gap: 10px;
  }
  .brand-adherence {
    display: none;
  }
  .visit-row {
    grid-template-columns: 1fr 1fr 90px 90px;
  }
  .visit-row .photo-cell {
    display: none;
  }
}
@media (max-width: 650px) {
  .top-date {
    display: none;
  }
  .top-actions {
    gap: 13px;
  }
}
.top-actions form {
  margin: 0;
}
.logout {
  font: inherit;
  cursor: pointer;
  background: transparent;
  border: 0;
  font-size: 12px;
  text-decoration: none;
  color: #527087;
  border-left: 1px solid var(--line);
  padding: 10px 0 10px 22px;
}
.logout span {
  color: var(--blue);
  margin-left: 5px;
}
.export-button {
  height: 38px;
  min-height: 44px;
  border: 1px solid #168451;
  background: #168451;
  color: #fff;
  border-radius: 7px;
  padding: 0 13px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.15s;
}
.export-button:hover:not(:disabled) {
  background: #116c41;
  border-color: #116c41;
}
.export-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.brand-toggle,
.upload-button,
.primary-button {
  min-height: 44px;
}
.brand-toggle:focus-visible,
.upload-button:focus-visible,
.export-button:focus-visible,
.primary-button:focus-visible,
.logout:focus-visible {
  outline: 3px solid #70b6e0;
  outline-offset: 2px;
}
@media (max-width: 540px) {
  .topbar {
    height: 65px;
    padding: 0 16px;
  }
  .brand img {
    width: 120px;
  }
  .brand {
    gap: 10px;
  }
  .brand-caption {
    font-size: 8px;
  }
  .top-actions {
    gap: 12px;
  }
  .live-indicator,
  .top-date {
    display: none;
  }
  .logout {
    padding: 10px 0 10px 12px;
  }
  .page {
    padding: 27px 15px;
  }
  .welcome {
    align-items: flex-start;
    gap: 14px;
    flex-direction: column;
  }
  .welcome h1 {
    font-size: 26px;
  }
  .welcome-right {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .welcome-right input {
    width: 160px;
  }
  .summary-grid {
    gap: 9px;
  }
  .summary-card {
    padding: 14px 13px;
    min-height: 132px;
  }
  .metric-head {
    font-size: 8px;
  }
  .summary-card strong {
    font-size: 29px;
  }
  .summary-card p {
    font-size: 10px;
    line-height: 1.4;
  }
  .metric-rule {
    left: 13px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .searchbox {
    width: 100%;
    flex: auto;
  }
  .upload-button {
    width: 100%;
  }
  .filter-line {
    margin-top: 12px;
  }
  .brand-toggle {
    grid-template-columns: 1fr 1fr 18px;
    padding: 12px;
    gap: 8px;
  }
  .brand-name-wrap {
    grid-column: 1/3;
  }
  .brand-stat:nth-child(2) {
    display: none;
  }
  .brand-stat:nth-child(3) {
    grid-column: 1/2;
  }
  .visit-row {
    grid-template-columns: 1fr auto;
    gap: 7px;
  }
  .visit-promoter {
    grid-column: 1/2;
  }
  .visit-row .status {
    grid-column: 2;
    grid-row: 1;
  }
  .visit-day {
    grid-column: 1;
  }
  .page-footer {
    font-size: 8px;
  }
  .login-card {
    padding: 25px 22px;
  }
}
@media (max-width: 360px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }
  .summary-card {
    min-height: 112px;
  }
  .welcome-right {
    align-items: flex-start;
    flex-direction: column;
  }
  .welcome-right input {
    width: 100%;
  }
  .filter-line {
    align-items: flex-start;
    height: auto;
    min-height: 44px;
    gap: 8px;
    padding: 12px 0;
  }
  .legend {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .brand-name {
    white-space: normal;
  }
}
@media (max-width: 540px) {
  .export-button,
  .upload-button {
    width: calc(50% - 5px);
    flex: 1;
  }
}
.brand-monogram img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
  border-radius: inherit;
  background: #fff;
}
.logo-modal {
  width: min(470px, calc(100% - 28px));
  max-height: min(90vh, 720px);
  padding: 0;
  border: 1px solid #dce7ee;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 80px #102c4530;
}
.logo-modal::backdrop {
  background: rgba(8, 30, 49, 0.48);
  backdrop-filter: blur(3px);
}
.logo-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 23px 25px 17px;
  border-bottom: 1px solid var(--line);
}
.logo-modal-head .eyebrow {
  margin-bottom: 6px;
}
.logo-modal-head h2 {
  margin: 0;
  color: var(--navy);
  font:
    700 20px/1.3 "Manrope",
    sans-serif;
}
.logo-modal-head .muted {
  margin-top: 5px;
  line-height: 1.5;
}
.modal-close {
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #617b8e;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover {
  background: #f3f8fb;
}
.logo-modal-body {
  padding: 21px 25px 25px;
}
.logo-field-label {
  display: block;
  margin-bottom: 7px;
  color: #526d81;
  font-size: 11px;
  font-weight: 700;
}
.logo-select {
  width: 100%;
  height: 42px;
  border: 1px solid #dce6ed;
  border-radius: 7px;
  padding: 0 11px;
  background: #fff;
  color: var(--ink);
  outline: none;
}
.logo-select:focus,
.logo-dropzone:focus-visible {
  border-color: #70b6e0;
  box-shadow: 0 0 0 3px #e7f5fc;
  outline: none;
}
.logo-current {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 13px 0;
  padding: 9px 12px;
  border: 1px solid #edf1f4;
  border-radius: 8px;
  background: #f8fafc;
  color: #6d8292;
  font-size: 10px;
}
.logo-current img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border: 1px solid #e8edf1;
  border-radius: 7px;
  background: #fff;
}
.logo-no-image {
  color: #8293a0;
}
.logo-dropzone {
  min-height: 145px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px;
  border: 1px dashed #a9c7d9;
  border-radius: 10px;
  background: #f5faff;
  color: #5d778a;
  text-align: center;
  cursor: pointer;
  transition:
    background 0.16s,
    border-color 0.16s,
    transform 0.16s;
}
.logo-dropzone:hover,
.logo-dropzone.drag-over {
  border-color: #1687c7;
  background: #eaf6fd;
}
.logo-dropzone.drag-over {
  transform: scale(1.01);
}
.drop-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #e3f2fb;
  color: #0878c9;
  font-size: 20px;
}
.logo-dropzone strong {
  color: #24465e;
  font-size: 12px;
}
.logo-dropzone > span:not(.drop-icon) {
  font-size: 10px;
}
.logo-dropzone small {
  margin-top: 3px;
  color: #8093a2;
  font-size: 9px;
}
.logo-upload-status {
  min-height: 20px;
  padding-top: 7px;
  color: #59768a;
  font-size: 10px;
}
.logo-modal-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
}
.logo-modal-actions .export-button {
  min-height: 42px;
}
.logo-remove {
  height: 42px;
  padding: 0 13px;
  border: 1px solid #edd3d3;
  border-radius: 7px;
  background: #fff7f7;
  color: #a34b4b;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.logo-remove:hover {
  background: #ffeded;
}
.logo-remove:disabled {
  opacity: 0.55;
  cursor: wait;
}
.modal-backdrop {
  display: none;
}
@media (max-width: 540px) {
  .logo-modal-head {
    padding: 19px 18px 15px;
  }
  .logo-modal-body {
    padding: 18px;
  }
  .logo-dropzone {
    min-height: 130px;
  }
}
.modal-close:focus-visible,
.logo-remove:focus-visible {
  outline: 3px solid #70b6e0;
  outline-offset: 2px;
}
.promoter-tab {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin: 30px 0 18px;
  padding: 22px 24px;
  background: #092b53;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(9, 43, 83, 0.12);
}
.promoter-tab h2 {
  margin: 0;
  font:
    700 21px/1.25 "Manrope",
    sans-serif;
  letter-spacing: -0.03em;
}
.promoter-tab .eyebrow {
  color: #8db7d2;
  margin-bottom: 7px;
}
.promoter-tab .muted {
  color: #b8d0df;
}
.promoter-picker {
  display: grid;
  grid-template-columns: 180px auto;
  gap: 8px;
  align-items: end;
}
.promoter-picker label {
  grid-column: 1/-1;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: #a8c4d5;
  font-weight: 700;
}
.promoter-picker select {
  height: 42px;
  border: 1px solid #5d87a4;
  border-radius: 7px;
  background: #fff;
  color: #183c59;
  padding: 0 10px;
  font-size: 11px;
}
.promoter-picker .export-button {
  height: 42px;
  white-space: nowrap;
}
.promoter-modal {
  width: min(640px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 14px;
  color: var(--ink);
  box-shadow: 0 24px 80px #102c4530;
}
.promoter-modal::backdrop {
  background: rgba(8, 30, 49, 0.52);
  backdrop-filter: blur(3px);
}
.promoter-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 23px 25px 17px;
  border-bottom: 1px solid var(--line);
}
.promoter-modal-head h2 {
  margin: 0;
  color: var(--navy);
  font:
    700 21px "Manrope",
    sans-serif;
}
.promoter-modal-body {
  padding: 8px 25px 20px;
  max-height: 58vh;
  overflow: auto;
}
.route-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #edf2f5;
}
.route-row strong {
  display: block;
  color: #24465e;
  font-size: 12px;
}
.route-row small {
  display: block;
  color: #8295a4;
  font-size: 10px;
  margin-top: 4px;
}
.tab-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 4px;
  border-radius: 20px;
  background: #e4f3fb;
  color: #0876bd;
  font-size: 10px;
}
@media (max-width: 650px) {
  .promoter-tab {
    align-items: stretch;
    flex-direction: column;
    padding: 18px;
  }
  .promoter-picker {
    grid-template-columns: 1fr;
  }
  .promoter-picker label {
    grid-column: auto;
  }
  .promoter-picker .export-button {
    width: 100%;
  }
  .promoter-modal-head {
    padding: 19px 18px 15px;
  }
  .promoter-modal-body {
    padding: 8px 18px 18px;
  }
}
/* Promotores: alinhamento visual com os componentes do painel */
.view-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.view-tab {
  height: 38px;
  padding: 0 15px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #8295a4;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.view-tab.active {
  color: var(--navy);
  border-bottom-color: var(--blue);
}
.promoter-tab {
  background: #fff;
  color: var(--ink);
  border: 1px solid #e7eef3;
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 20px 21px;
  margin: 0 0 20px;
}
.promoter-tab h2 {
  color: var(--navy);
  font-size: 20px;
}
.promoter-tab .eyebrow {
  color: #7190a8;
}
.promoter-tab .muted {
  color: var(--muted);
}
.promoter-picker label {
  color: #7890a3;
}
.promoter-picker select {
  height: 38px;
  border-color: var(--line);
  color: var(--ink);
}
.promoter-picker .export-button {
  height: 38px;
  min-height: 38px;
  background: #f3faff;
  color: #0875b8;
  border-color: #b9d9ec;
  box-shadow: none;
}
.page {
  width: 100%;
  max-width: 1216px;
  margin-left: auto;
  margin-right: auto;
  overflow: visible;
}
.promoter-tab {
  width: 100%;
  min-width: 0;
}
.promoter-picker {
  min-width: 0;
}
.promoter-picker select {
  min-width: 0;
  width: 100%;
}
.view-tabs {
  width: 100%;
}
.replacements-section {
  margin-top: 36px;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.section-heading h2 {
  margin: 0;
  color: var(--navy);
  font:
    700 20px/1.3 "Manrope",
    sans-serif;
  letter-spacing: -0.03em;
}
.section-heading .eyebrow {
  margin-bottom: 6px;
}
.replacement-count {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fff1e7;
  color: #b96526;
  font:
    700 13px "Manrope",
    sans-serif;
  border: 1px solid #f5ddca;
}
.replacement-list {
  display: flex;
  flex-direction: column;
  margin-top: 9px;
  background: #fff;
  border: 1px solid #e7eef3;
  border-radius: 9px;
  box-shadow: 0 3px 12px rgba(18, 59, 92, 0.025);
  overflow: hidden;
}
.replacement-row {
  display: grid;
  grid-template-columns: 30px minmax(180px, 1.5fr) 1.2fr 110px auto;
  align-items: center;
  gap: 13px;
  padding: 13px 16px;
  border-bottom: 1px solid #edf2f5;
  font-size: 10px;
}
.replacement-row:last-child {
  border-bottom: 0;
}
.replacement-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fff4eb;
  color: #d27934;
  font-size: 16px;
}
.replacement-main strong,
.replacement-plan span,
.replacement-date span {
  display: block;
  color: #385870;
  font-weight: 600;
}
.replacement-main small,
.replacement-plan small,
.replacement-date small {
  display: block;
  color: #92a3b0;
  font-size: 9px;
  margin-top: 3px;
}
.replacement-plan span {
  color: #b96526;
  font-size: 10px;
}
.replacement-date {
  text-align: left;
}
.replacement-empty {
  padding: 22px;
  text-align: center;
  color: #8193a1;
  font-size: 11px;
}
@media (max-width: 850px) {
  .replacement-row {
    grid-template-columns: 30px 1fr 100px auto;
  }
  .replacement-plan {
    display: none;
  }
}
@media (max-width: 540px) {
  .replacements-section {
    margin-top: 28px;
  }
  .section-heading {
    align-items: flex-start;
    gap: 12px;
  }
  .replacement-row {
    grid-template-columns: 28px 1fr auto;
    gap: 9px;
    padding: 12px;
  }
  .replacement-date {
    grid-column: 2;
  }
  .replacement-row .photo-link {
    grid-column: 3;
    grid-row: 1/3;
  }
  .replacement-icon {
    width: 26px;
    height: 26px;
  }
}
.replacement-bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}
.replacement-card {
  min-height: 190px;
  background: #fff;
  border: 1px solid #e7eef3;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(18, 59, 92, 0.025);
  padding: 16px;
  animation: rise 0.35s both;
}
.replacement-card-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 13px;
  border-bottom: 1px solid #edf2f5;
}
.replacement-logo {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 10px;
  background: #edf7fc;
  color: #0874b7;
  font:
    700 12px "Manrope",
    sans-serif;
  overflow: hidden;
}
.replacement-logo img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 4px;
  object-fit: contain;
  background: #fff;
}
.replacement-card-brand strong {
  display: block;
  color: #193953;
  font:
    700 13px "Manrope",
    sans-serif;
}
.replacement-card-brand small {
  display: block;
  color: #94a4b0;
  font-size: 9px;
  margin-top: 4px;
}
.replacement-card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 12px;
}
.replacement-card-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
}
.replacement-card-item strong {
  display: block;
  color: #385870;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.replacement-card-item small {
  display: block;
  color: #92a3b0;
  font-size: 9px;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.replacement-card-status {
  color: #b96526;
  font-size: 9px;
  white-space: nowrap;
}
.replacement-card-item .photo-link {
  font-size: 9px;
  white-space: nowrap;
}
@media (max-width: 650px) {
  .replacement-bento {
    grid-template-columns: 1fr;
  }
  .replacement-card {
    min-height: 0;
  }
  .replacement-card-item {
    grid-template-columns: 1fr auto;
  }
  .replacement-card-item .photo-link {
    grid-column: 2;
    grid-row: 1/3;
  }
}
.replacement-card-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding-bottom: 14px;
}
.replacement-logo {
  width: 54px;
  height: 54px;
  border-radius: 12px;
}
.replacement-card-brand strong {
  margin-top: 8px;
}
.replacement-card-brand small {
  margin-top: 4px;
}
.replacement-bento {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.replacement-card {
  min-height: 178px;
  height: auto;
  padding: 28px 22px 22px;
  border: 2px solid #0b8fe8;
  border-radius: 16px;
  box-shadow: 0 7px 20px rgba(18, 59, 92, 0.035);
  cursor: pointer;
  overflow: hidden;
  transition:
    box-shadow 0.2s,
    transform 0.2s,
    border-color 0.2s;
}
.replacement-card:hover,
.replacement-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(18, 59, 92, 0.08);
  outline: none;
}
.replacement-card:focus-visible {
  border-color: #075fc1;
}
.replacement-card:after {
  content: "REPOSIÇÃO";
  right: 25px;
  top: 18px;
  color: #dd7d3d;
  font-size: 9px;
}
.replacement-card-brand {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  align-items: center;
  gap: 26px;
  min-height: 118px;
  padding: 0 34px 0 12px;
  text-align: left;
}
.replacement-logo {
  width: 154px;
  height: 154px;
  border-radius: 0;
  background: #182e60;
  box-shadow: none;
}
.replacement-logo img {
  padding: 12px;
}
.replacement-card-brand strong {
  margin: 0;
  color: #182c91;
  font-size: 25px;
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.replacement-card-brand small {
  margin-top: 9px;
  color: #7790a4;
  font-size: 12px;
}
.replacement-more {
  position: absolute;
  right: 25px;
  bottom: 18px;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  border: 2px solid #111;
  border-radius: 50%;
  background: #fff;
  color: #111;
  display: grid;
  place-items: center;
  z-index: 2;
}
.replacement-more span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.replacement-more b {
  font-size: 25px;
  font-weight: 400;
  line-height: 18px;
  transform: translateY(-2px);
}
.replacement-card.open {
  border-color: #0878c9;
}
.replacement-card.open .replacement-card-brand {
  padding-bottom: 18px;
}
.replacement-card-list {
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid #e8eef3;
}
.replacement-card.open .replacement-more {
  background: #111;
  color: #fff;
  border-color: #111;
}
.replacement-card.open .replacement-more b {
  transform: translateY(2px);
}
@media (max-width: 800px) {
  .replacement-card-brand {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 17px;
    padding-right: 28px;
  }
  .replacement-logo {
    width: 108px;
    height: 108px;
  }
  .replacement-card-brand strong {
    font-size: 19px;
  }
}
@media (max-width: 650px) {
  .replacement-bento {
    grid-template-columns: 1fr;
  }
  .replacement-card {
    min-height: 160px;
  }
  .replacement-card-brand {
    grid-template-columns: 100px minmax(0, 1fr);
    min-height: 100px;
    gap: 16px;
  }
  .replacement-logo {
    width: 100px;
    height: 100px;
  }
  .replacement-card-brand strong {
    font-size: 18px;
  }
  .replacement-more {
    right: 18px;
    bottom: 16px;
  }
}
.metric-skeleton {
  display: block;
  width: 76px;
  height: 32px;
  border-radius: 6px;
  background: linear-gradient(90deg, #eaf0f4 25%, #f7fafb 50%, #eaf0f4 75%);
  background-size: 200% 100%;
  animation: skeleton-wave 1.15s infinite;
}
.metric-skeleton-short {
  width: 64px;
}
.skeleton-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 12px;
}
.skeleton-row {
  height: 66px;
  display: grid;
  grid-template-columns: 34px 1fr 90px;
  align-items: center;
  gap: 13px;
  padding: 0 18px;
  background: #fff;
  border: 1px solid #e7eef3;
  border-radius: 9px;
}
.skeleton-row i {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #eaf0f4;
  animation: skeleton-pulse 1.1s infinite;
}
.skeleton-row span {
  width: 58%;
  height: 10px;
  border-radius: 5px;
  background: #eaf0f4;
  animation: skeleton-pulse 1.1s 0.12s infinite;
}
.skeleton-row b {
  width: 70px;
  height: 9px;
  border-radius: 5px;
  background: #eaf0f4;
  animation: skeleton-pulse 1.1s 0.22s infinite;
}
.inline-loader {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 5px;
  vertical-align: -1px;
  border: 2px solid #dbe8ef;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
.db-available-dates {
  display: block;
  margin-top: 6px;
  color: #94a4b0;
  font-size: 9px;
}
.api-refresh-button:disabled {
  opacity: 0.6;
  cursor: wait;
}
@keyframes skeleton-wave {
  to {
    background-position: -200% 0;
  }
}
@keyframes skeleton-pulse {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}
.replacement-card-list {
  display: none;
}
.replacement-card.open .replacement-card-list {
  display: flex;
}
.replacement-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 13px;
  padding: 10px 0 0;
  border: 0;
  border-top: 1px solid #edf2f5;
  background: transparent;
  color: #0878c9;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.replacement-more b {
  font-size: 15px;
  font-weight: 400;
  line-height: 10px;
}
.replacement-more:hover {
  color: #0569aa;
}
.view-tabs {
  height: 48px;
  align-items: end;
  margin: 0 0 32px;
  padding-left: 4px;
}
.view-tab {
  position: relative;
  height: 48px;
  padding: 0 18px;
  color: #7890a3;
  font-size: 12px;
  letter-spacing: -0.01em;
}
.view-tab:first-child {
  padding-left: 14px;
}
.view-tab.active {
  color: var(--navy);
}
.view-tab.active:after {
  height: 3px;
  bottom: -1px;
  border-radius: 3px 3px 0 0;
}
.tab-count {
  min-width: 23px;
  height: 23px;
  margin-left: 7px;
  background: #e7f4fb;
  color: #0876bd;
  font-size: 10px;
}
.promoter-tab {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 36px;
  margin: 0 0 36px;
  padding: 28px 30px;
  background: #fff;
  border: 1px solid #e3edf3;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(18, 59, 92, 0.045);
  overflow: hidden;
}
.promoter-tab:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #0878c9;
}
.promoter-tab h2 {
  font-size: 23px;
  letter-spacing: -0.045em;
}
.promoter-picker {
  grid-template-columns: 220px auto;
  gap: 9px;
}
.promoter-picker select {
  height: 44px;
  border-radius: 8px;
  padding: 0 13px;
  font-size: 12px;
  box-shadow: 0 2px 7px rgba(18, 59, 92, 0.04);
}
.promoter-picker .export-button {
  height: 44px;
  min-height: 44px;
  border-radius: 8px;
  background: #0878c9;
  color: #fff;
  border-color: #0878c9;
  box-shadow: 0 5px 14px rgba(8, 120, 201, 0.18);
}
.promoter-picker .export-button:hover {
  background: #0569aa;
  border-color: #0569aa;
}
.replacements-section {
  margin-top: 42px;
}
.section-heading {
  padding-bottom: 17px;
}
.section-heading h2 {
  font-size: 22px;
  letter-spacing: -0.04em;
}
.section-heading .muted {
  max-width: 510px;
  line-height: 1.55;
}
.replacement-count {
  min-width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #fff5ed;
  color: #c36a2b;
  border-color: #f5dfcc;
  font-size: 14px;
}
.replacement-bento {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 13px;
}
.replacement-card {
  position: relative;
  min-height: 250px;
  padding: 22px 20px 15px;
  border-radius: 12px;
  box-shadow: 0 5px 18px rgba(18, 59, 92, 0.035);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.replacement-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 13px 28px rgba(18, 59, 92, 0.085);
}
.replacement-card:after {
  content: "REPOSIÃ‡ÃƒO";
  position: absolute;
  right: 16px;
  top: 15px;
  color: #d78a4f;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.replacement-card-brand {
  padding: 0 0 18px;
  border-bottom: 0;
}
.replacement-logo {
  width: 88px;
  height: 88px;
  border-radius: 3px;
  background: #172e61;
  color: #fff;
  box-shadow: 0 8px 18px rgba(23, 46, 97, 0.16);
}
.replacement-logo img {
  padding: 7px;
}
.replacement-card-brand strong {
  margin-top: 13px;
  font-size: 14px;
  color: #142d58;
}
.replacement-card-brand small {
  font-size: 10px;
  margin-top: 5px;
}
.replacement-card-list {
  gap: 0;
  padding: 14px 0 0;
  border-top: 1px solid #edf2f5;
}
.replacement-card-item {
  padding: 10px 0;
  border-bottom: 1px solid #f1f4f6;
}
.replacement-card-item:last-child {
  border-bottom: 0;
}
.replacement-card-item strong {
  font-size: 11px;
}
.replacement-card-status {
  font-size: 9px;
  color: #c36a2b;
}
.replacement-more {
  justify-content: center;
  gap: 8px;
  margin-top: 11px;
  padding-top: 12px;
  color: #0878c9;
}
.replacement-more b {
  position: relative;
  top: -1px;
}
.replacement-card.open .replacement-more {
  color: #6c8496;
}
.db-available-dates {
  font-size: 9px;
  letter-spacing: 0.01em;
}
@media (max-width: 650px) {
  .promoter-tab {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 22px 19px;
  }
  .promoter-picker {
    grid-template-columns: 1fr;
  }
  .promoter-picker .export-button {
    width: 100%;
  }
  .replacement-bento {
    grid-template-columns: 1fr;
  }
  .replacement-card {
    min-height: 220px;
  }
}

/* Replacement cards: final compact horizontal treatment. Kept last to avoid legacy overrides. */
.replacement-card {
  box-sizing: border-box;
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  min-height: 250px;
  padding: 22px 20px 62px;
  background: #fff;
  border: 2px solid #0b8fe8;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}
.replacement-card-brand {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  align-items: center;
  gap: 26px;
  min-height: 154px;
  padding: 0 34px 0 12px;
  border: 0;
  text-align: left;
}
.replacement-logo {
  display: grid;
  place-items: center;
  width: 154px;
  height: 154px;
  flex: none;
  border-radius: 0;
  background: #182e60;
  color: #fff;
  box-shadow: none;
  overflow: hidden;
}
.replacement-logo img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 12px;
  object-fit: contain;
  background: transparent;
}
.replacement-card-brand strong {
  display: block;
  margin: 0;
  color: #182c91;
  font-size: 25px;
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.replacement-card-brand small {
  display: block;
  margin-top: 9px;
  color: #7790a4;
  font-size: 12px;
}
.replacement-card-list {
  display: none;
  flex-direction: column;
  gap: 0;
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid #e8eef3;
}
.replacement-card.open .replacement-card-list {
  display: flex;
}
.replacement-card-item {
  padding: 10px 0;
  border-bottom: 1px solid #f1f4f6;
}
.replacement-card-item:last-child {
  border-bottom: 0;
}
.replacement-more {
  position: absolute;
  right: 25px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  min-height: 38px;
  margin: 0;
  padding: 0;
  border: 2px solid #111;
  border-top: 2px solid #111;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 0;
  line-height: 1;
  z-index: 2;
}
.replacement-more span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.replacement-more b {
  display: block;
  font-size: 25px;
  font-weight: 400;
  line-height: 18px;
  transform: translateY(-2px);
}
.replacement-more:hover {
  color: #111;
  background: #f7f9fa;
}
.replacement-card.open {
  border-color: #0878c9;
}
.replacement-card.open .replacement-more {
  background: #111;
  color: #fff;
  border-color: #111;
}
.replacement-card.open .replacement-more b {
  transform: translateY(2px);
}
@media (max-width: 800px) {
  .replacement-card-brand {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 17px;
    padding-right: 28px;
  }
  .replacement-logo {
    width: 108px;
    height: 108px;
  }
  .replacement-card-brand strong {
    font-size: 19px;
  }
}
@media (max-width: 650px) {
  .replacement-card {
    min-height: 220px;
    padding: 18px 16px 58px;
  }
  .replacement-card-brand {
    grid-template-columns: 100px minmax(0, 1fr);
    min-height: 100px;
    gap: 16px;
    padding: 0 12px;
  }
  .replacement-logo {
    width: 100px;
    height: 100px;
  }
  .replacement-card-brand strong {
    font-size: 18px;
  }
  .replacement-more {
    right: 18px;
    bottom: 16px;
  }
}
.replacement-card-list {
  display: none;
}
.replacement-card.open .replacement-card-list {
  display: flex;
}
.replacement-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 13px;
  padding: 10px 0 0;
  border: 0;
  border-top: 1px solid #edf2f5;
  background: transparent;
  color: #0878c9;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.replacement-more b {
  font-size: 15px;
  font-weight: 400;
  line-height: 10px;
}
.replacement-more:hover {
  color: #0569aa;
}
.view-tabs {
  height: 48px;
  align-items: end;
  margin: 0 0 32px;
  padding-left: 4px;
}
.view-tab {
  position: relative;
  height: 48px;
  padding: 0 18px;
  color: #7890a3;
  font-size: 12px;
  letter-spacing: -0.01em;
}
.view-tab:first-child {
  padding-left: 14px;
}
.view-tab.active {
  color: var(--navy);
}
.view-tab.active:after {
  height: 3px;
  bottom: -1px;
  border-radius: 3px 3px 0 0;
}
.tab-count {
  min-width: 23px;
  height: 23px;
  margin-left: 7px;
  background: #e7f4fb;
  color: #0876bd;
  font-size: 10px;
}
.promoter-tab {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 36px;
  margin: 0 0 36px;
  padding: 28px 30px;
  background: #fff;
  border: 1px solid #e3edf3;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(18, 59, 92, 0.045);
  overflow: hidden;
}
.promoter-tab:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #0878c9;
}
.promoter-tab h2 {
  font-size: 23px;
  letter-spacing: -0.045em;
}
.promoter-picker {
  grid-template-columns: 220px auto;
  gap: 9px;
}
.promoter-picker select {
  height: 44px;
  border-radius: 8px;
  padding: 0 13px;
  font-size: 12px;
  box-shadow: 0 2px 7px rgba(18, 59, 92, 0.04);
}
.promoter-picker .export-button {
  height: 44px;
  min-height: 44px;
  border-radius: 8px;
  background: #0878c9;
  color: #fff;
  border-color: #0878c9;
  box-shadow: 0 5px 14px rgba(8, 120, 201, 0.18);
}
.promoter-picker .export-button:hover {
  background: #0569aa;
  border-color: #0569aa;
}
.replacements-section {
  margin-top: 42px;
}
.section-heading {
  padding-bottom: 17px;
}
.section-heading h2 {
  font-size: 22px;
  letter-spacing: -0.04em;
}
.section-heading .muted {
  max-width: 510px;
  line-height: 1.55;
}
.replacement-count {
  min-width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #fff5ed;
  color: #c36a2b;
  border-color: #f5dfcc;
  font-size: 14px;
}
.replacement-bento {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 13px;
}
.replacement-card {
  position: relative;
  min-height: 250px;
  padding: 22px 20px 15px;
  border-radius: 12px;
  box-shadow: 0 5px 18px rgba(18, 59, 92, 0.035);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.replacement-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 13px 28px rgba(18, 59, 92, 0.085);
}
.replacement-card:after {
  content: "REPOSIÇÃO";
  position: absolute;
  right: 16px;
  top: 15px;
  color: #d78a4f;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.replacement-card-brand {
  padding: 0 0 18px;
  border-bottom: 0;
}
.replacement-logo {
  width: 88px;
  height: 88px;
  border-radius: 3px;
  background: #172e61;
  color: #fff;
  box-shadow: 0 8px 18px rgba(23, 46, 97, 0.16);
}
.replacement-logo img {
  padding: 7px;
}
.replacement-card-brand strong {
  margin-top: 13px;
  font-size: 14px;
  color: #142d58;
}
.replacement-card-brand small {
  font-size: 10px;
  margin-top: 5px;
}
.replacement-card-list {
  gap: 0;
  padding: 14px 0 0;
  border-top: 1px solid #edf2f5;
}
.replacement-card-item {
  padding: 10px 0;
  border-bottom: 1px solid #f1f4f6;
}
.replacement-card-item:last-child {
  border-bottom: 0;
}
.replacement-card-item strong {
  font-size: 11px;
}
.replacement-card-status {
  font-size: 9px;
  color: #c36a2b;
}
.replacement-more {
  justify-content: center;
  gap: 8px;
  margin-top: 11px;
  padding-top: 12px;
  color: #0878c9;
}
.replacement-more b {
  position: relative;
  top: -1px;
}
.replacement-card.open .replacement-more {
  color: #6c8496;
}
.db-available-dates {
  font-size: 9px;
  letter-spacing: 0.01em;
}
@media (max-width: 650px) {
  .promoter-tab {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 22px 19px;
  }
  .promoter-picker {
    grid-template-columns: 1fr;
  }
  .promoter-picker .export-button {
    width: 100%;
  }
  .replacement-bento {
    grid-template-columns: 1fr;
  }
  .replacement-card {
    min-height: 220px;
  }
}
/* Reposições: cards compactos e contidos. */
.replacement-card {
  min-height: 0;
  height: auto;
  padding: 22px 20px 58px;
  border: 1px solid #dce8ef;
  border-radius: 12px;
  box-shadow: 0 5px 18px rgba(18, 59, 92, 0.045);
}
.replacement-card-brand {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  min-height: 112px;
  padding: 0 28px 0 0;
  text-align: left;
}
.replacement-logo {
  width: 112px;
  height: 112px;
  border-radius: 10px;
  background: #182e60;
  box-shadow: 0 8px 18px rgba(23, 46, 97, 0.12);
}
.replacement-card-brand strong {
  margin: 0;
  color: #142d58;
  font-size: 21px;
  line-height: 1.12;
  letter-spacing: -0.04em;
}
.replacement-card-brand small {
  margin-top: 8px;
  color: #7790a4;
  font-size: 11px;
}
.replacement-more {
  position: absolute;
  right: 20px;
  bottom: 16px;
  width: auto;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 8px 0 0;
  border: 0;
  border-top: 1px solid #edf2f5;
  border-radius: 0;
  background: transparent;
  color: #0878c9;
  font-size: 10px;
}
@media (max-width: 800px) {
  .replacement-card-brand {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 16px;
  }
  .replacement-logo {
    width: 92px;
    height: 92px;
  }
  .replacement-card-brand strong {
    font-size: 18px;
  }
}
@media (max-width: 650px) {
  .replacement-card {
    padding: 18px 15px 55px;
  }
  .replacement-card-brand {
    grid-template-columns: 78px minmax(0, 1fr);
    min-height: 78px;
    gap: 13px;
  }
  .replacement-logo {
    width: 78px;
    height: 78px;
  }
  .replacement-card-brand strong {
    font-size: 16px;
  }
}
.replacement-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  right: 20px;
  bottom: 14px;
  width: calc(100% - 40px);
  height: 28px;
  padding: 8px 0 0;
  border-top: 1px solid #edf2f5;
  transform: none;
}
.replacement-more b {
  display: block;
  margin: 0;
  font-size: 15px;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 0.2s ease;
}
.replacement-card.open .replacement-more b {
  transform: rotate(180deg);
}
.replacement-card.open .replacement-more {
  background: transparent !important;
  color: #0878c9 !important;
  border: 0;
  border-top: 1px solid #edf2f5;
  border-radius: 0;
  box-shadow: none;
}
@media (max-width: 650px) {
  .replacement-more {
    right: 15px;
    bottom: 13px;
    width: calc(100% - 30px);
  }
}

/* Aba de promotores: painel semanal mobile-first. */
.view-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom-color: #dce8ef;
}
.view-tabs::-webkit-scrollbar {
  display: none;
}
.view-tab {
  flex: 0 0 auto;
  border-radius: 8px 8px 0 0;
  white-space: nowrap;
  transition:
    color 0.2s,
    background 0.2s;
}
.view-tab:hover {
  background: #f1f7fa;
  color: var(--navy);
}
.promoter-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  margin: 0 0 28px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}
.promoter-tab:before {
  display: none;
}
.promoter-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  padding: 26px 28px 25px;
  background: var(--navy);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(10, 43, 84, 0.13);
  overflow: hidden;
}
.promoter-head:after {
  content: "";
  position: absolute;
  right: -72px;
  top: -108px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(148, 208, 235, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 22px rgba(148, 208, 235, 0.04),
    0 0 0 44px rgba(148, 208, 235, 0.025);
  pointer-events: none;
}
.promoter-intro,
.promoter-picker {
  position: relative;
  z-index: 1;
}
.promoter-intro h2 {
  max-width: 540px;
  margin: 0;
  color: #fff;
  font:
    800 27px/1.1 "Manrope",
    sans-serif;
  letter-spacing: -0.05em;
  text-wrap: balance;
}
.promoter-intro .eyebrow {
  margin-bottom: 9px;
  color: #8dc5df;
}
.promoter-intro .muted {
  max-width: 470px;
  margin-top: 10px;
  color: #bfd4e0;
  line-height: 1.5;
}
.promoter-picker {
  display: grid;
  grid-template-columns: minmax(210px, 240px) auto;
  gap: 9px;
  align-items: end;
}
.promoter-picker label {
  grid-column: 1/-1;
  color: #a8c8d8;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.promoter-picker select {
  width: 100%;
  height: 44px;
  border: 1px solid #6d96ad;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 13px;
  font-size: 12px;
  outline: none;
}
.promoter-picker select:focus {
  border-color: #a8e0f5;
  box-shadow: 0 0 0 3px rgba(137, 211, 239, 0.18);
}
.promoter-picker .export-button {
  height: 44px;
  min-height: 44px;
  border: 1px solid #1e9bd2;
  border-radius: 8px;
  background: #168bc3;
  color: #fff;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.14);
  white-space: nowrap;
}
.promoter-picker .export-button:hover:not(:disabled) {
  background: #28a5d8;
  border-color: #28a5d8;
  transform: translateY(-1px);
}
.promoter-picker .export-button:active:not(:disabled) {
  transform: translateY(1px);
}
.promoter-picker .export-button span {
  margin-left: 8px;
  font-size: 15px;
  vertical-align: -1px;
}
#promoterDashboard {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}
.promoter-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.promoter-kpis article {
  position: relative;
  min-width: 0;
  min-height: 120px;
  padding: 17px 16px 15px;
  background: #fff;
  border: 1px solid #e1ebf1;
  border-radius: 11px;
  box-shadow: 0 5px 17px rgba(18, 59, 92, 0.035);
  overflow: hidden;
}
.promoter-kpis article:after {
  content: "";
  position: absolute;
  left: 16px;
  bottom: 0;
  width: 26px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #bdd2dd;
}
.promoter-kpis article span:first-child {
  display: block;
  color: #8399a8;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.promoter-kpis article strong {
  display: block;
  margin-top: 11px;
  color: var(--navy);
  font:
    800 30px/1 "Manrope",
    sans-serif;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}
.promoter-kpis article strong b {
  margin-left: 2px;
  color: inherit;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.promoter-kpis article small {
  display: block;
  margin-top: 8px;
  color: #8ea0ad;
  font-size: 10px;
  line-height: 1.3;
}
.promoter-kpis .promoter-kpi-positive:after {
  background: #20a370;
}
.promoter-kpis .promoter-kpi-positive strong {
  color: #147453;
}
.promoter-kpis .promoter-kpi-alert:after {
  background: #db884c;
}
.promoter-kpis .promoter-kpi-alert strong {
  color: #b96526;
}
.promoter-kpis .promoter-kpi-accent {
  background: #eaf6fb;
  border-color: #c9e5f1;
}
.promoter-kpis .promoter-kpi-accent:after {
  background: #0878c9;
}
.promoter-kpis .promoter-kpi-accent strong {
  color: #0878c9;
}
.promoter-progress {
  height: 5px;
  margin-top: 13px;
  background: #cfe6f0;
  border-radius: 5px;
  overflow: hidden;
}
.promoter-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #0878c9;
  transition: width 0.5s ease;
}
.promoter-panel {
  background: #fff;
  border: 1px solid #e1ebf1;
  border-radius: 12px;
  box-shadow: 0 5px 17px rgba(18, 59, 92, 0.035);
}
.promoter-cycle {
  padding: 21px 22px 18px;
}
.promoter-block-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.promoter-block-heading .eyebrow {
  margin-bottom: 5px;
}
.promoter-block-heading h3 {
  margin: 0;
  color: var(--navy);
  font:
    800 17px/1.2 "Manrope",
    sans-serif;
  letter-spacing: -0.035em;
}
.cycle-range {
  padding-top: 2px;
  color: #7f97a7;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.cycle-days {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
  margin-top: 22px;
}
.cycle-day {
  min-width: 0;
  padding: 12px 10px 11px;
  background: #f8fbfc;
  border: 1px solid #e7eff3;
  border-radius: 9px;
}
.cycle-day.has-plan {
  background: #f5fafc;
  border-color: #d9eaf1;
}
.cycle-day.empty-day {
  opacity: 0.65;
}
.cycle-day-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}
.cycle-day-top b {
  color: #4b687b;
  font-size: 10px;
  letter-spacing: 0.06em;
}
.cycle-day-top small {
  color: #8098a8;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.cycle-bar {
  height: 6px;
  margin: 18px 0 9px;
  background: #e5eef2;
  border-radius: 6px;
  overflow: hidden;
}
.cycle-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #20a370;
  transition: width 0.55s ease;
}
.cycle-day small:last-child {
  display: block;
  min-height: 12px;
  color: #8da1ae;
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cycle-day.has-plan .cycle-day-top b {
  color: var(--navy);
}
.cycle-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid #edf2f5;
  color: #8ca0ad;
  font-size: 9px;
}
.promoter-pending {
  padding: 21px 22px 9px;
}
.pending-pill {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 7px;
  background: #fff2e9;
  color: #b96526;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}
.pending-list {
  margin-top: 14px;
}
.pending-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid #edf2f5;
}
.pending-index {
  color: #9bb0bc;
  font:
    700 10px "Manrope",
    sans-serif;
  font-variant-numeric: tabular-nums;
}
.pending-item strong {
  display: block;
  min-width: 0;
  color: #385870;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pending-item small {
  display: block;
  margin-top: 4px;
  color: #91a3af;
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pending-when {
  color: #7f97a7;
  font-size: 9px;
  white-space: nowrap;
}
.promoter-pending .status {
  justify-self: end;
}
.promoter-pending .status.pending {
  background: #fff2e9;
  color: #b96526;
}
.pending-more {
  margin: 12px 0 0;
  padding: 12px 0 4px;
  border-top: 1px solid #edf2f5;
  color: #8b9da8;
  font-size: 10px;
}
.promoter-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 28px 12px 26px;
  color: #8499a7;
  text-align: center;
  font-size: 10px;
}
.promoter-empty strong {
  color: #147453;
  font:
    700 13px "Manrope",
    sans-serif;
}
.empty-check {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 3px;
  border-radius: 9px;
  background: #e8f7ef;
  color: #16845b;
  font-size: 18px;
}
@media (max-width: 1050px) {
  .promoter-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .promoter-kpis article:last-child {
    grid-column: span 1;
  }
}
@media (max-width: 760px) {
  .promoter-head {
    grid-template-columns: 1fr;
    gap: 23px;
    padding: 22px 19px 20px;
  }
  .promoter-intro h2 {
    font-size: 24px;
  }
  .promoter-picker {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .promoter-picker label {
    grid-column: auto;
  }
  .promoter-picker .export-button {
    width: 100%;
  }
  .promoter-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .promoter-kpis article {
    min-height: 112px;
    padding: 15px 14px;
  }
  .promoter-kpis article:after {
    left: 14px;
  }
  .promoter-kpis article strong {
    font-size: 27px;
  }
  .promoter-cycle,
  .promoter-pending {
    padding-left: 16px;
    padding-right: 16px;
  }
  .cycle-days {
    grid-template-columns: repeat(6, minmax(72px, 1fr));
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .cycle-day {
    padding: 11px 9px;
  }
  .cycle-foot {
    flex-direction: column;
    gap: 5px;
  }
  .pending-item {
    grid-template-columns: 26px minmax(0, 1fr) auto;
  }
  .pending-when {
    grid-column: 2;
    grid-row: 2;
    margin-top: 4px;
  }
  .promoter-pending .status {
    grid-column: 3;
    grid-row: 1/3;
  }
  .cycle-range {
    font-size: 9px;
  }
}
@media (max-width: 390px) {
  .promoter-intro h2 {
    font-size: 22px;
  }
  .promoter-kpis article small {
    font-size: 9px;
  }
  .pending-item {
    gap: 7px;
  }
  .pending-item .status {
    font-size: 8px;
    padding: 5px 6px;
  }
  .cycle-range {
    display: none;
  }
}

/* Seletor de promotor: controle de contexto, não apenas um campo padrão. */
.promoter-picker {
  min-width: 430px;
  padding: 14px;
  background: rgba(4, 28, 57, 0.48);
  border: 1px solid rgba(153, 208, 230, 0.24);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.picker-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  grid-column: 1/-1;
  gap: 12px;
  margin-bottom: 1px;
}
.picker-topline label {
  color: #a8c8d8;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.picker-context {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(161, 217, 235, 0.2);
  border-radius: 6px;
  color: #c1e0ea;
  font-size: 9px;
  white-space: nowrap;
}
.picker-context i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #62d1a0;
  box-shadow: 0 0 0 3px rgba(98, 209, 160, 0.12);
}
.promoter-picker label {
  grid-column: auto;
}
.promoter-select-wrap {
  position: relative;
  min-width: 0;
}
.promoter-select-wrap:after {
  content: "⌄";
  position: absolute;
  right: 13px;
  top: 50%;
  color: #57758a;
  font-size: 17px;
  line-height: 1;
  transform: translateY(-55%);
  pointer-events: none;
}
.promoter-picker select {
  appearance: none;
  padding-left: 38px;
  padding-right: 34px;
  border-color: #d5e3eb;
  color: #173d5b;
  box-shadow: 0 4px 10px rgba(2, 20, 42, 0.14);
}
.promoter-picker select:hover {
  border-color: #9dc6d8;
  background: #fbfdfe;
}
.select-mark {
  position: absolute;
  left: 13px;
  top: 50%;
  z-index: 1;
  color: #0a82ba;
  font-size: 17px;
  line-height: 1;
  transform: translateY(-53%);
  pointer-events: none;
}
.promoter-picker .export-button {
  font-size: 10px;
  letter-spacing: 0.01em;
}
.promoter-picker .export-button:disabled {
  background: #17466d;
  border-color: #2e6687;
  color: #9fc1d1;
  opacity: 1;
  box-shadow: none;
}
@media (max-width: 760px) {
  .promoter-picker {
    min-width: 0;
    width: 100%;
    padding: 13px;
  }
  .picker-topline {
    margin-bottom: 2px;
  }
  .promoter-picker .export-button {
    margin-top: 2px;
  }
}
@media (max-width: 390px) {
  .picker-context {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Reposições — camada final compacta (escopo isolado da aba principal). */
.replacements-section {
  margin-top: 30px !important;
  margin-bottom: 26px !important;
}
.replacements-section .section-heading {
  align-items: center !important;
  padding: 0 2px 11px !important;
  border-bottom: 1px solid #dfeaf0 !important;
}
.replacements-section .section-heading h2 {
  font-size: 19px !important;
  letter-spacing: -0.035em !important;
}
.replacements-section .section-heading .muted {
  max-width: 520px !important;
  margin-top: 5px !important;
  line-height: 1.45 !important;
  font-size: 11px !important;
}
.replacements-section .replacement-count {
  min-width: 30px !important;
  height: 30px !important;
  border-radius: 8px !important;
  background: #fff6ee !important;
  color: #bd6a30 !important;
  border: 1px solid #f2dfcf !important;
  font-size: 12px !important;
}
.replacements-section .replacement-bento {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin-top: 11px !important;
}
.replacements-section .replacement-card {
  display: block !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 14px 15px 0 !important;
  border: 1px solid #dce8ef !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 5px 16px rgba(18, 59, 92, 0.045) !important;
  cursor: pointer !important;
}
.replacements-section .replacement-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 22px rgba(18, 59, 92, 0.08) !important;
}
.replacements-section .replacement-card:after {
  right: 14px !important;
  top: 13px !important;
  color: #cb7a43 !important;
  font-size: 7px !important;
  letter-spacing: 0.14em !important;
}
.replacements-section .replacement-card-brand {
  display: grid !important;
  grid-template-columns: 68px minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 13px !important;
  min-height: 68px !important;
  padding: 0 0 12px !important;
  border-bottom: 1px solid #edf2f5 !important;
  text-align: left !important;
}
.replacements-section .replacement-logo {
  width: 68px !important;
  height: 68px !important;
  border-radius: 9px !important;
  background: #182e60 !important;
  box-shadow: 0 5px 12px rgba(23, 46, 97, 0.13) !important;
}
.replacements-section .replacement-logo img {
  padding: 6px !important;
}
.replacements-section .replacement-card-brand > div {
  min-width: 0 !important;
  padding-top: 1px !important;
}
.replacements-section .replacement-card-brand strong {
  margin: 0 !important;
  color: #142d58 !important;
  font:
    800 17px/1.1 "Manrope",
    sans-serif !important;
  letter-spacing: -0.045em !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.replacements-section .replacement-card-brand small {
  margin-top: 5px !important;
  color: #7d95a5 !important;
  font-size: 10px !important;
}
.replacements-section .replacement-card-side-metrics {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0 !important;
  margin-top: 12px !important;
  padding-top: 10px !important;
  border-top: 0 !important;
}
.replacements-section .replacement-card-side-metrics span {
  min-width: 0 !important;
  padding: 0 8px !important;
  border-left: 1px solid #edf2f5 !important;
}
.replacements-section .replacement-card-side-metrics span:first-child {
  padding-left: 0 !important;
  border-left: 0 !important;
}
.replacements-section .replacement-card-side-metrics b {
  display: block !important;
  color: #294c63 !important;
  font:
    800 18px/1 "Manrope",
    sans-serif !important;
  font-variant-numeric: tabular-nums !important;
}
.replacements-section .replacement-card-side-metrics small {
  display: block !important;
  margin-top: 5px !important;
  color: #8297a5 !important;
  font-size: 8px !important;
  line-height: 1.2 !important;
  white-space: normal !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.replacements-section
  .replacement-card-side-metrics
  .replacement-summary-warning
  b {
  color: #c36a2b !important;
}
.replacements-section
  .replacement-card-side-metrics
  .replacement-summary-warning
  small {
  color: #b8794b !important;
}
.replacements-section
  .replacement-card-side-metrics
  .replacement-summary-danger
  b {
  color: #b85b55 !important;
}
.replacements-section
  .replacement-card-side-metrics
  .replacement-summary-danger
  small {
  color: #a87370 !important;
}
.replacements-section .replacement-card-list {
  display: none !important;
  gap: 0 !important;
  margin: 12px 0 0 !important;
  padding: 10px 0 0 !important;
  border-top: 1px solid #edf2f5 !important;
}
.replacements-section .replacement-card.open .replacement-card-list {
  display: flex !important;
}
.replacements-section .replacement-card-item {
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  gap: 8px !important;
  padding: 8px 0 !important;
  border-bottom: 1px solid #f1f4f6 !important;
}
.replacements-section .replacement-card-item strong {
  font-size: 10px !important;
}
.replacements-section .replacement-card-item small {
  font-size: 8px !important;
}
.replacements-section .replacement-card-status,
.replacements-section .replacement-card-item .photo-link {
  font-size: 8px !important;
}
.replacements-section .replacement-more {
  position: static !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: 100% !important;
  height: 31px !important;
  min-height: 31px !important;
  margin: 9px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-top: 1px solid #edf2f5 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #0878c9 !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}
.replacements-section .replacement-more b {
  display: block !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  transform: none !important;
  transition: transform 0.2s ease !important;
}
.replacements-section .replacement-card.open {
  border-color: #b9d9e8 !important;
}
.replacements-section .replacement-card.open .replacement-more {
  background: transparent !important;
  color: #668497 !important;
  border: 0 !important;
  border-top: 1px solid #edf2f5 !important;
  border-radius: 0 !important;
}
.replacements-section .replacement-card.open .replacement-more b {
  transform: rotate(180deg) !important;
}
.replacements-section .replacement-card:focus-visible {
  outline: 2px solid #70b6e0 !important;
  outline-offset: 2px !important;
}
@media (max-width: 760px) {
  .replacements-section {
    margin-top: 24px !important;
    margin-bottom: 22px !important;
  }
  .replacements-section .replacement-bento {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .replacements-section .replacement-card {
    padding: 13px 13px 0 !important;
  }
  .replacements-section .replacement-card-brand {
    grid-template-columns: 60px minmax(0, 1fr) !important;
    gap: 12px !important;
    min-height: 60px !important;
    padding-bottom: 10px !important;
  }
  .replacements-section .replacement-logo {
    width: 60px !important;
    height: 60px !important;
    border-radius: 8px !important;
  }
  .replacements-section .replacement-logo img {
    padding: 5px !important;
  }
  .replacements-section .replacement-card-brand strong {
    font-size: 16px !important;
  }
  .replacements-section .replacement-card-brand small {
    font-size: 9px !important;
  }
  .replacements-section .replacement-card-side-metrics {
    margin-top: 10px !important;
    padding-top: 9px !important;
  }
  .replacements-section .replacement-card-side-metrics span {
    padding: 0 6px !important;
  }
  .replacements-section .replacement-card-side-metrics b {
    font-size: 16px !important;
  }
  .replacements-section .replacement-card-side-metrics small {
    margin-top: 4px !important;
    font-size: 8px !important;
  }
  .replacements-section .replacement-more {
    height: 30px !important;
    min-height: 30px !important;
    margin-top: 8px !important;
    font-size: 9px !important;
  }
}
@media (max-width: 390px) {
  .replacements-section .section-heading h2 {
    font-size: 18px !important;
  }
  .replacements-section .section-heading .muted {
    font-size: 10px !important;
  }
  .replacements-section .replacement-card-side-metrics span {
    padding: 0 4px !important;
  }
  .replacements-section .replacement-card-side-metrics b {
    font-size: 15px !important;
  }
  .replacements-section .replacement-card-side-metrics small {
    font-size: 7px !important;
  }
}

/* Reposições — leitura compacta para desktop e celular. */
.replacements-section {
  margin-top: 30px;
  margin-bottom: 26px;
}
.replacements-section .section-heading {
  align-items: center;
  padding: 0 2px 11px;
  border-bottom: 1px solid #dfeaf0;
}
.replacements-section .section-heading h2 {
  font-size: 19px;
  letter-spacing: -0.035em;
}
.replacements-section .section-heading .muted {
  max-width: 520px;
  margin-top: 5px;
  line-height: 1.45;
  font-size: 11px;
}
.replacement-count {
  min-width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #fff6ee;
  color: #bd6a30;
  border: 1px solid #f2dfcf;
  font-size: 12px;
}
.replacement-bento {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 11px;
}
.replacement-card {
  display: block;
  min-height: 0;
  padding: 14px 15px 0;
  border: 1px solid #dce8ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(18, 59, 92, 0.045);
  cursor: default;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.replacement-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(18, 59, 92, 0.08);
}
.replacement-card:after {
  right: 14px;
  top: 13px;
  color: #cb7a43;
  font-size: 7px;
  letter-spacing: 0.14em;
}
.replacement-card-brand {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: start;
  gap: 13px;
  min-height: 68px;
  padding: 0 0 12px;
  border-bottom: 1px solid #edf2f5;
  text-align: left;
}
.replacement-logo {
  width: 68px;
  height: 68px;
  border-radius: 9px;
  background: #182e60;
  box-shadow: 0 5px 12px rgba(23, 46, 97, 0.13);
}
.replacement-logo img {
  padding: 6px;
}
.replacement-card-brand > div {
  min-width: 0;
  padding-top: 1px;
}
.replacement-card-brand strong {
  margin: 0;
  color: #142d58;
  font:
    800 17px/1.1 "Manrope",
    sans-serif;
  letter-spacing: -0.045em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.replacement-card-brand small {
  margin-top: 5px;
  color: #7d95a5;
  font-size: 10px;
}
.replacement-card-side-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 0;
}
.replacement-card-side-metrics span {
  min-width: 0;
  padding: 0 8px;
  border-left: 1px solid #edf2f5;
}
.replacement-card-side-metrics span:first-child {
  padding-left: 0;
  border-left: 0;
}
.replacement-card-side-metrics b {
  display: block;
  color: #294c63;
  font:
    800 18px/1 "Manrope",
    sans-serif;
  font-variant-numeric: tabular-nums;
}
.replacement-card-side-metrics small {
  display: block;
  margin-top: 5px;
  color: #8297a5;
  font-size: 8px;
  line-height: 1.2;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}
.replacement-card-side-metrics .replacement-summary-warning b {
  color: #c36a2b;
}
.replacement-card-side-metrics .replacement-summary-warning small {
  color: #b8794b;
}
.replacement-card-side-metrics .replacement-summary-danger b {
  color: #b85b55;
}
.replacement-card-side-metrics .replacement-summary-danger small {
  color: #a87370;
}
.replacement-card-list {
  display: none;
  gap: 0;
  margin: 12px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid #edf2f5;
}
.replacement-card.open .replacement-card-list {
  display: flex;
}
.replacement-card-item {
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f4f6;
}
.replacement-card-item:last-child {
  border-bottom: 0;
}
.replacement-card-item strong {
  font-size: 10px;
}
.replacement-card-item small {
  font-size: 8px;
}
.replacement-card-status {
  font-size: 8px;
}
.replacement-card-item .photo-link {
  font-size: 8px;
}
.replacement-more {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 31px;
  min-height: 31px;
  margin: 9px 0 0;
  padding: 0;
  border: 0;
  border-top: 1px solid #edf2f5;
  border-radius: 0;
  background: transparent;
  color: #0878c9;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}
.replacement-more b {
  display: block;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  transform: none;
  transition: transform 0.2s ease;
}
.replacement-card.open {
  border-color: #b9d9e8;
}
.replacement-card.open .replacement-more {
  background: transparent;
  color: #668497;
  border: 0;
  border-top: 1px solid #edf2f5;
  border-radius: 0;
}
.replacement-card.open .replacement-more b {
  transform: rotate(180deg);
}
.replacement-card:focus-visible {
  outline: 2px solid #70b6e0;
  outline-offset: 2px;
}
@media (max-width: 760px) {
  .replacements-section {
    margin-top: 24px;
    margin-bottom: 22px;
  }
  .replacement-bento {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .replacement-card {
    padding: 13px 13px 0;
  }
  .replacement-card-brand {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 12px;
    min-height: 60px;
    padding-bottom: 10px;
  }
  .replacement-logo {
    width: 60px;
    height: 60px;
    border-radius: 8px;
  }
  .replacement-logo img {
    padding: 5px;
  }
  .replacement-card-brand strong {
    font-size: 16px;
  }
  .replacement-card-brand small {
    font-size: 9px;
  }
  .replacement-card-side-metrics {
    margin-top: 10px;
    padding-top: 9px;
  }
  .replacement-card-side-metrics span {
    padding: 0 6px;
  }
  .replacement-card-side-metrics b {
    font-size: 16px;
  }
  .replacement-card-side-metrics small {
    margin-top: 4px;
    font-size: 8px;
  }
  .replacement-more {
    height: 30px;
    min-height: 30px;
    margin-top: 8px;
    font-size: 9px;
  }
}
@media (max-width: 390px) {
  .replacements-section .section-heading h2 {
    font-size: 18px;
  }
  .replacements-section .section-heading .muted {
    font-size: 10px;
  }
  .replacement-card-side-metrics span {
    padding: 0 4px;
  }
  .replacement-card-side-metrics b {
    font-size: 15px;
  }
  .replacement-card-side-metrics small {
    font-size: 7px;
  }
}

/* Reposições: a marca é o ponto focal do acompanhamento. */
.replacements-section {
  margin-top: 16px !important;
  margin-bottom: 30px !important;
}
.replacements-section .section-heading {
  padding: 0 0 18px !important;
}
.replacements-section .section-heading h2 {
  font-size: 26px !important;
  letter-spacing: -0.045em;
}
.replacements-section .section-heading .muted {
  max-width: 650px;
  line-height: 1.5;
}
.replacement-bento {
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)) !important;
  gap: 18px !important;
  margin-top: 0 !important;
}
.replacement-card {
  min-height: 0 !important;
  height: auto !important;
  padding: 18px 24px 56px !important;
  border: 1px solid #cfe0e9 !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 6px 8px rgba(18, 59, 92, 0.06) !important;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.replacement-card:hover,
.replacement-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 9px 10px rgba(18, 59, 92, 0.09) !important;
}
.replacement-card-brand {
  grid-template-columns: 184px minmax(0, 1fr) !important;
  align-items: flex-start !important;
  gap: 24px !important;
  min-height: 184px !important;
  padding: 0 18px 0 0 !important;
}
.replacement-logo {
  width: 184px !important;
  height: 184px !important;
  border-radius: 13px !important;
  background: #172e61 !important;
  box-shadow: 0 10px 20px rgba(23, 46, 97, 0.16) !important;
}
.replacement-logo img {
  padding: 12px !important;
}
.replacement-card-brand strong {
  display: block;
  margin: 20px 0 0 !important;
  color: #142d58 !important;
  font-size: 30px !important;
  line-height: 1.05 !important;
  letter-spacing: -0.05em;
}
.replacement-card-brand small {
  display: block;
  margin-top: 12px !important;
  color: #6e8799 !important;
  font-size: 13px !important;
}
.replacement-card-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0 !important;
  margin-top: 28px !important;
  padding: 19px 0 0 !important;
  border-top: 1px solid #e5eef2 !important;
}
.replacement-card-summary span {
  min-width: 0;
  padding: 0 16px;
  border-left: 1px solid #edf2f5;
}
.replacement-card-summary span:first-child {
  padding-left: 0;
  border-left: 0;
}
.replacement-card-summary b {
  color: #294c63 !important;
  font-size: 25px !important;
  line-height: 1 !important;
}
.replacement-card-summary small {
  margin-top: 6px;
  color: #8297a5 !important;
  font-size: 10px !important;
}
.replacement-card-summary .replacement-summary-warning b {
  color: #c36a2b !important;
}
.replacement-card-summary .replacement-summary-danger b {
  color: #b85b55 !important;
}
.replacement-more {
  right: 28px !important;
  bottom: 18px !important;
  width: calc(100% - 56px) !important;
  height: 30px !important;
  margin: 0 !important;
  padding: 9px 0 0 !important;
  border: 0 !important;
  border-top: 1px solid #edf2f5 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #0878c9 !important;
  font-size: 11px !important;
}
.replacement-more b {
  font-size: 17px !important;
}
.replacement-card-side-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #e5eef2;
}
.replacement-card-side-metrics span {
  min-width: 0;
  padding: 0 14px;
  border-left: 1px solid #edf2f5;
}
.replacement-card-side-metrics span:first-child {
  padding-left: 0;
  border-left: 0;
}
.replacement-card-side-metrics b {
  display: block;
  color: #294c63;
  font:
    800 27px/1 "Manrope",
    sans-serif;
  font-variant-numeric: tabular-nums;
}
.replacement-card-side-metrics small {
  display: block;
  margin-top: 7px;
  color: #8297a5;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.replacement-card-side-metrics .replacement-summary-warning b {
  color: #c36a2b;
}
.replacement-card-side-metrics .replacement-summary-warning small {
  color: #b8794b;
}
.replacement-card-side-metrics .replacement-summary-danger b {
  color: #b85b55;
}
.replacement-card-side-metrics .replacement-summary-danger small {
  color: #a87370;
}
.replacement-more b {
  display: none !important;
}
.replacement-more {
  transition: none !important;
}
@media (max-width: 760px) {
  .replacements-section {
    margin-top: 12px !important;
    margin-bottom: 22px !important;
  }
  .replacements-section .section-heading {
    padding-bottom: 14px !important;
  }
  .replacements-section .section-heading h2 {
    font-size: 22px !important;
  }
  .replacement-bento {
    grid-template-columns: 1fr !important;
    gap: 13px !important;
  }
  .replacement-card {
    min-height: 0 !important;
    padding: 18px 18px 68px !important;
  }
  .replacement-card-brand {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    min-height: 0 !important;
    padding-right: 0 !important;
  }
  .replacement-logo {
    width: 132px !important;
    height: 132px !important;
    border-radius: 11px !important;
  }
  .replacement-logo img {
    padding: 9px !important;
  }
  .replacement-card-brand strong {
    margin-top: 13px !important;
    font-size: 24px !important;
  }
  .replacement-card-brand small {
    margin-top: 9px !important;
    font-size: 12px !important;
  }
  .replacement-card-side-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 0;
    margin-top: 20px;
    padding-top: 15px;
  }
  .replacement-card-side-metrics span:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .replacement-card-side-metrics b {
    font-size: 22px;
  }
  .replacement-card-side-metrics small {
    font-size: 9px;
  }
  .replacement-card-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px 0 !important;
    margin-top: 22px !important;
    padding-top: 16px !important;
  }
  .replacement-card-summary span:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .replacement-card-summary b {
    font-size: 21px !important;
  }
  .replacement-card-summary small {
    font-size: 9px !important;
  }
  .replacement-more {
    right: 18px !important;
    bottom: 15px !important;
    width: calc(100% - 36px) !important;
  }
}
@media (max-width: 390px) {
  .replacement-card {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .replacement-card-brand {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    min-height: 0 !important;
  }
  .replacement-logo {
    width: 112px !important;
    height: 112px !important;
  }
  .replacement-card-brand strong {
    font-size: 21px !important;
  }
  .replacement-card-side-metrics {
    gap: 14px 0;
  }
  .replacement-card-side-metrics b {
    font-size: 20px;
  }
  .replacement-more {
    right: 15px !important;
    width: calc(100% - 30px) !important;
  }
}

/* Reposições: resumo operacional visível antes da expansão. */
.replacement-card-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid #edf2f5;
}
.replacement-card-summary span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.replacement-card-summary b {
  color: #294c63;
  font:
    800 15px/1 "Manrope",
    sans-serif;
  font-variant-numeric: tabular-nums;
}
.replacement-card-summary small {
  color: #8a9daa;
  font-size: 8px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.replacement-card-summary .replacement-summary-warning b {
  color: #c36a2b;
}
.replacement-card-summary .replacement-summary-danger b {
  color: #b85b55;
}
.replacement-card-summary .replacement-summary-warning small {
  color: #b8794b;
}
.replacement-card-summary .replacement-summary-danger small {
  color: #a87370;
}
@media (max-width: 650px) {
  .replacement-card-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    margin-top: 15px;
    padding-top: 11px;
  }
  .replacement-card-summary b {
    font-size: 14px;
  }
  .replacement-card-summary small {
    font-size: 8px;
  }
}

/* Skeleton do acompanhamento semanal enquanto os dados são atualizados. */
.promoter-loading-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.promoter-loading-kpis i {
  display: block;
  min-height: 120px;
  border: 1px solid #e5edf2;
  border-radius: 11px;
  background: linear-gradient(100deg, #eef3f6 20%, #f9fbfc 45%, #eef3f6 70%);
  background-size: 220% 100%;
  animation: skeleton-wave 1.15s ease-in-out infinite;
}
.promoter-loading-panel {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  min-height: 153px;
  padding: 22px;
  border: 1px solid #e5edf2;
  border-radius: 12px;
  background: #fff;
}
.promoter-loading-panel i {
  display: block;
  height: 9px;
  margin-top: 34px;
  border-radius: 5px;
  background: #edf2f5;
  animation: skeleton-pulse 1.1s ease-in-out infinite;
}
.promoter-loading-panel i:nth-child(2) {
  animation-delay: 0.08s;
}
.promoter-loading-panel i:nth-child(3) {
  animation-delay: 0.16s;
}
.promoter-loading-panel i:nth-child(4) {
  animation-delay: 0.24s;
}
.promoter-loading-panel i:nth-child(5) {
  animation-delay: 0.32s;
}
.promoter-loading-panel i:nth-child(6) {
  animation-delay: 0.4s;
}
.promoter-loading-list {
  grid-template-columns: 1fr;
  min-height: 180px;
}
.promoter-loading-list i {
  height: 12px;
  margin-top: 8px;
}
@media (max-width: 1050px) {
  .promoter-loading-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .promoter-loading-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .promoter-loading-kpis i {
    min-height: 112px;
  }
  .promoter-loading-panel {
    grid-template-columns: repeat(6, minmax(72px, 1fr));
    gap: 7px;
    overflow: hidden;
    padding: 16px;
  }
  .promoter-loading-list {
    grid-template-columns: 1fr;
    min-height: 180px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .promoter-loading-kpis i,
  .promoter-loading-panel i {
    animation: none;
  }
}

/* Indicadores gerais: leitura executiva por marca, PDV e promotor. */
.analytics-section {
  display: block;
  margin-top: 6px;
  animation: rise 0.35s both;
}
.analytics-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}
.analytics-head h2 {
  margin: 0;
  color: var(--navy);
  font: 700 25px/1.15 "Manrope", sans-serif;
  letter-spacing: -0.04em;
}
.analytics-head .muted {
  max-width: 560px;
  line-height: 1.45;
}
.analytics-context {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #dce9ef;
  border-radius: 999px;
  color: #648091;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.analytics-context i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1c9b78;
  box-shadow: 0 0 0 3px #e4f5ef;
}
.analytics-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr)) auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 14px;
  padding: 13px;
  border: 1px solid #e2edf2;
  border-radius: 12px;
  background: #fbfdfe;
}
.analytics-filters label {
  display: grid;
  gap: 6px;
}
.analytics-filters label > span {
  color: #7f96a3;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.analytics-filters select {
  width: 100%;
  min-height: 38px;
  padding: 0 30px 0 11px;
  border: 1px solid #d8e6ec;
  border-radius: 8px;
  outline: 0;
  background: #fff;
  color: #294c62;
  font: 600 11px "DM Sans", sans-serif;
}
.analytics-filters select:focus {
  border-color: #0b86aa;
  box-shadow: 0 0 0 3px rgba(11, 134, 170, 0.1);
}
.analytics-clear {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid #d8e6ec;
  border-radius: 8px;
  background: #fff;
  color: #648091;
  font: 700 10px "DM Sans", sans-serif;
  cursor: pointer;
}
.analytics-clear:hover {
  border-color: #0b86aa;
  color: #0b86aa;
}
.analytics-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.analytics-kpi {
  position: relative;
  min-height: 110px;
  padding: 15px 16px 13px;
  overflow: hidden;
  border: 1px solid #e3edf2;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(18, 59, 92, 0.035);
}
.analytics-kpi::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: #dbe8ef;
  content: "";
}
.analytics-kpi.is-primary::after { background: #0a86a8; }
.analytics-kpi.is-positive::after { background: #1c9b78; }
.analytics-kpi.is-accent::after { background: #d8984e; }
.analytics-kpi > span,
.analytics-kpi > small {
  display: block;
  color: #8aa0ad;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.analytics-kpi strong {
  display: block;
  margin: 13px 0 5px;
  color: #173f5b;
  font: 800 25px/1 "Manrope", sans-serif;
  letter-spacing: -0.06em;
}
.analytics-kpi small {
  color: #9aabb4;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.analytics-chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.8fr);
  gap: 14px;
  margin-bottom: 14px;
}
.analytics-panel {
  min-width: 0;
  border: 1px solid #e3edf2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(18, 59, 92, 0.035);
}
.analytics-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 18px 0;
}
.analytics-kicker {
  color: #86a0ad;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.analytics-panel h3 {
  margin: 5px 0 0;
  color: #244b61;
  font: 800 15px/1.2 "Manrope", sans-serif;
  letter-spacing: -0.035em;
}
.analytics-panel-note {
  color: #9aaab3;
  font-size: 9px;
  text-align: right;
  white-space: nowrap;
}
.analytics-chart {
  height: 265px;
  padding: 18px 18px 14px;
}
.analytics-chart-doughnut {
  height: 220px;
  padding: 16px 40px 4px;
}
.analytics-chart-legend {
  display: grid;
  gap: 8px;
  padding: 0 22px 18px;
}
.analytics-chart-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #728b99;
  font-size: 10px;
}
.analytics-chart-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e8eef1;
}
.analytics-chart-legend i.is-done { background: #1c9b78; }
.analytics-chart-legend b { margin-left: auto; color: #294c62; font-size: 11px; }
.analytics-ranking { overflow: hidden; }
.analytics-table-wrap { overflow-x: auto; padding: 12px 18px 4px; }
.analytics-ranking table { width: 100%; border-collapse: collapse; min-width: 650px; }
.analytics-ranking th {
  padding: 10px 8px;
  border-bottom: 1px solid #edf2f5;
  color: #91a4ae;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-align: left;
}
.analytics-ranking td {
  padding: 11px 8px;
  border-bottom: 1px solid #f0f4f6;
  color: #4a6979;
  font-size: 10px;
  white-space: nowrap;
}
.analytics-ranking td:first-child,
.analytics-ranking td:nth-child(2) { color: #244b61; font-weight: 700; }
.analytics-ranking td small { display: block; margin-top: 3px; color: #9aaab4; font-size: 8px; }
.analytics-status {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
}
.analytics-status.is-done { background: #e7f6ef; color: #198566; }
.analytics-status.is-pending { background: #fff4e8; color: #b87831; }
.analytics-empty { padding: 28px 8px !important; color: #96a8b1 !important; text-align: center; }
@media (max-width: 980px) {
  .analytics-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .analytics-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-clear { grid-column: span 2; }
  .analytics-chart-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .analytics-head { align-items: flex-start; flex-direction: column; gap: 13px; }
  .analytics-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-filters { grid-template-columns: 1fr; }
  .analytics-clear { grid-column: auto; }
  .analytics-chart { height: 230px; padding-right: 10px; padding-left: 10px; }
  .analytics-chart-doughnut { height: 190px; padding-right: 28px; padding-left: 28px; }
}

/* Context navigation: icon-first, with native labels kept for assistive tech. */
[x-cloak] {
  display: none !important;
}
.topnav.view-tabs {
  width: auto;
  max-width: 520px;
  justify-self: center;
  gap: 7px;
}
.topnav .view-tab {
  position: relative;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  justify-content: center;
  padding: 0;
  border-radius: 13px;
}
.topnav .view-tab:hover {
  transform: translateY(-2px);
}
.topnav .view-tab.active {
  color: #0878c9;
  background: #edf8fd;
  border-color: #cde9f5;
}
.topnav .view-tab.active::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -7px;
  height: 2px;
  border-radius: 2px;
  background: #1596d2;
}
.nav-tab-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: currentColor;
}
.nav-tab-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}
.nav-tab-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.topnav .tab-count {
  position: absolute;
  top: -4px;
  right: -5px;
  min-width: 18px;
  width: auto;
  height: 18px;
  margin: 0;
  padding: 0 4px;
  border-radius: 9px;
  font-size: 8px;
  line-height: 16px;
  box-shadow: 0 2px 5px rgba(8, 120, 201, 0.08);
}
.topnav .view-tab.active .tab-count {
  color: #0878c9;
  background: #fff;
}

/* Alpine brand directory: same navy briefing surface as the promoter view. */
.brand-tab {
  width: 100%;
  margin: 0 0 28px;
}
.brand-tab-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 380px);
  align-items: end;
  gap: 28px;
  min-height: 178px;
  padding: 28px 30px 27px;
  background: var(--navy);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(10, 43, 84, 0.13);
  overflow: hidden;
}
.brand-tab-head::after {
  content: "";
  position: absolute;
  right: -82px;
  top: -128px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(148, 208, 235, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 24px rgba(148, 208, 235, 0.04),
    0 0 0 48px rgba(148, 208, 235, 0.025);
  pointer-events: none;
}
.brand-tab-intro,
.brand-tab-search-wrap {
  position: relative;
  z-index: 1;
}
.brand-tab-intro h2 {
  margin: 0;
  color: #fff;
  font: 800 27px/1.1 "Manrope", sans-serif;
  letter-spacing: -0.05em;
}
.brand-tab-intro .eyebrow {
  margin-bottom: 9px;
  color: #8dc5df;
}
.brand-tab-intro .muted {
  max-width: 500px;
  margin-top: 10px;
  color: #bfd4e0;
  line-height: 1.5;
}
.brand-tab-search-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.brand-tab-search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid #d5e3eb;
  border-radius: 9px;
  box-shadow: 0 8px 18px rgba(2, 20, 42, 0.14);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.brand-tab-search:focus-within {
  border-color: #8ad0ea;
  box-shadow: 0 0 0 3px rgba(137, 211, 239, 0.18), 0 8px 18px rgba(2, 20, 42, 0.14);
}
.brand-tab-search > span {
  color: #0878c9;
  font-size: 24px;
  line-height: 1;
  transform: rotate(-15deg);
}
.brand-tab-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 12px;
}
.brand-tab-search input::placeholder {
  color: #9aabb9;
}
.brand-tab-result {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-left: 3px;
  color: #bfd4e0;
  font-size: 10px;
}
.brand-tab-result i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #62d1a0;
  box-shadow: 0 0 0 3px rgba(98, 209, 160, 0.12);
}
.brand-directory-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.brand-directory-card {
  min-width: 0;
  background: #fff;
  border: 1px solid #e1ebf1;
  border-radius: 12px;
  box-shadow: 0 5px 17px rgba(18, 59, 92, 0.035);
  overflow: hidden;
  animation: rise 0.35s both;
}
.brand-directory-card:hover,
.brand-directory-card.is-open {
  border-color: #cde3ed;
  box-shadow: 0 10px 24px rgba(18, 59, 92, 0.075);
}
.brand-directory-toggle {
  display: grid;
  grid-template-columns: 48px minmax(150px, 1.35fr) 0.72fr 0.55fr minmax(90px, 0.95fr) 18px;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 104px;
  padding: 16px 17px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.brand-directory-toggle:hover {
  background: #fbfdfe;
}
.brand-directory-logo {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #eaf6fb;
  color: #0874b7;
  font: 800 13px/1 "Manrope", sans-serif;
  overflow: hidden;
}
.brand-directory-logo img {
  width: 100%;
  height: 100%;
  padding: 6px;
  object-fit: contain;
}
.brand-directory-name,
.brand-directory-metric {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}
.brand-directory-name small,
.brand-directory-metric small {
  color: #92a2ad;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.brand-directory-name strong {
  overflow: hidden;
  color: #193953;
  font: 800 13px/1.2 "Manrope", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-directory-name em {
  overflow: hidden;
  color: #94a4b0;
  font-size: 9px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-directory-metric strong {
  color: #37546b;
  font-size: 13px;
  font-weight: 700;
}
.brand-directory-progress {
  gap: 5px;
}
.brand-directory-progress strong {
  color: #0878c9;
}
.brand-directory-progress > i {
  display: block;
  width: 100%;
  max-width: 85px;
  height: 4px;
  overflow: hidden;
  border-radius: 4px;
  background: #e7f0f4;
}
.brand-directory-progress > i span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #1596d2;
  transition: width 0.35s ease;
}
.brand-directory-arrow {
  color: #96aab7;
  font-size: 19px;
  transition: transform 0.2s ease;
}
.brand-directory-card.is-open .brand-directory-arrow {
  transform: rotate(180deg);
}
.brand-directory-details {
  padding: 0 17px 8px;
  border-top: 1px solid #edf2f5;
  background: #fcfdfe;
}
.brand-directory-detail-head,
.brand-directory-visit {
  display: grid;
  grid-template-columns: minmax(140px, 1.4fr) minmax(110px, 1fr) 90px auto auto;
  align-items: center;
  gap: 12px;
}
.brand-directory-detail-head {
  padding: 11px 2px 7px;
  color: #9aabb7;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.brand-directory-visit {
  min-height: 48px;
  padding: 9px 2px;
  border-top: 1px solid #edf2f5;
  color: #667e90;
  font-size: 10px;
}
.brand-directory-visit strong,
.brand-directory-visit small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-directory-visit strong {
  color: #385870;
  font-weight: 700;
}
.brand-directory-visit small {
  margin-top: 3px;
  color: #92a3b0;
  font-size: 9px;
}
.brand-directory-visit .status {
  justify-self: start;
}
.brand-directory-visit a {
  color: #087bbd;
  text-decoration: none;
  white-space: nowrap;
}
.brand-directory-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 190px;
  padding: 45px 20px;
  border: 1px dashed #cddfe8;
  border-radius: 12px;
  color: #8aa0ad;
  text-align: center;
}
.brand-directory-empty > span {
  color: #0878c9;
  font-size: 25px;
  transform: rotate(-15deg);
}
.brand-directory-empty strong {
  color: #46677d;
  font: 700 14px "Manrope", sans-serif;
}
.brand-directory-empty small {
  font-size: 10px;
}
@media (max-width: 1100px) {
  .brand-tab-head {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .brand-tab-search-wrap {
    max-width: 440px;
  }
  .brand-directory-toggle {
    grid-template-columns: 48px minmax(130px, 1fr) 0.65fr 0.5fr 80px 18px;
  }
}
@media (max-width: 760px) {
  .topnav.view-tabs {
    max-width: none;
    gap: 5px;
  }
  .topnav .view-tab {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }
  .topnav .view-tab.active::before {
    left: 8px;
    right: 8px;
  }
  .brand-tab-head {
    padding: 23px 19px 21px;
  }
  .brand-tab-intro h2 {
    font-size: 24px;
  }
  .brand-directory-list {
    grid-template-columns: 1fr;
  }
  .brand-directory-toggle {
    grid-template-columns: 46px minmax(0, 1fr) 58px 18px;
    gap: 11px;
    padding: 14px;
  }
  .brand-directory-logo {
    width: 46px;
    height: 46px;
  }
  .brand-directory-toggle .brand-directory-metric:nth-of-type(3),
  .brand-directory-toggle .brand-directory-progress {
    display: none;
  }
  .brand-directory-detail-head {
    display: none;
  }
  .brand-directory-visit {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
    padding: 12px 2px;
  }
  .brand-directory-visit > span:nth-of-type(1),
  .brand-directory-visit > span:nth-of-type(2) {
    grid-column: 1;
  }
  .brand-directory-visit .status {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .brand-directory-visit a {
    grid-column: 2;
    grid-row: 3;
  }
}
@media (max-width: 420px) {
  .topnav .view-tab {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }
  .nav-tab-icon svg {
    width: 19px;
    height: 19px;
  }
  .brand-tab-search input {
    font-size: 11px;
  }
}

/* Promoter search: a second control in the same field kit as the route picker. */
.promoter-picker {
  grid-template-columns: minmax(190px, 1fr) minmax(210px, 1.15fr) auto;
}
.promoter-search-control {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}
.promoter-search-control > label {
  color: #a8c8d8;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.promoter-search-wrap {
  position: relative;
  min-width: 0;
}
.promoter-search-wrap input {
  width: 100%;
  height: 44px;
  padding: 0 12px 0 37px;
  border: 1px solid #d5e3eb;
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: #173d5b;
  font-size: 12px;
  box-shadow: 0 4px 10px rgba(2, 20, 42, 0.14);
}
.promoter-search-wrap input::placeholder {
  color: #9aabb9;
}
.promoter-search-wrap input:focus {
  border-color: #9dc6d8;
  box-shadow: 0 0 0 3px rgba(137, 211, 239, 0.18), 0 4px 10px rgba(2, 20, 42, 0.14);
}
.search-mark {
  position: absolute;
  left: 13px;
  top: 50%;
  z-index: 1;
  color: #0a82ba;
  font-size: 19px;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-53%) rotate(-15deg);
}
.brand-replacement-slot {
  margin-top: 18px;
}
.brand-replacement-slot .replacements-section {
  margin-top: 0 !important;
}
@media (max-width: 900px) {
  .promoter-picker {
    grid-template-columns: minmax(170px, 1fr) minmax(170px, 1fr);
  }
  .promoter-picker .export-button {
    grid-column: 1 / -1;
  }
}
@media (max-width: 760px) {
  .promoter-picker {
    grid-template-columns: 1fr;
  }
  .promoter-picker .export-button {
    grid-column: auto;
  }
}

/* Visão operacional do promotor */
#promoterDashboard {
  grid-column: 1/-1;
  margin-top: 8px;
}
.promoter-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 22px;
}
.promoter-kpis article {
  min-height: 112px;
  padding: 16px 17px;
  border: 1px solid #e1ebf1;
  border-radius: 12px;
  background: #f9fbfc;
}
.promoter-kpis span {
  display: block;
  color: #7890a3;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.promoter-kpis strong {
  display: block;
  margin: 13px 0 5px;
  color: #142d58;
  font-size: 31px;
  letter-spacing: -0.06em;
}
.promoter-kpis strong b {
  font-size: 16px;
  color: #0878c9;
}
.promoter-kpis small {
  color: #8aa0ae;
  font-size: 10px;
}
.promoter-kpi-accent {
  background: #eef8fc !important;
  border-color: #ccebf5 !important;
}
.promoter-progress {
  height: 5px;
  margin-top: 15px;
  overflow: hidden;
  border-radius: 5px;
  background: #d5edf4;
}
.promoter-progress i {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: #0878c9;
}
.promoter-cycle,
.promoter-pending {
  margin-top: 14px;
  padding: 21px;
  border: 1px solid #e1ebf1;
  border-radius: 12px;
  background: #fff;
}
.promoter-block-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.promoter-block-heading h3 {
  margin: 4px 0 0;
  color: #142d58;
  font-size: 18px;
  letter-spacing: -0.04em;
}
.promoter-block-heading > span {
  color: #8aa0ae;
  font-size: 10px;
  white-space: nowrap;
}
.cycle-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 11px;
  height: 126px;
  margin-top: 22px;
}
.cycle-day {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
}
.cycle-day-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  color: #9cafba;
  font-size: 10px;
}
.cycle-day.has-plan .cycle-day-top b {
  color: #0878c9;
}
.cycle-day-top small {
  font-size: 10px;
}
.cycle-bar {
  display: flex;
  align-items: flex-end;
  height: 72px;
  border-radius: 6px 6px 3px 3px;
  background: #f0f5f7;
  overflow: hidden;
}
.cycle-bar i {
  display: block;
  width: 100%;
  min-height: 3px;
  border-radius: 5px 5px 0 0;
  background: #4caf9b;
}
.cycle-day:not(.has-plan) .cycle-bar i {
  background: #dfe8ec;
}
.cycle-day > small {
  margin-top: 7px;
  color: #8aa0ae;
  font-size: 9px;
  white-space: nowrap;
}
.pending-pill {
  padding: 6px 9px;
  border-radius: 20px;
  background: #fff3e8;
  color: #c36a2b !important;
  font-weight: 700;
}
.pending-list {
  margin-top: 16px;
  border-top: 1px solid #edf2f5;
}
.pending-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #edf2f5;
}
.pending-day {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #f1f7fa;
  color: #0878c9;
  font-size: 9px;
  font-weight: 800;
}
.pending-item strong,
.pending-item small {
  display: block;
}
.pending-item strong {
  color: #17345c;
  font-size: 12px;
}
.pending-item small {
  margin-top: 4px;
  color: #8aa0ae;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pending-item .status {
  font-size: 9px;
}
.pending-more,
.promoter-empty {
  margin: 14px 0 0;
  color: #8aa0ae;
  font-size: 11px;
}
.promoter-empty {
  padding: 16px;
  border-radius: 8px;
  background: #f4faf7;
  color: #3c8c72;
}
@media (max-width: 700px) {
  .promoter-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .promoter-cycle,
  .promoter-pending {
    padding: 16px;
  }
  .cycle-track {
    gap: 6px;
    height: 116px;
  }
  .cycle-day > small {
    font-size: 8px;
  }
  .promoter-block-heading > span {
    font-size: 9px;
  }
  .pending-item {
    grid-template-columns: 36px minmax(0, 1fr);
  }
  .pending-item .status {
    grid-column: 2;
  }
  .pending-item small {
    max-width: 190px;
  }
}
@media (max-width: 420px) {
  .promoter-kpis article {
    min-height: 100px;
    padding: 13px;
  }
  .promoter-kpis strong {
    font-size: 26px;
  }
  .promoter-block-heading h3 {
    font-size: 16px;
  }
  .promoter-block-heading > span {
    display: none;
  }
  .cycle-track {
    margin-top: 17px;
  }
  .cycle-day-top {
    display: block;
  }
  .cycle-day-top small {
    display: block;
    margin-top: 4px;
  }
  .pending-item {
    gap: 9px;
  }
}

/* Seletor de promotor: última camada visual para manter o estado sempre legível. */
.promoter-picker {
  min-width: 430px !important;
  padding: 14px !important;
  background: rgba(4, 28, 57, 0.48) !important;
  border: 1px solid rgba(153, 208, 230, 0.24) !important;
  border-radius: 12px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}
.picker-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  grid-column: 1/-1;
  gap: 12px;
  margin-bottom: 1px;
}
.picker-topline label {
  color: #a8c8d8;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.picker-context {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(161, 217, 235, 0.2);
  border-radius: 6px;
  color: #c1e0ea;
  font-size: 9px;
  white-space: nowrap;
}
.picker-context i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #62d1a0;
  box-shadow: 0 0 0 3px rgba(98, 209, 160, 0.12);
}
.promoter-select-wrap {
  position: relative;
  min-width: 0;
}
.promoter-select-wrap:after {
  content: "⌄";
  position: absolute;
  right: 13px;
  top: 50%;
  color: #57758a;
  font-size: 17px;
  line-height: 1;
  transform: translateY(-55%);
  pointer-events: none;
}
.promoter-picker select {
  appearance: none !important;
  padding-left: 38px !important;
  padding-right: 34px !important;
  border-color: #d5e3eb !important;
  color: #173d5b !important;
  box-shadow: 0 4px 10px rgba(2, 20, 42, 0.14) !important;
}
.promoter-picker select:hover {
  border-color: #9dc6d8 !important;
  background: #fbfdfe;
}
.select-mark {
  position: absolute;
  left: 13px;
  top: 50%;
  z-index: 1;
  color: #0a82ba;
  font-size: 17px;
  line-height: 1;
  transform: translateY(-53%);
  pointer-events: none;
}
.promoter-picker .export-button {
  font-size: 10px;
  letter-spacing: 0.01em;
}
.promoter-picker .export-button:disabled {
  background: #17466d !important;
  border-color: #2e6687 !important;
  color: #9fc1d1 !important;
  opacity: 1;
  box-shadow: none;
}
@media (max-width: 760px) {
  .promoter-picker {
    min-width: 0 !important;
    width: 100%;
    padding: 13px !important;
  }
  .picker-topline {
    margin-bottom: 2px;
  }
  .promoter-picker .export-button {
    margin-top: 2px;
  }
}
@media (max-width: 390px) {
  .picker-context {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Promotores: ajustes finais após os estilos legados da página. */
.promoter-tab {
  display: block;
  position: relative;
  width: 100%;
  margin: 0 0 28px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}
.promoter-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  padding: 26px 28px 25px;
  background: var(--navy);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(10, 43, 84, 0.13);
  overflow: hidden;
}
.promoter-head:after {
  content: "";
  position: absolute;
  right: -72px;
  top: -108px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(148, 208, 235, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 22px rgba(148, 208, 235, 0.04),
    0 0 0 44px rgba(148, 208, 235, 0.025);
  pointer-events: none;
}
.promoter-intro,
.promoter-picker {
  position: relative;
  z-index: 1;
}
.promoter-intro h2 {
  max-width: 540px;
  margin: 0;
  color: #fff;
  font:
    800 27px/1.1 "Manrope",
    sans-serif;
  letter-spacing: -0.05em;
  text-wrap: balance;
}
.promoter-intro .eyebrow {
  margin-bottom: 9px;
  color: #8dc5df;
}
.promoter-intro .muted {
  max-width: 470px;
  margin-top: 10px;
  color: #bfd4e0;
  line-height: 1.5;
}
.promoter-picker {
  display: grid;
  grid-template-columns: minmax(210px, 240px) auto;
  gap: 9px;
  align-items: end;
}
.promoter-picker label {
  grid-column: 1/-1;
  color: #a8c8d8;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.promoter-picker select {
  width: 100%;
  height: 44px;
  border: 1px solid #6d96ad;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 13px;
  font-size: 12px;
  outline: none;
}
.promoter-picker select:focus {
  border-color: #a8e0f5;
  box-shadow: 0 0 0 3px rgba(137, 211, 239, 0.18);
}
.promoter-picker .export-button {
  height: 44px;
  min-height: 44px;
  border: 1px solid #1e9bd2;
  border-radius: 8px;
  background: #168bc3;
  color: #fff;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.14);
  white-space: nowrap;
}
.promoter-picker .export-button:hover:not(:disabled) {
  background: #28a5d8;
  border-color: #28a5d8;
  transform: translateY(-1px);
}
.promoter-picker .export-button span {
  margin-left: 8px;
  font-size: 15px;
  vertical-align: -1px;
}
#promoterDashboard {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
  grid-column: auto;
}
.promoter-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 0;
}
.promoter-kpis article {
  position: relative;
  min-width: 0;
  min-height: 120px;
  padding: 17px 16px 15px;
  background: #fff;
  border: 1px solid #e1ebf1;
  border-radius: 11px;
  box-shadow: 0 5px 17px rgba(18, 59, 92, 0.035);
  overflow: hidden;
}
.promoter-kpis article:after {
  content: "";
  position: absolute;
  left: 16px;
  bottom: 0;
  width: 26px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #bdd2dd;
}
.promoter-kpis article span:first-child {
  display: block;
  color: #8399a8;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.promoter-kpis article strong {
  display: block;
  margin: 11px 0 0;
  color: var(--navy);
  font:
    800 30px/1 "Manrope",
    sans-serif;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}
.promoter-kpis article strong b {
  margin-left: 2px;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.promoter-kpis article small {
  display: block;
  margin-top: 8px;
  color: #8ea0ad;
  font-size: 10px;
  line-height: 1.3;
}
.promoter-kpis .promoter-kpi-positive:after {
  background: #20a370;
}
.promoter-kpis .promoter-kpi-positive strong {
  color: #147453;
}
.promoter-kpis .promoter-kpi-alert:after {
  background: #db884c;
}
.promoter-kpis .promoter-kpi-alert strong {
  color: #b96526;
}
.promoter-kpis .promoter-kpi-accent {
  background: #eaf6fb !important;
  border-color: #c9e5f1 !important;
}
.promoter-kpis .promoter-kpi-accent:after {
  background: #0878c9;
}
.promoter-kpis .promoter-kpi-accent strong {
  color: #0878c9;
}
.promoter-progress {
  height: 5px;
  margin-top: 13px;
  background: #cfe6f0;
  border-radius: 5px;
  overflow: hidden;
}
.promoter-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #0878c9;
  transition: width 0.5s ease;
}
.promoter-panel {
  margin-top: 0;
  padding: 21px 22px 18px;
  background: #fff;
  border: 1px solid #e1ebf1;
  border-radius: 12px;
  box-shadow: 0 5px 17px rgba(18, 59, 92, 0.035);
}
.promoter-block-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.promoter-block-heading .eyebrow {
  margin-bottom: 5px;
}
.promoter-block-heading h3 {
  margin: 0;
  color: var(--navy);
  font:
    800 17px/1.2 "Manrope",
    sans-serif;
  letter-spacing: -0.035em;
}
.cycle-range {
  padding-top: 2px;
  color: #7f97a7;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.cycle-days {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
  margin-top: 22px;
}
.cycle-day,
.cycle-day.has-plan,
.cycle-day.empty-day {
  display: block;
  min-width: 0;
  height: auto;
  padding: 12px 10px 11px;
  background: #f8fbfc;
  border: 1px solid #e7eff3;
  border-radius: 9px;
  opacity: 1;
}
.cycle-day.empty-day {
  opacity: 0.65;
}
.cycle-day-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin: 0 0 0;
}
.cycle-day-top b {
  color: var(--navy);
  font-size: 10px;
  letter-spacing: 0.06em;
}
.cycle-day-top small {
  color: #8098a8;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.cycle-bar {
  height: 6px;
  margin: 18px 0 9px;
  background: #e5eef2;
  border-radius: 6px;
  overflow: hidden;
}
.cycle-bar i {
  display: block;
  width: 0;
  height: 100%;
  min-height: 0;
  border-radius: inherit;
  background: #20a370;
  transition: width 0.55s ease;
}
.cycle-day small:last-child {
  display: block;
  min-height: 12px;
  margin: 0;
  color: #8da1ae;
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cycle-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid #edf2f5;
  color: #8ca0ad;
  font-size: 9px;
}
.promoter-pending {
  padding-bottom: 9px;
}
.pending-pill {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 7px;
  background: #fff2e9;
  color: #b96526 !important;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}
.pending-list {
  margin-top: 14px;
  border-top: 0;
}
.pending-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid #edf2f5;
  border-bottom: 0;
}
.pending-index {
  display: block;
  color: #9bb0bc;
  font:
    700 10px "Manrope",
    sans-serif;
  font-variant-numeric: tabular-nums;
}
.pending-item strong {
  display: block;
  min-width: 0;
  color: #385870;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pending-item small {
  display: block;
  margin-top: 4px;
  color: #91a3af;
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pending-when {
  color: #7f97a7;
  font-size: 9px;
  white-space: nowrap;
}
.promoter-pending .status {
  justify-self: end;
}
.promoter-pending .status.pending {
  background: #fff2e9;
  color: #b96526;
}
.pending-more {
  margin: 12px 0 0;
  padding: 12px 0 4px;
  border-top: 1px solid #edf2f5;
  color: #8b9da8;
  font-size: 10px;
}
.promoter-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 28px 12px 26px;
  color: #8499a7;
  text-align: center;
  font-size: 10px;
}
.promoter-empty strong {
  color: #147453;
  font:
    700 13px "Manrope",
    sans-serif;
}
.empty-check {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 3px;
  border-radius: 9px;
  background: #e8f7ef;
  color: #16845b;
  font-size: 18px;
}
@media (max-width: 1050px) {
  .promoter-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .promoter-head {
    grid-template-columns: 1fr;
    gap: 23px;
    padding: 22px 19px 20px;
  }
  .promoter-intro h2 {
    font-size: 24px;
  }
  .promoter-picker {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .promoter-picker label {
    grid-column: auto;
  }
  .promoter-picker .export-button {
    width: 100%;
  }
  .promoter-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .promoter-kpis article {
    min-height: 112px;
    padding: 15px 14px;
  }
  .promoter-kpis article:after {
    left: 14px;
  }
  .promoter-kpis article strong {
    font-size: 27px;
  }
  .promoter-panel {
    padding-left: 16px;
    padding-right: 16px;
  }
  .cycle-days {
    grid-template-columns: repeat(6, minmax(72px, 1fr));
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .cycle-day {
    padding: 11px 9px;
  }
  .cycle-foot {
    flex-direction: column;
    gap: 5px;
  }
  .pending-item {
    grid-template-columns: 26px minmax(0, 1fr) auto;
  }
  .pending-when {
    grid-column: 2;
    grid-row: 2;
    margin-top: 4px;
  }
  .promoter-pending .status {
    grid-column: 3;
    grid-row: 1/3;
  }
  .cycle-range {
    font-size: 9px;
  }
}
@media (max-width: 390px) {
  .promoter-intro h2 {
    font-size: 22px;
  }
  .promoter-kpis article small {
    font-size: 9px;
  }
  .pending-item {
    gap: 7px;
  }
  .pending-item .status {
    font-size: 8px;
    padding: 5px 6px;
  }
  .cycle-range {
    display: none;
  }
}

/* Controle de contexto: mantém a seleção distinta dos estilos gerais do painel. */
.promoter-picker {
  min-width: 430px !important;
  padding: 14px !important;
  background: rgba(4, 28, 57, 0.48) !important;
  border: 1px solid rgba(153, 208, 230, 0.24) !important;
  border-radius: 12px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}
.picker-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  grid-column: 1/-1;
  gap: 12px;
  margin-bottom: 1px;
}
.picker-topline label {
  color: #a8c8d8;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.picker-context {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(161, 217, 235, 0.2);
  border-radius: 6px;
  color: #c1e0ea;
  font-size: 9px;
  white-space: nowrap;
}
.picker-context i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #62d1a0;
  box-shadow: 0 0 0 3px rgba(98, 209, 160, 0.12);
}
.promoter-select-wrap {
  position: relative;
  min-width: 0;
}
.promoter-select-wrap:after {
  content: "⌄";
  position: absolute;
  right: 13px;
  top: 50%;
  color: #57758a;
  font-size: 17px;
  line-height: 1;
  transform: translateY(-55%);
  pointer-events: none;
}
.promoter-picker select {
  appearance: none !important;
  padding-left: 38px !important;
  padding-right: 34px !important;
  border-color: #d5e3eb !important;
  color: #173d5b !important;
  box-shadow: 0 4px 10px rgba(2, 20, 42, 0.14) !important;
}
.promoter-picker select:hover {
  border-color: #9dc6d8 !important;
  background: #fbfdfe;
}
.select-mark {
  position: absolute;
  left: 13px;
  top: 50%;
  z-index: 1;
  color: #0a82ba;
  font-size: 17px;
  line-height: 1;
  transform: translateY(-53%);
  pointer-events: none;
}
.promoter-picker .export-button {
  font-size: 10px;
  letter-spacing: 0.01em;
}
.promoter-picker .export-button:disabled {
  background: #17466d !important;
  border-color: #2e6687 !important;
  color: #9fc1d1 !important;
  opacity: 1;
  box-shadow: none;
}
@media (max-width: 760px) {
  .promoter-picker {
    min-width: 0 !important;
    width: 100%;
    padding: 13px !important;
  }
  .picker-topline {
    margin-bottom: 2px;
  }
  .promoter-picker .export-button {
    margin-top: 2px;
  }
}
@media (max-width: 390px) {
  .picker-context {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
/* Reposições — overrides finais, isolados da seção. */
.replacements-section .replacement-card {
  min-height: 0 !important;
  height: auto !important;
  padding: 14px 15px 0 !important;
  border: 1px solid #dce8ef !important;
  border-radius: 12px !important;
  box-shadow: 0 5px 16px rgba(18, 59, 92, 0.045) !important;
}
.replacements-section .replacement-card-brand {
  display: grid !important;
  grid-template-columns: 68px minmax(0, 1fr) !important;
  gap: 13px !important;
  min-height: 68px !important;
  padding: 0 0 12px !important;
  text-align: left !important;
}
.replacements-section .replacement-logo {
  width: 68px !important;
  height: 68px !important;
  border-radius: 9px !important;
  box-shadow: 0 5px 12px rgba(23, 46, 97, 0.13) !important;
}
.replacements-section .replacement-card-brand strong {
  margin: 0 !important;
  font-size: 17px !important;
  line-height: 1.1 !important;
}
.replacements-section .replacement-card-brand small {
  margin-top: 5px !important;
  font-size: 10px !important;
}
.replacements-section .replacement-card-side-metrics {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0 !important;
  margin-top: 12px !important;
  padding-top: 10px !important;
}
.replacements-section .replacement-card-side-metrics span {
  padding: 0 8px !important;
}
.replacements-section .replacement-card-side-metrics b {
  font-size: 18px !important;
}
.replacements-section .replacement-card-side-metrics small {
  margin-top: 5px !important;
  font-size: 8px !important;
  white-space: normal !important;
}
.replacements-section .replacement-card-list {
  display: none !important;
  margin: 12px 0 0 !important;
  padding: 10px 0 0 !important;
}
.replacements-section .replacement-card.open .replacement-card-list {
  display: flex !important;
}
.replacements-section .replacement-more {
  position: static !important;
  width: 100% !important;
  height: 31px !important;
  min-height: 31px !important;
  margin: 9px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-top: 1px solid #edf2f5 !important;
  border-radius: 0 !important;
  font-size: 9px !important;
}
.replacements-section .replacement-more b {
  display: block !important;
  font-size: 14px !important;
  transform: none !important;
}
.replacements-section .replacement-card.open .replacement-more b {
  transform: rotate(180deg) !important;
}
@media (max-width: 760px) {
  .replacements-section {
    margin-top: 24px !important;
    margin-bottom: 22px !important;
  }
  .replacements-section .replacement-bento {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .replacements-section .replacement-card {
    padding: 13px 13px 0 !important;
  }
  .replacements-section .replacement-card-brand {
    grid-template-columns: 60px minmax(0, 1fr) !important;
    gap: 12px !important;
    min-height: 60px !important;
    padding-bottom: 10px !important;
  }
  .replacements-section .replacement-logo {
    width: 60px !important;
    height: 60px !important;
  }
  .replacements-section .replacement-card-brand strong {
    font-size: 16px !important;
  }
  .replacements-section .replacement-card-brand small {
    font-size: 9px !important;
  }
  .replacements-section .replacement-card-side-metrics {
    margin-top: 10px !important;
    padding-top: 9px !important;
  }
  .replacements-section .replacement-card-side-metrics span {
    padding: 0 6px !important;
  }
  .replacements-section .replacement-card-side-metrics b {
    font-size: 16px !important;
  }
  .replacements-section .replacement-card-side-metrics small {
    font-size: 8px !important;
  }
}
@media (max-width: 390px) {
  .replacements-section .replacement-card-side-metrics span {
    padding: 0 4px !important;
  }
  .replacements-section .replacement-card-side-metrics b {
    font-size: 15px !important;
  }
  .replacements-section .replacement-card-side-metrics small {
    font-size: 7px !important;
  }
}
/* Cabeçalho e ritmo da seção, mantidos compactos junto aos cartões. */
.replacements-section {
  margin-top: 30px !important;
  margin-bottom: 26px !important;
}
.replacements-section .section-heading {
  align-items: center !important;
  padding: 0 2px 11px !important;
}
.replacements-section .section-heading h2 {
  font-size: 19px !important;
  letter-spacing: -0.035em !important;
}
.replacements-section .section-heading .muted {
  max-width: 520px !important;
  margin-top: 5px !important;
  line-height: 1.45 !important;
  font-size: 11px !important;
}
.replacements-section .replacement-count {
  min-width: 30px !important;
  height: 30px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
}
.replacements-section .replacement-bento {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin-top: 11px !important;
}
@media (max-width: 760px) {
  .replacements-section {
    margin-top: 24px !important;
    margin-bottom: 22px !important;
  }
  .replacements-section .replacement-bento {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
}
@media (max-width: 390px) {
  .replacements-section .section-heading h2 {
    font-size: 18px !important;
  }
  .replacements-section .section-heading .muted {
    font-size: 10px !important;
  }
}
.view-tab[data-view="replacements"].active {
  color: #b96526;
  border-bottom-color: #d98345;
}
.view-tab[data-view="replacements"] .tab-count {
  background: #fff2e8;
  color: #b96526;
}
.replacements-section .section-heading {
  gap: 10px;
  flex-wrap: wrap;
}
.replacements-section .replacement-count {
  margin-left: auto;
}
.replacement-context {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: #8297a5;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.replacement-context input {
  width: 132px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #dce8ef;
  border-radius: 7px;
  background: #fff;
  color: #294c63;
  font:
    500 11px "DM Sans",
    sans-serif;
  letter-spacing: 0;
  outline: none;
}
.replacement-context input:focus {
  border-color: #70b6e0;
  box-shadow: 0 0 0 3px #e7f5fc;
}
@media (max-width: 600px) {
  .replacement-context {
    width: 100%;
    justify-content: space-between;
    margin-top: 2px;
  }
  .replacement-context input {
    width: 142px;
  }
  .replacements-section .replacement-count {
    margin-left: auto;
  }
}

/* Reposições: dashboard por marca. */
.replacements-section .replacement-dashboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 12px;
}
.replacements-section .replacement-kpi {
  position: relative;
  min-width: 0;
  min-height: 94px;
  padding: 14px 15px 13px;
  border: 1px solid #e1ebf1;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 5px 17px rgba(18, 59, 92, 0.035);
  overflow: hidden;
}
.replacements-section .replacement-kpi:after {
  content: "";
  position: absolute;
  left: 15px;
  bottom: 0;
  width: 25px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #b9cfd9;
}
.replacements-section .replacement-kpi span {
  display: block;
  color: #8399a8;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.replacements-section .replacement-kpi strong {
  display: block;
  margin-top: 10px;
  color: #142d58;
  font:
    800 27px/1 "Manrope",
    sans-serif;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}
.replacements-section .replacement-kpi small {
  display: block;
  margin-top: 7px;
  color: #8a9eab;
  font-size: 9px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.replacements-section .replacement-kpi.is-primary {
  background: #eef8fc;
  border-color: #cde7f1;
}
.replacements-section .replacement-kpi.is-primary:after {
  background: #0878c9;
}
.replacements-section .replacement-kpi.is-primary strong {
  color: #0878c9;
}
.replacements-section .replacement-kpi.is-alert {
  background: #fff8f2;
  border-color: #f1dfcf;
}
.replacements-section .replacement-kpi.is-alert:after {
  background: #d8894c;
}
.replacements-section .replacement-kpi.is-alert strong {
  color: #bd6a30;
}
.replacements-section .replacement-bento {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 12px !important;
  margin-top: 0 !important;
}
.replacements-section .replacement-list.replacement-bento {
  display: grid !important;
  flex-direction: initial !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}
.replacements-section .replacement-card {
  min-height: 0 !important;
  padding: 0 !important;
  border: 1px solid #dce8ef !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 5px 17px rgba(18, 59, 92, 0.045) !important;
  overflow: hidden !important;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease !important;
}
.replacements-section .replacement-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 11px 24px rgba(18, 59, 92, 0.085) !important;
  border-color: #c4dce8 !important;
}
.replacements-section .replacement-card:focus-visible {
  outline: 2px solid #70b6e0 !important;
  outline-offset: 3px !important;
}
.replacements-section .replacement-card-brand {
  position: relative;
  display: grid !important;
  grid-template-columns: 56px minmax(0, 1fr) 22px !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 82px !important;
  padding: 13px 14px !important;
  border: 0 !important;
  text-align: left !important;
}
.replacements-section .replacement-logo {
  width: 56px !important;
  height: 56px !important;
  border-radius: 10px !important;
  background: #182e60 !important;
  box-shadow: 0 5px 12px rgba(23, 46, 97, 0.13) !important;
}
.replacements-section .replacement-logo img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 5px !important;
  object-fit: contain !important;
}
.replacements-section .replacement-card-brand > div {
  min-width: 0 !important;
  padding: 0 !important;
}
.replacements-section .replacement-card-kicker {
  display: block;
  color: #9aaeb9;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.replacements-section .replacement-card-brand h3 {
  margin: 4px 0 0;
  color: #142d58;
  font:
    800 17px/1.1 "Manrope",
    sans-serif;
  letter-spacing: -0.045em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.replacements-section .replacement-card-brand small {
  display: block;
  margin-top: 5px;
  color: #7d95a5;
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.replacements-section .replacement-card-arrow {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid #dbe8ee;
  border-radius: 7px;
  color: #0878c9;
  font-size: 13px;
  line-height: 1;
}
.replacements-section .replacement-brand-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #edf2f5;
  border-bottom: 1px solid #edf2f5;
}
.replacements-section .replacement-brand-metrics > div {
  min-width: 0;
  padding: 11px 10px 10px;
  border-left: 1px solid #edf2f5;
}
.replacements-section .replacement-brand-metrics > div:first-child {
  border-left: 0;
}
.replacements-section .replacement-brand-metrics span {
  display: block;
  color: #8a9eab;
  font-size: 8px;
  line-height: 1.15;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}
.replacements-section .replacement-brand-metrics strong {
  display: block;
  margin-top: 6px;
  color: #294c63;
  font:
    800 18px/1 "Manrope",
    sans-serif;
  font-variant-numeric: tabular-nums;
}
.replacements-section .replacement-brand-metrics .is-warning strong {
  color: #c36a2b;
}
.replacements-section .replacement-brand-metrics .is-danger strong {
  color: #b85b55;
}
.replacements-section .replacement-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  color: #8a9eab;
  font-size: 9px;
}
.replacements-section .replacement-card-footer b {
  color: #0878c9;
  font-weight: 700;
  white-space: nowrap;
}
.replacement-modal {
  width: min(700px, calc(100% - 28px));
  max-height: min(86vh, 720px);
  padding: 0;
  border: 1px solid #dce8ef;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(16, 44, 69, 0.2);
}
.replacement-modal::backdrop {
  background: rgba(8, 30, 49, 0.5);
  backdrop-filter: blur(3px);
}
.replacement-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 17px;
  border-bottom: 1px solid var(--line);
}
.replacement-modal-title {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}
.replacement-modal-title .replacement-logo {
  width: 58px !important;
  height: 58px !important;
  flex: none;
}
.replacement-modal-title .replacement-logo img {
  width: 100%;
  height: 100%;
  padding: 5px !important;
  object-fit: contain;
}
.replacement-modal-title h2 {
  margin: 0;
  color: var(--navy);
  font:
    800 22px/1.1 "Manrope",
    sans-serif;
  letter-spacing: -0.045em;
}
.replacement-modal-title .eyebrow {
  margin: 0 0 5px;
}
.replacement-modal-title .muted {
  margin-top: 6px;
  line-height: 1.4;
}
.replacement-modal-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 18px 24px;
  padding-bottom: 17px;
  border-bottom: 1px solid #edf2f5;
}
.replacement-modal-kpis > div {
  min-width: 0;
  padding: 11px 12px;
  border-radius: 9px;
  background: #f7fafb;
}
.replacement-modal-kpis span {
  display: block;
  color: #8a9eab;
  font-size: 8px;
}
.replacement-modal-kpis strong {
  display: block;
  margin-top: 7px;
  color: #294c63;
  font:
    800 20px/1 "Manrope",
    sans-serif;
}
.replacement-modal-kpis .is-warning strong {
  color: #c36a2b;
}
.replacement-modal-kpis .is-danger strong {
  color: #b85b55;
}
.replacement-modal-list {
  max-height: 48vh;
  overflow: auto;
  padding: 0 24px 18px;
}
.replacement-detail-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, auto) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #edf2f5;
}
.replacement-detail-row:last-child {
  border-bottom: 0;
}
.replacement-detail-row strong,
.replacement-detail-row small {
  display: block;
}
.replacement-detail-row strong {
  color: #385870;
  font-size: 11px;
}
.replacement-detail-row small {
  margin-top: 4px;
  color: #8a9eab;
  font-size: 9px;
  line-height: 1.3;
}
.replacement-detail-row > div:nth-child(2) > span {
  display: block;
  color: #b96526;
  font-size: 9px;
  font-weight: 700;
}
.replacement-detail-row .photo-link {
  font-size: 9px;
  white-space: nowrap;
}
@media (max-width: 850px) {
  .replacements-section .replacement-dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .replacement-modal-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .replacements-section .replacement-dashboard {
    gap: 8px;
    margin: 12px 0 10px;
  }
  .replacements-section .replacement-kpi {
    min-height: 88px;
    padding: 12px;
  }
  .replacements-section .replacement-kpi:after {
    left: 12px;
  }
  .replacements-section .replacement-kpi strong {
    font-size: 23px;
  }
  .replacements-section .replacement-kpi small {
    font-size: 8px;
  }
  .replacements-section .replacement-bento {
    grid-template-columns: 1fr !important;
  }
  .replacements-section .replacement-card-brand {
    grid-template-columns: 52px minmax(0, 1fr) 22px !important;
    min-height: 77px !important;
    padding: 12px !important;
  }
  .replacements-section .replacement-logo {
    width: 52px !important;
    height: 52px !important;
  }
  .replacements-section .replacement-card-brand h3 {
    font-size: 16px !important;
  }
  .replacements-section .replacement-brand-metrics > div {
    padding: 10px 8px 9px;
  }
  .replacements-section .replacement-brand-metrics strong {
    font-size: 16px;
  }
  .replacement-modal-head {
    padding: 18px 16px 14px;
  }
  .replacement-modal-title h2 {
    font-size: 19px;
  }
  .replacement-modal-title .muted {
    font-size: 11px;
  }
  .replacement-modal-kpis {
    margin: 14px 16px;
    padding-bottom: 14px;
  }
  .replacement-modal-list {
    padding: 0 16px 14px;
  }
  .replacement-detail-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }
  .replacement-detail-row > div:nth-child(2) {
    grid-column: 1;
  }
  .replacement-detail-row .photo-link {
    grid-column: 2;
    grid-row: 1/3;
    align-self: center;
  }
}
@media (max-width: 390px) {
  .replacements-section .replacement-brand-metrics span {
    font-size: 7px;
  }
  .replacements-section .replacement-brand-metrics strong {
    font-size: 15px;
  }
  .replacement-modal-kpis strong {
    font-size: 18px;
  }
}

/* Radar de permanência: central de operação compacta, com sinais âmbar e coral. */
.radar-section {
  --radar-ink: #102d4a;
  --radar-deep: #0c2239;
  --radar-blue: #1677a9;
  --radar-mint: #2eaa7c;
  --radar-amber: #d48742;
  --radar-coral: #c85d57;
  margin: 0 0 30px;
  padding: 0 0 26px;
  color: var(--radar-ink);
  animation: radar-in 0.45s ease both;
}
.radar-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  padding: 31px 30px 28px;
  border-radius: 15px;
  background: var(--radar-deep);
  color: #fff;
  box-shadow: 0 18px 42px rgba(8, 31, 51, 0.13);
  overflow: hidden;
  position: relative;
}
.radar-hero:after {
  content: "";
  position: absolute;
  right: -80px;
  top: -95px;
  width: 310px;
  height: 310px;
  border: 1px solid rgba(122, 212, 198, 0.2);
  border-radius: 50%;
  box-shadow:
    0 0 0 22px rgba(122, 212, 198, 0.03),
    0 0 0 48px rgba(122, 212, 198, 0.025);
  pointer-events: none;
}
.radar-hero .eyebrow {
  color: #78cdbb;
  margin: 0 0 11px;
}
.radar-hero h2 {
  max-width: 620px;
  margin: 0;
  color: #fff;
  font:
    800 clamp(26px, 3vw, 42px) / 0.98 "Manrope",
    sans-serif;
  letter-spacing: -0.06em;
}
.radar-lead {
  max-width: 580px;
  margin: 14px 0 0;
  color: #a9c3d0;
  font-size: 12px;
  line-height: 1.55;
}
.radar-hero-actions {
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 310px;
}
.radar-date-context {
  width: 100%;
  margin: 0 0 5px;
  color: #7e9daf;
  font-size: 9px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-align: right;
}
.radar-date-context b {
  margin-left: 6px;
  color: #cce2e7;
  font-weight: 800;
}
.radar-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  font:
    800 9px "DM Sans",
    sans-serif;
  letter-spacing: 0.035em;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}
.radar-button:hover {
  transform: translateY(-1px);
}
.radar-button:disabled {
  cursor: wait;
  opacity: 0.55;
  transform: none;
}
.radar-button-light {
  border-color: #d7e5eb;
  background: #fff;
  color: #19516e;
}
.radar-button-light:hover {
  border-color: #98c3d2;
  background: #f3fafc;
}
.radar-button-outline {
  border-color: rgba(169, 216, 222, 0.36);
  background: rgba(255, 255, 255, 0.05);
  color: #cce8e7;
}
.radar-button-outline:hover {
  border-color: #79c8bd;
  background: rgba(112, 202, 186, 0.12);
}
.radar-button-dark {
  background: var(--radar-ink);
  color: #fff;
  box-shadow: 0 5px 12px rgba(8, 31, 51, 0.13);
}
.radar-button-dark:hover {
  background: #1a4668;
  box-shadow: 0 8px 18px rgba(8, 31, 51, 0.19);
}
.radar-settings {
  display: grid;
  grid-template-columns:
    minmax(230px, 1.7fr) repeat(3, minmax(130px, 0.8fr))
    auto;
  align-items: center;
  gap: 14px;
  margin: 12px 0 14px;
  padding: 13px 15px;
  border: 1px solid #d9e7ed;
  border-radius: 10px;
  background: #f4fafb;
}
.radar-settings-copy {
  min-width: 0;
}
.radar-section-kicker {
  display: block;
  color: #7f9aa9;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.radar-settings-copy strong {
  display: block;
  margin-top: 5px;
  color: var(--radar-ink);
  font:
    800 13px "Manrope",
    sans-serif;
  letter-spacing: -0.03em;
}
.radar-settings-copy small {
  display: block;
  margin-top: 3px;
  color: #8b9eaa;
  font-size: 9px;
}
.radar-settings label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #7c94a2;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.radar-settings label span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #7891a0;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.radar-settings input {
  box-sizing: border-box;
  width: 75px;
  height: 31px;
  padding: 0 8px;
  border: 1px solid #cfdee6;
  border-radius: 6px;
  background: #fff;
  color: var(--radar-ink);
  font:
    800 12px "Manrope",
    sans-serif;
  outline: none;
}
.radar-settings input:focus {
  border-color: #65b7b1;
  box-shadow: 0 0 0 3px #dff3ef;
}
.radar-inline-status {
  max-width: 120px;
  color: #1b8967;
  font-size: 9px;
  line-height: 1.3;
}
.radar-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
}
.radar-kpi {
  position: relative;
  min-width: 0;
  min-height: 101px;
  padding: 14px 14px 12px;
  border: 1px solid #dfeaf0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 15px rgba(18, 59, 92, 0.035);
  overflow: hidden;
}
.radar-kpi:after {
  content: "";
  position: absolute;
  left: 14px;
  bottom: 0;
  width: 27px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #b6cbd5;
}
.radar-kpi span {
  display: block;
  color: #879ca7;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.radar-kpi strong {
  display: block;
  margin-top: 10px;
  color: var(--radar-ink);
  font:
    800 25px/1 "Manrope",
    sans-serif;
  letter-spacing: -0.065em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.radar-kpi small {
  display: block;
  margin-top: 7px;
  color: #91a3ad;
  font-size: 8px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.radar-kpi-primary {
  background: #eef8fb;
  border-color: #cee8ee;
}
.radar-kpi-primary:after {
  background: #218aae;
}
.radar-kpi-primary strong {
  color: #1675a6;
}
.radar-kpi-critical {
  background: #fff3ee;
  border-color: #f1d8cf;
}
.radar-kpi-critical:after {
  background: var(--radar-coral);
}
.radar-kpi-critical strong {
  color: #b84f4b;
}
.radar-kpi-warning {
  background: #fff9ee;
  border-color: #f0e2c9;
}
.radar-kpi-warning:after {
  background: var(--radar-amber);
}
.radar-kpi-warning strong {
  color: #b56e31;
}
.radar-quality {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 16px;
  margin: 11px 2px 20px;
  color: #8298a4;
  font-size: 9px;
}
.radar-quality span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.radar-quality-live {
  color: #16835f !important;
  font-weight: 700;
}
.radar-quality-live i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2fac7e;
  box-shadow: 0 0 0 3px rgba(47, 172, 126, 0.12);
}
.radar-quality-coordinates {
  margin-left: auto;
  color: #1676a2;
  font-weight: 700;
}
.radar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.75fr);
  gap: 12px;
  margin-top: 12px;
}
.radar-panel {
  min-width: 0;
  border: 1px solid #dce8ee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 17px rgba(18, 59, 92, 0.04);
  overflow: hidden;
}
.radar-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding: 19px 20px 15px;
}
.radar-panel-heading h3 {
  margin: 5px 0 0;
  color: var(--radar-ink);
  font:
    800 19px/1.1 "Manrope",
    sans-serif;
  letter-spacing: -0.05em;
}
.radar-panel-heading p {
  margin: 6px 0 0;
  color: #8a9da8;
  font-size: 10px;
  line-height: 1.4;
}
.radar-panel-heading .radar-button {
  flex: none;
}
.radar-case-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 20px 12px;
}
.radar-case-filters button {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid #dfe9ee;
  border-radius: 6px;
  background: #fff;
  color: #8a9ea9;
  font:
    700 9px "DM Sans",
    sans-serif;
  cursor: pointer;
}
.radar-case-filters button:hover {
  border-color: #9ac4d1;
  color: #196285;
}
.radar-case-filters button.is-active {
  border-color: #f0cec4;
  background: #fff4f0;
  color: #bb504b;
}
.radar-case-filters b {
  margin-left: 3px;
  font-weight: 800;
}
.radar-table-wrap {
  width: 100%;
  overflow: auto;
}
.radar-table {
  width: 100%;
  min-width: 730px;
  border-collapse: collapse;
  text-align: left;
}
.radar-table th {
  padding: 9px 10px;
  border-top: 1px solid #edf2f4;
  border-bottom: 1px solid #e5edf1;
  color: #91a2ac;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  white-space: nowrap;
}
.radar-table th:first-child,
.radar-table td:first-child {
  padding-left: 20px;
}
.radar-table th:last-child,
.radar-table td:last-child {
  padding-right: 20px;
}
.radar-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #edf2f4;
  color: #385a6d;
  font-size: 9px;
  vertical-align: middle;
}
.radar-table tr:last-child td {
  border-bottom: 0;
}
.radar-table td strong,
.radar-table td small {
  display: block;
}
.radar-table td strong {
  color: #294b62;
  font-size: 10px;
  line-height: 1.25;
}
.radar-table td small {
  margin-top: 4px;
  color: #91a1ab;
  font-size: 8px;
  line-height: 1.25;
}
.radar-table .radar-number {
  font:
    800 10px "Manrope",
    sans-serif;
  white-space: nowrap;
}
.radar-table .radar-number.is-negative {
  color: #c15d54;
}
.radar-table .radar-number.is-positive {
  color: #1a8969;
}
.radar-status {
  display: inline-flex;
  align-items: center;
  padding: 5px 6px;
  border-radius: 5px;
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
}
.radar-status-critico {
  background: #ffebe7;
  color: #b64c49;
}
.radar-status-abaixo_ideal {
  background: #fff3dd;
  color: #aa6b2c;
}
.radar-status-incompleto {
  background: #edf0f2;
  color: #647e8c;
}
.radar-status-ok {
  background: #e8f7ef;
  color: #167e5b;
}
.radar-link-status {
  max-width: 105px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.radar-treat-button {
  min-height: 27px;
  padding: 0 8px;
  border: 1px solid #b9d9df;
  border-radius: 6px;
  background: #f1fafb;
  color: #16729b;
  font:
    800 8px "DM Sans",
    sans-serif;
  cursor: pointer;
}
.radar-treat-button:hover {
  border-color: #6ab8be;
  background: #e7f7f5;
}
.radar-treatment-state {
  padding-left: 6px;
  color: #16835f !important;
  font-weight: 800;
}
.radar-treatment-state.pendente {
  color: #b87536 !important;
}
.radar-no-action {
  color: #9babb3;
  font-size: 8px;
}
.radar-empty {
  padding: 28px 20px !important;
  color: #9aaab2 !important;
  font-size: 10px !important;
  text-align: center;
}
.radar-brand-table {
  min-width: 540px;
}
.radar-brand-table td {
  padding-top: 11px;
  padding-bottom: 11px;
}
.radar-lower-layout {
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  margin-top: 12px;
}
.radar-series-block {
  padding: 0 20px 18px;
}
.radar-series-block h4 {
  margin: 0;
  padding: 10px 0 7px;
  color: #8ba0ab;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.radar-series-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #edf2f4;
}
.radar-series-row:last-child {
  border-bottom: 0;
}
.radar-series-row strong {
  display: block;
  max-width: 220px;
  color: #385a6d;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.radar-series-row small {
  display: block;
  margin-top: 4px;
  color: #94a5ad;
  font-size: 8px;
}
.radar-sparkline {
  width: 112px;
  height: 32px;
  overflow: visible;
}
.radar-sparkline polyline {
  fill: none;
  stroke: #1b8fa1;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.radar-sparkline circle {
  fill: #fff;
  stroke: #1b8fa1;
  stroke-width: 2;
}
.radar-no-spark {
  color: #a4b0b5;
  font-size: 8px;
}
.radar-series-empty {
  padding: 12px 0 !important;
  text-align: left;
}
.radar-ranking {
  padding: 0 20px 13px;
}
.radar-rank-row {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1px solid #edf2f4;
}
.radar-rank-row:last-child {
  border-bottom: 0;
}
.radar-rank-number {
  color: #a1b1ba;
  font:
    800 10px "Manrope",
    sans-serif;
}
.radar-rank-row strong {
  display: block;
  color: #385a6d;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.radar-rank-row small {
  display: block;
  margin-top: 3px;
  color: #92a2ac;
  font-size: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.radar-rank-row > b {
  color: #bd5c51;
  font:
    800 13px "Manrope",
    sans-serif;
}
.radar-before-after-heading {
  margin: 3px 20px 0;
  padding: 14px 0 7px;
  border-top: 1px solid #edf2f4;
}
.radar-before-after-heading p {
  margin: 4px 0 0;
  color: #8c9ea7;
  font-size: 9px;
}
.radar-before-after {
  padding: 0 20px 17px;
}
.radar-before-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 12px auto;
  align-items: center;
  gap: 6px;
  padding: 9px 0;
  border-bottom: 1px solid #edf2f4;
}
.radar-before-row:last-child {
  border-bottom: 0;
}
.radar-before-row strong,
.radar-before-row small {
  display: block;
}
.radar-before-row strong {
  color: #385a6d;
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.radar-before-row small {
  margin-top: 3px;
  color: #93a3ab;
  font-size: 8px;
}
.radar-before-row span,
.radar-before-row b {
  font:
    800 9px "Manrope",
    sans-serif;
  white-space: nowrap;
}
.radar-before-row span {
  color: #b47c43;
}
.radar-before-row b {
  color: #178366;
}
.radar-before-row i {
  color: #aab8bd;
  font-style: normal;
}
.radar-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 16px;
  padding: 12px 2px 0;
  border-top: 1px solid #e1ebef;
  color: #8da0aa;
  font-size: 9px;
}
.radar-footer span:last-child {
  color: #1681a0;
  font-weight: 700;
}
.radar-treatment-dialog {
  width: min(620px, calc(100% - 28px));
  padding: 0;
  border: 1px solid #d7e5eb;
  border-radius: 14px;
  background: #fff;
  color: var(--radar-ink);
  box-shadow: 0 25px 80px rgba(7, 32, 51, 0.23);
}
.radar-treatment-dialog::backdrop {
  background: rgba(8, 30, 49, 0.52);
  backdrop-filter: blur(3px);
}
.radar-treatment-dialog form {
  padding: 0;
}
.radar-dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid #e7eef1;
}
.radar-dialog-head h3 {
  margin: 6px 0 0;
  color: var(--radar-ink);
  font:
    800 21px/1.1 "Manrope",
    sans-serif;
  letter-spacing: -0.05em;
}
.radar-dialog-head p {
  margin: 6px 0 0;
  color: #8b9fa9;
  font-size: 10px;
  line-height: 1.4;
}
.radar-dialog-close {
  width: 26px;
  height: 26px;
  border: 1px solid #dce8ed;
  border-radius: 7px;
  background: #fff;
  color: #6e8b9b;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.radar-treatment-dialog form > label {
  display: block;
  margin: 18px 24px 0;
  color: #7d94a1;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.radar-treatment-dialog textarea,
.radar-treatment-dialog input,
.radar-treatment-dialog select {
  box-sizing: border-box;
  width: 100%;
  margin-top: 7px;
  padding: 9px 10px;
  border: 1px solid #d6e4ea;
  border-radius: 7px;
  background: #fbfdfe;
  color: #274d65;
  font:
    500 11px "DM Sans",
    sans-serif;
  outline: none;
}
.radar-treatment-dialog textarea {
  resize: vertical;
  line-height: 1.45;
}
.radar-treatment-dialog textarea:focus,
.radar-treatment-dialog input:focus,
.radar-treatment-dialog select:focus {
  border-color: #75bbb6;
  box-shadow: 0 0 0 3px #e5f6f2;
}
.radar-dialog-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.3fr 0.75fr;
  gap: 9px;
  margin: 14px 24px 0;
}
.radar-dialog-grid label {
  color: #7d94a1;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.radar-dialog-grid input,
.radar-dialog-grid select {
  margin-top: 7px;
}
.radar-dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 24px 22px;
}
.radar-dialog-actions span {
  color: #b66f38;
  font-size: 9px;
}
.radar-dialog-actions .radar-button {
  margin-left: auto;
}
@keyframes radar-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 1120px) {
  .radar-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .radar-settings {
    grid-template-columns: 1fr repeat(3, minmax(115px, 0.7fr)) auto;
  }
  .radar-settings-copy {
    grid-column: 1/-1;
  }
  .radar-layout,
  .radar-lower-layout {
    grid-template-columns: 1fr;
  }
  .radar-brand-panel {
    min-height: 0;
  }
}
@media (max-width: 760px) {
  .radar-section {
    margin-top: 4px;
  }
  .radar-hero {
    display: block;
    padding: 23px 18px 19px;
  }
  .radar-hero h2 {
    font-size: 28px;
  }
  .radar-lead {
    font-size: 11px;
  }
  .radar-hero-actions {
    justify-content: flex-start;
    min-width: 0;
    margin-top: 22px;
  }
  .radar-date-context {
    text-align: left;
  }
  .radar-settings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .radar-settings-copy {
    grid-column: 1/-1;
  }
  .radar-settings .radar-button {
    width: 100%;
  }
  .radar-inline-status {
    max-width: none;
    grid-column: 1/-1;
  }
  .radar-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .radar-kpi {
    min-height: 91px;
    padding: 12px;
  }
  .radar-kpi:after {
    left: 12px;
  }
  .radar-kpi strong {
    font-size: 22px;
  }
  .radar-quality {
    align-items: flex-start;
    gap: 7px 12px;
    line-height: 1.3;
  }
  .radar-quality-coordinates {
    margin-left: 0;
    width: 100%;
  }
  .radar-panel-heading {
    padding: 17px 16px 14px;
  }
  .radar-panel-heading h3 {
    font-size: 17px;
  }
  .radar-case-filters {
    padding-left: 16px;
    padding-right: 16px;
    overflow: auto;
  }
  .radar-case-filters button {
    white-space: nowrap;
  }
  .radar-table th:first-child,
  .radar-table td:first-child {
    padding-left: 16px;
  }
  .radar-table th:last-child,
  .radar-table td:last-child {
    padding-right: 16px;
  }
  .radar-series-block,
  .radar-ranking,
  .radar-before-after {
    padding-left: 16px;
    padding-right: 16px;
  }
  .radar-before-after-heading {
    margin-left: 16px;
    margin-right: 16px;
  }
  .radar-footer {
    flex-direction: column;
    gap: 6px;
    padding-left: 2px;
  }
  .radar-dialog-head {
    padding-left: 18px;
    padding-right: 18px;
  }
  .radar-treatment-dialog form > label {
    margin-left: 18px;
    margin-right: 18px;
  }
  .radar-dialog-grid {
    grid-template-columns: 1fr 1fr;
    margin-left: 18px;
    margin-right: 18px;
  }
  .radar-dialog-grid label:last-child {
    grid-column: 1/-1;
  }
  .radar-dialog-actions {
    margin-left: 18px;
    margin-right: 18px;
  }
}
@media (max-width: 390px) {
  .radar-hero h2 {
    font-size: 25px;
  }
  .radar-button {
    font-size: 8px;
    padding: 0 9px;
  }
  .radar-kpi span {
    font-size: 7px;
  }
  .radar-kpi strong {
    font-size: 20px;
  }
  .radar-settings {
    grid-template-columns: 1fr 1fr;
  }
  .radar-settings input {
    width: 64px;
  }
  .radar-series-row {
    grid-template-columns: minmax(0, 1fr) 95px;
  }
  .radar-sparkline {
    width: 95px;
  }
}
/* Navegacao principal: nunca ocultar a barra que permite trocar de contexto. */
.view-tabs {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Radar refresh: leitura visual por prioridade, sem tabelas horizontais. */
.radar-chart-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 12px;
  margin-top: 12px;
}
.radar-chart-panel {
  min-height: 274px;
}
.radar-chart-panel .radar-panel-heading {
  padding-bottom: 10px;
}
.radar-chart-caption {
  align-self: flex-start;
  padding: 6px 8px;
  border: 1px solid #dce9ed;
  border-radius: 5px;
  color: #7895a1;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Top navigation: the workspace contexts live in the header, not inside the page content. */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 82px;
  height: auto;
  padding: 0 max(calc((100vw - 1216px) / 2), 28px);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(18, 59, 92, 0.045);
  backdrop-filter: blur(16px);
}
.topbar .brand {
  min-width: 232px;
}
.topnav.view-tabs {
  width: min(100%, 650px);
  min-width: 0;
  justify-self: center;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
}
.topnav .view-tab {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  min-width: 0;
  height: 50px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #7890a3;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}
.topnav .view-tab:first-child {
  padding-left: 12px;
}
.topnav .view-tab::after {
  display: none;
}
.topnav .view-tab:hover {
  color: var(--navy);
  background: #f4f9fc;
  transform: translateY(-1px);
}
.topnav .view-tab.active {
  color: var(--navy);
  background: #eef8fd;
  border-color: #d2eaf6;
  box-shadow: 0 4px 12px rgba(8, 120, 201, 0.08);
}
.topnav .view-tab:focus-visible {
  outline: 3px solid #9ed4ec;
  outline-offset: 2px;
}
.nav-tab-index {
  display: inline-grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border: 1px solid #dce9ef;
  border-radius: 7px;
  color: #91a5b2;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: 0.2s ease;
}
.topnav .view-tab.active .nav-tab-index {
  border-color: #aad7eb;
  color: #0878c9;
  background: #fff;
}
.nav-tab-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topnav .tab-count {
  flex: 0 0 auto;
  min-width: 22px;
  height: 22px;
  margin-left: auto;
  border: 1px solid #d2eaf6;
  background: #fff;
  color: #0876bd;
  font-size: 9px;
  font-weight: 800;
}
.topnav .view-tab.active .tab-count {
  background: #d8effa;
  border-color: #c2e4f3;
}
.page {
  padding-top: 36px;
}
@media (max-width: 1100px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 20px;
    padding: 14px max(calc((100vw - 1216px) / 2), 20px) 0;
  }
  .topnav.view-tabs {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    width: 100%;
    margin-top: 12px;
    padding-bottom: 12px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .topnav.view-tabs::-webkit-scrollbar {
    display: none;
  }
  .topnav .view-tab {
    flex: 0 0 auto;
    min-width: 136px;
  }
}
@media (max-width: 650px) {
  .topbar {
    gap: 0 12px;
    padding: 12px 16px 0;
  }
  .topbar .brand {
    min-width: 0;
  }
  .brand-divider,
  .brand-caption {
    display: none;
  }
  .brand img {
    width: 126px;
  }
  .topnav.view-tabs {
    margin-top: 10px;
    padding-bottom: 10px;
  }
  .topnav .view-tab {
    min-width: 120px;
    height: 46px;
    padding: 0 10px;
    gap: 7px;
  }
  .topnav .view-tab:first-child {
    padding-left: 10px;
  }
  .nav-tab-index {
    flex-basis: 22px;
    width: 22px;
    height: 22px;
  }
  .page {
    padding-top: 28px;
  }
}
@media (max-width: 420px) {
  .top-actions {
    gap: 8px;
  }
  .topnav .view-tab {
    min-width: 108px;
  }
  .nav-tab-index {
    display: none;
  }
}
.radar-chart-content {
  display: grid;
  grid-template-columns: 175px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  padding: 4px 20px 19px;
}
.radar-doughnut-wrap {
  position: relative;
  width: 175px;
  height: 175px;
}
.radar-doughnut-wrap canvas,
.radar-bar-chart-wrap canvas,
.radar-history-chart-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.radar-chart-legend {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 0;
}
.radar-chart-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #7e96a2;
  font-size: 9px;
  line-height: 1.2;
}
.radar-chart-legend i,
.radar-history-legend i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex: none;
}
.radar-chart-legend b {
  min-width: 21px;
  color: #203f56;
  font:
    800 13px "Manrope",
    sans-serif;
}
.radar-bar-chart-wrap {
  height: 205px;
  padding: 0 20px 17px;
}
.radar-chart-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  height: 100%;
  min-height: 145px;
  color: #91a3ab;
  font-size: 10px;
  text-align: center;
}
.radar-chart-empty span {
  color: #70a2af;
  font-size: 24px;
}
.radar-case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 0 20px 20px;
}
.radar-case-grid > .radar-empty,
.radar-brand-grid > .radar-empty {
  grid-column: 1/-1;
}
.radar-case-card {
  min-width: 0;
  padding: 14px 14px 12px;
  border: 1px solid #e2ebee;
  border-radius: 10px;
  background: #fcfefe;
  box-shadow: 0 4px 12px rgba(18, 59, 92, 0.035);
  animation: radar-card-in 0.35s ease both;
}
.radar-case-card-critico {
  background: #fffaf8;
  border-color: #f0dcd6;
}
.radar-case-card-incompleto {
  background: #fbfcfd;
}
.radar-case-card-head {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: start;
  gap: 9px;
}
.radar-case-index {
  color: #b0bec4;
  font:
    800 10px "Manrope",
    sans-serif;
  line-height: 20px;
}
.radar-case-identity {
  min-width: 0;
}
.radar-case-identity h4 {
  margin: 7px 0 0;
  color: #234a61;
  font:
    800 12px/1.2 "Manrope",
    sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.radar-case-identity p {
  margin: 4px 0 0;
  color: #8a9da7;
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.radar-case-real {
  text-align: right;
}
.radar-case-real strong {
  display: block;
  color: #b8514d;
  font:
    800 19px/1 "Manrope",
    sans-serif;
  letter-spacing: -0.05em;
  white-space: nowrap;
}
.radar-case-real small {
  display: block;
  margin-top: 4px;
  color: #99a9af;
  font-size: 8px;
  text-transform: uppercase;
}
.radar-duration-compare {
  margin: 15px 0 12px;
}
.radar-duration-label {
  display: block;
  margin-bottom: 6px;
  color: #879ca6;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.radar-duration-track {
  position: relative;
  height: 7px;
  border-radius: 10px;
  background: #e8eef0;
}
.radar-duration-real {
  display: block;
  height: 100%;
  min-width: 3px;
  border-radius: 10px;
  background: #1a8ba1;
}
.radar-duration-contracted {
  position: absolute;
  top: -4px;
  width: 2px;
  height: 15px;
  border-radius: 2px;
  background: #244b60;
  transform: translateX(-50%);
}
.radar-duration-reference {
  display: block;
  margin-top: 6px;
  color: #91a2ab;
  font-size: 8px;
  text-align: right;
}
.radar-case-metrics {
  display: grid;
  grid-template-columns: 0.7fr 0.85fr 1.45fr;
  gap: 7px;
  padding: 10px 0;
  border-top: 1px solid #edf2f3;
  border-bottom: 1px solid #edf2f3;
}
.radar-case-metrics div {
  min-width: 0;
}
.radar-case-metrics span {
  display: block;
  color: #9aa9af;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.09em;
}
.radar-case-metrics strong {
  display: block;
  margin-top: 5px;
  color: #375b6d;
  font:
    800 10px "Manrope",
    sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.radar-case-metrics strong.is-negative {
  color: #c15d54;
}
.radar-case-metrics strong.is-positive {
  color: #198569;
}
.radar-case-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
}
.radar-case-card-foot > div:first-child {
  min-width: 0;
}
.radar-case-foot-label,
.radar-case-card-foot small {
  display: block;
  max-width: 145px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.radar-case-foot-label {
  color: #4b7280;
  font-size: 8px;
  font-weight: 700;
}
.radar-case-card-foot small {
  margin-top: 3px;
  color: #9aaab1;
  font-size: 8px;
}
.radar-case-action {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
.radar-case-action .radar-treatment-state {
  padding-left: 0;
  font-size: 8px;
}
.radar-case-action .radar-treat-button {
  min-height: 28px;
}
.radar-brand-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 0 20px 20px;
}
.radar-brand-card {
  padding: 13px 14px 12px;
  border: 1px solid #e2ebee;
  border-radius: 10px;
  background: #fbfdfd;
  animation: radar-card-in 0.35s ease both;
}
.radar-brand-card-head {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}
.radar-brand-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #e6f3f5;
  color: #187594;
  font:
    800 10px "Manrope",
    sans-serif;
}
.radar-brand-card-head h4 {
  margin: 0;
  color: #294e63;
  font:
    800 12px "Manrope",
    sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.radar-brand-card-head small {
  display: block;
  margin-top: 4px;
  color: #92a3aa;
  font-size: 8px;
}
.radar-brand-rank {
  color: #b0bec4;
  font:
    800 10px "Manrope",
    sans-serif;
}
.radar-brand-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 13px 0 11px;
  padding: 10px 0;
  border-top: 1px solid #edf2f3;
  border-bottom: 1px solid #edf2f3;
}
.radar-brand-values span {
  display: block;
  color: #9aa9af;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.radar-brand-values strong {
  display: block;
  margin-top: 5px;
  color: #31566a;
  font:
    800 10px "Manrope",
    sans-serif;
  white-space: nowrap;
}
.radar-brand-bars {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.radar-brand-bars > div {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 7px;
}
.radar-brand-bars > div > span {
  color: #9aa9af;
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
}
.radar-brand-track {
  height: 5px;
  border-radius: 8px;
  background: #edf2f3;
  overflow: hidden;
}
.radar-brand-track i {
  display: block;
  height: 100%;
  border-radius: 8px;
}
.radar-brand-track i.is-real {
  background: #1677a9;
}
.radar-brand-track i.is-contracted {
  background: #c4d7dc;
}
.radar-brand-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  color: #8da0a8;
  font-size: 8px;
}
.radar-brand-foot span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.radar-brand-foot span.has-pressure {
  color: #b9614e;
  font-weight: 700;
}
.radar-brand-foot b {
  font:
    700 8px "DM Sans",
    sans-serif;
  white-space: nowrap;
}
.radar-brand-foot b.is-negative {
  color: #c15d54;
}
.radar-brand-foot b.is-positive {
  color: #198569;
}
.radar-history-chart-wrap {
  height: 270px;
  padding: 0 20px 10px;
}
.radar-history-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 13px;
  padding: 0 20px 16px;
}
.radar-history-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #79929e;
  font-size: 8px;
}
.radar-history-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
@keyframes radar-card-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 920px) {
  .radar-chart-grid {
    grid-template-columns: 1fr;
  }
  .radar-status-panel {
    min-height: 245px;
  }
  .radar-doughnut-wrap {
    width: 160px;
    height: 160px;
  }
  .radar-chart-content {
    grid-template-columns: 160px minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .radar-chart-content {
    padding-left: 16px;
    padding-right: 16px;
  }
  .radar-bar-chart-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
  .radar-case-grid {
    grid-template-columns: 1fr;
    padding-left: 16px;
    padding-right: 16px;
  }
  .radar-brand-grid {
    padding-left: 16px;
    padding-right: 16px;
  }
  .radar-history-chart-wrap {
    height: 230px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .radar-history-legend {
    padding-left: 16px;
    padding-right: 16px;
  }
  .radar-chart-caption {
    font-size: 7px;
  }
  .radar-case-card-foot {
    align-items: flex-end;
  }
}
@media (max-width: 520px) {
  .radar-chart-content {
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 10px;
  }
  .radar-doughnut-wrap {
    width: 128px;
    height: 128px;
  }
  .radar-chart-legend {
    gap: 8px;
  }
  .radar-chart-legend span {
    font-size: 8px;
  }
  .radar-chart-legend b {
    font-size: 11px;
  }
  .radar-case-card {
    padding: 13px 12px 11px;
  }
  .radar-case-metrics {
    grid-template-columns: 0.72fr 0.88fr 1.4fr;
  }
  .radar-case-real strong {
    font-size: 17px;
  }
  .radar-brand-values strong {
    font-size: 9px;
  }
  .radar-brand-foot {
    font-size: 7px;
  }
  .radar-history-chart-wrap {
    height: 210px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .radar-section,
  .radar-case-card,
  .radar-brand-card {
    animation: none !important;
  }
  .radar-button {
    transition: none !important;
  }
}

/* Busca de promotores: sugestões rápidas sem tirar o contexto da rota. */
.promoter-search-control {
  position: relative;
}
.promoter-suggestion-list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  display: grid;
  gap: 3px;
  max-height: 286px;
  padding: 6px;
  overflow-y: auto;
  border: 1px solid #d8e7ee;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 30px rgba(1, 23, 47, 0.2);
}
.promoter-suggestion-list[hidden] {
  display: none;
}
.promoter-suggestion {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #173d5b;
  text-align: left;
  cursor: pointer;
}
.promoter-suggestion:hover,
.promoter-suggestion.is-active {
  background: #eef8fb;
}
.suggestion-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #e5f5f8;
  color: #0878a7;
  font-size: 11px;
  font-weight: 800;
}
.promoter-suggestion strong,
.promoter-suggestion small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.promoter-suggestion strong {
  font-size: 11px;
  font-weight: 700;
}
.promoter-suggestion small {
  margin-top: 2px;
  color: #8ba0ad;
  font-size: 9px;
}
.promoter-suggestion > b {
  color: #1b9b9a;
  font-size: 14px;
  font-weight: 500;
}
.promoter-suggestion-empty {
  padding: 13px 10px;
  color: #8ba0ad;
  font-size: 10px;
  text-align: center;
}

/* Rota semanal: modal amplo para evidência visual e timeline operacional. */
.promoter-modal {
  width: min(1080px, calc(100% - 28px));
  max-width: none;
}
.promoter-modal-head {
  padding: 25px 30px 19px;
}
.promoter-modal-body {
  max-height: min(76vh, 780px);
  padding: 20px 30px 30px;
  background: #fbfdfe;
}
.route-timeline-panel,
.route-list-panel {
  padding: 18px 19px;
  border: 1px solid #e0ebf0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(18, 59, 92, 0.035);
}
.route-list-panel {
  margin-top: 16px;
}
.route-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.route-section-heading h3 {
  margin: 4px 0 0;
  color: #142d58;
  font: 800 16px/1.2 "Manrope", sans-serif;
  letter-spacing: -0.035em;
}
.route-timeline-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  color: #879aa6;
  font-size: 9px;
}
.route-timeline-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.route-timeline-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d34f4f;
}
.route-timeline-legend i.done {
  background: #1b9a68;
}
.route-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(72px, 1fr));
  gap: 8px;
  min-width: 510px;
  margin-top: 20px;
  padding: 0 6px 2px;
}
.route-timeline-rail {
  position: absolute;
  top: 48px;
  right: 8%;
  left: 8%;
  height: 2px;
  background: #dce8ed;
}
.route-timeline-day {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  color: #879aa6;
  text-align: center;
}
.route-timeline-label {
  min-height: 14px;
  color: #6f8796;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.route-timeline-dot {
  display: block;
  width: 16px;
  height: 16px;
  margin: 10px 0 9px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #b8c6cc;
  box-shadow: 0 0 0 1px #b8c6cc, 0 4px 10px rgba(21, 58, 77, 0.14);
}
.route-timeline-day.done .route-timeline-dot {
  background: #1b9a68;
  box-shadow: 0 0 0 1px #1b9a68, 0 4px 10px rgba(27, 154, 104, 0.25);
}
.route-timeline-day.pending .route-timeline-dot {
  background: #d34f4f;
  box-shadow: 0 0 0 1px #d34f4f, 0 4px 10px rgba(211, 79, 79, 0.22);
}
.route-timeline-day.done .route-timeline-label {
  color: #16845b;
}
.route-timeline-day.pending .route-timeline-label {
  color: #b74e4e;
}
.route-timeline-day strong {
  color: #284b61;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.route-timeline-day small {
  margin-top: 3px;
  color: #9aabb5;
  font-size: 9px;
}
.route-list-count {
  color: #8297a4;
  font-size: 10px;
  white-space: nowrap;
}
.route-list-panel .route-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  align-items: center;
  gap: 22px;
  padding: 14px 0;
}
.route-list-panel .route-row:first-of-type {
  margin-top: 11px;
  border-top: 1px solid #edf2f5;
}
.route-main {
  min-width: 0;
}
.route-main strong {
  color: #24465e;
  font-size: 12px;
}
.route-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.route-evidence {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 0;
}
.route-status-line {
  display: flex;
  min-width: 74px;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.route-status-line > small {
  color: #91a2ad;
  font-size: 9px;
  white-space: nowrap;
}
.route-photo {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
  max-width: 270px;
  color: #0878a7;
  text-decoration: none;
}
.route-photo img,
.route-photo.is-broken:before {
  display: block;
  width: 58px;
  height: 44px;
  border: 1px solid #dce9ee;
  border-radius: 7px;
  background: #eef5f7;
  object-fit: cover;
}
.route-photo.is-broken:before {
  content: "IMG";
  padding-top: 14px;
  color: #92a5af;
  font-size: 8px;
  font-weight: 800;
  text-align: center;
}
.route-photo-copy {
  display: block;
  min-width: 0;
}
.route-photo-copy b,
.route-photo-copy small {
  display: block;
}
.route-photo-copy b {
  font-size: 10px;
  font-weight: 800;
}
.route-photo-url {
  margin-top: 4px;
  overflow: hidden;
  color: #8da0ac;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.route-no-photo {
  padding: 8px 10px;
  border: 1px dashed #e0c5c5;
  border-radius: 7px;
  color: #b96565;
  font-size: 9px;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .promoter-modal-head {
    padding: 20px 18px 16px;
  }
  .promoter-modal-body {
    padding: 14px 14px 20px;
  }
  .route-timeline-panel,
  .route-list-panel {
    padding: 15px 13px;
  }
  .route-section-heading {
    flex-direction: column;
    gap: 9px;
  }
  .route-timeline-legend {
    justify-content: flex-start;
  }
  .route-timeline {
    margin-right: -5px;
    margin-left: -5px;
    width: calc(100% + 10px);
    min-width: 0;
    overflow-x: auto;
  }
  .route-list-panel .route-row {
    grid-template-columns: 1fr;
    gap: 11px;
  }
  .route-evidence {
    justify-content: space-between;
  }
  .route-photo {
    flex: 1;
    max-width: none;
  }
}

/* Mobile layout guardrails.
   Keep the header in two intentional rows instead of allowing the brand,
   navigation and account actions to compress into one overflowing line. */
html {
  overflow-x: hidden;
}

body {
  min-width: 0;
  overflow-x: hidden;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

.topbar,
.page,
.content-head,
.toolbar,
.welcome,
.summary-card,
.brand-card,
.promoter-tab,
.brand-tab,
.analytics-section,
.radar-section {
  min-width: 0;
}

.topbar {
  position: relative;
  z-index: 5;
}

.topnav.view-tabs {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 520px;
  margin: 0;
  padding: 0;
  border: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.topnav.view-tabs::-webkit-scrollbar {
  display: none;
}

.topnav .view-tab {
  display: grid;
  flex: 0 0 46px;
  place-items: center;
  min-height: 46px;
}

.topnav .nav-tab-icon {
  font-size: 0;
}

@media (max-width: 760px) {
  .topbar {
    height: auto;
    min-height: 65px;
    flex-wrap: wrap;
    align-content: center;
    row-gap: 8px;
    padding: 10px 15px 0;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand img {
    width: clamp(104px, 31vw, 132px);
  }

  .brand-caption {
    max-width: 78px;
    font-size: 8px;
  }

  .top-actions {
    flex: 0 0 auto;
    margin-left: auto;
  }

  .topnav.view-tabs {
    order: 3;
    flex: 1 0 calc(100% + 30px);
    width: calc(100% + 30px);
    max-width: none;
    margin: 0 -15px;
    padding: 4px 12px 8px;
    border-top: 1px solid var(--line);
    border-bottom: 0;
    justify-content: flex-start;
    background: rgba(255, 255, 255, 0.98);
  }

  .topnav .view-tab {
    flex-basis: 44px;
    width: 44px;
    min-height: 44px;
    border-radius: 11px;
  }

  .topnav .view-tab.active::before {
    bottom: -4px;
  }

  .page {
    width: 100%;
    padding: clamp(24px, 6vw, 32px) 15px 28px;
  }

  .welcome,
  .content-head {
    align-items: stretch;
  }

  .welcome h1 {
    font-size: clamp(25px, 7vw, 30px);
  }

  .welcome-right {
    width: 100%;
  }

  .welcome-right input {
    max-width: 48%;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-card {
    min-height: 0;
    aspect-ratio: 1.42 / 1;
    padding: clamp(13px, 3.8vw, 18px) clamp(12px, 3.8vw, 19px) 14px;
  }

  .summary-card strong {
    font-size: clamp(27px, 8vw, 33px);
  }

  .content-head {
    gap: 16px;
  }

  .toolbar {
    width: 100%;
    align-items: stretch;
  }

  .searchbox {
    min-width: 0;
  }

  .filter-line {
    gap: 10px;
  }

  .filter-line > #resultCount {
    min-width: 0;
  }

  .legend {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .brand-toggle {
    min-width: 0;
  }

  .brand-name-wrap,
  .brand-name {
    min-width: 0;
  }

  .page-footer {
    gap: 12px;
    flex-wrap: wrap;
  }
}

@media (max-width: 390px) {
  .topbar {
    padding-right: 12px;
    padding-left: 12px;
  }

  .topnav.view-tabs {
    flex-basis: calc(100% + 24px);
    width: calc(100% + 24px);
    margin-right: -12px;
    margin-left: -12px;
    padding-right: 9px;
    padding-left: 9px;
  }

  .page {
    padding-right: 12px;
    padding-left: 12px;
  }

  .welcome-right {
    align-items: stretch;
    flex-direction: column;
  }

  .welcome-right input {
    width: 100%;
    max-width: none;
  }

  .summary-card {
    aspect-ratio: 1.28 / 1;
  }

  .metric-head {
    gap: 6px;
  }

  .metric-head span {
    line-height: 1.2;
  }

  .filter-line {
    align-items: flex-start;
    flex-direction: column;
    height: auto;
    padding: 12px 0;
  }

  .legend {
    white-space: normal;
  }
}

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

  .summary-card {
    aspect-ratio: auto;
    min-height: 112px;
  }
}

/* Topbar v2 — clearer hierarchy, fewer competing surfaces. */
.topbar {
  display: grid;
  grid-template-columns: minmax(205px, 1fr) auto minmax(205px, 1fr);
  align-items: center;
  gap: 24px;
  height: 82px;
  padding: 0 clamp(20px, 4vw, 48px);
}

.brand {
  min-width: 0;
}

.brand img {
  width: 148px;
}

.topnav.view-tabs {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  width: auto;
  max-width: min(100%, 640px);
  gap: 3px;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid #e2edf2;
  border-radius: 13px;
  background: #f8fbfc;
}

.topnav .view-tab {
  display: inline-flex;
  position: relative;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: auto;
  min-width: 0;
  height: 38px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #6d8493;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.topnav .view-tab:hover {
  transform: none;
  background: #edf6fa;
  color: var(--navy);
}

.topnav .view-tab.active {
  color: #086fae;
  border-color: #d4eaf3;
  background: #fff;
  box-shadow: 0 2px 6px rgba(20, 72, 99, 0.06);
}

.topnav .view-tab.active::before {
  display: none;
}

.topnav .nav-tab-icon {
  display: grid;
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  place-items: center;
  font-size: 0;
}

.topnav .nav-tab-icon svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.8;
}

.topnav .nav-tab-label {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: nowrap;
  border: 0;
}

.topnav:not(.is-ready) .nav-tab-label {
  visibility: hidden;
}

.topnav .tab-count {
  position: static;
  min-width: 19px;
  width: auto;
  height: 19px;
  margin: 0 0 0 1px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 9px;
  line-height: 19px;
  box-shadow: none;
}

.topnav .view-tab.active .tab-count {
  color: #0878c9;
  background: #eaf6fb;
}

.top-actions {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  gap: 18px;
  min-width: 0;
}

@media (max-width: 1040px) {
  .topbar {
    grid-template-columns: minmax(175px, 1fr) auto minmax(145px, 1fr);
    gap: 14px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .topnav .view-tab {
    padding-right: 9px;
    padding-left: 9px;
  }

  .topnav .nav-tab-icon {
    display: none;
  }
}

@media (max-width: 860px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 64px auto;
    gap: 0;
    height: auto;
    padding: 0 18px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .top-actions {
    grid-column: 2;
    grid-row: 1;
    gap: 10px;
  }

  .live-indicator,
  .top-date {
    display: none;
  }

  .logout {
    border: 1px solid #d8e8ef;
    border-radius: 9px;
    padding: 8px 10px;
    background: #f7fbfd;
    color: #44677c;
  }

  .topnav.view-tabs {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    width: calc(100% + 36px);
    max-width: none;
    margin: 0 -18px;
    padding: 7px 12px 9px;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
    border-top: 1px solid var(--line);
    background: #fff;
  }

  .topnav .view-tab {
    height: 36px;
    min-height: 36px;
    padding: 0 13px;
    font-size: 11px;
  }

  .topnav .view-tab.active {
    border-color: transparent;
    background: #edf8fd;
    box-shadow: none;
  }

  .topnav .view-tab.active::after {
    content: "";
    position: absolute;
    right: 12px;
    bottom: -7px;
    left: 12px;
    display: block;
    height: 2px;
    border-radius: 2px;
    background: #1596d2;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding-right: 12px;
    padding-left: 12px;
  }

  .brand img {
    width: 122px;
  }

  .brand-divider,
  .brand-caption {
    display: none;
  }

  .topnav.view-tabs {
    width: calc(100% + 24px);
    margin-right: -12px;
    margin-left: -12px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .topnav .view-tab {
    padding-right: 11px;
    padding-left: 11px;
  }
}
