/* Trade OS — Project Management team Trade + khối workload trên Dashboard (tos/trade-pm.js). Design system Monday:
   Public Sans 400/700, radius 4/8/99, thang 4px, màu = trạng thái (todo xám · doing #FDAB3D · review #579BFC · done #00C875 · fail #E2445C). */
#tos-pm, #tos-dash .pmw{ --pm-ink:#323338; --pm-muted:#676879; --pm-line:#E6EAF4; --pm-pri:#0073EA; --pm-bg:#F6F7FB;
  --pm-done:#00C875; --pm-doing:#FDAB3D; --pm-review:#579BFC; --pm-fail:#E2445C; --pm-todo:#C4C4C4;
  font-family:'Public Sans','Be Vietnam Pro','Figtree',system-ui,sans-serif; color:var(--pm-ink); }
#tos-pm *, #tos-dash .pmw *{ font-variant-numeric:tabular-nums; box-sizing:border-box; }
.pm-mut{ color:var(--pm-muted); font-weight:400; }
.pm-late{ color:#C4314B; font-weight:700; }
.pm-load{ padding:24px; text-align:center; color:var(--pm-muted); font-size:13px; }
.pm-av{ flex:none; display:inline-grid; place-items:center; width:32px; height:32px; border-radius:99px; background:#E5F0FF; color:#0060C7; font-size:12px; font-weight:700; }
.pm-av.sm{ width:24px; height:24px; font-size:10px; margin-right:4px; }
.pm-st{ display:inline-block; padding:0 8px; border-radius:99px; font-size:11.5px; font-weight:700; line-height:20px; white-space:nowrap; }
.pm-st.todo{ background:#EDEDEF; color:#6B6B72; } .pm-st.doing{ background:#FFF4E5; color:#B4730F; } .pm-st.review{ background:#E9F2FF; color:#1C5FB8; }
.pm-st.done{ background:#E5F9F0; color:#018F55; } .pm-st.fail{ background:#FCE8EB; color:#C32E43; }
.pm-mini{ display:block; height:6px; border-radius:99px; background:#EEF0F3; overflow:hidden; }
.pm-mini i{ display:block; height:100%; border-radius:99px; background:var(--pm-done); }

/* ── Khối workload trên Dashboard (thay Top outlet) ── */
#tos-dash .pmw{ grid-column:1 / -1; margin:0; padding:16px 24px 24px; border-radius:8px; box-shadow:0 1px 3px rgba(30,40,70,.06), 0 1px 2px rgba(30,40,70,.04); }
#tos-dash .pmw-top{ display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:8px 16px; margin-bottom:16px; }
#tos-dash .pmw-top h3{ margin:0; font-size:18px; font-weight:700; }
#tos-dash .pmw-top span{ display:block; margin-top:4px; font-size:12px; color:var(--pm-muted); }
#tos-pm .pm-link, #tos-dash .pm-link{ height:32px; padding:0 12px; border:1px solid #C3C6D4; border-radius:4px; background:#fff; font:inherit; font-size:13px; font-weight:700; color:var(--pm-pri); cursor:pointer; }
#tos-dash .pm-link:hover{ background:#F0F6FF; }
#tos-dash .pmw-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(380px, 1fr)); gap:16px; }
#tos-dash .pmw-m{ padding:16px; border:1px solid var(--pm-line); border-radius:8px; background:#fff; }
#tos-dash .pmw-hd{ display:flex; align-items:center; gap:12px; }
#tos-dash .pmw-hd b{ display:block; font-size:15px; font-weight:700; }
#tos-dash .pmw-hd span:not(.pm-av):not(.pmw-pct){ display:block; font-size:12px; color:var(--pm-muted); }
#tos-dash .pmw-pct{ margin-left:auto; font-size:24px; font-weight:700; letter-spacing:-.02em; }
#tos-dash .pmw-pct em{ margin-left:4px; font-style:normal; font-size:12px; color:var(--pm-muted); }
#tos-dash .pmw-pct.ok{ color:#018F55; } #tos-dash .pmw-pct.bad{ color:#C4314B; }
#tos-dash .pmw-bar{ height:8px; margin-top:12px; border-radius:99px; background:#EEF0F3; overflow:hidden; }
#tos-dash .pmw-bar i{ display:block; height:100%; border-radius:99px; background:var(--pm-done); }
#tos-dash .pmw-kpi{ display:grid; grid-template-columns:repeat(4, 1fr); gap:8px; margin-top:12px; }
#tos-dash .pmw-kpi span{ display:flex; flex-direction:column; font-size:11px; color:var(--pm-muted); }
#tos-dash .pmw-kpi b{ font-size:18px; font-weight:700; color:var(--pm-ink); }
#tos-dash .pmw-kpi .bad b{ color:#C4314B; }
#tos-dash .pmw-days{ display:grid; grid-template-columns:repeat(7, 1fr); gap:4px; height:72px; margin-top:16px; }
#tos-dash .pmw-days span{ position:relative; display:flex; flex-direction:column; justify-content:flex-end; align-items:center; padding-bottom:16px; border-radius:4px; background:#F7F8FA; }
#tos-dash .pmw-days span.today{ background:#E5F0FF; }
#tos-dash .pmw-days i{ width:60%; border-radius:4px 4px 0 0; background:var(--pm-review); }
#tos-dash .pmw-days em{ position:absolute; bottom:2px; font-style:normal; font-size:10px; font-weight:700; color:var(--pm-muted); }
#tos-dash .pmw-days b{ position:absolute; top:2px; font-size:11px; font-weight:700; }
#tos-dash .pmw-sec{ margin:16px 0 4px; font-size:10px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--pm-muted); }
#tos-dash .pmw-pj{ display:grid; grid-template-columns:minmax(0, 1fr) 96px 40px; align-items:center; gap:8px; padding:4px 0; font-size:13px; }
#tos-dash .pmw-pj > span:first-child{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:700; }
#tos-dash .pmw-pj-bar{ height:6px; border-radius:99px; background:#EEF0F3; overflow:hidden; }
#tos-dash .pmw-pj-bar i{ display:block; height:100%; background:var(--pm-pri); border-radius:99px; }
#tos-dash .pmw-pj b{ text-align:right; font-size:12px; }
#tos-dash .pmw-t{ display:grid; grid-template-columns:minmax(0, 1fr) auto 64px; align-items:center; gap:8px; padding:8px 0; border-top:1px solid var(--pm-line); font-size:13px; }
#tos-dash .pmw-t-nm{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:700; }
#tos-dash .pmw-t-nm em{ display:block; font-style:normal; font-weight:400; font-size:11.5px; color:var(--pm-muted); overflow:hidden; text-overflow:ellipsis; }
#tos-dash .pmw-t-d{ text-align:right; font-size:12px; }
#tos-dash .pmw-none{ padding:8px 0; font-size:13px; }

/* ── Tab Project Management ── */
#tos-pm{ display:flex; flex-direction:column; gap:16px; }
#tos-pm .pm-hd{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px 24px; }
#tos-pm .pm-hd h2{ margin:0; font-size:20px; font-weight:700; }
#tos-pm .pm-hd > div > span{ display:block; margin-top:4px; font-size:12px; color:var(--pm-muted); }
#tos-pm .pm-ctl{ display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
#tos-pm .pm-seg{ display:inline-flex; gap:4px; padding:4px; border-radius:8px; background:#F1F3F8; }
#tos-pm .pm-seg button, #tos-pm .pm-who button{ height:32px; padding:0 12px; border:0; border-radius:4px; background:none; font:inherit; font-size:13px; font-weight:700; color:var(--pm-muted); cursor:pointer; }
#tos-pm .pm-seg button[aria-selected="true"]{ background:#fff; color:var(--pm-pri); box-shadow:0 1px 3px rgba(30,40,70,.12); }
#tos-pm .pm-wk{ display:inline-flex; align-items:center; gap:4px; font-size:13px; font-weight:700; }
#tos-pm .pm-wk button, #tos-pm .pm-ref{ height:32px; min-width:32px; padding:0 8px; border:1px solid #C3C6D4; border-radius:4px; background:#fff; font:inherit; font-size:13px; font-weight:700; color:var(--pm-ink); cursor:pointer; }
#tos-pm .pm-wk > span{ padding:0 8px; }
#tos-pm .pm-wk .pm-today{ color:var(--pm-pri); }
#tos-pm .pm-who{ display:flex; flex-wrap:wrap; gap:8px; }
#tos-pm .pm-who button{ display:inline-flex; align-items:center; gap:8px; border:1px solid #C3C6D4; border-radius:99px; background:#fff; }
#tos-pm .pm-av.xs{ width:20px; height:20px; margin-left:-4px; font-size:9px; }
#tos-pm .pm-who button[aria-pressed="true"]{ border-color:var(--pm-pri); background:#E5F0FF; color:var(--pm-pri); }
#tos-pm .pm-sum{ display:flex; flex-wrap:wrap; gap:8px; }
#tos-pm .pm-sum > span{ display:flex; flex-direction:column; min-width:136px; padding:12px 16px; border-radius:8px; background:#fff; box-shadow:0 1px 3px rgba(30,40,70,.06); font-size:12px; color:var(--pm-muted); border-left:4px solid #C3C6D4; }
#tos-pm .pm-sum > span > b{ font-size:22px; font-weight:700; color:var(--pm-ink); }
#tos-pm .pm-sum .ok{ border-left-color:var(--pm-done); } #tos-pm .pm-sum .bad{ border-left-color:var(--pm-fail); } #tos-pm .pm-sum .bad b{ color:#C4314B; }
#tos-pm .pm-warn{ padding:8px 12px; border-radius:8px; background:#FFF4E5; color:#8A5300; font-size:13px; }
#tos-pm .pm-card, #tos-pm .pm-grp{ border-radius:8px; background:#fff; box-shadow:0 1px 3px rgba(30,40,70,.06); overflow:hidden; }
#tos-pm .pm-scroll{ overflow-x:auto; }
#tos-pm table{ width:100%; border-collapse:separate; border-spacing:0; }
#tos-pm thead th{ position:sticky; top:0; z-index:1; padding:12px 8px; background:var(--pm-bg); border-bottom:1px solid var(--pm-line); font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--pm-muted); text-align:left; white-space:nowrap; }
#tos-pm thead th span{ font-weight:400; letter-spacing:0; }
#tos-pm thead th.today{ color:var(--pm-pri); }
#tos-pm td, #tos-pm tbody th{ padding:8px; border-bottom:1px solid var(--pm-line); vertical-align:top; font-size:13px; text-align:left; }
#tos-pm td.num, #tos-pm th.num{ text-align:right; }
/* Lưới workload */
#tos-pm table.pm-grid{ min-width:1180px; table-layout:fixed; }
#tos-pm table.pm-grid thead th:first-child{ width:240px; padding-left:16px; }
#tos-pm table.pm-grid .pm-prev{ width:150px; background:#FFF8F9; }
#tos-pm table.pm-grid thead th.pm-prev{ background:#FCECEF; color:#C4314B; }
#tos-pm table.pm-grid td.today{ background:#F5F9FF; }
#tos-pm .pm-who-c{ display:flex; gap:8px; padding-left:8px; }
#tos-pm .pm-who-c b{ display:block; font-size:14px; }
#tos-pm .pm-who-c span{ display:block; font-size:12px; color:var(--pm-muted); font-weight:400; }
#tos-pm .pm-who-c .pm-mini{ width:120px; margin:4px 0; }
#tos-pm .pm-who-c i.bad{ font-style:normal; color:#C4314B; font-weight:700; }
#tos-pm .pm-chip{ margin-bottom:4px; padding:4px 8px; border-radius:4px; border-left:3px solid var(--pm-todo); background:#F7F8FA; font-size:12px; line-height:16px; }
#tos-pm .pm-chip b{ display:block; font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#tos-pm .pm-chip em{ display:block; font-style:normal; color:var(--pm-muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#tos-pm .pm-chip.doing{ border-left-color:var(--pm-doing); background:#FFF8EE; } #tos-pm .pm-chip.review{ border-left-color:var(--pm-review); background:#F1F6FF; }
#tos-pm .pm-chip.done{ border-left-color:var(--pm-done); background:#EFFBF5; } #tos-pm .pm-chip.done b{ text-decoration:line-through; color:var(--pm-muted); }
#tos-pm .pm-chip.fail{ border-left-color:var(--pm-fail); background:#FDF0F2; }
#tos-pm .pm-chip.late{ box-shadow:inset 0 0 0 1px var(--pm-fail); }
#tos-pm .pm-legend{ display:flex; flex-wrap:wrap; gap:8px 16px; padding:12px 16px; font-size:12px; color:var(--pm-muted); }
#tos-pm .pm-legend span{ display:inline-flex; align-items:center; gap:8px; }
#tos-pm .pm-legend i{ width:12px; height:12px; border-radius:4px; background:var(--pm-todo); }
#tos-pm .pm-legend i.doing{ background:var(--pm-doing); } #tos-pm .pm-legend i.review{ background:var(--pm-review); } #tos-pm .pm-legend i.done{ background:var(--pm-done); }
#tos-pm .pm-legend i.fail{ background:var(--pm-fail); } #tos-pm .pm-legend i.late{ background:#fff; box-shadow:inset 0 0 0 2px var(--pm-fail); }
/* Bảng dự án / danh sách */
#tos-pm table.pm-tbl{ min-width:960px; }
#tos-pm table.pm-tbl thead th:first-child, #tos-pm table.pm-tbl td:first-child{ padding-left:16px; }
#tos-pm table.pm-tbl tbody tr:hover td{ background:#F5F6F8; }
#tos-pm table.pm-tbl tr.is-late td:first-child{ box-shadow:inset 3px 0 0 var(--pm-fail); }
#tos-pm .pm-prog{ display:flex; align-items:center; gap:8px; }
#tos-pm .pm-prog .pm-mini{ width:96px; }
#tos-pm .pm-prog .pm-mini i{ background:var(--pm-pri); }
#tos-pm .pm-pr{ display:inline-block; padding:0 8px; border-radius:4px; font-size:11.5px; font-weight:700; line-height:20px; background:#EDEDEF; color:#6B6B72; }
#tos-pm .pm-pr.urgent{ background:#FCE8EB; color:#C32E43; } #tos-pm .pm-pr.high{ background:#FFF4E5; color:#B4730F; }
#tos-pm .pm-grp > summary{ display:flex; align-items:center; gap:8px; padding:12px 16px; cursor:pointer; list-style:none; border-left:3px solid var(--pm-pri); background:#F5F9FF; font-size:14px; }
#tos-pm .pm-grp > summary::-webkit-details-marker{ display:none; }
#tos-pm .pm-grp > summary .pm-mut{ margin-left:8px; font-size:12px; }

/* ── Bảng việc kiểu Monday (17/11/2026): nhóm = dự án / người / trạng thái, ô trạng thái tô đầy, sửa tại chỗ ── */
#tos-pm .pmb-bar{ display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; }
#tos-pm .pmb-new, .pmb-pop .pmb-new{ display:inline-flex; align-items:center; gap:4px; height:32px; padding:0 12px; border:0; border-radius:4px; background:#0073EA; color:#fff; font:inherit; font-size:13px; font-weight:700; cursor:pointer; }
#tos-pm .pmb-new:hover, .pmb-pop .pmb-new:hover{ background:#0060C7; }
#tos-pm .pmb-new:focus-visible, #tos-pm .pmb-q:focus, #tos-pm .pmb-in:focus{ outline:0; box-shadow:0 0 0 3px rgba(0,115,234,.25); }
#tos-pm .pm-ref{ display:inline-flex; align-items:center; gap:4px; }
#tos-pm .pmb-q{ width:220px; height:32px; padding:0 12px; border:1px solid #C3C6D4; border-radius:4px; font:inherit; font-size:13px; }
#tos-pm .pmb-body{ display:flex; flex-direction:column; gap:24px; }
#tos-pm .pmb-grp > header{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:8px; }
#tos-pm .pmb-chev{ display:grid; place-items:center; width:24px; height:24px; padding:0; border:0; border-radius:4px; background:none; color:var(--g); cursor:pointer; transition:transform .15s; }
#tos-pm .pmb-grp.shut .pmb-chev{ transform:rotate(-90deg); }
#tos-pm .pmb-chev:hover{ background:#F1F3F8; }
#tos-pm .pmb-gname{ font-size:16px; font-weight:700; color:var(--g); padding:0 4px; border-radius:4px; }
#tos-pm .pmb-gname[data-ed]{ cursor:text; } #tos-pm .pmb-gname[data-ed]:hover{ box-shadow:inset 0 0 0 1px #C3C6D4; }
#tos-pm .pmb-meta{ font-size:12px; color:var(--pm-muted); }
#tos-pm .pmb-pst{ height:24px; padding:0 8px; border:0; border-radius:4px; color:#fff; font:inherit; font-size:12px; font-weight:700; cursor:pointer; }
#tos-pm .pmb-grp.shut > header{ padding:8px 8px 8px 12px; border-radius:8px; background:#fff; box-shadow:inset 4px 0 0 var(--g), 0 1px 3px rgba(30,40,70,.06); }
#tos-pm .pmb-grp.shut .pmb-bat{ width:160px; margin-left:auto; }
#tos-pm .pmb-grp > .pm-scroll{ border-radius:8px; background:#fff; box-shadow:0 1px 3px rgba(30,40,70,.06); }
#tos-pm table.pmb-tbl{ min-width:1080px; table-layout:fixed; }
#tos-pm table.pmb-tbl thead th{ padding:8px; text-align:center; border-right:1px solid var(--pm-line); }
#tos-pm table.pmb-tbl thead th.pmb-name{ text-align:left; }
#tos-pm table.pmb-tbl td{ height:40px; padding:0 8px; vertical-align:middle; border-right:1px solid var(--pm-line); }
#tos-pm .pmb-edge{ width:6px; padding:0 !important; border-right:0 !important; }
#tos-pm thead .pmb-edge{ background:var(--g) !important; }
#tos-pm .pmb-name{ width:auto; min-width:280px; }
#tos-pm th.pmb-name{ width:32%; }
#tos-pm .pmb-ppl{ width:104px; text-align:center; }
#tos-pm .pmb-cell{ width:136px; }
#tos-pm .pmb-date{ width:128px; }
#tos-pm .pmb-num{ width:72px; text-align:right; }
#tos-pm .pmb-txt{ width:15%; }
#tos-pm .pmb-act{ width:40px; text-align:center; border-right:0 !important; }
#tos-pm table.pmb-tbl tbody tr.pmb-row:hover td{ background:#F5F6F8; }
#tos-pm .pmb-nm{ display:flex; align-items:center; gap:4px; min-width:0; padding:2px 4px; border-radius:4px; font-weight:700; }
#tos-pm .pmb-nm span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#tos-pm .pmb-nm[data-ed]{ cursor:text; } #tos-pm .pmb-nm[data-ed]:hover{ box-shadow:inset 0 0 0 1px #C3C6D4; }
#tos-pm .pmb-nm.lock{ color:var(--pm-ink); } #tos-pm .pmb-nm.lock svg{ flex:none; color:var(--pm-muted); }
#tos-pm .pmb-sub{ padding:0 4px; font-size:11.5px; color:var(--pm-muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#tos-pm tr.is-done .pmb-nm span{ color:var(--pm-muted); text-decoration:line-through; }
#tos-pm tr.is-late .pmb-name{ box-shadow:inset 3px 0 0 var(--pm-fail); }
#tos-pm .pmb-ppl[data-ed]{ cursor:pointer; } #tos-pm .pmb-ppl .pm-av.sm{ margin:0 -4px 0 0; box-shadow:0 0 0 2px #fff; }
#tos-pm .pmb-ghost{ display:inline-grid; place-items:center; width:24px; height:24px; border-radius:99px; border:1px dashed #C3C6D4; color:var(--pm-muted); }
#tos-pm td.pmb-cell{ padding:0; text-align:center; color:#fff; font-size:13px; font-weight:700; cursor:pointer; box-shadow:inset 0 0 0 1px #fff; }
#tos-pm td.pmb-cell.empty{ background:#F5F6F8; }
#tos-pm tbody td.pmb-cell:hover{ filter:brightness(.94); }
#tos-pm .pmb-date{ text-align:center; }
#tos-pm .pmb-num, #tos-pm .pmb-txt{ cursor:text; }
#tos-pm .pmb-txt{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12.5px; }
#tos-pm .pmb-act button{ display:grid; place-items:center; width:28px; height:28px; margin:auto; padding:0; border:0; border-radius:4px; background:none; color:var(--pm-muted); cursor:pointer; opacity:0; }
#tos-pm tr:hover .pmb-act button, #tos-pm .pmb-act button:focus-visible{ opacity:1; }
#tos-pm .pmb-act button:hover{ background:#E6E9EF; color:var(--pm-ink); }
#tos-pm .pmb-in{ width:100%; height:28px; padding:0 8px; border:1px solid #0073EA; border-radius:4px; font:inherit; font-size:13px; }
#tos-pm .pmb-add td{ height:40px; border-bottom:1px solid var(--pm-line); }
#tos-pm .pmb-add input{ width:100%; height:32px; padding:0 8px; border:1px solid transparent; border-radius:4px; background:none; font:inherit; font-size:13px; }
#tos-pm .pmb-add input:hover{ border-color:#C3C6D4; } #tos-pm .pmb-add input:focus{ outline:0; border-color:#0073EA; background:#fff; }
#tos-pm .pmb-add .pm-mut{ font-size:12px; padding-left:8px; }
#tos-pm .pmb-tbl tfoot td{ height:32px; border-right:0; border-bottom:0; background:#fff; }
#tos-pm .pmb-tbl tfoot td.pmb-cell{ padding:0 8px; cursor:default; box-shadow:none; }
#tos-pm .pmb-bat, .pmb-bat{ display:flex; height:20px; border-radius:4px; overflow:hidden; gap:1px; background:#fff; }

/* Popover + toast (gắn vào body, nằm ngoài #tos-pm) */
.pmb-pop{ position:absolute; z-index:10050; min-width:180px; padding:8px; border-radius:8px; background:#fff; box-shadow:0 8px 24px rgba(30,40,70,.18), 0 0 0 1px #E6E9EF; font-family:'Public Sans','Be Vietnam Pro','Figtree',system-ui,sans-serif; font-size:13px; color:#323338; }
.pmb-opts{ display:flex; flex-direction:column; gap:4px; width:180px; }
.pmb-opts button{ height:32px; border:0; border-radius:4px; color:#fff; font:inherit; font-weight:700; cursor:pointer; }
.pmb-opts button:hover{ filter:brightness(.92); }
.pmb-menu{ display:flex; flex-direction:column; min-width:160px; }
.pmb-menu button{ height:32px; padding:0 8px; border:0; border-radius:4px; background:none; font:inherit; text-align:left; cursor:pointer; }
.pmb-menu button:hover:not(:disabled){ background:#F1F3F8; }
.pmb-menu button.danger{ color:#C4314B; } .pmb-menu button:disabled{ color:#9699A6; cursor:not-allowed; }
.pmb-ppl-pop{ display:flex; flex-direction:column; gap:8px; width:260px; }
.pmb-ppl-pop input[type="search"]{ height:32px; padding:0 8px; border:1px solid #C3C6D4; border-radius:4px; font:inherit; }
.pmb-ppl-pop [data-pl]{ max-height:280px; overflow:auto; }
.pmb-pp{ display:flex; align-items:center; gap:8px; padding:4px; border-radius:4px; cursor:pointer; }
.pmb-pp:hover{ background:#F1F3F8; }
.pmb-pp em{ display:block; font-style:normal; font-size:11px; color:#676879; }
.pmb-pp .pm-av.sm{ display:inline-grid; place-items:center; width:24px; height:24px; border-radius:99px; background:#E5F0FF; color:#0060C7; font-size:10px; font-weight:700; }
#pmb-toast{ position:fixed; left:50%; bottom:24px; z-index:10060; transform:translate(-50%, 16px); padding:8px 16px; border-radius:8px; background:#323338; color:#fff; font:700 13px 'Public Sans',system-ui,sans-serif; opacity:0; pointer-events:none; transition:.2s; }
#pmb-toast.on{ opacity:1; transform:translate(-50%, 0); }
#pmb-toast.bad{ background:#C4314B; }

/* 17/11/2026 — sửa UX theo ảnh user */
#tos-pm .pm-sum .pm-sum-pct{ border-left-color:var(--pm-pri); }
#tos-pm .pm-sum-pct .pm-mini{ margin-top:4px; }
#tos-pm .pm-sum-pct .pm-mini i{ background:var(--pm-pri); }
#tos-pm .pm-src{ font-size:12px; color:var(--pm-muted); }
#tos-pm .pmb-gdue{ font-size:12px; color:var(--pm-muted); }
#tos-pm .pmb-gdue.late{ color:#C4314B; font-weight:700; }
#tos-pm table.pmb-tbl thead th{ height:36px; padding:0 8px; vertical-align:middle; }
#tos-pm tr.is-late .pmb-name{ box-shadow:none; }
#tos-pm td.pmb-date{ position:relative; font-size:13px; white-space:nowrap; cursor:pointer; }
#tos-pm td.pmb-date em{ display:inline; margin:0; font-style:normal; font-size:11px; color:var(--pm-muted); }
#tos-pm td.pmb-date.late span{ color:#C4314B; font-weight:700; }
#tos-pm td.pmb-date input{ position:absolute; inset:0; width:100%; max-width:none; height:100%; padding:0; border:0; opacity:0; cursor:pointer; }
#tos-pm td.pmb-date:not(.lock):hover{ box-shadow:inset 0 0 0 1px #C3C6D4; background:#fff; }
#tos-pm td.pmb-date.lock{ cursor:not-allowed; color:var(--pm-muted); }
#tos-pm td.pmb-date.lock input{ cursor:not-allowed; }
#tos-pm .pmb-tbl tfoot td{ height:28px; padding:4px 8px; }
