/* 数制云工单 · v12
 * One border owner per compound input. Sizes come from the nearest context.
 * No scripts, business data, event handlers, permissions or form schemas change.
 * Earlier conflicting dimension declarations were removed in controls.css,
 * h5-business/index.css and shuzhiyun-ui-v6.css rather than hidden by stacking rules.
 */
html#htmlRoot { --szy-ui-release: 12; }
html#htmlRoot:not([data-theme="dark"]) body {
  --szy-control-height: 35px;
  --szy-control-padding-x: 11px;
  --szy-control-radius: 6px;
}
html#htmlRoot:not([data-theme="dark"]) :where(.szy-business-v5,.jeecg-basic-table-form) {
  --szy-control-height: 32px;
  --szy-control-padding-x: 9px;
}
html#htmlRoot:not([data-theme="dark"]) :where(.ant-modal,.ant-drawer,form.szy-v6-form-grid,form.szy-v6-form-stack) {
  --szy-control-height: 37px;
  --szy-control-padding-x: 11px;
}
html#htmlRoot:not([data-theme="dark"]) :where(.ant-modal,.ant-drawer) .jeecg-basic-table-form {
  --szy-control-height: 32px;
  --szy-control-padding-x: 9px;
}
/* Pagination retains its original compact 28px selector, including text alignment. */
html#htmlRoot:not([data-theme="dark"]) .szy-business-v5[data-szy-business="5"] .ant-pagination-options .ant-select {
  --szy-control-height: 28px;
}
/* Explicit size props are preserved; they intentionally differ from context defaults. */
html#htmlRoot:not([data-theme="dark"]) :is(.ant-input-sm,.ant-input-affix-wrapper-sm,.ant-input-number-sm,.ant-select-sm,.ant-picker-small) { --szy-control-height: 24px; --szy-control-padding-x: 7px; }
html#htmlRoot:not([data-theme="dark"]) :is(.ant-input-lg,.ant-input-affix-wrapper-lg,.ant-input-number-lg,.ant-select-lg,.ant-picker-large) { --szy-control-height: 40px; }

