/* Viewport layout only: no zoom, device guessing, or changes to printed documents. */
@media screen {
 body.th-glass :where(main,.admin-content,.content,.card,.formgrid,.grid,.tools,.scroll){min-width:0;box-sizing:border-box}
 body.th-glass :where(input,select,textarea){max-width:100%;box-sizing:border-box}
 body.th-glass :where(.scroll,.table-responsive,.table-wrap,.adaptive-table-scroll){max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
 .adaptive-table-scroll{width:100%;min-width:0;-webkit-overflow-scrolling:touch}
 body.th-glass :where(.tools,.top){flex-wrap:wrap}
 body.th-glass :where(.formgrid,.grid)>*{min-width:0}
 body.th-glass #cwa-live-cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))!important;gap:14px;align-items:stretch}
 body.th-glass #cwa-live-cards>.metric{min-width:0;padding:16px!important;container-type:inline-size}
 body.th-glass #cwa-live-cards>.metric>strong{font-size:clamp(17px,8cqi,30px)!important;white-space:nowrap;max-width:100%;font-variant-numeric:tabular-nums;letter-spacing:-.3px}
 body.th-glass #cwa-live-cards>.metric>b{overflow-wrap:anywhere}
 body.th-glass #cwa-live-cards .tools{display:grid;grid-template-columns:minmax(0,1fr);gap:5px}
 body.th-glass #cwa-live-cards .tools .badge{max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:right}
}
@media screen and (max-width:1600px) {
 body.th-glass #ledger>.scroll>table{min-width:1100px;width:100%;table-layout:fixed}
 body.th-glass #ledger>.scroll>table>thead>tr>th:nth-child(1){width:30px}
 body.th-glass #ledger>.scroll>table>thead>tr>th:nth-child(2){width:86px}
 body.th-glass #ledger>.scroll>table>thead>tr>th:nth-child(3){width:60px}
 body.th-glass #ledger>.scroll>table>thead>tr>th:nth-child(4){width:auto}
 body.th-glass #ledger>.scroll>table>thead>tr>th:nth-child(5){width:48px}
 body.th-glass #ledger>.scroll>table>thead>tr>th:nth-child(6){width:116px}
 body.th-glass #ledger>.scroll>table>thead>tr>th:nth-child(7){width:82px}
 body.th-glass #ledger>.scroll>table>thead>tr>th:nth-child(8){width:118px}
 body.th-glass #ledger>.scroll>table>thead>tr>th:nth-child(9){width:125px}
 body.th-glass #ledger>.scroll>table>thead>tr>th:nth-child(10){width:110px}
 body.th-glass #ledger>.scroll>table>thead>tr>th:nth-child(11){width:108px}
 body.th-glass #ledger :where(th,td){padding:7px 5px!important;overflow-wrap:anywhere}
 body.th-glass #ledger .cheque-detail{max-width:100%;overflow-x:auto}
 body.th-glass #ledger> .tools{gap:8px}
}
@media screen and (max-width:1100px) {
 body.th-glass :where(.admin-layout,.layout){display:grid!important;grid-template-columns:minmax(0,1fr)!important}
 body.th-glass :where(.admin-sidebar,.sidebar){position:static!important;max-height:none}
 body.th-glass :where(.admin-menu,aside .menu){display:grid!important;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:6px!important;max-height:190px;overflow:auto}
 body.th-glass .formgrid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media screen and (max-width:600px) {
 body.th-glass>main:not(.page):not(.sheet){width:100%!important;padding-inline:10px!important}
 body.th-glass :where(.container,.wrap){width:calc(100% - 20px)!important}
 body.th-glass .formgrid{grid-template-columns:minmax(0,1fr)!important}
 body.th-glass .grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr))!important}
 body.th-glass :where(.tools input,.tools select){flex:1 1 140px;min-width:0!important;width:100%;max-width:100%}
 body.th-glass :where(.card,.admin-content,.content){padding:12px!important}
 body.th-glass :where(.card,.content) h1{font-size:24px!important}
 body.th-glass :where(img,video,canvas){max-width:100%;height:auto}
}
