/* Layout minimalista profissional - Turma da Terca */
:root {
  --tt-sidebar-width: 258px;
  --tt-content-max: 1460px;
  --tt-bg: #f6f7f9;
  --tt-surface: #ffffff;
  --tt-surface-2: #f9fafb;
  --tt-text: #111827;
  --tt-muted: #6b7280;
  --tt-muted-2: #9ca3af;
  --tt-border: #e5e7eb;
  --tt-border-strong: #d1d5db;
  --tt-accent: #0b1d3a;
  --tt-accent-dark: #08152b;
  --tt-accent-soft: #e8eefc;
  --tt-danger: #dc2626;
  --tt-warning: #f59e0b;
  --tt-shadow: 0 10px 30px rgba(17, 24, 39, .06);
  --tt-shadow-soft: 0 4px 14px rgba(17, 24, 39, .05);
  --tt-radius: 16px;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; background: var(--tt-bg); }
body.tt-mobile-app {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 100svh;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  background: var(--tt-bg) !important;
  color: var(--tt-text);
  font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.tt-mobile-app a { text-decoration: none; }
body.tt-mobile-app img { max-width: 100%; }

/* O app shell vira a navegacao unica. */
body.tt-mobile-app > .navbar,
body.tt-mobile-app > nav.navbar,
body.tt-mobile-app > .bottom-nav,
body.tt-mobile-app > nav.fixed-bottom,
body.tt-mobile-app > .menu-inferior,
body.tt-mobile-app > .bottom-menu,
body.tt-mobile-app .tt-page-screen > .navbar,
body.tt-mobile-app .tt-page-screen > nav.navbar,
body.tt-mobile-app .tt-page-screen > header.tt-topbar,
body.tt-mobile-app .tt-page-screen > .tt-topbar,
body.tt-mobile-app .tt-page-screen > .bottom-nav,
body.tt-mobile-app .tt-page-screen > nav.bottom-nav,
body.tt-mobile-app .tt-page-screen > .menu-inferior,
body.tt-mobile-app .tt-page-screen > .bottom-menu {
  display: none !important;
}

.tt-app-layout { min-height: 100svh; width: 100%; }

/* Sidebar desktop */
.tt-sidebar {
  position: fixed;
  left: 16px;
  top: 16px;
  bottom: 16px;
  z-index: 1200;
  width: var(--tt-sidebar-width);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--tt-border);
  border-radius: 20px;
  background: var(--tt-surface);
  box-shadow: var(--tt-shadow);
}
.tt-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 15px 13px;
  border-bottom: 1px solid var(--tt-border);
}
.tt-brand-block {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  color: var(--tt-text) !important;
}
.tt-brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  padding: 4px;
  border: 1px solid var(--tt-border);
  border-radius: 12px;
  background: #fff;
}
.tt-brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.tt-brand-copy { min-width: 0; }
.tt-brand-copy small,
.tt-appbar-title small,
.tt-user-copy small,
.tt-nav-text small {
  display: block;
  color: var(--tt-muted);
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.15;
}
.tt-brand-copy small,
.tt-appbar-title small {
  text-transform: uppercase;
  letter-spacing: .08em;
}
.tt-brand-copy strong {
  display: block;
  margin-top: 2px;
  color: var(--tt-text);
  font-size: .98rem;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.02em;
}

.tt-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--tt-border);
  border-radius: 12px;
  color: var(--tt-text);
  background: #fff;
  box-shadow: none;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.tt-icon-btn:hover { background: var(--tt-surface-2); border-color: var(--tt-border-strong); transform: translateY(-1px); }
.tt-menu-close { display: none; }

.tt-user-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 12px 6px;
  padding: 10px;
  border: 1px solid var(--tt-border);
  border-radius: 14px;
  background: var(--tt-surface-2);
}
.tt-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--tt-accent-dark);
  background: var(--tt-accent-soft);
}
.tt-user-copy { min-width: 0; }

.tt-user-profile-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.tt-user-profile-link:hover,
.tt-user-profile-link:focus-visible {
  color: inherit;
  text-decoration: none;
  border-color: var(--tt-border-strong);
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .10);
  transform: translateY(-1px);
  outline: none;
}
.tt-user-profile-arrow {
  margin-left: auto;
  color: var(--tt-muted);
  font-size: .72rem;
  opacity: .75;
}
.tt-user-profile-link:hover .tt-user-profile-arrow,
.tt-user-profile-link:focus-visible .tt-user-profile-arrow {
  color: var(--tt-accent-dark);
  opacity: 1;
}

.tt-user-copy strong {
  display: block;
  overflow: hidden;
  color: var(--tt-text);
  font-size: .86rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tt-sidebar-nav {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 6px 10px 12px;
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}
.tt-nav-group + .tt-nav-group { margin-top: 12px; }
.tt-nav-group h3 {
  margin: 8px 0 6px 8px;
  color: var(--tt-muted-2);
  font-size: .66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .10em;
}
.tt-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-bottom: 3px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--tt-text) !important;
  background: transparent;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}
.tt-nav-link:hover { background: var(--tt-surface-2); border-color: var(--tt-border); }
.tt-nav-link.is-active {
  color: var(--tt-accent-dark) !important;
  background: var(--tt-accent-soft);
  border-color: #bbf7d0;
}
.tt-nav-link.is-locked { opacity: .55; }
.tt-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: var(--tt-muted);
  background: #f3f4f6;
  font-size: .82rem;
}
.tt-nav-link.is-active .tt-nav-icon {
  color: #fff;
  background: var(--tt-accent);
}
.tt-nav-text { min-width: 0; }
.tt-nav-text strong {
  display: block;
  color: inherit;
  font-size: .86rem;
  line-height: 1.12;
  font-weight: 750;
  letter-spacing: -.01em;
}
.tt-nav-text small { display: none; }
.tt-nav-lock { margin-left: auto; color: var(--tt-muted-2); font-size: .75rem; }

