/* ============================================================
   開放性問卷處理｜流程元件（角色 × 狀態）
   依 01–08 UX 流程：處理時間設定、儲存問題類型、寄送稽催、
   課程管理者處理情形、加盟機關管理者彙送／退回、完成案件、編修歷程
   沿用頁面既有 token（--slate / --ink / --line …）
   ============================================================ */

/* 身分標示（頁首右側） */
.os-role{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 11px;border-radius:999px;background:var(--slate-soft);color:var(--slate);font-size:12.5px;font-weight:700;white-space:nowrap;margin-left:12px;vertical-align:middle}
.os-role .mi{font-size:16px !important}
.os-role .ic-uid{width:calc(18px / 1.07);height:calc(18px / 1.07);flex:none;fill:currentColor}
.phead .ph1{display:inline-flex;align-items:center;flex-wrap:wrap}

/* 提示（toast）：依規格置於頁首下方中央 */
.toast{top:86px;bottom:auto;transform:translate(-50%,-8px)}
.toast.show{transform:translate(-50%,0)}
.toast.ok::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:#7bd389;margin-right:9px;vertical-align:1px}

/* 開關 */
.os-switch{position:relative;display:inline-flex;align-items:center;gap:10px;cursor:pointer;user-select:none;font-size:14px;color:var(--ink2);font-weight:700}
.os-switch input{position:absolute;opacity:0;width:0;height:0}
.os-switch .tr{width:46px;height:26px;border-radius:999px;background:#cfd5dc;position:relative;transition:background .18s;flex:none}
.os-switch .tr::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(16,24,40,.25);transition:transform .18s}
.os-switch input:checked+.tr{background:var(--slate)}
.os-switch input:checked+.tr::after{transform:translateX(20px)}
.os-switch input:focus-visible+.tr{outline:2px solid var(--act);outline-offset:2px}
.os-switch .st{font-size:13px;font-weight:700;color:var(--mut)}
.os-switch input:checked~.st{color:var(--slate)}

/* 表單欄位：必填、錯誤 */
.mdl-b .ff>label,.mdl-b .ff>.l{font-size:14px;font-weight:700;color:var(--ink2)}
.mdl-b .req{color:var(--error);margin-right:3px}
.os-err{display:none;font-size:13px;color:var(--error-text);margin-top:2px}
.ff.is-err .os-err{display:block}
.ff.is-err .drange,.ff.is-err .fc{border-color:var(--error) !important;box-shadow:0 0 0 3px rgba(219,53,46,.10)}
.mdl-b .drange{display:flex;width:100%}
.mdl-b .drange .dfield{flex:1}
.mdl-b .drange input{width:100%}
.os-tfields[hidden]{display:none}
.os-tfields{display:flex;flex-direction:column;gap:16px}
.os-hint{font-size:12.5px;color:var(--mut);line-height:1.6}

