/* 前台模板 3 的通用样式，主题变量由 footer.jsp 输出。 */

/* 兼容旧页面的主操作按钮，保留原有尺寸、事件和表单行为。 */
body .button.bg-yellow,
body .button.bg-blue,
body .button.bg-main,
body .button.bg-yellow:hover,
body .button.bg-blue:hover,
body .button.bg-main:hover,
body .button.bg-yellow:focus,
body .button.bg-blue:focus,
body .button.bg-main:focus {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
    color: var(--theme-on-primary);
}

body .blue,
body .text-blue,
body .text-main {
    color: var(--theme-primary);
}

body .border-blue,
body .border-main {
    border-color: var(--theme-primary);
}

/* 已有外框的记录卡片与结构图节点只替换边框颜色。 */
body .finance-record,
body .orders-card,
body .messages-card,
body .business-content .message,
body .business-address,
body .business-tree .tree,
body.business-wangluotu .business-diagram table.tablefilter,
body .new-category-li,
body .store-cart .product-box,
body .w-community a {
    border-color: var(--theme-primary);
}

/* 数据表格用内描边保留原有列宽和内部网格线，跳过用来布局的空表格。 */
body :is(.table-container > table, table.table-bordered, table:has(> thead)) {
    outline: 1px solid var(--theme-primary);
    outline-offset: -1px;
}
