/* ===== 迹云仪表盘增强：导出按钮 + 布局修复 ===== */

/* 布局修复：最近操作表格填满宽度 */
.page-container .recent-box .el-table {
  width: 100% !important;
}
.page-container .recent-box .el-table__header-wrapper table,
.page-container .recent-box .el-table__body-wrapper table {
  width: 100% !important;
}

/* 导出按钮样式 */
.export-btn-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.export-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 14px;
  font-size: 13px;
  color: #4f7cff;
  background: rgba(79,124,255,0.08);
  border: 1px solid rgba(79,124,255,0.25);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.export-btn:hover {
  background: rgba(79,124,255,0.15);
  border-color: #4f7cff;
}
.export-btn svg {
  width: 14px;
  height: 14px;
}

/* 导出弹窗 */
.export-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.export-modal {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  width: 420px;
  max-width: 90vw;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.export-modal h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  color: #2c3e50;
}
.export-modal .export-subtitle {
  font-size: 13px;
  color: #8c9bab;
  margin-bottom: 18px;
}
.export-modal .section-label {
  font-size: 13px;
  font-weight: 500;
  color: #555;
  margin-bottom: 8px;
}
.export-modal .btn-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.export-modal .btn-option {
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  color: #555;
  transition: all 0.2s;
}
.export-modal .btn-option:hover {
  border-color: #4f7cff;
  color: #4f7cff;
}
.export-modal .btn-option.active {
  background: rgba(79,124,255,0.1);
  border-color: #4f7cff;
  color: #4f7cff;
  font-weight: 500;
}
.export-modal .modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 6px;
}
.export-modal .btn-cancel {
  padding: 8px 20px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  color: #555;
}
.export-modal .btn-confirm {
  padding: 8px 20px;
  border-radius: 6px;
  border: none;
  background: #4f7cff;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}
.export-modal .btn-confirm:hover {
  background: #3d6ae8;
}
.export-modal .btn-confirm:disabled {
  background: #a0b4ff;
  cursor: not-allowed;
}

/* 加载遮罩 */
.export-loading-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
}
.export-loading-box {
  background: #fff;
  border-radius: 12px;
  padding: 32px 40px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  min-width: 300px;
}
.export-loading-box .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e2e8f0;
  border-top-color: #4f7cff;
  border-radius: 50%;
  animation: export-spin 0.8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes export-spin {
  to { transform: rotate(360deg); }
}
.export-loading-box .loading-text {
  font-size: 15px;
  color: #2c3e50;
  margin-bottom: 10px;
}
.export-loading-box .loading-sub {
  font-size: 12px;
  color: #8c9bab;
  margin-bottom: 16px;
}
.export-loading-box .progress-bar {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}
.export-loading-box .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4f7cff, #6b93ff);
  border-radius: 3px;
  width: 0%;
  transition: width 0.6s ease;
}
