*:not(.wp-admin *):not(.wp-admin):not(.admin-bar *):not(.admin-bar) {
    /*font-size: 14px;*/
}
body {

     font-family: Arial, Helvetica, sans-serif;
      font-size: 14px; /* base para rem */
      line-height: 1.5;
      /*background: #f5f5f5;*/
      color: #333;

}

/*menu admin*/
li#wp-admin-bar-site-name, .conteudo, .wp-block-spacer, .wp-block-post-title {
    display: none;
}

h1 {
    font-size: 2rem; /* 32px */
    margin-top: 16px;
    margin-bottom: 16px;
}

h2 {
    font-size: 1.5rem !important; /* 24px */
    margin-top: 12px;
    margin-bottom: 12px;
}

h3 {
    font-size: 1.25rem !important; /* 20px */
    margin-top: 8px;
    margin-bottom: 8px;
}

h4 {
    font-size: 1rem;   /* 20px */
    margin-top: 4px;
    margin-bottom: 4px;
}

caption, legend.bd-legend {
    font-size: 1.15rem;   /* 20px */
    margin-bottom: 4px;

}

body {
    background-color: #ddd;
}

.wp-block-site-logo {
    width: 75%;
}

.entry-content.wp-block-post-content.has-global-padding.is-layout-constrained.wp-block-post-content-is-layout-constrained {
    padding: 0 10px 0 10px;
}

fieldset.bd-fieldset, fieldset.bd-field-pai {
    max-width: 93%;
    width: 400px;
}
fieldset.bd-field-pai {
    text-align: center;
}
fieldset.bd-field-filho {
    text-align: justify;
}
.bd-info {
    display: flex;
    justify-content: space-between;
}

span.db-detalhes {
    font-size: 0.8em !important;
    font-style: oblique;
    font-weight: 600;
}
div.db-detalhes {
    font-size: 1em !important;
}

/***Daqui pra baixo, tem que rever***/

table.bd-table {
    width: 100%;
    /* display: block; */
    min-inline-size: min-content;
    margin-inline: 2px;
    border-width: 2px;
    border-style: groove;
    border-color: threedface;
    border-image: initial;
    padding-block: 0.35em 0.625em;
    padding-inline: 0.1em;
}

/*
.db-cb-descricao {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 5px;
    margin-top: 0;
}
*/

.db-cb-descricao.ativo, .conteudo.ativo {
    display: block;
}
/* Quando ativo, expande suavemente */
.db-cb-descricao.ativo {
    /*max-height: 500px; /* valor grande o suficiente */
    padding: 10px 5px;
    margin-top: 10px;
}
.conteudo {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.conteudo.ativo {
  max-height: 500px; /* ou usar JS com scrollHeight */
}


/* Deixa o título clicável */
.toggle-descricao {
    cursor: pointer;
    user-select: none;
    color: #0073aa;
}

.toggle-descricao:hover {
    text-decoration: underline;
}

img.bd-emoji {
    width: 1em;
    height: 1em;
}

.bd-cb.db-cb-recursos {
    display: flex;
    justify-content: space-between;
}

.db-cb-recursos.hab {
    display: flex;
    align-items: center;
}

/* Estilizando o Modal */
.cashbox-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.cashbox-modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    width: 60%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.cashbox-modal-close {
    float: right;
    font-size: 20px;
    cursor: pointer;
}

/* Estilos para a tabela de pagamentos */
#pagamentosTabela {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

#pagamentosTabela th, #pagamentosTabela td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

#pagamentosTabela th {
    background-color: #f2f2f2;
}

/* Definir cores para valores negativos e positivos */
.valor-cell.negativo {
    color: red;
    font-weight: bold;
}

.valor-cell.positivo {
    color: blue;
    font-weight: bold;
}

.bd-table-bnt {
    text-align: end;
}
.txt_sub {
    font-variant-position: sub;
    font-size: 12px;
}

.dashbox-tabela-solicitacoes {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    font-family: Arial, sans-serif;
}

.dashbox-tabela-solicitacoes th,
.dashbox-tabela-solicitacoes td {
    border: 1px solid #ccc;
    padding: 8px 12px;
    text-align: left;
}

.dashbox-tabela-solicitacoes th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.dashbox-tabela-solicitacoes tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.dashbox-tabela-solicitacoes tbody tr:hover {
    background-color: #eef;
}

.dashbox-tabela-solicitacoes td strong {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    background-color: #eee;
}

.dashbox-tabela-solicitacoes td strong:before {
    content: "• ";
}

/*Css Página notificação em /templetes/notificacoes.php
.cashbox-notificacoes {
    list-style: none;
    padding: 0;
}
.cashbox-notificacoes li {
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 10px;
}
.tipo-sucesso { background: #e6ffed; border-color: #34c38f; }
.tipo-alerta { background: #fff8e1; border-color: #f1c40f; }
.tipo-erro   { background: #fdecea; border-color: #e74c3c; }
.tipo-info   { background: #eaf6ff; border-color: #3498db; }


/*
Layout para smartphone
*/

.meu-box {
  border: 1px solid #333;
  padding: 10px;
}

.meu-box legend {
  font-weight: bold;
  padding: 0 8px; /* espaçamento lateral */
}

legend.db-all-cashbox, legend.ativo {
    
}

legend.db-all-cashbox:after {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    background-size: contain;
    background-repeat: no-repeat;
    margin-left: 6px;
    margin-right: 6px;
    vertical-align: middle;
    background-image: url(https://caixinha.bidelait.com.br/wp-content/plugins/cashboxforfriendly/assets/svg/emoji/plus.svg);
}
legend.ativo:after {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    background-size: contain;
    background-repeat: no-repeat;
    margin-left: 6px;
    margin-right: 6px;
    vertical-align: middle;
    background-image: url(https://caixinha.bidelait.com.br/wp-content/plugins/cashboxforfriendly/assets/svg/emoji/minus.svg);
}

.bd-table-bnt {
    margin-bottom: 7px;
}


/* Barra Cashbox fixa inferior */
.cashbox-toolbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #111;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 2px solid #444;
  z-index: 99999; /* Sempre acima do conteúdo */
}

/* Cada item */
.cashbox-toolbar .tool-item {
  color: #fff;
  text-decoration: none;
  font-size: 1.4rem;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cashbox-toolbar .tool-item span {
  font-size: 0.7rem;
  margin-top: 2px;
}

/* Hover/touch highlight */
.cashbox-toolbar .tool-item:hover {
  color: #ffd700;
}

/* Esconde em desktop */
@media (min-width: 768px) {
  .cashbox-toolbar {
    display: none;
  }
}
