/* Reservas / Files — o ecrã do processo. Sóbrio e denso, como o Optitravel:
   o agente precisa de ver muita coisa de uma vez, sem andar a rolar. */
.fi-body { margin: 0; background: #f4f6f8; color: #172033;
  font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.fi-body .identity-gate:not([hidden]) { display: grid; }
.fi-topo { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 22px; background: #13694a; color: #fff; flex-wrap: wrap; }
.fi-marca { display: flex; align-items: center; gap: 10px; }
.fi-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: #ffffff22; font-weight: 800; }
.fi-marca b { display: block; font-size: 15px; }
.fi-marca small { opacity: .8; font-size: 11px; }
/* Multiempresa: o selector de empresa, no cabeçalho. Só aparece a quem tem mais
   do que uma; destaca-se em branco sobre o verde da barra. */
.fi-empresa { margin-left: 14px; background: #fff; color: #13694a; font-weight: 700;
  font-size: 13px; border: 0; border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.fi-empresa:focus { outline: 2px solid #ffffff99; }
/* Paginação da lista de files. */
.fi-paginacao { display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 14px 0 4px; color: #475467; font-size: 13px; flex-wrap: wrap; }
.fi-paginacao button[disabled] { opacity: .4; cursor: default; }
/* GESTÃO: tabelas de análise e variação homóloga. */
.ge-tab { width: 100%; border-collapse: collapse; font-size: 13px; }
.ge-tab th { text-align: left; color: #667085; font-weight: 600; font-size: 11px; text-transform: uppercase;
  letter-spacing: .4px; padding: 6px 8px; border-bottom: 1px solid #e2e6eb; }
.ge-tab td { padding: 6px 8px; border-bottom: 1px solid #f0f2f5; }
.ge-tab th.num, .ge-tab td.num { text-align: right; white-space: nowrap; }
.ge-tab tbody tr:hover { background: #f7f9fb; }
.ge-yoy { font-size: 11px; font-weight: 700; margin-left: 6px; }
.ge-yoy.pos { color: #12805c; }
.ge-yoy.neg { color: #c01748; }
.pa-bloco h2 small { font-weight: 400; color: #667085; font-size: 12px; }
.ge-filtros select { min-width: 150px; }
.ge-filtros input[type="search"] { min-width: 200px; }
.card.ge-cliente-topo { background: #13694a; color: #fff; border-color: #13694a; }
.ge-cliente-topo h2 { margin: 0; color: #fff; }
.ge-cliente-topo h2 small { color: #ffffffcc; font-weight: 500; }
.ge-cliente-topo .fi-nota { color: #ffffffdd; margin: 6px 0 0; }
.ge-cliente-topo .fi-nota b { color: #fff; }
.ge-cliente-topo { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.ge-ver-cliente { background: #fff; color: #13694a; border: 0; font-weight: 700; white-space: nowrap; }
.fi-link-file { background: none; border: 0; color: #13694a; font-weight: 700; cursor: pointer; padding: 0; font: inherit; text-decoration: underline; }
/* Relatórios guardados. */
.ge-relatorios { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.ge-relatorios:empty { display: none; }
.ge-rel-lbl { color: #667085; font-size: 12px; font-weight: 600; }
.ge-rel-chip { display: inline-flex; align-items: center; background: #eef3f0; border: 1px solid #cfe0d8;
  border-radius: 999px; overflow: hidden; }
.ge-rel-chip button { background: none; border: 0; cursor: pointer; font-size: 13px; padding: 5px 10px; color: #13694a; font-weight: 600; }
.ge-rel-chip .ge-rel-x { color: #98a2b3; padding: 5px 9px 5px 2px; font-weight: 700; }
.ge-rel-chip .ge-rel-x:hover { color: #c01748; }
.fi-links a { color: #fff; text-decoration: none; font-size: 13px; margin-left: 14px; opacity: .9; }
.fi-links a:hover { text-decoration: underline; }
main { max-width: 1640px; margin: 0 auto; padding: 20px 22px 60px; }
.fi-barra { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.fi-barra h1 { font-size: 20px; margin: 0 0 12px; }
.fi-barra-sub { margin-top: 22px; }
.fi-barra-sub h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .6px; color: #667085; margin: 0 0 8px; }
.card, .fi-filtros { background: #fff; border: 1px solid #e2e6eb; border-radius: 12px; padding: 14px; }
.fi-filtros { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.fi-filtros label { display: grid; gap: 4px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .4px; color: #667085; }
.fi-filtros input, .fi-filtros select, .fi-dialogo input, .fi-dialogo select, .fi-dialogo textarea, #ficha-obs {
  padding: 8px 9px; border: 1px solid #d6dbe0; border-radius: 8px; font: inherit; background: #fff; color: #172033; }
.fi-filtros .fi-check { flex-direction: row; align-items: center; display: flex; gap: 7px; text-transform: none; }
.fi-filtros-botoes { display: flex; align-items: end; gap: 8px; }
.fi-filtros-botoes .button { white-space: nowrap; }

/* Painéis Comercial e Tesouraria. */
.fi-vazio-msg { color: #667085; padding: 16px 2px; }
.pa-grelha { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); margin-top: 4px; }
.pa-bloco { padding: 16px 18px; }
.pa-bloco h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: #667085; margin: 0 0 12px; }
.pa-bloco h2 small { text-transform: none; letter-spacing: 0; font-weight: 500; color: #98a2b3; }
.pa-linha { display: grid; grid-template-columns: 1fr 90px auto; align-items: center; gap: 10px;
  padding: 6px 0; border-bottom: 1px solid #f1f4f7; }
.pa-linha:last-child { border-bottom: 0; }
.pa-nome { font-size: 13px; font-weight: 600; color: #172033; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-barra { background: #eef1f4; border-radius: 6px; height: 8px; overflow: hidden; }
.pa-barra span { display: block; height: 100%; background: #13694a; border-radius: 6px; }
.pa-valor { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 13px; text-align: right; }
.pa-extra { grid-column: 1 / -1; font-size: 11px; color: #98a2b3; margin-top: -2px; }
.pa-dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; margin: 0; }
.pa-dl dt { color: #667085; font-size: 13px; }
.pa-dl dd { margin: 0; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.fi-totais { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 16px 0; }
.fi-totais div { background: #fff; border: 1px solid #e2e6eb; border-radius: 12px; padding: 12px 14px; }
.fi-totais .k { font-size: 10px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; color: #98a2b3; }
.fi-totais .v { font-size: 19px; font-weight: 800; margin-top: 3px; }
.fi-totais .n { font-size: 11px; color: #667085; }
.fi-tabela-wrap { overflow: auto; background: #fff; border: 1px solid #e2e6eb; border-radius: 12px; }
.fi-tabela { width: 100%; border-collapse: collapse; min-width: 1180px; }
.fi-tabela th, .fi-tabela td { padding: 9px 11px; border-bottom: 1px solid #eef1f4; text-align: left; font-size: 13px; vertical-align: top; }
.fi-tabela thead th { background: #f7f9fb; font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: #667085; }
.fi-tabela thead th small { font-weight: 500; text-transform: none; letter-spacing: 0; }
.fi-tabela tbody tr:hover { background: #f8fbfa; }
.fi-tabela .num, .fi-tabela th.num { text-align: right; }
.fi-tabela tfoot td { padding: 9px 11px; font-weight: 700; border-top: 2px solid #e2e6eb; text-align: right; }
.fi-linha-clicavel { cursor: pointer; }
.fi-estado { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 800; }
.fi-estado.OK { background: #e7f6ed; color: #12613a; }
.fi-estado.WL { background: #fff6e5; color: #9a6700; }
.fi-estado.RQ { background: #eef2f7; color: #475467; }
.fi-estado.CL { background: #fdeceb; color: #b42318; }
.fi-ficha-topo { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin: 12px 0 14px; }
.fi-ficha-topo h1 { margin: 0; font-size: 22px; }
.fi-ficha-topo p { margin: 3px 0 0; color: #667085; }
.fi-cabecalho { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  background: #fff; border: 1px solid #e2e6eb; border-radius: 12px; padding: 14px; }
.fi-cabecalho div span { display: block; font-size: 10px; font-weight: 800; letter-spacing: .6px;
  text-transform: uppercase; color: #98a2b3; }
.fi-cabecalho div b { font-weight: 700; }
.fi-abas { display: flex; gap: 6px; margin: 18px 0 12px; flex-wrap: wrap; }
.fi-aba { border: 1px solid #e2e6eb; background: #fff; border-radius: 99px; padding: 7px 14px;
  font-weight: 700; font-size: 13px; cursor: pointer; color: #475467; }
.fi-aba.activa { background: #13694a; border-color: #13694a; color: #fff; }
.fi-aba-wip { opacity: .72; }
.fi-aba-wip::after { content: 'em breve'; margin-left: 6px; font-size: 9px; font-weight: 800;
  letter-spacing: .4px; text-transform: uppercase; opacity: .85; }
.fi-financeiro { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-top: 16px; }
.fi-financeiro div { background: #fff; border: 1px solid #e2e6eb; border-radius: 12px; padding: 12px 14px; }
.fi-financeiro .k { font-size: 10px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; color: #98a2b3; }
.fi-financeiro .v { font-size: 18px; font-weight: 800; margin-top: 3px; }
.fi-financeiro .bom { color: #12613a; } .fi-financeiro .mau { color: #b42318; }
.fi-mini { border: 1px solid #d6dbe0; background: #fff; border-radius: 8px; padding: 5px 10px;
  font-size: 12px; font-weight: 700; cursor: pointer; color: #475467; }
.fi-mini:hover { border-color: #13694a; color: #13694a; }
.fi-erro { color: #b42318; font-weight: 700; }
.fi-dialogo { border: 0; border-radius: 14px; padding: 20px; max-width: 640px; width: calc(100% - 32px);
  box-shadow: 0 30px 80px #0f172a33; }
.fi-dialogo::backdrop { background: #0f172a66; }
.fi-dialogo h2 { margin: 0 0 14px; font-size: 18px; }
.fi-dialogo #dialogo-campos { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.fi-dialogo label { display: grid; gap: 4px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .4px; color: #667085; }
.fi-dialogo label.largo { grid-column: 1 / -1; }
.fi-dialogo menu { display: flex; justify-content: flex-end; gap: 10px; margin: 18px 0 0; padding: 0; }
#ficha-obs { width: 100%; box-sizing: border-box; }
@media (max-width: 600px) { main { padding: 14px; } .fi-tabela { min-width: 660px; } }

/* Diálogo do aviso de cobrança. */
.fi-dialogo-largo { max-width: 760px; }
.av-campo { display: grid; gap: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .4px; color: #667085; margin-bottom: 10px; }
.av-campo input, .av-campo textarea { padding: 8px 9px; border: 1px solid #d6dbe0; border-radius: 8px;
  font: inherit; background: #fff; color: #172033; width: 100%; box-sizing: border-box; }
.av-campo textarea { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.5; resize: vertical; }
.av-meta { background: #f7f9fb; border: 1px solid #eef1f4; border-radius: 9px; padding: 9px 12px;
  font-size: 13px; color: #344054; margin-bottom: 14px; }
#dlg-aviso menu { flex-wrap: wrap; }

/* Menu do topo e área de clientes/fornecedores */
.fi-abas-topo { margin: 0; padding: 10px 22px; background: #0f5a3e; }
.fi-abas-topo .fi-aba { background: #ffffff1a; border-color: transparent; color: #ffffffcc; }
.fi-abas-topo .fi-aba.activa { background: #fff; color: #13694a; }
.fi-nota { color: #667085; font-size: 12px; margin: 10px 0; }
#ent-ficha { margin-top: 16px; }
#ent-ficha dl { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: 0; }
#ent-ficha dt { font-size: 10px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: #98a2b3; }
#ent-ficha dd { margin: 2px 0 0; font-weight: 600; }

/* Anexos */
.fi-largar { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 120px; padding: 18px; text-align: center; cursor: pointer;
  border: 2px dashed #bfd0e6; border-radius: 12px; background: #f9fbfe; color: #172033; }
.fi-largar.sobre { border-color: #13694a; background: #eef6f1; }
.fi-largar span { font-size: 12px; color: #667085; max-width: 520px; }
.fi-anexos { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 14px; }
.fi-anexo { background: #fff; border: 1px solid #e2e6eb; border-radius: 12px; padding: 12px; }
.fi-anexo b { display: block; font-size: 13px; word-break: break-word; }
.fi-anexo small { display: block; color: #667085; font-size: 11px; margin-top: 4px; }
.fi-anexo .fi-accoes { display: flex; gap: 8px; margin-top: 10px; }
.fi-anexo img { width: 100%; border-radius: 8px; margin-bottom: 8px; display: block; }

/* Um saldo negativo é a favor da entidade: mostra-se em vermelho discreto. */
.fi-tabela td.fi-credor { color: #a32020; }

/* A prova de que o diário fecha, ou de que não fecha. */
.ct-fecha { color: #13694a; font-weight: 600; }
.ct-nao-fecha { color: #a32020; font-weight: 600; }

/* Os títulos dos grupos e os links para os outros módulos só aparecem quando
   a navegação é uma coluna; na barra de cima seriam ruído. */
.fi-grupo, .fi-fora { display: none; }

/*
 * A coluna de módulos à esquerda, como no Optitravel.
 *
 * O agente vem de um sistema com os módulos numa coluna à esquerda e a
 * Reservas/Files em primeiro lugar. Manter esse desenho poupa-lhe a reaprender
 * onde é que as coisas estão. Abaixo de 1100px volta a barra de cima, porque
 * as tabelas dos files são largas e precisam do espaço.
 */
@media (min-width: 1100px) {
  .fi-abas-topo {
    position: fixed; left: 0; top: var(--fi-topo, 58px); bottom: 0; width: 214px; z-index: 40;
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 10px 24px; overflow-y: auto;
    background: #0f5a3e;
  }
  .fi-abas-topo .fi-aba, .fi-abas-topo .fi-fora {
    display: block; width: 100%; text-align: left; border-radius: 9px;
    padding: 9px 11px; font-size: 13.5px; font-weight: 600; text-decoration: none;
    background: transparent; border-color: transparent; color: #ffffffcc;
  }
  .fi-abas-topo .fi-aba:hover, .fi-abas-topo .fi-fora:hover { background: #ffffff1f; color: #fff; }
  .fi-abas-topo .fi-aba.activa { background: #fff; color: #13694a; font-weight: 800; }
  .fi-abas-topo .fi-grupo {
    display: block; padding: 14px 11px 4px; font-size: 10px; font-weight: 800;
    letter-spacing: .8px; text-transform: uppercase; color: #ffffff7a;
  }
  .fi-abas-topo .fi-grupo:first-child { padding-top: 2px; }
  .fi-abas-topo .fi-grupo-fora { margin-top: auto; }
  main { margin-left: 214px; max-width: 1640px; }
  .fi-links { display: none; }
}

/* Cada anexo diz para que serve e leva uma observação, como no Optitravel. */
.fi-anexo-classe { display: grid; gap: 3px; margin-top: 6px; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .4px; color: #667085; }
.fi-anexo-classe select, .fi-anexo-nota { width: 100%; padding: 5px 7px; border: 1px solid #d6dbe0;
  border-radius: 7px; font: inherit; font-size: 12px; background: #fff; color: #172033; }
.fi-anexo-nota { margin-top: 6px; }

/* Os três quadros do resumo do processo. */
.fi-quadros { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 6px; }
.fi-quadro h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: #667085; margin: 0 0 10px; }
.fi-quadro dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0; }
.fi-quadro dt { color: #667085; font-size: 13px; }
.fi-quadro dd { margin: 0; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.fi-quadro .fi-nota { margin: 10px 0 0; }

/* A ficha de um file abre como uma janela por cima da lista (modal). */
.fi-modal { position: fixed; inset: 0; z-index: 60; overflow-y: auto;
  background: rgba(12, 34, 26, .55); padding: 30px 16px; }
.fi-modal[hidden] { display: none; }
.fi-modal-card { max-width: 1040px; margin: 0 auto; background: #fff;
  border: 1px solid #dfe4ea; border-radius: 16px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .38); padding: 20px 24px 30px;
  animation: fi-modal-entra .14s ease-out; }
@keyframes fi-modal-entra { from { transform: translateY(8px); opacity: .6; } to { transform: none; opacity: 1; } }
.fi-modal-fechar { margin-bottom: 10px; }
body.fi-modal-aberto { overflow: hidden; }

/* ---- Caixa de Voos ---------------------------------------------------- */
.vo-resumo { margin: 4px 0 8px; }
.vo-resumo .vo-alerta .v { color: #c01748; }
.vo-forns { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.vo-forn-chip { background: #f2f6fb; border: 1px solid #dce6f1; border-radius: 999px;
  padding: 5px 12px; font-size: 12px; color: #344054; }
.vo-forn-chip b { color: #0a4d8c; }
.vo-chip-sf { color: #c01748; font-weight: 600; }
.vo-badge-sf { display: inline-block; background: #fdecef; color: #c01748; border: 1px solid #f4c3cf;
  border-radius: 6px; padding: 2px 8px; font-size: 11px; font-weight: 700; letter-spacing: .3px; }
.vo-estado { display: inline-block; border-radius: 6px; padding: 2px 9px; font-size: 11px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
.vo-emitido { background: #e7f5ec; color: #1a7a47; }
.vo-reservado { background: #eef3f0; color: #557; }
.vo-reemitido { background: #eaf1fb; color: #0a4d8c; }
.vo-reembolsado { background: #fff4e5; color: #b26a00; }
.vo-anulado { background: #f1f1f3; color: #98a2b3; text-decoration: line-through; }
.vo-form-grelha { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.vo-form-grelha label.largo { grid-column: 1 / -1; }
.vo-form-grelha label small { font-weight: 500; text-transform: none; letter-spacing: 0; color: #98a2b3; }
#voo-passageiros, #pnr-texto { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px;
  line-height: 1.5; resize: vertical; width: 100%; box-sizing: border-box; }
.vo-segs { margin-top: 16px; }
.vo-segs h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: #667085; margin: 0 0 6px; }
#dlg-pnr menu, #dlg-voo menu { flex-wrap: wrap; }
.vo-btn-apagar { color: #c01748; border-color: #f4c3cf; margin-right: auto; }
.vo-btn-apagar:hover { background: #fdecef; }

/* ---- emviagemClick ---------------------------------------------------- */
.ck-cat { margin-top: 18px; }
.ck-cat h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: #667085;
  margin: 0 0 10px; border-bottom: 1px solid #eef1f4; padding-bottom: 6px; }
.ck-cartoes { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.ck-cartao { border: 1px solid #e4e7ec; border-radius: 12px; padding: 14px; background: #fff;
  display: flex; flex-direction: column; gap: 8px; min-height: 104px; }
.ck-cartao.ck-tem { border-color: #cfe0d8; background: #f8fbf9; }
.ck-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; }
.ck-topo b { font-size: 15px; color: #172033; line-height: 1.2; }
.ck-cfg { background: none; border: 0; cursor: pointer; font-size: 15px; color: #98a2b3; padding: 0 2px; }
.ck-cfg:hover { color: #0f5a3e; }
.ck-cartao .button { width: 100%; }
.ck-user { margin: 0; font-size: 12px; color: #667085; word-break: break-all; }
.ck-user.ck-sem { color: #b0b7c3; font-style: italic; }
.ck-badge-inc { display: inline-block; background: #fff4e5; color: #b26a00; border-radius: 5px;
  padding: 1px 7px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; font-style: normal; }
.ck-badge-robo { display: inline-block; background: #e8f0fe; color: #1a56c4; border-radius: 5px;
  padding: 1px 7px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
.ck-cartao .ck-editar-cred.fi-mini { align-self: flex-start; }
/* Campos que só servem no modo robô: escondem-se até se ligar o portal moderno. */
.ck-so-robo[hidden] { display: none; }
.ck-robo-linha { display: block; font-size: 12px; color: #475467; line-height: 1.45; }
.ck-robo-linha b { color: #1a56c4; }
