/* Debug message placeholder (cannot console.log in CSS, so using a comment) */
/* Log.d("Jordon", "Loaded protektant.css for external styling"); */

/* 1. Import Montserrat for Regular (400) and Heavy (900) weights */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;900&display=swap');

:root {
    /* Existing brand colors */
    --brand-bg: #efe5d8;        /* Light background - R 239 G 229 B 216 */
    --brand-red: #ec2445;       /* Primary CTA color - R 236 G 36 B 69 */
    --brand-orange: #ef4829;    /* Hover CTA color - R 239 G 72 B 41 */
    --brand-purple: #3d1d55;    /* Rich purple - R 61 G 29 B 85 */
    --brand-dark: #23132d;      /* Darkest color (eggplant) - R 35 G 19 B 45 */

    /* New blue-sky palette */
    --sky-bg: #e6f4fa;          /* MAIN background, very soft blue */
    --cloud-white: #ffffff;     /* Panels, cards, surfaces */
    --sky-blue: #b9e0fa;        /* Accent, headers, hover backgrounds */
    --tree-green: #55b985;      /* Fresh, natural accent for success or highlights */
    --soft-shadow: rgba(185,224,250,0.2); /* Subtle shadow for depth */

    /* Extra accents */
    --trust-blue: #0ea5e9;      /* secondary CTA */
    --trust-blue-600: #0284c7;
    --muted: #6b7280;
}

/* 2. Global font override to Montserrat */
body,
.ui-widget {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background: var(--sky-bg);
    color: var(--brand-dark);
}

/* Fix for fixed header: ensure main has top padding so content isn't hidden */
.tk-main {
    padding-top: 86px; /* header height + small buffer */
}

