@media screen{
 html,body{margin-inline:0;max-width:100%;min-width:0}
 *,*::before,*::after{box-sizing:border-box}
 main,.wrap,.app,.card,section,details,form,.grid,.fields,.two,.row,.actions{min-width:0}
 input:not([type=checkbox]):not([type=radio]),select,textarea{max-width:100%;min-width:0}
 button,summary{max-width:100%;overflow-wrap:anywhere}
 img,canvas{max-width:100%}
 .responsive-table-scroll,.table-wrap,.table-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
 .responsive-table-scroll{width:100%;margin-block:4px}
 .responsive-table-scroll:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
 .worker-profile-heading{min-width:0}.worker-profile-heading h2{overflow-wrap:anywhere}
 @media(max-width:650px){
  body{overflow-wrap:break-word}
  main,.wrap{padding-inline:10px}
  .fields{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fields>*,.grid>*,.row>*,.actions>*{min-width:0}
  input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px}
  button,summary{white-space:normal;line-height:1.4}
  .actions,.toolbar{flex-wrap:wrap;gap:8px}
  .actions>button,.toolbar>button{flex:1 1 130px}
  table[data-responsive-wide="true"]{min-width:620px!important;table-layout:auto!important}
  .sheet{width:100%;min-height:0;margin:8px auto;padding:18px 14px;border-width:4px}
  .sheet .head{grid-template-columns:minmax(0,1fr) 70px minmax(0,1fr);gap:8px}
  .sheet .logo{width:65px;height:auto}.sheet .emblem{font-size:10px}
  .sheet .two{grid-template-columns:minmax(0,1fr);gap:12px}
  .sheet .linefield{max-width:100%;min-width:0;white-space:normal;flex-wrap:wrap}
  .sheet .linefield input{min-width:0!important;max-width:100%;flex:1 1 90px}
  .sheet .measure{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sheet .signature-fields{transform:none}.sheet .signrow{grid-template-columns:90px minmax(0,1fr)}
  .sheet .dates{gap:8px}.sheet .note{width:100%}
  #transactionScreen .tx-party{gap:8px;padding:12px 9px}
  #transactionScreen .tx-balance{max-width:44%;overflow-wrap:anywhere;flex-shrink:1}
  #transactionScreen .tx-balance strong{font-size:clamp(15px,4vw,20px)}
  #workerLoginPreview{max-width:100%;min-width:0}
  #workerUpiPanel{width:100%;max-width:100%;padding:10px!important}
 }
 @media(max-width:380px){
  .fields{grid-template-columns:minmax(0,1fr)}
  .grid{grid-template-columns:minmax(0,1fr)}
  .sheet .signatures,.sheet .dates{grid-template-columns:minmax(0,1fr)}
  .worker-money{padding:8px}.worker-money-grid strong{font-size:16px}
 }
 @media(min-width:1000px){
  body>main{max-width:1200px}
  .wrap{max-width:1200px}
 }
}
@media screen and (max-width:400px){#appNavigation button{padding-inline-end:24px}#appNavigation button::after{font-size:16px;right:6px}}
