/* Only business page styles; settings shell is copied unchanged from sla-zalo. */
body{min-width:960px}.settings-page{gap:16px}.settings-page>.segmented button:disabled{opacity:1;cursor:default}.settings-sidebar a[aria-disabled=true]{cursor:default}
.assignment-panel{flex:1;min-height:0;background:white;padding:24px 28px 24px 24px;overflow:auto;border-radius:0}.page-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:16px;min-height:32px}.group-search{position:relative;width:286px}.group-search input{padding-right:32px}.group-search button{position:absolute;right:0;top:0;border:0;background:none;height:32px;width:32px;display:flex;align-items:center;justify-content:center}.group-search img{width:14px;height:14px}
.assignment-table{table-layout:fixed;width:100%;border-collapse:separate;border-spacing:0}.assignment-table th{height:46px;padding:12px 16px;background:#fafafa;font-weight:500;position:relative;z-index:0}.assignment-table th:after{top:12px;bottom:12px}.assignment-table td{height:57px;padding:15px 16px;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.assignment-table th:first-child{border-radius:7px 0 0 7px}.assignment-table th:last-child{border-radius:0 7px 7px 0}.assignment-table tr:hover td{background:#fafafa}.table-actions{display:flex;gap:18px;align-items:center}.text-action{border:0;padding:0;background:none;color:#5566ff;font-size:14px;white-space:nowrap}.text-action:hover{color:#7885ff}.rule-condition-count{border:0;padding:0;background:none;cursor:help}.drag-handle{border:0;background:none;padding:0;cursor:grab;width:14px;height:18px;display:flex;align-items:center}.drag-dots{width:8px;height:12px;display:block;background:radial-gradient(circle,#999 1px,transparent 1.2px) 0 0/4px 4px}.assignment-table tr.drag-over td{box-shadow:inset 0 2px #f60}
.pagination{display:flex;align-items:center;justify-content:flex-end;gap:2px;margin-top:24px}.pagination button{border:1px solid transparent;background:white;min-width:24px;height:24px;padding:0 6px;border-radius:6px;font-size:12px}.pagination .selected{border-color:#f60;color:#f60}.pagination button:disabled{opacity:.4}
.drawer-mask{position:fixed;inset:0;z-index:1001;background:rgba(0,0,0,.45)}.assignment-drawer{position:absolute;right:0;top:0;bottom:0;width:600px;max-width:100vw;background:white;box-shadow:-8px 0 25px #0001;display:flex;flex-direction:column;color:rgba(0,0,0,.85)}.assignment-drawer.rule-drawer{width:900px}.drawer-header{height:55px;flex-shrink:0;border-bottom:1px solid #f0f0f0;display:flex;align-items:center;gap:20px;padding:0 24px;font-size:16px}.drawer-header h2{font-size:16px;font-weight:500;margin:0}.drawer-header .close{font-size:22px;color:#333;width:20px;height:24px;display:flex;align-items:center;justify-content:center;padding:0}.drawer-body{flex:1;overflow:auto;padding:28px 24px 32px;scrollbar-width:thin;min-height:0}.group-drawer .drawer-body{padding-left:24px;padding-right:24px}.drawer-footer{height:53px;flex:none;border-top:1px solid #f0f0f0;display:flex;justify-content:flex-end;align-items:center;gap:16px;padding:0 16px;background:white}.drawer-footer .button{min-width:64px}.assignment-section{margin:0 0 24px}.assignment-section>.section-title{font-size:14px;font-weight:400;gap:12px;margin-bottom:16px}.section-content{margin-left:14px}.strategy-list{display:flex;flex-direction:column;gap:16px}.strategy-option{display:flex;align-items:flex-start;gap:8px;padding:14px 12px;border:1px solid #ebeef3;border-radius:8px;cursor:pointer;min-height:70px}.strategy-option:has(input:checked){background:#fff8f3;border-color:#f60}.strategy-option input,.radio-choice input{appearance:none;border:1px solid #d9d9d9;background:white;width:16px;height:16px;border-radius:50%;margin:2px 0 0;flex:none;position:relative}.strategy-option input:checked,.radio-choice input:checked{border-color:#f60}.strategy-option input:checked:after,.radio-choice input:checked:after{content:'';width:8px;height:8px;background:#f60;border-radius:50%;position:absolute;top:3px;left:3px}.strategy-name{font-size:14px;line-height:20px}.strategy-description{font-size:12px;line-height:19px;color:#9298a5;margin:5px 0 0}.memory-section .section-title{justify-content:space-between;margin-bottom:16px}.memory-section .section-title>span{margin-right:auto;display:flex;align-items:center;gap:5px}.help-circle{display:inline-flex;align-items:center;justify-content:center;border:1px solid #9da1a8;color:#858a91;font-size:10px;width:12px;height:12px;border-radius:50%;font-weight:400;cursor:help;line-height:1;flex-shrink:0}.help-circle.dark{color:#222;border-color:#222}.memory-description{font-size:13px;margin:0 0 16px}.choice-cards{display:flex;gap:12px;align-items:stretch}.choice-card{border:1px solid #e0e4ed;background:white;border-radius:12px;min-height:56px;padding:14px 20px;display:flex;align-items:center;justify-content:center;font-size:13px;cursor:pointer}.choice-card.active{background:#fff5ec;border-color:#f60;color:#f60}.weight-notice{display:flex;gap:8px;align-items:flex-start;background:#fffbf3;border-radius:8px;padding:11px 16px;font-size:12px;line-height:19px;margin-bottom:16px;color:#3c4655}.notice-question{color:white;background:#ffc225;border-radius:50%;font-size:10px;line-height:14px;height:14px;width:14px;flex:0 0 14px;text-align:center;margin-top:2px}.seats-box{padding:12px 16px 16px;background:white;border-radius:9px;box-shadow:0 1px 12px #e7ecf780;border:1px solid #f7f8fc}.seat-header,.seat-row{display:grid;grid-template-columns:32% 1fr 44px;gap:0;align-items:center;min-height:46px;padding:0 16px}.seat-header{background:#f6f7f9;border-radius:8px;font-size:14px}.seat-row{min-height:48px;font-size:14px;border-radius:7px}.seat-row:hover,.seat-row.editing{background:#f6f7f9}.seat-person{display:flex;align-items:center;gap:8px;min-width:0}.seat-person>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.seat-avatar{height:24px;width:24px;flex:0 0 24px;border-radius:50%;color:white;display:inline-flex;align-items:center;justify-content:center;font-size:12px}.seat-avatar.group-avatar{background:#ffb21a}.weight-display{border:0;background:none;padding:0;display:flex;gap:8px;align-items:center;min-width:50px}.weight-display svg{opacity:0;width:14px;height:14px}.seat-row:hover .weight-display svg,.weight-display:focus-visible svg{opacity:1}.weight-input{width:90px;height:32px;border:1px solid #f60;border-radius:6px;padding:0 11px;background:white}.weight-input.invalid{border-color:#ff4d4f!important}.trash-button{border:0;background:none;padding:4px;display:flex;align-items:center;justify-content:center;width:24px;height:28px;margin-left:auto}.trash-button svg{width:14px;height:14px}.seat-header>span:last-child{text-align:right}.add-seats{border:0;padding:0;background:none;color:#5566ff;margin-top:18px;font-size:12px}.inline-error{font-size:12px;color:#ff4d4f;margin-top:6px;line-height:20px}.seat-row .inline-error{grid-column:1/-1;margin:0 0 6px}.invalid-control{border-color:#ff4d4f!important}
.rule-drawer .drawer-body{padding:28px 24px 32px}.rule-drawer .section-content{margin-left:16px}.rule-name-field{margin:24px 0}.rule-name-field label{display:block;margin-bottom:8px}.name-input{position:relative}.name-input input{padding-right:70px}.name-counter{position:absolute;right:12px;top:6px;color:#9298a5;font-size:12px}.rule-toggle-line{display:flex;gap:7px;align-items:center;margin:22px 0}.tiny-switch{width:28px;height:16px;padding:2px}.tiny-switch:after{width:12px;height:12px;top:2px;left:2px}.tiny-switch.on:after{left:14px}.target-heading{margin:20px 0 12px}.rule-target-choice{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.radio-choices{display:flex;gap:20px}.radio-choice{display:flex;gap:8px;align-items:center;cursor:pointer}.radio-choice input{margin:0}.offline-choice{display:flex;align-items:center;gap:6px;font-size:12px}.target-select{width:100%;height:32px;display:flex;align-items:center;gap:8px;text-align:left;background:white;border:1px solid #d9d9d9;border-radius:6px;padding:0 11px}.target-select .chevron{margin-left:auto}.target-select .placeholder{color:#bfbfbf}.overflow-section{margin-top:28px}.overflow-section .choice-cards{margin:0 0 16px 16px}.overflow-section .choice-card{padding-left:20px;padding-right:20px}.overflow-section .section-content{margin-left:16px}.fallback-box .seat-header,.fallback-box .seat-row{grid-template-columns:32% 1fr 44px}.target-tags{display:flex;align-items:center;gap:5px;overflow:hidden}.target-tag{background:#f4f5f7;border:1px solid #eee;padding:0 6px;border-radius:3px;font-size:12px}.condition-editor{border:1px solid #eceef3;border-radius:8px;padding:14px;margin-bottom:16px}.condition-editor select{height:32px;border:1px solid #d9d9d9;border-radius:5px;padding:0 10px;background:white}.condition-editor .row{gap:10px}.conditions-options{display:flex;flex-wrap:wrap;gap:12px;margin-top:12px}
.picker-mask{position:fixed;inset:0;background:#0006;z-index:1101;display:flex;align-items:center;justify-content:center}.people-modal{width:720px;max-width:calc(100vw - 48px);height:524px;max-height:calc(100vh - 48px);background:white;border-radius:12px;padding:20px 24px 24px;display:flex;flex-direction:column;color:rgba(0,0,0,.85)}.people-modal h2{margin:0 0 30px;font-size:16px;font-weight:500;display:flex;align-items:center;justify-content:space-between}.people-search{margin-bottom:12px}.people-grid{border:1px solid #edf0f4;border-radius:8px;display:flex;flex:1;min-height:0;padding:16px}.people-categories{width:176px;flex-shrink:0;border-right:1px solid #f0f0f0;overflow:auto;padding-right:8px;scrollbar-width:thin}.people-category{display:block;width:100%;border:0;background:none;text-align:left;padding:9px 12px;border-radius:5px;font-size:13px}.people-category.selected{color:#f60;background:#fff4ec}.people-list{overflow:auto;flex:1;min-width:0;padding:0 12px 0 20px;scrollbar-width:thin}.people-item{display:flex;align-items:center;gap:10px;min-height:44px;cursor:pointer;font-size:13px}.people-item input{margin-left:auto;accent-color:#f60;width:16px;height:16px}.people-footer{display:flex;justify-content:flex-end;gap:12px;padding-top:0;min-height:56px;align-items:center}.people-empty{padding:30px;text-align:center;color:#aaa}.group-dropdown{position:fixed;z-index:1201;background:white;border-radius:7px;box-shadow:0 4px 22px #0003;padding:5px;max-height:300px;display:flex;flex-direction:column}.group-dropdown .control{flex:none;margin-bottom:5px}.group-dropdown-list{overflow:auto;min-height:0}.group-dropdown button{display:flex;align-items:center;gap:8px;border:0;background:white;min-height:34px;padding:6px 10px;text-align:left;width:100%}.group-dropdown button:hover,.group-dropdown button.selected{background:#fff5ed}.confirm-mask{z-index:1301}.local-confirm{background:white;border-radius:9px;padding:24px;width:420px;box-shadow:0 8px 24px #0002}.local-confirm h3{margin:0 0 16px;font-size:16px;font-weight:500}.local-confirm p{margin:0 0 24px}.local-confirm .row{justify-content:flex-end}
.demo-toggle{position:fixed;right:24px;bottom:12px;z-index:700;border:1px solid #e5e7eb;background:#fffefb;box-shadow:0 2px 8px #0001;border-radius:18px;padding:5px 14px;font-size:12px;color:#777}.demo-panel{position:fixed;right:24px;bottom:52px;width:460px;max-height:calc(100vh - 84px);overflow:auto;background:white;border:1px solid #e3e5ed;border-radius:10px;box-shadow:0 8px 32px #0002;z-index:701;padding:20px;scrollbar-width:thin}.demo-panel h3{font-size:14px;margin:0 0 6px;display:flex;justify-content:space-between}.demo-panel .demo-note{font-size:12px;color:#999;margin:0 0 16px}.demo-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}.demo-fields label{font-size:12px;color:#777}.demo-fields select{width:100%;margin-top:4px;height:30px;border:1px solid #ddd;border-radius:5px;background:white}.demo-members{margin:16px 0;font-size:12px}.demo-member{display:grid;grid-template-columns:1fr 90px 48px 14px 48px;align-items:center;gap:6px;margin:9px 0}.demo-member select,.demo-member input{height:28px;border:1px solid #ddd;border-radius:5px;background:white;padding:0 4px;width:100%;font-size:12px}.demo-checks{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:12px;margin-top:12px}.demo-checks label{display:flex;align-items:center;gap:5px}.demo-checks input{accent-color:#f60}.demo-queue{background:#fafafa;border:1px solid #eee;padding:10px;border-radius:6px;font-size:12px;line-height:24px;max-height:110px;overflow:auto}.demo-token{display:inline-block;border:1px solid #eee;padding:0 5px;border-radius:4px;line-height:22px;background:white;margin:2px}.demo-token.next{border-color:#f60;color:#f60;background:#fff5ee}.demo-buttons{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.demo-buttons .button{font-size:12px;height:30px;padding:0 10px}.demo-history{font-size:12px;max-height:156px;overflow:auto;border-top:1px solid #eee;padding-top:6px}.demo-history p{margin:6px 0}.demo-history .muted{margin-left:8px}.demo-counts{font-size:12px;color:#666;margin:8px 0}.demo-bottom{display:flex;gap:16px;align-items:center;margin-top:12px;font-size:12px}.demo-bottom button{font-size:12px}
.drawer-body,.rule-drawer .drawer-body{padding-top:24px}.group-drawer .strategy-list{margin-right:8px}.strategy-option{padding-top:11px;padding-bottom:11px}.rule-name-field{margin-top:16px}.assignment-panel>.page-toolbar{margin-bottom:16px}.pagination{height:24px;padding-top:0}
@media(max-width:1280px){.assignment-panel{padding-right:24px}.assignment-table td,.assignment-table th{padding-left:12px;padding-right:12px}.group-table col:nth-child(1){width:25%!important}.group-table col:nth-child(2){width:25%!important}.group-table col:nth-child(3){width:21%!important}.group-table col:nth-child(4){width:15%!important}.group-table col:nth-child(5){width:14%!important}.assignment-drawer.rule-drawer{width:min(900px,calc(100vw - 160px))}.segmented button{padding-left:20px;padding-right:20px}}
