/* ============================================================================
   PRINT STYLES FOR TASK LISTS
   Shared print styles for task list pages
   ============================================================================ */

@media print {
    /* Hide non-printable elements */
    nav, header, footer, .btn, .alert, .filter-controls, .no-print {
        display: none !important;
    }
    
    /* Show print content */
    #print-content {
        display: block !important;
    }
    
    /* Page setup */
    @page {
        margin: 0.75in;
        size: letter;
    }
    
    body {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        font-size: 11pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    /* Print header */
    .print-header {
        margin-bottom: 1.5rem;
        padding-bottom: 0.75rem;
        border-bottom: 2px solid #000;
    }
    
    .print-header h1 {
        font-size: 18pt;
        font-weight: 700;
        margin: 0 0 0.5rem 0;
        color: #000;
    }
    
    .print-header p {
        font-size: 10pt;
        margin: 0.25rem 0;
        color: #333;
    }
    
    /* Print list */
    .print-list {
        list-style-position: outside;
        padding-left: 1.5rem;
        margin: 0;
    }
    
    .print-item {
        margin-bottom: 1rem;
        page-break-inside: avoid;
        padding: 0.5rem 0;
        border-bottom: 1px solid #ddd;
    }
    
    .print-item:last-child {
        border-bottom: none;
    }
    
    .print-item.completed {
        opacity: 0.7;
    }
    
    .print-item.overdue {
        background-color: #fff5f5;
        padding: 0.5rem;
        border-left: 3px solid #dc3545;
    }
    
    /* Print task header */
    .print-task-header {
        margin-bottom: 0.25rem;
    }
    
    .print-task-header strong {
        font-size: 11pt;
        font-weight: 600;
        color: #000;
    }
    
    /* Print badges */
    .print-badge {
        display: inline-block;
        padding: 0.125rem 0.375rem;
        margin-left: 0.375rem;
        font-size: 8pt;
        font-weight: 500;
        border: 1px solid #666;
        border-radius: 0.25rem;
        background: #f8f9fa;
        white-space: nowrap;
    }
    
    .print-badge.priority {
        border-color: #ffc107;
        background: #fff8e1;
    }
    
    .print-badge.status {
        border-color: #6c757d;
        background: #e9ecef;
    }
    
    .print-badge.danger {
        border-color: #dc3545;
        background: #fff5f5;
        color: #dc3545;
    }
    
    .print-badge.success {
        border-color: #28a745;
        background: #f1f9f3;
        color: #28a745;
    }
    
    /* Print task description */
    .print-task-description {
        font-size: 9pt;
        color: #555;
        margin: 0.25rem 0 0 0;
        padding-left: 0;
    }
    
    /* Force page breaks */
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    /* Avoid breaking inside important elements */
    .print-item,
    .print-task-header,
    .print-task-description {
        page-break-inside: avoid;
    }
}

/* Screen-only styles for print content */
@media screen {
    #print-content {
        display: none;
    }
}
