/* TsQualy V1761.114 — Projetos A3: Quadro PDCA sem barra de rolagem e cabeçalho da ficha no padrão do sistema. */

/* Quadro PDCA: as 6 colunas dividem a largura disponível (sem largura mínima que force rolagem) */
#main .a3 .a3-quadro{ display:grid !important; grid-template-columns:repeat(6,minmax(0,1fr)) !important; gap:8px !important; overflow:visible !important; padding-bottom:0 !important; }
#main .a3 .a3-quadro .a3-col{ min-width:0 !important; padding:6px !important; }
#main .a3 .a3-quadro .a3-col-topo{ gap:6px; min-width:0; }
#main .a3 .a3-quadro .a3-col-topo b{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12.5px; }
#main .a3 .a3-quadro .a3-col-topo span{ flex:0 0 auto; }
#main .a3 .a3-quadro .a3-cartao{ width:100%; min-width:0; box-sizing:border-box; overflow-wrap:anywhere; word-break:normal; }
#main .a3 .a3-quadro .a3-cartao strong{ overflow-wrap:anywhere; hyphens:auto; }
#main .a3 .a3-quadro .a3-cartao-st{ min-width:0; }
@media (max-width:1180px){ #main .a3 .a3-quadro{ grid-template-columns:repeat(3,minmax(0,1fr)) !important; } }
@media (max-width:720px){ #main .a3 .a3-quadro{ grid-template-columns:repeat(2,minmax(0,1fr)) !important; } }
@media (max-width:460px){ #main .a3 .a3-quadro{ grid-template-columns:minmax(0,1fr) !important; } #main .a3 .a3-quadro .a3-col{ min-height:0; } }

/* Ficha: cabeçalho padrão (.topbar recebe identificação SGQ · MELHORIAS e o ícone da tela) */
#main .a3-ficha .a3-voltar{ margin:0 0 10px; }
#main .a3-ficha .a3-ficha-head{ align-items:center !important; }
#main .a3-ficha .a3-ficha-head .a3-ficha-tit{ flex:1 1 380px !important; min-width:0 !important; }
#main .a3-ficha .a3-ficha-head h1{ display:flex; align-items:center; flex-wrap:wrap; gap:6px 10px; }
#main .a3-ficha .a3-ficha-head .a3-head-cod{ font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; letter-spacing:0; }
#main .a3-ficha .a3-ficha-head h1 .a3-selo{ font-size:12px !important; font-weight:700; line-height:1.2; letter-spacing:0; }
#main .a3-ficha .a3-ficha-head p.a3-head-titulo{ margin-top:3px !important; color:#17324d !important; font-size:15px !important; font-weight:600 !important; line-height:1.35 !important; }
#main .a3-ficha .a3-ficha-head p.a3-head-meta{ margin-top:1px !important; }
#main .a3-ficha .a3-ficha-head p.a3-head-meta span{ white-space:nowrap; }
#main .a3-ficha .a3-ficha-head .a3-ficha-lado{ display:flex !important; flex-direction:row !important; align-items:center !important; gap:12px; flex-wrap:nowrap; justify-content:flex-end; flex:0 0 auto; min-width:0; max-width:100%; }
@media (max-width:1180px){ #main .a3-ficha .a3-ficha-head .a3-ficha-lado{ flex-wrap:wrap !important; flex:1 1 100% !important; justify-content:flex-start !important; } }
#main .a3-ficha .a3-ficha-head .a3-ficha-st{ min-width:132px; padding:6px 10px; margin:0; background:#fff; border:1px solid #d7e3f1; border-radius:9px; }
#main .a3-ficha .a3-ficha-head .a3-ficha-st span{ font-size:11px; color:#60758f; }
#main .a3-ficha .a3-ficha-head .a3-ficha-st b{ font-size:18px; color:#143f74; line-height:1.15; }
#main .a3-ficha .a3-ficha-head .a3-ficha-bts{ display:flex; gap:8px; flex-wrap:wrap; margin:0; }
#main .a3-ficha .a3-ficha-head .a3-ficha-bts button{ white-space:nowrap; }
@media (max-width:720px){
  #main .a3-ficha .a3-ficha-head .a3-ficha-lado{ width:100%; }
  #main .a3-ficha .a3-ficha-head .a3-ficha-st{ flex:1 1 140px; }
  #main .a3-ficha .a3-ficha-head .a3-ficha-bts{ flex:1 1 100%; }
  #main .a3-ficha .a3-ficha-head .a3-ficha-bts button{ flex:1 1 auto; white-space:normal; }
}

/* Filtros no celular: campos em largura total, "Só atrasados" sem ser cortado */
@media (max-width:560px){
  #main .a3 .a3-filtros .a3-campo{ flex:1 1 100% !important; min-width:0; }
  #main .a3 .a3-filtros .a3-chk{ flex:1 1 auto !important; justify-content:flex-start !important; gap:8px !important; min-width:0; }
  html body #app-shell #main .a3 .a3-filtros label.a3-chk > input[type=checkbox]{ flex:0 0 auto !important; width:16px !important; max-width:16px !important; height:16px; }
}
