/* 共用样式 - 与开票控制系统保持一致 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family:"HarmonyOS Sans SC","HarmonyOS Sans",system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: #f0f4f8;
}

/* 表格滚动条 */
.table-wrapper::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
.table-wrapper::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 4px;
}
.table-wrapper::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* 动画 */
@keyframes flash-green {
    0% { background-color: #e8f5e9; }
    50% { background-color: #a5d6a7; }
    100% { background-color: #e8f5e9; }
}
.flash {
    animation: flash-green 0.5s ease;
}

/* 状态样式 */
.status-未申报 {
    color: #dc2626;
}
.status-已申报 {
    color: #16a34a;
}

/* ========================================== */
/* 新增：左侧固定列通用样式（解决透明、缝隙、按钮截断问题） */
/* ========================================== */

/* 固定列基础 */
.sticky-col-1,
.sticky-col-2,
.sticky-col-3,
.sticky-col-4,
.sticky-col-5 {
    position: sticky;
    background: #ffffff !important;
    z-index: 5;
    border-right: 1px solid #e2e8f0;
    white-space: nowrap;
}

/* 单独设置每列宽度（适应内容 + 操作列足够宽） */
.sticky-col-1 {
    left: 0;
    min-width: 100px;
    max-width: 140px;
}
.sticky-col-2 {
    left: 100px;
    min-width: 100px;
    max-width: 140px;
}
.sticky-col-3 {
    left: 200px;
    /* 关键：操作列留够空间让两个按钮完整显示 */
    min-width: 180px;
    max-width: 220px;
}
.sticky-col-4 {
    left: 380px;
    min-width: 110px;
    max-width: 130px;
}
.sticky-col-5 {
    left: 490px;
    min-width: 100px;
    max-width: 130px;
}

/* 固定列的表头（与内容列同宽、同步背景） */
.data-table thead .sticky-col-1,
.data-table thead .sticky-col-2,
.data-table thead .sticky-col-3,
.data-table thead .sticky-col-4,
.data-table thead .sticky-col-5 {
    background: #f8fafc;
    z-index: 15;
}

/* 鼠标悬停时，固定列背景也要跟着变色，避免透明透出后面内容 */
.data-table tr:hover .sticky-col-1,
.data-table tr:hover .sticky-col-2,
.data-table tr:hover .sticky-col-3,
.data-table tr:hover .sticky-col-4,
.data-table tr:hover .sticky-col-5 {
    background: #f8fafc !important;
}

/* 点中行淡绿色高亮（2026-10-19 苏国瑞要求：鼠标点中一行，整行淡绿） */
.data-table tbody tr:focus-within td,
.data-table tbody tr:focus-within th,
.data-table tbody tr:focus-within .sticky-col-1,
.data-table tbody tr:focus-within .sticky-col-2,
.data-table tbody tr:focus-within .sticky-col-3,
.data-table tbody tr:focus-within .sticky-col-4,
.data-table tbody tr:focus-within .sticky-col-5 {
    background-color: #d9f2d9 !important;
}


/* 鼠标悬停行也淡绿（2026-10-19 苏国瑞要求：悬停背景色跟点中一样浅绿） */
.data-table tbody tr:hover td,
.data-table tbody tr:hover .sticky-col-1,
.data-table tbody tr:hover .sticky-col-2,
.data-table tbody tr:hover .sticky-col-3,
.data-table tbody tr:hover .sticky-col-4,
.data-table tbody tr:hover .sticky-col-5 {
    background-color: #d9f2d9 !important;
}