/* HEADER STYLES */
.header {
    width: 100%;
    background-color: var(--cloud-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .75rem 1rem;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 1px solid #b9e0fa;
    box-shadow: 0 4px 16px var(--soft-shadow);
}

/* Align menu + hamburger to the right together */
.header .tk-header__menu {
    margin-left: auto;            /* pushes menubar right */
}
.header .hamburger {
    margin-left: .5rem;           /* small space from menubar */
    background: var(--cloud-white);
    border: 1px solid var(--sky-blue);
    border-radius: 8px;
    padding: .35rem .55rem;
    cursor: pointer;
    line-height: 1;
}
.header .hamburger:hover {
    background: #f4faff;
    border-color: var(--trust-blue);
}

/* PrimeFaces menubar cosmetic tweaks */
.tk-header__menu.ui-menubar {
    border: 1px solid var(--sky-blue);
    background: #f7fbff;
}
.tk-header__menu .ui-menuitem-link {
    padding: .45rem .70rem;
}
.tk-header__menu .ui-menuitem-icon {
    opacity: .9;
}

/* Logo container */
.logo-container {
    display: flex;
    align-items: center;
    gap: .35rem;
}
.logo-container img {
    max-width: 40px;
    height: auto;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Language switcher (kept for future) */
.language-switcher {
    display: flex;
    align-items: center;
}
.language-switcher h\:outputLabel {
    margin-right: 0.5rem;
}

/* Main form container */
.form-container {
    margin-top: 8rem;
    padding: 2rem;
    background: var(--cloud-white);
    border-radius: 1.5rem;
    box-shadow: 0 2px 8px var(--soft-shadow);
}

/* FOOTER STYLES */
.footer {
    width: 100%;
    background-color: var(--cloud-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    box-sizing: border-box;
    border-top: 1px solid #b9e0fa;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #23132d;
    box-shadow: 0 -4px 16px var(--soft-shadow);
}

/* Footer logo fixed width */
.footer-logo {
    display: block;
    width: 200px;
    min-width: 200px;
    max-width: 200px;
    height: auto;
    margin: 0 auto;
}

/* Global Notice Bar */
.global-notice-bar {
    width: 100%;
    background: #fffbcc;
    color: #6d5200;
    padding: 1em 2em;
    text-align: center;
    font-size: 1.1em;
    font-weight: 600;
    border-bottom: 2px solid #ffb700;
    box-shadow: 0 2px 8px rgba(185, 224, 250, 0.08);
    z-index: 950;
    margin-top: 5rem;
    margin-bottom: 1.5em;
}
@media (max-width: 600px) {
    .global-notice-bar {
        font-size: 1em;
        padding: 1em 0.5em;
    }
}

/* Cookie Consent Bar */
.cookie-consent-bar {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #222;
    color: #fff;
    padding: 1em;
    text-align: center;
    z-index: 9999;
}
.cookie-consent-form {
    margin: 1em auto 0 auto;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.cookie-btn-row {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 0.5em;
}
.accept-cookie-btn,
.refuse-cookie-btn {
    width: 100%;
    max-width: 250px;
    margin: 0.25em 0;
    padding: 0.45em 1.25em;
    border-radius: 4px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    display: block;
    font-size: 1.1em;
}
.accept-cookie-btn {
    background: #7cf;
    color: #222;
}
.refuse-cookie-btn {
    background: #f77;
    color: #fff;
}

/* Welcome statement styles */
.welcome-statement,
.welcome-statement a {
    color: #23132d;
}

/* Form grid spacing */
.form-grid {
    margin: 20px 0;
}

/* Button grid spacing */
.button-grid {
    margin: 20px 0;
    text-align: center;
}

/* License box styling */
.license-box {
    height: 200px;
    width: 100%;
    border: 1px solid #ccc;
    padding: 10px;
    overflow-y: scroll;
    background-color: #f9f9f9;
    margin-bottom: 10px;
}

/* Error message styling */
.error-message {
    color: red;
}

/* Higher z-index for dialogs to appear above header/footer */
.ui-dialog {
    z-index: 99999 !important;
}
.ui-widget-overlay {
    z-index: 99998 !important;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .header {
        flex-direction: row;
        align-items: center;
        padding: 1rem;
    }
    .logo-container img {
        max-width: 40px;
        height: auto;
    }
    .protektant-text {
        font-size: 2rem;
        margin-left: 0;
    }
    .language-switcher {
        margin-top: 0;
        align-self: center;
        margin-bottom: 0;
    }
    .form-container {
        margin-top: 6rem;
        padding: 2rem;
    }
    .cookie-consent-bar {
        padding: 0.5em 0.25em 0.5em 0.25em;
        font-size: 1em;
    }
    .cookie-consent-form {
        max-width: 95vw;
        width: 100%;
        padding: 0;
    }
    .cookie-btn-row {
        margin-bottom: 0.5em;
    }
    .accept-cookie-btn,
    .refuse-cookie-btn {
        max-width: 99vw;
        font-size: 1.08em;
    }
}

/* Gradient text effect for Protektant wordmark */
.protektant-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    letter-spacing: 0.04em;
    background: linear-gradient(90deg, #ef4829 0%, #ec2445 60%, #3d1d55 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    padding-left: 0;
    user-select: none;
    display: inline-block;
}

/* Inline command link alignment fix */
.inline-commandlink {
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

/* Cookie banner styles */
.cookie-banner-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 640px;
    background: #fff6e0;
    border: 1px solid #d4c9af;
    border-radius: 10px;
    padding: 1em 1.5em;
    box-shadow: 0 2px 8px #ccc;
    z-index: 2000;
    font-family: sans-serif;
}
.cookie-banner-message {
    font-size: 1rem;
    color: #222;
}
.cookie-btn-accept {
    margin-left: 1em;
    background: #6ac96a;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.5em 1.2em;
    cursor: pointer;
}
.cookie-btn-refuse {
    margin-left: 0.5em;
    background: #e76363;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.5em 1.2em;
    cursor: pointer;
}

/* Quote popup animation (for header.xhtml logo click) */
.quote-popup {
    opacity: 1;
    transition: opacity 0.25s ease-in-out;
}
.quote-popup.hidden {
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
}

/* ===================== */
/* NEW: Landing styling  */
/* ===================== */

/* Center headings but keep body copy left for readability */
.tk-page h1, .tk-page h2, .tk-page h3 {
    text-align: center;
}
.tk-page p, .tk-page ul, .tk-page li {
    text-align: left;
}

/* Card look for PrimePanels */
.ui-panel.ui-widget {
    background: var(--cloud-white);
    border: 1px solid #e6eef6;
    box-shadow: 0 8px 24px var(--soft-shadow);
    border-radius: 16px;
}

/* Section spacing */
.p-mb-4 { margin-bottom: 1.5rem !important; }

/* Hero band with gentle gradient */
.hero-band {
    background: linear-gradient(180deg, #edf7ff 0%, #ffffff 60%);
    border: 1px solid #e6eef6;
}

/* NEW: Hero header hierarchy for readability */
.hero-header { text-align: center; margin-bottom: 1.25rem; }
.hero-tagline {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--trust-blue);
    margin-bottom: 0.25rem;
}
.hero-strapline {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--muted);
    margin-bottom: 1rem;
}
.hero-header h1 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--brand-dark);
    margin-top: 0.5rem;
}

/* CTAs sizing */
.p-button-raised.p-button-lg,
.p-button-secondary.p-button-lg,
.p-button-outlined.p-button-lg {
    min-width: 260px;
}

/* Primary CTA (Nation) */
.p-button-raised.p-button-lg {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: #fff;
}
.p-button-raised.p-button-lg:hover {
    background: var(--brand-orange);
    border-color: var(--brand-orange);
}

/* Secondary CTA (Subscriber) */
.p-button-secondary {
    background: var(--trust-blue);
    border-color: var(--trust-blue);
    color: #fff;
}
.p-button-secondary:hover {
    background: var(--trust-blue-600);
    border-color: var(--trust-blue-600);
}

/* Outlined CTA (Knowledge Holder) */
.p-button-outlined {
    color: var(--brand-purple) !important;
    border-color: var(--brand-purple) !important;
}
.p-button-outlined:hover {
    background: #f9f2ff !important;
}

/* Trust anchors icons a bit darker */
.pi.pi-shield, .pi.pi-file, .pi.pi-dollar {
    color: var(--brand-purple);
}

/* Thin separators to avoid heavy borders between sections */
.ui-panel + .ui-panel {
    border-top: 2px solid #eef6fd;
}

/* Constrain page width */
.tk-page { max-width: 1080px; margin: 0 auto; }


/* Log.d("Jordon", "protektant.css: removed .ui-menu global z-index to prevent dashboard sidebar menu overlaying header"); */
/* Raise menubar above any modal/side masks (do NOT raise .ui-menu, it is used for in-page menus) */
.ui-menubar, .ui-menu-overlay { z-index: 100100 !important; }

/* Safety: orphan overlays shouldn't block interactions */
.ui-widget-overlay, .p-sidebar-mask { pointer-events: none !important; }

/* Show the grey mask ONLY when PF is actively locking the body for a modal/overlay */
body:not(.ui-overflow-hidden):not(.p-overflow-hidden) .ui-widget-overlay,
body:not(.ui-overflow-hidden):not(.p-overflow-hidden) .p-component-overlay,
body:not(.ui-overflow-hidden):not(.p-overflow-hidden) .p-sidebar-mask {
  background: transparent !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Keep our earlier click-through safety for any leftover masks */
.ui-widget-overlay, .p-sidebar-mask, .p-component-overlay {
  pointer-events: none !important;
}

/* Ensure the menubar sits above anything (do NOT raise .ui-menu, it is used for in-page menus) */
.ui-menubar, .ui-menu-overlay {
  position: relative;
  z-index: 100100 !important;
}



/* ========================= */
/* HERO: banner + connectors */
/* ========================= */

:root {
  --brand-grad-start: #ef4829; /* orange */
  --brand-grad-mid:   #ec2445; /* red */
  --brand-grad-end:   #3d1d55; /* purple */
  --vault-ring:       #f1c76a; /* subtle gold ring */
}

/* Container holding the three vignettes (image or SVG) */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #0f2440; /* deep teal base behind art */
  box-shadow: 0 8px 24px var(--soft-shadow);
}

/* If you’re using an <img> hero */
.hero > img {
  width: 100%;
  height: auto;
  display: block;
}

/* Overlay copy (centered, responsive) */
.hero-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  padding: 1.25rem;
}

