@media print {
    @page {
        margin: 1.5cm;
        size: A4 portrait;
    }
    
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }
    
    body {
        background: white !important;
        font-size: 11pt;
        line-height: 1.5;
    }
    
    .page-container {
        max-width: 100%;
        padding: 0;
        min-height: auto;
    }
    
    .header,
    .footer,
    .no-print {
        display: none !important;
    }
    
    .card {
        page-break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd;
        margin-bottom: 20px;
        padding: 20px;
    }
    
    .category-card {
        page-break-inside: avoid;
        border: 1px solid #ddd;
        margin-bottom: 15px;
        padding: 15px;
    }
    
    .item-card {
        border: 1px solid #eee;
        margin-bottom: 8px;
        padding: 10px;
        background: white;
    }
    
    .btn,
    button,
    form,
    input,
    textarea {
        display: none !important;
    }
    
    .badge {
        border: 1px solid currentColor;
        padding: 4px 8px;
        display: inline-block;
    }
    
    .countdown {
        display: none !important;
    }
    
    a {
        text-decoration: none;
        color: inherit;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        color: #666;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
        color: black !important;
    }
    
    .card-title {
        font-size: 18pt;
        margin-bottom: 10px;
    }
    
    .card-label {
        font-size: 9pt;
        margin-bottom: 5px;
    }
    
    .category-title {
        font-size: 12pt;
        font-weight: bold;
        margin-bottom: 10px;
        border-bottom: 2px solid currentColor;
        padding-bottom: 5px;
    }
    
    .category-positive .category-title {
        color: #34C759 !important;
    }
    
    .category-negative .category-title {
        color: #FF3B30 !important;
    }
    
    .category-improve .category-title {
        color: #FF9500 !important;
    }
    
    .category-commitment .category-title {
        color: #007AFF !important;
    }
    
    .category-kudos .category-title {
        color: #AF52DE !important;
    }
    
    .print-header {
        display: block !important;
        text-align: center;
        margin-bottom: 30px;
        border-bottom: 2px solid #333;
        padding-bottom: 15px;
    }
    
    .print-header h1 {
        font-size: 24pt;
        margin-bottom: 5px;
    }
    
    .print-header .subtitle {
        font-size: 11pt;
        color: #666;
    }
    
    .print-date {
        display: block !important;
        text-align: right;
        font-size: 9pt;
        color: #666;
        margin-bottom: 15px;
    }
    
    .print-summary {
        display: block !important;
        background: #f5f5f5;
        padding: 15px;
        margin-bottom: 20px;
        border-left: 4px solid #007AFF;
    }
    
    .print-summary h3 {
        font-size: 12pt;
        margin-bottom: 10px;
    }
    
    .print-footer {
        display: block !important;
        margin-top: 30px;
        padding-top: 15px;
        border-top: 1px solid #ddd;
        text-align: center;
        font-size: 9pt;
        color: #666;
    }
    
    ul, ol {
        padding-left: 20px;
    }
    
    img {
        max-width: 100%;
        page-break-inside: avoid;
    }
    
    table {
        border-collapse: collapse;
        width: 100%;
        page-break-inside: auto;
    }
    
    tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }
    
    td, th {
        border: 1px solid #ddd;
        padding: 8px;
    }
    
    thead {
        display: table-header-group;
    }
    
    tfoot {
        display: table-footer-group;
    }
    
    .page-break {
        page-break-after: always;
    }
    
    .no-page-break {
        page-break-inside: avoid;
    }
    
    @page :first {
        margin-top: 2cm;
    }
}

.print-only {
    display: none;
}

@media print {
    .print-only {
        display: block;
    }
}
