/* ===== 甘肃版省级设施建设填报 专用样式（基于 provincial-facility-report.css 扩展）===== */

/* 22列表格加宽 */
.gs-pf-table { min-width: 3500px; }

/* 状态Tab */
.gs-status-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 16px;
}
.gs-status-tab {
    padding: 8px 22px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: -2px;
}
.gs-status-tab:hover { color: #2E75B6; }
.gs-status-tab.active { color: #2E75B6; border-bottom-color: #2E75B6; }

/* 滞后行整行浅红色高亮 */
.gs-pf-table tbody tr.gs-row-lag { background-color: #fef2f2 !important; }
.gs-pf-table tbody tr.gs-row-lag:nth-child(even) { background-color: #fee2e2 !important; }
.gs-pf-table tbody tr.gs-row-lag:hover { background-color: #fecaca !important; }
/* 滞后行冻结列也要同步背景 */
.gs-pf-table tbody tr.gs-row-lag .fz-1,
.gs-pf-table tbody tr.gs-row-lag .fz-2,
.gs-pf-table tbody tr.gs-row-lag .fz-3,
.gs-pf-table tbody tr.gs-row-lag .fz-last { background-color: #fef2f2 !important; }
.gs-pf-table tbody tr.gs-row-lag:nth-child(even) .fz-1,
.gs-pf-table tbody tr.gs-row-lag:nth-child(even) .fz-2,
.gs-pf-table tbody tr.gs-row-lag:nth-child(even) .fz-3,
.gs-pf-table tbody tr.gs-row-lag:nth-child(even) .fz-last { background-color: #fee2e2 !important; }

/* 汇总行 */
.gs-pf-table .gs-summary-row td {
    background-color: #f0f4f8 !important;
    font-weight: 600;
    font-size: 13px;
    color: #1a365d;
    border-top: 2px solid #cbd5e0;
}
.gs-pf-table .gs-summary-row td.pf-prog-col {
    background-color: #e2effa !important;
}

/* 审批状态标签补充 */
.pf-tag-approval-待审批 { background: #edf2f7; color: #A0AEC0; }
.pf-tag-approval-审批中 { background: #feebc8; color: #ED8936; }
.pf-tag-approval-已通过 { background: #d1fae5; color: #38A169; }
.pf-tag-approval-已驳回 { background: #fee2e2; color: #E53E3E; }

/* 统计卡片 sub 信息显示 */
.pf-stat-cards-8 .pf-stat-body .sub { display: block; }

/* ===== 市州汇总表 ===== */
.gs-city-table { min-width: 960px; }
.gs-city-table tbody tr { cursor: pointer; }
.gs-city-table .gs-prog-cell {
    display: inline-flex; align-items: center; gap: 6px;
}
.gs-city-table .gs-prog-bar {
    width: 60px; height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden;
}
.gs-city-table .gs-prog-fill { height: 100%; border-radius: 4px; }
.gs-city-table .gs-prog-val { font-size: 12px; font-weight: 600; min-width: 38px; }
/* 完成率<60% 行浅红高亮 */
.gs-city-table tbody tr.gs-city-row-lag { background-color: #fef2f2 !important; }
.gs-city-table tbody tr.gs-city-row-lag:nth-child(even) { background-color: #fee2e2 !important; }
.gs-city-table tbody tr.gs-city-row-lag:hover { background-color: #fecaca !important; }

/* 市州表标题栏 */
.panel-title-bar {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid #e5e7eb;
}
.panel-title-bar .panel-title { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.gs-city-tip { font-size: 12px; color: #6b7280; font-weight: 400; }

/* 市州表汇总行 */
.gs-city-table .gs-city-summary-row td {
    background-color: #f0f4f8 !important;
    font-weight: 600; font-size: 13px; color: #1a365d;
    border-top: 2px solid #cbd5e0;
}

/* ===== 现场照片上传 ===== */
.pf-photo-upload { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.pf-photo-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.pf-photo-thumb { position: relative; width: 72px; height: 72px; border-radius: 6px; overflow: hidden; border: 1px solid #e5e7eb; }
.pf-photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pf-photo-thumb-del { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; background: rgba(0,0,0,0.5); color: #fff; border: none; font-size: 12px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pf-photo-add { width: 72px; height: 72px; border: 2px dashed #93c5fd; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #2E75B6; cursor: pointer; background: #f8fbff; text-align: center; line-height: 1.4; }
.pf-photo-add:hover { border-color: #2E75B6; background: #eef5ff; }

/* ===== 时间轴淡入动画 ===== */
.pf-timeline-item { opacity: 0; transform: translateX(-8px); animation: gsTlFadeIn 0.4s ease forwards; }
@keyframes gsTlFadeIn { to { opacity: 1; transform: translateX(0); } }

/* 建设进度按钮小红点（有新记录） */
.gs-progress-dot {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    background: #E53E3E; margin-left: 4px; vertical-align: middle;
    box-shadow: 0 0 0 2px #fff;
}

/* ===== 图表栅格 ===== */
.pf-chart-grid-2 {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px;
}
@media (max-width: 1100px) { .pf-chart-grid-2 { grid-template-columns: 1fr; } }

/* ===== 时间轴照片 ===== */
.pf-timeline-photos {
    display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap;
}
.pf-timeline-photos img {
    width: 54px; height: 54px; object-fit: cover; border-radius: 4px;
    border: 1px solid #e5e7eb; cursor: pointer; transition: transform 0.15s;
}
.pf-timeline-photos img:hover { transform: scale(1.1); }