.hero-copy {
  text-align: center;
  max-width: 980px;
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 1.15;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,.25);
  margin: 0 0 .375rem 0;
}

.hero-subtitle {
  font-size: clamp(.95rem, 1.4vw, 1.15rem);
  color: #e9eef8;
  margin: 0 0 .5rem 0;
}

/* Optional exclusivity line (scarcity) */
.hero-tag {
  font-size: .9rem;
  color: #d5e6fa;
  opacity: .9;
}

/* Gradient wordmark: PROTEKTANT (no logo shapes) */
.wordmark {
  display: inline-block;
  font-weight: 900;
  letter-spacing: .04em;
  background: linear-gradient(90deg,var(--brand-grad-start),var(--brand-grad-mid) 60%,var(--brand-grad-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ================================ */
/* Consultation line (bi-direction) */
/* ================================ */

.consultation-line {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: clamp(10px, 4.5vw, 26px);
  height: 4px;
  background: linear-gradient(90deg,#7ad0ff, #5ec6ff);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(94,198,255,.35);
}

/* small shield nodes along the line */
.consultation-line::before,
.consultation-line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 100%;
  height: 4px;
  transform: translateY(-50%);
  background:
    radial-gradient(circle at 0% 50%, #ffffff 0 2px, transparent 3px) 0 50% / 120px 4px repeat-x;
  animation: packets-left 12s linear infinite;
  opacity: .9;
}
.consultation-line::after {
  background:
    radial-gradient(circle at 100% 50%, #ffffff 0 2px, transparent 3px) 0 50% / 120px 4px repeat-x;
  animation: packets-right 12s linear infinite reverse;
  opacity: .65;
}

@keyframes packets-left  { from { background-position-x: 0;   } to { background-position-x: -120px; } }
@keyframes packets-right { from { background-position-x: 0;   } to { background-position-x:  120px; } }

/* tiny “lock” badges to suggest security */
.lock-badge {
  position: absolute;
  bottom: calc(clamp(10px, 4.5vw, 26px) - 10px);
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #0ea5e9;
  box-shadow: 0 0 10px rgba(14,165,233,.45), inset 0 0 0 2px #e6f4fa;
}
.lock-badge::before {
  content: "🔒";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 14px;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.25));
  color: #fff;
}

/* Place 3 locks along the line (social proof + security) */
.lock-left   { left: 12%; }
.lock-mid    { left: 50%; transform: translateX(-50%); }
.lock-right  { right: 12%; }

/* ======================= */
/* Sovereign Data “vault”  */
/* ======================= */

.vault {
  position: absolute;
  right: 3.5%;
  top: 10%;
  width: clamp(72px, 10vw, 140px);
  aspect-ratio: 1/1;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, #183b5a, #0f2a44 70%),
    conic-gradient(from 0deg, var(--vault-ring), #ffe39b, var(--vault-ring));
  box-shadow: 0 8px 24px rgba(0,0,0,.25), inset 0 0 0 6px rgba(255,255,255,.12);
}
.vault::after {
  /* gradient “P” text-only brand anchor inside the vault */
  content: "Protektant";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 900 clamp(.65rem, 1.35vw, .95rem) 'Montserrat', sans-serif;
  background: linear-gradient(90deg,var(--brand-grad-start),var(--brand-grad-mid) 55%,var(--brand-grad-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: .06em;
}

/* ================================ */
/* KEYCLOAK LOGIN: mushroomlogo.svg sizing  */
/* ================================ */
/* Log.d("Jordon", "Keycloak login: enforce mushroomlogo.svg size via CSS"); */

/* Center header content on login */
#kc-header-wrapper {
  text-align: center;
}

/* Default Keycloak markup uses a DIV with background-image for #kc-logo.
   This forces our SVG and clamps its display size without touching the file. */
#kc-logo {
  width: 200px;            /* desired render width */
  height: 200px;           /* set a box so background-size works predictably */
  margin: 0 auto 12px auto;
  background: url('../img/mushroomlogo.svg') no-repeat center center / contain;
}

/* If Keycloak renders a text fallback, hide it when our logo is present */
#kc-logo-text {
  display: none;
}

/* Fallback: if your template uses an <img> inside or as #kc-logo, size it too.
   You can point that <img> to mushroomlogo.png if you prefer a raster backup. */
#kc-logo img {
  display: block;
  width: 200px;
  height: auto;
  max-height: 200px;
  margin: 0 auto 12px;
}

/* Optional: adjust for small screens */
@media (max-width: 480px) {
  #kc-logo,
  #kc-logo img {
    width: 160px;
    max-height: 160px;
    height: auto;
  }
}



/* ================================ */
/* JSF login.xhtml: mushroomlogo.svg sizing */
/* ================================ */
/* Log.d("Jordon", "JSF login.xhtml: enforce mushroomlogo.svg size via CSS"); */

.jsf-login-logo img {
  display: block;
  width: 200px;        /* keep consistent with Keycloak */
  height: auto;
  max-height: 200px;
  margin: 0 auto 12px;
}

/* Optional: shrink on small screens */
@media (max-width: 480px) {
  .jsf-login-logo img {
    width: 160px;
    max-height: 160px;
    height: auto;
  }
}

/* ============================================= */
/* NEW: Temporarily hide breadcrumbs site-wide   */
/* ============================================= */
.tk-main__breadcrumb {
  display: none !important;
  visibility: hidden;
  height: 0;
  margin: 0;
  padding: 0;
}

/* ============================================= */
/* NEW: Business Dashboard Command Center styles */
/* ============================================= */
/* Log.d("Jordon", "protektant.css: cc-dashboard styles loaded"); */

/* Dashboard-only: undo brochure centering and allow command-center hierarchy */
body[data-uri*="/business/dashboard.xhtml"] .tk-main__header {
  text-align: left;
}
body[data-uri*="/business/dashboard.xhtml"] .tk-main__header h1 {
  margin: 0;
  text-align: left;
}

/* Dashboard container */
.cc-dashboard {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 24px 32px;
}

/* Page title style (command center) */
.cc-dashboard .cc-pageTitle {
  font-size: 26px;
  line-height: 32px;
  font-weight: 900;
  letter-spacing: 0.01em;
}

/* Cards in dashboard */
.cc-dashboard .cc-card.ui-card {
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

/* KPI card height consistency */
.cc-dashboard .cc-kpiCard .ui-card-body {
  min-height: 176px;
}

/* Setup checklist and alerts spacing */
.cc-dashboard .cc-setupCard {
  margin-bottom: 16px;
}

/* Tables feel like modules */
.cc-dashboard .cc-tableCard .ui-card-body {
  padding-top: 12px;
}

/* Tighten card headers slightly for a denser console feel */
.cc-dashboard .ui-card-title {
  font-size: 16px;
  line-height: 22px;
  font-weight: 800;
}

/* Make PrimeFaces tags look more like status chips in this view */
.cc-dashboard .ui-tag {
  border-radius: 999px;
  font-weight: 800;
}

/* Responsive adjustments for the dashboard container */
@media (max-width: 575.98px) {
  .cc-dashboard {
    padding: 16px 14px 24px;
  }
  .cc-dashboard .cc-pageTitle {
    font-size: 22px;
    line-height: 28px;
  }
}

/* ============================================= */
/* Nation Dashboard v1.2 Mockup Lock styles      */
/* ============================================= */
/* Log.d("Jordon", "protektant.css: nd-v12 dashboard styles loaded"); */

/* Route-scoped shell reset for the new Nation Dashboard only. */
body[data-uri*="/nation/dashboard.xhtml"] {
  background: #f3f6fb;
  overflow-x: hidden;
}

body[data-uri*="/nation/dashboard.xhtml"] .header {
  display: none !important;
}

body[data-uri*="/nation/dashboard.xhtml"] .tk-main {
  padding-top: 0;
  background: #f3f6fb;
}

body[data-uri*="/nation/dashboard.xhtml"] .tk-main__header,
body[data-uri*="/nation/dashboard.xhtml"] .tk-main__breadcrumb {
  display: none !important;
  visibility: hidden;
  height: 0;
  margin: 0;
  padding: 0;
}

body[data-uri*="/nation/dashboard.xhtml"] .tk-main__content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body[data-uri*="/nation/dashboard.xhtml"] .tk-main__content > .ui-messages {
  margin: 0;
  border-radius: 0;
}

body[data-uri*="/nation/dashboard.xhtml"] .tk-main,
body[data-uri*="/nation/dashboard.xhtml"] .tk-main__content,
body[data-uri*="/nation/dashboard.xhtml"] .nd-v12 {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

/* Dashboard canvas */
.nd-v12,
.nd-v12 * {
  box-sizing: border-box;
}

.nd-v12 {
  --nd-v12-bg: #f3f6fb;
  --nd-v12-card: #ffffff;
  --nd-v12-card-soft: #f8fafc;
  --nd-v12-sidebar: #111827;
  --nd-v12-sidebar-2: #0f172a;
  --nd-v12-sidebar-muted: #94a3b8;
  --nd-v12-text: #172033;
  --nd-v12-muted: #667085;
  --nd-v12-border: #e6edf5;
  --nd-v12-border-strong: #d5e0eb;
  --nd-v12-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  --nd-v12-shadow-soft: 0 10px 26px rgba(15, 23, 42, 0.06);
  --nd-v12-red: #f04438;
  --nd-v12-red-soft: #fff1f0;
  --nd-v12-amber: #f59e0b;
  --nd-v12-amber-soft: #fff7e6;
  --nd-v12-green: #12b76a;
  --nd-v12-green-soft: #ecfdf3;
  --nd-v12-blue: #2563eb;
  --nd-v12-blue-soft: #eff6ff;
  --nd-v12-purple: #7c3aed;
  --nd-v12-purple-soft: #f5f3ff;
  --nd-v12-teal: #0f766e;
  --nd-v12-teal-soft: #ecfdf9;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  background: var(--nd-v12-bg);
  color: var(--nd-v12-text);
  font-family: 'Montserrat', Arial, sans-serif;
}

/* Left sidebar */
.nd-v12__sidebar {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--nd-v12-sidebar) 0%, var(--nd-v12-sidebar-2) 100%);
  color: #ffffff;
  padding: 22px 18px;
  position: sticky;
  top: 0;
  align-self: start;
}

.nd-v12__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin-bottom: 24px;
}

