/* Gabo Launch Cleanup v61
   Escopo: remover textos instrutivos, cards de regras e blocos de passos de configuracao da interface final.
   As regras de negocio, permissoes e validacoes permanecem no backend. */
:root{
  --gabo-launch-muted:rgba(15,23,42,.52);
}

/* Cabecalhos ficam objetivos para a versao de lancamento. */
body.one-ui-x .page-head p,
body.one-ui-x .section-title p,
body.one-ui-x .ux-panel-header p,
body.one-ui-x .ux-config-card span,
body.one-ui-x .module-card span,
body.one-ui-x .mini-module span,
body.one-ui-x .metric-card span,
body.one-ui-x .dashboard-tile p,
body.one-ui-x .settings-card p{
  display:none!important;
}

/* Cards exclusivamente explicativos, de regras, politicas ou passos de configuracao saem da interface. */
body.one-ui-x .panel:has(> .clean-list):not(:has(form)):not(:has(table)):not(:has(.table-wrap)),
body.one-ui-x .panel:has(> ul.clean-list):not(:has(form)):not(:has(table)):not(:has(.table-wrap)),
body.one-ui-x .panel:has(> ol.clean-list):not(:has(form)):not(:has(table)):not(:has(.table-wrap)),
body.one-ui-x .panel:has(.ux-checks):not(:has(form)):not(:has(table)):not(:has(.table-wrap)),
body.one-ui-x .notice.info,
body.one-ui-x .notice.hint,
body.one-ui-x .notice.help,
body.one-ui-x .setup-hint,
body.one-ui-x .config-hint,
body.one-ui-x .help-card,
body.one-ui-x .instructions-card,
body.one-ui-x .rule-card,
body.one-ui-x .rules-card{
  display:none!important;
}

/* Quando uma coluna explicativa e removida, a area util ocupa a largura disponivel. */
body.one-ui-x .grid.two:has(> .panel:has(> .clean-list):not(:has(form)):not(:has(table)):not(:has(.table-wrap))),
body.one-ui-x .grid.two:has(> .panel:has(> ul.clean-list):not(:has(form)):not(:has(table)):not(:has(.table-wrap))),
body.one-ui-x .grid.two:has(> .panel:has(.ux-checks):not(:has(form)):not(:has(table)):not(:has(.table-wrap))){
  grid-template-columns:1fr!important;
}

/* Paineis permanecem com linguagem visual final, sem parecer guia de configuracao. */
body.one-ui-x .panel,
body.one-ui-x .table-wrap,
body.one-ui-x .metric-card,
body.one-ui-x .ux-config-card{
  border-radius:14px!important;
}

body.one-ui-x .page-head,
body.one-ui-x .panel .section-title,
body.one-ui-x .ux-panel-header{
  margin-bottom:14px!important;
}

body.one-ui-x .section-title h2,
body.one-ui-x .ux-panel-header h2,
body.one-ui-x .panel > h2{
  margin-bottom:0!important;
}

/* Textos auxiliares restantes, quando necessarios para dados e nao instrucao, ficam discretos. */
body.one-ui-x td small,
body.one-ui-x .tag + small,
body.one-ui-x .hash-text,
body.one-ui-x .field-help{
  color:var(--gabo-launch-muted)!important;
}

@media(max-width:780px){
  body.one-ui-x .grid.two:has(> .panel:has(> .clean-list)),
  body.one-ui-x .grid.two:has(> .panel:has(.ux-checks)){
    grid-template-columns:1fr!important;
  }
}


/* Gabo Launch v62 */
.mail-modal-v41#mail-full-message{display:none;}
.mail-modal-v41#mail-full-message.open{display:block;}
.mail-viewer-v62{max-width:980px;width:min(92vw,980px);max-height:86vh;overflow:auto;}
.mail-reader-body-v41 table{max-width:100%;border-collapse:collapse;}
.mail-reader-body-v41 td,.mail-reader-body-v41 th{border:1px solid rgba(15,23,42,.12);padding:8px;}
.ux-config-card em.tag{margin-left:auto;font-style:normal;}
@media(min-width:920px){.tickets-metrics,.grid.three{grid-template-columns:repeat(3,minmax(0,1fr));}}


