@media (max-width:760px),(orientation:portrait) and (max-width:1100px){
  html,body{max-width:100%;overflow-x:hidden;overflow-x:clip}
  .tbl:not(.rpbill){margin:0!important;overflow:visible!important}
  .rpbill{overflow-x:auto!important;-webkit-overflow-scrolling:touch}
  table.cardtbl{display:block;width:100%!important;min-width:0!important;font-size:14px}
  table.cardtbl thead{display:block;margin-bottom:10px}
  table.cardtbl thead tr:not(.frow){display:none}
  table.cardtbl thead tr.frow{display:flex;flex-wrap:wrap;gap:8px;border:0}
  table.cardtbl thead tr.frow th{display:block;flex:1 1 40%;padding:0!important;border:0}
  table.cardtbl thead tr.frow th:has(.cfn){display:none}
  table.cardtbl thead tr.frow .cf{width:100%;height:38px}
  table.cardtbl .hide-ph{display:none!important}
  table.cardtbl .ci,table.cardtbl .cf{min-width:0!important;max-width:100%}
  table.cardtbl .ci.pname-in,table.cardtbl .ci.opn{width:100%!important}
  table.cardtbl tbody,table.cardtbl tfoot{display:block}
  table.cardtbl tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px 14px;padding:14px;margin:0 0 12px;border-radius:18px;background:var(--panel-2);border:1px solid var(--edge);box-shadow:none}
  table.cardtbl tr:last-child{margin-bottom:0}
  table.cardtbl tr.sel{border-color:var(--accent);box-shadow:inset 3px 0 0 var(--accent)}
  table.cardtbl td{display:block;min-width:0;width:auto!important;padding:0!important;border:0!important;background:none!important;text-align:left!important;white-space:normal!important;box-shadow:none!important;vertical-align:top}
  table.cardtbl td:empty{display:none}
  table.cardtbl td[data-label]::before{content:attr(data-label);display:block;margin-bottom:3px;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
  table.cardtbl td:first-child{grid-column:1/-1;padding-bottom:10px!important;border-bottom:1px solid var(--edge)!important}
  table.cardtbl td:first-child::before{display:none!important}
  table.cardtbl td:first-child .pname,table.cardtbl td:first-child>b:first-child{font-size:16px!important;font-weight:700;line-height:1.3}
  table.cardtbl td:last-child,table.cardtbl td.wide{grid-column:1/-1}
  table.cardtbl tr>td:only-child{padding-bottom:0!important;border-bottom:0!important}
  table.cardtbl .kv{min-width:0!important;width:100%;grid-template-columns:auto minmax(0,1fr);gap:4px 14px;font-size:14px}
  table.cardtbl .kv b{white-space:normal!important;overflow-wrap:anywhere}
  table.cardtbl .kv>span{font-size:11px}
  table.cardtbl .sub{display:block}
  table.cardtbl .bigq{font-size:18px}
  table.cardtbl .rmbig{font-size:24px}
  table.cardtbl .pqw{display:flex!important;justify-content:stretch;width:100%}
  table.cardtbl .pqw .ci,table.cardtbl .ci.pq{flex:1;width:auto!important;height:44px;font-size:17px}
  table.cardtbl .btn.pdone,table.cardtbl td:last-child>.btn{display:block;width:100%;margin-top:10px;padding:13px 16px;font-size:15px;border-radius:14px}
  table.cardtbl .sback{margin:10px auto 0;text-align:center}
  table.cardtbl .rolls{justify-items:stretch}
  table.cardtbl .rline{width:100%;min-width:0}
  table.cardtbl .rline .ci{flex:1 1 0;min-width:0;width:auto!important;height:42px}
  table.cardtbl .rline .ci.rn{flex:0 0 70px}
  table.cardtbl .rline .mk{min-width:0}
  table.cardtbl .rfoot{white-space:normal;flex-wrap:wrap}
  table.cardtbl td:last-child .link{display:inline-block}
  table.cardtbl tr.dgrp{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:12px 14px;margin:6px 0 10px;border:0;background:var(--accent-soft)}
  table.cardtbl tr.dgrp.late{background:var(--bad-soft)} table.cardtbl tr.dgrp.none{background:var(--fill)}
  table.cardtbl tr.dgrp td{display:flex;width:100%!important;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap;border:0!important;padding:0!important;background:none!important}
  table.cardtbl tr.dgrp span{margin:0}
  table.cardtbl tr:has(>td.empty){display:block;background:none;border:0;padding:6px 2px}
  table.cardtbl td.empty{border:0!important;padding:0!important}
  table.cardtbl tfoot tr{background:var(--accent-soft);border-color:var(--accent-edge)}
  table.cardtbl tfoot td:first-child{font-size:15px}
  .procpage table tbody td{padding-top:0}
  .kpis{grid-template-columns:1fr 1fr!important;gap:10px}
}
