﻿[hidden] {
  display: none !important;
}

:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #667085;
  --line: #e5e7eb;
  --panel: #ffffff;
  --canvas: #f7f7f8;
  --nav: #0f0f10;
  --nav-soft: #2a2a2d;
  --brand: #e31b23;
  --brand-dark: #b61218;
  --success: #15803d;
}

/* Company portal compact landing */
body.portal-page[data-page="staffDirectory"]:not(.landing-active) .sidebar {
  min-height: 4.2rem !important;
  padding: 0.55rem clamp(1rem, 3vw, 2.5rem) !important;
  border-bottom: 4px solid #dbe87a !important;
}

body.portal-page[data-page="staffDirectory"]:not(.landing-active) .side-nav .nav-item:first-of-type {
  min-height: 2.35rem !important;
  padding: 0.55rem 1rem !important;
  font-size: 0.82rem !important;
}

body.portal-page[data-page="staffDirectory"]:not(.landing-active) .main-area {
  gap: 0.75rem !important;
  padding: clamp(0.75rem, 1.8vw, 1.25rem) clamp(1rem, 3vw, 2.5rem) !important;
}

body.portal-page[data-page="staffDirectory"]:not(.landing-active) .content-stack {
  gap: 0.75rem !important;
}

body.portal-page[data-page="staffDirectory"]:not(.landing-active) .staff-portal-panel {
  padding: clamp(0.85rem, 2vw, 1.25rem) !important;
}

body.portal-page[data-page="staffDirectory"]:not(.landing-active) .staff-portal-panel .panel-header {
  margin-bottom: 0.75rem !important;
  padding-bottom: 0.55rem !important;
}

body.portal-page[data-page="staffDirectory"]:not(.landing-active) .staff-portal-panel .panel-header h3 {
  font-size: clamp(1.05rem, 2vw, 1.35rem) !important;
}

body.portal-page[data-page="staffDirectory"]:not(.landing-active) .staff-login-card {
  grid-template-columns: minmax(13rem, 0.72fr) minmax(21rem, 1.28fr) !important;
  gap: clamp(0.75rem, 1.6vw, 1rem) !important;
  align-items: end !important;
  padding: clamp(0.85rem, 1.9vw, 1.15rem) !important;
  border-radius: 12px !important;
}

body.portal-page[data-page="staffDirectory"]:not(.landing-active) .staff-login-intro {
  min-height: 9.5rem !important;
  gap: 0.45rem !important;
  padding: clamp(0.85rem, 1.8vw, 1.15rem) !important;
}

body.portal-page[data-page="staffDirectory"]:not(.landing-active) .staff-login-intro span {
  padding: 0.34rem 0.58rem !important;
  font-size: 0.66rem !important;
}

body.portal-page[data-page="staffDirectory"]:not(.landing-active) .staff-login-card h4 {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem) !important;
}

body.portal-page[data-page="staffDirectory"]:not(.landing-active) .staff-login-card p {
  font-size: 0.9rem !important;
  line-height: 1.45 !important;
}

body.portal-page[data-page="staffDirectory"]:not(.landing-active) .staff-login-form {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto !important;
  gap: 0.75rem !important;
  padding: 0.85rem !important;
  border-radius: 12px !important;
}

body.portal-page[data-page="staffDirectory"]:not(.landing-active) .staff-login-form input,
body.portal-page[data-page="staffDirectory"]:not(.landing-active) .staff-login-form .primary-button {
  min-height: 2.65rem !important;
  padding: 0.62rem 0.75rem !important;
  border-radius: 8px !important;
}

body.portal-page[data-page="staffDirectory"]:not(.landing-active) .staff-registration-panel {
  gap: 0.75rem !important;
  padding: 0.9rem !important;
  border-radius: 12px !important;
}

@media (max-width: 760px) {
  body.portal-page[data-page="staffDirectory"]:not(.landing-active) .sidebar {
    min-height: 3.55rem !important;
    padding: 0.42rem 0.75rem !important;
  }

  body.portal-page[data-page="staffDirectory"]:not(.landing-active) .main-area {
    padding: 0.65rem !important;
  }

  body.portal-page[data-page="staffDirectory"]:not(.landing-active) .staff-login-card,
  body.portal-page[data-page="staffDirectory"]:not(.landing-active) .staff-login-form {
    grid-template-columns: 1fr !important;
  }

  body.portal-page[data-page="staffDirectory"]:not(.landing-active) .staff-login-intro {
    min-height: auto !important;
  }
}

/* Final futuristic landing override */
.landing-page {
  background:
    radial-gradient(circle at 50% 34%, rgba(250, 204, 21, 0.2), transparent 18rem),
    radial-gradient(circle at 22% 14%, rgba(56, 189, 248, 0.28), transparent 22rem),
    radial-gradient(circle at 82% 78%, rgba(37, 99, 235, 0.36), transparent 24rem),
    linear-gradient(145deg, #020817 0%, #061b3f 44%, #020617 100%);
}

body.landing-active {
  overflow: auto;
}

body.landing-active .landing-page {
  position: relative;
  inset: auto;
  min-height: 100dvh;
  height: auto;
  overflow: hidden;
  padding-block: clamp(0.9rem, 2.5vh, 1.6rem);
}

body.landing-active .landing-content {
  margin: auto;
  padding: clamp(1rem, 2.5vw, 2.2rem);
}

body.landing-active .landing-logo {
  width: clamp(4.25rem, 9vw, 6.5rem);
  height: clamp(4.25rem, 9vw, 6.5rem);
  margin-bottom: 0.75rem;
}

body.landing-active .landing-eagle {
  width: min(72vw, 21rem);
  margin-bottom: 0.75rem;
}

body.landing-active .landing-content h1 {
  margin-top: 0.75rem;
  font-size: clamp(2rem, 5.8vw, 4.4rem);
}

body.landing-active .landing-content p {
  margin-top: 0.75rem;
}

body.landing-active .landing-actions {
  margin-top: 1.35rem;
}

.landing-page::before {
  background:
    linear-gradient(115deg, transparent 0 43%, rgba(250, 204, 21, 0.18) 44%, transparent 45% 100%),
    repeating-linear-gradient(90deg, rgba(125, 211, 252, 0.08) 0 1px, transparent 1px 7rem),
    repeating-linear-gradient(0deg, rgba(125, 211, 252, 0.08) 0 1px, transparent 1px 7rem);
  animation: techSweep 14s linear infinite;
}

.landing-page::after {
  background:
    radial-gradient(circle, rgba(250, 204, 21, 0.35) 0 2px, transparent 3px) 14% 24% / 9rem 9rem,
    radial-gradient(circle, rgba(125, 211, 252, 0.38) 0 2px, transparent 3px) 78% 62% / 11rem 11rem,
    linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.18), transparent);
  mask-image: none;
  animation: gridDrift 20s linear infinite;
}

.landing-content {
  width: min(100%, 62rem);
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(8, 47, 73, 0.34), rgba(2, 6, 23, 0.46)),
    rgba(2, 6, 23, 0.34);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 44px rgba(56, 189, 248, 0.14);
  backdrop-filter: blur(18px);
  padding: clamp(1.4rem, 4vw, 3.2rem);
}

.landing-logo {
  display: grid;
  width: clamp(5rem, 12vw, 8rem);
  height: clamp(5rem, 12vw, 8rem);
  place-items: center;
  margin-bottom: clamp(0.8rem, 2vw, 1.4rem);
  border: 1px solid rgba(250, 204, 21, 0.34);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(219, 234, 254, 0.88)),
    #ffffff;
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.22),
    0 0 32px rgba(250, 204, 21, 0.16);
  padding: 0.7rem;
}

.landing-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.landing-certification-badges {
  position: absolute;
  top: clamp(0.75rem, 2.4vw, 1.5rem);
  right: clamp(0.75rem, 2.4vw, 1.5rem);
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.landing-certification-badges img {
  display: block;
  width: clamp(6rem, 9.5vw, 8.25rem);
  height: clamp(6rem, 9.5vw, 8.25rem);
  object-fit: contain;
  border-radius: 50%;
  filter:
    drop-shadow(0 0.8rem 1.15rem rgba(2, 6, 23, 0.32))
    drop-shadow(0 0 0.65rem rgba(255, 255, 255, 0.28));
}

.landing-eagle {
  width: min(82vw, 28rem);
  margin-bottom: clamp(0.85rem, 2vw, 1.3rem);
  filter:
    drop-shadow(0 2rem 2.2rem rgba(0, 0, 0, 0.46))
    drop-shadow(0 0 2rem rgba(250, 204, 21, 0.18));
}

.landing-eagle img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.landing-kicker {
  background: rgba(2, 132, 199, 0.2);
  color: #fde68a;
  box-shadow: inset 0 0 18px rgba(125, 211, 252, 0.14);
}

.landing-content h1 {
  text-shadow:
    0 0 18px rgba(125, 211, 252, 0.24),
    0 2px 0 rgba(0, 0, 0, 0.22);
}

.landing-button {
  position: relative;
  overflow: hidden;
  min-width: 12rem;
  border-radius: 18px;
  transform: translateY(0);
}

.landing-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 34%, rgba(255, 255, 255, 0.45) 45%, transparent 56% 100%);
  opacity: 0;
  transform: translateX(-100%);
  transition: transform 360ms ease, opacity 360ms ease;
}

.landing-button:hover::before {
  opacity: 1;
  transform: translateX(100%);
}

.landing-button:hover {
  transform: translateY(-0.28rem);
}

.landing-button-primary {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(180deg, #fde68a 0%, #facc15 56%, #ca8a04 100%);
  box-shadow:
    0 1rem 0 #7c4a03,
    0 1.55rem 2.5rem rgba(0, 0, 0, 0.34),
    0 0 34px rgba(250, 204, 21, 0.22);
}

.landing-button-primary:active {
  transform: translateY(0.45rem);
  box-shadow:
    0 0.55rem 0 #7c4a03,
    0 1rem 1.7rem rgba(0, 0, 0, 0.3);
}

.landing-button-secondary {
  border: 1px solid rgba(125, 211, 252, 0.38);
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.24), rgba(15, 23, 42, 0.74));
  box-shadow:
    0 1rem 0 #020617,
    0 1.55rem 2.5rem rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.landing-button-secondary:active {
  transform: translateY(0.45rem);
  box-shadow:
    0 0.55rem 0 #020617,
    0 1rem 1.7rem rgba(0, 0, 0, 0.3);
}

@media (max-width: 720px) {
  body.landing-active .landing-page {
    padding-bottom: max(6.2rem, env(safe-area-inset-bottom)) !important;
  }

  .landing-content {
    border-radius: 22px;
    padding: 1.2rem;
  }

  .landing-certification-badges {
    top: auto;
    right: 50%;
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    flex-direction: row;
    gap: 0.8rem;
    transform: translateX(50%);
  }

  .landing-certification-badges img {
    width: 4.25rem;
    height: 4.25rem;
  }

  .landing-eagle {
    width: min(86vw, 20rem);
  }
}

/* Landing scroll fix: keep it in normal page flow while active */
body.landing-active {
  overflow: auto;
}

body.landing-active .landing-page {
  position: relative;
  inset: auto;
  min-height: 100dvh;
  height: auto;
  overflow: hidden;
  padding-block: clamp(0.9rem, 2.5vh, 1.6rem);
}

body.landing-active .landing-content {
  margin: auto;
  padding: clamp(1rem, 2.5vw, 2.2rem);
}

body.landing-active .landing-logo {
  width: clamp(4.25rem, 9vw, 6.5rem);
  height: clamp(4.25rem, 9vw, 6.5rem);
  margin-bottom: 0.75rem;
}

body.landing-active .landing-eagle {
  width: min(72vw, 21rem);
  margin-bottom: 0.75rem;
}

body.landing-active .landing-content h1 {
  margin-top: 0.75rem;
  font-size: clamp(2rem, 5.8vw, 4.4rem);
}

body.landing-active .landing-content p {
  margin-top: 0.75rem;
}

body.landing-active .landing-actions {
  margin-top: 1.35rem;
}

@media (max-width: 720px) {
  body.landing-active .landing-page {
    align-items: start;
    padding-block: 0.75rem;
  }

  body.landing-active .landing-eagle {
    width: min(78vw, 16rem);
  }

  body.landing-active .landing-content h1 {
    font-size: clamp(1.9rem, 10vw, 3.2rem);
  }

  body.landing-active .landing-button {
    width: min(100%, 17rem);
    padding-block: 0.85rem;
  }
}

/* Hard fix: landing must never lock page scroll */
html:has(body.landing-active),
body.landing-active {
  height: auto !important;
  min-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body.landing-active .landing-page {
  position: static !important;
  inset: auto !important;
  display: flex !important;
  min-height: 100svh !important;
  height: auto !important;
  max-height: none !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
  padding: clamp(0.75rem, 2vh, 1.25rem) !important;
}

body.landing-active .landing-content {
  width: min(100%, 54rem) !important;
  margin: 0 auto !important;
  padding: clamp(0.9rem, 2vw, 1.6rem) !important;
}

body.landing-active .landing-logo {
  width: clamp(3.5rem, 7vw, 5rem) !important;
  height: clamp(3.5rem, 7vw, 5rem) !important;
  margin-bottom: 0.45rem !important;
}

body.landing-active .landing-eagle {
  width: min(62vw, 15rem) !important;
  margin-bottom: 0.45rem !important;
}

body.landing-active .landing-kicker {
  padding: 0.38rem 0.75rem !important;
  font-size: 0.7rem !important;
}

body.landing-active .landing-content h1 {
  margin-top: 0.55rem !important;
  font-size: clamp(1.9rem, 4.6vw, 3.5rem) !important;
}

body.landing-active .landing-actions {
  margin-top: 0.85rem !important;
}

body.landing-active .landing-button {
  min-width: 10rem !important;
  padding: 0.78rem 1.15rem !important;
}

html {
  overflow-y: auto !important;
}

body.landing-active {
  overflow-y: auto !important;
}

/* Professional staff login */
body[data-page="staffDirectory"] .staff-portal-panel {
  position: relative;
  overflow: hidden;
  border: 0;
  background:
    linear-gradient(135deg, rgba(7, 27, 53, 0.95), rgba(10, 65, 33, 0.86)),
    #071b35;
  color: #ffffff;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 24px 60px rgba(7, 27, 53, 0.18);
}

body[data-page="staffDirectory"] .staff-portal-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 12%, rgba(227, 27, 35, 0.22), transparent 17rem),
    radial-gradient(circle at 16% 76%, rgba(34, 197, 94, 0.18), transparent 19rem),
    linear-gradient(120deg, transparent 0 48%, rgba(255, 255, 255, 0.08) 49%, transparent 50% 100%);
  pointer-events: none;
}

body[data-page="staffDirectory"] .staff-portal-panel > * {
  position: relative;
  z-index: 1;
}

body[data-page="staffDirectory"] .staff-portal-panel .panel-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  padding-bottom: 1rem;
}

body[data-page="staffDirectory"] .staff-portal-panel .panel-header h3 {
  color: #ffffff;
  letter-spacing: 0.08em;
}

.staff-logout {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.85rem;
  border: 1px solid rgba(226, 255, 185, 0.5) !important;
  border-radius: 999px !important;
  background:
    linear-gradient(135deg, rgba(157, 45, 34, 0.98), rgba(92, 22, 18, 0.95)),
    #8a2d21 !important;
  color: #ffffff !important;
  padding: 0.72rem 1.1rem 0.72rem 0.85rem !important;
  box-shadow: 0 14px 30px rgba(54, 12, 10, 0.28);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.staff-logout::before {
  content: "";
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background:
    linear-gradient(#ffffff, #ffffff) 45% 50% / 0.65rem 0.12rem no-repeat,
    linear-gradient(135deg, transparent 45%, #ffffff 46% 54%, transparent 55%) 58% 50% / 0.55rem 0.55rem no-repeat,
    rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.staff-logout:hover {
  background:
    linear-gradient(135deg, rgba(18, 63, 42, 0.98), rgba(31, 88, 43, 0.95)),
    #123f2a !important;
  box-shadow: 0 18px 34px rgba(18, 63, 42, 0.24);
  transform: translateY(-1px);
}

.staff-logout:focus-visible {
  outline: 3px solid rgba(226, 255, 185, 0.5);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  body[data-page="staffDirectory"] .staff-portal-panel .panel-header {
    align-items: flex-start;
    gap: 0.85rem;
  }

  .staff-logout {
    min-height: 2.55rem;
    padding: 0.62rem 0.95rem 0.62rem 0.72rem !important;
    font-size: 0.76rem;
  }

  .staff-logout::before {
    width: 1.45rem;
    height: 1.45rem;
  }
}

.staff-login-card {
  grid-template-columns: minmax(0, 0.95fr) minmax(18rem, 1.05fr);
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(16px);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.staff-login-intro {
  display: grid;
  gap: 0.75rem;
  align-content: center;
  min-height: 17rem;
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.16), transparent 12rem);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.staff-login-intro span {
  justify-self: start;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fecaca;
  padding: 0.45rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.staff-login-card h4 {
  color: #ffffff;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
}

.staff-login-card p,
.login-hint {
  color: #dbeafe;
  line-height: 1.65;
}

.staff-login-form {
  grid-template-columns: 1fr;
  border-radius: 16px;
  background: #ffffff;
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.staff-login-form label {
  color: #0f172a;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.staff-login-form input {
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #f8fafc;
  padding: 0.9rem 1rem;
}

.staff-login-form input:focus {
  border-color: var(--brand);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(227, 27, 35, 0.12);
}

.staff-login-form .primary-button {
  margin-top: 0.25rem;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.staff-registration-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 1rem;
  border: 1px solid rgba(226, 255, 185, 0.32);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  padding: clamp(1rem, 2.4vw, 1.35rem);
}

.staff-registration-panel > div:first-child {
  display: grid;
  gap: 0.3rem;
}

.staff-registration-panel span {
  color: #75891d;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.staff-registration-panel h5 {
  margin: 0;
  color: #123f2a;
  font-size: 1.1rem;
}

.staff-registration-panel p {
  margin: 0;
  color: #31552c;
}

.staff-registration-manual {
  border: 1px solid rgba(117, 137, 29, 0.28);
  border-radius: 8px;
  background: #f8fbef;
  padding: 0.9rem 1rem;
}

.staff-registration-manual h6 {
  margin: 0 0 0.45rem;
  color: #123f2a;
  font-size: 0.95rem;
}

.staff-registration-manual ol {
  margin: 0;
  padding-left: 1.2rem;
  color: #173f2a;
}

.staff-registration-manual li {
  margin: 0.25rem 0;
}

.staff-registration-manual p {
  margin-top: 0.55rem;
}

.staff-registration-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.staff-registration-form label {
  display: grid;
  gap: 0.35rem;
  color: #123f2a;
  font-weight: 800;
}

.staff-registration-form .span-2 {
  grid-column: span 2;
}

.staff-registration-form input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: #123f2a;
  padding: 0.72rem 0.8rem;
}

.staff-registration-form button {
  justify-self: start;
}

.staff-registration-notice {
  border-left: 4px solid #75891d;
  border-radius: 8px;
  background: rgba(226, 239, 178, 0.34);
  color: #123f2a;
  padding: 0.75rem 0.85rem;
  font-weight: 800;
}

.login-hint {
  grid-column: 1 / -1;
  margin-top: -0.35rem;
  text-align: right;
}

.staff-summary article {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.96);
}

.internal-portal-panel {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.96);
}

@media (max-width: 920px) {
  .staff-login-card {
    grid-template-columns: 1fr;
  }

  .staff-login-intro {
    min-height: auto;
  }

  .login-hint {
    text-align: left;
  }
}

/* Compact landing copy */
body.landing-active .landing-content h1 {
  max-width: 44rem;
  font-size: clamp(2.2rem, 5.2vw, 4.1rem);
}

body.landing-active .landing-actions {
  margin-top: 1rem;
}

body.landing-active .landing-eagle {
  width: min(68vw, 19rem);
}
body.landing-active {
  overflow-y: auto;
}

.landing-page {
  overflow-x: hidden;
  overflow-y: auto;
}

.landing-content {
  margin: auto 0;
}

/* Futuristic landing page refinement */
.landing-page {
  background:
    radial-gradient(circle at 50% 34%, rgba(250, 204, 21, 0.2), transparent 18rem),
    radial-gradient(circle at 22% 14%, rgba(56, 189, 248, 0.28), transparent 22rem),
    radial-gradient(circle at 82% 78%, rgba(37, 99, 235, 0.36), transparent 24rem),
    linear-gradient(145deg, #020817 0%, #061b3f 44%, #020617 100%);
}

.landing-page::before {
  background:
    linear-gradient(115deg, transparent 0 43%, rgba(250, 204, 21, 0.18) 44%, transparent 45% 100%),
    repeating-linear-gradient(90deg, rgba(125, 211, 252, 0.08) 0 1px, transparent 1px 7rem),
    repeating-linear-gradient(0deg, rgba(125, 211, 252, 0.08) 0 1px, transparent 1px 7rem);
  animation: techSweep 14s linear infinite;
}

.landing-page::after {
  background:
    radial-gradient(circle, rgba(250, 204, 21, 0.35) 0 2px, transparent 3px) 14% 24% / 9rem 9rem,
    radial-gradient(circle, rgba(125, 211, 252, 0.38) 0 2px, transparent 3px) 78% 62% / 11rem 11rem,
    linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.18), transparent);
  mask-image: none;
  animation: gridDrift 20s linear infinite;
}

.landing-content {
  width: min(100%, 62rem);
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(8, 47, 73, 0.34), rgba(2, 6, 23, 0.46)),
    rgba(2, 6, 23, 0.34);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 44px rgba(56, 189, 248, 0.14);
  backdrop-filter: blur(18px);
  padding: clamp(1.4rem, 4vw, 3.2rem);
}

.landing-logo {
  display: grid;
  width: clamp(5rem, 12vw, 8rem);
  height: clamp(5rem, 12vw, 8rem);
  place-items: center;
  margin-bottom: clamp(0.8rem, 2vw, 1.4rem);
  border: 1px solid rgba(250, 204, 21, 0.34);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(219, 234, 254, 0.88)),
    #ffffff;
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.22),
    0 0 32px rgba(250, 204, 21, 0.16);
  padding: 0.7rem;
}

