/* =========================================================
   SMART NET - Marca Blanca + Correcciones de UI (Desk v16)
   Persistente via app smartnet_cdro (app_include_css).
   ========================================================= */

/* 1) Reemplazar "ERPNext" del sidebar por Smart Net */
.app-tag, .sidebar-brand, [data-app-name="ERPNext"] .sidebar-app-name {
  visibility: hidden !important; position: relative !important; font-size: 0 !important;
}
.app-tag::after, .sidebar-brand::after {
  content: "Smart Net" !important; visibility: visible !important;
  font-size: 13px !important; font-weight: 800 !important; color: #0d9488 !important;
  font-family: 'Outfit', sans-serif !important;
}
/* Ocultar el subtitulo "ERPNext" bajo el titulo del espacio de trabajo */
.sidebar-header .app-namespace,
.sidebar-header div[title="ERPNext"],
[data-app-name="ERPNext"] .sidebar-app-name { display: none !important; }

/* 2) Ocultar enlaces "Soporte" de Frappe y todos los enlaces externos a dominios Frappe */
[data-action="support"],
a[href*="frappe.io"], a[href*="discuss.frappe"], a[href*="github.com/frappe"], a[href*="frappeframework"] { display: none !important; }

/* 3) FIX del modal de Contabilidad: las etiquetas se encimaban.
   Causa: .menu-item-title usa white-space:nowrap sin limite de ancho,
   por lo que en rejilla desborda al vecino. Solucion: recortar dentro de su celda. */
.frappe-menu a, .dropdown-menu-item > a, .frappe-menu-item { min-width: 0 !important; }
.frappe-menu .menu-item-title,
.frappe-menu-item .menu-item-title,
.dropdown-menu-item .menu-item-title {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* 4) Tipografia y color corporativo */
h1,h2,h3,h4,h5,h6,.page-title { font-family:'Outfit',sans-serif !important; }
.btn-primary, .primary-action { background:#0d9488 !important; border-color:#0d9488 !important; }
