/* Talero 9.0.65 - bezpečné doladění webového rozhraní pro telefony.
   Žádná změna obchodní logiky ani dat. */
@media(max-width:760px){
  html,body {min-width:0;max-width:100%;}
  .app-shell,.inner,.view,.edit-card,.white-panel,.invoice-items-panel,
  .invoice-core-grid,.huu-invoice-bank-fields,.huu-invoice-bank-row,.huu-invoice-dates{min-width:0;max-width:100%;box-sizing:border-box;}
  .inner{padding-bottom:calc(112px + env(safe-area-inset-bottom));}
  .form-grid,.invoice-core-grid,.huu-invoice-dates,.huu-invoice-bank-fields{
    max-width:100%;min-width:0;
  }
  .app-shell :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){
    font-size:16px!important;max-width:100%;min-width:0;box-sizing:border-box;
  }
  #invoice-form :is(.invoice-core-grid,.invoice-lines-section,.invoice-items-panel,.huu-invoice-bank-row){overflow-wrap:anywhere;}
  #invoice-form .invoice-payment-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;width:100%;}
  #invoice-form .invoice-payment-choices button{min-width:0;width:100%;font-size:12px;min-height:42px;padding:8px 4px;}
  #invoice-form .huu-paid-on-create{max-width:100%;min-height:0!important;padding:0!important;}
  #invoice-form .huu-paid-check{min-height:44px;display:flex;align-items:center;gap:10px;padding:8px 0;}
  #invoice-form .huu-paid-check input{flex:0 0 18px;width:18px;height:18px;margin:0;}
  #invoice-form .huu-paid-date{width:100%;max-width:100%;}
  #invoice-form .form-actions,.edit-card .form-actions{display:flex;flex-wrap:wrap;gap:9px;}
  #invoice-form .form-actions :is(button,input),.edit-card .form-actions button{min-height:45px;}
  .edit-card,.white-panel{min-width:0;}
  .bottom-nav{padding-bottom:max(6px,env(safe-area-inset-bottom));box-sizing:content-box;}
  .bottom-nav button{min-width:0;min-height:44px;touch-action:manipulation;}
  .bottom-nav button small{font-size:10px;}
  .auth-card{max-width:100%;}
  .huu-register-plans{grid-template-columns:repeat(3,minmax(0,1fr));}
  .huu-register-plans label{min-width:0;}
  .huu-register-plans small{white-space:normal;line-height:1.2;}
  .huu-billing-plans{max-width:100%;}
  .huu-billing-option{min-width:0;}
  .huu-billing-option button{min-width:0;white-space:normal;}
  .list-panel,.chart-scroll,.compare-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;}
}
@media(max-width:390px){
  .huu-register-plans label{padding:8px 5px;gap:3px;}
  .huu-register-plans strong{font-size:12px;}
  .huu-register-plans small{font-size:10px;}
  #invoice-form .invoice-payment-choices{gap:4px;}
  #invoice-form .invoice-payment-choices button{font-size:11px;padding:8px 3px;}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;}}
