/* 2025年全表格数据统计样式 */
.table-sections{
    
   
  }
  .form-stats-search {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    padding-top: 80px;
    padding-bottom: 25px;
  }
  .category-label{
    font-size: 14px;
    line-height: 34px;
    color: #333;
    font-weight: normal;
  }
  .category-input{
    width: 156px !important;
    height: 33px;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    padding: 0 10px;
    font-size: 14px;
  }
  .category-input:focus{
    outline: none;
    border-color: #e0e0e0 !important;
  }
  .year-select,.quarter-select{
    width: 80px !important;
  }
  .stats-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    table-layout: fixed; /* 强制使用固定布局 */
  }
  .stats-table-container{
    /* border-top: 3px solid #bf123e; */
  }
  .stats-table-thead{
    
    border-bottom: 1px solid #e8e6dc;
    border-top: 1px solid #e8e6dc;
  }
  .stats-header-row{
    height: 80px;
  }
  .form-number-col{
    font-size: 20px;
    color:#000000;
    font-weight: bold;
    width: 100px !important;
    background: #f2f2f2;
    padding: 0 5px;
    
  }
  .form-number-col-content{
    text-align: center;
    word-break: break-all;
  }
  .description-col{
   font-size: 20px;
    color:#000000;
    font-weight: bold;
    width: 165px;
    background: #f2f2f2;
    text-align: left;
    padding-left: 15px;
    margin: 0 10px;
    /* border-right: 5px solid #fff;
    border-left: 5px solid #fff; */
    position: relative;
  }

  .quarter-header {
    width: 502px !important;
    background: #f2f2f2;
    text-align: center;
    font-size: 20px;
    color:#000000;
    font-weight: bold;
    position: relative;
  }
  /* .quarter-header:after{
    content: '';
    position: absolute; 
    right: 0; 
    top: 0px; 
    height: 80px; 
    width: 5px; 
    background-color: #fff;
  } */
  
  .fiscal-year-header{
    width: 421px !important;
    background: #f2f2f2;
    text-align: center;
    font-size: 20px;
    color:#000000;
    font-weight: bold;
  }
  .quarter-sub-header{
    background: #f2f2f2;
    font-size: 14px;
    color: #000000;
    font-weight: bold;
    text-align: center;
    height: 50px;
  }
  .quarter-sub-header:nth-child(6){
    position: relative;
    /* border-right: 5px solid #fff; */
  }

  .fiscal-year-sub-header{
    background: #f2f2f2;
    font-size: 14px;
    color: #000000;
    font-weight: bold;
    text-align: center;
  }
  .total-stats-row{
    border-bottom: 2px solid #bf123e;
    font-size: 12px;
    color: #333;
    font-weight: bold;
    text-align: center;
    height: 40px;
  }
  .total-stats-row td:nth-child(2)::after,.total-stats-row td:nth-child(2)::before{
    content: '';
    position: absolute; /* 绝对定位，脱离文档流 */
    right: 0; /* 靠右对齐 */
    top: 0px; /* 距离顶部30px，留出空隙 */
    height: 38px; /* 边框高度（小于元素总高度150px） */
    width: 5px; /* 边框宽度 */
    background-color: #fff; /* 边框颜色 */
  }
  .total-stats-row td:nth-child(2)::before{
    left: 0;
  }
  .total-stats-row td:nth-child(2){
    background: #f3f3f3;
    position: relative;
  }

  .total-stats-row td:nth-child(3),
  .total-stats-row td:nth-child(4),
  .total-stats-row td:nth-child(5),
  .total-stats-row td:nth-child(6),
  .total-stats-row td:nth-child(7),
  .total-stats-row td:nth-child(8){
    /* background: #e8e6dc; */
    position: relative;
  }

  .total-stats-row td:nth-child(8):after{
    content: '';
    position: absolute; /* 绝对定位，脱离文档流 */
    right: 0; /* 靠右对齐 */
    top: 0px; /* 距离顶部30px，留出空隙 */
    height: 38px; /* 边框高度（小于元素总高度150px） */
    width: 5px; /* 边框宽度 */
  /* 边框颜色 */
  }
  .category-title{
    font-size: 14px;
    color: #333;
    height: 50px;
    font-weight: bold;
   text-align: center;
   /* border-bottom: 1px solid #bf123e; */
   /* background: #f3f3f3; */
  }
  .category-title-line{
    position: relative;
  }
  .category-title-line:after,.category-title-line:before{
    content: '';
    position: absolute; /* 绝对定位，脱离文档流 */
    right: 0; /* 靠右对齐 */
    top: 0px; /* 距离顶部30px，留出空隙 */
    height: 100%; /* 边框高度（小于元素总高度150px） */
    width: 1px; /* 边框宽度 */
    /* background-color: #e8e6dc; */
     /* 边框颜色 */
  }
  .category-title-line:before{
    left: 0;
  }
  .category-title-row-data{
    position: relative;
  }
  .category-title-row-data:after,.category-title-row-data:before{
    content: '';
    position: absolute; /* 绝对定位，脱离文档流 */
    right: 0; /* 靠右对齐 */
    top: 0px; /* 距离顶部30px，留出空隙 */
    height: 100%; /* 边框高度（小于元素总高度150px） */
    width: 1px; /* 边框宽度 */
    /* background-color: #82b8d4;  */
    /* 边框颜色 */
  }

  .category-title-row-data-line{
    
  }
  .data-stats-row,.category-title-row{
   border-bottom: 1px solid #e8e6dc;
    height: 50px;
    font-size: 14px;
    color: #333;
    text-align: center;
    
    background: #fff;
  }
  .data-stats-row:nth-child(even){
    background: #f2f2f2;
  }
  .category-title-row:nth-child(1){
    background: #fff;
  }
  .category-title-row:nth-child(2){
    background: #f2f2f2;
  }
 .form-number-data-row{
    
  }
  .form-number,.category-title{
    /* background: #e2eff5; */
    color: #000000;
    font-weight: bold;
    text-align: left;
    font-size: 14px;
    padding-left: 15px;
  }
  .form-description{
    
    position: relative;
    padding:  0 6px;
  }
  .form-description:after,
  .form-description:before{
    content: '';
    position: absolute; /* 绝对定位，脱离文档流 */
    right: 0; /* 靠右对齐 */
    top: 0px; /* 距离顶部30px，留出空隙 */
    height: 100%; /* 边框高度（小于元素总高度150px） */
    width: 1px; /* 边框宽度 */
    /* background-color: #82b8d4;  */
    /* 边框颜色 */
  }
  
  
  .form-description:before,
  .form-number-data-row:before{
    left: 0;
  }
  
  .data-stats-row td:nth-child(3),.data-stats-row td:nth-child(8){
    position: relative;
    /* background: #f00; */
  }

  .data-stats-row td:nth-child(8):after{
    content: '';
    position: absolute; /* 绝对定位，脱离文档流 */
    right: 0; /* 靠右对齐 */
    top: 0px; /* 距离顶部30px，留出空隙 */
    height: 100%; /* 边框高度（小于元素总高度150px） */
    width: 1px; /* 边框宽度 */
    /* background-color: #82b8d4;  */
    /* 边框颜色 */
  }
  .form-number-data{
    /* background: #F4FCFF; */
  }

  /* 底部说明 */
  .stats-notes{
    font-size: 12px;
    color: #333;
    text-align: left;
    line-height: 70px;
    padding-left: 40px;
  }

  .no-data{
    padding: 40px;
  }



  /* 仅作用于数据统计页：年份日期 + 季度下拉同一行垂直居中 */
  .inc_dataStatistics .form-groups-date {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .form-groups .el-input--prefix {
    width: 112px !important;
  }

  /* 去掉原 top:-3px / mergeleft 负 margin，改为后缀区 flex 居中（与全局 32px 输入框高度一致） */
  .inc_dataStatistics .form-groups .el-input--prefix .el-input__suffix {
    top: 0 !important;
    height: 100%;
    display: flex;
    align-items: center;
  }
  .inc_dataStatistics .form-groups .el-input--prefix .el-input__suffix-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
  }

  .inc_dataStatistics .form-groups .quarter-select .el-input__suffix {
    top: 0 !important;
    bottom: 0;
    height: 100%;
    display: flex;
    align-items: center;
  }
  .inc_dataStatistics .form-groups .quarter-select .el-input__suffix-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
  }
  .inc_dataStatistics .form-groups .quarter-select .el-select__caret {
    line-height: 1;
  }

  .inc_dataStatistics .mergeleft {
    margin-top: 0;
  }

  /* 年份选择器左侧日历图标与文字垂直居中 */
  .inc_dataStatistics .form-groups .date-input.el-input--prefix .el-input__prefix {
    display: flex;
    align-items: center;
    height: 100%;
  }

  /* ====== 移动端响应式适配 ====== */
