
/* Step 87: company standards */
#nik87-company-standards-root,
#nik87-company-standards-root * {
  box-sizing: border-box;
}

#nik87-company-standards-root {
  position: fixed;
  inset: 0;
  z-index: 9400;
  display: none;
  color: #0f172a;
}

#nik87-company-standards-root.is-open {
  display: block;
}

.nik87-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .44);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nik87-shell {
  position: absolute;
  inset: 16px;
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(125, 180, 255, .32);
  border-radius: 34px;
  background:
    radial-gradient(circle at 8% 10%, rgba(186, 230, 253, .48), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(14, 165, 233, .20), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(239,248,255,.90));
  box-shadow: 0 42px 130px rgba(15, 23, 42, .30);
}

.nik87-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px;
  border-bottom: 1px solid rgba(125, 180, 255, .20);
}

.nik87-header span {
  display: inline-flex;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.nik87-header h2 {
  margin: 14px 0 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
  letter-spacing: -.055em;
}

.nik87-header p {
  max-width: 860px;
  margin: 10px 0 0;
  color: #52657c;
  line-height: 1.55;
}

.nik87-close {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(125, 180, 255, .26);
  border-radius: 17px;
  background: rgba(255,255,255,.76);
  color: #0f172a;
  font-size: 24px;
  cursor: pointer;
}

.nik87-content {
  min-height: 0;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
}

.nik87-side,
.nik87-viewer {
  min-height: 0;
  border: 1px solid rgba(125, 180, 255, .24);
  border-radius: 28px;
  background: rgba(255,255,255,.74);
  box-shadow: 0 18px 50px rgba(35,93,150,.10);
  overflow: hidden;
}

.nik87-side {
  padding: 16px;
}

.nik87-card {
  display: grid;
  gap: 13px;
}

.nik87-card .nik87-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(37,99,235,.14), rgba(14,165,233,.18));
  font-size: 26px;
}

.nik87-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -.035em;
}

.nik87-card p {
  margin: 0;
  color: #52657c;
  line-height: 1.55;
}

.nik87-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.nik87-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(125,180,255,.16);
  border-radius: 16px;
  background: rgba(248,250,252,.70);
  padding: 10px 12px;
}

.nik87-card dt {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.nik87-card dd {
  margin: 0;
  font-weight: 900;
  color: #0f172a;
  text-align: right;
}

.nik87-primary,
.nik87-secondary,
.nik87-viewer-top a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 950;
  cursor: pointer;
}

.nik87-primary {
  border: 0;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: white;
  box-shadow: 0 18px 44px rgba(37,99,235,.22);
}

.nik87-secondary,
.nik87-viewer-top a {
  border: 1px solid rgba(125,180,255,.26);
  background: rgba(255,255,255,.78);
  color: #075985;
}

.nik87-status {
  border: 1px solid rgba(34,197,94,.26);
  border-radius: 16px;
  background: rgba(240,253,244,.86);
  color: #047857;
  padding: 12px;
  font-weight: 900;
  line-height: 1.45;
}

.nik87-viewer {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.nik87-viewer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid rgba(125,180,255,.18);
}

.nik87-viewer-top b,
.nik87-viewer-top span {
  display: block;
}

.nik87-viewer-top span {
  margin-top: 3px;
  color: #64748b;
  font-size: 13px;
}

.nik87-viewer iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.nik87-empty,
.nik87-error {
  border: 1px dashed rgba(125,180,255,.34);
  border-radius: 22px;
  padding: 24px;
  text-align: center;
  color: #64748b;
}

.nik87-error {
  border-color: rgba(248,113,113,.34);
  background: rgba(255,241,242,.82);
  color: #be123c;
}

.nik87-menu-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: rgba(14,165,233,.10);
}

.nik87-menu-copy {
  display: grid;
  gap: 3px;
}

.nik87-menu-copy b {
  font-weight: 900;
}

.nik87-menu-copy small {
  color: #64748b;
  font-size: 12px;
}

