.immigration-dashboard {
  background-color: #f5f5f5;
  min-height: 100vh;
}

/* 案件汇总 */
.chart-section {
  width: 100%;
  padding: 25px 30px;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  margin-bottom: 20px;
}

.form-chart {
  width: 112px;
  /* width: 112px;
border: 1px solid #e0e0e0;
border-radius: 3px;
height: 34px;
padding: 0 10px; */
}

/* 国务院数据：全球 I-140 柱状图 — 标题行与 CaseOverview「等待池优先类别」一致，右侧为年份+季度+截至 */
.inc_stateCouncilData .chart-section--global-occupation {
  margin-top: 20px;
}

.form-chart.form-chart--occupation-bar {
  width: auto !important;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.form-chart--occupation-bar__selects {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.form-chart--occupation-bar__selects > .el-select.form-chart {
  width: 96px !important;
}

.form-chart--occupation-bar__selects > .el-select.form-chart.form-chart--quarter {
  width: 88px !important;
}

/* 全球 I-140 柱状图：无数据占位高度与 #global-occupation-chart 一致 */
.inc_stateCouncilData .chart-section--global-occupation .chart-date-employment .no-data {
  height: 260px;
  min-height: 260px;
}

/* 修改el-select的点击和悬停效果 */
.el-select:hover {
  border-color: #e0e0e0 !important;
}

.el-select:focus {
  border-color: #002768 !important;
  color: #333 !important;
  background-color: #fff !important;
  box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2) !important;
}

.el-select.is-focus {
  border-color: #002768 !important;
}

/* 修改下拉选项的悬停效果 */
.el-select-dropdown__item:hover {
  background-color: #f5f7fa !important;
  color: #002768 !important;
}

.el-select-dropdown__item.selected {
  background-color: #fff !important;
  color: #333 !important;
}

.el-select-dropdown__item.is-selected {
  background-color: #fff !important;
  color: #333 !important;
}


.form-chart:focus {
  outline: none;
  border-color: #e0e0e0 !important;
  box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
}

.el-select .el-input.is-focus .el-input__inner {
  border-color: #e0e0e0 !important;
}

.el-select .el-input.is-focus .el-input__inner:focus {
  border-color: #e0e0e0 !important;
}

.el-select:focus-within .el-input__wrapper {
  --el-input-focus-border-color: #409eff;
  /* 这里替换为你想要的颜色 */
  border-color: #e0e0e0 !important;
  /* 兼容旧版本 */
  box-shadow: 0 0 0 1px rgba(64, 158, 255, 0.2) !important;
  /* 可选：添加聚焦时的阴影效果 */
}

.el-select:not(.el-select--disabled) .el-input__wrapper.is-filled {
  border-color: #e0e0e0 !important;
  /* 选择后的边框颜色 */
}









/* 确保图表背景为白色 */
.immigration-dashboard .chart-section {
  background: #fff;
}

/* 图表标题样式 */
.chart-title {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
}

/* Tab内容样式 */
.tab-content {
  display: block;
}


/* EB1A/NIW 案件 */

.stats-panels {
  display: flex;
  justify-content: space-between;
}

.ebia-panel,
.niw-panel {
  width: 49%;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  margin-bottom: 20px;
  padding: 0 5px;
}

.panel-header {
  height: 60px;
  width: 100%;
  border-bottom: 1px solid #e0e0e0;
  box-sizing: border-box;
  padding: 0 25px;
}

.panel-header--with-year-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-header--with-year-select .panel-title {
  line-height: 1.3;
  margin: 0;
  flex: 1;
  min-width: 0;
}

.eb1a-annual-year-select {
  width: 96px;
  flex-shrink: 0;
}

.is-reverse{
  top: 0 !important;
}

.panel-title {
  font-size: 16px;
  /* font-weight: bold; */
  color: #333;
  line-height: 75px;
}

.panel-content {
  padding: 0 30px;
}


.approval-rate {
  line-height: 40px;
  font-size: 14px;
  color: #333333;
  font-weight: 500;
}

.data-source {
  font-size: 12px;
  line-height: 24px;
  color: #333;
}

.data-source-link {
  font-size: 12px;
  color: #001eff;
  /* cursor: pointer; */
}

.data-breakdown {
  padding: 0 10px;
  background-color: #f3f3f3;
  border-radius: 4px;
}

.breakdown-item {
  font-size: 12px;
  line-height: 24px;
  color: #333333;
  text-align: left;
}

.quarter-selection {
  display: flex;
  justify-content: space-around;
  padding: 20px 0;
}

.quarter-buttons {
  width: 125px;
  height: 34px;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  background: #fff;
  display: flex;
  padding: 2px;
}

.quarter-title {
  flex: 1;
  font-size: 14px;
  color: #333;
  display: flex;
  align-items: center;
}

.highlight {
  padding: 0 10px;
  background: #04c4f5;
  text-align: center;
  font-size: 14px;
  display: flex;
  align-items: center;
  color: #fff;
}

/* 案件汇总样式 */
.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;

}

