/* Print styles for SKT.SalesReport */
@media print {
    /* Hide navigation and non-printable elements */
    .mud-drawer,
    .mud-appbar,
    .search-panel,
    .export-toolbar,
    .no-print,
    .mud-button,
    .mud-nav-menu,
    .header-actions,
    .mud-snackbar-provider {
        display: none !important;
    }

    /* Reset page margins */
    @page {
        margin: 15mm;
        size: A4 portrait;
    }

    /* Main content adjustments */
    body {
        background: white !important;
        color: black !important;
        font-size: 10pt;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .mud-main-content {
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Page header for print */
    .page-header {
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 2px solid #333;
    }

    .page-title {
        color: black !important;
        font-size: 18pt !important;
    }

    .page-subtitle {
        color: #666 !important;
        font-size: 10pt !important;
    }

    /* Cards adjustments */
    .mud-paper,
    .sales-card,
    .data-grid-panel {
        background: white !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }

    .card-value,
    .data-number {
        color: black !important;
    }

    .card-unit,
    .data-unit {
        color: #666 !important;
    }

    /* Chart styling for print */
    .mud-chart {
        page-break-inside: avoid;
    }

    /* Table adjustments */
    .mud-table,
    .mud-data-grid {
        font-size: 9pt;
    }

    .mud-table-cell,
    .mud-data-grid-cell {
        border: 1px solid #ddd !important;
        padding: 4px 8px !important;
    }

    .mud-table-head .mud-table-cell,
    .mud-data-grid-header {
        background: #f0f0f0 !important;
        font-weight: bold;
    }

    /* Grid layout for cards */
    .mud-grid {
        display: flex;
        flex-wrap: wrap;
    }

    .mud-grid-item {
        page-break-inside: avoid;
    }

    /* Section titles */
    .section-title {
        color: black !important;
        font-size: 12pt !important;
        margin-top: 15px !important;
        margin-bottom: 10px !important;
    }

    /* Positive/negative colors for print */
    .diff-positive {
        color: #0066cc !important;
    }

    .diff-negative {
        color: #cc0000 !important;
    }

    /* Print date footer */
    .print-footer {
        display: block !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        text-align: center;
        font-size: 8pt;
        color: #999;
        padding: 5px;
        border-top: 1px solid #ccc;
    }
}

/* Hide print-only elements in screen mode */
@media screen {
    .print-only,
    .print-footer {
        display: none !important;
    }
}

/* Dark mode print styles */
@media print {
    /* Body - dark background */
    [data-theme="dark"] body,
    html[data-theme="dark"] body {
        background: #0f172a !important;
        color: #f1f5f9 !important;
    }

    /* Page header */
    [data-theme="dark"] .page-header {
        border-bottom-color: #334155;
    }

    [data-theme="dark"] .page-title {
        color: #f1f5f9 !important;
    }

    [data-theme="dark"] .page-subtitle {
        color: #94a3b8 !important;
    }

    /* Cards and panels */
    [data-theme="dark"] .mud-paper,
    [data-theme="dark"] .sales-card,
    [data-theme="dark"] .data-grid-panel {
        background: #1e293b !important;
        border-color: #334155 !important;
    }

    /* Data values */
    [data-theme="dark"] .card-value,
    [data-theme="dark"] .data-number {
        color: #f1f5f9 !important;
    }

    [data-theme="dark"] .card-unit,
    [data-theme="dark"] .data-unit {
        color: #94a3b8 !important;
    }

    /* Tables and data grids */
    [data-theme="dark"] .mud-table-cell,
    [data-theme="dark"] .mud-data-grid-cell {
        border-color: #334155 !important;
        color: #f1f5f9 !important;
    }

    [data-theme="dark"] .mud-table-head .mud-table-cell,
    [data-theme="dark"] .mud-data-grid-header {
        background: #334155 !important;
        color: #f1f5f9 !important;
    }

    /* Section titles */
    [data-theme="dark"] .section-title {
        color: #f1f5f9 !important;
    }

    /* Print footer */
    [data-theme="dark"] .print-footer {
        color: #64748b !important;
        border-top-color: #334155 !important;
    }
}
