:root {
  --sidebar-bg: #0f1b2d;
  --sidebar-fg: #e8eef7;
  --sidebar-active: #1e3a5f;
  --page-bg: #eef1f5;
  --primary: #0d3b66;
  --table-head-bg: #0d3b66;
  --sidebar-width-collapsed: 3.5rem;
  --sidebar-width-expanded: 12rem;
}

* {
  box-sizing: border-box;
}

body.app-body {
  margin: 0;
  background: var(--page-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

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

.app-sidebar {
  width: var(--sidebar-width-collapsed);
  background: var(--sidebar-bg) !important;
  color: var(--sidebar-fg);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width 0.15s ease;
  z-index: 100;
  overflow: visible;
}

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

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

.app-sidebar.is-expanded .sidebar-label {
  display: inline;
}

.sidebar-brand-text {
  display: none;
  font-size: 0.95rem;
}

.app-sidebar.is-expanded .sidebar-brand-text {
  display: inline;
}

.sidebar-brand {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0.75rem 0.45rem;
}

.app-sidebar.is-expanded .sidebar-brand {
  justify-content: flex-start;
  padding-left: 0.75rem;
  padding-right: 1.35rem;
}

.sidebar-brand-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  text-decoration: none;
  line-height: 0;
}

.sidebar-logo {
  display: block;
  height: auto;
  max-width: 100%;
}

.sidebar-logo--full {
  display: none;
  height: 1.7rem;
  width: auto;
}

.sidebar-logo--lamp {
  display: block;
  width: 2.05rem;
  height: 2.05rem;
  margin: 0 auto;
  object-fit: contain;
}

.app-sidebar.is-expanded .sidebar-logo--full {
  display: block;
}

.app-sidebar.is-expanded .sidebar-logo--lamp {
  display: none;
}

.app-sidebar.is-expanded .sidebar-brand-link {
  justify-content: flex-start;
  width: auto;
}

.sidebar-logo-offcanvas {
  display: block;
  height: 1.7rem;
  width: auto;
}

/* Seta dupla na borda do menu (como no exemplo Corretor Manager) */
.sidebar-toggle {
  position: absolute;
  right: -1.15rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 1.55rem;
  height: 1.55rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.3rem;
  border: 1px solid rgba(148, 175, 210, 0.85);
  background: #152a45;
  color: #e8eef7;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(15, 27, 45, 0.35);
}

.sidebar-toggle:hover,
.sidebar-toggle:focus {
  background: #1e3a5f;
  color: #fff;
  border-color: #b8d0ef;
}

.sidebar-toggle .js-sidebar-chevron {
  font-size: 0.85rem;
  line-height: 1;
  display: block;
}

.auth-logo {
  width: min(220px, 100%);
  height: auto;
}

.auth-brand {
  line-height: 0;
}

/* Prompt do sistema acima de outros modais */
#app-prompt-modal {
  z-index: 1100;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

.app-sidebar.is-expanded .sidebar-nav {
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--sidebar-fg);
  text-decoration: none;
  padding: 0.55rem 0.35rem;
  border-radius: 0.35rem;
  margin-bottom: 0.15rem;
}

.app-sidebar.is-expanded .sidebar-link {
  justify-content: flex-start;
  padding-left: 0.65rem;
  padding-right: 0.65rem;
}

.sidebar-link > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  flex-shrink: 0;
  line-height: 1;
}

.sidebar-link:hover,
.sidebar-link:focus {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.sidebar-link.active {
  background: var(--sidebar-active);
  color: #fff;
}

.app-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.app-topbar {
  background: #fff;
  min-height: 0;
  padding: 0.2rem 0.5rem 0 1.35rem;
  align-items: flex-end;
  position: relative;
  z-index: 1;
  border-bottom-color: #c5d0de !important;
}

.workspace-tabs {
  min-height: 0;
  min-width: 0;
  align-items: flex-end !important;
  gap: 0.2rem !important;
  margin-bottom: -1px;
}

.workspace-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 14rem;
  font-size: 0.78rem;
  line-height: 1.2;
  padding: 0.28rem 0.35rem 0.28rem 0.55rem;
  margin: 0;
  border-radius: 0.3rem 0.3rem 0 0;
  border: 1px solid #c5d0de;
  border-bottom: 1px solid transparent;
  background: #e8eef5;
  color: #1a2b3d;
  cursor: pointer;
  appearance: none;
  position: relative;
  bottom: 0;
}

