.dashboard-page {
    width: 100%;
    padding: 28px;
    box-sizing: border-box;
    color: #111827;
    background: #ffffff;
}

.dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.dashboard-header h1 {
    margin: 0;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
    color: #111827;
}

.dashboard-header p {
    margin: 6px 0 0;
    font-size: 15px;
    color: #6b7280;
}

.dashboard-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dashboard-actions label {
    color: #374151;
    font-size: 14px;
}

.dashboard-actions input,
.dashboard-actions button {
    height: 38px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    padding: 0 12px;
    font-size: 14px;
    box-sizing: border-box;
}

.dashboard-actions button {
    cursor: pointer;
    background: #111827;
    color: #ffffff;
    border-color: #111827;
}

.dashboard-actions button:hover {
    background: #1f2937;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.dashboard-card {
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 20px;
    background: #ffffff;
    min-height: 126px;
    box-sizing: border-box;
}

.dashboard-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.dashboard-card-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f3f4f6;
    font-size: 18px;
}

.dashboard-card-label {
    display: block;
    color: #374151;
    font-size: 14px;
}

.dashboard-card strong {
    display: block;
    font-size: 30px;
    line-height: 1;
    font-weight: 700;
    color: #111827;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 20px;
    margin-bottom: 22px;
}

.dashboard-box {
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 20px;
    background: #ffffff;
    box-sizing: border-box;
    min-height: 340px;
}

.dashboard-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.dashboard-box-header h2 {
    margin: 0;
    font-size: 19px;
    color: #111827;
}

.dashboard-box-header span {
    color: #6b7280;
    font-size: 13px;
}

.dashboard-bar-chart {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dashboard-bar-item {
    display: grid;
    grid-template-columns: 96px 1fr 48px;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.dashboard-bar-label {
    color: #374151;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-bar-track {
    height: 18px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.dashboard-bar-fill {
    height: 100%;
    background: #2563eb;
    border-radius: 999px;
    min-width: 4px;
}

.dashboard-bar-value {
    text-align: right;
    color: #111827;
    font-weight: 600;
}

.dashboard-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.dashboard-table th,
.dashboard-table td {
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 10px;
    text-align: left;
    white-space: nowrap;
}

.dashboard-table th {
    color: #111827;
    font-weight: 700;
}

.dashboard-table td {
    color: #374151;
}

.dashboard-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.dashboard-status.finalizado {
    background: #dcfce7;
    color: #166534;
}

.dashboard-status.andamento {
    background: #dbeafe;
    color: #1d4ed8;
}

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

.dashboard-shortcuts {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.dashboard-shortcuts button {
    border: 1px solid #d1d5db;
    background: #ffffff;
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    color: #111827;
    font-size: 14px;
}

.dashboard-shortcuts button:hover {
    background: #f3f4f6;
}

.dashboard-empty,
.dashboard-error {
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.dashboard-error {
    color: #991b1b;
    background: #fee2e2;
    border: 1px solid #fecaca;
    padding: 12px;
    border-radius: 8px;
}

@media (max-width: 1100px) {
    .dashboard-cards {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .dashboard-page {
        padding: 18px;
    }

    .dashboard-header {
        flex-direction: column;
    }

    .dashboard-cards {
        grid-template-columns: 1fr;
    }

    .dashboard-card strong {
        font-size: 27px;
    }

    .dashboard-bar-item {
        grid-template-columns: 80px 1fr 42px;
    }
}