.nd-v12__brandMark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ef4444, #fb7185);
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.28);
}

.nd-v12__brandText {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nd-v12__brandName {
  font-size: 17px;
  line-height: 20px;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.nd-v12__brandSub {
  font-size: 11px;
  line-height: 14px;
  color: var(--nd-v12-sidebar-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nd-v12__sidebarLabel {
  margin: 20px 8px 8px;
  color: #64748b;
  font-size: 10px;
  line-height: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nd-v12__nav {
  display: grid;
  gap: 6px;
}

.nd-v12__navItem,
.nd-v12__navItem:visited {
  min-height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 13px;
  line-height: 18px;
  font-weight: 800;
}

.nd-v12__navItem:hover,
.nd-v12__navItem:focus {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.nd-v12__navItem--active,
.nd-v12__navItem--active:visited {
  color: #ffffff;
  background: rgba(239, 68, 68, 0.20);
  box-shadow: inset 3px 0 0 #ef4444;
}

.nd-v12__navIcon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.nd-v12__sidebarFooter {
  margin-top: 28px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  color: #cbd5e1;
  font-size: 12px;
  line-height: 18px;
}

/* Main dashboard area */
.nd-v12__main {
  min-width: 0;
  padding: 22px 26px 32px;
}

.nd-v12__topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.nd-v12__titleBlock {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.nd-v12__titleText {
  min-width: 0;
}

.nd-v12__menuButton {
  flex: 0 0 42px;
}

.nd-v12__eyebrow {
  margin: 0 0 4px;
  color: var(--nd-v12-muted);
  font-size: 12px;
  line-height: 16px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.10em;
}

.nd-v12__title {
  margin: 0;
  color: var(--nd-v12-text);
  font-size: 30px;
  line-height: 38px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.nd-v12__subtitle {
  margin: 5px 0 0;
  color: var(--nd-v12-muted);
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
}

.nd-v12__tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.nd-v12__search {
  width: 260px;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid var(--nd-v12-border);
  background: var(--nd-v12-card);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  color: var(--nd-v12-muted);
  box-shadow: var(--nd-v12-shadow-soft);
}

.nd-v12__searchInput {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--nd-v12-text);
  font: inherit;
  font-size: 13px;
  line-height: 18px;
}

.nd-v12__pillButton,
.nd-v12__iconButton {
  min-height: 42px;
  border: 1px solid var(--nd-v12-border);
  background: var(--nd-v12-card);
  color: var(--nd-v12-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: var(--nd-v12-shadow-soft);
}

.nd-v12__pillButton {
  border-radius: 999px;
  padding: 0 15px;
  font-size: 13px;
  font-weight: 900;
}

.nd-v12__iconButton {
  width: 42px;
  border-radius: 50%;
  padding: 0;
}

.nd-v12__profile {
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid var(--nd-v12-border);
  background: var(--nd-v12-card);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 4px 5px;
  box-shadow: var(--nd-v12-shadow-soft);
}

.nd-v12__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #111827;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.nd-v12__profileText {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nd-v12__profileName {
  color: var(--nd-v12-text);
  font-size: 12px;
  line-height: 16px;
  font-weight: 900;
}

.nd-v12__profileRole {
  color: var(--nd-v12-muted);
  font-size: 10px;
  line-height: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Alert strip */
.nd-v12-alert {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 18px;
  border: 1px solid rgba(240, 68, 56, 0.20);
  background: linear-gradient(90deg, #fff1f0 0%, #fff7f7 100%);
  color: #7a271a;
  box-shadow: var(--nd-v12-shadow-soft);
}

.nd-v12-alert__icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f04438;
  color: #ffffff;
  font-weight: 900;
}

.nd-v12-alert__title {
  margin: 0;
  color: #7a271a;
  font-size: 14px;
  line-height: 20px;
  font-weight: 900;
}

.nd-v12-alert__body {
  margin: 2px 0 0;
  color: #9f4235;
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
}

.nd-v12-alert__cta,
.nd-v12-alert__cta:visited {
  min-height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  background: #f04438;
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  line-height: 16px;
  font-weight: 900;
}

/* KPI strip */
.nd-v12__kpis {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.nd-v12-kpi {
  min-height: 124px;
  border-radius: 18px;
  border: 1px solid var(--nd-v12-border);
  background: var(--nd-v12-card);
  padding: 15px;
  box-shadow: var(--nd-v12-shadow-soft);
  position: relative;
  overflow: hidden;
}

.nd-v12-kpi::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--nd-v12-blue);
}

.nd-v12-kpi--red::before { background: var(--nd-v12-red); }
.nd-v12-kpi--amber::before { background: var(--nd-v12-amber); }
.nd-v12-kpi--green::before { background: var(--nd-v12-green); }
.nd-v12-kpi--blue::before { background: var(--nd-v12-blue); }
.nd-v12-kpi--purple::before { background: var(--nd-v12-purple); }
.nd-v12-kpi--teal::before { background: var(--nd-v12-teal); }

.nd-v12-kpi__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.nd-v12-kpi__label {
  margin: 0;
  color: var(--nd-v12-muted);
  font-size: 11px;
  line-height: 15px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.nd-v12-kpi__icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--nd-v12-blue-soft);
  color: var(--nd-v12-blue);
  flex: 0 0 auto;
}

.nd-v12-kpi--red .nd-v12-kpi__icon {
  background: var(--nd-v12-red-soft);
  color: var(--nd-v12-red);
}

.nd-v12-kpi--amber .nd-v12-kpi__icon {
  background: var(--nd-v12-amber-soft);
  color: var(--nd-v12-amber);
}

.nd-v12-kpi--green .nd-v12-kpi__icon {
  background: var(--nd-v12-green-soft);
  color: var(--nd-v12-green);
}

.nd-v12-kpi--purple .nd-v12-kpi__icon {
  background: var(--nd-v12-purple-soft);
  color: var(--nd-v12-purple);
}

.nd-v12-kpi--teal .nd-v12-kpi__icon {
  background: var(--nd-v12-teal-soft);
  color: var(--nd-v12-teal);
}

.nd-v12-kpi__value {
  margin: 16px 0 0;
  color: var(--nd-v12-text);
  font-size: 27px;
  line-height: 32px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.nd-v12-kpi__helper {
  margin: 4px 0 0;
  color: var(--nd-v12-muted);
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
}

/* Card grid */
.nd-v12__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(330px, 0.68fr);
  gap: 16px;
  align-items: start;
}

.nd-v12__stack {
  display: grid;
  gap: 16px;
}

.nd-v12-card {
  border-radius: 22px;
  border: 1px solid var(--nd-v12-border);
  background: var(--nd-v12-card);
  box-shadow: var(--nd-v12-shadow);
  padding: 18px;
  overflow: hidden;
}

.nd-v12-card--flush {
  padding: 0;
}

.nd-v12-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.nd-v12-card__title {
  margin: 0;
  color: var(--nd-v12-text);
  font-size: 16px;
  line-height: 22px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.nd-v12-card__subtitle {
  margin: 3px 0 0;
  color: var(--nd-v12-muted);
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
}

.nd-v12-card__action,
.nd-v12-card__action:visited {
  color: var(--nd-v12-blue);
  text-decoration: none;
  font-size: 12px;
  line-height: 18px;
  font-weight: 900;
}

.nd-v12-card__metric {
  color: var(--nd-v12-text);
  font-size: 24px;
  line-height: 30px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.nd-v12-card__metricLabel {
  color: var(--nd-v12-muted);
  font-size: 11px;
  line-height: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Royalties trend */
.nd-v12-trend {
  min-height: 275px;
  display: grid;
  gap: 14px;
}

.nd-v12-trend__summary {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.nd-v12-lineChart {
  height: 178px;
  border-radius: 18px;
  background:
    linear-gradient(to right, rgba(148, 163, 184, 0.14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.14) 1px, transparent 1px),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  background-size: 25% 100%, 100% 25%, 100% 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--nd-v12-border);
}

.nd-v12-lineChart__area {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 28px;
  height: 98px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.22), rgba(37, 99, 235, 0.02));
  clip-path: polygon(0 62%, 14% 49%, 28% 53%, 42% 37%, 56% 42%, 70% 22%, 84% 28%, 100% 8%, 100% 100%, 0 100%);
}

.nd-v12-lineChart__line {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 28px;
  height: 98px;
  background: var(--nd-v12-blue);
  clip-path: polygon(0 62%, 14% 49%, 28% 53%, 42% 37%, 56% 42%, 70% 22%, 84% 28%, 100% 8%, 100% 12%, 84% 32%, 70% 26%, 56% 46%, 42% 41%, 28% 57%, 14% 53%, 0 66%);
}

.nd-v12-lineChart__axis {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 12px;
  display: flex;
  justify-content: space-between;
  color: var(--nd-v12-muted);
  font-size: 10px;
  line-height: 12px;
  font-weight: 800;
}

/* Data-driven SVG chart support */
.nd-v12-lineChart--svg {
  --nd-v12-chart-left: 48px;
  --nd-v12-chart-right: 18px;
  --nd-v12-chart-top: 14px;
  --nd-v12-chart-bottom: 31px;
}

.nd-v12-lineChart--compact {
  height: 164px;
}

.nd-v12-lineChart__svg {
  position: absolute;
  left: var(--nd-v12-chart-left);
  right: var(--nd-v12-chart-right);
  top: var(--nd-v12-chart-top);
  bottom: var(--nd-v12-chart-bottom);
  width: calc(100% - var(--nd-v12-chart-left) - var(--nd-v12-chart-right));
  height: calc(100% - var(--nd-v12-chart-top) - var(--nd-v12-chart-bottom));
  overflow: visible;
}

.nd-v12-lineChart__grid line {
  stroke: rgba(148, 163, 184, 0.26);
  stroke-width: 0.35;
  vector-effect: non-scaling-stroke;
}

.nd-v12-lineChart__svgArea {
  fill: rgba(37, 99, 235, 0.16);
}

.nd-v12-lineChart__svgLine {
  fill: none;
  stroke: var(--nd-v12-blue);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 7px 10px rgba(37, 99, 235, 0.18));
}

.nd-v12-lineChart__svgPoint {
  fill: #ffffff;
  stroke: var(--nd-v12-blue);
  stroke-width: 1.3;
  vector-effect: non-scaling-stroke;
}

.nd-v12-lineChart__yAxis {
  position: absolute;
  left: 12px;
  top: var(--nd-v12-chart-top);
  bottom: var(--nd-v12-chart-bottom);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--nd-v12-muted);
  font-size: 10px;
  line-height: 12px;
  font-weight: 800;
  text-align: right;
  min-width: 28px;
}

.nd-v12-lineChart--svg .nd-v12-lineChart__axis {
  left: var(--nd-v12-chart-left);
  right: var(--nd-v12-chart-right);
  bottom: 10px;
  gap: 8px;
}

.nd-v12-lineChart--svg .nd-v12-lineChart__axis span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nd-v12-chartEmpty {
  min-height: 178px;
  border-radius: 18px;
  border: 1px dashed var(--nd-v12-border-strong);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  text-align: center;
}

.nd-v12-chartA11y {
  position: absolute;
}

/* Certification queue */
.nd-v12-queue {
  display: grid;
  gap: 14px;
}

.nd-v12-stackedBar {
  height: 16px;
  border-radius: 999px;
  overflow: hidden;
  background: #eef2f7;
  display: flex;
}

.nd-v12-stackedBar__segment {
  min-width: 2px;
}

.nd-v12-stackedBar__segment--green { background: var(--nd-v12-green); }
.nd-v12-stackedBar__segment--amber { background: var(--nd-v12-amber); }
.nd-v12-stackedBar__segment--red { background: var(--nd-v12-red); }
.nd-v12-stackedBar__segment--blue { background: var(--nd-v12-blue); }

.nd-v12-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: var(--nd-v12-muted);
  font-size: 11px;
  line-height: 16px;
  font-weight: 800;
}

.nd-v12-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nd-v12-legend__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--nd-v12-blue);
}

.nd-v12-legend__dot--green { background: var(--nd-v12-green); }
.nd-v12-legend__dot--amber { background: var(--nd-v12-amber); }
.nd-v12-legend__dot--red { background: var(--nd-v12-red); }
.nd-v12-legend__dot--purple { background: var(--nd-v12-purple); }

.nd-v12-warningList {
  display: grid;
  gap: 8px;
}

.nd-v12-warningItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--nd-v12-card-soft);
  border: 1px solid var(--nd-v12-border);
}

