/* MOBILE-CHAMADOS-20261013-R1 — SOMENTE reporter, gestao de chamados e apresentacao config.
   Nao alterar CSS global da sidebar, financeiro, impostos ou permissoes. */
.support-reporter .support-panel, .support-manager, .cfgx-page { min-width:0; }
.support-reporter .support-panel { min-height:0; max-height:100dvh; }
.support-reporter .support-panel-head { flex-shrink:0; }
.support-reporter .support-body { min-height:0; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; }
.support-reporter .support-form, .support-reporter .support-choice-grid, .support-manager .support-detail-grid { min-width:0; }
.support-reporter .support-form-actions .btn { min-height:44px; }
.support-reporter .support-choice input:focus-visible + span { outline:2px solid var(--brand); outline-offset:2px; }
.support-reporter .support-review { display:flex;align-items:flex-start;flex-wrap:wrap;gap:7px 12px;margin:0 0 15px; }
.support-reporter .support-review .btn { min-height:40px; }
.support-reporter .support-review small { color:var(--text-3);align-self:center; }
.support-reporter .support-review-preview { flex:0 0 100%;background:var(--surface-2);border:1px solid var(--border);border-radius:10px;padding:12px;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--text); }
.support-reporter .support-review-preview[hidden] { display:none; }
.support-manager :is(.support-patch-head,.support-detail-manager-top,.support-ticket-hero,.support-manager-head) { min-width:0; }
.support-manager .support-manager-ticket-main, .support-manager .support-detail-content { min-width:0; }
.support-manager .support-manager-ticket-meta { overflow-wrap:anywhere; }
.support-manager .support-technical-json pre, .support-manager .support-prompt-card textarea { max-width:100%;box-sizing:border-box; }
@media (max-width:900px){
  .support-manager .support-detail-sidebar { grid-template-columns:minmax(0,1fr); }
  .support-manager .support-detail-grid { grid-template-columns:minmax(0,1fr); }
  .cfgx-page .cfgx-ux-section, .cfgx-page .cfgx-section-body, .cfgx-page .cfgx-user-toolbar { min-width:0; }
  #content .cfgx-drawer { max-width:100vw;max-height:100dvh; }
  #content .cfgx-drawer-body { min-width:0; min-height:0; overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch; }
  #content .cfgx-drawer :is(input,textarea,select) { max-width:100%;box-sizing:border-box; }
}
@media (max-width:760px){
  .support-reporter .support-panel { inset:0; width:100%;height:100dvh;border:0; }
  .support-reporter .support-panel-head { padding:14px 16px 12px; }
  .support-reporter .support-panel-head h2 { font-size:20px; }
  .support-reporter .support-close { min-width:44px;min-height:44px; }
  .support-reporter .support-body { padding:14px 15px calc(20px + env(safe-area-inset-bottom,0px)); }
  .support-reporter .support-choice-grid { grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7px; }
  .support-reporter .support-choice span { min-height:44px;display:flex!important;align-items:center;overflow-wrap:anywhere;font-size:12px!important; }
  .support-reporter .support-form-grid { grid-template-columns:minmax(0,1fr); }
  .support-reporter .support-form textarea { min-height:125px;font-size:16px; }
  .support-reporter .support-form select { font-size:16px; }
  .support-reporter .support-form-actions { position:sticky;bottom:0;padding:10px 0 calc(8px + env(safe-area-inset-bottom,0px));background:var(--surface); }
  .support-reporter .support-form-actions button { width:100%; }
  .support-reporter .support-fab { bottom:calc(76px + env(safe-area-inset-bottom,0px)); }
  .support-manager .support-manager-head { gap:12px; }
  .support-manager .support-manager-tabs { width:100%;min-width:0; }
  .support-manager .support-manager-tabs button { min-height:44px;min-width:0; }
  .support-manager .support-stats { grid-template-columns:repeat(2,minmax(0,1fr));gap:8px; }
  .support-manager .support-manager-ticket { display:flex;flex-direction:column;min-width:0;gap:9px; }
  .support-manager .support-ticket-hero,.support-manager .support-detail-manager-top { flex-wrap:wrap; }
  .support-manager .support-patch-row { grid-template-columns:minmax(0,1fr); }
  .support-manager .support-detail-sidebar { grid-template-columns:minmax(0,1fr); }
  .support-manager :is(select,textarea,input) { max-width:100%;font-size:16px; }
  .support-manager .support-reply { grid-template-columns:minmax(0,1fr); }
  .cfgx-page .cfgx-ux-shortcuts { grid-template-columns:minmax(0,1fr); }
  .cfgx-page .cfgx-ux-section .cfgx-section-head { grid-template-columns:34px minmax(0,1fr) auto!important; }
  .cfgx-page .cfgx-section-badge { display:none!important; }
  .cfgx-page .cfgx-section-title { display:flex;flex-direction:column;gap:3px;min-width:0;overflow-wrap:anywhere; }
  .cfgx-page .cfgx-section-title strong,.cfgx-page .cfgx-section-title small { display:block;white-space:normal; }
  .cfgx-page .cfgx-ux-section .cfgx-section-body { padding:13px!important; }
  .cfgx-page .cfgx-user-toolbar, .cfgx-page .cfgx-user-actions { flex-wrap:wrap; }
  .cfgx-page .cfgx-user-actions .btn { min-height:44px; }
  #content .cfgx-drawer>header { min-height:56px; }
  #content .cfgx-drawer-body { padding-bottom:calc(26px + env(safe-area-inset-bottom,0px))!important; }
  .cfgx-ux-editor-tabs { overflow-x:auto;max-width:100%; }
  .cfgx-ux-editor-tabs>button { flex:1 0 auto;min-height:44px; }
}
@media (max-width:380px){
  .support-reporter .support-choice-grid { grid-template-columns:minmax(0,1fr); }
  .support-manager .support-stats { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
}
@media (prefers-reduced-motion:reduce) { .support-reporter *, .support-manager * { scroll-behavior:auto!important;transition-duration:0.01ms!important; } }

/* Ajustes de contenção nas cinco raízes comerciais já documentadas.
   Não alcançam Varejo, Gerencial nem componentes de sistema. */
@media(max-width:760px){
 :is(#ped-raiz,#cli-raiz,#rep-raiz,#prod-raiz,#cat-raiz) { min-width:0;max-width:100%; }
 :is(#ped-raiz,#cli-raiz,#rep-raiz,#prod-raiz,#cat-raiz) :is(.ios-page-heading,.rep-page-head) { min-width:0;flex-wrap:wrap; }
 :is(#ped-raiz,#cli-raiz,#rep-raiz,#prod-raiz,#cat-raiz) :is(.ios-page-heading>div,.rep-page-head>div,.ios-filter-grid>*,.card) { min-width:0; }
 :is(#ped-raiz,#cli-raiz,#rep-raiz,#prod-raiz,#cat-raiz) :is(input.input,select.select,textarea.input) { max-width:100%;box-sizing:border-box;font-size:16px; }
 #ped-raiz .ped-create-actions { flex-wrap:wrap; }
 #cli-raiz .ios-client-toolbar { min-width:0;flex-wrap:wrap; }
 #rep-raiz .rep-master-tools { min-width:0;max-width:100%; }
 #prod-raiz [data-of-prod-filters] { min-width:0;grid-template-columns:minmax(0,1fr); }
 #cat-raiz #cat-corpo { min-width:0;max-width:100%; }
}
