@import url("../../bootstrap.min.css");
@import url("https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css");
@import url("../../alerts/sweetalert2.min.css");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css");
@import url("https://cdn.jsdelivr.net/npm/datatables.net-bs4@1.13.8/css/dataTables.bootstrap4.min.css");
@import url("https://cdn.jsdelivr.net/npm/datatables.net-responsive-bs4@2.5.0/css/responsive.bootstrap4.min.css");
@import url("https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css");
@import url("https://cdn.jsdelivr.net/npm/summernote@0.8.20/dist/summernote-bs4.min.css");

/*
  NSPS Unified Portal Stylesheet
  -------------------------------------------------------------
  Keep this as the only stylesheet linked from header.php.
  Third-party Bootstrap/plugin styles are imported above, while
  all portal layout, theme variants and page components live here.
*/

:root {
  --portal-sidebar-width: 286px;
  --portal-sidebar-mini-width: 92px;
  --portal-header-height: 76px;
  --portal-radius-xl: 30px;
  --portal-radius-lg: 24px;
  --portal-radius-md: 18px;
  --portal-radius-sm: 12px;
  --portal-font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --portal-ink: #12211b;
  --portal-muted: #66756f;
  --portal-bg: #f5f9f7;
  --portal-panel: rgba(255, 255, 255, .94);
  --portal-panel-strong: #ffffff;
  --portal-line: rgba(15, 23, 42, .10);
  --portal-soft: rgba(8, 117, 80, .08);
  --portal-primary: #087550;
  --portal-primary-2: #0f766e;
  --portal-primary-dark: #03261d;
  --portal-accent: #d8a72d;
  --portal-accent-2: #f0c65b;
  --portal-primary-rgb: 8, 117, 80;
  --portal-accent-rgb: 216, 167, 45;
  --portal-shadow-xs: 0 10px 28px rgba(15, 23, 42, .08);
  --portal-shadow-sm: 0 18px 48px rgba(15, 23, 42, .12);
  --portal-shadow-md: 0 28px 90px rgba(15, 23, 42, .18);
  --portal-shadow-primary: 0 22px 58px rgba(var(--portal-primary-rgb), .24);
}

body.theme-azure-green {
  --portal-primary: #087550;
  --portal-primary-2: #14b8a6;
  --portal-primary-dark: #03261d;
  --portal-accent: #d8a72d;
  --portal-accent-2: #f0c65b;
  --portal-primary-rgb: 8, 117, 80;
  --portal-accent-rgb: 216, 167, 45;
}

body.theme-azure-blue {
  --portal-primary: #0b63ce;
  --portal-primary-2: #38bdf8;
  --portal-primary-dark: #061c3b;
  --portal-accent: #22d3ee;
  --portal-accent-2: #67e8f9;
  --portal-primary-rgb: 11, 99, 206;
  --portal-accent-rgb: 34, 211, 238;
}

body.theme-azure-gold {
  --portal-primary: #b77905;
  --portal-primary-2: #f59e0b;
  --portal-primary-dark: #3b2602;
  --portal-accent: #facc15;
  --portal-accent-2: #fde047;
  --portal-primary-rgb: 183, 121, 5;
  --portal-accent-rgb: 250, 204, 21;
}

body.theme-azure-teal {
  --portal-primary: #0f766e;
  --portal-primary-2: #14b8a6;
  --portal-primary-dark: #042f2e;
  --portal-accent: #2dd4bf;
  --portal-accent-2: #5eead4;
  --portal-primary-rgb: 15, 118, 110;
  --portal-accent-rgb: 45, 212, 191;
}

body.theme-azure-purple {
  --portal-primary: #6d28d9;
  --portal-primary-2: #8b5cf6;
  --portal-primary-dark: #2e1065;
  --portal-accent: #c084fc;
  --portal-accent-2: #d8b4fe;
  --portal-primary-rgb: 109, 40, 217;
  --portal-accent-rgb: 192, 132, 252;
}

body.theme-azure-crimson {
  --portal-primary: #be123c;
  --portal-primary-2: #f43f5e;
  --portal-primary-dark: #4c0519;
  --portal-accent: #fb7185;
  --portal-accent-2: #fda4af;
  --portal-primary-rgb: 190, 18, 60;
  --portal-accent-rgb: 251, 113, 133;
}

body.theme-azure-navy {
  --portal-primary: #1d4ed8;
  --portal-primary-2: #60a5fa;
  --portal-primary-dark: #0f172a;
  --portal-accent: #06b6d4;
  --portal-accent-2: #22d3ee;
  --portal-primary-rgb: 29, 78, 216;
  --portal-accent-rgb: 6, 182, 212;
}

body.theme-azure-indigo {
  --portal-primary: #4f46e5;
  --portal-primary-2: #818cf8;
  --portal-primary-dark: #1e1b4b;
  --portal-accent: #a78bfa;
  --portal-accent-2: #c4b5fd;
  --portal-primary-rgb: 79, 70, 229;
  --portal-accent-rgb: 167, 139, 250;
}

body.theme-azure-emerald {
  --portal-primary: #047857;
  --portal-primary-2: #10b981;
  --portal-primary-dark: #022c22;
  --portal-accent: #84cc16;
  --portal-accent-2: #a3e635;
  --portal-primary-rgb: 4, 120, 87;
  --portal-accent-rgb: 132, 204, 22;
}

body.theme-azure-lagoon {
  --portal-primary: #0284c7;
  --portal-primary-2: #38bdf8;
  --portal-primary-dark: #082f49;
  --portal-accent: #14b8a6;
  --portal-accent-2: #2dd4bf;
  --portal-primary-rgb: 2, 132, 199;
  --portal-accent-rgb: 20, 184, 166;
}

body.theme-azure-sunset {
  --portal-primary: #ea580c;
  --portal-primary-2: #fb923c;
  --portal-primary-dark: #431407;
  --portal-accent: #facc15;
  --portal-accent-2: #fde047;
  --portal-primary-rgb: 234, 88, 12;
  --portal-accent-rgb: 250, 204, 21;
}

body.theme-azure-rose {
  --portal-primary: #db2777;
  --portal-primary-2: #f472b6;
  --portal-primary-dark: #500724;
  --portal-accent: #fb7185;
  --portal-accent-2: #fda4af;
  --portal-primary-rgb: 219, 39, 119;
  --portal-accent-rgb: 251, 113, 133;
}

body.theme-azure-slate {
  --portal-primary: #334155;
  --portal-primary-2: #64748b;
  --portal-primary-dark: #0f172a;
  --portal-accent: #38bdf8;
  --portal-accent-2: #7dd3fc;
  --portal-primary-rgb: 51, 65, 85;
  --portal-accent-rgb: 56, 189, 248;
}

body.theme-azure-copper {
  --portal-primary: #a16207;
  --portal-primary-2: #d97706;
  --portal-primary-dark: #451a03;
  --portal-accent: #f59e0b;
  --portal-accent-2: #fbbf24;
  --portal-primary-rgb: 161, 98, 7;
  --portal-accent-rgb: 245, 158, 11;
}

body.theme-azure-forest {
  --portal-primary: #166534;
  --portal-primary-2: #22c55e;
  --portal-primary-dark: #052e16;
  --portal-accent: #84cc16;
  --portal-accent-2: #bef264;
  --portal-primary-rgb: 22, 101, 52;
  --portal-accent-rgb: 132, 204, 22;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body.portal-shell {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--portal-ink);
  font-family: var(--portal-font);
  background:
    radial-gradient(circle at 4% 4%, rgba(var(--portal-accent-rgb), .16), transparent 30rem),
    radial-gradient(circle at 98% 6%, rgba(var(--portal-primary-rgb), .16), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, var(--portal-bg) 42%, #edf7f2 100%);
}

body.portal-shell a {
  color: var(--portal-primary);
  text-decoration: none;
}

body.portal-shell a:hover {
  color: var(--portal-primary-dark);
  text-decoration: none;
}

.wrapper {
  min-height: 100vh;
  position: relative;
}

.main-header {
  position: fixed;
  top: 0;
  right: 0;
  left: var(--portal-sidebar-width);
  z-index: 1030;
  min-height: var(--portal-header-height);
  padding: 0 22px;
  border: 0;
  border-radius: 0;
  color: #fff;
  background:
    radial-gradient(circle at 8% 0%, rgba(var(--portal-accent-rgb), .30), transparent 24rem),
    radial-gradient(circle at 96% -20%, rgba(255, 255, 255, .18), transparent 20rem),
    linear-gradient(135deg, var(--portal-primary-dark), var(--portal-primary) 58%, var(--portal-primary-2)) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 14px 36px rgba(var(--portal-primary-rgb), .22);
  transition: left .25s ease, right .25s ease, transform .25s ease, min-height .25s ease;
}

.navbar-nav {
  align-items: center;
}

.main-header .nav-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, .92) !important;
  font-weight: 800;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.main-header .nav-link:hover,
.main-header .nav-link:focus {
  color: #fff !important;
  background: rgba(255, 255, 255, .14);
  transform: translateY(-1px);
}

.portal-sidebar-toggle {
  width: 44px;
  justify-content: center;
  color: #fff !important;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .22) !important;
  box-shadow: none;
}

.portal-sidebar-toggle:hover,
.portal-sidebar-toggle:focus {
  color: #fff !important;
  background: rgba(255, 255, 255, .26);
}

.main-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1040;
  width: var(--portal-sidebar-width);
  min-height: 100vh;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, .12);
  background:
    radial-gradient(circle at 18% 8%, rgba(var(--portal-accent-rgb), .30), transparent 18rem),
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, .11), transparent 18rem),
    linear-gradient(180deg, var(--portal-primary-dark) 0%, var(--portal-primary) 52%, #071b16 100%);
  box-shadow: 20px 0 60px rgba(var(--portal-primary-rgb), .22);
  transition: width .25s ease, transform .25s ease;
}

.main-sidebar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .32;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.84), rgba(0,0,0,.08));
}

.main-sidebar .sidebar {
  position: relative;
  z-index: 1;
  height: calc(100vh - 96px);
  overflow-y: auto;
  padding: 16px 14px 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.36) transparent;
}