.nd-v12-warningItem__title {
  color: var(--nd-v12-text);
  font-size: 12px;
  line-height: 17px;
  font-weight: 900;
}

.nd-v12-warningItem__meta {
  color: var(--nd-v12-muted);
  font-size: 11px;
  line-height: 15px;
  font-weight: 700;
}

.nd-v12-statusPill {
  min-height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  font-size: 10px;
  line-height: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nd-v12-statusPill--red {
  color: #b42318;
  background: var(--nd-v12-red-soft);
}

.nd-v12-statusPill--amber {
  color: #b54708;
  background: var(--nd-v12-amber-soft);
}

.nd-v12-statusPill--green {
  color: #027a48;
  background: var(--nd-v12-green-soft);
}

.nd-v12-statusPill--blue {
  color: #1d4ed8;
  background: var(--nd-v12-blue-soft);
}

/* Donut and participation trend */
.nd-v12-donutWrap {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.nd-v12-donut {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--nd-v12-border);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.nd-v12-donut__value {
  color: var(--nd-v12-text);
  font-size: 24px;
  line-height: 28px;
  font-weight: 900;
  position: relative;
  z-index: 1;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(230, 237, 245, 0.9);
}

.nd-v12-donut__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.nd-v12-donut__track {
  stroke: #eef2f7;
}

.nd-v12-donut__segment {
  stroke-linecap: butt;
  transform-origin: center;
  transition: stroke-dasharray 180ms ease, stroke-dashoffset 180ms ease;
}

.nd-v12-donut__segment--red { stroke: var(--nd-v12-red); }
.nd-v12-donut__segment--amber { stroke: var(--nd-v12-amber); }
.nd-v12-donut__segment--green { stroke: var(--nd-v12-green); }
.nd-v12-donut__segment--purple { stroke: var(--nd-v12-purple); }

.nd-v12-miniBars {
  height: 130px;
  display: flex;
  align-items: end;
  gap: 9px;
  padding: 8px 4px 0;
  border-bottom: 1px solid var(--nd-v12-border);
}

.nd-v12-miniBars__bar {
  flex: 1 1 auto;
  min-width: 14px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #3b82f6, #93c5fd);
}

/* Activity feed */
.nd-v12-activity {
  display: grid;
  gap: 10px;
}

.nd-v12-activity__item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.nd-v12-activity__icon {
  width: 36px;
  height: 36px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--nd-v12-blue-soft);
  color: var(--nd-v12-blue);
}

.nd-v12-activity__title {
  margin: 0;
  color: var(--nd-v12-text);
  font-size: 12px;
  line-height: 17px;
  font-weight: 900;
}

.nd-v12-activity__meta {
  margin: 2px 0 0;
  color: var(--nd-v12-muted);
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
}

/* Land Atlas preview card */
.nd-v12-atlas {
  min-height: 285px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.nd-v12-atlasMap {
  min-height: 178px;
  border-radius: 18px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  background:
    radial-gradient(circle at 22% 26%, rgba(20, 184, 166, 0.34) 0 6px, transparent 7px),
    radial-gradient(circle at 76% 40%, rgba(37, 99, 235, 0.30) 0 5px, transparent 6px),
    radial-gradient(circle at 58% 72%, rgba(245, 158, 11, 0.34) 0 6px, transparent 7px),
    linear-gradient(135deg, #e8fff8 0%, #f6fbff 46%, #eef7ff 100%);
  position: relative;
  overflow: hidden;
}

.nd-v12-atlasMap::before,
.nd-v12-atlasMap::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(15, 118, 110, 0.20);
  transform: rotate(-12deg);
}

.nd-v12-atlasMap::before {
  width: 210px;
  height: 100px;
  left: 28px;
  top: 28px;
  background: rgba(20, 184, 166, 0.10);
}

.nd-v12-atlasMap::after {
  width: 180px;
  height: 88px;
  right: 24px;
  bottom: 24px;
  background: rgba(37, 99, 235, 0.08);
}

.nd-v12-atlasPin {
  width: 16px;
  height: 16px;
  border-radius: 50% 50% 50% 0;
  position: absolute;
  transform: rotate(-45deg);
  background: var(--nd-v12-red);
  border: 2px solid #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.20);
  z-index: 2;
}

.nd-v12-atlasPin--one { left: 26%; top: 36%; }
.nd-v12-atlasPin--two { left: 64%; top: 42%; background: var(--nd-v12-green); }
.nd-v12-atlasPin--three { left: 48%; top: 66%; background: var(--nd-v12-amber); }

.nd-v12-atlasStats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.nd-v12-atlasStat {
  border-radius: 14px;
  border: 1px solid var(--nd-v12-border);
  background: var(--nd-v12-card-soft);
  padding: 10px;
}

.nd-v12-atlasStat__value {
  color: var(--nd-v12-text);
  font-size: 17px;
  line-height: 22px;
  font-weight: 900;
}

.nd-v12-atlasStat__label {
  color: var(--nd-v12-muted);
  font-size: 10px;
  line-height: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Consultation schedule */
.nd-v12-timeline {
  display: grid;
  gap: 10px;
}

.nd-v12-timeline__item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--nd-v12-border);
}

.nd-v12-timeline__item:last-child {
  border-bottom: 0;
}

.nd-v12-timeline__date {
  min-height: 44px;
  border-radius: 14px;
  background: #f1f5f9;
  color: var(--nd-v12-text);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px;
  font-size: 11px;
  line-height: 14px;
  font-weight: 900;
}

.nd-v12-timeline__title {
  margin: 0;
  color: var(--nd-v12-text);
  font-size: 12px;
  line-height: 17px;
  font-weight: 900;
}

.nd-v12-timeline__meta {
  margin: 2px 0 0;
  color: var(--nd-v12-muted);
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
}

/* Platform and system health strip */
.nd-v12-health {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.nd-v12-health__tile {
  border-radius: 16px;
  border: 1px solid var(--nd-v12-border);
  background: var(--nd-v12-card);
  padding: 13px;
  display: grid;
  gap: 4px;
}

.nd-v12-health__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.nd-v12-health__label {
  color: var(--nd-v12-muted);
  font-size: 11px;
  line-height: 16px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nd-v12-health__value {
  color: var(--nd-v12-text);
  font-size: 14px;
  line-height: 20px;
  font-weight: 900;
}

.nd-v12-health__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--nd-v12-green);
}

.nd-v12-health__dot--amber { background: var(--nd-v12-amber); }
.nd-v12-health__dot--red { background: var(--nd-v12-red); }
.nd-v12-health__dot--blue { background: var(--nd-v12-blue); }

/* State and empty panels */
.nd-v12-state {
  max-width: 920px;
  margin: 42px auto;
  border-radius: 24px;
  border: 1px solid var(--nd-v12-border);
  background: var(--nd-v12-card);
  box-shadow: var(--nd-v12-shadow);
  padding: 26px;
}

.nd-v12-state__title {
  margin: 0;
  color: var(--nd-v12-text);
  font-size: 22px;
  line-height: 30px;
  font-weight: 900;
}

.nd-v12-state__body {
  margin: 8px 0 0;
  color: var(--nd-v12-muted);
  font-size: 14px;
  line-height: 22px;
  font-weight: 600;
}

/* PrimeFaces compatibility inside the scoped dashboard. */
.nd-v12 .ui-button {
  border-radius: 999px;
  font-weight: 900;
}

.nd-v12 .ui-tag {
  border-radius: 999px;
  font-weight: 900;
}

.nd-v12 .ui-panel,
.nd-v12 .ui-panel .ui-panel-content {
  border: 0;
  background: transparent;
  padding: 0;
}

/* Responsive dashboard behavior */
@media (min-width: 1200px) {
  body[data-uri*="/nation/dashboard.xhtml"] .nd-v12__kpis {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

@media (max-width: 1399.98px) {
  .nd-v12__kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1199.98px) {
  .nd-v12 {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .nd-v12__grid {
    grid-template-columns: 1fr;
  }

  .nd-v12-health {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .nd-v12 {
    display: block;
  }

  .nd-v12__sidebar {
    min-height: auto;
    position: relative;
    padding: 14px;
  }

  .nd-v12__nav {
    display: flex;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .nd-v12__navItem {
    flex: 0 0 auto;
  }

  .nd-v12__sidebarFooter,
  .nd-v12__sidebarLabel {
    display: none;
  }

  .nd-v12__main {
    padding: 18px 16px 28px;
  }

  .nd-v12__topbar {
    grid-template-columns: 1fr;
  }

  .nd-v12__tools {
    justify-content: flex-start;
  }

  .nd-v12__search {
    width: min(100%, 420px);
  }

  body[data-uri*="/nation/dashboard.xhtml"] .nd-v12__sidebar {
    position: relative;
    top: auto;
  }

  body[data-uri*="/nation/dashboard.xhtml"] .nd-v12__nav {
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 8px;
  }

  body[data-uri*="/nation/dashboard.xhtml"] .nd-v12__navItem {
    flex: 1 1 calc(50% - 8px);
    min-width: 150px;
  }

  body[data-uri*="/nation/dashboard.xhtml"] .nd-v12__tools {
    width: 100%;
  }

  .nd-v12__kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nd-v12-alert {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .nd-v12-alert__cta {
    grid-column: 1 / -1;
    width: max-content;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  body[data-uri*="/nation/dashboard.xhtml"] .nd-v12__kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 639.98px) {
  .nd-v12__main {
    padding: 14px 12px 24px;
  }

  .nd-v12__title {
    font-size: 24px;
    line-height: 31px;
  }

  .nd-v12__kpis,
  .nd-v12-health,
  .nd-v12-atlasStats {
    grid-template-columns: 1fr;
  }

  .nd-v12-donutWrap {
    grid-template-columns: 1fr;
  }

  .nd-v12-donut {
    margin: 0 auto;
  }

  .nd-v12-timeline__item {
    grid-template-columns: 1fr;
  }

  .nd-v12-card {
    border-radius: 18px;
    padding: 15px;
  }

  .nd-v12__tools {
    gap: 8px;
  }

  .nd-v12__profileText {
    display: none;
  }

  body[data-uri*="/nation/dashboard.xhtml"] .nd-v12__titleBlock {
    align-items: flex-start;
  }

  body[data-uri*="/nation/dashboard.xhtml"] .nd-v12__tools {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 42px));
    justify-content: start;
    align-items: center;
    gap: 8px;
  }

  body[data-uri*="/nation/dashboard.xhtml"] .nd-v12__search {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
  }

  body[data-uri*="/nation/dashboard.xhtml"] .nd-v12__pillButton {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
  }

  body[data-uri*="/nation/dashboard.xhtml"] .nd-v12__profile {
    max-width: 42px;
    padding-right: 5px;
  }

  body[data-uri*="/nation/dashboard.xhtml"] .nd-v12-alert {
    grid-template-columns: 1fr;
  }

  body[data-uri*="/nation/dashboard.xhtml"] .nd-v12-alert__icon {
    width: 38px;
    height: 38px;
  }

  body[data-uri*="/nation/dashboard.xhtml"] .nd-v12-alert > div:last-child {
    justify-content: flex-start !important;
    flex-wrap: wrap;
  }

  body[data-uri*="/nation/dashboard.xhtml"] .nd-v12-alert__cta {
    width: 100%;
  }

  body[data-uri*="/nation/dashboard.xhtml"] .nd-v12__navItem {
    flex-basis: 100%;
  }

  body[data-uri*="/nation/dashboard.xhtml"] .nd-v12-lineChart--svg {
    --nd-v12-chart-left: 38px;
    --nd-v12-chart-right: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nd-v12 *,
  .nd-v12 *::before,
  .nd-v12 *::after {
    transition: none !important;
    animation: none !important;
  }
}

