/* Entire component scope: no styling leaks into Elementor or WordPress. */
#gls05-modal,#gls05-modal *{box-sizing:border-box}
#gls05-modal{position:fixed;inset:0;z-index:999999;background:rgba(13,20,41,.64);padding:24px;display:flex;align-items:center;justify-content:center;font:14px/1.5 system-ui,-apple-system,"Noto Sans Tamil",Segoe UI,sans-serif;color:#27314d}
#gls05-modal[hidden]{display:none!important}
#gls05-modal .g5-frame{width:min(1190px,100%);height:min(850px,95vh);display:flex;flex-direction:column;overflow:hidden;background:#fbfaf8;border-radius:17px;box-shadow:0 30px 90px rgba(7,12,34,.27);border:1px solid #dee2ec}
#gls05-modal .g5-head{display:flex;justify-content:space-between;align-items:center;background:#1c2945;color:white;padding:17px 23px;gap:12px;flex:none}
#gls05-modal .g5-head h2{font-weight:750;margin:0;font-size:21px;letter-spacing:-.5px;color:white}
#gls05-modal .g5-head p{color:#cad2e4;margin:3px 0 0;font-size:11px}
#gls05-modal button{font:inherit;cursor:pointer}
#gls05-modal button:disabled{cursor:not-allowed;opacity:.53}
#gls05-modal .g5-icon-btn{background:transparent;border:1px solid #7787a7;border-radius:9px;color:white;width:37px;height:37px;font-size:20px;flex:none}
#gls05-modal .g5-tabs{display:flex;gap:8px;align-items:center;padding:12px 20px;background:#f3f4f7;border-bottom:1px solid #e0e4ee;flex-wrap:wrap;flex:none}
#gls05-modal .g5-tab{border:1px solid #dee3ee;background:white;border-radius:9px;padding:10px 15px;color:#26334f;font-weight:650}
#gls05-modal .g5-tab.active{background:#29395d;color:white;border-color:#29395d}
#gls05-modal .g5-body{overflow:auto;overscroll-behavior:contain;padding:20px 23px;flex:1;min-height:0}
#gls05-modal .g5-container{max-width:1050px;margin:auto;display:grid;gap:15px}
#gls05-modal .g5-card{border:1px solid #dee3ed;border-radius:12px;background:white;padding:20px}
#gls05-modal .g5-card h3{font-size:16px;font-weight:750;margin:0 0 14px;color:#1e2b48}
#gls05-modal .g5-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
#gls05-modal .g5-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
#gls05-modal .g5-field{min-width:0;display:flex;flex-direction:column;gap:6px}
#gls05-modal .g5-field label{font-size:12px;font-weight:700;color:#364360}
#gls05-modal input,#gls05-modal textarea,#gls05-modal select{width:100%;min-width:0;min-height:42px;border:1px solid #ccd5e6;border-radius:9px;background:white;padding:9px 11px;color:#17294b;font:inherit;line-height:1.4;outline:none}
#gls05-modal input:focus,#gls05-modal textarea:focus,#gls05-modal select:focus,#gls05-modal button:focus-visible{border-color:#6555c9;outline:3px solid rgba(109,91,212,.17)}
#gls05-modal textarea{resize:vertical;min-height:70px}
#gls05-modal .g5-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:16px}
#gls05-modal .g5-btn{border-radius:9px;border:1px solid #ccd5e6;background:#fff;color:#203050;padding:9px 16px;font-weight:700}
#gls05-modal .g5-btn.primary{background:#273a63;border-color:#273a63;color:#fff}
#gls05-modal .g5-btn.gold{background:#e9d8b2;border-color:#dac191;color:#443313}
#gls05-modal .g5-muted{font-size:12px;color:#70809d}
#gls05-modal .g5-banner{border:1px solid #edd29a;background:#fff9e9;color:#715a2b;border-radius:9px;padding:10px 12px;font-size:12px}
#gls05-modal .g5-banner.error{background:#fff1f2;border-color:#ffbbc3;color:#9b2440}
#gls05-modal .g5-banner.success{background:#f1f3ff;border-color:#bbc6ed;color:#253d70}
#gls05-modal .g5-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
#gls05-modal .g5-metric{padding:14px 15px;border:1px solid #e1e6ef;background:#f7f8fb;border-radius:10px}
#gls05-modal .g5-metric .g5-muted{display:block}
#gls05-modal .g5-metric strong{font-size:21px;color:#203454;display:block;margin-top:3px;font-variant-numeric:tabular-nums}
#gls05-modal .g5-metric strong.unknown{font-size:13px;color:#a27431}
#gls05-modal .g5-tablewrap{overflow-x:auto;max-width:100%}
#gls05-modal table{width:100%;border-collapse:collapse;min-width:700px;font-size:12px;font-variant-numeric:tabular-nums}
#gls05-modal th{background:#f3f5f9;color:#344566;text-align:left;font-size:11px;letter-spacing:.1px;font-weight:750}
#gls05-modal th,#gls05-modal td{border-bottom:1px solid #e8edf5;padding:10px 11px;vertical-align:top}
#gls05-modal td.num,#gls05-modal th.num{text-align:right;white-space:nowrap}
#gls05-modal tr:last-child td{border-bottom:0}
#gls05-modal .g5-pill{display:inline-block;padding:3px 7px;border-radius:6px;background:#edf1fa;color:#354468;font-size:11px}
#gls05-modal .g5-bottom{padding:10px 23px;border-top:1px solid #e2e5ee;display:flex;align-items:center;justify-content:space-between;gap:14px;flex:none;background:white}
#gls05-modal .g5-status{font-size:12px;color:#5e6d89}
#gls05-modal .g5-two-column{display:grid;grid-template-columns:1.3fr .8fr;gap:15px}
#gls05-modal .g5-inline{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
#gls05-modal .g5-inline>*{max-width:100%}
#gls05-modal .g5-field.compact{max-width:250px}
#gls05-modal .g5-voucher-preview{background:#f7f8fc;border:1px dashed #bdc7db;padding:15px;border-radius:10px}
#gls05-modal .g5-voucher-preview b{display:block;margin-bottom:5px}
#gls05-modal .g5-note{font-size:12px;color:#6b7790}
#gls05-modal .g5-spinner{display:inline-block;width:15px;height:15px;border:2px solid #bdc5dc;border-top-color:#2c3c60;border-radius:50%;animation:g5-spin .7s linear infinite}
@keyframes g5-spin{to{transform:rotate(360deg)}}
body.gls05-lock{overflow:hidden}
button.gls05-launch{padding:9px 13px;border:1px solid #c9d3e6;background:#fff;color:#263955;border-radius:9px;font-weight:700;white-space:nowrap}
@media(max-width:790px){#gls05-modal{padding:0}#gls05-modal .g5-frame{width:100%;height:100dvh;max-height:100dvh;border-radius:0}#gls05-modal .g5-grid,#gls05-modal .g5-grid.two,#gls05-modal .g5-metrics,#gls05-modal .g5-two-column{grid-template-columns:1fr 1fr}#gls05-modal .g5-body{padding:13px}#gls05-modal .g5-head{padding:12px}}
@media(max-width:520px){#gls05-modal .g5-grid,#gls05-modal .g5-grid.two,#gls05-modal .g5-metrics,#gls05-modal .g5-two-column{grid-template-columns:1fr}#gls05-modal .g5-head h2{font-size:17px}}
/* Prevent wide ledger tables from collapsing the form column. */
#gls05-modal .g5-two-column{grid-template-columns:minmax(0,1.2fr) minmax(0,.95fr)}
#gls05-modal .g5-card{min-width:0}
@media(max-width:790px){#gls05-modal .g5-two-column{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){#gls05-modal .g5-two-column{grid-template-columns:1fr}}

/* V0.2 simple desktop daily voucher */
#gls05-modal .g5-simple{max-width:970px;width:100%;margin:auto}
#gls05-modal .g5-simple-top{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:15px}
#gls05-modal .g5-simple-top h3{margin:3px 0 0}
#gls05-modal .g5-nextno{text-align:right;background:#f4f2eb;border:1px solid #e6d7b7;border-radius:10px;padding:8px 15px;min-width:175px}
#gls05-modal .g5-nextno span{font-size:11px;display:block;color:#6a6471}
#gls05-modal .g5-nextno strong{font-size:19px;color:#1e2b48;font-variant-numeric:tabular-nums}
#gls05-modal .g5-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:end}
#gls05-modal .g5-form-grid .g5-wide{grid-column:1/-1}
#gls05-modal .g5-static-ledger{min-height:42px;border:1px solid #dde2ec;background:#f7f8fa;padding:9px 12px;border-radius:9px;font-weight:700;color:#25314c}
#gls05-modal .g5-switch{display:flex;gap:9px}
#gls05-modal .g5-switch label{min-height:43px;border:1px solid #cbd4e4;padding:9px 13px;border-radius:9px;display:flex;align-items:center;gap:8px;flex:1;cursor:pointer}
#gls05-modal .g5-switch label.selected{border-color:#24395e;background:#f0f2fa}
#gls05-modal .g5-switch input{width:16px;min-width:16px;min-height:16px;height:16px;accent-color:#263d67}
#gls05-modal .g5-advanced{margin:14px 0;color:#42506b}
#gls05-modal .g5-advanced summary{cursor:pointer;font-size:12px}
#gls05-modal .g5-simple-total{margin:15px 0 8px;padding:14px 16px;border:1px solid #d4dceb;background:#f5f7fa;border-radius:9px;display:flex;align-items:center;justify-content:space-between;gap:10px}
#gls05-modal .g5-simple-total b{font-size:21px;color:#1e2b48}
@media(max-width:700px){#gls05-modal .g5-form-grid{grid-template-columns:1fr}#gls05-modal .g5-form-grid .g5-wide{grid-column:auto}#gls05-modal .g5-simple-top{align-items:flex-start}#gls05-modal .g5-nextno{text-align:left}}
/* V0.3 — classic voucher form: two independent amount fields. */
#gls05-modal .g5-find-form{display:grid;grid-template-columns:minmax(220px,1fr) auto;gap:10px;align-items:end;margin-bottom:15px}
#gls05-modal .g5-find-form .g5-btn{min-height:42px}
#gls05-modal .g5-compare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}
#gls05-modal .g5-compare>div{background:#f5f7fa;border:1px solid #dbe2ed;border-radius:10px;padding:13px;min-width:0}
#gls05-modal .g5-compare span{color:#66748b;font-size:12px;font-weight:700;display:block}
#gls05-modal .g5-compare p{margin:6px 0 10px;overflow-wrap:anywhere}
#gls05-modal .g5-compare b{color:#182e55;display:block}
#gls05-modal .g5-compare small{color:#75829b}
#gls05-modal .g5-audit-record{border:1px solid #dae0eb;border-radius:12px;overflow:hidden;margin-top:14px}
#gls05-modal .g5-audit-head{background:#f4f6fa;display:flex;gap:8px;justify-content:space-between;align-items:center;padding:12px 13px;color:#1e2c49}
#gls05-modal .g5-audit-head span{font-size:12px;color:#52627e}
#gls05-modal .g5-audit-record table{min-width:420px}
#gls05-modal .g5-simple-total b{font-size:15px;line-height:1.4;text-align:right}
@media(max-width:700px){#gls05-modal .g5-find-form,#gls05-modal .g5-compare{grid-template-columns:1fr}}

/* V0.4: Gold & cream desktop-first voucher + day statement. Scoped to this modal. */
#gls05-modal{color:#29231d;background:rgba(20,20,29,.64);font-family:system-ui,-apple-system,'Noto Sans Tamil','Latha','Segoe UI',sans-serif;font-size:14px}
#gls05-modal .g5-frame{width:min(1275px,98vw);height:min(860px,96vh);border-radius:13px;border:1px solid #c69845;background:#fffdf9;box-shadow:0 26px 80px #0e162b66}
#gls05-modal .g5-head{background:linear-gradient(110deg,#ffe699,#f5d16a 48%,#e9b948);color:#352613;border-bottom:2px solid #b8882e;min-height:92px;padding:12px 26px;position:relative;justify-content:center}
#gls05-modal .g5-brand{text-align:center;padding:0 44px}
#gls05-modal .g5-head h2{color:#372610;font:700 clamp(24px,3.2vw,38px)/1.08 Georgia,'Times New Roman',serif;letter-spacing:.07em;margin:0}
#gls05-modal .g5-head p{color:#705019;margin:7px 0 0;font-size:11px;font-weight:600}
#gls05-modal .g5-icon-btn{position:absolute;right:16px;top:15px;color:#553c1b;border:1px solid #bd994b;background:#ffedb8;font-weight:600}
#gls05-modal .g5-tabs{background:#fff9eb;border-bottom:1px solid #e3d0a6;padding:9px 22px;gap:8px}
#gls05-modal .g5-tab{background:#fffdf9;color:#624823;border:1px solid #dfcba4;padding:9px 21px;border-radius:7px}
#gls05-modal .g5-tab.active{color:#33240e;background:#f4cf70;border-color:#bb8c30}
#gls05-modal .g5-tabs-spacer{flex:1}
#gls05-modal .g5-lang{font-size:12px;padding:7px 10px;border:0;background:transparent;color:#72592b;cursor:pointer}
#gls05-modal .g5-body{padding:17px 20px 24px;background:#fffdf9}
#gls05-modal .g5-container{max-width:none;gap:12px}
#gls05-modal .g5-classic{border:1px solid #dfc89e;border-radius:11px;overflow:hidden;background:#fff;box-shadow:0 2px 6px #3a2b1812}
#gls05-modal .g5-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 20px;background:linear-gradient(90deg,#fff4dc,#f6e8cc);border-bottom:1px solid #ebd7b1}
#gls05-modal .g5-panel-heading h3{color:#35291e;font-size:21px;line-height:1.4;font-weight:750;margin:0}
#gls05-modal .g5-panel-heading .g5-ta{font-size:14px;color:#805c24;font-weight:550}
#gls05-modal label,#gls05-modal .g5-field label{color:#3b3228;font-weight:720;font-size:12.5px}
#gls05-modal input,#gls05-modal textarea,#gls05-modal select{background:white;border-color:#d1c0a3;border-radius:7px;color:#2f2922;font-size:14px;min-height:43px;padding:10px 12px}
#gls05-modal input:focus,#gls05-modal textarea:focus,#gls05-modal select:focus,#gls05-modal button:focus-visible{border-color:#c59838;outline:3px solid #e5bc603b;outline-offset:0}
#gls05-modal textarea{height:120px;resize:vertical}
#gls05-modal .g5-btn{border-radius:7px;color:#403223;border:1px solid #cbbba0;padding:9px 15px;background:linear-gradient(#fff,#f7f3eb);min-height:40px;font-weight:730;white-space:nowrap}
#gls05-modal .g5-btn:hover:not(:disabled){border-color:#b78a33;background:#fff2cf}
#gls05-modal .g5-btn.primary,#gls05-modal .g5-btn.gold{background:linear-gradient(#ffe9aa,#f3c65c);border-color:#b88c32;color:#352815}
#gls05-modal .g5-btn.small{font-size:11px;padding:5px 9px;min-height:29px}
#gls05-modal .g5-btn.subtle{font-size:12px;padding:7px 10px;min-height:33px}
#gls05-modal .g5-voucher-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(310px,.95fr);gap:19px;padding:20px 18px 12px}
#gls05-modal .g5-voucher-left{min-width:0}
#gls05-modal .g5-classic-line{display:grid;grid-template-columns:165px minmax(0,1fr);align-items:center;column-gap:15px;margin-bottom:15px;max-width:720px}
#gls05-modal .g5-classic-line>label{display:block}
#gls05-modal .g5-classic-line input[type=date]{max-width:260px}
#gls05-modal .g5-readonly-num{width:fit-content;min-width:225px;background:#f9f7f3;border:1px solid #cebfaa;border-radius:7px;padding:9px 15px;font-variant-numeric:tabular-nums;font-size:18px;color:#352819;font-weight:720}
#gls05-modal .g5-readonly-num small{display:inline-block;margin-left:9px;font-size:10px;color:#8d6d38;text-transform:uppercase;vertical-align:middle}
#gls05-modal .g5-static-ledger{background:#fcfaf6;border-color:#d5c8b4;border-radius:7px;color:#3c3428;font-size:14px}
#gls05-modal .g5-classic-description{align-items:start}
#gls05-modal .g5-classic-description label{padding-top:10px}
#gls05-modal .g5-classic-description textarea{min-height:110px}
#gls05-modal .g5-classic-amounts{display:grid;grid-template-columns:1fr 1fr;gap:17px;padding:8px 0 0;max-width:720px}
#gls05-modal .g5-classic-amounts>div{display:grid;grid-template-columns:minmax(95px,auto) minmax(100px,1fr);align-items:center;gap:9px}
#gls05-modal .g5-classic-amounts input{font-size:17px;font-variant-numeric:tabular-nums;text-align:right;min-width:0}
#gls05-modal .g5-extra-method{margin-top:17px;font-size:11px;color:#826d4c}
#gls05-modal .g5-extra-method summary{cursor:pointer}
#gls05-modal .g5-extra-method .g5-field{max-width:300px;margin:8px 0}
#gls05-modal .g5-live-total{padding:10px 12px;background:#fff8e8;border:1px solid #f1e1bf;border-radius:7px;font-size:12px;margin-top:12px;line-height:1.4;color:#644c27}
#gls05-modal .g5-recent{border:1px solid #e0cfae;border-radius:9px;min-width:0;overflow:hidden}
#gls05-modal .g5-recent-title{font-size:17px;font-weight:750;padding:9px 12px;background:#f6e7c5;border-bottom:1px solid #e0cfae}
#gls05-modal .g5-recent table{min-width:0;font-size:11px}
#gls05-modal .g5-recent th,#gls05-modal .g5-recent td{padding:9px 8px;border-bottom:1px solid #eee0c7;white-space:normal}
#gls05-modal .g5-recent th{font-size:11px;background:#fcf6e8;letter-spacing:0}
#gls05-modal .g5-recent td{overflow-wrap:anywhere}
#gls05-modal .g5-recent-note{padding:10px;color:#8b7552;font-size:11px}
#gls05-modal .g5-classic-actions{display:flex;gap:11px;flex-wrap:wrap;align-items:center;padding:15px 18px;border-top:1px solid #e8d9b9;background:#fffdf8}
#gls05-modal .g5-classic-actions button{min-width:100px}
#gls05-modal .g5-screen-note{margin:0;padding:10px 18px 13px;color:#786950;font-size:11px;line-height:1.6}
#gls05-modal .g5-ledger-filters{padding:15px 20px 18px;display:grid;gap:14px}
#gls05-modal .g5-account-pick{display:grid;grid-template-columns:145px minmax(300px,560px);gap:13px;align-items:center}
#gls05-modal .g5-ledger-range{display:flex;gap:15px;align-items:end;flex-wrap:wrap}
#gls05-modal .g5-ledger-range>div:not(.g5-ledger-buttons){display:flex;gap:9px;align-items:center}
#gls05-modal .g5-ledger-range input{width:165px}
#gls05-modal .g5-ledger-buttons{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-left:auto}
#gls05-modal .g5-ledger-buttons button{min-width:75px}
#gls05-modal .g5-ledger-table{margin:0 18px;min-height:245px;border:1px solid #ded1b7;border-radius:7px;overflow:auto;max-height:460px}
#gls05-modal .g5-ledger-table table{min-width:820px;font-size:12px}
#gls05-modal .g5-ledger-table th{position:sticky;top:0;z-index:1;background:#f7ecd4;color:#47351d;font-size:12px}
#gls05-modal .g5-ledger-table th,#gls05-modal .g5-ledger-table td{padding:9px 10px;border-right:1px solid #e1dacd;border-bottom:1px solid #eae3d8}
#gls05-modal .g5-ledger-table tr:nth-child(even) td{background:#fffdfa}
#gls05-modal .g5-ledger-table td:nth-child(2){min-width:230px}
#gls05-modal .g5-nowrap{white-space:nowrap}
#gls05-modal .g5-opening-row td{background:#fff4d8!important;color:#40301c}
#gls05-modal .g5-classic-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 18px}
#gls05-modal .g5-classic-summary-cell{border:1px solid #d4b878;border-radius:9px;background:linear-gradient(#ffefd0 0 41%,#fffdf8 41%);text-align:center;min-width:0;overflow:hidden}
#gls05-modal .g5-classic-summary-cell span{display:block;font-size:13px;font-weight:740;color:#4a3618;padding:8px 7px}
#gls05-modal .g5-classic-summary-cell strong{display:block;font-size:clamp(15px,2vw,23px);color:#35291b;letter-spacing:-.5px;font-variant-numeric:tabular-nums;padding:10px 7px 12px;overflow-wrap:anywhere}
#gls05-modal .g5-classic-summary-cell strong.g5-unverified{font-size:13px;color:#a56730;letter-spacing:0}
#gls05-modal .g5-ledger-foot{padding:3px 18px 13px;font-size:11px;color:#806a48;display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
#gls05-modal .g5-ledger-foot>div{display:flex;gap:7px}
#gls05-modal .g5-opening-panel{margin:0 18px 16px;border:1px solid #d4bf8d;background:#fff9eb;border-radius:8px;padding:15px}
#gls05-modal .g5-opening-panel h4{margin:0;color:#513919}
#gls05-modal .g5-opening-panel p{font-size:11px;color:#816b49}
#gls05-modal .g5-opening-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:12px}
#gls05-modal .g5-banner.success{background:#fffae6;border-color:#d4c087;color:#57421e}
#gls05-modal .g5-muted{color:#897458}
#gls05-modal .g5-card{border-color:#dfcaa2}
#gls05-modal .g5-card h3{color:#3f2e14}
#gls05-modal .g5-compare>div{background:#fff9ec;border-color:#e6d1a9}
#gls05-modal .g5-audit-head{background:#f8ebd2;color:#4b351a}
#gls05-modal .g5-tablewrap th{background:#f8edda;color:#4a361a}
#gls05-modal .g5-pill{background:#f8e8ca;color:#70501c}
button.gls05-launch{background:#fff9e8;border-color:#dac39d;color:#4a341a}
@media(max-width:900px){#gls05-modal .g5-voucher-grid{grid-template-columns:1fr}#gls05-modal .g5-recent{max-height:230px;overflow:auto}#gls05-modal .g5-classic-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){#gls05-modal .g5-frame{height:100dvh;width:100vw;border-radius:0}#gls05-modal .g5-head{min-height:78px}#gls05-modal .g5-head h2{font-size:23px}#gls05-modal .g5-panel-heading h3{font-size:17px}#gls05-modal .g5-classic-line{grid-template-columns:1fr;gap:5px}#gls05-modal .g5-classic-amounts{grid-template-columns:1fr}#gls05-modal .g5-ledger-filters{padding:12px}#gls05-modal .g5-account-pick{grid-template-columns:1fr;gap:5px}#gls05-modal .g5-ledger-range{display:block}#gls05-modal .g5-ledger-range>div:not(.g5-ledger-buttons){margin:8px 0;display:grid;grid-template-columns:100px 1fr}#gls05-modal .g5-ledger-buttons{justify-content:flex-start}#gls05-modal .g5-tabs{padding:7px}#gls05-modal .g5-tab{padding:7px 10px}}
/* Print the complete selected day statement, not WordPress theme contents or a partial UI table. */
#g5-print-only{display:none}
@media print{
 @page{size:A4 landscape;margin:10mm}
 body>*:not(#gls05-modal){display:none!important}
 #gls05-modal{position:static!important;inset:auto!important;display:block!important;padding:0!important;background:white!important;color:black!important;min-height:0!important}
 #gls05-modal .g5-frame{display:none!important}
 #g5-print-only{display:block!important;color:#111!important;font:11px/1.35 'Noto Sans Tamil',Arial,sans-serif!important}
 #g5-print-only h1{text-align:center;font:700 24px/1.2 Georgia,serif;margin:0 0 4mm}
 #g5-print-only h2{text-align:center;font-size:16px;margin:0 0 2mm}
 #g5-print-only p{font-size:12px;text-align:center;margin:0 0 4mm}
 #g5-print-only table{width:100%;border-collapse:collapse;font-size:10px}
 #g5-print-only th,#g5-print-only td{border:1px solid #999;padding:4px 6px;text-align:left;vertical-align:top;overflow-wrap:anywhere}
 #g5-print-only th{background:#eee!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
 #g5-print-only .num{text-align:right}
 #g5-print-only thead{display:table-header-group}
 #g5-print-only tr{break-inside:avoid}
 #g5-print-only footer{display:flex;justify-content:space-between;gap:8px;border:1px solid #aaa;padding:7px;margin-top:7mm;break-inside:avoid;flex-wrap:wrap}
 #g5-print-only small{display:block;margin-top:3mm;color:#555}
}

/* v4.2.2 — independent Credit and Debit within ONE manual voucher. */
#gls05-modal .g5-dual-entry{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:5px 0 4px}
#gls05-modal .g5-dual-entry>div{display:flex;flex-direction:column;align-items:stretch;gap:7px}
#gls05-modal .g5-dual-entry input{font-variant-numeric:tabular-nums;text-align:right;font-size:18px;min-width:0;width:100%;}
#gls05-modal .g5-entry-hint{color:#796344;font-size:12px;line-height:1.55;margin:10px 0 4px;padding:0}
#gls05-modal .g5-recent-pair{display:block;color:#785d32;margin-top:4px;white-space:nowrap;font-size:10.5px}
@media(max-width:650px){#gls05-modal .g5-dual-entry{grid-template-columns:1fr}}
