
/*
 Theme Name: CRM Fullwidth (v1.1)
 Theme URI: https://example.com/crm-fullwidth
 Author: Leo
 Author URI: https://example.com
 Description: Tema minimalista para usar o CRM em largura total. Inclui dois templates: (1) CRM Full Width e (2) CRM Blank Full Width (sem header/footer). Esta versão remove a barra admin nessas páginas e força 100% da largura real.
 Version: 1.1.0
 License: GPL-2.0-or-later
 License URI: https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: crm-fullwidth
*/

/* Reset básico */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, sans-serif; line-height: 1.5; color: #0f172a; background: #ffffff; }

/* Container padrão (usado só no template "CRM Full Width" com header/footer) */
.site { max-width: 1200px; margin: 0 auto; padding: 24px; }
.site-header { padding: 16px 0; border-bottom: 1px solid #e5e7eb; }
.site-title { font-size: 20px; margin: 0; font-weight: 600; color: #111827; }
.site-footer { padding: 24px 0; border-top: 1px solid #e5e7eb; font-size: 14px; color: #6b7280; }

/* FULL BLEED — força a área do CRM a ocupar 100% da viewport */
.alignfull, .is-layout-constrained.alignfull { 
  width: 100vw;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

/* Wrapper específico do CRM */
.crm-app-wrap { width: 100vw; max-width: none !important; margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important; }
.crm-inner { width: 100%; max-width: none; margin: 0; padding: 0; }

/* Caso o plugin tenha containers internos, removemos limites comuns */
.crm-app-wrap .crm-container,
.crm-app-wrap .crm-main,
.crm-app-wrap .container,
.crm-app-wrap .wrap,
.crm-app-wrap .content {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding-left: 0;
  padding-right: 0;
}

/* Altura total confortável */
.crm-app-wrap { min-height: 100dvh; background: #ffffff; }

/* Esconde título quando usando templates CRM */
.page-template-template-crm-fullwidth .entry-title,
.page-template-template-crm-blank .entry-title { display: none; }

/* Remoção da barra admin nesses templates via CSS (fallback) */
.page-template-template-crm-blank #wpadminbar,
.page-template-template-crm-fullwidth #wpadminbar {
  display: none !important;
  visibility: hidden !important;
}
.page-template-template-crm-blank,
.page-template-template-crm-fullwidth {
  margin-top: 0 !important;
}
