/* 日報PDF印刷用スタイル */
.report-print-container {
    display: none;
}

.report-print-container.active {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 10000;
    overflow: auto;
}

.report-print-page {
    width: 210mm;
    min-height: 297mm;
    margin: 20px auto;
    background: white;
    padding: 20mm;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    page-break-after: always;
}

.report-print-page:last-child {
    page-break-after: auto;
}

.report-print-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 3px solid #667eea;
    padding-bottom: 15px;
}

.report-print-header h1 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0 0 10px 0;
}

.report-print-header .report-period {
    font-size: 16px;
    color: #666;
    margin: 5px 0;
}

.report-print-header .report-user {
    font-size: 18px;
    font-weight: bold;
    color: #667eea;
    margin: 5px 0;
}

.report-print-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    display: flex;
    gap: 10px;
}

.report-print-controls button {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.btn-print-report {
    background: #667eea;
    color: white;
}

.btn-print-report:hover {
    background: #5568d3;
    transform: translateY(-2px);
}

.btn-close-report {
    background: #999;
    color: white;
}

.btn-close-report:hover {
    background: #777;
}

.report-summary {
    background: #f8f9ff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.report-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.report-summary-row .label {
    font-weight: bold;
    color: #555;
}

.report-summary-row .value {
    color: #667eea;
    font-weight: bold;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.report-table th,
.report-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    font-size: 12px;
}

.report-table th {
    background: #667eea;
    color: white;
    font-weight: bold;
    text-align: center;
}

.report-table tbody tr:nth-child(even) {
    background: #f9f9f9;
}

.report-table .date-cell {
    text-align: center;
    font-weight: bold;
    width: 100px;
}

.report-table .tasks-cell {
    min-width: 200px;
}

.task-tag {
    display: inline-block;
    background: #e8f0fe;
    color: #1967d2;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    margin: 2px;
    font-weight: bold;
}

.report-footer {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 2px solid #ddd;
    text-align: center;
    font-size: 12px;
    color: #999;
}

/* 印刷時のスタイル */
@media print {
    @page {
        size: A4;
        margin: 15mm;
    }
    
    body.report-print-active {
        margin: 0;
        padding: 0;
    }
    
    body.report-print-active * {
        visibility: hidden;
    }
    
    body.report-print-active .report-print-container,
    body.report-print-active .report-print-container * {
        visibility: visible;
    }
    
    body.report-print-active .report-print-container {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    
    .report-print-page {
        width: 100%;
        min-height: auto;
        margin: 0;
        padding: 0;
        box-shadow: none;
        page-break-after: always;
    }
    
    .report-print-page:last-child {
        page-break-after: auto;
    }
    
    .report-print-controls {
        display: none !important;
    }
    
    .report-print-header {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
    
    .report-table th {
        background: #667eea !important;
        color: white !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
    
    .task-tag {
        background: #e8f0fe !important;
        color: #1967d2 !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}
