/* BCPレポート専用スタイル */
.bcp-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.report-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.report-header h2 {
    margin: 0 0 10px 0;
    color: white;
    font-size: 28px;
}

.report-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.report-date {
    font-size: 14px;
    opacity: 0.9;
}

.report-actions {
    display: flex;
    gap: 10px;
}

.btn-pdf {
    background: white;
    color: #667eea;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    line-height: 1;
    transition: all 0.3s;
}

.btn-pdf:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #667eea;
    color: #333;
}

.alert-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
}

.alert-box.success {
    background: #d4edda;
    border-left-color: #28a745;
}

.alert-box h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
}

.alert-box ul {
    margin: 5px 0;
    padding-left: 20px;
}

/* テーブルスタイル */
.bcp-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.bcp-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
    color: #495057;
}

.bcp-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
}

.bcp-table tr:hover {
    background: #f8f9fa;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.success {
    background: #d4edda;
    color: #155724;
}

.status-badge.warning {
    background: #fff3cd;
    color: #856404;
}

.status-badge.danger {
    background: #f8d7da;
    color: #721c24;
}

/* 優先度アクション */
.action-item {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 4px solid;
}

.action-item.priority-high {
    background: #ffe6e6;
    border-left-color: #dc3545;
}

.action-item.priority-medium {
    background: #fff9e6;
    border-left-color: #ffc107;
}

.action-item .priority-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 10px;
}

.action-item .priority-badge.high {
    background: #dc3545;
    color: white;
}

.action-item .priority-badge.medium {
    background: #ffc107;
    color: #333;
}

/* プログレスバー */
.progress-bar {
    height: 30px;
    background: #e9ecef;
    border-radius: 15px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4ade80 0%, #22c55e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    transition: width 0.3s ease;
}

.progress-fill.warning {
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
}

.progress-fill.danger {
    background: linear-gradient(90deg, #f87171 0%, #ef4444 100%);
}

/* 要注意店舗カード */
.critical-store-card {
    background: #fff;
    border-left: 5px solid #ff9800;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.critical-store-card.severity-critical {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.store-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.store-header h4 {
    margin: 0;
    font-size: 1.3em;
    color: #333;
}

.offline-devices-list {
    margin-top: 15px;
}

.offline-devices-list h5 {
    font-size: 1em;
    color: #666;
    margin-bottom: 10px;
}

.bcp-table.compact {
    font-size: 0.9em;
}

.bcp-table.compact td,
.bcp-table.compact th {
    padding: 8px 12px;
}

tr.recent-offline {
    background: #fff3cd;
    font-weight: 500;
}

.alert-info {
    background: #e7f3ff;
    border-left: 4px solid #2196f3;
    padding: 12px 15px;
    margin-top: 15px;
    border-radius: 4px;
}

/* アクションカード */
.action-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 5px solid #6c757d;
}

.action-card.priority-critical {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.action-card.priority-high {
    border-left-color: #ff9800;
    background: #fff8f0;
}

.action-card.priority-medium {
    border-left-color: #ffc107;
    background: #fffef0;
}

.action-card.priority-info {
    border-left-color: #28a745;
    background: #f0fff5;
}

.action-header {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.priority-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
}

.priority-badge.critical {
    background: #dc3545;
    color: white;
}

.priority-badge.high {
    background: #ff9800;
    color: white;
}

.priority-badge.medium {
    background: #ffc107;
    color: #333;
}

.priority-badge.info {
    background: #28a745;
    color: white;
}

.category-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    background: #e9ecef;
    color: #495057;
}

.action-card h4 {
    margin: 10px 0;
    font-size: 1.2em;
    color: #333;
}

.action-description {
    color: #666;
    line-height: 1.6;
}

.action-items {
    margin-top: 15px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
}

.action-items ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.action-items li {
    margin: 5px 0;
    line-height: 1.5;
}

/* 位置情報表示 */
.location-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.location-name {
    font-size: 0.9em;
    color: #495057;
    font-weight: 500;
}

/* 統合地図コンテナ */
.map-container {
    margin-top: 30px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.map-container h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.2em;
    font-weight: 600;
}

#unified-map {
    border: 2px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 地図凡例 */
.map-legend {
    margin-top: 15px;
}

.legend-item {
    transition: background-color 0.2s;
    padding: 4px 8px;
    border-radius: 4px;
}

.legend-item:hover {
    background-color: #f8f9fa !important;
}

/* テーブル行のホバー効果 */
.device-row {
    transition: background-color 0.2s;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .bcp-container {
        padding: 0 10px;
    }

    .report-meta {
        flex-direction: column;
        gap: 15px;
    }
}
