* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'poppins', sans-serif;
}

.cards {
    width: 100%;
    padding: 35px 20px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-gap: 20px;
}

.cards .card {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 10px;
    box-shadow: 0 7px 25px rgba(0, 0, 0, 0.08);
}

.escuro {
    background-color: hsl(0deg 0% 9.02%);
}

.claro {
    background-color: #fff;
}

.number {
    font-size: 26px;
    font-weight: 500;
    color: #299B63;
    margin-bottom: 10px;
}

.card-name {
    color: #888;
    font-weight: 600;
}

.icon-boxclaro i {
    font-size: 45px;
    color: #0d09ed6b;
}

.icon-boxescuro i {
    font-size: 45px;
    color: whitesmoke;
}

/* charts */
.charts {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-gap: 20px;
    width: 100%;
    padding: 20px;
    padding-top: 0;
}

.chart {
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 7px 25px rgba(0, 0, 0, 0.08);
    width: 100%;
}

.chart h2 {
    margin-bottom: 5px;
    font-size: 20px;
    color: #666;
    text-align: center
}

.fonte-escura {
    color: #7A0303 !important;
}

@media (max-width:1115px) {
    .main {
        width: 100%;
    }
}

@media (max-width:880px) {
    .cards {
        width: 100%;
        padding: 35px 20px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 20px;
    }
    .charts {
        grid-template-columns: 1fr;
    }
    .doughnut-chart {
        padding: 50px;
    }
    #doughnut {
        padding: 50px;
    }
}

@media (max-width:500px) {
    .cards {
        grid-template-columns: 1fr;
    }
    .doughnut-chart {
        padding: 10px;
    }
    #doughnut {
        padding: 0px;
    }
}

.dashboard-title {
    text-align: center;
    color: #1f2937;
    margin-bottom: 30px;
}
/* Grid base baseado em 3 colunas para a linha superior */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px;
    max-width: 1600px;
    margin: 10px;
}
/* Estilização padrão dos cards */
.chart-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}
/* Gráficos da primeira linha: Ocupam 1 coluna cada (33.3% da largura) */
.third-width-card {
    grid-column: span 1;
}
/* Gráfico da segunda linha (Linha): Estica-se por todas as 3 colunas (100% da largura) */
.full-width-card {
    grid-column: span 3;
}

/* Responsividade para tablets e celulares (telas menores que 992px) */
@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr; /* Força fila única vertical */
    }
    .third-width-card, .full-width-card {
        grid-column: span 1; /* Todos os cards passam a ocupar 100% no mobile */
    }
}

/* Clean Table Layout Rules */
.clean-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.875rem;
}

.clean-table thead {
    border-bottom: 1px solid #e5e7eb;
}

.clean-table th {
    padding-bottom: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
}

.clean-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
}

.clean-table td {
    padding: 16px 0;
    color: #4b5563;
    vertical-align: middle;
}

.clean-table td.column-descritivo {
    font-weight: 500;
    color: #111827;
}

.clean-table td.column-data { 
    width: 15%; 
}

.clean-table td.column-acoes { 
    text-align: center; 
    width: 10%; 
}

.clean-table th.column-acoes { 
    text-align: center !important; 
    width: 10% !important; 
}
/* Action Group Interactions */
.action-group {
    display: inline-flex;
    gap: 20px;
    align-items: center;
}

.action-group a, 
.action-group button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    font-size: 1.15rem; /* Optimizes Unicode glyph sizing */
    color: #9ca3af;
    transition: color 0.15s ease, transform 0.1s ease;
    display: inline-block;
}

.action-group a:hover, 
.action-group button:hover {
    transform: scale(1.1);
}

/* Hover brand color states for Unicode icons */
.action-group .btn-whatsapp:hover { color: #22c55e; }
.action-group .btn-pdf:hover { color: #ef4444; }
.action-group .btn-send:hover { color: #3b82f6; }

/* Mobile Structural Breakdown Rules */
@media (max-width: 768px) {
    .clean-table thead { display: none; }
    
    .clean-table tbody tr {
        display: block;
        padding: 15px 0;
        border-bottom: 2px solid #f3f4f6;
    }
    
    .clean-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        width: 100% !important; 
        text-align: right;
    }
    
    .clean-table td::before {
        content: attr(data-label);
        font-weight: 500;
        color: #9ca3af;
        font-size: 0.8125rem;
        text-align: left;
    }
    
    .clean-table td.column-acoes {
        padding-top: 12px;
        justify-content: flex-end;
    }
}
.separador {
  width: 100%;
  height: 2px;
  background-color: #ccc;
  margin: 1px;
}