/* Gabo Launch v63 - grids de acabamento final */
body.one-ui-x .reports-download-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:16px!important;
  margin-bottom:18px!important;
}
body.one-ui-x .report-download-card{
  min-height:134px!important;
  margin:0!important;
}
body.one-ui-x .report-download-card .ux-panel-header{
  min-height:52px!important;
  padding:16px!important;
}
body.one-ui-x .report-download-actions{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
  padding:16px!important;
}
body.one-ui-x .report-download-card:first-child .report-download-actions,
body.one-ui-x .report-download-card:nth-child(2) .report-download-actions{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
body.one-ui-x .report-download-actions .button{
  min-width:0!important;
  width:100%!important;
  justify-content:center!important;
  text-align:center!important;
  white-space:normal!important;
  line-height:1.15!important;
  min-height:42px!important;
  padding:10px 8px!important;
}
body.one-ui-x .reports-ledger-panel{
  margin-top:18px!important;
}
body.one-ui-x .pricebook-editor-grid{
  grid-template-columns:1fr!important;
}
body.one-ui-x .update-summary-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:16px!important;
  margin-bottom:18px!important;
}
body.one-ui-x .update-summary-grid .metric-card{
  min-height:112px!important;
  margin:0!important;
  padding:22px 24px!important;
}
body.one-ui-x .update-summary-grid .metric-card span{
  display:block!important;
  color:#516077!important;
  font-size:13px!important;
  font-weight:650!important;
  margin-bottom:8px!important;
}
body.one-ui-x .update-summary-grid .metric-card strong{
  display:block!important;
  font-size:22px!important;
  line-height:1.2!important;
  overflow-wrap:anywhere!important;
}
body.one-ui-x .update-online-placeholder{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
  border:1px solid rgba(199,216,232,.95)!important;
  border-radius:10px!important;
  padding:14px 16px!important;
  margin-bottom:14px!important;
  background:rgba(255,255,255,.72)!important;
}
@media(max-width:1180px){
  body.one-ui-x .reports-download-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:780px){
  body.one-ui-x .reports-download-grid,
  body.one-ui-x .update-summary-grid{grid-template-columns:1fr!important;}
  body.one-ui-x .report-download-card:first-child .report-download-actions,
  body.one-ui-x .report-download-card:nth-child(2) .report-download-actions,
  body.one-ui-x .report-download-actions{grid-template-columns:1fr!important;}
}

/* Gabo Launch v65 - restauracao de titulos dos cards
   Restaura labels/titulos removidos indevidamente pela limpeza v61,
   sem reativar textos longos, passo a passo, regras ou documentacao de planejamento. */
body.one-ui-x .metric-card > span,
body.one-ui-x .metric-card .metric-title,
body.one-ui-x .metric-card .card-title,
body.one-ui-x .ux-metric > div > span:first-child,
body.one-ui-x .ux-metric-card > span:first-child,
body.one-ui-x .dashboard-tile h2,
body.one-ui-x .dashboard-tile h3,
body.one-ui-x .settings-card h2,
body.one-ui-x .settings-card h3,
body.one-ui-x .report-download-card .ux-panel-header h2,
body.one-ui-x .ux-panel-header h2,
body.one-ui-x .panel > h2,
body.one-ui-x .section-title h2{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
}
body.one-ui-x .ux-panel-header{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
}
body.one-ui-x .ux-panel-header h2,
body.one-ui-x .panel > h2,
body.one-ui-x .section-title h2{
  color:#101828!important;
  font-weight:760!important;
  line-height:1.2!important;
}
body.one-ui-x .metric-card > span,
body.one-ui-x .ux-metric > div > span:first-child,
body.one-ui-x .ux-metric-card > span:first-child{
  color:#536277!important;
  font-size:12px!important;
  font-weight:680!important;
  letter-spacing:0!important;
  margin-bottom:6px!important;
}
body.one-ui-x .metric-card strong{
  margin-top:2px!important;
}

