/* Livro Diário: tabela de lançamentos, filtros, colunas, seleção em lote e marcas das contas.
   Bloco 59 passo 9: parte do antigo style.css. A ordem de carregamento está no index.html (base primeiro). */
.ledger-th-label {
  display: flex;
  align-items: center;
  gap: 5px;
  position: relative;
}
.ledger-column-filter {
  display: none;
  position: absolute;
  z-index: 25;
  left: 8px;
  top: 42px;
  width: 310px;
  padding: 14px;
  background: #fff;
  border: 1px solid #bfdbe5;
  border-radius: 10px;
  box-shadow: 0 16px 38px #123e5e35;
  text-align: left;
  white-space: normal;
}
.ledger-column-filter.open {
  display: grid;
  gap: 9px;
}
.ledger-column-filter label input {
  margin: 0;
}
.ledger-column-filter .filter-ok {
  background: #123f5a;
  color: #fff;
}
.ledger-expanded-title {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 14px;
  color: #0d3048;
  font-size: 20px;
}
.ledger-expanded .sidebar {
  width: 64px;
  padding-left: 8px;
  padding-right: 8px;
}
.ledger-expanded .sidebar .brand-copy,
.ledger-expanded .sidebar .sidebar-text,
.ledger-expanded .sidebar .nav-label,
.ledger-expanded .sidebar-note,
.ledger-expanded .sidebar-bottom small,
.ledger-expanded .workspace > div,
.ledger-expanded .workspace .green-dot {
  display: none !important;
}
.ledger-expanded .sidebar .nav {
  justify-content: center;
}
.ledger-expanded .main-shell {
  margin-left: 64px;
}
.ledger-expanded .topbar {
  display: none;
}
.ledger-expanded main {
  max-width: none;
  padding: 20px 24px 8px;
}
.ledger-expanded .ledger-card {
  height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
}
.ledger-expanded .ledger-card .financial-scroll {
  flex: 1;
  overflow: auto;
}
.ledger-expanded .ledger-selection-bar {
  left: 50%;
}
@media (max-width: 720px) {
  .ledger-column-filter {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 18%;
    width: auto;
  }
  .ledger-expanded .main-shell {
    margin-left: 0;
  }
  .ledger-expanded .sidebar {
    display: none;
  }
}
.financial-ledger .ledger-select-cell {
  width: 46px;
  min-width: 46px;
  text-align: center;
  padding: 10px 8px;
}
.financial-ledger .ledger-select-cell input {
  width: 17px;
  height: 17px;
  accent-color: #123f64;
  cursor: pointer;
}
.financial-ledger tbody tr.ledger-row-selected,
.financial-ledger tbody tr.ledger-row-selected:hover {
  background: #64cee9;
}
.ledger-selection-bar {
  position: fixed;
  bottom: 26px;
  left: calc(50% + 80px);
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: calc(100vw - 24px);
  padding: 10px 14px;
  border-radius: 28px;
  background: #203045;
  color: #fff;
  box-shadow: 0 12px 35px #152c4350;
  white-space: nowrap;
  overflow-x: auto;
}
.ledger-selection-bar .ledger-selection-delete {
  color: #ff8b85;
}
@media (max-width: 700px) {
  .ledger-selection-bar {
    left: 50%;
    bottom: 12px;
    justify-content: flex-start;
  }
}
/* Livro Diário: atalhos de conta, edição contextual e tabela operacional */
.ledger-account-shortcuts {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin: 0 0 13px;
}
.ledger-account-chip {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid #d9e3dc;
  border-radius: 9px;
  background: #fff;
  color: #587066;
  font-size: 11px;
  cursor: pointer;
}
.ledger-account-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ledger-account-chip.selected {
  border-color: #17694f;
  background: #e8f3ee;
  color: #174f3e;
  box-shadow: 0 0 0 1px #17694f inset;
}
.ledger-account-mark {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 7px;
  background: #123f5a;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: -0.2px;
}
.ledger-account-mark.cash {
  background: #17694f;
  font-size: 13px;
}
.ledger-head {
  align-items: center;
}
.ledger-head > div:first-child span {
  display: block;
  margin-top: 5px;
  color: #8a9a91;
  font-size: 10px;
}
.ledger-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ledger-tools details {
  position: relative;
}
.ledger-columns {
  position: absolute;
  right: 0;
  top: 38px;
  z-index: 8;
  width: 190px;
  padding: 10px;
  background: #fff;
  border: 1px solid #dbe4dd;
  border-radius: 10px;
  box-shadow: 0 12px 32px #1b3f3022;
}
.financial-ledger tr:hover .ledger-hover-action button,
.financial-ledger tr:focus .ledger-hover-action button {
  opacity: 1;
}
dialog.ledger-side-dialog {
  position: fixed;
  margin: 0 0 0 auto;
  inset: 0 0 0 auto;
  height: 100vh;
  max-height: 100vh;
  width: min(570px, 96vw);
  border-radius: 16px 0 0 16px;
  animation: ledger-slide 0.18s ease-out;
}
@media (max-width: 720px) {
  .ledger-tools {
    align-items: flex-end;
    flex-direction: column;
  }
  .ledger-account-chip {
    flex: 1 1 145px;
  }
  .financial-ledger .ledger-hover-action button {
    opacity: 1;
  }
  dialog.ledger-side-dialog {
    width: 100vw;
    border-radius: 0;
  }
}
.ledger-page-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 16px;
}
.ledger-page-title h2 {
  margin: 0;
  color: #153444;
  font-size: 24px;
}
.ledger-active-filters {
  padding: 10px 12px;
  border: 1px solid #d9e6e1;
  border-radius: 10px;
  background: #f7faf8;
}
.ledger-active-filters .clear-all {
  margin-left: auto;
  background: transparent;
  border: 0;
  text-decoration: underline;
}
.ledger-advanced {
  margin: 10px 0 15px;
}
.ledger-totals {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  margin: 10px 0;
  color: #526c78;
}
.ledger-columns p {
  margin: 2px 5px 7px;
  color: #60756b;
  font-size: 11px;
}
.ledger-columns label[draggable='true'] {
  cursor: grab;
  border-radius: 6px;
}
.ledger-columns label[draggable='true']:hover {
  background: #edf5f1;
}
.ledger-account-mark.institution-itau {
  background: #ec7000;
}
.ledger-account-mark.institution-bradesco {
  background: #cc092f;
}
.ledger-account-mark.institution-mercado-pago {
  background: #009ee3;
}
.ledger-account-mark.institution-inter {
  background: #ff7a00;
}
.ledger-account-mark.institution-nubank {
  background: #820ad1;
}
.ledger-account-mark.institution-santander {
  background: #ec0000;
}
.ledger-account-mark.institution-caixa {
  background: #0065a8;
}
.ledger-account-mark.institution-bb {
  background: #ffdf00;
  color: #17365d;
}
.ledger-account-mark.institution-cash {
  background: #17694f;
}
.ledger-compact-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 10px 0 14px;
  padding: 8px 12px;
  background: #f4fbfd;
  border: 1px solid #d4e7ee;
  border-radius: 11px;
}
.ledger-compact-bar details {
  position: relative;
}
.ledger-compact-bar .ledger-active-filters {
  margin: 0;
  flex: 1 1 100%;
}
.ledger-compact-bar .ledger-columns {
  width: 235px;
  max-height: 65vh;
  overflow: auto;
}
.financial-ledger .ledger-pinned-select {
  left: 0;
}
.financial-ledger .ledger-row-selected .ledger-pinned-select,
.financial-ledger .ledger-row-selected [data-ledger-column='planned'],
.financial-ledger .ledger-row-selected [data-ledger-column='history'] {
  background: #64cee9;
}
.financial-ledger th[data-ledger-column='planned'] .ledger-column-filter,
.financial-ledger th[data-ledger-column='history'] .ledger-column-filter {
  z-index: 15;
}
.ledger-expanded .ledger-card {
  height: calc(100vh - 135px);
}
.financial-ledger .ledger-pinned-select {
  width: 46px;
  max-width: 46px;
  box-sizing: border-box;
}
.ledger-compact-bar .ledger-columns label:has(input:disabled) {
  opacity: 0.7;
  cursor: default;
}
.bulk-realize-form {
  padding: 18px 22px 0;
}
.bulk-realize-form fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.bulk-realize-form fieldset > label {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0 0 20px;
  color: #173c50;
  cursor: pointer;
}
.bulk-realize-form input[type='radio'] {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin-top: 2px;
  accent-color: #123f5a;
}
.bulk-realize-form label span {
  display: grid;
  gap: 5px;
}
.bulk-realize-form label strong {
  font-size: 16px;
}
.bulk-realize-form label small {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  color: #416071;
}
.bulk-realize-form input[type='date'] {
  width: 240px;
  margin: -8px 0 8px 29px;
}
.bulk-realize-form .entry-footer {
  margin-left: -22px;
  margin-right: -22px;
  padding-left: 22px;
  padding-right: 22px;
}
.bulk-realize-form .entry-footer .primary {
  background: #2563eb;
}
.bulk-realize-form .entry-footer .secondary {
  min-width: 135px;
}
.livro-topo {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}
.livro-titulo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.livro-titulo > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #dcebe6;
  color: #123f32;
  font-size: 21px;
}
.livro-titulo h2 {
  margin: 0;
  color: #153444;
  font-size: 24px;
}
.livro-saldo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 6px 8px 6px 16px;
  border: 1px solid #d4e7ee;
  border-radius: 12px;
  background: #fff;
}
.livro-saldo > span {
  color: #55707a;
  font-size: 14px;
}
.livro-saldo > strong.negative {
  color: #c0262c;
}
.livro-navegar {
  display: flex;
  align-items: center;
  border: 1px solid #c4dbe3;
  border-radius: 9px;
  overflow: hidden;
}
.livro-navegar button + button {
  border-left: 1px solid #c4dbe3;
}
.livro-navegar button:hover:not(:disabled) {
  background: #eef8fb;
}
.livro-novo {
  padding: 11px 16px;
  font-size: 14px;
}
.ledger-account-shortcuts .ledger-account-chip {
  font-size: 13px;
  padding: 7px 12px;
  position: relative;
}
.livro-chip-texto {
  display: grid;
  line-height: 1.2;
}
.livro-chip-texto > span {
  font-size: 12px;
  color: #587066;
}
.ledger-account-chip.selected .livro-chip-texto > span {
  color: #174f3e;
}
button.ledger-account-chip.livro-todas {
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  min-height: 41px;
}
.livro-barra {
  gap: 10px;
  padding: 8px 10px;
  background: #fff;
  border-color: #d4e7ee;
}
.livro-abas {
  display: flex;
  background: #eef5f7;
  border-radius: 9px;
  padding: 3px;
}
.livro-contador {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: #dfe9ee;
  color: #476576;
  font-size: 12px;
  font-weight: 800;
}
.livro-contador.tem {
  background: #c0262c;
  color: #fff;
}
.livro-barra-meio {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.livro-periodo-texto {
  font-size: 15px;
  font-weight: 700;
  color: #153444;
  min-width: 90px;
}
.livro-barra-meio input[type='date'] {
  width: auto !important;
  padding: 7px 8px;
  border: 1px solid #bdd6e2;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
}
.livro-filtros {
  position: relative;
  margin: 0;
}
.livro-filtros[open] > summary {
  background: #eef8fb;
}
.livro-filtros-painel {
  position: absolute;
  z-index: 30;
  top: 44px;
  left: 0;
  width: min(440px, 90vw);
  padding: 14px;
  background: #fff;
  border: 1px solid #bfdbe5;
  border-radius: 12px;
  box-shadow: 0 16px 38px #123e5e35;
  display: grid;
  gap: 6px;
}
.livro-filtros-painel .financial-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.livro-filtros-painel .financial-filters label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  margin: 0;
}
.livro-filtros-painel .ledger-quick-filters {
  margin: 4px 0;
}
.livro-busca {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 220px;
  padding: 0 10px;
  border: 1px solid #bdd6e2;
  border-radius: 8px;
  color: #55707a;
}
.livro-icones {
  display: flex;
  gap: 6px;
}
/* tabela: texto à esquerda, valores à direita, letras maiores; colunas livres (nada preso além da caixinha) */
.livro-tabela th,
.livro-tabela td {
  text-align: left;
  font-size: 14px;
  padding: 11px 12px;
}
.livro-tabela th {
  font-size: 13px;
  color: #35566a;
  background: #edf6f8;
}
.livro-tabela .right,
.livro-tabela .livro-valor {
  text-align: right;
}
.livro-tabela th.right .ledger-th-label {
  justify-content: flex-end;
}
.livro-tabela .livro-valor {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.financial-ledger.livro-tabela [data-ledger-column='planned'],
.financial-ledger.livro-tabela [data-ledger-column='history'] {
  position: static;
  left: auto;
  box-shadow: none;
  border-right: 0;
  width: auto;
  max-width: none;
}
.financial-ledger.livro-tabela [data-ledger-column='planned'],
.financial-ledger.livro-tabela [data-ledger-column='actual'] {
  min-width: 118px;
}
.financial-ledger.livro-tabela [data-ledger-column='history'] {
  min-width: 240px;
  max-width: 380px;
  white-space: normal;
}
.livro-tabela thead tr.livro-totais th {
  background: #f7fbfc;
  border-bottom: 2px solid #c9dde5;
  padding-top: 7px;
  padding-bottom: 7px;
  font-size: 14px;
}
.livro-totais span {
  color: #55707a;
  font-weight: 600;
  font-size: 13px;
}
.livro-totais strong.negative {
  color: #c0262c;
}
.livro-totais strong.positive {
  color: #087b59;
}
.livro-tabela .ledger-th-label > button[data-ledger-sort] {
  font-size: 14px;
  color: #123f5a;
}
.livro-tabela .ledger-hover-action {
  width: 48px;
  text-align: center;
}
.livro-tabela .ledger-hover-action button {
  opacity: 0.35;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #123f5a;
  font-size: 15px;
  cursor: pointer;
}
.livro-tabela .ledger-hover-action svg {
  width: 17px;
  height: 17px;
}
.livro-tabela tr:hover .ledger-hover-action button {
  opacity: 1;
  background: #eef8fb;
}
tr.livro-fatura {
  background: #f6f3fd;
}
tr.livro-fatura:hover {
  background: #efe9fb;
}
tr.livro-fatura {
  cursor: pointer;
}
.livro-fatura-abrir {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: #2d1f5c;
  cursor: pointer;
  text-align: left;
  padding: 0;
}
tr.livro-fatura-compra td {
  background: #fbfaff;
  font-size: 13px;
}
tr.livro-fatura-compra td.livro-historico {
  padding-left: 34px;
}
.livro-fatura-rodape td {
  padding: 8px 12px !important;
}
.livro-vazio {
  text-align: center !important;
  color: #55707a;
  padding: 28px !important;
}
.livro-paginacao {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid #dce9ed;
  font-size: 14px;
  color: #476576;
}
.livro-paginacao > span {
  margin-right: auto;
}
.livro-paginacao button:disabled {
  opacity: 0.4;
  cursor: default;
}
@media (max-width: 720px) {
  .livro-saldo {
    width: 100%;
    justify-content: space-between;
  }
  .livro-novo {
    width: 100%;
  }
  .livro-barra-meio {
    flex: 1 1 100%;
  }
  .livro-filtros-painel .financial-filters {
    grid-template-columns: 1fr;
  }
  .livro-paginacao {
    flex-wrap: wrap;
  }
}
.livro-topo .livro-novo {
  border-radius: 10px;
  border: 0;
  color: #fff;
}
.livro-topo .livro-navegar button {
  border-radius: 0;
  border: 0;
  color: #123f5a;
}
.livro-topo .livro-navegar button + button {
  border-left: 1px solid #c4dbe3;
}
.livro-topo .livro-navegar button.ativo {
  color: #fff;
}
.financial-ledger.livro-tabela {
  width: 100%;
  min-width: 760px;
}
.livro-tabela th,
.livro-tabela td {
  padding: 9px 12px;
}
.livro-tabela th {
  letter-spacing: 0;
}
.livro-barra .livro-busca {
  flex: 1 1 160px;
  min-width: 150px;
}
.livro-barra-meio input[type='date'] {
  max-width: 140px;
}
.livro-tabela td.ledger-hover-action,
.livro-tabela th.ledger-hover-action {
  padding: 4px 6px;
  width: 40px;
}
.livro-tabela .ledger-hover-action button {
  width: 28px;
  height: 28px;
}
.financial-ledger.livro-tabela [data-ledger-column='planned'],
.financial-ledger.livro-tabela [data-ledger-column='actual'] {
  min-width: 0;
  width: 1%;
}
.financial-ledger.livro-tabela [data-ledger-column='history'] {
  min-width: 180px;
  max-width: 300px;
}
.livro-tabela td[data-ledger-column='account'],
.livro-tabela td[data-ledger-column='supplier'] {
  white-space: normal;
  min-width: 110px;
}
.livro-tabela .ledger-th-label {
  white-space: nowrap;
}
.livro-tabela th,
.livro-tabela td {
  padding: 9px 10px;
}
.livro-tabela thead tr:first-child th .ledger-th-label {
  white-space: normal;
  line-height: 1.2;
}
.livro-tabela th[data-ledger-column='planned'] .ledger-th-label,
.livro-tabela th[data-ledger-column='actual'] .ledger-th-label {
  max-width: 92px;
}
.livro-tabela .ledger-th-label > button[data-open-column-filter] {
  opacity: 0.45;
}
.livro-tabela th:hover .ledger-th-label > button[data-open-column-filter],
.livro-tabela .ledger-th-label > button.active {
  opacity: 1;
}
.livro-tabela td[data-ledger-column='account'] {
  white-space: nowrap;
}
.livro-tabela td[data-ledger-column='supplier'] {
  min-width: 120px;
}
.financial-ledger.livro-tabela th[data-ledger-column='planned'],
.financial-ledger.livro-tabela th[data-ledger-column='actual'],
.financial-ledger.livro-tabela td[data-ledger-column='planned'],
.financial-ledger.livro-tabela td[data-ledger-column='actual'] {
  width: 104px;
  max-width: 112px;
}
.livro-tabela th,
.livro-tabela td {
  padding: 9px 8px;
}
.livro-tabela td[data-ledger-column='account'] {
  white-space: normal;
  min-width: 96px;
}
.livro-tabela td[data-ledger-column='supplier'] {
  min-width: 100px;
}
.financial-ledger.livro-tabela [data-ledger-column='history'] {
  min-width: 170px;
}
.livro-totais th {
  overflow: visible;
}
.livro-totais span {
  position: relative;
  z-index: 1;
  white-space: nowrap;
}
.livro-barra {
  gap: 8px;
}
.livro-barra .livro-busca {
  flex: 1 1 130px;
  min-width: 130px;
}
.livro-periodo-texto {
  min-width: 0;
}
.livro-icones {
  margin-left: auto;
}
.financial-ledger.livro-tabela tr.livro-fatura td {
  background: #f6f3fd;
}
.financial-ledger.livro-tabela tr.livro-fatura:hover td {
  background: #efe9fb;
}
.financial-ledger.livro-tabela tr.livro-fatura-compra td {
  background: #fbfaff;
}
.financial-ledger.livro-tabela tbody tr[data-ledger-row]:hover td {
  background: #f4f8fb;
}
.financial-ledger.livro-tabela tbody tr.ledger-row-selected td {
  background: #cdeef7;
}
/* Bloco 2: bancos novos, "+ Nova conta" e cartão com ícone do banco */
.ledger-account-mark.institution-picpay {
  background: #11c76f;
}
.ledger-account-mark.institution-c6 {
  background: #242424;
}
.ledger-account-mark.institution-neon {
  background: #00a6e6;
}
.ledger-account-mark.institution-pagbank {
  background: #1a9f5a;
}
.ledger-account-mark.institution-generic {
  background: #5b7482;
}
.ledger-expanded .fluxo-rolagem {
  max-height: calc(100vh - 150px);
}
.ledger-expanded .fluxo-rolagem {
  max-height: none;
}
.lsp-titulo {
  display: flex;
  gap: 12px;
  align-items: center;
}
.lsp-titulo > span {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #059669;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}
.lsp-titulo p {
  margin: 3px 0 0;
  color: #4b6573;
  font-size: 13px;
}
.lsp-linhas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.lsp-linhas > div {
  background: #fff;
  border: 1px solid #e0eaee;
  border-radius: 12px;
  padding: 9px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
@media (max-width: 700px) {
  .lsp-linhas {
    grid-template-columns: 1fr;
  }
}
/* 23/10: conta com investido — disponível e investido no mesmo botão */
.livro-chip-invest {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  color: #5d6c66;
  white-space: nowrap;
}

/* 04/11 (chat do visual, regra das telas — docs/visual-telas.md): Livro Diário num quadro branco só (barra e
   lista). Sem o saldo e os botões das contas (Thauand, 04/11: "o Livro Diário é pra ver os lançamentos"); ‹ Hoje ›
   foi para a barra. A barra é uma faixa cinza-azulada do quadro; a lista é tabela: fica branca. */
.livro-quadro {
  background: #fff;
  border: 1px solid #e2e7ee;
  border-radius: 14px;
  padding: 16px 18px 18px;
  box-shadow: 0 1px 3px rgba(18, 63, 90, 0.05);
}
.livro-quadro .livro-barra {
  background: var(--vis-neutro-bg);
  border-color: #dfe6ee;
  margin-top: 0;
}
.livro-quadro .livro-barra .livro-navegar {
  margin-left: 4px;
}
.livro-quadro .livro-cartao {
  margin-bottom: 0;
}
@media (max-width: 760px) {
  .livro-quadro {
    padding: 10px 10px 12px;
  }
}
/* 04/11 (Thauand: "colocar em uma linha só"): abas, período, data, ‹ Hoje ›, Filtros, busca e ícones numa linha só
   no computador (botões um pouco menores; a busca ocupa o que sobrar). No celular a barra quebra em linhas. */
@media (min-width: 761px) {
  .livro-quadro .livro-barra {
    flex-wrap: wrap; /* no Dia cabe numa linha; em Semana/Mês/Ano o texto do período pode descer a busca */
    gap: 6px;
    padding: 6px 8px;
  }
  .livro-quadro .livro-barra .livro-abas button {
    padding: 6px 10px;
    font-size: 13px;
  }
  .livro-quadro .livro-barra select,
  .livro-quadro .livro-barra input[type='date'] {
    padding: 6px 6px;
    font-size: 13px;
  }
  .livro-quadro .livro-barra .livro-navegar button {
    padding: 5px 9px;
    font-size: 13px;
  }
  .livro-quadro .livro-barra .livro-filtros > summary {
    padding: 6px 10px;
    font-size: 13px;
  }
  .livro-quadro .livro-barra .livro-busca {
    flex: 1 1 160px;
    min-width: 140px;
  }
  .livro-quadro .livro-barra .livro-icones {
    flex: none;
    gap: 4px;
    margin-left: 0;
  }
  .livro-quadro .livro-barra .livro-icones button {
    width: 34px;
    height: 34px;
  }
  .livro-quadro .livro-barra .livro-barra-meio {
    flex-wrap: nowrap;
    gap: 6px;
  }
}
@media (min-width: 761px) {
  .livro-quadro .livro-barra .livro-periodo-texto {
    font-size: 13.5px;
    min-width: 0;
    white-space: nowrap;
  }
}
/* 04/11 20h21 (Thauand): os botões das contas voltam como filtro, só com o nome (sem saldo). */
.livro-quadro .livro-contas {
  margin: 0 0 12px;
  gap: 7px;
}
.livro-quadro .livro-contas .ledger-account-chip {
  padding: 6px 11px;
  min-height: 34px;
}
.livro-quadro .livro-contas .livro-chip-texto > span {
  font-size: 13px;
  color: #33444f;
}
.livro-quadro .livro-contas .ledger-account-chip.selected .livro-chip-texto > span {
  color: #174f3e;
  font-weight: 650;
}
.livro-quadro .livro-contas button.livro-todas {
  min-height: 34px;
}
@media (max-width: 760px) {
  /* no celular os botões das contas ficam numa linha só, que desliza para o lado (não empurram a lista para baixo) */
  .livro-quadro .livro-contas {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }
  .livro-quadro .livro-contas .ledger-account-chip {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
  }
}
