.dashboard-container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 24px 16px;
    min-height: 0;
    height: auto;
    max-height: 100vh;
    overflow: auto;
    box-sizing: border-box;
}

.dashboard-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.dashboard-search {
    width: 100%;
    max-width: 400px;
    margin-bottom: 20px;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

    .dashboard-table th, .dashboard-table td {
        padding: 12px 10px;
        text-align: left;
        border-bottom: 1px solid #eaeaea;
    }

    .dashboard-table th {
        background: #f8f9fa;
        font-weight: 600;
        color: #34495e;
    }

    .dashboard-table tr:hover {
        background: #f1f7ff;
    }

.dashboard-actions .btn {
    margin-right: 8px;
    min-width: 80px;
}

.dashboard-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    margin-bottom: 0;
    padding-left: 0;
}

    .dashboard-pagination .page-item {
        display: inline-block;
        margin: 0 1px;
    }

    .dashboard-pagination .page-link,
    .dashboard-pagination .page-link-sm {
        background: #eaeaea;
        border: 1px solid #d1d1d1;
        color: #34495e;
        padding: 2px 8px;
        font-size: 0.85rem;
        min-width: 28px;
        border-radius: 4px;
        margin: 0;
        cursor: pointer;
        transition: background 0.2s, color 0.2s;
        text-decoration: none;
        display: inline-block;
    }

        .dashboard-pagination .page-item.active .page-link,
        .dashboard-pagination .page-item.active .page-link-sm,
        .dashboard-pagination .page-link:hover,
        .dashboard-pagination .page-link-sm:hover {
            background: #3498db;
            color: #fff;
        }

    .dashboard-pagination .page-item.disabled .page-link,
    .dashboard-pagination .page-item.disabled .page-link-sm {
        background: #f8f9fa;
        color: #b2bec3;
        cursor: not-allowed;
        pointer-events: none;
        border: 1px solid #f8f9fa;
    }

    .dashboard-pagination .page-link[disabled],
    .dashboard-pagination .page-link-sm[disabled] {
        background: #f8f9fa;
        color: #b2bec3;
        cursor: not-allowed;
        pointer-events: none;
        border: 1px solid #f8f9fa;
        opacity: 0.7;
    }

ul.dashboard-pagination button.page-link[disabled],
ul.dashboard-pagination button.page-link-sm[disabled] {
    background: #f8f9fa !important;
    color: #b2bec3 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    border: 1px solid #f8f9fa !important;
    opacity: 0.7 !important;
}

.dashboard-alert {
    width: 100%;
    max-width: 400px;
    margin-bottom: 20px;
    padding: 12px;
    border-radius: 6px;
    background: #ffeaea;
    color: #c0392b;
    font-weight: 500;
    border: 1px solid #e74c3c;
}

.page-link-sm {
    padding: 2px 8px;
    font-size: 0.85rem;
    min-width: 32px;
    border-radius: 4px;
}

.dashboard-summary-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start; /* Align cards by top */
    justify-content: flex-start;
    margin-bottom: 24px;
}

.dashboard-summary-card, .dashboard-summary-progress {
    min-width: 140px;
    max-width: 180px;
    flex: 0 0 140px;
    margin-bottom: 0;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 12px;
    display: flex;
    align-items: flex-start; /* Align card content to top */
    justify-content: center;
    min-height: 120px; /* Use minimum height for flexibility */
}

.dashboard-policy-card {
    min-width: 300px;
    max-width: 350px;
    flex: 1 1 300px;
    word-break: break-word;
    display: flex;
    align-items: flex-start; /* Align card content to top */
    justify-content: center;
}

    .dashboard-policy-card .card-body {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        width: 100%;
        height: 100%;
        padding: 8px 12px;
    }

.dashboard-summary-card .card-body,
.dashboard-summary-progress .card-body {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content horizontally */
    justify-content: flex-start; /* Align content to the top */
    width: 100%;
    height: 100%;
    padding: 8px 0;
    gap: 4px; /* Add small gap between elements */
}

.dashboard-summary-card .card-title,
.dashboard-summary-progress .card-title {
    margin-bottom: 4px; /* Reduce space below title */
}

.dashboard-summary-card span,
.dashboard-summary-progress .progress-bar {
    margin-bottom: 8px; /* Add space below the number/progress bar */
}

.dashboard-summary-progress .progress-bar {
    font-size: 2rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%; /* Ensure it fills the progress height */
    min-height: 32px; /* Match the progress bar height */
    line-height: 32px; /* Vertically center the text */
    width: 100%; /* Ensure full width for centering */
    margin: 0 auto; /* Center horizontally if needed */
}

.cards-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
