.edit-column:not(.none) {
    padding-left: 20px;
    padding-right: 10px;
    padding-top: auto;
    padding-bottom: auto;
}

.checkbox-container {
    max-height: 200px;
    overflow-y: auto;
    padding: 5px;
}

.checkbox-item {
    margin-bottom: 8px;
}

.checkbox-item label {
    display: flex;
    align-items: center;
    font-weight: normal;
}

.checkbox-item input[type="checkbox"] {
    margin-right: 8px;
}

/* Fixed width for table columns */
.checklist-container .category {
    width: 30%;
    min-width: 200px;
    max-width: 300px;
}

.checklist-container .checklist-items {
    width: 70%;
}

/* Checklist display styles */
.checklist-items {
    padding: 10px 15px;
}

.checklist {
    margin-bottom: 0;
    width: 100%;
}

.checklist-item {
    margin-bottom: 5px;
    padding: 3px 0;
    transition: background-color 0.3s ease;
}

.checklist-item label {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0;
    width: 100%;
    cursor: pointer;
    flex-wrap: wrap;
}

.checklist-item input[type="checkbox"] {
    margin-top: 3px;
    margin-right: 10px;
    flex-shrink: 0;
}

.checklist-item .item-name {
    font-weight: normal;
    flex-shrink: 0;
    margin-right: 5px;
}

.checklist-item .item-description {
    margin-left: 5px;
    font-size: 0.9em;
    flex-shrink: 0;
}

/* Status indicators */
.checklist-item.updating {
    background-color: #f8f9fa;
    opacity: 0.7;
}

.checklist-item.updated {
    background-color: #d4edda;
    transition: background-color 0.3s ease;
}

/* Completion time styles */
.completion-time {
    margin-left: 10px;
    margin-right: 2px;
    font-size: 0.9em;
    color: #6c757d;
    flex-shrink: 0;
}

/* Create a placeholder for the completion time to prevent layout shifts */
.checklist-item label::after {
    content: '';
    display: inline-block;
    min-height: 1em;
    min-width: 10px;
}

/* When checked, show strikethrough on text but not on the completion time */
.checklist-item input[type="checkbox"]:checked ~ .item-name {
    text-decoration: line-through;
    color: #6c757d;
}

/* Override the original strikethrough style */
.checklist-item input[type="checkbox"]:checked + .item-name {
    text-decoration: line-through;
    color: #6c757d;
}

/* Progress bar styles */
.progress {
    height: 8px;
    margin-bottom: 5px;
    background-color: #f5f5f5;
}

.progress-bar {
    transition: width 0.5s ease;
}

/* Checklist completion date */
.checklist-completion-date {
    margin-top: 5px;
    color: #28a745;
    font-weight: bold;
}
