/**
 * 全局直角：须在 bootstrap.min.css 之后加载，覆盖 Bootstrap 圆角变量与部分硬编码组件。
 *
 * 按钮：全站各类 button / .btn / 分页 / 手风琴头等一律直角（见文末「按钮直角」段）。
 */
:root,
[data-bs-theme="light"],
[data-bs-theme="dark"] {
  --bs-border-radius: 0;
  --bs-border-radius-sm: 0;
  --bs-border-radius-lg: 0;
  --bs-border-radius-xl: 0;
  --bs-border-radius-xxl: 0;
  --bs-border-radius-2xl: 0;
  --bs-border-radius-pill: 0;
  --bs-card-border-radius: 0;
  --bs-card-inner-border-radius: 0;
  --bs-btn-border-radius: 0;
  --bs-btn-border-radius-sm: 0;
  --bs-btn-border-radius-lg: 0;
  --bs-dropdown-border-radius: 0;
  --bs-dropdown-inner-border-radius: 0;
  --bs-dropdown-item-border-radius: 0;
  --bs-accordion-border-radius: 0;
  --bs-accordion-inner-border-radius: 0;
  --bs-accordion-btn-border-radius: 0;
  --bs-alert-border-radius: 0;
  --bs-badge-border-radius: 0;
  --bs-breadcrumb-border-radius: 0;
  --bs-list-group-border-radius: 0;
  --bs-modal-border-radius: 0;
  --bs-modal-inner-border-radius: 0;
  --bs-nav-pills-border-radius: 0;
  --bs-nav-tabs-border-radius: 0;
  --bs-navbar-toggler-border-radius: 0;
  --bs-pagination-border-radius: 0;
  --bs-popover-border-radius: 0;
  --bs-popover-inner-border-radius: 0;
  --bs-progress-border-radius: 0;
  --bs-toast-border-radius: 0;
  --bs-tooltip-border-radius: 0;
}

/* 少数组件仍写死 rem，与变量一并压平 */
.modal-content,
.modal-header,
.modal-footer,
.img-thumbnail,
.offcanvas,
.toast,
.popover,
.input-group-text,
.input-group-lg > .form-control,
.input-group-lg > .form-select,
.input-group-sm > .form-control,
.input-group-sm > .form-select,
.accordion-item,
.accordion-item:first-of-type,
.accordion-item:last-of-type {
  border-radius: 0 !important;
}

/* Bootstrap .rounded 工具类：卡片/面板等非圆形元素一律直角 */
.rounded:not(.rounded-circle):not(.rounded-pill) {
  border-radius: 0 !important;
}

/* ========== 按钮直角（全类型、全状态，覆盖 Bootstrap 与业务硬编码） ========== */
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
input[type="image"],
.btn,
[class*="btn-"],
[class*="-btn"],
a.btn,
label.btn,
.accordion-button,
.page-link,
.page-item .page-link,
.dropdown-toggle,
.list-group-item-action.btn,
.btn-close,
.btn-check + .btn,
.vh-mobile-sidebar-toggle,
.vh-sidebar-collapse-toggle,
.pm-top-action-btn,
.list-page-action-btn,
.list-page-op-btn,
.list-page-filters-custom-btn,
.filter-btn,
.filter-clear-btn,
.track-action-btn,
.vh-approval-ops-transfer-toggle,
summary.list-page-strip-control,
.form-actions-bottom button,
.form-actions-bottom input[type="submit"],
.form-actions-bottom input[type="button"],
.vh-approval-ops-decision-btns .btn,
.form-actions-bottom .btn,
.form-actions-bottom a.btn,
.list-page-table-actions .btn,
.list-page-table-actions a.btn,
.vh-create-form-base .create-form .form-dynamic-table-actions .btn,
.list-page-action-bar .btn,
.list-page-actions-bar .btn,
.table-toolbar-right .btn,
.pm-filter-bar .btn-group .btn,
.list-page-filter-bar .btn-group .btn,
.awa-btn,
.awa-btn-cancel,
.btn-login,
.login-button,
.el-button,
.el-button.is-round,
.el-button.is-circle {
  border-radius: 0 !important;
}

.btn-group > .btn,
.btn-group-vertical > .btn,
.btn-group > .btn:first-child,
.btn-group > .btn:last-child,
.btn-group > .btn.dropdown-toggle-split,
.btn-group > .btn:not(:first-child),
.btn-group > .btn:not(:last-child),
.input-group > .btn,
.input-group > .btn:first-child,
.input-group > .btn:last-child,
.input-group > :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.btn.rounded-pill,
.btn.rounded,
.btn.rounded-sm,
.btn.rounded-lg,
.btn.rounded-circle,
button.rounded-pill,
a.rounded-pill.btn,
[class*="rounded-"].btn,
.designer-insert-btn,
.admin-reject-btn,
.admin-reject-btn-cancel,
.vh-sb__expandAll,
.navbar .vh-mobile-sidebar-toggle,
.navbar .vh-topnav-toggler {
  border-radius: 0 !important;
}

#filterFieldsSettingsModal .modal-footer .btn,
#columnSettingsModal .modal-footer .btn,
.modal-footer .btn {
  border-radius: 0 !important;
}

/* ========== 徽标直角（全类型，含 Bootstrap .rounded-pill；列表基模 §1.8 与 badges.css 一致） ========== */
.badge,
.badge.rounded-pill,
.rounded-pill.badge,
span.badge.rounded-pill,
.list-badge,
.status-badge,
.badge-status,
.detail-badge,
.vh-count-badge,
.vh-tag-badge,
.list-page-status-badge,
.list-page-scope-tab-badge,
.list-page-filter-chip,
.priority-badge {
  border-radius: 0 !important;
}
