* {
  box-sizing: border-box;
}

:root {
  --bg: #0b0b12;
  --panel: #14141f;
  --panel2: #1b1b28;
  --text: #f5f3ff;
  --muted: #a8a3b8;
  --border: #2a2938;
  --purple: #8b5cf6;
  --purple-dark: #6d28d9;
  --danger: #ef4444;
  --success: #22c55e;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.hidden {
  display: none !important;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at top, #24153f 0%, #0b0b12 45%);
}

.login-card {
  width: min(420px, 100%);
  background: rgba(20, 20, 31, .96);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

.brand-mark {
  width: 66px;
  height: 66px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
}

.brand-mark.small {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  margin: 0;
  font-size: 13px;
}

h1, h2, h3, p {
  margin-top: 0;
}

.subtitle, .placeholder p {
  color: var(--muted);
}

label {
  display: block;
  margin: 16px 0 7px;
  color: #d8d4e6;
}

input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0f0f18;
  color: var(--text);
  outline: none;
}

input:focus {
  border-color: var(--purple);
}

button {
  font: inherit;
}

.primary-btn,
.secondary-btn,
.logout-btn,
.nav-item,
.link-btn {
  cursor: pointer;
}

.primary-btn {
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  border: 0;
  border-radius: 10px;
  color: white;
  font-weight: 700;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
}

.link-btn {
  width: 100%;
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: #c4b5fd;
}

.signup-outline-btn {
  width: 100%;
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid #7c3aed;
  background: transparent;
  color: #ddd6fe;
  font-weight: 700;
  cursor: pointer;
}

.signup-outline-btn:hover {
  background: rgba(139, 92, 246, .10);
}

.signup-box {
  margin-top: 20px;
  padding-top: 2px;
}

.signup-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.signup-divider::before,
.signup-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.signup-trial-note {
  margin-top: 16px;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid rgba(139, 92, 246, .28);
  background: rgba(139, 92, 246, .08);
  color: #ddd6fe;
  font-size: 13px;
  line-height: 1.45;
}

#signupView .primary-btn {
  margin-top: 16px;
}

.message {
  margin-top: 14px;
  min-height: 20px;
  color: var(--muted);
}

.message.error {
  color: #fecaca;
}

.message.success {
  color: #bbf7d0;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
}

.sidebar {
  border-right: 1px solid var(--border);
  background: #0e0e16;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
}

.sidebar-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 8px 22px;
}

.sidebar-brand div:last-child {
  min-width: 0;
}

.sidebar-brand strong,
.sidebar-brand span {
  display: block;
}

.sidebar-brand span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav {
  display: grid;
  gap: 6px;
}

.nav-item {
  text-align: left;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #d6d3e3;
}

.nav-item:hover,
.nav-item.active {
  background: #1d1730;
  border-color: #3a2b5c;
  color: white;
}

.logout-btn {
  margin-top: auto;
  padding: 11px 12px;
  border: 1px solid #3b1f24;
  border-radius: 10px;
  background: #221014;
  color: #fecaca;
}

.main {
  min-width: 0;
  padding: 26px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}

.topbar p {
  color: var(--muted);
  margin-bottom: 0;
}

.user-box {
  text-align: right;
}

.user-box strong,
.user-box span {
  display: block;
}

.user-box span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.view {
  display: none;
}

