/* DPR Manager - Advanced CSS */
.dpr-form { max-width: 1100px; margin: 20px auto; font-family: "Segoe UI", Roboto, Arial, sans-serif; color:#222; }
.dpr-form h2 { background:#f7fbff; padding:10px 14px; border-left:6px solid #0b6fb5; margin-bottom:10px; border-radius:3px; }
.dpr-form h3 { margin-top:18px; color:#0b6fb5; }
.dpr-form label { display:block; margin-bottom:6px; font-weight:600; }
.dpr-form input[type="text"], .dpr-form input[type="date"], .dpr-form select, .dpr-form textarea { padding:8px 10px; border:1px solid #d0d7de; border-radius:4px; box-shadow:none; width:100%; }
.dpr-table { width:100%; border-collapse:collapse; margin-bottom:10px; }
.dpr-table th { background:#eef6fb; padding:8px; border:1px solid #d7e9fb; font-size:13px; text-align:left; }
.dpr-table td { padding:6px; border:1px solid #eee; vertical-align:top; }
.dpr-table input { padding:6px; border:1px solid #e1e8ef; border-radius:3px; }
.dpr-simple input { width:100%; box-sizing:border-box; padding:8px; border-radius:4px; border:1px solid #d0d7de; }
.dpr-submit { background:#0b6fb5; color:#fff; padding:10px 18px; border:none; border-radius:6px; cursor:pointer; }
.dpr-submit:hover { background:#094f7a; }
.button { margin-left:8px; }
.dpr-table-wrap { overflow-x:auto; }
.dpr-myentries, .widefat { margin-top:12px; }
@media (max-width:900px){
  .dpr-table th, .dpr-table td { font-size:12px; padding:6px; }
}



/* ==========================================
   DPR MANAGER – COMPLETE ADMIN CSS
   Works with your exact PHP table code
   ========================================== */

/* Global */
* {
    box-sizing: border-box;
}

.wrap h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

/* ---------- FILTER FORM ---------- */
.wrap form {
    margin-bottom: 15px;
}

.wrap select {
    min-width: 200px;
}

/* ---------- DPR TABLE ---------- */
.dpr-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: #fff;
}

.dpr-table th,
.dpr-table td {
    padding: 10px;
    border: 1px solid #dcdcde;
    vertical-align: middle;
}

.dpr-table th {
    background: #2271b1;
    color: #ffffff;
    font-size: 13px;
    text-align: center;
    white-space: nowrap;
}

.dpr-table td {
    font-size: 13px;
    text-align: center;
}

/* Text alignment fixes */
.dpr-table td:nth-child(5) {
    text-align: left;
}

/* ---------- BADGES ---------- */
.dpr-badge {
    display: inline-block;
    min-width: 55px;
    padding: 4px 10px;
    border-radius: 14px;
    background: #46b450;
    color: #fff;
    font-weight: 600;
    font-size: 12px;
}

/* ---------- ACTION BUTTON ---------- */
.dpr-table .button-small {
    padding: 4px 10px;
    font-size: 12px;
}

/* ---------- STRIPED FIX ---------- */
.striped > tbody > :nth-child(odd) {
    background-color: #f6f7f7;
}

/* ---------- RESPONSIVE (TABLET) ---------- */
@media (max-width: 1024px) {

    .dpr-table th,
    .dpr-table td {
        padding: 8px;
        font-size: 12px;
    }
}

/* ---------- RESPONSIVE (MOBILE) ---------- */
@media (max-width: 768px) {

    /* Hide table header */
    .dpr-table thead {
        display: none;
    }

    /* Convert rows to cards */
    .dpr-table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #ccd0d4;
        border-radius: 6px;
        padding: 10px;
        background: #fff;
    }

    .dpr-table td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        text-align: left;
        padding: 6px 0;
        border: none;
    }

    .dpr-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #555;
        padding-right: 10px;
        white-space: nowrap;
    }

    .dpr-badge {
        font-size: 11px;
    }

    .button,
    .button-small {
        width: 100%;
        margin-top: 6px;
    }
}

/* ---------- SMALL MOBILE ---------- */
@media (max-width: 480px) {

    .wrap h1 {
        font-size: 18px;
    }

    .wrap select,
    .wrap button {
        width: 100%;
    }
}
