/**
 * Pharmacy Questionnaire - 印刷用スタイル
 *
 * @media print でのみ適用。1ページに収まるレイアウトを提供。
 */

@media print {
    /* 不要な要素を非表示 */
    body * {
        visibility: hidden;
    }

    #pq-print-container,
    #pq-print-container * {
        visibility: visible;
    }

    #pq-print-container {
        display: block !important;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        padding: 10mm;
        font-family: 'Noto Sans JP', sans-serif;
        font-size: 11px;
        color: #000;
        line-height: 1.5;
    }

    /* 印刷ヘッダー */
    .pq-print-header {
        text-align: center;
        margin-bottom: 12px;
        border-bottom: 2px solid #333;
        padding-bottom: 8px;
    }

    .pq-print-header h2 {
        font-size: 16px;
        margin: 0 0 4px;
    }

    .pq-print-header .pq-print-meta {
        font-size: 10px;
        color: #666;
    }

    /* 印刷テーブル */
    .pq-print-table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 12px;
    }

    .pq-print-table th,
    .pq-print-table td {
        border: 1px solid #999;
        padding: 4px 8px;
        text-align: left;
        font-size: 11px;
    }

    .pq-print-table th {
        background: #f0f0f0;
        font-weight: 700;
        width: 30%;
    }

    .pq-print-section-title {
        font-size: 13px;
        font-weight: 700;
        margin: 10px 0 4px;
        padding: 3px 8px;
        background: #e8e8e8;
        border-left: 3px solid #333;
    }

    /* ページ改行制御 */
    .pq-print-section {
        page-break-inside: avoid;
    }
}
