/* IVyTAM replaces the general third-party navigation with a supplier menu.
   This changes navigation only: records and permissions remain native. */
#mainmenutd_companies { display: none !important; }
/* Keep Select2's accessible original controls in place. The bundled large
   negative margin moves right-aligned filters outside the page. */
select.select2-hidden-accessible { margin: 0 !important; left: 0 !important; top: 0 !important; right: auto !important; }
/* Tables may scroll inside their own container on narrow screens. */
#id-right { min-width: 0; }
#id-right .div-table-responsive { max-width: 100%; }
/* Purchases are available through the IVyTAM Compras sector. */
#mainmenutd_commercial { display: none !important; }
#mainmenutd_billing { display: none !important; }
/* Keep only purchase orders and supplier invoices in the home summary.
   Bank balances are available in their dedicated widget. */
.box-flex-item:has(.bg-infobox-action),
.box-flex-item:has(.bg-infobox-facture),
.box-flex-item:has(.bg-infobox-bank_account) { display: none !important; }

/* Institutional watermark on internal pages. Forms remain interactive. */
#id-right {
  position: relative;
  isolation: isolate;
}
#id-right::before {
  content: "";
  position: fixed;
  inset: 60px 0 0 250px;
  z-index: -1;
  pointer-events: none;
  background: url("../img/fondo-ivytam-20261008.png") center center / clamp(360px, 55vw, 820px) auto no-repeat;
  opacity: 0.11;
  filter: blur(3px);
}
@media (max-width: 767px) {
  #id-right::before { left: 0; background-size: 85vw auto; opacity: 0.08; }
}
@media print {
  #id-right::before { display: none !important; }
}

