@import url("https://fonts.googleapis.com/css2?family=Google+Sans+Flex:opsz,wght@6..144,400..800&display=swap");

:root {
  --bs-blue: #0d6efd;
  --bs-indigo: #6610f2;
  --bs-purple: #6f42c1;
  --bs-pink: #d63384;
  --bs-red: #dc3545;
  --bs-orange: #fd7e14;
  --bs-yellow: #ffc107;
  --bs-green: #198754;
  --bs-teal: #20c997;
  --bs-cyan: #0dcaf0;
  --bs-black: #000;
  --bs-white: #fff;
  --bs-gray: #6c757d;
  --bs-gray-dark: #343a40;
  --bs-gray-100: #f8f9fa;
  --bs-gray-200: #e9ecef;
  --bs-gray-300: #dee2e6;
  --bs-gray-400: #ced4da;
  --bs-gray-500: #adb5bd;
  --bs-gray-600: #6c757d;
  --bs-gray-700: #495057;
  --bs-gray-800: #343a40;
  --bs-gray-900: #212529;
  --bs-primary: #0d6efd;
  --bs-secondary: #6c757d;
  --bs-success: #198754;
  --bs-info: #0dcaf0;
  --bs-warning: #ffc107;
  --bs-danger: #dc3545;
  --bs-light: #f8f9fa;
  --bs-dark: #212529;
  --bs-primary-rgb: 13, 110, 253;
  --bs-secondary-rgb: 108, 117, 125;
  --bs-success-rgb: 25, 135, 84;
  --bs-info-rgb: 13, 202, 240;
  --bs-warning-rgb: 255, 193, 7;
  --bs-danger-rgb: 220, 53, 69;
  --bs-light-rgb: 248, 249, 250;
  --bs-dark-rgb: 33, 37, 41;
  --bs-white-rgb: 255, 255, 255;
  --bs-black-rgb: 0, 0, 0;
  --bs-body-color-rgb: 33, 37, 41;
  --bs-body-bg-rgb: 255, 255, 255;
  --bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
  --bs-body-font-family: var(--bs-font-sans-serif);
  --bs-body-font-size: 1rem;
  --bs-body-font-weight: 400;
  --bs-body-line-height: 1.5;
  --bs-body-color: #212529;
  --bs-body-bg: #fff;
  --bs-border-width: 1px;
  --bs-border-style: solid;
  --bs-border-color: #dee2e6;
  --bs-border-color-translucent: rgba(0, 0, 0, 0.175);
  --bs-border-radius: 0.375rem;
  --bs-border-radius-sm: 0.25rem;
  --bs-border-radius-lg: 0.5rem;
  --bs-border-radius-xl: 1rem;
  --bs-border-radius-2xl: 2rem;
  --bs-border-radius-pill: 50rem;
  --bs-link-color: #0d6efd;
  --bs-link-hover-color: #0a58ca;
  --bs-code-color: #d63384;
  --bs-highlight-bg: #fff3cd;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
button,
input,
select,
textarea {
  font-family: "Google Sans Flex", sans-serif;
}

.border-alfa{--bs-border-opacity:1;border-color:var(--alfa-red,var(--bs-border-opacity))!important}
.bg-alfa{--bs-bg-opacity:1;background-color:var(--alfa-red)!important}
.bg-alfa-secundaria{--bs-bg-opacity:1;background-color:var(--alfa-red-escuro)!important}
.text-danger-alfa{--bs-text-opacity:1;color:var(--alfa-red)!important}
.text-alfa {
  --bs-text-opacity: 1;
  color: var(--alfa-red) !important;
}

.text-alfa-secundaria {
  --bs-text-opacity: 1;
  color: var(--alfa-red-escuro) !important;
}

.btn {
  border-radius: 999px;
  font-weight: 600;
  padding: 0.5rem 1rem;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    color 0.2s ease, box-shadow 0.2s ease;
}

.btn-alfa {
  background: var(--alfa-red);
  border-color: var(--alfa-red);
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  padding: 0.5rem 1rem;
}
.btn-alfa:hover {
  background: var(--alfa-red-escuro);
  border-color: var(--alfa-red-escuro);
  color: #fff;
}
.btn-secundario {
  background: transparent;
  border: 2px solid var(--alfa-red);
  border-radius: 999px;
  color: var(--alfa-red);
  font-weight: 600;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease-in-out;
}
.btn-secundario:hover {
  background: var(--alfa-red);
  color: #fff;
}

.logo-branca {
  filter: brightness(0) invert(1);
}

/* =============================== */
/* 🔍 CAMPO DE BUSCA               */
/* =============================== */
.datatable-top .datatable-search .datatable-input {
  padding: 8px 12px;
  border: 1px solid var(--alfa-red);
  border-radius: 6px;
  font-size: 14px;
  width: 90%; /* ajuste como quiser */
  transition: all 0.25s;
}

.datatable-top .datatable-search .datatable-input:focus {
  border-color: var(--alfa-red);
  box-shadow: 0 0 6px var(--alfa-red-escuro);
}

/* Ícone de lupa opcional */
.datatable-search {
  position: relative;
}

.datatable-search::before {
  content: "🔍";
  position: absolute;
  top: 50%;
  left: 8px;
  transform: translateY(-50%);
  opacity: .6;
}

.datatable-search .datatable-input {
  padding-left: 28px !important;
}
.datatable-search {
  margin-left: auto;
  margin-right: 0;
}

/* =============================== */
/* 📄 SELECT (registros por página) */
/* =============================== */

.datatable-dropdown label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.datatable-dropdown .datatable-selector {
  padding: 6px 12px;
  border: 1px solid var(--alfa-red);
  border-radius: 6px;
  background-color: var(--alfa-cinza-mais-claro);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s;
  appearance: none;           /* Remove estilo nativo */
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23aa0000' height='18' viewBox='0 0 24 24' width='18' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;        /* espaço para a setinha */
}

.datatable-dropdown .datatable-selector:focus {
  border-color: var(--alfa-red);
  box-shadow: 0 0 6px var(--alfa-red-escuro);
}

/* =============================== */
/* 🎨 ESTILO DOS OPTIONS           */
/* =============================== */

.datatable-dropdown .datatable-selector option {
  padding: 10px;
  font-size: 14px;
  color: #333;
  border: 1px solid var(--alfa-red);
  border-radius: 6px;
  background-color: var(--alfa-cinza-mais-claro);
}

/* Hover dentro do select (Chrome/Safari não aplicam, mas Firefox sim) */
.datatable-dropdown .datatable-selector option:hover {
  background-color: var(--alfa-red);
  color: var(--alfa-cinza-mais-claro);
  
}


/* =============================== */
/* 📦 ORGANIZAÇÃO DO TOPO          */
/* =============================== */
.datatable-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
}

/* =============================== */
/* 🔘 PAGINAÇÃO                    */
/* =============================== */
.datatable-pagination .datatable-pagination-list-item-link {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--alfa-red);
  text-decoration: none;
  transition: 0.2s;
  cursor: pointer;
}

