/* 进度查询对话框样式 */

/* 对话框容器 - 全屏模式 */
.ui-dialog.fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  border-radius: 0 !important;
  max-width: none !important;
  max-height: none !important;
}

.ui-dialog.fullscreen .ui-dialog-content {
  width: 100% !important;
  height: calc(100% - 50px) !important;
  max-height: none !important;
}

/* 对话框标题栏样式 */
.ui-dialog-titlebar {
  background: linear-gradient(to bottom, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 1px solid #dee2e6;
  padding: 12px 20px;
  font-weight: normal;
}

.ui-dialog-title {
  font-size: 16px;
  color: #333;
  font-weight: 500;
}

/* 关闭按钮样式 */
.ui-dialog-titlebar-close {
  background: transparent;
  border: none;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  padding: 0;
}

.ui-dialog-titlebar-close:hover {
  background: #e9ecef;
  border-radius: 3px;
}

.ui-dialog-titlebar-close .ui-icon {
  background: none;
  text-indent: 0;
}

.ui-dialog-titlebar-close .ui-icon:before {
  content: "×";
  font-size: 24px;
  color: #666;
  display: block;
  text-align: center;
  line-height: 24px;
}

/* 对话框内容区域 */
.ui-dialog-content {
  padding: 0 !important;
  overflow: auto !important;
}

/* 对话框头部区域 */
.dialog-header-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 25px;
  background: #fff;
  border-bottom: 1px solid #e9ecef;
}

.dialog-header-section > div:first-child {
  display: flex;
  align-items: center;
  flex: 1;
}

.dialog-icon {
  font-size: 32px;
  color: #4a90e2;
  margin-right: 15px;
}

.dialog-title {
  font-size: 20px;
  color: #333;
  margin: 0;
  font-weight: 500;
}

/* 对话框内容区域 */
.dialog-content-section {
  padding: 25px;
  background: #fff;
}

/* 信息区域 */
.info-section {
  margin-bottom: 25px;
}

.section-title {
  background: #e3f2fd;
  padding: 10px 15px;
  font-size: 14px;
  color: #1976d2;
  font-weight: 500;
  border-left: 3px solid #1976d2;
  margin-bottom: 15px;
}

/* 信息表格 */
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #e0e0e0;
}

.info-table td {
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  font-size: 14px;
}

.info-table .info-label {
  background: #f5f5f5;
  color: #666;
  font-weight: 500;
  width: 200px;
  text-align: right;
  padding-right: 20px;
}

.info-table .info-value {
  color: #333;
  background: #fff;
}

/* 查看按钮 */
.view-btn {
  background: #f5f5f5;
  color: #666;
  padding: 2px 15px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  outline: none;
}

.view-btn:hover {
  background: #e8e8e8;
  border-color: #b0b0b0;
  color: #333;
}

/* 选项卡区域 */
.tabs-section {
  margin-bottom: 20px;
}

.tabs {
  display: flex;
  border-bottom: 2px solid #e0e0e0;
}

.tab {
  padding: 12px 30px;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.3s;
  background: #f5f5f5;
  border-right: 1px solid #e0e0e0;
}

.tab:first-child {
  border-top-left-radius: 4px;
}

.tab:hover {
  color: #1976d2;
  background: #e3f2fd;
}

.tab.active {
  color: #1976d2;
  background: #fff;
  border-bottom: 3px solid #1976d2;
  font-weight: 500;
}

/* 材料列表区域 */
.materials-section {
  background: #fff;
}

.materials-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e0e0e0;
}

.materials-table thead {
  background: #e3f2fd;
}

.materials-table th {
  padding: 12px 15px;
  text-align: center;
  font-size: 14px;
  color: #1976d2;
  font-weight: 500;
  border: 1px solid #e0e0e0;
  vertical-align: middle;
}

/* 联审查询和联审部门通知书表格特殊样式 */
#jointReviewTable th,
#departmentNoticeTable th {
  padding: 10px 8px;
  font-size: 13px;
}

/* 第一行表头（包含合并单元格） */
#jointReviewTable thead tr:first-child th,
#departmentNoticeTable thead tr:first-child th {
  background: #e3f2fd;
}

/* 第二行表头（子列） */
#jointReviewTable thead tr:nth-child(2) th,
#departmentNoticeTable thead tr:nth-child(2) th {
  background: #f0f8ff;
  font-size: 12px;
  padding: 8px 5px;
}

/* 联审查询表格内容样式 */
#jointReviewTable tbody td,
#departmentNoticeTable tbody td {
  padding: 15px 10px;
  vertical-align: middle;
  color: #333;
}

/* 部门名称列 */
#jointReviewTable .dept-name,
#departmentNoticeTable .dept-name {
  text-align: center;
  font-size: 13px;
  background: #fafafa;
  min-width: 150px;
}

/* 事项名称列 */
#jointReviewTable .item-name,
#departmentNoticeTable .item-name {
  text-align: center;
  font-size: 13px;
  background: #fafafa;
  min-width: 120px;
}

/* 是否变更列 */
#jointReviewTable .change-status,
#departmentNoticeTable .change-status {
  text-align: center;
  background: #fff;
  min-width: 80px;
}

/* 状态链接单元格 */
#jointReviewTable .status-link,
#departmentNoticeTable .status-link {
  text-align: center;
  background: #fff;
  padding: 10px 5px;
}

/* 空状态单元格 */
#jointReviewTable .status-empty,
#departmentNoticeTable .status-empty {
  text-align: center;
  background: #fff;
}

/* 已完成状态链接 */
.status-completed {
  color: #1976d2 !important;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.3s;
}

.status-completed:hover {
  color: #1565c0;
  text-decoration: underline;
}

.materials-table tbody td {
  padding: 40px 15px;
  text-align: center;
  font-size: 14px;
  color: #999;
  border: 1px solid #e0e0e0;
}

.materials-table .no-data {
  background: #fafafa;
}

/* 对话框控制按钮 */
.dialog-controls {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.control-btn {
  background: transparent;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: #666;
  outline: none;
}

.control-btn:hover {
  background: #f0f0f0;
  color: #333;
}

.control-btn i {
  font-size: 14px;
}

/* 最小化悬浮按钮 */
#minimizedDialog {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  color: white;
  padding: 12px 20px;
  border-radius: 25px;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 9999;
  transition: all 0.3s;
  font-size: 14px;
  font-weight: 500;
}

#minimizedDialog:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(74, 144, 226, 0.5);
}

#minimizedDialog i {
  font-size: 16px;
}

/* 对话框遮罩层 */
.ui-widget-overlay {
  background: #000;
  opacity: 0.5;
}

/* 对话框容器 */
.ui-dialog {
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid #dee2e6;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .info-table .info-label {
    width: 120px;
    font-size: 13px;
  }

  .info-table td {
    padding: 10px;
    font-size: 13px;
  }

  .tab {
    padding: 10px 20px;
    font-size: 13px;
  }

  .dialog-content-section {
    padding: 15px;
  }
}
