/* ============================================================
   patches.css - 应用修复样式（独立文件，可单独缓存更新）
   所有规则均严格限定作用域，不影响原始组件行为
   ============================================================ */

/* === 8x8 图标背景容器（bg-warning）：金黄色 #f5bc42 === */
/* 仅作用于 w-8 h-8 组合的小图标方块，不影响其它 .bg-warning 使用 */
.w-8.h-8.bg-warning,
.w-8.h-8[class*="bg-warning"] {
  background-color: #f5bc42 !important;
  color: #ffffff !important;
}

/* === 进度条内 bg-warning：橙色 #f9b653 === */
/* 仅作用于 h-full rounded-full bg-warning 组合的进度条填充，不影响其它 .bg-warning */
.h-full.rounded-full.bg-warning,
.h-full.rounded-full[class*="bg-warning"] {
  background-color: #f9b653 !important;
}

/* === 「清除全部」按钮高度：36px → 28px === */
button.btn-clear-all-custom {
  height: 28px !important;
  min-height: 28px !important;
}

/* === Page Size 下拉文字显示修复（antd v5，aria-label 精确限定） === */
/* 所有规则均使用 :has(input[aria-label="Page Size"]) 限定，绝不影响其它 ant-select */
.ant-select:has(input[aria-label="Page Size"]) {
  width: 120px !important;
  min-width: 120px !important;
  max-width: 120px !important;
  height: 30px !important;
  flex-shrink: 0 !important;
}

.ant-select:has(input[aria-label="Page Size"]) .ant-select-content,
.ant-select:has(input[aria-label="Page Size"]) .ant-select-content-has-value {
  display: inline-flex !important;
  align-items: center !important;
  flex: 1 1 0 !important;
  min-width: 0 !important;
  height: 30px !important;
  padding: 0 4px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  gap: 4px !important;
  color: rgba(0, 0, 0, 0.88) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif !important;
}

/* input 极小化以腾出空间给文字（绝对定位移出可视区，仍可响应点击/键盘） */
input[aria-label="Page Size"] {
  position: absolute !important;
  left: -9999px !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 1px !important;
  min-height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  caret-color: #1769ff !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif !important;
}
