:root{--red:#8b0d16;--red2:#b86569;--ink:#20242a;--muted:#68707a;--silver:#e8eaed;--paper:#fff;--focus:#f5c542}*{box-sizing:border-box}body{margin:0;font-family:Segoe UI,Arial,sans-serif;color:var(--ink);background:#f7f7f8}.shell{max-width:1120px;margin:auto;padding-left:24px;padding-right:24px}.brand{background:#6D0606;color:white}.brand-inner{min-height:112px;display:flex;align-items:center;gap:24px}.wordmark{font-family:Georgia,serif;font-size:58px;font-weight:700;letter-spacing:-6px}.brand strong{display:block;font-size:25px;letter-spacing:5px}.brand span{display:block;margin-top:8px;color:#f1d7d9}.authbar{background:#b96f73;color:white}.authbar .shell{display:flex;align-items:center;gap:22px;min-height:54px}.authbar a,.link-button{color:white;text-decoration:none}.authbar .user{margin-left:auto}.authbar form{margin:0}.link-button{background:none;border:0;padding:0;text-decoration:underline;cursor:pointer;font:inherit}.hero,.page-head{padding:32px 0 28px}.hero{max-width:760px}.eyebrow{text-transform:uppercase;letter-spacing:2px;color:var(--red);font-weight:700;font-size:.82rem}.hero h1,.page-head h1{font-size:clamp(2rem,5vw,2.5rem);margin:.2em 0}.hero p,.page-head p{color:var(--muted);font-size:1.08rem}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px;margin:16px 0 50px}.card{display:block;background:white;border:1px solid #ddd;border-top:5px solid var(--red);padding:24px;border-radius:8px;color:inherit;text-decoration:none;box-shadow:0 6px 18px #0000000d}.card:hover{transform:translateY(-2px);box-shadow:0 10px 22px #00000018}.card h2{margin-top:0;color:var(--red)}.search-panel,.upload-panel{display:flex;flex-wrap:wrap;align-items:end;gap:18px;background:white;padding:24px;border:1px solid #ddd;border-radius:8px}.search-panel div{flex:1 1 210px}label{display:block;font-weight:650;margin-bottom:7px}input,select{width:100%;min-height:44px;border:1px solid #aeb3b9;border-radius:5px;padding:9px 11px;font:inherit}button,.secondary{min-height:44px;padding:11px 22px;border:0;border-radius:5px;background:var(--red);color:white;font-weight:650;text-decoration:none;cursor:pointer}.secondary{background:#5f6670}.table-wrap{overflow:auto;background:white;border:1px solid #ddd;border-radius:8px}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:13px;border-bottom:1px solid #ddd}th{background:#eeeff1}.result-count{margin-top:24px}.validation{color:#a40000;margin:12px 0}.success{padding:16px;background:#dff3e5;border:1px solid #58a76d;margin-bottom:16px}.footer{border-top:1px solid #ddd;margin-top:55px;padding-top:25px;padding-bottom:35px;color:var(--muted)}a{color:#1769aa}*:focus-visible{outline:3px solid var(--focus);outline-offset:2px}@media(max-width:650px){.brand strong{font-size:17px;letter-spacing:2px}.wordmark{font-size:46px}.authbar .shell{flex-wrap:wrap}.authbar .user{margin-left:0}.search-panel>*{width:100%}}

/* Department Autocomplete */

.autocomplete-field {
    position: relative;
}

.autocomplete-results {
    position: absolute;
    z-index: 1000;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 260px;
    overflow-y: auto;
    background: white;
    border: 1px solid #aeb3b9;
    border-radius: 5px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.autocomplete-option {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid #e3e3e3;
    background: white;
    color: #20242a;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

    .autocomplete-option:last-child {
        border-bottom: 0;
    }

    .autocomplete-option:hover,
    .autocomplete-option:focus {
        background: #f3eeee;
        color: #6d0606;
    }
/* Faculty development selector */

.development-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    padding: 18px 20px;
    background: #fff7d6;
    border: 1px solid #d8bd55;
    border-radius: 8px;
}

    .development-panel strong {
        display: block;
        margin-bottom: 4px;
        color: #5c4700;
    }

    .development-panel span {
        color: #685b28;
    }

    .development-panel form {
        min-width: min(100%, 360px);
    }

.faculty-welcome-card {
    margin-bottom: 14px;
}

/* Faculty CV management */

.cv-error {
    padding: 16px;
    background: #fde8e8;
    border: 1px solid #c65b5b;
    border-radius: 6px;
}

.document-status {
    font-weight: 700;
}

    .document-status.available {
        color: #256b35;
    }

    .document-status.missing {
        color: #8b0d16;
    }

.upload-field {
    margin-bottom: 18px;
}

.page-actions {
    margin-top: 20px;
}

/* Faculty syllabus uploads */

.syllabus-error {
    padding: 16px;
    background: #fde8e8;
    border: 1px solid #c65b5b;
    border-radius: 6px;
}

.faculty-subtitle {
    color: #666;
    font-size: 1rem;
    margin-top: 10px;
    margin-bottom: 8px;
}

.syllabus-upload-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .syllabus-upload-form input[type="file"] {
        min-height: auto;
        padding: 7px;
        font-size: 0.9rem;
        width: 210px;
    }

    .syllabus-upload-form button {
        width: fit-content;
    }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.filename-format {
    overflow-wrap: anywhere;
}

.major-term-filter {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

.upload-confirmation-dialog {
    width: min(560px, calc(100% - 32px));
    border: 0;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

    .upload-confirmation-dialog::backdrop {
        background: rgba(0, 0, 0, 0.45);
    }

.upload-confirmation-content {
    padding: 28px;
}

    .upload-confirmation-content h2 {
        margin-top: 8px;
    }

    .upload-confirmation-content .page-actions {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-top: 24px;
    }

/* Admin Dashboard */

.metric {
    font-size: 2rem;
    font-weight: 700;
    color: #7a0019;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat( auto-fit, minmax(250px, 1fr) );
    gap: 20px;
    margin-bottom: 20px;
}

.admin-filter-grid {
    display: grid;
    grid-template-columns: 180px 260px 260px 220px;
    gap: 15px;
    align-items: end;
}


.checkbox-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

.checkbox-row label {
    margin: 0;
    font-weight: 600;
}

td:nth-child(6) {
    word-break: break-word;
}

.metric-card {
    text-align: center;
}

.metric-card h2 {
    text-align: center;
}

.metric-card .metric {
    font-size: 3rem;
    font-weight: 700;
    margin-top: 15px;
    margin-bottom: 25px;
    text-align: center;
}

.metric {
    font-size: 4rem;
}

/* Create or Edit Admin User */

.checkbox-label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    font-weight: 600;
    width: 100%; 
}

.admin-checkbox {
    margin-top: -12px;
}

    .admin-checkbox input[type="checkbox"] {
        width: auto;
        min-width: auto;
    }

/* Managing Groupd */

.department-grid {
    columns: 4;
    column-gap: 20px;
}

    .department-grid .checkbox-label {
        display: block;
        margin-bottom: 6px;
    }

    .department-grid input[type="checkbox"] {
        width: auto;
        min-width: auto;
        height: 16px;
        width: 16px;
        margin-right: 6px;
    }

    .department-grid .checkbox-label {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 4px;
    }

/* Missing Documents Paging*/

.missing-documents-options {
        display: flex;
        align-items: end;
        gap: 2rem;
        margin-top: 1rem;
        margin-bottom: 1rem;
}

    .missing-documents-options .checkbox-row {
        margin: 0;
    }

    .missing-documents-options .rows-per-page-filter {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

        .missing-documents-options .rows-per-page-filter label {
            margin: 0;
            white-space: nowrap;
        }

        .missing-documents-options .rows-per-page-filter select {
            width: 85px;
        }

.results-actions {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Faculty Documents Paging */

.rows-per-page-filter select {
    width: 85px;
}

/* Missing Documents buttons for exporting and emailing */

.results-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0;
}

.results-action-button {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 4px;
    background-color: #a6192e;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.2;
}

    .results-action-button:hover {
        background-color: #861426;
        color: #ffffff;
        text-decoration: none;
    }

    .results-action-button:focus {
        outline: 2px solid #000000;
        outline-offset: 2px;
    }

/* BulkMissingDocumentReminder buttons at bottom of screen */

.reminder-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

/* BulkMissingDocument Individual reminder button in place of missing */

.reminder-status-link {
    text-decoration: none;
    cursor: pointer;
}

    .reminder-status-link:hover {
        text-decoration: underline;
    }