.immigration-dashboard {
  background-color: #f5f5f5;
  min-height: 100vh;
}

/* 案件汇总 */
.chart-section {
  width: 100%;
  padding: 25px 30px;
  background: #fff;
  border-radius: 3px;
  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; */
}

/* 修改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;
}

.chart-container {
  width: 1138px;
  height: 260px;
}

.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;
  /* 选择后的边框颜色 */
}

/* 柱状图样式设置 */
.chart-container {
  background-color: #fff;
}

/* 图表容器样式 */
.chart-container canvas {
  background-color: #fff !important;
}

/* 网格线样式设置 */
.chart-container .ec-extension-grid {
  border-top: 1px dashed #e0e0e0;
}

/* 柱状图宽度和颜色设置 */
.chart-container .ec-series-bar rect {
  width: 14px !important;
}

/* 图表间距设置 */
.chart-container .ec-grid {
  height: 30px;
}

/* 确保图表背景为白色 */
.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-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: #be133d;
  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: #002768;
  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: center;
  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: #002768;
  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;
}

.question-icon {
  font-size: 16px;
  color: #333;
  cursor: pointer;
}

.question-icon:hover {
  color: #333;
}

.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-section {
  padding: 0 0 16px 10px;
}

.explanation-item {
  /* margin-bottom: 15px; */
  display: flex;
  align-items: flex-start;
}

.explanation-item:last-child {
  margin-bottom: 0;
}

.priority-title {
  color: #333;
  font-size: 12px;
  flex-shrink: 0;
}

.priority-desc {
  color: #333;
  font-size: 12px;
  line-height: 1.5;
  flex: 1;
}

/* 外交服务岗位样式 */
.pdf-viewer-container {
  display: flex;
  justify-content: center;
}

.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;
}

/* 各财年签证处报告样式 */
.visa-reports-title {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 30px;
  text-align: left;
}

.visa-reports-grid {
  display: grid;
  grid-template-columns: repeat(3, 308px);
  grid-template-rows: repeat(2, 74px);
  gap: 40px 70px;
  justify-content: center;
  align-items: center;
}

.visa-report-card {
  width: 308px;
  height: 74px;
  background-color: #f3f3f3;
  border-radius: 15px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  justify-content: center;
  gap: 25px;
}

.visa-report-card:hover {
  background-color: #e8e8e8;
  transform: translateY(-2px);
}

.fas {
  display: block;
  width: 48px;
  height: auto;
}

.visa-report-text {
  font-size: 16px;
  font-weight: bold;
  color: #333333;
}

.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;
}


/* ====== 移动端响应式适配 ====== */
@media (max-width: 1200px) {

  /* 财年数据 */
  .chart-section {
    overflow: auto;
    padding: 0;
    border: none;
    border-radius: 0;
    padding-bottom: 10px;
    margin: 0;
  }

  .chart-section .chart-header {
    padding-top: 1.6rem;
    margin: 0;
  }

  .chart-section .chart-title {
    font-size: 0.960rem;
  }

  /* 案件批准 */
  .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-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;
  }

  #caseSummaryChart {
    margin-left: -30px;
  }

  /* 日期选择器移动端适配 */
  .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;
  }

  .diplomatic-header .el-picker-panel__body {
    flex-direction: column;
  }

  .el-picker-panel {
    width: 100% !important;
  }

  .diplomatic-header,
  .visa-reports-title {
    margin-top: 1.3rem;
  }

  .diplomatic-header .date-range-controls .query-button {
    width: 4rem;
    height: 1.860rem;
    line-height: 1.860rem;
    font-size: 0.853rem;
  }

  .visa-reports-title {
    font-size: 0.960rem;
  }

  .visa-reports-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
  }

  .visa-report-card {
    width: 12.933rem;
    padding: 0 8px;
    gap: 15px;
    height: 3.2rem;
  }

  .visa-report-card img {
    width: 1.947rem;
    height: auto;
  }

  .visa-report-text {
    font-size: 0.8rem;
  }

  .pdf-canvas {
    width: 100% !important;
    height: auto !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;
  }
}