.pagination {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 2px;
    /* Уменьшили gap */
    padding: 10px 0px;
    background-color: #f8fafc;
    border-top: 1px solid #e6eaee;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 1;
}

.pagination button {
    padding: 4px 8px;
    /* Уменьшили padding */
    border: 1px solid #d8dde3;
    border-radius: 4px;
    /* Уменьшили радиус */
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 11px;
    /* Уменьшили шрифт */
}

.pagination button:hover {
    background: linear-gradient(135deg, #357abd, #2a6097);
    transform: translateY(-1px);
}

.pagination button:disabled {
    background-color: #e6eaee;
    cursor: not-allowed;
    color: #999;
}

.pagination button.active {
    background: linear-gradient(135deg, #357abd, #2a6097);
    color: white;
    border: none;
}

@media (max-width: 768px) {
    .table-wrapper {
        max-height: 250px;
        /* Уменьшили для мобильных */
        overflow-x: auto;
    }

    table {
        display: block;
        overflow-x: auto;
    }

    th,
    td {
        font-size: 11px;
        /* Уменьшили шрифт */
        padding: 6px 8px;
        /* Уменьшили padding */
    }

    tbody {
        max-height: 180px;
        /* Уменьшили max-height */
    }

    .pagination {
        flex-direction: column;
        align-items: center;
        gap: 1px;
        /* Уменьшили gap */
    }

    .pagination button {
        width: 100%;
        text-align: center;
        padding: 3px 6px;
        /* Уменьшили padding */
        font-size: 10px;
        /* Уменьшили шрифт */
    }
}

@media screen and (max-width: 1150px) {
    .filter-group input[type="text"] {
        width: 120px !important;
        /* Уменьшили ширину */
    }

    .clear-btn {
        right: 30px !important;
        /* Уменьшили отступ */
    }
}

.task-section {
    position: relative;
    width: 100%;
    min-height: 150px;
    overflow: hidden;
    border-radius: 12px;
}

.task-cards-container {
    max-width: 1950px;
    display: flex;
    flex-wrap: wrap;
    height: calc(75vh - 25px);
    overflow-y: auto;
    gap: 15px;
    padding: 15px;
}

.task-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    width: 280px;
    min-height: 200px;
    max-height: 250px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}



.subtask-indicators {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    gap: 5px;
}

.subtask-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.subtask-circle.yellow {
    background-color: #ffc107;
}

.subtask-circle.red {
    background-color: #dc3545;
}


.task-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.task-field {
    margin-bottom: 8px;
    /* Уменьшили margin */
    font-size: 13px;
    /* Уменьшили шрифт */
}

.task-field strong {
    color: #333;
}

.sort-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    /* Уменьшили gap */
}

.sort-option {
    padding: 4px 8px;
    /* Уменьшили padding */
    border: none;
    background: #f0f0f0;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.sort-option.active {
    background: #007bff;
    color: #fff;
}

.sort-option:hover {
    background: #e0e0e0;
}

.sort-controls {
    display: flex;
    gap: 8px;
    /* Уменьшили gap */
    align-items: center;
}

.sort-controls select {
    padding: 4px;
    /* Уменьшили padding */
    border-radius: 4px;
    border: 1px solid #ddd;
}

.sort-controls button {
    padding: 4px 8px;
    /* Уменьшили padding */
    border: none;
    background: #007bff;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
}

.sort-controls button:hover {
    background: #0056b3;
}



.subtask-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.subtask-done {
    width: 20px;
    height: 20px;
}

.history-subtask-status {
    background-color: #e6f3ff;
    /* Цвет для изменения статуса подзадачи */
}

.subtask-theme,
.subtask-dateSet,
.subtask-deadline {
    flex: 1;
    padding: 4px;
    /* Уменьшили padding */
    border: 1px solid #ddd;
    border-radius: 4px;
}

.subtask-theme:focus,
.subtask-dateSet:focus,
.subtask-deadline:focus {
    outline: none;
    border: #007bff 1px solid;
}

.remove-subtask {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 2px;
}
.remove-subtask img {
    height: 15px;
    width: 15px;
    fill: white;
}

.subtask-item.completed {
    background-color: #e6f4ea;
    /* Light green background for completed subtasks */
    border-left: 4px solid #2ecc71;
    /* Green left border for emphasis */
    padding-left: 8px;
    /* Slight padding to align with border */
}

#addSubtaskBtn {
    margin-top: 8px;
    /* Уменьшили margin */
    padding: 4px 8px;
    /* Уменьшили padding */
    border: none;
    background: #007bff;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

.history-dateSet {
    background: #e6e6ff;
}

.history-subtask {
    background: #e6fff3;
}

/* .subtask-circle{
    position: absolute;
    right: 10px;
    top: 10px;
} */



.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
}

#newGlobalExecutorName,
#newGlobalExecutorPhone {
    padding: 5px;
    border-radius: 5px;
    border: #007bff 1px solid;
}

#newGlobalExecutorName:focus,
#newGlobalExecutorPhone:focus {
    outline: none;
    border: #007bff 1px solid;
}