/**
 * Daily List Integration Styles
 *
 * Styles for Management Tasks integration within Daily List module.
 * Modal styles are in modal.css (reused from main Tasks module).
 */

/* Tasks Section in Modal - matches Daily List section styling */
.hhmgt-tasks-section {
    margin-bottom: 8px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px;
    overflow: hidden;
}

/* Section Header with darker background - matches hhdl-section-header */
.hhmgt-tasks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: -12px -12px 12px -12px;
    padding: 10px 12px;
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 6px 6px 0 0;
}

.hhmgt-tasks-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hhmgt-tasks-header h3 .material-symbols-outlined {
    font-size: 18px;
    color: #6b7280;
}

/* Show All Toggle */
.hhmgt-show-all-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
    cursor: pointer;
}

.hhmgt-show-all-toggle input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin: 0;
    cursor: pointer;
}

.hhmgt-show-all-toggle:hover {
    color: #475569;
}

/* Task List */
.hhmgt-task-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hhmgt-tasks-other {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e2e8f0;
}

.hhmgt-no-default-tasks {
    font-size: 12px;
    color: #94a3b8;
    font-style: italic;
    margin: 0;
    padding: 8px 0;
}

/* Task Item */
.hhmgt-task-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.hhmgt-task-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Urgency States */
.hhmgt-task-item.hhmgt-urgency-overdue {
    border-left: 3px solid #ef4444;
}

.hhmgt-task-item.hhmgt-urgency-due {
    border-left: 3px solid #f59e0b;
}

.hhmgt-task-item.hhmgt-urgency-pending {
    border-left: 3px solid #3b82f6;
}

.hhmgt-task-item.hhmgt-urgency-completed {
    border-left: 3px solid #22c55e;
    opacity: 0.75;
}

/* Task Department */
.hhmgt-task-dept {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Task Name */
.hhmgt-task-name {
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Task Status Badge */
.hhmgt-task-status {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 10px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* Task Due Date */
.hhmgt-task-due {
    font-size: 11px;
    color: #64748b;
    white-space: nowrap;
}

.hhmgt-urgency-overdue .hhmgt-task-due {
    color: #ef4444;
    font-weight: 500;
}

.hhmgt-urgency-due .hhmgt-task-due {
    color: #f59e0b;
    font-weight: 500;
}

.hhmgt-urgency-completed .hhmgt-task-due {
    color: #22c55e;
    font-weight: 500;
}

.hhmgt-urgency-completed .hhmgt-task-name {
    text-decoration: line-through;
    color: #64748b;
}

/* Responsive */
@media (max-width: 640px) {
    .hhmgt-task-item {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .hhmgt-task-dept {
        order: 1;
    }

    .hhmgt-task-name {
        order: 2;
        font-size: 14px;
    }

    .hhmgt-task-status {
        order: 3;
        align-self: flex-start;
    }

    .hhmgt-task-due {
        order: 4;
    }

    .hhmgt-tasks-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
