/* ===========================
   All Tasks Filter & Sort Panel
   =========================== */

/* Sort Panel Styling */
#all_tasks_sort_panel {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #e1e4e8 !important;
    padding: 12px 16px !important;
}

#all_tasks_sort_panel .d-flex {
    align-items: center;
    gap: 12px;
}

#all_tasks_sort_panel label {
    margin-bottom: 0;
    font-size: 13px;
    font-weight: 600;
    color: #42526e;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Filter Panel Styling */
#all_tasks_filter_panel {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #e1e4e8 !important;
    max-height: calc(100vh - 300px);
    overflow-y: auto;
}

#all_tasks_filter_panel select.form-control {
    max-width: 100%;
}

#all_tasks_filter_panel .p-3 {
    padding: 20px !important;
}

/* Status Filter Checkboxes Container */
#all_tasks_filter_statuses {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

#all_tasks_due_date_range,
#all_tasks_start_date_range {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Filter Actions */
#all_tasks_filter_panel .d-flex.justify-content-between {
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e1e4e8;
}


/* ===========================
   Task Card Approval Checkbox
   =========================== */

.task-card {
    position: relative !important;
}

.task-approval-checkbox {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-approval-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid #dfe1e6;
    border-radius: 50%;
    background-color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
}

.task-approval-checkbox input[type="checkbox"]:hover {
    border-color: green;
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.15);
}

.task-approval-checkbox input[type="checkbox"]:checked {
    background-color: green;
    border-color: green;
}

.task-approval-checkbox input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

.task-approval-checkbox input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.task-approval-checkbox input[type="checkbox"]:disabled:hover {
    border-color: #dfe1e6;
    box-shadow: none;
}

.btn .badge.all-tasks-filter-count {
    font-size: 9px;
    position: absolute;
    top: 8px;
    right: 6px;
    padding: 2px 5px;
}
