/* Vector identity: scoped to EGNIN application chrome, never client documents. */
html.refined-ui .sidebar .egnin-brand {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  min-height: 88px !important;
  margin: 0 6px 20px !important;
  padding: 18px 16px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html.refined-ui .sidebar .egnin-sidebar-logo {
  width: 202px !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  filter: none !important;
  box-shadow: none !important;
}
html.refined-ui .brand-logo-light { display: block !important; }
html.refined-ui .brand-logo-dark { display: none !important; }
html.refined-ui[data-theme="dark"] .brand-logo-light { display: none !important; }
html.refined-ui[data-theme="dark"] .brand-logo-dark { display: block !important; }
html.refined-ui .topbar-heading {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}
html.refined-ui .header-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: 142px;
  padding: 4px 0;
  text-decoration: none;
}
html.refined-ui .header-brand img {
  width: 142px;
  height: auto;
  object-fit: contain;
  filter: none;
}
html.refined-ui .header-page-label {
  min-width: 0;
  padding-left: 22px;
  border-left: 1px solid rgba(112,128,120,.23);
}
html.refined-ui .header-page-label strong {
  display: block;
  max-width: 30vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.02em;
}
html.refined-ui .header-brand:focus-visible,
html.refined-ui .egnin-brand:focus-visible {
  outline: 2px solid #c38a3d;
  outline-offset: 5px;
  border-radius: 6px;
}
@media (max-width: 900px) {
  html.refined-ui .topbar-heading { gap: 12px; }
  html.refined-ui .header-brand,
  html.refined-ui .header-brand img { width: 110px; }
  html.refined-ui .header-page-label { display: none; }
}
@media (max-width: 420px) {
  html.refined-ui .header-brand,
  html.refined-ui .header-brand img { width: 84px; }
  html.refined-ui .topbar-heading { gap: 8px; }
}
@media print {
  .header-brand { display: none !important; }
}

/* EGNIN sidebar theme visibility v987 */
html.refined-ui body .sidebar .egnin-brand > img.egnin-sidebar-logo {
  flex: 0 0 auto !important; width: 202px !important;
  max-width: 100% !important; height: auto !important;
}
html.refined-ui body .sidebar .egnin-brand > img.brand-logo-light { display: block !important; }
html.refined-ui body .sidebar .egnin-brand > img.brand-logo-dark { display: none !important; }
html.refined-ui[data-theme="dark"] body .sidebar .egnin-brand > img.brand-logo-light { display: none !important; }
html.refined-ui[data-theme="dark"] body .sidebar .egnin-brand > img.brand-logo-dark { display: block !important; }