.chart-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
}

.case-type-select,
.el-input__inner {
  height: 32px !important;
}

/* .el-input__prefix,
.el-input__suffix {
  top: 5px !important;
} */

.el-date-editor .el-range-separator {
  padding: 0 !important;
}

.el-range-editor.el-input__inner {
  padding: 0 10px !important;
}

.query-btn {
  width: 70px;
  height: 31px;
  background: #06c3f5;
  color: #fff;
  text-align: center;
  line-height: 32px;
  border-radius: 3px;
  font-size: 14px;
  cursor: pointer;
}

/* 案件列表表格样式 */
.table-section {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  margin-bottom: 20px;
  padding: 25px 40px;
}

/* 搜索表单样式 */
.search-form {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  margin-bottom: 25px;
}

.form-groups,
.form-groupss {
  display: flex;
  align-items: center;
  gap: 5px;
}

.form-groups .label,
.form-groupss .label {
  font-size: 14px;
  line-height: 34px;
  color: #333;
  font-weight: normal;
}

.archive-input {
  width: 240px !important;
  height: 34px;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  padding: 0 10px;
  font-size: 14px;
}

.archive-input:focus {
  outline: none;
  border-color: #c0c0c0;
}

.date-input-wrapper {
  position: relative;
  width: 150px;
}

/* .date-input-wrapper .el-input__suffix {
  top: 0px !important;
} */

.date-input {
  width: 150px;
  height: 34px;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  padding: 0 10px;
  font-size: 14px;
}

.date-input.el-input,
.date-input.el-input__inner {
  width: 150px !important;
  border: none !important;
  padding: 0px !important;
}

.date-input .el-input__prefix,
.el-input__suffix {
  /* top: -4px !important; */
}

.el-input__inner {
  line-height: 32px !important;
}

.date-input:focus {
  outline: none;
  border-color: #002768;
  box-shadow: 0 0 0 2px rgba(0, 39, 104, 0.2);
}



.query-button {
  width: 70px;
  height: 31px;
  background: #06c3f5;
  color: #fff;
  text-align: center;
  line-height: 32px;
  border-radius: 3px;
  font-size: 14px;
  cursor: pointer;
}


.reset-button {
  width: 72px;
  height: 32px;
  border: 1px solid #002768;
  border-radius: 5px;
  background-color: #ffffff;
  color: #002768;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  line-height: 32px;
}



/* 表格样式 */
.table-container {
  width: 100%;
}

.no-data {
  text-align: center;
  color: #333;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.table-header {
  border-top: 3px solid #be133d;
  border-bottom: 1px solid #e0e0e0;
}

.table-header th {
  font-size: 14px;
  font-weight: bold;
  color: #333333;
  padding: 15px 10px;
  text-align: left !important;
  background: #fff;
  padding-left: 35px;
}

.table-row {
  height: 49px;
  border-bottom: 1px solid #e0e0e0;
}

.table-row:hover {
  background-color: #f8f9fa;
}

.table-row td {
  padding: 10px;
  font-size: 14px;
  padding-left: 35px;
}

.archive-number {
  color: #001eff;
  font-size: 14px;

}

/* 状态徽章样式 */
.status-badge {
  display: inline-block;
  width: 50px;
  height: 22px;
  border-radius: 3px;
  text-align: center;
  line-height: 22px;
  font-size: 12px;
  font-weight: normal;
}

.status-badge.not-started {
  background-color: #f5f5f5;
  color: #666;
}

.status-badge.in-progress {
  background-color: #002768;
  color: #fff;
}

.status-badge.success {
  background-color: #28a745;
  color: #fff;
}

.status-badge.failed {
  background-color: #dc3545;
  color: #fff;
}

/* 不同出生地移民签证数据统计样式 */
.section-title {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  text-align: left;
  position: relative;
  display: inline-block;
}



.tooltip-popover {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 300px;
  max-width: 500px;
  padding: 12px 16px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tooltip-content {
  font-size: 12px;
  color: #666;
  line-height: 1.6;
}

.tooltip-content .explanation-item {
  margin-bottom: 12px;
}

.tooltip-content .explanation-item:last-child {
  margin-bottom: 0;
}

.tooltip-arrow {
  position: absolute;
  top: -6px;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #fff;
}

.tooltip-arrow::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -6px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #e0e0e0;
}

.country-input {
  width: 240px !important;
  height: 34px;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  padding: 0 10px;
  font-size: 14px;
}

