/* Ajustes de uso em telas estreitas e dispositivos touch. */
button,a,input,select,textarea{touch-action:manipulation}
footer{flex-wrap:wrap}
footer span,footer a{overflow-wrap:anywhere}
.plan-option{width:100%;font:inherit;text-align:left}
.summary-row span:last-child{min-width:0;overflow-wrap:anywhere}
.modal-box{max-height:calc(100dvh - 24px);overflow:auto}
.admin .button-success,.admin .button-danger,.admin .button-blue,.admin .button-muted{appearance:none;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:12px 16px;border:1px solid transparent;border-radius:9px;font-family:inherit;font-size:14px;font-weight:700;line-height:1.2;text-align:center;text-decoration:none;cursor:pointer;transition:background-color .2s ease,border-color .2s ease,transform .2s ease}
.admin .button-success{background:#19865C;color:#fff}
.admin .button-danger{background:#C74343;color:#fff}
.admin .button-blue{background:#256EA5;color:#fff}
.admin .button-muted{background:#fff;color:#0B4946;border-color:#0B4946}

@media (max-width:920px){
  .admin-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .admin-grid #refresh-btn{grid-column:1/-1;justify-self:start}
  .lead-table{display:block;overflow:visible;white-space:normal;border:0;background:transparent;box-shadow:none}
  .lead-table thead{display:none}
  .lead-table tbody{display:grid;gap:12px}
  .lead-table tr{display:grid;gap:2px;padding:14px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 10px 28px rgba(12,54,57,.05)}
  .lead-table td{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding:7px 0;border:0;white-space:normal;overflow-wrap:anywhere}
  .lead-table td::before{flex:0 0 auto;color:var(--muted);font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
  .lead-table td:nth-child(1){display:grid;gap:4px}
  .lead-table td:nth-child(1)::before{content:'Solicitação'}
  .lead-table td:nth-child(2)::before{content:'WhatsApp'}
  .lead-table td:nth-child(3)::before{content:'Valor'}
  .lead-table td:nth-child(4)::before{content:'Status'}
  .lead-table td:nth-child(5)::before{content:'Enviada em'}
  .lead-table td:nth-child(6){justify-content:flex-end;border-top:1px solid #edf2ef;margin-top:4px;padding-top:10px}
  .lead-table td:nth-child(6)::before{display:none}
  .lead-table td[colspan]{display:block!important;text-align:center}
  .lead-table td[colspan]::before{display:none}
}

@media (max-width:680px){
  body{overflow-x:hidden}
  .sc-badge{max-width:100%;white-space:normal;line-height:1.35}
  .wizard-head{width:100%}
  .wizard-head>*{max-width:100%}
  .nav-actions{flex-direction:column-reverse;align-items:stretch;gap:8px}
  .nav-actions .primary,.nav-actions .secondary{width:100%;min-height:46px;text-align:center}
  .summary-row{display:grid;gap:3px}
  .summary-row span:last-child{text-align:left}
  .modal{padding:12px}
  .modal-box{padding:24px 20px;border-radius:12px}
  .modal-actions{flex-direction:column-reverse;align-items:stretch}
  .modal-actions button,.modal-actions a{width:100%;min-height:46px;text-align:center}
  .admin-grid{grid-template-columns:1fr}
  .admin-grid #refresh-btn{grid-column:auto;width:100%}
  .admin-head-actions{width:100%;justify-content:space-between;flex-wrap:wrap}
  .detail{padding:18px}
  .detail-top-side{width:100%}
  .action-bar{width:100%;display:grid;grid-template-columns:1fr}
  .action-bar button{width:100%;min-height:46px}
  .copy-value{min-width:0;align-items:flex-start;flex-wrap:wrap}
  .copy-value strong{min-width:0;flex:1 1 150px}
  .document-actions{flex-wrap:wrap}
  .document-actions button,.document-actions a{min-height:40px;display:inline-flex;align-items:center;justify-content:center}
  .admin-modal{max-height:calc(100dvh - 24px);padding:22px 18px}
  .lightbox-content{width:100%;height:calc(100dvh - 24px);padding:12px;border-radius:12px}
  .lightbox-head,.lightbox-foot{align-items:stretch;flex-direction:column}
  .lightbox-head button,.lightbox-foot button{width:100%;min-height:44px}
  .lightbox-foot span{text-align:center;overflow-wrap:anywhere}
}

@media (max-width:360px){
  .wizard-shell{padding-left:10px;padding-right:10px}
  .form-panel{padding-left:12px;padding-right:12px}
  .step-title{font-size:24px}
  .score-heading{align-items:flex-start;flex-direction:column;gap:3px}
  .hero{padding-left:14px;padding-right:14px}
  .hero h1{font-size:clamp(34px,10.5vw,44px)}
}