.main-sidebar .sidebar::-webkit-scrollbar {
  width: 8px;
}

.main-sidebar .sidebar::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.28);
  border-radius: 999px;
}

.brand-link {
  position: relative;
  z-index: 1;
  min-height: 96px;
  display: flex !important;
  align-items: center;
  gap: 14px;
  padding: 18px 18px 14px !important;
  color: #fff !important;
  border: 0 !important;
  background: rgba(255, 255, 255, .06);
}

.portal-brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex: 0 0 56px;
  border-radius: 18px;
  padding: 7px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(0,0,0,.24);
}

.brand-text {
  min-width: 0;
  display: block;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -.02em;
  white-space: normal !important;
}

.brand-subtext {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, .74);
  font-size: .72rem;
  font-weight: 650;
  line-height: 1.25;
}

.portal-user-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  margin: 4px 0 18px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 22px;
  background: rgba(255, 255, 255, .12);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .13);
}

.portal-user-card img {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  object-fit: cover;
  border-radius: 18px;
  border: 3px solid rgba(255, 255, 255, .35);
  background: rgba(255,255,255,.22);
}

.portal-user-card p {
  margin: 0;
}

.portal-user-name {
  color: #fff;
  font-size: .93rem;
  font-weight: 900;
  line-height: 1.25;
}

.portal-user-meta {
  color: rgba(255, 255, 255, .72);
  font-size: .74rem;
  font-weight: 650;
  line-height: 1.35;
}

.nav-sidebar {
  gap: 4px;
}

.nav-sidebar .nav-header {
  margin: 18px 7px 8px;
  padding: 0;
  color: rgba(255,255,255,.55);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nav-sidebar .nav-item {
  margin-bottom: 4px;
}

.nav-sidebar .nav-link {
  display: flex !important;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 10px 12px !important;
  color: rgba(255, 255, 255, .82) !important;
  border-radius: 16px !important;
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.nav-sidebar .nav-link .nav-icon,
.nav-sidebar .nav-link i {
  width: 24px;
  min-width: 24px;
  text-align: center;
  color: rgba(255,255,255,.75);
}

.nav-sidebar .nav-link p {
  margin: 0;
  font-size: .87rem;
  font-weight: 750;
  line-height: 1.2;
}

.nav-sidebar .nav-link:hover,
.nav-sidebar .nav-link.active {
  color: #fff !important;
  background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(var(--portal-accent-rgb), .22));
  transform: translateX(3px);
  box-shadow: 0 16px 34px rgba(0,0,0,.16);
}

.nav-sidebar .nav-link:hover i,
.nav-sidebar .nav-link.active i {
  color: #fff;
}

.content-wrapper {
  min-height: 100vh;
  margin-left: var(--portal-sidebar-width);
  padding-top: calc(var(--portal-header-height) + 28px);
  background: transparent;
  transition: margin-left .25s ease;
}

.content-header {
  margin: 0 18px 20px;
  padding: 24px 26px;
  border-radius: var(--portal-radius-xl);
  color: #fff;
  background:
    radial-gradient(circle at 10% 15%, rgba(var(--portal-accent-rgb), .28), transparent 22rem),
    radial-gradient(circle at 92% 5%, rgba(255,255,255,.16), transparent 18rem),
    linear-gradient(135deg, var(--portal-primary-dark), var(--portal-primary));
  box-shadow: var(--portal-shadow-primary);
  overflow: hidden;
}

.content-header h1 {
  margin: 0;
  color: #fff;
  font-weight: 900;
  letter-spacing: -.04em;
}

.content-header .breadcrumb {
  margin-bottom: 0;
  padding: 0;
  justify-content: flex-end;
  background: transparent;
}

.content-header .breadcrumb-item,
.content-header .breadcrumb-item a,
.content-header .breadcrumb-item.active,
.content-header .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,.78);
  font-weight: 750;
}

.content {
  padding: 0 18px 30px;
}

.container-fluid {
  max-width: 1520px;
}

.card,
.portal-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.76) !important;
  border-radius: var(--portal-radius-lg) !important;
  background: var(--portal-panel) !important;
  box-shadow: var(--portal-shadow-xs) !important;
}

.card::before,
.portal-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--portal-primary), var(--portal-accent));
}

.card-header,
.card-footer {
  border-color: rgba(var(--portal-primary-rgb), .10) !important;
  background: rgba(255, 255, 255, .68) !important;
}

.card-header {
  padding: 18px 22px !important;
}

.card-title {
  margin: 0;
  color: var(--portal-ink);
  font-weight: 900;
}

.card-body {
  padding: 24px !important;
}

.card-footer {
  padding: 18px 22px !important;
}

.card-info,
.card-primary,
.card-success {
  border: 1px solid rgba(var(--portal-primary-rgb), .10) !important;
  box-shadow: 0 16px 42px rgba(var(--portal-primary-rgb), .08) !important;
}

.card-info > .card-header,
.card-primary > .card-header,
.card-success > .card-header {
  color: #fff;
  background: linear-gradient(135deg, var(--portal-primary), var(--portal-primary-2)) !important;
}

.card-info > .card-header .card-title,
.card-primary > .card-header .card-title,
.card-success > .card-header .card-title {
  color: #fff;
}

.card-tools .btn-tool,
.btn-tool {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.85) !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.14) !important;
}

.form-group label,
.form-label,
.col-form-label {
  color: var(--portal-ink);
  font-size: .87rem;
  font-weight: 850;
}

.form-control,
.custom-select,
select.form-control,
textarea.form-control {
  min-height: 48px;
  border: 1px solid rgba(var(--portal-primary-rgb), .18) !important;
  border-radius: 16px !important;
  color: var(--portal-ink);
  background-color: rgba(255,255,255,.88) !important;
  box-shadow: none !important;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.form-control:focus,
.custom-select:focus,
select.form-control:focus,
textarea.form-control:focus {
  border-color: rgba(var(--portal-primary-rgb), .62) !important;
  box-shadow: 0 0 0 .2rem rgba(var(--portal-primary-rgb), .13) !important;
  background: #fff !important;
}

.form-control[readonly],
.form-control:disabled {
  color: #56645f;
  background: rgba(var(--portal-primary-rgb), .045) !important;
}

.input-group-text {
  border-color: rgba(var(--portal-primary-rgb), .18) !important;
  border-radius: 16px;
  color: var(--portal-primary);
  background: rgba(var(--portal-primary-rgb), .08);
}

.btn,
input[type="submit"],
button[type="submit"] {
  min-height: 44px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px !important;
  border: 0 !important;
  padding: 10px 20px !important;
  font-weight: 900 !important;
  letter-spacing: -.01em;
  box-shadow: 0 14px 28px rgba(var(--portal-primary-rgb), .18);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease, background .2s ease;
}

.btn:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(var(--portal-primary-rgb), .25);
  filter: saturate(1.05);
}

.btn-success,
.btn-info,
.btn-primary,
.btn-outline-success,
.btn-outline-info {
  color: #fff !important;
  background: linear-gradient(135deg, var(--portal-primary), var(--portal-primary-2)) !important;
}

.btn-warning,
.btn-outline-warning {
  color: var(--portal-primary-dark) !important;
  background: linear-gradient(135deg, var(--portal-accent), var(--portal-accent-2)) !important;
}

.btn-danger {
  color: #fff !important;
  background: linear-gradient(135deg, #dc2626, #f43f5e) !important;
}

.btn-light,
.btn-secondary {
  color: var(--portal-ink) !important;
  background: rgba(255,255,255,.92) !important;
  box-shadow: 0 10px 28px rgba(15,23,42,.08);
}

.btn-sm {
  min-height: 36px;
  padding: 7px 14px !important;
  font-size: .82rem;
}

.main-header .btn-success,
.main-header .btn-outline-success,
.main-header .btn-info,
.main-header .btn-primary {
  color: #fff !important;
  background: rgba(255, 255, 255, .14) !important;
  border: 1px solid rgba(255, 255, 255, .26) !important;
  box-shadow: none !important;
}

.main-header .btn-success:hover,
.main-header .btn-outline-success:hover,
.main-header .btn-info:hover,
.main-header .btn-primary:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, .22) !important;
}

.float-right {
  float: right !important;
}

.portal-page-hero {
  position: relative;
  margin: 0 18px 20px;
  padding: 32px;
  border-radius: var(--portal-radius-xl);
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 12%, rgba(var(--portal-accent-rgb), .30), transparent 24rem),
    radial-gradient(circle at 88% 5%, rgba(255,255,255,.18), transparent 20rem),
    linear-gradient(135deg, var(--portal-primary-dark), var(--portal-primary) 58%, var(--portal-primary-2));
  box-shadow: var(--portal-shadow-primary);
}

.portal-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .26;
  background-image:
    linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.82), rgba(0,0,0,.14));
}

.portal-page-hero > * {
  position: relative;
  z-index: 1;
}

.portal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 999px;
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.12);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.portal-page-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 950;
  line-height: .98;
  letter-spacing: -.055em;
}

.portal-page-hero p {
  max-width: 760px;
  margin: 14px 0 0;
  color: rgba(255,255,255,.82);
  font-size: 1.02rem;
  line-height: 1.72;
}

.portal-breadcrumb {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  max-width: 100%;
  margin-bottom: 20px;
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  color: #fff !important;
  background: rgba(2, 44, 27, .42);
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-weight: 900;
  letter-spacing: -.01em;
  text-shadow: 0 2px 8px rgba(0,0,0,.42);
}

.portal-breadcrumb a,
.portal-breadcrumb strong,
.portal-breadcrumb span,
.portal-breadcrumb i {
  color: #fff !important;
  opacity: 1 !important;
}

.portal-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  text-decoration: none !important;
  background: rgba(255,255,255,.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10);
}

.portal-breadcrumb a:hover,
.portal-breadcrumb a:focus {
  color: #fff !important;
  background: rgba(255,255,255,.22);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 8px 18px rgba(0,0,0,.14);
}

.portal-breadcrumb strong {
  font-weight: 950;
}

.portal-breadcrumb span {
  color: rgba(255,255,255,.90) !important;
}

