/* Executive Print System CSS - Black & White, High Contrast */
/* AC-PRINT-001, AC-PRINT-002, AC-PRINT-003 */

:root {
    --print-font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --print-font-size: 10pt;
    --print-line-height: 1.3;
    --checkbox-size: 1rem;
}

/* Base Print Styles */
body {
    margin: 0;
    padding: 0;
    font-family: var(--print-font-family);
    font-size: var(--print-font-size);
    line-height: var(--print-line-height);
    color: #000;
    background: white;
}

/* Print Page Container */
.print-container {
    max-width: 8.5in;
    margin: 0.5in auto;
    padding: 0;
    background: white;
    color: #000;
}

/* Print Header */
.print-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
    border-bottom: 2px solid #000;
    padding-bottom: 0.5rem;
}

.print-date {
    font-size: 18pt;
    font-weight: 700;
}

.print-page-title {
    font-size: 14pt;
    font-weight: 600;
}

/* Stream Sections */
.stream-section {
    margin-bottom: 1rem;
    page-break-inside: avoid;
}

.stream-header {
    font-size: 12pt;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #000;
}

.stream-tasks {
    margin-left: 0.5rem;
}

/* Task Items */
.task-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.4rem;
}

.task-checkbox {
    width: var(--checkbox-size);
    height: var(--checkbox-size);
    min-width: var(--checkbox-size);
    border: 2px solid #000;
    margin-right: 0.5rem;
    margin-top: 0.1rem;
    background: white;
}

.task-title {
    flex: 1;
    font-size: 10pt;
}

.task-overdue {
    font-weight: 700;
}

.task-time {
    font-size: 9pt;
    color: #333;
    margin-left: 0.5rem;
}

/* Top 3 Focus Section */
.focus-section {
    margin: 1.5rem 0;
    padding: 0.75rem;
    border: 2px solid #000;
    page-break-inside: avoid;
}

.focus-header {
    font-size: 14pt;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-align: center;
}

.focus-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    min-height: 1.5rem;
}

.focus-checkbox {
    width: 1.5rem;
    height: 1.5rem;
    min-width: 1.5rem;
    border: 3px solid #000;
    margin-right: 0.75rem;
    background: white;
}

.focus-number {
    font-weight: 700;
    margin-right: 0.5rem;
}

/* Notes Section */
.notes-section {
    margin: 1.5rem 0;
    page-break-inside: avoid;
}

.notes-header {
    font-size: 12pt;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.notes-lines {
    border-top: 1px solid #ccc;
}

.notes-line {
    height: 1.5rem;
    border-bottom: 1px solid #ccc;
}

/* Reflection Prompts */
.reflection-section {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    page-break-inside: avoid;
}

.reflection-prompt {
    font-size: 9pt;
}

.reflection-label {
    font-weight: 700;
    display: block;
    margin-bottom: 0.25rem;
}

.reflection-line {
    border-bottom: 1px solid #000;
    height: 1.5rem;
}

/* Weekly Review */
.weekly-initiative {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    border: 1px solid #000;
    page-break-inside: avoid;
}

.initiative-name {
    flex: 1;
    font-weight: 600;
}

.initiative-health {
    width: 2rem;
    text-align: center;
    font-weight: 700;
    margin-right: 0.5rem;
}

.initiative-next-action {
    flex: 2;
    font-size: 9pt;
    padding-left: 0.5rem;
    border-left: 1px solid #ccc;
}

.initiative-actions {
    display: flex;
    gap: 1rem;
    margin-left: 1rem;
}

.initiative-action {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.action-checkbox {
    width: 0.9rem;
    height: 0.9rem;
    border: 2px solid #000;
    background: white;
}

.action-label {
    font-size: 9pt;
}

/* Weekly Reflection */
.weekly-reflection {
    margin-bottom: 1rem;
    page-break-inside: avoid;
}

.reflection-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.reflection-blank-lines {
    border-top: 1px solid #000;
}

.reflection-blank-line {
    height: 1.5rem;
    border-bottom: 1px solid #ccc;
}

/* Schedule Timeline */
.schedule-timeline {
    margin-top: 1rem;
}

.timeline-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #ddd;
    min-height: 2.5rem;
}

.timeline-hour {
    width: 4rem;
    padding: 0.25rem;
    font-weight: 600;
    border-right: 2px solid #000;
    font-size: 9pt;
}

.timeline-content {
    flex: 1;
    padding: 0.25rem 0.5rem;
}

.timeline-block {
    background: #f0f0f0;
    border-left: 4px solid #000;
    padding: 0.25rem 0.5rem;
    margin: 0.1rem 0;
    font-size: 9pt;
}

.timeline-recovery {
    background: #e0e0e0;
    border-left: 4px solid #666;
    font-style: italic;
}

.timeline-margin {
    width: 3rem;
    border-left: 1px solid #ccc;
    margin-left: 0.5rem;
}

/* Health Indicators */
.health-indicator {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    text-align: center;
    line-height: 1.5rem;
    border: 2px solid #000;
    font-weight: 700;
}

.health-green::after {
    content: 'G';
}

.health-yellow::after {
    content: 'Y';
}

.health-red::after {
    content: 'R';
}

/* Empty State */
.empty-tasks {
    font-style: italic;
    color: #666;
    margin-left: 1.5rem;
}

/* Screen-Only Controls */
@media screen {
    .print-controls {
        position: fixed;
        top: 1rem;
        right: 1rem;
        display: flex;
        gap: 0.5rem;
        z-index: 1000;
        background: white;
        padding: 0.5rem;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .btn-print {
        padding: 0.5rem 1rem;
        border: 2px solid #000;
        background: white;
        color: #000;
        font-weight: 600;
        cursor: pointer;
        font-family: var(--print-font-family);
        border-radius: 4px;
    }
    
    .btn-print:hover {
        background: #f0f0f0;
    }
    
    .btn-back {
        padding: 0.5rem 1rem;
        border: 2px solid #666;
        background: white;
        color: #666;
        font-weight: 600;
        cursor: pointer;
        font-family: var(--print-font-family);
        border-radius: 4px;
    }
    
    .btn-back:hover {
        background: #f0f0f0;
    }
}

/* Print Media Query */
@media print {
    @page {
        size: letter;
        margin: 0.5in;
    }
    
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    body {
        margin: 0;
        padding: 0;
    }
    
    .print-container {
        margin: 0;
        padding: 0;
        max-width: none;
    }
    
    .print-controls,
    .no-print {
        display: none !important;
    }
    
    /* Prevent page breaks */
    .print-section,
    .stream-section,
    .focus-section,
    .notes-section,
    .reflection-section {
        page-break-inside: avoid;
        break-inside: avoid;
    }
}