.country-input:focus {
  outline: none;
  border-color: #c0c0c0;
}

.country-name {
  color: #001eff;
  font-size: 14px;
  cursor: pointer;
}

.country-name:hover {
  text-decoration: underline;
}

/* 说明部分样式 */
.explanation-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
}

.explanation-item:last-child {
  margin-bottom: 0;
}

.priority-title {
  color: #333;
  font-size: 12px;
  flex-shrink: 0;
  font-weight: bold;
  margin-right: 8px;
}

.priority-desc {
  color: #666;
  font-size: 12px;
  line-height: 1.6;
  flex: 1;
}

.diplomatic-title {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  text-align: center;
  margin-top: 18px;
}

.date-range-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

.date-range-controls .el-input__suffix {
  top: -3px !important;
}

/* .date-range-controls .el-input__inner {
  width: 246px !important;
}
.date-range-controls .el-date-editor .el-range-separator{
  width: 6% !important;
} */

.diplomatic-date-picker .el-input__inner {
  height: 34px !important;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
}

/* COVID-19说明样式 */
.covid-note {
  font-size: 12px;
  color: #002768;
  line-height: 1.5;
  padding: 10px;
  margin-top: 30px;
}

.covid-note-title {
  color: #f00;
}

/* 外交服务表格样式 */
.diplomatic-table-container {
  width: 100%;
  margin-bottom: 20px;
}

.diplomatic-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: none;
}

.diplomatic-header-row {
  border-bottom: 2px solid #e0e0e0;
}

.diplomatic-header-row th {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  padding: 12px 8px;
  text-align: center;
  border-right: none;
}

.diplomatic-header-row th:last-child {
  border-right: none;
}

.number-col {
  width: 100px;
  text-align: center;
}

.section-header-row {
  background-color: #fff;
}

.section-title-cell {
  font-size: 14px;
  font-weight: bold;
  color: #be133d;
  padding: 12px 8px;
  text-align: left;
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
}

.data-row {
  border-bottom: 1px solid #e0e0e0;
}

.data-row:hover {
  background-color: #f8f9fa;
}

.data-row td {
  font-size: 14px;
  color: #333;
  padding: 10px 8px;
  text-align: center;
  border-right: none;
}

.data-row td:first-child {
  text-align: center;
  /* font-weight: bold; */
}

/* .data-row td:nth-child(2) {
  text-align: left;
  font-weight: normal;
} */

.data-row td:last-child {
  border-right: none;
}

.total-row {
  background-color: #f3f3f3;
  border-bottom: 2px solid #e0e0e0;
}

.total-row td {
  font-size: 14px;
  /* font-weight: bold; */
  color: #333333;
  padding: 12px 8px;
  text-align: center;
  border-right: none;
}

.total-row td:first-child {
  text-align: center;
}

/* .total-row td:nth-child(2) {
  text-align: left;
} */

.total-row td:last-child {
  border-right: none;
}

/* 底部说明样式 */
.diplomatic-notes {
  margin-top: 100px;
  padding-left: 10px;
  background-color: #f8f9fa;
  border-radius: 3px;
}

.note-item {
  font-size: 12px;
  color: #333333;
  line-height: 1.5;
  margin-bottom: 8px;
}

.note-item:last-child {
  margin-bottom: 0;
}

.total-row-title {
  font-weight: bold;
}

/* .el-input__suffix {
  top: 5px !important;
} */