.portal-status-card {
  padding: 22px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 24px;
  color: #fff;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 44px rgba(0,0,0,.18);
}

.portal-status-card .portal-status-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 18px;
  color: #fff;
  background: rgba(255,255,255,.18);
}

.portal-status-card h3 {
  margin: 0 0 5px;
  color: #fff;
  font-weight: 900;
}

.portal-status-card p {
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: .9rem;
}

.portal-content-section {
  padding-top: 4px;
}

.portal-card {
  padding: 26px;
}

.portal-card-muted {
  background:
    radial-gradient(circle at 0% 0%, rgba(var(--portal-primary-rgb), .10), transparent 20rem),
    #fff !important;
}

.portal-card-gradient {
  color: #fff;
  border-color: rgba(255,255,255,.18) !important;
  background:
    radial-gradient(circle at 16% 10%, rgba(var(--portal-accent-rgb), .32), transparent 20rem),
    linear-gradient(160deg, var(--portal-primary-dark), var(--portal-primary)) !important;
}

.portal-card-gradient::before {
  background: linear-gradient(90deg, var(--portal-accent), rgba(255,255,255,.65));
}

.portal-card-gradient h2,
.portal-card-gradient h3,
.portal-card-gradient h4,
.portal-card-gradient p,
.portal-card-gradient li {
  color: inherit;
}

.portal-section-heading {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
}

.portal-section-heading h2,
.portal-section-heading h3,
.portal-section-heading h4 {
  margin: 0;
  color: var(--portal-ink);
  font-weight: 950;
  letter-spacing: -.035em;
}

.portal-section-heading p {
  margin: 4px 0 0;
  color: var(--portal-muted);
  font-size: .92rem;
}

.portal-card-gradient .portal-section-heading h2,
.portal-card-gradient .portal-section-heading h3,
.portal-card-gradient .portal-section-heading h4,
.portal-card-gradient .portal-section-heading p {
  color: #fff;
}

.portal-icon-circle {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--portal-primary), var(--portal-primary-2));
  box-shadow: 0 18px 40px rgba(var(--portal-primary-rgb), .22);
}

.portal-card-gradient .portal-icon-circle {
  color: var(--portal-primary-dark);
  background: linear-gradient(135deg, var(--portal-accent), var(--portal-accent-2));
}

.portal-soft-panel {
  padding: 18px;
  border: 1px solid rgba(var(--portal-primary-rgb), .12);
  border-radius: 20px;
  background: rgba(var(--portal-primary-rgb), .055);
}

.portal-step-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.portal-step-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  color: rgba(255,255,255,.84);
}

.portal-step-list li:last-child {
  margin-bottom: 0;
}

.portal-step-list span {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--portal-primary-dark);
  background: linear-gradient(135deg, var(--portal-accent), var(--portal-accent-2));
  font-size: .78rem;
  font-weight: 950;
}

.portal-hint {
  display: flex;
  gap: 12px;
  padding: 16px;
  margin-top: 14px;
  border: 1px solid rgba(var(--portal-accent-rgb), .35);
  border-radius: 18px;
  color: #68510d;
  background: rgba(var(--portal-accent-rgb), .14);
  line-height: 1.65;
}

.portal-hint i {
  margin-top: 4px;
  color: var(--portal-accent);
}

.portal-verified-badge,
.portal-pending-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
}

.portal-verified-badge {
  color: #065f46;
  background: rgba(16, 185, 129, .14);
}

.portal-pending-badge {
  color: #92400e;
  background: rgba(245, 158, 11, .16);
}

.portal-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
}

.portal-next-bar {
  display: flex;
  justify-content: flex-end;
  padding-top: 10px;
}

.portal-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}

.portal-kpi {
  min-width: 0;
  padding: 10px 8px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px;
  background: rgba(255,255,255,.10);
}

.portal-kpi span {
  display: block;
  color: rgba(255,255,255,.70);
  font-size: .58rem;
  font-weight: 850;
  letter-spacing: .035em;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
}

.portal-kpi strong {
  display: block;
  margin-top: 3px;
  color: #fff;
  font-size: .78rem;
  font-weight: 950;
  line-height: 1.1;
  white-space: nowrap;
}

.portal-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.portal-form .form-group {
  margin-bottom: 18px;
}

.portal-form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.main-footer {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-left: var(--portal-sidebar-width);
  margin-right: 18px;
  margin-bottom: 18px;
  padding: 20px 24px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 24px;
  color: var(--portal-muted);
  background: rgba(255,255,255,.82);
  box-shadow: var(--portal-shadow-xs);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: margin-left .25s ease;
}

.main-footer a {
  font-weight: 900;
}

.portal-footer-brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.portal-footer-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--portal-primary), var(--portal-primary-2));
  box-shadow: 0 12px 30px rgba(var(--portal-primary-rgb), .20);
}

.modal-content {
  border: 1px solid rgba(255,255,255,.76) !important;
  border-radius: 24px !important;
  box-shadow: var(--portal-shadow-md) !important;
}

.modal-header,
.modal-footer {
  border-color: rgba(var(--portal-primary-rgb), .10) !important;
}

.modal-title {
  color: var(--portal-ink);
  font-weight: 950;
}

.alert {
  border-radius: 18px;
  border: 1px solid transparent;
}

.table,
.dataTable {
  color: var(--portal-ink);
}

.table thead th,
.dataTable thead th {
  border-bottom: 0 !important;
  color: var(--portal-primary-dark);
  background: rgba(var(--portal-primary-rgb), .08);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.table td,
.table th {
  border-color: rgba(var(--portal-primary-rgb), .10) !important;
  vertical-align: middle !important;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  border: 1px solid rgba(var(--portal-primary-rgb), .18) !important;
  border-radius: 999px !important;
  padding: 8px 12px;
}

.page-item.active .page-link {
  border-color: var(--portal-primary) !important;
  background: var(--portal-primary) !important;
}

.page-link {
  color: var(--portal-primary);
  border-color: rgba(var(--portal-primary-rgb), .14) !important;
  border-radius: 12px;
  margin: 0 2px;
}

.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  min-height: 48px;
  border: 1px solid rgba(var(--portal-primary-rgb), .18) !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,.88) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 46px;
  color: var(--portal-ink);
}

.note-editor.note-frame {
  border: 1px solid rgba(var(--portal-primary-rgb), .16) !important;
  border-radius: 18px !important;
  overflow: hidden;
}

.note-toolbar {
  background: rgba(var(--portal-primary-rgb), .06) !important;
}

.portal-theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.portal-theme-option {
  position: relative;
  display: block;
  min-height: 136px;
  padding: 14px;
  cursor: pointer;
  border: 1px solid rgba(var(--portal-primary-rgb), .14);
  border-radius: 22px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 10px 26px rgba(15,23,42,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.portal-theme-option:hover {
  transform: translateY(-3px);
  box-shadow: var(--portal-shadow-xs);
  border-color: rgba(var(--portal-primary-rgb), .32);
}

.portal-theme-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.portal-theme-option input:checked + .portal-theme-preview {
  outline: 4px solid rgba(var(--portal-primary-rgb), .18);
}

.portal-theme-preview {
  height: 70px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--preview-primary, var(--portal-primary)), var(--preview-accent, var(--portal-accent)));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28);
}

.portal-theme-preview::after {
  content: "";
  display: block;
  width: 46%;
  height: 100%;
  margin-left: auto;
  background: rgba(255,255,255,.22);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
}

.portal-theme-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  color: var(--portal-ink);
  font-weight: 900;
}

.portal-theme-name i {
  color: var(--portal-primary);
  opacity: 0;
}

.portal-theme-option input:checked ~ .portal-theme-name i {
  opacity: 1;
}