.landing-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.landing-eagle {
  width: min(82vw, 28rem);
  margin-bottom: clamp(0.85rem, 2vw, 1.3rem);
  filter:
    drop-shadow(0 2rem 2.2rem rgba(0, 0, 0, 0.46))
    drop-shadow(0 0 2rem rgba(250, 204, 21, 0.18));
}

.landing-eagle img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.landing-kicker {
  background: rgba(2, 132, 199, 0.2);
  color: #fde68a;
  box-shadow: inset 0 0 18px rgba(125, 211, 252, 0.14);
}

.landing-content h1 {
  text-shadow:
    0 0 18px rgba(125, 211, 252, 0.24),
    0 2px 0 rgba(0, 0, 0, 0.22);
}

.landing-button {
  position: relative;
  overflow: hidden;
  min-width: 12rem;
  border-radius: 18px;
  transform: translateY(0);
}

.landing-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 34%, rgba(255, 255, 255, 0.45) 45%, transparent 56% 100%);
  opacity: 0;
  transform: translateX(-100%);
  transition: transform 360ms ease, opacity 360ms ease;
}

.landing-button:hover::before {
  opacity: 1;
  transform: translateX(100%);
}

.landing-button:hover {
  transform: translateY(-0.28rem);
}

.landing-button-primary {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(180deg, #fde68a 0%, #facc15 56%, #ca8a04 100%);
  box-shadow:
    0 1rem 0 #7c4a03,
    0 1.55rem 2.5rem rgba(0, 0, 0, 0.34),
    0 0 34px rgba(250, 204, 21, 0.22);
}

.landing-button-primary:active {
  transform: translateY(0.45rem);
  box-shadow:
    0 0.55rem 0 #7c4a03,
    0 1rem 1.7rem rgba(0, 0, 0, 0.3);
}

.landing-button-secondary {
  border: 1px solid rgba(125, 211, 252, 0.38);
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.24), rgba(15, 23, 42, 0.74));
  box-shadow:
    0 1rem 0 #020617,
    0 1.55rem 2.5rem rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.landing-button-secondary:active {
  transform: translateY(0.45rem);
  box-shadow:
    0 0.55rem 0 #020617,
    0 1rem 1.7rem rgba(0, 0, 0, 0.3);
}

@media (max-width: 720px) {
  .landing-content {
    border-radius: 22px;
    padding: 1.2rem;
  }

  .landing-eagle {
    width: min(86vw, 20rem);
  }
}

@keyframes eagleHover {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-0.75rem) scale(1.018);
  }
}

@keyframes wingPulse {
  0%,
  100% {
    transform: rotate(0deg) translateY(0);
  }

  50% {
    transform: rotate(1.8deg) translateY(-0.35rem);
  }
}

@keyframes gridDrift {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 4rem 4rem;
  }
}

@keyframes techSweep {
  from {
    transform: translateX(-8%) rotate(0deg);
  }

  to {
    transform: translateX(8%) rotate(360deg);
  }
}

@keyframes floatOrb {
  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(1.2rem, -1rem);
  }
}

@media (max-width: 720px) {
  .landing-page {
    align-items: center;
    padding: 1.25rem;
  }

  .landing-eagle {
    width: min(94vw, 25rem);
  }

  .landing-actions {
    width: 100%;
  }

  .landing-button {
    width: min(100%, 18rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-page::before,
  .landing-page::after,
  .landing-orb,
  .landing-eagle,
  .eagle-wing {
    animation: none;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body.modal-open {
  overflow: hidden;
}

body.staff-document-open {
  overflow: hidden;
}

body.landing-active {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

body.landing-active .app-shell {
  display: none;
}

body:not(.landing-active) .landing-page {
  display: none;
}

.landing-page {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 22%, rgba(250, 204, 21, 0.22), transparent 18rem),
    radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.38), transparent 22rem),
    linear-gradient(135deg, #03142f 0%, #082e61 48%, #041225 100%);
  color: #ffffff;
  padding: clamp(1.25rem, 4vw, 3rem);
}

.landing-page::before,
.landing-page::after {
  content: "";
  position: absolute;
  inset: -15%;
  pointer-events: none;
}

.landing-page::before {
  background:
    linear-gradient(115deg, transparent 0 44%, rgba(250, 204, 21, 0.18) 45%, transparent 46% 100%),
    linear-gradient(65deg, transparent 0 52%, rgba(96, 165, 250, 0.18) 53%, transparent 54% 100%);
  animation: techSweep 9s linear infinite;
}

.landing-page::after {
  background-image:
    linear-gradient(rgba(147, 197, 253, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 197, 253, 0.13) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: radial-gradient(circle at center, #000 0, transparent 72%);
  animation: gridDrift 18s linear infinite;
}

.landing-grid {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.82) 0 2px, transparent 3px) 8% 70% / 13rem 13rem,
    radial-gradient(circle, rgba(250, 204, 21, 0.76) 0 2px, transparent 3px) 80% 24% / 11rem 11rem;
  opacity: 0.5;
}

.landing-grid::before,
.landing-grid::after {
  content: "";
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(147, 197, 253, 0.7), transparent);
  transform-origin: left center;
}

.landing-grid::before {
  top: 38%;
  left: 5%;
  width: 70%;
  transform: rotate(9deg);
}

.landing-grid::after {
  right: 5%;
  bottom: 28%;
  width: 62%;
  transform: rotate(-13deg);
}

.landing-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.62;
}

.landing-orb-one {
  top: 12%;
  right: 16%;
  width: 10rem;
  height: 10rem;
  background: rgba(250, 204, 21, 0.22);
  animation: floatOrb 7s ease-in-out infinite;
}

.landing-orb-two {
  bottom: 12%;
  left: 12%;
  width: 14rem;
  height: 14rem;
  background: rgba(37, 99, 235, 0.32);
  animation: floatOrb 8s ease-in-out infinite reverse;
}

.landing-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(100%, 58rem);
  text-align: center;
}

.landing-eagle {
  width: min(82vw, 34rem);
  margin-bottom: clamp(1rem, 3vw, 2rem);
  filter: drop-shadow(0 2rem 2.5rem rgba(0, 0, 0, 0.36));
  animation: eagleHover 4.8s ease-in-out infinite;
}

.landing-eagle svg {
  display: block;
  width: 100%;
  overflow: visible;
}

.eagle-wing {
  fill: rgba(255, 255, 255, 0.92);
  transform-box: fill-box;
  transform-origin: center center;
  animation: wingPulse 2.6s ease-in-out infinite;
}

.eagle-wing-right {
  animation-delay: 0.08s;
}

.eagle-body,
.eagle-head {
  fill: #f8fafc;
}

.eagle-beak {
  fill: #facc15;
}

.landing-kicker {
  border: 1px solid rgba(250, 204, 21, 0.42);
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.12);
  color: #fde68a;
  padding: 0.5rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.landing-content h1 {
  max-width: 52rem;
  margin: 1.05rem 0 0;
  font-size: clamp(2.45rem, 7vw, 5.8rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.landing-content p {
  max-width: 40rem;
  margin: 1rem 0 0;
  color: #dbeafe;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.7;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2rem;
}

.landing-button {
  min-width: 10.5rem;
  border-radius: 999px;
  padding: 0.95rem 1.4rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.landing-button:hover {
  transform: translateY(-0.18rem);
}

.landing-button-primary {
  border: 0;
  background: #facc15;
  color: #06162f;
  box-shadow: 0 18px 34px rgba(250, 204, 21, 0.24);
}

.landing-button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  backdrop-filter: blur(12px);
}

.landing-button-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  width: 18rem;
  height: 100vh;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(7, 47, 24, 0.86), rgba(13, 78, 39, 0.76)),
    linear-gradient(90deg, rgba(4, 18, 12, 0.92), rgba(4, 18, 12, 0.32)),
    url("BG-1 Green.png") center / cover no-repeat;
  color: #fff;
  box-shadow: 18px 0 40px rgba(15, 23, 42, 0.18);
}

.brand-panel {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(187, 247, 208, 0.28);
  background: rgba(5, 46, 22, 0.34);
  backdrop-filter: blur(2px);
  text-align: center;
}

.logo-mark {
  position: relative;
  display: grid;
  width: 8rem;
  height: 8rem;
  margin: 0 auto 1rem;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent),
    #0c1424;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.logo-mark img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.55rem;
  background: #fff;
}

.logo-mark span {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0;
}

.logo-mark img[src="logo.png"] + span {
  display: none;
}

.brand-panel h1 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0;
  line-height: 1.28;
}

.brand-panel p,
.server-card span {
  color: #d8f7e1;
}

.brand-panel p {
  margin: 0.3rem 0 0;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.35;
}

.side-nav {
  display: grid;
  gap: 0.5rem;
  overflow-y: auto;
  padding: 1rem;
}

.nav-item {
  width: 100%;
  border: 1px solid rgba(187, 247, 208, 0.2);
  border-radius: 8px;
  background: rgba(224, 252, 231, 0.18);
  color: inherit;
  padding: 0.88rem 1rem;
  text-align: left;
  box-shadow: 0 10px 22px rgba(4, 18, 12, 0.16);
  backdrop-filter: blur(1px);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.nav-item:hover {
  border-color: rgba(240, 253, 244, 0.72);
  background: rgba(220, 252, 231, 0.3);
  transform: translateX(2px);
}

.nav-item.active {
  border-color: rgba(240, 253, 244, 0.92);
  background: linear-gradient(135deg, rgba(220, 252, 231, 0.48), rgba(74, 222, 128, 0.38));
  box-shadow: 0 14px 28px rgba(5, 46, 22, 0.22);
  transform: translateX(2px);
}

.server-card {
  display: grid;
  gap: 0.2rem;
  margin-top: auto;
  padding: 1rem;
  border-top: 1px solid rgba(187, 247, 208, 0.28);
  background: rgba(5, 46, 22, 0.38);
  backdrop-filter: blur(2px);
  font-size: 0.92rem;
}

.main-area {
  flex: 1;
  min-width: 0;
  overflow: auto;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 2rem;
  background: #fff;
  box-shadow: 0 1px 12px rgba(15, 23, 42, 0.08);
}

.top-bar h2 {
  margin: 0;
  font-size: 2rem;
}

.top-bar p {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-field input {
  width: min(22rem, 34vw);
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  outline: none;
}

.search-field input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(34, 169, 87, 0.16);
}

.back-to-top-button {
  position: fixed;
  right: clamp(1rem, 3vw, 1.6rem);
  bottom: clamp(1rem, 3vw, 1.6rem);
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(219, 232, 122, 0.38);
  border-radius: 999px;
  background: #123f2a;
  color: #ffffff;
  padding: 0.72rem 0.95rem;
  font: inherit;
  font-weight: 850;
  box-shadow: 0 16px 34px rgba(18, 63, 42, 0.28);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.75rem);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

.back-to-top-button span:first-child {
  display: grid;
  width: 1.45rem;
  height: 1.45rem;
  place-items: center;
  border-radius: 50%;
  background: #dbe87a;
  color: #123f2a;
  line-height: 1;
}

.back-to-top-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top-button:hover {
  background: #1c5136;
}

.admin-button,
.primary-button,
.secondary-button {
  border: 0;
  border-radius: 8px;
  font-weight: 700;
  white-space: nowrap;
}

#adminToggle {
  display: none;
}

.admin-button,
.primary-button {
  background: var(--brand);
  color: #fff;
}

.admin-button {
  padding: 0.7rem 1.35rem;
  box-shadow: 0 12px 24px rgba(34, 169, 87, 0.24);
}

.primary-button {
  padding: 0.65rem 1rem;
}

.admin-button:hover,
.primary-button:hover {
  background: var(--brand-dark);
}

.secondary-button {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: var(--ink);
  padding: 0.65rem 1rem;
}

.secondary-button:hover {
  background: #f1fff5;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 2rem 0;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #edfff3;
  padding: 1rem;
  color: var(--ink);
}

.admin-toolbar[hidden] {
  display: none;
}

.admin-toolbar span {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.edit-mode [data-editable] {
  outline: 2px dashed rgba(34, 169, 87, 0.5);
  outline-offset: 4px;
  border-radius: 6px;
  cursor: text;
}

.edit-mode [data-editable]:focus {
  outline: 3px solid rgba(34, 169, 87, 0.78);
  background: #fff;
  box-shadow: 0 0 0 6px rgba(34, 169, 87, 0.09);
}

.admin-only {
  display: none !important;
}

.edit-mode .admin-only {
  display: inline-flex !important;
}

.admin-authenticated .admin-only {
  display: inline-flex !important;
}

.gallery-admin-tools,
.gallery-remove {
  display: none;
}

.edit-mode .gallery-admin-tools {
  display: flex;
  justify-content: flex-end;
}

.edit-mode .gallery-remove {
  display: inline-flex;
}

.save-toast {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 20;
  border-radius: 8px;
  background: #14532d;
  color: #fff;
  padding: 0.85rem 1rem;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.22);
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--brand);
  font-weight: 700;
  white-space: nowrap;
}

.content-stack {
  display: grid;
  gap: 2rem;
  padding: 2rem;
}

.page-hidden {
  display: none !important;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.front-header {
  position: relative;
  grid-column: 1 / -1;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 8px;
  background: #123f2a;
  box-shadow: 0 18px 38px rgba(18, 63, 42, 0.18);
  aspect-ratio: 2077 / 924;
}

.front-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(12, 40, 25, 0.48), rgba(18, 63, 42, 0.18) 44%, rgba(12, 40, 25, 0.34)),
    linear-gradient(180deg, rgba(12, 40, 25, 0.16), rgba(12, 40, 25, 0.28));
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.025);
  transition:
    opacity 900ms ease,
    transform 5200ms ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-dots {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  gap: 0.45rem;
  border-radius: 999px;
  background: rgba(13, 47, 31, 0.55);
  padding: 0.45rem;
}

.hero-dot {
  width: 0.7rem;
  height: 0.7rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  padding: 0;
}

.hero-dot.active {
  background: #fff;
}

.metric-card,
.panel {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.metric-card {
  padding: 1.5rem;
}

.metric-card p {
  margin: 0;
  color: var(--muted);
}

.metric-card strong {
  display: block;
  margin-top: 0.7rem;
  font-size: 2.6rem;
  line-height: 1;
}

.profile-layout,
.documents-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(18rem, 1fr);
  gap: 1.5rem;
}

.documents-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-page="companyProfile"] .profile-layout,
body[data-page="announcements"] .profile-layout,
body[data-page="sopCenter"] .documents-layout,
body[data-page="documentLibrary"] .documents-layout,
body[data-page="departments"] .quick-sections,
body[data-page="staffDirectory"] .quick-sections,
body[data-page="downloads"] .quick-sections,
body[data-page="jobApplication"] .quick-sections,
body[data-page="activityLogs"] .quick-sections,
body[data-page="settings"] .quick-sections {
  grid-template-columns: 1fr;
}

.document-viewer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfffc;
  padding: 1.25rem;
}

.document-viewer h4 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.document-viewer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.pdf-frame {
  width: 100%;
  min-height: 72vh;
  margin-top: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.quick-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.quick-panel h3 {
  margin: 0 0 0.65rem;
  font-size: 1.25rem;
}

.quick-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.advertisement-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1.25rem;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fbff, #eef7ff);
  padding: 1.25rem;
}

.career-board {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.career-board .poster-card {
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.career-board .poster-card img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
}

.career-board .image-view-button:hover img {
  filter: brightness(0.94);
  transform: scale(1.02);
}

.career-board .image-view-button img {
  transition: transform 180ms ease, filter 180ms ease;
}

.poster-card {
  overflow: hidden;
  width: 100%;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
}

.poster-card img {
  display: block;
  width: 100%;
  height: auto;
}

.advertisement-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.recruitment-panel {
  display: grid;
  gap: 1.35rem;
}

.recruitment-section {
  display: grid;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfffc;
  padding: clamp(1rem, 2.5vw, 1.35rem);
}

.recruitment-section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.recruitment-section-header h4 {
  margin: 0.25rem 0 0.35rem;
  color: var(--ink);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
}

.recruitment-section-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.career-page {
  gap: 1.35rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 242, 0.98)),
    #ffffff;
}

.career-page .recruitment-section-header {
  align-items: center;
  border-bottom: 1px solid rgba(117, 137, 29, 0.22);
  padding-bottom: 1.25rem;
  text-align: center;
}

.career-page .recruitment-section-header > div:first-child {
  max-width: 58rem;
  margin-inline: auto;
}

.career-page .recruitment-section-header h4 {
  color: #123f2a;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.08;
}

.career-page .recruitment-section-header p {
  color: #202938;
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
}

.career-page .recruitment-section-header .section-kicker,
.application-form-section .recruitment-section-header .section-kicker,
.home-intro-copy > .section-kicker,
.home-services-heading .section-kicker {
  display: inline-block;
  border-radius: 6px;
  background: #123f2a;
  color: #ffffff !important;
  padding: 0.32rem 0.65rem;
  line-height: 1.1;
}

.career-value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.career-value-grid article {
  display: grid;
  gap: 0.6rem;
  place-items: center;
  min-height: 9rem;
  border: 1px solid rgba(117, 137, 29, 0.24);
  border-radius: 8px;
  background: #ffffff;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.career-value-grid span {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #dbe87a, #75891d);
  color: #123f2a;
  font-weight: 900;
}