/* 分页样式 */
.pagination-section {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  text-align: center;
  margin: 32px 0 0 0;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-item {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333333;
  font-size: 18px;
  cursor: pointer;
  font-weight: normal;
}

.page-item:hover {
  border-color: #002768;
  color: #002768;
}

.page-item.active {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #002768;
  color: #002768;
  font-weight: bold;
}

.page-ellipsis {
  color: #333333;
  font-size: 14px;
  padding: 0 4px;
  pointer-events: none;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.el-date-editor .el-range-separator {
  width: 7% !important;
}

.form-groupss .el-input--prefix {
  width: 150px !important;
}

.el-input__icon{
  line-height: 32px !important;
}

/* ====== 移动端响应式适配 ====== */
@media (max-width: 1200px) {



  /* 案件批准 */
  .stats-panels {
    flex-direction: column;
    margin-top: 20px;

  }

  .ebia-panel,
  .niw-panel {
    width: 100%;
    background: #fff;
  }

  .panel-header {
    height: 50px;
    display: flex;
    align-items: flex-end;
    padding: 0 7px;
  }

  .panel-header--with-year-select {
    align-items: center;
    height: auto;
    min-height: 50px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .panel-header--with-year-select .panel-title {
    margin-bottom: 0;
  }

  .panel-title {
    line-height: normal;
    margin: 0;
    margin-bottom: 5px;
    font-size: 0.960rem;
  }

  .panel-content {
    padding: 0 10px;
  }

  .quarter-selection {
    flex-wrap: wrap;
    gap: 1.6rem;
  }

  .quarter-buttons {
    width: 40%;
  }


  .chart-section,
  .ebia-panel,
  .niw-panel {
    padding-left: 1.333rem;
    padding-right: 1.333rem;
  }

  .chart-section {
    padding-bottom: 10px;
  }

  .chart-controls {
    gap: 10px;
  }

  .chart-controls .el-select .el-input__inner {
    padding-right: 0;
    padding-left: 5px;
  }

  /* .chart-controls .is-focus .el-input__suffix {
    top: -4px !important;
  } */

  /* 日期选择器移动端适配 */
  .el-picker-panel {
    left: 0 !important;
  }

  .el-date-range-picker .el-picker-panel__body {
    min-width: 100vw !important;
  }

  .el-picker-panel__body {
    /* display: flex; */
    /* flex-direction: column; */
    width: 100vw;
  }

  .el-date-range-picker__content .el-date-range-picker__header div {
    margin: 0 !important;
  }

  .el-date-range-picker__header div {
    margin-right: 0 !important;
  }

  .chart-controls .query-btn {
    width: 4rem;
    height: 1.860rem;
    line-height: 1.860rem;
    font-size: 0.853rem;
  }

  .el-date-editor.el-input__inner {
    width: 14.373rem !important;
  }

  .el-date-editor .el-range__close-icon {
    display: none !important;
  }

  .chart-controls .form-chart {
    width: 6.133rem !important;
  }

  .el-date-editor .el-range-input {
    font-size: 12px !important;
  }

  /* 案件列表表格 */

  .table-section {
    margin-top: 20px;
    margin-bottom: 0px;
    padding: 0px;
    padding-left: 1.333rem;
    padding-right: 1.333rem;
  }

  .table-section .search-form {
    margin-top: 1.3rem;
  }

  .receivemail {
    display: none;
  }

  .form-groups .label {
    white-space: nowrap;
    font-size: 12px;
  }

  .archive-input {
    width: 13.12rem !important;
  }

  .form-groups .query-button,
  .form-groups .reset-button {
    width: 4rem;
    height: 1.860rem;
    line-height: 1.860rem;
    font-size: 0.853rem;
  }

  .table-container .data-table {
    min-width: 100%;
  }

  .table-header th {
    padding: 10px 5px;
  }

  .table-row td {
    padding: 10px 5px;
  }

  .pagination-section {
    margin-top: 12px;
    margin-bottom: 12px;
  }

  .pagination {
    gap: 16px;
  }

  .page-item {
    font-size: 14px;
  }

  .page-item.active {
    border: none;
  }

  /* 不同出生地移民签证数据统计样式 */
  .section-title {
    font-size: 0.960rem;
    margin-top: 1.3rem;
  }

  .country-input {
    width: 5.706rem !important;
    /* height: 1.867rem !important; */
    font-size: 12px;
    color: #333333;
  }

  .month-label {
    display: none;
  }

  .date-input-wrapper {
    width: auto;
  }

  .form-groupss .el-input--prefix {
    width: 8.408rem !important;
    /* height: 1.867rem !important; */
  }

  .el-input--suffix .el-input__inner {
    padding-right: 0 !important;
  }

  .month-input .el-input__inner {
    height: 34px !important;
    line-height: 34px !important;
  }

  .date-input-wrapper .el-input__suffix {
    display: none !important;
  }

  .el-picker-panel {
    width: 100% !important;
  }

  /* 移动端防止日期选择器弹出键盘 */
  .select-inputs .el-input__inner,
  .select-inputs .el-range-input {
    font-size: 16px !important; /* iOS Safari 需要至少16px才能防止自动缩放 */
  }
  
  .select-inputs input,
  .select-inputs .el-input__inner,
  .select-inputs .el-range-input {
    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,
  .select-inputs .el-range-input:focus {
    caret-color: transparent;
  }
  
  .select-inputs input[readonly],
  .select-inputs .el-input__inner[readonly],
  .select-inputs .el-range-input[readonly] {
    cursor: pointer;
  }
  
  /* 日期范围选择器的两个输入框都需要处理 */
  .el-date-editor.el-range-editor .el-range-input {
    font-size: 16px !important;
    -webkit-text-size-adjust: 100%;
    -webkit-appearance: none;
    appearance: none;
    -webkit-user-select: none;
    user-select: none;
  }
  
  .el-date-editor.el-range-editor .el-range-input:focus {
    caret-color: transparent;
  }
}