.datatable-pagination .datatable-pagination-list-item-link:hover {
  background: var(--alfa-red);
  color: var(--alfa-cinza-mais-claro);
  border-color: var(--alfa-red);
}

.datatable-pagination .datatable-active .datatable-pagination-list-item-link {
  background: var(--alfa-red);
  color: var(--alfa-cinza-mais-claro);
  border-color: var(--alfa-red);
}

/* Desabilitados */
.datatable-pagination .datatable-disabled .datatable-pagination-list-item-link {
  opacity: 0.5;
  cursor: default;
}

/* =============================== */
/* ℹ️  RODAPÉ (info)               */
/* =============================== */
.datatable-bottom .datatable-info {
  font-size: 14px;
  opacity: .8;
}



html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
.full-height-container {
  height: 100vh;
}
input{
  accent-color: var(--alfa-red)!important;
}
.opcoes:hover {
  transform: translateY(-3px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
  transform: none;
}
::-webkit-scrollbar-track {
  background-color: var(--bs-white);
}
::-webkit-scrollbar {
  width: 0.5rem;
  background: var(--bs-white);
}
::-webkit-scrollbar-thumb {
  background: var(--alfa-red)!important;
}
::selection {
  background: var(--alfa-red)!important;
  color: var(--bs-white);
}
::-moz-selection {
  background: var(--alfa-red)!important;
  color: var(--bs-white);
}
.description{
  opacity: 0;
  transition-duration: 0.5s;
}
.description:hover{
  opacity: 0.7;
  background-color: #fff;
  transition-duration: 0.5s;
}
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: green;
  color: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  z-index: 9999;
}
.whatsapp-button a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
}
.whatsapp-button i {
  margin-right: 5px;
}

.bg-card-nti{
  background-color: var(--bs-gray-800);
}



.placa-mercosul {
  --plate-ink: #be1930;
  width: clamp(148px, 16vw, 205px);
  aspect-ratio: 3.12 / 1;
  display: inline-grid;
  grid-template-rows: 24% 76%;
  overflow: hidden;
  border: 2px solid #18232d;
  border-radius: 7px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f0f2f5 100%);
  position: relative;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.8),
    0 3px 7px rgba(16, 24, 40, 0.2);
  font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  text-align: center;
  vertical-align: middle;
}

.placa-mercosul .faixa-azul {
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.15rem;
  padding: 0 0.28rem;
  color: #fff;
  background:
    linear-gradient(180deg, #065fc4 0%, #003d92 100%);
  font-size: clamp(0.38rem, 0.52vw, 0.5rem);
  font-weight: 800;
  letter-spacing: 0.055em;
  line-height: 1;
}

.placa-mercosul .faixa-azul::before {
  content: "MERCOSUL";
  justify-self: start;
  font-size: clamp(0.25rem, 0.36vw, 0.32rem);
  font-weight: 650;
  letter-spacing: 0.02em;
  opacity: 0.92;
}

.placa-mercosul .faixa-azul .pais {
  justify-self: center;
  color: #fff !important;
}

.placa-mercosul .faixa-azul .bandeira {
  width: 17px;
  height: 11px;
  justify-self: end;
  background: url("../img/brasil-flag.svg") no-repeat center;
  background-size: contain;
  border-radius: 1px;
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.72);
}

.placa-mercosul .alfanumerico {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0;
  padding: 0 0.35rem 0 1.15rem;
  color: var(--plate-ink);
  font-size: clamp(1.08rem, 2vw, 1.72rem);
  font-stretch: condensed;
  font-weight: 900;
  letter-spacing: 0.115em;
  line-height: 1;
  text-shadow: 0 0.3px currentColor;
  text-transform: uppercase;
  white-space: nowrap;
}

.placa-mercosul .alfanumerico::before {
  content: "";
  width: 10px;
  height: 10px;
  position: absolute;
  left: 0.36rem;
  background:
    repeating-conic-gradient(#20252b 0 25%, #fff 0 50%) 50% / 3px 3px;
  border: 1px solid #20252b;
}

.placa-mercosul.placa-particular {
  --plate-ink: #111820;
}

.placa-motorista {
  width: min(210px, 100%);
  display: inline-grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background: #fff;
  border: 1px solid #b8c0cc;
  border-radius: 7px;
  box-shadow: 0 3px 7px rgba(16, 24, 40, 0.12);
  text-align: center;
  vertical-align: middle;
}

.placa-motorista .faixa-preta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0.2rem 0.5rem;
  color: #fff;
  background: #20252b;
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.placa-motorista .alfanumerico {
  min-width: 0;
  overflow: hidden;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.6rem;
  color: #344054;
  font-size: 0.74rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-navigation-loader {
  position: fixed;
  z-index: 3000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(16, 24, 40, 0.2);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

body.app-navigation-loading .app-navigation-loader {
  opacity: 1;
  pointer-events: all;
}

.app-navigation-loader-brand {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 38px rgba(16, 24, 40, 0.22);
}

.app-navigation-loader-ring {
  position: absolute;
  inset: 9px;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border: 1.5px solid color-mix(in srgb, var(--alfa-red) 20%, transparent);
  border-top-color: var(--alfa-red);
  border-right-color: var(--alfa-red);
  border-radius: 50%;
  animation: app-navigation-spin 1s linear infinite;
}

.app-navigation-loader-logo {
  position: relative;
  z-index: 1;
  width: 52px;
  max-height: 32px;
  object-fit: contain;
  animation: app-navigation-logo-fade 1.3s ease-in-out infinite alternate;
}

.app-navigation-loader-monogram {
  color: var(--alfa-red);
  font-size: 1.6rem;
  font-weight: 900;
}

@keyframes app-navigation-spin {
  to { transform: rotate(360deg); }
}

@keyframes app-navigation-logo-fade {
  from { opacity: 0.52; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .app-navigation-loader,
  .app-navigation-loader-ring,
  .app-navigation-loader-logo {
    transition: none;
    animation: none;
  }
}

/* =============================== */
/* APP SHELL                       */
/* =============================== */

:root {
  --app-sidebar-width: 280px;
  --app-sidebar-collapsed-width: 84px;
  --app-topbar-height: 76px;
  --app-surface: #ffffff;
  --app-surface-muted: #f5f6f8;
  --app-border: #e5e7eb;
  --app-text: #1f2937;
  --app-text-muted: #667085;
  --app-sidebar-bg: #17191f;
  --app-sidebar-bg-end: #101116;
  --app-sidebar-text: #eef0f4;
  --app-sidebar-muted: #aeb4c0;
  --app-sidebar-active: #c91f37;
  --app-shadow: 0 14px 40px rgba(16, 24, 40, 0.08);
}

body {
  color: var(--app-text);
  background: var(--app-surface-muted);
  font-size: 0.9375rem;
}

a,
button,
input,
select,
textarea,
summary {
  outline-color: var(--alfa-red);
  outline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--alfa-red) 35%, transparent);
  box-shadow: none;
}

.app-body {
  min-height: 100vh;
  overflow-x: hidden;
}

.app-shell {
  min-height: 100vh;
}

.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1040;
  width: var(--app-sidebar-width);
  display: flex;
  flex-direction: column;
  color: var(--app-sidebar-text);
  background:
    radial-gradient(circle at 15% 0%, color-mix(in srgb, var(--app-sidebar-active) 30%, transparent), transparent 38%),
    linear-gradient(180deg, var(--app-sidebar-bg) 0%, var(--app-sidebar-bg-end) 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: width 0.24s ease, transform 0.24s ease;
}

.app-sidebar-brand {
  min-height: var(--app-topbar-height);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1rem 0 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex: 0 0 auto;
}

.app-brand-link {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
}

.app-brand-link:hover {
  color: #fff;
}

.app-brand-logo {
  width: 58px;
  height: 34px;
  object-fit: contain;
  flex: 0 0 auto;
}

.app-brand-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  white-space: nowrap;
}

.app-brand-copy strong {
  font-size: 0.96rem;
}

.app-brand-copy small {
  margin-top: 0.2rem;
  color: var(--app-sidebar-muted);
  font-size: 0.72rem;
}

.app-sidebar-collapse,
.app-icon-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.app-sidebar-collapse {
  flex: 0 0 auto;
  color: var(--app-sidebar-text);
  background: rgba(255, 255, 255, 0.08);
}

.app-sidebar-collapse:hover {
  background: rgba(255, 255, 255, 0.14);
}

.app-sidebar-scroll {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.24) transparent;
}

