/* ==========================================================================
   VENDMASTER - STYLES.CSS
   --------------------------------------------------------------------------
   Organizacao conservadora: os blocos abaixo foram documentados e separados
   por contexto, preservando a ordem original para nao alterar a cascata.

   INDICE
   01 - Tokens, reset e base global
   02 - Header, marca e elementos globais legados
   03 - Painel central / dashboard
   04 - Navegacao interna e breadcrumb
   MODULOS CARREGADOS APOS ESTE ARQUIVO
   - ui-forms.css
   - ui-lists.css
   - rotas.css
   - ui-support.css
   - legacy-compat.css
   - responsive.css
   - system-footer.css
   - relatorios.css
   - typography.css
   - loading.css
   - lancamentos.css
   - fluxo-caixa.css
   - receitas.css
   - bolinhas.css
   - pelucias.css
   - consignados.css
   - estabelecimentos.css
   ========================================================================== */

/* ==========================================================================
   01 - TOKENS, RESET E BASE GLOBAL
   ========================================================================== */

:root {
  --primary-color-1: var(--vm-blue);
  --primary-color-2: var(--vm-green);
  --secondary-light-1: #f8fafc;
  --secondary-light-2: #e2e8f0;
  --dark-color: #1e293b;
  --dark-color-2: #64748b;
  --light-blue-color: #dbeafe;
  --light-green-color: #dcfce7;
  --light-purple-color: #ede9fe;
  --dark-blue-color: #143a76;
  --vm-green: #37a647;
  --vm-blue: #0359bf;
  --vm-blue-dark: #1d4ed8;
  --vm-violet: #7c3aed;
  --brand-primary: #0359bf;
  --brand-accent: #37a647;
  --vm-font-label: 0.72rem;
  --vm-font-caption: 0.82rem;
  --vm-font-small: 0.9rem;
  --vm-font-button: 0.95rem;
  --vm-font-body: 1rem;
  --vm-font-body-small: 0.94rem;
  --vm-font-section-text: clamp(1rem, 1.18vw, 1.08rem);
  --vm-font-card-title: clamp(1.18rem, 1.55vw, 1.38rem);
  --vm-font-inner-title: clamp(1.45rem, 2.1vw, 2.05rem);
  --vm-font-section-title: clamp(2.25rem, 3.5vw, 3.6rem);
  --vm-font-dashboard-title: clamp(1.7rem, 2.35vw, 2.45rem);
  --vm-line-title: 1.08;
  --vm-line-card: 1.18;
  --vm-line-body: 1.68;
  --vm-line-body-compact: 1.55;
}

html.app-booting body {
  opacity: 0;
  visibility: hidden;
}

html.app-ready body {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.14s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Urbanist', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  overflow-x: hidden;
}

main {
  height: auto;
}

h1 {
  font-size: 2em;
  font-weight: bolder;
}

/* ==========================================================================
   02 - HEADER, MARCA E ELEMENTOS GLOBAIS LEGADOS
   ========================================================================== */

header {
  background-color: transparent;
  text-align: center;
  display: flex;
  height: 80px;
  padding: 2em;
  justify-content: space-between;
  align-items: center;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.2);
  opacity: 1;
  position: absolute;
  width: 100%;
  top: 0;
}

header > nav > ul {
  list-style: none;
  display: flex;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

header li > a {
  text-decoration: none;
  color: var(--primary-color-1);
  text-shadow: 1px 1px 2px #2d2d2d;
  letter-spacing: 1px;
}

header li > a:hover {
  color: var(--primary-color-2);
  transition: color 0.5s;
}

.btn-header {
  color: var(--secondary-light-1);
  font-weight: 600;
}

.btn-header:hover {
  color: var(--primary-color-1);
}

.img-logo {
  height: 50px;
  width: auto;
}

.brand-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.brand-mark-primary {
  color: #0359bf !important;
}

.brand-mark-accent {
  color: #37a647 !important;
}

.brand-mark-footer {
  font-size: 2rem;
}

.brand-mark-inline {
  font-size: 1em;
}

.dashboard-beta-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 0.5rem;
  padding: 2px 7px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 1px 3px rgba(245, 158, 11, 0.4);
  vertical-align: middle;
  align-self: center;
}

.usuario-info {
  align-self: flex-start;
  margin-left: 20px;
  font-weight: 800;
}

/* Footer legado usado em paginas internas antigas */
footer:not(.site-footer) li > a {
  text-decoration: none;
  color: #22c55e; /* VERDE DA MARCA */
  text-shadow: none;
  letter-spacing: 1px;
  transition: 0.3s;
}

footer:not(.site-footer) li > a:hover {
  color: #2563eb; /* AZUL DA MARCA */
}

footer:not(.site-footer) h5 {
  color: var(--light-blue-color);
}

footer:not(.site-footer) p {
  color: var(--dark-color-2);
}

/* Bloco visual legado */
figure {
  background-color: var(--secondary-light-2);
  width: 90%;
  margin: 3rem auto;
  padding: 2rem 5rem;
  text-align: center;
  border-radius: 30px;
  box-shadow: 5px 10px 20px rgba(0, 0, 0, 0.5);
}

/* Acoes inline usadas em cabecalhos de formulario */
.form-inline-action {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  white-space: nowrap;
  position: relative;
  z-index: 3;
  pointer-events: auto;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
}

