/* 2025年全表格数据统计样式 */
.table-sections{
    background: #fff;
      border: 1px solid #e0e0e0;
      border-radius: 3px;
      margin-bottom: 20px;
      padding: 0px 5px;
  }
  .form-stats-search {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 48px 0;
  }
  .category-label{
    font-size: 14px;
    line-height: 34px;
    color: #333;
    font-weight: normal;
  }
  .category-input{
    width: 170px !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 #be133d;
  }
  .stats-table-thead{
    
    border-bottom: 1px solid #dfdfdf;
  }
  .stats-header-row{
    height: 80px;
  }
  .form-number-col{
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    width: 100px !important;
    background: #be133d;
    padding: 0 5px;
    
  }
  .form-number-col-content{
    text-align: center;
    word-break: break-all;
  }
  .description-col{
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    width: 165px;
    background: #be133d;
    text-align: left;
    padding-left: 15px;
    margin: 0 10px;
    /* border-right: 5px solid #fff;
    border-left: 5px solid #fff; */
    position: relative;
  }
  /* .description-col:after {
    content: '';
    position: absolute; 
    right: 0; 
    top: 0px; 
    height: 118px; 
    width: 5px; 
    background-color: #fff; 
  } */
  /* .description-col:before {  头部
    content: '';
    position: absolute; 
    left: 0; 
    top: 0px; 
    height: 118px;
    width: 5px; 
    background-color: #fff;
  } */
  .quarter-header {
    width: 502px !important;
    background: #be133d;
    text-align: center;
    font-size: 14px;
    color:#fff;
    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: #be133d;
    text-align: center;
    font-size: 14px;
    color:#fff;
    font-weight: bold;
  }
  .quarter-sub-header{
    background: #be133d;
    color: #fff;
    font-size: 12px;
    font-weight:bold;
    text-align: center;
  }
  .quarter-sub-header:nth-child(6){
    position: relative;
    /* border-right: 5px solid #fff; */
  }

  .fiscal-year-sub-header{
    background: #be133d;
    color: #fff;
    font-size: 12px;
    font-weight:bold;
    text-align: center;
  }
  .total-stats-row{
    border-bottom: 2px solid #be133d;
    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(1){
    background: #002768;
    color: #fff;
  }
  .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: #f3f3f3;
    position: relative;
  }
  .total-stats-row td:nth-child(9),
  .total-stats-row td:nth-child(10),
  .total-stats-row td:nth-child(11),
  .total-stats-row td:nth-child(12),
  .total-stats-row td:nth-child(13),
  .total-stats-row td:nth-child(14){
    background: #ededed;
  }
  .total-stats-row td:nth-child(8):after{
    content: '';
    position: absolute; /* 绝对定位，脱离文档流 */
    right: 0; /* 靠右对齐 */
    top: 0px; /* 距离顶部30px，留出空隙 */
    height: 38px; /* 边框高度（小于元素总高度150px） */
    width: 5px; /* 边框宽度 */
    background-color: #fff; /* 边框颜色 */
  }
  .category-title{
    font-size: 14px;
    color: #333;
    height: 50px;
    font-weight: bold;
   text-align: center;
   /* border-bottom: 1px solid #be133d; */
   background: #f3f3f3;
  }
  .category-title-line{
    background: #ededed;
    position: relative;
  }
  .category-title-line:after,.category-title-line:before{
    content: '';
    position: absolute; /* 绝对定位，脱离文档流 */
    right: 0; /* 靠右对齐 */
    top: 0px; /* 距离顶部30px，留出空隙 */
    height: 100%; /* 边框高度（小于元素总高度150px） */
    width: 5px; /* 边框宽度 */
    background-color: #fff; /* 边框颜色 */
  }
  .category-title-line:before{
    left: 0;
  }
  .category-title-row-data{
    background: #f3f3f3;
    position: relative;
  }
  .category-title-row-data:after,.category-title-row-data:before{
    content: '';
    position: absolute; /* 绝对定位，脱离文档流 */
    right: 0; /* 靠右对齐 */
    top: 0px; /* 距离顶部30px，留出空隙 */
    height: 100%; /* 边框高度（小于元素总高度150px） */
    width: 5px; /* 边框宽度 */
    background-color: #fff; /* 边框颜色 */
  }

  .category-title-row-data-line{
    background: #ededed;
  }
  .data-stats-row,.category-title-row{
    border-bottom: 1px solid #e0e0e0;
    height: 50px;
    font-size: 12px;
    color: #333;
    text-align: center;
  }
 .form-number-data-row{
    background: #f3f3f3;
  }
  .form-number,.category-title{
    background: #002768;
    color: #fff;
  }
  .form-description{
    background: #ededed;
    position: relative;
    padding:  0 6px;
  }
  .form-description:after,
  .form-description:before{
    content: '';
    position: absolute; /* 绝对定位，脱离文档流 */
    right: 0; /* 靠右对齐 */
    top: 0px; /* 距离顶部30px，留出空隙 */
    height: 100%; /* 边框高度（小于元素总高度150px） */
    width: 5px; /* 边框宽度 */
    background-color: #fff; /* 边框颜色 */
  }
  
  
  .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: 5px; /* 边框宽度 */
    background-color: #fff; /* 边框颜色 */
  }
  .form-number-data{
    background: #ededed;
  }

  /* 底部说明 */
  .stats-notes{
    font-size: 12px;
    color: #333;
    text-align: left;
    line-height: 70px;
    padding-left: 40px;
  }

  .no-data{
    padding: 40px;
  }



  .form-groups .el-input--prefix  .el-input__suffix{
    top: -3px !important;
  }

  .form-groups .el-input--prefix {
    width: 100px !important;
  }

  /* ====== 移动端响应式适配 ====== */
@media (max-width: 1200px) {
  .table-sections{
    width: 100vw;
    padding: 0 1.333rem;
  }
  .form-stats-search{
    flex-wrap: wrap;
    width: 100%;
    padding: 0;
    padding-top: 3.267rem;
    padding-bottom: 1.4rem;
    gap: 2px;
    justify-content: space-between;

  }
  .stats-table-container{
    border: none;
  }
  .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;
  }

  .quarter-select{
    width: 4.267rem !important;
  }
  .form-groups .el-input__inner{
    padding: 0 5px !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%;
  }

  .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: 16px !important;
  }
  
  /* 防止输入框获得焦点时页面缩放和键盘弹出 */
  .date-input input,
  .date-input .el-input__inner {
    font-size: 16px !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;
  }
}