#wsr-form {
    margin-bottom: 20px;
}
#wsr-results table {
    margin-top: 20px;
    border-collapse: collapse;
}

.wsr-page {
    margin: 0 5px;
    padding: 5px 10px;
    border: 1px solid #ccc;
}
.wsr-page.current {
    background: #0073aa;
    color: #fff;
}

.wsr-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}
.wsr-dashboard-card {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-height: 120px; /* ensures equal height */
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.wsr-dashboard-card h4 {
    font-size: 14px;
    margin: 0 0 10px 0;
}
.wsr-dashboard-card p {
    font-size: 20px;
    font-weight: bold;
    margin: 0;
}

/* Wrap container */

/* Wrap container */
.wrap {
    background: #fff;
    padding: 20px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    margin-top: 20px;
}

/* Heading box */
.wrap h1 {
    margin-top: 0;
     font-size: 20px;   /* smaller heading */
    font-weight: 700;
    padding: 12px 18px;
    background: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #222;
}

/* Filter Form Box */
.wsr-form {
    margin: 20px 0;
    padding: 15px 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.wsr-form label {
    font-weight: 600;
    margin-right: 5px;
}

.wsr-form input[type="date"] {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Search Button */
.wsr-form .button.button-primary {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
    font-weight: 600;
     padding: 6px 14px;  /* smaller button */
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.wsr-form .button.button-primary:hover {
    background: #005c87;
    border-color: #005c87;
}

/* Results Table (applies to all report tables) */
.wsr-results {
    margin-top: 20px;
    width: 100%;
    border-collapse: collapse;
}

.wsr-results th {
    background: #f4f4f4;
    font-weight: 700;
    text-align: left;
    padding: 10px;
    border-bottom: 2px solid #ddd;
    color: #222;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wsr-results td {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
}

/* Zebra rows (striped already in WP, but reinforce) */
.wsr-results tbody tr:nth-child(even) {
    background: #fafafa;
}

/* Pagination */
.wsr-pagination {
    margin-top: 15px;
    text-align: center;
}

.wsr-pagination a {
    display: inline-block;
     padding: 5px 10px;   /* smaller pagination buttons */
    margin: 0 4px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.wsr-pagination a:hover {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.wsr-pagination a.current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
    font-weight: bold;
}


/* Responsive adjustments */
@media (max-width: 600px) {
    .wsr-form {
        flex-direction: column;
        align-items: flex-start;
    }

    .wsr-pagination a {
        padding: 4px 8px;
        font-size: 12px;
        margin: 2px;
    }

    .wrap h1 {
        font-size: 20px;
        padding: 8px 12px;
    }
}