.form-inline-action:hover {
  transform: translateY(-1px);
  filter: saturate(1.04);
}

.form-inline-action:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}

.form-inline-action-warning {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.22);
}

.form-inline-action-warning.is-active {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  box-shadow: 0 16px 32px rgba(194, 65, 12, 0.28);
}

.btn-dark {
  background-color: var(--dark-color) !important;
}

.btn-dark:hover {
  background-color: rgb(72, 72, 72) !important;
}

/* ==========================================================================
   03 - PAINEL CENTRAL / DASHBOARD
   ========================================================================== */
.container-principal {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background-color: #121212;
}

.container-painel {
  background-color: #1e1e1e;
  min-height: 90vh;
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 2rem;
  box-shadow: 0 0 20px 10px rgba(56, 234, 250, 0.946);
  border-radius: 10px;
}

.btn-adm,
.btn-op {
  height: 100%;
  font-size: 1.2rem;
  padding: 0.5rem;
  background-color: #3a3a3a;
  color: #f1f1f1;
  border: 1px solid #555555;
}

.btn-adm:hover,
.btn-op:hover {
  background-color: #555555;
}

.area-painel {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  height: 100%;
}

.administrativo,
.operacional {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: 10px;
  background-color: #2c2c2c;
  border: 1px solid #444444;
}

.area-painel > .col {
  padding: 0;
}

.container-painel h1 {
  color: #f1f1f1;
}

.dashboard-body {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at top left,
      rgba(0, 102, 255, 0.12),
      transparent 28%
    ),
    radial-gradient(
      circle at top right,
      rgba(55, 166, 71, 0.1),
      transparent 24%
    ),
    linear-gradient(180deg, #f6f8fc 0%, #edf2fb 100%);
}

