/* Lançamentos: extensão da linguagem FLUITEC baseada no fluxo de referência. */
#content.lanc-v2-host {
  background: #f6f8fb;
  min-height: calc(100vh - 68px);
  padding: 24px 34px 56px !important;
  color: #181c32;
}

#content.lanc-v2-host .lanc-abas-emp {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 16px;
  padding: 0;
  background: transparent;
  overflow-x: auto;
}

#content.lanc-v2-host .lanc-aba-emp {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid #e3e7ef;
  border-radius: 10px;
  background: #fff;
  color: #61708a;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

#content.lanc-v2-host .lanc-aba-emp:hover,
#content.lanc-v2-host .lanc-aba-emp.ativa {
  border-color: #009ef7;
  color: #009ef7;
  box-shadow: 0 2px 7px rgba(0, 158, 247, .10);
}

#content.lanc-v2-host .lanc-v2-card {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0 !important;
}

#content.lanc-v2-host .lanc-v2-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 16px;
}

#content.lanc-v2-host .lanc-v2-title {
  margin: 0;
  color: #111a37;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.03em;
}

#content.lanc-v2-host .lanc-v2-head-actions {
  display: grid;
  grid-template-columns: minmax(245px, 1fr) repeat(2, 146px) auto auto;
  align-items: center;
  gap: 10px;
  width: min(100%, 930px);
}

#content.lanc-v2-host .lanc-v2-search {
  display: flex;
  align-items: center;
  min-height: 48px;
  max-width: none;
  border: 1px solid #e3e7ef;
  border-radius: 10px;
  background: #fff;
}

#content.lanc-v2-host .lanc-v2-search i {
  margin-left: 15px;
  color: #99a5b8;
}

#content.lanc-v2-host .lanc-v2-search input {
  width: 100%;
  min-height: 46px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #27324a;
  font-size: 13px;
}

#content.lanc-v2-host .lanc-datas {
  display: contents;
}

#content.lanc-v2-host .lanc-data,
#content.lanc-v2-host .lanc-v2-head-actions > .btn {
  min-height: 48px;
}

#content.lanc-v2-host .lanc-v2-head-actions > .btn {
  white-space: nowrap;
}

#content.lanc-v2-host .lanc-novo {
  justify-content: center;
}

#content.lanc-v2-host .lanc-v2-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(155px, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}

#content.lanc-v2-host .lanc-v2-filters select {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid #e3e7ef;
  border-radius: 10px;
  background: #fff;
  color: #4b5870;
  font-size: 13px;
  outline: 0;
  box-shadow: 0 2px 7px rgba(35, 51, 82, .035);
}

#content.lanc-v2-host .lanc-v2-filters select:focus,
#content.lanc-v2-host .lanc-v2-search:focus-within,
#content.lanc-v2-host .lanc-data:focus {
  border-color: #009ef7;
  box-shadow: 0 0 0 3px rgba(0, 158, 247, .12);
}

#content.lanc-v2-host .lanc-v2-tabrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 8px 0 20px;
}

#content.lanc-v2-host .lanc-v2-tabs,
#content.lanc-v2-host .lanc-v2-modes {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid #e3e7ef;
  border-radius: 11px;
  background: #fff;
  box-shadow: none;
}

#content.lanc-v2-host .lanc-v2-tabs button,
#content.lanc-v2-host .lanc-v2-modes button {
  min-height: 42px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #7b879b;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

#content.lanc-v2-host .lanc-v2-tabs button.active,
#content.lanc-v2-host .lanc-v2-modes button.active {
  background: #009ef7;
  color: #fff;
}

#content.lanc-v2-host .lanc-v2-tabs span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 20px;
  background: #eef2f7;
  color: #62718a;
  font-size: 11px;
}

#content.lanc-v2-host .lanc-v2-tabs button.active span {
  background: rgba(255, 255, 255, .23);
  color: #fff;
}

#content.lanc-v2-host .lanc-mes-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 0 0 18px;
}

#content.lanc-v2-host .lanc-mes-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
}

#content.lanc-v2-host .lanc-mes-btn:hover {
  background: #eaf6ff;
  color: #009ef7;
}

#content.lanc-v2-host .lanc-mes-txt {
  min-width: 180px;
  color: #1e263d;
  font-size: 21px;
  font-weight: 700;
  text-align: center;
}

#content.lanc-v2-host .lanc-mes-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

#content.lanc-v2-host .lanc-totais {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 0 0 0;
  border: 1px solid #e4e7ee;
  border-radius: 12px 12px 0 0;
  background: #fff;
  overflow: hidden;
}

#content.lanc-v2-host .lanc-tot-box {
  min-height: 100px;
  padding: 23px 16px 20px;
  border-right: 1px solid #e7ebf1;
  text-align: center;
}

#content.lanc-v2-host .lanc-tot-box:last-child {
  border-right: 0;
}

#content.lanc-v2-host .lanc-tot-lbl {
  margin-bottom: 11px;
  color: #8c98aa;
  font-size: 12px;
}

