body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #f3f6f9;
    color: #111827;
}

.page-header {
    margin: 30px 40px 20px 40px;
    display: flex;
    justify-content: flex-end; /* Alinha para a direita */
    align-items: center;
    flex-wrap: wrap;
}

.page-title {
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center; 
    gap: 10px;
}

.totais-gerais {
    display: flex;
    gap: 20px;
    font-size: 16px;
    margin-top: 10px;
}

.totais-gerais span {
    background: #fee2e2;
    color: #b91c1c;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0 40px 20px 40px;
}


th, td {
    resize: none;
    overflow: hidden;
}


.card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    flex: 1;
    min-width: 240px;
    max-width: 280px;
}

.card.publico {
    border-left: 4px solid #2563eb;
}

.card.privado {
    border-left: 4px solid #dc2626;
}

.card-title {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.card-value {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 5px;
}

.card-footer {
    font-size: 14px;
    color: #6b7280;
}

.dash-flex {
    display: flex;
    gap: 20px;
    margin: 20px 40px 40px 40px;
    flex-wrap: wrap;
    align-items: flex-start; /* <- mantém topo alinhado */
}

.top10-wrapper,
.grafico-status {
    flex: 1;
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* <- garante conteúdo no topo */
    min-height: 100%;
}

.top10-wrapper h2,
.grafico-status h2 {
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    font-size: 10px;
}

.top-table th {
    text-align: left;
    font-weight: 600;
    color: #374151;
    padding: 8px 12px;
}

.top-table td {
    background: #ffffff;
    padding: 8px 12px;
    color: #111827;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.top-table tr:hover td {
    background-color: #f1f5f9;
}

.status-lista {
    list-style: none;
    padding-left: 0;
    font-size: 14px;
    margin-top: 10px;
}

.status-lista li {
    margin: 6px 0;
    padding-bottom: 6px;
    border-bottom: 1px dotted #ccc;
}
.navbar {
    margin: 20px 40px 0;
    display: flex;
    gap: 10px;
}

.navbar a {
    text-decoration: none;
    background-color: #2563eb;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.2s;
}

.navbar a:hover {
    background-color: #1d4ed8;
}
/* Topbar e Botões */
.topbar {
    display: flex;
    gap: 12px;
    padding: 20px 40px 0 40px;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.2s ease-in-out;
}

.btn-blue {
    background-color: #2563eb;
    color: white;
}

.btn-gren {
    background-color: #10b981;
    color: white;
}

.btn-red {
    background-color: #dc2626;
    color: white;
}

.btn-blue:hover {
    background-color: #1d4ed8;
}

.btn-gren:hover {
    background-color: #059669;
}

.btn-red:hover {
    background-color: #b91c1c;
}
.page-header {
    margin: 30px 40px 10px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}


    /* Novo estilo para o botão "Faturar hoje" */
    .top-nav a:nth-child(3) .btn { /* Seleciona o terceiro link dentro de .top-nav e seu botão filho */
        background-color: #28a745; /* Cor verde */
    }

    .top-nav a:nth-child(3) .btn:hover {
        background-color: #218838; /* Cor verde escura no hover */
    }
/* Container dos indicadores agrupados */
.total-indicadores-linha {
    display: flex;
    width: 100%;
    max-width: 1200px;
    justify-content: space-between;
    gap: 20px;
    margin: 10px 40px 0px 40px; /* Alinhamento com os cards */
}

.total-indicadores-linha .total-bloco {
    flex: 1;
    text-align: center;
    background: #fee2e2;
    color: #b91c1c;
    font-weight: bold;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    height: 40px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.bloco-completo {
    display: flex;
    gap: 40px;
    margin: 20px 40px 0 40px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.bloco-coluna {
    flex: 1;
    min-width: 300px;
}

.total-bloco {
    background: #fee2e2;
    color: #b91c1c;
    font-weight: bold;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    height: 40px;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.header-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.filtros-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.btn.btn-primary {
    background-color: #2563eb;
    color: #fff;
    font-weight: bold;
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn.btn-primary i {
    font-size: 14px;
}

.status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
}

.status.verde {
    background-color: #d1fce3;
    color: #047857;
}

.status.amarelo {
    background-color: #fef3c7;
    color: #92400e;
}

.status.vermelho {
    background-color: #fee2e2;
    color: #b91c1c;
}

.wrap-text {
    word-wrap: break-word;
    white-space: normal;
    max-width: 200px;
}

.page-header.full-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.page-title {
    font-size: 24px;
    font-weight: bold;
}

.filtros-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.filtros-form select {
    padding: 6px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.btn.btn-primary {
    background-color: #2563eb;
    color: #fff;
    font-weight: bold;
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.btn.btn-primary i {
    font-size: 14px;
}

/* Tabela */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 09px;
}

th, td {
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
    font-size: 10px;
}

th {
    font-weight: bold;
}

.wrap-text {
    white-space: normal;
    word-wrap: break-word;
    max-width: 200px;
}

/* Status Colorido */
.status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    white-space: nowrap;
}

.status.verde {
    background-color: #d1fce3;
    color: #047857;
}

.status.amarelo {
    background-color: #fef3c7;
    color: #92400e;
}

.status.vermelho {
    background-color: #fee2e2;
    color: #b91c1c;
}


.page-title {
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.filters-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 20px;
}

.btn {
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.btn-blue {
    background-color: #2563eb;
    color: white;
}

.icon-btn .icon {
    font-size: 16px;
}

.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.9em;
    font-weight: bold;
    display: inline-block;
}

.badge-green {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-yellow {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-red {
    background-color: #fee2e2;
    color: #991b1b;
}

.table-container {
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: left;
    word-break: break-word;
}

thead th {
    font-weight: bold;
}

.nav {
    margin-bottom: 20px;
}

.btn {
    padding: 10px 20px;
    margin-right: 10px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}