.workspace-tab:hover,
.workspace-tab:focus {
  background: #dce6f2;
  color: #0f1b2d;
}

.workspace-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  border-bottom-color: var(--primary);
  color: #fff;
  z-index: 2;
}

.workspace-tab-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-tab-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 0.2rem;
  font-size: 0.95rem;
  line-height: 1;
  opacity: 0.75;
  flex-shrink: 0;
}

.workspace-tab-close:hover,
.workspace-tab-close:focus {
  opacity: 1;
  background: rgba(0, 0, 0, 0.12);
}

.workspace-tab.active .workspace-tab-close:hover,
.workspace-tab.active .workspace-tab-close:focus {
  background: rgba(255, 255, 255, 0.22);
}

.app-content {
  flex: 1;
  padding-top: 0.5rem !important;
}

.path-line {
  line-height: 1.2;
}

.btn-icon {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.table-app {
  font-size: 0.875rem;
}

.table-app thead th {
  background: var(--table-head-bg);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  border-color: #0a2f52;
  padding: 0.4rem 0.55rem;
}

.table-app tbody tr:nth-child(even) {
  background: #f5f8fb;
}

.table-app tbody tr:hover {
  background: #e7f0fa;
}

.table-app td {
  padding: 0.35rem 0.55rem;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.json-preview {
  background: #0f1b2d;
  color: #e8eef7;
  border-radius: 0.35rem;
  padding: 0.75rem;
  font-size: 0.78rem;
  max-height: 420px;
  overflow: auto;
  margin: 0;
}

.panel {
  background: #fff;
}

.auth-body {
  background: linear-gradient(160deg, #0f1b2d 0%, #1a3354 45%, #eef1f5 45%);
  min-height: 100vh;
}

.auth-card {
  box-shadow: 0 8px 24px rgba(15, 27, 45, 0.18);
}

.caso-item .caso-frase {
  white-space: normal;
}

.nav-tabs-sm .nav-link {
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
}

.bilhete-wrap {
  max-width: 380px;
  margin: 0 auto;
}

.bilhete {
  background: #fff;
  border: 1.5px dashed #9aa4b2;
  border-radius: 0.35rem;
  padding: 0.85rem 0.95rem 1rem;
  font-size: 0.84rem;
  color: #1a2332;
}

.bilhete-header {
  text-align: center;
  padding-bottom: 0.35rem;
}

.bilhete-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.bilhete-logo-img {
  width: min(200px, 85%);
  height: auto;
  display: block;
}

.bilhete-lotteria {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: #1a2332;
  line-height: 1.15;
}

.bilhete-sub {
  font-size: 0.78rem;
  color: #8a94a0;
  letter-spacing: 0.04em;
  margin-top: 0.1rem;
}

.bilhete-sep {
  border-top: 1.5px dashed #b8c0cb;
  margin: 0.65rem 0;
}

.bilhete-info {
  display: grid;
  gap: 0.28rem;
  font-size: 0.86rem;
}

.bilhete-info-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}

.bilhete-info-row > span:first-child {
  color: #4a5568;
  flex-shrink: 0;
}

.bilhete-info-row > span:last-child {
  text-align: right;
  word-break: break-word;
}

.bilhete-status {
  font-weight: 700;
  color: #5c6b7a;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.bilhete-jogos-titulo {
  display: none; /* layout da referência não tem título "Jogos" explícito além dos cards */
}

.bilhete-jogo {
  border: 1px solid #c5ccd6;
  border-radius: 0.4rem;
  overflow: hidden;
  margin-bottom: 0.55rem;
  background: #fff;
}

.bilhete-jogo:last-child {
  margin-bottom: 0;
}

.bilhete-jogo-cab {
  background: #4a5568;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  padding: 0.4rem 0.5rem;
}

.bilhete-jogo-corpo {
  padding: 0.55rem 0.65rem 0.55rem;
}

.bilhete-jogo-numeros {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}

.bilhete-jogo-numero {
  display: inline-block;
  border: 2px solid #1a2332;
  border-radius: 0.4rem;
  padding: 0.2rem 0.55rem;
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0;
}

.bilhete-jogo-rateio {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.bilhete-jogo-rateio-txt {
  color: #1a2332;
}

.bilhete-jogo-valor {
  font-weight: 700;
  white-space: nowrap;
}

.bilhete-totais-centro {
  text-align: center;
  padding: 0.15rem 0 0.25rem;
}

.bilhete-total-label {
  font-size: 0.8rem;
  color: #8a94a0;
  margin-bottom: 0.15rem;
}

.bilhete-total-valor {
  font-size: 1.55rem;
  font-weight: 800;
  color: #2d3748;
  line-height: 1.1;
}

.bilhete-rodape {
  font-size: 0.78rem;
  color: #4a5568;
}

.bilhete-rodape-row,
.bilhete-rodape-hash {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.2rem;
  word-break: break-all;
}

.bilhete-hash {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.01em;
}

.bilhete-aviso {
  margin: 0.55rem 0 0;
  text-align: center;
  font-size: 0.68rem;
  color: #8a94a0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.bilhete-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  margin-top: 0.75rem;
  background: #4a5568;
  color: #fff;
  border: none;
  border-radius: 0.65rem;
  padding: 0.7rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.bilhete-share-btn:hover,
.bilhete-share-btn:focus {
  background: #3a4454;
  color: #fff;
}

.bilhete-editor .js-atalhos-modalidade .btn {
  font-size: 0.78rem;
  padding: 0.2rem 0.45rem;
}

.chip-select-toolbar {
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
  width: 100%;
}

.chip-select-toolbar .chip-select {
  flex: 1 1 auto;
  min-width: 0;
}

.bilhete-toolbar-btn {
  flex: 0 0 auto;
  width: 2.25rem;
  min-height: calc(1.5em + 0.5rem + 2px);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
}

.bilhete-toolbar-btn .bi {
  font-size: 1.05rem;
  line-height: 1;
}

.bilhete-ia-panel .form-control {
  resize: vertical;
}

/* Modal de texto IA empilhado sobre o modal de montar/editar */
.modal.modal-ia-stack {
  z-index: 1065;
}
body.modal-open .modal-backdrop ~ .modal-backdrop {
  z-index: 1060;
}

.bilhete-jogos-lateral {
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  min-height: 14rem;
  max-height: min(52vh, 28rem);
  overflow: hidden;
  height: 100%;
}

.bilhete-jogos-lateral__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
  flex-shrink: 0;
}

.bilhete-jogos-lateral__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  background: var(--primary, #0d3b66);
  color: #fff;
  flex-shrink: 0;
}

.bilhete-jogos-total__caption {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.9;
}

.bilhete-jogos-total__valor {
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.bilhete-jogos-lateral__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 0.5rem;
}

/* Modal montar/editar: altura fixa no desktop; fullscreen no mobile */
.bilhete-modal .modal-dialog {
  height: min(92vh, 40rem);
  max-height: 92vh;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.bilhete-modal .modal-content {
  height: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.bilhete-modal .modal-header,
.bilhete-modal .modal-footer {
  flex-shrink: 0;
}

.bilhete-modal .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bilhete-modal .bilhete-modal__hint {
  flex-shrink: 0;
}

.bilhete-modal .bilhete-editor {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.bilhete-modal .bilhete-editor > .js-bilhete-form {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.bilhete-modal .bilhete-editor__layout {
  flex: 1 1 auto;
  min-height: 0;
  align-items: stretch;
}

@media (min-width: 992px) {
  .bilhete-modal .bilhete-editor__layout > [class*="col-"] {
    min-height: 0;
    max-height: 100%;
  }

  .bilhete-modal .bilhete-editor__side {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .bilhete-modal .bilhete-jogos-lateral {
    max-height: none;
    min-height: 0;
    flex: 1 1 auto;
    min-width: 0;
  }
}

@media (max-width: 991.98px) {
  .bilhete-modal .modal-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .bilhete-modal .bilhete-editor,
  .bilhete-modal .bilhete-editor > .js-bilhete-form,
  .bilhete-modal .bilhete-editor__layout {
    display: block;
    flex: none;
    min-height: 0;
    height: auto;
    max-height: none;
  }

  .bilhete-modal .bilhete-jogos-lateral {
    max-height: 12rem;
    min-height: 9rem;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 575.98px) {
  .bilhete-modal .modal-dialog {
    height: 100%;
    max-height: 100%;
    margin: 0;
  }

  .bilhete-modal .modal-content {
    height: 100%;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .bilhete-modal .modal-body {
    padding: 0.75rem;
  }

  .bilhete-modal .modal-footer {
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
  }

  .bilhete-modal .bilhete-jogos-lateral {
    max-height: 11rem;
  }

  .bilhete-jogos-total__valor {
    font-size: 1.25rem;
  }
}

.bilhete-jogo-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  padding: 0.45rem 0.55rem;
  margin-bottom: 0.4rem;
  overflow: hidden;
  max-width: 100%;
}

.bilhete-jogo-item:last-child {
  margin-bottom: 0;
}

.bilhete-jogo-item__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  min-width: 0;
}

.bilhete-jogo-item__main {
  flex: 1 1 auto;
  min-width: 0;
}

.bilhete-jogo-item__titulo {
  font-size: 0.875rem;
  line-height: 1.25;
}

.bilhete-jogo-item__palpites {
  font-size: 0.8125rem;
  line-height: 1.35;
  color: #334155;
  overflow-wrap: anywhere;
  word-break: break-word;
  margin-top: 0.1rem;
}

.bilhete-jogo-item__side {
  flex: 0 0 auto;
  max-width: 42%;
}

.bilhete-jogo-item__side .btn-group .btn {
  min-width: 2rem;
  min-height: 1.75rem;
}

.bilhete-jogo-item__meta {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.15rem;
}

.chip-select {
  position: relative;
}

.chip-select__field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  min-height: calc(1.5em + 0.5rem + 2px);
  height: auto;
  cursor: text;
  padding: 0.25rem 0.5rem;
}

.chip-select__field.is-open {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.2);
}

.chip-select__chips {
  display: contents;
}

.chip-select__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #cfe2ff;
  color: #084298;
  border-radius: 999px;
  padding: 0.1rem 0.45rem 0.1rem 0.55rem;
  font-size: 0.8rem;
  line-height: 1.35;
  max-width: 100%;
}

.chip-select__chip-x {
  border: 0;
  background: transparent;
  color: #084298;
  font-size: 1rem;
  line-height: 1;
  padding: 0 0.1rem;
  cursor: pointer;
}

.chip-select__input {
  border: 0;
  outline: 0;
  flex: 1 1 8rem;
  min-width: 6rem;
  background: transparent;
  font-size: 0.875rem;
  padding: 0.1rem 0;
}

.chip-select__list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  z-index: 1080;
  max-height: 220px;
  overflow: auto;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  box-shadow: 0 0.5rem 1rem rgba(15, 23, 42, 0.12);
}

.chip-select__option {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
}

.chip-select__option:hover {
  background: #f1f5f9;
}

.chip-select__option.is-selected {
  background: #e7f1ff;
  color: #0a58ca;
  font-weight: 600;
}

.chip-select__check {
  width: 1rem;
  opacity: 0;
}

.chip-select__option.is-selected .chip-select__check {
  opacity: 1;
}

.bilhete-ext-lista {
  max-height: 320px;
  overflow: auto;
}

.bilhete-palpite-lista {
  min-height: 7.5rem;
  max-height: 16rem;
  overflow: auto;
  background: #f8fafc;
}

.bilhete-palpite-chip {
  font-variant-numeric: tabular-nums;
}

.bilhete-linha-card {
  border-color: #d7dde7 !important;
}

.bilhete-linha-card .form-text {
  min-height: 1.1rem;
}

@media (max-width: 767.98px) {
  .app-sidebar {
    display: none !important;
  }

  .app-shell {
    display: block;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
  }

  .app-main {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
  }

  /* Topo escuro, colado nas bordas (contraste do menu) */
  .app-topbar {
    background: var(--sidebar-bg) !important;
    color: var(--sidebar-fg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    padding: 0.45rem 0.5rem;
    padding-left: max(0.5rem, env(safe-area-inset-left));
    padding-right: max(0.5rem, env(safe-area-inset-right));
    padding-top: max(0.45rem, env(safe-area-inset-top));
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.4rem;
    min-height: 2.75rem;
    margin: 0;
    width: 100%;
    border-radius: 0;
  }

  .app-topbar-menu {
    flex-shrink: 0;
    border-color: rgba(255, 255, 255, 0.45) !important;
    color: #fff !important;
  }

  .app-topbar-menu:hover,
  .app-topbar-menu:focus {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
  }

  .app-topbar .btn {
    min-width: 2.5rem;
    min-height: 2.5rem;
  }

  .workspace-tabs {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    margin-bottom: 0;
    gap: 0.25rem !important;
    align-items: center !important;
    flex-wrap: wrap;
  }

  .workspace-tab {
    max-width: calc(50vw - 1.5rem);
    min-height: 2.25rem;
    padding: 0.35rem 0.4rem 0.35rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #e8eef7;
    bottom: auto;
  }

  .workspace-tab:hover,
  .workspace-tab:focus {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
  }

  .workspace-tab.active {
    background: #fff;
    border-color: #fff;
    color: var(--sidebar-bg);
  }

  .workspace-tab.active .workspace-tab-close:hover,
  .workspace-tab.active .workspace-tab-close:focus {
    background: rgba(15, 27, 45, 0.12);
  }

  .workspace-tab-close:hover,
  .workspace-tab-close:focus {
    background: rgba(255, 255, 255, 0.18);
  }

  .app-content {
    padding: 0.65rem !important;
    padding-top: 0.5rem !important;
  }

  .path-line {
    font-size: 0.75rem;
    margin-bottom: 0.5rem !important;
  }

  .list-mobile .btn {
    min-width: 2.5rem;
    min-height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .list-mobile .border.rounded,
  .list-mobile .bilhete-card-mobile {
    padding: 0.75rem !important;
  }

  .bilhete-card-mobile {
    overflow: hidden;
    max-width: 100%;
  }

  .bilhete-card-mobile__main {
    min-width: 0;
    overflow: hidden;
  }

  .bilhete-card-mobile__actions {
    flex-shrink: 0;
  }

  .bilhete-card-mobile .js-tx-cell {
    max-width: 100%;
  }

  .bilhete-card-mobile .js-tx-input {
    min-width: 0;
  }

  #mobile-nav .sidebar-link {
    min-height: 2.75rem;
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.25rem;
    font-size: 1rem;
  }

  #mobile-nav .sidebar-link span {
    display: inline;
  }

  .bilhete-toolbar-btn {
    width: 2.5rem;
    min-height: 2.5rem;
  }

  .bilhete-wrap {
    max-width: none;
  }

  .form-control,
  .form-select,
  .btn {
    max-width: 100%;
  }

  .table-responsive {
    max-width: 100%;
  }
}

@media print {
  body.printing-bilhete * {
    visibility: hidden !important;
  }

  body.printing-bilhete .bilhete-wrap.is-printing,
  body.printing-bilhete .bilhete-wrap.is-printing * {
    visibility: visible !important;
  }

  body.printing-bilhete .bilhete-wrap.is-printing {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  body.printing-bilhete .bilhete-share-btn,
  body.printing-bilhete .modal-header,
  body.printing-bilhete .modal-footer {
    display: none !important;
  }
}
