/* ATVSLD 2.1: responsive layer. No change to business data or desktop tables. */
.ws-mobile-open,.ws-mobile-close,.ws-mobile-backdrop,.ws-mobile-mode,.ws-mobile-hint{display:none}
.ws-mobile-form{min-width:0;max-width:100%}
.ws-shell :focus-visible,.ws-mobile-form :focus-visible{outline:2px solid #1769bb;outline-offset:2px}
@media(max-width:991.98px){
 .ws-shell.ws-mobile-ready .ws-layout{display:block!important;min-width:0}
 .ws-shell.ws-mobile-ready .ws-main{width:100%;min-width:0}
 .ws-shell.ws-mobile-ready .ws-layout>.ws-sidebar,.ws-shell.ws-mobile-ready.ws-catalog>.container-fluid>.row>.ws-mobile-drawer{display:none!important}
 .ws-shell.ws-mobile-ready .ws-layout>.ws-sidebar.ws-mobile-drawer.is-mobile-open,.ws-shell.ws-mobile-ready.ws-catalog>.container-fluid>.row>.ws-mobile-drawer.is-mobile-open{display:block!important;position:fixed!important;inset:0 auto 0 0!important;width:min(88vw,380px)!important;max-width:100%!important;height:100vh;height:100dvh;max-height:none!important;overflow-y:auto!important;overscroll-behavior:contain;z-index:1092;background:#fff!important;padding:0!important;margin:0!important;box-shadow:4px 0 25px #1c365540;border-radius:0!important;border:0!important;flex:none!important}
 .ws-shell.ws-mobile-ready.ws-catalog>.container-fluid>.row>.col-xl-9{width:100%!important;max-width:100%!important;flex:0 0 100%!important;min-width:0}
 .ws-shell.ws-mobile-ready .ws-catalog-folded,.ws-shell.ws-mobile-ready .ws-main{min-width:0}
 .ws-shell.ws-mobile-ready .ws-reopen,.ws-shell.ws-mobile-ready [data-ws-catalog-fold],.ws-shell.ws-mobile-ready .ws-sidebar [data-ws-toggle]{display:none!important}
 .ws-shell.ws-mobile-ready .ws-mobile-open{display:inline-flex;align-items:center;gap:8px;min-height:44px;margin:4px 0 10px;padding:8px 14px;font-weight:650;color:#185c9e;background:#fff;border:1px solid #9bbcdf;border-radius:6px}
 .ws-mobile-drawer .ws-mobile-close{display:flex;align-items:center;justify-content:space-between;gap:8px;position:sticky;top:0;z-index:2;width:100%;min-height:48px;padding:10px 14px;background:#185c9e;color:white;font-weight:650;border:0;text-align:left}
 .ws-mobile-backdrop.is-mobile-open{display:block;position:fixed;inset:0;background:#12243b80;z-index:1091;border:0;width:100%;height:100%;padding:0}
 body.ws-mobile-lock{overflow:hidden!important}
 .ws-mobile-drawer .ws-side-body{padding:12px}
 .ws-mobile-drawer .sidebar-panel{border:0!important;margin:0!important}
 .ws-mobile-drawer :is(.ws-tree-link,summary,.nganh-item){min-height:44px;padding:9px 6px!important;white-space:normal}
 .ws-mobile-drawer .ws-tree-actions button{min-height:40px}
 .ws-shell :is(.ws-tabs,.mtdu .navp){display:flex;flex-wrap:nowrap;overflow-x:auto;max-width:100%;overscroll-behavior-inline:contain;scrollbar-width:thin;gap:6px}
 .ws-shell :is(.ws-tabs,.mtdu .navp) a{flex:none;min-height:44px;display:inline-flex;align-items:center;gap:6px;font-size:14px;padding:9px 12px}
 .ws-shell :is(.btn,.button,.form-control,.form-select),.ws-mobile-form :is(.btn,.button,.form-control,.form-select){min-height:44px;font-size:16px!important}
 .ws-shell :is(input[type=checkbox],input[type=radio]),.ws-mobile-form :is(input[type=checkbox],input[type=radio]){min-width:20px;min-height:20px;vertical-align:middle}
 .ws-shell :is(.table-responsive,.ws-mobile-scroll),.ws-mobile-form .table-responsive{max-width:100%!important;overflow-x:auto!important;overscroll-behavior-inline:contain}
 .ws-shell :is(.top-toolbar,.toolbar-form,.toolbar-left,.toolbar-right,.toolbar-actions-left,.summary-pills,.filter-card,.filter-grid,.content-panel,.rr-page,.page-header-card,.panel-body,.mtdu,.mt7-page,.mt8-page){min-width:0!important;max-width:100%!important}
 .ws-shell :is(.toolbar-form,.toolbar-left,.toolbar-right,.toolbar-actions-left,.summary-pills){flex-wrap:wrap!important;gap:8px!important}
 .ws-shell :is(.toolbar-field,.toolbar-search-wrap){min-width:0!important;max-width:100%!important}
 .ws-shell .ws-mobile-hint{display:block;color:#526d86;font-size:12px;margin:3px 0 8px}
 .ws-mobile-form :is(.sx-main-grid,.sx-grid-3,.sx-bottom,.two-col,.three-col,.compact-two-col,.risk-top-grid,.param-body-grid,.top-grid,.form-grid,.meta-grid,.history-grid,.field-row,.preview-grid,.cmt-preview-grid){grid-template-columns:minmax(0,1fr)!important}
 .ws-mobile-form :is(.container,.container-fluid,.page-wide,.page-shell,.rr-ui,.simx){width:100%!important;max-width:100%!important;min-width:0!important}
 .ws-mobile-form :is(.form-control,.form-select,input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){max-width:100%;min-width:0;font-size:16px!important}
 .ws-mobile-form :is(.ck-editor,.ck-editor__main,.ck-content){max-width:100%;min-width:0;overflow-wrap:anywhere}
 .ws-shell .modal-dialog,.ws-mobile-form .modal-dialog{max-width:calc(100% - 16px);margin:8px auto}
}
@media(max-width:767.98px){
 .ws-shell,.ws-mobile-form{padding-left:6px!important;padding-right:6px!important;min-width:0!important;max-width:100%!important}
 .ws-shell :is(.ws-info-body,.mtdu .frow){grid-template-columns:minmax(0,1fr)!important}
 .ws-shell .ws-info-body{gap:6px;padding:10px;overflow-wrap:anywhere}
 .ws-shell :is(.toolbar-field,.toolbar-search-wrap){flex:1 1 100%!important;width:100%!important}
 .ws-shell :is(.risk-table-row,.risk-table-sk .risk-table-row){grid-template-columns:minmax(0,1fr)!important;gap:8px!important;overflow-wrap:anywhere}
 .ws-shell :is(.risk-table-row,.risk-table-sk .risk-table-row)>*{min-width:0!important;max-width:100%!important}
 .ws-shell .risk-table-head{display:none!important}
 .ws-shell .risk-table-row{border:1px solid #cbd9e7!important;border-radius:7px;margin:8px 0;padding:12px!important;background:#fff!important}
 .ws-shell :is(.risk-actions,.cv-actions,.actions){display:flex;flex-wrap:wrap;gap:8px}
 .ws-mobile-form :is(.stat-grid,.job-stat-grid){grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .ws-mobile-form :is(.score-row,.field-title-row,.card-title-row){flex-wrap:wrap;min-width:0;max-width:100%}
 .ws-shell .ws-mobile-mode{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:5px 0 8px;font-size:13px;color:#45637d}
 .ws-shell .ws-mobile-mode button{min-height:44px;padding:8px 12px;background:#fff;color:#185c9e;border:1px solid #9bbcdf;border-radius:5px;font-weight:650}
 /* Opt-in only after JS validates all source rows; the original DOM and actions stay intact. */
 .ws-shell .ws-card-table.ws-cards-on{display:block!important;min-width:0!important;width:100%!important;max-width:100%!important;border:0!important;table-layout:auto!important}
 .ws-shell .ws-card-table.ws-cards-on>thead{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap}
 .ws-shell .ws-card-table.ws-cards-on>tbody{display:block!important;width:100%;min-width:0}
 .ws-shell .ws-card-table.ws-cards-on>tbody>tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;width:100%!important;min-width:0!important;margin:0 0 12px;border:1px solid #cbd9e7!important;border-radius:8px;background:#fff!important;padding:10px!important;box-shadow:0 2px 6px #12334c0a;overflow-wrap:anywhere}
 .ws-shell .ws-card-table.ws-cards-on>tbody>tr[hidden],.ws-shell .ws-card-table.ws-cards-on>tbody>tr.d-none{display:none!important}
 .ws-shell .ws-card-table.ws-cards-on>tbody>tr[data-ws-scope]::before{content:attr(data-ws-scope);grid-column:1/-1;white-space:normal;color:#536f88;background:#edf4fb;border-radius:4px;padding:7px 8px;margin-bottom:4px;font-size:12px;font-weight:500}
 .ws-shell .ws-card-table.ws-cards-on>tbody>tr>td{display:block!important;min-width:0!important;width:auto!important;max-width:100%!important;border:0!important;border-bottom:1px solid #e5edf4!important;background:transparent!important;box-shadow:none!important;padding:8px 5px!important;text-align:left!important;white-space:normal!important;overflow-wrap:anywhere}
 .ws-shell .ws-card-table.ws-cards-on>tbody>tr>td[data-ws-group]{display:none!important}
 .ws-shell .ws-card-table.ws-cards-on>tbody>tr>td[data-ws-label]::before{content:attr(data-ws-label);display:block;color:#536f88;font-size:12px;font-weight:600;margin-bottom:4px;white-space:normal}
 .ws-shell .ws-card-table.ws-cards-on>tbody>tr>td[data-ws-wide],.ws-shell .ws-card-table.ws-cards-on>tbody>tr>td[colspan]{grid-column:1/-1}
 .ws-shell .ws-card-table.ws-cards-on .hazard-cell{font-weight:700;font-size:16px!important;color:#183f64}
 .ws-shell .ws-card-table.ws-cards-on :is(.hazard-name,.class-pill,.risk-badge,.badge,.mono-badge){white-space:normal!important;max-width:100%!important;overflow-wrap:anywhere}
 .ws-shell .ws-card-table.ws-cards-on .btn-action{width:100%;white-space:normal}
 .ws-shell .ws-card-table.ws-cards-on .cell-action{border-bottom:0!important}
}
@media print{.ws-mobile-open,.ws-mobile-close,.ws-mobile-mode,.ws-mobile-hint,.ws-mobile-backdrop{display:none!important}}
/* The existing mobile navbar has a white collapse panel; restore contrast. */
@media(max-width:1199.98px){
 body.ws-v2 .main-navbar .navbar-collapse .nav-link{color:#23445e!important}
 body.ws-v2 .main-navbar .navbar-collapse .nav-link:hover,body.ws-v2 .main-navbar .navbar-collapse .nav-link:focus,body.ws-v2 .main-navbar .navbar-collapse .nav-link.active{background:#dceafa!important;color:#185c9e!important}
 body.ws-v2 .main-navbar .navbar-collapse{max-height:calc(100dvh - 80px);overflow-y:auto;overscroll-behavior:contain}
}