#nik87-company-standards-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9500;
  display: none;
  max-width: min(460px, calc(100vw - 32px));
  border: 1px solid rgba(125,211,252,.45);
  border-radius: 20px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 80px rgba(15,23,42,.18);
  color: #0f172a;
  padding: 14px 16px;
  font-weight: 850;
}

#nik87-company-standards-toast.is-visible {
  display: block;
}

@media (max-width: 920px) {
  .nik87-shell {
    inset: 8px;
    border-radius: 26px;
  }

  .nik87-content {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .nik87-viewer {
    min-height: 72vh;
  }

  .nik87-viewer-top {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* Step 88: robust menu button for company standards */
.nik87-company-menu-button {
  width: 100%;
  min-height: 66px;
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(125, 211, 252, .48) !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 8% 12%, rgba(186,230,253,.42), transparent 34%),
    rgba(255,255,255,.62) !important;
  color: #20324a !important;
  padding: 10px 14px !important;
  box-shadow: 0 12px 34px rgba(35,93,150,.08), inset 0 1px 0 rgba(255,255,255,.70);
  cursor: pointer;
  text-align: left;
  text-decoration: none !important;
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.nik87-company-menu-button:hover {
  transform: translateY(-1px);
  border-color: rgba(14,165,233,.62) !important;
  background: rgba(255,255,255,.78) !important;
  box-shadow: 0 18px 44px rgba(35,93,150,.12), inset 0 1px 0 rgba(255,255,255,.86);
}

.nik87-company-menu-button-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: rgba(14,165,233,.12);
  font-size: 20px;
}

.nik87-company-menu-button-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.nik87-company-menu-button-copy b {
  color: #27364b;
  font-size: 15px;
  line-height: 1.1;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nik87-company-menu-button-copy small {
  color: #6b7d93;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nik87-company-menu-button-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #38bdf8;
  box-shadow: 0 0 0 5px rgba(56,189,248,.16);
}

.nik87-company-standards-floating {
  position: fixed;
  left: 22px;
  bottom: 86px;
  z-index: 9350;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(125, 211, 252, .52);
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #0f172a;
  padding: 0 16px;
  box-shadow: 0 20px 60px rgba(15,23,42,.18);
  font-weight: 950;
  cursor: pointer;
}

.nik87-company-standards-floating span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(14,165,233,.12);
}

@media (max-width: 720px) {
  .nik87-company-standards-floating {
    left: 10px;
    right: 10px;
    bottom: 78px;
    justify-content: center;
  }
}


/* Step 89: place company standards strictly inside sidebar after Home */
.nik87-company-standards-floating {
  display: none !important;
}

.nik87-sidebar-standard-item {
  width: 100%;
  min-height: 66px;
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(125, 211, 252, .46) !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 8% 12%, rgba(186,230,253,.42), transparent 34%),
    rgba(255,255,255,.60) !important;
  color: #20324a !important;
  padding: 10px 14px !important;
  margin: 8px 0 !important;
  box-shadow: 0 12px 34px rgba(35,93,150,.08), inset 0 1px 0 rgba(255,255,255,.70);
  cursor: pointer;
  text-align: left;
  text-decoration: none !important;
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.nik87-sidebar-standard-item:hover {
  transform: translateY(-1px);
  border-color: rgba(14,165,233,.62) !important;
  background: rgba(255,255,255,.78) !important;
  box-shadow: 0 18px 44px rgba(35,93,150,.12), inset 0 1px 0 rgba(255,255,255,.86);
}

.nik87-sidebar-standard-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: rgba(14,165,233,.12);
  font-size: 20px;
}

.nik87-sidebar-standard-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.nik87-sidebar-standard-copy b {
  color: #27364b;
  font-size: 15px;
  line-height: 1.1;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nik87-sidebar-standard-copy small {
  color: #6b7d93;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nik87-open-new {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(125,180,255,.26);
  border-radius: 16px;
  background: rgba(255,255,255,.78);
  color: #075985;
  padding: 0 14px;
  text-decoration: none;
  font-weight: 950;
  cursor: pointer;
}

.nik87-secondary {
  width: 100%;
  border: 1px solid rgba(125,180,255,.26);
  background: rgba(255,255,255,.78);
  color: #075985;
}
