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

[hidden] {
  display: none !important;
}

:root {
  --bg: #eef2f7;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --line: #dbe4ef;
  --green: #0f766e;
  --green-strong: #15803d;
  --blue: #2563eb;
  --warning: #facc15;
  --danger: #b91c1c;
  --shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

body {
  background: var(--bg);
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  padding: 18px;
}

.app {
  max-width: 1300px;
  margin: auto;
}

/* MENU */

.btn-menu {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 1001;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.75);
  color: white;
  font-size: 26px;
  cursor: pointer;
}

.menu-lateral {
  position: fixed;
  top: 0;
  left: -280px;
  width: 260px;
  height: 100vh;
  background: var(--text);
  color: white;
  z-index: 1002;
  padding: 22px;
  box-shadow: 12px 0 30px rgba(0,0,0,0.35);
  transition: 0.3s ease;
}

.menu-lateral.aberto {
  left: 0;
}

.menu-lateral h2 {
  margin-bottom: 24px;
  font-size: 22px;
}

.menu-lateral a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 14px;
  border-radius: 14px;
  font-weight: 800;
  margin-bottom: 10px;
  background: rgba(255,255,255,0.08);
}

.menu-lateral a:hover {
  background: #16a34a;
}

.usuario-box {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.14);
}

.usuario-box span {
  display: block;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
  word-break: break-word;
  margin-bottom: 10px;
}

.usuario-box button {
  width: 100%;
  min-height: 42px;
  border: none;
  border-radius: 12px;
  background: #ef4444;
  color: white;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.btn-atualizar-flutuante {
  position: fixed;
  top: 18px;
  left: 76px;
  z-index: 1001;
  min-height: 46px;
  border: none;
  border-radius: 14px;
  background: var(--green);
  color: white;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.24);
}

.btn-atualizar-flutuante:disabled {
  cursor: wait;
  opacity: 0.72;
}

.btn-busca-flutuante {
  display: none;
  position: fixed;
  top: 18px;
  left: 130px;
  z-index: 1001;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 14px;
  background: #ffffff;
  color: var(--text);
  font-size: 19px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.btn-menu,
.btn-atualizar-flutuante,
.btn-busca-flutuante {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.35);
  color: #ffffff;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.fechar-menu {
  background: none;
  border: none;
  color: white;
  font-size: 34px;
  float: right;
  cursor: pointer;
}

.fundo-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1000;
}

.fundo-menu.aberto {
  display: block;
}

/* TOPO */

.topo {
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: white;
  border-radius: 20px;
  padding: 24px;
  margin-top: 58px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo-fly {
  width: 95px;
  height: 95px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.75);
  margin-bottom: 12px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.35);
}

.titulo-topo h1 {
  font-size: 30px;
  letter-spacing: 2px;
  font-weight: 900;
}

.titulo-topo p {
  margin-top: 6px;
  color: #dbeafe;
  font-weight: 700;
}

/* ABAS */

.abas {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  margin: 4px -2px 18px;
  padding: 4px 2px 10px;
  scroll-snap-type: x proximity;
}

.aba {
  border: none;
  background: var(--surface);
  color: var(--text);
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  scroll-snap-align: start;
  box-shadow: 0 10px 24px rgba(15,23,42,0.10);
  border: 1px solid rgba(148,163,184,0.24);
}

.aba.ativa {
  background: var(--green);
  color: white;
  box-shadow: 0 12px 26px rgba(15,118,110,0.28);
}

.oculto {
  display: none !important;
}

/* RESUMO */

.resumo {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.resumo-compacto {
  width: fit-content;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 6px 16px rgba(15,23,42,0.08);
}

.resumo-compacto strong {
  color: var(--muted);
}

.resumo-compacto span {
  color: var(--muted);
}

.resumo-compacto small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.resumo-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: 0 14px 34px rgba(15,23,42,0.08);
}

.resumo-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.resumo-card strong {
  display: block;
  font-size: 27px;
  color: var(--green-strong);
  line-height: 1.1;
}

.resumo-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: bold;
}

.barra-acoes {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: 0 10px 24px rgba(15,23,42,0.08);
}

.grupo-acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.funcoes-titulo span,
.funcoes-titulo small {
  display: block;
}

.funcoes-titulo span {
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
}

.funcoes-titulo small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.btn-acao {
  min-height: 42px;
  border: none;
  border-radius: 12px;
  background: var(--green);
  color: white;
  padding: 0 15px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15,118,110,0.20);
}