.app-sidebar-scroll::-webkit-scrollbar {
  width: 6px;
}

.app-sidebar-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.app-sidebar-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.24) !important;
  border-radius: 99px;
}

.app-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 0.75rem;
}

.app-nav-group {
  margin: 0.15rem 0;
}

.app-nav-group + .app-nav-group {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.app-nav-group summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  color: var(--app-sidebar-muted);
  cursor: pointer;
  list-style: none;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  user-select: none;
}

.app-nav-group summary::-webkit-details-marker {
  display: none;
}

.app-nav-group summary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.app-nav-group[open] > summary,
.app-nav-group.has-active > summary {
  color: #fff;
}

.app-nav-group.has-active > summary {
  background: rgba(255, 255, 255, 0.055);
}

.app-nav-group summary > span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.app-nav-group summary > span > i {
  width: 20px;
  font-size: 1rem;
  text-align: center;
}

.app-nav-chevron {
  transition: transform 0.2s ease;
}

.app-nav-group[open] .app-nav-chevron {
  transform: rotate(180deg);
}

.app-nav-group-links {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-left: 1.15rem;
  padding: 0.25rem 0 0.45rem 0.55rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.app-nav-link {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.65rem 0.8rem;
  border: 0;
  border-radius: 11px;
  color: var(--app-sidebar-text);
  background: transparent;
  text-align: left;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 550;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.app-nav-link > i {
  width: 22px;
  flex: 0 0 22px;
  color: var(--app-sidebar-muted);
  font-size: 1.08rem;
  text-align: center;
  transition: color 0.18s ease;
}

.app-nav-link:hover,
.app-nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.app-nav-link.active {
  background: color-mix(in srgb, var(--app-sidebar-active) 78%, #fff 2%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.app-nav-link:hover > i,
.app-nav-link.active > i {
  color: #fff;
}

.app-nav-button {
  cursor: pointer;
}

.app-nav-link-cta {
  min-height: 40px;
  color: #fff;
  background: color-mix(in srgb, var(--app-sidebar-active) 28%, transparent);
  border: 1px solid color-mix(in srgb, var(--app-sidebar-active) 50%, transparent);
  font-size: 0.8rem;
}

.app-nav-link-cta > i {
  color: #ffb4bf;
}

.app-nav-link-cta:hover,
.app-nav-link-cta.active {
  background: color-mix(in srgb, var(--app-sidebar-active) 72%, #111 8%);
  border-color: color-mix(in srgb, var(--app-sidebar-active) 75%, #fff 10%);
}

.app-nav-link-danger:hover {
  background: rgba(220, 53, 69, 0.16);
}

.app-nav-link-danger:hover > i {
  color: #ff8994;
}

.app-nav-link-feature {
  min-height: 58px;
  position: relative;
  margin: 0.2rem 0 0.45rem;
  border: 1px solid rgba(255, 204, 41, 0.3);
  background:
    linear-gradient(110deg, rgba(255, 204, 41, 0.17), rgba(255, 255, 255, 0.07));
}

.app-nav-link-feature > i {
  color: var(--alfa-yellow);
  font-size: 1.25rem;
}

.app-nav-link-feature:hover,
.app-nav-link-feature.active {
  border-color: rgba(255, 204, 41, 0.55);
  background:
    linear-gradient(110deg, rgba(255, 204, 41, 0.25), color-mix(in srgb, var(--app-sidebar-active) 55%, transparent));
}

.app-nav-feature-copy {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  line-height: 1.1;
}

.app-nav-feature-copy strong {
  color: #fff;
  font-size: 0.82rem;
}

.app-nav-feature-copy small {
  margin-top: 0.18rem;
  color: var(--app-sidebar-muted);
  font-size: 0.67rem;
}

.app-nav-feature-indicator {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: var(--alfa-yellow);
  box-shadow: 0 0 0 4px rgba(255, 204, 41, 0.1);
}

.app-sidebar-footer {
  flex: 0 0 auto;
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.app-sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 1035;
  display: none;
  border: 0;
  background: rgba(16, 24, 40, 0.58);
  backdrop-filter: blur(2px);
}

.app-main {
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin-left: var(--app-sidebar-width);
  transition: margin-left 0.24s ease;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 1025;
  min-height: var(--app-topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.93);
  border-bottom: 1px solid var(--app-border);
  backdrop-filter: blur(14px);
}

.app-topbar-start,
.app-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.app-topbar-actions {
  justify-content: flex-end;
}

.app-icon-button {
  color: var(--app-text);
  background: var(--app-surface-muted);
  font-size: 1.35rem;
}

.app-page-identity {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.app-page-identity strong {
  font-size: 1rem;
}

.app-page-eyebrow {
  color: var(--app-text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.app-current-company {
  align-items: center;
  gap: 0.65rem;
  padding-right: 1rem;
  border-right: 1px solid var(--app-border);
}

.app-current-company > i {
  color: var(--alfa-red);
  font-size: 1.25rem;
}

.app-current-company > span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.app-current-company small {
  color: var(--app-text-muted);
  font-size: 0.69rem;
}

.app-current-company strong {
  margin-top: 0.15rem;
  font-size: 0.78rem;
}

.app-root-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #fff;
  background: var(--alfa-red);
  border-color: var(--alfa-red);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--alfa-red) 22%, transparent);
}

.app-root-button:hover {
  color: #fff;
  background: var(--alfa-red-escuro);
  border-color: var(--alfa-red-escuro);
}

.app-refresh-button {
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--app-border);
  border-radius: 13px;
  color: var(--app-text);
  background: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  overflow: hidden;
  white-space: nowrap;
  transition:
    width 0.22s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.app-refresh-button:hover,
.app-refresh-button:focus-visible {
  width: 108px;
  color: var(--alfa-red);
  border-color: color-mix(in srgb, var(--alfa-red) 35%, var(--app-border));
  background: color-mix(in srgb, var(--alfa-red) 5%, #fff);
  transform: translateY(-1px);
}

.app-refresh-label {
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-5px);
  transition:
    max-width 0.22s ease,
    opacity 0.16s ease,
    transform 0.22s ease;
}

.app-refresh-button:hover .app-refresh-label,
.app-refresh-button:focus-visible .app-refresh-label {
  max-width: 62px;
  opacity: 1;
  transform: translateX(0);
}

.app-refresh-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--alfa-red) 25%, transparent);
  outline-offset: 2px;
}

.app-refresh-button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.app-refresh-button.is-refreshing i {
  animation: app-refresh-spin 0.75s linear infinite;
}

@keyframes app-refresh-spin {
  to {
    transform: rotate(360deg);
  }
}

.app-user-menu {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.25rem 0.65rem 0.25rem 0.3rem;
  border: 1px solid var(--app-border);
  border-radius: 14px;
  color: var(--app-text);
  background: #fff;
}

.app-user-menu::after {
  color: var(--app-text-muted);
}

.app-user-avatar {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, var(--alfa-red), var(--alfa-red-escuro));
  font-weight: 800;
}

.app-user-copy {
  min-width: 110px;
  max-width: 180px;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  text-align: left;
}

.app-user-copy strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 0.79rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-user-copy small {
  margin-top: 0.15rem;
  color: var(--app-text-muted);
  font-size: 0.68rem;
}

.app-account-menu {
  min-width: 230px;
  padding: 0.55rem;
  border-color: var(--app-border);
  border-radius: 14px;
  box-shadow: var(--app-shadow);
}

.app-account-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 9px;
}

.app-page {
  width: 100%;
  max-width: 1680px;
  flex: 1 0 auto;
  align-self: center;
  padding: 1.5rem;
}

.app-page > main {
  padding-top: 0 !important;
}

.app-page > main > section:first-child {
  margin-top: 0 !important;
}

.app-page > main > section:first-child > .container:first-child,
.app-page > main > section:first-child > .container-fluid:first-child {
  margin-top: 0 !important;
}

.app-page .breadcrumb {
  margin-bottom: 1rem;
  font-size: 0.78rem;
}

.app-page .card {
  border-color: var(--app-border);
  border-radius: 16px;
}

.app-page .shadow {
  box-shadow: var(--app-shadow) !important;
}

.app-root-switcher {
  width: min(430px, 100vw) !important;
  border-left: 0;
}

.app-root-switcher .offcanvas-header {
  padding: 1.35rem 1.4rem;
  border-bottom: 1px solid var(--app-border);
}

.app-root-switcher .offcanvas-body {
  padding: 1.4rem;
}

.app-current-root-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--alfa-red) 25%, var(--app-border));
  border-radius: 14px;
  background: color-mix(in srgb, var(--alfa-red) 6%, #fff);
}

