/**
 * dialog-scroll.css
 *
 * 弹窗内可滚动区域的最大高度（NeoUI components.css 未包含 vh 系 max-height）。
 * 与 overflow-y-auto 配合：内容超出时出现纵向滚动条。
 *
 * Crud 编辑弹窗顶部锚定（CrudDialogContentSizeExtensions.AnchorTopClass）：
 * 覆盖 NeoUI DialogContent 默认垂直居中，内容高度变化时距视口顶部保持不变。
 */

.top-\[8vh\] {
  top: 8vh;
}

.max-h-50vh {
  max-height: 50vh;
}

.max-h-55vh {
  max-height: 55vh;
}

/**
 * CrudTable 全屏编辑弹窗（CrudDialogContentSize.FullScreen）。
 * 覆盖 NeoUI DialogContent 默认 left/top 50% 居中、max-w-lg 与 translate。
 */
/**
 * CrudTable 编辑弹窗最大化按钮：与 NeoUI 关闭钮（right-4 top-4）对齐，位于其左侧。
 * NeoUI components.css 无 right-8+，故用自定义定位。
 */
.crud-dialog-maximize-trigger {
  position: absolute;
  top: 18px;
  right: 2.75rem;
  z-index: 10;
  display: inline-flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.crud-dialog-fullscreen {
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  transform: translate(0, 0) !important;
  translate: none !important;
  border-radius: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}
