/* /chung/thong-bao-hop — thông báo dạng hộp dùng chung (mẫu ~/nhiem-vu/vp-dot3/mau-thong-bao-hop.html). Đợt này chỉ gắn vào Văn phòng số.
   Vùng rỗng ẩn hẳn; chỉ hộp đang hiện nhận cú bấm (bài học 48). */
:root{--tbh-tren:calc(var(--dau-cao,64px) + 12px)}
.tbh-vung{position:fixed;top:var(--tbh-tren);right:16px;z-index:140;display:flex;flex-direction:column;gap:10px;width:min(390px,calc(100vw - 24px));pointer-events:none;font-family:var(--tg2-phong,Inter,sans-serif)}
.tbh-vung:empty{display:none}
.tbh-vung.tbh-neo{top:auto;flex-direction:column-reverse}
.tbh{--c:var(--m-pl,#1B6FC8);--bg:var(--m-plt,#E8F2FC);position:relative;pointer-events:auto;background:#fff;border:1px solid #D6E1EC;border-radius:4px;box-shadow:0 6px 20px rgba(16,24,40,.16);overflow:hidden;animation:tbhVao .18s ease}
.tbh::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--c)}
.tbh.ok{--c:#1F8A4C;--bg:#E6F6EC}.tbh.dang{--c:var(--m-pl,#1B6FC8);--bg:var(--m-plt,#E8F2FC)}.tbh.bosung{--c:#B86E00;--bg:#FFF2DC}.tbh.loi{--c:#C2332D;--bg:#FDE9E8}
.tbh-dau{display:flex;align-items:center;gap:10px;padding:9px 36px 9px 14px;background:var(--bg);border-bottom:1px solid rgba(0,0,0,.05)}
.tbh-ic{width:22px;height:22px;border-radius:3px;background:var(--c);color:#fff;display:grid;place-items:center;flex:none}
.tbh-dau b{font-size:14.5px;font-weight:700;color:#1F2937;line-height:1.3}
.tbh-than{padding:10px 14px 12px 18px;font-size:13.5px;color:#374151;line-height:1.45;overflow-wrap:anywhere}
.tbh-x{position:absolute;top:6px;right:6px;width:26px;height:26px;border:0;background:none;color:#4B5563;font-size:18px;line-height:1;cursor:pointer;border-radius:3px}
.tbh-x:hover{background:rgba(0,0,0,.06)}
.tbh-nut{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.tbh-nut button{font:700 13px var(--tg2-phong,Inter,sans-serif);border:1px solid #CBD5E1;border-radius:4px;padding:5px 12px;background:#fff;color:#1F2937;box-shadow:0 2px 0 #E2E8F0;cursor:pointer}
.tbh-nut button.chinh{background:var(--c);color:#fff;border-color:var(--c);box-shadow:none}
.tbh-thanh{position:absolute;left:4px;bottom:0;height:3px;width:100%;background:var(--c);opacity:.5;transform-origin:left;animation:tbhTat var(--tbh-tg,4s) linear forwards}
.tbh-to{outline:3px solid #C2332D!important;outline-offset:2px;animation:tbhNhay 1.1s ease 2}
@keyframes tbhVao{from{opacity:0;transform:translateY(-6px)}}
@keyframes tbhTat{to{transform:scaleX(0)}}
@keyframes tbhNhay{50%{outline-color:rgba(194,51,45,.25)}}
.tbh-nen{position:fixed;inset:0;z-index:150;background:rgba(15,23,42,.42);display:flex;align-items:center;justify-content:center;padding:16px;font-family:var(--tg2-phong,Inter,sans-serif)}
.tbh-hop{background:#fff;border-radius:6px;width:min(460px,100%);max-height:85vh;display:flex;flex-direction:column;box-shadow:0 20px 50px rgba(0,0,0,.25);overflow:hidden}
.tbh-hop-dau{display:flex;gap:12px;align-items:center;background:#FDECEC;border-bottom:1px solid #F3CFCC;padding:14px 20px;flex:none}
.tbh-hop-dau i{width:34px;height:34px;border-radius:4px;background:#C2332D;color:#fff;display:grid;place-items:center;font-style:normal;flex:none}
.tbh-hop-dau b{font-size:17px;color:#1F2937;line-height:1.3}
.tbh-hop-than{padding:14px 20px 16px;font-size:14.5px;color:#374151;line-height:1.5;overflow:auto;overflow-wrap:anywhere}
.tbh-hop-than ul{margin:8px 0 0 18px;padding:0}
.tbh-hop-chan{display:flex;justify-content:flex-end;gap:10px;padding:12px 20px;background:#F7F9FB;border-top:1px solid #E4E7EC;flex:none;flex-wrap:wrap}
.tbh-hop-chan button{font:700 14px var(--tg2-phong,Inter,sans-serif);border:1px solid #CBD5E1;border-radius:4px;padding:9px 16px;background:#fff;color:#1F2937;cursor:pointer;min-height:40px}
.tbh-hop-chan button.chinh{color:#fff;border:0;background:linear-gradient(180deg,#2B7BD1,var(--m-pd,#155AA6));box-shadow:0 3px 0 #124B8C}
@media (max-width:767px){.tbh-vung{top:calc(env(safe-area-inset-top,0px) + 8px);left:8px;right:8px;width:auto;z-index:160}.tbh-nut button{min-height:40px}.tbh-x{width:36px;height:36px;top:2px;right:2px}.tbh-dau{padding-right:42px}.tbh-hop-chan button{flex:1 1 auto;min-height:44px}}
@media (prefers-reduced-motion:reduce){.tbh,.tbh-to,.tbh-thanh{animation:none}}
