/* MSA PennDOT Sync — Admin CSS */

.msa-pdt-wrap {
    max-width: 1400px;
}

.msa-pdt-wrap h1 small {
    font-weight: normal;
}

.msa-pdt-actions {
    margin: 15px 0;
    display: flex;
    gap: 10px;
    align-items: center;
}

.msa-pdt-notice {
    background: #f0f6fc;
    border: 1px solid #72aee6;
    border-radius: 6px;
    padding: 15px 20px;
    margin: 20px 0;
}

.msa-pdt-section {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 15px 0;
}

.msa-pdt-section h2 {
    margin-top: 0;
    font-size: 16px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.msa-pdt-table {
    border-collapse: collapse;
    font-size: 13px;
}

.msa-pdt-table th {
    background: #f8f9fa;
    text-align: left;
    white-space: nowrap;
}

.msa-pdt-table td, .msa-pdt-table th {
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
}

.msa-pdt-table tr:hover td {
    background: #f9fafb;
}

.msa-pdt-table input[type="checkbox"] {
    margin: 0;
}

.msa-pdt-batch-actions {
    margin-top: 10px;
    padding-top: 10px;
    display: flex;
    gap: 8px;
}

/* Badges
 * --------------------------------------------------------------------------
 * The base .msa-pdt-badge style here matches the MD MVA admin (msa-mva-badge)
 * so the Score Review section looks identical across both states. The
 * remaining variants (pending / approved / submitted / class / student /
 * score) keep their original PA-only pill styling — they are used in other
 * sections of the queue (Classes, Students, etc.) and shouldn't change.
 */
.msa-pdt-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}

.msa-pdt-badge.pass {
    background: #dcfce7;
    color: #166534;
    border: none;
}

.msa-pdt-badge.fail, .msa-pdt-badge.error {
    background: #fee2e2;
    color: #991b1b;
    border: none;
}

.msa-pdt-badge.other {
    background: #e5e7eb;
    color: #4b5563;
    border: none;
}

/* Status badges used in other queue sections — unchanged from before, but
 * declared after the score-related rules so they keep their pill shape. */
.msa-pdt-badge.pending {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.msa-pdt-badge.approved {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.msa-pdt-badge.submitted {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.msa-pdt-badge.class {
    background: #dbeafe;
    color: #1e40af;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.msa-pdt-badge.student {
    background: #dcfce7;
    color: #166534;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.msa-pdt-badge.score {
    background: #fef3c7;
    color: #92400e;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Result pill — final outcome column (Score Review).
 * Larger, bolder, ALL CAPS so the overall pass/fail jumps off the row. */
.msa-pdt-result-pill {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    min-width: 60px;
    text-align: center;
}

.msa-pdt-result-pill.pass {
    background: #16a34a;
    color: #ffffff;
}

.msa-pdt-result-pill.fail {
    background: #dc2626;
    color: #ffffff;
}

.msa-pdt-result-pill.other {
    background: #9ca3af;
    color: #ffffff;
}

.msa-pdt-result-pill.pending {
    background: #ffffff;
    color: #6b7280;
    border: 1px dashed #d1d5db;
}

/* Score Review table — let the pill+detail cells breathe */
.msa-pdt-score-table td {
    vertical-align: middle;
}

/* Settings form */
.msa-pdt-wrap .form-table th {
    width: 180px;
}

.msa-pdt-wrap .form-table h2 {
    margin: 20px 0 5px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 15px;
}

.msa-pdt-wrap .form-table tr:first-child h2 {
    border-top: none;
    margin-top: 0;
}
