/* App Manager › Dev v2 (am-dev2.js) — CSS chép từ mockup đã duyệt public/prototypes/dev-pm-v2, gói trong #amdv2 / lớp phủ #amdv2-*. Design system Monday. */
#amdv2, #amdv2-drawer, .v2ov{--pri:#2563EB; --ink:#18181B; --muted:#52525B; --line:#E1E1E7; --bg:#F1F1F4; --side:#FFFFFF; --hover:#F4F4F6;
  --s-backlog:#A1A1AA; --s-todo:#3B76F6; --s-in_progress:#F59E0B; --s-review:#7A5AF8; --s-done:#12B76A; --bad:#E2445C;}
#amdv2 *, #amdv2-drawer *, .v2ov *{box-sizing:border-box; font-variant-numeric:tabular-nums;}
:is(#amdv2,#amdv2-drawer,.v2ov) button{font:inherit; color:inherit;}
:is(#amdv2,#amdv2-drawer,.v2ov) .v2app{display:grid; grid-template-columns:248px minmax(0,1fr); min-height:100vh;}
:is(#amdv2,#amdv2-drawer,.v2ov) .v2side{position:sticky; top:0; height:100vh; overflow:auto; padding:12px 8px; background:var(--side); border-right:1px solid var(--line);}
:is(#amdv2,#amdv2-drawer,.v2ov) .v2side .brand{display:flex; align-items:center; gap:8px; padding:4px 8px 12px; font-weight:700;}
:is(#amdv2,#amdv2-drawer,.v2ov) .v2side .brand i{display:grid; place-items:center; width:28px; height:28px; border-radius:8px; background:var(--pri); color:#fff; font-style:normal; font-size:13px;}
:is(#amdv2,#amdv2-drawer,.v2ov) .kbtn{display:flex; align-items:center; gap:8px; width:100%; height:32px; margin-bottom:12px; padding:0 8px; border:1px solid var(--line); border-radius:8px; background:var(--bg); color:var(--muted); cursor:pointer; font-size:13px;}
:is(#amdv2,#amdv2-drawer,.v2ov) .kbtn kbd, :is(#amdv2,#amdv2-drawer,.v2ov) .kbd{margin-left:auto; padding:0 4px; border:1px solid #C3C6D4; border-radius:4px; background:#fff; font:700 11px/16px 'Public Sans'; color:var(--muted);}
:is(#amdv2,#amdv2-drawer,.v2ov) .sec{padding:12px 8px 4px; font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--muted);}
:is(#amdv2,#amdv2-drawer,.v2ov) .nav{display:flex; align-items:center; gap:8px; width:100%; height:32px; padding:0 8px; border:0; border-radius:4px; background:none; text-align:left; cursor:pointer; font-size:13.5px;}
:is(#amdv2,#amdv2-drawer,.v2ov) .nav:hover{background:var(--hover);}
:is(#amdv2,#amdv2-drawer,.v2ov) .nav.on{background:#E5F0FF; color:var(--pri); font-weight:700;}
:is(#amdv2,#amdv2-drawer,.v2ov) .nav .cnt{margin-left:auto; min-width:20px; padding:0 6px; border-radius:99px; background:#EEF0F3; font-size:11px; font-weight:700; text-align:center; line-height:18px; color:var(--muted);}
:is(#amdv2,#amdv2-drawer,.v2ov) .nav .cnt.hot{background:var(--bad); color:#fff;}
:is(#amdv2,#amdv2-drawer,.v2ov) .pkey{display:inline-grid; place-items:center; min-width:30px; height:20px; padding:0 4px; border-radius:4px; font-size:10px; font-weight:700; color:#fff;}
:is(#amdv2,#amdv2-drawer,.v2ov) .sub{padding-left:30px; height:28px; font-size:13px; color:var(--muted);}
:is(#amdv2,#amdv2-drawer,.v2ov) .sub .dot{width:8px; height:8px; border-radius:99px; flex:none;}
:is(#amdv2,#amdv2-drawer,.v2ov) .v2main{min-width:0; padding:16px 24px 48px;}
:is(#amdv2,#amdv2-drawer,.v2ov) .crumb{display:flex; align-items:center; gap:8px; font-size:13px; color:var(--muted);}
:is(#amdv2,#amdv2-drawer,.v2ov) .ph{display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin:4px 0 12px;}
:is(#amdv2,#amdv2-drawer,.v2ov) .ph h1{margin:0; font-size:22px;}
:is(#amdv2,#amdv2-drawer,.v2ov) .tabs{display:flex; gap:20px; border-bottom:1px solid var(--line); margin-bottom:12px;}
:is(#amdv2,#amdv2-drawer,.v2ov) .tabs button{position:relative; height:40px; padding:0 2px; border:0; background:none; font-weight:700; color:var(--muted); cursor:pointer;}
:is(#amdv2,#amdv2-drawer,.v2ov) .tabs button.on{color:var(--pri);}
:is(#amdv2,#amdv2-drawer,.v2ov) .tabs button.on::after{content:""; position:absolute; left:0; right:0; bottom:-1px; height:2px; background:var(--pri); border-radius:2px;}
:is(#amdv2,#amdv2-drawer,.v2ov) .bar{display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:12px;}
:is(#amdv2,#amdv2-drawer,.v2ov) .search{height:32px; width:240px; padding:0 10px; border:1px solid #C3C6D4; border-radius:8px; background:#fff; font:inherit; font-size:13px;}
:is(#amdv2,#amdv2-drawer,.v2ov) .chip{height:28px; padding:0 10px; border:1px solid #C3C6D4; border-radius:99px; background:#fff; font-size:12.5px; font-weight:700; color:var(--muted); cursor:pointer;}
:is(#amdv2,#amdv2-drawer,.v2ov) .chip.on{border-color:var(--pri); background:#E5F0FF; color:var(--pri);}
:is(#amdv2,#amdv2-drawer,.v2ov) .btn{display:inline-flex; align-items:center; gap:6px; height:32px; padding:0 12px; border:1px solid #C3C6D4; border-radius:8px; background:#fff; font-weight:700; font-size:13px; cursor:pointer;}
:is(#amdv2,#amdv2-drawer,.v2ov) .btn.pri{border-color:var(--pri); background:var(--pri); color:#fff;}
:is(#amdv2,#amdv2-drawer,.v2ov) .btn.pri:hover{background:#1D4ED8;}
:is(#amdv2,#amdv2-drawer,.v2ov) .btn.ok{border-color:#00C875; background:#00C875; color:#0A3D25;}
:is(#amdv2,#amdv2-drawer,.v2ov) .sel{height:32px; padding:0 8px; border:1px solid #C3C6D4; border-radius:8px; background:#fff; font:inherit; font-size:13px;}
:is(#amdv2,#amdv2-drawer,.v2ov) .mock{display:inline-block; padding:0 8px; border-radius:4px; background:#FFF4E5; color:#8A5200; font-size:11px; font-weight:700; line-height:20px;}
:is(#amdv2,#amdv2-drawer,.v2ov) .card{border-radius:8px; background:#fff; box-shadow:0 1px 3px rgba(30,40,70,.07);}
:is(#amdv2,#amdv2-drawer,.v2ov) .card h3{margin:0; padding:12px 16px 4px; font-size:14px;}
:is(#amdv2,#amdv2-drawer,.v2ov) .mut{color:var(--muted); font-size:12px;}
:is(#amdv2,#amdv2-drawer,.v2ov) .ik{font-size:11.5px; font-weight:700; color:var(--muted); white-space:nowrap;}
:is(#amdv2,#amdv2-drawer,.v2ov) .ty{display:inline-grid; place-items:center; width:16px; height:16px; border-radius:4px; flex:none; color:#fff;}
:is(#amdv2,#amdv2-drawer,.v2ov) .ty.feature{background:#579BFC;}
:is(#amdv2,#amdv2-drawer,.v2ov) .ty.bug{background:var(--bad);}
:is(#amdv2,#amdv2-drawer,.v2ov) .av{display:inline-grid; place-items:center; width:22px; height:22px; border-radius:99px; background:#E5F0FF; color:#0059B3; font-size:10px; font-weight:700; flex:none;}
:is(#amdv2,#amdv2-drawer,.v2ov) .st{display:inline-flex; align-items:center; gap:6px; padding:0 8px; border-radius:4px; font-size:12px; font-weight:700; line-height:22px; white-space:nowrap;}
:is(#amdv2,#amdv2-drawer,.v2ov) .st i{width:8px; height:8px; border-radius:99px;}
:is(#amdv2,#amdv2-drawer,.v2ov) .otag{display:inline-flex; align-items:center; gap:4px; max-width:160px; padding:0 6px; border-radius:4px; font-size:11px; font-weight:700; line-height:18px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
:is(#amdv2,#amdv2-drawer,.v2ov) .board{display:grid; grid-template-columns:repeat(5, minmax(168px, 1fr)); gap:8px; overflow-x:auto; align-items:start;}
:is(#amdv2,#amdv2-drawer,.v2ov) .col{min-width:220px;}
:is(#amdv2,#amdv2-drawer,.v2ov) .colh{position:sticky; top:0; z-index:2; display:flex; align-items:center; gap:8px; padding:8px; border-radius:8px 8px 0 0; background:var(--bg); font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--muted);}
:is(#amdv2,#amdv2-drawer,.v2ov) .colh i{width:10px; height:10px; border-radius:99px;}
:is(#amdv2,#amdv2-drawer,.v2ov) .colh .n{margin-left:auto;}
:is(#amdv2,#amdv2-drawer,.v2ov) .lane{grid-column:1 / -1; display:flex; align-items:center; gap:8px; margin-top:8px; padding:6px 8px; border-radius:8px; background:#fff; box-shadow:inset 3px 0 0 var(--lc); cursor:pointer; font-weight:700; font-size:13px;}
:is(#amdv2,#amdv2-drawer,.v2ov) .lane .mut{font-weight:400;}
:is(#amdv2,#amdv2-drawer,.v2ov) .drop{min-height:48px; padding:4px; border-radius:8px; background:#EEF0F5; display:flex; flex-direction:column; gap:6px;}
:is(#amdv2,#amdv2-drawer,.v2ov) .drop.over{background:#DCEBFF; outline:2px dashed var(--pri);}
:is(#amdv2,#amdv2-drawer,.v2ov) .ic{padding:8px 10px; border-radius:8px; background:#fff; box-shadow:0 1px 2px rgba(30,40,70,.1); cursor:grab; border-left:3px solid var(--lc);}
:is(#amdv2,#amdv2-drawer,.v2ov) .ic:hover{box-shadow:0 0 0 2px var(--pri);}
:is(#amdv2,#amdv2-drawer,.v2ov) .ic .t{font-size:13px; line-height:1.35; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;}
:is(#amdv2,#amdv2-drawer,.v2ov) .ic .m{display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-top:6px; min-width:0;}
:is(#amdv2,#amdv2-drawer,.v2ov) .ic .m .av{margin-left:auto;}
:is(#amdv2,#amdv2-drawer,.v2ov) .more{padding:4px; text-align:center; font-size:12px; color:var(--muted);}
:is(#amdv2,#amdv2-drawer,.v2ov) .list .grp{display:flex; align-items:center; gap:8px; padding:10px 12px; border-top:1px solid var(--line); background:#FAFBFC; font-weight:700; cursor:pointer;}
:is(#amdv2,#amdv2-drawer,.v2ov) .list .grp .bar2{width:120px; height:6px; border-radius:99px; background:#EEF0F3; overflow:hidden;}
:is(#amdv2,#amdv2-drawer,.v2ov) .list .grp .bar2 i{display:block; height:100%; background:var(--s-done);}
:is(#amdv2,#amdv2-drawer,.v2ov) .row{display:grid; grid-template-columns:72px 18px minmax(0,1fr) 140px 120px 32px 70px; align-items:center; gap:10px; padding:0 12px; height:40px; border-top:1px solid var(--line); cursor:pointer; font-size:13px;}
:is(#amdv2,#amdv2-drawer,.v2ov) .row:hover{background:var(--hover);}
:is(#amdv2,#amdv2-drawer,.v2ov) .row .tt{overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
/* Dòng thông báo trong bảng («Chưa có…», «+ N việc nữa») — không dùng lưới 7 cột, nếu không chữ dồn vào cột 72px, bẻ 6 dòng đè dòng dưới */
:is(#amdv2,#amdv2-drawer,.v2ov) .row.mut{display:block; height:auto; min-height:40px; padding:11px 12px; white-space:normal; cursor:default;}
:is(#amdv2,#amdv2-drawer,.v2ov) .addrow{display:flex; align-items:center; gap:8px; padding:6px 12px 10px 102px; border-top:1px solid var(--line);}
:is(#amdv2,#amdv2-drawer,.v2ov) .addrow input{flex:1; height:30px; padding:0 8px; border:1px dashed #C3C6D4; border-radius:4px; font:inherit; font-size:13px; background:transparent;}
:is(#amdv2,#amdv2-drawer,.v2ov) .ov{display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); gap:16px;}
:is(#amdv2,#amdv2-drawer,.v2ov) .oc{display:grid; grid-template-columns:minmax(0,1fr) 200px 120px; align-items:center; gap:12px; padding:10px 16px; border-top:1px solid var(--line); cursor:pointer;}
:is(#amdv2,#amdv2-drawer,.v2ov) .oc:hover{background:var(--hover);}
:is(#amdv2,#amdv2-drawer,.v2ov) .step5{display:flex; gap:3px;}
:is(#amdv2,#amdv2-drawer,.v2ov) .step5 b{flex:1; height:6px; border-radius:99px; background:#EEF0F3;}
:is(#amdv2,#amdv2-drawer,.v2ov) .step5 b.d{background:var(--s-done);}
:is(#amdv2,#amdv2-drawer,.v2ov) .step5 b.c{background:var(--pri);}
:is(#amdv2,#amdv2-drawer,.v2ov) .prog{display:flex; align-items:center; gap:8px; font-size:12px;}
:is(#amdv2,#amdv2-drawer,.v2ov) .prog span{flex:1; height:6px; border-radius:99px; background:#EEF0F3; overflow:hidden;}
:is(#amdv2,#amdv2-drawer,.v2ov) .prog i{display:block; height:100%; background:var(--s-done);}
:is(#amdv2,#amdv2-drawer,.v2ov) .kp{display:grid; grid-template-columns:repeat(4,1fr); gap:8px; padding:8px 16px 16px;}
:is(#amdv2,#amdv2-drawer,.v2ov) .kp div{padding:8px 10px; border-radius:8px; background:var(--bg);}
:is(#amdv2,#amdv2-drawer,.v2ov) .kp b{display:block; font-size:20px;}
:is(#amdv2,#amdv2-drawer,.v2ov) .kp span{font-size:11px; color:var(--muted);}
:is(#amdv2,#amdv2-drawer,.v2ov) .feed div{display:flex; gap:8px; align-items:baseline; padding:6px 16px; border-top:1px solid var(--line); font-size:13px;}
:is(#amdv2,#amdv2-drawer,.v2ov) .feed .tt{flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
:is(#amdv2,#amdv2-drawer,.v2ov) svg text{font-family:'Public Sans',system-ui,sans-serif;}
:is(#amdv2,#amdv2-drawer,.v2ov) .road{overflow-x:auto;}
:is(#amdv2,#amdv2-drawer,.v2ov) .road table{border-collapse:collapse; width:100%; min-width:960px;}
:is(#amdv2,#amdv2-drawer,.v2ov) .road th{position:sticky; top:0; padding:8px; background:#FAFBFC; border-bottom:1px solid var(--line); font-size:11px; font-weight:700; text-transform:uppercase; color:var(--muted); text-align:left;}
:is(#amdv2,#amdv2-drawer,.v2ov) .road td{padding:0; border-bottom:1px solid var(--line); height:44px;}
:is(#amdv2,#amdv2-drawer,.v2ov) .road .nm{width:220px; padding:0 12px; font-weight:700; font-size:13px; cursor:pointer;}
:is(#amdv2,#amdv2-drawer,.v2ov) .track{position:relative; height:44px;}
:is(#amdv2,#amdv2-drawer,.v2ov) .track .wk{position:absolute; top:0; bottom:0; border-left:1px dashed #E6E9EF;}
:is(#amdv2,#amdv2-drawer,.v2ov) .track .today{position:absolute; top:0; bottom:0; width:2px; background:var(--bad);}
:is(#amdv2,#amdv2-drawer,.v2ov) .track .bb{position:absolute; top:11px; height:22px; border-radius:6px; overflow:hidden; display:flex; align-items:center; padding:0 8px; font-size:11px; font-weight:700; color:#323338; white-space:nowrap;}
:is(#amdv2,#amdv2-drawer,.v2ov) .track .bb i{position:absolute; left:0; top:0; bottom:0;}
:is(#amdv2,#amdv2-drawer,.v2ov) .su{display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:16px;}
:is(#amdv2,#amdv2-drawer,.v2ov) .su .card{display:flex; flex-direction:column;}
:is(#amdv2,#amdv2-drawer,.v2ov) .su h3{display:flex; align-items:center; gap:8px;}
:is(#amdv2,#amdv2-drawer,.v2ov) .su .it{display:flex; gap:8px; align-items:flex-start; padding:6px 16px; border-top:1px solid var(--line); font-size:13px; cursor:pointer;}
:is(#amdv2,#amdv2-drawer,.v2ov) .su .it:hover{background:var(--hover);}
:is(#amdv2,#amdv2-drawer,.v2ov) .su .it .tt{flex:1; min-width:0;}
:is(#amdv2,#amdv2-drawer,.v2ov) .su textarea{margin:8px 16px 16px; min-height:96px; padding:8px; border:1px solid #C3C6D4; border-radius:8px; font:inherit; font-size:13px; resize:vertical;}
:is(#amdv2,#amdv2-drawer,.v2ov) .team{display:grid; grid-template-columns:repeat(auto-fit, minmax(320px,1fr)); gap:16px; margin-top:16px;}
:is(#amdv2,#amdv2-drawer,.v2ov) .ib{display:flex; gap:12px; align-items:center; padding:12px 16px; border-top:1px solid var(--line);}
:is(#amdv2,#amdv2-drawer,.v2ov) .ib .tt{flex:1;}
/* Chi tiết việc = modal giữa màn (18/11): #amdv2-drawer là lớp nền mờ, .dbox là hộp */
#amdv2-drawer{position:fixed; inset:0; z-index:10030; display:none; place-items:center; padding:24px; background:rgba(24,24,27,.45);}
#amdv2-drawer.on{display:grid;}
#amdv2-drawer .dbox{display:flex; flex-direction:column; width:min(1000px,100%); max-height:min(92vh,1000px); border-radius:16px; background:#fff; box-shadow:0 24px 64px rgba(30,40,70,.35); overflow:hidden;}
#amdv2-drawer .drv{display:flex; justify-content:flex-end; gap:8px; margin-top:16px; padding-top:12px; border-top:1px solid var(--line);}
:is(#amdv2,#amdv2-drawer,.v2ov) .dh{display:flex; align-items:center; gap:8px; padding:12px 16px; border-bottom:1px solid var(--line);}
:is(#amdv2,#amdv2-drawer,.v2ov) .db{flex:1; overflow:auto; padding:16px;}
:is(#amdv2,#amdv2-drawer,.v2ov) .db h2{margin:4px 0 12px; font-size:18px; line-height:1.35;}
:is(#amdv2,#amdv2-drawer,.v2ov) .fld{display:grid; grid-template-columns:120px 1fr; gap:8px; align-items:center; padding:6px 0; font-size:13px;}
:is(#amdv2,#amdv2-drawer,.v2ov) .fld > span:first-child{color:var(--muted);}
.v2ov{position:fixed; inset:0; z-index:10040; display:none; place-items:start center; padding-top:12vh; background:rgba(30,32,51,.35);}
.v2ov.on{display:grid;}
:is(#amdv2,#amdv2-drawer,.v2ov) .pal{width:min(640px,94vw); border-radius:12px; background:#fff; box-shadow:0 24px 64px rgba(30,40,70,.35); overflow:hidden;}
:is(#amdv2,#amdv2-drawer,.v2ov) .pal input{width:100%; height:52px; padding:0 16px; border:0; border-bottom:1px solid var(--line); font:inherit; font-size:16px; outline:0;}
:is(#amdv2,#amdv2-drawer,.v2ov) .pal .res{max-height:52vh; overflow:auto; padding:6px;}
:is(#amdv2,#amdv2-drawer,.v2ov) .pal .r{display:flex; align-items:center; gap:8px; padding:8px 10px; border-radius:8px; cursor:pointer; font-size:13.5px;}
:is(#amdv2,#amdv2-drawer,.v2ov) .pal .r.on, :is(#amdv2,#amdv2-drawer,.v2ov) .pal .r:hover{background:#E5F0FF;}
:is(#amdv2,#amdv2-drawer,.v2ov) .pal .gh{padding:8px 10px 4px; font-size:11px; font-weight:700; text-transform:uppercase; color:var(--muted);}
:is(#amdv2,#amdv2-drawer,.v2ov) .v2dlg{width:min(560px,94vw); border-radius:12px; background:#fff; box-shadow:0 24px 64px rgba(30,40,70,.35);}
:is(#amdv2,#amdv2-drawer,.v2ov) .v2dlg .mh{padding:14px 16px; border-bottom:1px solid var(--line); font-weight:700; border-top:3px solid var(--pri); border-radius:12px 12px 0 0;}
:is(#amdv2,#amdv2-drawer,.v2ov) .v2dlg .mb{display:flex; flex-direction:column; gap:10px; padding:16px; background:var(--bg);}
:is(#amdv2,#amdv2-drawer,.v2ov) .v2dlg .mb input, :is(#amdv2,#amdv2-drawer,.v2ov) .v2dlg .mb select{height:36px; padding:0 10px; border:1px solid #C3C6D4; border-radius:6px; font:inherit; background:#fff;}
:is(#amdv2,#amdv2-drawer,.v2ov) .v2dlg .mf{display:flex; justify-content:flex-end; gap:8px; padding:12px 16px; border-top:1px solid var(--line);}
#amdv2-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-weight:700; font-size:13px; opacity:0; transition:.2s; pointer-events:none;}
#amdv2-toast.on{opacity:1; transform:translate(-50%,0);}
#amdv2-tip{position:fixed; z-index:10070; padding:6px 10px; border-radius:6px; background:#1F2033; color:#fff; font-size:12px; pointer-events:none; display:none;}
:is(#amdv2,#amdv2-drawer,.v2ov) .hint{display:flex; gap:12px; flex-wrap:wrap; margin-top:8px; font-size:12px; color:var(--muted);}
:is(#amdv2,#amdv2-drawer,.v2ov) .role{display:flex; align-items:center; gap:4px; margin:4px 0 8px; padding:4px; border-radius:8px; background:var(--bg); font-size:11px; color:var(--muted);}
:is(#amdv2,#amdv2-drawer,.v2ov) .role span{padding:0 4px;}
:is(#amdv2,#amdv2-drawer,.v2ov) .role button{flex:1; height:26px; border:0; border-radius:6px; background:none; font-size:12px; font-weight:700; color:var(--muted); cursor:pointer;}
:is(#amdv2,#amdv2-drawer,.v2ov) .role button.on{background:#fff; color:var(--pri); box-shadow:0 1px 3px rgba(30,40,70,.12);}
:is(#amdv2,#amdv2-drawer,.v2ov) .phs{display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin-bottom:16px;}
:is(#amdv2,#amdv2-drawer,.v2ov) .ph1{padding:8px 12px; border-radius:8px; background:#fff; box-shadow:0 1px 2px rgba(30,40,70,.06);}
:is(#amdv2,#amdv2-drawer,.v2ov) .ph1 b{display:block; font-size:13px;}
:is(#amdv2,#amdv2-drawer,.v2ov) .ph1 span{font-size:11.5px; color:var(--muted);}
:is(#amdv2,#amdv2-drawer,.v2ov) .ph1.on{box-shadow:inset 0 0 0 2px var(--pri); background:#EAF4FF;}
:is(#amdv2,#amdv2-drawer,.v2ov) .ph1.on b{color:var(--pri);}
:is(#amdv2,#amdv2-drawer,.v2ov) .ph1.done b{color:#00734A;}
:is(#amdv2,#amdv2-drawer,.v2ov) .goal{padding:0 10px; border-radius:99px; background:#E5F0FF; color:#0059B3; font-size:13px; font-weight:700; line-height:28px;}
:is(#amdv2,#amdv2-drawer,.v2ov) .plan2{display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); gap:16px; align-items:start;}
:is(#amdv2,#amdv2-drawer,.v2ov) .pgh{padding:10px 16px 4px; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--muted);}
:is(#amdv2,#amdv2-drawer,.v2ov) .it{display:flex; gap:8px; align-items:flex-start; padding:6px 16px; border-top:1px solid var(--line); font-size:13px; cursor:pointer;}
:is(#amdv2,#amdv2-drawer,.v2ov) .it:hover{background:var(--hover);}
:is(#amdv2,#amdv2-drawer,.v2ov) .it .tt{flex:1; min-width:0;}
:is(#amdv2,#amdv2-drawer,.v2ov) .it.dim{opacity:.55; cursor:not-allowed;}
:is(#amdv2,#amdv2-drawer,.v2ov) .rk{display:inline-grid; place-items:center; min-width:22px; height:22px; border-radius:4px; background:#F1F3F8; font-size:11px; font-weight:700; color:var(--muted);}
:is(#amdv2,#amdv2-drawer,.v2ov) .cap{display:flex; align-items:center; gap:10px; padding:8px 16px;}
:is(#amdv2,#amdv2-drawer,.v2ov) .rv{display:flex; gap:12px; padding:10px 16px; border-top:1px solid var(--line); font-size:13px;}
:is(#amdv2,#amdv2-drawer,.v2ov) .rv .tt{flex:1;}
:is(#amdv2,#amdv2-drawer,.v2ov) .rva{display:flex; flex-direction:column; gap:6px;}
:is(#amdv2,#amdv2-drawer,.v2ov) .btn:disabled{opacity:.5; cursor:not-allowed;}
/* ── Riêng bản thật trong App Manager (am-dev2.js) ── */
#amdv2{ color:var(--ink); font:400 14px/1.45 'Public Sans','Be Vietnam Pro',system-ui,sans-serif; margin:0 -8px; }
#amdv2 .v2app{ grid-template-columns:220px minmax(0,1fr); min-height:calc(100vh - 140px); background:var(--bg); border-radius:8px; overflow:hidden; }
#amdv2 .v2side{ height:calc(100vh - 140px); }
#amdv2 .v2main{ padding:16px 20px 40px; }
#amdv2 .v2load{ padding:40px; text-align:center; color:var(--muted); }
#amdv2 .v2warn{ margin-bottom:12px; padding:10px 14px; border-radius:8px; background:#FFF4E5; color:#8A5300; font-size:13px; }
#amdv2 .v2warn code, #amdv2-drawer code{ padding:0 4px; border-radius:4px; background:rgba(0,0,0,.06); font-size:12px; }
#amdv2 .dot, #amdv2-drawer .dot{ display:inline-block; width:6px; height:6px; border-radius:99px; flex:none; }
#amdv2 .kbd, #amdv2 kbd{ padding:0 4px; border:1px solid #C3C6D4; border-radius:4px; background:#fff; font:700 11px/16px 'Public Sans'; color:var(--muted); }
#amdv2 .btn.pri .kbd{ background:transparent; color:#fff; border-color:rgba(255,255,255,.5); }
#amdv2 .tag, #amdv2-drawer .tag{ display:inline-block; padding:0 6px; border-radius:4px; background:#FFF4E5; color:#8A5200; font-size:11px; font-weight:700; line-height:18px; } #amdv2 .tag.red{ background:#FCE8EB; color:#C32E43; }
#amdv2-drawer{ font:400 14px/1.45 'Public Sans','Be Vietnam Pro',system-ui,sans-serif; color:#323338; }
#amdv2-drawer .dh3{ margin:16px 0 6px; font-size:14px; } #amdv2-drawer .desc{ overflow-wrap:anywhere; margin:8px 0; padding:8px 10px; border-radius:8px; background:#F6F7FB; font-size:13px; }
#amdv2-drawer .lnk{ border:0; background:none; color:#C4314B; font-size:11px; cursor:pointer; }
.v2ov .pal input, .v2ov .v2dlg input, .v2ov .v2dlg select{ font-family:'Public Sans',system-ui,sans-serif; }
.v2ov{ font:400 14px/1.45 'Public Sans','Be Vietnam Pro',system-ui,sans-serif; color:#323338; }
#amdv2-toast.bad{ background:#C4314B; }
/* Tab Outcome (18/11, thay tab Milestone): thẻ Outcome = thanh 5 bước + Feature (bung việc con) + Việc chung. Bước KHÔNG chứa việc. */
#amdv2 .otree{ display:flex; flex-direction:column; gap:16px; }
#amdv2 .ocard{ box-shadow:inset 4px 0 0 var(--oc), 0 1px 3px rgba(30,40,70,.07); }
#amdv2 .och{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:12px 16px 4px 20px; }
#amdv2 .och h3{ margin:0; padding:0; font-size:15px; }
#amdv2 .och .oact{ margin-left:auto; display:flex; align-items:center; gap:6px; }
#amdv2 .steps{ display:flex; flex-wrap:wrap; gap:4px; padding:6px 16px 12px 20px; }
#amdv2 .step{ display:inline-flex; align-items:center; gap:6px; padding:3px 10px 3px 3px; border-radius:99px; background:#F1F3F8; color:var(--muted); font-size:12px; font-weight:700; }
#amdv2 .step i{ display:inline-grid; place-items:center; width:20px; height:20px; border-radius:99px; background:#fff; font-style:normal; font-size:11px; }
#amdv2 .step em{ padding:0 6px; border-radius:99px; background:#fff; color:#6B2FA3; font-style:normal; font-size:10.5px; font-weight:600; }
#amdv2 .step.done{ background:#E5F9F0; color:#00734A; } #amdv2 .step.done i{ background:var(--s-done); color:#fff; }
#amdv2 .step.cur{ background:#E5F0FF; color:#0059B3; } #amdv2 .step.cur i{ background:var(--pri); color:#fff; }
#amdv2 .step.wait{ background:#F3E9FB; color:#6B2FA3; } #amdv2 .step.wait i{ background:#A25DDC; color:#fff; }
#amdv2 .frow{ border-top:1px solid var(--line); }
#amdv2 .fh{ display:flex; align-items:center; gap:10px; height:42px; padding:0 12px 0 20px; cursor:pointer; font-size:13.5px; }
#amdv2 .fh:hover{ background:var(--hover); }
#amdv2 .fh .chev{ flex:none; width:14px; color:var(--muted); }
#amdv2 .fh .tt{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; cursor:pointer; } #amdv2 .fh .tt:hover{ color:var(--pri); }
#amdv2 .fp{ display:flex; align-items:center; gap:8px; margin-left:auto; font-size:12px; color:var(--muted); white-space:nowrap; }
#amdv2 .fp > span{ width:90px; height:6px; border-radius:99px; background:#EEF0F3; overflow:hidden; } #amdv2 .fp i{ display:block; height:100%; background:var(--s-done); }
#amdv2 .fbody{ padding:0 0 4px 28px; background:#FCFCFD; }
#amdv2 .fbody .addrow{ padding-left:96px; }
#amdv2 .flow{ display:inline-flex; align-items:center; height:24px; padding:0 10px; border-radius:99px; background:#F1F3F8; color:var(--muted); font-size:12px; font-weight:700; }
#amdv2 .flow.cur{ background:#E5F0FF; color:#0059B3; } #amdv2 .flow.wait{ background:#F3E9FB; color:#6B2FA3; } #amdv2 .flow.done{ background:#E5F9F0; color:#00734A; }
#amdv2 .btn.sm{ height:28px; padding:0 10px; font-size:12.5px; }
#amdv2 .nav.add{ color:var(--pri); font-weight:700; } #amdv2 .nav.dim{ color:var(--muted); }
.v2ov .swatch{ display:flex; gap:8px; } .v2ov .swatch label{ position:relative; cursor:pointer; } .v2ov .swatch input{ position:absolute; opacity:0; }
.v2ov .swatch i{ display:block; width:24px; height:24px; border-radius:99px; }
.v2ov .swatch input:checked + i{ outline:2px solid #323338; outline-offset:2px; } .v2ov .swatch input:focus-visible + i{ outline:2px solid var(--pri); outline-offset:2px; }
.v2ov .v2dlg .mb .mut{ font-size:12.5px; color:#676879; } .v2ov .v2dlg .mb code{ font-size:12px; }
#amdv2 .tag.ok{ background:#E5F9F0; color:#00734A; } #amdv2 .tag.feat{ background:#DCEBFF; color:#0059B3; }
/* Plan hôm nay: ma trận Dự án › Outcome × trạng thái */
#amdv2 .mx{ margin-top:8px; }
#amdv2 .mxr{ display:grid; grid-template-columns:minmax(200px,.8fr) repeat(3, minmax(0,1fr)); border-top:1px solid var(--line); }
#amdv2 .mxr > div{ min-width:0; padding:8px 12px; } #amdv2 .mxr > div + div{ border-left:1px solid var(--line); }
#amdv2 .mxh{ background:var(--bg); font-size:11px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--muted); }
#amdv2 .mxh b{ margin-left:4px; color:var(--ink); }
#amdv2 .mxl{ display:flex; align-items:flex-start; gap:8px; } #amdv2 .mxl > div{ display:flex; flex-direction:column; min-width:0; }
#amdv2 .mxl .dot{ width:8px; height:8px; margin-top:6px; } #amdv2 .mxl .mut{ font-size:12px; }
/* Plan hôm nay (18/11): cùng ma trận, 4 cột trạng thái, mỗi ô là vùng thả thẻ */
#amdv2 .mxr.c4{ grid-template-columns:minmax(180px,.7fr) repeat(4, minmax(0,1fr)); }
#amdv2 .mxr.c4 .drop{ min-height:56px; border-radius:0; } #amdv2 .mxr.c4 .drop:not(.over){ background:none; }
#amdv2 .ic .par{ margin-top:2px; font-size:11.5px; color:var(--muted); }
/* 18/11 (anh Khoa): Plan hôm nay + Báo cáo hiện ĐỦ tên việc, thẻ tự giãn theo nội dung (bảng việc trang dự án vẫn cắt 3 dòng) */
#amdv2 .mxr .ic .t{ display:block; -webkit-line-clamp:unset; overflow:visible; overflow-wrap:anywhere; white-space:pre-line; }
/* 18/11: tên Outcome / việc có xuống dòng (Shift+Enter) hiện đúng dòng; Feature của việc hiện dưới tên như tên Outcome dưới tên dự án */
#amdv2 .mxl .mut, #amdv2-drawer .db h2{ white-space:pre-line; }
#amdv2 .ic .fts{ display:flex; flex-direction:column; gap:1px; margin-top:4px; font-size:12px; line-height:1.35; color:var(--muted); }
#amdv2 .ic .fts span::before{ content:"· "; }
#amdv2-drawer .ftl div{ font-size:13px; padding:2px 0; }
.v2ov .v2dlg .fl textarea{ width:100%; padding:8px 10px; border:1px solid #D4D4DC; border-radius:8px; font:400 14px/1.4 'Public Sans',system-ui,sans-serif; color:var(--ink); resize:vertical; }
.v2ov .v2dlg .fl textarea:focus{ outline:0; border-color:var(--pri); box-shadow:0 0 0 3px rgba(37,99,235,.28); }
/* Báo cáo hôm nay (18/11): hàng Dự án › Outcome × 1 ô thẻ việc đã xong, thẻ dàn ngang */
#amdv2 .mxr.c1{ grid-template-columns:minmax(180px,.7fr) minmax(0,3fr); }
#amdv2 .rcards{ display:grid; grid-template-columns:repeat(auto-fill, minmax(240px,1fr)); gap:8px; }
#amdv2 .ic.rc{ cursor:pointer; }
@media (max-width:900px){ #amdv2 .mxr, #amdv2 .mxr.c4, #amdv2 .mxr.c1{ grid-template-columns:1fr; } #amdv2 .mxr.c4 .drop{ min-height:0; } #amdv2 .mxr.c4 .drop:empty{ display:none; }
  #amdv2 .mxr.c4 .drop::before{ content:attr(data-l); font-size:11px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--muted); } #amdv2 .mxr > div + div{ border-left:0; } #amdv2 .mxh{ display:none; } }

/* 18/11 DS v3: hộp nhập có nhãn + nút đóng (radius 16), sidebar nhóm «Chưa có Outcome», thẻ radius 12, primary cobalt. */
:is(#amdv2,#amdv2-drawer,.v2ov) .v2dlg{ border-radius:16px; overflow:hidden; }
:is(#amdv2,#amdv2-drawer,.v2ov) .v2dlg .mh{ display:flex; align-items:center; justify-content:space-between; border-top:0; border-radius:0; font-size:16px; padding:14px 12px 14px 20px; }
:is(#amdv2,#amdv2-drawer,.v2ov) .v2dlg .mb{ background:#fff; padding:16px 20px; gap:14px; }
:is(#amdv2,#amdv2-drawer,.v2ov) .v2dlg .mf{ padding:12px 20px; background:var(--bg); }
.v2ov .v2dlg .fl{ display:flex; flex-direction:column; gap:6px; font-size:12px; font-weight:700; color:var(--muted); }
:is(#amdv2,#amdv2-drawer,.v2ov) .v2dlg .fl input, :is(#amdv2,#amdv2-drawer,.v2ov) .v2dlg .fl select{ width:100%; height:36px; padding:0 10px; border:1px solid #D4D4DC; border-radius:8px; font:400 14px 'Public Sans',system-ui,sans-serif; color:var(--ink); background:#fff; }
:is(#amdv2,#amdv2-drawer,.v2ov) .v2dlg .fl input:focus, :is(#amdv2,#amdv2-drawer,.v2ov) .v2dlg .fl select:focus{ outline:0; border-color:var(--pri); box-shadow:0 0 0 3px rgba(37,99,235,.28); }
.v2ov .v2dlg .g2{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.v2ov .v2dlg .ck{ display:flex; align-items:center; gap:8px; font-size:13px; color:var(--ink); }
.v2ov .xbtn{ display:inline-grid; place-items:center; width:32px; height:32px; border:0; border-radius:8px; background:transparent; color:var(--muted); cursor:pointer; font-size:18px; }
.v2ov .xbtn:hover{ background:var(--hover); color:var(--ink); } .v2ov .xbtn:focus-visible{ outline:0; box-shadow:0 0 0 3px rgba(37,99,235,.28); }
:is(#amdv2,#amdv2-drawer,.v2ov) .card{ border-radius:12px; }
#amdv2 .nav .nm{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-align:left; }
#amdv2 .nav.more{ color:var(--muted); font-weight:700; font-size:12px; } #amdv2 .nav.more .chev{ width:14px; flex:none; }
/* Sửa / Xoá ngay trên dòng việc và dòng Feature (hiện khi rê chuột; màn cảm ứng luôn hiện) */
#amdv2 .ra{ display:inline-flex; gap:2px; justify-content:flex-end; opacity:0; transition:opacity .12s; } #amdv2 .fh .ra{ flex:none; }
#amdv2 .row:hover .ra, #amdv2 .fh:hover .ra, #amdv2 .och:hover .ra, #amdv2 .ra:focus-within{ opacity:1; } #amdv2 .och .ra{ flex:none; } @media (hover:none){ #amdv2 .ra{ opacity:1; } }
#amdv2 .ibtn{ display:inline-grid; place-items:center; width:28px; height:28px; border:0; border-radius:8px; background:transparent; color:var(--muted); cursor:pointer; font-size:16px; }
#amdv2 .ibtn:hover{ background:#E4E4E9; color:var(--ink); } #amdv2 .ibtn.del:hover{ background:#FEF3F2; color:#B42318; }
#amdv2 .ibtn:focus-visible{ outline:0; box-shadow:0 0 0 3px rgba(37,99,235,.28); }
/* Ngăn chi tiết: tên sửa tại chỗ, người làm / Feature / mô tả sửa được, nút Xoá */
#amdv2-drawer .db h2.ed{ margin-left:-6px; padding:2px 6px; border-radius:8px; outline:0; cursor:text; }
#amdv2-drawer .db h2.ed:hover{ background:var(--hover); } #amdv2-drawer .db h2.ed:focus{ background:#fff; box-shadow:0 0 0 2px var(--pri); }
#amdv2-drawer .fld .sel{ width:100%; max-width:280px; } #amdv2-drawer .fdesc{ align-items:start; }
#amdv2-drawer .dsc{ width:100%; min-height:72px; padding:8px 10px; border:1px solid #C3C6D4; border-radius:8px; font:inherit; font-size:13px; line-height:1.45; resize:vertical; }
#amdv2-drawer .dsc:focus{ outline:0; border-color:var(--pri); box-shadow:0 0 0 3px rgba(37,99,235,.18); }
#amdv2-drawer .btn.dng{ color:#B42318; } #amdv2-drawer .btn.dng:hover{ border-color:#FDA29B; background:#FEF3F2; }
/* 18/11 chiều (anh Khoa): modal việc rộng hơn + tô màu; thông tin chính lên đầu cạnh mã; Feature theo milestone có nút Done / Chưa done. */
#amdv2-drawer .dh{ flex-wrap:wrap; gap:8px 10px; padding:14px 20px; background:#F8FAFF; }
#amdv2-drawer .dmeta{ display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
#amdv2-drawer .mchip{ display:inline-flex; align-items:center; gap:6px; height:30px; padding:0 10px; border:1px solid #D5DEF5; border-radius:99px; background:#fff; font-size:13px; font-weight:600; white-space:nowrap; }
#amdv2-drawer .mchip > span:first-child{ font-size:11px; font-weight:700; letter-spacing:.02em; color:var(--muted); }
#amdv2-drawer .mchip[data-m="ost"]{ border-color:#C7D7FE; background:#EEF4FF; color:#1D4ED8; }
#amdv2-drawer .mchip .sel{ height:24px; padding:0 4px; border:0; background:transparent; font-weight:700; }
#amdv2-drawer .dact{ display:flex; gap:8px; margin-left:auto; } #amdv2-drawer .dact .btn{ height:30px; }
#amdv2-drawer .db{ padding:18px 24px 24px; } #amdv2-drawer .db h2{ font-size:20px; }
#amdv2-drawer .stsel{ font-weight:700; }
#amdv2-drawer .dsec{ margin-top:16px; padding:12px 16px 16px; border-radius:12px; border:1px solid; }
#amdv2-drawer .dsec .dh3{ margin:0 0 10px; font-size:15px; }
#amdv2-drawer .fsec{ border-color:#C7D7FE; background:#F5F8FF; } #amdv2-drawer .fsec .dh3{ color:#1D4ED8; }
#amdv2-drawer .asec{ border-color:#E9D7FE; background:#FAF5FF; } #amdv2-drawer .asec .dh3{ color:#6941C6; }
#amdv2-drawer .msb{ margin-top:8px; padding:10px 12px; border:1px solid var(--line); border-left:4px solid #C3C6D4; border-radius:10px; background:#fff; }
#amdv2-drawer .msb.cur{ border-color:#93B4FD; border-left-color:#2563EB; box-shadow:0 0 0 3px rgba(37,99,235,.08); }
#amdv2-drawer .msb.done{ border-left-color:#12B76A; background:#F6FEF9; }
#amdv2-drawer .msh{ display:flex; align-items:center; gap:8px; font-size:13.5px; }
#amdv2-drawer .msh > i{ display:grid; place-items:center; width:22px; height:22px; border-radius:99px; background:#E4E7EC; font-style:normal; font-size:11px; font-weight:700; }
#amdv2-drawer .msb.cur .msh > i{ background:#2563EB; color:#fff; } #amdv2-drawer .msb.done .msh > i{ background:#12B76A; color:#fff; }
#amdv2-drawer .msh em{ padding:0 8px; border-radius:99px; background:#DBE7FF; color:#1D4ED8; font-style:normal; font-size:11px; font-weight:700; line-height:18px; }
#amdv2-drawer .msn{ margin-left:auto; font-size:12px; font-weight:700; color:var(--muted); }
#amdv2-drawer .mbar, #amdv2 .opct > span, #amdv2-drawer .opct > span{ display:inline-block; width:80px; height:6px; border-radius:99px; background:#E4E7EC; overflow:hidden; vertical-align:middle; }
#amdv2-drawer .mbar i, #amdv2 .opct > span i, #amdv2-drawer .opct > span i{ display:block; height:100%; border-radius:99px; background:#12B76A; }
#amdv2-drawer .ftl{ display:flex; flex-direction:column; gap:4px; margin:6px 0; }
#amdv2-drawer .ftr{ display:flex; align-items:center; gap:8px; padding:4px 8px; border-radius:8px; background:#F8F9FB; font-size:13px; }
#amdv2-drawer .ftr .ftt{ flex:1; overflow-wrap:anywhere; } #amdv2-drawer .ftr.ok .ftt{ color:#027A48; }
#amdv2-drawer .fdone{ flex:none; height:24px; padding:0 10px; border:1px solid #C3C6D4; border-radius:99px; background:#fff; color:var(--muted); font-size:12px; font-weight:700; line-height:22px; cursor:pointer; }
#amdv2-drawer .fdone.on{ border-color:#12B76A; background:#12B76A; color:#fff; }
#amdv2-drawer .msb .search{ width:100%; height:30px; margin-top:2px; }
#amdv2 .opct, #amdv2-drawer .opct{ display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:700; color:#027A48; white-space:nowrap; }
#amdv2 .mxl .opct{ display:flex; margin-top:2px; } #amdv2 .mxl .opct > span{ width:56px; }
#amdv2-drawer .opct.big > span{ width:120px; }
#amdv2 .ic .fts span.ok{ color:#027A48; } #amdv2 .ic .fts span.ok::before{ content:"✓ "; }
#amdv2 .step .sfc{ margin-left:4px; padding:0 6px; border-radius:99px; background:#E4E7EC; color:var(--muted); font-size:11px; line-height:16px; } #amdv2 .step .sfc.ok{ background:#D1FADF; color:#027A48; }
/* 18/11 tối (anh Khoa): thẻ việc hiện tới bước nào · Báo cáo hôm nay thêm cột Feedback · mục Feedback của Thảo trong modal. */
#amdv2 .tstep{ display:flex; align-items:center; gap:6px; margin-top:6px; font-size:11.5px; font-weight:700; color:#1D4ED8; }
#amdv2 .tstep.all{ color:#027A48; }
#amdv2 .tseg{ display:inline-flex; gap:2px; } #amdv2 .tseg i{ width:12px; height:5px; border-radius:2px; background:#E4E7EC; }
#amdv2 .tseg i.d{ background:#12B76A; } #amdv2 .tseg i.c{ background:#2563EB; }
#amdv2 .stag{ display:inline-block; margin-left:6px; padding:0 6px; border-radius:99px; background:#EEF4FF; color:#1D4ED8; font-size:11px; font-weight:700; line-height:18px; white-space:nowrap; vertical-align:middle; }
#amdv2 .stag.all{ background:#ECFDF3; color:#027A48; }
#amdv2 .fbq{ margin-top:6px; padding:4px 8px; border-left:3px solid #7A5AF8; border-radius:4px; background:#F4F3FF; color:#5925DC; font-size:12px; white-space:pre-line; overflow-wrap:anywhere; }
#amdv2 .mxr.c2{ grid-template-columns:minmax(180px,.7fr) minmax(0,2fr) minmax(0,1.2fr); }
#amdv2 .mxr.c2 .rcards.fbc{ grid-template-columns:repeat(auto-fill, minmax(220px,1fr)); align-content:start; background:#FAF8FF; }
@media (max-width:900px){ #amdv2 .mxr.c2{ grid-template-columns:1fr; } #amdv2 .mxr.c2 .rcards:empty{ display:none; } }
#amdv2-drawer .fbsec{ border-color:#FEC84B; background:#FFFAEB; } #amdv2-drawer .fbsec .dh3{ color:#B54708; }
#amdv2-drawer .fbi{ display:flex; gap:10px; padding:6px 8px; margin-bottom:4px; border-radius:8px; background:#fff; font-size:13px; white-space:pre-line; overflow-wrap:anywhere; }
#amdv2-drawer .fbi .mut{ flex:none; }
#amdv2-drawer .fbact{ display:flex; justify-content:flex-end; margin-top:6px; }
/* 18/11 tối (anh Khoa): bỏ viết tắt KV / KV-6 ngoài modal; Feature có nhãn, hiện cả dưới việc ở trang dự án. */
#amdv2 .pdot{ width:10px; height:10px; } #amdv2 .pdot.big{ width:14px; height:14px; }
#amdv2 .ic .fts .fth{ font-size:10.5px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:#1D4ED8; }
#amdv2 .rft{ display:flex; flex-wrap:wrap; align-items:center; gap:4px 6px; padding:0 16px 8px 52px; font-size:12px; cursor:pointer; }
#amdv2 .fbody .rft{ padding-left:40px; }
#amdv2 .rft b{ font-size:10.5px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:#1D4ED8; }
#amdv2 .rft span{ padding:0 8px; border-radius:99px; background:#F1F3F8; color:var(--muted); line-height:20px; }
#amdv2 .rft span.ok{ background:#ECFDF3; color:#027A48; } #amdv2 .rft span.ok::before{ content:"✓ "; }
/* 18/11 tối: Báo cáo lọc theo khoảng ngày. */
#amdv2 .rfil label{ display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:600; color:var(--muted); }
#amdv2 .rfil input[type="date"]{ width:auto; color:var(--ink); }
/* 18/11 tối (đề xuất 6): đầu trang dự án — % feature Done + số việc Feedback thay nhãn «Đúng tiến độ». */
#amdv2 .ph .opct.big > span{ width:120px; }
#amdv2 .fbn{ padding:0 10px; border-radius:99px; background:#F4F3FF; color:#5925DC; font-size:12px; font-weight:700; line-height:24px; white-space:nowrap; }
/* 18/11 tối (đề xuất 3): bước hiện tại đủ feature Done ⇒ nút chốt bước nổi lên. */
#amdv2 .srdy{ padding:0 8px; border-radius:99px; background:#ECFDF3; color:#027A48; font-size:11.5px; font-weight:700; line-height:22px; }
#amdv2 .btn.glow{ border-color:#12B76A; background:#12B76A; color:#fff; animation:amdv2-glow 1.6s ease-in-out infinite; }
@keyframes amdv2-glow{ 0%,100%{ box-shadow:0 0 0 0 rgba(18,183,106,.45); } 50%{ box-shadow:0 0 0 6px rgba(18,183,106,0); } }
@media (prefers-reduced-motion:reduce){ #amdv2 .btn.glow{ animation:none; } }
#amdv2-drawer .msh em.rdy{ background:#D1FADF; color:#027A48; }
/* 18/11 tối (đề xuất 8): hạn chót từng bước Outcome. */
#amdv2 .step .sdue, #amdv2-drawer .msh .sdue{ margin-left:4px; padding:0 6px; border-radius:99px; background:#F1F3F8; color:var(--muted); font-size:11px; font-weight:700; line-height:16px; white-space:nowrap; }
#amdv2 .step .sdue.late, #amdv2-drawer .msh .sdue.late{ background:#FEE4E2; color:#B42318; }
#amdv2 .olate{ padding:0 8px; border-radius:99px; background:#FEE4E2; color:#B42318; font-size:12px; font-weight:700; line-height:22px; white-space:nowrap; }
.v2ov .dues{ grid-template-columns:repeat(2, minmax(0,1fr)); }
/* 18/11 tối (cách 1): Thảo duyệt việc Xong ⇒ cột «Đã duyệt» Báo cáo + nhóm «Đã nghiệm thu» trên thẻ Outcome. */
#amdv2 .mxr.c3{ grid-template-columns:minmax(170px,.7fr) minmax(0,1.6fr) minmax(0,1.1fr) minmax(0,1.1fr); }
#amdv2 .mxr.c3 .rcards{ grid-template-columns:repeat(auto-fill, minmax(210px,1fr)); align-content:start; }
#amdv2 .mxr.c3 .rcards.acc{ background:#F6FEF9; }
@media (max-width:900px){ #amdv2 .mxr.c3{ grid-template-columns:1fr; } #amdv2 .mxr.c3 .rcards:empty{ display:none; } }
#amdv2 .ic .m .btn.sm.ok{ height:24px; padding:0 10px; border-color:#12B76A; background:#12B76A; color:#fff; font-size:12px; }
#amdv2 .accg{ border-top:1px solid var(--line); background:#F6FEF9; }
#amdv2 .accgh{ display:flex; align-items:center; gap:8px; width:100%; padding:8px 16px; border:0; background:none; cursor:pointer; font-size:13px; font-weight:700; color:#027A48; text-align:left; }
#amdv2 .accgh b{ padding:0 8px; border-radius:99px; background:#D1FADF; } #amdv2 .accgh .mut{ font-weight:400; }
#amdv2-drawer .mchip[data-m="acc"]{ border-color:#A6F4C5; background:#ECFDF3; color:#027A48; }
#amdv2-drawer .btn.ok{ border-color:#12B76A; background:#12B76A; color:#fff; }
#amdv2 .ic .m .lnk{ padding:0; border:0; background:none; color:var(--muted); font-size:11.5px; text-decoration:underline; cursor:pointer; }
/* 18/11 tối: link mở thử của bước Outcome (am_milestones.link). */
#amdv2 .step .slnk{ padding:0 7px; border-radius:99px; background:#fff; color:var(--pri); font-size:11px; font-weight:700; text-decoration:none; }
#amdv2 .step .slnk:hover{ text-decoration:underline; }
/* 18/11 tối (A+B+C): link test theo bước + feature là link + feature của bước đã chốt. */
#amdv2 a.flk, #amdv2-drawer a.flk{ color:var(--pri); font-weight:600; text-decoration:none; word-break:break-all; }
#amdv2 a.flk:hover, #amdv2-drawer a.flk:hover{ text-decoration:underline; }
#amdv2 .tlnk{ margin-top:6px; }
#amdv2 .tlnk .slnk, #amdv2-drawer .msh .slnk{ display:inline-block; padding:2px 10px; border-radius:99px; background:#EFF4FF; color:var(--pri); font-size:12px; font-weight:700; text-decoration:none; }
#amdv2 .tlnk .slnk:hover, #amdv2-drawer .msh .slnk:hover{ background:#DCE7FF; }
#amdv2-drawer .lkin{ width:100%; margin:0 0 8px; padding:6px 10px; border:1px dashed #B2CCFF; border-radius:8px; background:#F8FAFF; font-size:13px; }
#amdv2-drawer .ftr.shut{ opacity:.55; } #amdv2-drawer .ftr .shn{ margin-left:8px; padding:0 6px; border-radius:99px; background:#E4E7EC; color:#475467; font-style:normal; font-size:11px; }
/* 18/11 tối (anh Khoa chốt cách A): thẻ việc mới + Báo cáo 5 cột + kéo thả feature. */
#amdv2 .ic .th{ display:flex; align-items:flex-start; gap:8px; } #amdv2 .ic .th .t{ flex:1; min-width:0; } #amdv2 .ic .th .av{ flex:none; }
#amdv2 .ic .fts{ gap:3px; margin-top:6px; color:var(--ink); }
#amdv2 .ic .fts .fti{ display:flex; align-items:flex-start; gap:6px; }
#amdv2 .ic .fts .fti span{ flex:1; min-width:0; color:var(--muted); } #amdv2 .ic .fts .fti span::before{ content:none; }
#amdv2 .ic .fts .fti > i{ flex:none; margin-top:1px; font-size:14px; color:#98A2B3; }
#amdv2 .ic .fts .fti.ok > i{ color:#12B76A; } #amdv2 .ic .fts .fti.ok span{ color:var(--ink); }
#amdv2 .ic .fts .fdb{ flex:none; padding:0 6px; border-radius:99px; background:#D1FADF; color:#027A48; font-size:10.5px; line-height:16px; }
#amdv2 .ic .fts .fmore{ padding-left:20px; font-size:11.5px; color:var(--muted); }
#amdv2 .ic .tlnk{ display:flex; flex-wrap:wrap; gap:4px; margin-top:8px; }
#amdv2 .ic .tlnk .slnk, #amdv2 .flow ~ .slnk{ display:inline-flex; align-items:center; gap:4px; padding:2px 8px; border-radius:99px; background:#EFF4FF; color:var(--pri); font-size:11.5px; font-weight:700; text-decoration:none; }
#amdv2 .ic .tlnk .slnk:hover, #amdv2 .flow ~ .slnk:hover{ background:#DCE7FF; }
#amdv2 .mxr.rp{ grid-template-columns:minmax(170px,.7fr) repeat(4, minmax(0,1fr)); }
#amdv2 .mxr.rp .rcards{ grid-template-columns:1fr; align-content:start; }
#amdv2 .mxr.rp .rcards.acc{ background:#F6FEF9; }
@media (max-width:900px){ #amdv2 .mxr.rp{ grid-template-columns:1fr; } #amdv2 .mxr.rp .rcards:empty{ display:none; } }
#amdv2-drawer .ftr[draggable="true"]{ cursor:grab; } #amdv2-drawer .ftr .fgrip{ margin-right:4px; color:#98A2B3; }
#amdv2-drawer .ftr.drg{ opacity:.4; } #amdv2-drawer .ftr.ov{ box-shadow:inset 0 2px 0 var(--pri); } #amdv2-drawer .msb.ov{ outline:2px dashed #B2CCFF; }
/* 18/11 tối: cột «Chưa xong» của Báo cáo tô đỏ (việc đang làm chưa Done). */
#amdv2 .mxr.rp .opnh{ color:#B42318; } #amdv2 .mxr.rp .opnh b{ padding:0 7px; border-radius:99px; background:#FEE4E2; color:#B42318; }
#amdv2 .mxr.rp .rcards.opn{ background:#FFFBFA; }
#amdv2 .mxr.rp .rcards.opn .ic{ --lc:#F04438 !important; border-color:#FECDCA; background:#FEF3F2; }
/* 18/11 tối: «Chưa done» trên feature · badge «Đã feedback» · «Lưu ý» của Dev trên thẻ + modal. */
#amdv2 .ic .fts .fnb{ flex:none; padding:0 6px; border-radius:99px; background:#FEE4E2; color:#B42318; font-size:10.5px; line-height:16px; }
#amdv2 .ic .tbg{ display:flex; flex-wrap:wrap; gap:4px; margin-top:4px; }
#amdv2 .ic .tbg .fbd{ display:inline-flex; align-items:center; gap:4px; padding:1px 8px; border-radius:99px; background:#F4F3FF; color:#5925DC; font-size:11px; font-weight:700; }
#amdv2 .ic .tnote{ display:flex; gap:6px; margin-top:6px; padding:6px 8px; border-radius:8px; background:#FFFAEB; color:#93370D; font-size:12px; line-height:1.4; white-space:pre-line; overflow-wrap:anywhere; }
#amdv2 .ic .tnote > i{ flex:none; margin-top:1px; color:#DC6803; }
#amdv2-drawer .nsec .dsc{ border-color:#FEDF89; background:#FFFCF5; }
#amdv2-drawer .nsec .nview{ padding:8px 10px; border-radius:8px; background:#FFFAEB; color:#93370D; white-space:pre-line; overflow-wrap:anywhere; }
/* 19/11: ô «Thêm việc» / «Thêm việc con» là textarea tự giãn — Shift+Enter xuống dòng. */
:is(#amdv2,#amdv2-drawer,.v2ov) .addrow textarea.addta{ flex:1; min-height:30px; padding:5px 8px; border:1px dashed #C3C6D4; border-radius:4px; font:inherit; font-size:13px; line-height:1.4; background:transparent; resize:none; field-sizing:content; overflow:hidden; }
:is(#amdv2,#amdv2-drawer,.v2ov) .addrow textarea.addta:focus{ outline:0; border-style:solid; border-color:var(--pri); background:#fff; }
/* 19/11: sửa feature tại chỗ + giữ xuống dòng; ô thêm feature nhiều dòng; kéo bằng tay nắm. */
#amdv2-drawer .ftr .ftt{ white-space:pre-line; overflow-wrap:anywhere; }
#amdv2-drawer .ftr .ftt[contenteditable]{ cursor:text; border-radius:4px; padding:1px 4px; margin:-1px -4px; }
#amdv2-drawer .ftr .ftt[contenteditable]:hover{ background:#F2F4F7; }
#amdv2-drawer .ftr .ftt[contenteditable]:focus{ outline:2px solid var(--pri); background:#fff; }
#amdv2-drawer .ftr[data-fi]{ cursor:default; } #amdv2-drawer .ftr .fgrip{ cursor:grab; }
#amdv2-drawer textarea.ftin{ width:100%; min-height:34px; resize:none; field-sizing:content; overflow:hidden; line-height:1.4; padding-top:7px; padding-bottom:7px; font:inherit; }
#amdv2 .ic .fts .fti span, #amdv2 .rft span{ white-space:pre-line; }
#amdv2-drawer .ftr .fgrip{ display:inline-flex; align-items:center; justify-content:center; flex:none; width:16px; min-height:18px; }
/* 19/11: 1 hàng / dự án (đầu hàng liệt kê Outcome) · tên Outcome trên thẻ · Prototype chờ Thảo duyệt sau. */
#amdv2 .mxl .mxo{ display:flex; flex-wrap:wrap; align-items:center; gap:2px 6px; margin-top:4px; }
#amdv2 .mxl .mxo .dot{ width:7px; height:7px; flex:none; } #amdv2 .mxl .mxo .opct{ width:100%; margin-top:0; }
#amdv2 .ic .otg{ display:flex; align-items:center; gap:5px; margin-top:2px; font-size:11.5px; font-weight:700; color:var(--muted); }
#amdv2 .ic .otg .dot{ width:7px; height:7px; flex:none; }
#amdv2 .step em.pw{ background:#FFFAEB; color:#B54708; }
#amdv2 .och .pwl{ font-size:12px; font-weight:700; color:#B54708; }
/* 19/11: nút «Xong bước» trong modal việc, ở khối bước hiện tại. */
#amdv2-drawer .msh .msdone{ margin-left:6px; }
/* 19/11: tên Outcome là dòng nhỏ ĐẦU thẻ việc (trên tên việc) — Outcome chứa việc, không phải ngược lại. */
#amdv2 .ic .otg{ margin:0 0 3px; font-size:11px; letter-spacing:.02em; }
/* Đề xuất 6 (19/11): modal gọn — bước đã xong thu gọn, ô nhập chỉ ở bước đang mở, nút «+» mở bước khác. */
#amdv2-drawer .msb.fold{ padding:8px 12px; } #amdv2-drawer .msb.fold .msh{ cursor:pointer; }
#amdv2-drawer .msb:not(.open):not(.cur) .ftl:empty{ display:none; }
#amdv2-drawer .msh .msplus{ flex:none; width:24px; height:24px; margin-left:2px; }
#amdv2-drawer .nsec .dsc{ min-height:38px; resize:none; field-sizing:content; }
/* Đề xuất 2 (19/11): Dev trả lời feedback. */
#amdv2 .ic .tbg .fbok{ display:inline-flex; align-items:center; gap:4px; padding:1px 8px; border-radius:99px; background:#D1FADF; color:#027A48; font-size:11px; font-weight:700; }
#amdv2 .ic .fbr, #amdv2-drawer .fbr{ display:flex; flex-wrap:wrap; gap:4px 8px; margin-top:6px; padding:6px 8px; border-left:3px solid #12B76A; border-radius:6px; background:#F6FEF9; font-size:12.5px; white-space:pre-line; overflow-wrap:anywhere; }
#amdv2 .ic .fbr b, #amdv2-drawer .fbr b{ color:#027A48; }
#amdv2-drawer .fbsec #v2rp{ margin-top:8px; border-color:#A6F4C5; }
/* Đề xuất 3 (19/11): hạn việc. */
#amdv2 .ic .tbg .tdue, #amdv2-drawer .tdue{ display:inline-flex; align-items:center; gap:4px; padding:1px 8px; border-radius:99px; font-size:11px; font-weight:700; background:#F1F3F8; color:#475467; }
#amdv2 .ic .tbg .tdue.late, #amdv2-drawer .tdue.late{ background:#FEE4E2; color:#B42318; }
#amdv2 .ic .tbg .tdue.today, #amdv2-drawer .tdue.today{ background:#FEF0C7; color:#B54708; }
#amdv2-drawer .dsel{ width:auto; min-width:150px; }
/* Đề xuất 8 (19/11): nhãn gợi ý việc chưa xong lúc chọn plan. */
#amdv2 .plan2 .tag.vio{ background:#F4F3FF; color:#5925DC; } #amdv2 .plan2 .tdue{ display:inline-flex; align-items:center; gap:4px; padding:1px 8px; border-radius:99px; font-size:11px; font-weight:700; background:#F1F3F8; color:#475467; }
#amdv2 .plan2 .tdue.late{ background:#FEE4E2; color:#B42318; } #amdv2 .plan2 .tdue.today{ background:#FEF0C7; color:#B54708; }
/* Đề xuất 4 (19/11): lịch sử việc. */
#amdv2-drawer .hsec{ background:#FCFCFD; }
#amdv2-drawer .tl{ margin:0; padding:0 0 0 14px; list-style:none; border-left:2px solid var(--line); }
#amdv2-drawer .tl li{ position:relative; display:flex; gap:10px; padding:4px 0; font-size:12.5px; }
#amdv2-drawer .tl li::before{ content:""; position:absolute; left:-19px; top:10px; width:8px; height:8px; border-radius:99px; background:#C3C6D4; }
#amdv2-drawer .tl li:first-child::before{ background:var(--pri); }
#amdv2-drawer .tl li > .mut{ flex:none; width:82px; font-variant-numeric:tabular-nums; }
/* Đề xuất 5 (19/11): Tổng quan dự án. */
#amdv2 .ovt{ overflow-x:auto; }
#amdv2 .ovr{ display:grid; grid-template-columns:minmax(220px,1.6fr) minmax(200px,1.4fr) 110px 80px minmax(130px,1fr) minmax(130px,1fr) minmax(120px,.9fr); gap:10px; align-items:center; min-width:1000px; padding:10px 16px; border-top:1px solid var(--line); font-size:13px; cursor:pointer; }
#amdv2 .ovr:hover{ background:#F8FAFF; } #amdv2 .ovr.ovh{ cursor:default; background:#F6F7FB; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); }
#amdv2 .ovr .ovn{ display:flex; gap:8px; align-items:flex-start; } #amdv2 .ovr .ovn > div{ display:flex; flex-direction:column; } #amdv2 .ovr .ovn .dot{ margin-top:5px; flex:none; }
#amdv2 .ovr .num{ text-align:right; font-variant-numeric:tabular-nums; }
#amdv2 .ovr .tseg{ display:inline-flex; gap:2px; vertical-align:middle; } #amdv2 .ovr .tseg i{ width:14px; height:4px; border-radius:2px; background:#E4E7EC; } #amdv2 .ovr .tseg i.d{ background:#12B76A; } #amdv2 .ovr .tseg i.c{ background:var(--pri); }
#amdv2 .ovr .opct > span{ width:50px; }
#amdv2 .ovr .tdue, #amdv2 .ovr .wbd, #amdv2 .ovr .fbd{ display:inline-flex; margin:1px 4px 1px 0; padding:1px 8px; border-radius:99px; font-size:11px; font-weight:700; }
#amdv2 .ovr .tdue.late{ background:#FEE4E2; color:#B42318; } #amdv2 .ovr .wbd{ background:#FEF0C7; color:#B54708; } #amdv2 .ovr .fbd{ background:#F4F3FF; color:#5925DC; }
/* Đề xuất 1 (19/11): Hàng đợi duyệt. */
#amdv2 .nav .cnt.qc{ background:#FEF0C7; color:#B54708; font-weight:700; }
#amdv2 .qsec h3{ display:flex; align-items:center; gap:8px; } #amdv2 .qsec h3 .cnt{ padding:0 8px; border-radius:99px; background:#F1F3F8; font-size:12px; }
#amdv2 .qrow{ display:flex; align-items:center; gap:10px; padding:10px 16px; border-top:1px solid var(--line); }
#amdv2 .qrow .qn{ display:flex; flex-direction:column; flex:1; min-width:0; } #amdv2 .qrow .qa{ display:flex; gap:6px; }
#amdv2 .qrow .slnk{ display:inline-flex; align-items:center; gap:4px; padding:2px 10px; border-radius:99px; background:#EFF4FF; color:var(--pri); font-size:12px; font-weight:700; text-decoration:none; }
#amdv2 .qcards{ display:grid; grid-template-columns:repeat(auto-fill, minmax(260px,1fr)); gap:8px; padding:8px 16px 16px; }
/* Đề xuất 10 (19/11): ảnh kèm feedback. */
#amdv2-drawer .fbimgs{ display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; } #amdv2-drawer .fbimgs:empty{ display:none; }
#amdv2-drawer .fbth{ position:relative; } #amdv2-drawer .fbth img{ width:88px; height:66px; object-fit:cover; border-radius:6px; border:1px solid var(--line); }
#amdv2-drawer .fbth .xbtn{ position:absolute; top:-6px; right:-6px; width:20px; height:20px; border-radius:99px; background:#fff; border:1px solid var(--line); }
#amdv2-drawer .fbims{ display:flex; flex-wrap:wrap; gap:6px; margin:4px 0 6px 92px; }
#amdv2-drawer .fbim img{ width:120px; height:84px; object-fit:cover; border-radius:6px; border:1px solid var(--line); background:#F2F4F7; }
#amdv2-drawer .fbact{ display:flex; gap:8px; justify-content:flex-end; } #amdv2-drawer .fbact label.btn{ cursor:pointer; }
/* 19/11 chiều (đợt 3 số 3): thẻ gọn khi Outcome đã qua bước. */
#amdv2 .ic .fts .fsum span{ color:#027A48; font-weight:700; }
/* 19/11 chiều (đợt 3 số 2): tick feature trên thẻ. */
#amdv2 .ic .fts button.fck{ border:0; cursor:pointer; font-weight:700; font-family:inherit; }
#amdv2 .ic .fts button.fck:hover{ filter:brightness(.95); box-shadow:0 0 0 1px currentColor inset; }
/* 19/11 chiều (đợt 3 số 5): Outcome hoàn tất. */
#amdv2 .odn{ display:inline-flex; align-items:center; gap:4px; padding:2px 10px; border-radius:99px; background:#D1FADF; color:#027A48; font-size:12px; font-weight:700; }
#amdv2 .ovfin .ovr{ opacity:.75; }
/* 19/11 chiều: mỗi cột trạng thái một màu — Plan hôm nay + Báo cáo (giữ vạch trái màu Outcome). */
#amdv2 .mxh .s-todo{ color:#1D4ED8; box-shadow:inset 0 3px 0 #1D4ED8; } #amdv2 .mxh .s-todo b{ padding:0 7px; border-radius:99px; background:#D1E0FF; color:#1D4ED8; }
#amdv2 .mxr.c4 .drop[data-sst="todo"]:not(.over){ background:#F8FAFF; } #amdv2 .mxr.c4 .drop[data-sst="todo"]:not(.over) .ic{ background:#F5F8FF; box-shadow:0 0 0 1px #D1E0FF, 0 1px 2px rgba(30,40,70,.08); }
#amdv2 .mxh .s-doing{ color:#B54708; box-shadow:inset 0 3px 0 #B54708; } #amdv2 .mxh .s-doing b{ padding:0 7px; border-radius:99px; background:#FEF0C7; color:#B54708; }
#amdv2 .mxr.c4 .drop[data-sst="doing"]:not(.over){ background:#FFFCF5; } #amdv2 .mxr.c4 .drop[data-sst="doing"]:not(.over) .ic{ background:#FFFAEB; box-shadow:0 0 0 1px #FEDF89, 0 1px 2px rgba(30,40,70,.08); }
#amdv2 .mxh .s-review{ color:#5925DC; box-shadow:inset 0 3px 0 #5925DC; } #amdv2 .mxh .s-review b{ padding:0 7px; border-radius:99px; background:#EBE9FE; color:#5925DC; }
#amdv2 .mxr.c4 .drop[data-sst="review"]:not(.over){ background:#FAF8FF; } #amdv2 .mxr.c4 .drop[data-sst="review"]:not(.over) .ic{ background:#F4F3FF; box-shadow:0 0 0 1px #D9D6FE, 0 1px 2px rgba(30,40,70,.08); }
#amdv2 .mxh .s-accepted{ color:#027A48; box-shadow:inset 0 3px 0 #027A48; } #amdv2 .mxh .s-accepted b{ padding:0 7px; border-radius:99px; background:#D1FADF; color:#027A48; }
#amdv2 .mxr.c4 .drop[data-sst="accepted"]:not(.over){ background:#F6FEF9; } #amdv2 .mxr.c4 .drop[data-sst="accepted"]:not(.over) .ic{ background:#ECFDF3; box-shadow:0 0 0 1px #A6F4C5, 0 1px 2px rgba(30,40,70,.08); }
#amdv2 .mxh .s-doing b.bad{ background:#FEE4E2; color:#B42318; }
#amdv2 .mxh .rph.dn{ color:#027A48; box-shadow:inset 0 3px 0 #027A48; } #amdv2 .mxh .rph.dn b{ padding:0 7px; border-radius:99px; background:#D1FADF; color:#027A48; }
#amdv2 .mxr.rp .rcards.dn{ background:#F6FEF9; } #amdv2 .mxr.rp .rcards.dn .ic{ background:#ECFDF3; box-shadow:0 0 0 1px #A6F4C5, 0 1px 2px rgba(30,40,70,.08); }
#amdv2 .mxh .rph.fb{ color:#5925DC; box-shadow:inset 0 3px 0 #5925DC; } #amdv2 .mxh .rph.fb b{ padding:0 7px; border-radius:99px; background:#EBE9FE; color:#5925DC; }
#amdv2 .mxr.rp .rcards.fbc{ background:#FAF8FF; } #amdv2 .mxr.rp .rcards.fbc .ic{ background:#F4F3FF; box-shadow:0 0 0 1px #D9D6FE, 0 1px 2px rgba(30,40,70,.08); }
#amdv2 .mxh .rph.ac{ color:#107569; box-shadow:inset 0 3px 0 #107569; } #amdv2 .mxh .rph.ac b{ padding:0 7px; border-radius:99px; background:#CCFBEF; color:#107569; }
#amdv2 .mxr.rp .rcards.acc{ background:#F0FDF9; } #amdv2 .mxr.rp .rcards.acc .ic{ background:#F0FDF9; box-shadow:0 0 0 1px #99F6E0, 0 1px 2px rgba(30,40,70,.08); }
#amdv2 .mxh .opnh{ box-shadow:inset 0 3px 0 #B42318; }
/* 19/11 chiều: Lưu trữ — việc Xong quá 2 ngày. */
#amdv2 .arm{ margin-bottom:12px; } #amdv2 .arm .accgh b{ padding:0 7px; border-radius:99px; background:#F1F3F8; color:var(--ink); }
#amdv2 .arg{ border-top:1px solid var(--line); } #amdv2 .argh{ display:flex; align-items:center; gap:6px; padding:8px 16px 4px; font-size:13px; } #amdv2 .argh .dot{ flex:none; } #amdv2 .argh .cnt{ margin-left:auto; font-size:12px; color:var(--muted); }
#amdv2 .arw{ display:flex; align-items:center; gap:10px; padding:6px 16px 6px 30px; font-size:13px; cursor:pointer; } #amdv2 .arw:hover{ background:#F8FAFF; }
#amdv2 .arw > i{ flex:none; color:#12B76A; font-size:16px; } #amdv2 .arw .tt{ flex:1; min-width:0; } #amdv2 .arw .ard{ flex:none; width:76px; text-align:right; font-variant-numeric:tabular-nums; }
#amdv2 .arw .tag.arwt{ background:#FEF0C7; color:#B54708; }
#amdv2 .bar #v2arq{ width:320px; }
#amdv2 .arl{ display:inline-flex; align-items:center; gap:6px; margin:8px 16px 12px; padding:0; border:0; background:none; color:var(--muted); font-size:12.5px; cursor:pointer; } #amdv2 .arl:hover{ color:var(--pri); text-decoration:underline; }
/* 19/11 tối: tên người góp ý (admin). */
#amdv2-drawer .fbi .fbw{ color:#5925DC; }
/* 19/11 tối: Hàng đợi duyệt theo dự án › Outcome · nút Duyệt / Feedback dưới thẻ. */
#amdv2 .qp{ margin-bottom:12px; } #amdv2 .qph{ display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding:12px 16px; border-bottom:1px solid var(--line); }
#amdv2 .qph h3{ margin:0; padding:0; font-size:15px; } #amdv2 .qph .dot{ width:10px; height:10px; flex:none; }
#amdv2 .qph .cnt.qc{ padding:0 8px; border-radius:99px; font-size:12px; } #amdv2 .qgl{ margin-left:auto; font-size:12px; font-weight:700; color:var(--muted); }
#amdv2 .qo + .qo{ border-top:1px dashed var(--line); } #amdv2 .qoh{ display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding:10px 16px 2px; font-size:13.5px; } #amdv2 .qoh .dot{ width:8px; height:8px; flex:none; }
#amdv2 .qst{ padding:1px 8px; border-radius:99px; background:#F1F3F8; color:var(--muted); font-size:11.5px; font-weight:700; }
#amdv2 .qg{ display:inline-flex; align-items:center; gap:6px; margin-left:auto; } #amdv2 .qph .qgl + .qg{ margin-left:0; }
#amdv2 .qg .slnk{ display:inline-flex; align-items:center; gap:4px; padding:2px 10px; border-radius:99px; background:#EFF4FF; color:var(--pri); font-size:12px; font-weight:700; text-decoration:none; }
#amdv2 .qg .wbd{ padding:1px 8px; border-radius:99px; background:#FEF0C7; color:#B54708; font-size:11.5px; font-weight:700; }
#amdv2 .qm{ display:flex; align-items:center; gap:6px; flex-wrap:wrap; } #amdv2 .qm .qbtn{ display:flex; gap:6px; align-items:center; margin-left:auto; }
#amdv2 .qm .tag.qw{ background:#F4F3FF; color:#5925DC; } #amdv2 .qm .tag.qwt{ background:#FEF0C7; color:#B54708; }
/* 20/11: ảnh của việc — khối «Ảnh» trong modal + nhãn «N ảnh» trên thẻ. */
#amdv2 .tbg .imgb{ display:inline-flex; align-items:center; gap:3px; padding:0 7px; border-radius:99px; background:#EFF4FF; color:#1D4ED8; font-size:11px; font-weight:700; line-height:18px; }
#amdv2-drawer .isec.over{ outline:2px dashed var(--pri); outline-offset:2px; background:#F5F8FF; }
#amdv2-drawer .igr{ display:flex; flex-wrap:wrap; gap:8px; }
#amdv2-drawer .ith{ position:relative; } #amdv2-drawer .ith img{ display:block; width:132px; height:96px; object-fit:cover; border-radius:8px; border:1px solid var(--line); background:#F2F4F7; }
#amdv2-drawer .ith .xbtn{ position:absolute; top:-6px; right:-6px; width:22px; height:22px; border-radius:99px; background:#fff; border:1px solid var(--line); display:none; place-items:center; cursor:pointer; }
#amdv2-drawer .ith:hover .xbtn, #amdv2-drawer .ith .xbtn:focus-visible{ display:grid; }
#amdv2-drawer .iadd{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; width:132px; height:96px; border:1.5px dashed #C3C6D4; border-radius:8px; color:var(--muted); font-size:12.5px; font-weight:700; cursor:pointer; }
#amdv2-drawer .iadd:hover{ border-color:var(--pri); color:var(--pri); } #amdv2-drawer .iadd i{ font-size:20px; } #amdv2-drawer .iadd small{ font-weight:400; font-size:11px; }
/* 20/11 đề xuất 1: khung xem ảnh lớn trong trang (trên modal việc 10030, dưới toast 10060). */
#amdv2-lb{ position:fixed; inset:0; z-index:10050; display:none; background:rgba(16,24,40,.9); font:400 13px/1.4 'Public Sans','Be Vietnam Pro',system-ui,sans-serif; }
#amdv2-lb.on{ display:block; }
#amdv2-lb .lbst{ position:absolute; inset:56px 76px 60px; display:flex; align-items:center; justify-content:center; }
#amdv2-lb .lbst img{ max-width:100%; max-height:100%; object-fit:contain; border-radius:6px; background:#fff; box-shadow:0 12px 48px rgba(0,0,0,.45); }
#amdv2-lb .lbw{ color:#D0D5DD; }
#amdv2-lb button{ position:absolute; display:grid; place-items:center; border:0; border-radius:99px; background:rgba(255,255,255,.14); color:#fff; cursor:pointer; }
#amdv2-lb button:hover, #amdv2-lb button:focus-visible{ background:rgba(255,255,255,.28); outline:none; }
#amdv2-lb .lbx{ top:12px; right:16px; width:40px; height:40px; font-size:20px; }
#amdv2-lb .lbb{ top:50%; width:48px; height:48px; margin-top:-24px; font-size:24px; } #amdv2-lb .lbp{ left:16px; } #amdv2-lb .lbn{ right:16px; }
#amdv2-lb .lbcap{ position:absolute; left:16px; right:16px; bottom:16px; display:flex; justify-content:center; align-items:center; gap:14px; color:#fff; }
#amdv2-lb .lbcap b{ max-width:50vw; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } #amdv2-lb .lbcap span{ color:#D0D5DD; }
#amdv2-lb .lbcap a{ color:#B2CCFF; text-decoration:none; } #amdv2-lb .lbcap a:hover{ text-decoration:underline; }
#amdv2-drawer a[data-img]{ cursor:zoom-in; }
/* 20/11 đề xuất 2: ảnh bìa nhỏ trên thẻ việc (thay nhãn «N ảnh»). */
#amdv2 .ic .tbg{ align-items:center; }   /* nhãn không giãn cao theo ảnh bìa */
#amdv2 .tbg .imgc{ position:relative; display:inline-block; width:56px; height:38px; flex:none; border-radius:6px; overflow:hidden; border:1px solid var(--line); background:#F2F4F7; cursor:zoom-in; vertical-align:middle; }
#amdv2 .tbg .imgc img{ display:block; width:100%; height:100%; object-fit:cover; }
#amdv2 .tbg .imgc b{ position:absolute; right:2px; bottom:2px; padding:0 4px; border-radius:4px; background:rgba(16,24,40,.75); color:#fff; font-size:10.5px; line-height:15px; font-weight:700; }
#amdv2 .tbg .imgc:hover{ border-color:var(--pri); }
/* 20/11 đề xuất 4: tệp PDF / Excel / Word trong khối «Ảnh & tệp». */
#amdv2-drawer .idl{ display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
#amdv2-drawer .idoc{ position:relative; display:inline-flex; max-width:300px; }
#amdv2-drawer .idoc a{ display:inline-flex; align-items:center; gap:6px; min-width:0; padding:6px 10px; border:1px solid var(--line); border-radius:8px; background:#fff; color:inherit; font-size:12.5px; text-decoration:none; }
#amdv2-drawer .idoc a:hover{ border-color:var(--pri); } #amdv2-drawer .idoc a span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#amdv2-drawer .idoc i{ flex:none; font-size:18px; color:#667085; } #amdv2-drawer .idoc i.pdf{ color:#D92D20; } #amdv2-drawer .idoc i.doc{ color:#1570EF; } #amdv2-drawer .idoc i.xls{ color:#079455; }
#amdv2-drawer .idoc .xbtn{ position:absolute; top:-6px; right:-6px; width:22px; height:22px; border-radius:99px; background:#fff; border:1px solid var(--line); display:none; place-items:center; cursor:pointer; }
#amdv2-drawer .idoc:hover .xbtn, #amdv2-drawer .idoc .xbtn:focus-visible{ display:grid; }
/* 20/11 đề xuất 3: ảnh / tệp trong từng khối bước Outcome. */
#amdv2-drawer .msb .msi{ margin:6px 0 2px; }
#amdv2-drawer .msi .ith img{ width:96px; height:70px; }
#amdv2-drawer .iadd.sm{ width:96px; height:70px; font-size:11.5px; } #amdv2-drawer .iadd.sm i{ font-size:17px; }
#amdv2-drawer .msb.over{ outline:2px dashed var(--pri); outline-offset:2px; background:#F5F8FF; }
#amdv2-drawer .msh .msa{ display:inline-flex; align-items:center; gap:2px; color:var(--muted); font-size:11.5px; font-weight:700; }
/* 20/11: kéo ảnh / tệp sang bước khác. */
#amdv2-drawer .ith[draggable="true"], #amdv2-drawer .idoc[draggable="true"]{ cursor:grab; } #amdv2-drawer [data-aid].drg{ opacity:.45; } #amdv2-drawer [data-aid]{ user-select:none; -webkit-user-select:none; }   /* bấm giữ trên tên tệp ⇒ kéo cả chip, không bôi chữ */
#amdv2-drawer .ith[draggable="true"] a[data-img]{ cursor:zoom-in; }
/* 20/11 đề xuất 6: khoanh / vẽ mũi tên lên ảnh (trên khung xem 10050, dưới toast 10060). */
#amdv2-ann{ position:fixed; inset:0; z-index:10055; display:flex; flex-direction:column; background:#101828; font:400 13px/1.4 'Public Sans','Be Vietnam Pro',system-ui,sans-serif; outline:none; }
#amdv2-ann .anbar{ display:flex; align-items:center; flex-wrap:wrap; gap:6px; padding:10px 16px; background:#fff; box-shadow:0 1px 0 #EAECF0; }
#amdv2-ann .anbar button{ display:inline-flex; align-items:center; gap:5px; height:32px; padding:0 12px; border:1px solid #D0D5DD; border-radius:8px; background:#fff; color:#344054; font:inherit; font-weight:600; cursor:pointer; }
#amdv2-ann .anbar button i{ font-size:17px; } #amdv2-ann .anbar button:hover{ background:#F9FAFB; }
#amdv2-ann .anbar button.on{ border-color:#2E5BFF; background:#EFF4FF; color:#2E5BFF; }
#amdv2-ann .anbar .ancol{ width:26px; height:26px; padding:0; border-radius:99px; border:2px solid #fff; box-shadow:0 0 0 1px #D0D5DD; }
#amdv2-ann .anbar .ancol.on{ box-shadow:0 0 0 2px #101828; }
#amdv2-ann .anbar .pri{ background:#2E5BFF; border-color:#2E5BFF; color:#fff; } #amdv2-ann .anbar .pri:hover{ background:#2347D6; }
#amdv2-ann .ansep{ width:1px; height:22px; margin:0 4px; background:#EAECF0; } #amdv2-ann .anfill{ flex:1; }
#amdv2-ann .anst{ flex:1; min-height:0; display:flex; align-items:center; justify-content:center; padding:16px; }
#amdv2-ann canvas{ max-width:100%; max-height:100%; border-radius:4px; background:#fff; cursor:crosshair; touch-action:none; box-shadow:0 12px 48px rgba(0,0,0,.45); }
#amdv2-lb .lbcap button.lbed{ position:static; display:inline-flex; gap:5px; width:auto; height:30px; padding:0 12px; border-radius:8px; background:#fff; color:#344054; font:inherit; font-weight:700; }
#amdv2-lb .lbcap button.lbed:hover{ background:#EFF4FF; color:#2E5BFF; }
#amdv2-drawer .fbth .fbed{ position:absolute; left:4px; bottom:4px; width:24px; height:24px; display:grid; place-items:center; border-radius:6px; border:0; background:rgba(16,24,40,.72); color:#fff; cursor:pointer; }
#amdv2-drawer .fbth .fbed:hover{ background:#2E5BFF; }
/* 20/11: nút Đổi tên / Xoá Outcome luôn hiện trên đầu thẻ Outcome (trước: bút ẩn, chỉ hiện khi rê chuột). */
#amdv2 .och .oed{ display:inline-flex; gap:2px; } #amdv2 .och .oed .ibtn.del:hover{ color:#B42318; background:#FEF3F2; }
/* 20/11 feature = việc: bong bóng ✓ trước việc / việc con · mục «Việc con» trong modal · nhóm ảnh / tệp theo bước. */
#amdv2 .bub, #amdv2-drawer .bub{ flex:none; display:inline-grid; place-items:center; width:20px; height:20px; padding:0; border:0; border-radius:99px; background:transparent; color:#98A2B3; font-size:17px; line-height:1; cursor:pointer; }
#amdv2 button.bub:hover, #amdv2-drawer button.bub:hover{ color:#12B76A; background:#ECFDF3; }
#amdv2 .bub.on, #amdv2-drawer .bub.on{ color:#12B76A; } #amdv2 i.bub.ro, #amdv2-drawer i.bub.ro{ cursor:default; }
#amdv2 .ic .fts .fti > .bub{ width:16px; height:16px; font-size:15px; }
#amdv2 .tt.rdn, #amdv2 .row.rdn .tt{ color:var(--muted); text-decoration:line-through; text-decoration-color:#D0D5DD; }
#amdv2-drawer .ksec .krow{ display:flex; align-items:center; gap:8px; padding:5px 0; border-bottom:1px solid #F2F4F7; }
#amdv2-drawer .ksec .krow .kt{ flex:1; min-width:0; cursor:pointer; white-space:pre-wrap; } #amdv2-drawer .ksec .krow .kt:hover{ color:var(--pri); text-decoration:underline; }
#amdv2-drawer .ksec .krow.ok .kt{ color:var(--muted); text-decoration:line-through; } #amdv2-drawer .ksec .ftin{ display:block; width:100%; margin-top:8px; }
#amdv2-drawer .agp + .agp{ margin-top:12px; } #amdv2-drawer .agh{ margin-bottom:6px; font-size:12px; font-weight:700; color:var(--muted); } #amdv2-drawer .agp.cur .agh{ color:var(--pri); }
#amdv2-drawer .agp.over{ outline:2px dashed var(--pri); outline-offset:3px; border-radius:6px; background:#F5F8FF; }
/* 21/11 Nguyên tắc thiết kế (mục dưới Lưu trữ): thẻ nguyên tắc = số thứ tự + tên + các bước đánh số. */
#amdv2 .card.rule{ padding:4px 16px 14px; margin-bottom:12px; }
#amdv2 .rule .ruh{ display:flex; align-items:center; gap:10px; padding:10px 0 6px; }
#amdv2 .rule .ruh h3{ padding:0; flex:1; min-width:0; font-size:15px; white-space:pre-wrap; }
#amdv2 .rule .run{ flex:none; display:inline-grid; place-items:center; width:24px; height:24px; border-radius:99px; background:#E8EEFC; color:#1D4ED8; font-size:12px; }
#amdv2 .rule .oed{ display:inline-flex; gap:2px; }
#amdv2 .rule .rsteps{ margin:4px 0 0; padding-left:22px; }
#amdv2 .rule .rsteps li{ padding:5px 0; border-bottom:1px solid #F2F4F7; }
#amdv2 .rule .rsteps li > span{ white-space:pre-wrap; }
#amdv2 .rule .rsteps li .ibtn{ float:right; width:22px; height:22px; font-size:14px; opacity:.55; } #amdv2 .rule .rsteps li:hover .ibtn{ opacity:1; }
#amdv2 .rule .rnone{ padding:4px 0; }
#amdv2 .rule textarea.ftin{ display:block; width:100%; height:auto; min-height:34px; margin-top:10px; resize:none; field-sizing:content; overflow:hidden; line-height:1.4; padding-top:7px; padding-bottom:7px; }
/* 21/11 nút «Từ chối» của Thảo (Hàng đợi duyệt · thẻ Báo cáo) — cùng màu đỏ như nút Xoá trong modal. */
#amdv2 .btn.dng{ color:#B42318; } #amdv2 .btn.dng:hover{ border-color:#FDA29B; background:#FEF3F2; }
/* 23/11 Bảng «Từ chối · ghi feedback» của Thảo (#amdv2-form .fbrej): tên việc + lý do bắt buộc + ảnh. */
#amdv2-form .fbrej{ display:flex; flex-direction:column; align-items:flex-start; gap:10px; }
#amdv2-form .fbrej .rjt{ width:100%; padding:8px 10px; border-left:3px solid #F04438; border-radius:4px; background:#fff; font-size:13px; font-weight:700; color:var(--ink); white-space:pre-line; overflow-wrap:anywhere; }
#amdv2-form .fbrej .fl{ width:100%; } #amdv2-form .fbrej label.btn{ cursor:pointer; }
#amdv2-form .fbimgs{ display:flex; flex-wrap:wrap; gap:6px; } #amdv2-form .fbimgs:empty{ display:none; }
#amdv2-form .fbth{ position:relative; } #amdv2-form .fbth img{ width:88px; height:66px; object-fit:cover; border-radius:6px; border:1px solid var(--line); }
#amdv2-form .fbth .xbtn{ position:absolute; top:-6px; right:-6px; width:20px; height:20px; padding:0; border-radius:99px; background:#fff; border:1px solid var(--line); cursor:pointer; }
#amdv2-form .fbth .fbed{ position:absolute; left:4px; bottom:4px; width:24px; height:24px; display:grid; place-items:center; border-radius:6px; border:0; background:rgba(16,24,40,.72); color:#fff; cursor:pointer; } #amdv2-form .fbth .fbed:hover{ background:#2E5BFF; }
/* 23/11 Badge lưu ý cho Dev: Thảo từ chối, việc vừa sang Feedback (thẻ, dòng việc trang dự án, đầu mục Feedback của modal). */
:is(#amdv2,#amdv2-drawer) .fbrj{ display:inline-flex; align-items:center; gap:4px; padding:1px 8px; border-radius:99px; background:#FEE4E2; color:#B42318; font-size:11px; font-weight:700; line-height:18px; white-space:nowrap; }
#amdv2 .tt .fbrj{ margin-right:6px; } #amdv2-drawer .dh3 .fbrj{ margin-left:8px; vertical-align:middle; }
#amdv2-drawer .fbi .fbrt{ color:#B42318; }
#amdv2 .ic .tbg .fbrj{ white-space:normal; border-radius:8px; }
/* 23/11 Chữ dài / link dài không tràn khung (anh Khoa gửi ảnh thẻ việc). Gốc: mọi chữ trong tab được ngắt khi không còn chỗ; nhãn ngắn và nút thì
   không gãy, không bị bóp. Canh bằng scripts/lib/am-dev2-chu-dai.test.mjs (dữ liệu xấu × 4 độ rộng × 2 vai). */
#amdv2, #amdv2-drawer, .v2ov, #amdv2-toast{ overflow-wrap:anywhere; }
:is(#amdv2,#amdv2-drawer,.v2ov) :is(.btn,.tag,.st,.cnt,.flow,.fbd,.fbok,.tdue,.fdb,.fnb,.imgb,.wbd,.kbd,.qst,.fbn,.odn,.pwl,.qgl,.qwt,.ard,.lnk,.slnk){ white-space:nowrap; }
:is(#amdv2,#amdv2-drawer,.v2ov) :is(.st,.tag,.cnt,.av,.ibtn,.dot,.run,.bub,.ty,.kbd,.oed,.ra){ flex:none; }
:is(#amdv2,#amdv2-drawer,.v2ov) .chip{ max-width:240px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
:is(#amdv2,#amdv2-drawer,.v2ov) :is(.sel,.search){ max-width:100%; min-width:0; }
#amdv2 .ph h1{ min-width:0; } #amdv2 .ph .devs{ display:flex; flex-wrap:wrap; gap:6px; min-width:0; margin-left:auto; } #amdv2 .crumb{ flex-wrap:wrap; }
#amdv2 .och h3{ min-width:0; } #amdv2 .och .oact{ flex-wrap:wrap; } #amdv2 .step{ max-width:100%; } #amdv2 .step em{ white-space:nowrap; }
#amdv2 .otg > .dot, #amdv2 .mxo > .dot{ align-self:flex-start; margin-top:5px; } #amdv2 .ovr .ovn > div, #amdv2 .ovr > div{ min-width:0; }
#amdv2 .qg{ flex-wrap:wrap; } #amdv2-drawer .tl li > span:last-child{ flex:1; min-width:0; } #amdv2-drawer .krow{ align-items:flex-start; }
#amdv2 .arw{ align-items:flex-start; } #amdv2 .tt .fbrj{ vertical-align:middle; }
#amdv2-drawer .fld{ grid-template-columns:120px minmax(0,1fr); } #amdv2-drawer .otag{ max-width:100%; white-space:normal; }
#amdv2-drawer .mchip{ max-width:100%; height:auto; min-height:30px; white-space:normal; } #amdv2-drawer .mchip > span:first-child{ flex:none; white-space:nowrap; } #amdv2-drawer .dmeta, #amdv2-drawer .dact{ min-width:0; flex-wrap:wrap; }
#amdv2-toast{ width:max-content; max-width:min(640px,92vw); text-align:center; white-space:pre-line; }
.v2ov{ overflow:auto; } .v2ov .v2dlg{ margin-bottom:24px; } .v2ov .pal .r{ align-items:flex-start; }
/* Nút nhỏ giữ hình tròn / vuông: luật nút cao 40 px trên điện thoại của app kéo méo bong bóng ✓ và nút bút / thùng rác. */
:is(#amdv2,#amdv2-drawer,#amdv2-form) :is(.bub,.ibtn,.fck,.xbtn,.fbed){ min-height:0; min-width:0; }
@media (max-width:760px){
  #amdv2 .v2app{ grid-template-columns:minmax(0,1fr); align-content:start; } #amdv2 .v2main{ padding:12px 12px 40px; }
  #amdv2 .v2side{ position:static; display:flex; align-items:center; gap:4px; height:auto; padding:8px; overflow-x:auto; border-right:0; border-bottom:1px solid var(--line); }
  #amdv2 .v2side > *{ flex:none; width:auto; margin:0; } #amdv2 .v2side .sec, #amdv2 .v2side .hint, #amdv2 .v2side .kbtn kbd{ display:none; } #amdv2 .v2side .nav{ padding:0 10px; } #amdv2 .v2side .nm{ max-width:150px; }
  #amdv2 .ph .devs, #amdv2 .qg{ margin-left:0; } #amdv2 .fh{ flex-wrap:wrap; height:auto; padding:8px 12px 8px 14px; gap:6px 8px; } #amdv2 .fh .tt{ flex:1 1 calc(100% - 110px); white-space:normal; } #amdv2 .fp > span{ width:48px; }
  #amdv2 .fh .ra, #amdv2 .row .ra, #amdv2 .row .av{ display:none; } #amdv2 .row:not(.mut){ grid-template-columns:22px 18px minmax(0,1fr) auto !important; height:auto; min-height:40px; padding:8px 12px; } #amdv2 .row .tt{ white-space:normal; }
  #amdv2 .fbody{ padding-left:12px; } #amdv2 .addrow, #amdv2 .fbody .addrow{ padding-left:12px; } #amdv2 .steps{ padding:6px 12px 12px; } #amdv2 .step{ flex-wrap:wrap; border-radius:16px; }
  #amdv2 .och{ padding:12px 12px 4px 16px; } #amdv2 .och .oact{ margin-left:0; } #amdv2 .arw{ flex-wrap:wrap; padding:8px 12px; } #amdv2 .arw .tt{ flex:1 1 calc(100% - 40px); } #amdv2 .plan2{ grid-template-columns:minmax(0,1fr); }
  #amdv2 .qcards{ grid-template-columns:minmax(0,1fr); padding:8px 12px 12px; } #amdv2 .bar .search, #amdv2 .bar #v2arq{ width:100%; } #amdv2 .bar .btn{ margin-left:0 !important; }
  #amdv2-drawer{ padding:8px; } #amdv2-drawer .fld{ grid-template-columns:minmax(0,1fr); gap:2px; } #amdv2-drawer .dact{ margin-left:0; } #amdv2-drawer .krow{ flex-wrap:wrap; } #amdv2-drawer .krow .kt{ flex:1 1 calc(100% - 40px); } #amdv2-drawer .fbi{ flex-direction:column; gap:2px; }
  .v2ov{ padding-top:16px; } .v2ov .v2dlg .g2{ grid-template-columns:minmax(0,1fr); }
}
#amdv2 .tnote > span, #amdv2 .fbr > span, #amdv2-drawer .fbr > span, #amdv2-drawer .fbi > span:last-child{ min-width:0; max-width:100%; }
#amdv2 .rcards, #amdv2 .qcards{ grid-template-columns:repeat(auto-fill, minmax(min(240px,100%),1fr)); } #amdv2 .mxr.rp .rcards{ grid-template-columns:minmax(0,1fr); } #amdv2 :is(.rcards,.qcards,.drop) > .ic{ min-width:0; max-width:100%; }   /* cột lưới 1fr phình theo chữ không ngắt ⇒ thẻ tràn sang cột bên */
#amdv2 .mxl .mxo > .mut{ flex:1 1 0; min-width:0; } #amdv2-drawer :is(.nsec,.ksec,.isec,.hsec){ border-color:var(--line); }
#amdv2-drawer .fld .slnk{ display:inline-flex; align-items:center; gap:4px; margin-left:8px; padding:2px 10px; border-radius:99px; background:#EFF4FF; color:var(--pri); font-size:12px; font-weight:700; text-decoration:none; } #amdv2-drawer .fld .slnk:hover{ background:#DCE7FF; }
#amdv2 .ovr .sdue{ display:inline-block; margin-left:6px; padding:0 6px; border-radius:99px; background:#F1F3F8; color:var(--muted); font-size:11px; font-weight:700; line-height:16px; white-space:nowrap; } #amdv2 .ovr .sdue.late{ background:#FEE4E2; color:#B42318; }   /* Tổng quan: nhãn hạn bước từng dính vào tên bước */
/* 23/11 Link trong tên việc / góp ý / lưu ý: nhãn gọn 1 dòng, bấm mở tab mới. */
:is(#amdv2,#amdv2-drawer) a.lk{ display:inline-block; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; vertical-align:bottom; word-break:normal; } :is(#amdv2,#amdv2-drawer) a.lk:hover{ text-decoration:underline; } :is(#amdv2,#amdv2-drawer) a.lk i{ margin-right:3px; }
#amdv2-drawer .tlnk{ display:flex; flex-wrap:wrap; gap:6px; margin:-4px 0 10px; } #amdv2-drawer .tlnk .slnk{ display:inline-flex; align-items:center; gap:4px; max-width:100%; padding:2px 10px; border-radius:99px; background:#EFF4FF; color:var(--pri); font-size:12px; font-weight:700; text-decoration:none; overflow:hidden; text-overflow:ellipsis; } #amdv2-drawer .tlnk .slnk:hover{ background:#DCE7FF; }
#amdv2 .tflag{ display:inline-flex; align-items:center; flex:none; padding:1px 8px; border-radius:99px; font-size:11px; font-weight:700; line-height:16px; white-space:nowrap; }
#amdv2 .plan2 .tt .tflag{ margin-right:4px; }
#amdv2-drawer .dflags{ display:grid; grid-template-columns:repeat(2, max-content); gap:6px 16px; }
#amdv2-drawer .dfseg{ display:inline-flex; }
#amdv2-drawer .dflag{ min-height:30px; padding:4px 12px; border:1px solid #D0D5DD; background:#fff; color:#667085; font:inherit; font-size:12.5px; font-weight:600; cursor:pointer; }
#amdv2-drawer .dflag:first-child{ border-radius:99px 0 0 99px; } #amdv2-drawer .dflag:last-child{ border-radius:0 99px 99px 0; margin-left:-1px; }
#amdv2-drawer .dflag:hover:not(:disabled){ background:#F9FAFB; } #amdv2-drawer .dflag.on{ position:relative; font-weight:700; } #amdv2-drawer .dflag:disabled{ cursor:default; }
#amdv2 .card.rule[style*="--rc"]{ border-left:4px solid var(--rc); } #amdv2 .card.rule[style*="--rc"] .run{ background:var(--rc); color:#fff; }
#amdv2 .rule .rsteps{ list-style:none; padding-left:0; }
#amdv2 .rule .rsteps > li.rsi{ padding:4px 0; }
#amdv2 .rule .rsr{ display:flex; align-items:flex-start; gap:8px; }
#amdv2 .rule .rsn{ flex:none; display:inline-grid; place-items:center; min-width:22px; height:22px; padding:0 4px; border-radius:99px; background:#E8EEFC; color:#1D4ED8; font-size:11.5px; }
#amdv2 .rule .rsi[style*="--sc"] > .rsr > .rsn{ background:var(--sc); color:#fff; }
#amdv2 .rule .rst{ flex:1; min-width:0; padding-top:2px; white-space:pre-wrap; overflow-wrap:anywhere; }
#amdv2 .rule .rsa{ flex:none; display:inline-flex; gap:2px; opacity:.5; } #amdv2 .rule .rsr:hover .rsa, #amdv2 .rule .rsub > li:hover .rsa, #amdv2 .rule .rsa:focus-within{ opacity:1; }
#amdv2 .rule .rsteps li .rsa .ibtn{ float:none; width:24px; height:24px; font-size:14px; opacity:1; } #amdv2 .rule .rsa .ibtn:disabled{ opacity:.3; cursor:default; }
#amdv2 .rule .rsub{ list-style:none; margin:4px 0 2px 10px; padding:0 0 0 20px; border-left:2px solid var(--sc, #D0D5DD); }
#amdv2 .rule .rsub > li{ position:relative; display:flex; align-items:flex-start; gap:8px; padding:3px 0; border:0; font-size:13px; }
#amdv2 .rule .rsub > li::before{ content:""; position:absolute; left:-20px; top:12px; width:14px; border-top:2px solid var(--sc, #D0D5DD); }
#amdv2 .rule .rsub > li.rsadd::before{ border-top-style:dashed; } #amdv2 .rule .rsub > li.rsadd{ display:block; }
#amdv2 .rule textarea.ftin.rsed, #amdv2 .rule .rsub textarea.ftin{ flex:1; margin-top:0; }
#amdv2 .rule .rpal{ display:flex; flex-wrap:wrap; align-items:center; gap:6px; padding:6px 0 6px 30px; }
#amdv2 .rule .rsw{ width:24px; height:24px; padding:0; border:2px solid #fff; border-radius:99px; box-shadow:0 0 0 1px #D0D5DD; cursor:pointer; }
#amdv2 .rule .rsw:hover, #amdv2 .rule .rsw:focus-visible{ box-shadow:0 0 0 2px #101828; }