.active-view {
  display: block;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.card,
.panel,
.placeholder {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.card {
  padding: 18px;
}

.card span {
  color: var(--muted);
  font-size: 13px;
}

.card strong {
  display: block;
  margin-top: 10px;
  font-size: 28px;
}

.panel,
.placeholder {
  padding: 20px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.secondary-btn {
  border: 1px solid #4b3c6b;
  background: #211a33;
  color: white;
  border-radius: 9px;
  padding: 9px 12px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
}

th,
td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
}

th {
  color: #cbc6da;
}

td {
  color: #ece9f6;
}

code {
  color: #c4b5fd;
}

@media (max-width: 980px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

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

  .logout-btn {
    margin-top: 14px;
  }

  .main {
    padding: 18px;
  }

  .topbar {
    align-items: flex-start;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   FRONTEND 002 - ESTOQUE
   ========================================================= */

.section-subtitle {
  color: var(--muted);
  margin-bottom: 0;
  font-size: 14px;
}

.estoque-head {
  align-items: flex-start;
}

.primary-small-btn {
  border: 0;
  border-radius: 9px;
  padding: 10px 14px;
  color: white;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px auto;
  gap: 10px;
  margin: 18px 0 4px;
}

.toolbar select,
.form-grid select,
.form-grid textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0f0f18;
  color: var(--text);
  outline: none;
}

.toolbar select,
.form-grid select {
  padding: 12px 14px;
}

.form-grid textarea {
  padding: 12px 14px;
  resize: vertical;
  min-height: 90px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.form-grid label {
  margin-top: 0;
}

.span-2 {
  grid-column: 1 / -1;
}

.form-panel {
  margin-top: 18px;
}

.form-actions {
  display: flex;
  gap: 10px;
}

.protected-box {
  border: 1px solid #3e3458;
  border-radius: 12px;
  background: #171322;
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px 18px;
}

.protected-box div span,
.protected-box div strong {
  display: block;
}

.protected-box div span {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.protected-box div strong {
  font-size: 18px;
}

.protected-box p {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.status-pill {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status-pill.active {
  background: rgba(34, 197, 94, .12);
  color: #bbf7d0;
  border: 1px solid rgba(34, 197, 94, .28);
}

.status-pill.inactive {
  background: rgba(148, 163, 184, .12);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, .25);
}

.table-action {
  border: 1px solid #4b3c6b;
  background: #211a33;
  color: white;
  border-radius: 8px;
  padding: 6px 9px;
  cursor: pointer;
  margin: 2px;
  font-size: 12px;
}

.table-action.danger {
  border-color: #5f2a32;
  background: #2a1217;
  color: #fecaca;
}

.table-action.success {
  border-color: #28573d;
  background: #10251a;
  color: #bbf7d0;
}

.low-stock {
  color: #fde68a;
  font-weight: 700;
}

@media (max-width: 760px) {
  .toolbar,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .protected-box {
    grid-template-columns: 1fr;
  }

  .protected-box p {
    grid-column: auto;
  }

  .panel-head.estoque-head {
    display: grid;
    gap: 12px;
  }
}


/* =========================================================
   FRONTEND 003 - ENTRADAS
   ========================================================= */

.entrada-head {
  align-items: flex-start;
}

.entradas-toolbar {
  grid-template-columns: minmax(260px, 1fr) auto;
}

.readonly-value {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #171722;
  color: #d8d4e6;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 700;
}

.entry-positive {
  color: #bbf7d0;
  font-weight: 700;
}

@media (max-width: 760px) {
  .entradas-toolbar {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   FRONTEND 004 - SAÍDAS
   ========================================================= */

.saida-head {
  align-items: flex-start;
}

.saidas-toolbar {
  grid-template-columns: minmax(260px, 1fr) auto;
}

.exit-negative {
  color: #fecaca;
  font-weight: 700;
}

.warning-text {
  color: #fde68a !important;
}

.danger-balance {
  color: #fecaca !important;
  border-color: #7f1d1d !important;
  background: #2a1217 !important;
}

@media (max-width: 760px) {
  .saidas-toolbar {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   FRONTEND 005 - FORNECEDORES
   ========================================================= */

.fornecedor-head {
  align-items: flex-start;
}

.fornecedores-toolbar {
  grid-template-columns: minmax(260px, 1fr) 170px auto;
}

@media (max-width: 760px) {
  .fornecedores-toolbar {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   FRONTEND 006 - RELATÓRIOS
   ========================================================= */

.relatorios-head {
  align-items: flex-start;
}

.report-filters {
  display: grid;
  grid-template-columns: 220px 220px auto;
  gap: 12px;
  align-items: end;
  margin-top: 18px;
}

.report-filter-actions {
  display: flex;
  gap: 10px;
}

.report-cards {
  margin-top: 18px;
}

.report-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.report-tab {
  border: 1px solid var(--border);
  background: #14141f;
  color: #d6d3e3;
  border-radius: 10px;
  padding: 10px 13px;
  cursor: pointer;
}

.report-tab.active {
  background: #211a33;
  border-color: #4b3c6b;
  color: white;
}

.report-panel {
  display: none;
}

.report-panel.active-report {
  display: block;
}

.report-panel + .report-panel {
  margin-top: 0;
}

.report-negative {
  color: #fecaca;
  font-weight: 700;
}

.report-positive {
  color: #bbf7d0;
  font-weight: 700;
}

.report-low {
  color: #fde68a;
  font-weight: 700;
}

@media (max-width: 760px) {
  .report-filters {
    grid-template-columns: 1fr;
  }

  .report-filter-actions {
    flex-direction: column;
  }
}


/* =========================================================
   FRONTEND 007 - IMPORTAÇÃO / EXPORTAÇÃO CSV
   ========================================================= */

.header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.csv-instructions {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #11111b;
  color: #d8d4e6;
}

.csv-instructions code {
  display: inline-block;
  margin-top: 8px;
  word-break: break-all;
}

.csv-instructions p {
  color: var(--muted);
  margin: 8px 0 0;
}

.csv-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.csv-actions input[type="file"] {
  max-width: 520px;
}

.csv-status-ok {
  color: #bbf7d0;
  font-weight: 700;
}

.csv-status-warn {
  color: #fde68a;
  font-weight: 700;
}

.csv-status-error {
  color: #fecaca;
  font-weight: 700;
}

.report-export-btn {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .header-actions,
  .csv-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
}


/* =========================================================
   FRONTEND 008 - USUÁRIOS E PERMISSÕES
   ========================================================= */

.usuarios-head {
  align-items: flex-start;
}

.usuarios-toolbar {
  grid-template-columns: minmax(260px, 1fr) 170px;
}

.permissions-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  background: #11111b;
}

.permissions-box h4 {
  grid-column: 1 / -1;
  margin: 0 0 4px;
}

.permission-item {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 9px 10px;
  border-radius: 9px;
  background: #171722;
  color: #d8d4e6;
}

.permission-item input {
  width: auto;
  margin: 0;
}

.permission-summary {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  max-width: 420px;
}

.permission-chip {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 999px;
  background: #211a33;
  border: 1px solid #4b3c6b;
  color: #ddd6fe;
  font-size: 11px;
}

.warning-box {
  padding: 12px 14px;
  border: 1px solid rgba(245, 158, 11, .4);
  border-radius: 10px;
  background: rgba(245, 158, 11, .08);
  color: #fde68a;
}

.admin-badge {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(139, 92, 246, .15);
  border: 1px solid rgba(139, 92, 246, .35);
  color: #ddd6fe;
  font-size: 12px;
  font-weight: 700;
}

.employee-badge {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(59, 130, 246, .12);
  border: 1px solid rgba(59, 130, 246, .28);
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 760px) {
  .usuarios-toolbar,
  .permissions-box {
    grid-template-columns: 1fr;
  }

  .permissions-box h4 {
    grid-column: auto;
  }
}


/* =========================================================
   FRONTEND 009 - PERMISSÕES APLICADAS NA INTERFACE
   ========================================================= */

.permission-hidden {
  display: none !important;
}

.permission-disabled {
  opacity: .45 !important;
  pointer-events: none !important;
}

.permission-note {
  color: var(--muted);
  font-size: 12px;
}


/* =========================================================
   FRONTEND 010 - NOVO FUNCIONÁRIO / CONVITES
   ========================================================= */

.invite-status {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.invite-status.pendente {
  background: rgba(245, 158, 11, .12);
  border: 1px solid rgba(245, 158, 11, .3);
  color: #fde68a;
}

.invite-status.enviado {
  background: rgba(59, 130, 246, .12);
  border: 1px solid rgba(59, 130, 246, .3);
  color: #bfdbfe;
}

.invite-status.aceito {
  background: rgba(34, 197, 94, .12);
  border: 1px solid rgba(34, 197, 94, .3);
  color: #bbf7d0;
}

.invite-status.cancelado,
.invite-status.expirado,
.invite-status.erro {
  background: rgba(148, 163, 184, .12);
  border: 1px solid rgba(148, 163, 184, .25);
  color: #cbd5e1;
}

.invite-expired {
  color: #fecaca;
  font-weight: 700;
}


/* =========================================================
   FRONTEND 011 - ENVIO REAL DE CONVITES
   ========================================================= */

.table-action:disabled {
  opacity: .55;
  cursor: wait;
}


/* =========================================================
   FRONTEND 012 - CONFIGURAÇÕES DA EMPRESA
   ========================================================= */

.configuracoes-head {
  align-items: flex-start;
}

.config-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, .8fr);
  gap: 18px;
}

.field-help {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.logo-preview-box {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #11111b;
  padding: 14px;
}

.logo-preview-box span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 10px;
}

.logo-preview-box img {
  display: block;
  max-width: 240px;
  max-height: 120px;
  object-fit: contain;
  border-radius: 10px;
  background: white;
  padding: 8px;
}

.subscription-cards {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.subscription-item {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #11111b;
}

.subscription-item span,
.subscription-item strong {
  display: block;
}

.subscription-item span {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.subscription-item strong {
  font-size: 17px;
}

.plan-description {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #3e3458;
  border-radius: 12px;
  background: #171322;
  color: #d8d4e6;
  line-height: 1.45;
}

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

/* =========================================================
   FRONTEND 018 - TUTORIAL DE PRIMEIRO ACESSO
   ========================================================= */

.sidebar-bottom-actions {
  margin-top: auto;
  display: grid;
  gap: 8px;
}

.first-steps-icon-btn {
  width: 100%;
  min-height: 42px;
  justify-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #6d55a8;
  background: #1a1327;
  color: #ddd6fe;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(124, 92, 231, .08);
}

.first-steps-icon-btn:hover {
  border-color: #8b5cf6;
  background: #241735;
  color: #ffffff;
}

.first-steps-icon-btn.hidden {
  display: none !important;
}

.tutorial-menu-btn {
  width: 100%;
  border: 1px solid #4b3c6b;
  background: #171322;
  color: #ddd6fe;
  border-radius: 10px;
  padding: 11px 12px;
  font-weight: 700;
  cursor: pointer;
}

.tutorial-menu-btn:hover {
  border-color: #7c5ce7;
  background: #201832;
}

.tutorial-coach {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10020;
  width: min(430px, calc(100vw - 32px));
  padding: 18px;
  border-radius: 16px;
  border: 1px solid #6d55a8;
  background: #15111f;
  box-shadow: 0 22px 65px rgba(0, 0, 0, .52);
}

.tutorial-coach-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.tutorial-step-counter {
  color: #c4b5fd;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.tutorial-close-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #11111b;
  color: var(--text);
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.tutorial-coach h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.tutorial-coach p {
  margin: 0;
  color: #d8d4e6;
  line-height: 1.55;
}

.tutorial-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.tutorial-actions .tutorial-skip-btn {
  margin-right: auto;
}

.tutorial-highlight {
  position: relative !important;
  z-index: 10010 !important;
  outline: 3px solid #8b5cf6 !important;
  outline-offset: 5px !important;
  border-radius: 10px;
  box-shadow: 0 0 0 7px rgba(139, 92, 246, .18), 0 0 34px rgba(139, 92, 246, .28) !important;
}

body.tutorial-active::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, .24);
  pointer-events: none;
}

@media (max-width: 760px) {
  .tutorial-coach {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    max-height: 45vh;
    overflow: auto;
  }

  .tutorial-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .tutorial-actions .tutorial-skip-btn {
    grid-column: 1 / -1;
    order: 3;
    margin-right: 0;
  }
}

/* =========================================================
   FRONTEND 019 - PACOTE DE LANÇAMENTO COMERCIAL
   ========================================================= */

.help-menu-btn {
  width: 100%;
  border: 1px solid #2f4f63;
  background: #111c23;
  color: #d7f0ff;
  border-radius: 10px;
  padding: 11px 12px;
  font-weight: 700;
  cursor: pointer;
}

.help-menu-btn:hover {
  border-color: #4f86a5;
  background: #162630;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 6px;
  color: #c4b5fd;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.launch-checklist {
  margin-bottom: 18px;
  overflow: hidden;
}

.launch-checklist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.launch-checklist-head h3 {
  margin-bottom: 6px;
}

.setup-progress-ring {
  min-width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 6px solid #33264c;
  background: #100d18;
}

.setup-progress-ring strong {
  font-size: 16px;
}

.setup-progress-track {
  height: 9px;
  margin: 15px 0 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #252334;
}

.setup-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
  transition: width .25s ease;
}

.setup-checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.setup-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #101019;
  color: var(--text);
  cursor: pointer;
}

.setup-item:hover {
  border-color: #625186;
}

.setup-item.completed {
  border-color: #236c43;
  background: #102019;
}

.setup-status {
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #2a223a;
  color: #ddd6fe;
  font-weight: 800;
}

.setup-item.completed .setup-status {
  background: #166534;
  color: #dcfce7;
}

.setup-item span:last-child {
  display: grid;
  gap: 3px;
}

.setup-item small {
  color: var(--muted);
  line-height: 1.35;
}

.setup-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
}

.context-tip {
  margin: 0 0 14px;
  padding: 11px 13px;
  border: 1px solid #3e3656;
  border-left: 4px solid var(--purple);
  border-radius: 10px;
  background: #151220;
  color: #d9d3e8;
  line-height: 1.45;
}

.help-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, .68);
}

.help-modal {
  position: relative;
  width: min(760px, 100%);
  max-height: min(86vh, 780px);
  overflow: auto;
  border: 1px solid #40384f;
  border-radius: 18px;
  background: #14141f;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .55);
  padding: 22px;
}

.welcome-modal-card {
  width: min(620px, 100%);
  text-align: center;
}

.help-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #101018;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
}

.welcome-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.welcome-feature-grid div {
  display: grid;
  gap: 7px;
  padding: 14px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #101019;
}

.welcome-feature-grid strong {
  width: 34px;
  height: 34px;
  margin: auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #31254a;
  color: #ddd6fe;
}

.welcome-feature-grid span {
  font-size: 13px;
  color: #d8d4e6;
}

.welcome-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.help-modal-head {
  padding-right: 45px;
}

.help-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.help-action-card {
  display: grid;
  gap: 5px;
  text-align: left;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #101019;
  color: var(--text);
  cursor: pointer;
}

.help-action-card:hover {
  border-color: #6d55a8;
}

.help-action-card span {
  color: var(--muted);
  font-size: 13px;
}

.help-faq {
  display: grid;
  gap: 8px;
}

.help-faq details {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #101019;
  padding: 11px 13px;
}

.help-faq summary {
  cursor: pointer;
  font-weight: 700;
}

.help-faq p {
  margin: 9px 0 0;
  color: #cbc7d7;
  line-height: 1.5;
}

.help-support-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #324454;
  background: #111a21;
}

.help-support-box p {
  margin: 4px 0 0;
  color: var(--muted);
}

@media (max-width: 760px) {
  .setup-checklist-grid,
  .help-quick-actions {
    grid-template-columns: 1fr;
  }

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

  .launch-checklist-head,
  .setup-footer,
  .help-support-box {
    align-items: stretch;
    flex-direction: column;
  }

  .setup-progress-ring {
    width: 68px;
  }
}



/* FRONTEND 020 - RAMO DE ATIVIDADE E TEMPLATES */
.business-type-block {
  margin: 18px 0 8px;
  padding: 14px;
  border: 1px solid #44375d;
  border-radius: 13px;
  background: #11101a;
  text-align: left;
}
.business-type-block label { display:block; margin-bottom:7px; font-weight:800; }
.business-type-block select,
#companyBusinessType {
  width:100%;
  padding:11px 12px;
  border:1px solid var(--border);
  border-radius:10px;
  background:#0f0f18;
  color:var(--text);
}
.business-type-preview { margin:9px 0 0; color:#cfc9dc; line-height:1.45; font-size:13px; }
.business-template-summary {
  margin:8px 0 4px;
  padding:12px;
  border:1px solid #3b3550;
  border-radius:10px;
  background:#12101a;
  color:#d8d4e6;
  line-height:1.45;
}
.template-category-list { display:flex; flex-wrap:wrap; gap:6px; margin-top:9px; }
.template-category-chip {
  padding:5px 8px;
  border-radius:999px;
  border:1px solid #4b3d68;
  background:#1a1526;
  color:#ddd6fe;
  font-size:12px;
}

/* =========================================================
   FRONTEND 021 - ETAPA 1: ASSINATURA + TESTE DE 7 DIAS
   ========================================================= */

.trial-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 15px 17px;
  border: 1px solid #5b4588;
  border-radius: 14px;
  background: linear-gradient(135deg, #171225, #11111a);
}

.trial-banner-copy {
  display: grid;
  gap: 4px;
}

.trial-banner-copy strong {
  font-size: 16px;
}

.trial-banner-copy > span:last-child {
  color: #d0cadc;
  line-height: 1.4;
}

.trial-badge {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: #31234c;
  color: #ddd6fe;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.subscription-page-grid {
  display: grid;
  gap: 18px;
}

.subscription-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.subscription-overview-card {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #101019;
}

.subscription-overview-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.subscription-overview-card strong {
  font-size: 16px;
}

.trial-progress-block {
  margin-top: 16px;
  padding: 15px;
  border-radius: 12px;
  border: 1px solid #43375e;
  background: #11101a;
}

.trial-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.trial-progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #292536;
}

.trial-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
  transition: width .25s ease;
}

.trial-progress-block p {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.commercial-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.commercial-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #101019;
}

.commercial-plan-card.recommended {
  border-color: #7458b1;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, .12);
}

.plan-kicker {
  width: fit-content;
  margin-bottom: 9px;
  color: #c4b5fd;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.commercial-plan-card h4 {
  margin: 0 0 8px;
  font-size: 21px;
}

.commercial-plan-price {
  margin-bottom: 10px;
  font-size: 17px;
  font-weight: 800;
}

.commercial-plan-card p {
  color: #cfcbd8;
  line-height: 1.45;
}

.commercial-plan-card ul {
  flex: 1;
  padding-left: 18px;
  color: #d8d4e6;
  line-height: 1.7;
}

.commercial-plan-card button {
  width: 100%;
  margin-top: 10px;
}

.commercial-plan-card.selected {
  border-color: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, .12);
}

.selected-plan-box {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #2f6d49;
  border-radius: 12px;
  background: #101d16;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.selected-plan-box span {
  display: block;
  margin-bottom: 4px;
  color: #b9cabb;
  font-size: 12px;
}

.subscription-stage-note {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #4a4259;
  border-radius: 10px;
  background: #111019;
  color: #cfcbd8;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .subscription-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .commercial-plan-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .trial-banner,
  .selected-plan-box,
  .trial-progress-head {
    align-items: stretch;
    flex-direction: column;
  }

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



/* =========================================================
   PAGAMENTOS ASAAS
   ========================================================= */
.commercial-plan-price small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 600;
  color: #aaa4b5;
}

.payment-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .72);
}

