/* ============================================================
   後臺勾選框統一樣式（Figma 5607:52213 退回課程上架 popup）
   0. ic_font｜Type=google（Material Icons 實心）20×20：
     未選 check_box_outline_blank   → theme_nhri/on-surface-medium-emphasis（黑 60%）
     選中 check_box                 → theme_nhri/primary #436177
     部分 indeterminate_check_box   → theme_nhri/primary（深色表頭上一律白色）
   以 mask 繪製、顏色走 currentColor；涵蓋：
     .os-ck（JS 產生的按鈕型勾選框）、.chk（span 型）、原生 input[type=checkbox]（開關 .fbtoggle／.os-switch 除外）
   ============================================================ */
:root{--ck-blank:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M16.9844 1C17.5156 1 17.9844 1.20312 18.3906 1.60938C18.7969 2.01563 19 2.48438 19 3.01562V16.9844C19 17.5156 18.7969 17.9844 18.3906 18.3906C17.9844 18.7969 17.5156 19 16.9844 19H3.01562C2.48438 19 2.01562 18.7969 1.60938 18.3906C1.20312 17.9844 1 17.5156 1 16.9844V3.01562C1 2.48438 1.20312 2.01563 1.60938 1.60938C2.01562 1.20312 2.48438 1 3.01562 1H16.9844ZM16.9844 3.01562H3.01562V16.9844H16.9844V3.01562Z'/%3E%3C/svg%3E");--ck-checked:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7.98438 15.0156L16.9844 6.01562L15.5781 4.5625L7.98438 12.1562L4.42188 8.59375L3.01562 10L7.98438 15.0156ZM16.9844 1C17.5469 1 18.0156 1.20312 18.3906 1.60938C18.7969 1.98438 19 2.45312 19 3.01562V16.9844C19 17.5469 18.7969 18.0312 18.3906 18.4375C18.0156 18.8125 17.5469 19 16.9844 19H3.01562C2.45312 19 1.96875 18.8125 1.5625 18.4375C1.1875 18.0312 1 17.5469 1 16.9844V3.01562C1 2.45312 1.1875 1.98438 1.5625 1.60938C1.96875 1.20312 2.45312 1 3.01562 1H16.9844Z'/%3E%3C/svg%3E");--ck-ind:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M15.0156 10.9844V9.01562H4.98438V10.9844H15.0156ZM16.9844 1C17.5156 1 17.9844 1.20312 18.3906 1.60938C18.7969 2.01563 19 2.48438 19 3.01562V16.9844C19 17.5156 18.7969 17.9844 18.3906 18.3906C17.9844 18.7969 17.5156 19 16.9844 19H3.01562C2.48438 19 2.01562 18.7969 1.60938 18.3906C1.20312 17.9844 1 17.5156 1 16.9844V3.01562C1 2.48438 1.20312 2.01563 1.60938 1.60938C2.01562 1.20312 2.48438 1 3.01562 1H16.9844Z'/%3E%3C/svg%3E");--ck-off:rgba(0,0,0,.6);--ck-on:var(--slate,#436177);--ck-dis:rgba(0,0,0,.26)}

/* 共同：清掉舊外框、改用 mask 圖形 */
.os-ck,.chk,input[type="checkbox"]:not(.fbtoggle):not(.os-switch input):not([role="switch"]){
  -webkit-appearance:none;appearance:none;border:0 !important;border-radius:0 !important;box-shadow:none !important;
  background:currentColor !important;color:var(--ck-off);
  -webkit-mask:var(--ck-blank) center/contain no-repeat;mask:var(--ck-blank) center/contain no-repeat;
  display:inline-block;flex:none;cursor:pointer;padding:0;margin:0;vertical-align:middle}
.os-ck>svg,.chk>.mi{display:none !important}
/* 尺寸：圖示 20（後臺內容區 zoom 1.07 → 20/1.07）；.os-ck 保留 24 點擊區、圖示 20 */
.os-ck{width:calc(24px / 1.07) !important;height:calc(24px / 1.07) !important;-webkit-mask-size:83.333%;mask-size:83.333%}
.chk,input[type="checkbox"]:not(.fbtoggle):not(.os-switch input):not([role="switch"]){width:20px;height:20px}
.content .chk,.content input[type="checkbox"]:not(.fbtoggle):not(.os-switch input):not([role="switch"]){width:calc(20px / 1.07);height:calc(20px / 1.07)}
.mdl .os-ck,.os-dw .os-ck,.ddl .os-ck{width:24px !important;height:24px !important}

/* 選中 */
.os-ck.on,.chk.on,input[type="checkbox"]:checked:not(.fbtoggle):not(.os-switch input):not([role="switch"]){color:var(--ck-on);-webkit-mask-image:var(--ck-checked);mask-image:var(--ck-checked)}
/* 部分選取 */
.os-ck.part,.chk.part,input[type="checkbox"]:indeterminate:not(.fbtoggle):not(.os-switch input):not([role="switch"]){color:var(--ck-on);-webkit-mask-image:var(--ck-ind);mask-image:var(--ck-ind)}
/* 滑過 */
.os-ck:not([disabled]):hover,.chk:hover{color:var(--ck-on)}
/* 停用 */
.os-ck[disabled],input[type="checkbox"]:disabled{color:var(--ck-dis) !important;cursor:not-allowed}
/* 深色表頭（主色底）上：三種狀態一律白色 */
.tbl thead .os-ck,.tbl thead .chk,.tbl tr.ghead .os-ck,.cr-rt th .os-ck,.tbl thead input[type="checkbox"],
.tbl thead .os-ck.on,.tbl thead .os-ck.part,.tbl tr.ghead .os-ck.on,.tbl tr.ghead .os-ck.part,.cr-rt th .os-ck.on,.cr-rt th .os-ck.part,.tbl thead .chk.on{color:#fff !important}
.tbl thead .os-ck[disabled],.tbl tr.ghead .os-ck[disabled]{color:#fff !important;opacity:.45}
.os-ck:focus-visible,.chk:focus-visible,input[type="checkbox"]:focus-visible{outline:2px solid var(--act,#3f82b8);outline-offset:2px}

/* 下拉多選選單（sys-dropdown .ddl-ck）同一套 */
.ddl-ck{display:inline-block;flex:none;width:20px;height:20px;background:currentColor;color:var(--ck-off);-webkit-mask:var(--ck-blank) center/contain no-repeat;mask:var(--ck-blank) center/contain no-repeat;margin-left:0}
.ddl-i[aria-selected="true"] .ddl-ck{color:var(--ck-on);-webkit-mask-image:var(--ck-checked);mask-image:var(--ck-checked)}
/* 後臺表頭一律主色深底：任何 thead 內的勾選框（含原生 input）皆用白色 */
thead input[type="checkbox"],thead input[type="checkbox"]:checked,thead input[type="checkbox"]:indeterminate,thead .os-ck,thead .chk{color:#fff !important}

/* ============================================================
   後臺單選鈕統一樣式（國衛院_UI test / answer_section 705:27560）
   0. ic_font｜Type=google 20×20：
     未選 radio_button_unchecked → 黑 60%
     選中 radio_button_checked   → material-theme/ref/primary/primary600 #436177
   以 mask 繪製、顏色走 currentColor；涵蓋所有原生 input[type=radio]（.no-sys 除外）
   ============================================================ */
:root{--rd-off:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z'/%3E%3C/svg%3E");--rd-on:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z'/%3E%3C/svg%3E")}
input[type="radio"]:not(.no-sys){
  -webkit-appearance:none;appearance:none;border:0 !important;border-radius:0 !important;box-shadow:none !important;
  background:currentColor !important;color:var(--ck-off);
  -webkit-mask:var(--rd-off) center/contain no-repeat;mask:var(--rd-off) center/contain no-repeat;
  width:20px !important;height:20px !important;flex:none;cursor:pointer;padding:0;margin:0;vertical-align:middle}
.content input[type="radio"]:not(.no-sys){width:calc(20px / 1.07) !important;height:calc(20px / 1.07) !important}
.mdl input[type="radio"]:not(.no-sys){width:20px !important;height:20px !important}
input[type="radio"]:not(.no-sys)::after,input[type="radio"]:not(.no-sys)::before{content:none !important;display:none !important}
input[type="radio"]:checked:not(.no-sys){color:var(--ck-on);-webkit-mask-image:var(--rd-on);mask-image:var(--rd-on)}
input[type="radio"]:not(.no-sys):not(:disabled):hover{color:var(--ck-on)}
input[type="radio"]:disabled:not(.no-sys){color:var(--ck-dis) !important;cursor:not-allowed}
input[type="radio"]:not(.no-sys):focus-visible{outline:2px solid var(--act,#3f82b8);outline-offset:2px;border-radius:50% !important}