/* Shared visual surface. Only the outer control owns the border and focus ring. */
html#htmlRoot:not([data-theme="dark"]) body:has(:where(.jeecg-default-layout,.szy-business-v5,.szy-workbench)) :where(input.ant-input,textarea.ant-input,.ant-input-affix-wrapper,.ant-input-number,.ant-input-number-affix-wrapper,.ant-picker,.ant-select:not(.ant-select-customize-input) > .ant-select-selector) {
  box-sizing: border-box;
  border: 1px solid #dfe4ee;
  border-radius: var(--szy-control-radius) !important;
  font-size: 12px;
  font-family: var(--szy-h5-font, "Microsoft YaHei", sans-serif);
  color: #59657b;
  background-color: #fff;
  min-width: 0;
  box-shadow: none;
}
html#htmlRoot:not([data-theme="dark"]) body:has(:where(.jeecg-default-layout,.szy-business-v5,.szy-workbench)) :where(input.ant-input,.ant-input-affix-wrapper:not(.ant-input-textarea-affix-wrapper):not(.ant-input-affix-wrapper-textarea-with-clear-btn),.ant-input-number,.ant-input-number-affix-wrapper,.ant-picker,.ant-select-single:not(.ant-select-customize-input) > .ant-select-selector) {
  height: var(--szy-control-height) !important;
  min-height: var(--szy-control-height) !important;
}
html#htmlRoot:not([data-theme="dark"]) body:has(:where(.jeecg-default-layout,.szy-business-v5,.szy-workbench)) :where(input.ant-input,.ant-input-affix-wrapper:not(.ant-input-textarea-affix-wrapper):not(.ant-input-affix-wrapper-textarea-with-clear-btn),.ant-picker) {
  padding: 0 var(--szy-control-padding-x) !important;
  line-height: 20px;
}
html#htmlRoot:not([data-theme="dark"]) body:has(:where(.jeecg-default-layout,.szy-business-v5,.szy-workbench)) .ant-input-affix-wrapper:not(.ant-input-textarea-affix-wrapper):not(.ant-input-affix-wrapper-textarea-with-clear-btn) {
  display: inline-flex;
  align-items: center;
}
html#htmlRoot:not([data-theme="dark"]) body:has(:where(.jeecg-default-layout,.szy-business-v5,.szy-workbench)) .ant-select-single:not(.ant-select-customize-input) > .ant-select-selector {
  padding: 0 var(--szy-control-padding-x) !important;
  align-items: center;
}
html#htmlRoot:not([data-theme="dark"]) body:has(:where(.jeecg-default-layout,.szy-business-v5,.szy-workbench)) .ant-select-single .ant-select-selector :is(.ant-select-selection-item,.ant-select-selection-placeholder) {
  line-height: calc(var(--szy-control-height) - 2px) !important;
}
html#htmlRoot:not([data-theme="dark"]) body:has(:where(.jeecg-default-layout,.szy-business-v5,.szy-workbench)) .ant-select-single .ant-select-selection-search-input {
  height: calc(var(--szy-control-height) - 2px) !important;
}
html#htmlRoot:not([data-theme="dark"]) body:has(:where(.jeecg-default-layout,.szy-business-v5,.szy-workbench)) .ant-select-multiple:not(.ant-select-customize-input) > .ant-select-selector {
  height: auto !important;
  min-height: var(--szy-control-height) !important;
  padding: 2px 4px !important;
}
html#htmlRoot:not([data-theme="dark"]) body:has(:where(.jeecg-default-layout,.szy-business-v5,.szy-workbench)) .ant-input-number-input {
  box-sizing: border-box;
  height: calc(var(--szy-control-height) - 2px) !important;
  padding: 0 var(--szy-control-padding-x) !important;
  font-size: 12px;
}
html#htmlRoot:not([data-theme="dark"]) body:has(:where(.jeecg-default-layout,.szy-business-v5,.szy-workbench)) textarea.ant-input:not([aria-hidden="true"]) {
  display: block;
  height: auto;
  min-height: 84px;
  padding: 10px 11px;
  line-height: 1.8;
  resize: vertical;
}
/* Textarea with clear icon: its textarea (not its wrapper) owns the border. */
html#htmlRoot:not([data-theme="dark"]) body:has(:where(.jeecg-default-layout,.szy-business-v5,.szy-workbench)) :is(.ant-input-textarea-affix-wrapper,.ant-input-affix-wrapper-textarea-with-clear-btn) {
  display: block;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
}
/* Focus remains visible at the outside; no second ring inside the control. */
html#htmlRoot:not([data-theme="dark"]) body:has(:where(.jeecg-default-layout,.szy-business-v5,.szy-workbench)) :where(input.ant-input:focus,textarea.ant-input:focus,.ant-input-affix-wrapper-focused:not(.ant-input-textarea-affix-wrapper):not(.ant-input-affix-wrapper-textarea-with-clear-btn),.ant-input-affix-wrapper:focus-within:not(.ant-input-textarea-affix-wrapper):not(.ant-input-affix-wrapper-textarea-with-clear-btn),.ant-picker-focused,.ant-input-number-focused,.ant-input-number-affix-wrapper:focus-within,.ant-select-focused:not(.ant-select-disabled) > .ant-select-selector) {
  border-color: #8582f0 !important;
  box-shadow: 0 0 0 2px #302cbd12 !important;
  outline: none !important;
}
/* Higher specificity than outer surfaces and validation states, regardless of lazy-load order. */
html#htmlRoot:not([data-theme="dark"]) body:has(:where(.jeecg-default-layout,.szy-business-v5,.szy-workbench)) .ant-input-affix-wrapper > input.ant-input,
html#htmlRoot:not([data-theme="dark"]) body:has(:where(.jeecg-default-layout,.szy-business-v5,.szy-workbench)) :is(.ant-picker-input > input,.ant-select-selection-search > input,.ant-input-number-input-wrap > input) {
  min-width: 0;
  min-height: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  outline-offset: 0 !important;
  margin: 0;
}
html#htmlRoot:not([data-theme="dark"]) body:has(:where(.jeecg-default-layout,.szy-business-v5,.szy-workbench)) .ant-input-affix-wrapper > input.ant-input,
html#htmlRoot:not([data-theme="dark"]) body:has(:where(.jeecg-default-layout,.szy-business-v5,.szy-workbench)) .ant-picker-input > input {
  height: 20px !important;
  padding: 0 !important;
  line-height: 20px !important;
}
html#htmlRoot:not([data-theme="dark"]) body:has(:where(.jeecg-default-layout,.szy-business-v5,.szy-workbench)) .ant-input-affix-wrapper > input.ant-input { flex: 1 1 auto; width: 100%; }
html#htmlRoot:not([data-theme="dark"]) body:has(:where(.jeecg-default-layout,.szy-business-v5,.szy-workbench)) .ant-input-number-affix-wrapper > .ant-input-number {
  flex: 1 1 auto; border: 0 !important; box-shadow: none !important; background: transparent !important;
  height: calc(var(--szy-control-height) - 2px) !important; min-height: 0 !important;
}
html#htmlRoot:not([data-theme="dark"]) form:is(.szy-v6-form-grid,.szy-v6-form-stack) .ant-form-item-control-input { min-height: var(--szy-control-height); }
html#htmlRoot:not([data-theme="dark"]) form:is(.szy-v6-form-grid,.szy-v6-form-stack) .ant-form-item-control-input-content > div[style*="flex"] > .ant-btn { min-height: var(--szy-control-height); }