.payment-modal.hidden { display: none; }

.payment-modal-card {
  width: min(760px, 100%);
  max-height: 92vh;
  overflow: auto;
  border: 1px solid #4a4259;
  border-radius: 16px;
  background: #111019;
  box-shadow: 0 22px 60px rgba(0,0,0,.42);
  padding: 20px;
}

.payment-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.payment-modal-head h3 { margin: 8px 0 4px; }
.payment-modal-head p { margin: 0; color: #bdb8c8; }

.asaas-badge {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: #5a3511;
  color: #ffd29d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.payment-modal-close {
  width: 38px;
  height: 38px;
  border: 1px solid #51485f;
  border-radius: 10px;
  background: #191621;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

.payment-loading {
  padding: 18px;
  border-radius: 12px;
  background: #17141f;
  color: #ddd7e7;
  text-align: center;
}

.payment-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.payment-summary-grid > div {
  padding: 12px;
  border: 1px solid #393342;
  border-radius: 10px;
  background: #17141f;
}

.payment-summary-grid span {
  display: block;
  margin-bottom: 5px;
  color: #aaa4b5;
  font-size: 11px;
}

.pix-payment-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 18px;
}

.pix-qr-box {
  padding: 14px;
  border: 1px solid #393342;
  border-radius: 12px;
  background: #fff;
  text-align: center;
}

.pix-qr-box img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.pix-qr-box small { color: #4d4756; }

.pix-copy-box label {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
}

.pix-copy-box textarea {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  border: 1px solid #4a4259;
  border-radius: 10px;
  background: #0e0c13;
  color: #e8e3f0;
  padding: 12px;
  line-height: 1.45;
  box-sizing: border-box;
}

.pix-payment-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.pix-expiration {
  color: #aaa4b5;
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 720px) {
  .payment-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pix-payment-layout { grid-template-columns: 1fr; }
  .pix-qr-box { max-width: 280px; margin: 0 auto; }
}


/* =========================================================
   FRONTEND 023 - ETAPA 4: CONFIRMACAO AUTOMATICA DO PIX
   ========================================================= */
.payment-confirmed-box {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(89, 201, 137, 0.45);
  border-radius: 14px;
  background: rgba(89, 201, 137, 0.10);
}
.payment-confirmed-box strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.payment-confirmed-box p {
  margin: 4px 0 0;
}

/* Frontend 028 - Ordens de Serviço */
#ordens-servico h4{margin:22px 0 10px;}
#ordens-servico .os-item-form{margin-top:18px;}
#ordens-servico .table-action + .table-action{margin-left:6px;}
@media (max-width: 760px){#ordens-servico .toolbar{grid-template-columns:1fr;} #ordens-servico .toolbar select,#ordens-servico .toolbar button{width:100%;}}

/* Frontend 031 - OS com valores */
.os-values-toggle{padding:10px 12px;border:1px solid var(--border);border-radius:10px}.os-values-toggle label{display:flex;align-items:center;gap:8px;font-weight:700}.os-values-toggle input{width:auto}


/* Frontend 041 - calendário branco e visível nos campos de data */
input[type="date"] {
  color-scheme: dark;
  position: relative;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 11h18'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px 18px;
}

/* O ícone nativo continua clicável, mas fica invisível; o SVG branco acima faz a parte visual. */
input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  cursor: pointer;
  width: 22px;
  height: 22px;
  position: absolute;
  right: 10px;
}


/* FRONTEND 042 - Página comercial pública da NNB Gestão */
.marketing-site { min-height: 100vh; overflow: hidden; background: #0b0b12; color: #f5f3ff; }
.marketing-site button, .marketing-site a { -webkit-tap-highlight-color: transparent; }
.marketing-site a { color: inherit; text-decoration: none; }
.marketing-nav { width: min(1180px, calc(100% - 48px)); margin: 0 auto; min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid rgba(255,255,255,.07); }
.marketing-brand { display: inline-flex; align-items: center; gap: 11px; font-size: 18px; font-weight: 500; white-space: nowrap; }
.marketing-brand strong { font-weight: 800; }
.marketing-brand-mark { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: linear-gradient(135deg,#a78bfa,#6d28d9); color: #fff; font-size: 12px; font-weight: 900; box-shadow: 0 8px 24px rgba(109,40,217,.25); }
.marketing-nav-links { display: flex; align-items: center; justify-content: center; gap: 30px; color: #bcb6cc; font-size: 14px; }
.marketing-nav-links a:hover, .marketing-secondary-link:hover, .marketing-footer > a:last-child:hover { color: #c4b5fd; }
.marketing-login-btn { border: 1px solid #484054; background: rgba(255,255,255,.025); color: #f5f3ff; border-radius: 10px; padding: 11px 20px; font-weight: 700; cursor: pointer; }
.marketing-login-btn:hover { border-color: #8b5cf6; background: rgba(139,92,246,.09); }
.marketing-hero { width: min(1180px, calc(100% - 48px)); margin: 0 auto; min-height: 600px; padding: 76px 0 84px; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 54px; }
.marketing-hero-copy { position: relative; z-index: 1; }
.marketing-eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px; border: 1px solid rgba(167,139,250,.23); border-radius: 999px; color: #d5c8ff; background: rgba(139,92,246,.08); font-size: 12px; font-weight: 700; letter-spacing: .025em; }
.marketing-eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #a78bfa; box-shadow: 0 0 12px rgba(167,139,250,.8); }
.marketing-hero h1 { max-width: 670px; margin: 24px 0 18px; font-size: clamp(38px, 4.3vw, 58px); line-height: 1.08; letter-spacing: -.045em; font-weight: 800; }
.marketing-hero h1 span { color: #a78bfa; }
.marketing-hero-description { max-width: 570px; color: #b7b1c6; font-size: 17px; line-height: 1.75; margin-bottom: 27px; }
.marketing-hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.marketing-primary-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 11px; padding: 15px 20px; color: #fff; background: linear-gradient(135deg,#8b5cf6,#6d28d9); font-weight: 800; cursor: pointer; box-shadow: 0 12px 28px rgba(109,40,217,.23); transition: transform .18s ease, box-shadow .18s ease; }
.marketing-primary-btn:hover { transform: translateY(-2px); box-shadow: 0 15px 34px rgba(109,40,217,.34); }
.marketing-primary-btn span { font-size: 20px; line-height: .8; }
.marketing-secondary-link { color: #e2dcf0; font-size: 14px; font-weight: 700; }
.marketing-trust-note { display: flex; align-items: center; gap: 9px; margin-top: 22px; color: #a8a3b8; font-size: 12px; }
.marketing-check { display: inline-grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; color: #c4b5fd; background: rgba(139,92,246,.16); font-weight: 800; }
.marketing-hero-visual { position: relative; min-width: 0; padding: 25px 8px 22px 18px; }
.marketing-glow { position: absolute; width: 370px; height: 370px; border-radius: 50%; background: #6d28d9; filter: blur(115px); opacity: .19; right: 3%; top: 12%; pointer-events: none; }
.marketing-dashboard-card { position: relative; z-index: 1; border: 1px solid #393246; border-radius: 20px; padding: 23px; background: linear-gradient(150deg,rgba(29,25,41,.98),rgba(17,16,25,.98)); box-shadow: 0 35px 80px rgba(0,0,0,.36); transform: perspective(1000px) rotateY(-3deg) rotateX(1deg); }
.marketing-dashboard-top { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding-bottom: 20px; border-bottom: 1px solid #332d40; }
.marketing-dashboard-top > div { display: grid; gap: 6px; }
.marketing-mini-label { color: #a78bfa; font-size: 9px; letter-spacing: .16em; font-weight: 800; }
.marketing-dashboard-top strong { font-size: 16px; }
.marketing-live-dot { color: #aaa2ba; font-size: 10px; white-space: nowrap; }
.marketing-live-dot::first-letter { color: #a78bfa; }
.marketing-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.marketing-stat { min-width: 0; padding: 15px; border: 1px solid #342d42; border-radius: 12px; background: #171520; }
.marketing-stat span, .marketing-stat small { display: block; color: #aaa4b7; font-size: 10px; }
.marketing-stat strong { display: block; margin: 10px 0 6px; font-size: 15px; color: #f4efff; }
.marketing-chart-card { padding: 17px 16px 13px; border: 1px solid #342d42; border-radius: 12px; background: #13121b; }
.marketing-chart-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.marketing-chart-heading strong { font-size: 12px; }
.marketing-chart-heading span { color: #928ba2; font-size: 9px; }
.marketing-bars { height: 100px; display: flex; align-items: end; gap: 10px; padding: 12px 4px 0; border-bottom: 1px solid #342d42; }
.marketing-bars i { flex: 1; min-width: 0; border-radius: 5px 5px 0 0; background: linear-gradient(180deg,#a78bfa,#6d28d9); opacity: .86; }
.marketing-chart-caption { display: flex; justify-content: space-between; gap: 6px; padding-top: 9px; color: #928ba2; font-size: 9px; }
.marketing-dashboard-footer { display: flex; align-items: center; gap: 11px; padding-top: 18px; }
.marketing-footer-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 10px; background: rgba(139,92,246,.15); color: #c4b5fd; }
.marketing-dashboard-footer strong, .marketing-dashboard-footer small { display: block; }
.marketing-dashboard-footer strong { font-size: 11px; }
.marketing-dashboard-footer small { margin-top: 4px; color: #9992a9; font-size: 10px; }
.marketing-floating-tag { position: absolute; z-index: 2; right: -6px; bottom: 2px; display: grid; gap: 3px; padding: 13px 18px; border: 1px solid #51416d; border-radius: 13px; background: #211933; box-shadow: 0 14px 32px rgba(0,0,0,.3); }
.marketing-floating-tag span { color: #d8c8ff; font-size: 18px; font-weight: 800; }
.marketing-floating-tag small { color: #b8aecb; font-size: 10px; }
.marketing-section { padding: 88px max(24px, calc((100% - 1180px)/2)); }
.marketing-benefits-section { background: #111019; border-top: 1px solid rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.04); }
.marketing-section-heading { max-width: 720px; margin: 0 auto 42px; text-align: center; }
.marketing-section-kicker { display: inline-block; margin-bottom: 13px; color: #a78bfa; font-size: 10px; letter-spacing: .16em; font-weight: 800; }
.marketing-section-heading h2, .marketing-final-cta h2 { margin: 0 0 14px; font-size: clamp(28px,3.4vw,40px); line-height: 1.16; letter-spacing: -.03em; }
.marketing-section-heading p, .marketing-final-cta p { margin: 0; color: #aaa4b7; font-size: 15px; line-height: 1.7; }
.marketing-benefit-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.marketing-benefit-card { padding: 24px 21px; border: 1px solid #302b3b; border-radius: 15px; background: linear-gradient(145deg,#191722,#14131c); }
.marketing-benefit-icon { display: grid; place-items: center; width: 43px; height: 43px; margin-bottom: 23px; border: 1px solid rgba(167,139,250,.2); border-radius: 12px; background: rgba(139,92,246,.1); color: #c4b5fd; font-size: 22px; }
.marketing-benefit-card h3, .marketing-step h3 { margin: 0 0 10px; font-size: 16px; }
.marketing-benefit-card p, .marketing-step p { margin: 0; color: #a9a3b5; font-size: 13px; line-height: 1.65; }
.marketing-steps-section { background: #0d0c14; }
.marketing-steps-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; max-width: 1050px; margin: 0 auto; }
.marketing-step { display: flex; gap: 16px; align-items: flex-start; padding: 23px 0; border-top: 1px solid #3a3148; }
.marketing-step-number { color: #a78bfa; font-size: 25px; line-height: 1; font-weight: 800; }
.marketing-step h3 { margin-top: 2px; }
.marketing-pricing-section { background: #111019; border-top: 1px solid rgba(255,255,255,.04); }
.marketing-pricing-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); align-items: stretch; gap: 15px; }
.marketing-price-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 25px 21px 22px; border: 1px solid #363041; border-radius: 16px; background: #17151f; }
.marketing-price-featured { border-color: #8b5cf6; background: linear-gradient(160deg,rgba(87,50,147,.22),#17151f 58%); box-shadow: 0 12px 35px rgba(109,40,217,.12); }
.marketing-popular-label { align-self: flex-start; margin: -3px 0 14px; padding: 5px 8px; border-radius: 5px; color: #e4d8ff; background: rgba(139,92,246,.22); font-size: 9px; letter-spacing: .08em; font-weight: 800; }
.marketing-price-name { font-size: 19px; font-weight: 800; }
.marketing-price-description { min-height: 36px; margin: 8px 0 20px; color: #aaa4b7; font-size: 12px; line-height: 1.5; }
.marketing-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px; min-height: 42px; }
.marketing-price strong { font-size: clamp(22px,2.1vw,28px); letter-spacing: -.035em; }
.marketing-price span { color: #a8a3b8; font-size: 11px; }
.marketing-price-consult strong { font-size: 23px; }
.marketing-user-limit { margin: 14px 0 18px; padding: 10px 11px; border-radius: 8px; background: #211d2b; color: #d7caff; font-size: 12px; font-weight: 700; }
.marketing-price-card ul { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.marketing-price-card li { position: relative; padding-left: 20px; color: #c4bfce; font-size: 12px; line-height: 1.45; }
.marketing-price-card li::before { content: "✓"; position: absolute; left: 0; color: #a78bfa; font-weight: 800; }
.marketing-plan-btn { width: 100%; padding: 12px 10px; border: 1px solid #5a4b72; border-radius: 9px; color: #f3efff; background: transparent; font-size: 12px; font-weight: 800; cursor: pointer; }
.marketing-plan-btn:hover { border-color: #a78bfa; background: rgba(139,92,246,.09); }
.marketing-plan-btn-primary { border-color: transparent; background: linear-gradient(135deg,#8b5cf6,#6d28d9); }
.marketing-plan-btn-primary:hover { background: linear-gradient(135deg,#9a70f8,#7c3aed); }
.marketing-billing-note { max-width: 900px; margin: 24px auto 0; color: #9f99ad; font-size: 11px; line-height: 1.7; text-align: center; }
.marketing-final-cta { width: min(1180px,calc(100% - 48px)); margin: 72px auto; padding: 42px 46px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border: 1px solid #45355f; border-radius: 20px; background: radial-gradient(ellipse at 90% 10%,rgba(139,92,246,.19),transparent 45%),linear-gradient(120deg,#1b1726,#15131e); }
.marketing-final-cta > div { max-width: 650px; }
.marketing-final-cta h2 { font-size: clamp(26px,3vw,35px); }
.marketing-final-cta .marketing-primary-btn { flex-shrink: 0; }
.marketing-footer { width: min(1180px,calc(100% - 48px)); margin: 0 auto; min-height: 95px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.07); color: #9891a8; font-size: 11px; }
.marketing-footer .marketing-brand { color: #f5f3ff; font-size: 15px; }
.marketing-footer .marketing-brand-mark { width: 34px; height: 34px; border-radius: 10px; font-size: 10px; }
.marketing-footer > a:last-child { color: #c1b7d5; white-space: nowrap; }
@media (max-width: 1050px) {
  .marketing-hero { gap: 30px; }
  .marketing-benefit-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .marketing-pricing-grid { grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 760px; margin: 0 auto; }
  .marketing-price-card { padding: 24px; }
}
@media (max-width: 760px) {
  .marketing-nav { width: calc(100% - 32px); min-height: 72px; gap: 12px; }
  .marketing-brand { font-size: 15px; gap: 8px; }
  .marketing-brand-mark { width: 36px; height: 36px; border-radius: 11px; }
  .marketing-nav-links { display: none; }
  .marketing-login-btn { padding: 9px 13px; font-size: 12px; }
  .marketing-hero { width: calc(100% - 36px); padding: 55px 0 58px; grid-template-columns: 1fr; gap: 28px; }
  .marketing-hero h1 { font-size: clamp(36px,10vw,48px); }
  .marketing-hero-description { font-size: 15px; }
  .marketing-hero-actions { align-items: stretch; flex-direction: column; gap: 16px; }
  .marketing-primary-btn { width: 100%; }
  .marketing-secondary-link { text-align: center; }
  .marketing-hero-visual { padding: 10px 4px 20px; }
  .marketing-dashboard-card { padding: 17px; transform: none; }
  .marketing-floating-tag { right: -2px; bottom: -1px; }
  .marketing-section { padding: 64px 18px; }
  .marketing-section-heading { margin-bottom: 30px; }
  .marketing-section-heading h2, .marketing-final-cta h2 { font-size: 30px; }
  .marketing-benefit-grid, .marketing-steps-grid, .marketing-pricing-grid { grid-template-columns: 1fr; }
  .marketing-benefit-card { padding: 22px; }
  .marketing-benefit-icon { margin-bottom: 17px; }
  .marketing-steps-grid { gap: 8px; }
  .marketing-step { padding: 18px 0; }
  .marketing-price-card { padding: 24px; }
  .marketing-price-description { min-height: auto; }
  .marketing-price strong { font-size: 29px; }
  .marketing-final-cta { width: calc(100% - 36px); margin: 48px auto; padding: 30px 22px; flex-direction: column; align-items: stretch; }
  .marketing-footer { width: calc(100% - 36px); padding: 22px 0; min-height: 0; flex-wrap: wrap; }
  .marketing-footer > span { order: 3; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .marketing-primary-btn { transition: none; }
}

/* Frontend 043: tela exclusiva de assinatura suspensa */
.suspended-card { width: min(540px, 100%); }
.suspended-card h1 { font-size: clamp(24px, 5vw, 30px); line-height: 1.2; margin: 16px 0; }
.suspended-card p { line-height: 1.6; }
.suspended-pill { display: inline-block; padding: 6px 12px; border: 1px solid #b45309; background: #422006; color: #fde68a; border-radius: 999px; font-size: 13px; font-weight: 700; }
.suspended-card .primary-btn { width: 100%; margin-top: 12px; }
.suspended-card .link-btn { width: 100%; margin-top: 10px; }

/* Frontend 044: consulta restrita sem operações de cobrança */
.suspended-consultation { margin: 18px 0 12px; padding: 14px; border: 1px solid rgba(153, 117, 255, .28); border-radius: 12px; background: rgba(130, 90, 215, .075); }
.suspended-consultation-note { margin: 0 0 8px; font-size: 13px; line-height: 1.5; }
.suspended-consultation .primary-btn { margin-top: 6px; }
.suspended-consult-result { white-space: pre-line; margin-top: 12px; padding: 12px; border-radius: 10px; background: rgba(0, 0, 0, .22); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }

/* Frontend 045 — teste não financeiro Asaas Sandbox na tela de suspensão */
.suspended-sandbox-test { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(153,117,255,.25); }
.suspended-sandbox-test .primary-btn { margin-top: 6px; }

/* Frontend 046 — cadastro controlado e explicitamente autorizado no Sandbox */
.suspended-sandbox-register { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(153,117,255,.25); }
.suspended-sandbox-register .primary-btn:disabled { opacity: .5; cursor: not-allowed; }

/* Frontend 048 - pré-validação somente leitura de cobrança Sandbox */
.suspended-sandbox-prevalidate { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(153,117,255,.25); }
.suspended-sandbox-prevalidate .primary-btn:disabled { opacity: .5; cursor: not-allowed; }

/* Frontend 050: portal de cobrança na página suspensa. */
.nnb-checkout { margin: 20px 0 16px; padding: 18px; background: rgba(116,65,208,.11); border: 1px solid rgba(156,115,251,.45); border-radius: 15px; }
.nnb-checkout-head h2 { margin: 12px 0 5px; font-size: 21px; }
.nnb-checkout-head p { font-size: 13px; margin: 0 0 16px; color: #d8d0e8; }
.nnb-checkout-options { display: grid; gap: 9px; margin-bottom: 15px; }
.nnb-checkout-plan { cursor: pointer; display:flex; align-items:center; gap: 10px; border: 1px solid rgba(160,136,195,.5); padding: 12px; border-radius: 10px; background: rgba(11,7,23,.24); }
.nnb-checkout-plan:has(input:checked) { border-color: #9b63ff; background: rgba(115,59,223,.24); }
.nnb-checkout-plan input { accent-color: #9c63ff; }
.nnb-checkout-plan span { display:flex; flex-direction:column; flex: 1; gap:2px; }
.nnb-checkout-plan small { color:#c5b5db; font-size:11px; }
.nnb-checkout-plan b { white-space:nowrap; font-size:12px; }
.nnb-checkout-field { display:block; font-size:13px; margin: 10px 0 6px; }
.nnb-checkout-select { width:100%; background:#20162f; color:white; border:1px solid #7359a5; border-radius:9px; padding:12px; }
.nnb-checkout-result { margin-top:16px; padding:14px; border:1px solid #7552ab; border-radius:12px; overflow-wrap:anywhere; }
.nnb-checkout-qr { display:block; width:min(220px,100%); margin:12px auto; background:#fff; padding:8px; border-radius:8px; }
.nnb-checkout-payload { width:100%; min-height:86px; background:#20162f; color:white; padding:9px; border-radius:8px; }
.nnb-checkout-link { display:block; text-align:center; background:#6630c2; color:white; border-radius:8px; padding:12px; margin-top:12px; text-decoration:none; font-weight:700; }
.nnb-checkout-hint { font-size:12px; color:#c5b5db; margin-top:10px; }
.nnb-test-tools { margin:14px 0; }
.nnb-test-tools summary { cursor:pointer; font-size:12px; color:#a995ce; padding:10px; }

/* Frontend 051: nomes à esquerda, preço alinhado e seleção à direita. */
.nnb-checkout-plan { display:flex; align-items:center; gap:12px; width:100%; box-sizing:border-box; text-align:left; }
.nnb-checkout-plan .nnb-checkout-plan-details { display:flex; flex-direction:column; flex:1 1 auto; min-width:0; align-items:flex-start; text-align:left; }
.nnb-checkout-plan .nnb-checkout-plan-details strong,
.nnb-checkout-plan .nnb-checkout-plan-details small { text-align:left; }
.nnb-checkout-plan .nnb-checkout-plan-price { flex:0 0 auto; margin-left:auto; white-space:nowrap; }
.nnb-checkout-plan input[type="radio"] { flex:0 0 18px; width:18px; height:18px; margin:0 0 0 6px; cursor:pointer; accent-color:#9c63ff; }
@media (max-width:380px) {
  .nnb-checkout-plan { gap:8px; padding:10px; }
  .nnb-checkout-plan .nnb-checkout-plan-price { font-size:11px; }
}

/* NNB Gestão 072: impressão de listagens e navegação mobile */
.nnb-section-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end}
.nnb-print-btn{white-space:nowrap;min-height:38px}
.nnb-mobile-bar,.nnb-mobile-menu-close,.nnb-mobile-nav-backdrop{display:none}
@media(max-width:1440px){
 .app-shell{display:block;min-height:100dvh}
 .app-shell>.sidebar{display:flex;position:fixed;z-index:1003;inset:0 auto 0 0;width:min(84vw,310px);max-width:310px;overflow-y:auto;background:#10101b;box-shadow:10px 0 40px #0008;transform:translateX(-110%);transition:transform .22s ease;padding:18px 14px 28px;border-right:1px solid #514375;border-bottom:0}
 .app-shell.nnb-menu-open>.sidebar{transform:translateX(0)}
 .app-shell .sidebar .nav{display:flex;flex-direction:column;grid-template-columns:none;gap:4px}
 .app-shell .sidebar .nav-item{font-size:15px;min-height:44px;padding:12px 14px}
 .app-shell .sidebar-bottom-actions{margin-top:auto}
 .nnb-mobile-menu-close{display:block;align-self:flex-end;border:1px solid #5d4c7c;border-radius:9px;padding:9px 12px;background:#261e3c;color:#fff;margin:0 0 12px;cursor:pointer}
 .nnb-mobile-nav-backdrop{display:none;position:fixed;inset:0;background:#000b;z-index:1002;border:0}
 .app-shell.nnb-menu-open>.nnb-mobile-nav-backdrop{display:block}
 .nnb-mobile-bar{display:flex;align-items:center;gap:10px;min-height:56px;padding:8px 12px;margin:-8px -8px 16px;border:1px solid #403157;border-radius:12px;background:#1a1429;color:#eee}
 .nnb-mobile-menu-open{display:inline-flex;align-items:center;justify-content:center;min-height:42px;min-width:95px;background:#7540df;color:#fff;border:0;border-radius:10px;font-weight:700;cursor:pointer}
 .nnb-mobile-bar>span:nth-child(2){font-size:12px;color:#cbb5f5;font-weight:700}
 .nnb-mobile-bar>span:last-child{font-size:12px;margin-left:auto;text-align:right;max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .app-shell .main{padding:14px 12px 24px;width:100%;max-width:100%;min-width:0}
 .app-shell .topbar{gap:10px;align-items:start;flex-wrap:wrap;margin-bottom:16px}
 .app-shell .topbar h2{font-size:22px}
 .app-shell .user-box{max-width:45%;overflow-wrap:anywhere}
 .app-shell .panel{padding:14px;max-width:100%;min-width:0}
 .app-shell .panel-head{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-start}
 .app-shell .panel-head>div:first-child{min-width:0;flex:1 1 170px}
 .app-shell .panel-head .nnb-section-actions,.app-shell .panel-head .header-actions{display:flex;flex-wrap:wrap;gap:8px;width:100%;justify-content:stretch}
 .app-shell .panel-head .nnb-section-actions>button,.app-shell .panel-head .header-actions>button{flex:1 1 auto;min-height:42px}
 .app-shell .table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
 .app-shell .table-wrap table{min-width:640px}
 .app-shell input,.app-shell select,.app-shell textarea{max-width:100%;font-size:16px}
 .app-shell .toolbar{display:flex;flex-wrap:wrap;gap:8px;max-width:100%}
 .app-shell .toolbar input{flex:1 1 100%;min-width:0}
 .app-shell .toolbar select,.app-shell .toolbar button{flex:1 1 auto;min-width:0}
 .app-shell .form-actions{flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce){.app-shell>.sidebar{transition:none}}


/* NNB Gestão 073: tablet e smartphone — cabeçalhos e filtros sem sobreposição.
   Os tablets em paisagem têm viewport maior que 760px: menu lateral precisa recolher. */
@media (max-width:1440px) {
  .app-shell .main, .app-shell .view, .app-shell .panel,
  .app-shell .report-filters, .app-shell .toolbar,
  .app-shell .panel-head, .app-shell .nnb-section-actions { min-width:0; max-width:100%; }
  .app-shell .main { overflow-x:clip; }
  .app-shell .panel-head { display:flex; flex-wrap:wrap; align-items:flex-start; gap:12px; }
  .app-shell .panel-head > div:first-child { min-width:0; flex:1 1 240px; }
  .app-shell .panel-head .nnb-section-actions,
  .app-shell .panel-head .header-actions { flex:1 1 100%; justify-content:flex-start; width:100%; }
  .app-shell .panel-head button { white-space:normal; overflow-wrap:anywhere; }
  .app-shell .toolbar, .app-shell .entradas-toolbar,
  .app-shell .saidas-toolbar, .app-shell .fornecedores-toolbar,
  .app-shell .usuarios-toolbar {
    display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 180px);
    gap:10px; align-items:stretch; width:100%;
  }
  .app-shell .toolbar > input[type="search"],
  .app-shell .toolbar > input:first-child { grid-column:1 / -1; width:100%; }
  .app-shell .toolbar > * { min-width:0; max-width:100%; width:100%; }
  .app-shell .toolbar button, .app-shell .toolbar select { min-height:44px; }
  .app-shell .report-filters {
    display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; align-items:end;
  }
  .app-shell .report-filters > div { min-width:0; }
  .app-shell .report-filters input[type="date"] { min-width:0; width:100%; max-width:100%; }
  .app-shell .report-filter-actions {
    grid-column:1 / -1; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px;
  }
  .app-shell .report-filter-actions button { min-width:0; width:100%; min-height:44px; white-space:normal; }
  .app-shell .table-wrap { width:100%; max-width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .app-shell .table-wrap table { min-width:620px; }
  .app-shell .nnb-section-actions button { min-width:0; flex:1 1 145px; }
}
@media (max-width:640px) {
  .app-shell .toolbar, .app-shell .entradas-toolbar,
  .app-shell .saidas-toolbar, .app-shell .fornecedores-toolbar,
  .app-shell .usuarios-toolbar, .app-shell .report-filters,
  .app-shell .report-filter-actions { grid-template-columns:minmax(0,1fr); }
  .app-shell .report-filter-actions { grid-column:1; }
  .app-shell .panel-head .nnb-section-actions > button,
  .app-shell .panel-head .header-actions > button { flex:1 1 100%; }
  .app-shell .main { padding:12px 10px 22px; }
  .app-shell .panel { padding:14px 12px; }
}

/* NNB 074 — abas responsivas sem transbordamento.
   Prioriza o ESPAÇO disponível e mantém a tabela rolável dentro do painel. */
.app-shell, .app-shell .main, .app-shell .view, .app-shell .panel,
.app-shell .panel-head, .app-shell .toolbar, .app-shell .report-filters {
  min-width:0;
}
.app-shell .main { width:100%; }
.app-shell .view { max-width:100%; }
.app-shell .panel { max-width:100%; }
.app-shell .panel-head > :first-child { min-width:0; }
.app-shell .table-wrap { max-width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.app-shell .toolbar > *, .app-shell .report-filters > *,
.app-shell .report-filter-actions > * { min-width:0; max-width:100%; }
.app-shell input[type=search], .app-shell input[type=date], .app-shell select { min-width:0; max-width:100%; }
.app-shell .panel-head button, .app-shell .toolbar button, .app-shell .report-filter-actions button {
  min-width:0; white-space:normal; overflow-wrap:anywhere;
}
@media (max-width:1440px) {
  .app-shell { grid-template-columns:minmax(0,1fr); }
  .app-shell .main { min-width:0; width:100%; padding:18px clamp(10px, 2.5vw, 28px); overflow-x:clip; }
  .app-shell .panel-head { display:flex; flex-wrap:wrap; align-items:flex-start; gap:12px; }
  .app-shell .panel-head > :first-child { flex:1 1 240px; }
  .app-shell .panel-head .header-actions, .app-shell .panel-head .nnb-section-actions {
    flex:1 1 100%; display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-start;
  }
  .app-shell .panel-head .header-actions > button, .app-shell .panel-head .nnb-section-actions > button {
    flex:0 1 auto; min-height:44px;
  }
  /* Search first full line; actions cannot escape the panel. */
  .app-shell .toolbar { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,180px); gap:10px; align-items:stretch; width:100%; }
  .app-shell .toolbar > input:first-child, .app-shell .toolbar > input[type=search] { grid-column:1 / -1; width:100%; }
  .app-shell .toolbar > select, .app-shell .toolbar > button { width:100%; min-height:44px; }
  .app-shell .report-filters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; align-items:end; }
  .app-shell .report-filters > div { min-width:0; }
  .app-shell .report-filters input[type=date] { width:100%; }
  .app-shell .report-filter-actions { display:grid; grid-column:1 / -1; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .app-shell .report-filter-actions > button { width:100%; min-height:44px; }
  .app-shell .table-wrap { overscroll-behavior-x:contain; }
}
@media (max-width:640px) {
  .app-shell .topbar { flex-wrap:wrap; }
  .app-shell .user-box { max-width:100%; text-align:left; }
  .app-shell .panel-head > :first-child { flex:1 1 100%; }
  .app-shell .panel-head .header-actions, .app-shell .panel-head .nnb-section-actions { width:100%; }
  .app-shell .panel-head .header-actions > button, .app-shell .panel-head .nnb-section-actions > button { flex:1 1 100%; width:100%; }
  .app-shell .toolbar { grid-template-columns:minmax(0,1fr); }
  .app-shell .toolbar > input:first-child, .app-shell .toolbar > input[type=search] { grid-column:1; }
  .app-shell .report-filters { grid-template-columns:minmax(0,1fr); }
  .app-shell .report-filter-actions { grid-column:1; grid-template-columns:minmax(0,1fr); }
  .app-shell .report-cards { grid-template-columns:minmax(0,1fr); }
  .app-shell .report-tabs { flex-wrap:nowrap; overflow-x:auto; padding-bottom:6px; }
  .app-shell .report-tabs > button { flex-shrink:0; }
  .app-shell .table-wrap table { min-width:620px; }
}


/* NNB Gestão 075 — SOMENTE Relatórios: campos de data compactos e ações sempre visíveis.
   Importante: iOS Safari atribui largura mínima intrínseca ao controle nativo date. */
.app-shell #relatorios .report-filters {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 220px) minmax(0, 1fr);
  gap: 12px;
  align-items: end;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.app-shell #relatorios .report-filters > div {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.app-shell #relatorios .report-filters label {
  display: block;
  margin-bottom: 6px;
}
.app-shell #relatorios .report-filters input[type="date"] {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden;
  font-size: 16px;
  -webkit-min-logical-width: 0;
}
.app-shell #relatorios .report-filter-actions {
  display: flex;
  gap: 10px;
  grid-column: auto;
  align-items: stretch;
  justify-content: flex-start;
  flex-wrap: wrap;
  min-width: 0;
}
.app-shell #relatorios .report-filter-actions button {
  box-sizing: border-box;
  width: auto;
  min-width: 0;
  min-height: 44px;
  padding: 9px 14px;
  white-space: nowrap;
}
/* Tablet/iPad: datas na primeira linha; ações claramente visíveis abaixo. */
@media (max-width: 1440px) {
  .app-shell #relatorios .report-filters {
    grid-template-columns: repeat(2, minmax(0, 220px));
    justify-content: start;
    gap: 12px;
  }
  .app-shell #relatorios .report-filter-actions {
    grid-column: 1 / -1;
    display: flex;
    width: 100%;
    flex-wrap: wrap;
  }
  .app-shell #relatorios .report-filter-actions button {
    flex: 0 1 auto;
  }
}
/* Celulares e painéis estreitos: duas datas fluidas e botões abaixo. */
@media (max-width: 600px) {
  .app-shell #relatorios .report-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .app-shell #relatorios .report-filter-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
  }
  .app-shell #relatorios .report-filter-actions button {
    width: 100%;
    white-space: normal;
  }
}
@media (max-width: 360px) {
  .app-shell #relatorios .report-filters { grid-template-columns: minmax(0, 1fr); }
  .app-shell #relatorios .report-filter-actions { grid-column: 1; }
}


/* NNB Gestão v076 — filtros de Relatórios adaptados ao WebKit/iPadOS.
   Data e botões têm linhas independentes; não dependem da largura intrínseca do input date. */
.app-shell #relatorios .report-filters.nnb-report-filter-076 {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 14px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}
.app-shell #relatorios .nnb-report-date-fields {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
.app-shell #relatorios .nnb-report-date-field {
  display: flex !important;
  flex-direction: column !important;
  flex: 0 1 210px !important;
  width: min(210px,100%) !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.app-shell #relatorios .nnb-report-date-field label {
  display: block;
  margin: 0 0 6px;
}
.app-shell #relatorios .nnb-report-date-field input[type="date"] {
  display: block !important;
  box-sizing: border-box !important;
  inline-size: 100% !important;
  width: 100% !important;
  min-inline-size: 0 !important;
  min-width: 0 !important;
  max-inline-size: 100% !important;
  max-width: 100% !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 9px 35px 9px 10px !important;
  font-size: 16px !important;
  -webkit-appearance: none;
  appearance: none;
}
.app-shell #relatorios .report-filter-actions.nnb-report-actions-076 {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}
.app-shell #relatorios .nnb-report-actions-076 button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 44px !important;
  padding: 10px 18px !important;
  margin: 0 !important;
  white-space: normal !important;
  box-sizing: border-box !important;
}
@media (max-width: 480px) {
  .app-shell #relatorios .nnb-report-date-fields { flex-direction: column !important; }
  .app-shell #relatorios .nnb-report-date-field { flex: 0 0 auto !important; width:100% !important; }
  .app-shell #relatorios .nnb-report-actions-076 button { flex:1 1 110px !important; }
}

/* NNB Gestão 077: cartões clicáveis do Dashboard, sem alterar demais abas. */
#dashboard .dashboard-shortcut {
  width: 100%; min-width: 0; display: block; text-align: left;
  color: inherit; font: inherit; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 16px; padding: 18px;
  transition: border-color .15s ease, transform .15s ease, background-color .15s ease;
}
#dashboard .dashboard-shortcut > span {
  display: flex; gap: 6px; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--muted);
}
#dashboard .dashboard-shortcut .dashboard-shortcut-arrow {font-size: 17px; color: #c4b5fd; line-height: 1;}
#dashboard .dashboard-shortcut strong {display:block; margin-top: 10px; font-size: 28px;}
#dashboard .dashboard-shortcut:hover {border-color:#9b82e8; transform:translateY(-2px);}
#dashboard .dashboard-shortcut:focus-visible {outline: 3px solid #b49bff; outline-offset: 2px;}
#dashboard .dashboard-shortcut:active {transform:translateY(0);}
#dashboard .dashboard-shortcut.permission-hidden {display:none !important;}
@media (prefers-reduced-motion: reduce) {#dashboard .dashboard-shortcut {transition:none;}}

/* Frontend 078: atendimento de suporte responsivo */
.nnb-support-section { display:block; }
.nnb-support-form { display:grid; gap:9px; margin-top:15px; min-width:0; }
.nnb-support-form label { font-size:14px; color:var(--text); font-weight:600; }
.nnb-support-form input:not([type="checkbox"]), .nnb-support-form textarea { box-sizing:border-box; display:block; width:100%; max-width:100%; min-width:0; background:#101019; color:var(--text); border:1px solid var(--border); border-radius:9px; padding:12px; font:inherit; }
.nnb-support-form textarea { resize:vertical; min-height:105px; }
.nnb-support-check { display:flex; align-items:flex-start; gap:9px; line-height:1.4; font-weight:400!important; }
.nnb-support-check input { margin:4px 0 0; flex:none; }
.nnb-support-actions { display:flex; align-items:stretch; flex-wrap:wrap; gap:10px; }
.nnb-support-actions button { min-height:42px; white-space:normal; }
.nnb-support-hint { font-size:12px; line-height:1.5; margin:0!important; }
@media(max-width:580px) { .help-modal { padding:16px; } .nnb-support-actions { display:grid; grid-template-columns:minmax(0,1fr); } .nnb-support-actions button { width:100%; } }

/* 079: Central de Suporte - impede que a regra antiga flex horizontal
   reduza o formulário a uma coluna estreita em desktops e iPads. */
.help-support-box.nnb-support-section {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.help-support-box.nnb-support-section > div,
.help-support-box.nnb-support-section > form {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex: 0 1 auto;
  box-sizing: border-box;
}
.help-support-box.nnb-support-section .nnb-support-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
}
.help-support-box.nnb-support-section .nnb-support-check {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-wrap: nowrap;
  align-items: flex-start;
  overflow-wrap: anywhere;
  word-break: normal;
}
.help-support-box.nnb-support-section .nnb-support-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
.help-support-box.nnb-support-section .nnb-support-check > span {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.5;
}
.help-support-box.nnb-support-section .nnb-support-actions {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}
.help-support-box.nnb-support-section .nnb-support-hint {
  width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 580px) {
  .help-support-box.nnb-support-section .nnb-support-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
}
