/* Card de Saldos */
.card-saldos {
    min-height: 99px;
}
.card-saldos-valor-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
    gap: 8px;
}
.card-saldos-valor-text {
    font-size: 18px;
    font-weight: bold;
    color: #0b5394;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1 1 auto; /* permite encolher se necessário */
}
.card-saldos-valor-text .currency {
    font-size: 14px;
    vertical-align: super;
}
/* Card de Saldos */

/* Primeira linha do dashboard */
.btn-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    padding: 6px 0;
    font-size: 21px;
    text-align: center;
    background: rgb(243, 243, 243);
    color: #0b5394;
}
.btn-circle-sm {
    width: 25px;
    height: 26px;
    border-radius: 50%;
    font-size: 14px;
    line-height: 28px;
    text-align: center;
    background: rgb(243, 243, 243);
    color: #0b5394;
    border: none;
    padding: 0;
    flex-shrink: 0;
}

/* Primeira linha do dashboard */
  
@media (max-width: 480px) {
    .valor-row {
      gap: 6px;
    }
    .valor-text {
      font-size: 14px;
    }
    .valor-text .currency {
      font-size: 11px;
    }
    .btn-circle-sm {
      width: 24px;
      height: 24px;
      font-size: 12px;
      line-height: 24px;
    }
} 

@media (max-width: 1400px) {
    .valor-text {
      font-size: 16px;
    }
    .valor-text .currency {
      font-size: 12px;
    }
    .btn-circle-sm {
      width: 24px;
      height: 24px;
      font-size: 12px;
      line-height: 24px;
    }
} 

@media (min-width: 768px) {
    .valor-row {
        margin: 17px 0;
    }
}

/* Card de Resumo do Mês */
.card-resumo {
    min-height: 144px;
}
/* Card de Resumo do Mês */

.btn-detalhes {
    display: inline-block;
    position: absolute;
    margin-top: 5px;
    margin-left: 10px;
    padding: 5px 6px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    background-color: #337ab7;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

/* Shortcut card */
.shortcut-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    min-height: 110px; /* força altura mínima para alinhar */
}
.shortcut-card {
    padding: 0;
    max-height: 466px;
    overflow-y: auto;
}
.shortcut-item {
    width: 80px;
    max-width: 80px;
    height: 80px;
    padding-top: 6px;
    text-align: center;
    text-decoration: none;
    flex: 1 0 80px;
    color: #337ab7;
    transition: all 0.2s ease-in-out;
}
.shortcut-item:hover{
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    background-color: #f9f9f9;
}
.shortcut-item:hover .shortcut-icon-circle {
    background-color: #d0e3f6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.shortcut-icon-circle {
    width: 50px;
    height: 50px;
    margin: 0 auto 6px auto;
    background: #eaf3fc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.shortcut-label {
    font-size: 11px;
    line-height: 1.2;
    height: 28px;
    overflow: hidden;
    white-space: normal;
    word-break: break-word;
}
.shortcut-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 100px;
    padding: 8px;
    margin-bottom: 10px;
    color: #337ab7;
    background-color: transparent;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s;
}
.shortcut-link:hover {
    background-color: #f5f5f5;
}
.shortcut-icon {
    margin-bottom: 5px;
}
.shortcut-icon i {
    font-size: 24px;
    margin-bottom: 6px;
    display: inline-block;
    line-height: 1;
}
.shortcut-section-title {
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: bold;
    color: #888;
    border-bottom: 1px solid #eee;
    padding-bottom: 4px;
}
/* Shortcut card */

.hr-sm {
    margin: 10px 0;
    border-color: #ddd;
}

.btn-detalhes:hover {
    background-color: #286090;
    color:#eaf3fc;
    text-decoration: none;
}

.card-balance {
    text-align: center;
}

.card-header {
    font-size: 18px;
}

.card-obs {
    font-size: 9px;
    font-weight: 100;
    position: absolute;
    margin-left: 32px;
    margin-top: 8px;
}

.card-body {
    font-size: 25px;
    float: letf;
    margin: 10px;
    width: 100%;
}

/* Card de Dicas */
.box-info-tip {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 10px 15px;
    font-size: 14px;
    line-height: 1.6;
    color: #1c3b5a; /* tom azul escuro do sistema */
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
.box-info-tip strong {
    color: #0d6efd;
}
.box-info-tip i {
    color: #4dabf7; /* ícone em azul claro */
    margin-right: 6px;
}
.panel-body.dica-body {
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    font-weight: 500;
    color: #3a3a3a;
    font-size: 15px;
    text-align: center;
}
.dica-body span {
    max-width: 90%;
    display: block;
    margin: auto;
}
.card-dica {
    font-size: 13px;
    line-height: 1.5;
    background-color: #fff;
    border-radius: 6px;
    padding: 0;
    height: 374px;
    overflow-y: auto;
}
.card-dica-header {
    background-color: #e8f9f1 !important;
}
/* Card de Dicas */

.card-pizza-categorias {
    min-height: 240px;
}

.card-pizza-categorias,
.card-pizza-categorias .panel-body {
    overflow: visible !important;
    position: relative;
    z-index: 10;
}

.card-pizza-categorias canvas {
    max-width: 100%; 
    max-height: 240px;
    box-sizing: unset !important;
    height: auto !important;
    width: 245px !important;
    margin: 0 auto;
    display: flex !important;
    flex-direction: column-reverse;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    overflow: visible !important;
}

.card-lista-grupos {
    max-height: 233px;
    overflow-y: auto;
}

.panel .font-weight-bold {
    font-size: 18px;
}
.panel .text-muted {
    font-size: 12px;
}
.panel .small {
    font-size: 11px;
}

/* Modal com saldos */
.modal-saldo-icon {
    margin-right: 6px;
    color: #0b5394; /* azul institucional */
}
.total-row {
    background-color: #0b5394;
    color: #fff;
    font-weight: bold;
}
.dash-heading {
    background: linear-gradient(to right, #f8f9fa, #e9f0f9);
    border-bottom: 1px solid #dbe3ec;
}
/* Modal com saldos */

/* Composição das Despesas (Fixas vs. Variáveis */
.card-compdespesas .panel-body {
    height: 270px;
    display: flex;
    justify-content: center;
}
.card-compdespesas canvas {
    display: block;
    margin: 0 auto;
    height: 100% !important;
    width: 100% !important;
}
/* Composição das Despesas (Fixas vs. Variáveis */

/* Evolução Anual */
.card-evolucao-anual .panel-body {
    height: 466px;
    display: flex;
    justify-content: center;
}
.card-evolucao-anual canvas {
    display: block;
    margin: 0 auto;
    height: 100% !important;
    width: 100% !important;
}
/* Evolução Anual */

/* Card Análise de Investimentos */
.card-investimentos {
    min-height: 311px;
}
.card-investimentos .panel-body {
    margin-top: 25px;
}
.card-investimentos .alert {
    font-size: 12px;
    margin-top: -35px;
    margin-bottom: 7px;
}
/* Card Análise de Investimentos */