.app-current-root-card > i {
  color: var(--alfa-red);
  font-size: 1.6rem;
}

.app-current-root-card > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.app-current-root-card small {
  color: var(--app-text-muted);
  font-size: 0.72rem;
}

.app-inline-action {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem;
  border-radius: 12px;
  color: var(--app-text);
  background: var(--app-surface-muted);
  text-decoration: none;
}

.app-inline-action > i:first-child {
  color: var(--alfa-red);
  font-size: 1.3rem;
}

.app-inline-action > i:last-child {
  margin-left: auto;
}

.app-inline-action span {
  display: flex;
  flex-direction: column;
}

.app-inline-action small {
  color: var(--app-text-muted);
}

.app-footer {
  padding: 1rem 1.5rem;
  color: var(--app-text-muted);
  background: #fff;
  border-top: 1px solid var(--app-border);
  font-size: 0.75rem;
}

.app-public-body {
  background: var(--app-surface-muted);
}

.app-public-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-public-topbar {
  padding-inline: clamp(1rem, 3vw, 2rem);
}

.app-public-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #101828;
  text-decoration: none;
}

.app-public-brand:hover {
  color: #101828;
}

.app-public-brand .app-brand-copy small {
  color: var(--app-text-muted);
}

.app-public-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.app-public-main {
  min-width: 0;
  flex: 1 0 auto;
  display: flex;
}

.app-public-page {
  width: min(100%, 1180px);
  display: grid;
  align-content: start;
  gap: 1rem;
}

.app-public-page > .app-content-page,
.app-public-notice-page {
  width: 100%;
  display: grid;
  gap: 1rem;
}

.app-public-footer {
  flex: 0 0 auto;
}

.app-public-footer-main {
  width: min(100%, 1180px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-inline: auto;
}

.app-public-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
}

.app-public-footer a {
  color: var(--app-text-muted);
  text-decoration: none;
}

.app-public-footer a:hover {
  color: var(--alfa-red);
}

.app-public-notice-detail {
  margin-top: 1rem;
  padding: 0.8rem 0.9rem;
  color: #475467;
  background: #fffaeb;
  border: 1px solid #fedf89;
  border-radius: 12px;
}

.app-public-notice-detail p {
  margin: 0;
  overflow-wrap: anywhere;
}

.app-public-notice-detail p + p {
  margin-top: 0.4rem;
}

.sidebar-collapsed .app-sidebar {
  width: var(--app-sidebar-collapsed-width);
}

.sidebar-collapsed .app-main {
  margin-left: var(--app-sidebar-collapsed-width);
}

.sidebar-collapsed .app-brand-copy,
.sidebar-collapsed .app-nav-link span,
.sidebar-collapsed .app-nav-group summary > span,
.sidebar-collapsed .app-nav-chevron {
  display: none;
}

.sidebar-collapsed .app-sidebar-brand {
  justify-content: center;
  padding: 0;
}

.sidebar-collapsed .app-brand-link {
  display: none;
}

.sidebar-collapsed .app-sidebar-collapse {
  transform: rotate(180deg);
}

.sidebar-collapsed .app-nav,
.sidebar-collapsed .app-sidebar-footer {
  padding-inline: 0.65rem;
}

.sidebar-collapsed .app-nav-group summary {
  display: none;
}

.sidebar-collapsed .app-nav-group-links {
  display: flex !important;
  margin-left: 0;
  padding: 0;
  border-left: 0;
}

.sidebar-collapsed .app-nav-link {
  justify-content: center;
  padding-inline: 0.6rem;
}

.sidebar-collapsed .app-nav-link > i {
  font-size: 1.2rem;
}

@media (max-width: 991.98px) {
  .app-sidebar {
    width: min(86vw, 310px);
    transform: translateX(-102%);
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.24);
  }

  .sidebar-open {
    overflow: hidden;
  }

  .sidebar-open .app-sidebar {
    transform: translateX(0);
  }

  .sidebar-open .app-sidebar-overlay {
    display: block;
  }

  .app-main,
  .sidebar-collapsed .app-main {
    margin-left: 0;
  }

  .app-topbar {
    padding-inline: 1rem;
  }

  .app-page {
    padding: 1rem;
  }
}