.career-value-grid strong {
  color: #0f172a;
  font-size: 0.92rem;
  line-height: 1.35;
}

.career-available-heading {
  margin-top: 0.25rem;
  background: linear-gradient(135deg, #123f2a, #1c5136 58%, #75891d);
  border-radius: 8px;
  padding: clamp(1.25rem, 3vw, 1.8rem);
  text-align: center;
}

.career-available-heading h5 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.1;
}

.career-available-heading p {
  margin: 0.45rem 0 0;
  color: rgba(255, 255, 255, 0.86);
}

.career-admin-access {
  margin-top: 0.9rem;
  min-height: 2.45rem;
}

.career-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.career-ad-admin-form {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  border: 1px solid rgba(117, 137, 29, 0.28);
  border-radius: 8px;
  background: rgba(246, 255, 226, 0.72);
  padding: 1rem;
}

.edit-mode .career-ad-admin-form.admin-only {
  display: grid !important;
}

.admin-authenticated .career-ad-admin-form.admin-only {
  display: grid !important;
}

.career-ad-admin-form label {
  display: grid;
  gap: 0.35rem;
  color: #123f2a;
  font-size: 0.82rem;
  font-weight: 850;
}

.career-ad-admin-form .span-2 {
  grid-column: 1 / -1;
}

.career-ad-admin-form input,
.career-ad-admin-form textarea {
  width: 100%;
  border: 1px solid rgba(98, 129, 15, 0.28);
  border-radius: 8px;
  background: #ffffff;
  color: #123f2a;
  padding: 0.72rem 0.78rem;
  font: inherit;
}

.career-ad-admin-form button {
  align-self: end;
}

.career-card {
  display: grid;
  grid-template-columns: minmax(7.5rem, 0.45fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  padding: 0.85rem;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
}

.career-card-media {
  overflow: hidden;
  min-height: 12rem;
  border-radius: 8px;
  background: #eef2f7;
}

.career-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 180ms ease, filter 180ms ease;
}

.career-card-media:hover img {
  filter: brightness(0.94);
  transform: scale(1.02);
}

.career-card-copy {
  display: grid;
  align-content: center;
  gap: 0.55rem;
}

.career-card-copy span {
  color: #6d7e1a;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.career-card-copy h5 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.18;
}

.career-card-copy p {
  margin: 0;
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.5;
}

.career-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.career-card-actions .primary-button,
.career-card-actions .secondary-button {
  min-height: 2.5rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.78rem;
}

.danger-button {
  border: 1px solid #b91c1c;
  border-radius: 8px;
  background: #b91c1c;
  color: #ffffff;
  min-height: 2.5rem;
  padding: 0.65rem 0.85rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.activity-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.activity-card {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}

.activity-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.activity-card figcaption {
  color: var(--ink);
  font-weight: 700;
  padding: 0.8rem;
  overflow-wrap: anywhere;
}

.gallery-remove {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  border: 0;
  border-radius: 8px;
  background: rgba(220, 38, 38, 0.92);
  color: #ffffff;
  font-weight: 800;
  padding: 0.45rem 0.65rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  gap: 1.25rem;
  align-items: stretch;
}

.contact-details {
  display: grid;
  gap: 1rem;
}

.contact-details div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfffc;
  padding: 1rem;
}

.contact-details span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
}

.contact-details a {
  color: var(--brand-dark);
  font-weight: 700;
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

.contact-details .whatsapp-qr-card {
  display: grid;
  justify-items: start;
  gap: 0.7rem;
  background:
    linear-gradient(135deg, rgba(7, 27, 53, 0.04), rgba(250, 204, 21, 0.08)),
    #ffffff;
}

.whatsapp-qr-link {
  display: inline-flex;
  padding: 0.55rem;
  border: 1px solid rgba(7, 27, 53, 0.14);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(7, 27, 53, 0.1);
}

.whatsapp-qr-link img {
  display: block;
  width: min(100%, 10.5rem);
  aspect-ratio: 1;
}

.whatsapp-qr-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.whatsapp-direct-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand-dark);
  border-radius: 999px;
  background: #071b35;
  color: #ffffff !important;
  padding: 0.58rem 0.95rem;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-decoration: none !important;
  text-transform: uppercase;
}

.whatsapp-direct-link:hover {
  background: #0d2e55;
}

.office-list-card {
  grid-column: 1 / -1;
}

.office-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.office-list li {
  border-top: 1px solid rgba(7, 27, 53, 0.12);
  padding-top: 0.85rem;
}

.office-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.office-list strong {
  display: block;
  color: var(--brand-dark);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.office-list p {
  margin: 0.3rem 0;
  color: var(--ink);
  line-height: 1.55;
}

.office-list small {
  display: block;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.contact-map {
  width: 100%;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef7f0;
}

.map-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--brand-dark);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  color: var(--brand-dark);
  font-weight: 700;
  text-decoration: none;
}

.map-link:hover {
  background: #eef7f0;
}

.job-form-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: flex-end;
}

.upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  padding: 0.65rem 1rem;
  white-space: nowrap;
}

.upload-button:hover {
  background: var(--brand-dark);
}

.upload-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.panel {
  padding: 1.5rem;
}

.profile-panel {
  padding: 2rem;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.panel-header h3 {
  margin: 0;
  font-size: 1.45rem;
}

.panel-header.compact h3 {
  font-size: 1.25rem;
}

.body-copy {
  display: grid;
  gap: 1rem;
  color: #3d4758;
  line-height: 1.65;
}

.body-copy p,
.body-copy ul,
.body-copy h4 {
  margin-top: 0;
}

.body-copy h4 {
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.body-copy ul {
  padding-left: 1.25rem;
  margin-bottom: 0;
}

.company-profile-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.profile-slide {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfffc;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.profile-slide.wide {
  grid-column: 1 / -1;
}

.profile-slide.rba-audit {
  grid-column: 1 / -1;
}

.profile-slide img {
  display: block;
  width: 100%;
  height: auto;
}

.client-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.client-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfffc;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.client-card.client-featured {
  grid-column: 1 / -1;
}

.image-view-button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
}

.client-card img {
  display: block;
  width: 100%;
  height: auto;
}

.image-full-view {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.image-full-view.is-open {
  opacity: 1;
  pointer-events: auto;
}

.image-full-view__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(7, 27, 53, 0.86);
  cursor: zoom-out;
}

.image-full-view__dialog {
  position: relative;
  z-index: 1;
  width: min(94vw, 82rem);
  max-height: 92vh;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.image-full-view__dialog img {
  display: block;
  width: 100%;
  height: auto;
}

.image-full-view__close {
  position: sticky;
  top: 0.75rem;
  left: calc(100% - 3.75rem);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0.75rem 0.75rem -3.5rem auto;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 15, 16, 0.82);
  color: #ffffff;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

.notice-list,
.policy-list,
.sop-list {
  display: grid;
  gap: 1rem;
}

.notice-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f0fff5;
  padding: 1rem;
}

.sop-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  transition: background 160ms ease;
}

.policy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfffc;
  padding: 0.9rem 1rem;
}

.policy-row span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.sop-row:hover {
  background: #f1fff5;
}

.sop-row p {
  margin: 0 0 0.2rem;
  font-weight: 700;
}

.sop-row span,
.file-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.file-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.file-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfffc;
  padding: 1.15rem;
  transition:
    box-shadow 160ms ease,
    transform 160ms ease;
}

.file-card:hover {
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
}

.file-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  place-items: center;
  border-radius: 8px;
  background: #d9ffe8;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.file-icon.doc {
  background: #e0f2fe;
  color: #0369a1;
}

.file-icon.sheet {
  background: #d9ffe8;
  color: var(--success);
}

.file-card h4 {
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 1rem;
}

.file-card p {
  margin: 0.35rem 0 0;
}

.file-action {
  margin-top: 1rem;
}

.is-hidden {
  display: none !important;
}

.empty-state {
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #fbfffc;
  color: var(--muted);
  padding: 1rem;
  text-align: center;
}

.page-footer {
  padding: 1rem 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .stats-grid,
  .documents-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: static;
    width: 100%;
    height: auto;
  }

  .side-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .top-bar,
  .top-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
    margin: 1rem;
  }

  .search-field input {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .content-stack,
  .top-bar {
    padding: 1rem;
  }

  .front-header {
    min-height: 13rem;
    object-position: center;
  }

  .documents-layout,
  .file-grid,
  .activity-gallery,
  .company-profile-gallery,
  .client-gallery,
  .contact-layout,
  .quick-sections,
  .stats-grid,
  .profile-layout,
  .side-nav {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .content-stack,
  .top-bar {
    padding: 1rem;
  }

  .panel,
  .profile-panel {
    padding: 1.1rem;
  }

  .panel-header,
  .document-viewer,
  .job-form-panel,
  .policy-row,
  .sop-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-actions,
  .document-viewer .primary-button,
  .policy-row .primary-button,
  .primary-button,
  .sop-row .primary-button {
    width: 100%;
  }

  .upload-button {
    width: 100%;
  }
}

body[data-page="companyProfile"] #companyProfile {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

body[data-page="companyProfile"] .content-stack {
  padding-right: clamp(1rem, 3vw, 2.5rem);
  padding-left: clamp(1rem, 3vw, 2.5rem);
}

body[data-page="companyProfile"] #companyProfile .panel-header {
  display: none;
}

body[data-page="companyProfile"] .company-profile-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.8rem, 2vw, 1.25rem);
  align-items: stretch;
}

body[data-page="companyProfile"] .profile-slide:first-child {
  grid-column: 1 / -1;
}

@media (min-width: 761px) {
  body[data-page="companyProfile"] .profile-slide.about-full-desktop {
    grid-column: 1 / -1;
  }
}

body[data-page="companyProfile"] .profile-slide {
  position: relative;
  display: flex;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fbfffc;
  box-shadow: none;
}

body[data-page="companyProfile"] .profile-slide img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: clamp(18rem, 38vw, 34rem);
  object-fit: cover;
}

body[data-page="companyProfile"] .profile-slide:first-child img,
body[data-page="companyProfile"] .profile-slide.about-wide-pc img,
body[data-page="companyProfile"] .profile-slide.about-full-desktop img {
  min-height: clamp(22rem, 46vw, 42rem);
}

body[data-page="companyProfile"] .profile-slide figcaption {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(15, 15, 16, 0.76);
  backdrop-filter: blur(12px);
  color: #fff;
  padding: 0.65rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about-license-section {
  max-width: min(100%, 62rem);
  margin: 1.25rem auto 0;
}

.section-mini-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.section-mini-header span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.section-mini-header h4 {
  margin: 0;
  color: var(--brand-dark);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.company-profile-intro {
  display: grid;
  max-width: 58rem;
  gap: 0.7rem;
  margin: 0 clamp(0.45rem, 2vw, 1.5rem) 1.4rem;
  border-left: 4px solid var(--brand);
  padding: 0.5rem 0 0.5rem 1.4rem;
}

.company-profile-intro h3 {
  max-width: 48rem;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 1.08;
}

.company-profile-intro p {
  max-width: 45rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

body[data-page="dashboard"] .stats-grid {
  grid-template-columns: 1fr;
}

.license-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.license-card {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.license-card img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 320ms ease, filter 220ms ease;
}

.license-hover-card {
  cursor: pointer;
}

.license-hover-card .image-view-button {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.license-hover-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 27, 53, 0.02), rgba(7, 27, 53, 0.68));
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.license-hover-card figcaption {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  transform: translateY(0);
  opacity: 0.96;
  transition: transform 220ms ease, opacity 220ms ease;
}

.license-hover-card figcaption span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: linear-gradient(135deg, #facc15, #fff3a3);
  color: #071b35;
  padding: 0 1rem;
  box-shadow: 0 16px 32px rgba(7, 27, 53, 0.3);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.license-hover-card:hover,
.license-hover-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(250, 204, 21, 0.7);
  box-shadow: 0 22px 42px rgba(7, 27, 53, 0.18);
}

.license-hover-card:hover::after,
.license-hover-card:focus-within::after {
  opacity: 1;
}

.license-hover-card:hover img,
.license-hover-card:focus-within img {
  transform: scale(1.025);
  filter: brightness(0.84) contrast(1.04) saturate(0.96);
}

.license-hover-card:hover figcaption,
.license-hover-card:focus-within figcaption {
  transform: translateY(-4px);
  opacity: 1;
}

@media (max-width: 760px) {
  .license-gallery {
    grid-template-columns: 1fr;
  }

  .section-mini-header {
    display: block;
  }
}

.services-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.home-services-showcase,
#rbaPolicies.services-panel {
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.services-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.services-hero-card {
  grid-column: 1 / -1;
  margin-bottom: 1.25rem;
}

.services-hero-card img {
  width: 100%;
}

.services-card img {
  display: block;
  width: 100%;
  height: auto;
}

.audit-gallery {
  display: grid;
  gap: 1.25rem;
}

.audit-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.audit-card img {
  display: block;
  width: 100%;
  height: auto;
}

.security-gallery {
  display: grid;
  gap: 1.25rem;
}

.security-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.security-card img {
  display: block;
  width: 100%;
  height: auto;
}

.security-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.application-panel .panel-header {
  align-items: flex-start;
}

.application-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.application-bottom-actions {
  display: grid;
  justify-items: end;
  gap: 0.85rem;
  margin-top: 0.25rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.application-notice {
  width: 100%;
  margin: 0;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #f0fdf4;
  color: #14532d;
  padding: 0.9rem 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.application-form {
  display: grid;
  gap: 1.25rem;
}

.form-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfffc;
  padding: 1.2rem;
}

.form-section h4 {
  margin: 0 0 1rem;
  color: var(--ink);
  font-size: 1.05rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.application-form label {
  display: grid;
  gap: 0.4rem;
  color: #334155;
  font-weight: 700;
}

.application-form input,
.application-form select,
.application-form textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0.72rem 0.8rem;
  outline: none;
}

.application-form input:focus,
.application-form select:focus,
.application-form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(34, 169, 87, 0.16);
}

.span-2 {
  grid-column: 1 / -1;
}

.checkbox-line {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.65rem !important;
  margin-bottom: 1rem;
}

.checkbox-line input {
  width: auto;
}

@media (max-width: 720px) {
  .recruitment-section-header {
    align-items: stretch;
    flex-direction: column;
  }

  .career-page .recruitment-section-header {
    text-align: left;
  }

  .career-value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .career-list {
    grid-template-columns: 1fr;
  }

  .career-ad-admin-form {
    grid-template-columns: 1fr;
  }

  .career-ad-admin-form .span-2 {
    grid-column: auto;
  }

  .career-card {
    grid-template-columns: minmax(6.2rem, 0.42fr) minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.7rem;
  }

  .career-card-media {
    min-height: 10rem;
  }

  .recruitment-section-header .advertisement-actions {
    justify-content: stretch;
  }

  .recruitment-section-header .text-button {
    text-align: center;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .application-actions,
  .security-actions {
    width: 100%;
  }

  .application-bottom-actions {
    justify-items: stretch;
  }

  .application-actions button,
  .security-actions button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .career-card {
    grid-template-columns: 1fr;
  }

  .career-card-media {
    min-height: 15rem;
  }

  .career-card-actions .primary-button,
  .career-card-actions .secondary-button {
    width: 100%;
  }
}

@media print {
  .sidebar,
  .top-bar,
  .admin-toolbar,
  .page-footer,
  .application-actions {
    display: none !important;
  }

  .app-shell,
  .main-area,
  .content-stack,
  .quick-sections,
  #jobApplication {
    display: block !important;
    min-height: auto;
    overflow: visible;
    width: 100%;
  }

  #jobApplication {
    border: 0;
    box-shadow: none;
  }


  body {
    background: #fff;
  }
}

.application-print-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 1rem 1.2rem;
}

.application-print-header img {
  width: 5rem;
  height: 5rem;
  object-fit: contain;
}

.application-print-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.35rem;
}

.application-print-header p {
  margin: 0.25rem 0 0;
  color: var(--brand-dark);
  font-size: 1rem;
  font-weight: 800;
}

@media print {
  .application-print-header {
    border: 0;
    border-bottom: 2px solid #14532d;
    border-radius: 0;
    margin-bottom: 14px;
    padding: 0 0 12px;
  }

  .application-print-header img {
    width: 72px;
    height: 72px;
  }

  .application-print-header h2 {
    font-size: 18px;
  }
}

.security-cta {
  margin-top: 1.25rem;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: linear-gradient(135deg, #edfff3, #ffffff);
  padding: 1.4rem;
  text-align: center;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.security-cta h4 {
  margin: 0;
  color: var(--brand-dark);
  font-size: 1.35rem;
}

.security-cta p {
  max-width: 48rem;
  margin: 0.45rem auto 1rem;
  color: var(--muted);
  line-height: 1.55;
}

.staff-login-card {
  display: grid;
  gap: 1.2rem;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: linear-gradient(135deg, #edfff3, #fff);
  padding: 1.4rem;
}

.staff-login-card h4 {
  margin: 0 0 0.35rem;
  color: var(--brand-dark);
  font-size: 1.25rem;
}

.staff-login-card p {
  margin: 0;
  color: var(--muted);
}

.staff-login-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 1rem;
}

.staff-login-form label {
  display: grid;
  gap: 0.4rem;
  color: #334155;
  font-weight: 700;
}

.staff-login-form input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.72rem 0.8rem;
  outline: none;
}

.staff-login-form input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(34, 169, 87, 0.16);
}

.staff-admin-area,
.admin-area-lock {
  display: grid;
  gap: 1rem;
}

.admin-area-lock {
  border: 1px solid rgba(22, 138, 67, 0.24);
  background: #fbfff0;
  padding: 1rem;
}

.staff-admin-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  border: 1px solid var(--line);
  background: #fbfff0;
  padding: 1rem;
}

.staff-admin-form label {
  display: grid;
  gap: 0.4rem;
  color: #1f3527;
  font-weight: 800;
}

.staff-admin-form input,
.staff-admin-form select,
.staff-admin-form textarea {
  width: 100%;
  border: 1px solid #cbd5b1;
  background: #ffffff;
  padding: 0.72rem 0.8rem;
  outline: none;
}

.staff-admin-form input:focus,
.staff-admin-form select:focus,
.staff-admin-form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(34, 169, 87, 0.16);
}

.staff-admin-form .span-2 {
  grid-column: span 2;
}

.generated-credential {
  border-left: 5px solid #75891d;
  background: #f6ffe2;
  padding: 1rem;
}

.generated-credential p {
  margin: 0.2rem 0;
}

.admin-quick-panel {
  border-color: rgba(18, 63, 42, 0.26);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 252, 239, 0.96));
}

.admin-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-quick-grid button {
  display: grid;
  gap: 0.22rem;
  min-height: 4.4rem;
  border: 1px solid rgba(123, 149, 47, 0.28);
  border-radius: 8px;
  background: #ffffff;
  color: #123f2a;
  padding: 0.75rem;
  text-align: left;
  cursor: pointer;
}

.admin-quick-grid button:hover {
  border-color: #b8cf2c;
  background: #f4fbde;
}

.admin-quick-grid span {
  color: #75891d;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-quick-grid strong {
  color: #123f2a;
  font-size: 0.95rem;
}

.admin-monitor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-monitor-grid article {
  border: 1px solid rgba(123, 149, 47, 0.22);
  border-radius: 8px;
  background: #f9fcf4;
  padding: 0.85rem;
}

.admin-monitor-grid span {
  display: block;
  color: #52624a;
  font-size: 0.78rem;
  font-weight: 850;
}

.admin-monitor-grid strong {
  display: block;
  color: #123f2a;
  font-size: 1.6rem;
  line-height: 1.15;
}

.registered-staff-panel {
  display: grid;
  gap: 0.75rem;
  border: 1px solid rgba(123, 149, 47, 0.22);
  border-radius: 8px;
  background: #ffffff;
  padding: 0.9rem;
}

