/* ReZapp UI v1 — primeira etapa: somente Dashboard e barra da aplicação autenticada.
   Nunca se aplica ao login, cadastro, landing, editor Drawflow ou modais de envio. */
html.rz-v1-ui {
  --rz-v1-base: #06090c;
  --rz-v1-side: #0b1115;
  --rz-v1-panel: #0f171b;
  --rz-v1-muted: #142127;
  --rz-v1-mint: #00ffc8;
  --rz-v1-ink: #f0f4f5;
  --rz-v1-subtle: #a4b2b5;
  --rz-v1-line: rgba(255,255,255,.09);
}
html.rz-v1-ui #root > div.flex.h-screen {
  background: var(--rz-v1-base) !important;
  color: var(--rz-v1-ink);
  font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
}
html.rz-v1-ui #root > div.flex.h-screen > div.h-screen.bg-slate-900 {
  background: var(--rz-v1-side) !important;
  border-color: var(--rz-v1-line) !important;
  width: 253px;
  flex: 0 0 auto;
  transition: width .25s cubic-bezier(.23,1,.32,1);
}
html.rz-v1-ui #root > div.flex.h-screen > div.h-screen.bg-slate-900.w-16 { width: 64px; }
html.rz-v1-ui #root > div.flex.h-screen > div.h-screen.bg-slate-900 > div:first-child {
  border-color: var(--rz-v1-line) !important;
  min-height: 78px;
  padding: 14px 15px;
  gap: 8px;
}
html.rz-v1-ui #root > div.flex.h-screen > div.h-screen.bg-slate-900 > div:first-child img {
  height: auto !important;
  max-height: 32px;
  max-width: 165px;
  object-fit: contain;
}
html.rz-v1-ui #root > div.flex.h-screen > div.h-screen.bg-slate-900.w-16 > div:first-child::before {
  content: '';
  display: block;
  width: 22px;
  height: 22px;
  background: url('/favicon-192.png') center / contain no-repeat;
  flex: none;
}
html.rz-v1-ui #root > div.flex.h-screen > div.h-screen.bg-slate-900.w-16 > div:first-child {
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 78px;
  padding: 6px;
}
html.rz-v1-ui #root > div.flex.h-screen > div.h-screen.bg-slate-900 > div:first-child > button {
  color: var(--rz-v1-subtle);
  border: 1px solid var(--rz-v1-line);
  background: rgba(255,255,255,.02);
}
html.rz-v1-ui #root > div.flex.h-screen > div.h-screen.bg-slate-900 > div:first-child > button:hover {
  color: var(--rz-v1-mint);
  background: rgba(0,255,200,.06);
}
html.rz-v1-ui #root nav.flex-1 {
  padding: 17px 11px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #344441 transparent;
}
html.rz-v1-ui #root nav.flex-1 button {
  min-height: 41px;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 500;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--rz-v1-subtle);
  transition: background-color .16s ease-out, color .16s ease-out, border-color .16s ease-out;
}
html.rz-v1-ui #root nav.flex-1 button:hover {
  color: var(--rz-v1-ink) !important;
  background: rgba(255,255,255,.045) !important;
}
html.rz-v1-ui #root nav.flex-1 button[class*="bg-emerald-500/10"] {
  color: #45e8bd !important;
  background: linear-gradient(100deg,rgba(0,255,200,.09),rgba(0,255,200,.025)) !important;
  border-color: rgba(0,255,200,.12) !important;
  font-weight: 600;
}
html.rz-v1-ui #root nav.flex-1 button svg {
  width: 19px;
  height: 19px;
  flex: none;
  stroke: currentColor;
  stroke-width: 1.9;
}
html.rz-v1-ui #root nav.flex-1 button:focus-visible,
html.rz-v1-ui #root > div.flex.h-screen > div.h-screen.bg-slate-900 button:focus-visible,
html.rz-v1-ui #rz-datepicker-trigger:focus-visible {
  outline: 2px solid var(--rz-v1-mint);
  outline-offset: 3px;
}
html.rz-v1-ui #root > div.flex.h-screen > div.h-screen.bg-slate-900 > div:last-child {
  border-color: var(--rz-v1-line) !important;
  background: rgba(255,255,255,.012);
}
html.rz-v1-ui #root > div.flex.h-screen > div.h-screen.bg-slate-900 > div:last-child a {
  color: #45e8bd;
}
html.rz-v1-ui #root > div.flex.h-screen > main.flex-1.overflow-y-auto.p-6 {
  background: var(--rz-v1-base);
  padding: 32px 34px 54px;
}
html.rz-v1-ui #rz-dashboard-wrapper {
  width: 100%;
  max-width: 1580px;
  margin: 0 auto;
}
html.rz-v1-ui #rz-dashboard-redesign { color: var(--rz-v1-ink); }
html.rz-v1-ui #rz-dashboard-redesign .rz-v1-heading {
  gap: 22px;
  align-items: end !important;
  margin-bottom: 27px !important;
}
html.rz-v1-ui #rz-dashboard-redesign .rz-v1-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #4ce6be;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
}
html.rz-v1-ui #rz-dashboard-redesign .rz-v1-eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rz-v1-mint);
  box-shadow: 0 0 0 5px rgba(0,255,200,.095), 0 0 16px rgba(0,255,200,.45);
}
html.rz-v1-ui #rz-dashboard-redesign .rz-v1-heading h1 {
  color: var(--rz-v1-ink) !important;
  font-size: clamp(28px, 3.1vw, 40px) !important;
  line-height: 1.2;
  font-weight: 700 !important;
  letter-spacing: -.045em;
}
html.rz-v1-ui #rz-dashboard-redesign .rz-v1-month {
  color: #98a6a9;
  font-size: .51em;
  font-weight: 400;
  letter-spacing: -.025em;
  margin-left: 14px;
  white-space: nowrap;
}
html.rz-v1-ui #rz-dashboard-redesign .rz-v1-heading p {
  color: var(--rz-v1-subtle) !important;
  font-size: 14px !important;
  margin-top: 11px !important;
}
html.rz-v1-ui #rz-datepicker-trigger {
  background: #11191d !important;
  color: var(--rz-v1-ink) !important;
  border-color: var(--rz-v1-line) !important;
  border-radius: 9px !important;
  min-height: 37px;
}
html.rz-v1-ui #rz-datepicker-trigger:hover { border-color: rgba(0,255,200,.4) !important; }
html.rz-v1-ui #rz-dashboard-redesign .rz-v1-metrics {
  gap: 13px !important;
  margin-bottom: 13px !important;
}
html.rz-v1-ui #rz-dashboard-redesign .rz-v1-metric,
html.rz-v1-ui #rz-dashboard-redesign .rz-v1-panel {
  background: var(--rz-v1-panel) !important;
  border: 1px solid var(--rz-v1-line) !important;
  border-radius: 13px !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.13);
  min-width: 0;
}
html.rz-v1-ui #rz-dashboard-redesign .rz-v1-metric {
  padding: 17px 17px 16px !important;
  min-height: 117px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color .17s ease-out, transform .17s ease-out;
}
html.rz-v1-ui #rz-dashboard-redesign .rz-v1-metric:hover {
  border-color: rgba(0,255,200,.26) !important;
  transform: translateY(-2px);
}
html.rz-v1-ui #rz-dashboard-redesign .rz-v1-featured {
  background: linear-gradient(140deg,#102420,#101b1b) !important;
  border-color: rgba(0,255,200,.30) !important;
  box-shadow: 0 12px 32px rgba(0,255,200,.045);
}
html.rz-v1-ui #rz-dashboard-redesign .rz-v1-metric-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
html.rz-v1-ui #rz-dashboard-redesign .rz-v1-metric-top > div {
  color: var(--rz-v1-subtle) !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: .025em !important;
  margin: 0;
}
html.rz-v1-ui #rz-dashboard-redesign .rz-v1-metric svg {
  flex: none;
  width: 18px;
  height: 18px;
  stroke: #58dbb7;
}
html.rz-v1-ui #rz-dashboard-redesign .rz-v1-metric-value {
  color: var(--rz-v1-ink) !important;
  font-size: clamp(21px,2.2vw,28px) !important;
  font-weight: 700 !important;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
  margin: 10px 0 4px;
}
html.rz-v1-ui #rz-dashboard-redesign .rz-v1-featured .rz-v1-metric-value { color: #55eabc !important; }
html.rz-v1-ui #rz-dashboard-redesign .rz-v1-metric-note {
  color: #a5b5b7 !important;
  font-size: 10.5px !important;
  line-height: 1.55;
  min-height: 16px;
}
html.rz-v1-ui #rz-dashboard-redesign .rz-v1-chart-grid,
html.rz-v1-ui #rz-dashboard-redesign .rz-v1-bottom-grid {
  gap: 15px !important;
  margin-top: 17px;
}
html.rz-v1-ui #rz-dashboard-redesign .rz-v1-panel {
  padding: 22px !important;
  overflow: hidden;
}
html.rz-v1-ui #rz-dashboard-redesign .rz-v1-panel > h3 {
  color: var(--rz-v1-ink) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: -.01em;
}
html.rz-v1-ui #rz-dashboard-redesign .rz-v1-panel > p {
  color: var(--rz-v1-subtle) !important;
  font-size: 11px !important;
}
html.rz-v1-ui #rz-dashboard-redesign .rz-v1-panel canvas { max-width: 100%; }
html.rz-v1-ui #rz-dashboard-redesign #rz-conversion-breakdown { border-color: var(--rz-v1-line) !important; }
html.rz-v1-ui #rz-dashboard-redesign #rz-conversion-breakdown > div {
  background: var(--rz-v1-side) !important;
  border: 1px solid var(--rz-v1-line);
}
@media (max-width: 1150px) {
  html.rz-v1-ui #rz-dashboard-redesign .rz-v1-metrics { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  html.rz-v1-ui #rz-dashboard-redesign .rz-v1-chart-grid,
  html.rz-v1-ui #rz-dashboard-redesign .rz-v1-bottom-grid { grid-template-columns: minmax(0,1fr) !important; }
}
@media (max-width: 900px) {
  html.rz-v1-ui #root > div.flex.h-screen > div.h-screen.bg-slate-900,
  html.rz-v1-ui #root > div.flex.h-screen > div.h-screen.bg-slate-900.w-16 {
    position: fixed;
    z-index: 2202;
    width: 253px;
    left: 0;
    top: 0;
    height: 100dvh;
    transform: translateX(-103%);
    transition: transform .22s cubic-bezier(.23,1,.32,1);
    box-shadow: 15px 0 35px rgba(0,0,0,.27);
  }
  html.rz-v1-ui.rz-v1-open #root > div.flex.h-screen > div.h-screen.bg-slate-900,
  html.rz-v1-ui.rz-v1-open #root > div.flex.h-screen > div.h-screen.bg-slate-900.w-16 { transform: translateX(0); }
  html.rz-v1-ui #root > div.flex.h-screen > div.h-screen.bg-slate-900.w-16 nav span { display: inline !important; }
  html.rz-v1-ui #root > div.flex.h-screen > main.flex-1.overflow-y-auto.p-6 {
    width: 100%;
    min-width: 0;
    padding: 67px 18px 38px;
  }
  html.rz-v1-ui #rz-v1-mobile-menu {
    display: grid;
    place-items: center;
    position: fixed;
    top: 13px;
    left: 16px;
    z-index: 2199;
    width: 38px;
    height: 38px;
    color: var(--rz-v1-ink);
    background: var(--rz-v1-panel);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 10px;
    box-shadow: 0 7px 18px rgba(0,0,0,.25);
  }
  html.rz-v1-ui #rz-dashboard-redesign .rz-v1-heading { flex-wrap: wrap; align-items: flex-start !important; }
}
@media (min-width: 901px) {
  html.rz-v1-ui #rz-v1-mobile-menu,
  html.rz-v1-ui #rz-v1-backdrop { display: none !important; }
}
html.rz-v1-ui #rz-v1-backdrop {
  position: fixed;
  z-index: 2201;
  inset: 0;
  border: 0;
  background: rgba(0,0,0,.7);
}
@media (max-width: 650px) {
  html.rz-v1-ui #rz-dashboard-redesign .rz-v1-heading h1 { font-size: 31px !important; }
  html.rz-v1-ui #rz-dashboard-redesign .rz-v1-heading p { font-size: 12px !important; }
  html.rz-v1-ui #rz-dashboard-redesign .rz-v1-metrics { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 9px !important; }
  html.rz-v1-ui #rz-dashboard-redesign .rz-v1-metric { padding: 12px !important; min-height: 120px; }
  html.rz-v1-ui #rz-dashboard-redesign .rz-v1-metric-value { font-size: 21px !important; }
  html.rz-v1-ui #rz-dashboard-redesign .rz-v1-panel { padding: 16px !important; }
  html.rz-v1-ui #rz-dashboard-redesign #rz-conversion-breakdown { gap: 5px !important; }
  html.rz-v1-ui #rz-dashboard-redesign #rz-conversion-breakdown > div { padding: 9px 4px !important; }
}
@media (max-width: 360px) {
  html.rz-v1-ui #rz-dashboard-redesign .rz-v1-metrics { grid-template-columns: minmax(0,1fr) !important; }
}
@media (prefers-reduced-motion: reduce) {
  html.rz-v1-ui #root > div.flex.h-screen > div.h-screen.bg-slate-900,
  html.rz-v1-ui #rz-dashboard-redesign .rz-v1-metric { transition: none !important; }
}