/* 確認彈窗 */
.mdl-box.os-cf{width:min(520px,100%)}
.os-cf .mdl-h{justify-content:center;position:relative;border-bottom:0;padding:22px 56px 6px}
.os-cf .mdl-h .icb{position:absolute;right:14px;top:14px}
.os-cf .mdl-b{display:block;padding:8px 26px 6px;text-align:center;font-size:15px;color:var(--ink2);line-height:1.75}
.os-cf .mdl-b b{color:var(--ink);font-weight:700}
.os-cf .mdl-b .ff{text-align:left}
.os-cf .mdl-f{justify-content:stretch;padding:18px 26px 24px}
.os-cf .mdl-f .btn{flex:1;justify-content:center}
.btn.danger{background:var(--error);color:#fff}
.btn.danger:hover{background:var(--error-text)}

/* 加盟機關列：操作欄（單一動作身分用文字按鈕） */
.os-op{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.os-op .btn.xs{height:34px;font-size:13.5px;padding:0 12px}
.os-op .btn[disabled]{background:#f1f3f6;border-color:#e3e6ea;color:#a3aab3;cursor:not-allowed}
.os-done{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:700;color:var(--success-deep);white-space:nowrap}
.os-done .mi{font-size:19px !important}
.tbl .c-status.sent{color:var(--success-deep)}
.tbl .c-num .done.has{color:var(--success-deep)}

/* 加盟機關管理者：可彙送勾選列 */
.os-selbar{display:flex;align-items:center;gap:10px;padding:10px 14px;margin:0 0 10px;background:#fff;border:1px solid var(--line);border-radius:10px;font-size:14px;font-weight:700;color:var(--ink2)}
.os-selbar{padding-left:12px} /* 全選框與列內勾選框同一垂直線 */
.os-selbar .cnt2{font-weight:400;color:var(--mut);font-size:13px;margin-left:auto}
/* checkbox＝國衛院_UI Interface / Checkbox_*：24×24 點擊區、內含 16 方框（r3.2、描邊 1.3）；未勾 Gray/400、勾選／部分 primary、停用 Gray/300 */
.os-ck{width:calc(24px/1.07);height:calc(24px/1.07);border:0;border-radius:4px;display:inline-grid;place-items:center;background:none;color:#9ca3af;flex:none;cursor:pointer;padding:0}
.os-ck svg{width:100%;height:100%;display:block;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}
.os-ck .tk,.os-ck .pt{display:none}
.os-ck.on .tk,.os-ck.part .pt{display:inline}
.os-ck.on,.os-ck.part{color:var(--slate)}
.os-ck:not([disabled]):hover{color:var(--slate)}
.os-ck[disabled]{color:#d1d5db;cursor:not-allowed}
.os-ck[disabled].on{color:#9ca3af}
.os-ck:focus-visible{outline:2px solid var(--act);outline-offset:0}
td.xp .xpw{display:inline-flex;align-items:center;gap:calc(6px/1.07)}

/* 處理區：唯讀樣式 */
.proc .fc[disabled]{color:#6b7580}
.proc-h .ro{margin-left:2px}

/* 選單停用項 */
.kmenu button[disabled]{color:#b3bcc7;cursor:not-allowed;background:none}
.kmenu button.warn{color:var(--error-text)}
.kmenu button.warn:hover{background:var(--error-bg);color:var(--error-text)}

/* 編修歷程抽屜 */
.os-dw-mask{position:fixed;inset:0;z-index:280;background:rgba(18,26,36,.40);opacity:0;pointer-events:none;transition:opacity .18s}
.os-dw-mask.show{opacity:1;pointer-events:auto}
.os-dw{position:fixed;top:0;right:0;bottom:0;z-index:290;width:min(460px,100%);background:#fff;box-shadow:-16px 0 40px rgba(16,24,40,.18);display:flex;flex-direction:column;transform:translateX(102%);transition:transform .22s cubic-bezier(.2,.8,.2,1)}
.os-dw.show{transform:none}
.os-dw-h{display:flex;align-items:flex-start;gap:10px;padding:20px 20px 14px 24px;border-bottom:1px solid var(--line)}
.os-dw-h .tt{flex:1;min-width:0}
.os-dw-h h3{margin:0;font-size:18px;font-weight:700;color:var(--ink)}
.os-dw-h .sub{margin-top:4px;font-size:13px;color:var(--mut);line-height:1.5}
.os-dw-b{flex:1;overflow:auto;padding:20px 24px 28px}
.os-empty{height:100%;min-height:240px;display:grid;place-items:center;text-align:center;color:var(--mut2);font-size:14px;background:#f7f8fa;border-radius:12px}
.os-empty .mi{display:block;font-size:34px !important;color:#c3cad2;margin:0 auto 8px}

/* 退回通知（課程管理者收到退回時先彈出） */
.mdl-box.os-ret{width:min(560px,100%)}
.os-ret .mdl-b{max-height:min(60vh,520px);overflow:auto}
.os-ret .lead{font-size:14.5px;color:var(--ink2);line-height:1.7;margin:0}
.os-ret .lead b{color:var(--ink);font-weight:700}

@media (max-width:720px){ .os-role{margin:8px 0 0} .os-dw{width:100%} }
@media print{ .os-role,.os-dw,.os-dw-mask{display:none !important} }

/* 表頭「問卷 已處理／未處理」：標題＋圖例膠囊，與列內數字配色對應 */
.tbl thead th.th-pst{padding-top:9px;padding-bottom:9px}
.th-pst .thp{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.th-pst .t{font-size:14.5px;font-weight:700}
.th-pst .lg{display:inline-flex;align-items:center;gap:6px;height:22px;padding:0 8px;border-radius:999px;background:rgba(255,255,255,.12);box-shadow:inset 0 0 0 1px rgba(255,255,255,.18);font-size:11.5px;font-weight:700;letter-spacing:.01em;color:#fff}
.th-pst .it{display:inline-flex;align-items:center;gap:4px}
.th-pst .d{width:6px;height:6px;border-radius:50%;display:inline-block}
.th-pst .d.ok{background:#8fe3a0}
.th-pst .d.todo{background:#ffc66d}
.th-pst .sl{color:rgba(255,255,255,.45);font-weight:400}
/* 列內數字：已處理綠／未處理琥珀，與圖例同一語意 */
.tbl .c-num .done{color:#3d5a6f}
.tbl .c-num .done.has{color:var(--success-deep)}

/* 抽屜內班次表格：最後一欄「操作」固定在右側（橫向捲動時不跟著移動） */
.tbl.lite thead th:last-child,
.tbl.lite tr.crow>td:last-child{position:sticky;right:0;z-index:2}
.tbl.lite thead th:last-child{background:var(--slate);z-index:4}
.tbl.lite tr.crow>td:last-child{background:#fff;transition:background .12s}
.tbl.lite tr.crow:hover>td:last-child{background:#f4f6fa}

/* 左緣陰影：只在內容被捲到「操作」欄下方時出現 */
.tbl.lite thead th:last-child::before,
.tbl.lite tr.crow>td:last-child::before{content:"";position:absolute;top:0;bottom:-1px;left:-12px;width:12px;pointer-events:none;background:linear-gradient(90deg,rgba(16,24,40,0),rgba(16,24,40,.08));opacity:0;transition:opacity .15s}
.tblscroll.os-xs .tbl.lite thead th:last-child::before,
.tblscroll.os-xs .tbl.lite tr.crow>td:last-child::before{opacity:1}
.tbl.lite tr.crow>td:last-child .kmenu{z-index:30}

/* 編修歷程時間軸 v3：精簡版，圓點＋細線，不用圖示；圓點用 Primary #436177 色系淺 2 階（一般 #7f9bb0）／淺 1 階（最新 #5b7a91），光圈與連線用淡 primary，退回維持 error 紅 */
.os-tl{list-style:none;margin:0;padding:0}
.os-tl li{position:relative;display:block;padding:0 0 20px 22px}
.os-tl li::before{content:"";display:block;position:absolute;left:0;top:6px;width:10px;height:10px;box-sizing:border-box;border-radius:50%;background:#7f9bb0;box-shadow:0 0 0 3px #e4ebf1}
.os-tl li::after{content:"";display:block;position:absolute;left:4.25px;top:22px;bottom:2px;width:1.5px;border-radius:1px;background:#d3dde6}
.os-tl li:last-child{padding-bottom:0}
.os-tl li:last-child::after{display:none}
.os-tl li:last-child::before{background:#5b7a91;box-shadow:0 0 0 3px #d9e3eb}
.os-tl li.ret::before{background:#d9534a;box-shadow:0 0 0 3px #fbe1de}
.os-tl .hd{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.os-tl .who{font-size:14px;font-weight:700;color:var(--ink)}
.os-tl .at{font-family:var(--f-en);font-size:12.5px;color:var(--mut);white-space:nowrap;font-variant-numeric:tabular-nums}
.os-tl .ti{margin-top:3px;font-size:14px;line-height:1.6;color:var(--ink2)}
.os-tl .ti b{font-weight:700;color:var(--ink)}
.os-tl li.ret .ti{color:#b42318;font-weight:700}
.os-tl .bd{margin:6px 0 0;padding:8px 10px;border-radius:6px;background:#f7f8fa;font-size:13.5px;line-height:1.7;color:var(--ink2);overflow-wrap:anywhere}
.os-tl li.ret .bd{background:#fdf3f2;color:#7a271a}

/* 問卷填寫內容：最多 3 行，超過以「…」截斷；滑過／點擊看全文（assets/clamp-pop.js） */
.tbl td.qtxt .clamp,
.tbl tr.crow.is-open td.qtxt .clamp{-webkit-line-clamp:3;line-clamp:3}
.tbl td.qtxt .clamp[data-tip]::after,.tbl td.qtxt .clamp[data-tip]:hover::after{display:none !important}
.tbl td.qtxt .clamp.is-cut{cursor:pointer;border-radius:6px;outline:none;transition:background .12s}
.tbl td.qtxt .clamp.is-cut:hover,.tbl td.qtxt .clamp.is-cut.on{background:rgba(67,97,119,.07)}
.tbl td.qtxt .clamp.is-cut:focus-visible{box-shadow:0 0 0 2px var(--act)}
.cpop{position:fixed;z-index:500;background:#000;color:#fff;font-size:13px;line-height:1.7;letter-spacing:.01em;padding:9px 13px;border-radius:6px;box-shadow:0 8px 22px rgba(0,0,0,.28);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .12s;overflow-wrap:anywhere}
.cpop-b{max-height:min(60vh,420px);overflow:auto}
.cpop.show{opacity:1;visibility:visible}
.cpop.pin{pointer-events:auto}
.cpop-c{position:absolute;top:-6px;width:0;height:0;border:6px solid transparent;border-top:0;border-bottom-color:#000}
.cpop.up .cpop-c{top:auto;bottom:-6px;border-bottom:0;border-top:6px solid #000}

/* 班次名稱：最多 3 行，超過以「…」截斷；滑過垂直跑馬燈捲完全文、點擊看全文（assets/clamp-pop.js） */
.tbl td.cname .nm>span:first-of-type{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;overflow-wrap:anywhere}
.tbl td.cname .nm>span.is-cut{cursor:pointer;border-radius:6px;outline:none;transition:background .12s}
.tbl td.cname .nm>span.is-cut:hover,.tbl td.cname .nm>span.is-cut.on{background:rgba(67,97,119,.07)}
.tbl td.cname .nm>span.is-cut:focus-visible{box-shadow:0 0 0 2px var(--act)}
.tbl td.cname .nm>span.mq{display:block;-webkit-line-clamp:unset;line-clamp:none;-webkit-mask-image:linear-gradient(180deg,transparent 0,#000 5px,#000 calc(100% - 5px),transparent 100%);mask-image:linear-gradient(180deg,transparent 0,#000 5px,#000 calc(100% - 5px),transparent 100%)}
.tbl td.cname .nm>span.mq>.mq-in{display:block;will-change:transform;animation:osMqV var(--mq-t,4s) ease-in-out infinite}
@keyframes osMqV{0%,16%{transform:translateY(0)}50%,66%{transform:translateY(var(--mq-d,0px))}100%{transform:translateY(0)}}

/* 抽屜內寬表格：視窗底部浮動水平捲軸（assets/sticky-xscroll.js） */
.xsbar{position:fixed;bottom:0;z-index:60;height:14px;background:rgba(255,255,255,.94);border-top:1px solid var(--line);border-radius:6px 6px 0 0;box-shadow:0 -4px 12px rgba(16,24,40,.06);opacity:0;visibility:hidden;transition:opacity .15s;cursor:pointer;touch-action:none}
.xsbar.show{opacity:1;visibility:visible}
.xsbar-t{position:absolute;left:0;top:4px;height:6px;border-radius:999px;background:#b8c2cc;cursor:grab;transition:background .12s,height .12s,top .12s}
.xsbar:hover .xsbar-t,.xsbar.drag .xsbar-t{top:3px;height:8px;background:var(--slate)}
.xsbar.drag .xsbar-t{cursor:grabbing}
/* 編輯面板固定在可視寬度內：左右捲動表格時，面板不跟著跑 */
.tblscroll .tbl tr.cproc>td>.proc{position:sticky;left:58px;width:calc(var(--os-vw,100%) - 58px - 14px);box-sizing:border-box}
@media (max-width:720px){ .tblscroll .tbl tr.cproc>td>.proc{left:12px;width:calc(var(--os-vw,100%) - 24px)} }

/* 退回修正通知：退回理由置頂、先前歷程退為次要資訊 */
.os-ret .rt-box{margin-top:14px;padding:12px 14px 13px;border-radius:8px;background:#fdf3f2;border:1px solid #f6d4cf}
.os-ret .rt-h{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.os-ret .rt-k{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:700;color:#c52821}
.os-ret .rt-k .mi{font-size:20px !important;line-height:1}
.os-ret .rt-h time{font-family:var(--f-en);font-size:12.5px;color:var(--mut);font-variant-numeric:tabular-nums}
.os-ret .rt-box p{margin:5px 0 0;font-size:14.5px;line-height:1.7;color:#7a271a;overflow-wrap:anywhere}
.os-ret .rt-sub{margin:20px 0 12px;padding-top:16px;border-top:1px solid var(--line);font-size:13px;font-weight:700;color:var(--mut)}

/* 時間軸退回理由前的驚嘆號 */
.os-tl .bd .bl{display:inline-flex;align-items:center;gap:5px;vertical-align:top;font-size:14.5px;font-weight:700;color:#c52821}
.os-tl .bd .bl .mi{font-size:18px !important;line-height:1}

/* 樣式２流程（assets/open-survey-flow-v2.js）：班次名稱前勾選、已勾選數、面板退回鈕 */
.tbl .nmck{display:inline-flex;align-items:center;margin-right:calc(6px/1.07);vertical-align:middle}
.tbl tr.crow.is-chk>td{background:#f6f8fb}
.os-op .ckcnt{font-size:13px;color:var(--mut);margin-right:10px;white-space:nowrap;font-variant-numeric:tabular-nums}
.os-op{display:inline-flex;align-items:center}
.dw-f .dw-ret{margin-right:auto;color:#b42318;display:inline-flex;align-items:center;gap:4px}
.dw-f .dw-ret .mi{font-size:18px !important}
.dw-f .dw-ret:disabled{color:var(--mut2,#9aa0aa)}
.dw-sec.is-edit h3{color:var(--ink)}
.tbl b.nmck{font-weight:400;flex:none}
.gbar .op .os-op{flex-wrap:nowrap;white-space:nowrap;gap:0}
.tbl tr.ghead .os-ck,.tbl tr.ghead .os-ck.on,.tbl tr.ghead .os-ck.part,.tbl tr.ghead .os-ck:hover{color:#fff}
.tbl tr.ghead .os-ck:disabled{color:#fff;opacity:.45}
.tbl tr.ghead th .nmck{position:relative;top:calc(-1.6px/1.07)} /* 表頭全選框對齊表頭文字中線 */
/* 問卷（已處理／未處理）欄：表頭與數字皆水平置中 */
.tbl thead th.th-pst,.tbl tr.grow>td.c-num.cen{text-align:center}
/* 處理時間提示列：標籤一般字重、值加粗（尚未設定時維持一般） */
.pw-k{font-weight:400}
#pwTime,#pwNote{font-weight:700}
#pwTime.unset,#pwNote.unset{font-weight:400}

/* ===== Figma 對齊（參考 5680:3491 os2-10、5681:3454）=====
   註：預設字級 md 的 .content 有 zoom:1.07，Figma 擷取值＝畫面實際 px，故 CSS 以「Figma 值 / 1.07」書寫
   1) 版面節奏：一律用「區塊 margin」定義間距（Figma 對應父層 auto-layout gap，子區塊 padding 歸零）
      分隔線→公告 24｜公告→篩選 24｜篩選→工具列 28｜工具列→表格 16｜表格→分頁 28 */
body section.pcard>.pdiv{margin-bottom:calc(24px / 1.07)}
body section.pcard>.notice{margin-bottom:calc(24px / 1.07)}
body section.pcard>.fpanel{margin-bottom:calc(28px / 1.07)}
body section.pcard>.cntrow{margin-bottom:calc(16px / 1.07)}
body section.pcard>.paginator{margin-top:calc(28px / 1.07)}
/* 2) 元件：對應國衛院_UI sys / button */
/*   機關列操作群組＝sys/button S・outlined_gray・Only Icon（40×40、圖示 20、群組 gap 0）；enabled＝primary、disabled＝灰 */
body .tbl tr.grow .op .rowact{gap:0}
body .tbl tr.grow .op .rowact .icb{width:calc(40px / 1.07);height:calc(40px / 1.07);border-radius:calc(8px / 1.07);background:transparent;color:var(--slate)}
body .tbl tr.grow .op .rowact .icb .mi,body .tbl tr.grow .op .rowact .icb .gi{font-size:calc(20px / 1.07) !important;color:inherit}
body .tbl tr.grow .op .rowact .icb:not(:disabled):hover{background:#f3f7f8}
body .tbl tr.grow .op .rowact .icb:disabled{color:#b3bcc7;background:transparent}
/*   班次名稱旁「課程內容中心」＝sys/button XS・primary・Only Icon（32×32、圖示 16） */
body .tbl td.cname .icb[data-act="center"]{width:calc(32px / 1.07);height:calc(32px / 1.07);min-width:calc(32px / 1.07);color:var(--slate)}
body .tbl td.cname .icb[data-act="center"] .mi{font-size:calc(16px / 1.07) !important}
/*   處理時間「編輯」＝sys/button M・primary・Only Icon（44×44、圖示 28；以負 margin 維持原佔位 34×30） */
body #pwEdit{width:calc(44px / 1.07);height:calc(44px / 1.07);margin:calc(-9px / 1.07) calc(-5px / 1.07) calc(-5px / 1.07) 0;color:var(--slate)}
body #pwEdit .mi{font-size:calc(28px / 1.07) !important}
/* 3) 色票（同 Figma 綁定）：neutral800 #334d6e｜on-error-container #c52821｜error #db352e｜primary200 #c3d5de
      tertiary50 #f4f9fb｜Slate/200 #e2e8f0｜neutral-variant200 #e3e1ec｜primary50 #f3f7f8 */
body .gbar .gname .c-pri,body .gbar .gcnt .gs.done b,body .gbar .gsend .gs.st.sent,body .cmeta .c-badge,body .spill.done{color:#334d6e}
body .gbar .gsend .gs.st.unsent{color:#c52821}
body .gbar .gsend .gs.st.unsent::before{background:#db352e}
body .gbar .gcnt i{background:#c3d5de}
body .tbl:has(.gbar) tr.crow>td{background:#f4f9fb}
body .spill.done{background:#e2e8f0}
body section.pcard>.tblwrap{border-color:#e3e1ec}
body .fchip{background:#f3f7f8}
/*   樣式１同類元素同步：機關名稱、已彙送／未彙送 */
body .tbl tr.grow>td.c-pri{color:#334d6e}
body .tbl tr.grow .c-status.sent{color:#334d6e}
body .tbl tr.grow .c-status.todo{color:#c52821}

/* 樣式１ 處理時間提示列：對齊 Figma 5655:2695
   底 Amber/50、標籤 on-surface-medium-emphasis（黑 60%）一般字重、值 Slate/700 粗體；
   「（含開放編輯課程內容中心）」移到時間之後、同標籤色 */
.notice.n-s1{background:#fffbeb;border-color:#f1d58a;align-items:flex-start;line-height:1.75}
.notice.n-s1 .pw-k{color:rgba(0,0,0,.6);font-weight:400}
.notice.n-s1 #pwTime,.notice.n-s1 #pwNote{color:#314158;font-weight:700;margin-left:.25em}
.notice.n-s1 #pwTime.unset,.notice.n-s1 #pwNote.unset{color:var(--mut2);font-weight:400}

/* 左側開合鈕（＋／－）的 tooltip：靠左對齊按鈕往右長，不再置中往左超出表格捲動框被裁切 */
.tbl td.xp [data-tip]:hover::after,.tbl td.xp [data-tip]:focus-visible::after{left:0;right:auto;transform:none}

/* 系統 icon（Figma：System / Printer、System / Save、ic_font edit）一律內嵌 SVG（.sys-ic），尺寸對齊 Figma */
.sys-ic{display:inline-block;flex:none;vertical-align:middle}
body .content .tbl tr.grow td.op .rowact .icb .sys-ic{font-size:calc(20px / 1.07) !important}
body .content #printBtn .sys-ic{font-size:calc(24px / 1.07) !important}
body .content #pwEdit .sys-ic{font-size:calc(24px / 1.07) !important} /* Figma 編輯鈕 icon 框 24 */

/* 文字輸入＋建議清單（assets/combo-suggest.js）：箭頭同 select.fc、選單同 .kmenu，不再出現原生 datalist 黑底清單 */
.cbx{position:relative}
input.fc.fc-combo{padding-right:40px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%239aa0aa' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center no-repeat}
input.fc.fc-combo::-webkit-calendar-picker-indicator{display:none !important}
.cbx-pop{display:none;position:absolute;left:0;right:0;top:calc(100% + 4px);background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 30px rgba(16,24,40,.16);padding:6px;z-index:40;max-height:240px;overflow:auto}
.cbx.open .cbx-pop{display:block}
.cbx-pop button{display:block;width:100%;text-align:left;padding:9px 12px;border-radius:7px;font-size:14px;color:var(--ink2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cbx-pop button:hover,.cbx-pop button.on{background:var(--nav-hover);color:var(--slate)}
.cbx-none{padding:9px 12px;font-size:13.5px;color:var(--mut2)}

/* 列印 icon：同 Figma System / Printer，描邊 1.8、primary 色（文字維持深色） */
body .content #printBtn .sys-ic{color:var(--slate)}
/* 身分標籤：對齊 Figma（高 30、左 10／右 12、間距 8、icon 18），icon 與文字垂直置中 */
.os-role{height:calc(30px / 1.07);padding:0 calc(12px / 1.07) 0 calc(10px / 1.07);gap:calc(8px / 1.07);line-height:calc(15px / 1.07)}
.os-role .rt{display:block;position:relative;top:var(--rt-nudge,1px)} /* 中文字墨偏上約 0.9px；文字位移會吸附整數像素，故下移 1px 與 icon 同中線 */
.os-role .ic-uid{display:block}
/* 樣式１ 表頭：sticky 欄位在小數像素交界處會露出細縫，用同色陰影往右補 1px 蓋住 */
.tbl thead th{box-shadow:1px 0 0 0 var(--slate)}
.tbl thead th:last-child{box-shadow:none}

/* ===== Tooltip 一律 = 國衛院_UI「sys / tooltip」=====
   黑 80%、圓角 6、內距 8×12、白字 Bold 14／行高 148%／字距 1%、三角 12×8、無陰影。
   單行提示由 assets/sys-tooltip.js 浮在 body 呈現（不受 zoom、不被裁切），停用舊的 ::after 版本 */
[data-tip]::after,[data-tip]::before,[data-tip]:hover::after,[data-tip]:hover::before,[data-tip]:focus-visible::after,[data-tip]:focus-visible::before{content:none !important;display:none !important}
.sys-tip{position:fixed;left:0;top:0;z-index:1000;max-width:min(320px,calc(100vw - 16px));width:max-content;background:rgba(0,0,0,.8);color:#fff;border-radius:6px;padding:8px 12px;font-family:"Noto Sans TC",system-ui,sans-serif;font-size:14px;font-weight:700;line-height:1.48;letter-spacing:.01em;white-space:normal;overflow-wrap:anywhere;pointer-events:none;opacity:0;visibility:hidden;transition:opacity .12s}
.sys-tip.show{opacity:1;visibility:visible}
.sys-tip-c{position:absolute;bottom:100%;left:50%;width:12px;height:8px;background:rgba(0,0,0,.8);clip-path:polygon(50% 0,100% 100%,0 100%)}
.sys-tip.up .sys-tip-c{bottom:auto;top:100%;clip-path:polygon(0 0,100% 0,50% 100%)}
.sys-tip.side .sys-tip-c{bottom:auto;left:-8px;width:8px;height:12px;clip-path:polygon(100% 0,100% 100%,0 50%)}
/* 表頭「操作 ⓘ」說明（多段文字，同元件樣式；位於 zoom 1.07 內，數值 ÷1.07） */
.tbl thead th .tip .pop,.tbl tr.ghead th .tip .pop{right:calc(-10px / 1.07) !important;top:calc(100% + 10px / 1.07) !important;width:max-content !important;max-width:calc(300px / 1.07) !important;background:rgba(0,0,0,.8) !important;color:#fff !important;border-radius:calc(6px / 1.07) !important;padding:calc(8px / 1.07) calc(12px / 1.07) !important;font-size:calc(14px / 1.07) !important;font-weight:700 !important;line-height:1.48 !important;letter-spacing:.01em !important;box-shadow:none !important;white-space:normal !important}
.tbl thead th .tip .pop::before,.tbl tr.ghead th .tip .pop::before{content:"" !important;position:absolute !important;bottom:100% !important;top:auto !important;right:calc(10px / 1.07) !important;left:auto !important;width:calc(12px / 1.07) !important;height:calc(8px / 1.07) !important;border:0 !important;background:rgba(0,0,0,.8) !important;clip-path:polygon(50% 0,100% 100%,0 100%)}
.tbl thead th .tip .pop p,.tbl tr.ghead th .tip .pop p{margin:0 0 calc(6px / 1.07) !important}
.tbl thead th .tip .pop p:last-child,.tbl tr.ghead th .tip .pop p:last-child{margin:0 !important}
.tbl thead th .tip .pop b,.tbl tr.ghead th .tip .pop b{font-weight:700}
/* 長文字（班次名稱／問卷內容）彈出框 clamp-pop：同元件樣式 */
.cpop{background:rgba(0,0,0,.8) !important;border-radius:6px !important;padding:8px 12px !important;font-size:14px !important;font-weight:700 !important;line-height:1.48 !important;letter-spacing:.01em !important;box-shadow:none !important}
.cpop-c{top:-8px !important;width:12px !important;height:8px !important;border:0 !important;background:rgba(0,0,0,.8);clip-path:polygon(50% 0,100% 100%,0 100%)}
.cpop.up .cpop-c{top:auto !important;bottom:-8px !important;border:0 !important;clip-path:polygon(0 0,100% 0,50% 100%)}

/* ===== 下拉選單統一規則 =====
   選單：一律用 assets/dropdown.js 的 .ddl／.ddl-i（Figma sys / dropdown_select_list）；
   input.fc[list]（可搜尋）與 .multi（多選標籤）由 assets/sys-dropdown.js 補上，同樣輸出 .ddl。
   觸發框：select.fc／input.fc-combo／.multi 同一顆 chevron（#9aa0aa、20），開啟時主色框＋光暈 */
:root{--dd-chev:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%239aa0aa' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")}
select.fc:not([multiple]),input.fc.fc-combo{padding-right:40px;background:#fff var(--dd-chev) right 12px center no-repeat}
.multi{background:#fff var(--dd-chev) right 12px center no-repeat}
.multi>.cv{display:none !important}
select.fc[aria-expanded="true"],input.fc.dd-open,.multi.dd-open{border-color:var(--slate);box-shadow:0 0 0 3px rgba(67,97,119,.14)}
.ddl-multi .ddl-i{gap:12px}
.ddl-ck{width:24px;height:24px;flex:none;fill:none;stroke:#9ca3af;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round;margin-left:-4px}
.ddl-ck .tk{display:none}
.ddl-i[aria-selected="true"] .ddl-ck{stroke:var(--slate,#436177)}
.ddl-i[aria-selected="true"] .ddl-ck .tk{display:inline}
.cbx-pop,.sys-dd{display:none !important}

/* 樣式１ 篩選條件卡片：底色／框線／圓角同「課程審查」的篩選條件（.cr-filter：surface1、line、12） */
body .fpanel,body .fpanel.shut{background:linear-gradient(rgba(67,97,119,.04),rgba(67,97,119,.04)),#fcfcff;border:1px solid var(--line);border-radius:12px;box-shadow:none}
body .fpanel.shut .fpanel-h:hover{background:#edf0f4}

/* ===== 篩選條件收合摘要（assets/sys-filter-summary.js）：全後臺一致 =====
   標籤底色 #edf2f5（較 primary100 #e1eaef 淡 2 階）、欄位名一般字重、值粗體、右側 × 可單獨清除 */
body .fchip{display:inline-flex;align-items:center;gap:5px;max-width:260px;height:28px;padding:0 4px 0 10px;border-radius:999px;background:#edf2f5 !important;border:1px solid #dde6ec;font-size:13px;line-height:1;color:var(--ink2)}
body .fchip>b{font-weight:400;color:var(--mut);white-space:nowrap}
body .fchip>.fv{font-weight:700;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
body .fchip:not(:has(.fx)){padding-right:10px}
body .fchip>.fx{flex:none;width:20px;height:20px;border-radius:50%;display:inline-grid;place-items:center;color:var(--mut);cursor:pointer}
body .fchip>.fx .mi{font-size:15px !important;line-height:1}
body .fchip>.fx:hover,body .fchip>.fx:focus-visible{background:var(--slate);color:#fff;outline:none}
body .fpanel.shut .fsum:not(:empty){display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px}
body .fpanel-h .fsum{flex:1;min-width:0;margin-left:8px;font-weight:400}
body .fpanel:not(.shut) .fsum{display:none !important}
/* 樣式２：收合摘要標籤再淡一階（樣式１／課程審查維持 #edf2f5） */
body:has(script[src*="open-survey-flow-v2"]) .fchip{background:#f3f6f8 !important;border-color:#e6ecf0}

/* ===== 篩選條件 RWD（≤1366px）：精簡列＋右側抽屜（assets/sys-filter-drawer.js）===== */
.sfd-open{display:none}
@media (max-width:1366px){
  body .fpanel.sfd-on{margin-bottom:16px}
  body .fpanel.sfd-on .fpanel-h{align-items:center !important;flex-wrap:nowrap !important;gap:8px;cursor:pointer}
  body .fpanel.sfd-on .fpanel-h>.mi{display:none}
  body .fpanel.sfd-on .fsum{display:flex !important;flex-wrap:nowrap !important;flex:1 1 auto !important;flex-basis:auto !important;margin-left:4px !important;overflow-x:auto;scrollbar-width:none;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 24px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 24px),transparent);padding-right:24px}
  body .fpanel.sfd-on .fsum::-webkit-scrollbar{display:none}
  body .fpanel.sfd-on .fchip{flex:none}
  body .fpanel.sfd-on .sfd-open{display:inline-flex;align-items:center;gap:5px;flex:none;height:34px;padding:0 12px;border-radius:8px;border:1px solid var(--slate);background:#fff;color:var(--slate);font-size:13.5px;font-weight:700;white-space:nowrap}
  body .fpanel.sfd-on .sfd-open .mi{font-size:18px !important}
  body .fpanel.sfd-on .sfd-open .sfd-n:empty{display:none}
  body .fpanel.sfd-on .sfd-open .sfd-n{min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--slate);color:#fff;font-size:11.5px;display:inline-grid;place-items:center;font-family:var(--f-en)}
  body .fpanel.sfd-on .fpanel-h:hover .sfd-open{background:var(--slate);color:#fff}
  body .fpanel.sfd-on .fpanel-h:hover .sfd-open .sfd-n{background:#fff;color:var(--slate)}
}
html.sfd-lock,html.sfd-lock body{overflow:hidden}
.sfd{position:fixed;inset:0;z-index:500;visibility:hidden;pointer-events:none}
.sfd.show{visibility:visible;pointer-events:auto}
.sfd-mask{position:absolute;inset:0;background:rgba(18,26,36,.42);opacity:0;transition:opacity .2s}
.sfd.show .sfd-mask{opacity:1}
.sfd-panel{position:absolute;top:0;right:0;bottom:0;width:min(460px,92vw);background:#fff;display:flex;flex-direction:column;box-shadow:-12px 0 36px rgba(16,24,40,.18);transform:translateX(100%);transition:transform .24s cubic-bezier(.2,.8,.2,1)}
.sfd.show .sfd-panel{transform:none}
.sfd-h{display:flex;align-items:center;justify-content:space-between;padding:16px 16px 14px 22px;border-bottom:1px solid var(--line,#e9ebef);font-size:20px;font-weight:700;color:var(--ink,#24364d)}
.sfd-x{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;color:var(--mut,#6b7580)}
.sfd-x .mi{font-size:22px !important}
.sfd-x:hover{background:#eef2f6;color:var(--ink)}
.sfd-b{flex:1;min-height:0;overflow:auto;padding:18px 22px 24px;background:#f8fafc}
.sfd-b .fpanel-b{display:grid !important;grid-template-columns:1fr;gap:14px;padding:0}
.sfd-b .fpanel-b>.ff{grid-column:auto !important}
.sfd-b .factions{display:none !important}
.sfd-b .cr-fb{display:flex !important;padding:0;gap:14px}
.sfd-b .cr-fr{grid-template-columns:1fr;gap:6px}
.sfd-b .cr-fr>.l{text-align:left}
.sfd-b .cr-kw{margin-left:0}
.sfd-b .cr-kw .fc{border-radius:9px;border-right:1px solid var(--line2)}
.sfd-b .cr-kw .btn{display:none}
.sfd-f{display:flex;gap:10px;padding:14px 22px calc(14px + env(safe-area-inset-bottom));border-top:1px solid var(--line,#e9ebef);background:#fff}
.sfd-f .btn{flex:1;justify-content:center}
@media (min-width:700px) and (max-width:1366px){ .sfd-panel{width:min(560px,80vw)} .sfd-b .fpanel-b{grid-template-columns:1fr 1fr} }
@media (max-width:640px){
  .sfd-panel{top:auto;left:0;width:100%;max-height:88dvh;border-radius:16px 16px 0 0;transform:translateY(100%)}
  .sfd-h{position:relative;padding-top:20px}
  .sfd-h::before{content:"";position:absolute;top:7px;left:50%;width:40px;height:4px;border-radius:2px;background:#d6dbe1;transform:translateX(-50%)}
  body .fpanel.sfd-on .sfd-open{font-size:0;gap:0;padding:0 9px}
  body .fpanel.sfd-on .sfd-open .mi{font-size:20px !important}
  body .fpanel.sfd-on .sfd-open .sfd-n{font-size:11.5px;margin-left:4px}
}

/* 表格課程類型 tag（數位課程／組裝課程／電子書）：底色加深＋細框＋12px，白底列與 hover 列都清楚 */
body .tbl .cmeta .c-badge{font-size:12px;font-weight:700;line-height:1.35;padding:2px 8px;border:1px solid transparent;border-radius:6px}
body .tbl .cmeta .c-badge.cat-a{background:#e1e9f0;border-color:#c5d3de;color:#2c4a60}
body .tbl .cmeta .c-badge.cat-b{background:#d9eef5;border-color:#b5dbe8;color:#17607a}
body .tbl .cmeta .c-badge.cat-c{background:#fbe8c4;border-color:#f0d29a;color:#7a4e06}

/* 篩選連動：符合筆數、機關列「符合 n／N 門」、查無資料 */
.cntrow .cnt .os-cnt-g{margin-left:4px;font-size:.92em;color:var(--mut,#64748b);font-weight:500}
.os-match{display:inline-flex;align-items:center;gap:2px;margin-left:10px;height:22px;padding:0 8px;border-radius:999px;background:#fff4dc;border:1px solid #f1d79a;color:#7a4e06;font-size:12px;font-weight:600;white-space:nowrap;vertical-align:middle}
.os-match b{font-weight:800}
.tbl tr.os-empty>td{padding:0 !important;background:#fff !important;border-bottom:0}
.os-empty-b{display:flex;flex-direction:column;align-items:center;gap:6px;padding:56px 16px;color:var(--mut,#64748b);font-size:14px;text-align:center;position:sticky;left:0;width:min(100%,var(--os-vw,100%))}
.os-empty-b .mi{font-size:44px !important;color:#94a3b8}
.os-empty-b b{font-size:16px;color:var(--ink,#1e293b)}
.os-empty-b .btn{margin-top:8px}
body .tbl tr.os-empty{display:table-row !important;background:#fff !important}
body .tbl tr.os-empty>td{display:table-cell !important;width:100%}
body .content .tbl tr.os-empty .mi{font-size:calc(44px / 1.07) !important;color:#94a3b8}

/* popup 內文最小 14px（自動審查 edeng-ui-consistency-audit）：處理時間設定 popup 的開關文字與說明 */
body .mdl .os-hint{font-size:14px !important;line-height:1.55}
body .mdl #pwOnTxt,body .mdl .os-sw .st{font-size:14px !important}
/* popup 內所有文字最小 14px（tag 最小 13px、icon 除外）— 通用規則 */
body .mdl :is(p,span,div,li,small,time,b,em,label,a,td,th):not(.mi):not(.gi):not([class*="ph-"]):not(.chip):not(.chip *):not(.sys-tag):not(.sys-tag *):not(.cr-st):not(.cr-st *):not(.fchip):not(.fchip *){font-size:max(14px,1em)}

/* 表格「操作」欄（儲存／稽催／完成 三顆 icon）：表頭「操作 ⓘ」水平置中，對齊下方 icon 群 */
body .tbl th:has(> .tip[aria-label="操作說明"]),body .tbl th.op-h{text-align:center !important}
/* 儲存 icon（System / Save）圖形只佔 viewBox 18/24、描邊 1.3，與 Material 字型 icon 並排顯得小又細 → 放大到同視覺量體、描邊加粗 */
body .content .tbl tr.grow td.op .rowact .icb svg.sys-save{font-size:calc(28px / 1.07) !important;width:1em;height:1em;stroke-width:1.75}
body .tbl tr.grow td.op .rowact .icb svg.sys-save{font-size:28px;stroke-width:1.75}
/* 樣式２ 群組列（.gbar）的操作 icon 為 20px：儲存 icon 等比放大到 22（圖形 18/24 → 視覺同 20px 字型 icon） */
body .tbl tr.grow .gbar .op .rowact .icb svg.sys-ic.sys-save.mi,body .gbar .rowact .icb svg.sys-ic.sys-save.mi{font-size:calc(22px / 1.07) !important;width:1em;height:1em;stroke-width:1.75}

/* 操作欄三顆 icon（儲存／寄送稽催／完成案件）：改用同一組自繪 icon（24 格、描邊 2、圖形外框同為 17–18px），三顆尺寸一致 —— 2026-10-16
   取代 System/Save＋Material mark_email_unread／task_alt 混用造成的大小不一；Figma：Component 頁 icon/op/* */
body .tbl .rowact .icb svg.sys-op,body .content .tbl .rowact .icb svg.sys-op,body .tbl tr.grow td.op .rowact .icb svg.sys-op.mi,body .tbl tr.grow .gbar .op .rowact .icb svg.sys-ic.sys-op.mi,body .gbar .rowact .icb svg.sys-ic.sys-op.mi{font-size:var(--op-ic,calc(22px / 1.07)) !important;width:1em !important;height:1em !important;stroke-width:2 !important}
body .tbl tr.grow td.op .rowact{--op-ic:calc(24px / 1.07)}
body .gbar .rowact{--op-ic:calc(24px / 1.07)}
.os-done svg.sys-op{width:1.15em;height:1.15em;vertical-align:-.2em}

/* 篩選條件（全站共用 .fpanel）：輸入框／下拉／日期區間／清除・查詢按鈕 一律 48px（.content zoom 1.07 → 48/1.07）；
   窄螢幕移入抽屜（.sfd，zoom 1）時同為 48px，抽屜底部按鈕也 48px — 與課程審查一致 */
.fpanel-b .ff :is(input,select).fc,.fpanel-b .ff .drange{height:calc(48px / 1.07);min-height:calc(48px / 1.07)}
.fpanel-b .ff .multi{min-height:calc(48px / 1.07)}
.fpanel-b .factions .btn{height:calc(48px / 1.07)}
.sfd .ff :is(input,select).fc,.sfd .ff .drange{height:48px;min-height:48px}
.sfd .ff .multi{min-height:48px}
.sfd .sfd-f button{height:48px;min-height:48px}

/* 篩選條件標題 hover：圓角貼齊外框（12px 外框 − 1px 邊線 = 11px） */
body .fpanel .fpanel-h{border-radius:11px 11px 0 0;transition:background-color .15s}
body .fpanel.shut .fpanel-h{border-radius:11px}
body .fpanel .fpanel-h:hover{background:#edf0f4}
body .fpanel .fpanel-h:focus-visible{outline:2px solid var(--act,#3F82B8);outline-offset:-2px}

/* ============================================================
   內頁所有彈出選單＝DS sys / dropdown_select_list（國衛院_UI 53:1928，同 assets/dropdown.js 的 .ddl／.ddl-i）
   白底、圓角 4、無框、ddl 陰影、選項 44 高、內距 10／12、16px Regular #000、hover 黑 4%
   涵蓋：.cl-menu（新增▾、列印▾…）、.cl-kmenu（課程／班次 ⋮）、.kmenu（⋮ 操作）、.qb-menu／.ct-menu（教室後臺 ⋯、篩選）；多選＝勾選框在左
   ============================================================ */
html body :is(.cl-menu,.cl-kmenu,.kmenu,.qb-menu,.ct-menu){background:#fff !important;border:0 !important;border-radius:4px !important;padding:0 !important;overflow:hidden;
  box-shadow:0 1px 1px 0 rgba(0,0,0,.08),0 2px 1px 1px rgba(0,0,0,.08),0 0 3px 0 rgba(0,0,0,.12) !important;font-family:"Noto Sans TC","Inter",system-ui,sans-serif}
html body :is(.cl-menu,.cl-kmenu,.kmenu,.qb-menu,.ct-menu) :is(button,label,a){display:flex !important;align-items:center;gap:12px;width:100%;min-height:44px !important;height:auto !important;box-sizing:border-box;padding:10px 12px !important;margin:0;
  border:0;border-radius:0 !important;background:none;font-size:16px !important;font-weight:400 !important;line-height:1.5 !important;letter-spacing:.0224px;color:#000 !important;text-align:left;white-space:nowrap}
html body :is(.cl-menu,.cl-kmenu,.kmenu,.qb-menu,.ct-menu) :is(button,label,a):hover,html body :is(.cl-menu,.cl-kmenu,.kmenu,.qb-menu,.ct-menu) :is(button,label,a):focus-visible{background:rgba(0,0,0,.04) !important;color:#000 !important}
html body :is(.cl-menu,.cl-kmenu,.kmenu,.qb-menu,.ct-menu) :is(button,label,a) .mi{font-size:20px !important;color:rgba(0,0,0,.6) !important}
html body :is(.cl-menu,.cl-kmenu,.kmenu,.qb-menu,.ct-menu) :is(button,a)[disabled],html body :is(.cl-menu,.cl-kmenu,.kmenu,.qb-menu,.ct-menu) [aria-disabled="true"]{color:rgba(0,0,0,.35) !important;background:none !important;cursor:default}
html body :is(.cl-menu,.cl-kmenu,.kmenu,.qb-menu,.ct-menu) :is(button,a).warn,html body :is(.cl-menu,.cl-kmenu,.kmenu,.qb-menu,.ct-menu) :is(button,a).warn .mi{color:#c52821 !important}
html body :is(.cl-menu,.cl-kmenu,.kmenu,.qb-menu,.ct-menu) label input[type=checkbox]{margin:0 2px;flex:none}
/* 內容區（中字級 zoom 1.07）內的選單抵銷放大，與浮在 body 的 .ddl 同為 44／16（已在 .ct-main 抵銷者除外） */
body[data-fz="md"] .content :is(.cl-menu,.kmenu,.qb-menu,.ct-menu):not(:is(.ct-main,.ct-hd) *){zoom:calc(1 / 1.07)}

/* 樣式１：篩選抽屜內容底色改 surface1（國衛院 light/surface1）；樣式２維持 */
body .sfd-b{background:linear-gradient(rgba(67,97,119,.04),rgba(67,97,119,.04)),#fcfcff}
/* 「課程內容中心」按鈕 icon 放大到 20px（樣式１鉛筆／樣式２ open_in_new 共用；.content zoom 1.07 → 20/1.07） */
body button[data-act="center"] svg.sys-ic,body button[data-act="center"] .mi{width:calc(20px / 1.07) !important;height:calc(20px / 1.07) !important;font-size:calc(20px / 1.07) !important}
/* 處理時間／備註「尚未設定」＝重要提醒（前置 * ＋ theme_nhri/on-error-container #C52821，與左側標題同基線，2026-10-22） */
body .notice #pwTime.unset,body .notice #pwNote.unset{display:inline;vertical-align:baseline;font-size:inherit;line-height:inherit;color:var(--on-error-container,#C52821) !important;font-weight:700 !important;margin-left:.25em}
body .notice #pwTime.unset::before,body .notice #pwNote.unset::before{content:"*";margin-right:2px;font:inherit;color:var(--on-error-container,#C52821)}
/* 「填寫問題類型／選填處理情形」按鈕：Material edit_note（28px；.content zoom 1.07 → 28/1.07） */
body .rowact .icb .mi.gi-en{font-family:"Material Symbols Outlined" !important;font-size:calc(28px / 1.07) !important;width:calc(28px / 1.07);height:calc(28px / 1.07);line-height:1;font-weight:400;font-variation-settings:"FILL" 0,"wght" 400;-webkit-font-feature-settings:"liga";font-feature-settings:"liga";overflow:hidden}
/* 課程列操作：「填寫問題類型」＋「⋮」兩顆按鈕同尺寸、同中線，並在欄位內左右置中（2026-10-22） */
body .tbl tr:not(.grow) .rowact:has(button[data-act="proc"]){display:flex;align-items:center;justify-content:center;gap:calc(4px / 1.07)}
body .tbl tr:not(.grow) .rowact:has(button[data-act="proc"])>.icb,
body .tbl tr:not(.grow) .rowact:has(button[data-act="proc"])>.kebab>.icb{width:calc(40px / 1.07);height:calc(40px / 1.07);display:inline-grid;place-items:center;padding:0;margin:0;line-height:1;vertical-align:middle}
body .tbl tr:not(.grow) .rowact:has(button[data-act="proc"])>.kebab{display:inline-flex;align-items:center;justify-content:center;height:calc(40px / 1.07);vertical-align:middle}
body .tbl tr:not(.grow) .rowact:has(button[data-act="proc"]) .icb>.mi,body .tbl tr:not(.grow) .rowact:has(button[data-act="proc"]) .icb>svg{display:block;margin:0}
/* popup 說明文字統一規格（2026-10-22） */
.mdl .os-ret .lead{font-size:14.5px;line-height:1.6;color:#314158}
/* 空值區內的按鈕 icon 不吃 .os-empty .mi 的下邊距（否則 icon 被往上推 4px、與文字不齊）2026-10-27 */
.os-empty .btn .mi,.os-empty-b .btn .mi{margin:0 !important;display:inline-flex;color:inherit !important}
/* 調整篩選 hover：底色轉 primary 時，icon 一起換 on-primary（2026-10-28） */
body .fpanel.sfd-on .fpanel-h:hover .sfd-open,body .fpanel.sfd-on .sfd-open:hover,body .fpanel.sfd-on .sfd-open:focus-visible{background:var(--slate);color:#fff}
body .fpanel.sfd-on .fpanel-h:hover .sfd-open .mi,body .fpanel.sfd-on .sfd-open:hover .mi,body .fpanel.sfd-on .sfd-open:focus-visible .mi{color:#fff !important}
body .fpanel.sfd-on .sfd-open .mi{transition:color .15s}

/* 2026-10-29｜班次名稱：任何寬度（含 RWD）一行至少容納 8 個中文字才換行；
   名稱段落最小寬 8em（字級 16 → 約 128px＋字距餘裕），欄寬由表格自動撐開，不足時表格橫向捲動 */
body [data-od-id="open-survey-table"] td.cname .nm>span:first-of-type{min-width:8.2em !important}

/* 2026-10-29｜右側滑出資訊側欄（班次詳情／審核歷程 .cl-dw、編修歷程 .os-dw、問卷詳情 .dw-p）跟著字級（小／中／大）一起縮放：
   側欄掛在 body 下、不在 .content 內，原本吃不到 .content 的 zoom → 這裡補同倍率；高度以 100dvh ÷ 倍率 抵銷，維持滿版高 */
body[data-fz="md"] :is(.cl-dw,.os-dw,.dw .dw-p){zoom:1.07;height:calc(100dvh / 1.07);bottom:auto}
body[data-fz="lg"] :is(.cl-dw,.os-dw,.dw .dw-p){zoom:1.16;height:calc(100dvh / 1.16);bottom:auto}

/* 2026-10-29｜篩選摘要 chip 的「×」hover：原本 slate 深底＋icon 被其他 .mi 規則壓成深色 → 看不見。
   改為：hover／鍵盤 focus＝primary600 #436177 實心圓＋白色 icon（強制，對比 > 7:1）；按下時再深一階 */
html body .fchip>.fx{color:#5b6b7a;transition:background .15s,color .15s}
html body .fchip>.fx:hover,html body .fchip>.fx:focus-visible{background:#436177 !important;color:#fff !important;outline:none}
html body .fchip>.fx:hover .mi,html body .fchip>.fx:focus-visible .mi,html body .fchip>.fx:hover svg,html body .fchip>.fx:focus-visible svg{color:#fff !important;fill:#fff !important}
html body .fchip>.fx:active{background:#37546a !important}
html body .fchip>.fx:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #436177}

/* 2026-11-06 篩選條件右側抽屜（.sfd）對齊 Figma 6095:17872：
   Header pad 16/16/16/24、內容 pad 20/24/24/24、欄距 14／列距 16、標籤 14 Bold #364654、
   欄位一律白底＋1px #E3E1EC、圓角 9、高 48、左內距 16；值 14 #364654、placeholder #9CA3AF；底部按鈕高 44 */
body .sfd .sfd-h{padding:16px 16px 16px 24px !important}
body .sfd .sfd-b{padding:20px 24px 24px !important}
body .sfd .fpanel-b{column-gap:14px !important;row-gap:16px !important}
body .sfd .fpanel-b .ff{gap:8px}
body .sfd .fpanel-b .ff>label,body .sfd .fpanel-b .ff>.l{font-size:14px !important;font-weight:700 !important;line-height:23px !important;color:#364654 !important}
body .sfd .fpanel-b .fc,body .sfd .fpanel-b .multi{height:48px;min-height:48px;background-color:#fff !important;border:1px solid #E3E1EC !important;border-radius:9px !important;box-shadow:none}
body .sfd .fpanel-b .fc{padding-left:16px !important;font-size:14px !important;color:#364654 !important}
body .sfd .fpanel-b select.fc.ph,body .sfd .fpanel-b .fc::placeholder,body .sfd .fpanel-b .multi .phd{color:#9CA3AF !important}
body .sfd .fpanel-b .fc:focus,body .sfd .fpanel-b .multi:focus,body .sfd .fpanel-b .multi.open,body .sfd .fpanel-b .multi.sys-pv-open{border-color:#436177 !important;box-shadow:0 0 0 3px rgba(67,97,119,.14) !important}
body .sfd .sfd-f{padding:16px 24px !important;gap:12px}
body .sfd .sfd-f .btn,body .sfd .sfd-f button{height:44px !important;min-height:44px !important}
body .sfd .fpanel-b>.ff:has(+ .factions){grid-column:1/-1 !important}
/* 篩選條件（卡片展開）：對齊 Figma 參考 5782:80304（2026-11-09）
   內容左右內縮 52（對齊標題文字）、3 欄、欄距 16／列距 18、欄位高 48；
   最後一列＝關鍵字（2 欄）＋清除／查詢同列靠右、底部對齊 */
body .fpanel:not(.sfd-on)>.fpanel-b{padding:0 52px 18px !important;gap:18px 16px !important;grid-template-columns:repeat(12,minmax(0,1fr)) !important}
body .fpanel:not(.sfd-on)>.fpanel-b>.ff,
body .fpanel:not(.sfd-on)>.fpanel-b>.ff.s3{grid-column:span 4 !important}
body .fpanel:not(.sfd-on)>.fpanel-b>.ff:has(+ .factions){grid-column:span 8 !important}
body .fpanel:not(.sfd-on)>.fpanel-b>.factions{grid-column:span 4 !important;align-self:end;justify-content:flex-end;gap:10px;margin-top:0}
body .fpanel:not(.sfd-on)>.fpanel-b .fc{height:48px}
body .fpanel:not(.sfd-on)>.fpanel-b .multi{min-height:48px}