.registered-staff-list {
  display: grid;
  gap: 0.55rem;
  max-height: 24rem;
  overflow: auto;
}

.registered-staff-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid #dbe7c9;
  border-radius: 8px;
  background: #f9fcf4;
  padding: 0.65rem 0.75rem;
}

.registered-staff-row strong,
.registered-staff-row span,
.registered-staff-row small {
  display: block;
}

.registered-staff-row strong {
  color: #123f2a;
}

.registered-staff-row span,
.registered-staff-row small {
  color: #31552c;
}

@media (max-width: 760px) {
  .admin-quick-grid,
  .admin-monitor-grid,
  .registered-staff-row {
    grid-template-columns: 1fr;
  }
}

.staff-profile-panel {
  display: grid;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfffc;
  padding: 1rem;
}

.staff-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.staff-profile-grid article {
  border: 1px solid rgba(98, 129, 15, 0.18);
  border-radius: 8px;
  background: #ffffff;
  padding: 0.85rem;
}

.staff-profile-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.staff-profile-grid strong {
  display: block;
  margin-top: 0.3rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.staff-profile-status {
  border-left: 5px solid #75891d;
  border-radius: 8px;
  background: #f6ffe2;
  color: #123f2a;
  font-weight: 800;
  padding: 0.8rem 1rem;
}

.staff-password-reset-panel {
  display: grid;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfffc;
  padding: 1rem;
}

.staff-password-reset-shortcut {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(117, 137, 29, 0.32);
  border-radius: 8px;
  background: #f6ffe2;
  padding: 1rem;
}

.staff-password-reset-shortcut h5 {
  margin: 0 0 0.25rem;
  color: #123f2a;
}

.staff-password-reset-shortcut p {
  margin: 0;
  color: var(--muted);
}

.staff-profile-page .app-shell {
  min-height: 100vh;
}

.staff-profile-page .profile-page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.staff-profile-page .profile-page-nav .nav-item {
  width: auto;
  min-width: 8rem;
  justify-content: center;
}

.profile-page-shell {
  display: grid;
  gap: 1rem;
}

.profile-page-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(117, 137, 29, 0.3);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(18, 63, 42, 0.96), rgba(117, 137, 29, 0.9)),
    url("logo.png") right 1.5rem center / 7rem auto no-repeat;
  color: #ffffff;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.profile-page-hero span {
  color: #dbe87a;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-page-hero h3 {
  margin: 0.2rem 0;
  color: #ffffff;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.profile-page-hero p {
  margin: 0;
  color: #f8faf2;
  font-weight: 700;
}

.profile-page-hero .secondary-button {
  flex: 0 0 auto;
  background: #ffffff;
  color: #123f2a;
}

.profile-login-required,
.profile-page-content {
  display: grid;
  gap: 1rem;
}

.profile-login-required {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 1.2rem;
}

.profile-login-required strong {
  color: var(--ink);
  font-size: 1.1rem;
}

.profile-page-card {
  background: #ffffff;
}

.profile-page-detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .profile-page-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .profile-top-bar,
  .profile-page-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .staff-profile-page .profile-page-nav .nav-item,
  .profile-page-hero .secondary-button {
    width: 100%;
  }

  .profile-page-detail-grid {
    grid-template-columns: 1fr;
  }
}

.staff-admin-list {
  display: grid;
  gap: 0.75rem;
}

.staff-admin-list-header,
.staff-admin-record {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.staff-admin-list-header h6 {
  margin: 0;
  color: #123f2a;
  font-size: 1rem;
  text-transform: uppercase;
}

.staff-admin-record {
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 0.9rem;
}

.staff-admin-record strong,
.staff-admin-record span,
.staff-admin-record small {
  display: block;
}

.staff-admin-record span {
  color: #123f2a;
  font-weight: 850;
}

.staff-admin-record small {
  color: var(--muted);
}

.staff-admin-record button {
  border: 0;
  background: #b91c1c;
  color: #ffffff;
  padding: 0.55rem 0.85rem;
  font-weight: 850;
}

.login-hint {
  font-size: 0.9rem;
}

.staff-workspace {
  display: grid;
  gap: 1.25rem;
}

.staff-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.staff-summary article,
.staff-upload-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfffc;
  padding: 1rem;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.staff-summary span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.staff-summary strong {
  display: block;
  margin-top: 0.35rem;
  color: var(--ink);
  font-size: 1.35rem;
}

.internal-portal-panel {
  display: grid;
  gap: 1rem;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: linear-gradient(135deg, #f0fdf4, #ffffff);
  padding: 1rem;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.internal-portal-panel h4,
.internal-section h5 {
  margin: 0;
  color: var(--ink);
}

.internal-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.internal-nav button,
.document-centre-grid button,
.sop-centre-card button,
.workflow-card button {
  border: 1px solid rgba(22, 138, 67, 0.24);
  border-radius: 8px;
  background: #ffffff;
  color: var(--brand-dark);
  font-weight: 800;
  padding: 0.7rem 0.8rem;
}

.internal-nav button.active,
.internal-nav button:hover,
.document-centre-grid button:hover,
.sop-centre-card button:hover,
.workflow-card button:hover {
  border-color: var(--brand);
  background: #dcfce7;
}

.internal-section {
  display: none;
}

.internal-section.active {
  display: grid;
  gap: 1rem;
}

.internal-section-header p {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

.workflow-grid,
.document-centre-grid,
.reports-grid,
.sop-centre-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.workflow-card,
.document-centre-grid article,
.reports-grid article,
.sop-centre-card {
  display: grid;
  gap: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 1rem;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.workflow-card span,
.sop-centre-card span,
.reports-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.workflow-card h6,
.document-centre-grid h6,
.sop-centre-card h6 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
}

.workflow-card p,
.sop-centre-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.workflow-card small {
  color: var(--brand-dark);
  font-weight: 700;
  line-height: 1.4;
}

.workflow-document-area {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.2rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(18, 63, 42, 0.12);
}

.workflow-document-heading {
  color: var(--brand-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.workflow-document-upload {
  display: grid;
  gap: 0.45rem;
  padding: 0.6rem;
  border: 1px dashed rgba(18, 63, 42, 0.24);
  border-radius: 8px;
  background: rgba(219, 232, 122, 0.12);
}

.workflow-document-upload label {
  display: grid;
  gap: 0.3rem;
  margin: 0;
  color: #123f2a;
  font-size: 0.78rem;
  font-weight: 900;
}

.workflow-document-upload input,
.workflow-document-upload button {
  width: 100%;
  border: 1px solid rgba(18, 63, 42, 0.22);
  border-radius: 8px;
  background: #ffffff;
  color: #123f2a;
  font-weight: 800;
  padding: 0.5rem 0.6rem;
}

.workflow-document-upload button {
  background: #123f2a;
  color: #ffffff;
}

.workflow-document-list {
  display: grid;
  gap: 0.45rem;
}

.workflow-document-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.5rem;
  border: 1px solid rgba(18, 63, 42, 0.14);
  border-radius: 8px;
  background: #f8fff9;
}

.workflow-document-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.document-delete-button,
.document-admin-controls .document-delete-button,
.workflow-document-actions .document-delete-button {
  border-color: rgba(153, 27, 27, 0.3) !important;
  background: #fff1f2 !important;
  color: #991b1b !important;
}

.workflow-document-item strong,
.workflow-document-item span {
  display: block;
}

.workflow-document-item strong {
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.25;
}

.workflow-document-item span,
.workflow-document-empty {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.warning-letter-area {
  display: grid;
  gap: 0.6rem;
  padding: 0.75rem;
  border: 1px solid rgba(18, 63, 42, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(240, 253, 244, 0.96), rgba(255, 255, 255, 0.96));
}

.warning-upload-form,
.warning-reply-form {
  display: grid;
  gap: 0.5rem;
}

.warning-upload-form label {
  display: grid;
  gap: 0.3rem;
  color: #123f2a;
  font-size: 0.78rem;
  font-weight: 900;
}

.warning-staff-results {
  display: grid;
  gap: 0.5rem;
}

.warning-upload-form input,
.warning-upload-form textarea,
.warning-upload-form button,
.warning-reply-form input,
.warning-reply-form textarea,
.warning-reply-form button,
.warning-letter-actions button,
.warning-reply-item button {
  width: 100%;
  border: 1px solid rgba(18, 63, 42, 0.22);
  border-radius: 8px;
  background: #ffffff;
  color: #123f2a;
  font-weight: 800;
  padding: 0.55rem 0.65rem;
}

.warning-letter-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.warning-upload-form button,
.warning-reply-form button {
  background: #123f2a;
  color: #ffffff;
}

.warning-letter-actions .danger-button {
  border-color: rgba(153, 27, 27, 0.28);
  background: #fff1f2;
  color: #991b1b;
}

.warning-letter-list,
.warning-reply-list {
  display: grid;
  gap: 0.55rem;
}

.warning-letter-item,
.warning-reply-item {
  display: grid;
  gap: 0.55rem;
  padding: 0.65rem;
  border: 1px solid rgba(18, 63, 42, 0.14);
  border-radius: 8px;
  background: #ffffff;
}

.warning-letter-head,
.warning-reply-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.warning-letter-head {
  display: grid;
  gap: 0.55rem;
}

.warning-letter-head strong,
.warning-reply-item strong {
  display: block;
  color: var(--ink);
  font-size: 0.9rem;
}

.warning-letter-head span,
.warning-letter-head small,
.warning-reply-item small {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.35;
}

.warning-letter-item p,
.warning-reply-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.workflow-card-featured {
  grid-column: 1 / -1;
}

.workflow-image-link {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
}

.workflow-image-link img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 180ms ease;
}

.workflow-image-link:hover img {
  transform: scale(1.01);
}

.sop-search-field {
  display: grid;
}

.sop-search-field input {
  width: 100%;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 0.8rem 1rem;
}

.sop-centre-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.reports-grid strong {
  color: var(--ink);
  font-size: 2rem;
}

.marketing-progress-panel {
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #ffffff;
  padding: 1rem;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.marketing-progress-panel h4 {
  margin: 0;
  color: var(--ink);
}

.marketing-progress-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfffc;
  padding: 1rem;
}

.marketing-progress-form label {
  display: grid;
  gap: 0.4rem;
  color: #334155;
  font-weight: 700;
}

.marketing-progress-form input,
.marketing-progress-form select,
.marketing-progress-form textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0.72rem 0.8rem;
}

.marketing-progress-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.marketing-progress-card {
  display: grid;
  gap: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 1rem;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.marketing-progress-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.marketing-progress-card h5 {
  margin: 0.25rem 0;
  color: var(--ink);
  font-size: 1.05rem;
}

.marketing-progress-card p,
.marketing-progress-card dl {
  margin: 0;
  color: var(--muted);
}

.marketing-progress-card-header span {
  display: inline-flex;
  border-radius: 999px;
  background: #dcfce7;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
}

.marketing-progress-card-header strong {
  color: var(--brand-dark);
  font-size: 1.3rem;
}

.progress-bar {
  overflow: hidden;
  height: 0.65rem;
  border-radius: 999px;
  background: #e2e8f0;
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #86efac);
}

.marketing-progress-card dl {
  display: grid;
  gap: 0.55rem;
}

.marketing-progress-card dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.marketing-progress-card dd {
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.marketing-progress-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.marketing-progress-actions button {
  border: 1px solid var(--brand);
  border-radius: 8px;
  background: #ffffff;
  color: var(--brand-dark);
  font-weight: 800;
  padding: 0.55rem 0.8rem;
}

.staff-document-viewer {
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #ffffff;
  padding: 1rem;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.staff-document-viewer h4 {
  margin: 0;
  color: var(--ink);
}

.staff-document-viewer p {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

.staff-document-preview {
  overflow: hidden;
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.staff-document-preview iframe {
  display: block;
  width: 100%;
  min-height: 70vh;
  border: 0;
  background: #ffffff;
}

.staff-document-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.document-acknowledgement {
  display: grid;
  gap: 0.55rem;
  margin: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(123, 149, 47, 0.34);
  border-radius: 8px;
  background: #f7fee7;
  color: #123f2a;
}

.document-acknowledgement label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 800;
  line-height: 1.45;
}

.document-acknowledgement input {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.14rem;
  accent-color: #7b952f;
}

.document-acknowledgement small {
  color: #31552c;
  font-weight: 700;
}

.document-acknowledgement small[data-state="ready"] {
  color: #1f6a28;
}

.document-acknowledgement small[data-state="saving"] {
  color: #6f4f00;
}

.document-acknowledgement.is-complete {
  border-color: rgba(31, 106, 40, 0.34);
  background: #eefce8;
}

.document-acknowledgement.is-complete strong {
  color: #1f6a28;
}

.document-download-state {
  display: grid;
  gap: 0.35rem;
  padding: 1.2rem;
}

.staff-file-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  white-space: nowrap;
}

.staff-file-actions button {
  border: 0;
  background: transparent;
  color: var(--brand-dark);
  font-weight: 800;
  padding: 0;
}

.staff-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.staff-upload-card h4 {
  margin: 0 0 0.35rem;
  color: var(--ink);
}

.staff-upload-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.5;
}

.staff-file-list {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.staff-file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0.65rem 0.75rem;
}

.staff-file-list span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.staff-file-list a {
  color: var(--brand-dark);
  font-weight: 800;
  text-decoration: none;
}

.document-upload-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0 0 1rem;
  border: 1px solid rgba(123, 149, 47, 0.24);
  border-radius: 8px;
  background: rgba(249, 252, 244, 0.96);
  padding: 1rem;
}

.document-upload-form label {
  display: grid;
  gap: 0.4rem;
  color: #123f2a;
  font-weight: 800;
}

.document-upload-form .span-2 {
  grid-column: span 2;
}

.document-upload-form input,
.document-upload-form select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #123f2a;
  padding: 0.68rem 0.75rem;
}

.document-upload-form button {
  justify-self: start;
}

.department-document-list,
.department-document-group,
.sop-department-group {
  display: grid;
  gap: 0.85rem;
}

.department-document-list {
  margin-top: 1rem;
}

.department-document-group,
.sop-department-group {
  border: 1px solid rgba(123, 149, 47, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  padding: 0.85rem;
}

.sop-department-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(123, 149, 47, 0.18);
  padding-bottom: 0.55rem;
}

.sop-department-header h6 {
  margin: 0;
  color: #123f2a;
  font-size: 1rem;
}

.sop-department-header span {
  color: #75891d;
  font-weight: 850;
}

@media (max-width: 900px) {
  .staff-summary,
  .staff-upload-grid,
  .internal-nav,
  .workflow-grid,
  .document-centre-grid,
  .reports-grid,
  .sop-centre-list,
  .marketing-progress-form,
  .marketing-progress-list,
  .staff-login-form,
  .staff-admin-form {
    grid-template-columns: 1fr;
  }

  .staff-admin-form .span-2 {
    grid-column: auto;
  }

  .document-upload-form {
    grid-template-columns: 1fr;
  }

  .document-upload-form .span-2 {
    grid-column: auto;
  }
}

.leave-request-form {
  display: grid;
  gap: 0.85rem;
}

.leave-request-form label {
  display: grid;
  gap: 0.4rem;
  color: #334155;
  font-weight: 700;
}

.leave-request-form input,
.leave-request-form select,
.leave-request-form textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0.68rem 0.75rem;
  outline: none;
}

.leave-request-form input:focus,
.leave-request-form select:focus,
.leave-request-form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(34, 169, 87, 0.16);
}

.leave-date-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (max-width: 720px) {
  .leave-date-grid {
    grid-template-columns: 1fr;
  }
}

.staff-login-card::before {
  content: "Staff Only";
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(34, 169, 87, 0.12);
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

body:not(.staff-authenticated) #staffWorkspace {
  display: none !important;
}

body.staff-authenticated #staffLoginCard {
  display: none !important;
}

/* Corporate public website layout */
.app-shell {
  display: block;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  width: 100%;
  height: auto;
  min-height: 5.25rem;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  border-bottom: 4px solid var(--brand);
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 12px 32px rgba(15, 15, 16, 0.12);
  padding: 0.65rem clamp(1rem, 3vw, 2.5rem);
}

.brand-panel {
  display: flex;
  min-width: min(25rem, 44vw);
  align-items: center;
  gap: 0.9rem;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
}

.logo-mark {
  width: 4.4rem;
  height: 4.4rem;
  flex: 0 0 auto;
  margin: 0;
  border: 1px solid #ececec;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.logo-mark img {
  padding: 0.28rem;
}

.brand-panel h1 {
  color: #0f0f10;
  font-size: clamp(0.92rem, 1.6vw, 1.18rem);
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.brand-panel p {
  margin-top: 0.15rem;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.side-nav {
  display: flex;
  flex: 1;
  justify-content: flex-end;
  gap: 0.15rem;
  overflow: visible;
  padding: 0;
}

.mobile-menu-toggle,
.mobile-menu-heading,
.mobile-menu-backdrop {
  display: none;
}

.mobile-menu-toggle {
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: #071b35;
  padding: 0.65rem;
}

.mobile-menu-toggle span {
  display: block;
  height: 2px;
  margin: 0.28rem 0;
  background: #ffffff;
}

.nav-item {
  width: auto;
  min-height: 2.7rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f8faf2;
  box-shadow: none;
  padding: 0.7rem 0.75rem;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.nav-item:hover,
.nav-item.active {
  background: #071b35;
  color: #ffffff;
  box-shadow: inset 0 -4px 0 var(--brand);
  transform: none;
}

.staff-login-nav {
  background: var(--brand);
  color: #ffffff;
}

@media (min-width: 761px) {
  body:not(.landing-active) .side-nav .nav-item {
    color: #f8faf2 !important;
  }

  body:not(.landing-active) .side-nav .nav-item:hover,
  body:not(.landing-active) .side-nav .nav-item.active {
    color: #ffffff !important;
  }

  body[data-page="companyProfile"] .profile-slide:first-child {
    grid-column: auto !important;
  }

  body[data-page="companyProfile"] .profile-slide.rba-audit {
    grid-column: auto !important;
  }

  body[data-page="companyProfile"] .profile-slide.about-wide-pc {
    grid-column: 1 / -1 !important;
  }
}

.server-card {
  display: none;
}

.main-area {
  min-width: 0;
  overflow: visible;
}

.top-bar {
  border-bottom: 1px solid var(--line);
  background: #071b35;
  color: #ffffff;
  box-shadow: none;
  padding: 0.8rem clamp(1rem, 3vw, 2.5rem);
}

.top-bar h2 {
  font-size: 1.05rem;
  text-transform: uppercase;
}

.top-bar p {
  color: #d1d5db;
  font-size: 0.86rem;
}

body[data-page="dashboard"] .top-bar {
  display: none;
}

.search-field input {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.search-field input::placeholder {
  color: #d1d5db;
}

.search-field input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(227, 27, 35, 0.18);
}

.admin-button,
.primary-button {
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(227, 27, 35, 0.24);
}

.admin-button:hover,
.primary-button:hover {
  background: var(--brand-dark);
}

.secondary-button:hover {
  background: #fff1f2;
}

.content-stack {
  padding: clamp(1rem, 3vw, 2.5rem);
}

#dashboard.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.front-header {
  min-height: clamp(30rem, 64vh, 43rem);
  border: 0;
  border-radius: 0;
  background: #071b35;
  box-shadow: 0 24px 48px rgba(15, 15, 16, 0.2);
  aspect-ratio: auto;
}

.front-header::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 38%;
  width: 22%;
  z-index: 1;
  background: linear-gradient(90deg, #123f2a 0%, rgba(18, 63, 42, 0.92) 36%, rgba(18, 63, 42, 0) 100%);
  pointer-events: none;
}

.front-header .hero-slide {
  inset: 0 0 0 auto;
  width: 60%;
  object-fit: cover;
  object-position: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  width: 48%;
  max-width: none;
  align-content: center;
  gap: 1.2rem;
  padding: clamp(2rem, 5vw, 4.5rem);
  color: #ffffff;
}

.hero-copy span,
.section-kicker {
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-copy h2 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 1.02;
  text-transform: none;
}

.hero-copy p {
  max-width: 35rem;
  margin: 0;
  color: #f3f4f6;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.65;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-login-button {
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.hero-dots {
  z-index: 3;
  right: 1.5rem;
  bottom: 1.5rem;
  border-radius: 0;
  background: #123f2a;
  padding: 0.65rem 0.75rem;
}

.hero-dot {
  width: 1.6rem;
  height: 0.22rem;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.45);
}

.hero-dot.active {
  background: var(--brand);
}

.force-one-signature {
  display: grid;
  grid-template-columns: auto repeat(3, minmax(0, 1fr)) auto;
  align-items: center;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(7, 27, 53, 0.08);
}

.force-one-signature span,
.force-one-signature strong,
.force-one-signature button,
.force-one-signature a {
  min-height: 4.6rem;
}

.force-one-signature span {
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #ffffff;
  padding: 0.8rem 1.35rem;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.force-one-signature strong {
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  color: #071b35;
  padding: 0.8rem 1rem;
  font-size: clamp(0.9rem, 1.5vw, 1.08rem);
  text-transform: uppercase;
}

.force-one-signature button,
.force-one-signature a {
  display: grid;
  place-items: center;
  border: 0;
  background: #071b35;
  color: #ffffff;
  padding: 0.8rem 1.5rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.force-one-signature button:hover,
.force-one-signature a:hover {
  background: #0d2e55;
}

.home-section,
.home-preview-card,
.corporate-cta,
.service-card-grid article {
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 15, 16, 0.06);
}

.home-section {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.home-about {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
}

.company-intro {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) auto;
}

.home-section h3,
.home-preview-card h3,
.corporate-cta h3 {
  margin: 0.25rem 0 0;
  color: #111827;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.18;
}

.home-section p,
.home-preview-card p,
.corporate-cta p,
.service-card-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.home-section-heading {
  display: grid;
  gap: 0.2rem;
}

.home-service-grid,
.service-card-grid,
.home-preview-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-service-grid article {
  border-left: 4px solid var(--brand);
  background: #f8fafc;
  padding: 1rem;
}

.home-service-grid strong,
.service-card-grid h4 {
  display: block;
  margin: 0 0 0.45rem;
  color: #111827;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
}

.home-service-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.home-preview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-preview-card {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  padding: 1.35rem;
}

.why-force-one {
  background: #0f0f10;
  color: #ffffff;
}

.why-force-one h3 {
  color: #ffffff;
}

.why-grid,
.security-process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.why-grid article {
  display: grid;
  align-content: start;
  gap: 0.6rem;
  border-top: 3px solid var(--brand);
  background: #1b1b1d;
  padding: 1rem;
}

.why-grid b,
.security-process-grid span {
  color: var(--brand);
  font-size: 1.7rem;
  font-weight: 900;
}

.why-grid strong,
.security-process-grid strong {
  color: inherit;
  font-size: 1rem;
  text-transform: uppercase;
}

.why-grid p {
  margin: 0;
  color: #d1d5db;
  line-height: 1.55;
}

.security-process-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.security-process-grid article {
  display: grid;
  gap: 0.65rem;
  border-left: 4px solid var(--brand);
  background: #f8fafc;
  padding: 1.15rem;
}

.security-process-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.home-resource-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  padding: 0.8rem 1rem;
}

.home-resource-links span {
  margin-right: auto;
  color: #111827;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.home-resource-links button {
  border: 0;
  background: transparent;
  color: var(--brand-dark);
  font-weight: 800;
  padding: 0.45rem 0.55rem;
}

.home-resource-links button:hover {
  background: #fff1f2;
}

.corporate-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
  background: #071b35;
  color: #ffffff;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.corporate-cta::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0.45rem;
  background: var(--brand);
}

.corporate-cta > * {
  position: relative;
  z-index: 1;
}

.corporate-cta h3 {
  color: #ffffff;
}

.corporate-cta p {
  color: #d1d5db;
}

.contact-cta h3 {
  color: #f8faf2;
}

.contact-cta p {
  color: #334155;
}

.home-intro-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(17rem, 0.52fr);
  min-height: 30rem;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(7, 27, 53, 0.08);
}

.home-intro-copy {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 1.15rem;
  padding: clamp(2rem, 6vw, 5rem);
}

.home-intro-copy h3,
.home-services-heading h3 {
  max-width: 44rem;
  margin: 0;
  color: #071b35;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.04;
}

.home-intro-copy p {
  max-width: 38rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.home-intro-media {
  align-self: center;
  min-height: 26rem;
  margin: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2rem) 0;
  overflow: hidden;
  border-radius: 8px;
  background: #071b35;
  box-shadow: 0 18px 34px rgba(7, 27, 53, 0.14);
}

.home-intro-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.total-outsource-media {
  background: #061a31;
}

.total-outsource-media img {
  object-fit: contain;
}

.home-services-showcase {
  display: grid;
  gap: 1.5rem;
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.home-services-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}

.home-services-heading > div {
  display: grid;
  gap: 0.45rem;
}

.home-service-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.home-service-columns article {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  min-height: 19rem;
  border: 1px solid #e4e9f0;
  border-top: 5px solid var(--brand);
  background: #ffffff;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 16px 36px rgba(7, 27, 53, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.home-service-columns article:hover {
  transform: translateY(-0.35rem);
  box-shadow: 0 24px 44px rgba(7, 27, 53, 0.14);
}

.home-service-columns span {
  color: var(--brand);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.home-service-columns h4 {
  margin: 0;
  color: #071b35;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 950;
}

.home-service-columns p {
  margin: 0;
  color: var(--muted);
  font-style: italic;
  line-height: 1.7;
}

.home-service-columns button {
  justify-self: start;
  margin-top: auto;
  border: 0;
  border-bottom: 2px solid var(--brand);
  background: transparent;
  color: #111827;
  padding: 0.45rem 0;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-cta .primary-button,
.contact-cta .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}


.panel {
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: 0 14px 32px rgba(15, 15, 16, 0.06);
}

.panel-header h3 {
  text-transform: uppercase;
}

.service-card-grid {
  margin-bottom: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card-grid article {
  border-top: 4px solid var(--brand);
  padding: 1rem;
}

.page-footer {
  margin-top: 0.5rem;
  background: #071b35;
  color: #ffffff;
  padding: 1.75rem;
  text-align: center;
}

/* Scroll-triggered motion for public website sections */
.scroll-motion-ready .scroll-reveal {
  opacity: 0;
  transform: translateY(2.5rem);
  transition:
    opacity 700ms ease var(--reveal-delay, 0ms),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.scroll-motion-ready .scroll-reveal.reveal-from-left {
  transform: translateX(-3rem);
}

.scroll-motion-ready .scroll-reveal.reveal-from-right {
  transform: translateX(3rem);
}

.scroll-motion-ready body[data-page="companyProfile"] .profile-slide.scroll-reveal {
  transform: translateY(1.5rem);
}

.scroll-motion-ready .scroll-reveal.is-revealed {
  opacity: 1;
  transform: translate(0, 0);
}

.scroll-motion-ready .scroll-reveal img {
  transition:
    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
    filter 700ms ease var(--reveal-delay, 0ms);
}

.scroll-motion-ready .scroll-reveal:not(.is-revealed) img {
  filter: saturate(0.72);
  transform: scale(1.06);
}

.scroll-motion-ready .scroll-reveal.is-revealed img {
  filter: saturate(1);
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-motion-ready .scroll-reveal,
  .scroll-motion-ready .scroll-reveal img {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }
}

@media (max-width: 1120px) {
  .sidebar {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-panel {
    min-width: 0;
  }

  .side-nav {
    justify-content: flex-start;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 0.15rem;
  }

  .home-service-grid,
  .service-card-grid,
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.mobile-menu-open {
    overflow: hidden;
  }

  .sidebar {
    align-items: center;
    flex-direction: row;
    min-height: 4.8rem;
    padding: 0.55rem 0.8rem;
  }

  .brand-panel {
    min-width: 0;
    width: auto;
    flex: 1;
  }

  .brand-panel p {
    display: none;
  }

  .logo-mark {
    width: 3.6rem;
    height: 3.6rem;
  }

  .mobile-menu-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .side-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 70;
    display: flex;
    width: min(20rem, 86vw);
    height: 100dvh;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.35rem;
    overflow-y: auto;
    background: #ffffff;
    padding: 1rem;
    box-shadow: -18px 0 42px rgba(15, 15, 16, 0.22);
    transform: translateX(105%);
    transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  body.mobile-menu-open .side-nav {
    transform: translateX(0);
  }

  .mobile-menu-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.65rem;
    border-bottom: 2px solid var(--brand);
    padding: 0.25rem 0 0.8rem;
    color: #111827;
    text-transform: uppercase;
  }

  .mobile-menu-heading button {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: #0f0f10;
    color: #ffffff;
    font-size: 1.4rem;
  }

  .mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: block;
    background: rgba(15, 15, 16, 0.64);
  }

  .mobile-menu-backdrop[hidden] {
    display: none;
  }

  .nav-item {
    width: 100%;
    min-height: 2.5rem;
    border: 1px solid var(--line);
    background: #ffffff;
    color: #111827;
    font-size: 0.82rem;
    text-align: left;
  }

  .nav-item:hover,
  .nav-item.active {
    background: #071b35;
    color: #ffffff;
  }

  .top-bar,
  .top-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .search-field input {
    width: 100%;
  }

  .front-header {
    min-height: 43rem;
    background: #071b35;
  }

  .front-header::after {
    top: 50%;
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    height: 22%;
    background: linear-gradient(180deg, #123f2a 0%, rgba(18, 63, 42, 0.92) 28%, rgba(18, 63, 42, 0.48) 68%, rgba(18, 63, 42, 0) 100%);
  }

  .front-header .hero-slide {
    inset: auto 0 0;
    width: 100%;
    height: 44%;
  }

  .hero-copy {
    width: 100%;
    min-height: 56%;
    align-content: start;
    padding: 1.5rem;
  }

  .hero-copy h2 {
    font-size: clamp(2.2rem, 12vw, 3.4rem);
  }

  .home-about,
  .home-preview-grid,
  .home-service-grid,
  .service-card-grid,
  .why-grid,
  .security-process-grid,
  .company-intro {
    grid-template-columns: 1fr;
  }

  .home-intro-feature,
  .home-service-columns {
    grid-template-columns: 1fr;
  }

  .force-one-signature {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .force-one-signature span,
  .force-one-signature button,
  .force-one-signature a {
    grid-column: 1 / -1;
    min-height: 3.5rem;
  }

  .force-one-signature strong {
    min-height: 3.8rem;
    padding: 0.5rem 0.25rem;
    font-size: 0.72rem;
  }

  .home-intro-feature {
    min-height: auto;
  }

  .home-intro-copy {
    padding: 1.5rem;
  }

  .home-intro-media {
    min-height: 22rem;
    margin: 0 1.5rem 1.5rem;
  }

  .home-services-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-service-columns article {
    min-height: auto;
  }

  .corporate-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .home-resource-links {
    align-items: stretch;
    flex-direction: column;
  }

  .home-resource-links span {
    margin-right: 0;
  }

  .home-resource-links button {
    width: 100%;
    text-align: left;
  }

  body[data-page="companyProfile"] .company-profile-gallery {
    grid-template-columns: 1fr;
  }

  body[data-page="companyProfile"] .profile-featured,
  body[data-page="companyProfile"] .profile-vision {
    grid-column: auto;
  }

  body[data-page="companyProfile"] .profile-slide figcaption {
    right: 0.65rem;
    bottom: 0.65rem;
    padding: 0.5rem 0.7rem;
    font-size: 0.68rem;
  }

  .advertisement-board {
    grid-template-columns: 1fr;
  }

  .career-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 0.75rem;
  }

  .advertisement-actions {
    justify-content: flex-start;
  }

}

/* Final landing polish - keep this last */
.landing-page {
  background:
    radial-gradient(circle at 50% 34%, rgba(250, 204, 21, 0.2), transparent 18rem),
    radial-gradient(circle at 22% 14%, rgba(56, 189, 248, 0.28), transparent 22rem),
    radial-gradient(circle at 82% 78%, rgba(37, 99, 235, 0.36), transparent 24rem),
    linear-gradient(145deg, #020817 0%, #061b3f 44%, #020617 100%);
}

.landing-page::before {
  background:
    linear-gradient(115deg, transparent 0 43%, rgba(250, 204, 21, 0.18) 44%, transparent 45% 100%),
    repeating-linear-gradient(90deg, rgba(125, 211, 252, 0.08) 0 1px, transparent 1px 7rem),
    repeating-linear-gradient(0deg, rgba(125, 211, 252, 0.08) 0 1px, transparent 1px 7rem);
  animation: techSweep 14s linear infinite;
}

.landing-page::after {
  background:
    radial-gradient(circle, rgba(250, 204, 21, 0.35) 0 2px, transparent 3px) 14% 24% / 9rem 9rem,
    radial-gradient(circle, rgba(125, 211, 252, 0.38) 0 2px, transparent 3px) 78% 62% / 11rem 11rem,
    linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.18), transparent);
  mask-image: none;
  animation: gridDrift 20s linear infinite;
}

.landing-content {
  width: min(100%, 62rem);
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(8, 47, 73, 0.34), rgba(2, 6, 23, 0.46)),
    rgba(2, 6, 23, 0.34);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 44px rgba(56, 189, 248, 0.14);
  backdrop-filter: blur(18px);
  padding: clamp(1.4rem, 4vw, 3.2rem);
}

.landing-logo {
  display: grid;
  width: clamp(5rem, 12vw, 8rem);
  height: clamp(5rem, 12vw, 8rem);
  place-items: center;
  margin-bottom: clamp(0.8rem, 2vw, 1.4rem);
  border: 1px solid rgba(250, 204, 21, 0.34);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(219, 234, 254, 0.88)),
    #ffffff;
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.22),
    0 0 32px rgba(250, 204, 21, 0.16);
  padding: 0.7rem;
}