@media (max-width: 1200px) {
  .table-sections{
    width: 100vw;
    padding: 0 1.333rem;
  }
  .form-stats-search{
    flex-wrap: wrap;
    width: 100%;
    padding: 0;
    padding-top: 2.227rem;
    padding-bottom: 1.4rem;
    gap: 2px;
    justify-content: space-between;
    /* flex-direction: column; */

  }
  .form-groups{
    /* width: 100%; */
  }
  .stats-table-container{
    border: none;
    width: 100%;
  }
  .category-input{
    width: 9.067rem !important;
  }
  .form-groups .el-input--prefix{
    width: 5.267rem !important;
  }
  .form-groups .el-input--prefix .el-input__inner{
    padding: 0;
  }
  .form-groups .el-input__prefix{
    display: none !important;
  }

  .quarter-select{
    width: 4.267rem !important;
  }
  .form-groups .el-input__inner{
    padding: 0 5px !important;
    font-size: 12px !important;
  }

  .el-scrollbar__wrap{
    width: 100%;
    margin-bottom: 0px !important;
  }
  .el-select-dropdown__item{
    padding: 0 !important;
    text-align: center !important;
  }
  
  /* 移动端下拉选择器优化 - 解决需要点击两次才能收起的问题 */
  .el-select-dropdown__item {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  
  /* 移动端优化点击响应 */
  .quarter-select .el-input__inner,
  .quarter-select .el-input__suffix {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }


  /* 内容：横向可滑，隐藏滚动条 */
  .stats-table-container{
    overflow: auto;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .stats-table-container::-webkit-scrollbar{
    display: none;
    width: 0;
    height: 0;
  }

  /* 移动端：只保留下边横线；不设左右上边框，避免侧边出线 */
  .inc_dataStatistics .data-stats-row,
  .inc_dataStatistics .category-title-row{
    border-bottom: none !important;
  }
  .inc_dataStatistics .data-stats-row td,
  .inc_dataStatistics .category-title-row td{
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    box-shadow: inset 0 -1px 0 0 #e8e6dc !important;
  }

  .stats-notes{
    line-height: 20px;
    padding: 1.733rem 0;
  }

  /* 防止移动端日期选择器导致页面缩放 */
  .date-input .el-input__inner {
    font-size: 16px !important; /* iOS Safari 需要至少16px才能防止自动缩放 */
  }
  
  .date-input.el-input,
  .date-input.el-input__inner {
    font-size: 14px !important;
  }
  
  /* 防止输入框获得焦点时页面缩放和键盘弹出 */
  .date-input input,
  .date-input .el-input__inner {
    font-size: 14px !important;
    -webkit-text-size-adjust: 100%;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: auto;
  }
  
  /* 阻止输入框获得焦点时弹出键盘 */
  .date-input .el-input__inner:focus {
    caret-color: transparent;
  }
  
  /* 移动端阻止键盘弹出 - 通过设置 readonly 属性 */
  .date-input input[readonly],
  .date-input .el-input__inner[readonly] {
    cursor: pointer;
  }
  
  /* 移动端阻止键盘弹出 - 禁用文本选择 */
  .date-input input,
  .date-input .el-input__inner {
    -webkit-user-select: none;
    user-select: none;
  }
  
  /* 为 select-inputs 类的日期选择器也添加相同的移动端优化 */
  .select-inputs .el-input__inner {
    font-size: 16px !important;
  }
  
  .select-inputs input,
  .select-inputs .el-input__inner {
    font-size: 16px !important;
    -webkit-text-size-adjust: 100%;
    -webkit-appearance: none;
    appearance: none;
    -webkit-user-select: none;
    user-select: none;
  }
  
  .select-inputs .el-input__inner:focus {
    caret-color: transparent;
  }
  
  .select-inputs input[readonly],
  .select-inputs .el-input__inner[readonly] {
    cursor: pointer;
  }
}
/* 2026-10-24：年份、季度改为原生下拉后，按原 Element 控件在手机上的尺寸收窄（原 .el-input--prefix 5.267rem、.quarter-select 4.267rem、字号 12px） */
@media (max-width: 1200px) {
  .table-sections.inc_dataStatistics { box-sizing: border-box; max-width: 100%; }   /* 原规则 width: 100vw 加左右内边距会超出屏幕，查询按钮被挤出 */
  .inc_dataStatistics .form-groups select.mj-select.date-input { width: 5.267rem; min-width: 0; padding: 0 20px 0 5px; font-size: 12px; background-position: right 5px center; }
  .inc_dataStatistics .form-groups select.mj-select.quarter-select { width: 4.267rem !important; min-width: 0; padding: 0 20px 0 5px; font-size: 12px; background-position: right 5px center; }
}
