/* ==========================================================
   SCHOOL YEARS – PAGE SPECIFIC
   ========================================================== */

/* Search input */
#schoolYearSearchInput {
    width: 260px;
}

/* ---------- Table column proportions ---------- */

.schoolyear-table th:nth-child(1),
.schoolyear-table td:nth-child(1) {
    width: 20%;
}

.schoolyear-table th:nth-child(2),
.schoolyear-table td:nth-child(2),
.schoolyear-table th:nth-child(3),
.schoolyear-table td:nth-child(3) {
    width: 35%;
}

.schoolyear-table th:nth-child(4),
.schoolyear-table td:nth-child(4) {
    width: 10%;
}

/* ---------- Center semester + status columns ---------- */

.admin-table th:nth-child(2),
.admin-table th:nth-child(3),
.admin-table th:nth-child(4),
.admin-table td:nth-child(2),
.admin-table td:nth-child(3),
.admin-table td:nth-child(4) {
    text-align: center;
}


.schoolyear-table td:nth-child(1) {
    white-space: nowrap;
}

.semester-block {
    padding: 6px 8px;
    border-radius: 6px;
    background: #e3f0ff;
    border: 1px solid #2f4f7f;
}

.semester-label {
    font-size: 12px;
    font-weight: 600;
    color: #2f4f7f;
}

.semester-dates {
    font-size: 12px;
    color: #555;
}

.semester-active {
    background: #ccd8e6;
    border: 1px solid #2f4f7f;
}



.modal label {
    display: block;
    font-weight: 600;
    margin-top: 6px;
    margin-bottom: 2px;
}

.modal input[type="text"],
.modal input[type="date"] {
    width: 100%;
    margin-bottom: 8px;
}

.modal .semester-row {
    display: flex;
    gap: 20px;
}

.modal .ear-block {
    margin-top: 20px;
    display: flex;
    gap: 20px;
}

.modal .semester-box {
    padding: 16px;
    margin-bottom: 18px;
}

.modal .semester-block {
    padding: 6px 8px;
    border-radius: 6px;
    background: #e3f0ff;
    border: 1px solid #2f4f7f;
    margin-block-end: 8px;
}

.modal .semester-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: end;
}

.modal .semester-grid label {
    margin-bottom: 4px;
}

.modal .semester-grid input {
    margin-bottom: 0;
}

.modal .radio-group {
    margin-top: 8px;
    display: flex;
    gap: 24px;
    align-items: center;
}

.modal .radio-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
    cursor: pointer;
}