/* V220.1.34 — densidade e leitura no celular. Sem mudanças no PDF ou na impressão. */
@media screen and (max-width:820px){
  /* O núcleo insere o estilo desta barra ao carregar. A sessão continua no cabeçalho. */
  body #saasBar{display:none!important}

  body #telaOrcamento #metricasOrcamento{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:9px!important;margin-bottom:12px!important
  }
  body #telaOrcamento #metricasOrcamento>.card{
    min-width:0;min-height:70px;padding:11px 12px!important;margin:0!important;
    border-radius:15px!important;box-shadow:0 5px 16px rgba(15,38,71,.055)!important
  }
  body #telaOrcamento #metricasOrcamento>.card:last-child{grid-column:1/-1;min-height:62px}
  body #telaOrcamento #metricasOrcamento .muted{font-size:11px!important;line-height:1.25}
  body #telaOrcamento #metricasOrcamento h2{
    margin:6px 0 0!important;font-size:17px!important;line-height:1.2;
    overflow-wrap:anywhere;font-variant-numeric:tabular-nums
  }

  body #telaOrcamento .layout-orc-calc{gap:12px!important}
  body #telaOrcamento .ocv-mobile-dados,
  body #telaOrcamento .ocv-mobile-logistica,
  body #telaOrcamento .ocv-mobile-itens{
    padding:14px!important;margin-bottom:12px!important;border-radius:17px!important
  }
  body #telaOrcamento .ocv-mobile-dados h2,
  body #telaOrcamento .ocv-mobile-logistica h2,
  body #telaOrcamento .ocv-mobile-itens h2{font-size:18px!important;line-height:1.25}
  body #telaOrcamento .ocv-mobile-dados>.grid3,
  body #telaOrcamento .ocv-mobile-logistica>.grid3{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:11px!important
  }
  body #telaOrcamento .ocv-mobile-dados>.grid3>.field:nth-child(-n+3){grid-column:1/-1}
  body #telaOrcamento .ocv-mobile-dados>.grid3>.field:nth-child(6){grid-column:1/-1}
  body #telaOrcamento .ocv-mobile-dados .field,
  body #telaOrcamento .ocv-mobile-logistica .field{min-width:0;margin:0!important}
  body #telaOrcamento .ocv-mobile-dados label,
  body #telaOrcamento .ocv-mobile-logistica label{font-size:12px!important;line-height:1.2}
  body #telaOrcamento .ocv-mobile-dados input,
  body #telaOrcamento .ocv-mobile-dados select,
  body #telaOrcamento .ocv-mobile-logistica input,
  body #telaOrcamento .ocv-mobile-logistica select{
    width:100%;min-width:0;min-height:44px!important;font-size:16px!important
  }
  body #telaOrcamento .ocv-mobile-itens>.between{
    display:flex!important;flex-direction:column;align-items:stretch!important;gap:10px
  }
  body #telaOrcamento .ocv-mobile-itens>.between>.row{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%
  }
  body #telaOrcamento .ocv-mobile-itens>.between>.row>button{
    width:100%;min-width:0;min-height:44px!important;padding:8px!important;
    font-size:13px!important;white-space:normal
  }
  body #telaOrcamento .ocv-mobile-itens>.between>.row>button:last-child{grid-column:1/-1}

  body #telaOrcamento #ocvDtBudgetCard{
    display:flex!important;flex-direction:column!important;align-items:stretch!important;
    gap:11px!important;min-height:0!important;padding:14px!important;margin-bottom:12px!important
  }
  body #telaOrcamento #ocvDtBudgetCard .ocv-dt-card-copy{
    display:flex;align-items:flex-start;gap:10px;min-width:0;width:100%
  }
  body #telaOrcamento #ocvDtBudgetCard .ocv-dt-card-copy>div{min-width:0;flex:1}
  body #telaOrcamento #ocvDtBudgetCard .ocv-dt-card-icon{
    flex:0 0 38px;width:38px;height:38px
  }
  body #telaOrcamento #ocvDtBudgetCard h2{font-size:17px!important;line-height:1.2}
  body #telaOrcamento #ocvDtBudgetCard p,
  body #telaOrcamento #ocvDtBudgetCard b{overflow-wrap:anywhere;line-height:1.35}
  body #telaOrcamento #ocvDtOpen{
    width:100%;min-width:0;min-height:44px!important;justify-content:center;
    margin:0!important;font-size:14px!important
  }

  body #telaOrcamento .ocv22012-budget-summary>h2{
    min-height:52px!important;padding:10px 13px!important;font-size:17px!important
  }
  body #telaOrcamento .ocv22012-heading-icon{width:32px;height:32px}
  body #telaOrcamento .ocv22012-value-list{padding:4px 12px 2px}
  body #telaOrcamento .ocv22012-value-list>.line{
    min-height:39px!important;gap:8px!important;padding:5px 0!important
  }
  body #telaOrcamento .ocv22012-row-caption{gap:7px;font-size:11px;line-height:1.2}
  body #telaOrcamento .ocv22012-row-icon{width:26px;height:26px;border-radius:8px}
  body #telaOrcamento .ocv22012-value-list>.line>b{font-size:12px}
  body #telaOrcamento .ocv22012-value-list>.totalLine{
    margin:7px -3px!important;padding:9px 7px!important;min-height:46px!important
  }
  body #telaOrcamento .ocv22012-value-list>.totalLine>b{font-size:17px}
  body #telaOrcamento .ocv22012-payment-section{
    margin:7px 10px 11px!important;padding:11px!important
  }
  body #telaOrcamento .ocv22012-entry-grid{
    display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr)!important;
    gap:8px!important
  }
  body #telaOrcamento .ocv22012-payment-section input,
  body #telaOrcamento .ocv22012-payment-section select{
    width:100%;min-width:0;min-height:44px!important;font-size:16px!important
  }
  body #telaOrcamento .ocv22012-budget-summary #orcTotalManualBox{
    padding:10px!important;margin:8px -3px 7px!important
  }
  body #telaOrcamento .ocv22012-budget-summary .orc-total-manual-actions{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important
  }
  body #telaOrcamento .ocv22012-budget-summary .orc-total-manual-actions button{
    min-width:0;min-height:44px!important;padding:7px!important;font-size:11px!important;
    white-space:normal
  }
  body #telaOrcamento .ocv22012-budget-summary .orc-total-manual-row input{
    min-height:44px!important;font-size:16px!important
  }
  body #telaOrcamento .ocv22012-budget-summary>.ocv131-financial-extra{
    margin:0 10px 11px!important;padding:10px!important
  }
  body #telaOrcamento .ocv22012-budget-summary>.ocv131-financial-extra .line{
    min-height:41px!important;padding:6px 0!important;gap:8px
  }

  body .ocv201-quick-hero{padding:16px!important;gap:9px!important;margin-bottom:10px}
  body .ocv201-quick-hero h2{font-size:21px!important;line-height:1.2}
  body .ocv201-quick-hero p{font-size:12px;line-height:1.35}
  body .ocv201-budget-tabs{padding:5px;gap:5px;margin-bottom:10px}
  body .ocv201-budget-tabs button{min-height:44px!important;padding:8px!important;font-size:13px!important}
  body .ocv201-pad{padding:13px!important}
  body .ocv201-paper-head{padding-bottom:10px}
  body .ocv201-source-switch select{width:100%!important;min-width:0!important;font-size:16px!important}
  body .ocv201-client-fields{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;padding:10px 0 13px!important
  }
  body .ocv201-client-fields>label{min-width:0;grid-column:auto!important}
  body .ocv201-client-fields>label:first-child,
  body .ocv201-client-fields>label.wide{grid-column:1/-1!important}
  body .ocv201-client-fields input,
  body .ocv201-client-fields select{width:100%;min-width:0;min-height:44px!important;font-size:16px!important}
  body .ocv201-pad-bottom{gap:10px!important;margin-top:12px!important}
  body .ocv201-pad-bottom textarea{min-height:76px!important;font-size:16px!important}
  body .ocv201-totals{gap:4px!important}
  body .ocv201-totals span{padding:7px 2px!important}
  body .ocv201-totals>strong{padding:11px!important;font-size:15px!important}
  body .ocv201-totals>strong b{font-size:19px!important}
  body .ocv201-quick-side{padding:8px!important}
  body .ocv201-action-group{padding:11px!important}
  body .ocv201-action-grid{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px
  }
  body .ocv201-action-grid .ocv201-side-action{
    min-width:0;min-height:44px!important;padding:7px!important;
    grid-template-columns:23px minmax(0,1fr)
  }
  body .ocv201-action-grid .ocv201-side-action small{display:none}
  body .ocv201-side-action{min-height:44px!important}

  body .hist186-hero{padding:15px!important;gap:10px!important}
  body .hist186-hero h2{font-size:20px!important;line-height:1.2}
  body .hist186-hero p{font-size:12px!important}
  body .hist186-summary{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important
  }
  body .hist186-summary>div{min-width:0;padding:11px!important;border-radius:14px}
  body .hist186-summary b{font-size:17px!important;overflow-wrap:anywhere}
  body .hist186-summary .hist212-private-summary{grid-column:1/-1}
  body .hist186-filters{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important
  }
  body .hist186-filters>label{grid-column:1/-1!important;min-width:0;min-height:44px}
  body .hist186-filters select{min-width:0;min-height:44px!important;font-size:16px!important}
  body .hist207-alphabet{
    display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;gap:5px!important;scrollbar-width:thin
  }
  body .hist207-alphabet button{flex:0 0 auto;min-width:44px;min-height:44px!important}
  body .hist207-letter-head{padding:9px!important}
  body .hist207-letter-badge{width:38px;height:38px;font-size:17px}

  body #telaVendasReceber .es190-hero{padding:15px!important;border-radius:18px}
  body #telaVendasReceber .es190-hero-top{gap:12px}
  body #telaVendasReceber .es190-title{gap:10px}
  body #telaVendasReceber .es190-title>span{width:40px;height:40px;border-radius:12px}
  body #telaVendasReceber .es190-title h2{font-size:22px!important}
  body #telaVendasReceber .es190-hero-actions{gap:6px}
  body #telaVendasReceber .es190-hero-actions .es190-btn{
    min-width:0;min-height:44px!important;padding:7px 5px;font-size:12px!important;
    white-space:normal;line-height:1.15
  }
  body #telaVendasReceber .es190-tabs{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;
    gap:9px!important;margin-top:13px;padding-top:12px
  }
  body #telaVendasReceber .es203-tab-group{width:100%;min-width:0;gap:5px}
  body #telaVendasReceber .es203-tab-group>span{font-size:10px!important}
  body #telaVendasReceber .es203-tab-group>div{
    display:flex!important;flex-wrap:nowrap!important;gap:6px!important;
    overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;
    padding-bottom:3px;scrollbar-width:thin
  }
  body #telaVendasReceber .es203-tab-group button{
    flex:0 0 auto;width:auto;min-height:44px!important;padding:8px 12px!important;
    font-size:12px!important
  }

  body #ocvAppBottomNavV126{
    border-color:#cbdcf4!important;box-shadow:0 10px 30px rgba(15,38,71,.16)!important
  }
}

@media screen and (max-width:360px){
  body #telaOrcamento #metricasOrcamento h2{font-size:15px!important}
  body .ocv201-action-grid .ocv201-side-action b{font-size:10px!important}
}
