/* Print styles — DataSuteis */
@page {
    size: A4 portrait;
    margin: 14mm 12mm 16mm 12mm;
}

@media print {
    nav,
    footer,
    .ad-slot,
    .no-print,
    #theme-toggle,
    #mobile-menu-btn,
    #mobile-menu,
    .btn,
    .btn-primary,
    .btn-secondary,
    .btn-outline,
    .btn-print,
    .toggle-track,
    .warning-banner,
    .lang-btn,
    #fallback-warning,
    form {
        display: none !important;
    }

    svg {
        width: 6mm;
        height: 6mm;
        max-width: 6mm;
        max-height: 6mm;
    }

    img {
        max-height: 18mm;
        height: auto;
        width: auto;
    }

    .icon {
        width: 6mm !important;
        height: 6mm !important;
        max-width: 6mm !important;
        max-height: 6mm !important;
    }

    body {
        background: #fff !important;
        color: #0f172a !important;
        font-size: 10.5px;
        line-height: 1.3;
    }

    .print-header {
        display: flex !important;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        margin: 0 0 10px;
        padding: 0 0 8px;
        border-bottom: 2px solid #0f172a;
    }

    .print-header img {
        height: 34px !important;
        width: auto !important;
        max-height: none !important;
        object-fit: contain;
    }

    .print-header .print-title {
        margin: 0;
        font-size: 15px;
        font-weight: 800;
    }

    .print-footer {
        display: flex !important;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        justify-content: space-between;
        border-top: 1px solid #cbd5e1;
        padding: 4px 10mm;
        font-size: 8px;
        color: #64748b;
        background: #fff;
    }

    .grid.grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-3.xl\:grid-cols-4 {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }

    .card {
        border: 1px solid #dbe1e9 !important;
        border-radius: 6px !important;
        box-shadow: none !important;
        padding: 6px !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .cal-cell {
        width: 19px !important;
        height: 19px !important;
        border-radius: 3px !important;
        font-size: 8.5px !important;
        line-height: 1 !important;
    }

    .cal-cell.holiday {
        background: #fee2e2 !important;
        color: #991b1b !important;
        font-weight: 700 !important;
    }

    .cal-cell.weekend {
        background: #f8fafc !important;
        color: #64748b !important;
    }

    .cal-cell.today {
        outline: 1.5px solid #1d4ed8 !important;
        font-weight: 700 !important;
    }

    #calc-result .card,
    #scale-result .card {
        border-left: 4px solid #1d4ed8 !important;
    }

    .holiday-list-print {
        font-size: 9px;
    }

    .holiday-list-print th {
        border-bottom: 1px solid #1e293b;
        font-size: 8px;
        font-weight: 700;
        text-transform: uppercase;
    }

    .holiday-list-print td {
        padding: 3px 6px;
        border-bottom: 1px solid #e2e8f0;
    }

    .print-legend {
        display: flex !important;
        gap: 10px;
        margin-top: 6px;
        padding-top: 6px;
        border-top: 1px solid #e2e8f0;
        font-size: 8.5px;
    }

    .print-legend .swatch {
        display: inline-block;
        width: 9px;
        height: 9px;
        margin-right: 4px;
        border-radius: 2px;
        vertical-align: middle;
    }

    .print-legend .swatch--holiday {
        background: #fee2e2;
        border: 1px solid #b91c1c;
    }

    .print-legend .swatch--weekend {
        background: #f1f5f9;
    }

    .print-legend .swatch--today {
        border: 1.5px solid #1d4ed8;
    }

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    a[href]::after {
        content: none !important;
    }
}

.print-header,
.print-footer,
.print-legend {
    display: none;
}
