/* ========================================
   バス駐車場予約システム — print.css
   スケジュール表 A4横向き印刷レイアウト (FR-17)
   ======================================== */

@media print {
    @page {
        size: A4 landscape;
        margin: 10mm;
    }

    .no-print {
        display: none !important;
    }

    .site-header,
    .site-footer {
        display: none !important;
    }

    .print-only-title {
        display: block !important;
        font-size: 18pt;
        font-weight: bold;
        text-align: center;
        margin-bottom: 10mm;
    }

    body {
        background: #fff !important;
        color: #000 !important;
        font-size: 10pt;
    }

    .main-content {
        max-width: none;
        padding: 0;
        margin: 0;
    }

    .schedule-container {
        overflow: visible;
    }

    .schedule-table {
        width: 100%;
        border-collapse: collapse;
        page-break-inside: avoid;
    }

    .schedule-table th,
    .schedule-table td {
        border: 1px solid #333;
    }

    .info-cell {
        font-size: 7pt;
        text-align: left;
        padding: 1px 3px !important;
        white-space: normal;
        word-break: break-all;
        line-height: 1.2;
    }

    .slot-row {
        height: 20mm;
    }

    .grid-line {
        display: block;
        position: absolute;
        top: 0;
        bottom: 0;
        width: 0;
        pointer-events: none;
        z-index: 0;
    }

    .grid-hour {
        border-left: 1px solid #999;
    }

    .grid-half {
        border-left: 1px solid #ccc;
    }

    .timebar {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .bar-confirmed {
        background-color: #c8e6c9 !important;
    }

    .bar-tentative {
        background-color: #fff9c4 !important;
    }

    .bar-cancelled {
        background-color: #e0e0e0 !important;
        text-decoration: line-through;
    }
}
