/* Noto Sans SC 自托管(同目录 woff2,国内不依赖外网) */
@font-face{font-family:'Noto Sans SC';font-style:normal;font-weight:400;font-display:swap;src:url('noto-sans-sc-chinese-simplified-400-normal.woff2') format('woff2')}
@font-face{font-family:'Noto Sans SC';font-style:normal;font-weight:500;font-display:swap;src:url('noto-sans-sc-chinese-simplified-500-normal.woff2') format('woff2')}
@font-face{font-family:'Noto Sans SC';font-style:normal;font-weight:600;font-display:swap;src:url('noto-sans-sc-chinese-simplified-600-normal.woff2') format('woff2')}

/* 拜访打卡 · PC 管理后台样式(对齐高保真原型 ui/admin/总管理员/admin.css) */
:root{
  --blue:#1E5BB8; --blue-deep:#1A4FA0; --blue-soft:#E8F0FB;
  --grad:linear-gradient(135deg,#1E5BB8 0%,#3B82D4 100%);
  --side-grad:linear-gradient(180deg,#1A4FA0 0%,#163E80 100%);
  --ink:#1A2233; --body:#3D4A5C; --mute:#8A94A6; --line:#E5EAF1; --bg:#F7F9FC;
  --green:#2F855A; --green-bg:#E8F3EE; --red:#C0392B; --red-bg:#FAEBE8;
  --amber:#B7791F; --amber-bg:#FAF3E4; --shadow:0 2px 8px rgba(30,91,184,.08);
}
*{margin:0;padding:0;box-sizing:border-box}
body{background:#E9EDF3;font-family:"Segoe UI","Helvetica Neue","Noto Sans SC","PingFang SC","Microsoft YaHei",Helvetica,sans-serif;color:var(--body);-webkit-font-smoothing:antialiased}

/* ---------- 登录 ---------- */
.login-wrap{min-height:calc(100vh - 32px);display:flex;max-width:1440px;margin:16px auto;border-radius:10px;overflow:hidden;box-shadow:0 6px 28px rgba(16,34,68,.1)}
.login-left{flex:1;background:var(--grad);position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:center;padding:0 72px;color:#fff}
.login-left::before{content:"";position:absolute;left:-15%;bottom:-80px;width:140%;height:200px;background:rgba(255,255,255,.07);transform:skewY(-7deg)}
.login-left .lt{font-size:34px;font-weight:600;letter-spacing:.08em;position:relative;z-index:2}
.login-left .ls{font-size:15px;color:rgba(255,255,255,.78);margin-top:16px;position:relative;z-index:2;line-height:1.9}
.login-right{width:480px;background:#fff;display:flex;flex-direction:column;justify-content:center;padding:0 64px}
.login-right h2{font-size:24px;color:var(--ink);font-weight:600}
.login-right .sub{font-size:13px;color:var(--mute);margin:10px 0 36px}
@media(max-width:640px){
  body{background:#fff}
  .login-wrap{min-height:100vh;margin:0;border-radius:0;box-shadow:none;flex-direction:column}
  .login-left{flex:none;min-height:168px;padding:36px 32px;justify-content:center}
  .login-left .lt{font-size:28px}
  .login-left .ls{font-size:14px;margin-top:8px;line-height:1.6}
  .login-right{width:100%;flex:1;padding:44px 32px 56px;justify-content:flex-start}
}

/* ---------- 应用框架(1440 居中,窄屏自适应) ---------- */
.app{display:flex;min-height:calc(100vh - 32px);background:var(--bg);max-width:1440px;margin:16px auto;border-radius:10px;overflow:hidden;box-shadow:0 6px 28px rgba(16,34,68,.1)}
.side{width:212px;background:var(--side-grad);color:#fff;display:flex;flex-direction:column;position:relative;overflow:hidden;flex-shrink:0}
.side::before{content:"";position:absolute;left:-25%;bottom:-50px;width:150%;height:130px;background:rgba(255,255,255,.05);transform:skewY(-8deg)}
.side::after{content:"";position:absolute;right:-30%;bottom:-90px;width:140%;height:130px;background:rgba(255,255,255,.04);transform:skewY(7deg)}
.brand{display:flex;align-items:center;gap:10px;padding:20px 20px 18px;position:relative;z-index:2}
.brand .logo{width:46px;height:46px;border-radius:7px;background:#fff;display:block;object-fit:contain}
.brand .bn{font-size:15px;font-weight:600;letter-spacing:.06em}
.brand .bs{font-size:10px;color:rgba(255,255,255,.55);letter-spacing:.12em;margin-top:1px}
.menu{flex:1;padding:6px 0 24px;position:relative;z-index:2;overflow-y:auto;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.18) transparent}
.menu::-webkit-scrollbar{width:4px}.menu::-webkit-scrollbar-thumb{background:rgba(255,255,255,.18);border-radius:4px}
.menu-group{padding:15px 20px 5px;font-size:10px;line-height:1;color:rgba(255,255,255,.4);letter-spacing:.12em}
.mi{display:flex;align-items:center;gap:11px;height:42px;padding:0 20px;font-size:13px;color:rgba(255,255,255,.72);position:relative;text-decoration:none;cursor:pointer}
.mi:hover{color:#fff;background:rgba(255,255,255,.06)}
.mi.on{color:#fff;background:rgba(255,255,255,.13);font-weight:500}
.mi.on::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#fff}
.mi svg{width:15px;height:15px;flex-shrink:0;opacity:.85}
.side-foot{padding:14px 20px;font-size:10px;color:rgba(255,255,255,.4);position:relative;z-index:2;letter-spacing:.04em}

/* ---------- 主区 ---------- */
.main{flex:1;display:flex;flex-direction:column;min-width:0}
.topbar{height:54px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 24px;gap:8px;flex-shrink:0}
.crumb{font-size:13px;color:var(--mute);display:flex;align-items:center;gap:8px}
.crumb b{color:var(--ink);font-weight:500}
.crumb .sep{color:#C3CDDB}
.top-right{margin-left:auto;display:flex;align-items:center;gap:16px}
.role{display:flex;align-items:center;gap:9px;font-size:13px;color:var(--body)}
.role .avatar{width:28px;height:28px;border-radius:50%;background:var(--blue-soft);color:var(--blue);display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600}
.role .rtag{font-size:11px;color:var(--blue);background:var(--blue-soft);border-radius:3px;padding:2px 7px}
.content{padding:20px 24px 32px;flex:1;overflow:auto}
.pagehead{margin-bottom:16px}
.pagehead h2{font-size:18px;font-weight:600;color:var(--ink)}
.pagehead p{font-size:12px;color:var(--mute);margin-top:4px}
.pagehead p b{color:var(--body)}

/* ---------- 超大数字统计卡 ---------- */
.statrow{display:grid;gap:14px;margin-bottom:18px;grid-template-columns:repeat(4,1fr)}
.stat{background:#fff;border:1px solid var(--line);border-radius:6px;padding:16px 20px 14px;box-shadow:var(--shadow)}
.stat .stat-line{border-top:1px solid var(--line);margin-bottom:12px}
.stat .stat-num{font-size:52px;font-weight:300;color:var(--ink);line-height:1;letter-spacing:-.01em;font-variant-numeric:tabular-nums}
.stat .stat-num span{font-size:13px;font-weight:400;color:var(--mute);margin-left:5px}
.stat .stat-num.accent{color:var(--blue)}
.stat .stat-num.warn{color:var(--amber)}
.stat .stat-num.bad{color:var(--red)}
.stat .stat-label{font-size:12px;color:var(--mute);margin-top:10px;display:flex;align-items:center;gap:8px}
.stat .golink{font-size:11px;color:var(--blue);margin-left:auto;cursor:pointer}
.stat .golink:hover{text-decoration:underline}
.stat .stat-label .delta{font-size:11px;color:var(--body);margin-left:auto}
.stat.lg .stat-num{font-size:62px}
.ratebar{display:inline-flex;align-items:center;gap:8px}
.ratebar .rb{width:72px;height:5px;background:#EDF1F7;border-radius:3px;overflow:hidden}
.ratebar .rb i{display:block;height:100%;background:var(--blue);border-radius:3px}

/* ---------- 卡片 ---------- */
.card{background:#fff;border:1px solid var(--line);border-radius:6px;box-shadow:var(--shadow);overflow:hidden;margin-bottom:14px}
.card-h{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid var(--line)}
.card-h h3{font-size:14px;font-weight:600;color:var(--ink)}
.card-h .hint{font-size:12px;color:var(--mute)}

/* ---------- 按钮 ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:none;border-radius:4px;font-family:inherit;cursor:pointer;font-weight:500;text-decoration:none;white-space:nowrap;line-height:1}
.btn-pri{background:var(--blue);color:#fff;height:32px;padding:0 16px;font-size:13px}
.btn-pri:hover{background:var(--blue-deep)}
.btn-pri:disabled{background:#B9CBE6;cursor:default}
.btn-ghost{background:#fff;color:var(--body);border:1px solid #D5DCE6;height:32px;padding:0 14px;font-size:13px}
.btn-ghost:hover{border-color:var(--blue);color:var(--blue)}
.btn-lg{height:42px;font-size:14px;padding:0 22px;width:100%;letter-spacing:.06em}
.btn-sm{height:28px;padding:0 12px;font-size:12px}
.alink{color:var(--blue);font-size:13px;cursor:pointer;text-decoration:none}
.alink:hover{color:var(--blue-deep);text-decoration:underline}
.alink.red{color:var(--red)}
.alink.gray{color:var(--mute)}

/* ---------- 筛选栏 ---------- */
.filterbar{background:#fff;border:1px solid var(--line);border-radius:6px;box-shadow:var(--shadow);padding:14px 18px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.fitem{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--body)}
.fitem label{color:var(--mute);font-size:12px;white-space:nowrap}
.month-picker{position:relative}.month-picker-trigger{position:relative;width:180px;height:32px;padding:0 38px 0 12px;border:1px solid #D5DCE6;border-radius:4px;background:#fff;color:var(--body);font:inherit;text-align:left;cursor:pointer}.month-picker-trigger:after{content:'▣';position:absolute;right:12px;color:#52627a}.month-picker-panel{position:absolute;z-index:130;top:calc(100% + 4px);left:0;width:292px;padding:14px;background:#fff;border:1px solid #C9D3E0;border-radius:6px;box-shadow:0 8px 24px rgba(29,47,76,.18)}.month-picker-panel[hidden]{display:none}.month-picker-head{display:grid;grid-template-columns:36px 1fr 36px;align-items:center;margin-bottom:10px}.month-picker-head strong{text-align:center;color:var(--ink);font-size:15px}.month-picker-head button,.month-picker-grid button,.month-picker-current{border:0;background:#fff;color:var(--body);font:inherit;cursor:pointer;border-radius:4px}.month-picker-head button{height:30px;font-size:24px}.month-picker-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.month-picker-grid button{height:38px}.month-picker-head button:hover,.month-picker-grid button:hover{background:#EDF5FF;color:var(--blue)}.month-picker-grid button.selected{background:var(--blue);color:#fff;font-weight:600}.month-picker-current{display:block;margin:10px 0 0 auto;padding:6px 10px;color:var(--blue)}
.billing-range-card{position:relative;z-index:5;overflow:visible}
.billing-filterbar{display:block;margin:0;padding:18px 18px 16px;border:0;border-radius:0;box-shadow:none;background:#fff;container-type:inline-size}.billing-filter-row{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.55fr) minmax(0,.78fr) minmax(0,.95fr) 76px;align-items:center;gap:12px;width:100%}.billing-filter-row .fitem{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;min-width:0;width:100%}.billing-filter-row .fitem .sel,.billing-filter-row .fitem .ipt{width:100%;min-width:0}.billing-filter-row .month-picker{min-width:0;width:100%}.billing-filter-row .month-picker-trigger{width:100%;min-width:0}.billing-filter-query{width:76px}.billing-selection-summary{font-family:inherit;font-size:13px;line-height:1.4;font-weight:500;color:var(--body);font-variant-numeric:tabular-nums;white-space:nowrap}
@container (max-width:1100px){.billing-filter-row{grid-template-columns:repeat(2,minmax(0,1fr))}.billing-filter-query{justify-self:end}}
@container (max-width:620px){.billing-filter-row{grid-template-columns:1fr}.billing-filter-query{width:100%;justify-self:stretch}}
.sel,.ipt{height:32px;border:1px solid #D5DCE6;border-radius:4px;background:#fff;font-size:13px;color:var(--body);padding:0 10px;font-family:inherit}
select.sel,select.ipt{padding-right:26px}
.ipt{width:100%}
.daterange{display:inline-flex;align-items:center;gap:6px}
.date-picker{position:relative;display:inline-block}.date-picker-trigger{position:relative;width:150px;height:32px;padding:0 34px 0 10px;border:1px solid #D5DCE6;border-radius:4px;background:#fff;color:var(--body);font:inherit;text-align:left;white-space:nowrap;cursor:pointer}.date-picker-trigger.placeholder{color:var(--mute)}.date-picker-trigger:after{content:'▣';position:absolute;right:11px;color:#52627a}.date-picker-panel{position:absolute;z-index:140;top:calc(100% + 4px);left:0;width:300px;padding:14px;background:#fff;border:1px solid #C9D3E0;border-radius:6px;box-shadow:0 8px 24px rgba(29,47,76,.18)}.date-picker-panel[hidden]{display:none}.date-picker-head{display:grid;grid-template-columns:34px 1fr 34px;align-items:center;margin-bottom:10px}.date-picker-head strong{text-align:center;color:var(--ink);font-size:14px}.date-picker-head button,.date-picker-grid button,.date-picker-foot button{border:0;background:#fff;color:var(--body);font:inherit;cursor:pointer;border-radius:4px}.date-picker-head button{height:30px;font-size:22px}.date-picker-week,.date-picker-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:3px}.date-picker-week{margin-bottom:3px}.date-picker-week i{font-style:normal;text-align:center;color:var(--mute);font-size:11px;line-height:26px}.date-picker-grid button{height:32px;font-size:12px}.date-picker-head button:hover,.date-picker-grid button:hover{background:#EDF5FF;color:var(--blue)}.date-picker-grid button.other{color:#B0BAC8}.date-picker-grid button.today{box-shadow:inset 0 0 0 1px var(--blue)}.date-picker-grid button.selected{background:var(--blue);color:#fff;font-weight:600;box-shadow:none}.date-picker-foot{display:flex;justify-content:space-between;margin-top:8px}.date-picker-foot button{padding:6px 8px;color:var(--blue);font-size:12px}
.daterange .date-picker:last-child .date-picker-panel{left:auto;right:0}
.fspacer{flex:1}
.whitelist-filterbar{display:block;padding:14px 18px}
.whitelist-filter-primary{display:grid;grid-template-columns:120px minmax(280px,1.25fr) 150px minmax(420px,1.8fr);align-items:center;gap:14px}
.whitelist-filter-secondary{display:grid;grid-template-columns:minmax(280px,1fr) minmax(220px,.7fr) auto;align-items:center;gap:14px;margin-top:12px;padding-top:12px;border-top:1px solid #EEF1F5}
.whitelist-filter-primary .fitem,.whitelist-filter-secondary .fitem{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;min-width:0;width:100%}
.whitelist-filter-primary .fitem .sel,.whitelist-filter-primary .fitem .ipt,.whitelist-filter-secondary .fitem .sel,.whitelist-filter-secondary .fitem .ipt{width:100%;min-width:0}
.whitelist-provider-combo{width:100%;min-width:0}.whitelist-provider-combo .ipt{display:block;width:100%;padding-right:32px}.whitelist-provider-combo .search-combo-arrow{right:12px;width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:5px solid #52627a;font-size:0;line-height:0}.whitelist-provider-combo .search-combo-menu{min-width:100%;width:max-content;max-width:min(520px,80vw)}
.whitelist-region-filter{min-width:0}.whitelist-region-cascade{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;width:100%;min-width:0}.whitelist-region-cascade .sel{width:100%;min-width:0;padding-left:8px;padding-right:22px}
.whitelist-filter-buttons{display:flex;align-items:center;justify-content:flex-end;gap:10px}.whitelist-filter-buttons .btn{min-width:76px}.whitelist-filter-query{width:76px}
.whitelist-action-row{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:12px;padding-top:12px;border-top:1px solid #EEF1F5}
.org-staff-filterbar{display:block;padding:14px 18px!important}
.filter-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}.filter-actions .btn{min-width:76px}
.org-provider-filterbar{display:block!important;padding:14px 18px!important}.org-provider-filter-row{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(150px,.55fr) minmax(480px,1.7fr) auto;align-items:center;gap:14px}.org-provider-filter-row .fitem{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;min-width:0}.org-provider-region-cascade{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;min-width:0}.org-provider-region-cascade .sel{width:100%;min-width:0}.org-provider-action-row{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:12px;padding-top:12px;border-top:1px solid #EEF1F5}
.org-staff-filter-row{display:grid;align-items:center;gap:12px}.org-staff-filter-primary{grid-template-columns:minmax(250px,1.2fr) minmax(420px,2fr) minmax(130px,.65fr) minmax(150px,.75fr)}.org-staff-filter-secondary{grid-template-columns:repeat(4,minmax(145px,1fr)) auto;margin-top:12px}
.org-staff-filter-row .fitem{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;min-width:0}.org-staff-region-cascade{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;min-width:0}.org-staff-region-cascade .sel{width:100%;min-width:0}
.org-staff-filter-row .fitem .sel,.org-staff-filter-row .fitem .ipt{width:100%;min-width:0}
.org-staff-filter-query{width:76px;justify-self:end}
.org-staff-action-row{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:12px;padding-top:12px;border-top:1px solid #EEF1F5}
.institution-filterbar{display:block;padding:14px 18px}
.institution-filter-row{display:grid;grid-template-columns:minmax(150px,.8fr) minmax(180px,1fr) minmax(190px,1fr) minmax(240px,1.35fr) 76px;align-items:center;gap:12px}
.institution-filter-row .fitem{min-width:0}
.institution-filter-row .fitem .sel,.institution-filter-row .fitem .ipt{width:100%;min-width:0}
.institution-filter-query{width:76px}
.institution-action-row{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:12px;padding-top:12px;border-top:1px solid #EEF1F5}
.checkin-filterbar{display:block;padding:14px 18px}.checkin-filter-row{display:grid;grid-template-columns:minmax(220px,1.35fr) minmax(130px,.7fr) minmax(165px,.88fr) minmax(170px,.9fr) minmax(155px,.78fr);align-items:center;gap:12px}.checkin-filter-row .fitem{min-width:0}.checkin-filter-row .fitem .sel,.checkin-filter-row .fitem .ipt{width:100%;min-width:0}.checkin-period-filter{grid-column:span 3}.checkin-filter-row .daterange{width:100%}.checkin-filter-row .date-picker{flex:1;min-width:0}.checkin-filter-row .date-picker-trigger{width:100%;min-width:0}.checkin-filter-query{width:76px;justify-self:end}.checkin-action-row{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:12px;padding-top:12px;border-top:1px solid #EEF1F5}
.settlement-list-filterbar{display:block;padding:14px 18px}.settlement-list-filter-row{display:grid;grid-template-columns:minmax(210px,1.25fr) minmax(145px,.7fr) minmax(190px,.95fr) minmax(170px,.8fr);align-items:center;gap:12px}.settlement-list-filter-row .fitem{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;min-width:0}.settlement-list-filter-row .fitem .sel,.settlement-list-filter-row .fitem .ipt{width:100%;min-width:0}.settlement-period-filter{grid-column:span 2}.settlement-period-filter .daterange{width:100%}.settlement-period-filter .date-picker{flex:1;min-width:0}.settlement-period-filter .date-picker-trigger{width:100%;min-width:0}.settlement-filter-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px}.settlement-filter-actions .btn{min-width:76px}
@media(max-width:1200px){
  .billing-filter-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  .billing-filter-query{justify-self:end}
  .whitelist-filter-primary{grid-template-columns:minmax(0,.7fr) minmax(260px,1.3fr)}
  .whitelist-region-filter{grid-column:1 / -1}
  .whitelist-filter-secondary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .whitelist-filter-buttons{grid-column:1 / -1}
  .org-staff-filter-primary,.org-staff-filter-secondary{grid-template-columns:repeat(2,minmax(0,1fr))}.org-staff-region-filter,.org-staff-filter-secondary .filter-actions{grid-column:1 / -1}
  .org-provider-filter-row{grid-template-columns:1fr}.org-provider-filter-query{justify-self:end}.org-provider-action-row{flex-wrap:wrap}
  .institution-filter-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  .institution-filter-query{justify-self:end}
  .checkin-filter-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  .checkin-type-filter{grid-column:span 2}
  .checkin-period-filter{grid-column:span 2}
  .settlement-list-filter-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  .settlement-period-filter,.settlement-filter-actions{grid-column:span 2}
}
@media(max-width:820px){
  .billing-filter-row{grid-template-columns:1fr}
  .billing-filter-query{width:100%;justify-self:stretch}
  .whitelist-filter-primary,.whitelist-filter-secondary{grid-template-columns:1fr}
  .whitelist-region-filter,.whitelist-filter-buttons{grid-column:auto}
  .whitelist-filter-buttons .btn{flex:1}.whitelist-filter-query{width:auto}
  .whitelist-action-row{justify-content:flex-start;flex-wrap:wrap}
  .org-staff-filter-primary,.org-staff-filter-secondary{grid-template-columns:1fr}.org-staff-region-filter,.org-staff-filter-secondary .filter-actions{grid-column:auto}.org-staff-region-cascade{grid-template-columns:1fr}.filter-actions .btn{flex:1}
  .org-provider-region-cascade{grid-template-columns:1fr}.org-provider-filter-query{width:auto;justify-self:stretch}.org-provider-action-row{justify-content:flex-start}
  .org-staff-filter-query{width:100%;justify-self:stretch}
  .org-staff-action-row{justify-content:flex-start;flex-wrap:wrap}
  .institution-filter-row{grid-template-columns:1fr}
  .institution-filter-query{width:100%;justify-self:stretch}
  .institution-action-row{justify-content:flex-start;flex-wrap:wrap}
  .checkin-filter-row{grid-template-columns:1fr}
  .checkin-type-filter{grid-column:auto}
  .checkin-period-filter{grid-column:auto}
  .checkin-filter-query{width:100%;justify-self:stretch}
  .checkin-action-row{justify-content:flex-start;flex-wrap:wrap}
  .settlement-list-filter-row{grid-template-columns:1fr}
  .settlement-period-filter,.settlement-filter-actions{grid-column:auto}
  .settlement-filter-actions .btn{flex:1}
}
.export-ic{display:inline-block;width:11px;height:11px;border:1.4px solid currentColor;border-top:none;border-radius:0 0 2px 2px;position:relative;margin-right:2px}
.export-ic::before{content:"";position:absolute;left:3.2px;top:-7px;width:1.4px;height:6px;background:currentColor}
.export-ic::after{content:"";position:absolute;left:1px;top:-4px;width:4px;height:4px;border-right:1.4px solid currentColor;border-bottom:1.4px solid currentColor;transform:rotate(45deg)}

/* ---------- 表格 ---------- */
.table{width:100%;border-collapse:collapse}
.table th{background:var(--bg);font-size:12px;font-weight:500;color:var(--mute);text-align:left;padding:10px 14px;border-bottom:1px solid var(--line);white-space:nowrap}
.table td{font-size:13px;color:var(--body);padding:12px 14px;border-bottom:1px solid var(--line);vertical-align:middle}
.table tbody tr:hover{background:#F2F6FC}
.table tbody tr.hovered{background:#F2F6FC}
.table .tnum{font-variant-numeric:tabular-nums}
.checkin-duration-alert{display:inline-block;color:var(--red);font-weight:700}
.checkin-duration-alert .sub{color:var(--red);font-weight:600}
.table .strong{color:var(--ink);font-weight:500}
.table .sub{display:block;font-size:11px;color:var(--mute);margin-top:2px}
.table td.ops{display:table-cell;white-space:nowrap;vertical-align:middle}
.table td.ops .alink{display:inline-block;vertical-align:middle;margin-right:14px}
.table td.ops .alink:last-child{margin-right:0}
.table tr.total td{background:var(--bg);font-weight:600;color:var(--ink);border-top:1px solid var(--line)}
.settlement-table-wrap{width:100%;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
.settlement-list-table{min-width:1040px}
.settlement-candidate-table{min-width:900px}
.settlement-operation-column{min-width:174px}
.settlement-actions{display:flex;align-items:center;gap:8px;white-space:nowrap}
.settlement-action-btn{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:30px;padding:5px 10px;border:1px solid #C8D4E4;border-radius:5px;background:#fff;color:var(--blue);font:inherit;font-size:12px;line-height:1;cursor:pointer;transition:border-color .16s ease,background .16s ease,color .16s ease,box-shadow .16s ease}
.settlement-action-btn:hover{border-color:#8FB1E0;background:#F4F8FE;color:var(--blue-deep)}
.settlement-action-btn:focus-visible{outline:2px solid rgba(33,96,178,.28);outline-offset:2px}
.settlement-download-trigger{background:var(--blue);border-color:var(--blue);color:#fff}
.settlement-download-trigger:hover{background:var(--blue-deep);border-color:var(--blue-deep);color:#fff}
.settlement-download-trigger[aria-expanded="true"]{background:var(--blue-deep);border-color:var(--blue-deep)}
.settlement-download-caret{font-size:10px;transition:transform .16s ease}
.settlement-download-trigger[aria-expanded="true"] .settlement-download-caret{transform:rotate(180deg)}
.settlement-download-menu{position:fixed;z-index:1200;width:224px;padding:6px;background:#fff;border:1px solid #D5DEEA;border-radius:7px;box-shadow:0 12px 32px rgba(21,45,78,.2)}
.settlement-download-option{display:grid;grid-template-columns:28px minmax(0,1fr);width:100%;padding:10px;border:0;border-radius:5px;background:transparent;color:var(--ink);text-align:left;cursor:pointer}
.settlement-download-option:hover,.settlement-download-option:focus-visible{background:#F2F6FC;outline:0}
.settlement-download-icon{display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:5px;background:#EAF2FC;color:var(--blue);font-size:14px;font-weight:700}
.settlement-download-copy{display:grid;gap:3px;min-width:0}
.settlement-download-copy b{font-size:13px;font-weight:500;line-height:1.25}
.settlement-download-copy small{color:var(--mute);font-size:11px;line-height:1.35;white-space:normal}
.whitelist-table-wrap{width:100%;overflow-x:auto;overscroll-behavior-inline:contain}
.whitelist-table{table-layout:fixed;min-width:920px}
.whitelist-table .wl-col-name{width:9%}
.whitelist-table .wl-col-inst{width:23%}
.whitelist-table .wl-col-line{width:11%}
.whitelist-table .wl-col-dept{width:18%}
.whitelist-table .wl-col-product{width:11%}
.whitelist-table .wl-col-extra{width:20%}
.whitelist-table .wl-col-ops{width:142px}
.whitelist-table .wl-person-name{white-space:nowrap;vertical-align:top;padding-top:15px}
.whitelist-table .wl-person-inst{vertical-align:top;padding-top:15px;overflow-wrap:anywhere;word-break:break-word}
.whitelist-table .wl-role-cell{padding:0;vertical-align:top;white-space:normal}
.whitelist-table .wl-role-head-cell{background:var(--bg);vertical-align:middle}
.whitelist-table .wl-role-list{width:100%;min-width:0}
.whitelist-table .wl-role-grid{display:grid;grid-template-columns:minmax(58px,11fr) minmax(110px,18fr) minmax(92px,11fr) minmax(170px,20fr) 132px;min-width:0}
.whitelist-table .wl-role-grid-readonly{grid-template-columns:minmax(58px,11fr) minmax(110px,18fr) minmax(92px,11fr) minmax(170px,20fr)}
.whitelist-table .wl-role-grid-head{align-items:center;min-height:37px}
.whitelist-table .wl-role-grid-head>span{display:block;min-width:0;padding:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.whitelist-table .wl-role-row{align-items:stretch;min-height:52px}
.whitelist-table .wl-role-row+.wl-role-row{border-top:1px solid var(--line)}
.whitelist-table .wl-role-row>div{min-width:0;padding:11px 10px;line-height:1.5;overflow-wrap:anywhere;word-break:break-word}
.whitelist-table .wl-role-line,
.whitelist-table .wl-role-dept,
.whitelist-table .wl-role-product,
.whitelist-table .wl-role-actions{display:flex;align-items:flex-start}
.whitelist-table .wl-role-line{padding-top:12px}
.whitelist-table .wl-role-extra{white-space:normal}
.whitelist-table .wl-extra-main,
.whitelist-table .wl-extra-line{display:block;max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:break-word}
.whitelist-table .wl-not-applicable{color:var(--mute)}
.whitelist-table .wl-record-actions{display:flex;align-items:center;gap:10px;white-space:nowrap}
.whitelist-table .wl-record-actions .alink{margin:0}
@media(max-width:1200px){
  .whitelist-table .wl-role-grid{grid-template-columns:minmax(54px,11fr) minmax(100px,18fr) minmax(84px,11fr) minmax(150px,20fr) 122px}
  .whitelist-table .wl-role-grid-readonly{grid-template-columns:minmax(54px,11fr) minmax(100px,18fr) minmax(84px,11fr) minmax(150px,20fr)}
  .whitelist-table .wl-role-grid-head>span,
  .whitelist-table .wl-role-row>div{padding-left:8px;padding-right:8px}
}
.org-staff-table{table-layout:fixed}
.org-provider-table{table-layout:fixed}.org-provider-table .op-col-name{width:240px}.org-provider-table .op-col-region{width:auto}.org-provider-table .op-col-staff{width:85px}.org-provider-table .op-col-status{width:95px}.org-provider-table .op-col-ops{width:80px}.org-provider-table .provider-name-cell{font-size:14px;line-height:1.55;overflow-wrap:anywhere}.provider-region-details summary{cursor:pointer;color:var(--blue);font-weight:500;line-height:1.5}.provider-region-body{display:grid;gap:8px}.provider-region-details .provider-region-body{margin-top:10px;padding:10px 12px;background:var(--bg);border-radius:6px}.provider-region-province{display:grid;grid-template-columns:86px minmax(0,1fr);gap:10px;align-items:start}.provider-region-province>strong{color:var(--ink);font-size:13px}.provider-region-cities{display:grid;gap:5px}.provider-region-city{display:flex;align-items:baseline;gap:8px;min-width:0;line-height:1.55}.provider-region-city>span{flex:0 0 78px;color:var(--blue);font-weight:500}.provider-region-city>small{color:var(--body);font-size:12px;overflow-wrap:anywhere}
.org-provider-staff-link{appearance:none;border:0;background:none;padding:0;font:inherit;white-space:nowrap;cursor:pointer}
.org-staff-table .os-col-name{width:8%}
.org-staff-table .os-col-phone{width:12%}
.org-staff-table .os-col-provider{width:20%}
.org-staff-table .os-col-line{width:10%}
.org-staff-table .os-col-chain{width:28%}
.org-staff-table .os-col-binding{width:9%}
.org-staff-table .os-col-ops{width:180px}
.org-staff-table th:nth-child(1),
.org-staff-table td:nth-child(1),
.org-staff-table th:nth-child(2),
.org-staff-table td:nth-child(2),
.org-staff-table th:nth-child(4),
.org-staff-table td:nth-child(4),
.org-staff-table th:nth-child(6),
.org-staff-table td:nth-child(6),
.org-staff-table th:nth-child(7),
.org-staff-table td:nth-child(7){white-space:nowrap}
.org-staff-table .org-staff-provider,
.org-staff-table .org-staff-chain-cell{min-width:0;max-width:0;white-space:normal;overflow-wrap:anywhere;word-break:break-word}
.org-staff-table .org-staff-chain,
.org-staff-table .org-staff-chain-line{display:block;max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:break-word;line-height:1.55}

/* ---------- 标签 / 类别徽标 ---------- */
.tag{display:inline-flex;align-items:center;gap:5px;height:21px;padding:0 8px;border-radius:3px;font-size:11px;font-weight:500;line-height:1;white-space:nowrap}
.tag::before{content:"";width:4px;height:4px;border-radius:50%;background:currentColor}
.tag-pass{color:var(--green);background:var(--green-bg)}
.tag-reject{color:var(--red);background:var(--red-bg)}
.tag-pending{color:var(--amber);background:var(--amber-bg)}
.tag-info{color:var(--blue);background:var(--blue-soft)}
.tag-gray{color:var(--mute);background:#F0F2F6}
.tag.plain::before{display:none}
.cat{font-size:10px;font-weight:600;border-radius:3px;padding:2px 7px;background:var(--blue-soft);color:var(--blue);white-space:nowrap}
.cat.pov{background:#FDF1E6;color:#B7791F}
.cat.hosp{background:#EAF3EE;color:var(--green)}
.intag{font-size:10px;font-weight:600;border-radius:3px;padding:2px 6px;background:#EEF2F7;color:var(--mute)}
.outtag{font-size:10px;font-weight:600;border-radius:3px;padding:2px 6px;background:var(--amber-bg);color:var(--amber)}

/* ---------- 勾选框 ---------- */
.ckb{display:inline-block;width:15px;height:15px;border:1px solid #C3CDDB;border-radius:3px;background:#fff;vertical-align:middle;position:relative;cursor:pointer}
.ckb.on{background:var(--blue);border-color:var(--blue)}
.ckb.on::after{content:"";position:absolute;left:4.5px;top:1.5px;width:4px;height:8px;border-right:1.6px solid #fff;border-bottom:1.6px solid #fff;transform:rotate(42deg)}
.ckb.dis{background:#F0F2F6;cursor:not-allowed}
.selinfo{font-size:12px;color:var(--mute)}
.selinfo b{color:var(--blue);font-weight:600}

/* ---------- 分页 ---------- */
.pager{display:flex;align-items:center;justify-content:flex-end;gap:6px;padding:14px 18px;font-size:12px;color:var(--mute)}
.pager .pg{min-width:26px;height:26px;border:1px solid var(--line);border-radius:4px;display:inline-flex;align-items:center;justify-content:center;font-size:12px;color:var(--body);background:#fff;padding:0 6px;cursor:pointer}
.pager .pg.on{background:var(--blue);border-color:var(--blue);color:#fff}
.pager .pg.dots{border:none;cursor:default;background:transparent}
.pager .total{margin-right:8px}
/* 角色功能权限进度条 */
.perm-bar{display:inline-flex;align-items:center;gap:8px}
.perm-bar .pb{width:72px;height:5px;background:#EDF1F7;border-radius:3px;overflow:hidden}
.perm-bar .pb i{display:block;height:100%;background:var(--blue);border-radius:3px}
/* 角色编辑:功能权限树 + 数据范围 */
.role-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:18px}
.role-grid .dsec{font-size:13px;font-weight:600;color:var(--ink);margin:0 0 10px;padding-bottom:8px;border-bottom:1px solid var(--line)}
.ptree{display:flex;flex-direction:column;gap:10px}
.pmod{border:1px solid var(--line);border-radius:6px;overflow:hidden}
.pmod-h{display:flex;align-items:center;gap:8px;padding:9px 12px;background:#F7F9FC;font-size:13px;font-weight:600;color:var(--ink)}
.pmod-h .pcount{margin-left:auto;font-size:11px;color:var(--mute);font-weight:400}
.pmod-items{display:flex;flex-wrap:wrap;gap:9px 18px;padding:11px 12px}
.pitem{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--body);cursor:pointer}
.scope-block{margin-bottom:18px}
.scope-block .sb-label{font-size:13px;font-weight:600;color:var(--ink);margin-bottom:9px}
.multi-picker{position:relative}
.multi-picker-trigger{width:100%;min-height:42px;padding:7px 38px 7px 12px;border:1px solid #D5DCE6;border-radius:5px;background:#fff;color:var(--ink);display:flex;align-items:center;gap:6px;cursor:pointer;text-align:left;position:relative}
.multi-picker-trigger:hover,.multi-picker.open .multi-picker-trigger{border-color:var(--blue)}
.multi-picker-trigger:after{content:"";position:absolute;right:15px;top:50%;width:7px;height:7px;border-right:2px solid #667085;border-bottom:2px solid #667085;transform:translateY(-65%) rotate(45deg);transition:transform .15s}
.multi-picker.open .multi-picker-trigger:after{transform:translateY(-25%) rotate(225deg)}
.multi-picker-summary{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.multi-picker-summary.placeholder{color:#8A94A6}
.multi-picker-panel{display:none;position:absolute;z-index:30;left:0;right:0;top:calc(100% + 4px);background:#fff;border:1px solid #C9D2DF;border-radius:6px;box-shadow:0 8px 24px rgba(25,42,70,.14);overflow:hidden}
.multi-picker.open .multi-picker-panel{display:block}
.multi-picker-search-wrap{padding:10px;border-bottom:1px solid #E8ECF2}
.multi-picker-search{width:100%;height:36px;padding:0 10px;border:1px solid #D5DCE6;border-radius:4px;outline:none}
.multi-picker-search:focus{border-color:var(--blue)}
.multi-picker-actions{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;border-bottom:1px solid #EEF1F5;font-size:13px}
.multi-picker-action{color:var(--blue);cursor:pointer}
.multi-picker-options{max-height:220px;overflow:auto;padding:5px 0}
.multi-picker-option{display:flex;align-items:center;gap:9px;min-height:38px;padding:7px 12px;cursor:pointer}
.multi-picker-option[hidden]{display:none}
.multi-picker-option:hover{background:#F3F7FD}
.multi-picker-option span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.multi-picker-empty{padding:24px 12px;text-align:center;color:#8A94A6;font-size:13px}
.radio-row{display:flex;flex-direction:column;gap:9px}
.radio-row label{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--body);cursor:pointer}
.sp-pick{margin-top:10px;border:1px dashed #C3CDDB;border-radius:6px;padding:11px;max-height:170px;overflow:auto;display:flex;flex-wrap:wrap;gap:9px 16px}

/* ---------- 弹窗(真实遮罩) ---------- */
.mask{position:fixed;inset:0;background:rgba(26,34,51,.45);display:flex;align-items:center;justify-content:center;z-index:100}
.modal{background:#fff;border-radius:8px;box-shadow:0 16px 48px rgba(16,34,68,.3);width:560px;max-height:84vh;display:flex;flex-direction:column;overflow:hidden}
.modal-h{display:flex;align-items:center;justify-content:space-between;padding:16px 22px;border-bottom:1px solid var(--line)}
.modal-h h3{font-size:15px;font-weight:600;color:var(--ink)}
.modal-b{padding:20px 22px;overflow:auto}
.modal-f{display:flex;justify-content:flex-end;gap:10px;padding:14px 22px;border-top:1px solid var(--line);background:var(--bg)}
.modal-x{width:28px;height:28px;flex:0 0 28px;position:relative;display:block;padding:0;border:0;border-radius:4px;background:transparent;cursor:pointer;opacity:.45;font-size:0;line-height:0}
.modal-x:hover{background:#F0F3F7;opacity:.8}
.modal-x:focus-visible{outline:2px solid rgba(31,94,183,.35);outline-offset:1px}
.modal-x::before,.modal-x::after{content:"";position:absolute;left:50%;top:50%;width:14px;height:1.6px;background:var(--ink)}
.modal-x::before{transform:translate(-50%,-50%) rotate(45deg)}
.modal-x::after{transform:translate(-50%,-50%) rotate(-45deg)}

/* ---------- 详情弹窗(双栏) ---------- */
.modal.dmodal{width:1080px;max-width:94vw;height:84vh;max-height:84vh}
.modal.settlement-detail-modal{width:1080px;max-width:94vw}.settlement-detail-modal .modal-f{flex-wrap:wrap}.settlement-detail-table{max-width:100%;overflow:auto;border:1px solid var(--line);border-radius:5px}.settlement-detail-table .table{min-width:860px}.settlement-detail-table .table th,.settlement-detail-table .table td{padding:9px 10px}
.settlement-audit-list{display:grid;gap:0;border:1px solid var(--line);border-radius:6px;background:#fff;overflow:hidden}.settlement-audit-item{position:relative;display:grid;grid-template-columns:14px minmax(0,1fr);gap:10px;padding:11px 14px;border-bottom:1px solid var(--line)}.settlement-audit-item:last-child{border-bottom:0}.settlement-audit-dot{width:8px;height:8px;margin-top:5px;border-radius:50%;background:var(--blue);box-shadow:0 0 0 3px #EAF2FC}.settlement-audit-item b{display:inline-block;margin-right:8px;color:var(--ink);font-size:13px}.settlement-audit-item .tag{vertical-align:middle}.settlement-audit-item p{margin:4px 0 0;color:var(--mute);font-size:12px;line-height:1.55}
.modal.settlement-preview-modal{height:88vh;max-height:88vh}.settlement-preview-modal .modal-b{background:#F7F9FC}.settlement-preview-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}.settlement-preview-summary span{padding:12px 14px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--mute);font-size:12px}.settlement-preview-summary b{display:block;margin-top:4px;color:var(--ink);font-size:16px;font-variant-numeric:tabular-nums}.settlement-preview-group{margin-top:14px;padding:16px;border:1px solid var(--line);border-radius:7px;background:#fff}.settlement-preview-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:12px}.settlement-preview-head div{min-width:0}.settlement-preview-head b{display:block;color:var(--ink);font-size:14px}.settlement-preview-head span{display:block;margin-top:4px;color:var(--mute);font-size:12px;line-height:1.5}.settlement-preview-head strong{color:var(--blue);font-size:18px;font-variant-numeric:tabular-nums;white-space:nowrap}
@media(max-width:760px){.settlement-preview-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.settlement-preview-head{display:block}.settlement-preview-head strong{display:block;margin-top:8px}}
.dbody{display:flex;flex:1;min-height:0;max-height:none;overflow-y:scroll;overflow-x:hidden;scrollbar-gutter:stable}
.dbody::-webkit-scrollbar{width:8px}.dbody::-webkit-scrollbar-thumb{background:#C3CDDB;border-radius:8px}.dbody::-webkit-scrollbar-track{background:#F2F4F7}
.plan-detail-body{padding:20px 24px}
.dleft{flex:1.25;padding:20px 24px;border-right:1px solid var(--line)}
.dright{flex:1;padding:20px 24px;background:var(--bg)}
.dsec{font-size:13px;font-weight:600;color:var(--ink);margin:18px 0 10px;display:flex;align-items:center;gap:7px}
.dsec::before{content:"";width:3px;height:12px;background:var(--blue);border-radius:1px}
.dsec:first-child{margin-top:0}
.coords{font:11px monospace;color:var(--mute);background:#fff;border:1px solid var(--line);border-radius:3px;padding:1px 6px}
.editlog{background:#fff;border:1px solid var(--line);border-radius:5px;padding:10px 12px;font-size:12px;line-height:1.8;color:var(--body)}
.editlog .orig{color:var(--mute);text-decoration:line-through;display:block;margin-top:5px}
.editlog .who{font-size:11px;color:var(--amber);margin-top:6px;display:block}
.pwall{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.pwall .ph{height:130px;flex-direction:column;gap:5px}
.pwall .pmeta{font:10px monospace;color:#92A0B5}
.pwall .cell .cap{display:flex;justify-content:space-between;align-items:center;margin-top:6px;font-size:11px;color:var(--mute)}
.pwall .ph.pending{border:1.5px dashed var(--amber);background:#FDF9EE;color:var(--amber)}
.pwall .cell{min-width:0}
.checkin-photo{display:block;border:1px solid var(--line);border-radius:5px;overflow:hidden;background:#fff;cursor:zoom-in}
.checkin-photo img{display:block;width:100%;height:180px;object-fit:contain}
.checkin-photo-error{display:flex;align-items:center;justify-content:center;min-height:180px;padding:12px;background:#F7F9FC;color:var(--mute);font-size:12px;text-align:center;border-radius:5px}
.checkin-photo img[hidden],.checkin-photo-error[hidden]{display:none}
.checkin-supplement{grid-column:1/-1;border-top:1px solid var(--line);padding-top:12px;display:grid;gap:10px}
.checkin-supplement-review{display:flex;align-items:center;gap:10px}
.checkin-photo-reload{margin-top:12px}
.ph{background:repeating-linear-gradient(45deg,#E9EFF7 0 10px,#F1F5FA 10px 20px);border:1px solid var(--line);border-radius:5px;display:flex;align-items:center;justify-content:center;color:#92A0B5;font:11px/1.5 monospace;text-align:center}

/* ---------- 地图占位 + 地址解析 ---------- */
.addr-line{display:flex;gap:10px}
.addr-line .ipt{flex:1}
.parse-ok{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--green);margin-bottom:12px}
.parse-ok::before{content:"✓";width:15px;height:15px;border-radius:50%;background:var(--green);color:#fff;font-size:10px;display:inline-flex;align-items:center;justify-content:center}
.mini-map{height:220px;position:relative;margin-bottom:14px}
.lnglat{display:flex;gap:12px}.lnglat .frow{flex:1}
.map-ph{position:relative;background:linear-gradient(rgba(212,222,235,.55) 1px,transparent 1px),linear-gradient(90deg,rgba(212,222,235,.55) 1px,transparent 1px),linear-gradient(168deg,#EDF2F8 0%,#E4EBF4 100%);background-size:38px 38px,38px 38px,100% 100%;overflow:hidden;border-radius:5px;border:1px solid var(--line)}
.map-ph .road{position:absolute;background:#fff;box-shadow:0 0 0 1px #DCE4EE}
.map-ph .road.h{left:-5%;width:110%;height:12px;transform:rotate(-3deg)}
.map-ph .road.v{top:-5%;height:110%;width:9px;transform:rotate(9deg)}
.map-note{position:absolute;right:8px;bottom:8px;font:10px monospace;color:#92A0B5;background:rgba(255,255,255,.8);padding:2px 6px;border-radius:3px}
.drag-tip{position:absolute;left:50%;top:14%;transform:translateX(-50%);background:#1A2233;color:#fff;font-size:11px;border-radius:4px;padding:5px 10px;opacity:.88;z-index:4;white-space:nowrap}
.drag-tip::after{content:"";position:absolute;left:50%;bottom:-4px;transform:translateX(-50%) rotate(45deg);width:8px;height:8px;background:#1A2233}
.ring{position:absolute;border:1.5px solid rgba(30,91,184,.45);background:rgba(30,91,184,.08);border-radius:50%}
.pin{position:absolute;width:24px;height:24px;transform:translate(-50%,-100%)}
.pin::before{content:"";position:absolute;inset:0;background:var(--blue);border-radius:50% 50% 50% 0;transform:rotate(-45deg);box-shadow:0 2px 5px rgba(30,91,184,.4)}
.pin::after{content:"";position:absolute;left:8px;top:7px;width:8px;height:8px;background:#fff;border-radius:50%}

/* ---------- 提示条 ---------- */
.notice{display:flex;gap:8px;align-items:flex-start;padding:9px 12px;border-radius:5px;font-size:12px;line-height:1.6;margin-bottom:14px}
.notice .ic{width:14px;height:14px;border-radius:50%;flex-shrink:0;margin-top:2px;color:#fff;font-size:10px;display:flex;align-items:center;justify-content:center;font-weight:700}
.notice-green{background:var(--green-bg);color:var(--green)}.notice-green .ic{background:var(--green)}
.notice-red{background:var(--red-bg);color:var(--red)}.notice-red .ic{background:var(--red)}
.notice-amber{background:var(--amber-bg);color:var(--amber)}.notice-amber .ic{background:var(--amber)}
.notice-blue{background:var(--blue-soft);color:var(--blue-deep)}.notice-blue .ic{background:var(--blue)}

/* ---------- 表单 ---------- */
.frow{margin-bottom:16px}
.frow label{display:block;font-size:13px;color:var(--ink);font-weight:500;margin-bottom:7px}
.frow label .req{color:var(--red);margin-right:3px}
.frow .ipt,.frow .sel{width:100%}
.frow textarea,.tarea{width:100%;border:1px solid #D5DCE6;border-radius:4px;font-family:inherit;font-size:13px;color:var(--body);padding:9px 11px;line-height:1.7;resize:none}
.fhint{font-size:11px;color:var(--mute);margin-top:6px;line-height:1.6}
.frow2{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}
.modal.signature-modal{max-width:calc(100vw - 32px)}
.signature-editor{overflow:hidden;border:1px solid #CFD8E6;border-radius:8px;background:#fff}
.signature-canvas-shell{position:relative;background:#fff}
.signature-canvas{display:block;width:100%;height:auto;aspect-ratio:8/3;background:#fff;border:0;touch-action:none;cursor:crosshair}
.signature-canvas-state{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(255,255,255,.86);color:var(--mute);font-size:12px;line-height:1.7;text-align:center;pointer-events:none}
.signature-canvas-state[hidden]{display:none}
.signature-canvas-state.error{color:var(--red);background:rgba(255,250,249,.92)}
.signature-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0;padding:10px 12px;border-top:1px solid var(--line);background:#FAFBFC}
.signature-actions .btn:disabled{opacity:.48;cursor:not-allowed;border-color:#D5DCE6;color:var(--mute);background:#F7F8FA}
.signature-file-input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.signature-import-status{min-width:0;flex:1;font-size:11px;line-height:1.5;color:var(--mute);overflow-wrap:anywhere}
.signature-import-status.ready{color:var(--green)}
.signature-import-status.error{color:var(--red)}
.signature-upload-guide{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:14px;align-items:center;margin-top:10px;padding:12px;border:1px solid #DCE3ED;border-radius:8px;background:#F8FAFD}
.signature-guide-title{margin-bottom:6px;color:var(--ink);font-size:12px;font-weight:600}
.signature-guide-copy ul{margin:0;padding-left:17px;color:var(--mute);font-size:11px;line-height:1.65}
.signature-guide-copy li+li{margin-top:2px}
.signature-guide-copy b{color:var(--body);font-weight:600}
.signature-guide-example{min-width:0;margin:0}
.signature-guide-example svg{display:block;width:100%;height:auto;border-radius:6px;background:#fff}
.signature-guide-example figcaption{margin-top:5px;color:var(--mute);font-size:10px;line-height:1.45;text-align:center}
.signature-guide-example figcaption span{color:var(--green);font-weight:600}
.signature-modal .modal-f{flex-wrap:wrap}
@media(max-width:640px){
  .modal.signature-modal{max-width:calc(100vw - 20px);max-height:92vh}
  .modal.signature-modal .frow2{grid-template-columns:1fr}
  .signature-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .signature-actions .btn{width:100%;height:40px}
  .signature-import-status{grid-column:1/-1}
  .signature-upload-guide{grid-template-columns:1fr}
  .signature-guide-example{width:100%;max-width:280px;margin:0 auto}
}
.option-grid{display:flex;flex-wrap:wrap;gap:8px 16px;padding:10px 12px;border:1px solid #D5DCE6;border-radius:5px;background:#FAFBFC;min-height:42px}
.option-check{display:inline-flex;align-items:center;gap:6px;font-size:12px!important;font-weight:400!important;color:var(--body)!important;margin:0!important;cursor:pointer}
.option-check input{margin:0}
.option-check.history{color:var(--amber)!important}
.account-org-region-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px 16px;align-items:start}
.account-org-region-grid .account-org-region-all{grid-column:1/-1;padding-bottom:9px;border-bottom:1px solid #E2E7EE}
.account-org-region-grid .option-check{min-width:0}
.staff-district-grid .option-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(108px,1fr));gap:12px 14px;align-items:start}
.staff-district-grid .option-check{display:grid;grid-template-columns:18px minmax(0,1fr);gap:6px;width:100%;min-width:0;align-items:start}
.staff-district-grid .option-check input{width:16px;height:16px;margin:1px 0 0}
.staff-district-grid .option-check span{min-width:0;line-height:1.45;white-space:normal;overflow-wrap:anywhere;word-break:break-word}
.option-empty{font-size:12px;color:var(--mute);padding:10px 12px;border:1px dashed #D5DCE6;border-radius:5px;background:#FAFBFC}

/* ---------- 导入向导 ---------- */
.modal.wmodal{width:880px;max-width:94vw}
.wsteps{display:flex;align-items:flex-start;padding:18px 40px 4px}
.wstep{flex:1;display:flex;flex-direction:column;align-items:center;gap:7px;position:relative;text-align:center}
.wstep .wdot{width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;background:#EDF1F7;color:var(--mute);position:relative;z-index:2}
.wstep.done .wdot{background:var(--green);color:#fff}
.wstep.now .wdot{background:var(--blue);color:#fff}
.wstep .wl{font-size:12px;color:var(--mute)}
.wstep.done .wl,.wstep.now .wl{color:var(--ink);font-weight:500}
.wstep::after{content:"";position:absolute;top:12px;left:calc(50% + 16px);right:calc(-50% + 16px);height:1.5px;background:#E5EAF1}
.wstep:last-child::after{display:none}
.wstep.done::after{background:var(--green)}
.err-row td{background:var(--red-bg) !important}
.err-msg{font-size:11px;color:var(--red)}
.imp-stats{display:flex;gap:14px;margin-bottom:16px}
.imp-stats .stat{flex:1;padding:12px 16px}
.imp-stats .stat-num{font-size:40px}
.import-sync-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:14px}.import-sync-card{display:grid;gap:7px;padding:14px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--body);font-size:12px}.import-sync-card b{padding-bottom:7px;border-bottom:1px solid var(--line);color:var(--ink);font-size:14px}.import-sync-card span{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.import-sync-card strong{color:var(--blue);font-size:16px;font-variant-numeric:tabular-nums}
.wupload{border:1.5px dashed #C3CDDB;border-radius:8px;padding:38px;text-align:center;color:var(--mute);font-size:13px;cursor:pointer;background:var(--bg)}
.wupload:hover{border-color:var(--blue);color:var(--blue)}
.wizard-review{flex:1;min-height:0;max-height:calc(84vh - 205px);overflow:auto;padding:14px 24px 10px}
.wizard-table-wrap{border:1px solid var(--line);border-radius:5px;overflow:auto;background:#fff}
.wizard-table-wrap .table{min-width:760px}
.wizard-table-wrap .table tr:last-child td{border-bottom:0}
.wizard-preview-table-wrap{width:100%;max-width:100%;max-height:clamp(220px,calc(84vh - 330px),420px);overflow-x:auto;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-color:#8D9AAF #EEF2F6;scrollbar-width:auto}
.wizard-preview-table-wrap .table{min-width:var(--wizard-preview-min-width,760px)}
.wizard-preview-table-wrap .table thead th{position:sticky;top:0;z-index:1;box-shadow:0 1px 0 var(--line)}
.wizard-preview-table-wrap::-webkit-scrollbar{width:10px;height:12px}
.wizard-preview-table-wrap::-webkit-scrollbar-track{background:#EEF2F6;border-radius:8px}
.wizard-preview-table-wrap::-webkit-scrollbar-thumb{background:#8D9AAF;border:2px solid #EEF2F6;border-radius:8px}
.wizard-preview-table-wrap::-webkit-scrollbar-thumb:hover{background:#6F7F96}
.dup-review{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.dup-review-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:10px}
.dup-review-head>div:first-child{display:flex;align-items:baseline;gap:10px}
.dup-review-head b{font-size:14px;color:var(--ink)}
.dup-review-head span{font-size:11px;color:var(--mute)}
.dup-review-head>div:last-child{display:flex;gap:8px}
.dup-table{min-width:800px!important}
.dup-table td{vertical-align:top}
.dup-object b{display:block;color:var(--ink);font-weight:600;margin-bottom:4px}
.dup-object span,.dup-source{display:block;font-size:11px;color:var(--mute);line-height:1.6;margin-top:4px}
.dup-diff{display:grid;grid-template-columns:58px minmax(70px,1fr) 14px minmax(70px,1fr);align-items:start;gap:5px;font-size:11px;line-height:1.6;margin-bottom:3px}
.dup-diff span{color:var(--mute)}
.dup-diff del{color:var(--red);text-decoration:none;background:var(--red-bg);padding:0 4px;border-radius:3px}
.dup-diff i{color:var(--mute);font-style:normal;text-align:center}
.dup-diff b{color:var(--green);font-weight:500;background:var(--green-bg);padding:0 4px;border-radius:3px}
.dup-action{width:112px}

/* ---------- 计划详情双栏 ---------- */
.cols{display:flex;gap:24px}.cols .c1{flex:1.3}.cols .c2{flex:1}
.mini-stats{display:flex;gap:10px;margin-top:4px}
.mini-stats .ms{flex:1;background:var(--bg);border:1px solid var(--line);border-radius:5px;padding:10px 8px;text-align:center}
.mini-stats .ms b{display:block;font-size:22px;font-weight:300;color:var(--ink);font-variant-numeric:tabular-nums}
.mini-stats .ms b.warn{color:var(--amber)}
.mini-stats .ms span{font-size:11px;color:var(--mute)}

/* ---------- 时间线 ---------- */
.tl{padding:2px 0 0 5px}
.tl-item{position:relative;padding:0 0 16px 16px;border-left:1px solid var(--line)}
.tl-item:last-child{padding-bottom:0;border-left-color:transparent}
.tl-dot{position:absolute;left:-4.5px;top:3px;width:8px;height:8px;border-radius:50%;background:#C3CDDB;border:2px solid #fff;box-shadow:0 0 0 1px #C3CDDB}
.tl-item.done .tl-dot{background:var(--green);box-shadow:0 0 0 1px var(--green)}
.tl-item.now .tl-dot{background:var(--blue);box-shadow:0 0 0 1px var(--blue)}
.tl-item.bad .tl-dot{background:var(--red);box-shadow:0 0 0 1px var(--red)}
.tl-t{font-size:13px;font-weight:500;color:var(--ink)}
.tl-d{font-size:11px;color:var(--mute);margin-top:2px;line-height:1.6}

/* ---------- Tabs ---------- */
.tabs{display:flex;gap:26px;border-bottom:1px solid var(--line);padding:0 18px}
.tabx{padding:13px 2px;font-size:13px;color:var(--body);cursor:pointer;position:relative}
.tabx.on{color:var(--blue);font-weight:600}
.tabx.on::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--blue)}

/* ---------- 规则配置 Tabs ---------- */
.config-wrap{max-width:980px}
.config-shell{margin-bottom:0}
.config-tabs{gap:30px;padding:0 26px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
.config-tabs::-webkit-scrollbar{display:none}
.config-tabs .tabx{border:0;background:transparent;font-family:inherit;white-space:nowrap}
.config-tabs .tabx:focus-visible{outline:2px solid rgba(30,91,184,.28);outline-offset:-2px;border-radius:3px}
.config-panel{display:none;min-height:326px;padding:24px 26px 26px}
.config-panel.on{display:block}
.config-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:20px}
.config-panel-head h3{font-size:15px;font-weight:600;color:var(--ink)}
.config-panel-head p{font-size:12px;color:var(--mute);line-height:1.7;margin-top:5px}
.config-panel-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.config-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px}
.config-grid .frow{margin-bottom:18px}
.config-grid .span-2{grid-column:1 / -1}
.config-range{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.config-range .ipt{width:120px}
.billing-cap-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,230px);align-items:center;gap:24px;margin:0 0 16px;padding:16px;border:1px solid #DCE3EC;border-radius:7px;background:#FAFBFC}
.billing-cap-copy{display:flex;flex-direction:column;gap:5px;min-width:0}
.billing-cap-title{font-size:14px;font-weight:600;color:var(--ink)}
.billing-cap-description{font-size:12px;line-height:1.65;color:var(--mute)}
.billing-cap-field{display:flex;flex-direction:column;gap:6px;color:var(--mute);font-size:12px}
.billing-cap-input{display:grid;grid-template-columns:32px minmax(0,1fr);align-items:center;overflow:hidden;border:1px solid var(--line);border-radius:4px;background:#fff}
.billing-cap-input:focus-within{border-color:var(--blue);box-shadow:0 0 0 2px rgba(30,91,184,.08)}
.billing-cap-input b{display:flex;align-items:center;justify-content:center;height:34px;border-right:1px solid var(--line);color:var(--body);font-size:13px;font-weight:500}
.billing-cap-input .ipt{width:100%;min-width:0;border:0;box-shadow:none}
.billing-rule-guide{margin:0 0 16px}
.billing-rule-list{display:grid;gap:14px}
.billing-rule-card{border:1px solid #DCE3EC;border-radius:7px;background:#FAFBFC;padding:16px}
.billing-rule-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:15px;padding-bottom:13px;border-bottom:1px solid #E5EAF1}
.billing-rule-head>div:first-child{display:flex;flex-direction:column;gap:5px;min-width:0}
.billing-rule-index{font-size:14px;font-weight:600;color:var(--ink)}
.billing-rule-expression{font-size:12px;color:var(--blue);line-height:1.5;word-break:break-word}
.billing-rule-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.billing-rule-actions .btn[disabled]{opacity:.42;cursor:not-allowed}
.billing-rule-delete{color:var(--red)}
.billing-rule-fields{display:grid;grid-template-columns:minmax(180px,1fr) minmax(150px,210px);gap:14px;margin-bottom:16px}
.billing-rule-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.billing-rule-field label{font-size:12px;color:var(--mute)}
.billing-rule-field .ipt{width:100%;min-width:0}
.billing-condition-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px;color:var(--ink);font-size:12px;font-weight:600}
.billing-condition-list{display:grid;gap:8px}
.billing-condition-row{display:grid;grid-template-columns:90px 72px minmax(100px,1fr) auto;align-items:center;gap:9px;padding:9px 10px;border:1px solid #E1E7EF;border-radius:5px;background:#fff}
.billing-condition-subject{font-size:12px;color:var(--body);font-weight:500}
.billing-condition-operator,.billing-condition-value{width:100%;min-width:0}
.billing-condition-remove{color:var(--red)}
.billing-condition-empty{padding:10px;border:1px dashed #D8E0EA;border-radius:5px;background:#fff}
.billing-rule-empty{border:1px dashed #D8E0EA;border-radius:6px;background:#FAFBFC}
.billing-cap-hit{color:#B45309;font-weight:500;white-space:normal}
.billing-cap-hit s{color:var(--mute);font-weight:400}
.billing-selection-summary{max-width:72%;white-space:normal;text-align:right}
.config-actions{display:flex;align-items:center;justify-content:flex-end;padding-top:16px}
.config-actions .btn{min-width:108px}
.prodcard{border:1px solid var(--line);border-radius:6px;padding:16px;margin-bottom:14px;background:#FAFBFC}
.prodcard:last-child{margin-bottom:0}
.prodcard.disabled{background:#F4F5F7;opacity:.7}
.prodcard-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.prod-name-field{display:grid;grid-template-columns:32px minmax(180px,240px);align-items:center;gap:10px;min-width:0}
.prod-name-field label{font-size:12px;color:var(--mute)}
.prod-name-field .ipt{width:100%;min-width:0}
.prodcard-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.prod-stage-list{display:grid;gap:14px}
.prod-stage-card{border:1px solid #DCE3EC;border-radius:6px;background:#fff;padding:14px}
.prod-stage-summary{display:grid;grid-template-columns:112px minmax(0,1fr) 36px;gap:12px;align-items:start}
.prod-stage-number-field,.prod-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.prod-stage-number-field label,.prod-field label{font-size:11px;color:var(--mute);line-height:1.4}
.prod-stage-number-field .ipt{width:100%}
.prod-stage-state-field .tarea{min-height:56px;resize:vertical}
.prod-stage-module{display:grid;grid-template-columns:minmax(210px,280px) minmax(0,1fr);gap:12px;margin-top:12px;padding-top:12px;border-top:1px solid #EDF0F4}
.prod-stage-module .ipt,.prod-stage-module .tarea{width:100%;min-width:0}
.prod-module-description{min-height:88px;resize:vertical}
.prod-stage-remove{width:36px;padding:0;color:var(--red)}
.prod-deliver-section{margin-top:14px;padding-top:12px;border-top:1px solid #EDF0F4}
.prod-deliver-head,.prod-deliver-row{display:grid;grid-template-columns:150px minmax(0,1fr) 36px;gap:10px}
.prod-deliver-head{padding:0 0 7px;font-size:11px;color:var(--mute)}
.prod-deliver-head span:last-child{text-align:center}
.prod-deliver-row{align-items:start;margin-bottom:10px}
.prod-deliver-row .ipt,.prod-deliver-row .tarea{width:100%;min-width:0}
.prod-deliver-content{min-height:72px;resize:vertical}
.prod-deliver-remove{width:36px;padding:0;color:var(--red)}
.prod-deliver-empty{padding:6px 0 10px}
.prod-add-deliver{margin-top:2px}
@media(max-width:820px){
  .config-grid{grid-template-columns:1fr}
  .config-grid .span-2{grid-column:auto}
  .config-panel-head{flex-direction:column}
  .config-panel-tools{justify-content:flex-start}
  .billing-cap-card{grid-template-columns:1fr;gap:14px}
  .billing-cap-field{max-width:260px}
  .billing-rule-head{flex-direction:column}
  .billing-rule-actions{justify-content:flex-start}
  .billing-rule-fields{grid-template-columns:1fr}
  .billing-condition-row{grid-template-columns:80px 66px minmax(80px,1fr) auto}
  .billing-selection-summary{max-width:100%;text-align:left}
  .prodcard-head{align-items:flex-start;flex-direction:column}
  .prod-name-field{width:100%;grid-template-columns:32px minmax(0,1fr)}
  .prod-stage-summary{grid-template-columns:90px minmax(0,1fr) 36px}
  .prod-stage-module{grid-template-columns:1fr}
  .prod-deliver-head{display:none}
  .prod-deliver-row{grid-template-columns:minmax(0,1fr) 36px}
  .prod-deliver-code{grid-column:1;grid-row:1}
  .prod-deliver-content{grid-column:1 / -1;grid-row:2}
  .prod-deliver-remove{grid-column:2;grid-row:1}
}
@media(max-width:520px){
  .import-sync-grid{grid-template-columns:1fr}
  .billing-rule-card{padding:13px}
  .billing-condition-row{grid-template-columns:70px 60px minmax(70px,1fr)}
  .billing-condition-remove{grid-column:1 / -1;justify-self:end}
}

/* ---------- 数据字典 ---------- */
.dictionary-wrap{max-width:1180px}
.dictionary-pagehead{display:flex;align-items:center;justify-content:space-between;gap:18px}
.dictionary-version{display:inline-flex;align-items:center;height:26px;padding:0 10px;border-radius:4px;background:var(--blue-soft);color:var(--blue);font-size:12px;font-weight:600;white-space:nowrap}
.dictionary-tabs{margin:0 0 14px;background:#fff}
.dictionary-tab-panel{min-height:280px}
.dictionary-tab-panel .dict-card{margin-top:0}
.dict-card{overflow:visible}
.dict-card-head{align-items:flex-start}
.dict-card-head>div:first-child{min-width:0}
.dict-card-head p{font-size:11px;color:var(--mute);line-height:1.6;margin-top:4px}
.dict-table{padding:0 18px 16px;overflow-x:auto}
.dict-row{display:grid;gap:10px;align-items:center;min-width:760px;padding:9px 0;border-top:1px solid var(--line)}
.dict-row.basic{grid-template-columns:minmax(150px,1fr) minmax(210px,1.5fr) 76px 72px 94px}
.dict-row.line-names{grid-template-columns:minmax(150px,1fr) minmax(190px,1.25fr) minmax(170px,1.1fr) 76px 72px 94px}
.dict-row.scoped{grid-template-columns:minmax(150px,1fr) minmax(190px,1.35fr) 150px 76px 72px 94px}
.dict-row.transaction{grid-template-columns:minmax(145px,1fr) minmax(180px,1.2fr) minmax(220px,1.5fr) 92px 92px 70px 72px 94px}
.dict-row-head{padding:9px 0 7px;border-top:0;color:var(--mute);font-size:11px}
.dict-row-list .dict-row:first-child{border-top:1px solid var(--line)}
.dict-row.disabled,.mapping-row.disabled{opacity:.58}
.dict-row .ipt{width:100%;min-width:0}
.dict-code[readonly]{background:#F2F4F7;color:var(--mute);cursor:not-allowed}
.dict-sort{text-align:right;font-variant-numeric:tabular-nums}
.dict-scope{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.dict-scope label{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:var(--body);cursor:pointer;white-space:nowrap}
.dict-enabled{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--body);cursor:pointer;white-space:nowrap}
.dict-row-op{text-align:right;white-space:nowrap}
.dict-row-op button.alink{border:0;background:transparent;font-family:inherit;padding:0}
.dict-empty{margin-top:10px;text-align:center}
.mapping-table{padding-bottom:18px}
.mapping-row{display:grid;grid-template-columns:minmax(150px,.9fr) minmax(170px,1fr) minmax(360px,2.3fr) 72px 54px;gap:10px;align-items:start;min-width:900px;padding:11px 0;border-top:1px solid var(--line)}
.mapping-row-head{padding:9px 0 7px;border-top:0;color:var(--mute);font-size:11px;align-items:center}
.mapping-row .ipt{width:100%}
.mapping-row .dict-enabled{min-height:32px}
.mapping-transactions .option-grid{padding:8px 10px;gap:7px 14px;max-height:126px;overflow:auto}
.dictionary-actions{position:sticky;bottom:0;z-index:5;display:flex;align-items:center;justify-content:flex-end;gap:16px;padding:14px 0 4px;background:linear-gradient(180deg,rgba(247,249,252,0),var(--bg) 22%)}
.dictionary-actions .btn{min-width:126px}
@media(max-width:820px){
  .dictionary-pagehead{align-items:flex-start;flex-direction:column}
  .dictionary-actions{align-items:flex-end;flex-direction:column}
}

/* ---------- 杂项 ---------- */
.muted{color:var(--mute)}
.small{font-size:12px}
.empty{padding:56px;text-align:center;color:var(--mute);font-size:13px}
.kv{display:flex;font-size:13px;line-height:1.7;margin-bottom:9px}
.kv .k{width:96px;flex-shrink:0;color:var(--mute)}
.kv .v{color:var(--body)}
.kv .v b{color:var(--ink);font-weight:500}
/* 登录:记住账号 / 忘记密码 行 */
.login-links{display:flex;align-items:center;justify-content:space-between;margin:-4px 0 16px;font-size:13px}
.login-links .rem{display:flex;align-items:center;gap:6px;color:var(--mute);cursor:pointer}
.search-combo{position:relative}.search-combo .ipt{padding-right:38px}.search-combo-arrow{position:absolute;right:14px;top:50%;transform:translateY(-50%);pointer-events:none;color:#52627a;font-size:20px}.search-combo-menu{position:absolute;z-index:120;left:0;right:0;top:calc(100% + 4px);max-height:260px;overflow:auto;background:#fff;border:1px solid #cfd8e6;border-radius:6px;box-shadow:0 8px 24px rgba(29,47,76,.16)}.search-combo-menu[hidden]{display:none}.search-combo-option{display:block;width:100%;padding:10px 14px;border:0;border-bottom:1px solid #edf1f6;background:#fff;text-align:left;color:#25344a;cursor:pointer;font-size:14px}.search-combo-option:last-child{border-bottom:0}.search-combo-option:hover,.search-combo-option:focus{background:#edf5ff;color:#1766c2;outline:0}.search-combo-empty{padding:12px 14px;color:#7c8ba1;font-size:14px}
.provider-search-combo{width:100%;min-width:0}.provider-search-combo .ipt{display:block;width:100%;min-width:0}.provider-search-combo .search-combo-arrow{right:12px;width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:5px solid #52627a;font-size:0;line-height:0;transition:transform .15s}.provider-search-combo.open .search-combo-arrow{transform:translateY(-20%) rotate(180deg)}.provider-search-combo .search-combo-menu{min-width:100%;width:max-content;max-width:min(520px,80vw)}.provider-search-combo input:disabled+.search-combo-arrow{opacity:.45}

/* Isolated production filter alignment: plans, checkins and location corrections only. */
.filterbar.safe-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:center;gap:12px}
.filterbar.safe-plan-filter{grid-template-columns:repeat(3,minmax(0,1fr))}
.filterbar.safe-filter-grid .checkin-filter-row{display:contents}
.filterbar.safe-filter-grid .fitem{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;min-width:0;width:100%}
.filterbar.safe-filter-grid .fitem>:is(.sel,.ipt,.provider-search-combo){width:100%;min-width:0}
.filterbar.safe-filter-grid .fitem:has(.daterange){grid-column:span 2}
.filterbar.safe-filter-grid .fitem .daterange{width:100%;min-width:0}
.filterbar.safe-filter-grid .fitem .daterange .date-picker{flex:1;min-width:0}
.filterbar.safe-filter-grid .safe-filter-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:10px;width:100%}
.filterbar.safe-filter-grid .safe-filter-actions .btn{min-width:76px;width:auto;font-size:13px}
.filterbar.safe-filter-grid .checkin-action-row{grid-column:1/-1;margin:0}
@media(max-width:1200px){.filterbar.safe-filter-grid,.filterbar.safe-plan-filter{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:740px){.filterbar.safe-filter-grid,.filterbar.safe-plan-filter{grid-template-columns:minmax(0,1fr)}.filterbar.safe-filter-grid .fitem:has(.daterange){grid-column:1/-1}.filterbar.safe-filter-grid .safe-filter-actions .btn{flex:1}}

.filterbar.safe-filter-grid .fitem .daterange .date-picker-trigger{width:100%;min-width:0}

/* 组织管理服务商筛选：只调整筛选区布局。 */
.filterbar.org-provider-aligned{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));align-items:center;gap:12px}
.filterbar.org-provider-aligned .org-provider-filter-row{display:contents}
.filterbar.org-provider-aligned .fitem{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;min-width:0;width:100%}
.filterbar.org-provider-aligned .fitem>:is(.ipt,.sel,.provider-search-combo){width:100%;min-width:0}
.filterbar.org-provider-aligned .org-provider-region-filter{grid-column:span 2}
.filterbar.org-provider-aligned .org-provider-query-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:10px;width:100%}
.filterbar.org-provider-aligned .org-provider-query-actions .btn{min-width:76px;width:auto;font-size:13px}
.filterbar.org-provider-aligned .org-provider-action-row{grid-column:1/-1;margin:0}
@media(max-width:1200px){.filterbar.org-provider-aligned{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:740px){.filterbar.org-provider-aligned{grid-template-columns:minmax(0,1fr)}.filterbar.org-provider-aligned .org-provider-region-filter{grid-column:1/-1}.filterbar.org-provider-aligned .org-provider-query-actions .btn{flex:1}}

/* 组织管理业务人员筛选布局。 */
.filterbar.org-staff-aligned{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:center;gap:12px}
.filterbar.org-staff-aligned .org-staff-filter-row{display:contents}
.filterbar.org-staff-aligned .fitem{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;min-width:0;width:100%}
.filterbar.org-staff-aligned .fitem>:is(.ipt,.sel,.provider-search-combo){width:100%;min-width:0}
.filterbar.org-staff-aligned .org-staff-region-filter{grid-column:span 2}
.filterbar.org-staff-aligned .org-staff-query-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:10px;width:100%}
.filterbar.org-staff-aligned .org-staff-query-actions .btn{min-width:76px;width:auto;font-size:13px}
.filterbar.org-staff-aligned .org-staff-action-row{grid-column:1/-1;margin:0}
@media(max-width:1200px){.filterbar.org-staff-aligned{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:740px){.filterbar.org-staff-aligned{grid-template-columns:minmax(0,1fr)}.filterbar.org-staff-aligned .org-staff-region-filter{grid-column:1/-1}.filterbar.org-staff-aligned .org-staff-query-actions .btn{flex:1}}

/* 机构管理筛选区；只影响机构管理页面。 */
.filterbar.institution-aligned{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:center;gap:12px}
.filterbar.institution-aligned .institution-filter-row{display:contents}
.filterbar.institution-aligned .fitem{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;min-width:0;width:100%}
.filterbar.institution-aligned .fitem>:is(.ipt,.sel){width:100%;min-width:0}
.filterbar.institution-aligned .institution-query-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:10px;width:100%}
.filterbar.institution-aligned .institution-query-actions .btn{min-width:76px;width:auto;font-size:13px}
.filterbar.institution-aligned .institution-action-row{grid-column:1/-1;margin:0}
@media(max-width:1200px){.filterbar.institution-aligned{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:740px){.filterbar.institution-aligned{grid-template-columns:minmax(0,1fr)}.filterbar.institution-aligned .institution-query-actions .btn{flex:1}}

/* Product billing configuration */
.billing-workspace{overflow:hidden;border:1px solid #CBDCF2;border-radius:8px;background:#fff;box-shadow:0 2px 10px rgba(30,91,184,.04)}
.billing-product-body{padding:22px}
.billing-product-bar{display:flex;align-items:center;gap:24px;flex-wrap:wrap;padding:18px 22px;border-bottom:1px solid #CBDCF2;background:#F0F5FC}
.billing-product-field{display:flex;flex-direction:column;gap:7px;min-width:260px;color:var(--blue);font-size:12px;font-weight:600}
.billing-product-field .ipt{width:100%;height:40px;border-color:#B9CCE7;background:#fff;color:var(--ink);font-size:14px;font-weight:600}
.billing-product-note{flex:1;min-width:280px;margin:0;padding-left:18px;border-left:1px solid #CBDCF2;font-size:12px;color:var(--body);line-height:1.6}
.billing-save-actions{display:flex;justify-content:flex-end;margin-top:20px}
.billing-save-actions .btn{min-width:190px}

/* Scoped whitelist transfer UI */
.whitelist-action-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:8px;margin-top:12px;padding-top:12px;border-top:1px solid #EEF1F5;overflow-x:auto}
.wl-action-main,.wl-action-downloads{display:flex;align-items:center;flex:0 0 auto;flex-wrap:nowrap;gap:8px}
.wl-action-downloads{margin-left:auto}
.whitelist-action-row .btn{padding-left:10px;padding-right:10px}
.whitelist-transfer-panel{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:14px 0;padding:15px 18px;border:1px solid var(--line);border-radius:6px;background:#fff;box-shadow:0 2px 8px rgba(25,48,80,.04)}
.whitelist-transfer-intro{min-width:0}
.whitelist-transfer-panel strong{display:block;color:var(--ink);font-size:15px}
.whitelist-transfer-panel p{margin:4px 0 0;color:var(--mute);font-size:13px;line-height:1.5}
.whitelist-transfer-controls{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px;color:var(--body);font-size:13px;white-space:nowrap}
.whitelist-transfer-panel .btn{height:32px;font-size:13px}
.wt-transfer-form,.wt-transfer-progress,.wt-transfer-history{font-size:13px;line-height:1.6}
.wt-transfer-form .hint,.wt-transfer-progress .hint,.wt-transfer-history .hint{font-size:12px;line-height:1.6;color:var(--mute)}
.wt-transfer-progress>p{margin-bottom:8px}
.wt-step{margin-bottom:16px;padding:9px 12px;border-radius:4px;background:#EAF2FF;color:var(--blue);font-weight:600}
.wt-record-details{margin:12px 0;border:1px solid var(--line);border-radius:5px;background:#fff}
.wt-record-details summary{padding:10px 12px;color:var(--blue);cursor:pointer;font-weight:600}
.wt-record-list,.wt-institution-list{max-height:260px;overflow:auto;padding:0 12px 10px}
.wt-record-list>div,.wt-institution{padding:8px 0;border-top:1px solid var(--line);line-height:1.5}
.wt-institution>span{display:block;margin:3px 0}
.wt-institution>div{padding-left:10px;color:var(--body)}
.wt-ack{display:flex;align-items:center;gap:8px;margin:14px 0;color:var(--ink);cursor:pointer}
.wt-history-card{padding:12px;margin-bottom:10px}.wt-history-card>div{display:flex;justify-content:space-between;gap:10px}.wt-history-card p{margin:8px 0}

/* Separate product regions share available table width; keep operations inside the table. */
.org-provider-table .op-col-name{width:20%}.org-provider-table .op-col-region{width:30%}.org-provider-table .op-col-staff{width:8%}.org-provider-table .op-col-status{width:7%}.org-provider-table .op-col-ops{width:5%}.org-provider-table .ops{white-space:normal}.org-provider-table .provider-region-province{grid-template-columns:minmax(48px,65px) minmax(0,1fr);gap:6px}.org-provider-table .provider-region-city{flex-wrap:wrap;gap:4px}.org-provider-table .provider-region-city>span{flex:0 0 auto;min-width:54px}

/* Whitelist layout for the current grouped table and five-field filter. */
.whitelist-filter-primary .whitelist-region-filter{grid-column:1/-1}
.whitelist-region-cascade{width:100%}
.whitelist-table{min-width:1260px}
.whitelist-table .wl-col-select{width:48px}
.whitelist-table .wl-col-name{width:160px}
.whitelist-table .wl-col-inst{width:250px}
.whitelist-table .wl-col-line{width:82px}
.whitelist-table .wl-col-dept{width:170px}
.whitelist-table .wl-col-product{width:130px}
.whitelist-table .wl-col-extra{width:auto}
.whitelist-table .wl-col-ops{width:112px}
.whitelist-table .wl-select-head,.whitelist-table .wl-select-cell{text-align:center;vertical-align:middle;padding-left:8px;padding-right:8px}
.whitelist-table input[type=checkbox]{width:16px;height:16px;margin:0;cursor:pointer}
.whitelist-table .wl-person-name{white-space:normal}

/* Keep the whitelist table within ordinary desktop content widths. */
.whitelist-table{min-width:980px}
.whitelist-table .wl-col-select{width:44px}
.whitelist-table .wl-col-name{width:10%}
.whitelist-table .wl-col-inst{width:22%}
.whitelist-table .wl-col-line{width:7%}
.whitelist-table .wl-col-dept{width:15%}
.whitelist-table .wl-col-product{width:11%}
.whitelist-table .wl-col-extra{width:auto}
.whitelist-table .wl-col-ops{width:100px}
