/* /app/core/partials/header.css */

/* Lock background scroll when modal is open */
html.nx-modal-open,
html.nx-modal-open body {
  overflow: hidden;
}

/* Modal root */
.nx-modal-root.hidden { display: none; }

/* Overlay */
.nx-info-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
  z-index: 1000;
}

/* Center modal */
.nx-info-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1001;

  width: min(640px, calc(100vw - 32px));
  max-height: min(70vh, 560px);
  overflow: hidden;

  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.35);
}

.nx-info-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(248,250,252,1), rgba(255,255,255,1));
}

.nx-info-modal-title {
  font-weight: 800;
  font-size: 14px;
  color: #0f172a;
  letter-spacing: .01em;
}

.nx-info-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #fff;
  color: #0f172a;
  cursor: pointer;
}

.nx-info-modal-close:hover {
  background: #f8fafc;
}

.nx-info-modal-body {
  padding: 14px;
  font-size: 13px;
  line-height: 1.55;
  color: #0f172a;

  overflow: auto;
  max-height: calc(min(70vh, 560px) - 58px);

  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Mobile accordion dropdown */
.nx-dropdown { display: none; }
.nx-dropdown[data-open="1"] { display: block; }

.header{position:sticky;top:0;z-index:999999;}


/* Ensure desktop mega dropdown overlays any page cards */
.nx-dd-panel{z-index:999999 !important;}
