/* AS2 40 NAM v20N - presentation only, no changes to data/logic. */
.as2n-tabs{display:flex!important;flex-wrap:nowrap!important;gap:6px!important;overflow-x:auto!important;scrollbar-width:thin;padding-bottom:6px!important;align-items:center}
.as2n-tabs>button{flex:0 0 auto;white-space:nowrap;font-size:13px!important}
.as2n-old-note{display:none!important}
.as2n-toolbar{margin:8px 0 12px;padding:11px 13px;border:1px solid #dce8e0;border-radius:10px;background:#f8fcf9;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;font:13px/1.35 Arial,sans-serif;color:#183b2b}
.as2n-toolbar-intro{display:flex;flex-direction:column;gap:3px}
.as2n-toolbar-intro strong{font-size:14px;color:#125b37}
.as2n-hint{color:#64748b;font-size:11px}
.as2n-toolbar-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.as2n-orglabel{display:flex;align-items:center;gap:7px;color:#475569;font-size:12px}
.as2n-org{background:white;border:1px solid #cbd5e1;border-radius:7px;padding:7px 10px;max-width:160px;font:inherit;color:#1e293b}
.as2n-switch{display:inline-flex;border:1px solid #a7cabb;background:white;padding:2px;border-radius:9px;gap:1px}
.as2n-switch button{appearance:none;border:0;cursor:pointer;background:transparent;border-radius:6px;padding:6px 11px;color:#386451;font-size:12px;font-weight:600}
.as2n-switch button.is-selected{background:#166534;color:white}
.as2n-switch button:focus-visible,.as2n-org:focus-visible{outline:2px solid #15803d;outline-offset:2px}
.as2n-count{font-size:12px;color:#64748b;min-width:78px;text-align:right}
.as2n-tablewrap{max-width:100%;overflow-x:auto!important;overflow-y:visible;scrollbar-width:thin;border:1px solid #e2e8f0;border-radius:9px}
.as2n-scoretable{border-collapse:separate!important;border-spacing:0!important;width:100%!important;table-layout:auto!important;font-size:12px!important;line-height:1.32}
.as2n-scoretable.as2n-full{min-width:1580px!important}
.as2n-scoretable.as2n-compact{min-width:1090px!important}
.as2n-scoretable th,.as2n-scoretable td{padding:9px 8px!important;text-align:center!important;vertical-align:middle!important;border-bottom:1px solid #edf2f0!important;white-space:nowrap}
.as2n-scoretable thead th{font-weight:700!important;font-size:11.5px!important;line-height:1.2!important;background:#eaf4ee!important;color:#275241!important;position:sticky;top:0;z-index:2}
.as2n-scoretable tbody tr:hover>td{background:#f3faf5!important}
.as2n-scoretable tbody tr:nth-child(even)>td{background:#fcfdfd}
.as2n-scoretable th:nth-child(1),.as2n-scoretable td:nth-child(1){position:sticky;left:0;z-index:3;width:43px;min-width:43px;background:white;text-align:center!important}
.as2n-scoretable th:nth-child(2),.as2n-scoretable td:nth-child(2){position:sticky;left:43px;z-index:3;min-width:184px;max-width:220px;background:white;text-align:left!important;white-space:normal}
.as2n-scoretable th:nth-child(3),.as2n-scoretable td:nth-child(3){position:sticky;left:227px;z-index:3;min-width:95px;max-width:118px;background:white;text-align:left!important;white-space:normal}
.as2n-scoretable th:nth-child(1),.as2n-scoretable th:nth-child(2),.as2n-scoretable th:nth-child(3){z-index:5;background:#dcefe4!important}
.as2n-scoretable td:nth-child(2)>strong{font-size:12px!important;line-height:1.3}
.as2n-scoretable td:nth-child(2)>div{font-size:10.5px;line-height:1.2;color:#64748b}
.as2n-scoretable td:nth-child(2) details{margin:4px 0 0!important;font-size:11px;color:#166534}
.as2n-scoretable td:nth-child(2) details summary{white-space:nowrap;line-height:1.5}
.as2n-scoretable td:nth-child(2) details[open]{position:relative;z-index:7}
.as2n-scoretable td:nth-child(2) details[open]>div{position:relative;left:0;z-index:8;width:min(350px,85vw);max-width:100%;box-shadow:0 8px 20px #0f172a24;border-radius:8px;white-space:normal}
.as2n-scoretable td:nth-child(2) details[open]>div div{white-space:normal}
.as2n-scoretable th:nth-child(6),.as2n-scoretable th:nth-child(7),.as2n-scoretable th:nth-child(8),.as2n-scoretable th:nth-child(9){font-size:0!important;min-width:78px!important}
.as2n-scoretable th:nth-child(6)::before,.as2n-scoretable th:nth-child(7)::before,.as2n-scoretable th:nth-child(8)::before,.as2n-scoretable th:nth-child(9)::before{font-size:12px;font-weight:700;display:block}
.as2n-scoretable th:nth-child(6)::before{content:'N2'}
.as2n-scoretable th:nth-child(7)::before{content:'N3'}
.as2n-scoretable th:nth-child(8)::before{content:'N4'}
.as2n-scoretable th:nth-child(9)::before{content:'N5'}
.as2n-scoretable th:nth-child(6)::after,.as2n-scoretable th:nth-child(7)::after,.as2n-scoretable th:nth-child(8)::after,.as2n-scoretable th:nth-child(9)::after{content:'KK  /  D';display:block;font-size:10px;font-weight:500;margin-top:5px;color:#64748b}
.as2n-scoretable.as2n-compact th:nth-child(6),.as2n-scoretable.as2n-compact td:nth-child(6),
.as2n-scoretable.as2n-compact th:nth-child(7),.as2n-scoretable.as2n-compact td:nth-child(7),
.as2n-scoretable.as2n-compact th:nth-child(8),.as2n-scoretable.as2n-compact td:nth-child(8),
.as2n-scoretable.as2n-compact th:nth-child(9),.as2n-scoretable.as2n-compact td:nth-child(9){display:none!important}
.as2n-scoretable th:nth-child(12),.as2n-scoretable th:nth-child(13),.as2n-scoretable th:nth-child(14){min-width:86px}
.as2n-scoretable td:nth-child(12) strong{color:#166534!important}
.as2n-scoretable td:nth-child(14){color:#b45309;font-weight:700}
.as2n-scoretable td:nth-child(15) strong{color:#0b5e42!important}
.as2n-scoretable th:last-child,.as2n-scoretable td:last-child{position:sticky;right:0;z-index:4;background:white!important;min-width:90px;box-shadow:-2px 0 4px #e2e8f080}
.as2n-scoretable th:last-child{z-index:6;background:#dcefe4!important}
.as2n-scoretable td:last-child button{padding:7px 9px!important;white-space:nowrap!important;font-size:11px!important}
.as2n-scoretable.as2n-ranking th:nth-child(4),.as2n-scoretable.as2n-ranking td:nth-child(4){min-width:102px}
.as2n-scoretable.as2n-ranking th:nth-child(15),.as2n-scoretable.as2n-ranking td:nth-child(15){min-width:125px;white-space:normal}
.as2n-scoretable.as2n-ranking th:last-child,.as2n-scoretable.as2n-ranking td:last-child{position:static;box-shadow:none;background:inherit!important}
.as2n-scoretable.as2n-ranking th:nth-child(1),.as2n-scoretable.as2n-ranking td:nth-child(1){width:65px;min-width:65px}
.as2n-scoretable.as2n-ranking th:nth-child(2),.as2n-scoretable.as2n-ranking td:nth-child(2){left:65px}
.as2n-scoretable.as2n-ranking th:nth-child(3),.as2n-scoretable.as2n-ranking td:nth-child(3){left:249px}
@media(max-width:740px){.as2n-toolbar{padding:10px}.as2n-toolbar-intro{width:100%}.as2n-toolbar-tools{gap:8px}.as2n-hint{font-size:10px}.as2n-scoretable.as2n-compact{min-width:1000px!important}.as2n-scoretable th,.as2n-scoretable td{padding:8px 6px!important}.as2n-scoretable th:nth-child(2),.as2n-scoretable td:nth-child(2){min-width:170px;max-width:175px}.as2n-scoretable th:nth-child(3),.as2n-scoretable td:nth-child(3){left:213px;min-width:70px;max-width:82px}.as2n-scoretable.as2n-ranking th:nth-child(3),.as2n-scoretable.as2n-ranking td:nth-child(3){left:235px}}
/* Two-tier readable totals instead of long repeating titles. */
.as2n-scoretable.as2n-review th:nth-child(12),.as2n-scoretable.as2n-review th:nth-child(13),.as2n-scoretable.as2n-review th:nth-child(14),.as2n-scoretable.as2n-review th:nth-child(15),
.as2n-scoretable.as2n-ranking th:nth-child(12),.as2n-scoretable.as2n-ranking th:nth-child(13),.as2n-scoretable.as2n-ranking th:nth-child(14){font-size:0!important}
.as2n-scoretable.as2n-review th:nth-child(12)::before,.as2n-scoretable.as2n-review th:nth-child(13)::before,.as2n-scoretable.as2n-review th:nth-child(14)::before,.as2n-scoretable.as2n-review th:nth-child(15)::before,
.as2n-scoretable.as2n-ranking th:nth-child(12)::before,.as2n-scoretable.as2n-ranking th:nth-child(13)::before,.as2n-scoretable.as2n-ranking th:nth-child(14)::before{display:block;font-size:12px;line-height:1.2}
.as2n-scoretable.as2n-review th:nth-child(12)::before,.as2n-scoretable.as2n-ranking th:nth-child(12)::before{content:'Tổng KK'}
.as2n-scoretable.as2n-review th:nth-child(13)::before{content:'Đã ghi nhận'}
.as2n-scoretable.as2n-ranking th:nth-child(13)::before{content:'Tổng D (tạm)'}
.as2n-scoretable.as2n-review th:nth-child(14)::before,.as2n-scoretable.as2n-ranking th:nth-child(14)::before{content:'Chênh lệch'}
.as2n-scoretable.as2n-review th:nth-child(15)::before{content:'Thẩm định'}
/* Official rankings: separate readable style, never alter or re-rank data. */
.as2n-official-ranking{min-width:1150px!important;border-collapse:separate!important;border-spacing:0!important;table-layout:auto!important;font-size:12px!important}
.as2n-official-ranking th,.as2n-official-ranking td{padding:9px 8px!important;border-bottom:1px solid #e8eeeb!important;vertical-align:middle!important;white-space:nowrap;text-align:center!important}
.as2n-official-ranking thead th{background:#edf5ef!important;color:#275241!important;font-weight:700!important}
.as2n-official-ranking tbody tr:nth-child(even){background:#fbfdfc!important}
.as2n-official-ranking tbody tr:hover{background:#f3faf5!important}
.as2n-official-ranking th:nth-child(1),.as2n-official-ranking td:nth-child(1){position:sticky;left:0;z-index:3;background:white!important;min-width:65px}
.as2n-official-ranking th:nth-child(2),.as2n-official-ranking td:nth-child(2){position:sticky;left:65px;z-index:3;background:white!important;text-align:left!important;min-width:180px}
.as2n-official-ranking th:nth-child(1),.as2n-official-ranking th:nth-child(2){background:#dcefe4!important;z-index:4}
.as2n-official-ranking td:nth-child(10){font-weight:700;font-size:14px;color:#0b6a3e}
.as2n-pending-ranking{width:100%;font-size:12px!important}
.as2n-pending-ranking th,.as2n-pending-ranking td{padding:10px!important;border-bottom:1px solid #e6ece9!important}
.as2n-pending-ranking th{background:#f3f6f9;color:#334155}