/* Keep explicit status, disabled and borderless APIs intact. */
html#htmlRoot:not([data-theme="dark"]) body:has(:where(.jeecg-default-layout,.szy-business-v5,.szy-workbench)) :is(.ant-input-disabled,.ant-input-affix-wrapper-disabled,.ant-input-number-disabled,.ant-picker-disabled,.ant-select-disabled > .ant-select-selector) { background: #f6f7fb !important; color: #8f99ad !important; }
html#htmlRoot:not([data-theme="dark"]) body:has(:where(.jeecg-default-layout,.szy-business-v5,.szy-workbench)) :is(.ant-form-item-has-error,.ant-select-status-error) .ant-select-selector,
html#htmlRoot:not([data-theme="dark"]) body:has(:where(.jeecg-default-layout,.szy-business-v5,.szy-workbench)) :is(.ant-input-status-error,.ant-input-affix-wrapper-status-error,.ant-picker-status-error,.ant-input-number-status-error) { border-color: #e05f65 !important; }
html#htmlRoot:not([data-theme="dark"]) body:has(:where(.jeecg-default-layout,.szy-business-v5,.szy-workbench)) :is(.ant-form-item-has-warning,.ant-select-status-warning) .ant-select-selector,
html#htmlRoot:not([data-theme="dark"]) body:has(:where(.jeecg-default-layout,.szy-business-v5,.szy-workbench)) :is(.ant-input-status-warning,.ant-input-affix-wrapper-status-warning,.ant-picker-status-warning,.ant-input-number-status-warning) { border-color: #d99734 !important; }
html#htmlRoot:not([data-theme="dark"]) body:has(:where(.jeecg-default-layout,.szy-business-v5,.szy-workbench)) :is(.ant-input-borderless,.ant-input-affix-wrapper-borderless,.ant-input-number-borderless,.ant-picker-borderless,.ant-select-borderless > .ant-select-selector) {
  border-color: transparent !important; background: transparent !important; box-shadow: none !important;
}
/* Preserve joined search controls instead of rounding the shared seam. */
html#htmlRoot:not([data-theme="dark"]) body:has(:where(.jeecg-default-layout,.szy-business-v5,.szy-workbench)) .ant-input-search .ant-input-group > :is(.ant-input,.ant-input-affix-wrapper) {
  border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important;
}
html#htmlRoot:not([data-theme="dark"]) body:has(:where(.jeecg-default-layout,.szy-business-v5,.szy-workbench)) .ant-input-search .ant-input-search-button { height: var(--szy-control-height) !important; min-height: var(--szy-control-height); }

/* BasicModal's close button contains both maximize and close. Never paint that shared wrapper. */
html#htmlRoot:not([data-theme="dark"]) body:has(:where(.jeecg-default-layout,.szy-business-v5,.szy-workbench)) .ant-modal-close:has(.jeecg-basic-modal-close) {
  display: inline-flex; align-items: center; justify-content: center;
  width: auto !important; height: 32px !important; padding: 0 !important;
  background: transparent !important; border: 0 !important; box-shadow: none !important;
}
html#htmlRoot:not([data-theme="dark"]) body:has(:where(.jeecg-default-layout,.szy-business-v5,.szy-workbench)) .ant-modal-close:has(.jeecg-basic-modal-close) .ant-modal-close-x {
  display: flex; width: auto !important; height: 32px; line-height: 32px; background: transparent !important;
}
html#htmlRoot:not([data-theme="dark"]) body:has(:where(.jeecg-default-layout,.szy-business-v5,.szy-workbench)) .jeecg-basic-modal-close {
  display: inline-flex; height: 32px !important; align-items: center; justify-content: flex-end; gap: 8px; background: transparent !important;
}
html#htmlRoot:not([data-theme="dark"]) body:has(:where(.jeecg-default-layout,.szy-business-v5,.szy-workbench)) .jeecg-basic-modal-close > span {
  display: inline-flex !important; align-items: center; justify-content: center;
  flex: 0 0 32px; width: 32px; min-width: 32px; height: 32px;
  padding: 0 !important; margin: 0 !important; background: transparent !important;
}
html#htmlRoot:not([data-theme="dark"]) body:has(:where(.jeecg-default-layout,.szy-business-v5,.szy-workbench)) .jeecg-basic-modal-close > span > svg { width: 16px; height: 16px; }

/* The actual grey background is in ScrollContainer, not merely .ant-drawer-body. */
html#htmlRoot:not([data-theme="dark"]) .jeecg-basic-drawer:not(.jeecg-layout-sider-wrapper) .ant-drawer-content,
html#htmlRoot:not([data-theme="dark"]) .jeecg-basic-drawer:not(.jeecg-layout-sider-wrapper) .ant-drawer-body,
html#htmlRoot:not([data-theme="dark"]) .jeecg-basic-drawer:not(.jeecg-layout-sider-wrapper) .ant-drawer-body > .scrollbar,
html#htmlRoot:not([data-theme="dark"]) .jeecg-basic-drawer:not(.jeecg-layout-sider-wrapper) .ant-drawer-body > .scrollbar > .scrollbar__wrap,
html#htmlRoot:not([data-theme="dark"]) .jeecg-basic-drawer:not(.jeecg-layout-sider-wrapper) .ant-drawer-body > .scrollbar > .scrollbar__wrap > .scrollbar__view {
  background-color: #fff !important;
}
html#htmlRoot:not([data-theme="dark"]) :is(.szy-v11-permission,.szy-v11-data-rule) .ant-drawer-body > .scrollbar > .scrollbar__wrap > .scrollbar__view {
  min-height: 100%; box-sizing: border-box;
}
