:root{font-family:'Segoe UI Variable Text','Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;color:#19324e;background:#f3f6fa;font-size:14px;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100vh}button{font:inherit}button:focus-visible,a:focus-visible{outline:3px solid #57a8e9;outline-offset:2px}[hidden]{display:none!important}.app-shell{display:flex;min-height:100vh}.sidebar{width:264px;min-width:264px;background:#fff;border-right:1px solid #e0e7f0;display:flex;flex-direction:column;min-height:100vh;position:sticky;top:0;height:100vh;box-shadow:3px 0 12px rgba(16,53,90,.02);z-index:40}.logo-area{padding:25px 18px 32px;display:flex;align-items:center;gap:11px;border-bottom:1px solid #eef2f6}.logo-mark{height:43px;width:43px;display:grid;place-items:center;background:linear-gradient(135deg,#0a70bf,#073c77);border-radius:13px;color:white;font-size:23px;font-weight:900;box-shadow:0 5px 12px rgba(13,99,172,.2)}.logo-area strong{display:block;white-space:nowrap;font-size:14px;letter-spacing:.25px;color:#0b4276}.logo-area strong span{font-weight:650}.logo-area small{display:block;color:#8392a5;font-size:9.5px;letter-spacing:.7px;margin-top:5px}.sidebar-section-label{color:#96a1b0;font-weight:750;letter-spacing:1.1px;font-size:10px;padding:24px 22px 11px}.nav{padding:0 11px;display:flex;flex-direction:column;gap:5px}.nav-item{width:100%;text-align:left;display:flex;align-items:center;gap:12px;color:#49647f;background:transparent;border:0;border-radius:9px;min-height:46px;padding:11px 10px;font-size:12.7px;font-weight:625;cursor:pointer;line-height:1.35}.nav-item:hover{background:#f2f7fc;color:#0a5fa6}.nav-item.active{color:#0869b0;background:#eaf4fd;font-weight:750;box-shadow:inset 3px 0 #167dc4}.nav-number{font-size:10.5px;display:grid;place-items:center;height:25px;width:27px;flex:none;border:1px solid #e2e9f1;border-radius:7px;color:#889bb0;background:#f8fafc}.nav-item.active .nav-number{color:#0873bd;border-color:#cce5f9;background:#fff}.sidebar-bottom{margin:auto 17px 19px;padding-top:18px;border-top:1px solid #edf1f6;color:#59718b;font-size:11px}.sidebar-bottom small{display:block;color:#9daab9;margin:5px 0 0 13px}.dot{display:inline-block;width:7px;height:7px;background:#40a579;border-radius:50%;vertical-align:middle;margin-right:6px}.workspace{flex:1;min-width:0}.topbar{height:82px;background:linear-gradient(102deg,#082f5f,#0a568f);color:white;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 30px;box-shadow:0 2px 14px #0e40621a}.top-left{display:flex;align-items:center;gap:12px}.org strong{font-size:15.5px;letter-spacing:.35px;display:block}.org span{display:block;font-size:10px;letter-spacing:1px;color:#bdd7f0;margin-top:6px}.top-actions{display:flex;gap:12px;align-items:center}.status-pill{font-size:11px;border:1px solid #ffffff30;padding:8px 10px;border-radius:20px;background:#ffffff16;white-space:nowrap}.admin-link{background:#fff;color:#10588e;text-decoration:none;border-radius:8px;padding:10px 14px;font-size:12px;font-weight:750;white-space:nowrap}.admin-link:hover{background:#eaf5fd}.menu-toggle{border:0;color:#fff;background:#ffffff22;padding:8px 11px;border-radius:7px;font-size:19px;display:none;cursor:pointer}main{padding:30px;max-width:1800px;margin:auto}.page-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:2px 0 22px}.breadcrumb{font-size:11px;color:#7c90a6;letter-spacing:.2px}.breadcrumb span{margin-left:7px}.page-top h1{font-size:22px;letter-spacing:.2px;margin:8px 0 7px;color:#143b65}.page-top p{margin:0;font-size:12px;color:#7d90a2}.version{white-space:nowrap;background:#fff;border:1px solid #e1e8f1;padding:9px 12px;border-radius:8px;color:#72849a;font-size:10px;letter-spacing:.6px}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:20px}.metric,.panel{background:#fff;border:1px solid #e0e8f0;border-radius:13px;box-shadow:0 3px 18px #0b397608}.metric{padding:19px}.metric span{display:block;font-size:11.7px;color:#6d7f92}.metric strong{display:block;color:#185d9c;font-size:29px;margin-top:11px}.metric small{font-size:11px;color:#a2aebc}.panel{overflow:hidden;min-height:320px}.panel-title{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:19px 21px;border-bottom:1px solid #ecf0f5}.panel-title h2{margin:0;font-size:15px;color:#203e60}.tag{font-size:10px;font-weight:800;letter-spacing:.65px;background:#f0f5fb;color:#6685a3;border:1px solid #e3ebf3;border-radius:40px;padding:7px 10px;white-space:nowrap}.empty-state{min-height:260px;display:flex;justify-content:center;align-items:center;flex-direction:column;gap:10px;text-align:center;padding:24px}.empty-icon{background:#edf5fb;color:#2374b7;font-size:26px;border-radius:15px;width:56px;height:56px;display:grid;place-items:center}.empty-state strong{font-size:15px;color:#284866}.empty-state p{max-width:540px;color:#8294a5;font-size:12.4px;line-height:1.7;margin:0}.table-scroll{overflow:auto;width:100%;max-height:calc(100vh - 310px);min-height:250px}table{border-collapse:separate;border-spacing:0;min-width:1100px;width:100%;table-layout:fixed;font-size:12px}th,td{border-bottom:1px solid #e8eef4;padding:12px 11px;white-space:nowrap;vertical-align:middle}th{color:#376080;background:#f0f6fc;text-align:left;position:sticky;top:0;z-index:1;font-weight:750}th.numeric,td.numeric{text-align:right;font-variant-numeric:tabular-nums}.table-empty{text-align:center;padding:54px 10px;color:#8395a8}.footer{font-size:11px;color:#9ba9b8;padding:19px 0;display:flex;justify-content:space-between;gap:10px}.sidebar-overlay{display:none}@media(max-width:1080px){.sidebar{width:238px;min-width:238px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.topbar{padding:0 20px}main{padding:22px}}@media(max-width:790px){.sidebar{position:fixed;left:0;top:0;transform:translateX(-101%);transition:transform .18s ease}.sidebar.is-open{transform:translateX(0)}.sidebar-overlay:not([hidden]){display:block;position:fixed;inset:0;background:#061c35a8;z-index:30}.menu-toggle{display:block}.topbar{height:72px}.org strong{font-size:13px}.org span{font-size:9px}.status-pill{display:none}main{padding:17px}.page-top h1{font-size:19px}}@media(max-width:480px){.topbar{padding:0 11px}.org strong{font-size:11.5px}.org span{font-size:8px}.admin-link{padding:9px;font-size:10px}.metric-grid{gap:9px}.metric{padding:13px}.metric strong{font-size:24px}.page-top{align-items:flex-start}.version{font-size:8.5px;padding:8px}.panel-title{padding:14px}.tag{font-size:9px}.footer{display:block}.footer span{display:block;margin-top:5px}}

.customer-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:15px 20px;border-bottom:1px solid #e7edf4}.customer-toolbar input,.customer-toolbar select{padding:10px;border-radius:8px;border:1px solid #cbdbe8;background:white;font:inherit;font-size:12.5px}.customer-toolbar input{width:260px;max-width:100%}.customer-toolbar button{border:1px solid #bfd5e8;border-radius:8px;background:#ecf6fe;color:#1768a4;padding:10px 13px;cursor:pointer}.customer-count{color:#647b90;font-size:12px;margin-left:auto}.data-period{font-size:12px;padding:10px 20px;background:#f7fafc;color:#607990;margin:0}.data-note{font-size:11.5px;color:#698096;padding:8px 20px;line-height:1.6}.customer-table{min-width:1594px;table-layout:fixed}.customer-table td{overflow:hidden;text-overflow:ellipsis}.customer-table tfoot td{background:#fff;color:#b42323;font-weight:800;position:sticky;bottom:0;border-top:2px solid #e0b8b8}.customer-table td.numeric{font-weight:600}.customer-table .customer-edit{background:#edf5ff;color:#155e9a;border:1px solid #c9def2;border-radius:6px;padding:6px 9px;cursor:pointer;font-size:11px}.customer-table .customer-name{font-weight:650}.table-scroll{scrollbar-gutter:stable}.error-text{color:#ad3030;font-weight:650}.data-summary{font-size:13px;color:#52738f;line-height:1.9}.data-summary b{font-size:15px;color:#145b94}

/* V2.0.3: dropdown filters, aligned and responsive. */
.customer-toolbar{gap:9px;align-items:center}
.customer-toolbar select{min-width:145px;max-width:220px}
#customerOfficer{min-width:190px;max-width:260px}
#customerTicket{min-width:164px}
#customerStatus{min-width:174px}
.customer-count{font-variant-numeric:tabular-nums}
@media(max-width:650px){.customer-toolbar input,.customer-toolbar select{width:100%;max-width:none!important}.customer-toolbar button{flex:1}.customer-count{margin-left:0;width:100%}}

/* Registration: native single-page module, no iframe */
.reg-lookup{background:#f4f8fd;border:1px solid #e2eaf4;border-radius:12px;padding:16px;margin-bottom:18px}.reg-lookup-title{font-size:12px;font-weight:800;letter-spacing:.4px;color:#17578e;margin-bottom:11px}.reg-lookup-row{display:grid;grid-template-columns:minmax(170px,1fr) minmax(220px,1.45fr) auto auto;gap:9px}.reg-lookup-row input,.reg-lookup-row select,.reg-field input,.reg-field select{width:100%;border:1px solid #cad9e8;border-radius:8px;padding:11px 12px;background:white;color:#173452;font:inherit;min-height:42px}.reg-lookup-row .customer-edit{white-space:nowrap}.reg-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.reg-section{grid-column:1/-1;background:#edf6ff;color:#0b5e9d;border-left:4px solid #ffcb38;border-radius:6px;padding:10px 12px;font-weight:800;font-size:12px;margin-top:5px}.reg-field{min-width:0}.reg-field label{display:block;font-size:12px;font-weight:700;color:#36536e;margin-bottom:7px}.reg-field label em{color:#d23b3b;font-style:normal}.reg-field input:focus,.reg-field select:focus{outline:2px solid #b8ddff;outline-offset:0}.reg-field input.reg-invalid,.reg-field select.reg-invalid{border-color:#d33;background:#fff8f8}.reg-primary{background:#076eb7;border:1px solid #076eb7;color:#fff;padding:11px 17px;border-radius:9px;font-weight:750;cursor:pointer}.reg-primary:disabled{opacity:.6;cursor:wait}.reg-footer{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding-top:18px;margin-top:18px;border-top:1px solid #e1e8f1}.reg-feedback:not(:empty){padding:12px;border:1px solid #c9deed;background:#eaf6ff;border-radius:8px;margin-bottom:12px;color:#164d75}.reg-feedback.error{color:#a82727;background:#fff1f1;border-color:#ffd5d5}.reg-lookup .data-note{margin:10px 0 0}@media(max-width:1050px){.reg-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.reg-lookup-row{grid-template-columns:1fr 1fr}}@media(max-width:630px){.reg-grid,.reg-lookup-row{grid-template-columns:1fr}}


/* V2.1.1 – Registration UI: modern controls, responsive, no behavior changes */
#registration .panel{min-width:0;overflow:hidden}
#registration .panel-title{padding:17px 20px}
#registration .reg-lookup{border:0;border-bottom:1px solid #e6edf5;border-radius:0;background:#f7faff;padding:16px 20px;margin:0 0 16px}
#registration .reg-lookup-row{grid-template-columns:minmax(0,1.05fr) minmax(0,1.35fr) auto auto;align-items:center;gap:10px}
#registration .reg-lookup-row>*{min-width:0;max-width:100%}
#registration .reg-lookup-row input,#registration .reg-lookup-row select{height:42px;min-height:42px;border-radius:9px;box-shadow:none}
#registration .reg-lookup-row button,#registration .reg-footer button{appearance:none;-webkit-appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;height:42px;padding:0 17px;margin:0;border-radius:9px;border:1px solid #c8dbed;background:#fff;color:#205b90;font:inherit;font-size:12.5px;font-weight:700;line-height:1.2;white-space:nowrap;cursor:pointer;transition:background .16s ease,border-color .16s ease,box-shadow .16s ease}
#registration .reg-lookup-row #registrationFill,#registration .reg-footer #registrationSave{background:#0a6cb5;border-color:#0a6cb5;color:#fff;box-shadow:0 2px 5px rgba(10,108,181,.12)}
#registration .reg-lookup-row #registrationFill:hover,#registration .reg-footer #registrationSave:hover{background:#075c9e;border-color:#075c9e}
#registration .reg-lookup-row #registrationNew:hover,#registration .reg-footer #registrationReset:hover{background:#eef6fd;border-color:#9ec9e8}
#registration .reg-lookup-row button:focus-visible,#registration .reg-footer button:focus-visible{outline:3px solid #9ed4fb;outline-offset:2px}
#registration .reg-footer{padding:16px 20px;margin:18px 0 0;gap:10px;background:#fafcff;border-top:1px solid #e5edf5}
#registration .reg-footer #registrationReset{background:#fff;border:1px solid #c8dbed;color:#245d8a}
#registration .reg-footer #registrationCount{padding:0 8px;background:transparent;border:0;color:#7b90a6;font-size:11px}
#registration .reg-grid{padding:0 20px;gap:14px}
#registration .reg-section{border-left:3px solid #1677bb;background:#f0f6fc;border-radius:5px;padding:10px 12px;margin-top:10px}
#registration .reg-lookup .data-note{padding:0;margin:10px 0 0}
#registration .reg-feedback:not(:empty){margin:12px 20px}
@media(max-width:1150px){#registration .reg-lookup-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}#registration .reg-lookup-row button{width:100%}}
@media(max-width:630px){#registration .reg-lookup-row{grid-template-columns:minmax(0,1fr)}#registration .reg-grid{padding:0 12px}#registration .reg-lookup{padding:14px 12px}#registration .reg-footer{padding:14px 12px;flex-wrap:wrap}#registration .reg-footer button{flex:1 1 145px}#registration .reg-footer #registrationCount{width:100%;padding:3px 0}}

/* V2.1.3 - Tab Dang ky theo mau anh da chot; chi scoped vao registration */
#registration .panel{background:#fff;overflow:hidden;min-height:0;border:1px solid #e0e9f2;border-radius:14px;box-shadow:0 2px 12px rgba(19,56,91,.045)}
#registration .panel-title{padding:20px 22px;border-bottom:1px solid #e9eff5}
#registration .panel-title h2{color:#0b3966;font-size:15px;letter-spacing:.1px}
#registration .reg-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:15px;row-gap:16px;padding:16px 22px 8px;align-items:start}
#registration .reg-section{grid-column:1/-1;margin:4px 0 -1px;padding:10px 13px;min-height:37px;display:flex;align-items:center;background:#eaf5fc;color:#00558f;border:0;border-left:4px solid #ffca33;border-radius:6px;font-size:12px;font-weight:800;letter-spacing:.05px}
#registration .reg-field{min-width:0}
#registration .reg-field label{display:block;margin:0 0 7px;color:#163e65;font-size:12px;font-weight:725;line-height:1.3}
#registration .reg-field input,#registration .reg-field select{display:block;width:100%;min-height:43px;height:43px;max-width:100%;padding:10px 13px;border:1px solid #c9dcef;border-radius:9px;background:#fff;color:#193c60;font-family:'Segoe UI Variable Text','Segoe UI',Roboto,Arial,sans-serif;font-size:13px;box-shadow:none;outline:none;transition:border-color .15s ease,box-shadow .15s ease}
#registration .reg-field input::placeholder{color:#8499af;opacity:1}
#registration .reg-field input:focus,#registration .reg-field select:focus{border-color:#54a3dd;box-shadow:0 0 0 3px rgba(41,145,220,.13);outline:0}
#registration .reg-field input.reg-invalid,#registration .reg-field select.reg-invalid{border-color:#cc4949;box-shadow:0 0 0 2px rgba(204,73,73,.08)}
#registration .reg-footer{margin-top:16px;padding:17px 22px;display:flex;gap:11px;align-items:center;background:#fbfdff;border-top:1px solid #e6edf4;flex-wrap:wrap}
#registration .reg-footer #registrationSave,#registration .reg-footer #registrationReset{appearance:none;-webkit-appearance:none;display:inline-flex;align-items:center;justify-content:center;min-height:42px;height:42px;padding:0 17px;margin:0;border-radius:9px;font:700 13px 'Segoe UI',Arial,sans-serif;cursor:pointer;white-space:nowrap}
#registration .reg-footer #registrationSave{color:white;background:#0871b9;border:1px solid #0871b9;box-shadow:0 2px 6px rgba(5,105,175,.14)}
#registration .reg-footer #registrationReset{color:#155a91;background:white;border:1px solid #c6dced}
#registration .reg-footer #registrationCount{color:#7c91a7;font-size:11px}
@media(max-width:1020px){#registration .reg-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){#registration .reg-grid{grid-template-columns:minmax(0,1fr);padding:12px 14px 4px;gap:13px}#registration .panel-title{padding:15px}#registration .reg-footer{padding:14px;gap:8px}#registration .reg-footer #registrationSave,#registration .reg-footer #registrationReset{flex:1 1 140px}}

/* V2.2.0 – Danh sach ho so 232 theo dung bang cochedacthu goc */
#registered232 .panel{overflow:hidden;border:1px solid #dfebf5;border-radius:13px}
#registered232 .panel-title{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:20px 22px}
#registered232 .panel-title h2{margin:0;font-size:18px;color:#123c62}
#registered232 .reg232-desc{margin:6px 0 0;font-size:12px;color:#687f95}
#registered232 .reg232-export{border:0;background:#ffca37;color:#203953;border-radius:9px;padding:11px 15px;font-size:12px;font-weight:800;cursor:pointer}
#registered232 .reg232-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:15px 20px 12px}
#registered232 .reg232-toolbar input{width:420px;max-width:100%;min-height:42px;border:1px solid #c9dbeb;border-radius:9px;padding:10px 12px;background:white;font:inherit;font-size:13px}
#registered232 .reg232-count{border-radius:50px;background:#e9f4ff;color:#075b99;padding:7px 12px;font-size:12px;font-weight:750}
#registered232 .reg232-reload{border:1px solid #c8ddec;border-radius:8px;background:white;color:#0b5e9e;padding:9px 12px;cursor:pointer;font-size:12px;margin-left:auto}
#registered232 .reg232-scroll{overflow:auto;max-height:62vh;margin:0 20px 14px;border:1px solid #dbe7f0;border-radius:10px;scrollbar-gutter:stable}
#registered232 .reg232-table{table-layout:fixed;width:3774px;min-width:3774px;border-spacing:0;border-collapse:separate;font-size:12px;color:#1c3956}
#registered232 .reg232-table th,#registered232 .reg232-table td{box-sizing:border-box;padding:11px 10px;vertical-align:top;border-bottom:1px solid #e5edf4;overflow-wrap:anywhere;white-space:normal;text-align:left}
#registered232 .reg232-table th{position:sticky;top:0;background:#e9f3fc;color:#13547f;z-index:2;white-space:nowrap;font-weight:750;border-bottom:1px solid #c8deec}
#registered232 .reg232-table td.reg232-num,#registered232 .reg232-table th.reg232-num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
#registered232 .reg232-table tfoot td{position:sticky;bottom:0;background:#fff;color:#b91c1c;font-size:13px;font-weight:800;border-top:2px solid #d92727;z-index:2;white-space:nowrap}
#registered232 .reg232-table .reg232-actions{white-space:nowrap}
#registered232 .reg232-table .reg232-actions button{display:inline-flex;font-size:11px;padding:7px 10px;border-radius:7px;border:0;cursor:pointer;font-weight:750;margin-right:4px}
#registered232 .reg232-table .reg232-edit{background:#e7f3fc;color:#005c9d}
#registered232 .reg232-table .reg232-delete{background:#fff0f0;color:#b32424}
#registered232 .reg232-hint{font-size:11px;color:#778da2;margin:0;padding:0 20px 18px}
#registered232 .reg232-message:not(:empty){font-size:12px;color:#165b8e;padding:10px 20px;background:#eef7ff}
#registered232 .reg232-message.error{color:#af2121;background:#fff2f2}
#registered232 .reg232-empty{text-align:center!important;color:#8193a6;padding:35px!important}
@media(max-width:650px){#registered232 .reg232-toolbar input{width:100%}#registered232 .reg232-reload{margin-left:0}#registered232 .reg232-scroll{margin:0 8px 10px}#registered232 .panel-title{padding:15px}}

/* V2.2.1 – Cơ cấu dư nợ: scoped dashboard visualization */
#overview .debt-composition{min-height:0;margin-bottom:20px}
#overview .debt-comp-body{padding:22px 24px 20px}
#overview .debt-comp-row{display:grid;grid-template-columns:98px minmax(0,1fr) 66px;gap:14px;align-items:center;min-height:38px;font-size:12px;color:#294a6b}
#overview .debt-comp-row strong{color:#173c66;font-weight:800;font-variant-numeric:tabular-nums;text-align:right}
#overview .debt-comp-track{height:11px;border-radius:99px;overflow:hidden;background:#e9f1f8}
#overview .debt-comp-bar{height:100%;border-radius:99px;transition:width .24s ease}
#overview .debt-comp-bar.debt-loan{background:#247fc7}
#overview .debt-comp-bar.debt-card{background:#24a18b}
#overview .debt-comp-total{margin:13px 0 0;color:#7289a0;font-size:11.5px;line-height:1.65;font-variant-numeric:tabular-nums}
@media(max-width:540px){#overview .debt-comp-body{padding:16px 14px}#overview .debt-comp-row{grid-template-columns:79px minmax(0,1fr) 58px;gap:8px;font-size:11px}}

/* V2.2.2 – Hai khoi tong quan nam canh nhau, khong doi so lieu */
#overview .overview-panels{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:stretch}
#overview .overview-panels>.panel{min-width:0;margin:0;height:100%;overflow:hidden}
#overview .overview-panels .debt-composition{margin-bottom:0}
#overview .overview-panels .panel-title{gap:9px;flex-wrap:wrap}
#overview .overview-panels #overviewNote{min-height:175px}
@media(max-width:1050px){#overview .overview-panels{grid-template-columns:minmax(0,1fr)}}

/* V2.3 • TB232 native analysis — never embed original website */
#analysis .arxt-analysis-panel{overflow:hidden;margin-bottom:14px}
#analysis .arxt-analysis-period,#analysis .arxt-analysis-note{font-size:12px;color:#5f7389;line-height:1.55;padding:0 18px;margin:12px 0}
#analysis .arxt-report-scroll{overflow-x:auto;scrollbar-gutter:stable;padding:4px 18px 12px}
#analysis .arxt-report-row{display:flex;gap:18px;align-items:flex-start;min-width:max-content}
#analysis .arxt-report-row table{font-family:'Times New Roman',serif;font-size:13px;border:2px solid #171717;border-collapse:collapse;table-layout:fixed;background:white;flex:none}
#analysis .arxt-report-row th{background:#ffc000;color:#111;text-align:center;font-weight:700;border-right:1px solid #171717;padding:5px 7px;white-space:nowrap;position:static}
#analysis .arxt-report-row td{padding:4px 7px;height:28px;text-align:right;white-space:nowrap;border-right:1px solid #ddd;color:#172b43}
#analysis .arxt-report-left{width:294px}#analysis .arxt-report-left th{height:76px;text-align:left;vertical-align:top}#analysis .arxt-report-left td{text-align:left}
#analysis .arxt-report-cat{width:710px}#analysis .arxt-report-cat th{font-size:12px}#analysis .arxt-report-cat thead tr:first-child th{text-align:left}
#analysis .arxt-report-cat td:nth-child(3),#analysis .arxt-report-cat td:nth-child(6){border-right:1px solid #171717}
#analysis .arxt-report-row tbody tr:first-child td{font-weight:800}
#analysis .arxt-strategy-intro{padding:0 18px;color:#384e65;font-size:12px}
#analysis .arxt-strategy-scroll{overflow-x:auto;margin:12px 18px}
#analysis .arxt-strategy{border:2px solid #191919;border-collapse:collapse;min-width:1000px;width:100%;font-family:'Times New Roman',serif;font-size:13px}
#analysis .arxt-strategy th{position:static;background:#ffc000;color:#111;text-align:left;padding:8px 10px;white-space:normal}
#analysis .arxt-strategy td{padding:9px 10px;white-space:normal;border:0}
#analysis .arxt-strategy-highlight{background:#f7dfd2}
#analysis .arxt-strategy-summary{width:100%;border-collapse:collapse;font-size:12px;min-width:540px}
#analysis .arxt-strategy-summary th{background:#eaf0f7;position:static;text-align:right;padding:9px}
#analysis .arxt-strategy-summary th:first-child,#analysis .arxt-strategy-summary td:first-child{text-align:left}
#analysis .arxt-strategy-summary td{text-align:right;border-bottom:1px solid #e2e9f1;padding:9px}
#analysis .arxt-strategy-summary .sumrow td{font-weight:700;background:#f4f7fa}



/* V2.3.4 – Ban sao bo cuc bang TB232 goc: 294 / 710 / 710 px.
   Duong ke chi nam tai ranh gioi 3 nhom; khong ke qua so lieu. */
#analysis .arxt-report-scroll {overflow-x:auto;overflow-y:hidden;max-width:100%;padding:0 18px 12px;}
#analysis .arxt-report-row{display:flex;gap:18px;align-items:flex-start;width:max-content;min-width:max-content;}
#analysis .arxt-report-row > table{flex:none;table-layout:fixed!important;border:2px solid #151515;border-collapse:collapse!important;margin:0;font-family:"Times New Roman",serif;font-size:13px;line-height:1.15;background:white;}
#analysis .arxt-report-row > .arxt-report-left{width:294px!important;min-width:294px!important;max-width:294px!important;}
#analysis .arxt-report-row > .arxt-report-cat{width:710px!important;min-width:710px!important;max-width:710px!important;}
#analysis .arxt-report-row table th,#analysis .arxt-report-row table td{box-sizing:border-box!important;white-space:nowrap;border:0!important;padding:0 5px!important;line-height:18px!important;overflow:visible!important;text-overflow:clip;}
#analysis .arxt-report-row table th{background:#ffc000;color:#111;font-weight:700;position:static;}
#analysis .arxt-report-left thead th{height:73px!important;vertical-align:top;text-align:left;padding-top:5px!important;}
#analysis .arxt-report-left th:first-child,#analysis .arxt-report-left td:first-child{width:57%;}
#analysis .arxt-report-left th:nth-child(2),#analysis .arxt-report-left td:nth-child(2){width:43%;}
#analysis .arxt-report-left tbody td{text-align:left;}
#analysis .arxt-report-cat thead tr:nth-child(1) th{height:25px!important;text-align:left;vertical-align:top;padding-top:3px!important;}
#analysis .arxt-report-cat thead tr:nth-child(2) th{height:24px!important;text-align:center;}
#analysis .arxt-report-cat thead tr:nth-child(3) th{height:24px!important;text-align:center;font-size:12px;}
#analysis .arxt-report-cat tbody td{text-align:right;font-variant-numeric:tabular-nums;}
#analysis .arxt-report-row tbody tr{height:24px!important;}
#analysis .arxt-report-row tbody td{height:24px!important;line-height:18px!important;vertical-align:middle;padding-top:0!important;padding-bottom:0!important;}
#analysis .arxt-report-cat thead tr:nth-child(2) th:nth-child(-n+2),
#analysis .arxt-report-cat thead tr:nth-child(3) th:nth-child(3),
#analysis .arxt-report-cat thead tr:nth-child(3) th:nth-child(6),
#analysis .arxt-report-cat tbody td:nth-child(3),
#analysis .arxt-report-cat tbody td:nth-child(6){border-right:1px solid #151515!important;}
#analysis .arxt-report-row tbody tr:first-child td{font-weight:700;}

/* V2.3.5 – Khôi phục đúng tỷ lệ và nhịp hàng Chiến lược hành động của TB232.
   Chỉ áp dụng vào bảng chiến lược, không ảnh hưởng bảng dữ liệu hoặc công thức. */
#analysis .arxt-strategy-scroll{overflow-x:auto;margin:10px 18px 0;max-width:calc(100% - 36px)}
#analysis table.arxt-strategy{
  width:100%;min-width:1160px;table-layout:fixed;border:2px solid #171717;
  border-collapse:collapse;border-spacing:0;font:14px 'Times New Roman',serif;
  color:#142b45;background:#fff;
}
#analysis .arxt-strategy thead th{
  position:static;z-index:auto;background:#ffc000;color:#111;
  border:0!important;border-bottom:0!important;
  padding:8px 12px!important;white-space:normal!important;
  text-align:left;font-weight:400;line-height:1.16;vertical-align:middle;
}
#analysis .arxt-strategy thead tr:first-child th{
  height:30px;padding-top:6px!important;padding-bottom:2px!important;
}
#analysis .arxt-strategy thead tr:nth-child(2) th{
  height:47px;padding-top:4px!important;padding-bottom:7px!important;
}
#analysis .arxt-strategy tbody td{
  border:0!important;padding:8px 12px!important;
  background:#fff;white-space:normal!important;line-height:1.24;
  vertical-align:middle;text-align:left;overflow-wrap:break-word;
}
#analysis .arxt-strategy tbody td.arxt-strategy-highlight{
  background:#f8decf!important;
}
#analysis .arxt-strategy tbody tr{height:36px;}
#analysis .arxt-strategy tbody tr:hover td:not(.arxt-strategy-highlight){background:#fff!important;}

/* V2.3.6 - Danh sách KH: năm bộ lọc trên cùng một hàng, thứ tự cố định */
#customers .customer-toolbar{display:grid;grid-template-columns:minmax(210px,1.5fr) minmax(145px,.8fr) minmax(130px,.8fr) minmax(170px,1fr) minmax(185px,1.1fr) auto;gap:10px;align-items:center;padding:15px 20px;}
#customers .customer-toolbar input,#customers .customer-toolbar select{box-sizing:border-box;width:100%;min-width:0;max-width:none;margin:0;height:42px;font-size:13px;}
#customers .customer-toolbar .customer-count{margin:0;white-space:nowrap;text-align:right;}
@media(max-width:1150px){#customers .customer-toolbar{grid-template-columns:repeat(3,minmax(0,1fr));}#customers .customer-toolbar .customer-count{text-align:left;}}
@media(max-width:650px){#customers .customer-toolbar{grid-template-columns:1fr;}#customers .customer-toolbar .customer-count{width:auto;}}

/* V2.3.7 – Liên kết CIF cũ với Mã KH tại danh sách; không tác động các bảng phân tích */
#customers .customer232-status{border:1px solid #a7dec6;background:#ecf9f2;color:#126847;font:inherit;font-size:11px;font-weight:750;padding:7px 9px;border-radius:8px;white-space:nowrap;cursor:pointer}
#customers .customer232-status:hover{background:#dcf3e8;border-color:#6bc99b}
#customers .customer232-pending{font-size:11px;color:#76879a;white-space:nowrap}
#customers .customer-toolbar{grid-template-columns:minmax(190px,1.4fr) repeat(4,minmax(120px,1fr)) minmax(150px,1fr) auto}
@media(max-width:1350px){#customers .customer-toolbar{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){#customers .customer-toolbar{grid-template-columns:1fr}}

/* V2.3.8 – Nút xóa tất cả bộ lọc tab 02; không sửa dữ liệu/API. */
#customers .customer-toolbar .customer-clear-filters{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;min-height:42px;padding:0 14px;border:1px solid #c6d9ed;border-radius:8px;color:#175e97;background:#f0f7ff;font-size:12.5px;font-weight:650;cursor:pointer;transition:background-color .15s ease,border-color .15s ease;}
#customers .customer-toolbar .customer-clear-filters:hover{background:#e0f0ff;border-color:#91badf;}
#customers .customer-toolbar .customer-clear-filters:focus-visible{outline:2px solid #247dc3;outline-offset:2px;}
#customers .customer-toolbar{grid-template-columns:minmax(190px,1.4fr) repeat(4,minmax(120px,1fr)) minmax(150px,1fr) auto auto;}
@media(max-width:1500px){#customers .customer-toolbar{grid-template-columns:repeat(4,minmax(0,1fr));}}
@media(max-width:900px){#customers .customer-toolbar{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:650px){#customers .customer-toolbar{grid-template-columns:1fr;}}

/* V2.4.3 – Popup Xem chi tiết tab 02 và 04 */
body.arxt-view-open{overflow:hidden}
.arxt-view-overlay{position:fixed;inset:0;z-index:3200;background:rgba(12,34,59,.64);display:flex;align-items:center;justify-content:center;padding:18px;animation:arxt-view-fade .17s ease both}
.arxt-view-overlay[hidden]{display:none!important}
.arxt-view-panel{width:min(760px,100%);max-height:min(88vh,900px);background:#fff;color:#1c3554;display:flex;flex-direction:column;border-radius:16px;box-shadow:0 26px 90px rgba(0,0,0,.30);overflow:hidden;animation:arxt-view-rise .2s ease both}
.arxt-view-header{padding:20px 24px 16px;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;border-bottom:1px solid #e3eaf3}
.arxt-view-kicker{color:#4778a0;font-size:11px;font-weight:750;letter-spacing:.07em;margin-bottom:5px}
.arxt-view-header h2{margin:0;font-size:20px;line-height:1.4;color:#153c64}
.arxt-view-header p{font-size:12px;color:#75889d;margin:6px 0 0}
.arxt-view-close{width:36px;height:36px;flex:none;border:1px solid #d8e2ec;border-radius:9px;background:#f5f8fb;color:#334e67;cursor:pointer;font-size:25px;line-height:1}
.arxt-view-body{overflow-y:auto;overscroll-behavior:contain;padding:19px 24px 22px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px}
.arxt-view-field{min-width:0;padding:11px 14px;background:#f7fafd;border:1px solid #e9eff5;border-radius:9px;display:flex;flex-direction:column;gap:7px}
.arxt-view-field-full{grid-column:1/-1}
.arxt-view-label{font-size:11px;color:#6b8095;font-weight:650}
.arxt-view-value{font-size:14px;color:#1c3855;font-weight:650;overflow-wrap:anywhere;white-space:pre-wrap}
.arxt-view-money{font-variant-numeric:tabular-nums;color:#155d9b}
.arxt-view-footer{border-top:1px solid #e3eaf3;padding:13px 24px;display:flex;justify-content:flex-end}
.arxt-view-footer button{padding:9px 25px;border:0;background:#096eb5;color:#fff;border-radius:8px;font:inherit;font-weight:700;cursor:pointer}
.arxt-view-link{color:inherit;background:none;border:0;padding:0;font:inherit;font-weight:inherit;text-align:left;cursor:pointer}
.arxt-view-link:hover{color:#1167a7;text-decoration:underline}
.arxt-view-link:focus-visible,.arxt-view-btn:focus-visible,.arxt-view-close:focus-visible{outline:2px solid #2383cb;outline-offset:2px}
.arxt-view-btn{border:1px solid #c6dff5;border-radius:6px;padding:6px 9px;color:#075e9c;background:#eff7ff;font-weight:700;font-size:11px;cursor:pointer}
#registered232 .reg232-table .arxt-view-btn{font-size:11px;padding:7px 9px;margin-right:4px}
@media(max-width:600px){.arxt-view-overlay{padding:9px}.arxt-view-panel{max-height:94vh;border-radius:12px}.arxt-view-header{padding:16px}.arxt-view-body{grid-template-columns:1fr;padding:15px;gap:9px}.arxt-view-footer{padding:12px 16px}.arxt-view-header h2{font-size:17px}.arxt-view-field-full{grid-column:auto}}
@keyframes arxt-view-fade{from{opacity:0}to{opacity:1}}
@keyframes arxt-view-rise{from{opacity:.7;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.arxt-view-overlay,.arxt-view-panel{animation:none}}

/* V2.4.8 - Tiến độ xử lý: ba trường bổ sung; không thay 20 cột gốc */
#registration .reg-field textarea{width:100%;min-height:98px;resize:vertical;border:1px solid #c9dcef;border-radius:9px;padding:11px 13px;background:#fff;color:#173452;font:inherit;line-height:1.55}
#registration .reg-field textarea:focus{outline:0;border-color:#54a3dd;box-shadow:0 0 0 3px rgba(41,145,220,.13)}
#registration .reg-field input[type=date]{font-variant-numeric:tabular-nums;color-scheme:light}
#registration select#reg_undisbursedReason.reg-reason-green{background:#e5f6df;color:#287b34;border-color:#9fdaa4;font-weight:650}
#registration select#reg_undisbursedReason.reg-reason-amber{background:#ffedc8;color:#a66a0c;border-color:#f8cb72;font-weight:650}
#registration select#reg_undisbursedReason.reg-reason-rose{background:#fbd9df;color:#b52b44;border-color:#f4b3bf;font-weight:650}
#registration #reg_undisbursedReason option.reg-reason-green{background:#d9f3d0;color:#287b34}
#registration #reg_undisbursedReason option.reg-reason-amber{background:#ffebc1;color:#995e00}
#registration #reg_undisbursedReason option.reg-reason-rose{background:#f9cbd3;color:#ae243b}
@media(max-width:620px){#registration .reg-field textarea{min-height:115px}}

#registration .reg-reason-picker{position:relative}
#registration .reg-reason-picker>select{display:none!important}
#registration .reg-reason-trigger{width:100%;min-height:43px;border:1px solid #c9dcef;border-radius:9px;background:#fff;color:#173452;font:inherit;text-align:left;padding:10px 38px 10px 13px;cursor:pointer;position:relative}
#registration .reg-reason-trigger::after{content:'⌄';position:absolute;right:13px;top:50%;transform:translateY(-50%);font-weight:800;font-size:17px;color:#506b86}
#registration .reg-reason-trigger:focus-visible{outline:3px solid #b8ddff;outline-offset:1px}
#registration .reg-reason-trigger.reg-reason-green{background:#e5f6df;color:#287b34;border-color:#9fdaa4;font-weight:650}
#registration .reg-reason-trigger.reg-reason-amber{background:#ffedc8;color:#a66a0c;border-color:#f8cb72;font-weight:650}
#registration .reg-reason-trigger.reg-reason-rose{background:#fbd9df;color:#b52b44;border-color:#f4b3bf;font-weight:650}
#registration .reg-reason-palette{position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:12;background:#fff;border:1px solid #cddbe7;border-radius:10px;box-shadow:0 12px 28px rgba(16,45,70,.18);padding:8px;display:grid;gap:5px}
#registration .reg-reason-palette[hidden]{display:none}
#registration .reg-reason-option{display:block;width:100%;padding:9px 12px;text-align:left;cursor:pointer;border:0;border-radius:8px;background:#fff;font:inherit;font-size:12px;color:#173452}
#registration .reg-reason-option span{display:inline-block;max-width:100%;padding:6px 11px;border-radius:999px;white-space:normal}
#registration .reg-reason-option.reg-reason-green span{background:#dcf4d5;color:#2d7b34}
#registration .reg-reason-option.reg-reason-amber span{background:#ffebc5;color:#a36600}
#registration .reg-reason-option.reg-reason-rose span{background:#facbd3;color:#ad263d}
#registration .reg-reason-option:hover,#registration .reg-reason-option:focus-visible{background:#f2f6fa;outline:1px solid #bdd5ed}


/* V2.4.9 - Fix progress fields clipping; only tab 03, no data/API changes. */
#registration .reg-field.reg-explanation{grid-column:1 / -1;min-width:0;align-self:stretch;}
#registration .reg-field.reg-explanation label{display:block;position:static;margin-bottom:7px;line-height:1.4;}
#registration .reg-field.reg-explanation textarea{display:block;position:static;width:100%;height:auto;min-height:106px;max-width:100%;box-sizing:border-box;resize:vertical;overflow:auto;visibility:visible;opacity:1;}
/* Keep the dropdown in the normal document flow so it cannot be clipped by panel/footer. */
#registration .reg-reason-picker{position:relative;display:block;width:100%;}
#registration .reg-reason-palette{position:static;top:auto;left:auto;right:auto;z-index:auto;width:100%;margin-top:7px;max-height:none;overflow:visible;box-shadow:0 6px 16px rgba(16,45,70,.10);}
#registration .reg-reason-palette:not([hidden]){display:grid;}
#registration .reg-reason-palette[hidden]{display:none!important;}
#registration .reg-reason-option{min-height:38px;}
#registration .reg-grid{align-items:start;}
#registration .reg-footer{position:relative;z-index:0;}
@media(max-width:620px){#registration .reg-field.reg-explanation{grid-column:1 / -1;}#registration .reg-reason-option span{font-size:12px;}}
/* V2.4.11: ba cột tiến độ bổ sung tại danh sách 04; không ảnh hưởng tab 02. */
#registered232 .reg232-table{width:4560px;min-width:4560px}
#registered232 .reg232-table th:nth-last-child(-n+3){white-space:normal;line-height:1.35}
#registered232 .reg232-table td.reg232-date{white-space:nowrap;font-variant-numeric:tabular-nums}
#registered232 .reg232-table td.reg232-explanation{white-space:pre-line;overflow-wrap:anywhere;line-height:1.45;max-height:none}
#registered232 .reg232-reason{display:inline-block;border-radius:999px;padding:6px 10px;line-height:1.4;font-size:11px;font-weight:650;white-space:normal}
#registered232 .reg232-reason.reg-reason-green{background:#dcf4d5;color:#287b34}
#registered232 .reg232-reason.reg-reason-amber{background:#ffebc5;color:#a36600}
#registered232 .reg232-reason.reg-reason-rose{background:#facbd3;color:#ad263d}
#registered232 .reg232-none{color:#94a3b8}
