/* Formulário de lançamento: tipos, campos, escolha de conta/plano/fornecedor e lançamento rápido.
   Bloco 59 passo 9: parte do antigo style.css. A ordem de carregamento está no index.html (base primeiro). */
.category-square {
  height: 7px;
  width: 7px;
  border-radius: 2px;
  display: inline-block;
  background: #a8bb89;
}
.category-square {
  background: #10b981;
}
.entry-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
  margin: 0 -18px 17px;
  padding: 10px 14px 0;
  border-bottom: 1px solid #d9e9ef;
}
.entry-tab {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 12px 2px;
  color: #133b54;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.entry-tab.selected {
  font-weight: 700;
  color: #087b5e;
  border-bottom-color: #087b5e;
}
.entry-tab.selected.out {
  color: #bc3333;
  border-bottom-color: #bc3333;
}
.entry-tab.selected.transfer {
  color: #3b6ee2;
  border-bottom-color: #3b6ee2;
}
.entry-tab.selected.ghost {
  color: #182f4a;
  border-bottom-color: #182f4a;
}
.financial-entry-form .entry-main-label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  margin: 16px 0;
}
.financial-entry-form .entry-amount-card {
  padding: 15px;
  border: 1px solid #c4e1ec;
  border-radius: 14px;
  box-shadow: 0 2px 3px #172e4910;
  margin: 13px 0;
}
.entry-checkbox {
  display: flex;
  align-items: center;
  flex-direction: row !important;
  gap: 8px;
  margin-top: 14px;
  font-weight: 500;
}
.entry-mode {
  display: flex;
  border: 1px solid #c5e1eb;
  border-radius: 10px;
  overflow: hidden;
  background: #effaff;
  margin: 15px 0;
}
.entry-repeat {
  margin: 10px 0;
}
.entry-ghost-categories {
  border-top: 1px solid #edf2f6;
  margin-top: 14px;
}
.entry-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  background: #fff;
  border-top: 1px solid #d8e9ed;
  margin: 20px -18px -16px;
  padding: 13px 18px;
  position: sticky;
  bottom: 0;
}
.entry-footer .primary {
  min-width: 155px;
}
@media (max-width: 520px) {
  .entry-tab {
    font-size: 12px;
  }
}
.entry-multi-toggle {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #deecf3;
  border-radius: 12px;
  padding: 11px 13px;
  margin: 0 0 18px;
  color: #15384e;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.entry-multi-toggle input:before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 3px;
  left: 3px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 3px #3346;
  transition: transform 0.2s;
}
.entry-multi-toggle input:checked {
  background: #087b5e;
}
.entry-multi-toggle input:checked:before {
  transform: translateX(15px);
}
.entry-multi-toggle input:focus-visible {
  outline: 2px solid #126793;
  outline-offset: 3px;
}
.entry-batch {
  border: 1px solid #c7dfe6;
  border-radius: 11px;
  padding: 13px;
  margin: 20px 0 4px;
  background: #f6fbfd;
}
.entry-draft {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid #dce9ed;
  font-size: 13px;
}
.entry-pin-row {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.entry-pin {
  flex: 0 0 35px;
  width: 35px;
  min-height: 38px;
  border: 1px solid #d8ebf1;
  border-radius: 8px;
  background: #f0faff;
  color: #2a769b;
  font-size: 16px;
  cursor: pointer;
}
.entry-pin.selected {
  background: #c8f0fa;
  border-color: #7bcbe1;
}
.entry-pin:not(.selected) {
  filter: grayscale(1);
  opacity: 0.65;
}
.financial-entry-form .entry-pin[hidden] {
  display: none;
}
.entry-account-button {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  border: 1px solid #acd2e5;
  border-radius: 8px;
  background: white;
  text-align: left;
  padding: 9px 11px;
  color: #15384e;
  font: inherit;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.entry-account-button:hover,
.entry-account-button:focus-visible {
  border-color: #337b9d;
  outline: 2px solid #d7eef7;
}
.entry-account-combo {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  border: 1px solid #acd2e5;
  border-radius: 8px;
  background: white;
  overflow: hidden;
}
.entry-account-combo:focus-within {
  border-color: #337b9d;
  outline: 2px solid #d7eef7;
}
.financial-entry-form .entry-account-combo input[type='search'] {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
}
.entry-account-row {
  position: relative;
}
.entry-account-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: calc(100% - 42px);
  max-height: 245px;
  overflow: auto;
  background: #f9fdff;
  border: 1px solid #c6e3ee;
  border-radius: 9px;
  box-shadow: 0 8px 18px #19374d24;
  z-index: 8;
}
.entry-account-options[hidden] {
  display: none;
}
.entry-account-options .account-picker-icon {
  width: 23px;
  height: 23px;
  font-size: 12px;
}
.entry-no-accounts {
  display: block;
  padding: 12px;
  color: #607987;
  font-size: 14px;
}
.entry-account-row:has(.entry-pin[hidden]) .entry-account-options {
  width: 100%;
}
.entry-category-row {
  position: relative;
}
.entry-category-row .entry-account-options {
  width: calc(100% - 42px);
}
.entry-category-row:has(.entry-pin[hidden]) .entry-account-options {
  width: 100%;
}
.entry-category-row .entry-account-options button {
  display: block;
  line-height: 1.35;
}
.entry-category-row .entry-account-options button strong {
  display: inline-block;
  min-width: 38px;
  font-size: 12px;
  color: #175e85;
}
.financial-dialog.category-picker-open > .drawer-head,
.financial-dialog.category-picker-open > .drawer-body {
  width: 50%;
}
.financial-dialog.category-picker-open > .drawer-body {
  height: calc(90vh - 75px);
}
@media (max-width: 700px) {
  .financial-dialog.category-picker-open > .drawer-head,
  .financial-dialog.category-picker-open > .drawer-body {
    width: 100%;
  }
}
.category-levels {
  display: flex;
  gap: 7px;
  padding: 10px 12px;
  border-bottom: 1px solid #deedf5;
}
.category-tree {
  padding: 5px 7px 16px;
}
.category-tree-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 41px;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 7px;
  padding: 6px 9px;
  color: #173a51;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
}
.category-tree-row:hover:not(:disabled),
.category-tree-row:focus-visible:not(:disabled) {
  background: #e6f5fb;
}
.category-tree-row.group {
  font-weight: 650;
}
.category-tree-row.depth-2 {
  padding-left: 25px;
}
.category-tree-row.depth-3 {
  padding-left: 48px;
  font-weight: 400;
}
.category-tree-row span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.category-tree-row .category-tree-arrow {
  width: 14px;
  flex: 0 0 14px;
  color: #3179a1;
}
.category-tree-row:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.quick-entry {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}
.quick-entry-button {
  background: #12664c;
  color: white;
  border: 0;
  border-radius: 8px;
  flex: 1;
  padding: 10px 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.quick-entry-button:hover {
  background: #0e513c;
}
.entry-method-row,
.entry-supplier-row {
  position: relative;
  display: flex;
  gap: 6px;
  align-items: center;
}
.entry-method-row > .entry-account-options,
.entry-supplier-row > .entry-account-options {
  position: absolute;
  z-index: 7;
  top: 100%;
  left: 0;
  right: 0;
}
.entry-actual-fields {
  margin-top: 10px;
}
.quick-entry .quick-entry-button {
  width: 100%;
  font-weight: 700;
  justify-content: flex-start;
  padding-left: 18px;
}
.entry-actual-fields[hidden] {
  display: none !important;
}
.entry-infinite-choice {
  grid-column: 1 / -1;
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 7px;
}
.entry-edit-scope {
  border: 1px solid #c9dfe9;
  border-radius: 9px;
  padding: 12px;
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.entry-edit-scope legend {
  font-weight: 700;
}
.financial-entry-form .entry-amount-card .entry-realized-toggle {
  margin: 15px 0 0;
  border-color: #c4e1ec;
  box-shadow: none;
}
.financial-entry-form .entry-infinite-choice {
  grid-column: 1/-1;
  margin: 0;
  border-color: #c4e1ec;
}
.financial-entry-form .entry-checkbox.entry-multi-toggle input[type='checkbox'],
.financial-entry-form .entry-infinite-choice.entry-multi-toggle input[type='checkbox'] {
  width: 37px !important;
  min-width: 37px;
  min-height: 22px !important;
  height: 22px;
}
.delete-flow .entry-footer {
  margin: 20px -22px 0;
  padding: 14px 22px 0;
  border-top: 1px solid #dce8ec;
}
[hidden].entry-main-label {
  display: none !important;
}
/* Seletor de dia do mês (componentes.js) */
.seletor-dia {
  position: relative;
  display: flex;
  gap: 6px;
  align-items: stretch;
}
.seletor-dia-botao {
  flex: 0 0 auto;
  width: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #c9d3dc;
  border-radius: 10px;
  background: #fff;
  color: #0f2d46;
  cursor: pointer;
}
.seletor-dia-botao:hover,
.seletor-dia-botao[aria-expanded='true'] {
  background: #ecfdf5;
  border-color: #13835f;
  color: #13835f;
}
.seletor-dia-painel {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  background: #fff;
  border: 1px solid #d7e3dc;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15, 45, 70, 0.18);
  padding: 10px;
  width: max-content;
  max-width: min(300px, 86vw);
}
.seletor-dia-grade {
  display: grid;
  grid-template-columns: repeat(7, 36px);
  gap: 4px;
}
.seletor-dia > input,
.seletor-dia > .seletor-dia-botao {
  margin-top: 0;
  margin-bottom: 0;
}
.entry-account-combo > .limpar-dentro {
  border: 0;
  background: transparent;
  color: #617187;
  font-size: 15px;
  padding: 0 6px;
  cursor: pointer;
  border-radius: 50%;
}
.entry-account-combo > .limpar-dentro:hover {
  color: #a5161b;
  background: #eef3f5;
}
.entry-cartao {
  border: 1px solid #bfdfd6;
  background: #ecfdf5;
  border-radius: 12px;
  padding: 12px 14px;
  display: grid;
  gap: 10px;
  color: #12263a;
  line-height: 1.5;
}
.entry-cartao[hidden] {
  display: none;
}
.entry-cartao p {
  margin: 0;
}
.entry-forma-topo {
  display: grid;
  gap: 8px;
  margin: 0 0 4px;
}
.entry-forma-topo[hidden] {
  display: none;
}
.entry-forma-rotulo {
  font-weight: 700;
  color: #153444;
}
/* janela Escolher colunas */
.escolher-colunas {
  padding: 16px 22px 0;
}
.escolher-colunas ul {
  list-style: none;
  margin: 10px 0;
  padding: 0;
  display: grid;
  gap: 5px;
  max-height: 55vh;
  overflow: auto;
}
.escolher-colunas li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #dce9ed;
  border-radius: 8px;
  background: #fff;
  cursor: grab;
}
.escolher-colunas li.marcada {
  border-color: #9cc7d8;
  background: #f4fbfd;
}
.escolher-colunas li.arrastando {
  opacity: 0.4;
}
.escolher-colunas li.fixa {
  cursor: default;
  background: #f5f7f8;
}
.escolher-colunas li label {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 14px;
  color: #153444;
  cursor: pointer;
}
.escolher-colunas li input {
  width: 17px;
  height: 17px;
  accent-color: #123f5a;
}
.escolher-colunas li small {
  color: #8aa3ae;
}
.escolher-colunas .entry-footer {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 14px -22px 0;
  padding: 14px 22px;
}
.escolher-colunas .entry-footer > span {
  flex: 1;
}
.escolher-colunas li {
  padding: 6px 10px;
}
.escolher-colunas li label {
  padding: 0;
  min-height: 0;
  margin: 0;
  font-weight: 500;
  display: flex;
}
.escolher-colunas ul {
  gap: 4px;
}
.escolher-colunas li input[type='checkbox'] {
  min-height: 0 !important;
  height: 17px !important;
  width: 17px !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: 0 0 17px;
}
.escolher-colunas li button {
  min-height: 0 !important;
  height: auto !important;
}
.entry-nova-conta {
  border: 1px solid #c4dbe3;
  border-radius: 8px;
  background: #f4fbfd;
  color: #123f5a;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  padding: 8px 9px;
  white-space: nowrap;
  cursor: pointer;
}
.entry-nova-conta:hover {
  background: #e3f3f8;
}
.entry-account-combo input[type='search']::-webkit-search-cancel-button {
  -webkit-appearance: none;
  display: none;
}
.entry-supplier-method:has(> label:only-child) {
  grid-template-columns: 1fr;
}
/* Bloco 9: compra pessoal logo abaixo do cartão e aviso da conta do cartão */
.entry-cartao-chaves {
  display: grid;
  gap: 8px;
}
.entry-cartao-chaves[hidden] {
  display: none;
}
.entry-conta-cartao {
  margin: -6px 0 10px;
  font-size: 12px;
  color: #1f6f56;
}
.entry-conta-cartao[hidden] {
  display: none;
}
.entry-supplier-row > .entry-pin,
.entry-method-row > .entry-pin {
  flex: none;
}
.entry-edit-scope label:has(input:checked) {
  border-color: #12664c;
  background: #eef8f3;
}
.entry-edit-scope input[type='radio'] {
  width: 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
  margin: 0;
  flex: none;
  accent-color: #12664c;
  box-shadow: none;
  border: 0;
}
.entry-media-choice {
  grid-column: 1/-1;
}
.entry-parcela-inicial {
  max-width: 220px;
}
.entry-outra-forma {
  border-top: 1px dashed #d6e3de !important;
  color: #1d4ed8 !important;
  font-weight: 600;
}