#content.lanc-v2-host .lanc-tot-val {
  color: #111a37;
  font-size: 17px;
  font-weight: 700;
}

#content.lanc-v2-host .lanc-tot-val.verde { color: #3bc67d; }
#content.lanc-v2-host .lanc-tot-val.vermelho { color: #f1416c; }
#content.lanc-v2-host .lanc-tot-val.azul { color: #009ef7; }

#content.lanc-v2-host > .lanc-v2-card > .table-wrap {
  border: 1px solid #e4e7ee;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: #fff;
  overflow-x: auto;
}

#content.lanc-v2-host .lanc-v2-table {
  min-width: 1240px;
  margin: 0;
  border: 0;
}

#content.lanc-v2-host .lanc-v2-table th {
  height: 58px;
  padding: 0 16px;
  border-bottom: 1px solid #e5e9ef;
  background: #fff;
  color: #8d99ab;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .035em;
  text-transform: uppercase;
  white-space: nowrap;
}

#content.lanc-v2-host .lanc-v2-table td {
  min-height: 94px;
  padding: 18px 16px;
  border-bottom: 1px solid #edf0f4;
  color: #4e5b72;
  font-size: 13px;
  vertical-align: middle;
}

#content.lanc-v2-host .lanc-v2-table tbody tr:last-child td {
  border-bottom: 0;
}

#content.lanc-v2-host .lanc-v2-table tbody tr:hover td {
  background: #fbfdff;
}

#content.lanc-v2-host .lanc-ref-original {
  display: inline-flex;
  min-width: 93px;
  flex-direction: column;
  gap: 4px;
  padding-left: 12px;
  border-left: 4px solid #50cd89;
}

#content.lanc-v2-host .lanc-ref-original:has(.lanc-ref-type:first-child) {
  border-left-color: #50cd89;
}

#content.lanc-v2-host .lanc-ref-type {
  color: #93a0b1;
  font-size: 11px;
  text-transform: uppercase;
}

#content.lanc-v2-host .lanc-ref-num {
  color: #1f2a42;
  font-size: 15px;
  font-weight: 700;
}

#content.lanc-v2-host .lanc-sub {
  margin-top: 6px;
  color: #98a4b6;
  font-size: 11px;
}

#content.lanc-v2-host .lanc-conta-nome {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #53627a;
  font-size: 12px;
  font-weight: 600;
}

#content.lanc-v2-host .lanc-banco-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

#content.lanc-v2-host .lanc-acum {
  display: block;
  margin-top: 5px;
  color: #a2adbd;
  font-size: 11px;
  font-weight: 400;
}

#content.lanc-v2-host .lanc-v2-status {
  display: inline-flex;
  padding: 6px 11px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

#content.lanc-v2-host .lanc-v2-status.pago { background: #e8fff3; color: #1aa978; }
#content.lanc-v2-host .lanc-v2-status.pendente { background: #fff8dd; color: #a27600; }
#content.lanc-v2-host .lanc-v2-status.atraso { background: #fff0f3; color: #f1416c; }

#content.lanc-v2-host .lanc-rodape {
  display: flex;
  gap: 18px;
  margin-top: 14px;
}

#content.lanc-v2-host .lanc-link {
  border: 0;
  background: transparent;
  color: #009ef7;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 1220px) {
  #content.lanc-v2-host .lanc-v2-head { align-items: stretch; flex-direction: column; }
  #content.lanc-v2-host .lanc-v2-head-actions { width: 100%; }
}

@media (max-width: 860px) {
  #content.lanc-v2-host { padding: 18px 18px 44px !important; }
  #content.lanc-v2-host .lanc-v2-head-actions { grid-template-columns: 1fr 1fr; }
  #content.lanc-v2-host .lanc-v2-search { grid-column: 1 / -1; }
  #content.lanc-v2-host .lanc-v2-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #content.lanc-v2-host .lanc-v2-tabrow { align-items: stretch; flex-direction: column; }
  #content.lanc-v2-host .lanc-v2-tabs,
  #content.lanc-v2-host .lanc-v2-modes { width: 100%; overflow-x: auto; }
  #content.lanc-v2-host .lanc-v2-tabs button,
  #content.lanc-v2-host .lanc-v2-modes button { flex: 1 0 auto; }
  #content.lanc-v2-host .lanc-totais { grid-template-columns: repeat(2, 1fr); }
  #content.lanc-v2-host .lanc-tot-box:nth-child(2n) { border-right: 0; }
  #content.lanc-v2-host .lanc-tot-box:nth-child(-n+3) { border-bottom: 1px solid #e7ebf1; }
}

