/* レポートサブタブスタイル */
.report-subtabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e5e7eb;
}

.report-subtab {
    padding: 10px 20px;
    background: #f3f4f6;
    color: #6b7280;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.report-subtab:hover {
    background: #e5e7eb;
    color: #374151;
}

.report-subtab.active {
    background: #667eea;
    color: white;
}

/* サブタブ内のナビゲーションタブのスタイル調整 */
#reports .nav-tabs {
    background: transparent;
    border-bottom: 2px solid #e5e7eb;
    padding: 0;
    margin-top: 20px;
}

#reports .nav-tabs .nav-tab {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #666;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

#reports .nav-tabs .nav-tab:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

#reports .nav-tabs .nav-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: transparent;
}

/* レポートカードの共通スタイル */
.report-stat-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.report-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.report-stat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f3f4f6;
}

.report-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.report-stat-icon.product {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.report-stat-icon.tasktype {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.report-stat-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.report-stat-info p {
    font-size: 13px;
    color: #6b7280;
}

.report-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.report-metric-item {
    text-align: center;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
}

.report-metric-number {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.report-metric-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.report-progress-section {
    margin-top: 16px;
}

.report-progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    color: #6b7280;
}

.report-progress-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.report-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 999px;
    transition: width 0.6s ease;
}

/* カスタム期間選択のスタイル */
#customDateRange {
    display: none;
    align-items: center;
    gap: 8px;
}

#customDateRange input[type="date"] {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

/* レポートコントロールのスタイル */
.report-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.report-controls select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}