.tt-sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--tt-border);
}
.tt-drawer-action,
.tt-top-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--tt-border);
  border-radius: 12px;
  color: var(--tt-text) !important;
  background: #fff;
  font-size: .86rem;
  font-weight: 750;
}
.tt-drawer-action { width: 100%; padding: 8px 12px; }
.tt-drawer-action:hover,
.tt-top-action:hover { background: var(--tt-surface-2); }
.tt-drawer-action.danger,
.tt-top-action.danger {
  color: var(--tt-danger) !important;
  background: #fff;
  border-color: #fecaca;
}

.tt-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 1190;
  background: rgba(17, 24, 39, .42);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

/* Area principal */
.tt-main-area {
  min-height: 100svh;
  margin-left: calc(var(--tt-sidebar-width) + 32px);
  padding: 16px 24px 52px 0;
}
.tt-appbar {
  position: sticky;
  top: 16px;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(var(--tt-content-max), 100%);
  min-height: 58px;
  margin: 0 auto;
  padding: 9px 10px;
  border: 1px solid var(--tt-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--tt-shadow-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.tt-appbar-left,
.tt-appbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.tt-appbar-title strong {
  display: block;
  max-width: 48vw;
  overflow: hidden;
  color: var(--tt-text);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tt-menu-open { display: none; }
.tt-role-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  color: var(--tt-accent-dark);
  background: var(--tt-accent-soft);
  font-size: .8rem;
  font-weight: 750;
  white-space: nowrap;
}
.tt-top-action { padding: 8px 12px; }
.tt-page-shell { width: min(var(--tt-content-max), 100%); margin: 16px auto 0; }
.tt-page-screen { width: 100%; min-width: 0; }
.tt-page-screen > *:first-child { margin-top: 0 !important; }

/* Base visual de todas as telas */
body.tt-mobile-app :where(.container, .container-fluid, .container-full, .page-wrap, .wrap, .conteudo, .form-container, .login-container, .times-container, .regras-container) {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
body.tt-mobile-app :where(.container, .container-fluid, .container-full, .page-wrap, .wrap, .times-container, .regras-container) {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
body.tt-mobile-app :where(.card, .top-card, .resumo-card, .empty-card, .box, .painel, .conteudo, .form-container, .login-container, .login-box, .team-card, .table-container, .list-card, .atleta-card, .acoes-atleta, .regra, .modal-content):not(.report-card) {
  border: 1px solid var(--tt-border) !important;
  border-radius: var(--tt-radius) !important;
  background: #fff !important;
  box-shadow: none !important;
}
body.tt-mobile-app :where(.card, .top-card, .resumo-card, .empty-card, .box, .painel, .conteudo, .form-container, .login-container, .login-box):not(.report-card) {
  padding: clamp(14px, 1.8vw, 20px) !important;
}
body.tt-mobile-app .login-box { max-width: 430px !important; margin: clamp(20px, 8vh, 64px) auto !important; text-align: center; }
body.tt-mobile-app .login-box img.logo { width: min(160px, 54vw) !important; margin: 0 auto 14px; }

body.tt-mobile-app h1,
body.tt-mobile-app h2,
body.tt-mobile-app h3,
body.tt-mobile-app h4,
body.tt-mobile-app h5,
body.tt-mobile-app h6 { color: var(--tt-text); letter-spacing: -.02em; }
body.tt-mobile-app strong,
body.tt-mobile-app .fw-bold { font-weight: 750 !important; }
body.tt-mobile-app .text-muted { color: var(--tt-muted) !important; }

body.tt-mobile-app .btn,
body.tt-mobile-app button.btn,
body.tt-mobile-app a.btn {
  min-height: 40px;
  border-radius: 10px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}
body.tt-mobile-app .btn:hover { transform: translateY(-1px); box-shadow: none !important; }
body.tt-mobile-app .btn:active,
.tt-icon-btn:active,
.tt-nav-link:active,
.tt-bottom-bar a:active,
.tt-bottom-bar button:active { transform: scale(.98); }
body.tt-mobile-app .btn-primary,
body.tt-mobile-app .btn-primary-custom,
body.tt-mobile-app .btn-report,
body.tt-mobile-app .btn-dark {
  color: #fff !important;
  background: var(--tt-text) !important;
  border-color: var(--tt-text) !important;
}
body.tt-mobile-app .btn-success { background: var(--tt-accent) !important; border-color: var(--tt-accent) !important; }
body.tt-mobile-app .btn-danger { background: var(--tt-danger) !important; border-color: var(--tt-danger) !important; }
body.tt-mobile-app .btn-warning {
  color: #fff !important;
  background: var(--tt-accent) !important;
  border-color: var(--tt-accent) !important;
}
body.tt-mobile-app .btn-light,
body.tt-mobile-app .btn-outline-dark,
body.tt-mobile-app .btn-outline-primary,
body.tt-mobile-app .btn-outline-danger,
body.tt-mobile-app .btn-outline-secondary {
  color: var(--tt-text) !important;
  background: #fff !important;
  border-color: var(--tt-border-strong) !important;
}

body.tt-mobile-app .form-control,
body.tt-mobile-app .form-select,
body.tt-mobile-app input[type="text"],
body.tt-mobile-app input[type="date"],
body.tt-mobile-app input[type="number"],
body.tt-mobile-app input[type="email"],
body.tt-mobile-app input[type="password"],
body.tt-mobile-app select,
body.tt-mobile-app textarea {
  min-height: 42px;
  border: 1px solid var(--tt-border-strong) !important;
  border-radius: 10px !important;
  background-color: #fff !important;
  color: var(--tt-text) !important;
  font-weight: 500;
  box-shadow: none !important;
}
body.tt-mobile-app .form-control:focus,
body.tt-mobile-app .form-select:focus,
body.tt-mobile-app input:focus,
body.tt-mobile-app select:focus,
body.tt-mobile-app textarea:focus {
  border-color: var(--tt-accent) !important;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .12) !important;
  outline: none !important;
}
body.tt-mobile-app label,
body.tt-mobile-app .form-label { color: var(--tt-text); font-weight: 700; }

body.tt-mobile-app .alert { border: 1px solid var(--tt-border) !important; border-radius: 12px !important; font-weight: 650; }
body.tt-mobile-app .table-responsive { max-width: 100%; overflow: auto; border: 1px solid var(--tt-border); border-radius: 14px !important; box-shadow: none !important; -webkit-overflow-scrolling: touch; }
body.tt-mobile-app table,
body.tt-mobile-app .table { margin-bottom: 0; overflow: hidden; border-radius: 14px !important; background: #fff; }
body.tt-mobile-app .table thead th,
body.tt-mobile-app table thead th {
  background: #f9fafb !important;
  color: var(--tt-muted) !important;
  border-bottom: 1px solid var(--tt-border) !important;
  font-size: .75rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .04em;
}
body.tt-mobile-app .table td,
body.tt-mobile-app .table th,
body.tt-mobile-app table td,
body.tt-mobile-app table th { vertical-align: middle !important; border-color: var(--tt-border) !important; }
body.tt-mobile-app .table tbody tr:hover { background: #f9fafb; }
body.tt-mobile-app .badge,
body.tt-mobile-app .info-pill,
body.tt-mobile-app .chip-atleta,
body.tt-mobile-app .name-pill,
body.tt-mobile-app .team-count { border-radius: 999px !important; font-weight: 700 !important; }

/* Dashboards e cards customizados */
body.tt-mobile-app .tt-shell { width: 100% !important; max-width: 100% !important; margin: 0 !important; }
body.tt-mobile-app .tt-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 320px !important;
  gap: 16px !important;
  align-items: center;
  min-height: 0 !important;
  padding: 22px !important;
  overflow: hidden;
  border: 1px solid var(--tt-border) !important;
  border-radius: 18px !important;
  color: var(--tt-text) !important;
  background: #fff !important;
  box-shadow: none !important;
}
body.tt-mobile-app .tt-hero h1 {
  max-width: 760px;
  margin: 8px 0 8px;
  color: var(--tt-text) !important;
  font-size: clamp(1.55rem, 2.6vw, 2.6rem) !important;
  line-height: 1.08;
  letter-spacing: -.045em;
  font-weight: 800;
}
body.tt-mobile-app .tt-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--tt-muted);
  font-size: .96rem;
  line-height: 1.5;
  font-weight: 500;
}
body.tt-mobile-app .tt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--tt-accent-dark);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .10em;
}
body.tt-mobile-app .tt-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
body.tt-mobile-app .tt-hero-actions .btn-lg { min-height: 40px; padding: 8px 12px; font-size: .92rem; }
body.tt-mobile-app .tt-hero-panel {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px;
  border: 1px solid var(--tt-border);
  border-radius: 14px;
  background: var(--tt-surface-2);
  box-shadow: none;
}
body.tt-mobile-app .tt-countdown-label,
body.tt-mobile-app .tt-progress-text { color: var(--tt-muted); font-size: .82rem; font-weight: 650; }
body.tt-mobile-app .tt-countdown { margin: 4px 0 8px; color: var(--tt-text); font-size: clamp(1.25rem, 2.1vw, 1.75rem); font-weight: 800; letter-spacing: -.03em; }
body.tt-mobile-app .tt-progress-wrap { height: 8px; overflow: hidden; border-radius: 999px; background: #e5e7eb; }
body.tt-mobile-app .tt-progress-bar { height: 100%; border-radius: inherit; background: var(--tt-accent); }

body.tt-mobile-app .tt-kpi-grid { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 12px !important; margin: 12px 0 18px !important; }
body.tt-mobile-app .tt-kpi { padding: 15px; border: 1px solid var(--tt-border); border-radius: 16px; background: #fff; box-shadow: none; }
body.tt-mobile-app .tt-kpi span,
body.tt-mobile-app .tt-kpi small { display: block; color: var(--tt-muted); font-size: .78rem; font-weight: 650; }
body.tt-mobile-app .tt-kpi strong { display: block; margin: 4px 0; color: var(--tt-text); font-size: clamp(1.45rem, 2.2vw, 2rem); line-height: 1; font-weight: 800 !important; letter-spacing: -.035em; }

body.tt-mobile-app .tt-module-layout { display: grid !important; grid-template-columns: minmax(0, 1fr) 320px !important; gap: 18px !important; align-items: start; }
body.tt-mobile-app .tt-side-panel { position: sticky; top: 92px; }
body.tt-mobile-app .tt-section-head { margin: 20px 0 10px; }
body.tt-mobile-app .tt-section-head:first-child { margin-top: 0; }
body.tt-mobile-app .tt-section-head span { display: block; margin-bottom: 2px; color: var(--tt-muted); font-size: .70rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
body.tt-mobile-app .tt-section-head h2 { margin: 0; font-size: clamp(1.15rem, 1.7vw, 1.45rem); font-weight: 800; }
body.tt-mobile-app .tt-shortcut-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
body.tt-mobile-app .tt-shortcut-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
body.tt-mobile-app .tt-shortcut,
body.tt-mobile-app .tt-mini-list .tt-shortcut {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 82px;
  padding: 13px;
  border: 1px solid var(--tt-border);
  border-radius: 16px;
  color: var(--tt-text) !important;
  background: #fff;
  box-shadow: none;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
body.tt-mobile-app .tt-shortcut:hover { transform: translateY(-1px); border-color: #bbf7d0; background: #fcfffd; }
body.tt-mobile-app .tt-shortcut.is-locked { opacity: .62; }
body.tt-mobile-app .tt-shortcut-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 11px; color: var(--tt-accent-dark); background: var(--tt-accent-soft); font-size: .95rem; }
body.tt-mobile-app .tt-shortcut-title { display: block; padding-right: 70px; color: var(--tt-text); font-size: .92rem; font-weight: 750; line-height: 1.18; }
body.tt-mobile-app .tt-shortcut-desc { display: block; margin-top: 2px; color: var(--tt-muted); font-size: .76rem; line-height: 1.3; font-weight: 500; }
body.tt-mobile-app .tt-shortcut-badge { position: absolute; top: 10px; right: 10px; max-width: 86px; overflow: hidden; padding: 4px 7px; border: 1px solid #bbf7d0; border-radius: 999px; color: var(--tt-accent-dark); background: var(--tt-accent-soft); font-size: .62rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
body.tt-mobile-app .tt-panel-card { margin-bottom: 12px; padding: 16px; border: 1px solid var(--tt-border); border-radius: 16px; background: #fff; box-shadow: none; }
body.tt-mobile-app .tt-panel-card.dark { color: var(--tt-text); background: #fff; }
body.tt-mobile-app .tt-panel-card.dark .tt-eyebrow { color: var(--tt-text); }
body.tt-mobile-app .tt-panel-card.dark a { display: flex; align-items: center; gap: 9px; margin-top: 8px; padding: 10px 11px; border: 1px solid var(--tt-border); border-radius: 10px; color: var(--tt-text) !important; background: var(--tt-surface-2); font-size: .86rem; font-weight: 700; }
body.tt-mobile-app .tt-money-row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--tt-border); color: var(--tt-muted); font-weight: 650; }
body.tt-mobile-app .tt-money-row strong { color: var(--tt-text); white-space: nowrap; }
body.tt-mobile-app .tt-money-row.total { border-bottom: 0; color: var(--tt-text); font-size: 1rem; }
body.tt-mobile-app .tt-mini-list { display: grid; gap: 8px; }
body.tt-mobile-app .tt-mini-list .tt-shortcut { min-height: 70px; grid-template-columns: 34px minmax(0, 1fr); padding: 11px; }
body.tt-mobile-app .tt-mini-list .tt-shortcut-icon { width: 34px; height: 34px; border-radius: 10px; font-size: .88rem; }
body.tt-mobile-app .tt-mini-list .tt-shortcut-title { font-size: .86rem; }
body.tt-mobile-app .tt-mini-list .tt-shortcut-desc { display: none; }

/* Componentes especificos herdados das paginas antigas */
body.tt-mobile-app .hero {
  background: #fff !important;
  color: var(--tt-text) !important;
  border: 1px solid var(--tt-border) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}
body.tt-mobile-app .hero h1,
body.tt-mobile-app .hero h2,
body.tt-mobile-app .hero h3,
body.tt-mobile-app .hero h4 { color: var(--tt-text) !important; }
body.tt-mobile-app .stats { gap: 10px !important; }
body.tt-mobile-app .stat { border: 1px solid var(--tt-border) !important; border-radius: 14px !important; box-shadow: none !important; }
body.tt-mobile-app .avatar { background: var(--tt-accent-soft) !important; color: var(--tt-accent-dark) !important; }

.tt-footer-game { display: none !important; }
.tt-bottom-bar { display: none; }
.tt-bottom-menu-btn { border: 0; background: transparent; cursor: pointer; font-family: inherit; }

/* Desktop maior: aproveitar melhor telas largas */
@media (min-width: 1400px) {
  .tt-main-area {
    padding-right: 28px;
  }
  .tt-appbar,
  .tt-page-shell {
    width: min(var(--tt-content-max), calc(100vw - var(--tt-sidebar-width) - 72px));
  }
  body.tt-mobile-app .tt-shortcut-grid.three {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* Tablet */
@media (max-width: 1180px) {
  body.tt-mobile-app .tt-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  body.tt-mobile-app .tt-module-layout,
  body.tt-mobile-app .tt-hero { grid-template-columns: 1fr !important; }
  body.tt-mobile-app .tt-side-panel { position: static; }
  body.tt-mobile-app .tt-shortcut-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* Mobile: app com drawer e bottom nav. */
@media (max-width: 1099px) {
  body.tt-mobile-app { padding: 0 !important; }
  body.tt-drawer-open { overflow: hidden !important; }
  .tt-sidebar {
    left: max(10px, env(safe-area-inset-left));
    top: max(10px, env(safe-area-inset-top));
    bottom: max(10px, env(safe-area-inset-bottom));
    width: min(340px, calc(100vw - 20px));
    max-width: calc(100vw - 20px);
    border-radius: 18px;
    transform: translateX(calc(-100% - 24px));
    opacity: .99;
    transition: transform .24s ease;
  }
  body.tt-drawer-open .tt-sidebar { transform: translateX(0); }
  body.tt-drawer-open .tt-drawer-overlay { opacity: 1; pointer-events: auto; }
  .tt-menu-close { display: inline-flex; }
  .tt-main-area { margin-left: 0; padding: calc(76px + env(safe-area-inset-top)) 12px calc(86px + env(safe-area-inset-bottom)); }
  .tt-appbar { position: fixed; top: max(10px, env(safe-area-inset-top)); left: 10px; right: 10px; width: auto; min-height: 56px; margin: 0; border-radius: 16px; }
  .tt-menu-open { display: inline-flex; }
  .tt-role-pill { display: none; }
  .tt-top-action span { display: none; }
  .tt-top-action { width: 38px; min-width: 38px; padding: 0; border-radius: 12px; }
  .tt-page-shell { margin-top: 0; width: 100%; }
  .tt-bottom-bar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 1190;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    min-height: 64px;
    padding: 6px;
    border: 1px solid var(--tt-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 10px 28px rgba(17,24,39,.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .tt-bottom-bar a,
  .tt-bottom-bar button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    min-height: 50px;
    border-radius: 13px;
    color: var(--tt-muted) !important;
    font-size: .64rem;
    font-weight: 700;
    transition: background .16s ease, color .16s ease, transform .16s ease;
  }
  .tt-bottom-bar a i,
  .tt-bottom-bar button i { font-size: .95rem; }
  .tt-bottom-bar a.is-active,
  .tt-bottom-bar button.is-active,
  .tt-bottom-bar a:hover,
  .tt-bottom-bar button:hover { color: var(--tt-accent-dark) !important; background: var(--tt-accent-soft); }
  .tt-bottom-bar a.is-locked { opacity: .45; }
}

@media (max-width: 720px) {
  .tt-main-area { padding-left: 10px; padding-right: 10px; }
  .tt-appbar-title strong { max-width: 58vw; font-size: 1rem; }
  body.tt-mobile-app .btn,
  body.tt-mobile-app button.btn,
  body.tt-mobile-app a.btn { min-height: 44px; }
  body.tt-mobile-app .form-control,
  body.tt-mobile-app .form-select,
  body.tt-mobile-app input[type="text"],
  body.tt-mobile-app input[type="date"],
  body.tt-mobile-app input[type="number"],
  body.tt-mobile-app input[type="email"],
  body.tt-mobile-app input[type="password"],
  body.tt-mobile-app select,
  body.tt-mobile-app textarea { min-height: 46px; font-size: 16px !important; }
  body.tt-mobile-app table { min-width: 680px; }
  body.tt-mobile-app .tt-hero { padding: 16px !important; border-radius: 16px !important; }
  body.tt-mobile-app .tt-hero h1 { font-size: clamp(1.45rem, 8vw, 2.15rem) !important; }
  body.tt-mobile-app .tt-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
  body.tt-mobile-app .tt-shortcut-grid,
  body.tt-mobile-app .tt-shortcut-grid.three { grid-template-columns: 1fr !important; }
  body.tt-mobile-app .tt-kpi { padding: 12px; }
  body.tt-mobile-app .tt-shortcut { min-height: 74px; padding: 12px; border-radius: 14px; }
  body.tt-mobile-app .tt-shortcut-title { padding-right: 68px; }
  body.tt-mobile-app .tt-shortcut-desc { font-size: .72rem; }
  body.tt-mobile-app .tt-shortcut-badge { max-width: 80px; font-size: .60rem; }
  body.tt-mobile-app .login-box { margin-top: 16px !important; }
}

@media (max-width: 420px) {
  .tt-appbar { left: 8px; right: 8px; padding: 9px; }
  .tt-appbar-left { gap: 8px; }
  .tt-icon-btn,
  .tt-top-action { width: 36px; height: 36px; min-width: 36px; }
  .tt-appbar-title small { font-size: .60rem; }
  .tt-appbar-title strong { max-width: 50vw; }
  .tt-sidebar { width: calc(100vw - 16px); left: 8px; }
  .tt-nav-link { min-height: 44px; }
  .tt-bottom-bar { left: 8px; right: 8px; border-radius: 16px; }
  .tt-bottom-bar a,
  .tt-bottom-bar button { font-size: .60rem; border-radius: 12px; }
}

@media print {
  .no-print,
  .tt-sidebar,
  .tt-appbar,
  .tt-bottom-bar,
  .tt-drawer-overlay,
  .tt-footer-game { display: none !important; }
  body.tt-mobile-app { padding: 0 !important; background: #fff !important; }
  .tt-main-area { margin: 0 !important; padding: 0 !important; }
  .tt-page-shell { width: 100% !important; max-width: none !important; margin: 0 !important; }
}


/* Publico sem menu: usado antes do login */
body.tt-mobile-app .tt-public-layout {
  min-height: 100svh;
  width: 100%;
}
body.tt-mobile-app .tt-main-public {
  margin-left: 0 !important;
  padding: 16px 24px 52px !important;
}
body.tt-mobile-app .tt-public-appbar,
body.tt-mobile-app .tt-main-public .tt-page-shell {
  width: min(var(--tt-content-max), 100%) !important;
}
body.tt-mobile-app .tt-public-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--tt-text);
}
body.tt-mobile-app .tt-top-action.success {
  color: var(--tt-accent-dark) !important;
  background: var(--tt-accent-soft) !important;
  border-color: #bbf7d0 !important;
}
@media (max-width: 720px) {
  body.tt-mobile-app .tt-main-public {
    padding: 10px 12px 28px !important;
  }
  body.tt-mobile-app .tt-public-appbar {
    top: 10px;
  }
  body.tt-mobile-app .tt-public-appbar .tt-appbar-actions {
    gap: 8px;
  }
  body.tt-mobile-app .tt-public-appbar .tt-top-action {
    padding: 8px 10px;
  }
}

/* Notificações em card no topo do app */
.tt-notify-stack {
  position: fixed;
  top: max(14px, env(safe-area-inset-top, 0px) + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  width: min(520px, calc(100vw - 24px));
  display: grid;
  gap: 10px;
  pointer-events: none;
}
.tt-notify-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 14px;
  border: 1px solid rgba(226,232,240,.95);
  border-radius: 18px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 18px 46px rgba(15,23,42,.16);
  opacity: 0;
  transform: translateY(-18px) scale(.98);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: auto;
  backdrop-filter: blur(14px);
}
.tt-notify-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.tt-notify-card.is-hiding {
  opacity: 0;
  transform: translateY(-10px) scale(.98);
}
.tt-notify-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--tt-accent-dark);
  background: var(--tt-accent-soft);
  font-size: 1.05rem;
}
.tt-notify-body {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.tt-notify-body strong {
  color: #08152b;
  font-size: .95rem;
  font-weight: 850;
  line-height: 1.2;
}
.tt-notify-body small {
  color: #64748b;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.35;
}
.tt-notify-close,
.tt-notify-action {
  border: 0;
  border-radius: 12px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.tt-notify-close {
  width: 36px;
  color: #64748b;
  background: #f1f5f9;
}
.tt-notify-action {
  padding: 0 12px;
  color: var(--tt-accent-dark);
  background: var(--tt-accent-soft);
}
.tt-notify-error .tt-notify-icon { color: #b91c1c; background: #fee2e2; }
.tt-notify-warning .tt-notify-icon { color: #92400e; background: #fef3c7; }
.tt-notify-info .tt-notify-icon,
.tt-notify-question .tt-notify-icon { color: #08152b; background: #dbeafe; }
@media (max-width: 720px) {
  .tt-notify-stack {
    top: max(10px, env(safe-area-inset-top, 0px) + 8px);
    width: calc(100vw - 20px);
  }
  .tt-notify-card {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    border-radius: 16px;
    padding: 10px 10px 10px 12px;
  }
  .tt-notify-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }
}

/* Card PIX da página principal */
.tt-pix-card {
  margin: 14px 0 16px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--tt-accent-soft);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15,23,42,.06);
}
.tt-pix-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 17px;
  color: var(--tt-accent-dark);
  background: var(--tt-accent-soft);
  font-size: 1.35rem;
}
.tt-pix-body {
  min-width: 0;
}
.tt-pix-body span {
  display: block;
  color: var(--tt-accent-dark);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.tt-pix-body strong {
  display: block;
  color: #08152b;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.2;
}
.tt-pix-body small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: .86rem;
  font-weight: 600;
}
.tt-pix-code {
  margin-top: 10px;
  display: inline-flex;
  max-width: 100%;
  padding: 8px 10px;
  border: 1px dashed #86efac;
  border-radius: 12px;
  color: #166534;
  background: rgba(220,252,231,.6);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tt-pix-card .btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  font-weight: 850;
}
@media (max-width: 720px) {
  .tt-pix-card {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    padding: 15px;
    border-radius: 18px;
  }
  .tt-pix-icon {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    font-size: 1.15rem;
  }
  .tt-pix-card .btn {
    grid-column: 1 / -1;
    width: 100%;
  }
  .tt-pix-body strong {
    font-size: 1rem;
  }
}

/* =========================================================
   AJUSTE MOBILE: menu inferior colado no rodape do celular
   ========================================================= */
@media (max-width: 1099px) {
  body.tt-mobile-app .tt-main-area {
    padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.tt-mobile-app .tt-bottom-bar {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: auto !important;
    min-height: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 6px 10px calc(6px + env(safe-area-inset-bottom, 0px)) !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    border-left: 0 !important;
    border-radius: 18px 18px 0 0 !important;
    box-shadow: 0 -10px 30px rgba(17, 24, 39, .12) !important;
  }
}

@media (max-width: 420px) {
  body.tt-mobile-app .tt-bottom-bar {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    border-radius: 16px 16px 0 0 !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}

/* =========================================================
   MENU INFERIOR MOBILE: cor do tema + Enquete em destaque
   ========================================================= */
@media (max-width: 1099px) {
  body.tt-mobile-app .tt-main-area {
    padding-bottom: calc(102px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.tt-mobile-app .tt-bottom-bar {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 1190 !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    align-items: end !important;
    gap: 0 !important;
    width: auto !important;
    min-height: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    overflow: visible !important;
    isolation: isolate !important;
    border: 0 !important;
    border-radius: 22px 22px 0 0 !important;
    background: var(--tt-accent, #0b1d3a) !important;
    box-shadow: 0 -16px 36px rgba(15, 23, 42, .28) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body.tt-mobile-app .tt-bottom-bar::before {
    content: "";
    position: absolute;
    top: -34px;
    left: 50%;
    z-index: 0;
    width: 150px;
    height: 76px;
    transform: translateX(-50%);
    border-radius: 76px 76px 0 0;
    background: var(--tt-accent, #0b1d3a);
    box-shadow: 0 -12px 28px rgba(15, 23, 42, .22);
    pointer-events: none;
  }

  body.tt-mobile-app .tt-bottom-bar a,
  body.tt-mobile-app .tt-bottom-bar button {
    position: relative !important;
    z-index: 2 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    justify-self: center !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    color: #ffffff !important;
    background: transparent !important;
    opacity: .88 !important;
    box-shadow: none !important;
    font-size: 0 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    transform: none !important;
    transition: transform .16s ease, background .16s ease, opacity .16s ease, box-shadow .16s ease !important;
  }

  body.tt-mobile-app .tt-bottom-bar a i,
  body.tt-mobile-app .tt-bottom-bar button i {
    color: #ffffff !important;
    font-size: 1.28rem !important;
    line-height: 1 !important;
  }

  body.tt-mobile-app .tt-bottom-bar a span,
  body.tt-mobile-app .tt-bottom-bar button span,
  body.tt-mobile-app .tt-bottom-label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  body.tt-mobile-app .tt-bottom-bar a:not(.is-featured).is-active,
  body.tt-mobile-app .tt-bottom-bar a:not(.is-featured):hover,
  body.tt-mobile-app .tt-bottom-bar a:not(.is-featured):focus-visible {
    color: #ffffff !important;
    background: rgba(255, 255, 255, .16) !important;
    opacity: 1 !important;
  }

  body.tt-mobile-app .tt-bottom-bar a:not(.is-featured).is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 5px;
    height: 5px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: #ffffff;
    opacity: .95;
  }

  body.tt-mobile-app .tt-bottom-bar a.is-featured {
    z-index: 3 !important;
    width: 82px !important;
    height: 82px !important;
    min-width: 82px !important;
    min-height: 82px !important;
    margin-top: -36px !important;
    margin-bottom: 2px !important;
    border: 6px solid var(--tt-bg, #f6f7f9) !important;
    background: var(--tt-accent, #0b1d3a) !important;
    color: #ffffff !important;
    opacity: 1 !important;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .34), inset 0 0 0 1px rgba(255, 255, 255, .22) !important;
  }

  body.tt-mobile-app .tt-bottom-bar a.is-featured i {
    font-size: 2rem !important;
  }

  body.tt-mobile-app .tt-bottom-bar a.is-featured.is-active,
  body.tt-mobile-app .tt-bottom-bar a.is-featured:hover,
  body.tt-mobile-app .tt-bottom-bar a.is-featured:focus-visible {
    background: var(--tt-accent, #0b1d3a) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
  }

  body.tt-mobile-app .tt-bottom-bar a.is-locked {
    opacity: .52 !important;
  }
}

@media (max-width: 420px) {
  body.tt-mobile-app .tt-bottom-bar {
    min-height: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    border-radius: 18px 18px 0 0 !important;
  }

  body.tt-mobile-app .tt-bottom-bar::before {
    top: -31px;
    width: 138px;
    height: 70px;
  }

  body.tt-mobile-app .tt-bottom-bar a,
  body.tt-mobile-app .tt-bottom-bar button {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }

  body.tt-mobile-app .tt-bottom-bar a.is-featured {
    width: 76px !important;
    height: 76px !important;
    min-width: 76px !important;
    min-height: 76px !important;
    margin-top: -34px !important;
  }

  body.tt-mobile-app .tt-bottom-bar a.is-featured i {
    font-size: 1.86rem !important;
  }
}

/* === TT MOBILE REMOVE ESPACO MENU CONTEUDO 2026-05-19 ===
   Remove o espaco branco no topo mobile e aproxima o conteudo do menu superior
   em todas as paginas que usam o shell Materialize. */
@media (max-width: 1199.98px) {
  html.layout-navbar-fixed,
  html.layout-menu-fixed,
  html.layout-navbar-fixed.layout-menu-fixed {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  html.layout-navbar-fixed body.materialize-system,
  html.layout-menu-fixed body.materialize-system,
  body.materialize-system,
  body.tt-mobile-app {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  body.materialize-system .layout-wrapper,
  body.materialize-system .layout-container,
  body.materialize-system .layout-page,
  body.materialize-system .content-wrapper,
  html.layout-navbar-fixed body.materialize-system .layout-wrapper,
  html.layout-navbar-fixed body.materialize-system .layout-container,
  html.layout-navbar-fixed body.materialize-system .layout-page,
  html.layout-navbar-fixed body.materialize-system .content-wrapper {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  body.materialize-system #layout-navbar.layout-navbar.navbar-detached,
  html.layout-navbar-fixed body.materialize-system #layout-navbar.layout-navbar.navbar-detached,
  html.layout-navbar-fixed.layout-menu-fixed body.materialize-system #layout-navbar.layout-navbar.navbar-detached {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    inset-block-start: auto !important;
    inset-inline-start: auto !important;
    inset-inline-end: auto !important;
    width: 100% !important;
    inline-size: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    z-index: 20 !important;
  }

  body.materialize-system .content-wrapper,
  html.layout-navbar-fixed body.materialize-system .content-wrapper,
  body.materialize-system .layout-page .content-wrapper {
    padding-top: 0 !important;
  }

  body.materialize-system .tt-content-container,
  body.materialize-system .container-p-y.tt-content-container,
  body.materialize-system .container-xxl.tt-content-container {
    padding-top: .35rem !important;
  }

  body.materialize-system .tt-content-container > *:first-child,
  body.materialize-system .wrap:first-child,
  body.materialize-system .card:first-child,
  body.materialize-system .page-wrap:first-child,
  body.materialize-system .container-fluid:first-child,
  body.materialize-system .tt-dashboard-page:first-child {
    margin-top: 0 !important;
  }

  body.materialize-system .wrap {
    padding-top: 0 !important;
  }

  body.materialize-system > nav.navbar:not(#layout-navbar),
  body.tt-mobile-app > nav.navbar:not(#layout-navbar) {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
}

@media (max-width: 575.98px) {
  body.materialize-system .tt-content-container,
  body.materialize-system .container-p-y.tt-content-container,
  body.materialize-system .container-xxl.tt-content-container {
    padding-top: .25rem !important;
  }
}

/* === TT MOBILE MENU GRUDADO NO TOPO 2026-05-19 v2 ===
   Garante que o menu superior fique colado no topo do viewport mobile
   e que o conteudo acompanhe imediatamente abaixo dele, sem faixa branca. */
@media (max-width: 1199.98px) {
  html,
  html.layout-navbar-fixed,
  html.layout-menu-fixed,
  html.layout-navbar-fixed.layout-menu-fixed,
  body,
  body.materialize-system,
  body.tt-mobile-app,
  body.tt-mobile-app.materialize-system {
    margin-top: 0 !important;
    padding-top: 0 !important;
    scroll-padding-top: 0 !important;
  }

  body.materialize-system .layout-wrapper,
  body.materialize-system .layout-wrapper.layout-content-navbar,
  body.materialize-system .layout-container,
  body.materialize-system .layout-page,
  body.materialize-system .content-wrapper,
  html.layout-navbar-fixed body.materialize-system .layout-wrapper,
  html.layout-navbar-fixed body.materialize-system .layout-container,
  html.layout-navbar-fixed body.materialize-system .layout-page,
  html.layout-navbar-fixed body.materialize-system .content-wrapper {
    margin-top: 0 !important;
    margin-block-start: 0 !important;
    padding-top: 0 !important;
    padding-block-start: 0 !important;
    transform: none !important;
  }

  body.materialize-system .layout-wrapper::before,
  body.materialize-system .layout-container::before,
  body.materialize-system .layout-page::before,
  body.materialize-system .content-wrapper::before,
  body.materialize-system #layout-navbar::before {
    content: none !important;
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.materialize-system #layout-navbar.layout-navbar.navbar-detached,
  html.layout-navbar-fixed body.materialize-system #layout-navbar.layout-navbar.navbar-detached,
  html.layout-navbar-fixed.layout-menu-fixed body.materialize-system #layout-navbar.layout-navbar.navbar-detached {
    position: sticky !important;
    top: 0 !important;
    inset-block-start: 0 !important;
    left: 0 !important;
    right: 0 !important;
    inset-inline-start: 0 !important;
    inset-inline-end: 0 !important;
    width: 100% !important;
    inline-size: 100% !important;
    max-width: 100% !important;
    min-height: 3.2rem !important;
    height: auto !important;
    margin: 0 !important;
    margin-block-start: 0 !important;
    margin-inline: 0 !important;
    padding: .34rem .62rem !important;
    border-radius: 0 !important;
    z-index: 1140 !important;
    transform: none !important;
    box-shadow: 0 .18rem .75rem rgba(15,23,42,.10) !important;
  }

  body.materialize-system #layout-navbar .navbar-nav-right {
    width: 100% !important;
    min-height: 2.45rem !important;
    height: auto !important;
    gap: .45rem !important;
  }

  body.materialize-system #layout-navbar + .content-wrapper,
  body.materialize-system .layout-page > .content-wrapper,
  html.layout-navbar-fixed body.materialize-system #layout-navbar + .content-wrapper,
  html.layout-navbar-fixed body.materialize-system .layout-page > .content-wrapper {
    margin-top: 0 !important;
    margin-block-start: 0 !important;
    padding-top: 0 !important;
    padding-block-start: 0 !important;
  }

  body.materialize-system .tt-content-container,
  body.materialize-system .container-p-y.tt-content-container,
  body.materialize-system .container-xxl.tt-content-container,
  body.materialize-system .content-wrapper > .container-xxl,
  body.materialize-system .content-wrapper > .container-fluid {
    margin-top: 0 !important;
    margin-block-start: 0 !important;
    padding-top: .28rem !important;
    padding-block-start: .28rem !important;
  }

  body.materialize-system .tt-content-container > *:first-child,
  body.materialize-system .wrap > *:first-child,
  body.materialize-system .content-wrapper > *:first-child,
  body.materialize-system .container-fluid > *:first-child,
  body.materialize-system .container-xxl > *:first-child,
  body.materialize-system main > *:first-child {
    margin-top: 0 !important;
    margin-block-start: 0 !important;
  }

  body.materialize-system > nav.navbar:not(#layout-navbar),
  body.tt-mobile-app > nav.navbar:not(#layout-navbar),
  body.materialize-system .content-wrapper nav.navbar:not(#layout-navbar) {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
}

@media (max-width: 575.98px) {
  body.materialize-system #layout-navbar.layout-navbar.navbar-detached,
  html.layout-navbar-fixed body.materialize-system #layout-navbar.layout-navbar.navbar-detached,
  html.layout-navbar-fixed.layout-menu-fixed body.materialize-system #layout-navbar.layout-navbar.navbar-detached {
    min-height: 3.05rem !important;
    padding: .3rem .55rem !important;
  }

  body.materialize-system .tt-content-container,
  body.materialize-system .container-p-y.tt-content-container,
  body.materialize-system .container-xxl.tt-content-container,
  body.materialize-system .content-wrapper > .container-xxl,
  body.materialize-system .content-wrapper > .container-fluid {
    padding-top: .22rem !important;
    padding-block-start: .22rem !important;
  }
}

/* === TT MOBILE TOP GLUED FINAL 2026-05-19 v3 === */
@media (max-width: 1199.98px) {
  html.layout-navbar-fixed,
  html.layout-menu-fixed,
  html.layout-navbar-fixed.layout-menu-fixed,
  body.materialize-system,
  body.tt-mobile-app,
  body.tt-mobile-app.materialize-system { margin: 0 !important; padding: 0 !important; margin-top: 0 !important; padding-top: 0 !important; scroll-padding-top: 0 !important; }
  body.materialize-system .layout-wrapper,
  body.materialize-system .layout-wrapper.layout-content-navbar,
  body.materialize-system .layout-container,
  body.materialize-system .layout-page { margin: 0 !important; margin-top: 0 !important; padding: 0 !important; padding-top: 0 !important; transform: none !important; width: 100% !important; max-width: 100% !important; }
  body.materialize-system #layout-navbar.layout-navbar.navbar-detached,
  html.layout-navbar-fixed body.materialize-system #layout-navbar.layout-navbar.navbar-detached,
  html.layout-navbar-fixed.layout-menu-fixed body.materialize-system #layout-navbar.layout-navbar.navbar-detached { position: fixed !important; inset: 0 0 auto 0 !important; top: 0 !important; right: 0 !important; bottom: auto !important; left: 0 !important; inset-block-start: 0 !important; inset-inline-start: 0 !important; inset-inline-end: 0 !important; width: 100% !important; inline-size: 100% !important; max-width: 100% !important; min-height: 56px !important; height: 56px !important; margin: 0 !important; margin-block: 0 !important; margin-inline: 0 !important; padding: 8px 12px !important; border-radius: 0 !important; z-index: 1200 !important; transform: translate3d(0,0,0) !important; box-shadow: 0 .25rem .9rem rgba(15,23,42,.10) !important; }
  body.materialize-system #layout-navbar .navbar-nav-right { width: 100% !important; min-height: 40px !important; height: 40px !important; gap: .45rem !important; }
  body.materialize-system .content-wrapper,
  html.layout-navbar-fixed body.materialize-system .content-wrapper,
  body.materialize-system .layout-page > .content-wrapper { margin: 0 !important; margin-top: 0 !important; padding-top: 56px !important; transform: none !important; width: 100% !important; max-width: 100% !important; }
  body.materialize-system .tt-content-container,
  body.materialize-system .container-p-y.tt-content-container,
  body.materialize-system .container-xxl.tt-content-container,
  body.materialize-system .content-wrapper > .container-xxl,
  body.materialize-system .content-wrapper > .container-fluid { margin-top: 0 !important; padding-top: 8px !important; padding-block-start: 8px !important; }
  body.materialize-system .tt-content-container > *:first-child,
  body.materialize-system .wrap > *:first-child,
  body.materialize-system .content-wrapper > *:first-child,
  body.materialize-system .container-fluid > *:first-child,
  body.materialize-system .container-xxl > *:first-child,
  body.materialize-system main > *:first-child { margin-top: 0 !important; margin-block-start: 0 !important; }
  body.materialize-system .menu-mobile-toggler { display: none !important; height: 0 !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important; }
  body.materialize-system #layout-menu.layout-menu.menu-vertical { top: 0 !important; bottom: 0 !important; inset-block: 0 !important; height: 100dvh !important; }
  body.materialize-system > nav.navbar:not(#layout-navbar),
  body.tt-mobile-app > nav.navbar:not(#layout-navbar),
  body.materialize-system .content-wrapper nav.navbar:not(#layout-navbar) { display: none !important; height: 0 !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important; }
}
@media (max-width: 575.98px) {
  body.materialize-system #layout-navbar.layout-navbar.navbar-detached,
  html.layout-navbar-fixed body.materialize-system #layout-navbar.layout-navbar.navbar-detached,
  html.layout-navbar-fixed.layout-menu-fixed body.materialize-system #layout-navbar.layout-navbar.navbar-detached { min-height: 54px !important; height: 54px !important; padding: 7px 10px !important; }
  body.materialize-system #layout-navbar .navbar-nav-right { min-height: 40px !important; height: 40px !important; }
  body.materialize-system .content-wrapper,
  html.layout-navbar-fixed body.materialize-system .content-wrapper,
  body.materialize-system .layout-page > .content-wrapper { padding-top: 54px !important; }
  body.materialize-system .tt-content-container,
  body.materialize-system .container-p-y.tt-content-container,
  body.materialize-system .container-xxl.tt-content-container,
  body.materialize-system .content-wrapper > .container-xxl,
  body.materialize-system .content-wrapper > .container-fluid { padding-top: 6px !important; padding-block-start: 6px !important; }
}