.landing-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.landing-eagle {
  width: min(82vw, 28rem);
  margin-bottom: clamp(0.85rem, 2vw, 1.3rem);
  filter:
    drop-shadow(0 2rem 2.2rem rgba(0, 0, 0, 0.46))
    drop-shadow(0 0 2rem rgba(250, 204, 21, 0.18));
}

.landing-eagle img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.landing-kicker {
  background: rgba(2, 132, 199, 0.2);
  color: #fde68a;
  box-shadow: inset 0 0 18px rgba(125, 211, 252, 0.14);
}

.landing-content h1 {
  text-shadow:
    0 0 18px rgba(125, 211, 252, 0.24),
    0 2px 0 rgba(0, 0, 0, 0.22);
}

.landing-button {
  position: relative;
  overflow: hidden;
  min-width: 12rem;
  border-radius: 18px;
  transform: translateY(0);
}

.landing-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 34%, rgba(255, 255, 255, 0.45) 45%, transparent 56% 100%);
  opacity: 0;
  transform: translateX(-100%);
  transition: transform 360ms ease, opacity 360ms ease;
}

.landing-button:hover::before {
  opacity: 1;
  transform: translateX(100%);
}

.landing-button:hover {
  transform: translateY(-0.28rem);
}

.landing-button-primary {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(180deg, #fde68a 0%, #facc15 56%, #ca8a04 100%);
  box-shadow:
    0 1rem 0 #7c4a03,
    0 1.55rem 2.5rem rgba(0, 0, 0, 0.34),
    0 0 34px rgba(250, 204, 21, 0.22);
}

.landing-button-primary:active {
  transform: translateY(0.45rem);
  box-shadow:
    0 0.55rem 0 #7c4a03,
    0 1rem 1.7rem rgba(0, 0, 0, 0.3);
}

.landing-button-secondary {
  border: 1px solid rgba(125, 211, 252, 0.38);
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.24), rgba(15, 23, 42, 0.74));
  box-shadow:
    0 1rem 0 #020617,
    0 1.55rem 2.5rem rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.landing-button-secondary:active {
  transform: translateY(0.45rem);
  box-shadow:
    0 0.55rem 0 #020617,
    0 1rem 1.7rem rgba(0, 0, 0, 0.3);
}

@media (max-width: 720px) {
  .landing-content {
    border-radius: 22px;
    padding: 1.2rem;
  }

  .landing-eagle {
    width: min(86vw, 20rem);
  }
}



/* Corporate landing refinement */
body.landing-active .landing-page {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.5)),
    radial-gradient(circle at 80% 20%, rgba(227, 27, 35, 0.16), transparent 19rem),
    linear-gradient(135deg, #061225 0%, #09244a 48%, #050b16 100%) !important;
}

body.landing-active .landing-page::before {
  background:
    linear-gradient(115deg, transparent 0 45%, rgba(255, 255, 255, 0.08) 46%, transparent 47% 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 100% 100%, 5.5rem 5.5rem;
  opacity: 0.5;
}

body.landing-active .landing-page::after,
body.landing-active .landing-grid,
body.landing-active .landing-orb {
  opacity: 0.16;
}

body.landing-active .landing-content {
  max-width: 52rem !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08)),
    rgba(5, 11, 22, 0.48) !important;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

body.landing-active .landing-logo {
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22) !important;
}

body.landing-active .landing-eagle {
  filter:
    drop-shadow(0 1.4rem 1.8rem rgba(0, 0, 0, 0.36))
    drop-shadow(0 0 1rem rgba(255, 255, 255, 0.08)) !important;
}

body.landing-active .landing-kicker {
  border-color: rgba(255, 255, 255, 0.24) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #e5e7eb !important;
}

body.landing-active .landing-content h1 {
  color: #ffffff !important;
  letter-spacing: -0.04em !important;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.28) !important;
}

body.landing-active .landing-button {
  border-radius: 12px !important;
  letter-spacing: 0.06em !important;
}

body.landing-active .landing-button-primary {
  background: linear-gradient(180deg, #ef4444, #b91c1c) !important;
  color: #ffffff !important;
  box-shadow:
    0 0.55rem 0 #7f1d1d,
    0 1.15rem 2.3rem rgba(0, 0, 0, 0.3) !important;
}

body.landing-active .landing-button-secondary {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  box-shadow:
    0 0.55rem 0 rgba(0, 0, 0, 0.42),
    0 1.15rem 2.3rem rgba(0, 0, 0, 0.28) !important;
}

/* Premium landing CTA refinement */
body.landing-active .landing-kicker {
  max-width: min(92vw, 38rem) !important;
  text-align: center !important;
  white-space: normal !important;
  letter-spacing: 0.16em !important;
  line-height: 1.45 !important;
}

body.landing-active .landing-actions {
  gap: 1rem !important;
}

body.landing-active .landing-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  min-width: 13.5rem !important;
  min-height: 3.25rem !important;
  border-radius: 999px !important;
  padding: 0.98rem 1.55rem !important;
  text-decoration: none !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  isolation: isolate !important;
  transform: translateY(0) !important;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease !important;
}

body.landing-active .landing-button span {
  position: relative;
  z-index: 1;
}