.btn-acao.secundario {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.btn-acao.destaque {
  background: var(--blue);
}

.btn-acao:disabled {
  cursor: wait;
  opacity: 0.7;
}

.ultima-atualizacao {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.busca-report {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: 0 10px 24px rgba(15,23,42,0.08);
}

.busca-report label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.busca-report input {
  width: 100%;
  min-height: 46px;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.busca-resumo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.busca-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  padding: 13px;
}

.busca-card span,
.busca-card small {
  display: block;
}

.busca-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.busca-card strong {
  display: block;
  margin: 5px 0;
  color: var(--text);
  font-size: 22px;
}

.busca-card small {
  color: var(--green-strong);
  font-size: 13px;
  font-weight: 900;
}

.busca-card.pendente {
  border-color: #fecaca;
}

.busca-card.andamento {
  border-color: #fde68a;
}

.busca-card.pago {
  border-color: #bbf7d0;
}

.busca-card.total {
  border-color: #bfdbfe;
}

.busca-card.pix {
  border-color: #99f6e4;
}

.busca-card.pix-real {
  border-color: #c4b5fd;
}

/* CADASTRO */

.cadastro-passagem-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 10px 24px rgba(15,23,42,0.08);
}

.cadastro-passagem-card.oculto,
.campo-real.oculto {
  display: none;
}

.cadastro-passagem-topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.btn-fechar-cadastro {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 12px;
  background: #eef2f7;
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.cadastro-passagem-topo span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.cadastro-passagem-topo strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.cadastro-passagem-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.cadastro-passagem-form label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.cadastro-passagem-form input,
.cadastro-passagem-form select,
.cadastro-passagem-form textarea {
  width: 100%;
  height: 44px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  background: white;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.cadastro-passagem-form textarea {
  height: auto;
  min-height: 92px;
  padding-top: 12px;
  padding-bottom: 12px;
  line-height: 1.35;
  resize: vertical;
}

.cadastro-passagem-form input[readonly] {
  background: var(--surface-soft);
  color: var(--green-strong);
}

.cadastro-passagem-form .campo-largo {
  grid-column: span 2;
}

.cadastro-passagem-form button {
  align-self: end;
  height: 44px;
}

.cadastro-passagem-status {
  min-height: 20px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.cadastro-passagem-status.erro {
  color: var(--danger);
}

.cadastro-passagem-status.sucesso {
  color: var(--green-strong);
}

/* TABELA */

.table-wrapper {
  background: var(--surface);
  border-radius: 20px;
  overflow-x: auto;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 1220px;
  border-collapse: collapse;
}

th {
  background: var(--green);
  color: white;
  padding: 13px;
  text-transform: uppercase;
  font-size: 12px;
}

td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-size: 13px;
}

tbody tr:nth-child(even) {
  background: var(--surface-soft);
}

.passageiro {
  text-align: left;
  font-weight: 700;
  text-transform: uppercase;
}

.btn-passageiro-acoes {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  padding: 8px 10px;
  border-radius: 10px;
  font: inherit;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.btn-passageiro-acoes:hover {
  background: #eef7f5;
  color: var(--green-strong);
}

.passageiros-resumo {
  display: block;
  color: var(--green-strong);
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 5px;
}

.passageiros-lista {
  display: grid;
  gap: 3px;
}

.passageiros-lista span {
  display: block;
  line-height: 1.25;
}

.valor {
  font-weight: 900;
  color: var(--green-strong);
  white-space: nowrap;
}

.valor-total {
  color: #0f766e;
  background: transparent;
  border-radius: 0;
}

.linha-total-colunas {
  background: #f8fafc;
}

.linha-total-colunas td {
  border-top: 2px solid var(--green);
  border-bottom: 0;
  font-size: 14px;
  font-weight: 900;
}

.linha-total-colunas .total-label {
  color: var(--text);
  text-align: right;
  letter-spacing: 0;
}

.banco {
  font-weight: 900;
  text-transform: uppercase;
}

.invoice-cell {
  min-width: 150px;
}

.invoice-cell small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.btn-invoice {
  min-height: 34px;
  border: none;
  border-radius: 12px;
  background: var(--blue);
  color: white;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(37,99,235,0.20);
}

.acoes-report-cell {
  min-width: 170px;
}

.acoes-linha {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 5px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.linha-report.aberta .acoes-linha {
  display: inline-flex;
}

.linha-report.aberta .status-passagem {
  display: none;
}

.status-passagem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 12px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.status-passagem.status-pago {
  background: #dcfce7;
  color: #166534;
}

.status-passagem.status-andamento {
  background: #dbeafe;
  color: #1d4ed8;
}

.btn-linha {
  width: auto;
  min-width: 68px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #e2e8f0;
  color: var(--text);
  padding: 0 12px;
  margin-left: 0;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.btn-linha.perigo {
  background: #f1f5f9;
  color: #b91c1c;
}

.btn-linha:hover,
.btn-invoice:hover {
  transform: translateY(-1px);
}

.invoice-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(15,23,42,0.60);
  padding: 18px;
  overflow-y: auto;
}

.invoice-modal.aberto {
  display: grid;
  place-items: center;
}

.invoice-card {
  width: min(620px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.32);
}

.invoice-card-topo {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 20px 12px;
  border-bottom: 1px solid var(--line);
}

.invoice-card-topo span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.invoice-card-topo h2 {
  margin-top: 4px;
  font-size: 22px;
  line-height: 1.2;
}

.btn-fechar-invoice {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: #eef2f7;
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.invoice-form {
  display: grid;
  gap: 13px;
  padding: 18px 20px 22px;
}

.invoice-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.invoice-form input,
.invoice-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  padding: 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  outline: none;
}

.invoice-form input:focus,
.invoice-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.invoice-form input[readonly] {
  background: var(--surface-soft);
  color: var(--text);
}

.invoice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.invoice-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  padding: 14px;
}

.invoice-total span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.invoice-total strong {
  color: var(--green-strong);
  font-size: 20px;
}

.invoice-status {
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.invoice-status.salvando {
  color: var(--blue);
}

.invoice-status.sucesso {
  color: var(--green-strong);
}

.invoice-status.erro {
  color: var(--danger);
}

.btn-baixar-invoice {
  min-height: 48px;
  border: none;
  border-radius: 13px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  background: var(--green);
  color: white;
  box-shadow: 0 10px 22px rgba(15,118,110,0.22);
}

.btn-baixar-invoice.secundario {
  background: #2563eb;
  box-shadow: 0 10px 22px rgba(37,99,235,0.20);
}

.btn-baixar-invoice:disabled {
  cursor: wait;
  opacity: 0.75;
}

.btn-invoice:disabled,
.btn-dizimo:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.vazio,
.erro,
.estado {
  padding: 22px;
  text-align: center;
  font-weight: bold;
}

.erro {
  color: var(--danger);
}

.estado-carregando {
  color: var(--green);
}

.estado-card {
  display: grid;
  min-height: 96px;
  place-items: center;
  color: var(--green);
  font-weight: 900;
}

footer {
  text-align: center;
  margin-top: 24px;
  color: var(--muted);
  font-size: 12px;
}

/* TABLET */

@media (max-width: 850px) {
  .resumo {
    grid-template-columns: 1fr 1fr;
  }
}

/* CELULAR */
@media (max-width: 600px) {

body {
padding: 12px;
}

.btn-atualizar-flutuante {
left: 72px;
padding: 0 14px;
min-height: 46px;
font-size: 12px;
}

.topo {
margin-top: 58px;
}

.resumo {
grid-template-columns: 1fr;
gap: 10px;
}

.barra-acoes {
flex-direction: column;
align-items: stretch;
padding: 14px;
}

.funcoes-titulo {
text-align: center;
}

.grupo-acoes {
display: grid;
grid-template-columns: 1fr;
}

.grupo-acoes .btn-acao:first-child {
grid-column: auto;
}

.btn-acao {
min-height: 48px;
}

.cadastro-passagem-card {
padding: 16px;
border-radius: 18px;
}

.cadastro-passagem-form {
grid-template-columns: 1fr;
}

.cadastro-passagem-form .campo-largo {
grid-column: auto;
}

.cadastro-passagem-form button {
width: 100%;
min-height: 48px;
}

.ultima-atualizacao {
text-align: center;
}

.resumo-periodo,
.resumo-trans,
.resumo-total {
display: none;
}

.resumo-card {
border-radius: 14px;
padding: 15px;
}

.resumo-card strong {
font-size: 21px;
}

.table-wrapper {
background: var(--surface);
box-shadow: 0 10px 28px rgba(0,0,0,0.12);
border-radius: 24px;
padding: 16px;
overflow: visible;
}

.table-wrapper::before {
content: "📋 PASSAGEIROS DO REPORT";
display: block;
color: var(--text);
font-size: 14px;
font-weight: 900;
letter-spacing: 1px;
margin-bottom: 14px;
text-transform: uppercase;
}

table {
width: 100%;
min-width: 0;
border-collapse: collapse;
}

thead {
display: none;
}

tbody {
display: flex;
flex-direction: column;
gap: 14px;
}

tbody tr.linha-report {
display: block;
background: var(--surface-soft);
border: 1px solid var(--line);
border-radius: 18px;
padding: 18px 16px;
box-shadow: 0 6px 16px rgba(0,0,0,0.08);
cursor: pointer;
overflow: hidden;
}

tbody tr.linha-report td {
display: none;
border: none;
padding: 0;
text-align: left;
}

tbody tr.linha-report td:nth-child(1),
tbody tr.linha-report td:nth-child(4),
tbody tr.linha-report td:nth-child(9) {
display: block;
}

tbody tr.linha-report td:nth-child(1) {
color: var(--muted);
font-size: 12px;
font-weight: 900;
margin-bottom: 12px;
}

tbody tr.linha-report td:nth-child(4) {
color: var(--text);
font-size: 16px;
font-weight: 900;
line-height: 1.35;
text-transform: uppercase;
}

tbody tr.linha-report td:nth-child(9) {
margin-top: 12px;
}

tbody tr.linha-report td:nth-child(9)::before {
content: "";
}

tbody tr.linha-report td:nth-child(9) .btn-invoice {
width: 100%;
min-height: 44px;
}

tbody tr.linha-report td:nth-child(4)::after {
content: "Toque para ver detalhes";
display: block;
margin-top: 8px;
color: var(--muted);
font-size: 11px;
font-weight: 700;
text-transform: none;
}

tbody tr.linha-report.aberta td {
display: flex;
justify-content: space-between;
gap: 12px;
padding: 10px 0;
border-top: 1px solid var(--line);
}

tbody tr.linha-report.aberta td::before {
content: attr(data-label);
color: var(--muted);
font-weight: 900;
text-transform: uppercase;
font-size: 11px;
}

tbody tr.linha-report.aberta td:nth-child(1),
tbody tr.linha-report.aberta td:nth-child(4),
tbody tr.linha-report.aberta td:nth-child(9) {
display: block;
border-top: none;
padding: 0;
}

tbody tr.linha-report.aberta td:nth-child(1) {
margin-bottom: 12px;
}

tbody tr.linha-report.aberta td:nth-child(1)::before,
tbody tr.linha-report.aberta td:nth-child(4)::before,
tbody tr.linha-report.aberta td:nth-child(9)::before {
content: "";
}

tbody tr.linha-report.aberta td:nth-child(4)::after {
content: "Detalhes abertos";
color: var(--green-strong);
}

.invoice-modal {
padding: 10px;
align-items: start;
}

.invoice-modal.aberto {
place-items: start center;
}

.invoice-card {
max-height: calc(100vh - 20px);
border-radius: 16px;
}

.invoice-card-topo h2 {
font-size: 19px;
}

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

}
.dizimo-card {
  border: 2px solid #facc15;
  background: linear-gradient(180deg, #fffdf3 0%, #ffffff 100%);
}

.dizimo-card strong {
  color: #ca8a04;
}

.dizimo-card.andamento {
  border-color: #facc15;
}

.dizimo-card.pago {
  border-color: #22c55e;
  background: #f0fdf4;
}

.dizimo-card.pago strong {
  color: var(--green-strong);
}

.btn-dizimo {
  margin-top: 12px;
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 12px 14px;
  font-weight: 900;
  cursor: pointer;
  background: #facc15;
  color: #422006;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.08);
}

.dizimo-card.pago .btn-dizimo {
  background: #16a34a;
  color: white;
}

/* FILTRO DA TABELA */

.empresa-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(219, 228, 239, 0.95);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.empresa-toolbar span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.empresa-toolbar strong {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
}

.empresa-toolbar small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.filtro-empresas {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  background: var(--line);
  border-radius: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.empresa-opcao {
  min-width: 116px;
  min-height: 42px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  padding: 0 12px;
}

.empresa-opcao.ativa {
  background: var(--green);
  color: white;
  box-shadow: 0 7px 16px rgba(15,118,110,0.22);
}

@media (max-width: 600px) {
  .empresa-toolbar {
    display: block;
    background: var(--surface);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.10);
  }

  .empresa-toolbar strong {
    font-size: 18px;
  }

  .empresa-toolbar small {
    font-size: 11px;
    line-height: 1.35;
  }

  .filtro-empresas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
    padding: 0;
    width: 100%;
    background: transparent;
  }

  .empresa-opcao {
    min-width: 0;
    min-height: 50px;
    border-radius: 12px;
    background: #eef2f7;
    font-size: 11px;
    line-height: 1.15;
    padding: 0 8px;
  }

  .empresa-opcao.ativa {
    background: var(--green);
    box-shadow: 0 8px 18px rgba(15,118,110,0.24);
  }
}

@media print {
  body {
    background: white;
    padding: 0;
  }

.btn-menu,
.btn-atualizar-flutuante,
  .menu-lateral,
  .fundo-menu,
  .abas,
  .barra-acoes,
  footer {
    display: none !important;
  }

  .topo,
  .resumo-card,
  .table-wrapper,
  .empresa-toolbar {
    box-shadow: none;
  }

  .table-wrapper {
    overflow: visible;
  }

  table {
    min-width: 0;
  }
}

/* POLIMENTO VISUAL 1.0.1 */

:root {
  --bg-dark: #07111f;
  --bg-dark-2: #0b2238;
  --surface-glass: rgba(255, 255, 255, 0.94);
  --radius-xl: 22px;
  --radius-md: 14px;
  --focus: 0 0 0 4px rgba(37, 99, 235, 0.18);
}

body {
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.24), transparent 32rem),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.26), transparent 34rem),
    linear-gradient(135deg, var(--bg-dark), var(--bg-dark-2) 48%, #eef2f7 48%);
  background-attachment: fixed;
}

.app {
  padding-bottom: 26px;
}

.topo,
.resumo-card,
.cadastro-passagem-card,
.empresa-toolbar,
.table-wrapper,
.invoice-card {
  border: 1px solid rgba(219, 228, 239, 0.9);
}

.topo {
  position: relative;
  overflow: hidden;
}

.topo::after {
  content: "";
  position: absolute;
  inset: auto -15% -55% 55%;
  height: 220px;
  background: rgba(255, 255, 255, 0.12);
  transform: rotate(-18deg);
}

.topo > * {
  position: relative;
  z-index: 1;
}

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

.resumo-card {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--surface-glass);
  border-radius: var(--radius-xl);
}

.resumo-card strong {
  letter-spacing: 0;
}

.resumo-total strong {
  color: #0f766e;
}

.dizimo-card {
  justify-content: space-between;
}

.btn-acao,
.btn-baixar-invoice,
.btn-invoice,
.btn-linha,
.empresa-opcao,
.btn-dizimo,
.btn-fechar-cadastro,
.btn-fechar-invoice {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.btn-acao:hover,
.btn-baixar-invoice:hover,
.btn-invoice:hover,
.empresa-opcao:hover,
.btn-dizimo:hover {
  transform: translateY(-1px);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-color: var(--blue);
}

.cadastro-passagem-card {
  background: var(--surface-glass);
}

.cadastro-passagem-form input,
.cadastro-passagem-form select,
.invoice-form input,
.invoice-form textarea {
  min-height: 48px;
}

.table-wrapper {
  background: rgba(255, 255, 255, 0.98);
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
}

td {
  vertical-align: middle;
}

.acoes-linha {
  min-width: 170px;
}

.btn-linha {
  width: 38px;
  height: 38px;
  font-size: 16px;
}

.status-passagem {
  min-width: 132px;
}

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

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

@media (max-width: 600px) {
  body {
    background:
      radial-gradient(circle at top, rgba(20, 184, 166, 0.26), transparent 20rem),
      linear-gradient(180deg, #07111f 0, #0b2238 190px, #eef2f7 190px);
  }

  .btn-atualizar-flutuante {
    display: none !important;
  }

  .btn-busca-flutuante {
    left: auto;
    right: 18px;
    display: grid;
    place-items: center;
  }

  .busca-report {
    display: none;
  }

  .busca-report.aberta {
    display: block;
  }

  .resumo-total,
  #btnNovoReport {
    display: none !important;
  }

  .resumo,
  .cadastro-passagem-form {
    grid-template-columns: 1fr;
  }

  .busca-resumo {
    grid-template-columns: 1fr;
  }

  .resumo-card {
    min-height: auto;
  }

  .resumo-empresa,
  .resumo-fly,
  .dizimo-card {
    display: flex;
  }

  .abas {
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
  }

  .table-wrapper {
    padding: 12px;
  }

  tbody tr.linha-report {
    border-radius: 16px;
  }

  tbody tr.linha-report.aberta td {
    align-items: flex-start;
  }

  .acoes-linha {
    width: 100%;
  }

  .acoes-report-cell small {
    text-align: center;
  }
}

/* Ajustes finais do report */

.topo {
  margin-top: 0;
  position: relative;
}

.topo .btn-menu {
  position: fixed;
  top: 18px;
  left: 18px;
  right: auto;
}

.btn-atualizar-flutuante {
  display: none !important;
}

.abas {
  cursor: default;
  scrollbar-width: auto;
  -ms-overflow-style: auto;
  user-select: none;
  gap: 14px;
  padding-bottom: 14px;
}

.abas::-webkit-scrollbar {
  display: block;
  height: 14px;
}

.abas::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
}

.abas::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.42);
  border-radius: 999px;
}

