/* 5.6.5 业务提醒中心 */
.nf-notify-top{position:relative;display:inline-flex;align-items:center;gap:7px;text-decoration:none;color:inherit;padding:8px 10px;border:1px solid #e6ebf2;border-radius:10px;background:#fff}.nf-notify-badge{display:none;min-width:18px;height:18px;padding:0 5px;align-items:center;justify-content:center;border-radius:10px;background:#e5484d;color:#fff;font-size:11px;font-weight:700;line-height:18px}.nf-notify-badge.show{display:inline-flex}.nf-toast-stack{position:fixed;right:24px;bottom:24px;z-index:10050;width:min(390px,calc(100vw - 32px));display:flex;flex-direction:column;gap:10px}.nf-toast{background:#fff;border:1px solid #e2e8f0;border-radius:14px;box-shadow:0 18px 55px rgba(15,35,60,.18);padding:15px 16px;cursor:pointer;animation:nfToastIn .22s ease}.nf-toast.important{border-left:4px solid #f59e0b}.nf-toast.urgent{border-left:4px solid #e5484d}.nf-toast-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:7px}.nf-toast-head b{font-size:15px;color:#162033}.nf-toast-head span{font-size:12px;color:#718096}.nf-toast p{margin:0;color:#536174;font-size:13px;line-height:1.6}.nf-toast-foot{margin-top:8px;color:#D96542;font-size:12px;font-weight:700}.notify-hero{background:linear-gradient(135deg,#D96542,#E58A6E);border-radius:22px;padding:28px 30px;color:#fff;display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:18px}.notify-kicker{font-size:12px;letter-spacing:1px;color:#FFE8E0;font-weight:700;margin-bottom:8px}.notify-hero h2{font-size:27px;margin:0 0 8px}.notify-hero p{margin:0;max-width:850px;color:#FFE8E0;line-height:1.7}.notify-actions{display:flex;gap:10px;flex-wrap:wrap}.notify-category-panel{padding:10px 14px}.notify-tabs{display:flex;gap:8px;flex-wrap:wrap}.notify-tab{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border-radius:10px;color:#536174;text-decoration:none;font-size:13px}.notify-tab span{display:inline-flex;min-width:19px;height:19px;align-items:center;justify-content:center;border-radius:10px;background:#edf2f7;font-size:11px}.notify-tab.active{background:#FAEEE9;color:#B94F34;font-weight:700}.notify-tab.active span{background:#B94F34;color:#fff}.notify-layout{align-items:start}.notify-list{display:flex;flex-direction:column}.notify-row{display:grid;grid-template-columns:10px 1fr auto;gap:12px;padding:16px 4px;border-bottom:1px solid #edf1f5;align-items:start}.notify-row.unread{background:linear-gradient(90deg,rgba(217,101,66,.05),transparent);margin:0 -8px;padding-left:12px;padding-right:12px;border-radius:10px}.notify-dot{width:8px;height:8px;border-radius:50%;background:#8a98aa;margin-top:7px}.notify-dot.warning,.notify-dot.warn{background:#f59e0b}.notify-dot.error,.notify-dot.danger,.notify-dot.critical{background:#e5484d}.notify-dot.success{background:#18a66a}.notify-row-top{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.notify-row-top>div{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.notify-row-top time{font-size:12px;color:#8a98aa;white-space:nowrap}.notify-category{font-size:11px;padding:3px 7px;border-radius:8px;background:#FAEEE9;color:#D96542}.notify-new{font-size:11px;color:#e5484d}.notify-main p{margin:7px 0;color:#536174;line-height:1.65}.notify-meta{display:flex;gap:12px;flex-wrap:wrap;color:#8a98aa;font-size:11px}.notify-setting-card{margin-top:14px;padding:13px;border:1px solid #e7ecf2;border-radius:12px;background:#fbfcfe}.notify-setting-card p{margin:7px 0 0;color:#637083;font-size:12px;line-height:1.7}.notify-config{margin-top:14px}.notify-template-form{margin-top:12px;display:flex;flex-direction:column;gap:7px}.mobile-bottom-nav .nf-notify-badge{position:absolute;top:2px;right:16%;transform:scale(.9)}@keyframes nfToastIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}@media(max-width:780px){.notify-hero{padding:20px;flex-direction:column}.notify-hero h2{font-size:22px}.notify-layout{display:block}.notify-row{grid-template-columns:8px 1fr}.notify-row-action{grid-column:2}.nf-toast-stack{right:12px;bottom:82px;width:calc(100vw - 24px)}}

.notify-state-pill{display:inline-flex;align-items:center;padding:2px 7px;border-radius:9px;background:#eef1f5;color:#667085;font-size:11px;font-weight:700}.notify-state-pill.success{background:#e8f8f1;color:#18865c}.notify-state-pill.warning{background:#fff4df;color:#b56b00}.notify-template-form textarea{width:100%;min-height:92px;resize:vertical;box-sizing:border-box}.notify-template-form .subpanel{align-self:start}
.notify-checkbox-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;margin:8px 0 10px}.notify-checkbox-grid .check{margin:0;padding:10px 12px;border:1px solid #e6ebf3;border-radius:10px;background:#fff}@media(max-width:760px){.notify-checkbox-grid{grid-template-columns:1fr}}

/* 5.6.6：小程序订阅模板与异常短信分区 */
.notify-channel-panel{margin-top:18px}.notify-channel-badge{display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:700;background:#FAEEE9;color:#C24423}.notify-channel-badge.danger{background:#fff0ef;color:#c83b32}.notify-master-switch{margin:4px 0 10px;padding:12px 14px;border:1px solid #dfe7f0;border-radius:12px;background:#fbfdff;font-weight:700}.notify-template-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:10px 0 16px}.notify-template-card{border:1px solid #e4eaf2;border-radius:15px;padding:16px;background:#fff}.notify-template-card.configured{border-color:#b9ddcd;box-shadow:0 8px 24px rgba(24,166,106,.06)}.notify-template-title{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.notify-template-title>div{min-width:0}.notify-template-title b{display:block;color:#1e2f48;font-size:15px}.notify-template-title span:not(.notify-state-pill){display:block;margin-top:5px;color:#718096;font-size:12px;line-height:1.55}.notify-template-events{margin:12px 0;padding:10px 12px;border-radius:10px;background:#f7f9fc}.notify-template-events strong{font-size:12px;color:#3c4d64}.notify-template-events p{margin:4px 0 0;color:#6f7d90;font-size:11px;line-height:1.65}.notify-template-card label{margin-top:9px}.notify-template-preview{display:flex;gap:9px;align-items:flex-start;margin-top:10px;padding:10px 12px;border-left:3px solid #D96542;border-radius:8px;background:#FCF8F5;color:#536174;font-size:12px;line-height:1.6}.notify-template-preview strong{flex:none;color:#B84122}.notify-sms-test{border-top:1px solid #edf1f5;padding-top:16px;margin-top:18px!important}
@media(max-width:900px){.notify-template-grid{grid-template-columns:1fr}}

/* 隐藏重复小标题 */
.notify-kicker{display:none!important}
/* 2026-09 微信小程序订阅通知全业务场景收口 */
.notify-template-syncbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:12px 0;padding:13px 14px;border:1px solid #e4e8ec;border-radius:12px;background:#f8fafb}.notify-template-syncbar>div{display:flex;flex-direction:column;gap:4px}.notify-template-syncbar b{font-size:14px;color:#263746}.notify-template-syncbar span{font-size:12px;color:#7d8994}.notify-wechat-catalog{margin:12px 0 16px;border:1px solid #e6eaed;border-radius:12px;background:#fff;overflow:hidden}.notify-wechat-catalog>summary{padding:12px 14px;font-weight:800;color:#465866;cursor:pointer;background:#fafbfb}.notify-wechat-catalog .table-wrap{border-top:1px solid #edf0f2}.notify-template-group-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:20px 0 9px;padding:0 2px}.notify-template-group-head h4{margin:0;color:#263746;font-size:16px}.notify-template-group-head span{color:#8a96a0;font-size:12px}.notify-template-hint{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:10px 0;padding:9px 10px;border-radius:9px;background:#f7f9fa;font-size:12px}.notify-template-hint b{color:#53636f}.notify-template-hint span{color:#1d678b;font-weight:700}.notify-template-hint em{font-style:normal;color:#28805d}.notify-template-hint em.warn{color:#b45a3f}.notify-template-card select{width:100%}.notify-template-card .panel-sub{margin-top:6px}.notify-template-card details.notify-config{margin-top:10px}.notify-template-card details.notify-config>summary{font-weight:750;color:#53636f;cursor:pointer}.notify-template-card details.notify-config input{margin-top:8px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px}
@media(max-width:900px){.notify-template-syncbar{align-items:flex-start;flex-direction:column}.notify-template-syncbar form{width:100%}.notify-template-syncbar form .btn{width:100%}}

.nf-toast-stack{max-height:min(65vh,560px);overflow-y:auto;overscroll-behavior:contain;pointer-events:none;padding:4px;box-sizing:border-box}
.nf-toast-stack .nf-toast{flex-shrink:0;pointer-events:auto;padding:16px 18px;border-radius:16px;box-shadow:0 10px 28px rgba(15,35,60,.15)}
.nf-toast-head{align-items:flex-start;gap:10px}.nf-toast-head b{flex:1;min-width:0;overflow-wrap:anywhere;line-height:1.45}.nf-toast-head>span{flex-shrink:0;margin-top:2px}
.nf-toast-close{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:28px;min-width:28px;height:28px;min-height:28px;margin:-5px -6px 0 0;padding:0;border:0;border-radius:8px;background:#F1F4F8;color:#66758A;font-size:22px;line-height:1;cursor:pointer;box-shadow:none}.nf-toast-close:hover{background:#E5EBF2}.nf-toast-close:focus-visible{outline:2px solid #2874C7;outline-offset:2px}
.nf-toast p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.nf-toast-foot{display:inline-block;text-decoration:none;line-height:1.6}.nf-toast-foot:focus-visible{outline:2px solid #2874C7;outline-offset:3px}

/* Account and referral details share the backend master-page spacing. */
.nf-referral-profile{display:flex;align-items:center;gap:12px;min-width:130px;max-width:100%}
.nf-referral-profile .nf-referral-avatar,.nf-referral-profile .nf-referral-placeholder{flex:0 0 44px;width:44px!important;min-width:44px;max-width:44px!important;height:44px!important;max-height:44px;object-fit:cover;border-radius:12px;border:1px solid #e7edf4;margin:0}
.nf-referral-profile .nf-referral-placeholder{display:grid;place-items:center;background:#edf4fb;color:#287399}
.nf-referral-placeholder svg{width:24px;height:24px}
.nf-referral-copy{display:flex;flex-direction:column;gap:3px;min-width:0;line-height:1.5}
.nf-referral-copy b{color:#253c50;font-size:14px;overflow-wrap:anywhere}
.nf-referral-copy small{display:block;color:#8190a2;font-size:12px;overflow-wrap:anywhere}
.nf-customer-identity{display:flex;align-items:center;gap:12px;min-width:150px}
.nf-customer-identity .nf-customer-identity-avatar,.nf-customer-identity-placeholder{width:44px!important;min-width:44px;max-width:44px!important;height:44px!important;max-height:44px;border-radius:12px;object-fit:cover;flex:0 0 44px;border:1px solid #e7edf4;margin:0}
.nf-customer-identity-placeholder{display:grid;place-items:center;background:#edf3f8;color:#8190a5}
.nf-account-detail{display:flex;flex-direction:column;gap:20px;min-width:0}
.nf-account-detail .nf-account-hero{margin:0;min-height:156px;padding:28px 30px;border-radius:20px;display:flex;align-items:center;justify-content:space-between;gap:24px;background:linear-gradient(115deg,#ad4b32 0%,#ce6444 60%,#df8162 100%);color:#fff}
.nf-account-hero-identity{display:flex;align-items:center;gap:20px;min-width:0}
.nf-account-detail .nf-account-hero-avatar,.nf-account-hero-placeholder{width:80px!important;min-width:80px;max-width:80px!important;height:80px!important;max-height:80px;flex:0 0 80px;border-radius:20px;object-fit:cover;border:2px solid rgba(255,255,255,.45);background:rgba(255,255,255,.14);margin:0}
.nf-account-hero-placeholder{display:grid;place-items:center;color:#fff}
.nf-account-hero-placeholder svg{width:38px;height:38px}
.nf-account-hero-copy{min-width:0}.nf-account-detail .nf-account-hero .eyebrow{font-size:12px;font-weight:650;letter-spacing:.08em;opacity:.85;margin:0 0 9px;color:#fff}
.nf-account-detail .nf-account-hero h2{margin:0;font-size:26px;line-height:1.35;color:#fff;overflow-wrap:anywhere}
.nf-account-detail .nf-account-hero p{margin:10px 0 0;font-size:13px;line-height:1.7;color:rgba(255,255,255,.87)}
.nf-account-status-pill{display:inline-flex;align-items:center;gap:7px;background:rgba(255,255,255,.17);border:1px solid rgba(255,255,255,.3);padding:8px 13px;border-radius:999px;font-size:13px;font-weight:700;white-space:nowrap;color:#fff}
.nf-account-status-pill:before{content:'';width:7px;height:7px;border-radius:50%;background:#c4efd8}.nf-account-status-pill.is-inactive:before{background:#ffdd9e}
.nf-account-toolbar{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px;padding:0 2px}
.nf-account-detail .nf-account-toolbar .btn{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 18px;margin:0;border-radius:11px;font-size:14px;line-height:1.5;text-decoration:none}
.nf-account-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.nf-account-stat{position:relative;overflow:hidden;padding:21px 22px;background:#fff;border:1px solid #e5ebf2;border-radius:16px;box-shadow:0 6px 20px rgba(28,48,66,.035);display:flex;flex-direction:column;gap:9px;min-width:0}
.nf-account-stat:before{content:'';position:absolute;left:0;top:22px;width:3px;height:27px;background:#217391;border-radius:0 3px 3px 0}.nf-account-stat:nth-child(even):before{background:#d96542}
.nf-account-stat>span{color:#7b8b9d;font-size:13px;font-weight:650}.nf-account-stat>strong{font-size:24px;line-height:1.4;color:#253d50;font-weight:750}.nf-account-stat>small{font-size:12px;color:#91a0ae;line-height:1.5}
.nf-account-stat>strong.is-ready{color:#237b68}.nf-account-stat>strong.is-pending{color:#aa7832}.nf-account-stat>strong.nf-account-stat-time{font-size:19px;padding-top:3px;letter-spacing:-.3px;overflow-wrap:anywhere}
.nf-account-panels{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:20px;align-items:stretch}
.nf-account-detail .nf-account-panel{padding:25px 26px;margin:0;border-radius:18px;border:1px solid #e6ebf1;box-shadow:0 7px 24px rgba(28,48,66,.035);min-width:0}
.nf-account-panel .panel-head{padding:0 0 18px;margin:0 0 18px;border-bottom:1px solid #edf1f5}.nf-account-panel .panel-head h2{font-size:18px;line-height:1.5;margin:0 0 4px}.nf-account-panel .panel-sub{margin:0;font-size:13px;line-height:1.6}
.nf-account-fields{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 24px}.nf-account-fields>div{min-width:0}.nf-account-fields dt,.nf-account-relations dt{font-size:13px;color:#8997a7;margin:0 0 7px;font-weight:500}.nf-account-fields dd,.nf-account-relations dd{font-size:14px;color:#2b4357;line-height:1.65;margin:0;font-weight:600;overflow-wrap:anywhere}
.nf-account-next{margin-top:24px;padding:16px 18px;border:1px solid #e5edf4;border-radius:12px;background:#f6f9fc;display:flex;flex-direction:column;gap:6px}.nf-account-next b{font-size:13px;color:#2d6f87}.nf-account-next span{font-size:12px;line-height:1.7;color:#8392a3}.nf-account-next.is-pending{background:#fffaf2;border-color:#f2e6d2}.nf-account-next.is-pending b{color:#a17638}
.nf-account-relations{margin:0;display:grid;gap:0}.nf-account-relations>div{display:grid;grid-template-columns:126px minmax(0,1fr);gap:20px;padding:15px 0;border-bottom:1px solid #edf1f5}.nf-account-relations>div:first-child{padding-top:0}.nf-account-relations>div:last-child{border:0;padding-bottom:0}.nf-account-relations dt{margin:0;padding-top:1px}.nf-account-relations dd{min-width:0}.nf-account-relations .nf-referral-copy b{font-size:14px}
.nf-account-detail .nf-account-empty{text-align:center;padding:46px 24px;margin:0}.nf-account-empty h3{color:#294357;margin:0 0 12px}.nf-account-empty p{font-size:14px;color:#8797a8;margin:0}
@media(max-width:1200px){.nf-account-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.nf-account-stat>strong.nf-account-stat-time{font-size:20px}.nf-account-panels{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.nf-account-detail{gap:16px}.nf-account-detail .nf-account-hero{padding:22px 20px;align-items:flex-start;flex-direction:column;gap:18px}.nf-account-hero-identity{gap:14px}.nf-account-detail .nf-account-hero-avatar,.nf-account-hero-placeholder{width:60px!important;min-width:60px;max-width:60px!important;height:60px!important;max-height:60px;flex-basis:60px;border-radius:16px}.nf-account-detail .nf-account-hero h2{font-size:22px}.nf-account-detail .nf-account-hero p{font-size:12px}.nf-account-toolbar{justify-content:stretch}.nf-account-detail .nf-account-toolbar .btn{flex:1;min-height:44px;padding:10px 12px;font-size:13px}.nf-account-stats{gap:12px}.nf-account-stat{padding:18px 16px}.nf-account-stat>strong{font-size:21px}.nf-account-stat>strong.nf-account-stat-time{font-size:17px}.nf-account-detail .nf-account-panel{padding:22px 20px}.nf-account-fields{gap:20px 16px}.nf-account-relations>div{grid-template-columns:1fr;gap:5px}.nf-account-relations dt{font-size:12px}}