body.landing-active .landing-button::after {
  content: "";
  position: absolute;
  inset: 0.18rem;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

body.landing-active .landing-button:hover {
  transform: translateY(-0.18rem) !important;
}

body.landing-active .landing-button:active {
  transform: translateY(0.1rem) !important;
}

body.landing-active .landing-button-primary {
  border: 1px solid rgba(248, 113, 113, 0.42) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(180deg, #dc2626 0%, #991b1b 100%) !important;
  color: #ffffff !important;
  box-shadow:
    0 0.78rem 1.75rem rgba(127, 29, 29, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
}

body.landing-active .landing-button-primary:hover {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(180deg, #ef4444 0%, #991b1b 100%) !important;
  box-shadow:
    0 1rem 2.1rem rgba(127, 29, 29, 0.46),
    0 0 28px rgba(239, 68, 68, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.32) !important;
}

body.landing-active .landing-button-secondary {
  border: 1px solid rgba(226, 232, 240, 0.36) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 36%),
    rgba(15, 23, 42, 0.7) !important;
  color: #f8fafc !important;
  box-shadow:
    0 0.78rem 1.75rem rgba(2, 6, 23, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: blur(14px);
}

body.landing-active .landing-button-secondary:hover {
  border-color: rgba(250, 204, 21, 0.48) !important;
  background:
    linear-gradient(135deg, rgba(250, 204, 21, 0.16), transparent 36%),
    rgba(15, 23, 42, 0.78) !important;
  box-shadow:
    0 1rem 2.1rem rgba(2, 6, 23, 0.42),
    0 0 24px rgba(250, 204, 21, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

@media (max-width: 720px) {
  body.landing-active .landing-button {
    width: min(100%, 18rem) !important;
    min-width: 0 !important;
  }
}

/* Alternating corporate logo and security background */
.landing-bg-rotator {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.landing-bg-rotator span {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  animation: landingBgCycle 18s ease-in-out infinite;
}

.landing-bg-logo {
  background:
    linear-gradient(rgba(3, 7, 18, 0.62), rgba(3, 7, 18, 0.72)),
    url("logo.png") 12% 20% / 10rem auto repeat;
  filter: saturate(0.9);
}

.landing-bg-security {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.56)),
    url("header.png") center / cover no-repeat;
  animation-delay: 6s !important;
}

.landing-bg-logo-alt {
  background:
    linear-gradient(rgba(3, 7, 18, 0.72), rgba(3, 7, 18, 0.78)),
    url("logo.png") 86% 30% / 8rem auto repeat;
  animation-delay: 12s !important;
}

/* Move alternating background into the centre panel */
body.landing-active .landing-page {
  background:
    radial-gradient(circle at 80% 20%, rgba(227, 27, 35, 0.14), transparent 18rem),
    linear-gradient(135deg, #061225 0%, #09244a 48%, #050b16 100%) !important;
}

body.landing-active .landing-content {
  position: relative !important;
  overflow: hidden !important;
  background:
    linear-gradient(180deg, rgba(5, 11, 22, 0.72), rgba(5, 11, 22, 0.66)),
    rgba(5, 11, 22, 0.56) !important;
}

body.landing-active .landing-content > :not(.landing-bg-rotator) {
  position: relative;
  z-index: 2;
}

body.landing-active .landing-bg-rotator {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
  opacity: 1;
}

body.landing-active .landing-bg-rotator::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5, 11, 22, 0.5), rgba(5, 11, 22, 0.72)),
    radial-gradient(circle at center, transparent 0 30%, rgba(5, 11, 22, 0.62) 76%);
}

body.landing-active .landing-bg-rotator span {
  animation: landingBgCycle 18s ease-in-out infinite;
}

body.landing-active .landing-bg-logo {
  background:
    linear-gradient(rgba(5, 11, 22, 0.4), rgba(5, 11, 22, 0.48)),
    url("logo.png") center / min(58vw, 28rem) auto no-repeat;
}

body.landing-active .landing-bg-security {
  background:
    linear-gradient(rgba(5, 11, 22, 0.36), rgba(5, 11, 22, 0.56)),
    url("secu1.png") center / cover no-repeat;
  animation-delay: 6s !important;
}

body.landing-active .landing-bg-security-alt {
  background:
    linear-gradient(rgba(5, 11, 22, 0.36), rgba(5, 11, 22, 0.56)),
    url("secu3.png") center / cover no-repeat;
  animation-delay: 12s !important;
}

body.landing-active .landing-page::before,
body.landing-active .landing-page::after,
body.landing-active .landing-grid,
body.landing-active .landing-orb,
body.landing-active .landing-content {
  z-index: 1;
}

@keyframes landingBgCycle {
  0%,
  28% {
    opacity: 0;
    transform: scale(1.04);
  }

  5%,
  26% {
    opacity: 0.5;
    transform: scale(1);
  }

  33%,
  100% {
    opacity: 0;
    transform: scale(1.04);
  }
}

/* Keep landing fixed at current visual size without page scrollbar */
html:has(body.landing-active),
body.landing-active {
  height: 100% !important;
  overflow: hidden !important;
}

body.landing-active .landing-page {
  position: fixed !important;
  inset: 0 !important;
  min-height: 100svh !important;
  height: 100svh !important;
  overflow: hidden !important;
}

body.landing-active .landing-content {
  max-height: calc(100svh - 1.5rem) !important;
}

/* Softer corporate brightness across public pages */
:root {
  --ink: #111827;
  --muted: #5f6b7a;
  --line: #d9dee7;
  --panel: #f7f8fa;
  --canvas: #eceff3;
}

body:not(.landing-active) {
  background: #eceff3;
}

body:not(.landing-active) .content-stack,
body:not(.landing-active) .main-area {
  background:
    linear-gradient(180deg, rgba(236, 239, 243, 0.94), rgba(229, 233, 239, 0.96));
}

body:not(.landing-active) .panel,
body:not(.landing-active) .metric-card,
body:not(.landing-active) .home-section,
body:not(.landing-active) .home-preview-card,
body:not(.landing-active) .corporate-cta,
body:not(.landing-active) .service-card-grid article,
body:not(.landing-active) .activity-card,
body:not(.landing-active) .poster-card,
body:not(.landing-active) .profile-slide,
body:not(.landing-active) .client-card,
body:not(.landing-active) .license-card,
body:not(.landing-active) .services-card,
body:not(.landing-active) .audit-card,
body:not(.landing-active) .security-card,
body:not(.landing-active) .form-section,
body:not(.landing-active) .contact-details div,
body:not(.landing-active) .marketing-progress-panel {
  background: #f7f8fa !important;
  border-color: #d9dee7 !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06) !important;
}

body:not(.landing-active) .top-bar {
  background: #06162b !important;
}

body:not(.landing-active) input,
body:not(.landing-active) select,
body:not(.landing-active) textarea {
  background: #f2f4f7 !important;
  border-color: #cfd6e1 !important;
}

body:not(.landing-active) .front-header,
body:not(.landing-active) .home-intro-media,
body:not(.landing-active) .img__wrapper,
body:not(.landing-active) .poster-card img,
body:not(.landing-active) .activity-card img,
body:not(.landing-active) .profile-slide img,
body:not(.landing-active) .client-card img,
body:not(.landing-active) .license-card img,
body:not(.landing-active) .services-card img,
body:not(.landing-active) .audit-card img,
body:not(.landing-active) .security-card img {
  filter: brightness(0.88) contrast(0.98) saturate(0.94);
}

/* Mobile image sections should feel full-width */
@media (max-width: 760px) {
  body:not(.landing-active) .content-stack {
    overflow-x: hidden;
  }

  body:not(.landing-active) .front-header,
  body:not(.landing-active) .home-intro-media,
  body:not(.landing-active) .poster-card,
  body:not(.landing-active) .activity-card,
  body:not(.landing-active) .profile-slide,
  body:not(.landing-active) .client-card,
  body:not(.landing-active) .license-card,
  body:not(.landing-active) .services-card,
  body:not(.landing-active) .audit-card,
  body:not(.landing-active) .security-card,
  body:not(.landing-active) .workflow-image-link {
    width: calc(100% + 2rem) !important;
    max-width: none !important;
    margin-right: -1rem !important;
    margin-left: -1rem !important;
    border-radius: 0 !important;
  }

  body:not(.landing-active) .home-intro-media {
    min-height: 24rem !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  body:not(.landing-active) .front-header .hero-slide,
  body:not(.landing-active) .home-intro-media img,
  body:not(.landing-active) .poster-card img,
  body:not(.landing-active) .activity-card img,
  body:not(.landing-active) .profile-slide img,
  body:not(.landing-active) .client-card img,
  body:not(.landing-active) .license-card img,
  body:not(.landing-active) .services-card img,
  body:not(.landing-active) .audit-card img,
  body:not(.landing-active) .security-card img,
  body:not(.landing-active) .workflow-image-link img {
    width: 100% !important;
  }
}

/* About page: keep profile images contained on mobile */
@media (max-width: 760px) {
  body[data-page="companyProfile"] .company-profile-gallery {
    gap: 0.85rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body[data-page="companyProfile"] .company-profile-gallery .profile-slide {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    overflow: hidden !important;
    border-radius: 8px !important;
  }

  body[data-page="companyProfile"] .company-profile-gallery .profile-slide img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    background: #fff !important;
  }
}

@media (max-width: 420px) {
  body[data-page="companyProfile"] .company-profile-gallery .profile-slide img {
    max-height: none !important;
  }
}

/* Services page: keep mobile service content tidy and screen-fit */
@media (max-width: 760px) {
  html,
  body,
  body:not(.landing-active) .app-shell,
  body:not(.landing-active) .content-stack {
    max-width: 100%;
    overflow-x: hidden;
  }

  body:not(.landing-active) #rbaPolicies.services-panel {
    border-radius: 0 !important;
    overflow: hidden;
  }

  body:not(.landing-active) #rbaPolicies .panel-header {
    gap: 0.35rem !important;
    padding-bottom: 0.2rem;
  }

  body:not(.landing-active) #rbaPolicies .panel-header h3 {
    font-size: clamp(1.45rem, 7vw, 2rem) !important;
    line-height: 1.1 !important;
  }

  body:not(.landing-active) #rbaPolicies .services-gallery {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  body:not(.landing-active) #rbaPolicies .services-card {
    width: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
    border: 1px solid rgba(117, 137, 29, 0.28) !important;
    border-radius: 8px !important;
    background: #fbfff0 !important;
    box-shadow: 0 12px 24px rgba(18, 63, 42, 0.1) !important;
  }

  body:not(.landing-active) #rbaPolicies .services-card + .services-card {
    margin-top: 0 !important;
  }

  body:not(.landing-active) #rbaPolicies .services-card img {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    max-height: 58vh !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    background: #ffffff !important;
  }
}

@media (max-width: 560px) {
  body:not(.landing-active) #rbaPolicies .services-card img {
    max-height: 48vh !important;
  }
}

@media (max-width: 420px) {
  body:not(.landing-active) #rbaPolicies .services-card img {
    max-height: 42vh !important;
  }
}

@media (max-width: 760px) {
  body:not(.landing-active) #rbaPolicies .services-card {
    padding: 0.45rem !important;
  }
}

@media (max-width: 560px) {
  body:not(.landing-active) #rbaPolicies .services-gallery {
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  body:not(.landing-active) #rbaPolicies.services-panel {
    padding: 1rem 0.85rem !important;
  }

  body:not(.landing-active) #rbaPolicies .panel-header,
  body:not(.landing-active) #rbaPolicies .service-card-grid {
    width: 100% !important;
    max-width: 100% !important;
  }

  body:not(.landing-active) #rbaPolicies .service-card-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
    margin-bottom: 0.95rem !important;
  }

  body:not(.landing-active) #rbaPolicies .service-card-grid article {
    padding: 0.9rem !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 20px rgba(18, 63, 42, 0.08) !important;
  }

  body:not(.landing-active) #rbaPolicies .service-card-grid h4 {
    font-size: 1rem !important;
    line-height: 1.25 !important;
  }

  body:not(.landing-active) #rbaPolicies .service-card-grid p {
    font-size: 0.9rem !important;
    line-height: 1.55 !important;
  }

  body:not(.landing-active) #rbaPolicies .services-card img {
    border-radius: 0 !important;
  }
}

/* Mobile gallery images: show the full image on every page */
@media (max-width: 760px) {
  body:not(.landing-active) .poster-card img,
  body:not(.landing-active) .activity-card img,
  body:not(.landing-active) .client-card img,
  body:not(.landing-active) .license-card img,
  body:not(.landing-active) .services-card img,
  body:not(.landing-active) .audit-card img,
  body:not(.landing-active) .security-card img,
  body:not(.landing-active) .workflow-image-link img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 auto !important;
    object-fit: contain !important;
  }
}

/* Green concept variant */
:root {
  --brand: #b8c83a;
  --brand-dark: #123f2a;
  --brand-soft: #edf4bf;
  --canvas: #eef3df;
  --panel: #fbfff0;
  --ink: #152417;
  --muted: #596450;
  --line: #d5ddb3;
}

body.landing-active .landing-page {
  background:
    linear-gradient(90deg, rgba(18, 63, 42, 0.97) 0 46%, rgba(186, 201, 61, 0.72) 46% 100%),
    radial-gradient(circle at 82% 22%, rgba(238, 248, 168, 0.82), transparent 22rem),
    radial-gradient(circle at 75% 82%, rgba(76, 117, 37, 0.72), transparent 26rem),
    linear-gradient(135deg, #123f2a 0%, #1f5c3c 44%, #d9e78a 100%) !important;
}

body.landing-active .landing-page::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 15% 15%, rgba(218, 235, 118, 0.22), transparent 18rem) !important;
  background-size: 3.8rem 3.8rem, 3.8rem 3.8rem, auto !important;
  opacity: 0.56 !important;
}

body.landing-active .landing-page::after {
  background:
    radial-gradient(circle at 80% 78%, rgba(21, 62, 28, 0.42), transparent 12rem),
    linear-gradient(90deg, rgba(18, 63, 42, 0.38), transparent 54%) !important;
  opacity: 0.72 !important;
}

body.landing-active .landing-content {
  border-color: rgba(218, 232, 104, 0.46) !important;
  background:
    linear-gradient(90deg, rgba(18, 63, 42, 0.82) 0 47%, rgba(218, 232, 104, 0.58) 47% 100%),
    rgba(244, 250, 209, 0.48) !important;
  box-shadow:
    0 30px 90px rgba(10, 35, 24, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.34) !important;
}

body.landing-active .landing-bg-rotator::after {
  background:
    linear-gradient(90deg, rgba(18, 63, 42, 0.84) 0 45%, rgba(218, 232, 104, 0.42) 45% 100%),
    radial-gradient(circle at 70% 70%, transparent 0%, rgba(244, 250, 209, 0.34) 72%) !important;
}

body.landing-active .landing-logo {
  border-color: rgba(244, 250, 209, 0.62) !important;
  background: rgba(255, 255, 255, 0.7) !important;
}

body.landing-active .landing-kicker {
  color: #f7fbe2 !important;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.32) !important;
}

body.landing-active .landing-content h1 {
  color: #f8faf2 !important;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.38), 0 2px 0 rgba(18, 63, 42, 0.9) !important;
}