.dashboard-shell {
  width: min(1560px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 1.25rem 0 2rem;
  background: transparent;
  box-shadow: none;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(240px, 260px) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.dashboard-sidebar {
  position: sticky;
  top: 1rem;
  align-self: start;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.76rem;
  min-height: calc(100svh - 2rem);
  max-height: none;
  overflow: visible;
  padding: 1.12rem 0.86rem 0.86rem;
  border-radius: 26px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 6%, rgba(55, 166, 71, 0.18), transparent 30%),
    radial-gradient(
      circle at 88% 4%,
      rgba(77, 163, 255, 0.18),
      transparent 36%
    ),
    linear-gradient(180deg, #17283d 0%, #101827 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 62px rgba(15, 23, 42, 0.18);
}

.dashboard-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 0.05rem 0.25rem 0.12rem;
}

.dashboard-sidebar-brand {
  font-size: 1.48rem;
  line-height: 1;
}

.dashboard-sidebar-brand .brand-mark-primary {
  color: #4da3ff !important;
}

.dashboard-sidebar-brand .brand-mark-accent {
  color: #37a647 !important;
}

.dashboard-sidebar-toggle {
  display: none;
}

.dashboard-sidebar-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.dashboard-sidebar-stat {
  display: grid;
  align-content: center;
  gap: 0.2rem;
  min-width: 0;
  min-height: 66px;
  padding: 0.62rem 0.5rem;
  border-radius: 16px;
  background:
    radial-gradient(
      circle at 20% 15%,
      rgba(74, 222, 128, 0.14),
      transparent 44%
    ),
    rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.dashboard-sidebar-stat strong {
  color: #fff;
  font-size: 1.08rem;
  line-height: 1;
  font-weight: 950;
}

.dashboard-sidebar-stat span {
  color: rgba(226, 232, 240, 0.9);
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1.18;
}

.dashboard-sidebar-section {
  display: grid;
  gap: 0.42rem;
}

.dashboard-sidebar-title {
  margin: 0;
  color: rgba(226, 232, 240, 0.75);
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-sidebar-nav {
  display: grid;
  gap: 0.24rem;
}

.dashboard-sidebar-flyout {
  position: relative;
}

.dashboard-sidebar-link {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.56rem;
  min-height: 39px;
  padding: 0.42rem 0.58rem;
  border-radius: 13px;
  color: #f8fafc;
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    transform 0.22s ease;
}

.dashboard-sidebar-link:hover {
  transform: translateX(2px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.dashboard-sidebar-link i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.1);
  color: #dbeafe;
  font-size: 0.9rem;
}

.dashboard-sidebar-link span {
  color: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.14;
}

.dashboard-sidebar-link small {
  color: rgba(226, 232, 240, 0.62);
  font-weight: 850;
}

.dashboard-sidebar-link-blue i {
  background: rgba(96, 165, 250, 0.16);
  color: #bfdbfe;
}

.dashboard-sidebar-link-green i {
  background: rgba(74, 222, 128, 0.16);
  color: #bbf7d0;
}

.dashboard-sidebar-link-amber i {
  background: rgba(251, 191, 36, 0.16);
  color: #fde68a;
}

.dashboard-sidebar-link-violet i {
  background: rgba(196, 181, 253, 0.16);
  color: #ddd6fe;
}

.dashboard-sidebar-link-slate i {
  background: rgba(203, 213, 225, 0.14);
  color: #e2e8f0;
}

.dashboard-sidebar-link-community i {
  background: rgba(45, 212, 191, 0.15);
  color: #99f6e4;
}

.dashboard-sidebar-submenu {
  position: absolute;
  top: 0;
  left: calc(100% + 0.85rem);
  z-index: 20;
  display: grid;
  gap: 0.42rem;
  width: 270px;
  padding: 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-8px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s ease;
}

.dashboard-sidebar-flyout:hover .dashboard-sidebar-submenu,
.dashboard-sidebar-flyout:focus-within .dashboard-sidebar-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.dashboard-sidebar-submenu a {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 0.62rem;
  min-height: 42px;
  padding: 0.58rem 0.64rem;
  border-radius: 13px;
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 850;
  text-decoration: none;
  line-height: 1.18;
}

.dashboard-sidebar-submenu a:hover,
.dashboard-sidebar-submenu a:focus {
  background: #eef4ff;
  color: #1d4ed8;
}

.dashboard-sidebar-submenu i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: #e0ecff;
  color: #1d4ed8;
  font-size: 0.96rem;
}

.vm-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  color: #64748b;
  font-size: 0.92rem;
  font-weight: 750;
}

.vm-pagination > div {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.vm-pagination a,
.vm-pagination .is-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 850;
}

.vm-pagination a {
  background: #0f172a;
  color: #ffffff;
}

.vm-pagination .is-disabled {
  background: #e2e8f0;
  color: #94a3b8;
}

.dashboard-sidebar-alerts {
  display: grid;
  gap: 0.6rem;
  padding-top: 0.02rem;
}

.dashboard-sidebar-alert {
  display: grid;
  gap: 0.3rem;
  padding: 0.75rem 0.85rem;
  border-radius: 16px;
  color: #f8fafc;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.085);
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.dashboard-sidebar-alert strong {
  color: #fff;
  font-size: 0.84rem;
  line-height: 1.18;
  font-weight: 900;
}

.dashboard-sidebar-alert p,
.dashboard-sidebar-alert span {
  margin: 0;
  color: rgba(226, 232, 240, 0.8);
  font-size: 0.78rem;
  line-height: 1.32;
}

.dashboard-sidebar-alert-danger {
  background: rgba(127, 29, 29, 0.46);
  border-color: rgba(248, 113, 113, 0.28);
}

.dashboard-sidebar-alert-warning {
  background: rgba(146, 64, 14, 0.36);
  border-color: rgba(251, 191, 36, 0.24);
}

.dashboard-sidebar-alert-safe {
  background: rgba(21, 128, 61, 0.34);
  border-color: rgba(74, 222, 128, 0.22);
}

.dashboard-sidebar-footer {
  margin-top: auto;
  padding-top: 0.35rem;
  flex: 0 0 auto;
}

.dashboard-logout-btn {
  min-height: 38px;
  padding: 0.52rem 0.8rem;
  border: 0;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 850;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.13);
  transition: background 180ms ease;
}

.dashboard-sidebar-footer .dashboard-logout-btn {
  width: 100%;
}

.dashboard-logout-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.dashboard-main {
  min-width: 0;
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 992px) {
  .dashboard-sidebar {
    position: sticky;
    top: 1rem;
    width: 100%;
    z-index: 5;
  }

  .dashboard-main {
    grid-column: 2;
    padding-top: 0.25rem;
  }
}

.dashboard-titlebar {
  margin-bottom: 0;
}

.dashboard-titlebar-copy {
  position: relative;
  overflow: hidden;
  padding: 1.32rem 1.45rem;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 12%, rgba(55, 166, 71, 0.2), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(3, 89, 191, 0.28), transparent 34%),
    linear-gradient(135deg, #172033 0%, #253142 52%, #111827 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.16);
}

.dashboard-titlebar-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.dashboard-titlebar-copy-block h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.7rem, 2.2vw, 2.45rem);
  line-height: 1.04;
}

.dashboard-titlebar-copy-block p {
  max-width: 760px;
  margin: 0.38rem 0 0;
  color: rgba(241, 245, 249, 0.92);
  font-size: 1rem;
  line-height: 1.45;
}

.dashboard-kicker,
.dashboard-section-tag,
.dashboard-shortcut-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-kicker {
  padding: 0.34rem 0.65rem;
  margin-bottom: 0.55rem;
  background: rgba(255, 255, 255, 0.14);
  color: #dbeafe;
}

.dashboard-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(105px, 1fr));
  gap: 0.55rem;
  margin-top: 0;
}

.dashboard-overview-card {
  display: grid;
  gap: 0.18rem;
  min-height: 56px;
  padding: 0.58rem 0.78rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.dashboard-overview-card strong {
  font-size: 1.08rem;
  line-height: 1;
  color: #fff;
}

.dashboard-overview-card span {
  color: rgba(219, 234, 254, 0.9);
  font-size: 0.72rem;
  line-height: 1.25;
}

.dashboard-titlebar-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
}

.dashboard-score-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dashboard-score-strip-label {
  font-size: 0.68rem;
  color: rgba(219, 234, 254, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 2px;
}

.dashboard-score-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.15s;
}

.dashboard-score-chip:hover {
  opacity: 0.8;
}

