/* KhoViet 1.7.9 – transaction-oriented KH/NCC directory; adapted to user's KiotViet references. */
:root{--kv19-blue:#087bef;--kv19-border:#dae2eb;--kv19-text:#263649;--kv19-muted:#738198}
.app-main .page:has(.kv19-directory){max-width:none;padding:14px 18px 30px}
body:has(.kv19-directory) .app-header{height:52px}
body:has(.kv19-directory) .main-nav,body:has(.kv19-directory) .nav-item,body:has(.kv19-directory) .nav-dropdown>summary{height:45px}
.kv19-directory{color:var(--kv19-text);font-family:Arial,'Segoe UI',sans-serif;font-size:14px}
.kv19-directory button,.kv19-directory input,.kv19-directory select{font-family:inherit;font-size:14px}
.kv19-directory-toolbar{display:flex;align-items:center;gap:17px;padding:0 0 13px;min-height:50px}
.kv19-directory-toolbar h1{font-size:22px;line-height:1.15;font-weight:700;color:#202c38;min-width:203px;margin:0}
.kv19-search{height:41px;flex:1 1 280px;max-width:530px;display:flex;align-items:center;gap:5px;border:1px solid #cfd8e3;border-radius:7px;padding:0 8px 0 12px;background:white;min-width:160px}
.kv19-search:focus-within{border-color:#0e80ed;box-shadow:0 0 0 3px #e1f0ff}
.kv19-search>span{font-size:25px;line-height:1;color:#78899b;transform:rotate(-30deg)}
.kv19-search input{width:100%;flex:1;min-width:80px;background:transparent;border:0;outline:0;color:#263648}
.kv19-search-clear{font-size:23px;color:#77879a;padding:0 6px}
.kv19-search>button{background:#fff;border:0;border-left:1px solid #e5e9ef;cursor:pointer;color:#687f99;padding:4px 7px;font-size:24px;line-height:1}
.kv19-action-bar{display:flex;justify-content:flex-end;align-items:center;gap:7px;flex-wrap:wrap;margin-left:auto}
.kv19-action{min-height:38px;border:1px solid #d7e0e9;color:#2c3c4d;background:#fff;border-radius:7px;padding:8px 12px;display:inline-flex;align-items:center;justify-content:center;gap:5px;font-size:13px!important;font-weight:600;text-decoration:none;cursor:pointer;white-space:nowrap}
.kv19-action:hover{background:#edf6ff;border-color:#7bbae9;color:#0872d1}
.kv19-add{color:#0874dc;border-color:#087bf0}
.kv19-create-menu{position:relative}.kv19-create-menu>summary{list-style:none;cursor:pointer}.kv19-create-menu>summary::-webkit-details-marker{display:none}
.kv19-create-popover{z-index:180;right:0;width:560px;max-width:95vw}
.kv19-layout{display:grid;grid-template-columns:228px minmax(0,1fr);gap:13px;align-items:start}
.kv19-sidebar{border:1px solid #e5e9ef;background:#fff;border-radius:9px;overflow:hidden}
.kv19-filter-block{padding:15px 13px 14px;border-bottom:1px solid #eef1f5}
.kv19-filter-block>strong,.kv19-filter-header strong{font-size:14px;display:block;font-weight:700;color:#28394c;margin-bottom:9px}
.kv19-filter-header{display:flex;justify-content:space-between;align-items:center}
.kv19-filter-block select,.kv19-filter-block input[type=date]{width:100%;min-width:0;min-height:37px;padding:7px 9px;border:1px solid #d3dce5;border-radius:7px;background:#fff;color:#324258}
.kv19-filter-block select:focus,.kv19-filter-block input:focus{outline:2px solid #bfdcff;outline-offset:1px}
.kv19-muted{display:block;font-size:12px;color:#8190a1;margin-bottom:8px}
.kv19-preset{font-size:13px;display:flex;gap:7px;align-items:center;margin:8px 0;color:#50617a}
.kv19-radio-selected{color:#0b80ed;font-weight:700;font-size:20px}
.kv19-date-range{display:flex;flex-direction:column;gap:7px;margin-top:6px}
.kv19-date-range input{font-size:13px!important}
.kv19-choice-row{display:flex;flex-wrap:wrap;gap:7px}
.kv19-choice-row label{cursor:pointer;border:1px solid #dce3ec;border-radius:18px;padding:6px 9px;color:#526177;display:flex;gap:4px;align-items:center;font-size:12px;white-space:nowrap}
.kv19-choice-row label:has(input:checked){background:#0b78eb;color:white;border-color:#0b78eb}
.kv19-choice-row input{position:absolute;opacity:0;width:1px;height:1px}
.kv19-choice-row label:focus-within{outline:2px solid #b5dfff;outline-offset:2px}
.kv19-money-range{display:grid;gap:6px}.kv19-money-range label{min-height:34px;border:1px solid #d7e0e9;border-radius:7px;display:flex;align-items:center;font-size:12px;color:#526378;gap:6px;padding:0 8px}
.kv19-money-range label:focus-within{border-color:#0a80ec}.kv19-money-range input{border:0;outline:0;min-width:0;width:100%;padding:7px 0;color:#273c52}
.kv19-filter-footer{display:flex;align-items:center;gap:12px;padding:12px 13px;justify-content:space-between;position:sticky;bottom:0;background:white;z-index:2}
.kv19-filter-apply{background:#0b79e9;border:0;border-radius:7px;color:white;font-size:13px;font-weight:700;padding:10px 18px;cursor:pointer}.kv19-filter-footer a{color:#0c77d3;font-weight:600}
.kv19-data{background:white;border:1px solid #e1e7ee;border-radius:7px;min-width:0;overflow:hidden}
.kv19-scroll{width:100%;overflow-x:auto}
.kv19-table{width:100%;border-collapse:separate;border-spacing:0;white-space:nowrap;min-width:760px}
.kv19-table thead th{position:static!important;font-weight:700!important;font-size:13px!important;color:#2f4054!important;background:#e4f0fc!important;border-bottom:1px solid #c9dae8!important;padding:12px 11px!important}
.kv19-table thead th a{color:inherit;text-decoration:none}.kv19-table thead th a:hover{color:#0871e9}
.kv19-table tbody td{font-size:13.5px!important;padding:12px 11px!important;color:#2a3d51!important;border-bottom:1px solid #e8edf2!important;background:white}
.kv19-table tbody tr.kv19-summary td{padding:13px 11px!important;background:white!important;color:#192b3e;font-weight:700!important}
.kv19-checkbox-col{width:40px;text-align:center!important}.kv19-checkbox-col input{accent-color:#0980f5;width:16px;height:16px;margin:0;cursor:pointer}
.kv19-table tbody tr.kv-partner-row{cursor:pointer}.kv19-table tbody tr.kv-partner-row:hover td{background:#f4f9ff!important}
.kv19-table tbody tr.kv-partner-row.kv-partner-open td{background:#f1f7ff!important;border-top:1px solid #0b84ed;border-bottom:1px solid #d5e5f3!important}
.kv19-table tbody tr.kv-partner-row.kv-partner-open td:first-child{border-left:2px solid #0e82ef}
.kv19-table tbody tr.kv-partner-row.kv-partner-open td:last-child{border-right:2px solid #0e82ef}
.kv19-table .kv19-partner-name{cursor:pointer;background:transparent;border:0;padding:0;color:#253b54;font-weight:500;font-size:14px;text-align:left}
.kv19-table .kv19-partner-name:hover{text-decoration:underline;color:#086fca}
.kv19-code-cell{color:#2c4c6f!important}.kv19-number{font-variant-numeric:tabular-nums;color:#202d3c!important}
.kv19-partner-detail[hidden]{display:none!important}.kv19-table tbody .kv19-partner-detail>td{background:white!important;border:2px solid #0a82ea!important;border-top:0!important;padding:0!important;white-space:normal}
.kv19-partner-detail>td .kv-partner-slot{min-height:90px}
.kv19-inline{white-space:normal;min-width:0;font-size:14px;color:#27394b;background:white}
.kv19-tabs{display:flex;align-items:center;gap:8px;min-height:45px;padding:0 15px;border-bottom:1px solid #dfe6ed}
.kv19-tab{font-size:14px!important;font-weight:500;background:white;border:0;border-bottom:2px solid transparent;color:#334456;cursor:pointer;padding:12px 7px 10px;white-space:nowrap}
.kv19-tab:hover{color:#0878e3}.kv19-tab[aria-selected=true]{color:#0873d8;border-color:#087cf1}
.kv19-tab:focus-visible{outline:2px solid #0a80ee;outline-offset:-3px}
.kv19-tab-content{min-height:180px;background:#fff}.kv19-tab-content[hidden]{display:none!important}
.kv19-contact-info{padding:20px;display:grid;grid-template-columns:minmax(0,1.45fr) minmax(230px,1fr);gap:30px}
.kv19-info-block h3{font-size:18px;color:#192f45;margin:0 0 14px}.kv19-info-block h3 small{font-size:12px;color:#75869a;font-weight:400}
.kv19-info-block dl{margin:0}.kv19-info-block dl>div{display:flex;gap:10px;align-items:flex-start;border-bottom:1px solid #edf1f5;padding:9px 2px;font-size:14px}
.kv19-info-block dt{width:150px;flex:0 0 150px;color:#78899d}.kv19-info-block dd{flex:1;margin:0;min-width:0;overflow-wrap:anywhere}
.kv19-info-financial dt{width:135px;flex-basis:135px}.kv19-info-financial dd{text-align:right;font-weight:700}
.kv19-info-debt dd{font-size:19px!important;color:#0774e3}
.kv19-table-area{padding:14px 16px 20px}
.kv19-inline-control{display:flex;align-items:center;justify-content:flex-end;min-height:43px;margin-bottom:12px}
.kv19-inline-control label{display:flex;gap:7px;align-items:center;font-size:12px;color:#708199}
.kv19-inline-control select{font-size:13px;border:1px solid #d0dbe7;background:white;border-radius:6px;padding:8px 10px;min-width:160px;color:#3d5063}
.kv19-inner-scroll{overflow:auto;width:100%}
.kv19-inner-table{width:100%;border-collapse:collapse;white-space:nowrap;min-width:610px}
.kv19-inner-table thead th{background:#f0f1f3!important;border-bottom:1px solid #d6dce3!important;color:#425163!important;font-size:12px!important;font-weight:700!important;padding:11px 9px!important}
.kv19-inner-table tbody td{font-size:13px!important;color:#3d4b5b!important;padding:11px 9px!important;border-bottom:1px solid #e6ebef!important}
.kv19-inner-table tbody tr[hidden]{display:none!important}
.kv19-inner-table tbody tr:hover td{background:#f8fbff!important}
.kv19-inner-table a{color:#0879e4;font-weight:500;text-decoration:none}.kv19-inner-table a:hover{text-decoration:underline}
.kv19-status{padding:3px 6px;background:#e7f9ef;border-radius:4px;color:#178c55;font-size:12px}
.kv19-negative{color:#a83333!important}
.kv19-inner-pages{display:flex;gap:10px;align-items:center;padding:12px 6px 3px;color:#68788b;font-size:12px}
.kv19-inner-pages button{background:white;border:1px solid #e1e5ea;border-radius:5px;min-width:28px;min-height:28px;cursor:pointer;color:#54728e}
.kv19-inner-pages button:disabled{opacity:.35;cursor:default}.kv19-inner-pages [data-range-label]{margin-left:14px}
.kv19-inline-footer{border-top:1px solid #e4e9ef;padding:14px 18px;display:flex;align-items:center;justify-content:flex-start;gap:16px;min-height:60px}
.kv19-inline-footer a{color:#32465c;text-decoration:none;font-size:13px}.kv19-inline-footer a:hover{color:#0a7ae8}
.kv19-debt-footer{justify-content:space-between;flex-wrap:wrap;gap:12px}.kv19-footer-export,.kv19-footer-actions{display:flex;align-items:center;flex-wrap:wrap;gap:7px}
.kv19-footer-export a{margin-right:12px}.kv19-footer-actions button{cursor:pointer;background:white;color:#354960;border:1px solid #d7dfe9;padding:8px 11px;border-radius:7px;white-space:nowrap;font-size:13px}
.kv19-footer-actions button:disabled{cursor:not-allowed;opacity:.49}.kv19-footer-actions button.kv19-pay-btn,.kv19-pay-btn{color:white!important;background:#087ced!important;border-color:#087ced!important;font-weight:700}
.kv19-footer-actions button:not(:disabled):hover{background:#f0f8ff}.kv19-footer-actions button.kv19-pay-btn:hover{background:#0868c9!important}
.kv19-statement-note{margin:0 18px 14px;padding-top:7px;font-size:12px;color:#8290a2}.kv19-statement-note strong{color:#255177}
.kv19-payment-dialog{border:1px solid #d1dce8;border-radius:12px;box-shadow:0 25px 70px #172a4750;max-width:480px;width:min(94vw,480px);padding:23px;color:#263e57}
.kv19-payment-dialog::backdrop{background:#0f213c77}
.kv19-payment-dialog form{display:grid;gap:12px}.kv19-payment-dialog form>p{color:#718095;margin:0 0 3px;font-size:13px}.kv19-dialog-header{display:flex;align-items:center;justify-content:space-between}.kv19-dialog-header h3{font-size:20px;margin:0}.kv19-dialog-header button{border:0;background:white;font-size:26px;cursor:pointer;color:#73849a}
.kv19-payment-dialog form>label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:700}
.kv19-payment-dialog form>label input,.kv19-payment-dialog form>label select{height:40px;border:1px solid #cfdae7;border-radius:7px;padding:8px 10px}
.kv19-dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:8px}.kv19-dialog-actions button{padding:10px 13px;border:1px solid #d6e1ea;border-radius:7px;cursor:pointer}
.kv19-empty{text-align:center!important;color:#8593a3!important;padding:24px!important}
.kv19-directory-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:55px;padding:9px 13px;border-top:1px solid #dfe6ee;font-size:12px;color:#8290a0}
.kv19-pagination{display:flex;align-items:center;gap:10px}.kv19-pagination>a{display:grid;place-items:center;min-width:31px;min-height:30px;border:1px solid #d9e2ec;border-radius:6px;color:#0a77d9;font-size:19px}
.kv19-pagination>a[aria-disabled=true]{opacity:.3;pointer-events:none}.kv19-pagination label{display:flex;align-items:center;gap:5px}.kv19-pagination select{font-size:12px;padding:5px 7px;border-radius:6px;border:1px solid #d8e1ea}
.kv19-selection-toolbar{padding:8px 12px;background:#eaf4ff;display:flex;gap:12px;align-items:center;color:#2467a4}.kv19-selection-toolbar[hidden]{display:none}.kv19-selection-toolbar button{border:1px solid #9ac3ea;color:#125da3;border-radius:6px;background:white;padding:5px 10px;cursor:pointer}
@media(max-width:1170px){.kv19-directory-toolbar{flex-wrap:wrap}.kv19-directory-toolbar h1{min-width:170px}.kv19-action-bar{margin-left:0}.kv19-layout{grid-template-columns:205px minmax(0,1fr)}.kv19-table{min-width:765px}.kv19-contact-info{grid-template-columns:1fr}}
@media(max-width:800px){.app-main .page:has(.kv19-directory){padding:10px 8px}.kv19-layout{grid-template-columns:1fr}.kv19-directory-toolbar{gap:8px}.kv19-directory-toolbar h1{min-width:100%;font-size:20px}.kv19-action-bar{justify-content:flex-start}.kv19-sidebar{display:none}.kv19-directory[data-filters-open=true] .kv19-sidebar{display:block}.kv19-table{min-width:720px}.kv19-action{font-size:12px!important}.kv19-tabs{overflow-x:auto;gap:5px;padding:0 9px}.kv19-tab{font-size:12px!important;min-width:max-content}.kv19-table-area{padding:10px}.kv19-contact-info{padding:12px}.kv19-info-block dt{flex-basis:125px;width:125px}.kv19-debt-footer{align-items:flex-start}.kv19-inner-table{min-width:560px}.kv19-directory-footer{flex-wrap:wrap}}

@media(min-width:801px){.kv19-directory.kv19-filters-hidden .kv19-sidebar{display:none}.kv19-directory.kv19-filters-hidden .kv19-layout{grid-template-columns:minmax(0,1fr)}}

.kv19-sidebar-summary{background:#f5faff;border-top:1px solid #e3edf8;padding:11px 13px}.kv19-sidebar-summary>div{display:flex;justify-content:space-between;gap:8px;padding:4px 0;font-size:12px;color:#63778b}.kv19-sidebar-summary b{white-space:nowrap;color:#2d4d6a}

/* v1.7.11: explicit debt adjustment audit dialog. */
.kv11-adjustment-dialog{max-width:530px;width:min(95vw,530px)}
.kv11-adjustment-dialog .kv11-adjustment-warning{background:#fff7e9;border:1px solid #f6d6a2;border-radius:9px;padding:12px 14px;font-size:13px;line-height:1.55;color:#8a4e13;margin:12px 0}
.kv11-adjustment-dialog textarea{display:block;width:100%;box-sizing:border-box;resize:vertical;min-height:80px;margin-top:7px;border:1px solid #d5deea;border-radius:7px;padding:10px;font:inherit}
.kv11-adjustment-dialog input[readonly]{background:#f2f6fa;color:#44576b}
