/* SHARIF_DEYN_BRAND_SYSTEM_V1 */

:root{
  --sd-navy:#0b2f6b;
  --sd-navy-soft:#173b67;
  --sd-red:#d71920;
  --sd-header-bg:#ffffff;
  --sd-header-border:#e3eaf2;
  --sd-header-text:#173b67;
  --sd-header-muted:#64748b;
}

/* ------------------------------------------------------------
   GLOBAL BRAND IMAGES
------------------------------------------------------------ */

.dn-sharif-deyn-mark{
  display:block;
  width:46px;
  height:auto;
  flex:0 0 auto;
  object-fit:contain;
}

.dn-sharif-deyn-header-mark{
  display:block;
  width:34px;
  height:auto;
  flex:0 0 auto;
  object-fit:contain;
}

/* chooser */

.dn-portal-valora-brand .dn-sharif-deyn-mark{
  width:52px;
}

/* login */

.dn-investor-login-brand .dn-sharif-deyn-mark{
  width:46px;
}


/* ------------------------------------------------------------
   LIGHT TOP BAR
------------------------------------------------------------ */

.dn-topbar{
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f8fbfe 100%
    ) !important;

  color:var(--sd-header-text) !important;

  border-bottom:
    1px solid
    var(--sd-header-border) !important;

  box-shadow:
    0 3px 14px
    rgba(23,59,103,.06) !important;
}

.dn-topbar .dn-brand{
  color:var(--sd-header-text) !important;
}

.dn-topbar .dn-name{
  color:var(--sd-header-text) !important;
  font-weight:800 !important;
}

.dn-topbar .dn-tag{
  color:var(--sd-header-muted) !important;
}

/* make inherited topbar text readable on the light header */

.dn-topbar-row{
  color:var(--sd-header-text) !important;
}

/* SHARIF_DEYN_TOPBAR_FIX_V2_START */

/* Hide only the obsolete development notice */
.dn-investor-dev-notice-wrapper{
  display:none !important;
}


/* ------------------------------------------------------------
   PROFILE ON LIGHT TOPBAR
------------------------------------------------------------ */

html body .dn-topbar #dn-user-profile-slot{
  color:#173B67 !important;
  opacity:1 !important;
}

html body .dn-topbar #dn-user-profile-slot *{
  color:#173B67 !important;
  opacity:1 !important;
}

html body .dn-topbar #dn-user-profile-slot button,
html body .dn-topbar #dn-user-profile-slot [role="button"]{
  color:#173B67 !important;
  background:#FFFFFF !important;
  border-color:#D6E0EA !important;
  opacity:1 !important;
}

html body .dn-topbar #dn-user-profile-slot button *,
html body .dn-topbar #dn-user-profile-slot [role="button"] *{
  color:#173B67 !important;
  opacity:1 !important;
}


/* Name */
html body .dn-topbar #dn-user-profile-slot [class*="name"]{
  color:#173B67 !important;
  font-weight:700 !important;
  opacity:1 !important;
}


/* Phone / secondary text */
html body .dn-topbar #dn-user-profile-slot [class*="phone"],
html body .dn-topbar #dn-user-profile-slot [class*="mobile"],
html body .dn-topbar #dn-user-profile-slot .dn-muted{
  color:#52677D !important;
  opacity:1 !important;
}


/* Hover */
html body .dn-topbar #dn-user-profile-slot button:hover,
html body .dn-topbar #dn-user-profile-slot [role="button"]:hover{
  background:#F4F8FC !important;
  border-color:#C4D2E0 !important;
}


/* SVG icons following currentColor */
html body .dn-topbar #dn-user-profile-slot svg{
  color:#173B67 !important;
  stroke:currentColor;
}

/* SHARIF_DEYN_TOPBAR_FIX_V2_END */

/* SHARIF_DEYN_LOGOUT_RED_START */

/* Restore destructive/logout action color inside light topbar profile */
.dn-topbar #dn-user-profile-slot [class*="logout"],
.dn-topbar #dn-user-profile-slot [class*="signout"],
.dn-topbar #dn-user-profile-slot [data-action="logout"],
.dn-topbar #dn-user-profile-slot [data-logout],
.dn-topbar #dn-user-profile-slot .dn-danger,
.dn-topbar #dn-user-profile-slot .dn-text-danger{
  color:#DC2626 !important;
}

.dn-topbar #dn-user-profile-slot [class*="logout"] *,
.dn-topbar #dn-user-profile-slot [class*="signout"] *,
.dn-topbar #dn-user-profile-slot [data-action="logout"] *,
.dn-topbar #dn-user-profile-slot [data-logout] *,
.dn-topbar #dn-user-profile-slot .dn-danger *,
.dn-topbar #dn-user-profile-slot .dn-text-danger *{
  color:#DC2626 !important;
}

.dn-topbar #dn-user-profile-slot [class*="logout"]:hover,
.dn-topbar #dn-user-profile-slot [class*="signout"]:hover,
.dn-topbar #dn-user-profile-slot [data-action="logout"]:hover,
.dn-topbar #dn-user-profile-slot [data-logout]:hover{
  color:#B91C1C !important;
  background:#FEF2F2 !important;
}

/* SHARIF_DEYN_LOGOUT_RED_END */

/* SHARIF_DEYN_INVESTOR_HEADER_BRAND_V3 */

/* investor topbar: exact public-header brand */
#dn-app.dn-role-investor .dn-topbar .dn-brand{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
}

#dn-app.dn-role-investor .dn-topbar .dn-sharif-deyn-header-mark{
  display:block !important;
  width:34px !important;
  height:auto !important;
  flex:0 0 auto !important;
  object-fit:contain !important;
}

#dn-app.dn-role-investor .dn-topbar .dn-brand-name-stack{
  display:flex !important;
  align-items:center !important;
  direction:ltr !important;
}

#dn-app.dn-role-investor .dn-topbar .dn-brand-title-en{
  display:inline-block !important;
  visibility:visible !important;
  opacity:1 !important;
  direction:ltr !important;
  white-space:nowrap !important;
}

/* prevent any Persian duplicate brand title */
#dn-app.dn-role-investor .dn-topbar .dn-brand-name-stack > :not(.dn-brand-title-en){
  display:none !important;
}

#dn-app.dn-role-investor .dn-topbar .dn-brand-title-en::before,
#dn-app.dn-role-investor .dn-topbar .dn-brand-title-en::after,
#dn-app.dn-role-investor .dn-topbar .dn-brand-name-stack::before,
#dn-app.dn-role-investor .dn-topbar .dn-brand-name-stack::after{
  content:none !important;
  display:none !important;
}
