:root { font-family: Arial, Helvetica, sans-serif; color: #1f2937; background: #f5f7fb; }
body { margin: 0; }
.topbar { background: white; color: #111827; padding: 18px 32px; display: flex; justify-content: space-between; gap: 24px; align-items: center; border-bottom: 1px solid #e5eaf1; box-shadow: 0 6px 20px rgba(16, 35, 63, .06); }
.brand { display: flex; align-items: center; gap: 18px; }
.brand img { width: 210px; height: auto; display: block; }
.topbar h1 { margin: 0 0 6px; font-size: 24px; }
.topbar p { margin: 0; color: #64748b; }
a { color: #6d28d9; }
.topbar nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.topbar a { color: #111827; text-decoration: none; font-weight: 700; }
.button, button { background: linear-gradient(135deg, #7c3aed, #2563eb); color: white !important; border: none; border-radius: 10px; padding: 10px 14px; cursor: pointer; text-decoration: none; font-weight: 700; display: inline-block; }
.secondary { background: #eef2ff !important; color: #3730a3 !important; }
.danger { background: #dc2626 !important; }
main { max-width: 1240px; margin: 24px auto; padding: 0 20px; }
.card { background: white; border-radius: 16px; box-shadow: 0 6px 20px rgba(16, 35, 63, .08); padding: 22px; margin-bottom: 22px; }
.narrow { max-width: 920px; margin-left: auto; margin-right: auto; }
.filters { display: grid; grid-template-columns: 1.6fr repeat(5, minmax(145px, 1fr)) auto; gap: 12px; align-items: end; }
.entryform label, .filters label { font-weight: 700; font-size: 14px; }
small { display: block; color: #64748b; margin-top: 4px; line-height: 1.3; font-weight: 400; }
input, select, textarea { width: 100%; box-sizing: border-box; margin-top: 6px; border: 1px solid #cfd8e3; border-radius: 9px; padding: 10px; font-size: 14px; background: white; }
textarea { min-height: 90px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.entryform { display: grid; gap: 16px; }
.preview { background: #f5f0ff; border: 1px solid #ddd6fe; border-radius: 10px; padding: 14px; }
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid #e5eaf1; text-align: left; padding: 10px; vertical-align: top; }
th { background: #f8fafc; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }
.mono { font-family: Consolas, Monaco, monospace; }
.alert { padding: 12px; border-radius: 10px; margin: 12px 0; }
.error { background: #fff1f0; border: 1px solid #ffa39e; }
.ok { background: #f0fff4; border: 1px solid #9ae6b4; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.section-head h2 { margin: 0 0 6px; }
.section-head p { margin: 0; }
.deleteform { margin-top: 22px; padding-top: 18px; border-top: 1px solid #fee2e2; }
.login-body { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at 20% 25%, rgba(168, 85, 247, .18), transparent 25%), radial-gradient(circle at 80% 75%, rgba(239, 68, 68, .13), transparent 26%), #f8fafc; padding: 24px; }
.login-card { width: min(480px, 100%); background: white; border-radius: 26px; padding: 34px; box-shadow: 0 18px 60px rgba(15, 23, 42, .13); text-align: center; position: relative; overflow: hidden; }
.login-logo { width: 310px; max-width: 85%; margin-bottom: 18px; }
.login-card h1 { margin: 0 0 8px; font-size: 30px; }
.login-card p { color: #64748b; margin: 0 0 22px; }
.login-card form { text-align: left; display: grid; gap: 14px; position: relative; z-index: 2; }
.login-dots { width: 90px; opacity: .24; position: absolute; right: 18px; bottom: 14px; z-index: 1; }
@media (max-width: 1000px) { .topbar { display: block; } .topbar nav { justify-content: flex-start; margin-top: 16px; } }
@media (max-width: 900px) { .filters, .grid, .section-head { display: block; } .filters > *, .grid > * { margin-bottom: 12px; } .brand { display: block; } .brand img { width: 220px; margin-bottom: 12px; } }

/* Version 2026-07 updates */
main { max-width: 1500px; }
.card { padding: 26px; }
.narrow { max-width: 1100px; }
.button, button, a.button, .secondary, .danger {
  background: linear-gradient(135deg, #7c3aed, #2563eb) !important;
  color: white !important;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
}
.small { padding: 7px 10px !important; font-size: 12px; }
.button-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.filters { grid-template-columns: 1.6fr repeat(5, minmax(145px, 1fr)) auto; }

/* Admin/settings update */
.login-admin { margin-top: 14px; text-align: center; position: relative; z-index: 2; }
.login-admin a { font-weight: 700; }
.button-row.left { justify-content: flex-start; }
.lookup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.lookup-grid section { border: 1px solid #e5eaf1; border-radius: 14px; padding: 16px; background: #fbfdff; max-height: 620px; overflow: auto; }
.inline-form { display: grid; grid-template-columns: 1fr 1.5fr auto; gap: 8px; align-items: end; margin-bottom: 12px; }
.lookup-grid section:nth-last-child(-n+2) .inline-form { grid-template-columns: 1fr auto; }
.num { white-space: nowrap; }
@media (max-width: 1000px) { .lookup-grid { grid-template-columns: 1fr; } .inline-form { grid-template-columns: 1fr; } }


/* Login button adjustments */
.login-card form button, .login-card .admin-login-button {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  font-size: 17px;
  min-height: 46px;
}
.login-card form button {
  font-size: 18px;
}
.login-card .admin-login-button {
  background: linear-gradient(135deg, #dc2626, #991b1b) !important;
  margin-top: 4px;
}


/* Bug report button */
.topbar .bug-button {
  background: linear-gradient(135deg, #f97316, #dc2626) !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  padding: 7px 11px !important;
  font-size: 12px !important;
  line-height: 1 !important;
  box-shadow: 0 5px 14px rgba(220, 38, 38, .22);
  white-space: nowrap;
}
.topbar .bug-button:hover {
  transform: translateY(-1px);
}

/* Missing data KPI cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin: 20px 0 24px;
}
.kpi-card {
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
  border: 1px solid #dbe5ff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(16, 35, 63, .05);
}
.kpi-card span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.kpi-card strong {
  display: block;
  font-size: 28px;
  color: #111827;
}

/* Filter action layout */
.filter-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: stretch;
}
.filter-actions a {
  text-align: center;
  font-weight: 700;
}

/* Major workflow upgrade */
.quick-filters { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 14px 0; flex-wrap: wrap; }
.rows-control { display: inline-flex; align-items: center; margin-left: 4px; }
.rows-control label { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
.rows-control select { width: auto; min-width: 86px; margin-top: 0; padding: 7px 9px; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-top: 18px; }
.detail-grid > div { background: #f8fafc; border: 1px solid #e5eaf1; border-radius: 12px; padding: 14px; }
th { position: sticky; top: 0; z-index: 1; }
.force-row { font-weight: 500 !important; display: flex; gap: 8px; align-items: center; }
.force-row input { width: auto; margin: 0; }
@media (max-width: 700px) {
  .tablewrap table, .tablewrap thead, .tablewrap tbody, .tablewrap th, .tablewrap td, .tablewrap tr { display: block; }
  .tablewrap thead { display: none; }
  .tablewrap tr { border: 1px solid #e5eaf1; border-radius: 12px; margin-bottom: 12px; padding: 8px; }
  .tablewrap td { border: none; padding: 7px; }
  .topbar nav { gap: 6px; }
  .button, button { width: auto; }
}

/* Login page space background */
.login-body {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.82) 0%, rgba(15, 23, 42, 0.58) 42%, rgba(15, 23, 42, 0.18) 100%),
    url("/static/home-space-hero-univity.jpg") center center / cover no-repeat fixed !important;
}

.login-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 20%, rgba(124, 58, 237, 0.28), transparent 30%),
    radial-gradient(circle at 78% 58%, rgba(59, 130, 246, 0.18), transparent 34%);
  z-index: 0;
}

.login-card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.35) !important;
}

.login-logo {
  filter: drop-shadow(0 8px 18px rgba(15, 23, 42, 0.16));
}

.login-dots {
  opacity: 0.9;
}

@media (max-width: 760px) {
  .login-body {
    background-position: 62% center !important;
  }

  .login-card {
    margin: 22px;
  }
}

/* Final polished login page background */
body.login-body {
  min-height: 100vh !important;
  background-color: #020617 !important;
  background-image:
    linear-gradient(90deg, rgba(2, 6, 23, 0.62) 0%, rgba(15, 23, 42, 0.34) 44%, rgba(15, 23, 42, 0.10) 100%),
    url("/static/login-space-background-univity.jpg") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}

body.login-body::before {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  pointer-events: none !important;
  z-index: 0 !important;
  background:
    radial-gradient(circle at 18% 18%, rgba(124, 58, 237, 0.20), transparent 28%),
    radial-gradient(circle at 76% 52%, rgba(59, 130, 246, 0.12), transparent 34%) !important;
}

.login-card {
  position: relative !important;
  z-index: 1 !important;
  background: rgba(255, 255, 255, 0.90) !important;
  border: 1px solid rgba(255, 255, 255, 0.60) !important;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.42) !important;
  backdrop-filter: blur(14px) !important;
}

.login-card h1 {
  color: #111827 !important;
}

.login-card p {
  color: #475569 !important;
}

.login-logo {
  max-width: 280px !important;
  margin-bottom: 18px !important;
  filter: drop-shadow(0 8px 18px rgba(15, 23, 42, 0.12)) !important;
}

.login-dots {
  display: none !important;
}

@media (max-width: 760px) {
  body.login-body {
    background-position: 58% center !important;
  }

  .login-card {
    margin: 22px !important;
  }
}

/* Login logo polish: remove harsh white-box effect */
body.login-body .login-card {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(255, 255, 255, 0.78) !important;
  box-shadow: 0 34px 90px rgba(2, 6, 23, 0.46) !important;
}

body.login-body .login-logo {
  background: transparent !important;
  mix-blend-mode: multiply;
  box-shadow: none !important;
  filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.10)) !important;
  border-radius: 0 !important;
}

body.login-body .login-card img.login-logo {
  padding: 0 !important;
}

/* Restore original clean login card/logo appearance over space background */
body.login-body .login-card {
  background: #ffffff !important;
  border: 0 !important;
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.32) !important;
  backdrop-filter: none !important;
}

body.login-body .login-logo,
body.login-body .login-card img.login-logo {
  background: #ffffff !important;
  mix-blend-mode: normal !important;
  filter: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

body.login-body .login-card h1 {
  color: #1f2937 !important;
}

body.login-body .login-card p,
body.login-body .login-card label,
body.login-body .login-card small {
  color: #475569 !important;
}

/* Test: show login background image smaller, not full-page cover */
body.login-body {
  background-color: #020617 !important;
  background-image:
    linear-gradient(90deg, rgba(2, 6, 23, 0.82) 0%, rgba(2, 6, 23, 0.54) 38%, rgba(2, 6, 23, 0.16) 100%),
    url("/static/login-space-background-univity.jpg") !important;
  background-size: min(1500px, 86vw) auto !important;
  background-position: right center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}

/* Keep login panel/logo clean white */
body.login-body .login-card {
  background: #ffffff !important;
  border: 0 !important;
  backdrop-filter: none !important;
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.32) !important;
}

body.login-body .login-logo,
body.login-body .login-card img.login-logo {
  background: #ffffff !important;
  mix-blend-mode: normal !important;
  filter: none !important;
  box-shadow: none !important;
}

/* Test: login background uses less width, full height preserved */
body.login-body {
  background-color: #020617 !important;
  background-image:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.72) 36%, rgba(2, 6, 23, 0.22) 68%, rgba(2, 6, 23, 0.05) 100%),
    url("/static/login-space-background-univity.jpg") !important;
  background-size: auto 100vh !important;
  background-position: right center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}

/* Keep login panel/logo original clean white */
body.login-body .login-card {
  background: #ffffff !important;
  border: 0 !important;
  backdrop-filter: none !important;
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.32) !important;
}

body.login-body .login-logo,
body.login-body .login-card img.login-logo {
  background: #ffffff !important;
  mix-blend-mode: normal !important;
  filter: none !important;
  box-shadow: none !important;
}

/* Split login page layout: white left panel + space image right panel */
body.login-body {
  min-height: 100vh !important;
  background-color: #ffffff !important;
  background-image: none !important;
  background-attachment: scroll !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Right image panel */
body.login-body::before {
  content: "" !important;
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 36% !important;
  z-index: 0 !important;
  pointer-events: none !important;
  background-image:
    linear-gradient(90deg, rgba(2, 6, 23, 0.10) 0%, rgba(2, 6, 23, 0.00) 30%),
    url("/static/login-space-background-univity.jpg") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

/* Clean white left side */
body.login-body::after {
  content: "" !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 36% !important;
  z-index: 0 !important;
  pointer-events: none !important;
  background:
    radial-gradient(circle at 8% 6%, rgba(15, 23, 42, 0.10) 0 3px, transparent 4px) 0 0 / 32px 32px,
    #ffffff !important;
  opacity: 1 !important;
}

/* Position login card on the white left panel */
body.login-body .login-card {
  position: relative !important;
  z-index: 2 !important;
  margin-left: 7vw !important;
  margin-right: auto !important;
  background: #ffffff !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  max-width: 420px !important;
}

/* Keep logo original */
body.login-body .login-logo,
body.login-body .login-card img.login-logo {
  background: #ffffff !important;
  mix-blend-mode: normal !important;
  filter: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Make sure login content stays vertically centered */
body.login-body {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

/* Mobile: use full background with white card */
@media (max-width: 900px) {
  body.login-body {
    background-image:
      linear-gradient(rgba(2, 6, 23, 0.45), rgba(2, 6, 23, 0.45)),
      url("/static/login-space-background-univity.jpg") !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    overflow: auto !important;
    justify-content: center !important;
  }

  body.login-body::before,
  body.login-body::after {
    display: none !important;
  }

  body.login-body .login-card {
    margin: 24px !important;
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.32) !important;
  }
}

/* Polish split login left zone: centered form + soft Univity color mesh */
body.login-body::after {
  content: "" !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 36% !important;
  z-index: 0 !important;
  pointer-events: none !important;
  background:
    radial-gradient(circle at 18% 22%, rgba(124, 58, 237, 0.18), transparent 30%),
    radial-gradient(circle at 78% 18%, rgba(59, 130, 246, 0.14), transparent 32%),
    radial-gradient(circle at 72% 82%, rgba(239, 68, 68, 0.10), transparent 28%),
    radial-gradient(circle at 22% 78%, rgba(236, 72, 153, 0.11), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f8fafc 52%, #ffffff 100%) !important;
}

/* Very soft mesh texture on the white side */
body.login-body .login-card::before {
  content: "" !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 36% !important;
  height: 100vh !important;
  z-index: -1 !important;
  pointer-events: none !important;
  background:
    linear-gradient(120deg, rgba(124, 58, 237, 0.05), transparent 34%),
    linear-gradient(240deg, rgba(59, 130, 246, 0.05), transparent 38%),
    radial-gradient(circle at 28% 34%, rgba(124, 58, 237, 0.08), transparent 24%),
    radial-gradient(circle at 68% 70%, rgba(239, 68, 68, 0.06), transparent 24%) !important;
  opacity: 1 !important;
}

/* Center the login block inside the left white area */
body.login-body {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

body.login-body .login-card {
  position: relative !important;
  z-index: 2 !important;
  width: min(390px, 78%) !important;
  max-width: 390px !important;
  margin-left: calc((36vw - min(390px, 78vw)) / 2) !important;
  margin-right: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

/* Keep logo clean, no box effect */
body.login-body .login-logo,
body.login-body .login-card img.login-logo {
  display: block !important;
  margin: 0 auto 34px auto !important;
  max-width: 230px !important;
  background: transparent !important;
  mix-blend-mode: normal !important;
  filter: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Refine text spacing on split login */
body.login-body .login-card h1 {
  margin-top: 0 !important;
  margin-bottom: 8px !important;
  color: #111827 !important;
  text-align: center !important;
}

body.login-body .login-card p {
  margin-bottom: 24px !important;
  color: #64748b !important;
  text-align: center !important;
}

body.login-body .login-card label {
  color: #1f2937 !important;
}

body.login-body .login-card input {
  background: rgba(255, 255, 255, 0.88) !important;
}

/* Mobile keeps simple card over image */
@media (max-width: 900px) {
  body.login-body .login-card {
    width: auto !important;
    max-width: 420px !important;
    margin: 24px !important;
    padding: 28px !important;
    background: #ffffff !important;
    border-radius: 20px !important;
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.32) !important;
  }

  body.login-body .login-card::before {
    display: none !important;
  }

  body.login-body .login-logo,
  body.login-body .login-card img.login-logo {
    background: #ffffff !important;
  }
}

/* Final split login: majority white left zone with visible login card */
body.login-body {
  min-height: 100vh !important;
  background-color: #ffffff !important;
  background-image: none !important;
  background-attachment: scroll !important;
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

/* Right satellite image panel */
body.login-body::before {
  content: "" !important;
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 42% !important;
  z-index: 0 !important;
  pointer-events: none !important;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.10) 0%, rgba(2, 6, 23, 0.00) 18%),
    url("/static/login-space-background-univity.jpg") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

/* Mostly white left zone with very soft Univity mesh */
body.login-body::after {
  content: "" !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 42% !important;
  z-index: 0 !important;
  pointer-events: none !important;
  background:
    radial-gradient(circle at 18% 18%, rgba(124, 58, 237, 0.10), transparent 28%),
    radial-gradient(circle at 80% 22%, rgba(59, 130, 246, 0.08), transparent 30%),
    radial-gradient(circle at 24% 82%, rgba(236, 72, 153, 0.06), transparent 28%),
    radial-gradient(circle at 82% 80%, rgba(239, 68, 68, 0.05), transparent 30%),
    #ffffff !important;
}

/* Bring back clear login square/card */
body.login-body .login-card {
  position: relative !important;
  z-index: 2 !important;
  width: 390px !important;
  max-width: 390px !important;
  margin-left: calc((42vw - 390px) / 2) !important;
  margin-right: 0 !important;
  padding: 34px 34px 32px 34px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  border-radius: 24px !important;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.14) !important;
  backdrop-filter: none !important;
}

/* Remove previous fake mesh layer on card */
body.login-body .login-card::before {
  display: none !important;
}

/* Logo clean inside card */
body.login-body .login-logo,
body.login-body .login-card img.login-logo {
  display: block !important;
  margin: 0 auto 26px auto !important;
  max-width: 235px !important;
  background: #ffffff !important;
  mix-blend-mode: normal !important;
  filter: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Text clean */
body.login-body .login-card h1 {
  color: #111827 !important;
  text-align: center !important;
  margin-top: 0 !important;
  margin-bottom: 6px !important;
}

body.login-body .login-card p {
  color: #64748b !important;
  text-align: center !important;
  margin-bottom: 22px !important;
}

body.login-body .login-card label {
  color: #1f2937 !important;
}

body.login-body .login-card input {
  background: #ffffff !important;
}

/* Mobile */
@media (max-width: 900px) {
  body.login-body {
    background-image:
      linear-gradient(rgba(2, 6, 23, 0.42), rgba(2, 6, 23, 0.42)),
      url("/static/login-space-background-univity.jpg") !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    overflow: auto !important;
    justify-content: center !important;
  }

  body.login-body::before,
  body.login-body::after {
    display: none !important;
  }

  body.login-body .login-card {
    width: auto !important;
    max-width: 420px !important;
    margin: 24px !important;
    background: #ffffff !important;
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.32) !important;
  }
}

/* Final adjustment: smaller white zone + login card centered inside it */
body.login-body::before {
  left: 39% !important;
}

body.login-body::after {
  width: 39% !important;
}

/* Center the login square exactly inside the white zone */
body.login-body .login-card {
  margin-left: calc((39vw - 390px) / 2) !important;
  margin-right: 0 !important;
}

/* Keep mobile behavior unchanged */
@media (max-width: 900px) {
  body.login-body .login-card {
    margin: 24px !important;
  }
}

/* Final adjustment: 36% login zone and exact centered login card */
body.login-body::before {
  left: 36% !important;
}

body.login-body::after {
  width: 36% !important;
}

/* Exact center inside the 36% white zone */
body.login-body .login-card {
  position: fixed !important;
  z-index: 2 !important;
  top: 50% !important;
  left: 18% !important;
  transform: translate(-50%, -50%) !important;
  width: 390px !important;
  max-width: calc(36vw - 48px) !important;
  margin: 0 !important;
}

/* Keep right image area aligned with 36% split */
body.login-body {
  display: block !important;
}

/* Mobile remains normal */
@media (max-width: 900px) {
  body.login-body {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body.login-body .login-card {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: auto !important;
    max-width: 420px !important;
    margin: 24px !important;
  }
}

/* Final polished split login layout */
body.login-body {
  min-height: 100vh !important;
  background-color: #ffffff !important;
  background-image: none !important;
  background-attachment: scroll !important;
  position: relative !important;
  overflow: hidden !important;
  display: block !important;
}

/* Right satellite image panel, slightly darker and more premium */
body.login-body::before {
  content: "" !important;
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 36% !important;
  z-index: 0 !important;
  pointer-events: none !important;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.04) 8%, rgba(2,6,23,0.18) 42%, rgba(2,6,23,0.30) 100%),
    url("/static/login-space-background-univity.jpg") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  box-shadow: inset 26px 0 44px rgba(255, 255, 255, 0.22) !important;
}

/* Left white zone with very subtle Univity mesh */
body.login-body::after {
  content: "" !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 36% !important;
  z-index: 0 !important;
  pointer-events: none !important;
  background:
    radial-gradient(circle at 18% 18%, rgba(124, 58, 237, 0.10), transparent 30%),
    radial-gradient(circle at 84% 22%, rgba(59, 130, 246, 0.08), transparent 32%),
    radial-gradient(circle at 20% 82%, rgba(236, 72, 153, 0.055), transparent 30%),
    radial-gradient(circle at 84% 84%, rgba(239, 68, 68, 0.045), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #f8fafc 48%, #ffffff 100%) !important;
}

/* Login card exactly centered in the 36% white zone */
body.login-body .login-card {
  position: fixed !important;
  z-index: 2 !important;
  top: 50% !important;
  left: 18% !important;
  transform: translate(-50%, -50%) !important;
  width: 390px !important;
  max-width: calc(36vw - 48px) !important;
  margin: 0 !important;
  padding: 34px 34px 30px 34px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  border-radius: 24px !important;
  box-shadow: 0 24px 62px rgba(15, 23, 42, 0.14) !important;
  backdrop-filter: none !important;
}

/* No fake overlay inside the card */
body.login-body .login-card::before {
  display: none !important;
}

/* Small professional footer inside the login card */
body.login-body .login-card::after {
  content: "Univity Global · Document Control" !important;
  display: block !important;
  margin-top: 18px !important;
  text-align: center !important;
  font-size: 0.78rem !important;
  color: #94a3b8 !important;
  letter-spacing: 0.02em !important;
}

/* Logo clean inside white card */
body.login-body .login-logo,
body.login-body .login-card img.login-logo {
  display: block !important;
  margin: 0 auto 26px auto !important;
  max-width: 235px !important;
  background: #ffffff !important;
  mix-blend-mode: normal !important;
  filter: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

/* Text polish */
body.login-body .login-card h1 {
  color: #111827 !important;
  text-align: center !important;
  margin-top: 0 !important;
  margin-bottom: 6px !important;
  letter-spacing: -0.02em !important;
}

body.login-body .login-card p {
  color: #64748b !important;
  text-align: center !important;
  margin-bottom: 22px !important;
  line-height: 1.45 !important;
}

body.login-body .login-card label {
  color: #1f2937 !important;
  font-weight: 700 !important;
}

body.login-body .login-card input {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
}

body.login-body .login-card input:focus {
  border-color: #7c3aed !important;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.14) !important;
  outline: none !important;
}

/* Mobile fallback */
@media (max-width: 900px) {
  body.login-body {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: auto !important;
    background-image:
      linear-gradient(rgba(2, 6, 23, 0.42), rgba(2, 6, 23, 0.42)),
      url("/static/login-space-background-univity.jpg") !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
  }

  body.login-body::before,
  body.login-body::after {
    display: none !important;
  }

  body.login-body .login-card {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: auto !important;
    max-width: 420px !important;
    margin: 24px !important;
    background: #ffffff !important;
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.32) !important;
  }
}

/* Login confidentiality footer note */
body.login-body .login-card::after {
  content: "Confidential and/or privileged information \00A9 UNIVITY - Proprietary information." !important;
  display: block !important;
  margin-top: 18px !important;
  text-align: center !important;
  font-size: 0.72rem !important;
  line-height: 1.35 !important;
  color: #94a3b8 !important;
  letter-spacing: 0.01em !important;
}

/* Premium login page polish */

/* Stronger soft fade between white zone and image */
body.login-body::before {
  left: 36% !important;
  background-image:
    linear-gradient(90deg,
      rgba(255, 255, 255, 0.34) 0%,
      rgba(255, 255, 255, 0.14) 8%,
      rgba(2, 6, 23, 0.12) 42%,
      rgba(2, 6, 23, 0.34) 100%
    ),
    url("/static/login-space-background-univity.jpg") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  box-shadow: inset 34px 0 54px rgba(255, 255, 255, 0.32) !important;
}

/* Mostly white left zone with subtle Univity color mesh */
body.login-body::after {
  width: 36% !important;
  background:
    radial-gradient(circle at 18% 16%, rgba(124, 58, 237, 0.105), transparent 30%),
    radial-gradient(circle at 84% 22%, rgba(59, 130, 246, 0.08), transparent 32%),
    radial-gradient(circle at 22% 82%, rgba(236, 72, 153, 0.055), transparent 30%),
    radial-gradient(circle at 86% 82%, rgba(239, 68, 68, 0.045), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%) !important;
}

/* Login card: centered, visible square, premium but clean */
body.login-body .login-card {
  position: fixed !important;
  z-index: 2 !important;
  top: 50% !important;
  left: 18% !important;
  transform: translate(-50%, -50%) !important;
  width: 390px !important;
  max-width: calc(36vw - 48px) !important;
  margin: 0 !important;
  padding: 36px 34px 30px 34px !important;
  border-radius: 24px !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  box-shadow: 0 24px 62px rgba(15, 23, 42, 0.15) !important;
  backdrop-filter: none !important;

  /* gradient line on top + white card body */
  background-image:
    linear-gradient(90deg, #7c3aed 0%, #2563eb 48%, #ef4444 100%),
    linear-gradient(#ffffff, #ffffff) !important;
  background-size: 100% 5px, 100% 100% !important;
  background-position: top left, center !important;
  background-repeat: no-repeat !important;
  background-color: #ffffff !important;
}

/* Subtle custom reference-code watermark on image side */
body.login-body .login-card::before {
  content: "UNI.SKY.5GC.AA.509\A UNI.SPARK.5GC.SPEC.042\A UNI.SHAPE.SYS.REQ.118" !important;
  white-space: pre-line !important;
  display: block !important;
  position: fixed !important;
  right: 5.5vw !important;
  bottom: 7vh !important;
  z-index: 1 !important;
  pointer-events: none !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-size: clamp(0.72rem, 1vw, 0.98rem) !important;
  line-height: 1.8 !important;
  letter-spacing: 0.08em !important;
  color: rgba(255, 255, 255, 0.34) !important;
  text-shadow: 0 10px 30px rgba(2, 6, 23, 0.35) !important;
}

/* Confidentiality notice at bottom of card */
body.login-body .login-card::after {
  content: "Confidential and/or privileged information \00A9 UNIVITY - Proprietary information." !important;
  display: block !important;
  margin-top: 18px !important;
  text-align: center !important;
  font-size: 0.70rem !important;
  line-height: 1.35 !important;
  color: #94a3b8 !important;
  letter-spacing: 0.01em !important;
}

/* Logo clean inside white card */
body.login-body .login-logo,
body.login-body .login-card img.login-logo {
  display: block !important;
  margin: 0 auto 24px auto !important;
  max-width: 235px !important;
  background: #ffffff !important;
  mix-blend-mode: normal !important;
  filter: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

/* Secure portal badge above title */
body.login-body .login-card h1::before {
  content: "Secure portal" !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 12px auto !important;
  padding: 6px 11px !important;
  border-radius: 999px !important;
  background: rgba(124, 58, 237, 0.08) !important;
  border: 1px solid rgba(124, 58, 237, 0.14) !important;
  color: #6d28d9 !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

/* Title and subtitle polish */
body.login-body .login-card h1 {
  color: #111827 !important;
  text-align: center !important;
  margin-top: 0 !important;
  margin-bottom: 8px !important;
  letter-spacing: -0.025em !important;
}

body.login-body .login-card p {
  color: #64748b !important;
  text-align: center !important;
  margin-bottom: 22px !important;
  line-height: 1.45 !important;
}

/* Authorized users note under the intro text */
body.login-body .login-card p::after {
  content: "" !important;
  display: block !important;
  margin-top: 10px !important;
  color: #94a3b8 !important;
  font-size: 0.78rem !important;
}

/* Field polish */
body.login-body .login-card label {
  color: #1f2937 !important;
  font-weight: 750 !important;
}

body.login-body .login-card input {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 12px !important;
}

body.login-body .login-card input:focus {
  border-color: #7c3aed !important;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.14) !important;
  outline: none !important;
}

/* Premium login button */
body.login-body .login-card button,
body.login-body .login-card button[type="submit"] {
  width: 100% !important;
  border: 0 !important;
  border-radius: 14px !important;
  background-image: linear-gradient(90deg, #7c3aed 0%, #2563eb 100%) !important;
  color: #ffffff !important;
  font-weight: 850 !important;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.26) !important;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease !important;
}

body.login-body .login-card button:hover,
body.login-body .login-card button[type="submit"]:hover {
  transform: translateY(-1px) !important;
  filter: brightness(1.03) !important;
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.32) !important;
}

/* Mobile fallback */
@media (max-width: 900px) {
  body.login-body {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: auto !important;
    background-image:
      linear-gradient(rgba(2, 6, 23, 0.42), rgba(2, 6, 23, 0.42)),
      url("/static/login-space-background-univity.jpg") !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
  }

  body.login-body::before,
  body.login-body::after {
    display: none !important;
  }

  body.login-body .login-card {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: auto !important;
    max-width: 420px !important;
    margin: 24px !important;
    background-color: #ffffff !important;
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.32) !important;
  }

  body.login-body .login-card::before {
    display: none !important;
  }
}

/* Clean correction after premium login test */

/* Remove reference-code watermark completely */
body.login-body .login-card::before {
  content: none !important;
  display: none !important;
}

/* Keep the card clean and not too huge */
body.login-body .login-card {
  width: 380px !important;
  max-width: calc(36vw - 44px) !important;
  padding: 32px 32px 28px 32px !important;
  background-image:
    linear-gradient(90deg, #7c3aed 0%, #2563eb 52%, #ef4444 100%),
    linear-gradient(#ffffff, #ffffff) !important;
  background-size: 100% 4px, 100% 100% !important;
  background-position: top left, center !important;
  background-repeat: no-repeat !important;
}

/* Logo spacing */
body.login-body .login-logo,
body.login-body .login-card img.login-logo {
  max-width: 220px !important;
  margin: 0 auto 22px auto !important;
}

/* Put secure badge above the title, not beside it */
body.login-body .login-card h1::before {
  content: "Secure portal" !important;
  display: flex !important;
  width: fit-content !important;
  margin: 0 auto 14px auto !important;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  background: rgba(124, 58, 237, 0.08) !important;
  border: 1px solid rgba(124, 58, 237, 0.16) !important;
  color: #6d28d9 !important;
  font-size: 0.70rem !important;
  font-weight: 850 !important;
  letter-spacing: 0.045em !important;
  text-transform: uppercase !important;
}

/* Title should look balanced */
body.login-body .login-card h1 {
  display: block !important;
  font-size: 1.55rem !important;
  line-height: 1.18 !important;
  text-align: center !important;
  color: #111827 !important;
  margin: 0 0 8px 0 !important;
  letter-spacing: -0.025em !important;
}

/* Subtitle and authorized note */
body.login-body .login-card p {
  font-size: 0.92rem !important;
  line-height: 1.45 !important;
  color: #64748b !important;
  text-align: center !important;
  margin: 0 0 22px 0 !important;
}

body.login-body .login-card p::after {
  content: "" !important;
  display: block !important;
  margin-top: 8px !important;
  color: #94a3b8 !important;
  font-size: 0.74rem !important;
}

/* Inputs/button spacing cleaner */
body.login-body .login-card label {
  font-size: 0.92rem !important;
  font-weight: 750 !important;
  margin-bottom: 6px !important;
}

body.login-body .login-card input {
  height: 40px !important;
  border-radius: 11px !important;
}

body.login-body .login-card button,
body.login-body .login-card button[type="submit"] {
  height: 46px !important;
  border-radius: 13px !important;
  margin-top: 12px !important;
}

/* Admin button should remain red, not inherit purple login gradient */
body.login-body .login-card a.button,
body.login-body .login-card .button {
  border-radius: 13px !important;
}

/* Confidentiality note cleaner */
body.login-body .login-card::after {
  content: "Confidential and/or privileged information \00A9 UNIVITY - Proprietary information." !important;
  display: block !important;
  margin-top: 18px !important;
  text-align: center !important;
  font-size: 0.68rem !important;
  line-height: 1.35 !important;
  color: #94a3b8 !important;
  letter-spacing: 0 !important;
}

/* Cute project update note on Project dropdown */
.project-info-note {
  margin-top: 8px;
  padding: 9px 11px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.10), rgba(37, 99, 235, 0.08));
  border: 1px solid rgba(124, 58, 237, 0.18);
  color: #4338ca;
  font-size: 0.82rem;
  line-height: 1.35;
  font-weight: 750;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.08);
}

.project-info-note span {
  color: #64748b;
  font-weight: 650;
}

/* Project dropdown tooltip */
.project-info-note {
  display: none !important;
}

.project-tooltip-wrap {
  position: relative !important;
}

.project-tooltip-note {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 50;
  min-width: 250px;
  max-width: 310px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.96);
  color: #ffffff;
  font-size: 0.78rem;
  line-height: 1.28;
  font-weight: 750;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(5px) scale(0.98);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.project-tooltip-note span {
  color: #cbd5e1;
  font-weight: 600;
}

.project-tooltip-note::after {
  content: "";
  position: absolute;
  left: 22px;
  bottom: -7px;
  width: 14px;
  height: 14px;
  background: rgba(17, 24, 39, 0.96);
  transform: rotate(45deg);
  border-radius: 2px;
}

.project-tooltip-note.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 760px) {
  .project-tooltip-note {
    left: 0;
    top: -58px;
    min-width: 220px;
    max-width: 260px;
  }
}

/* Login buttons: homogeneous typography */
body.login-body .login-card button,
body.login-body .login-card button[type="submit"],
body.login-body .login-card a.button,
body.login-body .login-card .button {
  font-family: inherit !important;
  font-size: 1rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  text-decoration: none !important;
  height: 46px !important;
  min-height: 46px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Keep admin login red but same typography */
body.login-body .login-card a.button[href="/admin-login"],
body.login-body .login-card a[href="/admin-login"],
body.login-body .login-card .admin-login,
body.login-body .login-card .danger {
  font-family: inherit !important;
  font-size: 1rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
}

/* Reliable pager click targets */
.pager {
  position: relative;
  z-index: 1;
}

.pager a.button,
.pager a.button.small {
  position: relative;
  z-index: 5;
  pointer-events: auto;
}

.pager form,
.pager select {
  position: relative;
  z-index: 2;
}

/* Reference detail comments */
.comments-box {
  white-space: pre-wrap;
  line-height: 1.5;
}

/* SUPPLIER DATABASE V1 START */
.supplier-hero { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:28px; }
.supplier-title-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.supplier-title-row h2 { margin:0; }
.supplier-version-pill { display:inline-flex; align-items:center; min-height:26px; padding:3px 9px; border-radius:999px; font-size:12px; font-weight:800; letter-spacing:.04em; background:#e8f2ff; color:#174ea6; border:1px solid #bfd8ff; }
.supplier-lead { margin:9px 0 0; color:#5b6472; max-width:none; }
.supplier-total { min-width:110px; padding:15px 18px; border-radius:16px; background:#f7f9fc; text-align:center; border:1px solid #e4e9f0; }
.supplier-total strong,.supplier-total span { display:block; }
.supplier-total strong { font-size:26px; line-height:1; }
.supplier-total span { margin-top:5px; font-size:12px; color:#687386; }
.supplier-toolbar { padding:20px 24px; }
.supplier-search-form label { display:block; margin-bottom:8px; font-weight:700; }
.supplier-search-row { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.supplier-search-row input { flex:1 1 320px; min-width:220px; }
.supplier-result-count { margin:12px 0 0; color:#687386; font-size:13px; }
.supplier-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:16px; margin:18px 0 28px; }
.supplier-card { display:flex; flex-direction:column; justify-content:space-between; min-height:154px; padding:20px; border:1px solid #e3e8ef; border-radius:16px; background:#fff; box-shadow:0 5px 18px rgba(15,23,42,.045); transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease; }
.supplier-card:hover { transform:translateY(-2px); border-color:#cbd8ea; box-shadow:0 10px 26px rgba(15,23,42,.08); }
.supplier-card-top { display:flex; align-items:center; gap:13px; }
.supplier-card h3 { margin:0; font-size:16px; line-height:1.25; }
.supplier-card p { margin:5px 0 0; color:#7a8494; font-size:12px; }
.supplier-initial { flex:0 0 42px; width:42px; height:42px; display:inline-flex; align-items:center; justify-content:center; border-radius:12px; background:#eef4ff; border:1px solid #d8e5fb; color:#244b83; font-weight:800; }
.supplier-card-actions { margin-top:18px; }
.supplier-open-link { width:100%; justify-content:center; text-align:center; box-sizing:border-box; }
.supplier-link-missing { color:#9b2c2c; font-size:13px; }
.supplier-empty { margin-top:18px; text-align:center; padding:34px; }
a[href="/supplier-database"].supplier-live-glow { position:relative; overflow:visible; z-index:25; animation:supplierLiveGlow 1.1s ease-in-out 4; }
.supplier-live-popup { position:absolute; left:50%; top:calc(100% + 9px); transform:translateX(-50%); z-index:1000; width:max-content; max-width:280px; padding:8px 11px; border-radius:10px; background:#101827; color:#fff; font-size:12px; font-weight:700; line-height:1.25; box-shadow:0 10px 26px rgba(15,23,42,.22); pointer-events:none; opacity:1; transition:opacity .55s ease,transform .55s ease; }
.supplier-live-popup::before { content:""; position:absolute; left:50%; top:-5px; width:10px; height:10px; background:#101827; transform:translateX(-50%) rotate(45deg); }
.supplier-live-popup-hide { opacity:0; transform:translateX(-50%) translateY(-4px); }
@keyframes supplierLiveGlow { 0%,100% { box-shadow:0 0 0 0 rgba(37,99,235,0); } 50% { box-shadow:0 0 0 4px rgba(37,99,235,.14),0 0 20px rgba(37,99,235,.34); } }
@media (max-width:700px) { .supplier-hero { align-items:flex-start; } .supplier-total { min-width:84px; } .supplier-grid { grid-template-columns:1fr; } .supplier-live-popup { max-width:230px; white-space:normal; } }
/* SUPPLIER DATABASE V1 END */

/* SUPPLIER DATABASE V1.1 START */
.supplier-hero-v11 { border-left:4px solid #315f9d; }
.supplier-segment-chips { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:16px 0; }
.supplier-segment-chip { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:12px 14px; border:1px solid #dfe6ef; border-radius:14px; background:#fff; color:inherit; text-decoration:none; box-shadow:0 4px 12px rgba(15,23,42,.035); transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease; }
.supplier-segment-chip:hover,.supplier-segment-chip.active { transform:translateY(-1px); border-color:#9db8da; box-shadow:0 7px 18px rgba(31,72,122,.09); }
.supplier-segment-chip.active { background:#eef5ff; }
.supplier-segment-chip span { font-size:13px; font-weight:750; }
.supplier-segment-chip strong { display:inline-flex; min-width:28px; height:28px; align-items:center; justify-content:center; border-radius:999px; background:#f2f5f9; color:#42546b; font-size:12px; }
.supplier-filter-form { display:grid; grid-template-columns:minmax(220px,1.4fr) minmax(175px,.75fr) minmax(240px,1fr) auto; gap:12px; align-items:end; }
.supplier-filter-form label { margin:0; font-weight:700; font-size:13px; }
.supplier-filter-form input,.supplier-filter-form select { width:100%; margin-top:7px; box-sizing:border-box; }
.supplier-filter-actions { display:flex; gap:8px; align-items:center; flex-wrap:wrap; padding-bottom:1px; }
.supplier-segment-section { margin:24px 0 34px; }
.supplier-segment-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; padding:21px 23px; border:1px solid #dbe4ef; border-radius:17px; background:linear-gradient(135deg,#f8fbff 0%,#f3f6fa 100%); }
.supplier-segment-heading h3 { margin:3px 0 5px; font-size:21px; }
.supplier-segment-heading p { margin:0; max-width:760px; color:#687386; font-size:13px; }
.supplier-segment-kicker { font-size:10px; font-weight:850; text-transform:uppercase; letter-spacing:.13em; color:#59718e; }
.supplier-segment-count { flex:0 0 42px; width:42px; height:42px; display:flex; align-items:center; justify-content:center; border-radius:13px; background:#173f70; color:white; font-size:15px; font-weight:850; box-shadow:0 5px 12px rgba(23,63,112,.16); }
.supplier-component-section { margin-top:18px; }
.supplier-component-heading { display:flex; justify-content:space-between; align-items:center; gap:14px; padding:0 3px 8px; border-bottom:1px solid #e6ebf1; }
.supplier-component-heading h4 { margin:0; font-size:15px; }
.supplier-component-heading span { color:#7b8796; font-size:12px; }
.supplier-card-v11 { min-height:190px; }
.supplier-card-v11 .supplier-card-top { align-items:flex-start; }
.supplier-card-v11 .supplier-card-top p { color:#5f6f83; font-weight:650; }
.supplier-capability-tags { display:flex; flex-wrap:wrap; gap:6px; margin-top:14px; }
.supplier-capability-tag { display:inline-flex; padding:4px 7px; border-radius:999px; background:#f5f7fa; border:1px solid #e4e8ee; color:#647184; font-size:10px; line-height:1.15; }
@media (max-width:1000px) { .supplier-filter-form { grid-template-columns:1fr 1fr; } .supplier-segment-chips { grid-template-columns:1fr 1fr; } }
@media (max-width:650px) { .supplier-filter-form,.supplier-segment-chips { grid-template-columns:1fr; } .supplier-filter-actions { align-items:stretch; } .supplier-filter-actions .button,.supplier-filter-actions button { width:100%; justify-content:center; } .supplier-segment-heading { padding:17px; } }
/* SUPPLIER DATABASE V1.1 END */

/* Supplier Database modification contact */
.supplier-contact-note {
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.45;
  color: #52627a;
}

.supplier-contact-note a {
  font-weight: 600;
  text-decoration: none;
}

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

.supplier-contact-list {
  margin: 6px 0 0 22px;
  padding: 0;
}

.supplier-contact-list li {
  margin: 2px 0;
}


/* Supplier hero full-width text fix */
.supplier-hero > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.supplier-lead,
.supplier-contact-note {
  max-width: none;
}

.supplier-total {
  flex: 0 0 auto;
}


/* Microsoft Entra login and access management */

.microsoft-login-wrap {
  margin: 22px 0 8px;
}

a.microsoft-login-button {
  width: 100%;
  box-sizing: border-box;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 13px 20px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff !important;
  background-image: none !important;
  color: #172033 !important;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

a.microsoft-login-button:hover {
  transform: translateY(-1px);
  border-color: #94a3b8;
  box-shadow: 0 11px 25px rgba(15, 23, 42, 0.13);
}

a.microsoft-login-button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .25);
  outline-offset: 3px;
}

.ms-logo-grid {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
}

.ms-logo-grid span:nth-child(1) { background: #f25022; }
.ms-logo-grid span:nth-child(2) { background: #7fba00; }
.ms-logo-grid span:nth-child(3) { background: #00a4ef; }
.ms-logo-grid span:nth-child(4) { background: #ffb900; }

.auth-admin-panel {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  background: #f8fafc;
}

.auth-admin-add-form {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
  margin-top: 14px;
}

.auth-admin-add-form input[type="email"] {
  flex: 1 1 320px;
  min-width: 260px;
}

.auth-role-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e8f0ff;
  color: #2559a7;
  font-size: .74rem;
  font-weight: 700;
  vertical-align: middle;
}

.actor-code-input {
  width: 82px;
  text-transform: uppercase;
  font-weight: 700;
}

/* Admin Dashboard V2 */
.admin-dashboard-hero {
  overflow: hidden;
}

.admin-dashboard-heading {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.admin-dashboard-heading h2 {
  margin: 4px 0 7px;
}

.admin-eyebrow,
.admin-section-kicker {
  font-size: .72rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .09em;
  color: #64748b;
}

.admin-identity-chip {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 265px;
  padding: 11px 14px;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  background: #f8fafc;
}

.admin-identity-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #eef2ff;
  color: #4338ca;
  font-weight: 800;
}

.admin-identity-chip strong,
.admin-identity-chip span,
.admin-identity-chip small {
  display: block;
}

.admin-identity-chip span {
  margin-top: 2px;
  color: #475569;
  font-size: .82rem;
}

.admin-identity-chip small {
  margin-top: 3px;
  color: #64748b;
  font-size: .74rem;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.admin-kpi-card {
  display: block;
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  background: #f8fafc;
  color: inherit;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.admin-kpi-card:hover {
  transform: translateY(-2px);
  border-color: #b7c7e2;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
}

.admin-kpi-card span,
.admin-kpi-card small {
  display: block;
}

.admin-kpi-card span {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #64748b;
}

.admin-kpi-card strong {
  display: block;
  margin: 7px 0 5px;
  font-size: 1.65rem;
  line-height: 1;
}

.admin-kpi-card small {
  color: #64748b;
  font-size: .76rem;
}

.admin-tool-section {
  padding-bottom: 22px;
}

.admin-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 17px;
}

.admin-section-heading h2 {
  margin: 5px 0 0;
}

.admin-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-action-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-action-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 118px;
  box-sizing: border-box;
  padding: 17px;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  background: #fff;
  color: #172033;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.admin-action-card:hover {
  transform: translateY(-2px);
  border-color: #b7c7e2;
  box-shadow: 0 9px 23px rgba(15, 23, 42, .08);
}

.admin-action-card strong {
  margin-bottom: 7px;
  font-size: .98rem;
}

.admin-action-card span {
  flex: 1;
  color: #64748b;
  font-size: .84rem;
  line-height: 1.4;
}

.admin-action-card small {
  margin-top: 12px;
  color: #4f46e5;
  font-weight: 700;
}

.admin-action-card-security {
  background: linear-gradient(135deg, #f8faff 0%, #f7f5ff 100%);
  border-color: #cfd7ff;
}

.admin-by-badge {
  display: inline-block;
  min-width: 30px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: .75rem;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 1100px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .admin-dashboard-heading {
    flex-direction: column;
  }

  .admin-identity-chip {
    width: 100%;
    box-sizing: border-box;
  }

  .admin-kpi-grid,
  .admin-action-grid,
  .admin-action-grid-two {
    grid-template-columns: 1fr;
  }

  .admin-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Administrator regular-user preview */
.admin-preview-banner {
    position: relative;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 18px;
    background: #fff7ed;
    border-bottom: 1px solid #fed7aa;
    color: #9a3412;
    font-size: 14px;
}

.admin-preview-banner strong {
    color: #7c2d12;
}

.admin-preview-banner .admin-preview-return {
    flex: 0 0 auto;
    margin: 0;
    white-space: nowrap;
}

@media (max-width: 760px) {
    .admin-preview-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}