.dashboard-score-chip-a { background: #16a34a; color: #fff; }
.dashboard-score-chip-b { background: #2563eb; color: #fff; }
.dashboard-score-chip-c { background: #d97706; color: #fff; }
.dashboard-score-chip-d { background: #dc2626; color: #fff; }

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

.dashboard-action-hub-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 0.72rem;
  min-height: 78px;
  padding: 0.82rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.dashboard-action-hub-item:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.26);
  color: #0f172a;
  box-shadow: 0 20px 38px rgba(15, 23, 42, 0.11);
}

.dashboard-action-hub-item i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #e0ecff;
  color: #1d4ed8;
  font-size: 1.16rem;
}

.dashboard-action-hub-item span {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.dashboard-action-hub-item strong {
  color: #0f172a;
  font-size: 0.98rem;
  line-height: 1.14;
  font-weight: 950;
}

.dashboard-action-hub-item small {
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.25;
  font-weight: 800;
}

.dashboard-action-hub-item-green i {
  background: #dcfce7;
  color: #15803d;
}

.dashboard-action-hub-item-amber i {
  background: #fef3c7;
  color: #b45309;
}

.dashboard-action-hub-item-violet i {
  background: #ede9fe;
  color: #6d28d9;
}

.dashboard-action-hub-item.is-disabled {
  opacity: 0.56;
  pointer-events: none;
}

.dashboard-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
  align-items: end;
  gap: 1rem;
  margin-top: 0.15rem;
}

.dashboard-section-heading h2 {
  margin: 0.28rem 0 0;
  color: #020617;
  font-size: clamp(1.2rem, 1.6vw, 1.55rem);
  line-height: 1.1;
  font-weight: 900;
}

.dashboard-section-heading p {
  margin: 0;
  color: #64748b;
  font-size: 1.02rem;
  line-height: 1.35;
  text-align: right;
}

.dashboard-section-tag {
  padding: 0.34rem 0.68rem;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

/* Resumo do Dia */

.dashboard-resumo-dia {
  margin-top: 0.5rem;
  padding: 1rem 1.2rem;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
}

.dashboard-resumo-dia-header {
  margin-bottom: 0.85rem;
}

.dashboard-resumo-dia-header h2 {
  margin: 0.2rem 0 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.dashboard-resumo-dia-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.dashboard-resumo-dia-card {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem 0.9rem;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
}

.dashboard-resumo-dia-card strong {
  font-size: 1.35rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
}

.dashboard-resumo-dia-card span {
  font-size: 0.78rem;
  color: #64748b;
}

.dashboard-resumo-dia-card small {
  font-size: 0.72rem;
  color: #22c55e;
  font-weight: 600;
}

.dashboard-resumo-dia-card-alert {
  border-color: rgba(245, 158, 11, 0.3);
  background: #fffbeb;
}

.dashboard-resumo-dia-card-alert strong {
  color: #92400e;
}

.dashboard-resumo-dia-card-ok strong {
  color: #15803d;
}

.dashboard-resumo-dia-link {
  font-size: 0.72rem;
  font-weight: 700;
  color: #d97706;
  text-decoration: none;
  margin-top: 0.1rem;
}

.dashboard-resumo-dia-link:hover {
  color: #92400e;
}

.dashboard-intelligence-grid {
  display: grid;
  grid-template-columns: minmax(245px, 1.3fr) repeat(3, minmax(165px, 0.9fr));
  gap: 0.85rem;
}

.dashboard-revenue-hero,
.dashboard-kpi-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.dashboard-revenue-hero {
  display: grid;
  align-content: space-between;
  gap: 0.65rem;
  min-height: 134px;
  padding: 0.9rem;
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(
      circle at 14% 10%,
      rgba(34, 197, 94, 0.24),
      transparent 30%
    ),
    radial-gradient(
      circle at 88% 10%,
      rgba(59, 130, 246, 0.28),
      transparent 32%
    ),
    linear-gradient(135deg, #0f172a 0%, #17325f 58%, #0f766e 100%);
  overflow: hidden;
}

.dashboard-revenue-hero-negative {
  background:
    radial-gradient(
      circle at 14% 10%,
      rgba(248, 113, 113, 0.24),
      transparent 30%
    ),
    radial-gradient(
      circle at 88% 10%,
      rgba(245, 158, 11, 0.18),
      transparent 32%
    ),
    linear-gradient(135deg, #0f172a 0%, #4c1d24 58%, #7f1d1d 100%);
}

.dashboard-revenue-hero-neutral {
  background:
    radial-gradient(
      circle at 14% 10%,
      rgba(148, 163, 184, 0.24),
      transparent 30%
    ),
    radial-gradient(
      circle at 88% 10%,
      rgba(59, 130, 246, 0.2),
      transparent 32%
    ),
    linear-gradient(135deg, #0f172a 0%, #1e293b 58%, #334155 100%);
}

.dashboard-revenue-hero .dashboard-section-tag {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.dashboard-revenue-hero h2 {
  margin: 0.35rem 0 0;
  color: #fff;
  font-size: clamp(1.8rem, 2.65vw, 2.45rem);
  font-weight: 950;
  line-height: 1;
}

.dashboard-revenue-hero p {
  max-width: 34ch;
  margin: 0.35rem 0 0;
  color: rgba(226, 232, 240, 0.94);
  font-size: 1rem;
  line-height: 1.35;
}

.dashboard-revenue-hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  min-width: 0;
  width: 100%;
  padding: 0.52rem 0.65rem;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.dashboard-revenue-hero-meta strong,
.dashboard-revenue-hero-meta span {
  display: block;
}

.dashboard-revenue-hero-meta strong {
  color: #fff;
  font-size: 0.78rem;
  line-height: 1.2;
  white-space: nowrap;
}

.dashboard-revenue-hero-meta span {
  margin: 0;
  color: rgba(219, 234, 254, 0.9);
  font-size: 0.92rem;
  line-height: 1.25;
  text-align: right;
}

.dashboard-kpi-card {
  display: grid;
  align-content: space-between;
  gap: 0.5rem;
  min-height: 134px;
  padding: 0.9rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.dashboard-kpi-card span {
  color: #1d4ed8;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-kpi-card strong {
  display: block;
  color: #020617;
  font-size: clamp(1.28rem, 1.8vw, 1.72rem);
  line-height: 1.04;
}

.dashboard-kpi-card p {
  margin: 0;
  color: #334155;
  font-size: 0.84rem;
  line-height: 1.35;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.dashboard-kpi-card-positive {
  border-color: rgba(22, 163, 74, 0.22);
  background: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%);
}

.dashboard-kpi-card-positive span {
  color: #15803d;
}

.dashboard-kpi-card-negative {
  border-color: rgba(220, 38, 38, 0.22);
  background: linear-gradient(180deg, #fff1f2 0%, #ffe4e6 100%);
}

.dashboard-kpi-card-negative span {
  color: #b91c1c;
}

.dashboard-kpi-card-alert {
  border-color: rgba(245, 158, 11, 0.26);
  background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
}

.dashboard-kpi-card-alert span {
  color: #c2410c;
}

.dashboard-titlebar-insights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0;
}

.dashboard-titlebar-card {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-height: 74px;
  padding: 0.82rem 0.95rem;
  border-radius: 18px;
  text-decoration: none;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.dashboard-titlebar-card:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.1);
  color: #0f172a;
}

.dashboard-titlebar-card-tag {
  align-self: flex-start;
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-titlebar-card strong {
  color: #0f172a;
  font-size: 0.92rem;
  line-height: 1.2;
}

.dashboard-titlebar-card p {
  margin: 0;
  color: #64748b;
  font-size: 1rem;
  line-height: 1.35;
}

.dashboard-titlebar-card em {
  margin-top: auto;
  color: #2563eb;
  font-style: normal;
  font-weight: 850;
}

.dashboard-insight-layout,
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.dashboard-onboarding {
  border-radius: 24px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 22rem),
    rgba(255, 255, 255, 0.94);
  padding: 1.35rem 1.4rem 1.4rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.dashboard-onboarding-header {
  margin-bottom: 1.1rem;
}

.dashboard-onboarding-header h2 {
  margin: 0.28rem 0 0.35rem;
  font-size: var(--vm-font-inner-title);
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.dashboard-onboarding-header p {
  margin: 0;
  color: #475569;
  font-size: 1.04rem;
  line-height: 1.55;
}

.dashboard-onboarding-steps {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.dashboard-onboarding-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(248, 250, 252, 0.9);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.dashboard-onboarding-step:hover {
  border-color: rgba(37, 99, 235, 0.3);
  background: #eff6ff;
  transform: translateX(3px);
  text-decoration: none;
  color: inherit;
}

.dashboard-onboarding-step-primary {
  border-color: rgba(37, 99, 235, 0.28);
  background: #eff6ff;
}

.dashboard-onboarding-step-primary:hover {
  border-color: rgba(37, 99, 235, 0.55);
  background: #dbeafe;
}

.dashboard-onboarding-step-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  font-size: 0.88rem;
  font-weight: 900;
}

.dashboard-onboarding-step-primary .dashboard-onboarding-step-num {
  background: #1d4ed8;
  color: #fff;
}

.dashboard-onboarding-step-body {
  flex: 1;
  min-width: 0;
}

.dashboard-onboarding-step-body strong {
  display: block;
  font-size: 0.97rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.2rem;
}

.dashboard-onboarding-step-body span {
  display: block;
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.45;
}

.dashboard-onboarding-step-arrow {
  flex: 0 0 auto;
  font-size: 1.2rem;
  color: #94a3b8;
  transition: color 0.18s ease;
}

.dashboard-onboarding-step:hover .dashboard-onboarding-step-arrow {
  color: #1d4ed8;
}

@media (max-width: 480px) {
  .dashboard-onboarding {
    padding: 1rem;
  }

  .dashboard-onboarding-step {
    padding: 0.8rem;
  }

  .dashboard-onboarding-step-arrow {
    display: none;
  }
}

.dashboard-panel {
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
}

.dashboard-panel-primary {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(244, 247, 255, 0.92) 100%
  );
  border: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
}

.dashboard-panel-secondary {
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.98) 0%,
    rgba(30, 41, 59, 0.96) 100%
  );
  color: #fff;
}

.dashboard-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.dashboard-panel-header h2 {
  margin: 0.34rem 0 0;
  color: #0f172a;
  font-size: clamp(1.04rem, 1.35vw, 1.32rem);
  line-height: 1.15;
  font-weight: 900;
}

.dashboard-panel-header p {
  max-width: 28ch;
  margin: 0;
  color: #64748b;
  font-size: 1rem;
  line-height: 1.35;
}

.dashboard-panel-secondary .dashboard-panel-header p,
.dashboard-panel-secondary .dashboard-section-tag {
  color: rgba(226, 232, 240, 0.8);
}

.dashboard-panel-secondary .dashboard-section-tag {
  background: rgba(255, 255, 255, 0.1);
}

.dashboard-product-bars,
.dashboard-ranking-list,
.dashboard-trend-list,
.dashboard-stale-list {
  display: grid;
  gap: 0.72rem;
}

.dashboard-product-row {
  display: grid;
  gap: 0.48rem;
  padding: 0.82rem;
  border-radius: 15px;
  background: rgba(248, 250, 252, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.dashboard-product-row-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.dashboard-product-row-head strong,
.dashboard-product-row-head span {
  color: #0f172a;
  font-size: 0.96rem;
  font-weight: 900;
}

.dashboard-product-track {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
}

.dashboard-product-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #22c55e);
}

.dashboard-product-row small {
  color: #475569;
  font-size: 0.84rem;
  font-weight: 800;
}

.dashboard-ranking-item,
.dashboard-trend-item,
.dashboard-stale-item {
  display: grid;
  align-items: center;
  gap: 0.7rem;
  padding: 0.82rem;
  border-radius: 15px;
  color: #0f172a;
  text-decoration: none;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(148, 163, 184, 0.18);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.dashboard-ranking-item {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.dashboard-trend-item,
.dashboard-stale-item {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.dashboard-ranking-item:hover,
.dashboard-trend-item:hover,
.dashboard-stale-item:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.24);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
}

.dashboard-ranking-item > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  width: auto;
  height: 30px;
  padding: 0 0.58rem;
  border-radius: 11px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 950;
}

.dashboard-ranking-item strong,
.dashboard-trend-item strong,
.dashboard-stale-item strong {
  display: block;
  color: #0f172a;
  font-size: 0.9rem;
}

.dashboard-ranking-item small,
.dashboard-trend-item small,
.dashboard-stale-item small {
  display: block;
  margin-top: 0.14rem;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.32;
}

.dashboard-ranking-item em,
.dashboard-trend-item em,
.dashboard-stale-item em {
  color: #0f172a;
  font-style: normal;
  font-size: 0.86rem;
  font-weight: 950;
  white-space: nowrap;
}

.dashboard-trend-item span,
.dashboard-stale-item span {
  display: inline-flex;
  justify-content: center;
  min-width: 64px;
  padding: 0.34rem 0.58rem;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 900;
}

.dashboard-trend-item-positive span {
  background: #dcfce7;
  color: #15803d;
}

.dashboard-trend-item-negative span {
  background: #fee2e2;
  color: #b91c1c;
}

.dashboard-stale-item span {
  background: #fff7ed;
  color: #c2410c;
}

.dashboard-empty-state-light {
  padding: 1rem;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.9);
  border: 1px dashed rgba(148, 163, 184, 0.32);
}

.dashboard-empty-state-light h3 {
  margin: 0;
  color: #0f172a;
  font-size: 0.95rem;
}

.dashboard-empty-state-light p {
  margin: 0.38rem 0 0;
  color: #475569;
  font-size: 0.84rem;
  line-height: 1.45;
}

.dashboard-visit-alert {
  display: flex;
  flex-direction: column;
  gap: 0.62rem;
  padding: 0.95rem;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.dashboard-visit-alert-danger {
  background: linear-gradient(180deg, #fff1f2 0%, #ffe4e6 100%);
  border-color: rgba(225, 29, 72, 0.18);
}

.dashboard-visit-alert-safe {
  background: linear-gradient(180deg, #ecfdf5 0%, #dcfce7 100%);
  border-color: rgba(22, 163, 74, 0.16);
}

.dashboard-visit-alert-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-visit-alert strong {
  font-size: 1rem;
  line-height: 1.2;
  color: #0f172a;
}

.dashboard-visit-alert p {
  margin: 0;
  color: #475569;
  font-size: 0.84rem;
  line-height: 1.45;
}

.dashboard-visit-alert-list {
  display: grid;
  gap: 0.6rem;
}

.dashboard-visit-alert-item {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.dashboard-visit-alert-item strong {
  font-size: 0.9rem;
}

.dashboard-visit-alert-item strong span {
  font-weight: 700;
  color: #64748b;
}

.dashboard-visit-alert-item small {
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.4;
}

.dashboard-next-action {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 0.95rem 1.1rem;
  border-radius: 18px;
  text-decoration: none;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.dashboard-next-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.1);
  text-decoration: none;
}

.dashboard-next-action-alert {
  border-color: rgba(245, 158, 11, 0.32);
  background: linear-gradient(180deg, #fffbeb 0%, #fff7ed 100%);
}

.dashboard-next-action-ok {
  border-color: rgba(22, 163, 74, 0.22);
  background: linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 100%);
}

.dashboard-next-action-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  font-size: 1.25rem;
}

.dashboard-next-action-alert .dashboard-next-action-icon {
  background: rgba(245, 158, 11, 0.16);
  color: #c2410c;
}

.dashboard-next-action-ok .dashboard-next-action-icon {
  background: rgba(22, 163, 74, 0.16);
  color: #15803d;
}

.dashboard-next-action-body {
  flex: 1 1 auto;
  min-width: 0;
}

.dashboard-next-action-tag {
  display: inline-block;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-next-action-body strong {
  display: block;
  margin-top: 0.12rem;
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.2;
}

.dashboard-next-action-body p {
  margin: 0.2rem 0 0;
  color: #475569;
  font-size: 0.86rem;
  line-height: 1.4;
}

.dashboard-next-action-cta {
  flex: 0 0 auto;
  color: #2563eb;
  font-weight: 850;
  white-space: nowrap;
}

.dashboard-next-action-ok .dashboard-next-action-cta {
  color: #15803d;
}

.dashboard-attention-panel {
  display: grid;
  gap: 0.72rem;
}

.dashboard-attention-head {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.dashboard-attention-head strong {
  color: #0f172a;
  font-size: 0.98rem;
  font-weight: 900;
}

.dashboard-attention-head small {
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.4;
}

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

.dashboard-shortcut {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 132px;
  padding: 0.9rem;
  border-radius: 16px;
  text-decoration: none;
  color: #0f172a;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  transform: translateY(0) scale(1);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    filter 0.28s ease;
  will-change: transform;
}

.dashboard-shortcut::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 18%,
    rgba(255, 255, 255, 0.38) 50%,
    transparent 82%
  );
  opacity: 0;
  transform: translateX(-120%);
  transition:
    transform 0.55s ease,
    opacity 0.3s ease;
  pointer-events: none;
}

.dashboard-shortcut:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 20px 38px rgba(15, 23, 42, 0.14);
  filter: saturate(1.05);
}

.dashboard-shortcut:hover::before {
  opacity: 1;
  transform: translateX(120%);
}

.dashboard-shortcut-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-shortcut-pill {
  padding: 0.3rem 0.6rem;
  background: rgba(15, 23, 42, 0.08);
  color: #334155;
}

.dashboard-shortcut-arrow {
  font-size: 1rem;
  font-weight: 850;
  color: rgba(15, 23, 42, 0.48);
  transition:
    transform 0.28s ease,
    color 0.28s ease;
}

.dashboard-shortcut:hover .dashboard-shortcut-arrow {
  transform: translateX(5px);
  color: rgba(15, 23, 42, 0.78);
}

.dashboard-shortcut h3 {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 900;
  transition: transform 0.28s ease;
}

.dashboard-shortcut p {
  margin: 0;
  color: #334155;
  font-size: 0.82rem;
  line-height: 1.4;
  transition: transform 0.28s ease;
}

.dashboard-shortcut-blue {
  background: linear-gradient(180deg, #eef4ff 0%, #dce9ff 100%);
  border-color: rgba(37, 99, 235, 0.16);
}

.dashboard-shortcut-gold {
  background: linear-gradient(180deg, #fff6df 0%, #ffe9b2 100%);
  border-color: rgba(217, 119, 6, 0.18);
}

.dashboard-shortcut-slate {
  background: linear-gradient(180deg, #f3f5f9 0%, #e4e9f2 100%);
  border-color: rgba(100, 116, 139, 0.16);
}

.dashboard-shortcut-green {
  background: linear-gradient(180deg, #ebfff1 0%, #d7f7e3 100%);
  border-color: rgba(22, 163, 74, 0.16);
}

.dashboard-shortcut-violet {
  background: linear-gradient(180deg, #f4ecff 0%, #e8dbff 100%);
  border-color: rgba(126, 34, 206, 0.16);
}

.dashboard-shortcut-amber {
  background: linear-gradient(180deg, #fff9ec 0%, #fff0c9 100%);
  border-color: rgba(245, 158, 11, 0.16);
}

.dashboard-shortcut.is-disabled {
  cursor: default;
  filter: grayscale(0.08);
}

.dashboard-shortcut.is-disabled:hover {
  transform: none;
  box-shadow: none;
  filter: grayscale(0.08);
}

.dashboard-shortcut.is-disabled:hover::before,
.dashboard-shortcut.is-disabled:hover .dashboard-shortcut-arrow,
.dashboard-shortcut.is-disabled:hover h3,
.dashboard-shortcut.is-disabled:hover p {
  transform: none;
}

.dashboard-mobile-access,
.dashboard-mobile-bottom-nav,
.dashboard-mobile-menu,
.dashboard-mobile-menu-overlay {
  display: none;
}

.dashboard-user-card,
.dashboard-live-preview,
.dashboard-live-header,
.dashboard-live-metrics,
.dashboard-live-grid,
.dashboard-live-card,
.dashboard-revenue-strip,
.dashboard-revenue-links,
.dashboard-mini-link,
.dashboard-operations,
.dashboard-operation-card,
.dashboard-operation-actions,
.dashboard-operation-link,
.dashboard-empty-state,
.dashboard-pending-list,
.dashboard-activity-list,
.dashboard-pending-card,
.dashboard-activity-item,
.dashboard-grid-bottom {
  /* Classes antigas preservadas para evitar quebra em telas legadas. */
}

@media (max-height: 760px) {
  .dashboard-sidebar {
    justify-content: flex-start;
  }
}

@media (max-width: 1199.98px) {
  .dashboard-layout {
    grid-template-columns: minmax(238px, 252px) minmax(0, 1fr);
    gap: 1.4rem;
  }

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

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

  .dashboard-revenue-hero,
  .dashboard-kpi-card {
    min-height: 128px;
  }
}

@media (max-width: 991.98px) {
  .dashboard-sidebar-submenu {
    position: static;
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.42rem 0 0 2.1rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .dashboard-sidebar-submenu a {
    color: rgba(248, 250, 252, 0.92);
  }

  .dashboard-sidebar-submenu a:hover,
  .dashboard-sidebar-submenu a:focus {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
  }

  .dashboard-action-hub {
    display: none !important;
  }

  .dashboard-shell {
    width: min(100% - 1rem, 900px);
    padding: 0.75rem 0 4.5rem;
  }

  .dashboard-shell main {
    margin-bottom: 0;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: static;
    height: auto;
    max-height: none;
    justify-content: flex-start;
    overflow: visible;
  }

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

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

  .dashboard-titlebar-main,
  .dashboard-section-heading {
    grid-template-columns: 1fr;
  }

  .dashboard-section-heading p {
    text-align: left;
  }

  .dashboard-overview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-insight-layout,
  .dashboard-grid,
  .dashboard-titlebar-insights {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .dashboard-intelligence-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-titlebar-copy {
    padding: 1rem;
    border-radius: 20px;
  }

  .dashboard-titlebar-copy-block h1 {
    font-size: 1.85rem;
  }

  .dashboard-overview {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar-nav {
    grid-template-columns: 1fr;
  }

  .dashboard-panel-header {
    flex-direction: column;
  }

  .dashboard-panel-header p {
    max-width: 100%;
  }

  .dashboard-ranking-item,
  .dashboard-trend-item,
  .dashboard-stale-item {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .dashboard-ranking-item > span,
  .dashboard-trend-item span,
  .dashboard-stale-item span,
  .dashboard-ranking-item em,
  .dashboard-trend-item em,
  .dashboard-stale-item em {
    justify-self: start;
  }

  .dashboard-shortcuts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 479.98px) {
  .dashboard-shell {
    width: min(100% - 0.7rem, 560px);
  }

  .dashboard-sidebar,
  .dashboard-titlebar-copy,
  .dashboard-panel,
  .dashboard-revenue-hero,
  .dashboard-kpi-card,
  .dashboard-titlebar-card {
    border-radius: 18px;
  }

  .dashboard-sidebar-summary {
    gap: 0.42rem;
  }

  .dashboard-sidebar-stat {
    min-height: 58px;
    padding: 0.5rem 0.42rem;
  }

  .dashboard-sidebar-stat strong {
    font-size: 0.98rem;
  }

  .dashboard-sidebar-stat span {
    font-size: 0.62rem;
  }

  .dashboard-revenue-hero h2 {
    font-size: 1.78rem;
  }

  .dashboard-kpi-card strong {
    font-size: 1.28rem;
  }
}

/* ==========================================================================
   04 - NAVEGACAO INTERNA E BREADCRUMB
   ========================================================================== */

.app-nav {
  padding: 0.55rem 1rem;
  background: rgba(248, 250, 252, 0.88) !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14) !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.app-nav .container-fluid {
  padding: 0.35rem 0.55rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.app-nav .navbar-brand {
  padding-inline: 0.35rem;
}

.app-nav .form-control {
  min-height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: #f8fafc;
  color: #0f172a;
}

.app-nav .form-control::placeholder {
  color: #94a3b8;
}

.app-nav .btn-outline-light,
.app-nav .btn-danger {
  min-height: 42px;
  border-radius: 14px;
  font-weight: 800;
}

.app-breadcrumb {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 0.4rem auto 1rem;
  padding: 0.72rem 0.95rem;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(10px);
}

.app-breadcrumb .breadcrumb {
  margin: 0;
}

.app-breadcrumb .breadcrumb-item a {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

.app-breadcrumb .breadcrumb-item.active {
  color: #0f172a !important;
}

.app-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.82rem;
  font-weight: 800;
}

/* ==========================================================================
   MOBILE TYPE TOKENS DO SISTEMA
   --------------------------------------------------------------------------
   Tokens compartilhados para padronizar a leitura nas telas privadas.
   As paginas publicas possuem tokens proprios porque usam outra densidade.
   ========================================================================== */

@media (max-width: 767.98px) {
  :root {
    --vm-mobile-system-text: 1.06rem;
    --vm-mobile-system-small: 0.94rem;
    --vm-mobile-system-micro: 0.875rem;
    --vm-mobile-system-line: 1.58;
    --vm-mobile-system-line-compact: 1.4;
  }

  .dashboard-content :is(p, li, span, small),
  .dashboard-main :is(p, li, span, small),
  .container-painel :is(p, li, span, small),
  .app-breadcrumb,
  .app-nav :is(.form-control, .btn, .dropdown-item) {
    font-size: var(--vm-mobile-system-text);
    line-height: var(--vm-mobile-system-line);
  }

  .app-user-pill,
  .app-breadcrumb .breadcrumb-item {
    font-size: var(--vm-mobile-system-small);
    line-height: var(--vm-mobile-system-line-compact);
  }
}