@media (max-width: 575.98px) {
  :root {
    --app-topbar-height: 66px;
  }

  .app-page-identity .app-page-eyebrow {
    display: none;
  }

  .app-topbar {
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
  }

  .app-topbar-start,
  .app-topbar-actions {
    gap: 0.4rem;
  }

  .app-refresh-button {
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0.45rem;
  }

  .app-refresh-button:hover,
  .app-refresh-button:focus-visible {
    width: 40px;
  }

  .app-refresh-label {
    display: none;
  }

  .app-public-topbar {
    align-items: stretch;
    flex-direction: column;
    padding: 0.75rem;
  }

  .app-public-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-public-actions .btn {
    width: 100%;
  }

  .app-public-footer-main,
  .app-public-footer-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-root-button,
  .app-user-menu {
    min-width: 42px;
    min-height: 42px;
    padding: 0.35rem;
    justify-content: center;
  }

  .app-user-menu::after {
    display: none;
  }

  .app-user-avatar {
    width: 36px;
    height: 36px;
  }

  .app-page {
    padding: 0.85rem;
  }

  .app-page .container,
  .app-page .container-fluid {
    padding-inline: 0;
  }
}


/* Padrão compartilhado para páginas de resposta, resultado e detalhamento */
.app-content-page,
.app-result-page {
  display: grid;
  gap: 1rem;
}

.app-result-page {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
}

.app-result-card,
.app-section-card,
.app-table-card {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.04);
}

.app-result-card {
  position: relative;
  padding: clamp(1.1rem, 3vw, 1.6rem);
}

.app-result-card::before {
  content: "";
  height: 4px;
  position: absolute;
  inset: 0 0 auto;
  background: linear-gradient(90deg, var(--alfa-red), var(--alfa-red-escuro));
}