body.landing-active .landing-button-primary {
  border-color: rgba(255, 255, 255, 0.24) !important;
  background: linear-gradient(180deg, #d7df65 0%, #9eaf28 58%, #6d7e1a 100%) !important;
  color: #ffffff !important;
  box-shadow:
    0 18px 34px rgba(12, 40, 25, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
}

body.landing-active .landing-button-secondary {
  border-color: rgba(244, 250, 209, 0.52) !important;
  background: rgba(18, 63, 42, 0.44) !important;
  color: #f8faf2 !important;
}

body:not(.landing-active) .sidebar,
body:not(.landing-active) .brand-panel,
body:not(.landing-active) .corporate-cta {
  background: #123f2a !important;
}

body:not(.landing-active) .front-header {
  background: #1c5136 !important;
}

body:not(.landing-active) .primary-button,
body:not(.landing-active) .admin-button,
body:not(.landing-active) .nav-item.active {
  background: #75891d !important;
}

body:not(.landing-active) .front-header {
  background: #123f2a !important;
  box-shadow: 0 24px 48px rgba(12, 40, 25, 0.22) !important;
}

body:not(.landing-active) .front-header::after {
  background: linear-gradient(90deg, #123f2a 0%, rgba(18, 63, 42, 0.92) 36%, rgba(18, 63, 42, 0) 100%) !important;
}

body:not(.landing-active) .sidebar,
body:not(.landing-active) .brand-panel,
body:not(.landing-active) .corporate-cta,
body:not(.landing-active) .front-header {
  color: #f8faf2 !important;
}

body:not(.landing-active) .brand-panel h1,
body:not(.landing-active) .brand-panel p,
body:not(.landing-active) .sidebar h1,
body:not(.landing-active) .sidebar p,
body:not(.landing-active) .corporate-cta h4,
body:not(.landing-active) .corporate-cta p,
body:not(.landing-active) .front-header h2,
body:not(.landing-active) .front-header p {
  color: #f8faf2 !important;
}

body:not(.landing-active) .brand-panel .company-status,
body:not(.landing-active) .section-kicker,
body:not(.landing-active) .front-header .section-kicker {
  color: #dbe87a !important;
}

body:not(.landing-active) .career-page .recruitment-section-header .section-kicker,
body:not(.landing-active) .application-form-section .recruitment-section-header .section-kicker,
body:not(.landing-active) .home-intro-copy > .section-kicker,
body:not(.landing-active) .home-services-heading .section-kicker {
  background: #123f2a !important;
  color: #ffffff !important;
}

body:not(.landing-active) .services-panel .panel-header h3,
body:not(.landing-active) .service-card-grid h4 {
  color: #0b2f1f !important;
  font-weight: 950 !important;
  letter-spacing: 0.02em;
}

body:not(.landing-active) .service-card-grid p {
  color: #1f3527 !important;
  font-style: italic;
  font-weight: 650 !important;
}

body.portal-page:not(.landing-active) .sidebar {
  position: sticky !important;
  top: 0 !important;
  z-index: 60 !important;
  display: flex !important;
  justify-content: flex-end !important;
  min-height: auto !important;
  padding: 0.75rem clamp(1rem, 4vw, 2.5rem) !important;
  border-radius: 0 !important;
  background: #123f2a !important;
  box-shadow: 0 10px 26px rgba(18, 63, 42, 0.16) !important;
}

body.portal-page:not(.landing-active) .brand-panel,
body.portal-page:not(.landing-active) .server-card,
body.portal-page:not(.landing-active) .mobile-menu-toggle,
body.portal-page:not(.landing-active) .mobile-menu-backdrop,
body.portal-page:not(.landing-active) .mobile-menu-heading,
body.portal-page:not(.landing-active) .top-bar {
  display: none !important;
}

body.portal-page:not(.landing-active) .side-nav {
  position: static !important;
  display: flex !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

body.portal-page:not(.landing-active) .side-nav .nav-item:not(:first-of-type) {
  display: none !important;
}

body.staff-profile-page:not(.landing-active) .side-nav .nav-item {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.portal-page:not(.landing-active) .side-nav .nav-item:first-of-type,
body.portal-page:not(.landing-active).staff-authenticated .side-nav .profile-nav-item {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 2.65rem !important;
  padding: 0.72rem 1.2rem !important;
  border: 1px solid rgba(219, 232, 122, 0.42) !important;
  border-radius: 8px !important;
  background: #dbe87a !important;
  color: #123f2a !important;
  font-weight: 950 !important;
  text-decoration: none !important;
  box-shadow: 0 10px 22px rgba(3, 12, 8, 0.18) !important;
}

body.portal-page:not(.landing-active).staff-authenticated .side-nav .profile-nav-item {
  margin-left: 0.6rem !important;
  cursor: pointer !important;
}

body.portal-page:not(.landing-active) .main-area {
  padding-top: clamp(1rem, 3vw, 1.75rem) !important;
}

body:not(.landing-active) .service-card-grid article {
  background: #fbfff0 !important;
  border-color: #75891d !important;
}

body:not(.landing-active) .why-choose-banner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(18rem, 1.05fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(184, 216, 142, 0.62);
  background:
    radial-gradient(circle at 84% 14%, rgba(221, 255, 173, 0.74), transparent 17rem),
    linear-gradient(135deg, #edf8dd 0%, #dceebd 52%, #b7d47b 100%);
  color: #123f2a;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 18px 42px rgba(76, 109, 42, 0.16);
}

body:not(.landing-active) .why-choose-banner h4 {
  margin: 0.35rem 0 0.65rem;
  color: #123f2a;
  font-size: clamp(1.35rem, 3vw, 2.35rem);
  line-height: 1.1;
}

body:not(.landing-active) .why-choose-banner p {
  max-width: 46rem;
  margin: 0;
  color: #294928;
  line-height: 1.65;
}

body:not(.landing-active) .why-choose-banner .section-kicker {
  display: inline-flex;
  margin-bottom: 0.3rem;
  color: #62810f !important;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  font-weight: 950;
  letter-spacing: 0.08em;
}

body:not(.landing-active) .why-choose-banner ul {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body:not(.landing-active) .why-choose-banner li {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #fbfff0;
  padding: 0.75rem 0.9rem 0.75rem 2.4rem;
  font-weight: 800;
}

@media (min-width: 761px) {
  body:not(.landing-active) .why-choose-banner h4,
  body:not(.landing-active) .why-choose-banner p,
  body:not(.landing-active) .why-choose-banner li {
    text-shadow: none;
  }
}

body:not(.landing-active) .why-choose-banner li::before {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 0.8rem;
  transform: translateY(-50%);
  display: grid;
  width: 1rem;
  height: 1rem;
  place-items: center;
  border-radius: 50%;
  background: #dbe87a;
  color: #123f2a;
  font-size: 0.75rem;
  font-weight: 950;
}

body:not(.landing-active) .why-force-banner {
  overflow: hidden;
}

body:not(.landing-active) .why-force-slider {
  position: relative;
  min-height: 12.5rem;
  overflow: hidden;
  border: 1px solid rgba(98, 129, 15, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

body:not(.landing-active) .why-force-slider::before,
body:not(.landing-active) .why-force-slider::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  z-index: 2;
  height: 3rem;
  pointer-events: none;
}

body:not(.landing-active) .why-force-slider::before {
  top: 0;
  background: linear-gradient(180deg, rgba(237, 248, 221, 0.95), rgba(237, 248, 221, 0));
}

body:not(.landing-active) .why-force-slider::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(183, 212, 123, 0.9), rgba(183, 212, 123, 0));
}

body:not(.landing-active) .why-force-slider ul {
  position: relative;
  min-height: 12.5rem;
  padding: 0.95rem;
}

body:not(.landing-active) .why-force-slider li {
  position: absolute;
  inset: 0.95rem;
  min-height: auto;
  display: grid;
  align-content: center;
  gap: 0.35rem;
  border-color: rgba(98, 129, 15, 0.28);
  background: rgba(248, 255, 237, 0.9);
  color: #123f2a;
  opacity: 0;
  transform: translateY(1.2rem);
  animation: whyForceStatement 28s ease-in-out infinite;
}

body:not(.landing-active) .why-force-slider strong {
  color: #123f2a;
  font-size: clamp(1.02rem, 2vw, 1.28rem);
}

body:not(.landing-active) .why-force-slider span {
  color: #31552c;
  font-size: clamp(0.92rem, 1.5vw, 1.02rem);
  font-weight: 650;
  line-height: 1.45;
}

body:not(.landing-active) .why-force-slider li:nth-child(1) {
  animation-delay: 0s;
}

body:not(.landing-active) .why-force-slider li:nth-child(2) {
  animation-delay: 4s;
}

body:not(.landing-active) .why-force-slider li:nth-child(3) {
  animation-delay: 8s;
}

body:not(.landing-active) .why-force-slider li:nth-child(4) {
  animation-delay: 12s;
}

body:not(.landing-active) .why-force-slider li:nth-child(5) {
  animation-delay: 16s;
}

body:not(.landing-active) .why-force-slider li:nth-child(6) {
  animation-delay: 20s;
}

body:not(.landing-active) .why-force-slider li:nth-child(7) {
  animation-delay: 24s;
}

body:not(.landing-active) .why-force-slider:hover li {
  animation-play-state: paused;
}

@keyframes whyForceStatement {
  0% {
    opacity: 0;
    transform: translateY(1.2rem);
  }
  5%,
  13% {
    opacity: 1;
    transform: translateY(0);
  }
  18%,
  100% {
    opacity: 0;
    transform: translateY(-1.2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.landing-active) .why-force-slider li {
    animation: none;
  }

  body:not(.landing-active) .why-force-slider li:first-child {
    opacity: 1;
    transform: none;
  }
}

/* Why Force One: present highlights as a polished static list */
body:not(.landing-active) .why-force-banner {
  grid-template-columns: minmax(0, 0.78fr) minmax(18rem, 1.22fr);
  align-items: stretch;
}

body:not(.landing-active) .why-force-slider {
  min-height: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body:not(.landing-active) .why-force-slider::before,
body:not(.landing-active) .why-force-slider::after {
  display: none;
}

body:not(.landing-active) .why-force-slider ul {
  position: static;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  min-height: 0;
  padding: 0;
}

body:not(.landing-active) .why-force-slider li {
  position: relative;
  inset: auto;
  min-height: 7.2rem;
  align-content: start;
  gap: 0.42rem;
  border: 1px solid rgba(98, 129, 15, 0.22);
  border-left: 4px solid #75891d;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 255, 232, 0.94));
  color: #123f2a;
  padding: 1rem 1rem 1rem 3.1rem;
  opacity: 1;
  transform: none;
  animation: none;
  box-shadow: 0 12px 26px rgba(76, 109, 42, 0.12);
}

body:not(.landing-active) .why-force-slider li::before {
  left: 1rem;
  width: 1.35rem;
  height: 1.35rem;
  background: #123f2a;
  color: #dbe87a;
  font-size: 0.72rem;
}

body:not(.landing-active) .why-force-slider li:nth-child(1)::before { content: "01"; }
body:not(.landing-active) .why-force-slider li:nth-child(2)::before { content: "02"; }
body:not(.landing-active) .why-force-slider li:nth-child(3)::before { content: "03"; }
body:not(.landing-active) .why-force-slider li:nth-child(4)::before { content: "04"; }
body:not(.landing-active) .why-force-slider li:nth-child(5)::before { content: "05"; }
body:not(.landing-active) .why-force-slider li:nth-child(6)::before { content: "06"; }
body:not(.landing-active) .why-force-slider li:nth-child(7)::before { content: "07"; }

body:not(.landing-active) .why-force-slider strong {
  color: #123f2a;
  font-size: 1rem;
  line-height: 1.25;
}

body:not(.landing-active) .why-force-slider span {
  color: #31552c;
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .back-to-top-button {
    right: 0.85rem;
    bottom: 0.85rem;
    padding: 0.62rem 0.78rem;
    font-size: 0.82rem;
  }

  .back-to-top-button span:first-child {
    width: 1.25rem;
    height: 1.25rem;
  }

  body:not(.landing-active) .why-force-banner {
    grid-template-columns: 1fr !important;
  }

  body:not(.landing-active) .why-force-slider ul {
    grid-template-columns: 1fr;
  }

  body:not(.landing-active) .why-force-slider li {
    min-height: auto;
  }

  body:not(.landing-active) .front-header::after {
    top: 0 !important;
    height: 100% !important;
    background:
      linear-gradient(180deg, rgba(18, 63, 42, 0.92) 0%, rgba(18, 63, 42, 0.64) 44%, rgba(18, 63, 42, 0.08) 100%),
      linear-gradient(90deg, rgba(18, 63, 42, 0.74), rgba(18, 63, 42, 0.18)) !important;
  }

  body:not(.landing-active) .front-header .hero-slide {
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  body:not(.landing-active) .front-header {
    min-height: min(48rem, 100svh) !important;
  }

  body:not(.landing-active) .front-header .hero-copy {
    min-height: auto !important;
    padding-top: clamp(2rem, 8vh, 4rem) !important;
    padding-bottom: 9rem !important;
  }

  body:not(.landing-active) .why-choose-banner {
    grid-template-columns: 1fr;
  }
}

/* Final mobile polish: compact, readable, and easier to scroll */
@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body:not(.landing-active) .app-shell {
    background: #f6faed;
  }

  body:not(.landing-active) .main-area {
    gap: 0.85rem;
    padding: 0.85rem;
  }

  body:not(.landing-active) .content-stack {
    gap: 1rem;
  }

  body:not(.landing-active) .top-bar {
    gap: 0.7rem;
    border-radius: 8px;
    padding: 0.9rem;
  }

  body:not(.landing-active) .top-bar h2 {
    font-size: clamp(1.25rem, 6vw, 1.75rem);
    line-height: 1.1;
  }

  body:not(.landing-active) .top-bar p {
    font-size: 0.86rem;
    line-height: 1.45;
  }

  body:not(.landing-active) .sidebar {
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: 4.15rem;
    border-radius: 0;
    padding: 0.45rem 0.75rem;
    box-shadow: 0 12px 28px rgba(18, 63, 42, 0.16);
  }

  body:not(.landing-active) .brand-panel {
    grid-template-columns: 2.65rem minmax(0, 1fr);
    gap: 0.65rem;
  }

  body:not(.landing-active) .logo-mark {
    width: 2.65rem;
    height: 2.65rem;
  }

  body:not(.landing-active) .brand-panel h1 {
    font-size: 0.82rem;
    line-height: 1.2;
  }

  body:not(.landing-active) .server-card {
    display: none;
  }

  body:not(.landing-active) .mobile-menu-toggle {
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 8px;
  }

  body:not(.landing-active) .front-header {
    min-height: min(37rem, 92svh) !important;
    border-radius: 8px !important;
  }

  body:not(.landing-active) .front-header .hero-slide {
    object-position: center center !important;
    filter: brightness(0.82) contrast(1.02) saturate(1.02);
  }

  body:not(.landing-active) .front-header::after {
    background:
      linear-gradient(180deg, rgba(18, 63, 42, 0.92) 0%, rgba(18, 63, 42, 0.58) 42%, rgba(18, 63, 42, 0.12) 100%) !important;
  }

  body:not(.landing-active) .front-header .hero-copy {
    padding: 1.25rem 1rem 6.5rem !important;
  }

  body:not(.landing-active) .hero-copy span {
    font-size: 0.72rem;
  }

  body:not(.landing-active) .hero-copy h2 {
    max-width: 12ch;
    font-size: clamp(2rem, 11vw, 3rem) !important;
    line-height: 0.98;
  }

  body:not(.landing-active) .hero-copy p {
    max-width: 30rem;
    font-size: 0.92rem;
    line-height: 1.55;
  }

  body:not(.landing-active) .hero-actions {
    gap: 0.55rem;
  }

  body:not(.landing-active) .hero-actions .primary-button,
  body:not(.landing-active) .hero-actions .secondary-button {
    min-height: 2.65rem;
    padding: 0.72rem 0.9rem;
    font-size: 0.78rem;
  }

  body:not(.landing-active) .force-one-signature {
    border-radius: 8px;
    padding: 0.7rem;
  }

  body:not(.landing-active) .home-intro-feature,
  body:not(.landing-active) .why-choose-banner,
  body:not(.landing-active) .home-services-showcase,
  body:not(.landing-active) .panel,
  body:not(.landing-active) .settings-panel {
    border-radius: 8px !important;
  }

  body:not(.landing-active) .home-intro-copy,
  body:not(.landing-active) .home-services-heading,
  body:not(.landing-active) .why-choose-banner,
  body:not(.landing-active) .panel,
  body:not(.landing-active) .settings-panel {
    padding: 1rem !important;
  }

  body:not(.landing-active) .home-intro-copy h3,
  body:not(.landing-active) .home-services-heading h3,
  body:not(.landing-active) .panel-header h3,
  body:not(.landing-active) .why-choose-banner h4 {
    font-size: clamp(1.35rem, 7vw, 2rem) !important;
    line-height: 1.08 !important;
  }

  body:not(.landing-active) .home-intro-copy p,
  body:not(.landing-active) .why-choose-banner p,
  body:not(.landing-active) .panel-header p {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  body:not(.landing-active) .home-intro-media {
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    border-radius: 8px !important;
    background: #ffffff;
  }

  body:not(.landing-active) .home-intro-media img {
    height: auto !important;
    max-height: 72svh !important;
    object-fit: contain !important;
  }

  body:not(.landing-active) .home-service-columns,
  body:not(.landing-active) .service-card-grid,
  body:not(.landing-active) .contact-layout {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  body:not(.landing-active) .home-service-columns article,
  body:not(.landing-active) .service-card-grid article,
  body:not(.landing-active) .contact-details div {
    border-radius: 8px;
    padding: 0.9rem;
  }

  body:not(.landing-active) .contact-details {
    gap: 0.75rem;
  }

  body:not(.landing-active) .contact-details p {
    overflow-wrap: anywhere;
  }

  body:not(.landing-active) .whatsapp-qr-link {
    width: min(100%, 11.5rem);
    justify-content: center;
  }

  body:not(.landing-active) .whatsapp-qr-link img {
    width: 100%;
  }

  body:not(.landing-active) .contact-map {
    min-height: 18rem;
    border-radius: 8px;
  }

  body[data-page="companyProfile"] .company-profile-gallery {
    gap: 0.75rem !important;
  }

  body[data-page="companyProfile"] .company-profile-gallery .profile-slide {
    border-radius: 8px !important;
    box-shadow: 0 12px 24px rgba(18, 63, 42, 0.12);
  }

  body[data-page="companyProfile"] .company-profile-gallery .profile-slide img {
    max-height: 76svh !important;
  }

  body:not(.landing-active) #rbaPolicies .services-card {
    padding: 0.35rem !important;
  }

  body:not(.landing-active) #rbaPolicies .services-card img {
    max-height: 74svh !important;
  }

  body:not(.landing-active) .why-force-slider li {
    padding: 0.9rem 0.9rem 0.9rem 2.85rem;
    box-shadow: 0 10px 20px rgba(76, 109, 42, 0.1);
  }
}

@media (max-width: 420px) {
  body:not(.landing-active) .main-area {
    padding: 0.65rem;
  }

  body:not(.landing-active) .hero-copy h2 {
    font-size: clamp(1.85rem, 12vw, 2.55rem) !important;
  }

  body:not(.landing-active) .front-header {
    min-height: min(34rem, 90svh) !important;
  }

  body:not(.landing-active) .home-intro-media img,
  body[data-page="companyProfile"] .company-profile-gallery .profile-slide img,
  body:not(.landing-active) #rbaPolicies .services-card img {
    max-height: 68svh !important;
  }
}

/* Why Force One: restore original single-card slide, slightly faster */
body:not(.landing-active) .why-force-banner {
  grid-template-columns: minmax(0, 0.85fr) minmax(18rem, 1.15fr);
  align-items: stretch;
  overflow: hidden;
}

body:not(.landing-active) .why-force-slider {
  position: relative;
  min-height: 12.5rem;
  overflow: hidden;
  border: 1px solid rgba(98, 129, 15, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

body:not(.landing-active) .why-force-slider::before,
body:not(.landing-active) .why-force-slider::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  z-index: 2;
  display: block;
  height: 3rem;
  pointer-events: none;
}

body:not(.landing-active) .why-force-slider::before {
  top: 0;
  background: linear-gradient(180deg, rgba(237, 248, 221, 0.95), rgba(237, 248, 221, 0));
}

body:not(.landing-active) .why-force-slider::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(183, 212, 123, 0.9), rgba(183, 212, 123, 0));
}

body:not(.landing-active) .why-force-slider ul {
  position: relative;
  display: block;
  min-height: 12.5rem;
  padding: 0.95rem;
}

body:not(.landing-active) .why-force-slider li {
  position: absolute;
  inset: 0.95rem;
  min-height: auto;
  display: grid;
  align-content: center;
  gap: 0.35rem;
  border: 1px solid rgba(98, 129, 15, 0.28);
  border-left: 4px solid #75891d;
  background: rgba(248, 255, 237, 0.92);
  color: #123f2a;
  padding: 1rem 1rem 1rem 3.1rem;
  opacity: 0;
  transform: translateY(1.2rem);
  animation: whyForceStatement 21s ease-in-out infinite;
  box-shadow: 0 12px 26px rgba(76, 109, 42, 0.12);
}

body:not(.landing-active) .why-force-slider li:nth-child(1) { animation-delay: 0s; }
body:not(.landing-active) .why-force-slider li:nth-child(2) { animation-delay: 3s; }
body:not(.landing-active) .why-force-slider li:nth-child(3) { animation-delay: 6s; }
body:not(.landing-active) .why-force-slider li:nth-child(4) { animation-delay: 9s; }
body:not(.landing-active) .why-force-slider li:nth-child(5) { animation-delay: 12s; }
body:not(.landing-active) .why-force-slider li:nth-child(6) { animation-delay: 15s; }
body:not(.landing-active) .why-force-slider li:nth-child(7) { animation-delay: 18s; }

body:not(.landing-active) .why-force-slider li::before {
  left: 1rem;
  width: 1.35rem;
  height: 1.35rem;
  background: #123f2a;
  color: #dbe87a;
  font-size: 0.72rem;
}

body:not(.landing-active) .why-force-slider strong {
  color: #123f2a;
  font-size: clamp(1.02rem, 2vw, 1.28rem);
  line-height: 1.25;
}

body:not(.landing-active) .why-force-slider span {
  color: #31552c;
  font-size: clamp(0.92rem, 1.5vw, 1.02rem);
  font-weight: 650;
  line-height: 1.45;
}

body:not(.landing-active) .why-force-slider:hover li {
  animation-play-state: paused;
}

@media (max-width: 760px) {
  body:not(.landing-active) .why-force-banner {
    grid-template-columns: 1fr !important;
  }

  body:not(.landing-active) .why-force-slider {
    min-height: 11rem;
  }

  body:not(.landing-active) .why-force-slider ul {
    min-height: 11rem;
  }

  body:not(.landing-active) .why-force-slider li {
    padding: 0.9rem 0.9rem 0.9rem 2.85rem;
  }
}

/* Visitor counter */
.visitor-counter-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.4rem 1rem;
  border: 1px solid rgba(184, 200, 58, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(18, 63, 42, 0.96), rgba(28, 81, 54, 0.92)),
    #123f2a;
  color: #f8faf2;
  padding: 1rem 1.15rem;
  box-shadow: 0 18px 36px rgba(18, 63, 42, 0.18);
}

.visitor-counter-card span {
  color: #dbe87a;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visitor-counter-card strong {
  grid-row: span 2;
  min-width: 7rem;
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 950;
  line-height: 0.95;
  text-align: right;
}

.visitor-counter-card p {
  margin: 0;
  color: rgba(248, 250, 242, 0.82);
  font-size: 0.92rem;
  font-weight: 650;
}

body.landing-active .landing-visitor-counter {
  display: inline-flex;
  width: auto;
  min-width: 0;
  position: static;
  left: auto;
  bottom: auto;
  z-index: 20;
  margin-top: 0.68rem;
  padding: 0.24rem 0.52rem;
  gap: 0.36rem;
  border-color: rgba(244, 250, 209, 0.28);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(18, 63, 42, 0.88), rgba(34, 83, 45, 0.76)),
    rgba(18, 63, 42, 0.82);
  box-shadow: 0 8px 18px rgba(4, 16, 10, 0.14);
  transform: none;
}

body.landing-active .landing-visitor-counter span {
  margin: 0;
  font-size: 0.52rem;
  letter-spacing: 0.06em;
}

body.landing-active .landing-visitor-counter strong {
  color: #ffffff;
  min-width: 0;
  font-size: 0.82rem;
  line-height: 1;
  text-align: left;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

body.landing-active .landing-visitor-counter p {
  display: none;
}

body.landing-active .landing-actions {
  margin-top: 1.35rem !important;
}

@media (max-width: 760px) {
  .visitor-counter-card {
    grid-template-columns: 1fr;
    padding: 0.95rem;
  }

  .visitor-counter-card strong {
    grid-row: auto;
    min-width: 0;
    text-align: left;
  }

  body.landing-active .landing-visitor-counter {
    display: inline-flex;
    width: auto;
    bottom: auto;
    margin-top: 0.55rem;
    padding: 0.22rem 0.48rem;
  }
}

/* Counter visibility fix: keep it inside the landing flow so mobile browser toolbars cannot crop it. */
body.landing-active .landing-page {
  overflow-y: auto !important;
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom)) !important;
}

body.landing-active .landing-content {
  overflow: visible !important;
}

body.landing-active .landing-visitor-counter {
  position: static !important;
  inset: auto !important;
  flex: 0 0 auto !important;
  margin: 0.6rem auto 0 !important;
  transform: none !important;
}

@media (max-width: 760px) {
  body.landing-active .landing-actions {
    margin-top: 0.95rem !important;
  }

  body.landing-active .landing-visitor-counter {
    margin-top: 0.5rem !important;
  }
}

/* About mobile: remove extra white space above and below profile images */
@media (max-width: 760px) {
  body[data-page="companyProfile"] .company-profile-gallery {
    gap: 0.7rem !important;
  }

body[data-page="companyProfile"] .company-profile-gallery .profile-slide {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    line-height: 0 !important;
  }

  body[data-page="companyProfile"] .company-profile-gallery .profile-slide img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    object-fit: initial !important;
    background: transparent !important;
  }
}

/* Staff area: keep text dark on light cards */
body[data-page="staffDirectory"] .staff-workspace,
body[data-page="staffDirectory"] .staff-workspace p,
body[data-page="staffDirectory"] .staff-workspace span,
body[data-page="staffDirectory"] .staff-workspace small,
body[data-page="staffDirectory"] .staff-workspace label,
body[data-page="staffDirectory"] .staff-workspace h4,
body[data-page="staffDirectory"] .staff-workspace h5,
body[data-page="staffDirectory"] .staff-workspace h6,
body[data-page="staffDirectory"] .staff-workspace strong,
body[data-page="staffDirectory"] .internal-portal-panel,
body[data-page="staffDirectory"] .staff-upload-card,
body[data-page="staffDirectory"] .staff-document-viewer,
body[data-page="staffDirectory"] .staff-admin-area,
body[data-page="staffDirectory"] .staff-admin-form,
body[data-page="staffDirectory"] .staff-admin-list,
body[data-page="staffDirectory"] .staff-file-list,
body[data-page="staffDirectory"] .reports-grid article,
body[data-page="staffDirectory"] .workflow-card,
body[data-page="staffDirectory"] .sop-centre-card,
body[data-page="staffDirectory"] .document-centre-grid article {
  color: #123f2a !important;
}

body[data-page="staffDirectory"] .staff-workspace p,
body[data-page="staffDirectory"] .staff-summary span,
body[data-page="staffDirectory"] .internal-section-header p,
body[data-page="staffDirectory"] .workflow-card p,
body[data-page="staffDirectory"] .sop-centre-card p,
body[data-page="staffDirectory"] .staff-upload-card p,
body[data-page="staffDirectory"] .staff-document-viewer p,
body[data-page="staffDirectory"] .staff-file-list span,
body[data-page="staffDirectory"] .staff-admin-record span,
body[data-page="staffDirectory"] .staff-admin-record small {
  color: #31552c !important;
}

body[data-page="staffDirectory"] .internal-nav button,
body[data-page="staffDirectory"] .document-centre-grid button,
body[data-page="staffDirectory"] .sop-centre-card button,
body[data-page="staffDirectory"] .workflow-card button,
body[data-page="staffDirectory"] .staff-file-actions button {
  color: #123f2a !important;
}

body[data-page="staffDirectory"] .primary-button,
body[data-page="staffDirectory"] .staff-logout,
body[data-page="staffDirectory"] .staff-admin-record button,
body[data-page="staffDirectory"] .upload-button {
  color: #ffffff !important;
}

body[data-page="staffDirectory"] .internal-nav button.active,
body[data-page="staffDirectory"] .internal-nav button:hover {
  color: #123f2a !important;
}

/* Leave approval workflow */
.staff-direct-approval {
  margin: 1rem 0;
  padding: 1.2rem;
  border: 1px solid rgba(123, 149, 47, 0.28);
  border-radius: 8px;
  background: rgba(248, 251, 242, 0.96);
  box-shadow: 0 18px 40px rgba(18, 63, 42, 0.08);
}

.leave-status-panel {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(123, 149, 47, 0.22);
}

.leave-status-panel h5 {
  margin: 0 0 0.75rem;
}

.leave-status-list,
.leave-approval-list {
  display: grid;
  gap: 0.85rem;
}

.leave-request-item {
  display: grid;
  gap: 0.55rem;
  padding: 0.9rem;
  border: 1px solid rgba(123, 149, 47, 0.25);
  border-radius: 8px;
  background: rgba(249, 252, 244, 0.92);
}

.leave-request-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.leave-request-head div {
  display: grid;
  gap: 0.2rem;
}

.leave-request-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.leave-request-top-actions button {
  border: 1px solid #bfd0a6;
  border-radius: 8px;
  background: #ffffff;
  color: #123f2a;
  padding: 0.42rem 0.65rem;
  font-weight: 850;
  cursor: pointer;
}

.leave-status-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.leave-status-badge.submitted {
  background: #fff3cd;
  color: #6f4f00;
}

.leave-status-badge.pending-hr {
  background: #e0f2fe;
  color: #075985;
}

.leave-status-badge.approved {
  background: #dff4d8;
  color: #1f6a28;
}

.leave-status-badge.not-approved {
  background: #fde2df;
  color: #9d241a;
}

.leave-request-item p {
  margin: 0;
}

.leave-stage-tracker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.leave-stage-pill {
  display: grid;
  gap: 0.15rem;
  min-height: 3.2rem;
  border: 1px solid #d5dcc0;
  border-radius: 8px;
  background: #f8faf5;
  padding: 0.55rem 0.65rem;
}

.leave-stage-pill strong {
  color: #123f2a;
  font-size: 0.82rem;
}

.leave-stage-pill small {
  color: #52624a;
}

.leave-stage-pill.done {
  border-color: #97bf6b;
  background: #edf8e8;
}

.leave-stage-pill.pending {
  border-color: #8fc7e8;
  background: #eef8ff;
}

.leave-stage-pill.waiting {
  border-color: #d5dcc0;
  background: #f8faf5;
}

.leave-stage-pill.rejected {
  border-color: #e5a19a;
  background: #fff0ee;
}

.leave-approval-note {
  border-left: 3px solid #7b952f;
  padding: 0.55rem 0.7rem;
  background: rgba(226, 239, 178, 0.35);
  color: #123f2a;
}

.leave-approval-actions {
  display: grid;
  gap: 0.65rem;
}

.leave-approval-actions textarea {
  width: 100%;
  resize: vertical;
}

.leave-approval-actions div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.leave-approval-actions button {
  border: 0;
  border-radius: 8px;
  background: #123f2a;
  color: #ffffff !important;
  padding: 0.65rem 0.95rem;
  font-weight: 850;
  cursor: pointer;
}

.leave-approval-actions button:last-child {
  background: #8a2d21;
}

.leave-detail-panel {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  border: 1px solid rgba(18, 63, 42, 0.18);
  border-radius: 8px;
  background: #ffffff;
  padding: 1rem;
  box-shadow: 0 18px 35px rgba(18, 63, 42, 0.12);
}

.leave-detail-panel[hidden] {
  display: none;
}

.leave-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #dfe8d2;
  padding-bottom: 0.75rem;
}

.leave-detail-header h5,
.leave-detail-header p {
  margin: 0;
}

.leave-detail-header button {
  border: 0;
  border-radius: 8px;
  background: #123f2a;
  color: #ffffff;
  padding: 0.55rem 0.85rem;
  font-weight: 850;
  cursor: pointer;
}

.leave-detail-content {
  display: grid;
  gap: 0.9rem;
}

.leave-detail-summary,
.leave-detail-grid,
.leave-detail-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.leave-detail-summary > div,
.leave-detail-grid article,
.leave-detail-notes article,
.leave-detail-reason {
  display: grid;
  gap: 0.3rem;
  border: 1px solid #dfe8d2;
  border-radius: 8px;
  background: #f9fcf4;
  padding: 0.75rem;
}

.leave-detail-summary span,
.leave-detail-grid span,
.leave-detail-reason span {
  color: #52624a;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.leave-detail-summary strong,
.leave-detail-grid strong {
  color: #123f2a;
}

.leave-detail-reason p,
.leave-detail-notes p {
  margin: 0;
}

.leave-detail-notes h6 {
  margin: 0;
  color: #123f2a;
}

.leave-monthly-report {
  margin-top: 1rem;
  border-top: 1px solid rgba(123, 149, 47, 0.24);
  padding-top: 1rem;
}

.leave-report-controls {
  display: grid;
  grid-template-columns: minmax(10rem, 0.75fr) minmax(12rem, 0.9fr) minmax(14rem, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
}

.leave-report-controls label {
  display: grid;
  gap: 0.35rem;
  color: #123f2a;
  font-weight: 800;
}

.leave-report-controls input,
.leave-report-controls select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #123f2a;
  padding: 0.62rem 0.7rem;
}

.leave-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.leave-report-output {
  margin-top: 1rem;
  overflow-x: auto;
}

.leave-report-print-area {
  border: 1px solid rgba(123, 149, 47, 0.24);
  border-radius: 8px;
  background: #ffffff;
  padding: 1rem;
}

.leave-report-header,
.leave-report-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.leave-report-header h5,
.leave-report-header p {
  margin: 0;
}

.leave-report-header span {
  border-radius: 999px;
  background: #edf8e8;
  color: #123f2a;
  padding: 0.35rem 0.7rem;
  font-weight: 850;
}

.leave-report-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.85rem;
  font-size: 0.82rem;
}

.leave-report-table th,
.leave-report-table td {
  border: 1px solid #d7dfca;
  padding: 0.45rem 0.5rem;
  text-align: left;
  vertical-align: top;
}

.leave-report-table th {
  background: #f2f7e8;
  color: #123f2a;
}

.leave-report-table small {
  display: block;
  color: #52624a;
}

.leave-report-footer {
  margin-top: 1rem;
  color: #52624a;
  font-size: 0.82rem;
}

.staff-registration-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.staff-registration-record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.9fr);
  gap: 1rem;
  border: 1px solid rgba(123, 149, 47, 0.24);
  border-radius: 8px;
  background: rgba(249, 252, 244, 0.96);
  padding: 0.95rem;
}