.portal-theme-azure_green { --preview-primary:#087550; --preview-accent:#d8a72d; }
.portal-theme-azure_blue { --preview-primary:#0b63ce; --preview-accent:#22d3ee; }
.portal-theme-azure_gold { --preview-primary:#b77905; --preview-accent:#facc15; }
.portal-theme-azure_teal { --preview-primary:#0f766e; --preview-accent:#2dd4bf; }
.portal-theme-azure_purple { --preview-primary:#6d28d9; --preview-accent:#c084fc; }
.portal-theme-azure_crimson { --preview-primary:#be123c; --preview-accent:#fb7185; }
.portal-theme-azure_navy { --preview-primary:#1d4ed8; --preview-accent:#06b6d4; }
.portal-theme-azure_indigo { --preview-primary:#4f46e5; --preview-accent:#a78bfa; }
.portal-theme-azure_emerald { --preview-primary:#047857; --preview-accent:#84cc16; }
.portal-theme-azure_lagoon { --preview-primary:#0284c7; --preview-accent:#14b8a6; }
.portal-theme-azure_sunset { --preview-primary:#ea580c; --preview-accent:#facc15; }
.portal-theme-azure_rose { --preview-primary:#db2777; --preview-accent:#fb7185; }
.portal-theme-azure_slate { --preview-primary:#334155; --preview-accent:#38bdf8; }
.portal-theme-azure_copper { --preview-primary:#a16207; --preview-accent:#f59e0b; }
.portal-theme-azure_forest { --preview-primary:#166534; --preview-accent:#84cc16; }

body.sidebar-collapsed .main-sidebar {
  width: var(--portal-sidebar-mini-width);
}

body.sidebar-collapsed .main-header {
  left: var(--portal-sidebar-mini-width);
}

body.sidebar-collapsed .content-wrapper,
body.sidebar-collapsed .main-footer {
  margin-left: var(--portal-sidebar-mini-width);
}

body.sidebar-collapsed .brand-text,
body.sidebar-collapsed .portal-user-card > div,
body.sidebar-collapsed .nav-sidebar .nav-header,
body.sidebar-collapsed .nav-sidebar .nav-link p {
  display: none !important;
}

body.sidebar-collapsed .brand-link {
  justify-content: center;
  padding-left: 10px !important;
  padding-right: 10px !important;
}

body.sidebar-collapsed .portal-brand-logo {
  width: 52px;
  height: 52px;
  flex-basis: 52px;
}

body.sidebar-collapsed .portal-user-card {
  justify-content: center;
  padding: 10px;
}

body.sidebar-collapsed .portal-user-card img {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
}

body.sidebar-collapsed .nav-sidebar .nav-link {
  justify-content: center;
  padding-left: 10px !important;
  padding-right: 10px !important;
}

body.sidebar-collapsed .nav-sidebar .nav-link:hover,
body.sidebar-collapsed .nav-sidebar .nav-link.active {
  transform: none;
}

.portal-sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1035;
  display: none;
  background: rgba(15, 23, 42, .52);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

body.sidebar-open .portal-sidebar-backdrop {
  display: block;
}



/* Modern portal alerts and notification dialogs */
.portal-alert-host {
  margin-bottom: 18px;
}

.portal-inline-alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--portal-panel-strong);
  border: 1px solid var(--portal-line);
  box-shadow: var(--portal-shadow-xs);
  color: var(--portal-ink);
  margin-bottom: 14px;
}

.portal-inline-alert strong {
  display: block;
  min-width: 160px;
  color: var(--portal-primary-dark);
}

.portal-inline-alert span {
  display: block;
  color: var(--portal-muted);
}

.portal-inline-alert-success {
  border-left: 6px solid #16a34a;
}

.portal-inline-alert-error {
  border-left: 6px solid #dc2626;
}

.portal-inline-alert-warning {
  border-left: 6px solid #d97706;
}

.portal-inline-alert-info {
  border-left: 6px solid var(--portal-primary);
}

.portal-swal-popup {
  border-radius: 28px !important;
  padding: 30px !important;
  box-shadow: var(--portal-shadow-md) !important;
  border: 1px solid rgba(var(--portal-primary-rgb), .12) !important;
}

.portal-swal-title {
  color: var(--portal-primary-dark) !important;
  font-weight: 900 !important;
  letter-spacing: -.035em !important;
}

.portal-swal-button {
  border: 0 !important;
  border-radius: 999px !important;
  padding: 11px 24px !important;
  background: linear-gradient(135deg, var(--portal-primary), var(--portal-primary-2)) !important;
  box-shadow: var(--portal-shadow-primary) !important;
}

.swal2-html-container,
.swal2-container .swal2-html-container {
  color: var(--portal-muted) !important;
  line-height: 1.7 !important;
}

@media (max-width: 1199.98px) {
  .portal-grid-two,
  .portal-kpi-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  :root {
    --portal-sidebar-width: 286px;
  }

  .main-sidebar {
    transform: translateX(-105%);
  }

  body.sidebar-open .main-sidebar {
    transform: translateX(0);
  }

  .main-header {
    top: 0;
    right: 0;
    left: 0 !important;
    min-height: 64px;
    border-radius: 0;
  }

  .main-header .nav-item.d-none {
    display: none !important;
  }

  .content-wrapper {
    margin-left: 0 !important;
    padding-top: 88px;
  }

  .main-footer {
    margin-left: 10px !important;
    margin-right: 10px;
  }

  .content-header,
  .portal-page-hero {
    margin-left: 10px;
    margin-right: 10px;
    padding: 24px;
  }

  .content {
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 767.98px) {
  .portal-page-hero {
    padding: 22px;
  }

  .portal-status-card {
    margin-top: 18px;
  }

  .card-body,
  .portal-card {
    padding: 20px !important;
  }

  .portal-action-bar,
  .portal-next-bar,
  .main-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .portal-action-bar .btn,
  .portal-next-bar .btn {
    width: 100%;
  }

  .main-footer {
    align-items: flex-start;
  }

  .content-header .breadcrumb {
    justify-content: flex-start;
    margin-top: 10px;
  }
}

@media print {
  .main-header,
  .main-sidebar,
  .main-footer,
  .portal-sidebar-backdrop {
    display: none !important;
  }

  .content-wrapper {
    margin-left: 0 !important;
    padding-top: 0 !important;
  }

  .card,
  .portal-card,
  .content-header,
  .portal-page-hero {
    box-shadow: none !important;
  }
}

/* Member dashboard command centre upgrade */
.portal-dashboard-modern .portal-dashboard-command {
  padding: 26px !important;
  border: 0 !important;
  border-radius: 26px 26px 0 0 !important;
  background:
    radial-gradient(circle at 6% 8%, rgba(var(--portal-accent-rgb), .30), transparent 24rem),
    radial-gradient(circle at 94% 0%, rgba(255,255,255,.18), transparent 20rem),
    linear-gradient(135deg, var(--portal-primary-dark), var(--portal-primary) 58%, var(--portal-primary-2)) !important;
}

.portal-dashboard-modern .portal-dashboard-command::before {
  background: linear-gradient(90deg, var(--portal-accent), rgba(255,255,255,.70), var(--portal-primary-2));
}

.portal-dashboard-modern .portal-dashboard-command-head {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
}

.portal-dashboard-modern .portal-dashboard-command-head h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.5rem, 2.5vw, 2.35rem);
  font-weight: 950;
  line-height: 1.06;
  letter-spacing: -.045em;
}

.portal-dashboard-modern .portal-dashboard-command-head p {
  max-width: 960px;
  margin: 10px 0 0;
  color: rgba(255,255,255,.82) !important;
  line-height: 1.75;
  font-size: .98rem;
}

.portal-dashboard-modern .portal-dashboard-command-head strong {
  color: #fff;
  font-weight: 950;
}

.portal-dashboard-modern .portal-dashboard-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.12);
  font-size: .74rem;
  font-weight: 950;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.portal-dashboard-modern .portal-dashboard-category-alert,
.portal-dashboard-modern .portal-dashboard-member-note,
.portal-dashboard-modern .portal-download-alert,
.portal-dashboard-modern .portal-dashboard-admin-panel {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 22px;
  color: #fff;
  background: rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.portal-dashboard-modern .portal-dashboard-category-alert > i,
.portal-dashboard-modern .portal-dashboard-member-note > i,
.portal-dashboard-modern .portal-download-alert > i {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  color: var(--portal-primary-dark);
  background: linear-gradient(135deg, var(--portal-accent), var(--portal-accent-2));
  box-shadow: 0 16px 32px rgba(0,0,0,.16);
}

.portal-dashboard-modern .portal-dashboard-category-alert strong,
.portal-dashboard-modern .portal-dashboard-member-note strong,
.portal-dashboard-modern .portal-download-alert strong {
  display: block;
  color: #fff;
  font-weight: 950;
  margin-bottom: 4px;
}

.portal-dashboard-modern .portal-dashboard-category-alert span,
.portal-dashboard-modern .portal-dashboard-member-note p,
.portal-dashboard-modern .portal-download-alert span {
  display: block;
  margin: 0;
  color: rgba(255,255,255,.80);
  line-height: 1.7;
}

.portal-dashboard-modern .portal-download-alert {
  border-color: rgba(255,255,255,.28);
  background: rgba(245,158,11,.20);
}

.portal-dashboard-modern .portal-dashboard-admin-panel {
  display: block;
  padding: 18px;
}

.portal-dashboard-modern .portal-dashboard-admin-panel .portal-section-heading {
  margin-bottom: 14px !important;
}

.portal-dashboard-modern .portal-dashboard-admin-panel .portal-section-heading h3,
.portal-dashboard-modern .portal-dashboard-admin-panel .portal-section-heading p {
  color: #fff !important;
}

.portal-dashboard-modern .portal-dashboard-admin-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.portal-dashboard-modern .portal-dashboard-admin-actions .btn,
.portal-dashboard-modern .portal-dashboard-command-head .btn {
  width: 100%;
  min-height: 48px;
  justify-content: center;
  box-shadow: 0 15px 34px rgba(0,0,0,.16);
}

.portal-dashboard-modern .portal-dashboard-command-head .btn {
  width: auto;
  flex: 0 0 auto;
  color: var(--portal-primary-dark) !important;
  background: linear-gradient(135deg, var(--portal-accent), var(--portal-accent-2)) !important;
}

.portal-dashboard-modern .portal-dashboard-preview-img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border: 1px solid rgba(var(--portal-primary-rgb), .16);
  border-radius: 18px;
  box-shadow: var(--portal-shadow-xs);
}

.portal-dashboard-modern .modal-body .alert {
  border-radius: 18px;
}

@media (max-width: 767.98px) {
  .portal-dashboard-modern .portal-dashboard-command {
    padding: 20px !important;
  }

  .portal-dashboard-modern .portal-dashboard-command-head,
  .portal-dashboard-modern .portal-dashboard-category-alert,
  .portal-dashboard-modern .portal-dashboard-member-note,
  .portal-dashboard-modern .portal-download-alert {
    flex-direction: column;
  }

  .portal-dashboard-modern .portal-dashboard-command-head .btn {
    width: 100%;
  }

  .portal-dashboard-modern .portal-dashboard-admin-actions {
    grid-template-columns: 1fr;
  }
}

/* NSPS portal joined-header and sidebar toggle refinements (v2) */
body.portal-shell .main-header {
  top: 0 !important;
  right: 0 !important;
  left: var(--portal-sidebar-width) !important;
  border-radius: 0 !important;
  border: 0 !important;
  background:
    radial-gradient(circle at 8% 0%, rgba(var(--portal-accent-rgb), .30), transparent 24rem),
    radial-gradient(circle at 96% -20%, rgba(255, 255, 255, .18), transparent 20rem),
    linear-gradient(135deg, var(--portal-primary-dark), var(--portal-primary) 58%, var(--portal-primary-2)) !important;
}

body.portal-shell .main-header .nav-link {
  color: rgba(255,255,255,.94) !important;
}

body.portal-shell .main-header .nav-link:hover,
body.portal-shell .main-header .nav-link:focus {
  color: #fff !important;
  background: rgba(255,255,255,.16) !important;
}

body.portal-shell .portal-sidebar-toggle {
  color: #fff !important;
  background: rgba(255,255,255,.16) !important;
  border: 1px solid rgba(255,255,255,.24) !important;
  box-shadow: none !important;
}

body.portal-shell .portal-sidebar-toggle:hover,
body.portal-shell .portal-sidebar-toggle:focus {
  color: #fff !important;
  background: rgba(255,255,255,.28) !important;
}

body.portal-shell .main-header .btn-success,
body.portal-shell .main-header .btn-outline-success,
body.portal-shell .main-header .btn-info,
body.portal-shell .main-header .btn-primary {
  color: #fff !important;
  background: rgba(255,255,255,.14) !important;
  border: 1px solid rgba(255,255,255,.26) !important;
  box-shadow: none !important;
}

body.portal-shell.sidebar-collapsed .main-header {
  left: var(--portal-sidebar-mini-width) !important;
}

body.portal-shell.sidebar-open .main-sidebar {
  transform: translateX(0) !important;
}

body.portal-shell.sidebar-open .portal-sidebar-backdrop {
  display: block !important;
}

@media (min-width: 992px) {
  body.portal-shell.sidebar-collapsed .portal-sidebar-backdrop {
    display: none !important;
  }
}

@media (max-width: 991.98px) {
  body.portal-shell .main-header {
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    min-height: 68px;
    padding-left: 14px;
    padding-right: 14px;
    border-radius: 0 !important;
  }

  body.portal-shell .content-wrapper {
    margin-left: 0 !important;
    padding-top: 92px !important;
  }

  body.portal-shell .main-sidebar {
    transform: translateX(-105%);
    z-index: 1045;
  }

  body.portal-shell .portal-sidebar-backdrop {
    z-index: 1040;
  }
}

/* Portal header search overlay (v3) */
body.portal-shell .nsps-portal-search-toggle {
  border: 0 !important;
  outline: 0 !important;
  cursor: pointer;
  background: rgba(255,255,255,.14) !important;
}
body.portal-shell .nsps-portal-search-toggle:hover,
body.portal-shell .nsps-portal-search-toggle:focus {
  background: rgba(255,255,255,.24) !important;
}
.nsps-portal-search-open {
  overflow: hidden;
}
.nsps-portal-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 2060;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 78px 18px 24px;
}
.nsps-portal-search-overlay[hidden] {
  display: none !important;
}
.nsps-portal-search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 18, 16, .62);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}
.nsps-portal-search-window {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(78vh, 740px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 30px;
  background: #fff;
  border: 1px solid rgba(var(--portal-primary-rgb, 8,117,80), .16);
  box-shadow: 0 34px 110px rgba(0,0,0,.34);
  animation: nspsPortalSearchIn .18s ease;
}
.nsps-portal-search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  color: #fff;
  background:
    radial-gradient(circle at 92% -10%, rgba(255,255,255,.22), transparent 18rem),
    linear-gradient(135deg, var(--portal-primary-dark, #03261d), var(--portal-primary, #087550) 58%, var(--portal-primary-2, #14b8a6));
}
.nsps-portal-search-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.nsps-portal-search-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.nsps-portal-search-brand h4 {
  margin: 0 !important;
  font-size: 1.25rem;
  font-weight: 950;
  color: #fff !important;
}
.nsps-portal-search-brand small {
  display: block;
  margin-top: 3px;
  color: rgba(255,255,255,.82);
  font-weight: 700;
  line-height: 1.35;
}
.nsps-portal-search-close {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.16);
  cursor: pointer;
}
.nsps-portal-search-close:hover,
.nsps-portal-search-close:focus {
  background: rgba(255,255,255,.28);
}
.nsps-portal-search-body {
  padding: 18px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--portal-primary-rgb, 8,117,80), .08), transparent 17rem),
    linear-gradient(180deg, #ffffff, #f8fffc);
}
.nsps-portal-search-box {
  position: relative;
}
.nsps-portal-search-box i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--portal-primary, #087550);
  z-index: 1;
}
.nsps-portal-search-box input {
  width: 100%;
  min-height: 58px;
  padding: 14px 18px 14px 50px;
  border: 1px solid rgba(var(--portal-primary-rgb, 8,117,80), .18);
  border-radius: 22px;
  color: var(--portal-ink, #0f172a);
  background: #fff;
  box-shadow: 0 14px 34px rgba(var(--portal-primary-rgb, 8,117,80), .08);
  font-weight: 800;
  outline: 0;
}
.nsps-portal-search-box input:focus {
  border-color: rgba(var(--portal-primary-rgb, 8,117,80), .52);
  box-shadow: 0 0 0 4px rgba(var(--portal-primary-rgb, 8,117,80), .12), 0 16px 38px rgba(var(--portal-primary-rgb, 8,117,80), .10);
}
.nsps-portal-search-hint {
  margin: 10px 4px 14px;
  color: var(--portal-muted, #64748b);
  font-size: .86rem;
  font-weight: 700;
}
.nsps-portal-search-results {
  display: grid;
  gap: 10px;
}
.nsps-portal-search-result-title {
  padding: 2px 4px 3px;
  color: var(--portal-primary-dark, #03261d);
  font-size: .78rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.nsps-portal-search-result {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 32px;
  gap: 13px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(var(--portal-primary-rgb, 8,117,80), .12);
  color: var(--portal-ink, #0f172a) !important;
  text-decoration: none !important;
  box-shadow: 0 12px 28px rgba(15,23,42,.06);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.nsps-portal-search-result:hover,
.nsps-portal-search-result:focus {
  transform: translateY(-2px);
  border-color: rgba(var(--portal-primary-rgb, 8,117,80), .30);
  background: rgba(var(--portal-primary-rgb, 8,117,80), .045);
  box-shadow: 0 18px 38px rgba(var(--portal-primary-rgb, 8,117,80), .12);
}
.nsps-portal-search-result-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--portal-primary, #087550), var(--portal-primary-2, #14b8a6));
  box-shadow: 0 12px 26px rgba(var(--portal-primary-rgb, 8,117,80), .20);
}
.nsps-portal-search-result-body {
  min-width: 0;
}
.nsps-portal-search-result-body strong {
  display: block;
  color: var(--portal-ink, #0f172a);
  font-weight: 950;
  line-height: 1.25;
}
.nsps-portal-search-result-body small {
  display: inline-flex;
  margin-top: 3px;
  color: var(--portal-primary, #087550);
  font-size: .75rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .035em;
}
.nsps-portal-search-result-body em {
  display: block;
  margin-top: 4px;
  color: var(--portal-muted, #64748b);
  font-style: normal;
  line-height: 1.45;
}
.nsps-portal-search-result-arrow {
  color: var(--portal-primary, #087550);
}
.nsps-portal-search-empty {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  border: 1px dashed rgba(var(--portal-primary-rgb, 8,117,80), .20);
  border-radius: 24px;
  background: rgba(var(--portal-primary-rgb, 8,117,80), .045);
  color: var(--portal-muted, #64748b);
}
.nsps-portal-search-empty i {
  margin-bottom: 10px;
  color: var(--portal-primary, #087550);
  font-size: 1.6rem;
}
.nsps-portal-search-empty strong {
  display: block;
  color: var(--portal-ink, #0f172a);
  font-weight: 950;
}
.nsps-portal-search-empty span {
  display: block;
  margin-top: 4px;
  max-width: 430px;
  line-height: 1.5;
}
@keyframes nspsPortalSearchIn {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 575.98px) {
  .nsps-portal-search-overlay {
    padding: 64px 10px 14px;
  }
  .nsps-portal-search-window {
    border-radius: 24px;
    max-height: calc(100vh - 80px);
  }
  .nsps-portal-search-head {
    padding: 16px;
  }
  .nsps-portal-search-icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-radius: 16px;
  }
  .nsps-portal-search-brand small {
    display: none;
  }
  .nsps-portal-search-body {
    padding: 14px;
  }
  .nsps-portal-search-result {
    grid-template-columns: 46px minmax(0, 1fr);
  }
  .nsps-portal-search-result-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
  }
  .nsps-portal-search-result-arrow {
    grid-column: 2;
    justify-self: start;
  }
}


/* NSPS portal v6 hard layout guard and theme enforcement
   ------------------------------------------------------
   This section intentionally does not depend on Bootstrap. It keeps the top
   header horizontal, removes accidental list bullets, and forces the active
   theme variables to drive dashboard, chat, cards, and buttons. */
html body.portal-shell {
  --portal-header-height: 76px;
}
html body.portal-shell .main-header.navbar {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  left: var(--portal-sidebar-width, 286px) !important;
  z-index: 1030 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  width: auto !important;
  min-height: var(--portal-header-height, 76px) !important;
  height: var(--portal-header-height, 76px) !important;
  max-height: var(--portal-header-height, 76px) !important;
  padding: 0 22px !important;
  margin: 0 !important;
  overflow: visible !important;
  background:
    radial-gradient(circle at 8% 0%, rgba(var(--portal-accent-rgb,216,167,45), .30), transparent 24rem),
    radial-gradient(circle at 96% -20%, rgba(255,255,255,.18), transparent 20rem),
    linear-gradient(135deg, var(--portal-primary-dark,#03261d), var(--portal-primary,#087550) 58%, var(--portal-primary-2,#14b8a6)) !important;
}
html body.portal-shell .main-header.navbar > .navbar-nav {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
html body.portal-shell .main-header.navbar > .navbar-nav.ml-auto,
html body.portal-shell .main-header.navbar > .navbar-nav.ms-auto {
  margin-left: auto !important;
  justify-content: flex-end !important;
}
html body.portal-shell .main-header.navbar .nav-item {
  display: inline-flex !important;
  align-items: center !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
html body.portal-shell .main-header.navbar .nav-link,
html body.portal-shell .main-header.navbar button.nav-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  gap: 8px !important;
  min-height: 42px !important;
  margin: 0 !important;
}
html body.portal-shell .main-header.navbar button.nav-link {
  border: 0 !important;
  cursor: pointer !important;
}
html body.portal-shell .content-wrapper {
  padding-top: calc(var(--portal-header-height,76px) + 28px) !important;
}
html body.portal-shell.sidebar-collapsed .main-header.navbar {
  left: var(--portal-sidebar-mini-width,92px) !important;
}
html body.portal-shell .portal-page-hero,
html body.portal-shell .content-header,
html body.portal-shell .portal-dashboard-modern .portal-dashboard-command,
html body.portal-shell .portal-card-gradient,
html body.portal-shell .portal-status-card {
  background:
    radial-gradient(circle at 12% 12%, rgba(var(--portal-accent-rgb,216,167,45), .30), transparent 24rem),
    radial-gradient(circle at 88% 5%, rgba(255,255,255,.18), transparent 20rem),
    linear-gradient(135deg, var(--portal-primary-dark,#03261d), var(--portal-primary,#087550) 58%, var(--portal-primary-2,#14b8a6)) !important;
  box-shadow: 0 22px 58px rgba(var(--portal-primary-rgb,8,117,80), .24) !important;
}
html body.portal-shell .portal-sidebar-action-btn.portal-sidebar-action-primary,
html body.portal-shell .portal-sidebar-action-btn.active,
html body.portal-shell .btn-success,
html body.portal-shell .btn-primary,
html body.portal-shell .portal-icon-circle,
html body.portal-shell .portal-pill,
html body.portal-shell .portal-eyebrow,
html body.portal-shell .nsps-portal-search-toggle,
html body.portal-shell .nsps-portal-search-icon,
html body.portal-shell .nsps-portal-search-result-icon {
  background: linear-gradient(135deg, var(--portal-primary,#087550), var(--portal-primary-2,#14b8a6)) !important;
  border-color: rgba(255,255,255,.22) !important;
  color: #fff !important;
}
html body.portal-shell .portal-card::before,
html body.portal-shell .portal-section-heading .portal-icon-circle,
html body.portal-shell .nav-sidebar .nav-link.active {
  background: linear-gradient(135deg, var(--portal-primary,#087550), var(--portal-primary-2,#14b8a6)) !important;
}
@media (max-width: 1199.98px) {
  html body.portal-shell .main-header .nav-link .d-md-inline,
  html body.portal-shell .main-header .btn .mr-1 + span {
    display: none !important;
  }
}
@media (max-width: 991.98px) {
  html body.portal-shell .main-header.navbar {
    left: 0 !important;
    min-height: 68px !important;
    height: 68px !important;
    max-height: 68px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  html body.portal-shell .main-header .navbar-nav:first-child .nav-item:not(:first-child),
  html body.portal-shell .main-header .nav-item.d-none {
    display: none !important;
  }
  html body.portal-shell .content-wrapper {
    margin-left: 0 !important;
    padding-top: 92px !important;
  }
}


/* NSPS portal v7 Bootstrap/display compatibility and modal guard
   ----------------------------------------------------------------
   Some local deployments do not have the root bootstrap.min.css file that
   nsps-portal.css imports. This small compatibility layer keeps legacy pages,
   forms, tables, grids, and hidden modals stable without changing PHP logic. */
body.portal-shell .container,
body.portal-shell .container-fluid {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}
body.portal-shell .row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}
body.portal-shell .row > [class*="col-"],
body.portal-shell .row > .col {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}
body.portal-shell .col { flex-basis: 0; flex-grow: 1; max-width: 100%; }
body.portal-shell .col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
body.portal-shell .col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
body.portal-shell .col-3 { flex: 0 0 25%; max-width: 25%; }
body.portal-shell .col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
body.portal-shell .col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
body.portal-shell .col-6 { flex: 0 0 50%; max-width: 50%; }
body.portal-shell .col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
body.portal-shell .col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
body.portal-shell .col-9 { flex: 0 0 75%; max-width: 75%; }
body.portal-shell .col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
body.portal-shell .col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
body.portal-shell .col-12 { flex: 0 0 100%; max-width: 100%; }
@media (min-width: 576px) {
  body.portal-shell .col-sm-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
  body.portal-shell .col-sm-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  body.portal-shell .col-sm-3 { flex: 0 0 25%; max-width: 25%; }
  body.portal-shell .col-sm-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  body.portal-shell .col-sm-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  body.portal-shell .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
  body.portal-shell .col-sm-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  body.portal-shell .col-sm-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  body.portal-shell .col-sm-9 { flex: 0 0 75%; max-width: 75%; }
  body.portal-shell .col-sm-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  body.portal-shell .col-sm-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  body.portal-shell .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
}
@media (min-width: 768px) {
  body.portal-shell .col-md-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
  body.portal-shell .col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  body.portal-shell .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  body.portal-shell .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  body.portal-shell .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  body.portal-shell .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  body.portal-shell .col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  body.portal-shell .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  body.portal-shell .col-md-9 { flex: 0 0 75%; max-width: 75%; }
  body.portal-shell .col-md-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  body.portal-shell .col-md-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  body.portal-shell .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}
@media (min-width: 992px) {
  body.portal-shell .col-lg-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
  body.portal-shell .col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  body.portal-shell .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  body.portal-shell .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  body.portal-shell .col-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  body.portal-shell .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  body.portal-shell .col-lg-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  body.portal-shell .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  body.portal-shell .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
  body.portal-shell .col-lg-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  body.portal-shell .col-lg-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  body.portal-shell .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
}
@media (min-width: 1200px) {
  body.portal-shell .col-xl-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
  body.portal-shell .col-xl-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  body.portal-shell .col-xl-3 { flex: 0 0 25%; max-width: 25%; }
  body.portal-shell .col-xl-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  body.portal-shell .col-xl-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  body.portal-shell .col-xl-6 { flex: 0 0 50%; max-width: 50%; }
  body.portal-shell .col-xl-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  body.portal-shell .col-xl-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  body.portal-shell .col-xl-9 { flex: 0 0 75%; max-width: 75%; }
  body.portal-shell .col-xl-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  body.portal-shell .col-xl-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  body.portal-shell .col-xl-12 { flex: 0 0 100%; max-width: 100%; }
}
body.portal-shell .d-none { display: none !important; }
body.portal-shell .d-block { display: block !important; }
body.portal-shell .d-flex { display: flex !important; }
body.portal-shell .d-inline-flex { display: inline-flex !important; }
@media (min-width: 576px) { body.portal-shell .d-sm-inline-block { display: inline-block !important; } body.portal-shell .d-sm-flex { display:flex !important; } }
@media (min-width: 768px) { body.portal-shell .d-md-inline { display: inline !important; } body.portal-shell .d-md-inline-block { display: inline-block !important; } body.portal-shell .d-md-flex { display:flex !important; } }
@media (min-width: 992px) { body.portal-shell .d-lg-inline-block { display: inline-block !important; } body.portal-shell .d-lg-flex { display:flex !important; } }
body.portal-shell .align-items-center { align-items: center !important; }
body.portal-shell .justify-content-center { justify-content: center !important; }
body.portal-shell .justify-content-between { justify-content: space-between !important; }
body.portal-shell .text-center { text-align: center !important; }
body.portal-shell .text-right { text-align: right !important; }
body.portal-shell .text-nowrap { white-space: nowrap !important; }
body.portal-shell .text-muted { color: var(--portal-muted, #64748b) !important; }
body.portal-shell .float-right,
body.portal-shell .pull-right { float: right !important; }
body.portal-shell .h-100 { height: 100% !important; }
body.portal-shell .w-100 { width: 100% !important; }
body.portal-shell .m-0 { margin: 0 !important; }
body.portal-shell .mt-2 { margin-top: .5rem !important; }
body.portal-shell .mt-3 { margin-top: 1rem !important; }
body.portal-shell .mt-4 { margin-top: 1.5rem !important; }
body.portal-shell .mb-0 { margin-bottom: 0 !important; }
body.portal-shell .mb-2 { margin-bottom: .5rem !important; }
body.portal-shell .mb-3 { margin-bottom: 1rem !important; }
body.portal-shell .mb-4 { margin-bottom: 1.5rem !important; }
body.portal-shell .mr-1 { margin-right: .25rem !important; }
body.portal-shell .mr-2 { margin-right: .5rem !important; }
body.portal-shell .ml-auto { margin-left: auto !important; }
body.portal-shell .me-2 { margin-right: .5rem !important; }
body.portal-shell .p-0 { padding: 0 !important; }
body.portal-shell .p-3 { padding: 1rem !important; }
body.portal-shell .py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
body.portal-shell .py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
body.portal-shell .py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
body.portal-shell .gap-2 { gap: .5rem !important; }
body.portal-shell .table-responsive { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
body.portal-shell .table { width: 100%; margin-bottom: 1rem; color: var(--portal-ink, #0f172a); border-collapse: collapse; }
body.portal-shell .table th,
body.portal-shell .table td { padding: .75rem; vertical-align: top; border-top: 1px solid rgba(15,23,42,.10); }
body.portal-shell .table-bordered { border: 1px solid rgba(15,23,42,.12); }
body.portal-shell .table-bordered th,
body.portal-shell .table-bordered td { border: 1px solid rgba(15,23,42,.12); }
body.portal-shell .align-middle { vertical-align: middle !important; }
body.portal-shell .form-group { margin-bottom: 1rem; }
body.portal-shell .form-label,
body.portal-shell label { display: inline-block; margin-bottom: .5rem; font-weight: 800; color: var(--portal-ink, #0f172a); }
body.portal-shell .form-control {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: .625rem .875rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #1f2937;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(15,23,42,.16);
  border-radius: 14px;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
body.portal-shell textarea.form-control { min-height: 120px; }
body.portal-shell .form-control:focus { border-color: var(--portal-primary, #087550); outline: 0; box-shadow: 0 0 0 .18rem rgba(var(--portal-primary-rgb,8,117,80),.14); }
body.portal-shell .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  font-weight: 800;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: .55rem .9rem;
  font-size: .95rem;
  line-height: 1.5;
  border-radius: 999px;
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out, transform .15s ease;
}
body.portal-shell .btn:hover { transform: translateY(-1px); text-decoration: none; }
body.portal-shell .btn-sm { padding: .38rem .72rem; font-size: .84rem; }
body.portal-shell .btn-success,
body.portal-shell .btn-primary { color: #fff !important; background: linear-gradient(135deg, var(--portal-primary,#087550), var(--portal-primary-2,#14b8a6)) !important; border-color: transparent !important; }
body.portal-shell .btn-secondary { color: #fff !important; background: #64748b !important; }
body.portal-shell .btn-danger { color: #fff !important; background: #dc2626 !important; }
body.portal-shell .btn-light { color: var(--portal-ink,#0f172a) !important; background: #f8fafc !important; border-color: rgba(15,23,42,.12) !important; }
body.portal-shell .alert { position: relative; padding: .9rem 1rem; margin-bottom: 1rem; border: 1px solid transparent; border-radius: 16px; }
body.portal-shell .alert-warning { color: #7c2d12; background: #fff7ed; border-color: #fed7aa; }
body.portal-shell .alert-danger { color: #7f1d1d; background: #fef2f2; border-color: #fecaca; }
body.portal-shell .alert-success { color: #064e3b; background: #ecfdf5; border-color: #a7f3d0; }
body.portal-shell .alert-info { color: #075985; background: #f0f9ff; border-color: #bae6fd; }
body.portal-shell .close { float: right; font-size: 1.5rem; font-weight: 900; line-height: 1; color: #000; text-shadow: 0 1px 0 #fff; opacity: .55; background: transparent; border: 0; }
body.portal-shell .close:hover { opacity: .85; }
body.portal-shell .modal:not(.show) { display: none !important; }
body.portal-shell .modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1055;
  display: none;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
  background: rgba(15, 23, 42, .52);
}
body.portal-shell .modal.show { display: block !important; }
body.portal-shell .modal-dialog {
  position: relative;
  width: auto;
  margin: 1.75rem auto;
  pointer-events: none;
  max-width: 500px;
}
body.portal-shell .modal-dialog-centered { display: flex; align-items: center; min-height: calc(100% - 3.5rem); }
body.portal-shell .modal-lg { max-width: 800px; }
body.portal-shell .modal-xl { max-width: 1140px; }
body.portal-shell .modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-color: #fff !important;
  background-clip: padding-box;
  border: 1px solid rgba(15, 23, 42, .12) !important;
  border-radius: 24px !important;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .28) !important;
  outline: 0;
}
body.portal-shell .modal-header,
body.portal-shell .modal-footer { display: flex; align-items: center; padding: 1rem 1.25rem; border-color: rgba(15,23,42,.10) !important; }
body.portal-shell .modal-header { justify-content: space-between; border-bottom: 1px solid rgba(15,23,42,.10); }
body.portal-shell .modal-footer { justify-content: flex-end; gap: .5rem; border-top: 1px solid rgba(15,23,42,.10); }
body.portal-shell .modal-title { margin: 0; line-height: 1.5; font-weight: 900; }
body.portal-shell .modal-body { position: relative; flex: 1 1 auto; padding: 1.25rem; }
body.modal-open { overflow: hidden !important; }
body.portal-shell .modal-backdrop,
.modal-backdrop.nsps-fallback-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, .52);
}
@media (max-width: 575.98px) {
  body.portal-shell .modal-dialog { margin: .75rem; max-width: calc(100% - 1.5rem); }
}
body.portal-shell .note-editor,
body.portal-shell .note-editor .note-toolbar,
body.portal-shell .note-editor .note-editing-area,
body.portal-shell .note-editor .note-statusbar { max-width: 100%; }
body.portal-shell .note-editor { border-radius: 18px; overflow: hidden; border-color: rgba(var(--portal-primary-rgb,8,117,80),.16) !important; }
body.portal-shell .note-toolbar { display: flex; flex-wrap: wrap; gap: 4px; }
body.portal-shell .note-btn-group { display: inline-flex; flex-wrap: wrap; }
body.portal-shell .portal-dashboard-modern,
body.portal-shell .portal-card,
body.portal-shell .card,
body.portal-shell .content,
body.portal-shell .content-wrapper { max-width: 100%; }

/* v9: unified wallet-style theme enforcement across all member portal pages.
   The wallet page pattern is now the canonical pattern: primary-dark -> primary -> primary-2
   gradient, theme-tinted card accents, and theme-aware action components. */
html body.portal-shell,
html body.portal-shell * {
  --nsps-page-theme-shadow: 0 22px 58px rgba(var(--portal-primary-rgb, 11,99,206), .24);
}

html body.portal-shell .content-wrapper,
html body.portal-shell .portal-dashboard-modern,
html body.portal-shell .portal-dashboard-page,
html body.portal-shell .portal-content-section {
  background: transparent !important;
}

html body.portal-shell .portal-page-hero,
html body.portal-shell .portal-dashboard-hero,
html body.portal-shell .content-header,
html body.portal-shell .portal-membership-hero,
html body.portal-shell .nsps-service-hero,
html body.portal-shell .nsps-shop-hero,
html body.portal-shell .nsps-video-hero,
html body.portal-shell .nsps-chat-hub-hero,
html body.portal-shell .nsps-wa-pro-hero,
html body.portal-shell .nsps-wa-hero {
  color: #fff !important;
  background:
    radial-gradient(circle at 12% 12%, rgba(var(--portal-accent-rgb, 34,211,238), .30), transparent 24rem),
    radial-gradient(circle at 88% 5%, rgba(255,255,255,.18), transparent 20rem),
    linear-gradient(135deg, var(--portal-primary-dark, #061c3b) 0%, var(--portal-primary, #0b63ce) 58%, var(--portal-primary-2, #38bdf8) 100%) !important;
  box-shadow: var(--nsps-page-theme-shadow) !important;
  border: 0 !important;
}

html body.portal-shell .portal-page-hero h1,
html body.portal-shell .portal-page-hero h2,
html body.portal-shell .portal-page-hero h3,
html body.portal-shell .portal-page-hero p,
html body.portal-shell .portal-page-hero small,
html body.portal-shell .portal-page-hero span,
html body.portal-shell .portal-page-hero strong,
html body.portal-shell .portal-page-hero a,
html body.portal-shell .portal-page-hero i,
html body.portal-shell .content-header h1,
html body.portal-shell .content-header a,
html body.portal-shell .content-header span {
  color: #fff !important;
}

html body.portal-shell .portal-page-hero p,
html body.portal-shell .portal-page-hero small {
  color: rgba(255,255,255,.84) !important;
}

html body.portal-shell .portal-breadcrumb,
html body.portal-shell .portal-eyebrow,
html body.portal-shell .portal-status-card,
html body.portal-shell .nsps-service-hero-stats,
html body.portal-shell .nsps-shop-hero-stats,
html body.portal-shell .nsps-video-stat-grid > *,
html body.portal-shell .nsps-hub-stat,
html body.portal-shell .portal-dashboard-hero-card {
  color: #fff !important;
  background: rgba(255,255,255,.14) !important;
  border-color: rgba(255,255,255,.28) !important;
  box-shadow: 0 18px 44px rgba(var(--portal-primary-rgb, 11,99,206), .18) !important;
}

html body.portal-shell .portal-breadcrumb a,
html body.portal-shell .portal-breadcrumb strong,
html body.portal-shell .portal-breadcrumb span,
html body.portal-shell .portal-eyebrow,
html body.portal-shell .portal-eyebrow i,
html body.portal-shell .portal-status-card *,
html body.portal-shell .nsps-hub-stat *,
html body.portal-shell .portal-dashboard-hero-card * {
  color: #fff !important;
}

html body.portal-shell .card,
html body.portal-shell .portal-card,
html body.portal-shell .wallet-card,
html body.portal-shell .activity-card,
html body.portal-shell .helpdesk-card,
html body.portal-shell .library-card,
html body.portal-shell .collab-card,
html body.portal-shell .research-card,
html body.portal-shell .portal-iq-card,
html body.portal-shell .payment-card,
html body.portal-shell .benefit-card,
html body.portal-shell .gold-card,
html body.portal-shell .portal-dashboard-overview-card,
html body.portal-shell .portal-dashboard-graph-card,
html body.portal-shell .portal-dashboard-graph-card-light,
html body.portal-shell .portal-dashboard-donut-card,
html body.portal-shell .portal-dashboard-mini-card,
html body.portal-shell .portal-dashboard-member-progress-card,
html body.portal-shell .portal-dashboard-admin-panel,
html body.portal-shell .nsps-service-card,
html body.portal-shell .nsps-service-admin-card,
html body.portal-shell .nsps-service-fee-card,
html body.portal-shell .nsps-service-payment-panel,
html body.portal-shell .nsps-shop-item-card,
html body.portal-shell .nsps-shop-cart-panel,
html body.portal-shell .nsps-shop-orders-panel,
html body.portal-shell .nsps-shop-payment-panel,
html body.portal-shell .nsps-shop-admin-card,
html body.portal-shell .vf-panel,
html body.portal-shell .vf-join-card,
html body.portal-shell .vf-status-card,
html body.portal-shell .vf-upload-card,
html body.portal-shell .vf-admin-video-card,
html body.portal-shell .vf-public-video-card,
html body.portal-shell .nsps-chat-card,
html body.portal-shell .nsps-chat-room-card,
html body.portal-shell .nsps-wa-side-card,
html body.portal-shell .nsps-wa-side-panel {
  border-color: rgba(var(--portal-primary-rgb, 11,99,206), .14) !important;
  box-shadow: 0 24px 60px rgba(var(--portal-primary-rgb, 11,99,206), .10) !important;
}

html body.portal-shell .card::before,
html body.portal-shell .portal-card::before,
html body.portal-shell .wallet-card::before,
html body.portal-shell .activity-card::before,
html body.portal-shell .helpdesk-card::before,
html body.portal-shell .library-card::before,
html body.portal-shell .collab-card::before,
html body.portal-shell .research-card::before,
html body.portal-shell .portal-iq-card::before,
html body.portal-shell .payment-card::before,
html body.portal-shell .benefit-card::before,
html body.portal-shell .portal-dashboard-overview-card::before,
html body.portal-shell .portal-dashboard-graph-card::before,
html body.portal-shell .portal-dashboard-donut-card::before,
html body.portal-shell .portal-dashboard-mini-card::before,
html body.portal-shell .portal-dashboard-admin-panel::before,
html body.portal-shell .nsps-service-card::before,
html body.portal-shell .nsps-service-admin-card::before,
html body.portal-shell .nsps-shop-item-card::before,
html body.portal-shell .nsps-shop-cart-panel::before,
html body.portal-shell .nsps-shop-orders-panel::before,
html body.portal-shell .vf-panel::before,
html body.portal-shell .vf-join-card::before,
html body.portal-shell .vf-status-card::before,
html body.portal-shell .vf-upload-card::before,
html body.portal-shell .nsps-chat-card::before,
html body.portal-shell .nsps-chat-room-card::before {
  background: linear-gradient(90deg, var(--portal-primary, #0b63ce), var(--portal-primary-2, #38bdf8)) !important;
}

html body.portal-shell .portal-icon-circle,
html body.portal-shell .wallet-icon,
html body.portal-shell .library-icon,
html body.portal-shell .helpdesk-topic-icon,
html body.portal-shell .vf-video-icon,
html body.portal-shell .vf-join-icon,
html body.portal-shell .portal-dashboard-check-icon,
html body.portal-shell .portal-conference-icon,
html body.portal-shell .nsps-chat-room-icon,
html body.portal-shell .nsps-side-heading > span,
html body.portal-shell .nsps-wa-room-avatar,
html body.portal-shell .nsps-portal-search-icon,
html body.portal-shell .nsps-portal-search-result-icon {
  color: #fff !important;
  background: linear-gradient(135deg, var(--portal-primary, #0b63ce), var(--portal-primary-2, #38bdf8)) !important;
  box-shadow: 0 18px 40px rgba(var(--portal-primary-rgb, 11,99,206), .22) !important;
}

html body.portal-shell .wallet-balance,
html body.portal-shell .portal-card-gradient,
html body.portal-shell .portal-dashboard-command,
html body.portal-shell .portal-dashboard-admin-stats,
html body.portal-shell .portal-dashboard-stat-card,
html body.portal-shell .portal-dashboard-status-grid,
html body.portal-shell .portal-dashboard-member-stats,
html body.portal-shell .gpws-stat,
html body.portal-shell .portal-iq-kpi-item,
html body.portal-shell .helpdesk-kpi,
html body.portal-shell .library-kpi,
html body.portal-shell .collab-kpi,
html body.portal-shell .activity-stat,
html body.portal-shell .nsps-service-fee-card,
html body.portal-shell .nsps-service-formula,
html body.portal-shell .nsps-shop-cart-summary,
html body.portal-shell .vf-status-card {
  background:
    radial-gradient(circle at 15% 5%, rgba(var(--portal-accent-rgb, 34,211,238), .18), transparent 16rem),
    linear-gradient(135deg, rgba(var(--portal-primary-rgb, 11,99,206), .10), rgba(var(--portal-primary-rgb, 11,99,206), .045)) !important;
  border-color: rgba(var(--portal-primary-rgb, 11,99,206), .14) !important;
}

html body.portal-shell .wallet-balance,
html body.portal-shell .portal-card-gradient,
html body.portal-shell .portal-dashboard-stat-card,
html body.portal-shell .portal-dashboard-admin-stats {
  color: #fff !important;
  background:
    radial-gradient(circle at 10% 10%, rgba(var(--portal-accent-rgb, 34,211,238), .26), transparent 18rem),
    linear-gradient(135deg, var(--portal-primary-dark, #061c3b), var(--portal-primary, #0b63ce) 60%, var(--portal-primary-2, #38bdf8)) !important;
}

html body.portal-shell .wallet-balance *,
html body.portal-shell .portal-card-gradient *,
html body.portal-shell .portal-dashboard-stat-card *,
html body.portal-shell .portal-dashboard-admin-stats * {
  color: #fff !important;
}

html body.portal-shell .wallet-topic i,
html body.portal-shell .activity-pill,
html body.portal-shell .library-badge,
html body.portal-shell .library-panel-soft,
html body.portal-shell .wallet-pill,
html body.portal-shell .portal-iq-pill,
html body.portal-shell .collab-pill,
html body.portal-shell .research-pill,
html body.portal-shell .helpdesk-status,
html body.portal-shell .helpdesk-topic-btn,
html body.portal-shell .nsps-service-category,
html body.portal-shell .nsps-shop-category,
html body.portal-shell .portal-dashboard-pill,
html body.portal-shell .portal-dashboard-status-pill,
html body.portal-shell .portal-status-pill-modern {
  color: var(--portal-primary, #0b63ce) !important;
  background: rgba(var(--portal-primary-rgb, 11,99,206), .10) !important;
  border-color: rgba(var(--portal-primary-rgb, 11,99,206), .18) !important;
}

html body.portal-shell .btn-success,
html body.portal-shell .btn-primary,
html body.portal-shell .btn-info,
html body.portal-shell .btn-green,
html body.portal-shell .btn-gpws-primary,
html body.portal-shell .btn-outline-green:hover,
html body.portal-shell .btn-outline-primary:hover,
html body.portal-shell .btn-outline-success:hover,
html body.portal-shell .vf-join-btn,
html body.portal-shell .download-btn,
html body.portal-shell .nsps-wa-send-btn,
html body.portal-shell .nsps-wa-attach-btn,
html body.portal-shell .nsps-wa-icon-btn,
html body.portal-shell .nsps-wa-unread-btn,
html body.portal-shell .nsps-service-resolve-bank-btn,
html body.portal-shell .nsps-portal-search-toggle {
  color: #fff !important;
  background: linear-gradient(135deg, var(--portal-primary, #0b63ce), var(--portal-primary-2, #38bdf8)) !important;
  border-color: transparent !important;
  box-shadow: 0 14px 34px rgba(var(--portal-primary-rgb, 11,99,206), .20) !important;
}

html body.portal-shell .btn-outline-green,
html body.portal-shell .btn-outline-primary,
html body.portal-shell .btn-outline-success,
html body.portal-shell .btn-gpws-outline,
html body.portal-shell .portal-action-bar .btn-light {
  color: var(--portal-primary, #0b63ce) !important;
  border-color: rgba(var(--portal-primary-rgb, 11,99,206), .24) !important;
  background: rgba(var(--portal-primary-rgb, 11,99,206), .06) !important;
}

html body.portal-shell .form-control:focus,
html body.portal-shell .custom-select:focus,
html body.portal-shell textarea.form-control:focus,
html body.portal-shell .select2-container--default .select2-selection--single:focus,
html body.portal-shell .note-editor:focus-within {
  border-color: var(--portal-primary, #0b63ce) !important;
  box-shadow: 0 0 0 .18rem rgba(var(--portal-primary-rgb, 11,99,206), .14) !important;
}

html body.portal-shell .table th,
html body.portal-shell .wallet-table th,
html body.portal-shell .activity-table th,
html body.portal-shell .library-table th,
html body.portal-shell .portal-dashboard-modern table thead th {
  background: rgba(var(--portal-primary-rgb, 11,99,206), .10) !important;
  color: var(--portal-primary-dark, #061c3b) !important;
}

html body.portal-shell .wallet-hint,
html body.portal-shell .wallet-payment-panel,
html body.portal-shell .helpdesk-filter,
html body.portal-shell .activity-filter,
html body.portal-shell .portal-soft-panel,
html body.portal-shell .helpdesk-ticket-thread summary,
html body.portal-shell .library-panel-soft,
html body.portal-shell .collab-filter,
html body.portal-shell .research-soft-panel,
html body.portal-shell .portal-dashboard-alert-soft {
  color: var(--portal-primary-dark, #061c3b) !important;
  background: rgba(var(--portal-primary-rgb, 11,99,206), .06) !important;
  border-color: rgba(var(--portal-primary-rgb, 11,99,206), .16) !important;
}

html body.portal-shell .text-success,
html body.portal-shell .wallet-topic i,
html body.portal-shell .portal-dashboard-modern a:not(.btn):not(.nav-link):not(.portal-sidebar-action-btn):not(.portal-breadcrumb a) {
  color: var(--portal-primary, #0b63ce) !important;
}

html body.portal-shell .main-sidebar,
html body.portal-shell .main-header {
  background:
    radial-gradient(circle at 8% 0%, rgba(var(--portal-accent-rgb, 34,211,238), .30), transparent 24rem),
    radial-gradient(circle at 96% -20%, rgba(255,255,255,.18), transparent 20rem),
    linear-gradient(135deg, var(--portal-primary-dark, #061c3b), var(--portal-primary, #0b63ce) 58%, var(--portal-primary-2, #38bdf8)) !important;
}

@media (max-width: 991.98px) {
  html body.portal-shell .portal-page-hero,
  html body.portal-shell .portal-dashboard-hero,
  html body.portal-shell .nsps-service-hero,
  html body.portal-shell .nsps-shop-hero,
  html body.portal-shell .nsps-video-hero,
  html body.portal-shell .nsps-chat-hub-hero {
    margin-left: 12px !important;
    margin-right: 12px !important;
    padding: 24px !important;
  }
}



/* Header portal search reinforcement (v10) */
html body.portal-shell .main-header .nsps-portal-search-nav {
  display: inline-flex !important;
  align-items: center !important;
  margin-right: .45rem !important;
}
html body.portal-shell .main-header button.nsps-portal-search-toggle {
  min-width: 46px !important;
  min-height: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: .48rem .82rem !important;
  border: 1px solid rgba(255,255,255,.20) !important;
  border-radius: 999px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  color: #fff !important;
  background: linear-gradient(135deg, var(--portal-primary, #0b63ce), var(--portal-primary-2, #38bdf8)) !important;
  box-shadow: 0 12px 28px rgba(var(--portal-primary-rgb, 11,99,206), .22) !important;
}
html body.portal-shell .main-header button.nsps-portal-search-toggle:hover,
html body.portal-shell .main-header button.nsps-portal-search-toggle:focus {
  transform: translateY(-1px) !important;
  filter: brightness(1.04) !important;
}
html body.portal-shell .main-header button.nsps-portal-search-toggle i {
  margin: 0 !important;
  font-size: .95rem !important;
}
html body.portal-shell .main-header button.nsps-portal-search-toggle .nsps-portal-search-toggle-text {
  color: #fff !important;
  font-size: .9rem !important;
}
@media (max-width: 767.98px) {
  html body.portal-shell .main-header .nsps-portal-search-nav {
    margin-right: .25rem !important;
  }
  html body.portal-shell .main-header button.nsps-portal-search-toggle {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
  }
}