.app-result-card.is-success::before {
  background: linear-gradient(90deg, #12b76a, #039855);
}

.app-result-card.is-warning::before {
  background: linear-gradient(90deg, #f79009, #dc6803);
}

.app-result-header {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.app-result-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--alfa-red);
  background: color-mix(in srgb, var(--alfa-red) 9%, #fff);
  border-radius: 14px;
  font-size: 1.25rem;
}

.app-result-card.is-success .app-result-icon {
  color: #067647;
  background: #ecfdf3;
}

.app-result-card.is-warning .app-result-icon {
  color: #b54708;
  background: #fffaeb;
}

.app-result-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.app-result-eyebrow {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--alfa-red);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.app-result-card.is-success .app-result-eyebrow {
  color: #067647;
}

.app-result-title {
  margin: 0;
  color: #101828;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 780;
  letter-spacing: -0.02em;
}

.app-result-subtitle {
  max-width: 740px;
  margin: 0.35rem 0 0;
  color: #667085;
  font-size: 0.82rem;
  line-height: 1.55;
}

.app-result-summary,
.app-data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.app-result-summary.is-standalone {
  margin-top: 0;
}

.app-result-summary > div,
.app-data-item {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 0.18rem;
  padding: 0.8rem 0.9rem;
  background: #f8f9fb;
  border: 1px solid #eaecf0;
  border-radius: 11px;
}

.app-result-summary small,
.app-data-label {
  color: #667085;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.app-result-summary strong,
.app-data-value {
  overflow-wrap: anywhere;
  color: #344054;
  font-size: 0.82rem;
  font-weight: 720;
}

.app-section-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  background: #f8f9fb;
  border-bottom: 1px solid var(--app-border);
}

.app-section-card-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.app-section-card-heading > i {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--alfa-red);
  background: color-mix(in srgb, var(--alfa-red) 9%, #fff);
  border-radius: 9px;
}

.app-section-card-heading h2 {
  margin: 0;
  color: #101828;
  font-size: 0.95rem;
  font-weight: 760;
}

.app-section-card-heading p {
  margin: 0.15rem 0 0;
  color: #667085;
  font-size: 0.7rem;
}

.app-section-card-body {
  padding: 1rem;
}

.app-section-actions,
.app-page-footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.app-page-footer-actions {
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: 16px;
}

.app-inline-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 750;
}

.app-inline-status.is-success {
  color: #067647;
  background: #ecfdf3;
  border: 1px solid #abefc6;
}

.app-inline-status.is-warning {
  color: #854a0e;
  background: #fffaeb;
  border: 1px solid #fedf89;
}

.app-inline-status.is-danger {
  color: #b42318;
  background: #fff4f2;
  border: 1px solid #fecdca;
}

.app-table-card .table-responsive {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.app-table-card .table {
  min-width: 720px;
}

.app-table-card .app-empty-state {
  margin: 1rem;
}

.app-route-map {
  width: 100%;
  min-height: 340px;
  overflow: hidden;
  background: #eef1f4;
  border-radius: 12px;
}

@media (max-width: 767.98px) {
  .app-result-header,
  .app-section-card-header {
    align-items: flex-start;
  }

  .app-section-card-header {
    flex-direction: column;
  }

  .app-section-actions,
  .app-page-footer-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .app-section-actions > *,
  .app-page-footer-actions > * {
    width: 100%;
  }

  .app-route-map {
    min-height: 280px;
  }
}

@media (max-width: 575.98px) {
  .app-result-header {
    flex-direction: column;
  }

  .app-result-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .app-result-summary,
  .app-data-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* =============================== */
/* COMPONENTES DE CONTEÚDO         */
/* =============================== */

.app-page form .form-label,
.app-page form label:not(.form-check-label) {
  color: #344054;
  font-size: 0.82rem;
  font-weight: 650;
}

.app-page .form-control,
.app-page .form-select {
  min-height: 46px;
  padding-inline: 0.85rem;
  border-color: #d0d5dd;
  border-radius: 11px;
  color: var(--app-text);
  background-color: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.app-page textarea.form-control {
  min-height: 110px;
  padding-block: 0.75rem;
  resize: vertical;
}

.app-page .form-control:focus,
.app-page .form-select:focus {
  border-color: var(--alfa-red);
  box-shadow: 0 0 0 0.22rem color-mix(in srgb, var(--alfa-red) 13%, transparent);
}

.app-page .form-control::placeholder {
  color: #98a2b3;
}

/*
 * O placeholder é apenas uma dica complementar nos campos com label flutuante.
 * Mantê-lo oculto enquanto o campo está vazio evita a sobreposição com o label,
 * restaurando o comportamento esperado do Bootstrap em todos os formulários.
 */
.form-floating > .form-control::placeholder {
  color: transparent;
  opacity: 1;
}

.form-floating > .form-control:focus::placeholder {
  color: #98a2b3;
}

.app-page .form-control[readonly],
.app-page .form-control:disabled,
.app-page .form-select:disabled {
  color: #667085;
  background: #f2f4f7;
}

.app-page .input-group .form-control,
.app-page .input-group .form-select {
  min-width: 0;
}

.app-page .input-group > .btn,
.app-page .input-group > .input-group-text {
  min-height: 46px;
}

.app-page .form-floating > .form-control,
.app-page .form-floating > .form-select {
  min-height: 58px;
  height: calc(3.625rem + 2px);
  padding-top: 1.45rem;
  padding-bottom: 0.4rem;
}

.app-page .form-floating > label {
  max-width: calc(100% - 1rem);
  overflow: hidden;
  color: #667085;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-page form .row > [class*="col-"] {
  min-width: 0;
}

.app-page .form-check-input {
  border-color: #b8c0cc;
}

.app-page .form-check-input:checked {
  background-color: var(--alfa-red);
  border-color: var(--alfa-red);
}

.app-page .form-check-input:focus {
  border-color: var(--alfa-red);
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--alfa-red) 13%, transparent);
}

.app-check-card {
  min-height: 58px;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0;
  padding: 0.85rem;
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: 13px;
  cursor: pointer;
}

.app-check-card .form-check-input {
  flex: 0 0 auto;
  margin: 0.18rem 0 0;
}

.app-check-card > span {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
}

.app-check-card strong {
  color: #344054;
  font-size: 0.84rem;
}

.app-check-card small {
  color: var(--app-text-muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.api-access-page {
  gap: 1rem;
}

.api-access-hero {
  background:
    radial-gradient(circle at 8% 10%, color-mix(in srgb, var(--alfa-red) 14%, transparent), transparent 32%),
    linear-gradient(135deg, #fff, #f8fafc);
}

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

.api-access-summary article {
  min-width: 0;
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.05);
}

.api-access-summary article > span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--alfa-red);
  background: color-mix(in srgb, var(--alfa-red) 9%, #fff);
  border-radius: 12px;
}

.api-access-summary small {
  color: var(--app-text-muted);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.api-access-summary strong {
  color: #101828;
  font-size: 1.35rem;
}

.api-access-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.api-access-actions form {
  margin: 0;
}

.api-doc-grid {
  display: grid;
  gap: 0.8rem;
}

.api-doc-item {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: 14px;
}

.api-doc-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  cursor: pointer;
  list-style: none;
}

.api-doc-item summary::-webkit-details-marker {
  display: none;
}

.api-doc-item summary > span {
  min-width: 0;
  display: grid;
  gap: 0.12rem;
}

.api-doc-item summary small {
  color: var(--app-text-muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.api-doc-item summary strong {
  color: #101828;
  font-size: 0.9rem;
}

.api-doc-body {
  display: grid;
  gap: 0.85rem;
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--app-border);
}

.api-doc-url {
  display: block;
  overflow-x: auto;
  padding: 0.7rem 0.8rem;
  color: #344054;
  background: #f8fafc;
  border: 1px solid #eef2f6;
  border-radius: 10px;
  white-space: nowrap;
}

.api-doc-meta {
  color: var(--app-text-muted);
  font-size: 0.78rem;
}

.api-doc-note {
  margin: 0;
  padding: 0.65rem 0.8rem;
  color: #475467;
  background: #f8fafc;
  border: 1px solid #eef2f6;
  border-radius: 10px;
  font-size: 0.8rem;
}

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

.api-json-grid h3 {
  margin: 0 0 0.35rem;
  color: #344054;
  font-size: 0.76rem;
  font-weight: 800;
}

.api-json-grid pre {
  min-height: 110px;
  max-height: 260px;
  margin: 0;
  overflow: auto;
  padding: 0.85rem;
  color: #e6edf3;
  background: #101828;
  border-radius: 12px;
  font-size: 0.74rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

@media (max-width: 991.98px) {
  .api-access-summary,
  .api-json-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .api-access-summary,
  .api-json-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .api-access-actions {
    justify-content: flex-start;
  }

  .api-access-actions .btn,
  .api-access-actions form {
    width: 100%;
  }
}

.app-page .form-text,
.app-page .helptext {
  color: #667085;
  font-size: 0.76rem;
}

.app-page .errorlist {
  display: grid;
  gap: 0.25rem;
  margin: 0.35rem 0 0;
  padding: 0;
  color: #b42318;
  font-size: 0.76rem;
  list-style: none;
}

.app-page .is-invalid,
.app-page .form-control[aria-invalid="true"] {
  border-color: #d92d20;
}

.app-page .card {
  overflow: hidden;
  border: 1px solid var(--app-border);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.05);
}

.app-page .card-header {
  padding: 0.9rem 1rem;
  color: #344054;
  background: #f8f9fb;
  border-bottom-color: var(--app-border);
  font-weight: 700;
}

.app-page .card-body {
  padding: 1rem;
}

.app-page .card-footer {
  padding: 0.8rem 1rem;
  background: #fff;
  border-top-color: var(--app-border);
}

.app-page .table-responsive {
  overflow: auto;
  border: 1px solid var(--app-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.04);
}

.app-page .table {
  margin-bottom: 0;
  color: #344054;
  vertical-align: middle;
}

.app-page .table > :not(caption) > * > * {
  padding: 0.75rem 0.8rem;
  border-bottom-color: #eaecf0;
}

.app-page .table thead th {
  color: #475467;
  background: #f8f9fb;
  border-bottom-width: 1px;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  white-space: nowrap;
}

.app-page .table tbody tr {
  transition: background-color 0.15s ease;
}

.app-page .table tbody tr:hover > * {
  background: color-mix(in srgb, var(--alfa-red) 3%, #fff);
}

.app-page .table .btn {
  min-height: 34px;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
}

.app-page .btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 10px;
  font-size: 0.84rem;
}

.app-page .btn.rounded-5 {
  border-radius: 10px !important;
}

.app-page .btn-sm {
  min-height: 34px;
  padding: 0.35rem 0.75rem;
  border-radius: 9px;
  font-size: 0.75rem;
}

.app-page .btn-lg {
  min-height: 50px;
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
}

.app-page .btn-alfa,
.app-page .btn-primary,
.app-page .btn-success {
  box-shadow: 0 6px 15px rgba(16, 24, 40, 0.11);
}

.app-page .btn-secundario,
.app-page .btn-outline-secondary,
.app-page .btn-secondary {
  box-shadow: none;
}

.app-page .modal-dialog {
  --app-modal-vertical-space: 1rem;
  min-height: 0;
}

.app-page .modal-content {
  min-height: 0;
  max-height: calc(100vh - var(--app-modal-vertical-space));
  max-height: calc(100dvh - var(--app-modal-vertical-space));
  display: flex;
  overflow: hidden;
  flex-direction: column;
  border: 0;
  border-radius: 17px;
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.2);
}

/*
 * Alguns modais usam <form class="modal-content"> e outros mantêm o form
 * dentro do conteúdo. As duas estruturas precisam participar da cadeia flex
 * para que somente o corpo role, sem cortar cabeçalho ou ações.
 */
.app-page .modal-content > form {
  min-height: 0;
  display: flex;
  overflow: hidden;
  flex: 1 1 auto;
  flex-direction: column;
}

.app-page .modal-header,
.app-page .modal-footer {
  z-index: 1;
  flex: 0 0 auto;
  padding: 1rem 1.2rem;
  border-color: var(--app-border);
  background: #fff;
}

.app-page .modal-header {
  gap: 0.75rem;
}

.app-page .modal-title {
  min-width: 0;
  overflow-wrap: anywhere;
}

.app-page .modal-body {
  min-height: 0;
  padding: 1.2rem;
  overflow-x: hidden;
  overflow-y: auto;
  flex: 1 1 auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

@media (min-width: 576px) {
  .app-page .modal-dialog {
    --app-modal-vertical-space: 3.5rem;
  }
}

@media (max-width: 575.98px) {
  .app-page .modal-dialog {
    width: auto;
    margin: 0.5rem;
  }

  .app-page .modal-header,
  .app-page .modal-body,
  .app-page .modal-footer {
    padding: 0.85rem;
  }

  .app-page .modal-header {
    align-items: flex-start;
  }

  .app-page .modal-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
  }

  .app-page .modal-footer > * {
    width: 100%;
    margin: 0;
  }
}

.app-toast-container {
  top: calc(var(--app-topbar-height, 0px) + 0.75rem);
  right: 0.75rem;
  z-index: 1095;
  display: grid;
  gap: 0.65rem;
  width: min(430px, calc(100vw - 1.5rem));
  pointer-events: none;
}

.auth-body .app-toast-container,
body:not(.app-body) .app-toast-container {
  top: 0.75rem;
}

.app-message-toast {
  width: 100%;
  max-width: none;
  overflow: hidden;
  border: 1px solid var(--app-border);
  border-left: 4px solid #1570ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(16, 24, 40, 0.16);
  pointer-events: auto;
}

.app-download-notice {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 2100;
  width: min(390px, calc(100vw - 2rem));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.75rem;
  padding: 1rem;
  color: #344054;
  background: #fff;
  border: 1px solid var(--app-border);
  border-left: 4px solid #1570ef;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(16, 24, 40, 0.18);
}

.app-download-notice[hidden] {
  display: none;
}

.app-download-notice-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: #175cd3;
  background: #eff8ff;
  border-radius: 10px;
  animation: app-download-spin 1s linear infinite;
}

.app-download-notice.is-ready {
  border-left-color: #079455;
}

.app-download-notice.is-ready .app-download-notice-icon {
  color: #067647;
  background: #ecfdf3;
  animation: none;
}

.app-download-notice.is-error {
  border-left-color: #d92d20;
}

.app-download-notice.is-error .app-download-notice-icon {
  color: #b42318;
  background: #fef3f2;
  animation: none;
}

.app-download-notice-copy {
  min-width: 0;
  display: grid;
  gap: 0.25rem;
}

.app-download-notice-title {
  color: #101828;
  font-size: 0.88rem;
}

.app-download-notice-detail {
  color: #667085;
  font-size: 0.76rem;
  line-height: 1.4;
}

.app-download-notice-button {
  justify-self: start;
  margin-top: 0.45rem;
}

.app-download-notice-close {
  width: 0.85rem;
  height: 0.85rem;
  margin: 0.2rem;
}

@keyframes app-download-spin {
  to { transform: rotate(360deg); }
}

.app-message-toast .toast-body {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  color: #344054;
  font-size: 0.84rem;
}

.app-message-icon {
  flex: 0 0 auto;
  color: #1570ef;
  font-size: 1.1rem;
}

.app-message-success {
  border-left-color: #079455;
}

.app-message-success .app-message-icon {
  color: #079455;
}

.app-message-error,
.app-message-danger {
  border-left-color: #d92d20;
}

.app-message-error .app-message-icon,
.app-message-danger .app-message-icon {
  color: #d92d20;
}

.app-message-warning {
  border-left-color: #dc6803;
}

.app-message-warning .app-message-icon {
  color: #dc6803;
}

.searchable-select {
  position: relative;
  width: 100%;
  min-width: 0;
}

.input-group > .searchable-select {
  position: relative;
  width: 1%;
  min-width: 0;
  flex: 1 1 auto;
}

.searchable-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  white-space: nowrap !important;
}

.searchable-select-trigger {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  color: var(--app-text, #1d2939);
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 11px;
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.searchable-select-trigger:hover {
  border-color: #98a2b3;
}

.searchable-select-trigger:focus,
.searchable-select.is-open .searchable-select-trigger {
  border-color: var(--alfa-red);
  outline: 0;
  box-shadow: 0 0 0 0.22rem
    color-mix(in srgb, var(--alfa-red) 13%, transparent);
}

.searchable-select-trigger:disabled {
  color: #667085;
  background: #f2f4f7;
  cursor: not-allowed;
}

.searchable-select-trigger.is-invalid {
  border-color: #d92d20;
}

.searchable-select-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.searchable-select-trigger.is-placeholder .searchable-select-value {
  color: #98a2b3;
}

.searchable-select-trigger > i {
  flex: 0 0 auto;
  color: #667085;
  transition: transform 0.18s ease;
}

.searchable-select.is-open .searchable-select-trigger > i {
  transform: rotate(180deg);
}

.form-floating.searchable-select > .searchable-select-trigger {
  height: calc(3.625rem + 2px);
  min-height: 58px;
  padding: 1.45rem 2.5rem 0.4rem 0.85rem;
}

.form-floating.searchable-select > label {
  z-index: 1;
  max-width: calc(100% - 3rem);
  color: #667085;
  pointer-events: auto;
}

.searchable-select-panel {
  position: fixed;
  z-index: 2000;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.18);
}

.searchable-select-panel[hidden] {
  display: none;
}

.searchable-select-search {
  position: relative;
  flex: 0 0 auto;
  padding: 0.65rem;
  background: #f8f9fb;
  border-bottom: 1px solid #eaecf0;
}

.searchable-select-search > i {
  position: absolute;
  top: 50%;
  left: 1.45rem;
  z-index: 1;
  color: #667085;
  pointer-events: none;
  transform: translateY(-50%);
}

.searchable-select-search .form-control {
  min-height: 42px !important;
  padding: 0.5rem 5.2rem 0.5rem 2.45rem !important;
  border-color: #b8c0cc;
  border-radius: 9px;
  font-size: 0.84rem;
}

.searchable-select-search .form-control:focus {
  border-color: var(--alfa-red);
  box-shadow: 0 0 0 0.2rem
    color-mix(in srgb, var(--alfa-red) 12%, transparent);
}

.searchable-select-count {
  position: absolute;
  top: 50%;
  right: 1.4rem;
  color: #667085;
  font-size: 0.68rem;
  pointer-events: none;
  transform: translateY(-50%);
}

.searchable-select-options {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0.35rem;
  overscroll-behavior: contain;
}

.searchable-select-option {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.7rem;
  color: #344054;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 0.84rem;
  text-align: left;
}

.searchable-select-option:hover,
.searchable-select-option:focus {
  background: #f2f4f7;
  outline: 0;
}

.searchable-select-option.is-selected {
  color: var(--alfa-red-escuro, #761022);
  background: color-mix(in srgb, var(--alfa-red) 9%, #fff);
  font-weight: 700;
}

.searchable-select-option:disabled {
  color: #98a2b3;
  cursor: not-allowed;
}

.searchable-select-group {
  padding: 0.6rem 0.7rem 0.25rem;
  color: #667085;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.searchable-select-empty {
  padding: 1.5rem 0.75rem;
  color: #667085;
  font-size: 0.82rem;
  text-align: center;
}

/* Estrutura visual reutilizável para páginas e formulários */
.app-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--alfa-red) 5%, #fff), #fff 52%);
  border: 1px solid var(--app-border);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.05);
}

.app-page-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.app-page-heading-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--alfa-red);
  background: color-mix(in srgb, var(--alfa-red) 10%, #fff);
  border-radius: 15px;
  font-size: 1.35rem;
}