.staff-registration-record > div:first-child,
.staff-registration-review {
  display: grid;
  gap: 0.45rem;
}

.staff-registration-review select,
.staff-registration-review textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #123f2a;
  padding: 0.62rem 0.7rem;
}

.staff-registration-review div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.staff-registration-review button {
  border: 0;
  border-radius: 8px;
  background: #123f2a;
  color: #ffffff !important;
  padding: 0.62rem 0.9rem;
  font-weight: 850;
  cursor: pointer;
}

.staff-registration-review button:last-child {
  background: #8a2d21;
}

.record-status.pending {
  background: #fff3cd;
  color: #6f4f00;
}

.record-status.approved {
  background: #dff4d8;
  color: #1f6a28;
}

.record-status.rejected,
.record-status.suspended {
  background: #fde2df;
  color: #9d241a;
}

@media (max-width: 760px) {
  .leave-request-head {
    display: grid;
  }

  .leave-request-top-actions {
    justify-content: flex-start;
  }

  .leave-status-badge {
    width: max-content;
  }

  .leave-stage-tracker {
    grid-template-columns: 1fr;
  }

  .leave-report-controls {
    grid-template-columns: 1fr;
  }

  .leave-detail-summary,
  .leave-detail-grid,
  .leave-detail-notes {
    grid-template-columns: 1fr;
  }

  .staff-registration-record,
  .staff-registration-form {
    grid-template-columns: 1fr;
  }

  .staff-registration-form .span-2 {
    grid-column: auto;
  }
}

@media print {
  body.staff-authenticated * {
    visibility: hidden !important;
  }

  body.staff-authenticated .leave-report-print-area,
  body.staff-authenticated .leave-report-print-area * {
    visibility: visible !important;
  }

  body.staff-authenticated .leave-report-print-area {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    border: 0;
    border-radius: 0;
    padding: 0;
  }

  body.staff-authenticated .leave-report-table {
    font-size: 10px;
  }
}

/* Staff document pop-up viewer */
body.staff-document-open::after {
  content: none !important;
  display: none !important;
}

.staff-document-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.document-admin-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.document-admin-controls select,
.document-admin-controls button {
  border: 1px solid rgba(18, 63, 42, 0.22);
  border-radius: 8px;
  background: #ffffff;
  color: #123f2a;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.48rem 0.62rem;
}

.document-admin-controls button {
  background: #dbe87a;
}

.department-inline-upload {
  display: grid;
  grid-template-columns: minmax(13rem, 1.2fr) minmax(10rem, 1fr) auto;
  gap: 0.55rem;
  align-items: end;
  margin: 0.75rem 0;
  padding: 0.75rem;
  border: 1px dashed rgba(18, 63, 42, 0.28);
  border-radius: 8px;
  background: rgba(219, 232, 122, 0.12);
}

.department-inline-upload label {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 900;
}

.department-inline-upload input,
.department-inline-upload button {
  width: 100%;
  border: 1px solid rgba(18, 63, 42, 0.22);
  border-radius: 8px;
  background: #ffffff;
  color: #123f2a;
  font-weight: 800;
  padding: 0.55rem 0.65rem;
}

.department-inline-upload button {
  background: #123f2a;
  color: #ffffff;
}

.job-application-tools {
  display: flex;
  justify-content: flex-end;
}

.job-application-list {
  display: grid;
  gap: 0.8rem;
}

.job-application-card {
  display: grid;
  gap: 0.75rem;
  border: 1px solid rgba(18, 63, 42, 0.16);
  border-radius: 8px;
  background: #ffffff;
  padding: 0.9rem;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.job-application-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: start;
}

.job-application-head strong,
.job-application-head span,
.job-application-head small {
  display: block;
}

.job-application-head strong {
  color: #123f2a;
  font-size: 1rem;
}

.job-application-head span,
.job-application-head small {
  color: #52635a;
  font-size: 0.82rem;
  line-height: 1.4;
}

.job-application-card pre {
  overflow: auto;
  max-height: 13rem;
  margin: 0;
  border: 1px solid rgba(18, 63, 42, 0.12);
  border-radius: 8px;
  background: #f8fff9;
  color: #123f2a;
  padding: 0.75rem;
  white-space: pre-wrap;
  font: 0.82rem/1.45 "Manrope", sans-serif;
}

.job-application-card label {
  display: grid;
  gap: 0.35rem;
  color: #123f2a;
  font-size: 0.82rem;
  font-weight: 900;
}

.job-application-card select,
.job-application-card textarea {
  width: 100%;
  border: 1px solid rgba(18, 63, 42, 0.18);
  border-radius: 8px;
  background: #ffffff;
  color: #123f2a;
  padding: 0.55rem 0.65rem;
}

.job-application-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.job-application-actions button {
  border: 1px solid rgba(18, 63, 42, 0.22);
  border-radius: 8px;
  background: #dbe87a;
  color: #123f2a;
  font-weight: 900;
  padding: 0.58rem 0.75rem;
}

.staff-document-viewer.is-open {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  z-index: 2147483000 !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  width: min(98vw, 1360px) !important;
  height: min(94dvh, 940px) !important;
  border: 1px solid rgba(18, 63, 42, 0.18) !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  padding: 0 !important;
  box-shadow: 0 28px 72px rgba(3, 12, 8, 0.28) !important;
  transform: translate(-50%, -50%) !important;
  overflow: hidden !important;
  opacity: 1 !important;
  filter: none !important;
  pointer-events: auto !important;
}

.staff-document-viewer.is-open .panel-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  min-height: 4.25rem !important;
  padding: 0.8rem clamp(0.9rem, 2vw, 1.35rem) !important;
  border-bottom: 1px solid rgba(18, 63, 42, 0.16) !important;
  background: #ffffff !important;
}

.staff-document-viewer.is-open .staff-document-preview {
  min-height: 0 !important;
  height: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  opacity: 1 !important;
  filter: none !important;
  overflow: auto !important;
  pointer-events: auto !important;
}

.staff-document-viewer.is-open .staff-document-preview iframe {
  width: 100% !important;
  height: calc(100% - 1rem) !important;
  min-height: 0 !important;
  opacity: 1 !important;
  filter: none !important;
  pointer-events: auto !important;
}

.staff-document-viewer.is-open .staff-document-preview img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

@media (max-width: 760px) {
  .staff-document-viewer.is-open {
    width: 98vw !important;
    height: 94svh !important;
    border-radius: 12px !important;
  }

  .staff-document-viewer.is-open .panel-header {
    display: grid !important;
    grid-template-columns: 1fr !important;
    align-items: start !important;
  }

  .staff-document-actions {
    justify-content: stretch;
  }

  .staff-document-actions .primary-button,
  .staff-document-actions .secondary-button {
    flex: 1 1 auto;
  }

  .department-inline-upload {
    grid-template-columns: 1fr;
  }
}

.payslip-upload-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 1rem 0 1.25rem;
  padding: 1rem;
  border: 1px solid rgba(98, 129, 15, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
}

.payslip-upload-form[hidden] {
  display: none;
}

.payslip-upload-form label {
  display: grid;
  gap: 0.35rem;
  color: #234131;
  font-size: 0.82rem;
  font-weight: 800;
}

.payslip-upload-form .span-2 {
  grid-column: 1 / -1;
}

.payslip-upload-form input,
.payslip-upload-form select,
.payslip-upload-form textarea {
  width: 100%;
  border: 1px solid rgba(98, 129, 15, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #123f2a;
  padding: 0.72rem 0.78rem;
  font: inherit;
}

.payslip-upload-form button {
  align-self: end;
}

.payslip-list {
  display: grid;
  gap: 0.75rem;
}

.payslip-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem;
  border: 1px solid rgba(98, 129, 15, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.payslip-item strong,
.payslip-item small,
.payslip-item span,
.payslip-item p {
  display: block;
}

.payslip-item strong {
  color: #123f2a;
  font-size: 0.98rem;
}

.payslip-item small,
.payslip-item span,
.payslip-item p {
  margin-top: 0.25rem;
  color: rgba(18, 63, 42, 0.72);
  font-size: 0.78rem;
}

.payslip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.payslip-actions button {
  border: 0;
  border-radius: 8px;
  background: #123f2a;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.58rem 0.72rem;
}

.finance-payslip-panel {
  margin-top: 1rem;
}

.payslip-staff-results {
  display: grid;
  gap: 0.55rem;
}

.payslip-staff-result {
  display: grid;
  gap: 0.22rem;
  width: 100%;
  border: 1px solid rgba(98, 129, 15, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: #123f2a;
  cursor: pointer;
  padding: 0.75rem 0.85rem;
  text-align: left;
}

.payslip-staff-result:hover,
.payslip-staff-result:focus-visible {
  border-color: rgba(98, 129, 15, 0.45);
  background: rgba(247, 255, 235, 0.94);
  outline: 0;
}

.payslip-staff-result strong,
.payslip-staff-result span,
.payslip-staff-result small {
  display: block;
}

.payslip-staff-result strong {
  font-size: 0.92rem;
}

.payslip-staff-result span,
.payslip-staff-result small {
  color: rgba(18, 63, 42, 0.72);
  font-size: 0.78rem;
}

@media (max-width: 760px) {
  .payslip-upload-form,
  .staff-profile-grid,
  .payslip-item {
    grid-template-columns: 1fr;
  }

  .payslip-actions {
    justify-content: stretch;
  }

  .payslip-actions button {
    width: 100%;
  }
}
