/* Detail-row controls share the current sales-line button appearance. Keep display
   non-important so page permissions/read-only rules can still hide a control. */
:where(.quotation-line-table .row-add,.quotation-line-table .row-del,table .ed-row-add,table .ed-row-delete,table .sv-section-add,.sales-workflow-shell table .sv-remove-line,.op-draft-table .op-row-action,table button[aria-label="新增商品行"],table button[aria-label="删除此新增行"],table button[aria-label^="删除第 "][aria-label$=" 行"]){display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box!important;vertical-align:middle!important;flex:none!important;width:26px!important;min-width:22px!important;height:23px!important;min-height:23px!important;margin:0 2px!important;padding:0 5px!important;border:1px solid #c9cdd4!important;border-radius:4px!important;background:#fff!important;color:#4e5969!important;font:14px 'Microsoft YaHei',sans-serif!important;line-height:20px!important;text-align:center!important;text-decoration:none!important;cursor:pointer;touch-action:manipulation}
:where(.quotation-line-table .row-add,.quotation-line-table .row-del,table .ed-row-add,table .ed-row-delete,table .sv-section-add,.sales-workflow-shell table .sv-remove-line,.op-draft-table .op-row-action,table button[aria-label="新增商品行"],table button[aria-label="删除此新增行"],table button[aria-label^="删除第 "][aria-label$=" 行"]):hover:not(:disabled):not(.disabled):not([aria-disabled="true"]){background:var(--business-soft,#e8f3ff)!important;border-color:var(--business-border,#b6d4fe)!important;color:var(--business-accent,#165dff)!important}
:where(.quotation-line-table .row-del,table .ed-row-delete,.sales-workflow-shell table .sv-remove-line,table button[aria-label="删除此新增行"],table button[aria-label^="删除第 "][aria-label$=" 行"]):hover:not(:disabled):not(.disabled):not([aria-disabled="true"]){background:#fff2f0!important;border-color:#f53f3f!important;color:#d92d20!important}
:where(.quotation-line-table .row-add,.quotation-line-table .row-del,table .ed-row-add,table .ed-row-delete,table .sv-section-add,.sales-workflow-shell table .sv-remove-line,.op-draft-table .op-row-action,table button[aria-label="新增商品行"],table button[aria-label="删除此新增行"],table button[aria-label^="删除第 "][aria-label$=" 行"]):focus-visible{outline:2px solid var(--business-accent,#165dff)!important;outline-offset:2px}
:where(.quotation-line-table .row-add,.quotation-line-table .row-del,table .ed-row-add,table .ed-row-delete,table .sv-section-add,.sales-workflow-shell table .sv-remove-line,.op-draft-table .op-row-action,table button[aria-label="新增商品行"],table button[aria-label="删除此新增行"],table button[aria-label^="删除第 "][aria-label$=" 行"]):is(:disabled,.disabled,[aria-disabled="true"]){opacity:.4!important;cursor:not-allowed!important}
.button-style-settings{min-width:0;color:var(--business-text,#34465c)}
.button-style-settings .button-style-main{align-items:start}
.button-style-state-field{margin-top:20px}.button-style-state-label{margin:8px 0 6px;font-size:12px;color:#526176}
.button-style-preview [data-button-style-group][aria-disabled=true]{opacity:.4;cursor:not-allowed;pointer-events:none}
.button-style-preview .button-style-document-toolbar{display:flex;align-items:center;gap:6px}
.button-style-preview .button-style-document-toolbar>input{width:auto}
.button-style-preview :where(.button-style-document-toolbar) :where(.btn,.si-button) svg{width:16px;height:16px;flex:none}
.button-style-preview .button-style-special:not(:disabled){background:var(--business-accent,#3659cf)!important;border-color:var(--business-accent,#3659cf)!important;color:#fff!important}
.button-style-preview .quotation-supplement-btn{color:var(--doc-status-draft-color,#FF7D00)!important;background:var(--doc-status-draft-bg,#FFF7E8)!important;border-color:var(--doc-status-draft-color,#FF7D00)!important}
.button-style-settings .button-style-preview .button-style-menu{position:static;display:flex!important;flex-wrap:wrap;width:auto;min-width:0!important;max-width:100%!important;max-height:none!important;transform:none;box-shadow:none!important;padding:6px;gap:4px;z-index:auto}
.button-style-preview .button-style-menu>[role=menuitem]{width:auto;white-space:normal}
.button-style-toolbar{display:flex;align-items:center;gap:8px;padding:12px 16px;background:#fff;border-bottom:1px solid var(--business-border,#dce3ec);flex-wrap:wrap}
.button-style-toolbar strong{font-size:16px}.button-style-message{flex:1;min-width:140px;font-size:12px;color:#667085}.button-style-save:not(:disabled){background:var(--business-accent,#315e91);border-color:var(--business-accent,#315e91);color:#fff}
.button-style-content{display:flex;gap:16px;padding:16px;min-width:0}.button-style-groups{width:148px;flex:none;display:flex;flex-direction:column;gap:6px}.button-style-group{padding:9px 12px;text-align:left;border:1px solid transparent;border-radius:4px;background:transparent;color:inherit;cursor:pointer;font:inherit}.button-style-group[aria-pressed=true]{background:var(--business-soft,#e5edf8);border-color:var(--business-border,#c2cfdf);color:var(--business-accent,#315e91);font-weight:600}
.button-style-main{display:grid;grid-template-columns:minmax(280px,420px) minmax(260px,1fr);gap:16px;flex:1;min-width:0}.button-style-editor,.button-style-preview{padding:16px;background:#fff;border:1px solid var(--business-border,#dce3ec);border-radius:6px;min-width:0}.button-style-editor h3,.button-style-preview h3{font-size:15px;margin:0 0 8px}.button-style-help{margin:0 0 14px;color:#667085;font-size:12px;line-height:1.6}.button-style-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:16px}.button-style-field{display:flex;flex-direction:column;gap:5px;font-size:13px}.button-style-field input,.button-style-field select{box-sizing:border-box;width:100%;height:32px;border:1px solid #cbd5e1;border-radius:4px;padding:4px 8px;background:#fff;color:#25344b;font:inherit}.button-style-field input[data-invalid=true]{border-color:#c43e45}.button-style-field small{color:#667085;font-size:11px}.button-style-preview-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:8px 0 16px}.button-style-example{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:32px;padding:4px 10px;border:1px solid var(--business-border,#c2cfdf);border-radius:4px;background:#fff;color:var(--business-accent,#315e91);font:inherit}.button-style-example svg{width:16px;height:16px;flex:none}.button-style-example-primary{background:var(--business-accent,#315e91);border-color:var(--business-accent,#315e91);color:#fff}.button-style-example:disabled{opacity:.5}
.button-style-document-scene{min-width:0;margin:0 0 20px}.button-style-document-scene h4{margin:0 0 8px;font-size:13px;font-weight:600;line-height:1.5}.button-style-preview .button-style-document-shell{box-sizing:border-box;height:auto;min-height:0;max-width:none;margin:0;padding:0;border:0;gap:0;overflow:visible}.button-style-preview .button-style-document-toolbar{flex-wrap:wrap;max-width:100%;margin:0;overflow:visible;white-space:normal}
.button-style-table-scene{min-width:0;margin:0 0 20px}.button-style-table-scene h4{margin:0 0 8px;font-size:13px;font-weight:600;line-height:1.5}.button-style-preview .button-style-table-shell{box-sizing:border-box;height:auto;min-height:0;max-width:none;margin:0;padding:0;border:0;overflow:visible}.button-style-table-scroll{max-width:100%;overflow-x:auto}.button-style-preview .button-style-table{width:100%;min-width:0;table-layout:auto}.button-style-preview .button-style-table :is(th,td){padding:8px;vertical-align:middle;white-space:normal}.button-style-table-actions{display:inline-flex;align-items:center;flex-wrap:wrap;gap:4px}.button-style-table-actions [aria-disabled=true]{opacity:.4;cursor:not-allowed;pointer-events:none}
@media(max-width:900px){.button-style-content{flex-direction:column}.button-style-groups{width:auto;flex-direction:row;overflow:auto}.button-style-group{white-space:nowrap}.button-style-main{grid-template-columns:1fr}}
@media(max-width:480px){.button-style-toolbar{gap:6px}.button-style-message{flex-basis:100%;order:2}.button-style-fields{grid-template-columns:1fr 1fr}.button-style-content{padding:10px}}

.button-style-action-category{flex-basis:100%;margin:10px 0 3px;font-size:13px;font-weight:600;color:var(--business-text,#34465c)}