.app-page-title {
  margin: 0;
  color: #101828;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 760;
  letter-spacing: -0.025em;
}

.app-page-subtitle {
  max-width: 720px;
  margin: 0.35rem 0 0;
  color: #667085;
  font-size: 0.88rem;
}

.app-page-actions {
  display: flex;
  align-items: stretch;
  gap: 0.65rem;
}

.app-primary-cta {
  min-height: 62px !important;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start !important;
  gap: 0.75rem !important;
  padding: 0.7rem 1rem !important;
  color: #fff !important;
  background:
    linear-gradient(135deg, var(--alfa-red), var(--alfa-red-escuro)) !important;
  border: 0 !important;
  box-shadow: 0 10px 24px
    color-mix(in srgb, var(--alfa-red) 28%, transparent);
  text-align: left;
}

.app-primary-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 13px 28px
    color-mix(in srgb, var(--alfa-red) 36%, transparent);
}

.app-primary-cta > i {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  font-size: 1.1rem;
}

.app-primary-cta-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.app-primary-cta-copy strong {
  font-size: 0.88rem;
}

.app-primary-cta-copy small {
  margin-top: 0.18rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.68rem;
  font-weight: 500;
}

.app-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem;
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: 14px;
}

.app-toolbar-search {
  min-width: 0;
  position: relative;
  flex: 1 1 360px;
  max-width: 520px;
}

