/* NAFAS KEWANGAN - ONE LOGO / ALL NON-LANDING PAGES
 * Loaded LAST after original app.css, customer-portal.css, auth.css and gold-theme.css.
 * Presentation only. No business logic or JavaScript is modified.
 */
:root { --nk-brand-gold:#f0cb70; --nk-brand-deep:#061c32; }

/* CUSTOMER / ADMIN / PARTNER SHARED VIEW */
body.has-portal .sidebar a.brand,
body.customer-portal .sidebar a.customer-brand,
body.landing .topbar a.brand-top {
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  box-sizing:border-box !important;
  width:min(228px,100%) !important;
  min-width:0 !important;
  height:auto !important;
  min-height:0 !important;
  margin:0 0 14px 0 !important;
  padding:0 !important;
  background:transparent !important;
  background-color:transparent !important;
  background-image:none !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  overflow:visible !important;
  filter:none !important;
  backdrop-filter:none !important;
  line-height:normal !important;
  isolation:auto !important;
}
body.has-portal .sidebar a.brand::before,
body.has-portal .sidebar a.brand::after,
body.customer-portal .sidebar a.customer-brand::before,
body.customer-portal .sidebar a.customer-brand::after,
body.landing .topbar a.brand-top::before,
body.landing .topbar a.brand-top::after { content:none !important; display:none !important; }

body.has-portal .sidebar a.brand > img,
body.customer-portal .sidebar a.customer-brand > img,
body.landing .topbar a.brand-top > img {
  display:block !important;
  opacity:1 !important;
  visibility:visible !important;
  box-sizing:border-box !important;
  width:100% !important;
  max-width:100% !important;
  height:auto !important;
  max-height:none !important;
  aspect-ratio:1500 / 491 !important;
  object-fit:contain !important;
  object-position:left center !important;
  padding:0 !important;
  margin:0 !important;
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  filter:none !important;
}

/* Restore legible navigation and account text on the dark Admin/Partner sidebar. */
body.has-portal:not(.customer-portal) .sidebar {
  background:linear-gradient(175deg,#061c32,#082b4b) !important;
  border-right-color:rgba(240,203,112,.24) !important;
}
body.has-portal:not(.customer-portal) .sidebar nav a {
  color:#f2f6fc !important;
  text-transform:uppercase;
  font-weight:750;
}
body.has-portal:not(.customer-portal) .sidebar nav a:hover,
body.has-portal:not(.customer-portal) .sidebar nav a:focus-visible {
  color:var(--nk-brand-gold) !important;
  background:rgba(255,255,255,.08) !important;
}
body.has-portal:not(.customer-portal) .sidebar nav a.selected {
  color:#fff !important;
  background:rgba(240,203,112,.20) !important;
  border-left:3px solid var(--nk-brand-gold) !important;
}
body.has-portal:not(.customer-portal) .sidebar .portal-label {
  color:#ffe3a1 !important;
  background:rgba(240,203,112,.12) !important;
  border:1px solid rgba(240,203,112,.38) !important;
}
body.has-portal:not(.customer-portal) .sidebar .sidebar-bottom,
body.has-portal:not(.customer-portal) .sidebar .sidebar-bottom span {
  color:#f2f6fc !important;
}
body.has-portal:not(.customer-portal) .sidebar .sidebar-bottom small {
  color:#bfd1e1 !important;
}
body.has-portal:not(.customer-portal) .sidebar .sidebar-bottom a {
  color:#ffe0a0 !important;
}

/* LOGIN + CHECKOUT: both use auth.css and class nk-auth-page. */
body.nk-auth-page .nk-auth-header a.nk-brand {
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  box-sizing:border-box !important;
  width:clamp(190px,21vw,275px) !important;
  min-width:0 !important;
  height:auto !important;
  margin:0 !important;
  padding:0 !important;
  background:transparent !important;
  background-color:transparent !important;
  background-image:none !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  overflow:visible !important;
  filter:none !important;
}
body.nk-auth-page .nk-auth-header a.nk-brand::before,
body.nk-auth-page .nk-auth-header a.nk-brand::after {
  content:none !important;
  display:none !important;
}
body.nk-auth-page .nk-auth-header a.nk-brand > img {
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  width:100% !important;
  max-width:100% !important;
  height:auto !important;
  max-height:none !important;
  aspect-ratio:1500 / 491 !important;
  object-fit:contain !important;
  object-position:left center !important;
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  filter:none !important;
  padding:0 !important;
  margin:0 !important;
}

@media (max-width:850px) {
  body.has-portal .sidebar a.brand,
  body.customer-portal .sidebar a.customer-brand { width:min(210px,100%) !important; }
}
@media (max-width:580px) {
  body.nk-auth-page .nk-auth-header a.nk-brand {width:clamp(132px,43vw,190px) !important;}
  body.has-portal .sidebar a.brand,
  body.customer-portal .sidebar a.customer-brand {width:min(195px,100%) !important;}
  body.landing .topbar a.brand-top {width:150px !important;}
}
