
/* === Стилізований класичний чекбокс з галочкою === */
.checkbox-box-style {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-box-style input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    left: 0;
    top: 0;
}

.checkbox-box-style label {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
}

.checkbox-box-style label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #3498db;
    border-radius: 4px;
    background: #fff;
}

.checkbox-box-style input[type="checkbox"]:checked + label:before {
    background-color: #3498db;
}

.checkbox-box-style input[type="checkbox"]:checked + label:after {
    content: '✓';
    position: absolute;
    left: 5px;
    top: 0;
    color: white;
    font-size: 14px;
}

/* === Стилізований повзунок (toggle) === */
.checkbox-wrapper-17 input[type="checkbox"] {
    height: 0;
    width: 0;
    visibility: hidden;
}

.checkbox-wrapper-17 label {
    cursor: pointer;
    text-indent: -9999px;
    width: 50px;
    height: 25px;
    background: grey;
    display: inline-block;
    border-radius: 100px;
    position: relative;
    flex:auto;
}

.checkbox-wrapper-17 label:after {
    content: '';
    position: absolute;
    left: 2px;
    top: 2px;
    width: 21px;
    height: 21px;
    background: #fff;
    border-radius: 90px;
    transition: 0.3s;
}

.checkbox-wrapper-17 input:checked + label {
    background: #4cd964;
}

.checkbox-wrapper-17 input:checked + label:after {
    left: calc(100% - 2px);
    transform: translateX(-100%);
}

.checkbox-wrapper-17 label:active:after {
    width: 28px;
}

/* === Додатковий текст поруч з перемикачем === */
.archive-label-text {
    margin-left: 10px;
    font-weight: 500;
    cursor: pointer;
}

.archive-count {
    font-weight: normal;
    margin-left: 4px;
}
 /*Стилі для таблиць*/
.table-container {
    overflow-x: auto;
}
.table-row:nth-child(even) {
    background-color: #f5f5f5;
}

.actions {
    display: flex;
    gap: 5px;
}
/* Стилі для пагінації */
.pagination {
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    list-style: none;
    justify-content: center;
    margin-top: 20px;
}

.page-item {
    margin: 0 2px;
}

.page-link {
    position: relative;
    display: block;
    min-width: 38px;
    height: 38px;
    line-height: 38px;
    padding: 0 6px;
    text-align: center;
    color: #223d51;
    /*background-color: #2c3e50;*/
    border: 1px solid #075fb7;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: bold;
}

.page-link:hover {
    z-index: 2;
    background-color: #3498db;
    border-color: #3498db;
    color: #fff;
}

.page-item.active .page-link {
    z-index: 3;
    background-color: #5bc0de;
    border-color: #5bc0de;
    color: #fff;
}

.page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: transparent;
    border-color: #dee2e6;
}
.name-row-container {
    margin: 10px 0;
    text-align: center;
    padding: 10px;
    background-color: #d2dfeb;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 1.3rem;
}
.week-navigation {
    display: flex;
    gap: 10px;
    justify-content: center;
            }
.no-results-container {
            text-align: center;
            padding: 40px 20px;
            margin: 20px 0;
            border: 1px dashed #ccc;
            border-radius: 8px;
            background-color: #f8f9fa;
        }
/* Для адаптивності */
@media (max-width: 576px) {
    .page-link {
        min-width: 32px;
        height: 32px;
        line-height: 32px;
        padding: 0 4px;
        font-size: 0.875rem;
    }
}
@media (max-width: 576px) {
    /* Переводимо таблицю у блоки */
    .table-container {
        display: block;
        overflow-x: auto;
        text-align: center; /* Центруємо весь вміст */
    }

    .table-header {
        display: none; /* Ховаємо заголовки */
    }

    .table-row {
        display: block;
        border: 1px solid #ddd;
        border-radius: 8px;
        margin-bottom: 12px;
        padding: 10px;
        background: #fff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

    .table-row div {
        display: flex;
        justify-content: center; /* центруємо по горизонталі */
        align-items: center;
        padding: 2px 2px;
        border: none !important;
        flex-wrap: wrap; /* дозволяємо перенос підпису */
    }

    /* Додаємо підпис перед значенням */
    .table-row div::before {
        content: attr(data-label);
        font-weight: bold;
        color: #7e8593;
        margin-right: 4px;
        text-align: left;
    }

    /* Вирівнювання текстових полів */
    .table-row .name,
    .table-row .teacher,
    .table-row .program {
        text-align: center;
        width: 100%;
    }

    /* Номер окремо */
    .table-row .number {
        text-align: left;   /* або center */
        font-weight: bold;
        width: auto;        /* щоб не розтягувалося */
        flex: 0 0 50px;     /* фіксована ширина (опційно) */
    }

    /* Дії окремо */
    .table-row .actions {
        display: flex;
        flex-direction: row; /*column; /* вже є у тебе */
        gap: 8px;
        margin-top: 8px;
        width: 100%;
    }

    /* Кнопки дій */
    .table-row .actions a,
    .table-row .actions button {
        width: 100%; /* залишаєш */
        font-size: 14px;
    }
}