.abas.arrastando {
  cursor: grabbing;
}

.btn-moeda {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  letter-spacing: 0;
  padding: 0;
  text-align: inherit;
  white-space: nowrap;
}

.btn-moeda:hover {
  filter: brightness(0.9);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.valor-linha {
  color: inherit;
}

.descricao-moeda {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.empresa-toolbar {
  margin-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: none;
  padding: 12px 16px;
}

.empresa-toolbar strong {
  font-size: 20px;
}

.empresa-titulo-linha {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-add-passagem {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 12px;
  background: var(--blue);
  color: #ffffff;
  cursor: pointer;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}

.btn-add-passagem:hover {
  transform: translateY(-1px);
}

.btn-add-passagem:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.empresa-toolbar small {
  display: none;
}

.table-wrapper {
  margin-top: -1px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.menu-lateral {
  overflow-y: auto;
}

.menu-direita {
  left: auto;
  right: -280px;
}

.menu-direita.aberto {
  right: 0;
}

.btn-menu-funcoes {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.35);
  color: #ffffff;
  cursor: pointer;
  font-size: 26px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.menu-funcoes {
  display: grid;
  gap: 9px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.menu-funcoes span,
.menu-funcoes small,
.menu-funcoes em {
  display: block;
}

.menu-funcoes span {
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
}

.menu-funcoes small,
.menu-funcoes em {
  color: #cbd5e1;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
}

.menu-funcoes .btn-acao {
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
}

.menu-funcoes .btn-acao.secundario {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.menu-funcoes .btn-acao.destaque {
  background: #2563eb;
}

@media (max-width: 850px) {
  tbody tr.linha-total-colunas {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px;
  }

  tbody tr.linha-total-colunas td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    padding: 0;
  }

  tbody tr.linha-total-colunas td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
  }

  tbody tr.linha-total-colunas .total-label {
    display: block;
    text-align: left;
    font-size: 13px;
  }
}

/* Referencia visual SaaS - Reports */

body {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 32%),
    linear-gradient(180deg, #f6f7fb 0%, #eef2f7 100%);
  color: #111827;
  padding: 22px;
}

.app {
  width: min(1500px, calc(100vw - 52px));
  max-width: none;
}

.btn-menu,
.btn-busca-flutuante,
.btn-menu-funcoes {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.82);
  color: #111827;
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.topo .btn-menu {
  top: 22px;
  left: 22px;
}

.btn-menu:hover,
.btn-busca-flutuante:hover,
.btn-menu-funcoes:hover {
  transform: translateY(-1px);
  background: #ffffff;
}

.menu-lateral {
  background: rgba(255, 255, 255, 0.97);
  color: #111827;
  border-right: 1px solid #e5e7eb;
  box-shadow: 18px 0 42px rgba(15, 23, 42, 0.14);
}

.menu-lateral h2 {
  color: #111827;
}

.menu-lateral a {
  background: transparent;
  color: #4b5563;
  border: 1px solid transparent;
}

.menu-lateral a:hover {
  background: #f3f4f6;
  color: #111827;
  border-color: #e5e7eb;
}

.usuario-box {
  border-top-color: #e5e7eb;
}

.usuario-box span {
  color: #6b7280;
}

.fechar-menu {
  color: #111827;
}

.topo {
  display: flex;
  min-height: 188px;
  align-items: center;
  justify-content: center;
  margin: 0 0 22px;
  border: 1px solid #e5e7eb;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96)),
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(37, 99, 235, 0.09));
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.topo::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -150px;
  width: 460px;
  height: 260px;
  background: rgba(37, 99, 235, 0.08);
  transform: rotate(-12deg);
}

.logo-fly {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
}

.titulo-topo h1 {
  color: #111827;
  font-size: 32px;
  letter-spacing: 0;
}

.titulo-topo p {
  color: #6b7280;
  font-size: 15px;
}

.btn-menu-funcoes {
  top: 20px;
  right: 20px;
}

.abas {
  margin: 0 0 18px;
  padding: 3px 0 14px;
}

.aba {
  min-height: 46px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #ffffff;
  color: #374151;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.aba.ativa,
.aba:hover {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

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

.resumo-card,
.dizimo-card {
  min-height: 140px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.resumo-card span,
.dizimo-card span {
  color: #6b7280;
  letter-spacing: 0;
}

.resumo-card strong {
  color: #15803d;
  font-size: 28px;
  letter-spacing: 0;
}

.resumo-card small,
.dizimo-card small {
  color: #64748b;
}

.dizimo-card {
  border-color: rgba(245, 158, 11, 0.38);
}

.dizimo-card strong {
  color: #b77900;
  font-size: 28px;
  letter-spacing: 0;
}

.dizimo-status {
  min-height: 42px;
  border-radius: 999px;
}

.acoes-report,
.busca-report,
.cadastro-passagem-card,
.empresa-toolbar,
.table-wrapper {
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.acoes-report {
  padding: 14px 16px;
  margin: 0 0 16px;
}

.busca-report {
  padding: 18px;
  margin: 0 0 16px;
}

.busca-report label {
  color: #6b7280;
}

.busca-report input,
.cadastro-passagem-form input,
.cadastro-passagem-form select,
.cadastro-passagem-form textarea,
.invoice-card input,
.invoice-card textarea,
.invoice-card select {
  border-color: #e5e7eb;
  background: #ffffff;
  box-shadow: none;
}

.btn-acao,
.btn-add-passagem,
.btn-salvar-passagem,
.invoice-card button {
  border-radius: 12px;
  box-shadow: none;
}

.btn-acao,
.btn-salvar-passagem {
  background: #111827;
}

.btn-acao.secundario {
  background: #f3f4f6;
  color: #111827;
  border: 1px solid #e5e7eb;
}

.btn-acao.destaque,
.btn-add-passagem {
  background: #0f766e;
}

.empresa-toolbar {
  margin-top: 0;
  margin-bottom: 0;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  padding: 16px 18px;
}

.empresa-toolbar strong {
  color: #111827;
}

.table-wrapper {
  margin-top: -1px;
  overflow: auto;
  border-top-right-radius: 0;
  border-top-left-radius: 0;
}

table {
  border-collapse: separate;
  border-spacing: 0;
}

thead th {
  background: #f9fafb;
  color: #6b7280;
  border-bottom: 1px solid #e5e7eb;
  letter-spacing: 0;
}

tbody tr {
  background: #ffffff;
}

tbody tr:nth-child(even) {
  background: #fbfdff;
}

tbody td {
  border-bottom: 1px solid #eef2f7;
}

.status-pill,
.acoes-report-cell .status-pill {
  border-radius: 999px;
}

.acoes-linha,
.detalhe-acoes,
.acoes-passagem {
  gap: 8px;
}

.btn-mini,
.acao-invoice,
.acao-editar,
.acao-excluir {
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
  color: #111827;
  box-shadow: none;
}

.acao-excluir {
  color: #991b1b;
}

.menu-funcoes {
  border-top-color: #e5e7eb;
}

.menu-funcoes span,
.menu-funcoes h2 {
  color: #111827;
}

.menu-funcoes small,
.menu-funcoes em {
  color: #6b7280;
}

.menu-funcoes .btn-acao.secundario {
  background: #f3f4f6;
  color: #111827;
  border-color: #e5e7eb;
}

.menu-funcoes .btn-acao.destaque {
  background: #111827;
}

@media (max-width: 850px) {
  body {
    padding: 8px;
    background: #f3f6fb;
  }

  .app {
    width: 100%;
  }

  .topo {
    min-height: 162px;
    border-radius: 22px;
    margin-top: 60px;
  }

  .titulo-topo h1 {
    font-size: 28px;
  }

  .resumo {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .resumo-total {
    display: none !important;
  }

  .resumo-card,
  .dizimo-card {
    min-height: 0;
  }

  .acoes-report {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px;
  }

  #btnNovoReport,
  #btnImprimirReport,
  #btnExportarPlanilha,
  #btnBackupReports {
    display: none !important;
  }

  .busca-report {
    display: none;
  }

  .busca-report.aberta {
    display: block;
  }

  .btn-busca-flutuante {
    display: grid;
    place-items: center;
    left: auto;
    right: 18px;
  }

  .btn-menu-funcoes {
    display: none;
  }

  .table-wrapper {
    border-radius: 18px;
  }
}

/* Gaveta de funcoes sempre pelo lado direito */

#menuFuncoes.menu-direita {
  left: auto !important;
  right: -320px !important;
  border-right: none;
  border-left: 1px solid #e5e7eb;
  box-shadow: -18px 0 42px rgba(15, 23, 42, 0.16);
}

#menuFuncoes.menu-direita.aberto {
  left: auto !important;
  right: 0 !important;
}

@media (max-width: 850px) {
  #menuFuncoes.menu-direita {
    width: min(320px, 86vw);
    right: min(-320px, -86vw) !important;
  }

  #menuFuncoes.menu-direita.aberto {
    right: 0 !important;
  }
}

/* Acoes compactas na tabela - referencia */

.acoes-report-cell {
  min-width: 118px;
  text-align: center;
}

.acoes-linha {
  min-width: 0;
  width: max-content;
  max-width: 116px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 6px;
  margin: 0 auto;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.linha-report.aberta .acoes-linha {
  display: inline-flex;
}

.btn-invoice,
.btn-linha,
.acoes-linha .btn-icone {
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: #334155;
  padding: 0;
  box-shadow: none;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.icone-acao {
  width: 15px;
  height: 15px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-invoice {
  color: #2563eb;
}

.btn-linha.perigo,
.acoes-linha .btn-icone.perigo {
  color: #ef4444;
  background: transparent;
}

.btn-invoice:hover,
.btn-linha:hover,
.acoes-linha .btn-icone:hover {
  transform: translateY(-1px);
  background: #f1f5f9;
  color: #0f172a;
}

.btn-invoice:hover {
  color: #1d4ed8;
}

.btn-linha.perigo:hover,
.acoes-linha .btn-icone.perigo:hover {
  background: #fff1f2;
  color: #dc2626;
}

.btn-invoice:disabled,
.btn-linha:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.acoes-report-cell small {
  margin-top: 8px;
  color: #94a3b8;
  font-size: 10px;
  letter-spacing: 0;
}

@media (max-width: 850px) {
  .acoes-linha {
    max-width: none;
  }

  .btn-invoice,
  .btn-linha,
  .acoes-linha .btn-icone {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    border-radius: 11px;
  }

  .icone-acao {
    width: 17px;
    height: 17px;
  }
}

/* Mais identidade Fly Brasil sem perder o visual limpo */

body {
  background:
    linear-gradient(115deg, rgba(5, 46, 58, 0.96) 0 18%, transparent 18.1%),
    radial-gradient(circle at 88% 6%, rgba(37, 99, 235, 0.20), transparent 28%),
    linear-gradient(180deg, #eef5fb 0%, #f7fafc 42%, #edf2f7 100%);
}

.topo {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.92), rgba(37, 99, 235, 0.88)),
    #0f766e;
  border-color: rgba(255, 255, 255, 0.45);
}

.topo::after {
  background: rgba(255, 255, 255, 0.14);
}

.titulo-topo h1,
.titulo-topo p {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(15, 23, 42, 0.18);
}

.logo-fly {
  background: #ffffff;
  border: 6px solid rgba(255, 255, 255, 0.72);
}

.resumo-card,
.dizimo-card,
.busca-report,
.cadastro-passagem-card,
.empresa-toolbar,
.table-wrapper {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 255, 0.96));
}

.resumo-empresa {
  border-left: 5px solid #0f766e;
}

.resumo-fly {
  border-left: 5px solid #2563eb;
}

.resumo-total {
  border-left: 5px solid #111827;
}

.dizimo-card {
  background:
    linear-gradient(180deg, rgba(255, 253, 235, 0.98), rgba(255, 255, 255, 0.98));
}

.empresa-toolbar {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.98));
}

thead th {
  background: #0f766e;
  color: #ffffff;
  border-bottom: none;
}

tbody tr:nth-child(even) {
  background: #f3f8fb;
}

tbody tr:hover {
  background: #eef9f7;
}

.status-passagem.status-pago {
  background: #dcfce7;
  color: #166534;
  box-shadow: inset 0 0 0 1px rgba(22, 101, 52, 0.08);
}

.status-passagem.status-andamento {
  background: #e0ecff;
  color: #1d4ed8;
  box-shadow: inset 0 0 0 1px rgba(29, 78, 216, 0.08);
}

.acoes-linha {
  background: rgba(255, 255, 255, 0.9);
}

@media (max-width: 850px) {
  body {
    background:
      linear-gradient(180deg, #062b36 0, #0f766e 178px, #eef5fb 178px);
  }

  .topo {
    background: linear-gradient(135deg, #0f766e, #2563eb);
  }
}