@media (max-width: 540px) {
  #content.lanc-v2-host { padding: 14px 12px 32px !important; }
  #content.lanc-v2-host .lanc-v2-head-actions,
  #content.lanc-v2-host .lanc-v2-filters { grid-template-columns: 1fr; }
  #content.lanc-v2-host .lanc-data { width: 100%; }
  #content.lanc-v2-host .lanc-totais { grid-template-columns: 1fr; }
  #content.lanc-v2-host .lanc-tot-box,
  #content.lanc-v2-host .lanc-tot-box:nth-child(2n) { border-right: 0; border-bottom: 1px solid #e7ebf1; }
  #content.lanc-v2-host .lanc-tot-box:last-child { border-bottom: 0; }
  #content.lanc-v2-host .lanc-rodape { flex-wrap: wrap; }
}
/* Desktop override: keep the launch grid on one aligned surface. */
@media(max-width:1220px){
  #content.lanc-v2-host .lanc-v2-head-actions{flex:none!important;height:auto!important;min-height:0!important;align-content:start!important;grid-auto-rows:48px}
}
@media (min-width: 1200px) {
  #content.lanc-v2-host { width:100% !important; max-width:100% !important; overflow-x:hidden !important; }
  #content.lanc-v2-host .lanc-v2-head { display:grid !important; grid-template-columns:180px minmax(0,1fr) !important; align-items:center !important; gap:24px !important; width:100% !important; height:auto !important; min-height:52px !important; margin:0 0 18px !important; position:static !important; }
  #content.lanc-v2-host .lanc-v2-title { width:auto !important; min-width:0 !important; margin:0 !important; font-size:26px !important; line-height:1.2 !important; }
  #content.lanc-v2-host .lanc-v2-head-actions { display:grid !important; grid-template-columns:minmax(210px,1fr) 150px 150px auto auto !important; grid-template-rows:48px !important; align-items:center !important; gap:10px !important; width:100% !important; height:auto !important; min-width:0 !important; flex:none !important; }
  #content.lanc-v2-host .lanc-v2-head-actions > .lanc-v2-search,
  #content.lanc-v2-host .lanc-v2-head-actions > .lanc-datas,
  #content.lanc-v2-host .lanc-v2-head-actions > .lanc-export-menu,
  #content.lanc-v2-host .lanc-v2-head-actions > .lanc-novo { position:static !important; width:auto !important; height:48px !important; min-width:0 !important; max-width:none !important; margin:0 !important; flex:none !important; }
  #content.lanc-v2-host .lanc-v2-head-actions > .lanc-datas { display:contents !important; }
  #content.lanc-v2-host .lanc-v2-head-actions > .lanc-datas .lanc-data { width:auto !important; min-width:0 !important; height:48px !important; flex:none !important; }
  #content.lanc-v2-host .lanc-v2-head-actions > .lanc-export-menu > button,
  #content.lanc-v2-host .lanc-v2-head-actions > .lanc-novo { width:100% !important; height:48px !important; }
  #content.lanc-v2-host .lanc-v2-filters { display:grid !important; grid-template-columns:repeat(4,minmax(0,1fr)) !important; grid-template-rows:repeat(2,50px) !important; width:100% !important; height:auto !important; min-height:112px !important; gap:12px !important; margin:0 0 18px !important; }
  #content.lanc-v2-host .lanc-v2-filters > select { grid-column:auto !important; grid-row:auto !important; width:100% !important; height:50px !important; min-width:0 !important; }
  #content.lanc-v2-host .lanc-v2-tabrow { display:flex !important; align-items:center !important; justify-content:space-between !important; width:100% !important; height:auto !important; min-height:52px !important; margin:0 0 18px !important; }
  #content.lanc-v2-host .lanc-v2-tabs,
  #content.lanc-v2-host .lanc-v2-modes { width:auto !important; height:auto !important; margin:0 !important; flex:0 1 auto !important; }
  #content.lanc-v2-host .lanc-mes-nav { width:100% !important; height:auto !important; margin:0 0 18px !important; }
  #content.lanc-v2-host .lanc-v2-table { min-width:1260px !important; }
}

#content.lanc-v2-host .lanc-row-despesa .lanc-ref-original { border-left-color: #f1416c !important; }
#content.lanc-v2-host .lanc-row-receita .lanc-ref-original { border-left-color: #3bc67d !important; }
#content.lanc-v2-host .lanc-row-despesa td:nth-child(8) strong { color: #f1416c; }
#content.lanc-v2-host .lanc-row-receita td:nth-child(8) strong { color: #3bc67d; }
#content.lanc-v2-host .lanc-eye { position:absolute;right:10px;top:8px;border:0;background:transparent;color:#009ef7;cursor:pointer;z-index:2;font-size:14px; }
#content.lanc-v2-host .lanc-totais { position:relative; }
#content.lanc-v2-host .lanc-paginacao { grid-column:1 / -1; display:flex;align-items:center;justify-content:center;gap:12px;padding:10px;color:#7e8299;font-size:11px;border-top:1px solid #e7ebf1; }
#content.lanc-v2-host .lanc-page-btn { width:28px;height:28px;border:1px solid #e3e7ef;border-radius:6px;background:#fff;color:#009ef7;cursor:pointer; }
#content.lanc-v2-host .lanc-paginacao select { min-height:28px;border:1px solid #e3e7ef;border-radius:6px;background:#fff;color:#53627a;font-size:11px; }
