:root{font-family:Arial,'Segoe UI',sans-serif;color:#162a3e;background:#f2f6fb}*{box-sizing:border-box}body{margin:0;min-height:100vh}.top{height:66px;background:#123c70;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 20px}.brand{display:flex;gap:12px;align-items:center}.brandmark{background:#39a7e4;border-radius:8px;padding:10px;font-weight:bold;font-size:21px}.brand strong,.brand small{display:block}.brand small{font-size:11px;color:#cfe4fa;margin-top:3px}#snapshot{font-size:12px;color:#cfe4fa}nav{display:flex;gap:2px;padding:0 12px;background:#e8f1fb;border-bottom:1px solid #b4cbe2;height:37px;align-items:center}nav button{background:transparent;border:0;padding:9px 11px;cursor:pointer;color:#174876}nav button:hover,.sidebar button:hover{background:#d4e8fb}.layout{display:grid;grid-template-columns:190px minmax(0,1fr);min-height:calc(100vh - 130px)}.sidebar{background:#edf5ff;border-right:1px solid #bad1e8;display:flex;flex-direction:column;padding:8px}.sidehead{color:#18528a;font-weight:bold;padding:9px}.sidebar button{text-align:left;background:transparent;border:0;padding:12px 9px;border-radius:5px;cursor:pointer;font-size:14px}.sidebar button.active{background:#cde5fb;color:#0e4a89;font-weight:bold}.sidefoot{margin-top:auto;color:#6b829a;font-size:11px;padding:12px;line-height:1.7}main{min-width:0}.tabs{height:42px;background:#fff;border-bottom:1px solid #d3e1ee;display:flex;align-items:center;justify-content:space-between;padding:0 18px;color:#14528a;font-weight:bold}.mode{background:#e2f5eb;color:#13693a;font-size:10px;border-radius:9px;padding:4px 8px}#content{padding:20px;max-width:1520px;margin:auto}.cards{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:12px;margin-bottom:20px}.card,.panel{background:#fff;border:1px solid #d5e3f1;border-radius:8px;box-shadow:0 1px 3px #d9e3ed}.card{padding:18px}.card b{font-size:28px;color:#145d9e;display:block;margin:7px 0}.card span{color:#5c7288;font-size:13px}.panel{overflow:hidden}.panelhead{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:12px;border-bottom:1px solid #d8e6f4}.panelhead h2{font-size:17px;color:#164f85;margin:0 auto 0 2px}.panelhead input,.panelhead select{border:1px solid #b9cde1;border-radius:5px;padding:8px;background:white;min-width:130px}.panelhead input{width:min(300px,100%)}button{font:inherit}.panelhead button,.pager button,.shortcuts button{border:1px solid #aac8e5;background:#eef7ff;color:#14568e;border-radius:5px;padding:8px 12px;cursor:pointer}.panelhead button:hover,.pager button:hover,.shortcuts button:hover{background:#d6eafa}table{border-collapse:collapse;width:100%;font-size:12px}th,td{border-bottom:1px solid #dbe7f2;padding:9px 10px;text-align:left;white-space:nowrap}th{background:#eaf3fc;color:#24587f;position:sticky;top:0}tr:nth-child(even){background:#f8fbff}tbody tr:hover{background:#e9f5ff;cursor:pointer}tbody tr.selected{background:#b9dcfa}.gridwrap{overflow:auto;max-height:calc(100vh - 256px)}.pager{display:flex;justify-content:flex-end;align-items:center;gap:12px;padding:10px;color:#60758b;font-size:12px}.pager button:disabled{opacity:.45;cursor:default}.num{text-align:right}.muted{color:#6f8090}.notice{border-left:4px solid #3294d4;background:#eaf6ff;padding:14px;line-height:1.5;margin-bottom:18px}.shortcuts{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:20px}.drawer{position:fixed;inset:0;background:#0e254c8c;display:flex;justify-content:flex-end;z-index:30}.drawer.hidden{display:none}.drawer-box{width:min(900px,100vw);height:100%;overflow:auto;background:white;padding:25px;box-shadow:-4px 0 18px #526b8b}.drawer-box #closeDrawer{float:right;background:#d8eafb;border:0;padding:6px 13px;font-size:25px;cursor:pointer}.drawer-box h2{color:#18578b}.drawer-box .facts{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;padding:12px 0}.drawer-box .facts div{background:#f3f8fd;padding:9px}.drawer-box .gridwrap{max-height:50vh}footer{min-height:27px;background:#dcecff;color:#38618b;display:flex;justify-content:space-between;gap:10px;padding:6px 12px;font-size:11px;border-top:1px solid #b4cde5}@media(max-width:760px){.layout{grid-template-columns:1fr}.sidebar{display:none}.cards{grid-template-columns:1fr 1fr}nav{overflow:auto}footer span:first-child{display:none}#content{padding:10px}}
.navgroup{position:relative}.navpop{display:none;position:absolute;top:36px;left:0;z-index:10;background:#fff;min-width:210px;border:1px solid #b9d2e9;box-shadow:0 5px 10px #9cb4cd}.navgroup.open .navpop{display:block}.navpop button{display:block;width:100%;text-align:left}.navpop button:hover{background:#e6f4ff}
.salelink{background:#c8e8ff!important;color:#095b9a!important;font-weight:bold!important}.salehead{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:12px 16px;background:#fff;border:1px solid #c4d9ec;border-radius:7px;margin-bottom:12px}.salehead h2{margin:0 0 6px;color:#14528a}.salehead small{color:#627d92}.salehead button,.saletotals button{padding:9px 12px;border:1px solid #a3c2df;background:#edf6ff;border-radius:5px;margin:3px;cursor:pointer}.salehead .primary{background:#1266a7;color:#fff}.saleform{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:12px}.salemain,.saletotals{background:white;border:1px solid #d1e0ed;padding:15px;border-radius:7px;min-width:0}.salefields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.saleform label{display:block;font-size:12px;color:#3c5b76;font-weight:bold;margin-bottom:12px}.saleform label input,.saleform label select{display:block;width:100%;margin-top:5px;border:1px solid #afc9e0;border-radius:4px;padding:9px;background:#fff;font-size:14px}.productsearch{margin:12px 0}.suggest{max-height:240px;overflow:auto}.suggest button{display:block;width:100%;border:1px solid #e2eef6;background:#f7fbff;text-align:left;padding:8px;cursor:pointer}.suggest button:hover{background:#dcedff}.suggest span{float:right;color:#37729a}.cart{min-width:880px}.cart input{width:85px;padding:5px;border:1px solid #c6d8e7}.cart select{max-width:135px;padding:4px}.cart button{border:0;background:#f4d9d9;color:#9c2323;cursor:pointer}.salemain .gridwrap{min-height:200px;max-height:55vh;margin-bottom:12px}.saletotals h3{margin:4px 0 20px}.saletotals p{display:flex;justify-content:space-between;gap:8px;border-top:1px solid #e2ebf4;padding-top:12px}.saletotals .grand{color:#155d9f;font-size:17px}.saleerror{color:#ad342a;font-size:13px;line-height:1.5;margin:15px 0}.saleerror:has(b){color:#137747}@media(max-width:950px){.saleform{grid-template-columns:1fr}.salefields{grid-template-columns:1fr}.salehead{align-items:flex-start;flex-direction:column}}
.navpop{max-height:min(68vh,580px);overflow-y:auto;min-width:255px}.hint{padding:10px 14px;background:#f2f8ff;color:#486986;border-bottom:1px solid #dbe8f3;font-size:13px}.emptyfeature{padding:30px;line-height:1.6;color:#385773}.emptyfeature button{padding:9px 13px;margin-right:8px;border:1px solid #a9c9e6;color:#1464a2;background:#eaf5ff;border-radius:4px;cursor:pointer}.panelhead label{color:#47677e;font-size:12px}.panelhead label input{min-width:140px}.navgroup:focus-within .navpop{display:block}
.fulltoolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px;background:#f8fbff}.fulltoolbar select{max-width:390px;padding:8px;border:1px solid #afc9e0}.fulltoolbar input{padding:8px;border:1px solid #afc9e0;min-width:220px}.fulltoolbar button{padding:8px 12px;background:#e6f4ff;border:1px solid #a9c8e5;color:#1763a1;cursor:pointer}.fulltoolbar span{margin-left:auto;color:#566d84}.fullgrid{max-height:63vh;overflow:auto}.fullgrid td{max-width:300px;overflow:hidden;text-overflow:ellipsis}.fulldetail{display:grid;grid-template-columns:1fr 1fr;gap:5px}.fulldetail div{padding:8px;border-bottom:1px solid #e1ebf4;min-width:0}.fulldetail strong{display:block;color:#3b6892;font-size:12px}.fulldetail span{display:block;overflow-wrap:anywhere;white-space:pre-wrap;padding-top:4px}@media(max-width:680px){.fulldetail{grid-template-columns:1fr}}

.tshop-toolbar{display:flex;align-items:center;gap:8px;padding:9px 12px;background:#edf4fc;border-bottom:1px solid #abc8e5;flex-wrap:wrap}.tshop-toolbar strong{color:#174c80;margin-right:12px}.tshop-toolbar button{padding:6px 10px;border:1px solid #a6c4df;background:white;color:#1b5f98;border-radius:2px;cursor:pointer}.tshop-toolbar span{font-size:12px;color:#637b90;margin-left:auto}.tshop-grid{max-height:60vh}.tshop-grid thead{position:sticky;top:0;z-index:2;background:#deebfa}.tshop-grid th{white-space:nowrap}.filter-row th{background:#f5faff;padding:3px}.filter-row input{width:100%;min-width:85px;font-size:12px;padding:5px;border:1px solid #bfd1e2}.tshop-grid tbody tr{cursor:pointer}.tshop-grid tbody tr:hover{background:#e9f3fc}.tshop-grid tbody tr.selected{background:#b7d8fb;color:#102f51}.tshop-grid tbody tr[hidden]{display:none}.tshop-footer{display:flex;gap:18px;justify-content:space-between;padding:8px 12px;background:#e8f2fd;border-top:1px solid #adc9e7;font-size:12px;color:#26527a}.tshop-footer span:nth-child(2){font-weight:bold}
.debt-checkout{display:grid;grid-template-columns:255px minmax(0,1fr);gap:12px;min-height:75vh}.debt-customers,.debt-main{background:#fff;border:1px solid #b5d0e9;padding:12px;min-width:0}.debt-customers h3,.debt-main h2{margin:0 0 12px;color:#15558c}.debt-customers input{width:100%;padding:8px;border:1px solid #abc7e0}.debt-customer-list{max-height:70vh;overflow:auto;margin-top:8px}.debt-customer-list button{width:100%;display:flex;justify-content:space-between;gap:5px;text-align:left;border:0;border-bottom:1px solid #e1eaf3;background:white;padding:6px;cursor:pointer;font-size:12px}.debt-customer-list button.active,.debt-customer-list button:hover{background:#b9dbfb}.debt-customer-list button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.debt-customer-list b{white-space:nowrap}.debt-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 12px}.debt-fields label,.debt-paybar label{font-size:12px;color:#315d80}.debt-fields input,.debt-fields select,.debt-paybar input,.debt-paybar select{width:100%;padding:7px;border:1px solid #b5cde3;background:#fff}.debt-main h3{margin:20px 0 6px;color:#235e93}.debt-invoices{min-height:250px;max-height:45vh}.debt-invoices td input[type=number]{width:110px;padding:5px;border:1px solid #b5cde3}.debt-paybar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding-top:12px}.debt-paybar button{border:1px solid #9ebed9;background:#e5f3ff;padding:10px;cursor:pointer}.debt-paybar .primary{background:#286cab;color:#fff}.debt-paybar #debtError{color:#9b3838;grid-column:1/-1;margin:0}@media(max-width:900px){.debt-checkout{grid-template-columns:1fr}.debt-customer-list{max-height:190px}.debt-fields,.debt-paybar{grid-template-columns:1fr 1fr}}@media print{body>*:not(.drawer){display:none!important}.drawer{position:static;background:white}.drawer-box{width:100%;height:auto;box-shadow:none}.drawer-box>*:not(#drawerContent){display:none!important}#drawerContent>*:not(#printReceipt){display:none!important}#printReceipt{display:block!important}#printReceipt table{margin:24px 0}#printReceipt h2{text-align:center}}

.debt-report-criteria{display:grid;grid-template-columns:minmax(270px,330px) 1fr;gap:8px;padding:10px;background:#f8f4e9}.debt-report-criteria fieldset{border:1px solid #a9c9e6;min-width:0}.debt-report-criteria legend{color:#1c5e94;font-weight:bold}.debt-report-criteria label{display:flex;align-items:center;gap:9px;padding:4px 6px;font-size:13px}.debt-report-criteria label input:not([type=checkbox]),.debt-report-criteria select{margin-left:auto;width:60%;padding:5px;border:1px solid #adc8e1;background:white}.dr-suggestions{position:absolute;z-index:5;background:white;max-height:200px;overflow:auto;border:1px solid #a9c9e6;box-shadow:0 3px 7px #b2c6d9;min-width:320px}.dr-suggestions:empty{display:none}.dr-suggestions button{display:block;background:white;border:0;border-bottom:1px solid #e1e9f0;width:100%;text-align:left;padding:7px;cursor:pointer}.dr-suggestions button:hover{background:#d4ebff}.debt-report-table{max-height:58vh;min-height:320px}.debt-report-table th,.debt-report-table td{border:1px solid #d5e4f1;padding:5px 7px}.debt-report-table .dr-invoice{background:#ebf5ff;font-weight:600}.debt-report-table tbody tr.selected{background:#a8d6fb}.debt-report-table tfoot th{background:#e1edfb}@media(max-width:800px){.debt-report-criteria{grid-template-columns:1fr}}

[hidden]{display:none!important}.top-actions{display:flex;align-items:center;gap:13px;font-size:12px}.top-actions button{border:1px solid #9dc4e8;background:#1d5792;color:white;padding:7px 12px;cursor:pointer;border-radius:5px}.top-actions #activeUser{font-weight:bold;color:#d8edff}.auth-screen{min-height:100vh;display:grid;place-items:center;padding:22px;background:linear-gradient(135deg,#102e54,#135e99 65%,#8dc7e9)}.auth-card{width:min(440px,100%);background:white;border-radius:14px;box-shadow:0 18px 65px #061e4280;padding:32px}.auth-brand{display:flex;align-items:center;gap:12px;color:#174e7d}.auth-brand>span{background:#1665a7;color:white;border-radius:9px;font-size:25px;font-weight:bold;padding:11px}.auth-brand small{display:block;color:#607c94;margin-top:4px}.auth-card h1{font-size:23px;margin:30px 0 5px;color:#123e6b}.auth-card p{color:#60758a;font-size:14px;line-height:1.4}.auth-card label{display:block;font-size:13px;font-weight:bold;color:#31556f;margin:17px 0}.auth-card label input{display:block;width:100%;padding:12px;margin-top:6px;border:1px solid #adc4d9;border-radius:6px;font-size:16px}.auth-card label input:focus{outline:2px solid #2995dc;border-color:#267fba}.auth-card #authError{color:#ae302b;min-height:17px}.auth-card #authSubmit{width:100%;background:#1367a9;color:white;border:0;border-radius:6px;padding:12px;font-weight:bold;cursor:pointer}.auth-card #authSubmit:disabled{opacity:.5}.auth-card .auth-note{display:block;margin-top:22px;line-height:1.5;color:#778a9c}.sale-meta{display:flex;gap:22px;flex-wrap:wrap;background:#eaf4fc;border:1px solid #c6dcec;color:#315c7f;padding:8px 11px;margin-bottom:14px;font-size:12px}.sale-receipt h2{text-align:center}.sale-receipt table{margin:16px 0}.sale-receipt-totals{margin-left:auto;max-width:320px}.sale-receipt-totals p{display:flex;justify-content:space-between;margin:6px 0}.salehead button{white-space:nowrap}.salehead>div:last-child{display:flex;gap:5px;flex-wrap:wrap}@media(max-width:650px){.top-actions #snapshot{display:none}.auth-card{padding:24px}.sale-meta{gap:8px}}

/* Bố cục đăng nhập và phiếu bán tham chiếu giao diện V4 */
.auth-screen{display:block;position:relative;padding:0;background:radial-gradient(circle at 30px 30px,#e4d5ba 1px,transparent 2px) 0 0/55px 55px,#fff6dc}.auth-app-title{height:30px;padding:6px;text-align:center;color:#285c94;background:linear-gradient(#ead5ef,#d7bde2);border-bottom:1px solid #bda4ca;font:13px Tahoma,Arial}.auth-card{position:absolute;left:50%;top:54%;transform:translate(-50%,-50%);width:min(430px,calc(100% - 20px));border-radius:0;border:1px solid #7b9fcb;box-shadow:2px 3px 12px #777;background:#fff5d9;padding:0;font-family:Tahoma,Arial,sans-serif}.auth-brand{position:absolute;bottom:calc(100% + 22px);left:50%;transform:translateX(-50%);white-space:nowrap}.auth-brand>span{font-size:34px;background:none;color:#1787c7;padding:0}.auth-brand strong{color:#18623e}.auth-card h1{font-size:15px;background:linear-gradient(#f0d7ee,#d6b9dd);border-bottom:1px solid #9c7da3;margin:0;padding:10px;color:#493052}.auth-card #authSubtitle{padding:0 20px}.auth-card form{padding:4px 20px 15px}.auth-card label{display:grid;grid-template-columns:125px minmax(0,1fr);align-items:center;margin:9px 0;color:#333}.auth-card label input{padding:7px;font-size:14px;margin:0;border-radius:1px}.auth-card #authSubmit{border:1px solid #7da7d5;background:linear-gradient(#fff,#dceafa);color:#155487;border-radius:1px;padding:8px}.auth-card .auth-note{padding:0 20px 14px;margin:0}.salehead{background:#fff6dc;border-radius:0;border-color:#91afd0}.salemain,.saletotals{background:#fff9eb;border-radius:0;border-color:#9eb7d2}.salemain .gridwrap{background:white;border:1px solid #9dbbd8}.salemain th{background:linear-gradient(#fff,#cde3fb);border:1px solid #9db9d7}.salemain td{border:1px solid #d1e2ef}.saletotals .grand{color:#be2424}.sale-receipt h2{font-size:19px}.sale-receipt table th,.sale-receipt table td{border:1px solid #333}.sale-receipt-totals{border-top:1px solid #444;padding-top:8px}

.sidebar .salelink,.sidebar button[data-view=purchase]{border-radius:0;border-bottom:1px solid #c8d9e8}.sidebar button[data-view=purchase].active{background:#bddcf6;color:#0e4a89;font-weight:bold}.saleform .salefields .suggest{grid-column:1/-1}.salemain .cart input[data-key=serial]{width:150px}.saleform .salefields{grid-template-columns:repeat(2,minmax(220px,1fr))}
/* V7.11 reference screens */
.promo-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px;padding:14px}.promo-form label{display:flex;flex-direction:column;gap:6px;font-weight:600}.promo-form input:not([type=checkbox]),.promo-form select{min-height:36px;padding:6px;border:1px solid #b6c8dc;border-radius:5px}.promo-actions{display:flex;gap:10px;grid-column:1/-1}.promo-form [role=alert]{color:#b3261e;grid-column:1/-1}.panelhead{flex-wrap:wrap}.panelhead button{white-space:nowrap}.gridwrap tbody tr.selected{background:#b7d2f6}.gridwrap thead th.sortable{cursor:pointer}.gridwrap thead th.sortable:hover{background:#c8dffc}
.voucher-filters{display:flex;align-items:end;gap:10px;padding:10px 14px;flex-wrap:wrap;background:#f8fbff}.voucher-filters label{display:flex;flex-direction:column;gap:3px;font-size:12px}.voucher-filters input,.voucher-filters select{padding:7px;border:1px solid #b7cde0;border-radius:4px}.voucher-paper{background:white;color:#111;font-family:'Times New Roman',serif;padding:20px 28px;margin:auto;width:min(100%,760px);min-height:420px;font-size:14px;line-height:1.35}.voucher-paper h2{text-align:center;font-size:21px;margin:14px 0}.voucher-brand{display:flex;align-items:center;justify-content:center;gap:25px;text-align:center}.voucher-brand h3{color:#104691;margin:0 0 4px;font-size:18px}.voucher-brand small{font-size:12px}.voucher-logo{font-family:Arial,sans-serif;color:#1874bf;font-size:42px;font-weight:900;font-style:italic;letter-spacing:-6px;padding-right:8px}.voucher-meta{text-align:center}.voucher-items{width:100%;border-collapse:collapse;font-size:12px}.voucher-items th,.voucher-items td{border:1px solid #333;padding:5px;vertical-align:top}.voucher-items th:nth-child(2){min-width:160px}.voucher-items .num{text-align:right;white-space:nowrap}.voucher-totals{margin:10px 0 0 auto;max-width:260px}.voucher-totals p{display:flex;justify-content:space-between;margin:3px 0}.voucher-money{margin:22px 0}.voucher-signatures{display:flex;justify-content:space-around;text-align:center;margin:26px 0 62px}.voucher-note{text-align:center;color:#667;font-size:11px}.voucher-actions{display:flex;gap:8px;justify-content:center;margin:12px}.drawer-box:has(.voucher-paper){width:min(980px,96vw);max-height:94vh;overflow:auto}
@media print{@page{size:A4;margin:14mm}body{background:white!important}.drawer,.drawer-box{position:static!important;display:block!important;box-shadow:none!important;border:0!important;padding:0!important;width:100%!important;max-height:none!important;overflow:visible!important}.drawer-box>*:not(#drawerContent){display:none!important}#drawerContent>*:not(#printReceipt){display:none!important}.voucher-paper{width:100%!important;padding:0!important;margin:0!important;min-height:0!important}.voucher-items tr{break-inside:avoid}}
@media print{body>#workArea{display:block!important}#workArea{height:auto!important;min-height:0!important}#workArea>header,#workArea>nav,#workArea>.layout,#workArea>footer{display:none!important}#drawer{display:block!important;visibility:visible!important}#authOverlay{display:none!important}}
/* A5 landscape-like TShop sales slip, portrait A5 paper. */
.voucher-paper.sale-a5{width:min(100%,680px);min-height:0;padding:12px 16px;font-size:12px;line-height:1.15}.sale-a5 .voucher-brand{gap:10px}.sale-a5 .voucher-brand h3{font-size:15px}.sale-a5 .voucher-brand small{font-size:10px}.sale-a5 .voucher-logo{font-size:30px}.sale-a5 h2{font-size:17px;margin:6px 0 3px}.sale-a5 p{margin:3px 0}.sale-a5 .voucher-tagline{text-align:center;color:#06477c;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sale-a5 .voucher-sale-info{display:flex;justify-content:space-between}.sale-a5 .voucher-items{font-size:10px;table-layout:fixed;margin:4px 0}.sale-a5 .voucher-items th,.sale-a5 .voucher-items td{padding:2px 3px;overflow-wrap:anywhere}.sale-a5 .voucher-items th:nth-child(1){width:5%}.sale-a5 .voucher-items th:nth-child(2){width:35%;min-width:0}.sale-a5 .voucher-items th:nth-child(3){width:6%}.sale-a5 .voucher-items th:nth-child(4){width:5%}.sale-a5 .voucher-items th:nth-child(5),.sale-a5 .voucher-items th:nth-child(6),.sale-a5 .voucher-items th:nth-child(10){width:10%}.sale-a5 .voucher-items th:nth-child(7),.sale-a5 .voucher-items th:nth-child(8),.sale-a5 .voucher-items th:nth-child(9){width:7%}.sale-a5 .voucher-items small{display:block;font-size:9px;font-style:italic}.sale-a5 .voucher-totals{margin:3px 0 0 auto}.sale-a5 .voucher-totals p{margin:1px 0}.sale-a5-totals{display:grid;grid-template-columns:1fr auto;gap:1px 12px;width:45%;margin:3px 0 0 auto;text-align:right}.sale-a5 .voucher-words{color:#d21f1f;font-style:italic;font-size:11px}.sale-a5 .voucher-signatures{margin:10px 0 30px}.sale-a5 .voucher-note{font-size:9px}
@media print{@page{size:A5 portrait;margin:6mm}html,body{width:100%!important;margin:0!important;padding:0!important}.voucher-paper{font-size:10px!important;line-height:1.13!important}.voucher-paper h2{font-size:15px!important;margin:5px 0!important}.voucher-paper .voucher-brand h3{font-size:13px!important}.voucher-paper .voucher-brand small{font-size:9px!important}.voucher-paper .voucher-items{font-size:8px!important;margin:4px 0!important}.voucher-paper .voucher-items th,.voucher-paper .voucher-items td{padding:2px!important}.voucher-paper .voucher-items th:nth-child(2){min-width:0!important}.voucher-paper .voucher-signatures{margin:8px 0 26px!important}.voucher-paper p{margin:2px 0!important}.voucher-paper .voucher-note{display:none!important}.voucher-paper .voucher-items tr{break-inside:avoid}}
.backup-import{padding:18px;display:grid;max-width:520px;gap:12px}.backup-import label{display:grid;gap:8px}.backup-import input{padding:10px;border:1px solid #bad0e4}.backup-import button{padding:10px}.backup-import progress{width:100%}.backup-import #backupStatus{color:#175487;white-space:pre-wrap;overflow-wrap:anywhere}
/* Editable print headings. Invoice numbers, amounts and item rows remain protected. */
.template-editing [contenteditable="true"]{outline:1px dashed #1b6eac;outline-offset:2px;cursor:text;background:#f0f8ff}
@media print{.template-editing [contenteditable="true"]{outline:0;background:transparent}}
.debt-grand-total{font-weight:700;color:#073d7b;white-space:nowrap}
.tshop-grid{overflow:auto}.debt-column-head{border:0;background:transparent;color:#174c80;font-weight:700;cursor:pointer;text-align:left;width:100%;padding:2px}.debt-column-head:hover{background:#c7ddf4}.tshop-grid tfoot{position:sticky;bottom:0;z-index:3;background:#e2eefc}.tshop-grid tfoot th{border-top:2px solid #7aa9d4;padding:6px 4px;text-align:right;white-space:nowrap;color:#073d7b;font-weight:700}.tshop-grid tfoot th:nth-child(2){text-align:left}.debt-filter-popup{position:fixed;top:25%;left:38%;z-index:1000;width:330px;max-height:55vh;overflow:auto;text-align:left;background:white;border:1px solid #82a8cc;box-shadow:0 10px 30px #375b8088;padding:12px;border-radius:5px;color:#173d61}.debt-filter-popup>b{display:block;margin-bottom:7px}.debt-filter-popup>.owner-search{width:100%;padding:8px}.owner-options{max-height:220px;overflow:auto;margin:8px 0;border:1px solid #d3e0ef}.owner-options label{display:block;padding:5px 8px;font-weight:400;white-space:normal;cursor:pointer}.owner-options label[hidden]{display:none}.debt-filter-popup button{margin:4px;padding:5px 7px}
.report-total{padding:9px 14px;text-align:right;background:#e4f0fc;font-weight:700;color:#174c80;border-top:1px solid #a9c9e6}
#reportRows tbody tr.selected{background:#b7d8fb;color:#102f51}#reportRows tbody tr{cursor:pointer}#journalPager{padding:8px 14px;text-align:right}#journalPager button{margin:0 6px}
/* V7.22 - TShop-style working unit selection after login */
.branch-screen{position:fixed;inset:0;z-index:3000;background:radial-gradient(circle at 30px 30px,#e4d5ba 1px,transparent 2px) 0 0/55px 55px,#fff6dc;display:flex;align-items:center;justify-content:center;font-family:Tahoma,Arial,sans-serif}.branch-dialog{width:min(430px,calc(100vw - 30px));min-height:285px;background:#fff7dc;border:1px solid #8aa7c6;box-shadow:2px 4px 13px #5558}.branch-title{height:31px;padding:7px 10px;background:linear-gradient(#f1dff1,#d9c0df);border-bottom:1px solid #a68caf;color:#555}.branch-actions{padding:7px;border-bottom:1px solid #b8cee2}.branch-actions button{min-width:105px;padding:7px 12px;border:1px solid #7fa5cb;background:linear-gradient(#fff,#d9e9f7);color:#244d72;font-weight:700}.branch-list{background:#fff;min-height:205px;border:1px solid #b5c9dd;margin:0 7px 7px}.branch-row{display:flex;align-items:center;gap:7px;padding:5px 7px;cursor:pointer;font-size:13px}.branch-row.selected{background:#ffd98c;border-top:1px solid #e7b45e;border-bottom:1px solid #e7b45e;font-weight:700}.branch-row input{accent-color:#8b3d8f}
.debt-overdue{background:#f16f73!important;color:#5c0808;font-weight:700}.debt-due-soon{background:#ffd91a!important;color:#4b3b00;font-weight:700}.tshop-grid .filter-row input:focus{outline:2px solid #6aa9df;background:#fff}.tshop-grid td{white-space:nowrap}.tshop-grid td:last-child{max-width:360px;overflow:hidden;text-overflow:ellipsis}
/* V7.28 permission matrix */
.role-top{display:grid;grid-template-columns:1fr 1fr 1.5fr;gap:12px}.role-top label{font-weight:600}.role-top input,.role-top textarea{display:block;width:100%;box-sizing:border-box;margin-top:5px;padding:8px}.role-top textarea{min-height:58px}.perm-tools{display:flex;gap:8px;margin:8px 0}.perm-tools input{flex:1;padding:7px}.perm-grid{max-height:480px;overflow:auto;border:1px solid #9bb9d8}.perm-grid table{width:100%;border-collapse:collapse}.perm-grid th{position:sticky;top:0;background:#dbeaf8;z-index:1}.perm-grid th,.perm-grid td{border:1px solid #c8d8e8;padding:5px}.perm-grid th:first-child{text-align:left}.permcell{text-align:center;width:72px}.permcell input{width:17px;height:17px}
.access-columns{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:12px 0}.access-columns fieldset,.role-top+fieldset{border:1px solid #cbd5e1;border-radius:8px}.access-list{max-height:290px;overflow:auto;padding:6px}.access-check{display:grid!important;grid-template-columns:24px 150px 1fr;align-items:center;padding:7px;border-bottom:1px solid #eef2f7}.access-check span{font-size:12px;color:#475569}.access-line{display:block!important;padding:7px}.role-top select{min-width:280px;padding:8px}@media(max-width:800px){.access-columns{grid-template-columns:1fr}}
.business-detail .report-section td{font-weight:700;background:#eef4fb;border-top:2px solid #9eb9d5}.business-detail .report-parent td:nth-child(2){font-weight:600}.business-detail td:nth-child(3){text-align:right}.business-detail .report-section td:first-child{text-align:center}
.business-detail .report-section td{font-weight:700;background:#eef4fb;border-top:2px solid #9eb9d5}.business-detail .report-parent td:nth-child(2){font-weight:600}.business-detail td:nth-child(3){text-align:right}.business-detail .report-section td:first-child{text-align:center}
/* V7.43 - Bán hàng mở rộng theo bố cục TShop */
body.sales-full .layout{grid-template-columns:1fr}
body.sales-full .sidebar{display:flex;position:fixed;left:0;top:103px;bottom:27px;width:26px;overflow:hidden;z-index:25;padding:0;background:#edf5ff;border:1px solid #bad1e8;transition:width .16s ease;box-shadow:1px 0 4px #7893ad55}body.sales-full .sidebar:hover{width:190px;padding:8px}body.sales-full .sidebar .sidehead{writing-mode:vertical-rl;transform:rotate(180deg);white-space:nowrap;padding:8px 4px}body.sales-full .sidebar:hover .sidehead{writing-mode:horizontal-tb;transform:none;padding:9px}body.sales-full .sidebar button,body.sales-full .sidebar .sidefoot{opacity:0;pointer-events:none;white-space:nowrap}body.sales-full .sidebar:hover button,body.sales-full .sidebar:hover .sidefoot{opacity:1;pointer-events:auto}
body.sales-full #content{max-width:none;width:100%;padding:8px 12px}
body.sales-full .tabs{height:34px;padding:0 12px}
body.sales-full .salehead{margin-bottom:7px;padding:8px 12px}
body.sales-full .saleform{grid-template-columns:minmax(0,1fr) 285px;gap:7px}
body.sales-full .salemain,body.sales-full .saletotals{padding:10px}
body.sales-full .salemain .gridwrap{min-height:360px;max-height:calc(100vh - 475px)}
body.sales-full .salefields{grid-template-columns:1fr 1.2fr;gap:6px 10px}
body.sales-full .saleform label{margin-bottom:7px}
body.sales-full .saleform label input,body.sales-full .saleform label select{padding:7px;font-size:13px}
body.sales-full .sale-meta{margin-bottom:8px;padding:6px 9px}
body.sales-full .productsearch{margin:7px 0}
.partner-full-form{display:grid!important;grid-template-columns:1fr 1fr;gap:8px 18px}
.partner-full-form label{display:grid;grid-template-columns:145px minmax(0,1fr);align-items:center;margin:0!important}
.partner-full-form input,.partner-full-form select,.partner-full-form textarea{width:100%;padding:7px;border:1px solid #adc5da}
.partner-full-form .checkline input{width:auto;justify-self:start}
.partner-full-form .partner-note,.partner-full-form .promo-actions,.partner-full-form [role=alert]{grid-column:1/-1}
.partner-full-form textarea{min-height:60px}
@media(max-width:900px){.partner-full-form{grid-template-columns:1fr}.partner-full-form .partner-note,.partner-full-form .promo-actions,.partner-full-form [role=alert]{grid-column:auto}}

.previous-price{background:#fff8d8;color:#755500;font-weight:600}.cart th{font-size:12px}.cart input{min-width:82px}
/* V7.47 - giao diện gọn kiểu TShop */
body{font-family:Tahoma,Arial,sans-serif;font-size:12px}.top{min-height:48px;padding:5px 12px}.brandmark{width:31px;height:31px;font-size:14px}.brand strong{font-size:13px}.brand small{font-size:9px}.top-actions{font-size:10px}#menu{min-height:30px}.navgroup>button{padding:7px 11px;font-size:12px}.tabs{height:30px;padding:0 8px}.tab-active{display:inline-flex;align-items:center;gap:7px;border-right:1px solid #b7cde2;padding-right:5px}.tab-active #closeTab{border:0;background:transparent;color:#476784;font-size:17px;line-height:1;cursor:pointer;padding:0 3px}.tab-active #closeTab:hover{background:#d8e8f7;color:#a52020}.sidebar{font-size:11px}.sidehead{font-size:12px}.panelhead h2,.salehead h1{font-size:17px}.seller-name{display:inline-block;margin-top:5px;font-size:12px;font-weight:700}.voucher-signatures b{min-width:170px;line-height:1.35}
/* V7.49 TShop-like voucher toolbar and delete confirmation */
.confirm-code{display:inline-block;font:bold 24px monospace;letter-spacing:7px;padding:8px 14px;margin:8px 0;background:#f3d6d6;border:1px solid #c58a8a;text-decoration:line-through}.danger{background:#b83a32!important;color:#fff!important;border-color:#8f2c27!important}.tshop-toolbar button:disabled{opacity:.45}.voucher-filters{display:flex;align-items:end;gap:8px;flex-wrap:wrap;padding:8px}.voucher-filters label{font-size:12px}.voucher-filters input,.voucher-filters select{display:block;padding:5px;border:1px solid #9dbbd7}

/* V7.50 compact TShop-like workspace */
.top{height:44px;min-height:44px;padding:3px 9px;background:#174a7e}.brandmark{width:27px;height:27px;padding:6px;font-size:12px}.brand strong{font-size:12px}.brand small{font-size:8px}nav{height:31px;padding-left:8px;background:#eef4fb}nav button{padding:6px 9px;font-size:12px}.layout{grid-template-columns:142px minmax(0,1fr);min-height:calc(100vh - 102px)}.sidebar{padding:4px;background:#f1f6fc}.sidehead{padding:6px;font-size:11px}.sidebar button{padding:9px 6px;font-size:12px}.sidefoot{padding:7px;font-size:9px}.tabs{height:29px;font-size:12px}.mode{font-size:9px}#content{padding:8px;max-width:none}.panel{border-radius:2px}.tshop-toolbar{padding:5px 7px;gap:4px}.tshop-toolbar button{padding:5px 8px;font-size:11px}.voucher-filters{padding:5px 7px;gap:5px}.voucher-filters input,.voucher-filters select{padding:4px;font-size:11px}th,td{padding:6px 7px}footer{min-height:22px;padding:4px 8px;font-size:9px}
.drawer.voucher-editor .drawer-box{width:calc(100vw - 18px);height:calc(100vh - 18px);margin:9px;padding:10px;background:#fff9e8}.drawer.voucher-editor{justify-content:center;align-items:center}.drawer.voucher-editor #closeDrawer{display:none}.edit-voucher-head{display:flex;align-items:end;gap:15px;border-bottom:1px solid #c8b98b;padding:2px 6px 6px}.edit-voucher-head h2{margin:0;font-size:18px}.edit-voucher-head span{font-size:11px;color:#6d6757}.edit-voucher-tools{display:flex;gap:5px;padding:6px;background:#edf4fc;border-bottom:1px solid #b9cce0}.edit-voucher-tools button{padding:6px 14px;border:1px solid #9fb9d2;background:white}.edit-voucher-fields{display:grid;grid-template-columns:180px 220px 1fr 1fr;gap:6px;padding:8px;background:#fff9e8}.edit-voucher-fields label{font-size:11px;font-weight:600}.edit-voucher-fields input{display:block;width:100%;margin-top:3px;padding:5px;border:1px solid #a9bcd0;background:#fff}.edit-voucher-fields .span2{grid-column:span 2}.edit-lines{max-height:calc(100vh - 235px);background:white;border:1px solid #aac0d5}.edit-lines th{background:#dceafa}.edit-lines input{width:92px;padding:4px;border:1px solid #aac0d5;text-align:right}.edit-lines td.wide{min-width:270px}

.sale-check-tools{display:flex;gap:8px;justify-content:center;margin:6px 0 8px}.sale-check-tools button{min-width:150px;font-weight:600}

.quick-paid{cursor:pointer;user-select:none}.quick-paid:hover{background:#fff0c2}.quick-paid small{font-size:10px;font-weight:500;color:#1264a3;margin-left:5px}

/* V7.53 - compact sales screen, keep maximum room for line items */
body.sales-full #content{padding:4px 8px}
body.sales-full .tabs{height:28px;padding:0 8px}
body.sales-full .salehead{padding:5px 9px;margin-bottom:4px;min-height:0}
body.sales-full .salehead h2{font-size:18px;margin:0 0 2px}
body.sales-full .salehead .muted{font-size:10px;line-height:1.1}
body.sales-full .salehead button{padding:6px 10px;font-size:12px}
body.sales-full .saleform{grid-template-columns:minmax(0,1fr) 248px;gap:5px}
body.sales-full .salemain,body.sales-full .saletotals{padding:6px 8px}
body.sales-full .sale-meta{margin-bottom:4px;padding:4px 7px;gap:15px;font-size:11px;line-height:1.1}
body.sales-full .salefields{grid-template-columns:.82fr 1fr 1fr;gap:3px 8px;align-items:end}
body.sales-full .saleform label{margin-bottom:2px;font-size:11px;line-height:1.1}
body.sales-full .saleform label input,body.sales-full .saleform label select{padding:4px 6px;font-size:12px;height:28px}
body.sales-full .salefields #customerResults{position:absolute;z-index:60}
body.sales-full .sale-check-tools{justify-content:flex-start;margin:2px 0 3px;padding-left:34%;gap:5px}
body.sales-full .sale-check-tools button{min-width:125px;padding:4px 8px;font-size:11px;height:27px}
body.sales-full .productsearch{margin:3px 0}
body.sales-full .productsearch label{margin:0}
body.sales-full .salemain .gridwrap{min-height:430px;max-height:calc(100vh - 365px)}
body.sales-full .cart th,body.sales-full .cart td{padding:4px 5px;font-size:11px}
body.sales-full .saletotals h3{font-size:15px;margin:3px 0 7px}
body.sales-full .saletotals p{margin:5px 0;font-size:12px}
body.sales-full .saletotals label{margin:4px 0}
body.sales-full .saletotals input,body.sales-full .saletotals select{height:27px;padding:3px 5px}
body.sales-full .sidebar{top:91px;width:22px}
body.sales-full .sidebar:hover{width:165px;padding:5px}
@media(max-width:1100px){body.sales-full .salefields{grid-template-columns:1fr 1fr}body.sales-full .sale-check-tools{padding-left:0}.saleform{grid-template-columns:1fr 220px!important}}
/* V7.54 - TShop right totals + full sale-style editor */
body.sales-full .saleform{grid-template-columns:minmax(0,1fr) 245px}
body.sales-full .tshop-right{padding:5px 7px;font-size:11px}
body.sales-full .tshop-right label{display:grid;grid-template-columns:92px minmax(0,1fr);align-items:center;gap:5px;margin:3px 0;font-size:11px}
body.sales-full .tshop-right label input,body.sales-full .tshop-right label select{margin:0;height:24px;padding:2px 4px;font-size:11px}
body.sales-full .tshop-right p{margin:3px 0;padding:4px 0;font-size:11px}.tshop-right .grand b{color:#d01919}.tshop-right .quick-paid{cursor:pointer;background:#fff4c9;padding:5px!important}
.voucher-sale-layout #drawerContent{padding:8px}.edit-sale-shell{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:8px}.edit-sale-totals{background:#fff7df;border:1px solid #a9bfd6;padding:7px}.edit-sale-totals label{display:grid;grid-template-columns:95px 1fr;gap:5px;align-items:center;margin:4px 0;font-size:11px}.edit-sale-totals input{width:100%;box-sizing:border-box;height:25px;padding:3px}.voucher-sale-layout .edit-voucher-fields{grid-template-columns:150px 190px 1fr 1fr}.voucher-sale-layout .edit-lines{min-height:420px;max-height:62vh}@media(max-width:1000px){.edit-sale-shell{grid-template-columns:1fr}.edit-sale-totals{display:grid;grid-template-columns:1fr 1fr}}
/* V7.55: giao diện bán hàng gọn kiểu TShop */
.salehead{padding:7px 10px!important;min-height:auto!important}.salehead h2{font-size:18px!important;margin:0 0 2px!important}.salehead small{font-size:10px!important}.salehead button{padding:7px 12px!important}.sale-meta{padding:4px 7px!important;font-size:11px!important}.salefields{gap:4px 8px!important;padding:5px 7px!important}.salefields label{font-size:11px!important}.salefields input,.salefields select{height:28px!important;padding:3px 6px!important}.sale-check-tools{margin:2px 7px 5px!important}.sale-check-tools button{padding:5px 10px!important}.productsearch{margin:0 7px 4px!important}.productsearch input{height:28px!important}.tshop-right{padding:6px 8px!important}.tshop-right label,.tshop-right p{margin:3px 0!important;font-size:11px!important}.tshop-right input,.tshop-right select{height:26px!important;padding:2px 5px!important}.cart th,.cart td{padding:4px 5px!important;font-size:11px!important}.cart input,.cart select{height:25px!important}.edit-voucher-head,.edit-voucher-tools{padding-top:5px!important;padding-bottom:5px!important}.edit-sale-shell{gap:5px!important}.edit-sale-totals{width:210px!important;padding:6px!important}.edit-voucher-fields{gap:4px 6px!important;padding:5px!important}
/* V7.58 print: bỏ phần thừa của trình duyệt bằng vùng in sát trang và mẫu TShop gọn. */
.tshop-company{align-items:flex-start}.tshop-company .voucher-logo{font-size:30px;font-style:italic}.tshop-company h3{margin:0;color:#003399;font-size:18px}.tshop-company small{color:#d22}.warranty-note{font-weight:700}.tshop-totals{margin-left:auto;max-width:300px;display:grid;grid-template-columns:1fr auto;gap:2px 12px}.voucher-words{font-style:italic}.voucher-signatures small{font-weight:400}.sale-a5 .voucher-tagline{color:#003399;text-align:center;font-size:11px;margin:2px 0}.sale-a5 .voucher-sale-info{display:flex;gap:22px;flex-wrap:wrap;margin:2px 0}.sale-a5 .voucher-customer p{margin:2px 0}
@media print{@page{size:A5 portrait;margin:5mm}html,body{margin:0!important;padding:0!important}body>*:not(#drawer){display:none!important}#drawer{position:static!important;background:white!important;padding:0!important}#drawerContent{box-shadow:none!important;margin:0!important;padding:0!important}.voucher-actions,#drawer>button{display:none!important}#printReceipt{margin:0!important;padding:0!important;box-shadow:none!important;border:0!important}}
/* V7.57: màn sửa chứng từ gọn và gần bố cục TShop hơn */
.voucher-editor .drawer-box{font-size:12px}.voucher-editor .edit-voucher-head{height:34px;padding:3px 8px}.voucher-editor .edit-voucher-tools{height:38px;padding:4px 8px}.voucher-editor .edit-voucher-tools button{padding:4px 12px;font-size:12px}.voucher-editor .edit-voucher-fields{grid-template-columns:130px 180px 1fr 1fr;padding:6px;gap:4px 8px}.voucher-editor .edit-voucher-fields input{height:25px;padding:3px 5px}.voucher-editor .edit-sale-shell{grid-template-columns:minmax(0,1fr) 225px;gap:5px}.voucher-editor .edit-sale-totals{padding:5px;background:#fff6dc}.voucher-editor .edit-sale-totals label{grid-template-columns:88px 1fr;margin:2px 0}.voucher-editor .edit-sale-totals input{height:23px}.voucher-editor .edit-lines{min-height:500px;max-height:calc(100vh - 185px)}.voucher-editor .edit-lines th,.voucher-editor .edit-lines td{padding:4px 6px;font-size:11px}.voucher-editor .edit-lines th{background:#d7e9fb;color:#173d61}

/* V7.58: đầu phiếu sát TShop + logo tự chọn */
.voucher-logo-img{width:72px;height:52px;object-fit:contain;display:block}.tshop-company{justify-content:center;gap:12px}.tshop-company h3{font-family:"Times New Roman",serif;color:#003399;font-size:18px;font-weight:700}.tshop-company small{color:#e11;font-family:"Times New Roman",serif}.tshop-head-grid{display:grid;grid-template-columns:1.2fr .8fr 1.35fr;gap:2px 12px;margin:2px 0 5px;font-family:"Times New Roman",serif}.tshop-head-grid .warranty-note{font-weight:700}.tshop-head-grid strong{font-weight:700}.sale-a5 .voucher-tagline{font-size:10px;font-weight:600}
@media print{.voucher-logo-img{width:62px!important;height:44px!important}.tshop-head-grid{font-size:9px!important;gap:1px 7px!important}.tshop-company h3{font-size:13px!important}}
/* V7.60 */
.editable-print-head [contenteditable="true"]{outline:1px dashed #3b82f6;outline-offset:1px;min-width:18px;display:inline-block}
.editable-print-head .warranty-note[contenteditable="true"]{display:block}
.tshop-head-grid .print-note-line{grid-column:1/-1}

/* V7.61 - đầu phiếu bán gọn như TShop, luôn có Ghi chú */
.sale-a5 .tshop-head-grid{grid-template-columns:1.35fr .95fr 1.45fr;grid-template-areas:"invoice date warranty" "customer phone debt" "address phone points" "note note points";column-gap:10px;row-gap:1px;font-size:11px;line-height:1.1;margin:2px 0 4px}.sale-a5 .head-invoice{grid-area:invoice}.sale-a5 .head-date{grid-area:date}.sale-a5 .head-warranty{grid-area:warranty}.sale-a5 .head-customer{grid-area:customer}.sale-a5 .head-debt{grid-area:debt;text-align:right}.sale-a5 .head-address{grid-area:address}.sale-a5 .head-phone{grid-area:phone}.sale-a5 .head-points{grid-area:points;text-align:right}.sale-a5 .print-note-line{grid-area:note;min-height:14px}.sale-a5 .note-value:empty:after{content:" ";white-space:pre}

/* V7.62 - dau phieu ban gon sat TShop, luon co Ghi chu */
.sale-a5 .voucher-brand.tshop-company{margin:0 0 1px!important;gap:7px!important;align-items:flex-start!important}
.sale-a5 .tshop-company .voucher-logo-img{width:58px!important;height:40px!important}
.sale-a5 .tshop-company h3{font-size:17px!important;line-height:1!important;margin:0!important}
.sale-a5 .tshop-company small{font-size:8.5px!important;line-height:1.05!important}
.sale-a5 h2{font-size:17px!important;margin:1px 0!important;line-height:1!important}
.sale-a5 .voucher-tagline{font-size:9px!important;line-height:1!important;margin:1px 0 2px!important}
.sale-a5 .tshop-head-grid{grid-template-columns:1.2fr .85fr 1.25fr!important;grid-template-areas:"invoice date warranty" "customer phone debt" "address phone points" "note note points"!important;column-gap:8px!important;row-gap:0!important;margin:1px 0 2px!important;font-size:10px!important;line-height:1.05!important}
.sale-a5 .print-note-line{display:block!important;min-height:12px!important}
.sale-a5 .voucher-items{margin-top:1px!important}
.sale-a5 .voucher-items th,.sale-a5 .voucher-items td{padding:1px 2px!important}
@media print{.sale-a5 .tshop-head-grid{font-size:8.6px!important}.sale-a5 .print-note-line{display:block!important;min-height:9px!important}}