.app-toolbar-search > i {
  position: absolute;
  top: 50%;
  left: 0.85rem;
  z-index: 2;
  color: #667085;
  pointer-events: none;
  transform: translateY(-50%);
}

.app-toolbar-search .form-control {
  padding-left: 2.5rem;
}

.app-empty-state {
  padding: clamp(2rem, 6vw, 4rem) 1.25rem;
  color: #667085;
  background: #fff;
  border: 1px dashed #cfd4dc;
  border-radius: 18px;
  text-align: center;
}

.app-empty-state > i {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--alfa-red);
  background: color-mix(in srgb, var(--alfa-red) 9%, #fff);
  border-radius: 17px;
  font-size: 1.5rem;
}

.app-empty-state h2 {
  margin-bottom: 0.4rem;
  color: #101828;
  font-size: 1.1rem;
  font-weight: 750;
}

.app-empty-state p {
  max-width: 520px;
  margin: 0 auto 1rem;
}

.app-form {
  display: grid;
  gap: 1rem;
}

.app-page-narrow {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
}

.app-form-section {
  padding: clamp(1rem, 2vw, 1.35rem);
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.04);
}

/* Taxas especiais: mantém os campos e ações dos três cartões alinhados. */
.special-rates-options > [class*="col-"] {
  display: flex;
}

.special-rates-form {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.special-rates-form > .btn {
  margin-top: auto;
}

.app-form-section-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.app-form-section-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--alfa-red);
  background: color-mix(in srgb, var(--alfa-red) 9%, #fff);
  border-radius: 11px;
}

.app-form-section-header h2 {
  margin: 0;
  color: #101828;
  font-size: 1rem;
  font-weight: 750;
}

.app-form-section-header p {
  margin: 0.2rem 0 0;
  color: #667085;
  font-size: 0.78rem;
}

.app-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: 16px;
}

/*
 * Compatibilidade visual para telas ainda estruturadas com o grid legado.
 * Mantém o DOM e os contratos dos formulários, removendo margens duplicadas
 * agora que todas as páginas são exibidas dentro do app shell.
 */
.app-page > main.pt-5 {
  display: grid;
  gap: 1rem;
  padding-top: 0 !important;
}

.app-page > main.pt-5 > section.mt-5,
.app-page > main.pt-5 section#home {
  margin-top: 0 !important;
}

.app-page > main.pt-5 section#home > .container,
.app-page > main.pt-5 section#home > .container-fluid {
  width: 100%;
  max-width: none;
  margin-top: 0 !important;
  padding-inline: 0;
}

.app-page > main.pt-5 section#home > .container + .container,
.app-page > main.pt-5 section#home > .container + .container-fluid {
  margin-top: 1rem !important;
}

.app-page > main.pt-5 .breadcrumb {
  margin-bottom: 0;
}

.app-page > main.pt-5 .row.shadow,
.app-page > main.pt-5 .container.shadow,
.app-page > main.pt-5 form.shadow {
  margin-inline: 0;
  padding: clamp(1rem, 2.5vw, 1.5rem) !important;
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: 16px !important;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.05) !important;
}

.app-page > main.pt-5 h3.fw-bold,
.app-page > main.pt-5 h2.fw-bold {
  margin-bottom: 0.35rem;
  color: #101828;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  letter-spacing: -0.02em;
}

.app-page > main.pt-5 h3.fw-bold + .text-muted,
.app-page > main.pt-5 h2.fw-bold + .text-muted {
  max-width: 760px;
  margin-inline: auto;
  color: #667085 !important;
  font-size: 0.84rem;
}

.app-page > main.pt-5 .alert-light {
  background: #fff;
  border-color: var(--app-border);
  border-radius: 14px;
}

.app-page > main.pt-5 .accordion {
  overflow: hidden;
  border: 1px solid var(--app-border);
  border-radius: 14px;
}

.app-page > main.pt-5 .accordion-item {
  border-color: var(--app-border);
}

.app-page > main.pt-5 .accordion-button {
  color: #344054;
  background: #fff;
  font-size: 0.84rem;
  font-weight: 700;
}

.app-page > main.pt-5 .accordion-button:not(.collapsed) {
  color: var(--alfa-red-escuro);
  background: color-mix(in srgb, var(--alfa-red) 6%, #fff);
  box-shadow: inset 0 -1px 0 var(--app-border);
}

.app-page > main.pt-5 .modal .row.shadow,
.app-page > main.pt-5 .modal .container.shadow {
  padding: initial !important;
  border: 0;
  box-shadow: none !important;
}

@media (max-width: 575.98px) {
  .app-page-header,
  .app-page-heading,
  .app-page-actions,
  .app-toolbar,
  .app-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .app-page-heading-icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .app-page-actions > *,
  .app-form-actions > * {
    width: 100%;
  }

  .app-toolbar-search {
    width: 100%;
    max-width: none;
    flex-basis: auto;
  }

  .app-page .table > :not(caption) > * > * {
    padding: 0.65rem;
  }

  .app-page .card-body {
    padding: 0.9rem;
  }

  .app-toast-container {
    top: calc(var(--app-topbar-height, 0px) + 0.35rem);
    right: 0;
    width: 100%;
    padding: 0.65rem !important;
  }
}
