.xl-sort-dialog351{box-sizing:border-box;width:780px;max-width:calc(100vw - 24px);max-height:90dvh;padding:0;border:1px solid var(--xl-ref-border,#d7dfe8);border-radius:14px;background:var(--xl-color-surface,#fff);color:var(--xl-ref-text,#273747);box-shadow:0 18px 70px #122b3340;font-family:inherit;font-size:13px;overflow:auto}
.xl-sort-dialog351::backdrop{background:#142b2460}.xl-sort-dialog351 :is(button,input,select){box-sizing:border-box;font:inherit;color:inherit;background:var(--xl-color-surface,#fff);border:1px solid var(--xl-ref-border,#d7dfe8);border-radius:6px;min-height:34px;padding:6px 9px;max-width:100%;min-width:0}.xl-sort-dialog351 button{cursor:pointer}.xl-sort-dialog351 button:disabled{opacity:.45;cursor:default}.xl-sort-dialog351 :focus-visible{outline:2px solid var(--xl-ref-primary,#315d48);outline-offset:2px}
.xl-sort-dialog351>header{display:flex;align-items:center;gap:12px;padding:18px 20px;border-bottom:1px solid var(--xl-ref-border,#d7dfe8)}.xl-sort-dialog351 header>div{flex:1}.xl-sort-dialog351 h2{font-size:18px;line-height:1.4;margin:0}.xl-sort-dialog351 header p{margin:4px 0 0;font-size:12px;color:#627184}.xl-sort-dialog351 small{font-size:12px;color:#627184}.xl-sort-dialog351 section{padding:16px 20px}.xl-sort-library351{background:var(--xl-color-surface-soft,#f5f7fa);border-bottom:1px solid var(--xl-ref-border,#d7dfe8)}.xl-sort-library-title351{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:10px}.xl-sort-library-title351>button{margin-left:auto}.xl-sort-library-fields351{display:grid;grid-template-columns:1fr 1fr auto;gap:8px}.xl-sort-library-manage351{display:flex;align-items:center;gap:8px;margin-top:9px}.xl-sort-library-manage351>span{flex:1;overflow-wrap:anywhere}.xl-sort-dialog351 .is-danger{color:#b33e4a}.xl-sort-dialog351 p[role]{font-size:12px;line-height:1.6;margin:10px 0 0;overflow-wrap:anywhere}.xl-sort-error351{color:#b33e4a}.xl-sort-notice351{color:#627184}.xl-sort-rule-heading351{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:10px;flex-wrap:wrap}
.xl-sort-dialog351 ol{list-style:none;padding:0;margin:0;display:grid;gap:8px}.xl-sort-dialog351 li{display:grid;grid-template-columns:24px minmax(100px,1fr) minmax(120px,.7fr) auto;gap:8px;align-items:center;padding:9px;background:var(--xl-color-surface-soft,#f5f7fa);border-radius:8px}.xl-sort-dialog351 li select{width:100%}.xl-sort-dialog351 .xl-sort-add-r252{padding:12px 0 0;display:flex;align-items:center;gap:12px}.xl-sort-dialog351>footer{position:sticky;bottom:0;display:flex;gap:10px;align-items:center;padding:14px 20px;border-top:1px solid var(--xl-ref-border,#d7dfe8);background:var(--xl-color-surface,#fff)}.xl-sort-dialog351 footer>small{flex:1}.xl-sort-dialog351 .xl-sort-apply-r252{background:var(--xl-ref-primary,#315d48)!important;color:#fff!important;border-color:var(--xl-ref-primary,#315d48)}
.xl-history-sort-head351{display:flex;align-items:center;gap:5px;flex-wrap:wrap;color:inherit}.xl-history-sort-head351 select{font:inherit;font-size:11px;max-width:68px;min-width:0;padding:2px;border:1px solid var(--xl-ref-border,#d7dfe8);border-radius:4px;background:transparent;color:inherit;cursor:pointer}.xl-history-sort-state351{font-size:12px;color:#627184;display:inline-flex;gap:6px;align-items:center;margin-left:8px}.xl-history-sort-state351 button{font:inherit;padding:3px 7px;border:1px solid var(--xl-ref-border,#d7dfe8);border-radius:5px;background:transparent;color:inherit}
@media(max-width:640px){.xl-sort-dialog351{max-height:94dvh}.xl-sort-dialog351>header,.xl-sort-dialog351>footer,.xl-sort-dialog351 section{padding:12px}.xl-sort-library-fields351{grid-template-columns:1fr 1fr}.xl-sort-library-fields351>button{grid-column:1/3;justify-self:end}.xl-sort-dialog351 li{grid-template-columns:20px minmax(0,1fr) minmax(0,.75fr);gap:6px}.xl-sort-dialog351 .xl-sort-actions-r252{grid-column:2/4;justify-content:flex-end}.xl-sort-dialog351 footer{flex-wrap:wrap;justify-content:flex-end}.xl-sort-dialog351 footer small{flex:0 0 100%}}
