/* Notification controls reuse the existing SLA geometry and QuickCEP orange Ant Design treatment. */
.recipient-field{position:relative;width:176px;height:32px;flex:none}
.recipient-select{height:32px;width:100%;display:flex;align-items:center;gap:4px;padding:0 24px 0 4px;border:1px solid #d9d9d9;border-radius:6px;background:#fff;color:rgba(0,0,0,.85);font:inherit;text-align:left;cursor:pointer;transition:border-color .15s,box-shadow .15s;outline:0}
.recipient-select:hover{border-color:#ff8a3d}
.recipient-select.open,.recipient-select:focus-visible{border-color:#ff6600;box-shadow:0 0 0 2px rgba(255,102,0,.12)}
.recipient-tag,.recipient-count{height:24px;line-height:22px;border:1px solid #f0f0f0;border-radius:2px;background:#f5f5f5;white-space:nowrap;padding:0 5px;font-size:13px}
.recipient-tag{min-width:0;overflow:hidden;text-overflow:ellipsis}
.recipient-count{flex:none;padding:0 4px}
.recipient-arrow{position:absolute;right:10px;width:16px;height:16px;opacity:.4;pointer-events:none;transition:transform .15s}
.recipient-select.open .recipient-arrow{transform:rotate(180deg)}
.recipient-popup{position:fixed;z-index:1300;width:344px;padding:8px 4px 0;border-radius:8px;background:#fff;box-shadow:0 6px 16px 0 #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d;font-size:14px;color:rgba(0,0,0,.85);box-sizing:border-box}
.recipient-search{height:32px;display:flex;align-items:center;gap:8px;margin:0 8px 8px;padding:0 10px;border:1px solid #d9d9d9;border-radius:6px;transition:border-color .15s}
.recipient-search:focus-within{border-color:#f60;box-shadow:0 0 0 2px #ff660015}
.recipient-search img{height:14px;width:14px;opacity:.45;flex:none}
.recipient-search input{height:28px;min-width:0;width:100%;padding:0;border:0;background:transparent;font:inherit;outline:0;box-shadow:none!important}
.recipient-search input::placeholder{color:#bfbfbf}
.recipient-option{display:flex;align-items:center;gap:8px;min-height:36px;padding:5px 12px;margin:0;border-radius:4px;cursor:pointer;box-sizing:border-box;line-height:22px}
.recipient-option:hover{background:#f5f5f5}
.recipient-option.selected{background:#fff2e8}
.recipient-option .tree-check{width:16px;height:16px;flex:none}
.recipient-handler,.recipient-handler:hover{min-height:36px;color:#bfbfbf;cursor:not-allowed;background:white}
.recipient-handler .tree-check:checked{background:#f5f5f5;border-color:#d9d9d9;cursor:not-allowed}
.recipient-handler .tree-check:checked:after{border-color:#bfbfbf}
.recipient-divider{height:1px;background:#f0f0f0;margin:6px 8px}
.recipient-members{max-height:216px;overflow:auto;scrollbar-width:thin}
.recipient-member-name{flex:none}
.recipient-empty{height:108px;display:flex;align-items:center;justify-content:center;color:#bfbfbf;font-size:14px}
.recipient-popup-footer{height:36px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid #f0f0f0;margin-top:4px;padding:0 12px;color:#8c8c8c;font-size:12px}
.recipient-popup-footer button{border:0;padding:0;background:transparent;color:#f60;font:inherit;cursor:pointer}
.recipient-popup-footer button:disabled{color:#bfbfbf;cursor:default}
.demo-toggle{display:none}
/* Make room for the added control inside the existing 1200px modal. */
.reminder-row{min-width:1090px}
.reminder-row .reminder-metric{width:176px}
.reminder-row .remaining-control{width:136px}
.remaining-control input{width:72px}
.remaining-control select{width:64px;padding:0 8px}
.reminder-row .notify-select{width:132px}
.reminder-row .marker-input{width:144px}

/* Optional visual proposal: ?layout=stacked. It shares all notification rules with the original view. */
.sla-recipients-stacked .sla-modal{display:flex;flex-direction:column;max-height:calc(100vh - 64px)}
.sla-recipients-stacked .sla-modal-title,.sla-recipients-stacked .sla-steps,.sla-recipients-stacked .sla-footer{flex:none}
.sla-recipients-stacked .sla-step-content{min-height:0;overflow:auto;scrollbar-width:thin;padding-right:8px;margin-right:-8px}
.sla-recipients-stacked .reminders{overflow:visible}
.sla-recipients-stacked .reminder-row{flex-wrap:wrap;column-gap:8px;row-gap:6px;min-width:0;width:100%;padding-bottom:16px;margin-bottom:16px;border-bottom:1px solid #f0f0f0}
.sla-recipients-stacked .reminder-row:last-of-type{border-bottom:0;margin-bottom:4px;padding-bottom:12px}
.sla-recipients-stacked .reminder-row:has(.recipient-field)::after{content:'';order:98;flex-basis:100%;height:0;margin-top:-6px}
.sla-recipients-stacked .recipient-field{order:99;width:640px;height:32px;padding-left:80px;margin-left:22px;box-sizing:border-box}
.sla-recipients-stacked .recipient-field:before{content:'通知对象';position:absolute;left:0;top:5px;color:rgba(0,0,0,.45);font-size:14px;line-height:22px}
.sla-recipients-stacked .recipient-select{padding-left:4px;gap:4px}
.sla-recipients-stacked .recipient-tag{padding-left:8px;padding-right:8px}
.sla-recipients-stacked .reminder-row .reminder-metric{width:240px}
.sla-recipients-stacked .reminder-row .remaining-control{width:264px}
.sla-recipients-stacked .remaining-control input{width:184px}
.sla-recipients-stacked .remaining-control select{width:80px;padding-right:22px}
.sla-recipients-stacked .reminder-row .notify-select{width:100px}
.sla-recipients-stacked .reminder-row .marker-input{width:184px}
.sla-recipients-stacked .reminder-metric,.sla-recipients-stacked .notify-select,.sla-recipients-stacked .remaining-control select{appearance:none;background-image:url('assets/icons/down.svg');background-repeat:no-repeat;background-position:right 10px center;background-size:10px;padding-right:26px}
.sla-recipients-stacked .add-reminder{padding-left:0}
.sla-recipients-stacked .sla-footer{gap:12px;margin-top:20px}
.sla-recipients-stacked .sla-select{position:relative;display:inline-flex;align-items:center;height:32px;flex:none;padding:0;border:0;background:transparent;border-radius:6px}
.sla-recipients-stacked .sla-select-trigger{position:relative;display:flex;align-items:center;width:100%;height:32px;padding:0 30px 0 11px;border:1px solid #d9d9d9;border-radius:6px;background:#fff;font:inherit;line-height:22px;color:rgba(0,0,0,.85);text-align:left;outline:0;cursor:pointer;transition:border-color .15s,box-shadow .15s}
.sla-recipients-stacked .sla-select-trigger:hover{border-color:#ff8a3d}
.sla-recipients-stacked .sla-select-trigger.open,.sla-recipients-stacked .sla-select-trigger:focus-visible{border-color:#f60;box-shadow:0 0 0 2px #ff660012}
.sla-recipients-stacked .sla-select-trigger:disabled{color:#bfbfbf;background:#f5f5f5;border-color:#d9d9d9;opacity:1;cursor:not-allowed;box-shadow:none}
.sla-recipients-stacked .marker-input:focus:not(.invalid-control),.sla-recipients-stacked .remaining-control .control:focus:not(.invalid-control){border-color:#f60!important;outline:0;box-shadow:0 0 0 2px #ff660012}
.sla-select-trigger>img{position:absolute;right:10px;width:16px;height:16px;opacity:.4;pointer-events:none}
.sla-select-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sla-recipients-stacked .remaining-control>.sla-select{width:80px;border:0;padding:0}
.sla-recipients-stacked .sla-select-unit .sla-select-trigger{border-left:0;border-radius:0 6px 6px 0;padding-left:10px;padding-right:28px}
.sla-select-dropdown{position:fixed;z-index:1400;padding:4px;border-radius:8px;background:#fff;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d;box-sizing:border-box}
.sla-select-option{display:block;width:100%;height:32px;padding:5px 12px;border:0;border-radius:4px;background:#fff;text-align:left;font:14px/22px -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;white-space:nowrap;color:rgba(0,0,0,.85);cursor:pointer;outline:0}
.sla-select-option:hover,.sla-select-option:focus-visible{background:#f5f5f5}
.sla-select-option.selected,.sla-select-option.selected:hover{background:#fff3e5}
.polished-palette{width:164px;padding:12px 16px;border-radius:12px;box-sizing:border-box;z-index:1400}
.polished-palette p{font-size:12px;line-height:16px;color:#bfbfbf;margin:0 0 8px}
.polished-palette .palette{display:grid;grid-template-columns:repeat(5,20px);gap:6px 8px}
.polished-palette .palette button{width:20px;height:20px;border-radius:3px}
.polished-palette:after{content:'';position:absolute;left:calc(var(--palette-arrow) - 6px);bottom:-6px;width:12px;height:12px;background:#fff;transform:rotate(45deg);border-radius:0 0 2px 0}
.polished-palette.below:after{bottom:auto;top:-6px}
