[ng-cloak] {
  display: none !important;
}

:root {
  --zn-ink: #17181f;
  --zn-ink-soft: #343b49;
  --zn-muted: #5e6471;
  --zn-ink-inverse: #f6f8fc;
  --zn-sun: #f4a300;
  --zn-teal: #0f766e;
  --zn-deep-teal: #0c4a46;
  --zn-sky: #2b8cff;
  --zn-paper: #f8f3e9;
  --zn-paper-warm: #f5f1e7;
  --zn-card: #ffffff;
  --zn-surface-subtle: #fffaf1;
  --zn-surface-quiet: #f3f7fb;
  --zn-surface-dark: #1e2937;
  --zn-stroke: #e6d8bb;
  --zn-stroke-soft: #eadcc1;
  --zn-shadow-soft: 0 10px 24px rgba(31, 41, 55, 0.08);
  --zn-shadow-medium: 0 18px 50px rgba(35, 32, 22, 0.12);
  --zn-shadow-strong: 0 22px 60px rgba(24, 28, 39, 0.16);
  --zn-radius-md: 12px;
  --zn-radius-lg: 18px;
  --zn-radius-xl: 24px;
  --zn-font-base: "Manrope", "Segoe UI", Tahoma, sans-serif;
  --zn-font-display: "Sora", "Segoe UI", Tahoma, sans-serif;
  --zn-focus: #2b8cff;
  --zn-success: #0c7a43;
  --zn-success-soft: #d8f5e6;
  --zn-warning: #8a4b00;
  --zn-warning-soft: #ffe8c4;
  --zn-info: #0c4e99;
  --zn-info-soft: #ddebff;
  --zn-danger: #a12731;
  --zn-danger-soft: #fde1e3;

  --bs-body-font-family: var(--zn-font-base);
  --bs-body-color: var(--zn-ink);
  --bs-primary: var(--zn-teal);
  --bs-link-color: var(--zn-teal);
  --bs-link-hover-color: var(--zn-deep-teal);
  --bs-border-color: #d9dce3;
  --bs-border-radius: 0.625rem;
  --bs-border-radius-lg: 0.875rem;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: var(--zn-font-base);
  color: var(--zn-ink);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body.zn-page-home {
  background:
    radial-gradient(circle at 10% -10%, rgba(244, 163, 0, 0.24), transparent 40%),
    radial-gradient(circle at 90% 5%, rgba(15, 118, 110, 0.18), transparent 40%),
    var(--zn-paper);
}

body.zn-page-login {
  background:
    radial-gradient(circle at 8% 5%, rgba(244, 163, 0, 0.22), transparent 38%),
    radial-gradient(circle at 90% 0%, rgba(15, 118, 110, 0.2), transparent 40%),
    var(--zn-paper-warm);
}

body.zn-page-showcase {
  background:
    radial-gradient(circle at 5% -5%, rgba(244, 163, 0, 0.2), transparent 35%),
    radial-gradient(circle at 100% 0%, rgba(43, 140, 255, 0.14), transparent 30%),
    radial-gradient(circle at 85% 18%, rgba(15, 118, 110, 0.14), transparent 34%),
    linear-gradient(180deg, #fbf6ec 0%, #f6efe3 100%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--zn-font-display);
  color: var(--zn-ink);
  letter-spacing: -0.01em;
}

p,
label,
small,
li {
  color: var(--zn-ink-soft);
}

a {
  color: var(--zn-teal);
}

a:hover {
  color: var(--zn-deep-teal);
}

code {
  color: #724600;
  background: #fff5dd;
  border-radius: 0.35rem;
  padding: 0.12rem 0.38rem;
}

:focus-visible {
  outline: 2px solid var(--zn-focus);
  outline-offset: 2px;
}

.btn {
  font-weight: 700;
  border-radius: 0.625rem;
  letter-spacing: 0.01em;
}

.btn-dark {
  background-color: #1f2430;
  border-color: #1f2430;
  color: #f8fffe;
}

.btn-dark:hover,
.btn-dark:focus,
.btn-dark:active,
.btn-dark.active,
.show > .btn-dark.dropdown-toggle {
  background-color: #121722;
  border-color: #121722;
  color: #f8fffe;
}

.btn-outline-dark {
  border-color: #2e3442;
  color: #2e3442;
}

.btn-outline-dark:hover,
.btn-outline-dark:focus,
.btn-outline-dark:active,
.btn-outline-dark.active,
.show > .btn-outline-dark.dropdown-toggle {
  background-color: #2e3442;
  border-color: #2e3442;
  color: #f8fffe;
}

.btn-zn-primary {
  background-color: var(--zn-teal);
  border-color: var(--zn-teal);
  color: #f8fffe;
}

.btn-zn-primary:hover,
.btn-zn-primary:focus,
.btn-zn-primary:active,
.btn-zn-primary.active,
.show > .btn-zn-primary.dropdown-toggle {
  background-color: var(--zn-deep-teal);
  border-color: var(--zn-deep-teal);
  color: #f8fffe;
}

.btn-zn-accent {
  background-color: var(--zn-sun);
  border-color: var(--zn-sun);
  color: #3b2500;
}

.btn-zn-accent:hover,
.btn-zn-accent:focus,
.btn-zn-accent:active,
.btn-zn-accent.active,
.show > .btn-zn-accent.dropdown-toggle {
  background-color: #d88f00;
  border-color: #d88f00;
  color: #2f1d00;
}

.btn-zn-soft {
  background-color: var(--zn-surface-subtle);
  border-color: var(--zn-stroke);
  color: var(--zn-ink);
}

.btn-zn-soft:hover,
.btn-zn-soft:focus,
.btn-zn-soft:active,
.btn-zn-soft.active,
.show > .btn-zn-soft.dropdown-toggle {
  background-color: #f8edd0;
  border-color: #d9c294;
  color: var(--zn-ink);
}

.btn-dark:focus-visible,
.btn-outline-dark:focus-visible,
.btn-zn-primary:focus-visible,
.btn-zn-accent:focus-visible,
.btn-zn-soft:focus-visible {
  box-shadow: 0 0 0 0.22rem rgba(43, 140, 255, 0.2);
}

.form-control,
.form-select {
  border: 1px solid #cfd4df;
  border-radius: 0.65rem;
  color: var(--zn-ink);
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.form-control::placeholder {
  color: #8b92a1;
}

.form-control:focus,
.form-select:focus {
  border-color: #8cb9ff;
  box-shadow: 0 0 0 0.2rem rgba(43, 140, 255, 0.15);
}

.form-check-input:checked {
  background-color: var(--zn-teal);
  border-color: var(--zn-teal);
}

.table {
  color: var(--zn-ink);
}

.table > :not(caption) > * > * {
  border-bottom-color: #e3e8f1;
}

.alert {
  border-radius: var(--zn-radius-md);
  border: 1px solid transparent;
}

.nav-brand,
.brand {
  font-family: var(--zn-font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--zn-ink);
}

.hero {
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.95), rgba(255, 248, 231, 0.9));
  border: 1px solid var(--zn-stroke);
  border-radius: var(--zn-radius-xl);
  box-shadow: var(--zn-shadow-medium);
}

.hero-title {
  font-family: var(--zn-font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.chip,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.chip {
  border: 1px solid #dccda9;
  background: #fff5dd;
  color: #7a4d00;
}

.tag {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #f7fffe;
}

.panel {
  border-radius: var(--zn-radius-lg);
  border: 1px solid var(--zn-stroke);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--zn-shadow-soft);
  backdrop-filter: blur(2px);
}

.module-card {
  border-radius: var(--zn-radius-lg);
  border: 1px solid var(--zn-stroke-soft);
  background: var(--zn-card);
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.module-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.12);
}

.module-title {
  font-family: var(--zn-font-display);
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.module-kicker {
  color: var(--zn-muted);
  font-size: 0.92rem;
  margin-bottom: 0.8rem;
}

.feature-list {
  margin: 0;
  padding-left: 1rem;
  color: var(--zn-ink-soft);
  font-size: 0.95rem;
}

.feature-list li {
  margin-bottom: 0.3rem;
}

.status-pill {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* zMaterials status labels can be longer than a single table cell. */
.zn-material-status-pill {
  display: inline-flex;
  max-width: 9.5rem;
  min-height: 2rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.15;
  white-space: normal;
}

.status-foundation {
  color: #03454c;
  background: #c8f7ef;
}

.status-launch {
  color: #7a3c00;
  background: #ffe4ba;
}

.status-planning {
  color: #0f356f;
  background: #d6e7ff;
}

.status-success {
  color: #0f5132;
  background: #d9f6e5;
}

.status-warning {
  color: #8a5a00;
  background: #ffe9a8;
}

.status-danger {
  color: #7f1d1d;
  background: #ffd6da;
}

.note,
.subtle {
  color: var(--zn-muted);
  font-size: 0.9rem;
}

.auth-wrap {
  min-height: calc(100vh - 110px);
  display: grid;
  place-items: center;
}

.auth-card {
  width: 100%;
  max-width: 980px;
  border-radius: var(--zn-radius-xl);
  overflow: hidden;
  border: 1px solid var(--zn-stroke);
  box-shadow: 0 20px 50px rgba(20, 20, 25, 0.12);
  background: var(--zn-card);
}

.auth-left {
  background:
    linear-gradient(155deg, rgba(15, 118, 110, 0.95), rgba(12, 74, 70, 0.95)),
    var(--zn-teal);
  color: #f7fffe;
}

.auth-left h1,
.auth-left h2,
.auth-left h3,
.auth-left h4,
.auth-left h5,
.auth-left h6,
.auth-left p,
.auth-left small,
.auth-left a {
  color: #f7fffe;
}

.left-list {
  margin: 0;
  padding-left: 1rem;
}

.left-list li {
  color: #f0f8f6;
  margin-bottom: 0.45rem;
}

.form-title {
  font-family: var(--zn-font-display);
  font-weight: 700;
}

.mock-note {
  border-left: 4px solid var(--zn-sun);
  background: #fff7e9;
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  font-size: 0.9rem;
  color: #5f4300;
}

.zn-showcase-nav {
  position: sticky;
  top: 0;
  z-index: 1020;
  border: 1px solid rgba(230, 216, 187, 0.85);
  border-radius: var(--zn-radius-lg);
  background: rgba(255, 251, 245, 0.88);
  backdrop-filter: blur(10px);
  box-shadow: var(--zn-shadow-soft);
  padding: 1rem 1.1rem;
}

section[id] {
  scroll-margin-top: 6rem;
}

.zn-eyebrow {
  margin-bottom: 0.55rem;
  color: var(--zn-teal);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.zn-section-shell {
  border: 1px solid var(--zn-stroke);
  border-radius: var(--zn-radius-xl);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--zn-shadow-medium);
}

.zn-section-heading {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
}

.zn-section-heading p:last-child {
  margin-bottom: 0;
}

.zn-palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.zn-swatch {
  border: 1px solid var(--zn-stroke-soft);
  border-radius: var(--zn-radius-lg);
  background: var(--zn-card);
  overflow: hidden;
  box-shadow: var(--zn-shadow-soft);
}

.zn-swatch-preview {
  height: 96px;
}

.zn-swatch-ink {
  background: var(--zn-ink);
}

.zn-swatch-ink-soft {
  background: var(--zn-ink-soft);
}

.zn-swatch-teal {
  background: var(--zn-teal);
}

.zn-swatch-sun {
  background: var(--zn-sun);
}

.zn-swatch-paper {
  background: var(--zn-paper);
}

.zn-swatch-sky {
  background: var(--zn-sky);
}

.zn-swatch-meta {
  padding: 1rem;
}

.zn-token-name {
  font-family: var(--zn-font-display);
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.zn-token-value {
  display: inline-block;
  color: var(--zn-muted);
  font-size: 0.88rem;
}

.zn-button-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.zn-demo-card {
  border: 1px solid var(--zn-stroke-soft);
  border-radius: var(--zn-radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 245, 236, 0.98));
  box-shadow: var(--zn-shadow-soft);
}

.zn-demo-card-muted {
  background: linear-gradient(180deg, rgba(247, 250, 253, 0.96), rgba(240, 246, 252, 0.96));
}

.zn-glass-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
}

.zn-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid var(--zn-stroke-soft);
  border-radius: var(--zn-radius-lg);
  background: var(--zn-card);
  padding: 1rem 1.1rem;
}

.zn-toolbar-title {
  font-family: var(--zn-font-display);
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.zn-shell-preview {
  border: 1px solid var(--zn-stroke);
  border-radius: var(--zn-radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 244, 233, 0.92));
  box-shadow: var(--zn-shadow-medium);
  overflow: hidden;
}

.zn-shell-topbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-bottom: 1px solid var(--zn-stroke-soft);
  background: rgba(255, 255, 255, 0.82);
  padding: 1rem 1.1rem;
}

.zn-shell-topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.zn-shell-canvas {
  padding: 1rem;
}

.zn-shell-stage {
  border: 1px dashed #dac8a1;
  border-radius: var(--zn-radius-lg);
  background: rgba(255, 250, 243, 0.96);
  padding: 1rem;
}

.zn-shell-stage-title {
  font-family: var(--zn-font-display);
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.zn-shell-note {
  border-left: 4px solid var(--zn-teal);
  border-radius: 0.9rem;
  background: var(--zn-surface-quiet);
  padding: 0.9rem 1rem;
}

.zn-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  border: 1px dashed #d7c8a9;
  border-radius: var(--zn-radius-lg);
  background: var(--zn-surface-subtle);
  padding: 1rem;
}

.zn-metric-card {
  border: 1px solid var(--zn-stroke-soft);
  border-radius: var(--zn-radius-lg);
  background: var(--zn-card);
  padding: 1.1rem;
  box-shadow: var(--zn-shadow-soft);
  height: 100%;
}

.zn-metric-value {
  font-family: var(--zn-font-display);
  font-size: 1.9rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.zn-metric-label {
  color: var(--zn-muted);
  font-size: 0.88rem;
  margin-bottom: 0;
}

.zn-callout {
  border-radius: var(--zn-radius-md);
  padding: 1rem 1.05rem;
  border: 1px solid transparent;
}

.zn-callout h3,
.zn-callout h4,
.zn-callout h5,
.zn-callout p,
.zn-callout li,
.zn-callout small {
  color: inherit;
}

.zn-callout-info {
  background: var(--zn-info-soft);
  border-color: #bfd8ff;
  color: var(--zn-info);
}

.zn-callout-success {
  background: var(--zn-success-soft);
  border-color: #bee8d0;
  color: var(--zn-success);
}

.zn-callout-warn {
  background: var(--zn-warning-soft);
  border-color: #f4d5a5;
  color: var(--zn-warning);
}

.zn-callout-danger {
  background: var(--zn-danger-soft);
  border-color: #f2b8bf;
  color: var(--zn-danger);
}

.zn-nav-rail .list-group-item {
  border: 1px solid transparent;
  border-radius: 0.9rem;
  margin-bottom: 0.45rem;
  background: transparent;
  color: var(--zn-ink);
}

.zn-nav-rail .list-group-item small {
  color: var(--zn-muted);
}

.zn-nav-rail .list-group-item.active,
.zn-nav-rail .list-group-item:hover {
  background: #fff4d7;
  border-color: #e3cf9b;
  color: var(--zn-ink);
}

.zn-nav-rail .list-group-item.active small,
.zn-nav-rail .list-group-item:hover small {
  color: var(--zn-ink-soft);
}

.zn-showcase-offcanvas,
.zn-context-offcanvas,
.zn-system-sidebar,
.zn-system-context-drawer {
  width: min(380px, 100vw);
  border: 0;
  background:
    radial-gradient(circle at top right, rgba(244, 163, 0, 0.13), transparent 26%),
    linear-gradient(180deg, #fffdf8 0%, #f9f4ea 100%);
  box-shadow: -10px 0 34px rgba(24, 28, 39, 0.16);
}

.offcanvas.zn-pullout-item-drawer {
  --bs-offcanvas-width: min(456px, 100vw);
  width: var(--bs-offcanvas-width) !important;
  max-width: 100vw;
}

.offcanvas.zn-delivery-reallocation-drawer {
  --bs-offcanvas-width: min(520px, 100vw);
  width: var(--bs-offcanvas-width) !important;
  max-width: 100vw;
}

.offcanvas.zn-material-picker-drawer {
  --bs-offcanvas-width: min(720px, 100vw);
  width: var(--bs-offcanvas-width) !important;
  max-width: 100vw;
}

.zn-material-picker-results {
  display: grid;
  gap: 0.9rem;
}

.zn-material-picker-card {
  padding: 1rem;
  border: 1px solid var(--zn-stroke-soft);
  border-radius: var(--zn-radius-lg);
  background: var(--zn-card);
  box-shadow: var(--zn-shadow-soft);
}

.zn-material-picker-card.is-added {
  border-color: color-mix(in srgb, var(--zn-success) 44%, var(--zn-stroke-soft));
  background: var(--zn-success-soft);
  box-shadow: none;
}

.zn-material-picker-balance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.zn-material-picker-balance-grid > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.6rem 0.65rem;
  border-radius: var(--zn-radius-md);
  background: var(--zn-surface-subtle);
}

.zn-material-picker-balance-grid span,
.zn-material-picker-price-row {
  color: var(--zn-muted);
  font-size: 0.74rem;
}

.zn-material-picker-balance-grid strong {
  color: var(--zn-ink);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.zn-material-picker-balance-grid .is-available {
  background: var(--zn-success-soft);
}

.zn-material-picker-balance-grid .is-available strong {
  color: var(--zn-success);
}

.zn-material-picker-price-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: 0.8rem;
}

.zn-material-picker-price-row strong {
  color: var(--zn-ink);
}

.zn-material-picker-fifo {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--zn-stroke-soft);
  border-radius: 999px;
  background: var(--zn-surface-subtle);
  color: var(--zn-ink-soft);
  font-size: 0.7rem;
  font-weight: 700;
}

.zn-employee-autocomplete {
  position: relative;
}

.zn-employee-autocomplete-menu {
  position: absolute;
  z-index: 1080;
  top: calc(100% + 0.35rem);
  right: 0;
  left: 0;
  max-height: 17rem;
  overflow-y: auto;
  border: 1px solid var(--zn-stroke);
  border-radius: var(--zn-radius-md);
  background: var(--zn-card);
  box-shadow: var(--zn-shadow-medium);
}

.zn-employee-autocomplete-option {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 0.8rem;
  border: 0;
  border-bottom: 1px solid var(--zn-stroke-soft);
  background: transparent;
  color: var(--zn-ink);
  text-align: left;
}

.zn-employee-autocomplete-option:last-child {
  border-bottom: 0;
}

.zn-employee-autocomplete-option:hover,
.zn-employee-autocomplete-option:focus-visible,
.zn-employee-autocomplete-option.is-active {
  background: var(--zn-surface-subtle);
  color: var(--zn-ink);
}

.zn-employee-autocomplete-option:focus-visible {
  outline: 2px solid var(--zn-sky);
  outline-offset: -2px;
}

.zn-employee-autocomplete-option small,
.zn-employee-autocomplete-empty {
  color: var(--zn-muted);
  font-size: 0.78rem;
}

.zn-employee-autocomplete-empty {
  padding: 0.8rem;
}

@media (max-width: 575.98px) {
  .zn-material-picker-balance-grid {
    grid-template-columns: 1fr;
  }
}

.zn-showcase-offcanvas .offcanvas-header,
.zn-context-offcanvas .offcanvas-header,
.zn-system-sidebar .offcanvas-header,
.zn-system-context-drawer .offcanvas-header {
  align-items: flex-start;
  border-bottom: 1px solid var(--zn-stroke);
  padding: 1.15rem 1.15rem 1rem;
}

.zn-showcase-offcanvas .offcanvas-body,
.zn-context-offcanvas .offcanvas-body,
.zn-system-sidebar .offcanvas-body,
.zn-system-context-drawer .offcanvas-body {
  padding: 1rem 1.15rem 1.25rem;
}

.zn-drawer-card {
  border: 1px solid var(--zn-stroke-soft);
  border-radius: var(--zn-radius-lg);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--zn-shadow-soft);
  padding: 1rem;
}

.zn-drawer-list .list-group-item {
  border: 1px solid transparent;
  border-radius: 0.95rem;
  background: transparent;
  margin-bottom: 0.55rem;
  color: var(--zn-ink);
  padding: 0.95rem 1rem;
}

.zn-drawer-list .list-group-item.active,
.zn-drawer-list .list-group-item:hover {
  background: #fff0cf;
  border-color: #e7ce94;
  color: var(--zn-ink);
}

.zn-drawer-list .list-group-item small {
  color: var(--zn-muted);
}

.zn-drawer-tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d9c899;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  color: #6b4700;
  background: #fff4d7;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.zn-size-input {
  min-width: 4.5rem;
}

.zn-overlay-feedback {
  border: 1px solid var(--zn-stroke);
  border-radius: var(--zn-radius-lg);
  background: rgba(255, 250, 243, 0.9);
  padding: 1rem 1.05rem;
}

body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme {
  padding: 2rem 1rem 1rem;
}

body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-overlay {
  background: rgba(18, 24, 34, 0.5);
  backdrop-filter: blur(4px);
}

body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content {
  width: min(760px, calc(100vw - 1.5rem));
  max-width: 100%;
  border: 1px solid var(--zn-stroke);
  border-radius: var(--zn-radius-xl);
  background: linear-gradient(180deg, #ffffff 0%, #fcf8f0 100%);
  color: var(--zn-ink);
  font-family: var(--zn-font-base);
  font-size: 1rem;
  line-height: 1.55;
  padding: 1.45rem 1.45rem 1.25rem;
  box-shadow: var(--zn-shadow-strong);
}

body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content,
body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content h1,
body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content h2,
body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content h3,
body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content h4,
body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content h5,
body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content h6 {
  color: var(--zn-ink);
}

body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content p,
body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content li,
body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content label,
body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content small {
  color: var(--zn-ink-soft);
}

body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content .note,
body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content .subtle,
body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content .module-kicker,
body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content .zn-dialog-footnote {
  color: #4b5565;
}

body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content .module-card,
body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content .zn-foundation-card,
body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content .zn-table-card,
body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content .zn-readonly-panel,
body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content .zn-detail-item,
body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content .zn-timeline-card {
  background: rgba(255, 255, 255, 0.96);
}

body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content .module-card,
body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content .module-card:hover {
  transform: none;
  box-shadow: none;
}

body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content .zn-callout-info {
  background: #e8f1ff;
  color: #0a478f;
}

body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content .zn-callout-success {
  background: #ddf5e8;
  color: #0a6639;
}

body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content .zn-callout-warn {
  background: #ffe8c8;
  color: #734000;
}

body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content .zn-callout-danger {
  background: #fde3e5;
  color: #8d1f2a;
}

body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content .zn-callout h1,
body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content .zn-callout h2,
body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content .zn-callout h3,
body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content .zn-callout h4,
body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content .zn-callout h5,
body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content .zn-callout p,
body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content .zn-callout li,
body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content .zn-callout small {
  color: inherit;
}

body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme.zn-ngdialog-compact .ngdialog-content {
  width: min(560px, calc(100vw - 1.5rem));
}

body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme.zn-ngdialog-wide .ngdialog-content {
  width: min(860px, calc(100vw - 1.5rem));
}

body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme.zn-ngdialog-xwide .ngdialog-content {
  width: min(1080px, calc(100vw - 1.5rem));
}

.payroll-breakdown-dialog {
  padding: 0.15rem 0.2rem 0.2rem;
}

.payroll-breakdown-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.15rem 2.25rem 1.15rem 0.15rem;
  border-bottom: 1px solid var(--zn-stroke-soft);
}

.payroll-breakdown-header .zn-state-tag {
  flex: 0 0 auto;
  margin-top: 0.4rem;
}

.payroll-breakdown-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.payroll-breakdown-summary-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--zn-stroke-soft);
  border-radius: var(--zn-radius-md);
  background: rgba(255, 255, 255, 0.76);
}

.payroll-breakdown-summary-item span {
  color: var(--zn-ink-soft);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.payroll-breakdown-summary-item strong {
  color: var(--zn-ink);
  font-size: 1.2rem;
}

.payroll-breakdown-summary-item.is-accent {
  border-color: rgba(24, 91, 68, 0.28);
  background: linear-gradient(135deg, rgba(228, 247, 237, 0.94), rgba(255, 255, 255, 0.9));
}

.payroll-breakdown-section {
  padding: 1rem;
  border: 1px solid var(--zn-stroke-soft);
  border-radius: var(--zn-radius-md);
  background: rgba(255, 255, 255, 0.78);
}

.payroll-breakdown-section-heading {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-bottom: 0.7rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--zn-stroke-soft);
}

.payroll-breakdown-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.45rem;
  background: #def5e7;
  color: #17633f;
  font-weight: 800;
}

.payroll-breakdown-section-icon.is-danger {
  background: #fde3e5;
  color: #a32b35;
}

.payroll-breakdown-section-icon.is-muted {
  background: #edf0f3;
  color: #566273;
}

.payroll-journal-preview {
  padding: 1.25rem;
  border: 1px solid rgba(34, 58, 91, 0.2);
  border-radius: var(--zn-radius-lg);
  background: linear-gradient(145deg, rgba(239, 246, 255, 0.94), rgba(255, 255, 255, 0.9));
  box-shadow: 0 10px 24px rgba(36, 61, 93, 0.08);
}

.payroll-journal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.5rem;
  padding: 0.7rem 0.8rem;
  border-radius: var(--zn-radius-md);
  background: rgba(255, 255, 255, 0.72);
}

.payroll-journal-meta span {
  display: inline-flex;
  gap: 0.35rem;
}

.payroll-journal-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(34, 58, 91, 0.14);
  border-radius: var(--zn-radius-md);
  background: #fff;
}

.payroll-journal-table-wrap .table {
  min-width: 650px;
}

.payroll-journal-table-wrap .table > :not(caption) > * > * {
  padding: 0.72rem 0.9rem;
}

.payroll-journal-table-wrap thead th {
  border-bottom: 1px solid rgba(34, 58, 91, 0.16);
  background: #f2f6fb;
  color: #3d5068;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.payroll-journal-table-wrap tbody td,
.payroll-journal-table-wrap tfoot td {
  border-color: rgba(34, 58, 91, 0.1);
}

.payroll-journal-table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.payroll-journal-table-wrap tfoot td {
  background: #f8fafc;
}

.payroll-breakdown-actions {
  padding-top: 1rem;
  border-top: 1px solid var(--zn-stroke-soft);
}

@media (max-width: 640px) {
  .payroll-breakdown-summary {
    grid-template-columns: 1fr;
  }

  .payroll-breakdown-header {
    flex-direction: column;
  }

  .payroll-breakdown-header .zn-state-tag {
    margin-top: 0;
  }

  .payroll-journal-preview {
    padding: 0.9rem;
  }
}

body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-close {
  right: 0.8rem;
  top: 0.8rem;
  z-index: 2;
}

body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-close:before {
  color: var(--zn-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  line-height: 32px;
  border-radius: 999px;
  border: 1px solid var(--zn-stroke-soft);
  background: #fff4dd;
  transition: background-color 0.2s ease, color 0.2s ease;
}

body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-close:hover:before,
body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-close:active:before {
  color: var(--zn-ink);
  background: #ffe8b7;
}

.zn-dialog-shell,
.zn-dialog-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content .zn-dialog-shell > :first-child,
body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content .zn-dialog-panel > :first-child {
  padding-right: 3rem;
}

.zn-dialog-shell-compact {
  gap: 0.8rem;
}

.zn-dialog-header {
  padding-right: 2.25rem;
}

.zn-dialog-header-compact {
  padding-right: 0;
}

/* Reusable keyboard-shortcut dialog: every system uses this same semantic
   structure so its keycaps, rows, focus hierarchy, and dark treatment stay
   consistent. */
.zn-shortcut-dialog-list {
  display: grid;
  gap: 0.55rem;
}

.zn-shortcut-dialog-list > div {
  display: grid;
  grid-template-columns: minmax(8.5rem, auto) minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--zn-stroke-soft);
  color: var(--zn-ink-soft);
}

.zn-shortcut-dialog-list > div:last-child {
  border-bottom: 0;
}

.zn-shortcut-dialog-list kbd {
  display: inline-block;
  width: fit-content;
  padding: 0.12rem 0.35rem;
  border: 1px solid var(--zn-stroke);
  border-radius: 5px;
  background: var(--zn-paper);
  color: var(--zn-ink);
  font-family: var(--zn-font-base);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.2;
}

.zn-dialog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.zn-dialog-list {
  margin: 0;
  padding-left: 1rem;
}

.zn-dialog-list li {
  margin-bottom: 0.45rem;
}

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

.zn-dialog-inline-note {
  min-width: 240px;
  max-width: 440px;
}

.zn-dialog-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.zn-dialog-footnote {
  color: var(--zn-muted);
  font-size: 0.9rem;
  margin-bottom: 0;
}

body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .zn-tabset {
  border-bottom-color: #d8c7a2;
}

body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .zn-tabset .nav-link {
  background: rgba(255, 255, 255, 0.88);
  color: #495363;
}

body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .zn-tabset .nav-link.active,
body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .zn-tabset .nav-link:hover,
body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .zn-tabset .nav-link:focus {
  color: var(--zn-ink);
  background: #fff0cf;
  border-color: #e7ce94;
}

.zn-foundation-card {
  border: 1px solid var(--zn-stroke-soft);
  border-radius: var(--zn-radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--zn-shadow-soft);
  padding: 1.15rem;
  height: 100%;
}

.zn-type-sample {
  padding-bottom: 0.8rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px dashed #ddcfb0;
}

.zn-type-sample:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.zn-token-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.zn-token-pills-compact {
  gap: 0.4rem;
}

.zn-token-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  border: 1px solid var(--zn-stroke);
  border-radius: 999px;
  background: #fff8eb;
  color: #5e4300;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 0.8rem;
}

.zn-token-pill-compact {
  font-size: 0.78rem;
  padding: 0.32rem 0.64rem;
}

.zn-scale-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.zn-scale-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.zn-scale-bar {
  flex: 1 1 auto;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffe5b4 0%, #f4a300 100%);
  min-width: 70px;
}

.zn-scale-bar.is-xs {
  height: 8px;
  max-width: 48px;
}

.zn-scale-bar.is-sm {
  height: 10px;
  max-width: 72px;
}

.zn-scale-bar.is-md {
  height: 12px;
  max-width: 104px;
}

.zn-scale-bar.is-lg {
  height: 14px;
  max-width: 132px;
}

.zn-scale-bar.is-xl {
  height: 16px;
  max-width: 168px;
}

.zn-radius-grid,
.zn-shadow-grid,
.zn-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.85rem;
}

.zn-radius-token,
.zn-shadow-token,
.zn-icon-token {
  border: 1px solid var(--zn-stroke-soft);
  background: #fffdf9;
  padding: 0.9rem;
  text-align: center;
}

.zn-radius-token {
  border-radius: var(--zn-radius-lg);
}

.zn-radius-token.is-sm {
  border-radius: 8px;
}

.zn-radius-token.is-md {
  border-radius: var(--zn-radius-md);
}

.zn-radius-token.is-lg {
  border-radius: var(--zn-radius-lg);
}

.zn-radius-token.is-xl {
  border-radius: var(--zn-radius-xl);
}

.zn-shadow-token.is-soft {
  box-shadow: var(--zn-shadow-soft);
}

.zn-shadow-token.is-medium {
  box-shadow: var(--zn-shadow-medium);
}

.zn-shadow-token.is-strong {
  box-shadow: var(--zn-shadow-strong);
}

.zn-icon-token {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  border-radius: var(--zn-radius-lg);
}

.zn-icon-disc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff0cf;
  color: #664500;
  font-weight: 800;
}

.zn-icon-disc.is-info {
  color: var(--zn-info);
  background: var(--zn-info-soft);
  border: 1px solid #bfd8ff;
}

.zn-icon-disc.is-sm {
  width: 24px;
  height: 24px;
  font-size: 0.72rem;
}

.zn-icon-disc.is-md {
  width: 32px;
  height: 32px;
  font-size: 0.82rem;
}

.zn-icon-disc.is-lg {
  width: 40px;
  height: 40px;
  font-size: 0.92rem;
}

.zn-icon-disc.is-xl {
  width: 52px;
  height: 52px;
  font-size: 1rem;
}

.zn-motion-list {
  margin: 0;
  padding-left: 1rem;
}

.zn-motion-list li {
  margin-bottom: 0.5rem;
}

.zn-page-header {
  border: 1px solid var(--zn-stroke);
  border-radius: var(--zn-radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(252, 246, 236, 0.92));
  box-shadow: var(--zn-shadow-medium);
  padding: 1.25rem;
}

.zn-page-header-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.zn-breadcrumb-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  color: var(--zn-muted);
  font-size: 0.9rem;
}

.zn-breadcrumb-shell a {
  color: var(--zn-teal);
  text-decoration: none;
}

.zn-page-header-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
}

.zn-header-counter {
  border: 1px solid var(--zn-stroke-soft);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--zn-shadow-soft);
  min-width: 0;
  padding: 0.85rem 0.95rem;
}

.zn-header-counter-value {
  font-family: var(--zn-font-display);
  font-size: 1.55rem;
  line-height: 1;
  margin-bottom: 0.28rem;
}

.zn-header-counter-label {
  color: var(--zn-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0;
  text-transform: uppercase;
}

@media (min-width: 1200px) {
  .zn-page-header-grid {
    align-items: flex-start;
    flex-direction: row;
    justify-content: space-between;
    gap: 1.25rem;
  }

  .zn-page-header-metrics {
    flex: 0 0 auto;
    grid-template-columns: repeat(4, minmax(112px, 1fr));
    width: auto;
  }
}

.zn-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.zn-subnav,
.zn-tabset {
  gap: 0.5rem;
  border-bottom: 1px solid var(--zn-stroke-soft);
  padding-bottom: 0.8rem;
}

.zn-subnav .nav-link,
.zn-tabset .nav-link {
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--zn-ink-soft);
  font-weight: 700;
  padding: 0.6rem 0.95rem;
}

.zn-subnav .nav-link.active,
.zn-subnav .nav-link:hover,
.zn-subnav .nav-link:focus,
.zn-tabset .nav-link.active,
.zn-tabset .nav-link:hover,
.zn-tabset .nav-link:focus {
  color: var(--zn-ink);
  background: #fff0cf;
  border-color: #e7ce94;
}

.zn-filter-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.zn-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  border: 1px solid #dccda9;
  background: #fff8e9;
  color: #6b4700;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.38rem 0.7rem;
}

.zn-items-spotlight {
  position: relative;
  overflow: hidden;
  padding: 1.35rem 1.4rem;
  background:
    radial-gradient(circle at 8% 0%, rgba(43, 140, 255, 0.2), transparent 30%),
    radial-gradient(circle at 92% 12%, rgba(15, 118, 110, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 249, 238, 0.98), rgba(245, 251, 249, 0.96) 54%, rgba(233, 244, 255, 0.94));
  border-color: rgba(15, 118, 110, 0.18);
  box-shadow: 0 22px 40px rgba(17, 24, 39, 0.1);
}

.zn-items-spotlight::after {
  content: "";
  position: absolute;
  inset: auto -42px -42px auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(244, 163, 0, 0.18), transparent 68%);
  pointer-events: none;
}

.zn-items-spotlight > * {
  position: relative;
  z-index: 1;
}

.zn-items-spotlight .hero-title {
  color: var(--zn-deep-teal);
}

.zn-items-spotlight .chip {
  border-color: rgba(15, 118, 110, 0.18);
  background: rgba(15, 118, 110, 0.12);
  color: var(--zn-deep-teal);
}

.zn-items-spotlight .zn-filter-chip {
  border-color: rgba(43, 140, 255, 0.18);
  background: rgba(43, 140, 255, 0.12);
  color: var(--zn-info);
}

.zn-items-spotlight .zn-token-pill {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.06);
}

.zn-items-spotlight .zn-token-pill:nth-child(1) {
  border-color: rgba(244, 163, 0, 0.24);
  background: rgba(244, 163, 0, 0.12);
  color: #7a4d00;
}

.zn-items-spotlight .zn-token-pill:nth-child(2) {
  border-color: rgba(15, 118, 110, 0.22);
  background: rgba(15, 118, 110, 0.12);
  color: var(--zn-deep-teal);
}

.zn-items-spotlight .zn-token-pill:nth-child(3) {
  border-color: rgba(43, 140, 255, 0.22);
  background: rgba(43, 140, 255, 0.12);
  color: var(--zn-info);
}

.zn-items-filter-shell {
  border-color: rgba(15, 118, 110, 0.14);
  border-style: solid;
  height: 100%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.94)),
    var(--zn-card);
  box-shadow: 0 18px 32px rgba(12, 74, 70, 0.08);
}

.zn-items-filter-shell .zn-toolbar-title,
.zn-items-filter-shell .form-label {
  color: var(--zn-deep-teal);
}

.zn-items-filter-shell .btn-dark {
  background: linear-gradient(135deg, var(--zn-teal), var(--zn-deep-teal));
  border-color: var(--zn-deep-teal);
}

.zn-items-filter-shell .btn-dark:hover,
.zn-items-filter-shell .btn-dark:focus,
.zn-items-filter-shell .btn-dark:active {
  background: linear-gradient(135deg, var(--zn-deep-teal), #083835);
  border-color: #083835;
}

.zn-items-filter-shell .btn-outline-dark {
  border-color: rgba(43, 140, 255, 0.28);
  color: var(--zn-info);
}

.zn-items-filter-shell .btn-outline-dark:hover,
.zn-items-filter-shell .btn-outline-dark:focus,
.zn-items-filter-shell .btn-outline-dark:active {
  background: rgba(43, 140, 255, 0.12);
  border-color: rgba(43, 140, 255, 0.4);
  color: #083d73;
}

.zn-sales-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  justify-content: center;
  min-height: 100%;
}

.zn-sales-filter-shell {
  padding: 1.5rem 1.65rem;
}

.zn-sales-filter-grid .form-control,
.zn-sales-filter-grid .form-select {
  min-height: 3.15rem;
}

.zn-sales-filter-grid .btn {
  min-width: 11rem;
}

@media (min-width: 1200px) {
  .zn-sales-filter-shell {
    padding: 1.7rem 1.85rem;
  }
}

.zn-items-apply-button {
  width: 100%;
}

.zn-material-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.zn-material-filter-actions .btn {
  flex: 1 1 9rem;
}

.zn-items-table-card {
  border-color: rgba(15, 118, 110, 0.14);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 243, 0.96));
}

.zn-items-table-toolbar {
  background:
    radial-gradient(circle at top right, rgba(244, 163, 0, 0.2), transparent 24%),
    radial-gradient(circle at 15% 15%, rgba(15, 118, 110, 0.1), transparent 22%),
    linear-gradient(180deg, #fffaf2 0%, #eef8f6 100%);
}

.zn-items-table-toolbar .h5 {
  color: var(--zn-deep-teal);
}

.table.zn-items-table thead th {
  color: var(--zn-deep-teal);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.table.zn-items-table > :not(caption) > * > * {
  padding: 1rem 1.1rem;
}

.zn-items-table tbody tr {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 251, 243, 0.92));
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.zn-items-table tbody tr:hover {
  background:
    linear-gradient(90deg, rgba(243, 251, 249, 0.98), rgba(255, 247, 233, 0.94));
}

.zn-sales-transaction-cell,
.zn-sales-branch-cell {
  min-width: 210px;
}

.zn-sales-snapshot-cell {
  min-width: 280px;
}

.zn-sales-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.zn-sales-preview-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(12, 74, 70, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--zn-ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.35rem 0.68rem;
}

.zn-sales-preview-pill.is-muted {
  border-style: dashed;
  border-color: rgba(43, 140, 255, 0.18);
  background: rgba(43, 140, 255, 0.06);
  color: var(--zn-info);
}

.zn-sales-amount-stack {
  display: grid;
  gap: 0.55rem;
  min-width: 148px;
}

.zn-sales-amount-stack > div {
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 251, 245, 0.98), rgba(241, 248, 246, 0.96));
  padding: 0.6rem 0.75rem;
}

.zn-sales-view-item-cell {
  min-width: 220px;
}

.zn-sales-view-master-cell {
  min-width: 240px;
}

.zn-sales-view-size-cell {
  min-width: 230px;
}

.zn-sales-view-pricing-cell {
  min-width: 165px;
}

.zn-sales-view-pricing {
  display: grid;
  gap: 0.2rem;
}

.zn-sales-calendar-shell {
  gap: 1.15rem;
}

.zn-sales-calendar-toolbar,
.zn-sales-calendar-hero,
.zn-sales-calendar-panel,
.zn-sales-calendar-summary-tile {
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: var(--zn-radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 242, 0.96));
  box-shadow: var(--zn-shadow-soft);
}

.zn-sales-calendar-toolbar {
  padding: 1rem 1.05rem;
}

.zn-sales-calendar-month-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  min-height: 100%;
}

.zn-sales-calendar-month-copy {
  min-width: 0;
  text-align: center;
}

.zn-sales-calendar-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
}

.zn-sales-calendar-amount-label {
  color: var(--zn-muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.zn-sales-calendar-amount {
  font-family: var(--zn-font-display);
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
  color: var(--zn-deep-teal);
}

.zn-sales-calendar-branch-select {
  min-height: 3rem;
}

.zn-sales-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.95rem;
}

.zn-sales-calendar-legend-label {
  color: var(--zn-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.zn-sales-calendar-legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  background: rgba(255, 255, 255, 0.94);
  color: var(--zn-ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
}

.zn-sales-calendar-legend-chip.is-success {
  border-color: #bee8d0;
  background: var(--zn-success-soft);
  color: var(--zn-success);
}

.zn-sales-calendar-legend-chip.is-warning {
  border-color: #f4d5a5;
  background: var(--zn-warning-soft);
  color: var(--zn-warning);
}

.zn-sales-calendar-legend-chip.is-danger,
.zn-sales-calendar-day.is-danger {
  border-color: #f2b8bf;
  background: var(--zn-danger-soft);
  color: var(--zn-danger);
}

.zn-sales-calendar-legend-chip.is-muted {
  border-color: rgba(100, 116, 139, 0.22);
  background: rgba(242, 246, 250, 0.96);
  color: #5b6678;
}

.zn-sales-calendar-legend-chip.is-dot {
  border-style: dashed;
}

.zn-sales-calendar-panel {
  padding: 1rem;
}

.zn-sales-calendar-weekday-row,
.zn-sales-calendar-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.55rem;
}

.zn-sales-calendar-weekday-row {
  margin-bottom: 0.55rem;
}

.zn-sales-calendar-weekday {
  padding: 0.55rem 0.4rem;
  color: var(--zn-deep-teal);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.zn-sales-calendar-grid {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.zn-sales-calendar-slot {
  min-width: 0;
}

.zn-sales-calendar-placeholder,
.zn-sales-calendar-day {
  min-height: 5rem;
  border-radius: 16px;
}

.zn-sales-calendar-placeholder {
  border: 1px dashed rgba(15, 118, 110, 0.14);
  background: rgba(255, 250, 244, 0.5);
}

.zn-sales-calendar-day {
  position: relative;
  width: 100%;
  border: 1px solid rgba(15, 118, 110, 0.14);
  background: rgba(255, 255, 255, 0.96);
  color: var(--zn-ink);
  cursor: default;
  padding: 0.65rem 0.7rem;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.zn-sales-calendar-day.is-success {
  border-color: #bee8d0;
  background: var(--zn-success-soft);
  color: var(--zn-success);
}

.zn-sales-calendar-day.is-warning {
  border-color: #f4d5a5;
  background: var(--zn-warning-soft);
  color: var(--zn-warning);
}

.zn-sales-calendar-day.is-info {
  border-color: #bfd8ff;
  background: var(--zn-info-soft);
  color: var(--zn-info);
}

.zn-sales-calendar-day.is-muted {
  border-color: rgba(100, 116, 139, 0.14);
  background: rgba(245, 247, 250, 0.96);
  color: #64748b;
}

.zn-sales-calendar-number {
  display: inline-flex;
  font-family: var(--zn-font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

.zn-hris-timekeeping-calendar-day {
  min-height: 7.15rem;
}

.zn-hris-timekeeping-calendar-times {
  display: grid;
  gap: 0.22rem;
  margin-top: 0.62rem;
}

.zn-hris-timekeeping-calendar-times > span {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.zn-hris-timekeeping-calendar-times small {
  color: currentColor;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  opacity: 0.76;
  text-transform: uppercase;
}

.offcanvas.zn-hris-overtime-history-drawer {
  --bs-offcanvas-width: min(620px, 100vw);
  width: var(--bs-offcanvas-width) !important;
  max-width: 100vw;
}

.zn-hris-overtime-history-drawer .offcanvas-body {
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
}

.zn-hris-overtime-history-list {
  min-height: 0;
  overflow: auto;
}

.zn-sales-calendar-void-dot {
  position: absolute;
  top: 0.68rem;
  right: 0.68rem;
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
  background: var(--zn-danger);
  box-shadow: 0 0 0 4px rgba(161, 39, 49, 0.12);
}

.zn-sales-calendar-void-dot.is-legend {
  position: static;
  box-shadow: none;
}

.zn-sales-calendar-summary {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.zn-sales-calendar-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
}

.zn-sales-calendar-summary-tile {
  padding: 1rem 1.05rem;
}

.zn-sales-calendar-summary-label {
  color: var(--zn-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.zn-sales-calendar-summary-metric {
  font-family: var(--zn-font-display);
  font-size: 1.7rem;
  line-height: 1;
  color: var(--zn-deep-teal);
}

.zn-sales-calendar-summary-note {
  color: var(--zn-ink-soft);
  font-size: 0.84rem;
}

@media (max-width: 991.98px) {
  .zn-sales-calendar-month-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zn-sales-calendar-month-copy {
    grid-column: 1 / -1;
    order: -1;
  }
}

@media (max-width: 767.98px) {
  .zn-sales-calendar-toolbar,
  .zn-sales-calendar-hero,
  .zn-sales-calendar-panel,
  .zn-sales-calendar-summary-tile {
    border-radius: 14px;
  }

  .zn-sales-calendar-panel {
    padding: 0.85rem;
  }

  .zn-sales-calendar-weekday,
  .zn-sales-calendar-number {
    font-size: 0.88rem;
  }

  .zn-sales-calendar-placeholder,
  .zn-sales-calendar-day {
    min-height: 3.75rem;
  }

  .zn-hris-timekeeping-calendar-day {
    min-height: 6.2rem;
  }

  .zn-sales-calendar-day {
    padding: 0.52rem;
  }

  .zn-sales-calendar-void-dot {
    top: 0.48rem;
    right: 0.48rem;
  }
}

.zn-po-hero {
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.14), transparent 26%),
    radial-gradient(circle at bottom right, rgba(244, 163, 0, 0.15), transparent 28%),
    linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(250, 244, 233, 0.96));
  overflow: hidden;
  padding: 1rem 1.1rem;
}

.zn-po-hero > .row {
  margin-left: 0;
  margin-right: 0;
}

.zn-po-filter-shell {
  background:
    radial-gradient(circle at top right, rgba(43, 140, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 250, 242, 0.98), rgba(242, 249, 247, 0.96));
}

.zn-po-vendor-picker {
  position: relative;
}

.zn-po-vendor-inline-bar {
  display: flex;
  align-items: stretch;
  gap: 0.65rem;
}

.zn-po-vendor-current {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  width: 100%;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.98), rgba(240, 248, 246, 0.96));
  color: var(--zn-ink);
  cursor: pointer;
  font: inherit;
  padding: 0.72rem 0.88rem;
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.zn-po-vendor-current:hover,
.zn-po-vendor-picker.is-open .zn-po-vendor-current {
  border-color: rgba(15, 118, 110, 0.28);
  background: linear-gradient(180deg, rgba(251, 255, 254, 1), rgba(233, 247, 244, 0.98));
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.08);
}

.zn-po-vendor-current:focus-visible {
  outline: 2px solid rgba(15, 118, 110, 0.36);
  outline-offset: 2px;
}

.zn-po-vendor-current:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.zn-po-vendor-current.is-placeholder {
  color: var(--zn-ink-soft);
}

.zn-po-vendor-current-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
}

.zn-po-vendor-current-copy strong,
.zn-po-vendor-current-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zn-po-vendor-current-copy strong {
  color: inherit;
  font-size: 0.95rem;
  line-height: 1.25;
}

.zn-po-vendor-current-copy small {
  color: var(--zn-muted);
  font-size: 0.72rem;
  line-height: 1.2;
}

.zn-po-vendor-current-state {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(244, 163, 0, 0.18);
  border-radius: 999px;
  background: rgba(244, 163, 0, 0.12);
  color: #7a4d00;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.36rem 0.58rem;
}

.zn-po-vendor-results {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 0;
  right: 0;
  z-index: 20;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(43, 140, 255, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.99), rgba(245, 250, 249, 0.98));
  box-shadow: var(--zn-shadow-medium);
  padding: 0.9rem;
}

.zn-po-vendor-results-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.zn-po-vendor-results-head .form-control {
  flex: 1 1 240px;
}

.zn-po-vendor-results-count {
  flex: 0 0 auto;
  color: var(--zn-muted);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.2;
}

.zn-po-vendor-option-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 280px;
  overflow-y: auto;
  margin-top: 0.75rem;
  padding-right: 0.1rem;
}

.zn-po-vendor-option {
  width: 100%;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--zn-ink);
  cursor: pointer;
  font: inherit;
  padding: 0.68rem 0.78rem;
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.zn-po-vendor-option:hover,
.zn-po-vendor-option:focus {
  border-color: rgba(15, 118, 110, 0.28);
  background: rgba(233, 247, 244, 0.92);
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.08);
}

.zn-po-vendor-option:focus-visible {
  outline: 2px solid rgba(15, 118, 110, 0.3);
  outline-offset: 2px;
}

@media (max-width: 991.98px) {
  .zn-po-vendor-inline-bar {
    flex-wrap: wrap;
  }

  .zn-po-vendor-results {
    position: static;
    margin-top: 0.75rem;
  }
}

.zn-po-apply-button {
  width: 100%;
}

.zn-po-table-card {
  border-color: rgba(15, 118, 110, 0.14);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 251, 244, 0.97));
}

.zn-po-table-toolbar {
  background:
    radial-gradient(circle at top right, rgba(244, 163, 0, 0.18), transparent 24%),
    radial-gradient(circle at 12% 18%, rgba(15, 118, 110, 0.1), transparent 20%),
    linear-gradient(180deg, #fffaf2 0%, #eef8f6 100%);
}

.zn-po-table-toolbar .h5 {
  color: var(--zn-deep-teal);
}

.zn-po-table-shell {
  padding: 0.85rem 1rem 0;
}

.table.zn-po-table thead th {
  color: var(--zn-deep-teal);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom-width: 1px;
}

.table.zn-po-table > :not(caption) > * > * {
  padding: 1rem 1.05rem;
}

.table.zn-po-table.is-compact > :not(caption) > * > * {
  padding: 0.8rem 0.85rem;
  vertical-align: top;
}

.zn-po-table tbody tr {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 243, 0.94));
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.zn-po-table tbody tr:hover {
  background:
    linear-gradient(90deg, rgba(243, 251, 249, 0.98), rgba(255, 247, 233, 0.95));
}

.zn-po-detail-lines-table > :not(caption) > * > * {
  vertical-align: top;
}

.zn-po-detail-item-cell {
  min-width: 240px;
}

.zn-po-detail-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.zn-po-detail-legend {
  margin-top: 0.9rem;
  padding-top: 0.15rem;
  align-items: center;
}

.zn-po-detail-legend-label {
  display: inline-flex;
  align-items: center;
  margin-right: 0.35rem;
  padding-left: 0.1rem;
  white-space: nowrap;
}

.zn-po-detail-size-cell {
  min-width: 38px;
}

.zn-po-detail-inline-value {
  color: var(--zn-ink);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.zn-po-detail-receive-cell {
  min-width: 118px;
}

.zn-po-detail-rr-cell {
  min-width: 108px;
}

.zn-po-detail-rr-cell .status-pill {
  white-space: nowrap;
}

.zn-po-col-po {
  min-width: 170px;
}

.zn-po-vendor-name {
  color: var(--zn-ink);
  line-height: 1.4;
}

.zn-po-date-stack {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 132px;
}

.zn-po-date-row {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  line-height: 1.2;
  white-space: nowrap;
}

.zn-po-date-label {
  flex: 0 0 3rem;
  color: var(--zn-muted);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.zn-po-date-value {
  color: var(--zn-ink);
  font-size: 0.84rem;
  font-weight: 600;
}

.zn-po-remarks {
  display: flex;
  align-items: center;
  min-width: 210px;
}

.zn-po-list-rr-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.42rem;
  min-width: 156px;
}

.zn-po-list-rr-entry {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.zn-po-list-rr-entry .zn-po-rr-label {
  min-height: 0;
  font-size: 0.76rem;
  line-height: 1.1;
}

.zn-po-list-rr-pill {
  font-size: 0.76rem;
  line-height: 1.1;
}

.zn-po-receive-item-cell {
  min-width: 250px;
}

.zn-po-receive-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.zn-po-receive-stack {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}

.zn-po-receive-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.85rem;
}

.zn-po-receive-stat strong,
.zn-po-receive-stack strong {
  color: var(--zn-ink);
  font-size: 0.92rem;
  line-height: 1.35;
  text-align: right;
}

.zn-po-receive-input-cell {
  min-width: 108px;
}

.zn-po-receive-actions {
  min-width: 92px;
}

.zn-po-receive-actions .btn {
  white-space: nowrap;
}

.zn-po-receive-input-cell .form-control-sm {
  min-width: 0;
}

.zn-po-receive-qty-input {
  width: 88px;
  max-width: 100%;
  margin-left: auto;
}

.zn-po-source-group {
  padding: 0.9rem 1rem;
}

.zn-po-region-del1 {
  --zn-po-region-border: rgba(184, 168, 0, 0.38);
  --zn-po-region-bg: rgba(255, 255, 0, 0.12);
  --zn-po-region-bg-strong: rgba(255, 255, 0, 0.22);
  --zn-po-region-row: rgba(255, 255, 0, 0.24);
  --zn-po-region-row-hover: rgba(255, 255, 0, 0.34);
  --zn-po-region-text: #6b5d00;
}

.zn-po-region-del2 {
  --zn-po-region-border: rgba(204, 122, 0, 0.36);
  --zn-po-region-bg: rgba(255, 165, 0, 0.12);
  --zn-po-region-bg-strong: rgba(255, 165, 0, 0.2);
  --zn-po-region-row: rgba(255, 165, 0, 0.2);
  --zn-po-region-row-hover: rgba(255, 165, 0, 0.3);
  --zn-po-region-text: #7a4300;
}

.zn-po-region-del3 {
  --zn-po-region-border: rgba(97, 138, 23, 0.34);
  --zn-po-region-bg: rgba(154, 205, 50, 0.12);
  --zn-po-region-bg-strong: rgba(154, 205, 50, 0.2);
  --zn-po-region-row: rgba(154, 205, 50, 0.2);
  --zn-po-region-row-hover: rgba(154, 205, 50, 0.3);
  --zn-po-region-text: #446200;
}

.zn-po-region-del4 {
  --zn-po-region-border: rgba(155, 87, 155, 0.34);
  --zn-po-region-bg: rgba(238, 130, 238, 0.12);
  --zn-po-region-bg-strong: rgba(238, 130, 238, 0.2);
  --zn-po-region-row: rgba(238, 130, 238, 0.18);
  --zn-po-region-row-hover: rgba(238, 130, 238, 0.28);
  --zn-po-region-text: #6b2b6b;
}

.zn-po-region-del5 {
  --zn-po-region-border: rgba(199, 110, 132, 0.34);
  --zn-po-region-bg: rgba(255, 192, 203, 0.12);
  --zn-po-region-bg-strong: rgba(255, 192, 203, 0.2);
  --zn-po-region-row: rgba(255, 192, 203, 0.18);
  --zn-po-region-row-hover: rgba(255, 192, 203, 0.28);
  --zn-po-region-text: #7f3651;
}

.zn-po-region-del6 {
  --zn-po-region-border: rgba(0, 150, 158, 0.34);
  --zn-po-region-bg: rgba(0, 255, 255, 0.1);
  --zn-po-region-bg-strong: rgba(0, 255, 255, 0.18);
  --zn-po-region-row: rgba(0, 255, 255, 0.16);
  --zn-po-region-row-hover: rgba(0, 255, 255, 0.24);
  --zn-po-region-text: #005f66;
}

.zn-po-source-group[class*="zn-po-region-"] {
  border-color: var(--zn-po-region-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9)),
    linear-gradient(135deg, var(--zn-po-region-bg), transparent 68%);
}

.zn-po-source-toggle {
  border: 0;
  color: var(--zn-ink);
}

.zn-po-source-toggle:hover,
.zn-po-source-toggle:focus,
.zn-po-source-toggle:active {
  color: var(--zn-deep-teal);
}

.zn-po-source-toggle-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--zn-deep-teal);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.32rem 0.68rem;
  text-transform: uppercase;
}

.zn-po-source-group[class*="zn-po-region-"] .zn-po-source-toggle-state,
.zn-po-summary-pills .zn-item-meta-pill.zn-po-region-pill[class*="zn-po-region-"],
.zn-po-source-group .zn-item-meta-pill.zn-po-region-pill[class*="zn-po-region-"] {
  border-color: var(--zn-po-region-border);
  background: var(--zn-po-region-bg-strong);
  color: var(--zn-po-region-text);
}

.zn-po-region-pill {
  font-size: 0.72rem;
  line-height: 1.15;
}

.table.zn-po-source-table > :not(caption) > * > * {
  padding: 0.7rem 0.8rem;
}

.table.zn-ordering-matrix-table > :not(caption) > * > * {
  padding: 0.62rem 0.72rem;
}

.zn-ordering-action-center {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 250px;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--zn-stroke-soft);
  border-radius: var(--zn-radius-md);
  background: var(--zn-card);
  box-shadow: var(--zn-shadow-soft);
}

.zn-ordering-matrix-filters {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--zn-stroke-soft);
  border-radius: var(--zn-radius-md);
  background: var(--zn-surface-subtle);
}

.zn-ordering-matrix-filter-control {
  min-width: 180px;
}

.zn-ordering-matrix-allocation-switches {
  min-width: 235px;
}

.zn-ordering-matrix-allocation-switches .form-check-input {
  cursor: pointer;
}

.zn-ordering-matrix-allocation-switches .form-check-label {
  cursor: pointer;
  font-size: 0.8125rem;
}

.zn-ordering-store-cell {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 180px;
}

.zn-ordering-size-curve {
  display: block;
  flex: 0 0 auto;
  width: 52px;
  height: 40px;
  color: var(--zn-deep-teal);
}

.zn-ordering-auto-allocate-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--zn-stroke-soft);
  border-radius: 50%;
  background: var(--zn-surface-quiet);
  color: var(--zn-deep-teal);
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.zn-ordering-auto-allocate-button svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.zn-ordering-auto-allocate-button:hover:not(:disabled),
.zn-ordering-auto-allocate-button:focus-visible:not(:disabled) {
  border-color: var(--zn-teal);
  background: var(--zn-success-soft);
  color: var(--zn-deep-teal);
  transform: translateY(-1px);
}

.zn-ordering-auto-allocate-button:focus-visible {
  outline: 3px solid rgba(12, 122, 113, 0.24);
  outline-offset: 2px;
}

.zn-ordering-auto-allocate-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.zn-ordering-auto-selection-controls {
  align-items: center;
  gap: 0.85rem;
}

.zn-ordering-auto-suggestion-row > * {
  transition: background-color 160ms ease;
}

.zn-ordering-auto-suggestion-row {
  cursor: pointer;
}

.zn-ordering-auto-suggestion-row.is-strong > * {
  background: var(--zn-success-soft);
}

.zn-ordering-auto-suggestion-row.is-medium > * {
  background: var(--zn-warning-soft);
}

.zn-ordering-auto-suggestion-row.is-low > * {
  background: var(--zn-danger-soft);
}

.zn-ordering-auto-suggestion-row.is-strong > :first-child {
  box-shadow: inset 4px 0 0 var(--zn-success);
}

.zn-ordering-auto-suggestion-row.is-medium > :first-child {
  box-shadow: inset 4px 0 0 var(--zn-warning);
}

.zn-ordering-auto-suggestion-row.is-low > :first-child {
  box-shadow: inset 4px 0 0 var(--zn-danger);
}

.zn-ordering-auto-grade-pill {
  min-width: 7.2rem;
  justify-content: center;
}

.zn-ordering-size-curve-axis {
  stroke: var(--zn-stroke);
  stroke-width: 1.5;
}

.zn-ordering-size-curve-area {
  fill: var(--zn-teal);
  fill-opacity: 0.16;
}

.zn-ordering-size-curve-line {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.zn-ordering-style-card {
  padding: 1rem;
  border: 1px solid var(--zn-stroke-soft);
  border-radius: var(--zn-radius-md);
  background: var(--zn-card);
}

.zn-ordering-style-card + .zn-ordering-style-card {
  margin-top: 0.9rem;
}

.zn-ordering-color-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.zn-ordering-color-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1rem;
  line-height: 1;
}

.zn-ordering-color-chip-remove:hover,
.zn-ordering-color-chip-remove:focus-visible {
  background: var(--zn-info-soft);
}

@media (min-width: 992px) {
  .zn-ordering-action-center {
    align-items: flex-end;
  }
}

body.zn-theme-dark .zn-ordering-action-center {
  border-color: var(--zn-dark-border);
  background: var(--zn-dark-surface-soft);
}

body.zn-theme-dark .zn-ordering-matrix-filters {
  border-color: var(--zn-dark-border);
  background: var(--zn-dark-surface-soft);
}

body.zn-theme-dark .zn-ordering-size-curve {
  color: var(--zn-sky);
}

body.zn-theme-dark .zn-ordering-size-curve-axis {
  stroke: var(--zn-dark-border);
}

body.zn-theme-dark .zn-ordering-auto-allocate-button {
  border-color: var(--zn-dark-border);
  background: var(--zn-dark-surface-soft);
  color: var(--zn-sky);
}

body.zn-theme-dark .zn-ordering-auto-allocate-button:hover:not(:disabled),
body.zn-theme-dark .zn-ordering-auto-allocate-button:focus-visible:not(:disabled) {
  border-color: var(--zn-sky);
  background: var(--zn-dark-surface);
  color: var(--zn-ink-inverse);
}

body.zn-theme-dark .zn-ordering-auto-suggestion-row.is-strong > * {
  background: rgba(12, 122, 67, 0.18);
}

body.zn-theme-dark .zn-ordering-auto-suggestion-row.is-medium > * {
  background: rgba(244, 163, 0, 0.18);
}

body.zn-theme-dark .zn-ordering-auto-suggestion-row.is-low > * {
  background: rgba(161, 39, 49, 0.18);
}

body.zn-theme-dark .zn-ordering-auto-suggestion-row.is-strong > :first-child {
  box-shadow: inset 4px 0 0 #5dd68f;
}

body.zn-theme-dark .zn-ordering-auto-suggestion-row.is-medium > :first-child {
  box-shadow: inset 4px 0 0 #ffd07c;
}

body.zn-theme-dark .zn-ordering-auto-suggestion-row.is-low > :first-child {
  box-shadow: inset 4px 0 0 #ff929e;
}

body.zn-theme-dark .zn-ordering-style-card {
  border-color: var(--zn-dark-border);
  background: var(--zn-dark-surface-soft);
}

body.zn-theme-dark .zn-ordering-color-chip-remove:hover,
body.zn-theme-dark .zn-ordering-color-chip-remove:focus-visible {
  background: var(--zn-dark-surface);
}

.zn-ordering-matrix-table .zn-ordering-matrix-color-cell {
  min-width: 86px;
}

.zn-ordering-matrix-scroll {
  max-height: 36rem;
  overflow: auto;
  overscroll-behavior: contain;
}

.zn-ordering-dialog-table-scroll {
  max-height: min(48vh, 28rem);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--zn-stroke-soft);
  border-radius: var(--zn-radius-md);
}

.zn-ordering-dialog-table-scroll .table > thead > tr > th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--zn-card);
  box-shadow: inset 0 -1px 0 var(--zn-stroke-soft);
}

.zn-ordering-matrix-sticky-controls {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  min-height: 6.5rem;
  padding: 0;
  border-bottom: 1px solid var(--zn-stroke-soft);
  background: var(--zn-card);
  box-shadow: 0 0.35rem 0.55rem rgba(22, 45, 51, 0.06);
}

.zn-ordering-matrix-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0.45rem 0.72rem;
  white-space: nowrap;
}

.zn-ordering-matrix-control-row + .zn-ordering-matrix-control-row {
  border-top: 1px solid var(--zn-stroke-soft);
}

.zn-ordering-matrix-scroll .zn-ordering-matrix-table > thead > tr > th {
  position: sticky;
  top: 6.5rem;
  z-index: 4;
  background: var(--zn-card);
  box-shadow: inset 0 -1px 0 var(--zn-stroke-soft);
}

.zn-ordering-matrix-scroll.is-read-only .zn-ordering-matrix-table > thead > tr > th {
  top: 0;
}

.zn-ordering-matrix-qty-input {
  min-width: 76px;
  margin-left: auto;
  font-weight: 700;
}

.zn-ordering-matrix-cell-changed .zn-ordering-matrix-qty-input {
  border-color: var(--zn-teal);
  box-shadow: 0 0 0 0.14rem var(--zn-info-soft);
}

.table.zn-ordering-matrix-table > tbody > tr.zn-ordering-matrix-row[class*="zn-po-region-"] > * {
  background-color: var(--zn-po-region-row);
}

.table.zn-ordering-matrix-table > tbody > tr.zn-ordering-matrix-row[class*="zn-po-region-"]:hover > * {
  background-color: var(--zn-po-region-row-hover);
}

.zn-ordering-matrix-quantity-display {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem;
  min-height: 1.75rem;
}

.zn-ordering-matrix-wand-marker {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: var(--zn-deep-teal);
}

.zn-ordering-matrix-wand-marker svg {
  width: 0.9rem;
  height: 0.9rem;
  fill: currentColor;
}

.zn-ordering-matrix-cell-button {
  display: inline-flex;
  width: auto;
  margin: 0;
  padding: 0.1rem;
  border: 0;
  background: transparent;
  color: var(--zn-ink);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-align: right;
}

.zn-ordering-matrix-cell-button:hover {
  text-decoration: underline;
}

.zn-ordering-matrix-cell-button:focus-visible {
  outline: 2px solid var(--zn-teal);
  outline-offset: -2px;
}

.zn-ordering-matrix-finalized-qty {
  color: var(--zn-ink);
}

.zn-ordering-matrix-finalized-qty.is-po-draft {
  color: var(--zn-danger);
  font-weight: 800 !important;
}

.zn-ordering-matrix-finalized-qty.is-po-official {
  color: var(--zn-success);
  font-weight: 800 !important;
}

.zn-ordering-matrix-po-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.85rem;
  padding: 0.46rem 0.72rem;
  border-bottom: 1px solid var(--zn-stroke-soft);
  background: var(--zn-surface-subtle);
  font-size: 0.75rem;
}

.zn-ordering-matrix-po-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  color: var(--zn-ink-soft);
}

.zn-ordering-matrix-po-legend-swatch {
  display: inline-block;
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 50%;
  background: var(--zn-ink);
}

.zn-ordering-matrix-po-legend-swatch.is-draft {
  background: var(--zn-danger);
}

.zn-ordering-matrix-po-legend-swatch.is-official {
  background: var(--zn-success);
}

body.zn-theme-dark .zn-ordering-matrix-cell-button {
  color: var(--zn-ink-inverse);
}

body.zn-theme-dark .zn-ordering-matrix-wand-marker {
  color: var(--zn-sky);
}

body.zn-theme-dark .zn-ordering-matrix-finalized-qty {
  color: var(--zn-ink-inverse);
}

body.zn-theme-dark .zn-ordering-matrix-po-legend {
  border-color: var(--zn-dark-border);
  background: var(--zn-dark-surface-soft);
}

body.zn-theme-dark .zn-ordering-matrix-po-legend-item {
  color: var(--zn-dark-muted);
}

body.zn-theme-dark .zn-ordering-matrix-cell-changed .zn-ordering-matrix-qty-input {
  border-color: var(--zn-sky);
  box-shadow: 0 0 0 0.14rem var(--zn-dark-surface);
}

body.zn-theme-dark .zn-ordering-matrix-sticky-controls,
body.zn-theme-dark .zn-ordering-matrix-scroll .zn-ordering-matrix-table > thead > tr > th {
  border-color: var(--zn-dark-border);
  background: var(--zn-dark-surface-soft);
}

body.zn-theme-dark .zn-ordering-dialog-table-scroll {
  border-color: var(--zn-dark-border);
}

body.zn-theme-dark .zn-ordering-dialog-table-scroll .table > thead > tr > th {
  background: var(--zn-dark-surface-soft);
  box-shadow: inset 0 -1px 0 var(--zn-dark-border);
}

body.zn-theme-dark .zn-ordering-matrix-scroll .zn-ordering-matrix-table > thead > tr > th {
  box-shadow: inset 0 -1px 0 var(--zn-dark-border);
}

body.zn-theme-dark .zn-ordering-matrix-sticky-controls {
  box-shadow: 0 0.35rem 0.55rem rgba(0, 0, 0, 0.24);
}

@media (max-width: 767.98px) {
  .zn-ordering-matrix-scroll {
    max-height: 30rem;
  }

  .zn-ordering-dialog-table-scroll {
    max-height: min(44vh, 22rem);
  }

  .zn-ordering-matrix-sticky-controls {
    min-height: 8.9rem;
  }

  .zn-ordering-matrix-control-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .zn-ordering-matrix-scroll .zn-ordering-matrix-table > thead > tr > th {
    top: 8.9rem;
  }
}

.table.zn-po-source-table tbody tr {
  cursor: pointer;
}

.table.zn-po-source-table tbody tr[class*="zn-po-region-"] > * {
  background: var(--zn-po-region-row);
}

.table.zn-po-source-table tbody tr[class*="zn-po-region-"]:hover > * {
  background: var(--zn-po-region-row-hover);
}

.table.zn-po-source-table tbody tr.zn-table-row-selected > * {
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.16), rgba(15, 118, 110, 0.12)),
    var(--zn-po-region-row, #fff7e3);
  box-shadow: inset 3px 0 0 rgba(15, 118, 110, 0.72);
}

.table.zn-po-selection-table > :not(caption) > * > * {
  padding: 0.76rem 0.72rem;
}

.zn-po-summary-pills {
  gap: 0.35rem;
}

.zn-po-summary-pills .zn-item-meta-pill {
  font-size: 0.72rem;
  line-height: 1.15;
  padding: 0.26rem 0.56rem;
  white-space: nowrap;
}

.zn-material-po-page-header {
  background:
    radial-gradient(circle at top right, rgba(43, 140, 255, 0.1), transparent 28%),
    radial-gradient(circle at bottom left, rgba(15, 118, 110, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 246, 237, 0.96));
}

.zn-material-po-header-card {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(210px, 0.7fr) minmax(0, 2.3fr);
  gap: 1.4rem;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: var(--zn-radius-xl);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.1), transparent 34%),
    radial-gradient(circle at bottom right, rgba(244, 163, 0, 0.13), transparent 30%),
    linear-gradient(180deg, rgba(255, 253, 249, 0.99), rgba(248, 243, 233, 0.97));
  box-shadow: var(--zn-shadow-soft);
  padding: 1.3rem;
}

.zn-material-po-header-intro {
  align-self: stretch;
  border-right: 1px solid rgba(15, 118, 110, 0.12);
  padding: 0.2rem 1.35rem 0.2rem 0.1rem;
}

.zn-material-po-header-intro .h5,
.zn-material-po-lines-toolbar .h5 {
  color: var(--zn-deep-teal);
}

.zn-material-po-header-fields {
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(390px, 1.35fr);
  align-items: end;
  gap: 1.1rem;
  min-width: 0;
}

.zn-material-po-date-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.zn-material-po-lines-card {
  border-color: rgba(15, 118, 110, 0.16);
}

.offcanvas.zn-material-po-picker-drawer {
  --bs-offcanvas-width: min(580px, 100vw);
  width: var(--bs-offcanvas-width) !important;
  max-width: 100vw;
}

.zn-material-po-picker-card {
  border-color: rgba(15, 118, 110, 0.16);
  background:
    radial-gradient(circle at top right, rgba(43, 140, 255, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 251, 250, 0.9));
}

.zn-material-po-picker-copy {
  min-width: 0;
}

.zn-material-po-lines-toolbar {
  background:
    radial-gradient(circle at top right, rgba(244, 163, 0, 0.16), transparent 27%),
    radial-gradient(circle at 18% 0%, rgba(15, 118, 110, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(255, 252, 246, 0.99), rgba(244, 249, 247, 0.97));
  padding: 1.15rem 1.3rem;
}

.zn-material-po-lines-list {
  display: grid;
  gap: 0.8rem;
  background: linear-gradient(180deg, rgba(252, 251, 248, 0.82), rgba(246, 249, 247, 0.76));
  padding: 1rem 1.3rem 1.2rem;
}

.zn-material-po-line {
  position: relative;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: var(--zn-radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 18px rgba(29, 48, 69, 0.04);
  padding: 1rem 1rem 1rem 3.75rem;
}

.zn-material-po-line-number {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--zn-deep-teal);
  font-family: var(--zn-font-display);
  font-size: 0.82rem;
  font-weight: 700;
}

.zn-material-po-line-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.85fr) minmax(185px, 1.35fr) repeat(3, minmax(112px, 0.78fr)) auto;
  align-items: end;
  gap: 0.8rem;
}

.zn-material-po-field {
  min-width: 0;
}

.zn-material-po-field .form-label {
  color: var(--zn-ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.38rem;
}

.zn-material-po-remove-wrap {
  display: flex;
  align-items: center;
  min-height: 2.45rem;
}

.zn-material-po-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(15, 118, 110, 0.14);
  background:
    radial-gradient(circle at bottom left, rgba(15, 118, 110, 0.1), transparent 36%),
    linear-gradient(180deg, rgba(249, 252, 251, 0.98), rgba(242, 248, 246, 0.98));
  padding: 1rem 1.3rem;
}

.zn-material-po-summary {
  flex: 1 1 320px;
}

.zn-material-po-action-buttons {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.zn-material-po-action-buttons .btn {
  min-width: 180px;
}

@media (max-width: 1199.98px) {
  .zn-material-po-header-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .zn-material-po-header-intro {
    border-right: 0;
    border-bottom: 1px solid rgba(15, 118, 110, 0.12);
    padding: 0 0 1rem;
  }

  .zn-material-po-line-grid {
    grid-template-columns: minmax(220px, 1.45fr) minmax(190px, 1.1fr) repeat(2, minmax(132px, 0.8fr));
  }

  .zn-material-po-remove-wrap {
    grid-column: 4;
  }
}

@media (max-width: 767.98px) {
  .zn-material-po-header-card,
  .zn-material-po-lines-toolbar,
  .zn-material-po-lines-list,
  .zn-material-po-actions {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .zn-material-po-header-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .zn-material-po-line-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zn-material-po-field-name,
  .zn-material-po-remove-wrap {
    grid-column: span 2;
  }

  .zn-material-po-remove-wrap {
    justify-content: flex-end;
  }
}

@media (max-width: 575.98px) {
  .zn-material-po-header-card {
    gap: 1rem;
    padding: 1rem;
  }

  .zn-material-po-date-grid,
  .zn-material-po-line-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .zn-material-po-line {
    padding: 3.55rem 0.85rem 0.85rem;
  }

  .zn-material-po-line-number {
    top: 0.85rem;
    left: 0.85rem;
  }

  .zn-material-po-field-name,
  .zn-material-po-remove-wrap {
    grid-column: auto;
  }

  .zn-material-po-remove-wrap,
  .zn-material-po-action-buttons {
    justify-content: stretch;
  }

  .zn-material-po-action-buttons {
    width: 100%;
  }

  .zn-material-po-action-buttons .btn {
    flex: 1 1 100%;
    width: 100%;
  }
}

.zn-po-control-pills {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.18rem;
  scrollbar-width: thin;
}

.zn-po-control-pills .zn-item-meta-pill {
  flex: 0 0 auto;
  font-size: 0.82rem;
  line-height: 1.2;
  padding: 0.42rem 0.78rem;
}

.zn-po-control-detail-pills {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.12rem;
  scrollbar-width: thin;
}

.zn-po-control-detail-pills .zn-item-meta-pill {
  flex: 0 0 auto;
  font-size: 0.76rem;
  line-height: 1.18;
  padding: 0.24rem 0.54rem;
}

.zn-po-size-cell {
  min-width: 44px;
  color: var(--zn-deep-teal);
  font-weight: 700;
}

.zn-item-sku-cell {
  min-width: 170px;
}

.zn-item-sku-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--zn-deep-teal);
  font-family: var(--zn-font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.42rem 0.8rem;
}

.zn-item-name {
  color: var(--zn-ink);
  font-size: 1rem;
  line-height: 1.35;
}

.zn-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.zn-item-meta-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--zn-stroke);
  border-radius: 999px;
  background: #fff8eb;
  color: #5e4300;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.35rem 0.68rem;
}

.zn-item-meta-pill:nth-child(1) {
  border-color: rgba(15, 118, 110, 0.18);
  background: rgba(15, 118, 110, 0.1);
  color: var(--zn-deep-teal);
}

.zn-item-meta-pill:nth-child(2) {
  border-color: rgba(244, 163, 0, 0.22);
  background: rgba(244, 163, 0, 0.12);
  color: #7a4d00;
}

.zn-item-meta-pill:nth-child(3) {
  border-color: rgba(43, 140, 255, 0.2);
  background: rgba(43, 140, 255, 0.12);
  color: var(--zn-info);
}

.zn-item-price-stack {
  display: grid;
  gap: 0.45rem;
  min-width: 138px;
}

.zn-item-price-stack.is-single {
  min-width: 120px;
}

.zn-item-price-stack > div {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
}

.zn-item-price-stack > div:first-child {
  border-color: rgba(244, 163, 0, 0.18);
  background: rgba(255, 232, 196, 0.42);
}

.zn-item-price-stack > div:last-child {
  border-color: rgba(43, 140, 255, 0.14);
  background: rgba(221, 235, 255, 0.38);
}

.zn-item-price-stack.is-single > div:first-child {
  border-color: rgba(15, 118, 110, 0.16);
  background: rgba(15, 118, 110, 0.08);
}

.zn-item-price-stack strong,
.zn-item-price-stack span {
  color: var(--zn-ink);
}

.zn-item-price-label {
  color: var(--zn-muted);
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.1rem;
  text-transform: uppercase;
}

.zn-item-row-action {
  border-color: rgba(15, 118, 110, 0.32);
  color: var(--zn-deep-teal);
  min-width: 118px;
}

.zn-item-row-action:hover,
.zn-item-row-action:focus,
.zn-item-row-action:active {
  background: rgba(15, 118, 110, 0.1);
  border-color: rgba(15, 118, 110, 0.42);
  color: #083835;
}

.zn-branch-presence-grid {
  display: grid;
  gap: 0.85rem;
}

.zn-branch-presence-card {
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: var(--zn-radius-lg);
  background:
    radial-gradient(circle at top right, rgba(43, 140, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 251, 249, 0.94));
  box-shadow: var(--zn-shadow-soft);
  padding: 1rem 1.05rem;
}

.zn-branch-presence-card strong {
  color: var(--zn-ink);
  font-size: 0.95rem;
  line-height: 1.4;
}

.zn-branch-row-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--zn-deep-teal);
  font-family: var(--zn-font-display);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.28rem 0.48rem;
}

.table.zn-po-history-table thead th {
  color: var(--zn-deep-teal);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.table.zn-po-history-table > :not(caption) > * > * {
  padding: 1rem 1.1rem;
}

.zn-po-history-row > * {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 243, 0.94));
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.zn-po-history-row:hover > * {
  background:
    linear-gradient(90deg, rgba(246, 252, 250, 0.98), rgba(255, 247, 233, 0.94));
}

.zn-po-history-row.is-pending > :first-child {
  box-shadow: inset 4px 0 0 rgba(244, 163, 0, 0.72);
}

.zn-po-history-row.is-exact > :first-child {
  box-shadow: inset 4px 0 0 rgba(15, 118, 110, 0.78);
}

.zn-po-history-row.is-partial > :first-child {
  box-shadow: inset 4px 0 0 rgba(43, 140, 255, 0.74);
}

.zn-po-qty-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.12rem;
  min-width: 82px;
}

.zn-po-qty-stack strong {
  color: var(--zn-ink);
  font-size: 1rem;
  line-height: 1.1;
}

.zn-po-rr-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.38rem;
}

.zn-po-rr-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--zn-ink);
}

.zn-performance-chart-shell {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.zn-performance-chart-canvas {
  min-height: 320px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: var(--zn-radius-lg);
  background:
    radial-gradient(circle at top right, rgba(244, 163, 0, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 250, 248, 0.94));
  padding: 0.75rem;
}

.zn-performance-chart-canvas.is-bar {
  min-height: 286px;
}

.zn-performance-morris-chart {
  width: 100%;
  height: 288px;
}

.zn-performance-morris-chart.is-bar {
  height: 238px;
}

.zn-performance-morris-chart svg text {
  fill: #64748b !important;
  font-family: var(--zn-font-base) !important;
}

.zn-performance-morris-chart .morris-hover.morris-default-style {
  border-radius: var(--zn-radius-md);
  border: 1px solid rgba(15, 118, 110, 0.16);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--zn-shadow-soft);
  font-family: var(--zn-font-base);
  padding: 0.75rem 0.85rem;
}

.zn-performance-morris-chart .morris-hover-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--zn-ink);
  font-size: 0.84rem;
  margin-top: 0.2rem;
}

.zn-morris-hover-title {
  color: var(--zn-deep-teal);
  font-family: var(--zn-font-display);
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.zn-performance-period-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.zn-performance-list-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.85rem;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: var(--zn-radius-md);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.85rem 0.95rem;
}

@media (min-width: 992px) {
  .zn-items-apply-button {
    min-width: 180px;
    width: auto;
  }

  .zn-material-filter-actions {
    flex-wrap: nowrap;
  }

  .zn-material-filter-actions .btn {
    flex: 0 1 auto;
  }
}

@media (min-width: 576px) {
  .zn-branch-presence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .zn-performance-chart-canvas {
    min-height: 272px;
  }

  .zn-performance-chart-canvas.is-bar {
    min-height: 248px;
  }

  .zn-performance-morris-chart {
    height: 240px;
  }

  .zn-performance-morris-chart.is-bar {
    height: 210px;
  }
}

.zn-table-card {
  border: 1px solid var(--zn-stroke-soft);
  border-radius: var(--zn-radius-lg);
  background: var(--zn-card);
  box-shadow: var(--zn-shadow-soft);
  overflow: hidden;
}

.zn-table-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-bottom: 1px solid var(--zn-stroke-soft);
  background: #fffaf2;
  padding: 1rem 1.1rem;
}

.zn-table-toolbar-compact {
  gap: 0.55rem;
  padding: 0.82rem 0.95rem;
}

.zn-table-card-body {
  padding: 0.9rem 0.95rem;
}

/* Focused dialog tables retain the shared table-card spacing instead of
   using the edge-to-edge register treatment. */
.zn-dialog-table .zn-table-card-body {
  padding: 0.6rem 0.75rem;
}

.zn-dialog-table th,
.zn-dialog-table td {
  padding: 0.6rem 0.7rem;
  vertical-align: middle;
}

.zn-dialog-link-action {
  color: var(--zn-deep-teal);
  font-weight: 700;
  text-decoration: none;
}

.zn-dialog-link-action:hover,
.zn-dialog-link-action:focus {
  color: var(--zn-info);
  text-decoration: underline;
}

.zn-table-row-selected > * {
  background: #fff7e3;
}

.zn-inline-expand > * {
  background: #fffbf3;
}

.zn-dense-table .table > :not(caption) > * > * {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  font-size: 0.92rem;
}

.zn-empty-state {
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px dashed #d9c79f;
  border-radius: var(--zn-radius-lg);
  background: #fffaf2;
  min-height: 240px;
  padding: 1.5rem;
}

.zn-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: #fff0cf;
  color: #7a4d00;
  font-family: var(--zn-font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

@keyframes zn-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.zn-skeleton-panel {
  border: 1px solid var(--zn-stroke-soft);
  border-radius: var(--zn-radius-lg);
  background: #fffdf8;
  padding: 1.1rem;
}

.zn-skeleton-line {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f3e6c9 0%, #fff8e9 50%, #f3e6c9 100%);
  background-size: 200% 100%;
  animation: zn-shimmer 1.6s linear infinite;
  margin-bottom: 0.7rem;
}

.zn-skeleton-line.is-short {
  width: 38%;
}

.zn-skeleton-line.is-medium {
  width: 62%;
}

.zn-skeleton-line.is-long {
  width: 100%;
}

.zn-state-banner {
  border-radius: var(--zn-radius-lg);
  border: 1px solid var(--zn-stroke-soft);
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem 1.05rem;
}

.zn-readonly-panel {
  border: 1px solid var(--zn-stroke-soft);
  border-radius: var(--zn-radius-lg);
  background: #f9fbfe;
  box-shadow: var(--zn-shadow-soft);
  padding: 1.05rem;
}

.zn-readonly-panel-compact {
  padding: 0.85rem 0.95rem;
}

.zn-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
}

.zn-detail-grid-compact {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.65rem;
}

.zn-detail-item {
  border: 1px solid var(--zn-stroke-soft);
  border-radius: var(--zn-radius-md);
  background: rgba(255, 255, 255, 0.92);
  padding: 0.9rem;
}

.zn-detail-item-compact {
  padding: 0.68rem 0.74rem;
}

.zn-detail-label {
  display: block;
  color: var(--zn-muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
}

.zn-detail-value {
  color: var(--zn-ink);
  font-weight: 700;
}

.zn-detail-grid-labeled .zn-detail-item > .note,
.zn-issuance-document-details .zn-detail-item > .note {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--zn-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.zn-detail-grid-labeled .zn-detail-item > .note::after,
.zn-issuance-document-details .zn-detail-item > .note::after {
  content: ':';
}

.zn-detail-grid-labeled .zn-detail-item > strong,
.zn-issuance-document-details .zn-detail-item > strong {
  display: block;
  color: var(--zn-ink);
}

.zn-upload-dropzone {
  border: 2px dashed #d9c79f;
  border-radius: var(--zn-radius-xl);
  background: linear-gradient(180deg, #fffaf1 0%, #fff7ea 100%);
  padding: 1.4rem;
  text-align: center;
}

.zn-ordering-style-summary {
  display: flex;
  align-items: stretch;
  gap: 1rem;
}

.zn-ordering-style-summary-details {
  min-width: 0;
  flex: 1 1 auto;
}

.zn-ordering-style-image-card {
  width: 10.5rem;
  min-height: 10.5rem;
  flex: 0 0 auto;
  border: 1px solid var(--zn-stroke-soft);
  border-radius: var(--zn-radius-lg);
  background: var(--zn-surface-subtle);
  box-shadow: var(--zn-shadow-soft);
  overflow: hidden;
  padding: 0.42rem;
}

.zn-ordering-style-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 9.65rem;
  border-radius: var(--zn-radius-md);
  background: var(--zn-surface-quiet);
  object-fit: cover;
}

@media (max-width: 767.98px) {
  .zn-ordering-style-summary {
    flex-direction: column;
  }

  .zn-ordering-style-image-card {
    width: 100%;
    min-height: 13rem;
  }

  .zn-ordering-style-image {
    min-height: 12.15rem;
  }
}

.zn-ordering-style-image-preview {
  display: block;
  width: min(100%, 15rem);
  max-height: 15rem;
  margin: 0 auto;
  border: 1px solid var(--zn-stroke-soft);
  border-radius: var(--zn-radius-lg);
  background: var(--zn-surface-subtle);
  object-fit: contain;
}

/* Inventory Reports: one-at-a-time, image-led ranking review. */
.zn-best-selling-frame {
  display: grid;
  grid-template-columns: minmax(15rem, 0.85fr) minmax(0, 1.15fr);
  overflow: hidden;
  border: 1px solid var(--zn-stroke-soft);
  border-radius: var(--zn-radius-xl);
  background: var(--zn-card);
  box-shadow: var(--zn-shadow-soft);
}

.zn-best-selling-image-shell {
  display: grid;
  place-items: center;
  min-height: 21rem;
  padding: 1rem;
  background: var(--zn-surface-subtle);
}

.zn-best-selling-image {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 28rem;
  border-radius: var(--zn-radius-lg);
  background: var(--zn-surface-quiet);
  object-fit: contain;
}

.zn-best-selling-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 1.25rem;
}

.zn-best-selling-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.4rem;
  min-height: 3.4rem;
  border-radius: 50%;
  background: var(--zn-deep-teal);
  color: var(--zn-ink-inverse);
  font-family: var(--zn-font-display);
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: var(--zn-shadow-soft);
}

.zn-best-selling-details {
  margin-top: 1.4rem;
}

.zn-best-selling-navigator {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--zn-stroke-soft);
}

.zn-best-selling-position {
  color: var(--zn-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

/* Inventory Reports: compact category and price-band performance cards. */
.zn-inventory-performance-switch {
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0;
}

.zn-inventory-performance-switch .form-check-input {
  float: none;
  flex: 0 0 auto;
  margin: 0;
}

.zn-inventory-performance-switch .form-check-label {
  color: var(--zn-ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}

.zn-inventory-performance-kpi {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.zn-inventory-performance-kpi strong {
  color: var(--zn-deep-teal);
  font-family: var(--zn-font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.15;
}

.zn-inventory-performance-kpi.is-reconciliation strong {
  color: var(--zn-ink-soft);
}

.zn-inventory-executive-brief {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 0.32fr);
  gap: 1.25rem;
  align-items: center;
  padding: 1.35rem;
  border: 1px solid var(--zn-stroke-soft);
  border-radius: var(--zn-radius-xl);
  background:
    radial-gradient(circle at 98% 5%, rgba(43, 140, 255, 0.16), transparent 42%),
    linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(255, 250, 241, 0.86));
  box-shadow: var(--zn-shadow-soft);
}

.zn-inventory-executive-brief h3 {
  color: var(--zn-deep-teal);
  font-family: var(--zn-font-display);
}

.zn-inventory-executive-brief p {
  max-width: 58rem;
  color: var(--zn-ink-soft);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.65;
}

.zn-inventory-executive-brief-meta {
  display: grid;
  gap: 0.3rem;
  align-self: stretch;
  align-content: center;
  padding: 1rem;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: var(--zn-radius-lg);
  background: rgba(255, 255, 255, 0.64);
}

.zn-inventory-executive-brief-meta span {
  color: var(--zn-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.zn-inventory-executive-brief-meta strong {
  color: var(--zn-deep-teal);
  font-family: var(--zn-font-display);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1.15;
}

.zn-inventory-chart-deck {
  overflow: hidden;
}

.zn-inventory-chart-deck-header {
  gap: 1rem;
}

.zn-inventory-chart-view-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.zn-inventory-chart-stage-tabs {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--zn-stroke-soft);
  background: var(--zn-surface-subtle);
  scrollbar-width: thin;
}

.zn-inventory-chart-stage {
  flex: 0 0 auto;
  min-height: 2.4rem;
  padding: 0.46rem 0.82rem;
  border: 1px solid var(--zn-stroke-soft);
  border-radius: 999px;
  background: var(--zn-card);
  color: var(--zn-ink-soft);
  font-size: 0.79rem;
  font-weight: 800;
  line-height: 1.2;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.zn-inventory-chart-stage:hover:not(:disabled),
.zn-inventory-chart-stage:focus-visible {
  border-color: var(--zn-teal);
  color: var(--zn-deep-teal);
  transform: translateY(-1px);
}

.zn-inventory-chart-stage.is-active {
  border-color: var(--zn-deep-teal);
  background: var(--zn-deep-teal);
  color: var(--zn-ink-inverse);
  box-shadow: var(--zn-shadow-soft);
}

.zn-inventory-chart-stage.is-locked,
.zn-inventory-chart-stage:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.zn-inventory-chart-deck-body {
  display: grid;
  grid-template-columns: minmax(13rem, 0.31fr) minmax(0, 0.69fr);
  gap: 1.25rem;
  min-width: 0;
  align-items: center;
  padding: 1.25rem;
}

.zn-inventory-chart-deck-copy {
  display: flex;
  min-height: 18rem;
  flex-direction: column;
  justify-content: center;
  padding: 1.15rem;
  border: 1px solid var(--zn-stroke-soft);
  border-radius: var(--zn-radius-lg);
  background: linear-gradient(145deg, rgba(15, 118, 110, 0.1), rgba(43, 140, 255, 0.08));
}

.zn-inventory-chart-deck-copy > strong {
  margin-top: 0.3rem;
  color: var(--zn-deep-teal);
  font-family: var(--zn-font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.65rem);
  line-height: 1;
}

.zn-inventory-chart-deck-copy .h5 {
  color: var(--zn-ink);
  font-family: var(--zn-font-display);
}

.zn-inventory-performance-morris {
  height: 20rem;
  min-width: 0;
  max-width: 100%;
  min-height: 20rem;
}

.zn-inventory-executive-chart {
  display: grid;
}

.zn-inventory-executive-chart-row {
  display: grid;
  grid-template-columns: minmax(8rem, 0.42fr) minmax(0, 0.58fr);
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--zn-stroke-soft);
}

.zn-inventory-executive-chart-row:last-child {
  border-bottom: 0;
}

.zn-inventory-executive-chart-label {
  min-width: 0;
}

.zn-inventory-executive-chart-label .h6 {
  color: var(--zn-ink);
  font-family: var(--zn-font-display);
  overflow-wrap: anywhere;
}

.zn-inventory-executive-chart-label span,
.zn-inventory-executive-chart-bars span {
  color: var(--zn-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.zn-inventory-executive-chart-bars {
  display: grid;
  gap: 0.45rem;
}

.zn-inventory-executive-chart-bars > div {
  display: grid;
  grid-template-columns: 5.6rem minmax(4rem, 1fr);
  gap: 0.55rem;
  align-items: center;
}

.zn-inventory-performance-meter.is-ending {
  color: var(--zn-sky);
}

.zn-inventory-performance-meter.is-ending::-webkit-progress-value {
  background: var(--zn-sky);
}

.zn-inventory-performance-meter.is-ending::-moz-progress-bar {
  background: var(--zn-sky);
}

.zn-inventory-executive-guard {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem;
  border: 1px dashed var(--zn-stroke);
  border-radius: var(--zn-radius-xl);
  background: var(--zn-surface-subtle);
}

.zn-inventory-executive-guard h3 {
  color: var(--zn-ink);
  font-family: var(--zn-font-display);
}

.zn-inventory-executive-guard p {
  color: var(--zn-muted);
}

.zn-inventory-executive-guard-count {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-top: 1rem;
  border-top: 1px solid var(--zn-stroke-soft);
}

.zn-inventory-executive-guard-count strong {
  color: var(--zn-warning);
  font-family: var(--zn-font-display);
  font-size: 1.55rem;
}

.zn-inventory-executive-guard-count span {
  color: var(--zn-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.zn-inventory-performance-list {
  display: grid;
  gap: 0;
}

.zn-inventory-performance-row {
  display: grid;
  grid-template-columns: minmax(13rem, 0.9fr) minmax(18rem, 1.1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--zn-stroke-soft);
}

.zn-inventory-performance-row:last-child {
  border-bottom: 0;
}

.zn-inventory-performance-row-title {
  min-width: 0;
}

.zn-inventory-performance-row-title .h6 {
  color: var(--zn-ink);
  font-family: var(--zn-font-display);
}

.zn-inventory-performance-meters {
  display: grid;
  gap: 0.38rem;
  color: var(--zn-muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.zn-inventory-performance-meters > span {
  display: grid;
  grid-template-columns: 4.65rem minmax(5rem, 1fr);
  align-items: center;
  gap: 0.5rem;
}

.zn-inventory-performance-meter {
  display: block;
  width: 100%;
  height: 0.38rem;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--zn-surface-quiet);
  color: var(--zn-teal);
}

.zn-inventory-performance-meter::-webkit-progress-bar {
  background: var(--zn-surface-quiet);
}

.zn-inventory-performance-meter::-webkit-progress-value {
  border-radius: 999px;
  background: var(--zn-teal);
}

.zn-inventory-performance-meter::-moz-progress-bar {
  border-radius: 999px;
  background: var(--zn-teal);
}

.zn-inventory-performance-meter.is-sold {
  color: var(--zn-sun);
}

.zn-inventory-performance-meter.is-sold::-webkit-progress-value {
  background: var(--zn-sun);
}

.zn-inventory-performance-meter.is-sold::-moz-progress-bar {
  background: var(--zn-sun);
}

.zn-inventory-performance-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
  margin: 0;
}

.zn-inventory-performance-stats div {
  min-width: 0;
}

.zn-inventory-performance-stats dt {
  margin: 0 0 0.1rem;
  color: var(--zn-muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
}

.zn-inventory-performance-stats dd {
  margin: 0;
  color: var(--zn-ink);
  font-size: 0.88rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

/* Inventory Reports: focused executive presentation mode. */
.zn-inventory-presentation {
  min-height: 100vh;
  min-height: 100dvh;
  overflow: auto;
  background:
    radial-gradient(circle at 92% 2%, rgba(43, 140, 255, 0.26), transparent 32%),
    radial-gradient(circle at 5% 96%, rgba(15, 118, 110, 0.3), transparent 38%),
    var(--zn-surface-dark);
  color: var(--zn-ink-inverse);
}

.zn-inventory-presentation-shell,
.zn-inventory-presentation-empty {
  width: min(100%, 100rem);
  min-height: 100dvh;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2.5rem);
}

.zn-inventory-presentation-shell {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.3vw, 1.75rem);
}

.zn-inventory-presentation-header,
.zn-inventory-presentation-stage-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
}

.zn-inventory-presentation-eyebrow,
.zn-inventory-presentation-stage-heading > div > span {
  color: #9ef0e6;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.zn-inventory-presentation-header h1,
.zn-inventory-presentation-empty h1 {
  margin: 0.45rem 0 0.4rem;
  color: var(--zn-ink-inverse);
  font-family: var(--zn-font-display);
  font-size: clamp(2rem, 4.2vw, 4rem);
  letter-spacing: -0.05em;
  line-height: 1.04;
}

.zn-inventory-presentation-header p,
.zn-inventory-presentation-stage-heading p,
.zn-inventory-presentation-empty p {
  max-width: 48rem;
  margin: 0;
  color: #c6d0df;
  font-size: clamp(0.92rem, 1.4vw, 1.05rem);
  font-weight: 600;
  line-height: 1.55;
}

.zn-inventory-presentation-actions,
.zn-inventory-presentation-view-toggle {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.zn-inventory-presentation .btn-zn-soft {
  border-color: rgba(246, 248, 252, 0.25);
  background: rgba(246, 248, 252, 0.12);
  color: var(--zn-ink-inverse);
}

.zn-inventory-presentation .btn-zn-soft:hover,
.zn-inventory-presentation .btn-zn-soft:focus-visible {
  border-color: #9ef0e6;
  background: rgba(158, 240, 230, 0.15);
  color: var(--zn-ink-inverse);
}

.zn-inventory-presentation-tabs {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.35rem;
  border: 1px solid rgba(246, 248, 252, 0.16);
  border-radius: var(--zn-radius-lg);
  background: rgba(7, 14, 24, 0.28);
  scrollbar-width: thin;
}

.zn-inventory-presentation-tab {
  flex: 1 0 auto;
  min-height: 2.7rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid transparent;
  border-radius: var(--zn-radius-md);
  background: transparent;
  color: #c6d0df;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.zn-inventory-presentation-tab:hover,
.zn-inventory-presentation-tab:focus-visible {
  border-color: rgba(158, 240, 230, 0.45);
  color: var(--zn-ink-inverse);
  transform: translateY(-1px);
}

.zn-inventory-presentation-tab.is-active {
  border-color: #9ef0e6;
  background: rgba(15, 118, 110, 0.56);
  color: var(--zn-ink-inverse);
  box-shadow: 0 10px 22px rgba(1, 9, 18, 0.22);
}

.zn-inventory-presentation-stage {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  flex: 1 0 auto;
}

.zn-inventory-presentation-stage-heading h2 {
  max-width: 54rem;
  margin: 0.35rem 0 0.55rem;
  color: var(--zn-ink-inverse);
  font-family: var(--zn-font-display);
  font-size: clamp(1.45rem, 2.8vw, 2.5rem);
  line-height: 1.18;
}

.zn-inventory-presentation-view-toggle {
  align-self: center;
}

.zn-inventory-presentation .btn-outline-light {
  border-color: rgba(246, 248, 252, 0.36);
  color: var(--zn-ink-inverse);
}

.zn-inventory-presentation-figures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.65rem, 1.5vw, 1rem);
}

.zn-inventory-presentation-figure {
  display: grid;
  min-height: 8.4rem;
  align-content: space-between;
  gap: 0.85rem;
  padding: clamp(0.9rem, 1.8vw, 1.25rem);
  border: 1px solid rgba(246, 248, 252, 0.18);
  border-radius: var(--zn-radius-lg);
  background: rgba(246, 248, 252, 0.07);
  box-shadow: 0 14px 32px rgba(1, 9, 18, 0.18);
}

.zn-inventory-presentation-figure span {
  color: #c6d0df;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.zn-inventory-presentation-figure strong {
  color: var(--zn-ink-inverse);
  font-family: var(--zn-font-display);
  font-size: clamp(1.2rem, 2.1vw, 2rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.zn-inventory-presentation-figure.is-strong {
  border-color: #9ef0e6;
  background: linear-gradient(145deg, rgba(15, 118, 110, 0.66), rgba(12, 74, 70, 0.65));
}

.zn-inventory-presentation-figure.is-sky strong {
  color: #8ec8ff;
}

.zn-inventory-presentation-figure.is-sun strong {
  color: #ffd37f;
}

.zn-inventory-presentation-figure.is-neutral strong {
  color: #d6deeb;
}

.zn-inventory-presentation-chart-card {
  min-width: 0;
  padding: clamp(0.9rem, 1.7vw, 1.25rem);
  border: 1px solid rgba(246, 248, 252, 0.18);
  border-radius: var(--zn-radius-xl);
  background: rgba(7, 14, 24, 0.38);
  box-shadow: 0 18px 50px rgba(1, 9, 18, 0.22);
}

.zn-inventory-presentation-chart-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
  color: #c6d0df;
  font-size: 0.78rem;
  font-weight: 700;
}

.zn-inventory-presentation-chart {
  height: clamp(20rem, 48vh, 33rem);
  min-height: 20rem;
}

.zn-inventory-presentation-chart.is-medium {
  height: 35rem;
}

.zn-inventory-presentation-chart.is-tall {
  height: 46rem;
}

.zn-inventory-presentation-empty {
  display: flex;
  max-width: 48rem;
  flex-direction: column;
  justify-content: center;
  gap: 1.1rem;
}

.zn-inventory-presentation-empty .btn {
  align-self: flex-start;
}

@media (max-width: 767.98px) {
  .zn-inventory-presentation-header,
  .zn-inventory-presentation-stage-heading {
    flex-direction: column;
  }

  .zn-inventory-presentation-actions,
  .zn-inventory-presentation-view-toggle {
    justify-content: flex-start;
  }

  .zn-inventory-presentation-figures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zn-inventory-presentation-figure {
    min-height: 7.25rem;
  }

  .zn-inventory-presentation-chart {
    height: 18rem;
    min-height: 18rem;
  }

  .zn-inventory-presentation-chart.is-medium {
    height: 27rem;
  }

  .zn-inventory-presentation-chart.is-tall {
    height: 38rem;
  }
}

@media (max-width: 399.98px) {
  .zn-inventory-presentation-actions .btn {
    width: 100%;
  }

  .zn-inventory-presentation-figure strong {
    font-size: 1.05rem;
  }
}

@media (max-width: 767.98px) {
  .zn-best-selling-frame {
    grid-template-columns: 1fr;
  }

  .zn-best-selling-image-shell {
    min-height: 16rem;
  }

  .zn-best-selling-image {
    max-height: 22rem;
  }

  .zn-inventory-performance-row {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding: 1rem;
  }

  .zn-inventory-performance-stats {
    gap: 0.6rem 0.75rem;
  }

  .zn-inventory-executive-brief {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .zn-inventory-chart-deck-header {
    align-items: flex-start;
  }

  .zn-inventory-chart-stage-tabs {
    padding: 0.85rem 1rem;
  }

  .zn-inventory-chart-deck-body {
    grid-template-columns: minmax(0, 1fr);
    padding: 1rem;
  }

  .zn-inventory-chart-deck-copy {
    min-height: 0;
  }

  .zn-inventory-performance-morris {
    height: 17rem;
    min-height: 17rem;
  }

  .zn-inventory-executive-chart-row {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    padding: 0.9rem 1rem;
  }

  .zn-inventory-executive-guard {
    padding: 1.2rem;
  }
}

/* Repeat Order: worksheet-first planning workspace */
.zn-repeat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.42fr);
  gap: 1rem;
}

.zn-repeat-source-card,
.zn-repeat-progress-card,
.zn-repeat-metric-card {
  border: 1px solid var(--zn-stroke-soft);
  border-radius: var(--zn-radius-lg);
  background: var(--zn-surface-subtle);
  box-shadow: var(--zn-shadow-soft);
}

.zn-repeat-source-card,
.zn-repeat-progress-card {
  padding: 1rem;
}

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

.zn-repeat-metric-card {
  padding: 0.85rem;
}

.zn-repeat-metric-value {
  color: var(--zn-ink);
  font-family: var(--zn-font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.zn-repeat-metric-label {
  display: block;
  margin-top: 0.45rem;
  color: var(--zn-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.zn-repeat-progress {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zn-repeat-progress-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.zn-repeat-progress-index {
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--zn-stroke);
  border-radius: 50%;
  color: var(--zn-ink-soft);
  font-size: 0.8rem;
  font-weight: 800;
}

.zn-repeat-progress-item.is-current .zn-repeat-progress-index {
  border-color: var(--zn-teal);
  background: var(--zn-teal);
  color: #fff;
}

.zn-repeat-progress-title {
  display: block;
  color: var(--zn-ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.zn-repeat-progress-copy {
  display: block;
  margin-top: 0.1rem;
  color: var(--zn-muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.zn-clickable-row {
  cursor: pointer;
}

.zn-clickable-row:hover > * {
  background: var(--zn-surface-quiet);
}

.zn-repeat-poll-builder {
  padding: 1rem;
  border: 1px solid var(--zn-stroke-soft);
  border-radius: var(--zn-radius-lg);
  background: var(--zn-surface-subtle);
}

.zn-repeat-poll-master-results {
  display: grid;
  gap: 0.5rem;
  max-height: 14rem;
  overflow-y: auto;
}

.zn-repeat-poll-master-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--zn-stroke-soft);
  border-radius: var(--zn-radius-md);
  background: var(--zn-card);
  color: var(--zn-ink);
  text-align: left;
}

.zn-repeat-poll-master-result:hover,
.zn-repeat-poll-master-result:focus-visible {
  border-color: var(--zn-teal);
  background: var(--zn-success-soft);
  outline: none;
}

.zn-repeat-poll-master-result strong,
.zn-repeat-poll-master-result small {
  display: block;
}

.zn-repeat-poll-master-result small {
  margin-top: 0.1rem;
  color: var(--zn-muted);
}

.zn-repeat-poll-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1rem;
}

.zn-repeat-poll-card {
  overflow: hidden;
  border: 1px solid var(--zn-stroke-soft);
  border-radius: var(--zn-radius-lg);
  background: var(--zn-card);
  box-shadow: var(--zn-shadow-soft);
}

.zn-repeat-poll-image-shell {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--zn-surface-quiet);
}

.zn-repeat-poll-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.zn-repeat-poll-image-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border-bottom: 1px dashed var(--zn-stroke);
  color: var(--zn-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.offcanvas.zn-repeat-pool-selection-drawer {
  --bs-offcanvas-width: min(620px, 100vw);
  width: var(--bs-offcanvas-width) !important;
  max-width: 100vw;
}

.zn-repeat-pool-candidate-list {
  overflow: hidden;
  border: 1px solid var(--zn-stroke-soft);
  border-radius: var(--zn-radius-md);
  background: var(--zn-card);
}

.zn-repeat-pool-candidate-list .table-responsive {
  max-height: min(52vh, 37rem);
  overflow: auto;
}

.zn-repeat-pool-candidate-table {
  min-width: 27rem;
  font-size: 0.78rem;
}

.zn-repeat-pool-candidate-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--zn-surface-subtle);
}

.zn-repeat-pool-candidate-table th,
.zn-repeat-pool-candidate-table td {
  padding: 0.4rem 0.45rem;
  vertical-align: middle;
}

.zn-repeat-pool-candidate-table th {
  font-size: 0.68rem;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

.zn-repeat-pool-candidate-table .note {
  font-size: 0.68rem;
}

.zn-repeat-pool-candidate-table .status-pill {
  font-size: 0.64rem;
}

.zn-repeat-pool-candidate-table tbody tr {
  cursor: pointer;
  transition: background 160ms ease;
}

.zn-repeat-pool-candidate-table tbody tr:hover > * {
  background: var(--zn-surface-quiet);
}

.zn-repeat-pool-candidate-table tbody tr.is-selected > * {
  background: var(--zn-success-soft);
}

.zn-repeat-pool-candidate-table tbody tr.is-selected > :first-child {
  box-shadow: inset 3px 0 0 var(--zn-teal);
}

.zn-repeat-pool-candidate-table tbody tr.is-unavailable {
  cursor: not-allowed;
  opacity: 0.72;
}

.zn-repeat-pool-picker-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem;
  border: 1px solid var(--zn-stroke-soft);
  border-radius: var(--zn-radius-md);
  background: var(--zn-surface-subtle);
}

.zn-repeat-batch-review-list {
  max-height: 19rem;
  overflow: auto;
  border: 1px solid var(--zn-stroke-soft);
  border-radius: var(--zn-radius-md);
}

.zn-repeat-selected-row > * {
  background: rgba(15, 118, 110, 0.09) !important;
}

.zn-repeat-plan-row-included > * {
  background: var(--zn-success-soft) !important;
}

.zn-repeat-plan-row-transfer > * {
  background: var(--zn-info-soft) !important;
}

.zn-repeat-plan-row-excluded > * {
  background: var(--zn-danger-soft) !important;
}

.zn-repeat-plan-row-included > :first-child {
  box-shadow: inset 4px 0 0 var(--zn-success);
}

.zn-repeat-plan-row-transfer > :first-child {
  box-shadow: inset 4px 0 0 var(--zn-info);
}

.zn-repeat-plan-row-excluded > :first-child {
  box-shadow: inset 4px 0 0 var(--zn-danger);
}

.zn-repeat-quantity-cell {
  min-width: 4.75rem;
}

.zn-repeat-quantity-input {
  width: 4.5rem;
  margin-left: auto;
}

.zn-repeat-transfer-size-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(2.35rem, 1fr));
  gap: 0.3rem;
  min-width: 11rem;
}

.zn-repeat-transfer-size-cell {
  display: grid;
  gap: 0.1rem;
  place-items: center;
  min-height: 2.4rem;
  padding: 0.25rem 0.35rem;
  border: 1px solid var(--zn-stroke-soft);
  border-radius: 8px;
  background: var(--zn-surface-subtle);
  line-height: 1;
}

.zn-repeat-transfer-size-cell small {
  color: var(--zn-muted);
  font-size: 0.66rem;
  font-weight: 800;
}

.zn-repeat-transfer-size-cell strong {
  color: var(--zn-ink);
  font-size: 0.78rem;
}

@media (max-width: 991.98px) {
  .zn-repeat-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .zn-repeat-metric-grid {
    grid-template-columns: 1fr;
  }

  .zn-repeat-pool-picker-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

.zn-attachment-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.zn-attachment-item {
  border: 1px solid var(--zn-stroke-soft);
  border-radius: var(--zn-radius-lg);
  background: rgba(255, 255, 255, 0.92);
  padding: 0.95rem 1rem;
}

.zn-attachment-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.zn-progress-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--zn-muted);
  margin-bottom: 0.35rem;
}

.zn-timeline {
  position: relative;
  padding-left: 1.15rem;
}

.zn-timeline::before {
  content: "";
  position: absolute;
  left: 0.32rem;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 2px;
  background: #e5d5b1;
}

.zn-timeline-item {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 1rem;
}

.zn-timeline-item:last-child {
  margin-bottom: 0;
}

.zn-timeline-dot {
  position: absolute;
  left: -0.08rem;
  top: 0.42rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 999px;
  background: var(--zn-teal);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.zn-timeline-item.warn .zn-timeline-dot {
  background: var(--zn-sun);
  box-shadow: 0 0 0 4px rgba(244, 163, 0, 0.16);
}

.zn-timeline-item.info .zn-timeline-dot {
  background: var(--zn-sky);
  box-shadow: 0 0 0 4px rgba(43, 140, 255, 0.15);
}

.zn-timeline-item.danger .zn-timeline-dot {
  background: var(--zn-danger);
  box-shadow: 0 0 0 4px rgba(161, 39, 49, 0.13);
}

.zn-timeline-card {
  border: 1px solid var(--zn-stroke-soft);
  border-radius: var(--zn-radius-lg);
  background: rgba(255, 255, 255, 0.94);
  padding: 0.95rem 1rem;
}

.zn-timeline > .zn-timeline-card {
  margin-bottom: 1rem;
}

.zn-timeline > .zn-timeline-card:last-child {
  margin-bottom: 0;
}

/* Keep the HRIS employee-day correction trail useful without letting it stretch its row indefinitely. */
.zn-system-hris section[ng-controller="HrisTimekeepingDayController as detail"] .zn-timeline {
  max-height: clamp(20rem, 50vh, 32rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.45rem;
}

.zn-toast-preview {
  border: 1px solid #c8e1d2;
  border-radius: var(--zn-radius-lg);
  background: #f5fff8;
  box-shadow: var(--zn-shadow-soft);
  padding: 0.9rem 1rem;
}

.zn-pagination-shell {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--zn-stroke-soft);
}

.zn-pagination-shell.is-inset {
  margin: 1rem 1rem 0;
}

.zn-pagination-shell .pagination {
  margin-bottom: 0;
}

.zn-pagination-shell .page-link {
  color: var(--zn-ink);
  border-color: var(--zn-stroke-soft);
}

.zn-pagination-shell .page-item.active .page-link {
  background: var(--zn-teal);
  border-color: var(--zn-teal);
  color: #fff;
}

.zn-select-inline {
  max-width: 120px;
}

.zn-progress-72 {
  width: 72%;
}

.zn-progress-100 {
  width: 100%;
}

.zn-action-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.zn-state-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.32rem 0.68rem;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.zn-state-tag.is-success {
  color: var(--zn-success);
  background: var(--zn-success-soft);
  border-color: #bee8d0;
}

.zn-state-tag.is-warning {
  color: var(--zn-warning);
  background: var(--zn-warning-soft);
  border-color: #f4d5a5;
}

.zn-state-tag.is-info {
  color: var(--zn-info);
  background: var(--zn-info-soft);
  border-color: #bfd8ff;
}

.zn-state-tag.is-danger {
  color: var(--zn-danger);
  background: var(--zn-danger-soft);
  border-color: #f2b8bf;
}

.zn-surface-dark {
  border-radius: var(--zn-radius-xl);
  background:
    radial-gradient(circle at top right, rgba(43, 140, 255, 0.22), transparent 28%),
    linear-gradient(145deg, #1c2835 0%, #15202c 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--zn-shadow-strong);
}

.zn-surface-dark,
.zn-surface-dark p,
.zn-surface-dark li,
.zn-surface-dark small,
.zn-surface-dark label,
.zn-surface-dark h1,
.zn-surface-dark h2,
.zn-surface-dark h3,
.zn-surface-dark h4,
.zn-surface-dark h5,
.zn-surface-dark h6 {
  color: var(--zn-ink-inverse);
}

.zn-surface-dark .zn-callout h1,
.zn-surface-dark .zn-callout h2,
.zn-surface-dark .zn-callout h3,
.zn-surface-dark .zn-callout h4,
.zn-surface-dark .zn-callout h5,
.zn-surface-dark .zn-callout h6,
.zn-surface-dark .zn-callout p,
.zn-surface-dark .zn-callout li,
.zn-surface-dark .zn-callout small,
.zn-surface-dark .zn-callout label,
.zn-surface-dark .zn-callout strong,
.zn-surface-dark .zn-callout a {
  color: inherit;
}

.zn-surface-dark .subtle,
.zn-surface-dark .note {
  color: rgba(246, 248, 252, 0.74);
}

.zn-surface-dark .btn-outline-light:hover,
.zn-surface-dark .btn-outline-light:focus {
  color: #0f1721;
}

.zn-surface-dark .form-control,
.zn-surface-dark .form-select {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--zn-ink-inverse);
}

.zn-surface-dark .form-control::placeholder {
  color: rgba(246, 248, 252, 0.56);
}

body.zn-page-showcase.zn-theme-dark {
  background:
    radial-gradient(circle at 12% -6%, rgba(244, 163, 0, 0.12), transparent 28%),
    radial-gradient(circle at 100% 0%, rgba(43, 140, 255, 0.16), transparent 32%),
    radial-gradient(circle at 82% 16%, rgba(15, 118, 110, 0.18), transparent 30%),
    linear-gradient(180deg, #09111a 0%, #0d1621 38%, #111b27 100%);
}

body.zn-theme-dark {
  --zn-dark-surface: rgba(18, 27, 38, 0.88);
  --zn-dark-surface-soft: rgba(24, 35, 49, 0.92);
  --zn-dark-surface-elevated: rgba(31, 44, 61, 0.94);
  --zn-dark-border: rgba(170, 188, 218, 0.16);
  --zn-dark-border-strong: rgba(196, 214, 238, 0.24);
  --zn-dark-muted: #9fb2ca;
  --zn-dark-soft: #c9d6e7;
  color: var(--zn-ink-inverse);
}

body.zn-theme-dark h1,
body.zn-theme-dark h2,
body.zn-theme-dark h3,
body.zn-theme-dark h4,
body.zn-theme-dark h5,
body.zn-theme-dark h6,
body.zn-theme-dark .nav-brand,
body.zn-theme-dark .brand,
body.zn-theme-dark .zn-detail-value {
  color: var(--zn-ink-inverse);
}

body.zn-theme-dark p,
body.zn-theme-dark label,
body.zn-theme-dark small,
body.zn-theme-dark li,
body.zn-theme-dark .text-secondary {
  color: var(--zn-dark-soft) !important;
}

body.zn-theme-dark a {
  color: #89c6ff;
}

body.zn-theme-dark a:hover {
  color: #c0e0ff;
}

body.zn-theme-dark code {
  color: #ffe59a;
  background: rgba(255, 209, 102, 0.13);
}

body.zn-theme-dark .text-dark {
  color: var(--zn-ink-inverse) !important;
}

body.zn-theme-dark .note,
body.zn-theme-dark .subtle,
body.zn-theme-dark .module-kicker,
body.zn-theme-dark .zn-token-value,
body.zn-theme-dark .zn-metric-label,
body.zn-theme-dark .zn-progress-caption,
body.zn-theme-dark .zn-detail-label {
  color: var(--zn-dark-muted) !important;
}

body.zn-theme-dark .zn-detail-grid-labeled .zn-detail-item > .note,
body.zn-theme-dark .zn-issuance-document-details .zn-detail-item > .note {
  color: var(--zn-dark-muted);
}

body.zn-theme-dark .zn-detail-grid-labeled .zn-detail-item > strong,
body.zn-theme-dark .zn-issuance-document-details .zn-detail-item > strong {
  color: var(--zn-ink-inverse);
}

body.zn-theme-dark .zn-eyebrow {
  color: #74d0c7;
}

body.zn-theme-dark .chip {
  border-color: rgba(255, 210, 122, 0.3);
  background: rgba(244, 163, 0, 0.12);
  color: #ffd88a;
}

body.zn-theme-dark .badge.text-bg-light {
  background: rgba(233, 243, 255, 0.12) !important;
  color: #edf5ff !important;
  border-color: rgba(233, 243, 255, 0.16) !important;
}

body.zn-theme-dark .panel,
body.zn-theme-dark .zn-showcase-nav,
body.zn-theme-dark .hero,
body.zn-theme-dark .zn-section-shell,
body.zn-theme-dark .zn-demo-card,
body.zn-theme-dark .zn-demo-card-muted,
body.zn-theme-dark .zn-toolbar,
body.zn-theme-dark .zn-shell-preview,
body.zn-theme-dark .zn-shell-topbar,
body.zn-theme-dark .zn-shell-stage,
body.zn-theme-dark .zn-shell-note,
body.zn-theme-dark .zn-filter-bar,
body.zn-theme-dark .zn-metric-card,
body.zn-theme-dark .module-card,
body.zn-theme-dark .zn-swatch,
body.zn-theme-dark .zn-foundation-card,
body.zn-theme-dark .zn-page-header,
body.zn-theme-dark .zn-table-card,
body.zn-theme-dark .zn-table-toolbar,
body.zn-theme-dark .zn-empty-state,
body.zn-theme-dark .zn-skeleton-panel,
body.zn-theme-dark .zn-state-banner,
body.zn-theme-dark .zn-readonly-panel,
body.zn-theme-dark .zn-detail-item,
body.zn-theme-dark .zn-upload-dropzone,
body.zn-theme-dark .zn-attachment-item,
body.zn-theme-dark .zn-timeline-card,
body.zn-theme-dark .zn-overlay-feedback,
body.zn-theme-dark .zn-drawer-card {
  border-color: var(--zn-dark-border);
  background: linear-gradient(180deg, rgba(23, 33, 46, 0.96), rgba(15, 24, 35, 0.94));
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.26);
}

body.zn-theme-dark .zn-showcase-nav {
  background: rgba(10, 17, 26, 0.82);
}

body.zn-theme-dark .hero,
body.zn-theme-dark .zn-page-header {
  background:
    radial-gradient(circle at top right, rgba(43, 140, 255, 0.14), transparent 24%),
    linear-gradient(135deg, rgba(24, 36, 51, 0.96), rgba(12, 18, 27, 0.96));
}

body.zn-theme-dark .zn-items-spotlight {
  background:
    radial-gradient(circle at 8% 0%, rgba(43, 140, 255, 0.18), transparent 28%),
    radial-gradient(circle at 92% 10%, rgba(15, 118, 110, 0.2), transparent 30%),
    radial-gradient(circle at 80% 90%, rgba(244, 163, 0, 0.12), transparent 26%),
    linear-gradient(135deg, rgba(19, 31, 45, 0.98), rgba(13, 22, 33, 0.96));
  border-color: rgba(86, 172, 163, 0.22);
}

body.zn-theme-dark .zn-items-spotlight .hero-title {
  color: #eef8ff;
}

body.zn-theme-dark .zn-items-spotlight .chip {
  border-color: rgba(86, 172, 163, 0.24);
  background: rgba(15, 118, 110, 0.16);
  color: #a9f1e8;
}

body.zn-theme-dark .zn-items-spotlight .zn-filter-chip {
  border-color: rgba(116, 181, 255, 0.24);
  background: rgba(43, 140, 255, 0.14);
  color: #cde6ff;
}

body.zn-theme-dark .zn-items-spotlight .zn-token-pill {
  background: rgba(12, 22, 33, 0.62);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

body.zn-theme-dark .zn-items-spotlight .zn-token-pill:nth-child(1) {
  border-color: rgba(255, 216, 138, 0.24);
  background: rgba(244, 163, 0, 0.14);
  color: #ffd88a;
}

body.zn-theme-dark .zn-items-spotlight .zn-token-pill:nth-child(2) {
  border-color: rgba(86, 172, 163, 0.24);
  background: rgba(15, 118, 110, 0.16);
  color: #a9f1e8;
}

body.zn-theme-dark .zn-items-spotlight .zn-token-pill:nth-child(3) {
  border-color: rgba(116, 181, 255, 0.24);
  background: rgba(43, 140, 255, 0.16);
  color: #cde6ff;
}

body.zn-theme-dark .zn-header-counter {
  background: rgba(13, 22, 33, 0.72);
  border-color: rgba(125, 149, 181, 0.24);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

body.zn-theme-dark .zn-header-counter-label {
  color: #b5c2d3;
}

body.zn-theme-dark .zn-section-shell,
body.zn-theme-dark .zn-shell-preview {
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(18, 27, 38, 0.94), rgba(11, 18, 27, 0.94));
}

body.zn-theme-dark .module-card:hover {
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

body.zn-theme-dark .btn-dark {
  background-color: #eef4fd;
  border-color: #eef4fd;
  color: #13202d;
}

body.zn-theme-dark .btn-dark:hover,
body.zn-theme-dark .btn-dark:focus,
body.zn-theme-dark .btn-dark:active,
body.zn-theme-dark .btn-dark.active,
body.zn-theme-dark .show > .btn-dark.dropdown-toggle {
  background-color: #ffffff;
  border-color: #ffffff;
  color: #0f1722;
}

body.zn-theme-dark .btn-outline-dark {
  border-color: rgba(238, 244, 253, 0.42);
  color: #eef4fd;
  background: transparent;
}

body.zn-theme-dark .btn-outline-dark:hover,
body.zn-theme-dark .btn-outline-dark:focus,
body.zn-theme-dark .btn-outline-dark:active,
body.zn-theme-dark .btn-outline-dark.active,
body.zn-theme-dark .show > .btn-outline-dark.dropdown-toggle {
  background: rgba(238, 244, 253, 0.14);
  border-color: rgba(238, 244, 253, 0.82);
  color: #ffffff;
}

body.zn-theme-dark .btn-zn-soft {
  background: rgba(137, 198, 255, 0.12);
  border-color: rgba(137, 198, 255, 0.28);
  color: #e9f3ff;
}

body.zn-theme-dark .btn-zn-soft:hover,
body.zn-theme-dark .btn-zn-soft:focus,
body.zn-theme-dark .btn-zn-soft:active,
body.zn-theme-dark .btn-zn-soft.active,
body.zn-theme-dark .show > .btn-zn-soft.dropdown-toggle {
  background: rgba(137, 198, 255, 0.2);
  border-color: rgba(137, 198, 255, 0.42);
  color: #ffffff;
}

body.zn-theme-dark .form-control,
body.zn-theme-dark .form-select {
  border-color: rgba(188, 205, 232, 0.18);
  background: rgba(8, 14, 22, 0.72);
  color: var(--zn-ink-inverse);
}

body.zn-theme-dark .form-control::placeholder {
  color: #8ea3c0;
}

body.zn-theme-dark .form-control:focus,
body.zn-theme-dark .form-select:focus {
  border-color: #63b3ff;
  box-shadow: 0 0 0 0.2rem rgba(43, 140, 255, 0.18);
  background: rgba(8, 14, 22, 0.88);
}

body.zn-theme-dark .table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--zn-ink-inverse);
  --bs-table-border-color: rgba(179, 195, 220, 0.14);
  color: var(--zn-ink-inverse);
}

body.zn-theme-dark .table > :not(caption) > * > * {
  border-bottom-color: rgba(179, 195, 220, 0.14);
}

body.zn-theme-dark thead th {
  color: #eef5ff;
}

body.zn-theme-dark .zn-subnav,
body.zn-theme-dark .zn-tabset,
body.zn-theme-dark .zn-pagination-shell,
body.zn-theme-dark .zn-showcase-footer,
body.zn-theme-dark .zn-showcase-offcanvas .offcanvas-header,
body.zn-theme-dark .zn-context-offcanvas .offcanvas-header,
body.zn-theme-dark .zn-system-sidebar .offcanvas-header,
body.zn-theme-dark .zn-system-context-drawer .offcanvas-header {
  border-color: var(--zn-dark-border);
}

body.zn-theme-dark .zn-subnav .nav-link,
body.zn-theme-dark .zn-tabset .nav-link {
  color: var(--zn-dark-soft);
}

body.zn-theme-dark .zn-subnav .nav-link.active,
body.zn-theme-dark .zn-subnav .nav-link:hover,
body.zn-theme-dark .zn-subnav .nav-link:focus,
body.zn-theme-dark .zn-tabset .nav-link.active,
body.zn-theme-dark .zn-tabset .nav-link:hover,
body.zn-theme-dark .zn-tabset .nav-link:focus {
  color: var(--zn-ink-inverse);
  background: rgba(244, 163, 0, 0.13);
  border-color: rgba(244, 163, 0, 0.32);
}

body.zn-theme-dark .zn-filter-chip {
  border-color: rgba(255, 216, 138, 0.22);
  background: rgba(244, 163, 0, 0.12);
  color: #ffd88a;
}

body.zn-theme-dark .zn-token-pill {
  border-color: rgba(255, 216, 138, 0.2);
  background: rgba(244, 163, 0, 0.12);
  color: #ffd88a;
}

body.zn-theme-dark .zn-items-filter-shell {
  border-color: rgba(86, 172, 163, 0.18);
  background:
    linear-gradient(180deg, rgba(17, 29, 41, 0.96), rgba(12, 22, 33, 0.94));
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.24);
}

body.zn-theme-dark .zn-items-filter-shell .zn-toolbar-title,
body.zn-theme-dark .zn-items-filter-shell .form-label {
  color: #d8f9f4;
}

body.zn-theme-dark .zn-items-filter-shell .btn-dark {
  background: linear-gradient(135deg, #2aa69d, #0e6b65);
  border-color: #0e6b65;
  color: #f6fffd;
}

body.zn-theme-dark .zn-items-filter-shell .btn-dark:hover,
body.zn-theme-dark .zn-items-filter-shell .btn-dark:focus,
body.zn-theme-dark .zn-items-filter-shell .btn-dark:active {
  background: linear-gradient(135deg, #35b6ac, #0a5752);
  border-color: #0a5752;
}

body.zn-theme-dark .zn-items-filter-shell .btn-outline-dark {
  border-color: rgba(116, 181, 255, 0.32);
  color: #cde6ff;
}

body.zn-theme-dark .zn-items-filter-shell .btn-outline-dark:hover,
body.zn-theme-dark .zn-items-filter-shell .btn-outline-dark:focus,
body.zn-theme-dark .zn-items-filter-shell .btn-outline-dark:active {
  background: rgba(43, 140, 255, 0.14);
  border-color: rgba(116, 181, 255, 0.42);
  color: #eff7ff;
}

body.zn-theme-dark .zn-sales-filter-shell {
  background:
    linear-gradient(180deg, rgba(16, 28, 41, 0.94), rgba(10, 19, 29, 0.94)),
    var(--zn-card);
}

body.zn-theme-dark .zn-sales-calendar-toolbar,
body.zn-theme-dark .zn-sales-calendar-hero,
body.zn-theme-dark .zn-sales-calendar-panel,
body.zn-theme-dark .zn-sales-calendar-summary-tile {
  border-color: rgba(86, 172, 163, 0.18);
  background:
    linear-gradient(180deg, rgba(18, 28, 40, 0.96), rgba(12, 20, 31, 0.94));
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.24);
}

body.zn-theme-dark .zn-sales-calendar-amount,
body.zn-theme-dark .zn-sales-calendar-weekday,
body.zn-theme-dark .zn-sales-calendar-summary-metric {
  color: #dff9f4;
}

body.zn-theme-dark .zn-sales-calendar-legend-label,
body.zn-theme-dark .zn-sales-calendar-summary-label,
body.zn-theme-dark .zn-sales-calendar-amount-label {
  color: #8fb4c6;
}

body.zn-theme-dark .zn-sales-calendar-legend-chip {
  border-color: rgba(86, 172, 163, 0.18);
  background: rgba(18, 28, 40, 0.92);
  color: #d5e8ff;
}

body.zn-theme-dark .zn-sales-calendar-legend-chip.is-success,
body.zn-theme-dark .zn-sales-calendar-day.is-success {
  border-color: rgba(93, 214, 143, 0.22);
  background: rgba(12, 122, 67, 0.2);
  color: #b8f0ce;
}

body.zn-theme-dark .zn-sales-calendar-legend-chip.is-warning,
body.zn-theme-dark .zn-sales-calendar-day.is-warning {
  border-color: rgba(255, 208, 124, 0.24);
  background: rgba(244, 163, 0, 0.18);
  color: #ffd88a;
}

body.zn-theme-dark .zn-sales-calendar-legend-chip.is-danger,
body.zn-theme-dark .zn-sales-calendar-day.is-danger {
  border-color: rgba(255, 146, 158, 0.22);
  background: rgba(161, 39, 49, 0.2);
  color: #ffbec5;
}

body.zn-theme-dark .zn-sales-calendar-legend-chip.is-muted {
  border-color: rgba(116, 181, 255, 0.18);
  background: rgba(18, 28, 40, 0.86);
  color: #96abc3;
}

body.zn-theme-dark .zn-sales-calendar-placeholder {
  border-color: rgba(86, 172, 163, 0.16);
  background: rgba(12, 20, 31, 0.58);
}

body.zn-theme-dark .zn-sales-calendar-day {
  border-color: rgba(86, 172, 163, 0.18);
  background: rgba(18, 28, 40, 0.94);
  color: var(--zn-ink-inverse);
}

body.zn-theme-dark .zn-sales-calendar-day.is-info {
  border-color: rgba(125, 181, 255, 0.26);
  background: rgba(43, 140, 255, 0.18);
  color: #bfe0ff;
}

body.zn-theme-dark .zn-sales-calendar-day.is-muted {
  border-color: rgba(116, 181, 255, 0.16);
  background: rgba(14, 22, 33, 0.86);
  color: #96abc3;
}

body.zn-theme-dark .zn-sales-calendar-summary-note {
  color: #b3c6dd;
}

body.zn-theme-dark .zn-items-table-toolbar {
  background:
    radial-gradient(circle at top right, rgba(244, 163, 0, 0.12), transparent 28%),
    radial-gradient(circle at 18% 18%, rgba(15, 118, 110, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(17, 27, 39, 0.96), rgba(12, 20, 29, 0.94));
}

body.zn-theme-dark .zn-items-table-toolbar .h5,
body.zn-theme-dark .table.zn-items-table thead th {
  color: #dff9f4;
}

body.zn-theme-dark .zn-items-table tbody tr {
  background:
    linear-gradient(90deg, rgba(14, 22, 32, 0.96), rgba(18, 28, 40, 0.92));
}

body.zn-theme-dark .zn-item-sku-pill {
  border-color: rgba(86, 172, 163, 0.24);
  background: rgba(15, 118, 110, 0.16);
  color: #a9f1e8;
}

body.zn-theme-dark .zn-item-meta-pill {
  border-color: rgba(125, 149, 181, 0.2);
  background: rgba(17, 29, 42, 0.66);
  color: #edf5ff;
}

body.zn-theme-dark .zn-item-meta-pill:nth-child(1) {
  border-color: rgba(86, 172, 163, 0.24);
  background: rgba(15, 118, 110, 0.16);
  color: #a9f1e8;
}

body.zn-theme-dark .zn-item-meta-pill:nth-child(2) {
  border-color: rgba(255, 216, 138, 0.22);
  background: rgba(244, 163, 0, 0.12);
  color: #ffd88a;
}

body.zn-theme-dark .zn-item-meta-pill:nth-child(3) {
  border-color: rgba(116, 181, 255, 0.22);
  background: rgba(43, 140, 255, 0.14);
  color: #cde6ff;
}

body.zn-theme-dark .zn-items-table tbody tr:hover {
  background:
    linear-gradient(90deg, rgba(16, 39, 46, 0.94), rgba(36, 32, 21, 0.84));
}

body.zn-theme-dark .zn-sales-preview-pill {
  border-color: rgba(125, 149, 181, 0.2);
  background: rgba(16, 27, 38, 0.84);
  color: #edf5ff;
}

body.zn-theme-dark .zn-sales-preview-pill.is-muted {
  border-color: rgba(116, 181, 255, 0.24);
  background: rgba(43, 140, 255, 0.14);
  color: #cde6ff;
}

body.zn-theme-dark .zn-sales-amount-stack > div {
  border-color: rgba(86, 172, 163, 0.18);
  background:
    linear-gradient(180deg, rgba(20, 31, 43, 0.96), rgba(13, 23, 33, 0.94));
}

body.zn-theme-dark .status-success {
  color: #b7f7cc;
  background: rgba(22, 101, 52, 0.36);
}

body.zn-theme-dark .status-warning {
  color: #ffe08b;
  background: rgba(180, 121, 0, 0.36);
}

body.zn-theme-dark .status-danger {
  color: #ffb6c1;
  background: rgba(153, 27, 27, 0.36);
}

body.zn-theme-dark .zn-po-hero {
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(244, 163, 0, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(16, 24, 35, 0.97), rgba(12, 20, 29, 0.95));
}

body.zn-theme-dark .zn-po-filter-shell {
  background:
    radial-gradient(circle at top right, rgba(43, 140, 255, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(18, 27, 38, 0.96), rgba(11, 20, 29, 0.94));
}

body.zn-theme-dark .zn-po-vendor-current {
  border-color: rgba(86, 172, 163, 0.22);
  background: linear-gradient(180deg, rgba(20, 31, 43, 0.96), rgba(13, 23, 33, 0.94));
  color: var(--zn-ink-inverse);
}

body.zn-theme-dark .zn-po-vendor-current:hover,
body.zn-theme-dark .zn-po-vendor-picker.is-open .zn-po-vendor-current {
  border-color: rgba(169, 241, 232, 0.24);
  background: linear-gradient(180deg, rgba(22, 39, 50, 0.98), rgba(16, 29, 40, 0.96));
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.24);
}

body.zn-theme-dark .zn-po-vendor-current-copy small,
body.zn-theme-dark .zn-po-vendor-results-count {
  color: #9fb1c5;
}

body.zn-theme-dark .zn-po-vendor-current-state {
  border-color: rgba(255, 216, 138, 0.18);
  background: rgba(244, 163, 0, 0.16);
  color: #ffd8a4;
}

body.zn-theme-dark .zn-po-vendor-results {
  border-color: rgba(86, 172, 163, 0.18);
  background:
    radial-gradient(circle at top right, rgba(43, 140, 255, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(19, 30, 42, 0.98), rgba(12, 22, 32, 0.96));
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.28);
}

body.zn-theme-dark .zn-po-vendor-option {
  border-color: rgba(86, 172, 163, 0.16);
  background: rgba(16, 28, 39, 0.9);
  color: var(--zn-ink-inverse);
}

body.zn-theme-dark .zn-po-vendor-option:hover,
body.zn-theme-dark .zn-po-vendor-option:focus {
  border-color: rgba(169, 241, 232, 0.22);
  background: rgba(22, 42, 49, 0.94);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

body.zn-theme-dark .zn-po-table-toolbar {
  background:
    radial-gradient(circle at top right, rgba(244, 163, 0, 0.12), transparent 28%),
    radial-gradient(circle at 16% 18%, rgba(15, 118, 110, 0.12), transparent 20%),
    linear-gradient(180deg, rgba(17, 27, 39, 0.96), rgba(12, 20, 29, 0.94));
}

body.zn-theme-dark .zn-material-po-page-header {
  background:
    radial-gradient(circle at top right, rgba(43, 140, 255, 0.12), transparent 28%),
    radial-gradient(circle at bottom left, rgba(15, 118, 110, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(18, 29, 40, 0.98), rgba(12, 21, 31, 0.96));
}

body.zn-theme-dark .zn-material-po-header-card {
  border-color: rgba(86, 172, 163, 0.2);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.16), transparent 34%),
    radial-gradient(circle at bottom right, rgba(244, 163, 0, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(18, 29, 40, 0.98), rgba(12, 21, 31, 0.96));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2);
}

body.zn-theme-dark .zn-material-po-header-intro {
  border-color: rgba(86, 172, 163, 0.18);
}

body.zn-theme-dark .zn-material-po-header-intro .h5,
body.zn-theme-dark .zn-material-po-lines-toolbar .h5 {
  color: #a9f1e8;
}

body.zn-theme-dark .zn-material-po-lines-card {
  border-color: rgba(86, 172, 163, 0.2);
}

body.zn-theme-dark .zn-material-po-picker-card {
  border-color: rgba(86, 172, 163, 0.18);
  background:
    radial-gradient(circle at top right, rgba(43, 140, 255, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(19, 32, 44, 0.94), rgba(13, 24, 35, 0.94));
}

body.zn-theme-dark .zn-material-po-lines-toolbar {
  background:
    radial-gradient(circle at top right, rgba(244, 163, 0, 0.12), transparent 27%),
    radial-gradient(circle at 18% 0%, rgba(15, 118, 110, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(18, 29, 40, 0.98), rgba(12, 21, 31, 0.96));
}

body.zn-theme-dark .zn-material-po-lines-list {
  background: linear-gradient(180deg, rgba(13, 23, 33, 0.9), rgba(11, 20, 29, 0.94));
}

body.zn-theme-dark .zn-material-po-line {
  border-color: rgba(86, 172, 163, 0.18);
  background: rgba(18, 31, 42, 0.9);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

body.zn-theme-dark .zn-material-po-line-number {
  border-color: rgba(169, 241, 232, 0.2);
  background: rgba(15, 118, 110, 0.2);
  color: #a9f1e8;
}

body.zn-theme-dark .zn-material-po-field .form-label {
  color: #c4d0df;
}

body.zn-theme-dark .zn-material-po-actions {
  border-color: rgba(86, 172, 163, 0.18);
  background:
    radial-gradient(circle at bottom left, rgba(15, 118, 110, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(16, 29, 39, 0.98), rgba(11, 20, 29, 0.98));
}

body.zn-theme-dark .zn-po-table-toolbar .h5,
body.zn-theme-dark .table.zn-po-table thead th,
body.zn-theme-dark .zn-po-vendor-name,
body.zn-theme-dark .zn-po-item-count,
body.zn-theme-dark .zn-po-receive-stat strong,
body.zn-theme-dark .zn-po-receive-stack strong {
  color: #dff9f4;
}

body.zn-theme-dark .zn-po-date-label {
  color: #8fb7bc;
}

body.zn-theme-dark .zn-po-date-value {
  color: #dff9f4;
}

body.zn-theme-dark .zn-po-table tbody tr {
  background:
    linear-gradient(90deg, rgba(14, 22, 32, 0.96), rgba(18, 28, 40, 0.92));
}

body.zn-theme-dark .zn-po-table tbody tr:hover {
  background:
    linear-gradient(90deg, rgba(16, 39, 46, 0.94), rgba(36, 32, 21, 0.84));
}

body.zn-theme-dark .zn-po-source-toggle {
  color: var(--zn-ink-inverse);
}

body.zn-theme-dark .zn-po-source-toggle:hover,
body.zn-theme-dark .zn-po-source-toggle:focus,
body.zn-theme-dark .zn-po-source-toggle:active {
  color: #dff9f4;
}

body.zn-theme-dark .zn-po-source-toggle-state {
  border-color: rgba(86, 172, 163, 0.26);
  background: rgba(15, 118, 110, 0.18);
  color: #a9f1e8;
}

body.zn-theme-dark .zn-po-region-del1 {
  --zn-po-region-bg: rgba(255, 255, 0, 0.12);
  --zn-po-region-bg-strong: rgba(255, 255, 0, 0.2);
  --zn-po-region-row: rgba(74, 69, 0, 0.56);
  --zn-po-region-row-hover: rgba(96, 88, 0, 0.66);
  --zn-po-region-text: #fff3a6;
}

body.zn-theme-dark .zn-po-region-del2 {
  --zn-po-region-bg: rgba(255, 165, 0, 0.12);
  --zn-po-region-bg-strong: rgba(255, 165, 0, 0.2);
  --zn-po-region-row: rgba(86, 48, 0, 0.56);
  --zn-po-region-row-hover: rgba(112, 64, 0, 0.66);
  --zn-po-region-text: #ffd6a1;
}

body.zn-theme-dark .zn-po-region-del3 {
  --zn-po-region-bg: rgba(154, 205, 50, 0.12);
  --zn-po-region-bg-strong: rgba(154, 205, 50, 0.2);
  --zn-po-region-row: rgba(52, 70, 12, 0.56);
  --zn-po-region-row-hover: rgba(67, 89, 16, 0.66);
  --zn-po-region-text: #dff5a7;
}

body.zn-theme-dark .zn-po-region-del4 {
  --zn-po-region-bg: rgba(238, 130, 238, 0.12);
  --zn-po-region-bg-strong: rgba(238, 130, 238, 0.2);
  --zn-po-region-row: rgba(84, 37, 84, 0.56);
  --zn-po-region-row-hover: rgba(104, 45, 104, 0.66);
  --zn-po-region-text: #ffd4ff;
}

body.zn-theme-dark .zn-po-region-del5 {
  --zn-po-region-bg: rgba(255, 192, 203, 0.12);
  --zn-po-region-bg-strong: rgba(255, 192, 203, 0.2);
  --zn-po-region-row: rgba(92, 46, 58, 0.56);
  --zn-po-region-row-hover: rgba(114, 57, 72, 0.66);
  --zn-po-region-text: #ffd9e3;
}

body.zn-theme-dark .zn-po-region-del6 {
  --zn-po-region-bg: rgba(0, 255, 255, 0.1);
  --zn-po-region-bg-strong: rgba(0, 255, 255, 0.18);
  --zn-po-region-row: rgba(0, 74, 78, 0.56);
  --zn-po-region-row-hover: rgba(0, 95, 100, 0.66);
  --zn-po-region-text: #b7feff;
}

body.zn-theme-dark .zn-po-source-group[class*="zn-po-region-"] {
  background:
    linear-gradient(180deg, rgba(17, 27, 39, 0.96), rgba(12, 20, 29, 0.94)),
    linear-gradient(135deg, var(--zn-po-region-bg), transparent 68%);
}

body.zn-theme-dark .zn-po-size-cell {
  color: #dff9f4;
}

body.zn-theme-dark .table.zn-po-source-table tbody tr.zn-table-row-selected > * {
  background:
    linear-gradient(180deg, rgba(86, 172, 163, 0.18), rgba(86, 172, 163, 0.12)),
    var(--zn-po-region-row, rgba(15, 118, 110, 0.14));
  box-shadow: inset 3px 0 0 rgba(169, 241, 232, 0.78);
}


body.zn-theme-dark .zn-item-price-stack > div:first-child {
  border-color: rgba(255, 216, 138, 0.18);
  background: rgba(244, 163, 0, 0.12);
}

body.zn-theme-dark .zn-item-price-stack > div:last-child {
  border-color: rgba(116, 181, 255, 0.16);
  background: rgba(43, 140, 255, 0.12);
}

body.zn-theme-dark .zn-item-price-stack strong,
body.zn-theme-dark .zn-item-price-stack span,
body.zn-theme-dark .zn-item-name {
  color: var(--zn-ink-inverse);
}

body.zn-theme-dark .zn-item-price-label {
  color: #b5c2d3;
}

body.zn-theme-dark .zn-item-row-action {
  border-color: rgba(86, 172, 163, 0.28);
  color: #a9f1e8;
}

body.zn-theme-dark .zn-item-row-action:hover,
body.zn-theme-dark .zn-item-row-action:focus,
body.zn-theme-dark .zn-item-row-action:active {
  background: rgba(15, 118, 110, 0.14);
  border-color: rgba(86, 172, 163, 0.4);
  color: #dff9f4;
}

body.zn-theme-dark .zn-branch-presence-card {
  border-color: rgba(86, 172, 163, 0.18);
  background:
    radial-gradient(circle at top right, rgba(43, 140, 255, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(17, 27, 39, 0.94), rgba(12, 22, 31, 0.92));
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.18);
}

body.zn-theme-dark .zn-branch-presence-card strong {
  color: var(--zn-ink-inverse);
}

body.zn-theme-dark .zn-branch-row-pill {
  border-color: rgba(86, 172, 163, 0.24);
  background: rgba(15, 118, 110, 0.16);
  color: #a9f1e8;
}

body.zn-theme-dark .table.zn-po-history-table thead th {
  color: #dff9f4;
}

body.zn-theme-dark .zn-po-history-row > * {
  background:
    linear-gradient(90deg, rgba(14, 22, 32, 0.96), rgba(18, 28, 40, 0.92));
}

body.zn-theme-dark .zn-po-history-row:hover > * {
  background:
    linear-gradient(90deg, rgba(16, 39, 46, 0.94), rgba(36, 32, 21, 0.84));
}

body.zn-theme-dark .zn-po-history-row.is-pending > :first-child {
  box-shadow: inset 4px 0 0 rgba(255, 208, 124, 0.88);
}

body.zn-theme-dark .zn-po-history-row.is-exact > :first-child {
  box-shadow: inset 4px 0 0 rgba(93, 214, 143, 0.82);
}

body.zn-theme-dark .zn-po-history-row.is-partial > :first-child {
  box-shadow: inset 4px 0 0 rgba(125, 181, 255, 0.8);
}

body.zn-theme-dark .zn-po-qty-stack strong {
  color: var(--zn-ink-inverse);
}

body.zn-theme-dark .zn-po-rr-label {
  color: var(--zn-ink-inverse);
}

body.zn-theme-dark .zn-performance-chart-canvas {
  border-color: rgba(86, 172, 163, 0.18);
  background:
    radial-gradient(circle at top right, rgba(244, 163, 0, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(17, 27, 39, 0.94), rgba(12, 22, 31, 0.92));
}

body.zn-theme-dark .zn-performance-morris-chart svg text {
  fill: #b8c6d7 !important;
}

body.zn-theme-dark .zn-performance-morris-chart .morris-hover.morris-default-style {
  border-color: rgba(86, 172, 163, 0.22);
  background: rgba(14, 22, 32, 0.96);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

body.zn-theme-dark .zn-performance-morris-chart .morris-hover-row {
  color: #eaf3ff;
}

body.zn-theme-dark .zn-morris-hover-title {
  color: #9ef0e6;
}

body.zn-theme-dark .zn-performance-list-row {
  border-color: rgba(86, 172, 163, 0.16);
  background: rgba(18, 28, 40, 0.82);
}

body.zn-theme-dark .zn-radius-token,
body.zn-theme-dark .zn-shadow-token,
body.zn-theme-dark .zn-icon-token {
  border-color: var(--zn-dark-border);
  background: linear-gradient(180deg, rgba(12, 19, 28, 0.88), rgba(8, 14, 22, 0.9));
  color: var(--zn-ink-inverse);
}

body.zn-theme-dark .zn-shadow-token.is-soft {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
}

body.zn-theme-dark .zn-shadow-token.is-medium {
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

body.zn-theme-dark .zn-shadow-token.is-strong {
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.34);
}

body.zn-theme-dark .zn-icon-token small {
  color: var(--zn-dark-soft) !important;
}

body.zn-theme-dark .zn-state-tag.is-success {
  color: #b8f0ce;
  background: rgba(12, 122, 67, 0.18);
  border-color: rgba(93, 214, 143, 0.22);
}

body.zn-theme-dark .zn-state-tag.is-warning {
  color: #ffd88a;
  background: rgba(244, 163, 0, 0.18);
  border-color: rgba(255, 208, 124, 0.24);
}

body.zn-theme-dark .zn-state-tag.is-info {
  color: #bfe0ff;
  background: rgba(43, 140, 255, 0.16);
  border-color: rgba(125, 181, 255, 0.28);
}

body.zn-theme-dark .zn-icon-disc.is-info {
  color: #bfe0ff;
  background: rgba(43, 140, 255, 0.16);
  border-color: rgba(125, 181, 255, 0.28);
}

body.zn-theme-dark .zn-state-tag.is-danger {
  color: #ffbec5;
  background: rgba(161, 39, 49, 0.18);
  border-color: rgba(255, 146, 158, 0.22);
}

body.zn-theme-dark .zn-toast-preview {
  border-color: rgba(93, 214, 143, 0.22);
  background: linear-gradient(180deg, rgba(10, 42, 31, 0.86), rgba(8, 29, 22, 0.92));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

body.zn-theme-dark .zn-toast-preview strong {
  color: #ebfff2;
}

body.zn-theme-dark .zn-toast-preview p {
  color: #c6e8d4 !important;
}

body.zn-theme-dark .zn-table-toolbar {
  background: linear-gradient(180deg, rgba(20, 30, 42, 0.98), rgba(15, 24, 35, 0.96));
}

body.zn-theme-dark .zn-table-row-selected > *,
body.zn-theme-dark .zn-inline-expand > * {
  background: rgba(15, 118, 110, 0.14);
}

body.zn-theme-dark .zn-empty-state,
body.zn-theme-dark .zn-upload-dropzone,
body.zn-theme-dark .zn-shell-stage,
body.zn-theme-dark .zn-filter-bar {
  border-style: dashed;
}

body.zn-theme-dark .zn-ordering-style-image,
body.zn-theme-dark .zn-ordering-style-image-preview {
  border-color: var(--zn-dark-border);
  background: var(--zn-dark-surface-soft);
}

body.zn-theme-dark .zn-ordering-style-image-card {
  border-color: var(--zn-dark-border);
  background: var(--zn-dark-surface-soft);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
}

body.zn-theme-dark .zn-best-selling-frame {
  border-color: var(--zn-dark-border);
  background: var(--zn-dark-surface-soft);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
}

body.zn-theme-dark .zn-best-selling-image-shell,
body.zn-theme-dark .zn-best-selling-image {
  background: var(--zn-dark-surface);
}

body.zn-theme-dark .zn-best-selling-image {
  border-color: var(--zn-dark-border);
}

body.zn-theme-dark .zn-best-selling-navigator {
  border-color: var(--zn-dark-border);
}

body.zn-theme-dark .zn-best-selling-position {
  color: var(--zn-dark-soft);
}

body.zn-theme-dark .zn-inventory-performance-kpi,
body.zn-theme-dark .zn-inventory-performance-row {
  border-color: var(--zn-dark-border);
  background: var(--zn-dark-surface-soft);
}

body.zn-theme-dark .zn-inventory-performance-kpi strong,
body.zn-theme-dark .zn-inventory-performance-row-title .h6,
body.zn-theme-dark .zn-inventory-performance-stats dd,
body.zn-theme-dark .zn-inventory-executive-brief h3,
body.zn-theme-dark .zn-inventory-executive-chart-label .h6,
body.zn-theme-dark .zn-inventory-executive-guard h3 {
  color: var(--zn-ink-inverse);
}

body.zn-theme-dark .zn-inventory-performance-switch .form-check-label,
body.zn-theme-dark .zn-inventory-performance-meters,
body.zn-theme-dark .zn-inventory-performance-stats dt,
body.zn-theme-dark .zn-inventory-executive-brief p,
body.zn-theme-dark .zn-inventory-executive-brief-meta span,
body.zn-theme-dark .zn-inventory-executive-chart-label span,
body.zn-theme-dark .zn-inventory-executive-chart-bars span,
body.zn-theme-dark .zn-inventory-executive-guard p,
body.zn-theme-dark .zn-inventory-executive-guard-count span {
  color: var(--zn-dark-soft);
}

body.zn-theme-dark .zn-inventory-performance-meter,
body.zn-theme-dark .zn-inventory-performance-meter::-webkit-progress-bar {
  background: var(--zn-dark-surface);
}

body.zn-theme-dark .zn-inventory-executive-brief {
  border-color: var(--zn-dark-border);
  background:
    radial-gradient(circle at 98% 5%, rgba(43, 140, 255, 0.18), transparent 42%),
    linear-gradient(135deg, rgba(15, 118, 110, 0.22), rgba(20, 30, 42, 0.96));
}

body.zn-theme-dark .zn-inventory-executive-brief-meta,
body.zn-theme-dark .zn-inventory-executive-guard {
  border-color: var(--zn-dark-border);
  background: var(--zn-dark-surface-soft);
}

body.zn-theme-dark .zn-inventory-chart-stage-tabs {
  border-color: var(--zn-dark-border);
  background: var(--zn-dark-surface);
}

body.zn-theme-dark .zn-inventory-chart-stage {
  border-color: var(--zn-dark-border);
  background: var(--zn-dark-surface-soft);
  color: var(--zn-dark-soft);
}

body.zn-theme-dark .zn-inventory-chart-stage:hover:not(:disabled),
body.zn-theme-dark .zn-inventory-chart-stage:focus-visible {
  border-color: var(--zn-teal);
  color: #9ef0e6;
}

body.zn-theme-dark .zn-inventory-chart-stage.is-active {
  border-color: var(--zn-teal);
  background: var(--zn-teal);
  color: var(--zn-ink-inverse);
}

body.zn-theme-dark .zn-inventory-chart-deck-copy {
  border-color: var(--zn-dark-border);
  background: linear-gradient(145deg, rgba(15, 118, 110, 0.2), rgba(43, 140, 255, 0.14));
}

body.zn-theme-dark .zn-inventory-chart-deck-copy > strong,
body.zn-theme-dark .zn-inventory-chart-deck-copy .h5 {
  color: var(--zn-ink-inverse);
}

body.zn-theme-dark .zn-inventory-executive-chart-row,
body.zn-theme-dark .zn-inventory-executive-guard-count {
  border-color: var(--zn-dark-border);
}

body.zn-theme-dark .zn-repeat-source-card,
body.zn-theme-dark .zn-repeat-progress-card,
body.zn-theme-dark .zn-repeat-metric-card {
  border-color: var(--zn-dark-border);
  background: var(--zn-dark-surface-soft);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2);
}

body.zn-theme-dark .zn-clickable-row:hover > * {
  background: rgba(43, 140, 255, 0.1);
}

body.zn-theme-dark .zn-repeat-poll-builder,
body.zn-theme-dark .zn-repeat-poll-card,
body.zn-theme-dark .zn-repeat-poll-master-result,
body.zn-theme-dark .zn-repeat-pool-candidate-list,
body.zn-theme-dark .zn-repeat-pool-picker-actions,
body.zn-theme-dark .zn-repeat-batch-review-list {
  border-color: var(--zn-dark-border);
  background: var(--zn-dark-surface-soft);
}

body.zn-theme-dark .zn-repeat-poll-master-result {
  color: var(--zn-ink-inverse);
}

body.zn-theme-dark .zn-repeat-poll-master-result:hover,
body.zn-theme-dark .zn-repeat-poll-master-result:focus-visible {
  border-color: var(--zn-teal);
  background: rgba(12, 122, 67, 0.2);
}

body.zn-theme-dark .zn-repeat-pool-candidate-table thead {
  background: var(--zn-dark-surface-soft);
}

body.zn-theme-dark .zn-repeat-pool-candidate-table tbody tr:hover > * {
  background: rgba(43, 140, 255, 0.1);
}

body.zn-theme-dark .zn-repeat-pool-candidate-table tbody tr.is-selected > * {
  background: rgba(12, 122, 67, 0.2);
}

body.zn-theme-dark .zn-repeat-pool-candidate-note {
  color: var(--zn-dark-soft);
}

body.zn-theme-dark .zn-repeat-poll-master-result small,
body.zn-theme-dark .zn-repeat-poll-image-placeholder {
  color: var(--zn-dark-soft);
}

body.zn-theme-dark .zn-repeat-poll-image-shell,
body.zn-theme-dark .zn-repeat-poll-image {
  background: var(--zn-dark-surface-soft);
}

body.zn-theme-dark .zn-repeat-poll-image-placeholder {
  border-color: var(--zn-dark-border);
}

body.zn-theme-dark .zn-repeat-metric-value,
body.zn-theme-dark .zn-repeat-progress-title {
  color: var(--zn-ink-inverse);
}

body.zn-theme-dark .zn-repeat-metric-label,
body.zn-theme-dark .zn-repeat-progress-copy {
  color: var(--zn-dark-soft);
}

body.zn-theme-dark .zn-repeat-progress-index {
  border-color: var(--zn-dark-border);
  color: var(--zn-dark-soft);
}

body.zn-theme-dark .zn-repeat-selected-row > * {
  background: rgba(52, 211, 153, 0.12) !important;
}

body.zn-theme-dark .zn-repeat-plan-row-included > * {
  background: rgba(12, 122, 67, 0.18) !important;
}

body.zn-theme-dark .zn-repeat-plan-row-transfer > * {
  background: rgba(43, 140, 255, 0.18) !important;
}

body.zn-theme-dark .zn-repeat-plan-row-excluded > * {
  background: rgba(161, 39, 49, 0.2) !important;
}

body.zn-theme-dark .zn-repeat-transfer-size-cell {
  border-color: var(--zn-dark-border);
  background: var(--zn-dark-surface-soft);
}

body.zn-theme-dark .zn-repeat-transfer-size-cell small {
  color: var(--zn-dark-soft);
}

body.zn-theme-dark .zn-repeat-transfer-size-cell strong {
  color: var(--zn-ink-inverse);
}

body.zn-theme-dark .zn-empty-icon {
  background: rgba(244, 163, 0, 0.16);
  color: #ffd88a;
}

body.zn-theme-dark .zn-skeleton-line {
  background: linear-gradient(90deg, rgba(60, 78, 104, 0.85) 0%, rgba(105, 125, 151, 0.95) 50%, rgba(60, 78, 104, 0.85) 100%);
  background-size: 200% 100%;
}

body.zn-theme-dark .zn-shell-note,
body.zn-theme-dark .mock-note {
  border-left-color: #63b3ff;
  background: rgba(20, 40, 56, 0.72);
  color: var(--zn-dark-soft);
}

body.zn-theme-dark .mock-note {
  border-top: 1px solid rgba(99, 179, 255, 0.18);
  border-right: 1px solid rgba(99, 179, 255, 0.18);
  border-bottom: 1px solid rgba(99, 179, 255, 0.18);
}

body.zn-theme-dark .zn-callout-info {
  background: rgba(43, 140, 255, 0.16);
  border-color: rgba(125, 181, 255, 0.28);
  color: #bfe0ff;
}

body.zn-theme-dark .zn-callout-success {
  background: rgba(12, 122, 67, 0.18);
  border-color: rgba(93, 214, 143, 0.22);
  color: #b8f0ce;
}

body.zn-theme-dark .zn-callout-warn {
  background: rgba(244, 163, 0, 0.18);
  border-color: rgba(255, 208, 124, 0.24);
  color: #ffd88a;
}

body.zn-theme-dark .zn-callout-danger {
  background: rgba(161, 39, 49, 0.18);
  border-color: rgba(255, 146, 158, 0.22);
  color: #ffbec5;
}

body.zn-theme-dark .zn-callout h1,
body.zn-theme-dark .zn-callout h2,
body.zn-theme-dark .zn-callout h3,
body.zn-theme-dark .zn-callout h4,
body.zn-theme-dark .zn-callout h5,
body.zn-theme-dark .zn-callout h6,
body.zn-theme-dark .zn-callout p,
body.zn-theme-dark .zn-callout li,
body.zn-theme-dark .zn-callout small,
body.zn-theme-dark .zn-callout label,
body.zn-theme-dark .zn-callout strong,
body.zn-theme-dark .zn-callout a {
  color: inherit !important;
}

body.zn-theme-dark .zn-nav-rail .list-group-item,
body.zn-theme-dark .zn-drawer-list .list-group-item {
  color: var(--zn-ink-inverse);
}

body.zn-theme-dark .zn-nav-rail .list-group-item small,
body.zn-theme-dark .zn-drawer-list .list-group-item small {
  color: var(--zn-dark-muted) !important;
}

body.zn-theme-dark .zn-nav-rail .list-group-item.active,
body.zn-theme-dark .zn-nav-rail .list-group-item:hover,
body.zn-theme-dark .zn-drawer-list .list-group-item.active,
body.zn-theme-dark .zn-drawer-list .list-group-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(196, 214, 238, 0.18);
  color: #ffffff;
}

body.zn-theme-dark .zn-drawer-tag {
  border-color: rgba(137, 198, 255, 0.26);
  background: rgba(43, 140, 255, 0.14);
  color: #bfe0ff;
}

body.zn-theme-dark .zn-showcase-offcanvas,
body.zn-theme-dark .zn-context-offcanvas,
body.zn-theme-dark .zn-system-sidebar,
body.zn-theme-dark .zn-system-context-drawer {
  background:
    radial-gradient(circle at top right, rgba(43, 140, 255, 0.16), transparent 24%),
    linear-gradient(180deg, #111a25 0%, #0c141e 100%);
  box-shadow: -18px 0 44px rgba(0, 0, 0, 0.44);
}

body.zn-theme-dark .btn-close {
  filter: invert(1) grayscale(1) brightness(1.8);
  opacity: 0.85;
}

body.zn-theme-dark .zn-timeline::before {
  background: rgba(195, 211, 236, 0.16);
}

body.zn-theme-dark .zn-pagination-shell .page-link {
  background: rgba(14, 22, 33, 0.92);
  color: var(--zn-ink-inverse);
  border-color: var(--zn-dark-border);
}

body.zn-theme-dark .zn-pagination-shell .page-item.disabled .page-link {
  background: rgba(14, 22, 33, 0.7);
  color: #8fa3c0;
}

body.zn-theme-dark .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-overlay {
  background: rgba(4, 8, 14, 0.72);
}

body.zn-theme-dark .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content {
  border-color: var(--zn-dark-border-strong);
  background: linear-gradient(180deg, rgba(18, 27, 38, 0.98) 0%, rgba(12, 18, 27, 0.98) 100%);
  color: var(--zn-ink-inverse);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
}

body.zn-theme-dark .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-close:before {
  color: var(--zn-ink-inverse);
  border-color: var(--zn-dark-border-strong);
  background: rgba(24, 36, 50, 0.96);
}

body.zn-theme-dark .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-close:hover:before,
body.zn-theme-dark .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-close:active:before {
  color: var(--zn-ink-inverse);
  background: rgba(39, 57, 78, 0.98);
}

body.zn-theme-dark .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content,
body.zn-theme-dark .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content h1,
body.zn-theme-dark .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content h2,
body.zn-theme-dark .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content h3,
body.zn-theme-dark .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content h4,
body.zn-theme-dark .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content h5,
body.zn-theme-dark .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content h6 {
  color: var(--zn-ink-inverse);
}

body.zn-theme-dark .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content p,
body.zn-theme-dark .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content li,
body.zn-theme-dark .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content label,
body.zn-theme-dark .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content small {
  color: var(--zn-dark-soft);
}

body.zn-theme-dark .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content .note,
body.zn-theme-dark .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content .subtle,
body.zn-theme-dark .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content .module-kicker,
body.zn-theme-dark .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content .zn-dialog-footnote {
  color: var(--zn-dark-muted) !important;
}

body.zn-theme-dark .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content .module-card,
body.zn-theme-dark .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content .zn-foundation-card,
body.zn-theme-dark .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content .zn-table-card,
body.zn-theme-dark .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content .zn-readonly-panel,
body.zn-theme-dark .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content .zn-detail-item,
body.zn-theme-dark .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content .zn-timeline-card {
  background: linear-gradient(180deg, rgba(27, 38, 53, 0.96), rgba(17, 26, 37, 0.96));
  border-color: var(--zn-dark-border);
}

body.zn-theme-dark .zn-shortcut-dialog-list > div {
  border-color: var(--zn-dark-border);
  color: var(--zn-dark-soft);
}

body.zn-theme-dark .zn-shortcut-dialog-list kbd {
  border-color: var(--zn-dark-border-strong);
  background: rgba(24, 36, 50, 0.96);
  color: var(--zn-ink-inverse);
}

body.zn-theme-dark .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content .module-card,
body.zn-theme-dark .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content .module-card:hover {
  transform: none;
  box-shadow: none;
}

body.zn-theme-dark .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content .zn-callout-info {
  background: rgba(43, 140, 255, 0.16);
  border-color: rgba(125, 181, 255, 0.28);
  color: #bfe0ff;
}

body.zn-theme-dark .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content .zn-callout-success {
  background: rgba(12, 122, 67, 0.18);
  border-color: rgba(93, 214, 143, 0.22);
  color: #b8f0ce;
}

body.zn-theme-dark .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content .zn-callout-warn {
  background: rgba(244, 163, 0, 0.18);
  border-color: rgba(255, 208, 124, 0.24);
  color: #ffd88a;
}

body.zn-theme-dark .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content .zn-callout-danger {
  background: rgba(161, 39, 49, 0.18);
  border-color: rgba(255, 146, 158, 0.22);
  color: #ffbec5;
}

.zn-checklist {
  margin: 0;
  padding-left: 1rem;
}

.zn-checklist li {
  margin-bottom: 0.45rem;
}

.zn-showcase-footer {
  border-top: 1px solid rgba(230, 216, 187, 0.85);
  padding-top: 1.5rem;
}

@media (max-width: 991.98px) {
  .auth-wrap {
    min-height: auto;
  }

  .zn-showcase-nav {
    position: static;
  }

  .zn-shell-topbar {
    padding: 1rem;
  }

  .zn-shell-canvas {
    padding: 0.9rem;
  }

  body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content {
    padding: 1.2rem 1rem 1rem;
  }

  body .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content .zn-dialog-shell > :first-child {
    padding-right: 2.75rem;
  }

  .zn-pagination-shell.is-inset {
    margin: 0.85rem 0.85rem 0;
  }
}

/* Accounting retains the shared component system while using its own ledger identity. */
.zn-system-accounting {
  --zn-ink: #18253f;
  --zn-ink-soft: #35445f;
  --zn-muted: #62718a;
  --zn-teal: #274a87;
  --zn-deep-teal: #182f5c;
  --zn-sun: #22865f;
  --zn-sky: #517ed1;
  --zn-paper: #f2f5fb;
  --zn-paper-warm: #edf2fa;
  --zn-card: #ffffff;
  --zn-surface-subtle: #f6f9fe;
  --zn-surface-quiet: #edf3fb;
  --zn-stroke: #d4dfef;
  --zn-stroke-soft: #dfe7f4;
  --zn-focus: #517ed1;
  --zn-success: #147452;
  --zn-success-soft: #d9f2e7;
  --zn-warning: #8a5b06;
  --zn-warning-soft: #ffefc9;
  --zn-info: #274a87;
  --zn-info-soft: #e1eafb;
  --bs-primary: var(--zn-teal);
  --bs-link-color: var(--zn-teal);
  --bs-link-hover-color: var(--zn-deep-teal);
}

body.zn-page-home.zn-system-accounting {
  background:
    radial-gradient(circle at 7% -10%, rgba(81, 126, 209, 0.2), transparent 38%),
    radial-gradient(circle at 94% 6%, rgba(34, 134, 95, 0.15), transparent 36%),
    var(--zn-paper);
}

.zn-system-accounting .zn-page-header {
  border-color: #cddbef;
  background:
    radial-gradient(circle at 96% 10%, rgba(34, 134, 95, 0.12), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(235, 242, 252, 0.95));
}

.zn-system-accounting .zn-empty-state {
  border-color: #b8cbe8;
  background: #f8fbff;
}

.zn-system-accounting .btn-dark {
  background-color: var(--zn-teal);
  border-color: var(--zn-teal);
}

.zn-system-accounting .btn-dark:hover,
.zn-system-accounting .btn-dark:focus,
.zn-system-accounting .btn-dark:active,
.zn-system-accounting .btn-dark.active,
.zn-system-accounting .show > .btn-dark.dropdown-toggle {
  background-color: var(--zn-deep-teal);
  border-color: var(--zn-deep-teal);
}

.zn-system-accounting .btn-outline-dark {
  border-color: #7890ba;
  color: var(--zn-teal);
}

.zn-system-accounting .btn-outline-dark:hover,
.zn-system-accounting .btn-outline-dark:focus,
.zn-system-accounting .btn-outline-dark:active,
.zn-system-accounting .btn-outline-dark.active,
.zn-system-accounting .show > .btn-outline-dark.dropdown-toggle {
  background-color: var(--zn-teal);
  border-color: var(--zn-teal);
  color: #f8fbff;
}

.zn-system-accounting .zn-system-sidebar {
  background:
    radial-gradient(circle at 96% 4%, rgba(72, 204, 143, 0.18), transparent 28%),
    linear-gradient(180deg, #1b3567 0%, #102448 100%);
  box-shadow: -10px 0 34px rgba(15, 30, 61, 0.28);
}

.zn-system-accounting .zn-system-sidebar .offcanvas-header {
  border-color: rgba(210, 225, 251, 0.18);
}

.zn-system-accounting .zn-system-sidebar .offcanvas-title,
.zn-system-accounting .zn-system-sidebar .list-group-item {
  color: #f3f7ff;
}

.zn-system-accounting .zn-system-sidebar .note,
.zn-system-accounting .zn-system-sidebar .zn-drawer-list .list-group-item small {
  color: #c1d0e9;
}

.zn-system-accounting .zn-system-sidebar .btn-close {
  filter: invert(1) grayscale(1) brightness(2);
}

.zn-system-accounting .zn-system-sidebar .zn-drawer-list .list-group-item {
  border-color: rgba(210, 225, 251, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

.zn-system-accounting .zn-system-sidebar .zn-drawer-list .list-group-item.active,
.zn-system-accounting .zn-system-sidebar .zn-drawer-list .list-group-item:hover {
  border-color: rgba(102, 224, 166, 0.42);
  background: rgba(38, 151, 103, 0.32);
  color: #ffffff;
}

.zn-system-accounting .zn-system-sidebar .zn-drawer-list .list-group-item.active small,
.zn-system-accounting .zn-system-sidebar .zn-drawer-list .list-group-item:hover small {
  color: #ddf7e9;
}

.zn-system-accounting .zn-system-sidebar .zn-drawer-tag {
  border-color: rgba(134, 235, 181, 0.42);
  background: rgba(31, 146, 99, 0.2);
  color: #d9f8e7;
}

body.zn-theme-dark.zn-system-accounting {
  --zn-ink: #f1f5ff;
  --zn-ink-soft: #d2dcef;
  --zn-muted: #aebed9;
  --zn-teal: #78a0f2;
  --zn-deep-teal: #a8c1ff;
  --zn-sun: #5dce97;
  --zn-sky: #91b4ff;
  --zn-focus: #91b4ff;
  background:
    radial-gradient(circle at 8% -8%, rgba(100, 143, 231, 0.2), transparent 34%),
    radial-gradient(circle at 96% 4%, rgba(54, 194, 127, 0.16), transparent 30%),
    linear-gradient(180deg, #09142a 0%, #0d1930 48%, #101d36 100%);
}

body.zn-theme-dark.zn-system-accounting .zn-page-header {
  border-color: rgba(136, 171, 237, 0.26);
  background:
    radial-gradient(circle at 96% 8%, rgba(59, 197, 133, 0.16), transparent 26%),
    linear-gradient(135deg, rgba(20, 40, 78, 0.96), rgba(10, 24, 49, 0.97));
}

body.zn-theme-dark.zn-system-accounting .zn-empty-state {
  border-color: rgba(139, 174, 240, 0.38);
  background: rgba(15, 32, 62, 0.8);
}

body.zn-theme-dark.zn-system-accounting .btn-dark {
  background-color: #78a0f2;
  border-color: #78a0f2;
  color: #102448;
}

body.zn-theme-dark.zn-system-accounting .btn-dark:hover,
body.zn-theme-dark.zn-system-accounting .btn-dark:focus,
body.zn-theme-dark.zn-system-accounting .btn-dark:active,
body.zn-theme-dark.zn-system-accounting .btn-dark.active,
body.zn-theme-dark.zn-system-accounting .show > .btn-dark.dropdown-toggle {
  background-color: #a8c1ff;
  border-color: #a8c1ff;
  color: #09142a;
}

body.zn-theme-dark.zn-system-accounting .btn-outline-dark {
  border-color: rgba(173, 200, 255, 0.56);
  color: #dce8ff;
}

body.zn-theme-dark.zn-system-accounting .btn-outline-dark:hover,
body.zn-theme-dark.zn-system-accounting .btn-outline-dark:focus,
body.zn-theme-dark.zn-system-accounting .btn-outline-dark:active,
body.zn-theme-dark.zn-system-accounting .btn-outline-dark.active,
body.zn-theme-dark.zn-system-accounting .show > .btn-outline-dark.dropdown-toggle {
  background: rgba(130, 165, 239, 0.22);
  border-color: #a8c1ff;
  color: #ffffff;
}

body.zn-theme-dark.zn-system-accounting .zn-system-sidebar {
  background:
    radial-gradient(circle at 96% 5%, rgba(73, 210, 143, 0.18), transparent 27%),
    linear-gradient(180deg, #152c57 0%, #0a1b37 100%);
}

/* zMaterials keeps the shared system shell while using a mineral-and-copper identity. */
.zn-system-materials {
  --zn-ink: #263336;
  --zn-ink-soft: #4c5d60;
  --zn-muted: #6d7b7c;
  --zn-teal: #216b70;
  --zn-deep-teal: #154c53;
  --zn-sun: #bf6128;
  --zn-sky: #3d8296;
  --zn-paper: #f6f1e8;
  --zn-paper-warm: #eee8dc;
  --zn-card: #fffdfa;
  --zn-surface-subtle: #fbf7f0;
  --zn-surface-quiet: #e9f0ed;
  --zn-surface-dark: #203437;
  --zn-stroke: #ddcfbb;
  --zn-stroke-soft: #e8ddce;
  --zn-focus: #3d8296;
  --zn-success: #2f725c;
  --zn-success-soft: #dceee4;
  --zn-warning: #8c5318;
  --zn-warning-soft: #f9e7cb;
  --zn-info: #216b70;
  --zn-info-soft: #dceef0;
  --bs-primary: var(--zn-teal);
  --bs-link-color: var(--zn-teal);
  --bs-link-hover-color: var(--zn-deep-teal);
}

body.zn-page-home.zn-system-materials {
  background:
    radial-gradient(circle at 6% -8%, rgba(191, 97, 40, 0.2), transparent 37%),
    radial-gradient(circle at 95% 4%, rgba(61, 130, 150, 0.18), transparent 35%),
    var(--zn-paper);
}

.zn-system-materials .zn-page-header {
  border-color: #d8c6af;
  background:
    radial-gradient(circle at 94% 8%, rgba(61, 130, 150, 0.14), transparent 27%),
    radial-gradient(circle at 9% 88%, rgba(191, 97, 40, 0.09), transparent 28%),
    linear-gradient(135deg, rgba(255, 253, 250, 0.99), rgba(240, 245, 239, 0.96));
}

.zn-system-materials .module-card,
.zn-system-materials .zn-table-card,
.zn-system-materials .zn-table-toolbar,
.zn-system-materials .zn-empty-state,
.zn-system-materials .zn-readonly-panel,
.zn-system-materials .zn-detail-item,
.zn-system-materials .zn-drawer-card {
  border-color: #dfd1bf;
}

.zn-system-materials .zn-empty-state {
  background: #fcf8f2;
}

.zn-system-materials .zn-callout-info {
  border-color: #b8d5d5;
  background: #e3f0ef;
  color: #20575d;
}

.zn-system-materials .btn-dark {
  background-color: var(--zn-teal);
  border-color: var(--zn-teal);
}

.zn-system-materials .btn-dark:hover,
.zn-system-materials .btn-dark:focus,
.zn-system-materials .btn-dark:active,
.zn-system-materials .btn-dark.active,
.zn-system-materials .show > .btn-dark.dropdown-toggle {
  background-color: var(--zn-deep-teal);
  border-color: var(--zn-deep-teal);
}

.zn-system-materials .btn-outline-dark {
  border-color: #74959a;
  color: var(--zn-teal);
}

.zn-system-materials .btn-outline-dark:hover,
.zn-system-materials .btn-outline-dark:focus,
.zn-system-materials .btn-outline-dark:active,
.zn-system-materials .btn-outline-dark.active,
.zn-system-materials .show > .btn-outline-dark.dropdown-toggle {
  background-color: var(--zn-teal);
  border-color: var(--zn-teal);
  color: #ffffff;
}

.zn-system-materials .zn-system-sidebar {
  background:
    radial-gradient(circle at 95% 4%, rgba(218, 132, 69, 0.22), transparent 30%),
    linear-gradient(180deg, #28565b 0%, #183a40 100%);
  box-shadow: -10px 0 34px rgba(24, 58, 64, 0.28);
}

.zn-system-materials .zn-system-sidebar .offcanvas-header {
  border-color: rgba(223, 241, 236, 0.18);
}

.zn-system-materials .zn-system-sidebar .offcanvas-title,
.zn-system-materials .zn-system-sidebar .list-group-item {
  color: #f4faf6;
}

.zn-system-materials .zn-system-sidebar .note,
.zn-system-materials .zn-system-sidebar .zn-drawer-list .list-group-item small {
  color: #c4dad3;
}

.zn-system-materials .zn-system-sidebar .btn-close {
  filter: invert(1) grayscale(1) brightness(2);
}

.zn-system-materials .zn-system-sidebar .zn-drawer-list .list-group-item {
  border-color: rgba(223, 241, 236, 0.12);
  background: rgba(255, 255, 255, 0.035);
}

.zn-system-materials .zn-system-sidebar .zn-drawer-list .list-group-item.active,
.zn-system-materials .zn-system-sidebar .zn-drawer-list .list-group-item:hover {
  border-color: rgba(242, 172, 112, 0.52);
  background: rgba(191, 97, 40, 0.34);
  color: #ffffff;
}

.zn-system-materials .zn-system-sidebar .zn-drawer-list .list-group-item.active small,
.zn-system-materials .zn-system-sidebar .zn-drawer-list .list-group-item:hover small {
  color: #fff0e2;
}

.zn-system-materials .zn-system-sidebar .zn-drawer-tag {
  border-color: rgba(255, 190, 132, 0.44);
  background: rgba(191, 97, 40, 0.2);
  color: #ffe1c5;
}

.zn-system-materials .zn-system-context-drawer {
  border-color: #d7c7b3;
  background:
    radial-gradient(circle at 94% 4%, rgba(61, 130, 150, 0.1), transparent 28%),
    #fffdfa;
}

body.zn-system-materials .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content {
  border-color: #d7c7b3;
  background:
    radial-gradient(circle at 96% 4%, rgba(61, 130, 150, 0.1), transparent 26%),
    #fffdfa;
}

body.zn-system-materials .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-close:hover:before,
body.zn-system-materials .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-close:active:before {
  background: #f7dfc8;
}

body.zn-theme-dark.zn-system-materials {
  --zn-ink: #edf5f0;
  --zn-ink-soft: #ceded7;
  --zn-ink-inverse: #edf5f0;
  --zn-muted: #aebfb8;
  --zn-teal: #72c4bd;
  --zn-deep-teal: #a8e3dc;
  --zn-sun: #f0a66e;
  --zn-sky: #8ac9d9;
  --zn-paper: #10282d;
  --zn-paper-warm: #102427;
  --zn-card: #162f33;
  --zn-surface-subtle: #183438;
  --zn-surface-quiet: #1b3939;
  --zn-surface-dark: #0c1e22;
  --zn-stroke: rgba(148, 204, 195, 0.24);
  --zn-stroke-soft: rgba(148, 204, 195, 0.16);
  --zn-focus: #8ac9d9;
  --zn-success: #72c99b;
  --zn-success-soft: rgba(66, 142, 106, 0.24);
  --zn-warning: #efbf7a;
  --zn-warning-soft: rgba(177, 119, 39, 0.23);
  --zn-info: #8ac9d9;
  --zn-info-soft: rgba(54, 134, 150, 0.27);
  --zn-dark-surface: rgba(18, 46, 50, 0.9);
  --zn-dark-surface-soft: rgba(25, 57, 59, 0.92);
  --zn-dark-surface-elevated: rgba(29, 64, 65, 0.94);
  --zn-dark-border: rgba(150, 207, 198, 0.18);
  --zn-dark-border-strong: rgba(181, 225, 218, 0.28);
  --zn-dark-muted: #aebfb8;
  --zn-dark-soft: #ceded7;
  background:
    radial-gradient(circle at 6% -8%, rgba(212, 119, 61, 0.17), transparent 34%),
    radial-gradient(circle at 96% 4%, rgba(79, 170, 181, 0.16), transparent 30%),
    linear-gradient(180deg, #0c2024 0%, #102a2e 48%, #0c2226 100%);
}

body.zn-theme-dark.zn-system-materials .zn-page-header {
  border-color: rgba(128, 202, 194, 0.28);
  background:
    radial-gradient(circle at 95% 8%, rgba(102, 194, 188, 0.16), transparent 27%),
    radial-gradient(circle at 10% 90%, rgba(234, 146, 82, 0.13), transparent 25%),
    linear-gradient(135deg, rgba(23, 55, 59, 0.97), rgba(11, 31, 35, 0.98));
}

body.zn-theme-dark.zn-system-materials .module-card,
body.zn-theme-dark.zn-system-materials .zn-table-card,
body.zn-theme-dark.zn-system-materials .zn-table-toolbar,
body.zn-theme-dark.zn-system-materials .zn-empty-state,
body.zn-theme-dark.zn-system-materials .zn-readonly-panel,
body.zn-theme-dark.zn-system-materials .zn-detail-item,
body.zn-theme-dark.zn-system-materials .zn-drawer-card {
  border-color: rgba(143, 205, 196, 0.2);
  background: linear-gradient(180deg, rgba(22, 52, 56, 0.97), rgba(12, 34, 38, 0.96));
}

body.zn-theme-dark.zn-system-materials .zn-callout-info {
  border-color: rgba(124, 208, 202, 0.34);
  background: rgba(42, 108, 110, 0.32);
  color: #d5f2ed;
}

body.zn-theme-dark.zn-system-materials .btn-dark {
  background-color: #72c4bd;
  border-color: #72c4bd;
  color: #103135;
}

body.zn-theme-dark.zn-system-materials .btn-dark:hover,
body.zn-theme-dark.zn-system-materials .btn-dark:focus,
body.zn-theme-dark.zn-system-materials .btn-dark:active,
body.zn-theme-dark.zn-system-materials .btn-dark.active,
body.zn-theme-dark.zn-system-materials .show > .btn-dark.dropdown-toggle {
  background-color: #a8e3dc;
  border-color: #a8e3dc;
  color: #092125;
}

body.zn-theme-dark.zn-system-materials .btn-outline-dark {
  border-color: rgba(180, 232, 224, 0.55);
  color: #d8f1ed;
}

body.zn-theme-dark.zn-system-materials .btn-outline-dark:hover,
body.zn-theme-dark.zn-system-materials .btn-outline-dark:focus,
body.zn-theme-dark.zn-system-materials .btn-outline-dark:active,
body.zn-theme-dark.zn-system-materials .btn-outline-dark.active,
body.zn-theme-dark.zn-system-materials .show > .btn-outline-dark.dropdown-toggle {
  background: rgba(104, 196, 189, 0.2);
  border-color: #a8e3dc;
  color: #ffffff;
}

body.zn-theme-dark.zn-system-materials .zn-system-sidebar {
  background:
    radial-gradient(circle at 95% 5%, rgba(238, 153, 88, 0.2), transparent 28%),
    linear-gradient(180deg, #21494e 0%, #102b30 100%);
}

body.zn-theme-dark.zn-system-materials .zn-system-context-drawer {
  border-color: rgba(143, 205, 196, 0.22);
  background:
    radial-gradient(circle at 95% 5%, rgba(235, 145, 80, 0.13), transparent 27%),
    linear-gradient(180deg, #173b3f 0%, #0d282d 100%);
}

body.zn-theme-dark.zn-system-materials .ngdialog.ngdialog-theme-default.zn-ngdialog-theme .ngdialog-content {
  border-color: rgba(143, 205, 196, 0.24);
  background:
    radial-gradient(circle at 95% 5%, rgba(235, 145, 80, 0.12), transparent 25%),
    linear-gradient(180deg, rgba(22, 52, 56, 0.98), rgba(11, 31, 35, 0.99));
}

/* Hris uses a people-centered indigo, teal, and coral identity while retaining the shared suite shell. */
.zn-system-hris {
  --zn-ink: #202b4b;
  --zn-ink-soft: #43516f;
  --zn-muted: #6d7892;
  --zn-teal: #315f9d;
  --zn-deep-teal: #244778;
  --zn-sun: #d76958;
  --zn-sky: #65a8ae;
  --zn-paper: #f6f8fd;
  --zn-paper-warm: #f2f5fb;
  --zn-card: #ffffff;
  --zn-surface-subtle: #eef2fa;
  --zn-surface-quiet: #edf7f6;
  --zn-surface-dark: #202f58;
  --zn-stroke: #d4dced;
  --zn-stroke-soft: #e5eaf4;
  --zn-success: #287f69;
  --zn-success-soft: #e4f4ed;
  --zn-warning: #ad7429;
  --zn-warning-soft: #fff3dc;
  --zn-info: #2d7088;
  --zn-info-soft: #e1f1f4;
  --zn-danger: #b65057;
  --zn-danger-soft: #fcebed;
  --bs-link-color: var(--zn-teal);
  --bs-link-hover-color: var(--zn-deep-teal);
}

body.zn-page-home.zn-system-hris {
  background:
    radial-gradient(circle at 6% -10%, rgba(100, 121, 190, 0.2), transparent 38%),
    radial-gradient(circle at 96% 5%, rgba(88, 172, 171, 0.16), transparent 35%),
    var(--zn-paper);
}

.zn-system-hris .zn-page-header,
.zn-system-hris .zn-hris-people-spotlight {
  border-color: #cbd6ec;
  background:
    radial-gradient(circle at 95% 8%, rgba(102, 169, 174, 0.16), transparent 27%),
    radial-gradient(circle at 5% 0%, rgba(91, 110, 181, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 243, 252, 0.96));
}

.zn-system-hris .zn-hris-people-spotlight {
  padding: 1.35rem 1.4rem;
}

.zn-system-hris .module-card,
.zn-system-hris .zn-table-card,
.zn-system-hris .zn-table-toolbar,
.zn-system-hris .zn-empty-state,
.zn-system-hris .zn-readonly-panel,
.zn-system-hris .zn-detail-item,
.zn-system-hris .zn-drawer-card,
.zn-system-hris .zn-filter-bar {
  border-color: #d6deed;
}

.zn-system-hris .zn-empty-state {
  background: #f8faff;
}

.zn-system-hris .zn-callout-info {
  border-color: #b8dadd;
  background: #e6f4f4;
  color: #285d69;
}

.zn-system-hris .btn-dark {
  background-color: var(--zn-teal);
  border-color: var(--zn-teal);
}

.zn-system-hris .btn-dark:hover,
.zn-system-hris .btn-dark:focus,
.zn-system-hris .btn-dark:active,
.zn-system-hris .btn-dark.active,
.zn-system-hris .show > .btn-dark.dropdown-toggle {
  background-color: var(--zn-deep-teal);
  border-color: var(--zn-deep-teal);
}

.zn-system-hris .btn-outline-dark {
  border-color: #7089bb;
  color: var(--zn-teal);
}

.zn-system-hris .btn-outline-dark:hover,
.zn-system-hris .btn-outline-dark:focus,
.zn-system-hris .btn-outline-dark:active,
.zn-system-hris .btn-outline-dark.active,
.zn-system-hris .show > .btn-outline-dark.dropdown-toggle {
  background-color: var(--zn-teal);
  border-color: var(--zn-teal);
  color: #ffffff;
}

.zn-system-hris .zn-system-sidebar {
  background:
    radial-gradient(circle at 96% 4%, rgba(223, 120, 98, 0.2), transparent 29%),
    radial-gradient(circle at 3% 18%, rgba(96, 174, 175, 0.16), transparent 30%),
    linear-gradient(180deg, #293d73 0%, #1b2b55 100%);
  box-shadow: -10px 0 34px rgba(26, 40, 80, 0.28);
}

.zn-system-hris .zn-system-sidebar .offcanvas-header {
  border-color: rgba(220, 228, 252, 0.18);
}

.zn-system-hris .zn-system-sidebar .offcanvas-title,
.zn-system-hris .zn-system-sidebar .list-group-item {
  color: #f4f7ff;
}

.zn-system-hris .zn-system-sidebar .note,
.zn-system-hris .zn-system-sidebar .zn-drawer-list .list-group-item small {
  color: #c7d3ee;
}

.zn-system-hris .zn-system-sidebar .btn-close {
  filter: invert(1) grayscale(1) brightness(2);
}

.zn-system-hris .zn-system-sidebar .zn-drawer-list .list-group-item {
  border-color: rgba(215, 226, 252, 0.12);
  background: rgba(255, 255, 255, 0.035);
}

.zn-system-hris .zn-system-sidebar .zn-drawer-list .list-group-item.active,
.zn-system-hris .zn-system-sidebar .zn-drawer-list .list-group-item:hover {
  border-color: rgba(124, 213, 202, 0.46);
  background: rgba(58, 132, 157, 0.34);
  color: #ffffff;
}

.zn-system-hris .zn-system-sidebar .zn-drawer-list .list-group-item.active small,
.zn-system-hris .zn-system-sidebar .zn-drawer-list .list-group-item:hover small {
  color: #def7f2;
}

.zn-system-hris .zn-system-sidebar .zn-drawer-tag {
  border-color: rgba(145, 226, 216, 0.45);
  background: rgba(51, 147, 159, 0.22);
  color: #d9f8f2;
}

.zn-system-hris .zn-hris-metric-card {
  background: linear-gradient(145deg, #ffffff 0%, #f0f4fc 100%);
}

.zn-system-hris .zn-hris-filter-shell {
  background: linear-gradient(135deg, #fbfcff, #f1f5fd);
}

.zn-system-hris .zn-hris-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
}

.zn-system-hris .zn-hris-page-size {
  width: auto;
  min-width: 5rem;
}

.zn-system-hris .zn-hris-workflow {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.zn-system-hris .zn-hris-workflow li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.zn-system-hris .zn-hris-workflow li > span {
  align-items: center;
  background: var(--zn-teal);
  border-radius: 50%;
  color: #ffffff;
  display: inline-flex;
  font-weight: 700;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.zn-system-hris .zn-hris-detail-wide {
  grid-column: 1 / -1;
}

.zn-system-hris .zn-hris-confirmation {
  border: 1px solid #aebfe2;
  border-radius: var(--zn-radius-md);
  background: #edf3ff;
  padding: 1rem;
}

.zn-system-hris .zn-hris-employee-actions {
  border-top: 1px solid rgba(86, 112, 172, 0.22);
  padding-top: 1.4rem;
}

.zn-system-hris .zn-hris-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.zn-system-hris .zn-hris-action-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  min-width: 0;
  border: 1px solid #cfd9eb;
  border-radius: var(--zn-radius-lg);
  background:
    radial-gradient(circle at 94% 9%, rgba(102, 169, 174, 0.14), transparent 32%),
    linear-gradient(145deg, #ffffff, #f0f4fc);
  box-shadow: var(--zn-shadow-soft);
  padding: 1.1rem;
}

.zn-system-hris .zn-hris-action-card .zn-icon-disc {
  width: 2.4rem;
  height: 2.4rem;
  border-color: rgba(49, 95, 157, 0.2);
  background: rgba(49, 95, 157, 0.1);
  color: var(--zn-teal);
}

.zn-system-hris .zn-hris-action-card > div:nth-child(2) {
  flex: 1 1 auto;
}

.zn-system-hris .zn-hris-letter-recipient {
  border: 1px solid var(--zn-stroke-soft);
  border-radius: var(--zn-radius-lg);
  background: var(--zn-surface-quiet);
}

.zn-system-hris .zn-hris-letter-type-card {
  border: 1px solid var(--zn-stroke-soft);
  border-radius: var(--zn-radius-lg);
  background: var(--zn-card);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.zn-system-hris .zn-hris-letter-type-card:hover,
.zn-system-hris .zn-hris-letter-type-card:focus-within {
  border-color: var(--zn-teal);
  box-shadow: var(--zn-shadow-soft);
  transform: translateY(-1px);
}

.zn-system-hris .zn-hris-letter-type-card.is-selected {
  border-color: var(--zn-teal);
  box-shadow: inset 0 0 0 1px var(--zn-teal), var(--zn-shadow-soft);
}

.zn-system-hris .zn-hris-letter-paper {
  min-height: 54rem;
  padding: 3.25rem;
  border: 1px solid var(--zn-stroke);
  border-radius: var(--zn-radius-md);
  background: #fff;
  color: #17221f;
  box-shadow: var(--zn-shadow-soft);
}

.zn-system-hris .zn-hris-letter-recipient-line,
.zn-system-hris .zn-hris-letter-body {
  white-space: pre-wrap;
}

.zn-system-hris .zn-hris-letter-body {
  line-height: 1.75;
}

.zn-system-hris .zn-hris-applicant-heading,
.zn-system-hris .zn-hris-person-heading {
  align-items: center;
  display: flex;
  gap: 0.9rem;
}

.zn-system-hris .zn-hris-application-avatar,
.zn-system-hris .zn-hris-employee-avatar {
  align-items: center;
  background: linear-gradient(145deg, #315f9d, #65a8ae);
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(35, 63, 121, 0.18);
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 auto;
  font-family: var(--zn-font-display);
  font-size: 1.15rem;
  height: 3.5rem;
  justify-content: center;
  overflow: hidden;
  text-transform: uppercase;
  width: 3.5rem;
}

.zn-system-hris .zn-hris-application-avatar img,
.zn-system-hris .zn-hris-employee-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.zn-system-hris .zn-hris-application-avatar-sm,
.zn-system-hris .zn-hris-employee-avatar-sm {
  font-size: 0.9rem;
  height: 2.25rem;
  width: 2.25rem;
}

body.zn-theme-dark.zn-system-hris {
  --zn-ink: #eef3ff;
  --zn-ink-soft: #d3ddf3;
  --zn-ink-inverse: #eef3ff;
  --zn-muted: #acbad8;
  --zn-teal: #82a6f2;
  --zn-deep-teal: #aec7ff;
  --zn-sun: #f29a87;
  --zn-sky: #83d0cc;
  --zn-paper: #0d1831;
  --zn-paper-warm: #101c37;
  --zn-card: #142342;
  --zn-surface-subtle: #182947;
  --zn-surface-quiet: #16333e;
  --zn-surface-dark: #0a1228;
  --zn-stroke: rgba(153, 183, 242, 0.28);
  --zn-stroke-soft: rgba(153, 183, 242, 0.17);
  --zn-success: #72c9aa;
  --zn-success-soft: rgba(48, 135, 106, 0.28);
  --zn-warning: #f0bc68;
  --zn-warning-soft: rgba(174, 115, 35, 0.28);
  --zn-info: #83cfd7;
  --zn-info-soft: rgba(52, 130, 147, 0.3);
  --zn-danger: #f29b9f;
  --zn-danger-soft: rgba(166, 63, 75, 0.3);
  background:
    radial-gradient(circle at 6% -9%, rgba(100, 129, 222, 0.2), transparent 36%),
    radial-gradient(circle at 96% 5%, rgba(80, 192, 181, 0.14), transparent 32%),
    linear-gradient(180deg, #0b152c 0%, #0e1a35 48%, #111f3c 100%);
}

body.zn-theme-dark.zn-system-hris .zn-page-header,
body.zn-theme-dark.zn-system-hris .zn-hris-people-spotlight {
  border-color: rgba(141, 181, 244, 0.28);
  background:
    radial-gradient(circle at 95% 8%, rgba(99, 207, 196, 0.15), transparent 27%),
    linear-gradient(135deg, rgba(31, 55, 105, 0.97), rgba(12, 27, 58, 0.98));
}

body.zn-theme-dark.zn-system-hris .module-card,
body.zn-theme-dark.zn-system-hris .zn-table-card,
body.zn-theme-dark.zn-system-hris .zn-table-toolbar,
body.zn-theme-dark.zn-system-hris .zn-empty-state,
body.zn-theme-dark.zn-system-hris .zn-readonly-panel,
body.zn-theme-dark.zn-system-hris .zn-detail-item,
body.zn-theme-dark.zn-system-hris .zn-drawer-card,
body.zn-theme-dark.zn-system-hris .zn-filter-bar {
  border-color: rgba(145, 183, 243, 0.22);
  background: linear-gradient(180deg, rgba(24, 43, 82, 0.97), rgba(12, 27, 56, 0.96));
}

body.zn-theme-dark.zn-system-hris .zn-hris-metric-card {
  background: linear-gradient(145deg, rgba(30, 55, 104, 0.98), rgba(17, 34, 70, 0.98));
}

body.zn-theme-dark.zn-system-hris .zn-callout-info {
  border-color: rgba(123, 213, 205, 0.34);
  background: rgba(36, 110, 116, 0.31);
  color: #d5f4f0;
}

body.zn-theme-dark.zn-system-hris .btn-dark {
  background-color: #82a6f2;
  border-color: #82a6f2;
  color: #10234b;
}

body.zn-theme-dark.zn-system-hris .btn-dark:hover,
body.zn-theme-dark.zn-system-hris .btn-dark:focus,
body.zn-theme-dark.zn-system-hris .btn-dark:active,
body.zn-theme-dark.zn-system-hris .btn-dark.active,
body.zn-theme-dark.zn-system-hris .show > .btn-dark.dropdown-toggle {
  background-color: #b2cbff;
  border-color: #b2cbff;
  color: #0a1a39;
}

body.zn-theme-dark.zn-system-hris .btn-outline-dark {
  border-color: rgba(181, 207, 255, 0.56);
  color: #dce7ff;
}

body.zn-theme-dark.zn-system-hris .btn-outline-dark:hover,
body.zn-theme-dark.zn-system-hris .btn-outline-dark:focus,
body.zn-theme-dark.zn-system-hris .btn-outline-dark:active,
body.zn-theme-dark.zn-system-hris .btn-outline-dark.active,
body.zn-theme-dark.zn-system-hris .show > .btn-outline-dark.dropdown-toggle {
  background: rgba(128, 166, 240, 0.22);
  border-color: #b2cbff;
  color: #ffffff;
}

body.zn-theme-dark.zn-system-hris .zn-system-sidebar {
  background:
    radial-gradient(circle at 96% 5%, rgba(239, 140, 118, 0.18), transparent 28%),
    linear-gradient(180deg, #263e78 0%, #10244e 100%);
}

body.zn-theme-dark.zn-system-hris .zn-hris-confirmation {
  border-color: rgba(157, 190, 251, 0.34);
  background: rgba(52, 82, 143, 0.3);
}

body.zn-theme-dark.zn-system-hris .zn-hris-employee-actions {
  border-color: rgba(145, 183, 243, 0.24);
}

body.zn-theme-dark.zn-system-hris .zn-hris-action-card {
  border-color: rgba(145, 183, 243, 0.26);
  background:
    radial-gradient(circle at 94% 9%, rgba(99, 207, 196, 0.12), transparent 32%),
    linear-gradient(145deg, rgba(30, 55, 104, 0.98), rgba(15, 31, 65, 0.98));
}

body.zn-theme-dark.zn-system-hris .zn-hris-action-card .zn-icon-disc {
  border-color: rgba(159, 190, 250, 0.32);
  background: rgba(127, 166, 242, 0.18);
  color: #d8e6ff;
}

body.zn-theme-dark.zn-system-hris .zn-hris-letter-recipient {
  border-color: rgba(160, 188, 220, 0.28);
  background: rgba(33, 58, 93, 0.34);
}

body.zn-theme-dark.zn-system-hris .zn-hris-letter-type-card {
  border-color: rgba(160, 188, 220, 0.28);
  background: rgba(24, 42, 67, 0.78);
}

body.zn-theme-dark.zn-system-hris .zn-hris-letter-type-card.is-selected {
  border-color: #75bbb6;
  box-shadow: inset 0 0 0 1px #75bbb6, var(--zn-shadow-soft);
}

@media print {
  body.zn-hris-letter-printing * {
    visibility: hidden !important;
  }

  body.zn-hris-letter-printing .zn-hris-letter-paper,
  body.zn-hris-letter-printing .zn-hris-letter-paper * {
    visibility: visible !important;
  }

  body.zn-hris-letter-printing .zn-hris-letter-paper {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
  }
}

body.zn-theme-dark.zn-system-hris .zn-hris-application-avatar,
body.zn-theme-dark.zn-system-hris .zn-hris-employee-avatar {
  border-color: rgba(228, 239, 255, 0.88);
  box-shadow: 0 4px 14px rgba(3, 13, 36, 0.36);
}

@media (min-width: 992px) {
  .zn-system-hris .zn-hris-filter-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 575.98px) {
  .zn-system-hris .zn-hris-people-spotlight {
    padding: 1.1rem;
  }

  .zn-system-hris .zn-hris-filter-actions .btn {
    flex: 1 1 auto;
  }

  .zn-system-hris .zn-pagination-shell {
    align-items: stretch !important;
  }

  .zn-system-hris .zn-pagination-shell > div:last-child {
    justify-content: space-between;
  }

  .zn-system-hris .zn-hris-action-grid {
    grid-template-columns: 1fr;
  }

  .zn-system-hris .zn-hris-action-card {
    padding: 1rem;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .zn-system-hris .zn-hris-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Accounting Chart of Accounts: a compact ledger tree with a persistent account inspector. */
.zn-system-accounting .zn-accounting-coa-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(18rem, 0.7fr);
  gap: 1rem;
  align-items: start;
}

.zn-system-accounting .zn-accounting-coa-loading {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(18rem, 0.7fr);
  gap: 1rem;
}

.zn-system-accounting .zn-accounting-coa-loading .zn-skeleton-panel {
  min-height: 28rem;
}

.zn-system-accounting .zn-accounting-tree {
  max-height: min(66vh, 46rem);
  overflow: auto;
  padding: 0.2rem;
}

.zn-system-accounting .zn-accounting-tree-node {
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
  min-width: max-content;
}

.zn-system-accounting .zn-accounting-tree-level-0 {
  padding-left: 0;
}

.zn-system-accounting .zn-accounting-tree-level-1 {
  padding-left: 1rem;
}

.zn-system-accounting .zn-accounting-tree-level-2 {
  padding-left: 2rem;
}

.zn-system-accounting .zn-accounting-tree-level-3 {
  padding-left: 3rem;
}

.zn-system-accounting .zn-accounting-tree-level-4 {
  padding-left: 4rem;
}

.zn-system-accounting .zn-accounting-tree-level-5 {
  padding-left: 5rem;
}

.zn-system-accounting .zn-accounting-tree-level-6 {
  padding-left: 6rem;
}

.zn-system-accounting .zn-accounting-tree-level-7 {
  padding-left: 7rem;
}

.zn-system-accounting .zn-accounting-tree-toggle,
.zn-system-accounting .zn-accounting-tree-spacer {
  flex: 0 0 2rem;
  width: 2rem;
}

.zn-system-accounting .zn-accounting-tree-toggle {
  align-self: center;
  height: 2rem;
  border: 1px solid #bfd0ea;
  border-radius: 8px;
  background: #f6f9ff;
  color: var(--zn-teal);
  font-weight: 800;
  line-height: 1;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.zn-system-accounting .zn-accounting-tree-toggle:hover,
.zn-system-accounting .zn-accounting-tree-toggle:focus-visible {
  border-color: #7798cb;
  background: #e7effc;
  color: var(--zn-deep-teal);
}

.zn-system-accounting .zn-accounting-tree-row {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  min-width: 20rem;
  margin: 0 0 0.35rem;
  padding: 0.62rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--zn-ink);
  text-align: left;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.zn-system-accounting .zn-accounting-tree-row:hover,
.zn-system-accounting .zn-accounting-tree-row:focus-visible {
  border-color: #c2d3ed;
  background: #f3f7fd;
}

.zn-system-accounting .zn-accounting-tree-row.is-selected {
  border-color: #86a6d8;
  background: linear-gradient(90deg, #e5efff, #f5fbff);
  box-shadow: 0 6px 16px rgba(29, 68, 126, 0.1);
}

.zn-system-accounting .zn-accounting-tree-row.is-inactive {
  opacity: 0.68;
}

.zn-system-accounting .zn-accounting-tree-row-main,
.zn-system-accounting .zn-accounting-tree-row-meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.zn-system-accounting .zn-accounting-account-number {
  min-width: 4.4rem;
  color: var(--zn-teal);
  font-family: var(--zn-font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.zn-system-accounting .zn-accounting-account-title {
  font-weight: 700;
}

.zn-system-accounting .zn-accounting-normal-balance {
  color: var(--zn-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.zn-system-accounting .zn-accounting-account-inspector {
  position: sticky;
  top: 1rem;
}

.zn-system-accounting .zn-accounting-state-inactive {
  border-color: #d5b57e;
  background: #fff3dc;
  color: #815213;
}

.zn-system-accounting .zn-accounting-create-drawer {
  width: min(31rem, 100vw);
  background:
    radial-gradient(circle at 96% 4%, rgba(50, 154, 108, 0.13), transparent 31%),
    linear-gradient(180deg, #fdfefe 0%, #f3f7ff 100%);
}

.zn-system-accounting .zn-accounting-create-drawer .offcanvas-header {
  border-color: #cddbef;
}

body.zn-theme-dark.zn-system-accounting .zn-accounting-tree-toggle {
  border-color: rgba(152, 183, 241, 0.38);
  background: rgba(27, 55, 101, 0.72);
  color: #dce8ff;
}

body.zn-theme-dark.zn-system-accounting .zn-accounting-tree-toggle:hover,
body.zn-theme-dark.zn-system-accounting .zn-accounting-tree-toggle:focus-visible {
  border-color: rgba(183, 208, 255, 0.72);
  background: rgba(67, 106, 171, 0.52);
  color: #ffffff;
}

body.zn-theme-dark.zn-system-accounting .zn-accounting-tree-row:hover,
body.zn-theme-dark.zn-system-accounting .zn-accounting-tree-row:focus-visible {
  border-color: rgba(152, 183, 241, 0.34);
  background: rgba(35, 62, 109, 0.58);
}

body.zn-theme-dark.zn-system-accounting .zn-accounting-tree-row.is-selected {
  border-color: rgba(164, 194, 255, 0.68);
  background: linear-gradient(90deg, rgba(47, 85, 151, 0.72), rgba(27, 66, 102, 0.7));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

body.zn-theme-dark.zn-system-accounting .zn-accounting-account-number {
  color: #acc6ff;
}

body.zn-theme-dark.zn-system-accounting .zn-accounting-normal-balance {
  color: #b5c6e4;
}

body.zn-theme-dark.zn-system-accounting .zn-accounting-state-inactive {
  border-color: rgba(246, 204, 125, 0.42);
  background: rgba(134, 89, 23, 0.24);
  color: #ffe0a1;
}

body.zn-theme-dark.zn-system-accounting .zn-accounting-create-drawer {
  background:
    radial-gradient(circle at 96% 4%, rgba(60, 200, 134, 0.14), transparent 31%),
    linear-gradient(180deg, #132a52 0%, #0c1b36 100%);
}

body.zn-theme-dark.zn-system-accounting .zn-accounting-create-drawer .offcanvas-header {
  border-color: rgba(152, 183, 241, 0.28);
}

/* Accounting Journal Entries: reviewable voucher list with a focused posting drawer. */
.zn-system-accounting .zn-accounting-journal-layout,
.zn-system-accounting .zn-accounting-journal-loading {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(19rem, 0.72fr);
  gap: 1rem;
  align-items: start;
}

.zn-system-accounting .zn-accounting-journal-loading .zn-skeleton-panel {
  min-height: 25rem;
}

.zn-system-accounting .zn-accounting-journal-page-loading .zn-skeleton-panel {
  min-height: 25rem;
}

.zn-system-accounting .zn-accounting-journal-inspector {
  position: sticky;
  top: 1rem;
}

.zn-system-accounting .zn-accounting-journal-table tbody tr {
  cursor: pointer;
}

.zn-system-accounting .zn-accounting-journal-table tbody tr:hover td {
  background: #eff5ff;
}

.zn-system-accounting .zn-accounting-journal-narration {
  max-width: 24rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zn-system-accounting .zn-accounting-journal-detail-lines {
  display: grid;
  gap: 0.5rem;
  max-height: min(48vh, 33rem);
  overflow: auto;
}

.zn-system-accounting .zn-accounting-journal-detail-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #dce6f4;
  color: var(--zn-ink);
  font-size: 0.86rem;
}

.zn-system-accounting .zn-accounting-journal-detail-line strong,
.zn-system-accounting .zn-accounting-journal-detail-line small {
  display: block;
}

.zn-system-accounting .zn-accounting-journal-detail-line small {
  margin-top: 0.16rem;
  color: var(--zn-muted);
}

.zn-system-accounting .zn-accounting-journal-totals,
.zn-system-accounting .zn-accounting-journal-draft-totals,
.zn-system-accounting .zn-accounting-journal-review-totals {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid #b9cce8;
  border-radius: var(--zn-radius-md);
  background: #f3f7fd;
  color: var(--zn-ink-soft);
  font-size: 0.88rem;
}

.zn-system-accounting .zn-accounting-journal-review-table .zn-table-card-body {
  padding: 0.6rem 0.75rem;
}

.zn-system-accounting .zn-accounting-journal-review-table th,
.zn-system-accounting .zn-accounting-journal-review-table td {
  padding: 0.6rem 0.7rem;
}

/* Check Voucher review keeps document and posting grids readable inside ngDialog.
   The card remains edge-to-edge while every table cell retains the shared
   table-card breathing room. */
.zn-system-accounting .zn-check-voucher-review .zn-table-card-body .table > :not(caption) > * > * {
  padding: 0.72rem 0.9rem;
  vertical-align: top;
}

.zn-system-accounting .zn-check-voucher-review .zn-table-card-body .table > thead > tr > th {
  background: var(--zn-surface-subtle);
  color: var(--zn-ink-soft);
  font-size: 0.74rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  white-space: nowrap;
}

.zn-system-accounting .zn-check-voucher-review .zn-table-card-body .table > tfoot > tr > * {
  background: var(--zn-surface-quiet);
  border-top: 1px solid var(--zn-stroke);
  color: var(--zn-ink);
  font-weight: 700;
}

.zn-system-accounting .zn-accounting-journal-draft-line {
  margin-bottom: 0.85rem;
  padding: 0.9rem;
  border: 1px solid #cbd9ec;
  border-radius: var(--zn-radius-md);
  background: rgba(255, 255, 255, 0.78);
}

.zn-system-accounting .zn-accounting-journal-draft-totals {
  margin: 1rem 0;
  border-color: #d5b57e;
  background: #fff7e8;
}

.zn-system-accounting .zn-accounting-journal-draft-totals.is-balanced,
.zn-system-accounting .zn-accounting-journal-review-totals {
  border-color: #81bb9b;
  background: #edf9f1;
  color: #1d6340;
}

.zn-system-accounting .zn-accounting-state-posted {
  border-color: #87bf9e;
  background: #ecf8ef;
  color: #1e6c43;
}

.zn-system-accounting .zn-accounting-state-draft {
  border-color: #94b5e4;
  background: #ebf3ff;
  color: #275a99;
}

.zn-system-accounting .zn-accounting-journal-drawer {
  width: min(53rem, 100vw);
  background:
    radial-gradient(circle at 96% 4%, rgba(50, 154, 108, 0.13), transparent 31%),
    linear-gradient(180deg, #fdfefe 0%, #f3f7ff 100%);
}

.zn-system-accounting .zn-accounting-journal-drawer .offcanvas-header {
  border-color: #cddbef;
}

body.zn-theme-dark.zn-system-accounting .zn-accounting-journal-table tbody tr:hover td {
  background: rgba(37, 70, 123, 0.52);
}

body.zn-theme-dark.zn-system-accounting .zn-accounting-journal-detail-line {
  border-color: rgba(152, 183, 241, 0.22);
}

body.zn-theme-dark.zn-system-accounting .zn-accounting-journal-totals,
body.zn-theme-dark.zn-system-accounting .zn-accounting-journal-draft-totals,
body.zn-theme-dark.zn-system-accounting .zn-accounting-journal-review-totals {
  border-color: rgba(152, 183, 241, 0.34);
  background: rgba(22, 47, 88, 0.75);
  color: #dce8ff;
}

body.zn-theme-dark.zn-system-accounting .zn-accounting-journal-draft-line {
  border-color: rgba(152, 183, 241, 0.3);
  background: rgba(12, 29, 58, 0.56);
}

body.zn-theme-dark.zn-system-accounting .zn-accounting-journal-draft-totals.is-balanced,
body.zn-theme-dark.zn-system-accounting .zn-accounting-journal-review-totals {
  border-color: rgba(108, 213, 151, 0.5);
  background: rgba(20, 88, 59, 0.34);
  color: #ccf4da;
}

body.zn-theme-dark.zn-system-accounting .zn-check-voucher-review .zn-table-card-body .table > thead > tr > th {
  background: var(--zn-dark-surface-soft);
  color: var(--zn-ink-inverse);
}

body.zn-theme-dark.zn-system-accounting .zn-check-voucher-review .zn-table-card-body .table > tfoot > tr > * {
  background: var(--zn-dark-surface-soft);
  border-top-color: var(--zn-dark-border);
  color: var(--zn-ink-inverse);
}

body.zn-theme-dark.zn-system-accounting .zn-accounting-state-posted {
  border-color: rgba(108, 213, 151, 0.5);
  background: rgba(24, 111, 72, 0.32);
  color: #cdf6dd;
}

body.zn-theme-dark.zn-system-accounting .zn-accounting-state-draft {
  border-color: rgba(151, 187, 245, 0.52);
  background: rgba(40, 82, 146, 0.38);
  color: #dbe8ff;
}

body.zn-theme-dark.zn-system-accounting .zn-accounting-journal-drawer {
  background:
    radial-gradient(circle at 96% 4%, rgba(60, 200, 134, 0.14), transparent 31%),
    linear-gradient(180deg, #132a52 0%, #0c1b36 100%);
}

body.zn-theme-dark.zn-system-accounting .zn-accounting-journal-drawer .offcanvas-header {
  border-color: rgba(152, 183, 241, 0.28);
}

/* Keyboard-first Journal Voucher grid. */
.zn-system-accounting .zn-accounting-journal-grid-shell {
  min-width: 0;
}

.zn-system-accounting .zn-accounting-journal-header-panel {
  border-color: #c7d7ee;
  background:
    radial-gradient(circle at 96% 14%, rgba(42, 143, 99, 0.1), transparent 28%),
    #f8fbff;
}

.zn-system-accounting .zn-accounting-journal-grid-scroll {
  overflow-x: auto;
  overflow-y: visible;
}

.zn-system-accounting .zn-accounting-journal-grid-table {
  min-width: 72rem;
}

.zn-system-accounting .zn-accounting-journal-grid-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #eaf1fb;
  color: var(--zn-ink-soft);
  white-space: nowrap;
}

.zn-system-accounting .zn-accounting-journal-grid-table td {
  vertical-align: top;
}

.zn-system-accounting .zn-accounting-journal-grid-table td:first-child {
  min-width: 3.25rem;
  padding-top: 0.68rem;
}

.zn-system-accounting .zn-accounting-journal-grid-account-cell {
  min-width: 18rem;
}

.zn-system-accounting .zn-accounting-journal-grid-reference-cell {
  min-width: 16rem;
}

.zn-system-accounting .zn-accounting-journal-grid-table td:nth-child(4),
.zn-system-accounting .zn-accounting-journal-grid-table td:nth-child(5) {
  min-width: 8.6rem;
}

.zn-system-accounting .zn-accounting-journal-grid-table td:nth-child(6) {
  min-width: 17rem;
}

.zn-system-accounting .zn-accounting-journal-lookup {
  position: relative;
}

.zn-system-accounting .zn-accounting-journal-lookup-menu {
  position: fixed;
  z-index: 1100;
  max-height: min(32vh, 15rem);
  overflow-y: auto;
  border: 1px solid #97b0d6;
  border-radius: var(--zn-radius-md);
  background: #ffffff;
  box-shadow: var(--zn-shadow-medium);
}

.zn-system-accounting .zn-accounting-journal-lookup-menu button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  width: 100%;
  gap: 0.45rem;
  padding: 0.55rem 0.65rem;
  border: 0;
  border-bottom: 1px solid #e2eaf6;
  background: transparent;
  color: var(--zn-ink);
  text-align: left;
}

.zn-system-accounting .zn-accounting-journal-lookup-menu button:last-child {
  border-bottom: 0;
}

.zn-system-accounting .zn-accounting-journal-lookup-menu button strong {
  color: var(--zn-teal);
  font-family: var(--zn-font-display);
  font-size: 0.78rem;
}

.zn-system-accounting .zn-accounting-journal-lookup-menu button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zn-system-accounting .zn-accounting-journal-lookup-menu button small {
  grid-column: 2;
  color: var(--zn-muted);
  font-size: 0.72rem;
}

.zn-system-accounting .zn-accounting-journal-lookup-menu button:hover,
.zn-system-accounting .zn-accounting-journal-lookup-menu button.active {
  background: #e9f1ff;
  color: var(--zn-deep-teal);
}

.zn-system-accounting .zn-accounting-journal-grid-na {
  display: inline-flex;
  min-height: 1.9rem;
  align-items: center;
  color: var(--zn-muted);
  font-size: 0.8rem;
  font-style: italic;
}

.zn-system-accounting .zn-accounting-journal-grid-totals {
  position: sticky;
  z-index: 3;
  bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid #d5b57e;
  border-radius: var(--zn-radius-lg);
  background: rgba(255, 248, 232, 0.97);
  box-shadow: var(--zn-shadow-medium);
}

.zn-system-accounting .zn-accounting-journal-grid-totals > div:not(.ms-auto) {
  display: grid;
  gap: 0.08rem;
  color: #6e5125;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.zn-system-accounting .zn-accounting-journal-grid-totals > div:not(.ms-auto) strong {
  color: var(--zn-ink);
  font-family: var(--zn-font-display);
  font-size: 1rem;
  letter-spacing: 0;
}

.zn-system-accounting .zn-accounting-journal-grid-totals.is-balanced {
  border-color: #80ba99;
  background: rgba(237, 249, 241, 0.98);
}

.zn-system-accounting .zn-accounting-journal-grid-totals.is-balanced > div:not(.ms-auto) {
  color: #296744;
}

.zn-system-accounting .zn-accounting-journal-grid-balance {
  color: #1d7145 !important;
  font-size: 0.86rem !important;
  font-style: normal;
  font-weight: 800;
  text-transform: none !important;
}

.zn-system-accounting .zn-accounting-journal-entry-page kbd,
.zn-system-accounting .zn-accounting-shortcut-list kbd,
.zn-system-accounting .zn-shortcut-dialog-list kbd {
  display: inline-block;
  padding: 0.12rem 0.35rem;
  border: 1px solid #9ab1d5;
  border-radius: 5px;
  background: #f7faff;
  color: var(--zn-deep-teal);
  font-family: var(--zn-font-base);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.2;
}

.zn-system-accounting .zn-accounting-shortcut-list,
.zn-system-accounting .zn-shortcut-dialog-list {
  display: grid;
  gap: 0.55rem;
}

.zn-system-accounting .zn-accounting-shortcut-list > div,
.zn-system-accounting .zn-shortcut-dialog-list > div {
  display: grid;
  grid-template-columns: minmax(8.5rem, auto) minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #dce6f4;
  color: var(--zn-ink-soft);
}

.zn-system-accounting .zn-accounting-shortcut-list > div:last-child,
.zn-system-accounting .zn-shortcut-dialog-list > div:last-child {
  border-bottom: 0;
}

body.zn-theme-dark.zn-system-accounting .zn-accounting-journal-header-panel {
  border-color: rgba(152, 183, 241, 0.32);
  background:
    radial-gradient(circle at 96% 14%, rgba(69, 199, 133, 0.12), transparent 28%),
    rgba(14, 34, 67, 0.82);
}

body.zn-theme-dark.zn-system-accounting .zn-accounting-journal-grid-table thead th {
  background: #19345f;
  color: #dce8ff;
}

body.zn-theme-dark.zn-system-accounting .zn-accounting-journal-lookup-menu {
  border-color: rgba(152, 183, 241, 0.46);
  background: #10284e;
}

body.zn-theme-dark.zn-system-accounting .zn-accounting-journal-lookup-menu button {
  border-color: rgba(152, 183, 241, 0.18);
  color: #edf3ff;
}

body.zn-theme-dark.zn-system-accounting .zn-accounting-journal-lookup-menu button strong {
  color: #a9c5ff;
}

body.zn-theme-dark.zn-system-accounting .zn-accounting-journal-lookup-menu button small,
body.zn-theme-dark.zn-system-accounting .zn-accounting-journal-grid-na {
  color: #b4c5e1;
}

body.zn-theme-dark.zn-system-accounting .zn-accounting-journal-lookup-menu button:hover,
body.zn-theme-dark.zn-system-accounting .zn-accounting-journal-lookup-menu button.active {
  background: rgba(57, 100, 173, 0.68);
  color: #ffffff;
}

body.zn-theme-dark.zn-system-accounting .zn-accounting-journal-grid-totals {
  border-color: rgba(241, 199, 117, 0.48);
  background: rgba(75, 54, 19, 0.92);
}

body.zn-theme-dark.zn-system-accounting .zn-accounting-journal-grid-totals > div:not(.ms-auto) {
  color: #ffe0a2;
}

body.zn-theme-dark.zn-system-accounting .zn-accounting-journal-grid-totals > div:not(.ms-auto) strong {
  color: #ffffff;
}

body.zn-theme-dark.zn-system-accounting .zn-accounting-journal-grid-totals.is-balanced {
  border-color: rgba(108, 213, 151, 0.55);
  background: rgba(18, 91, 58, 0.88);
}

body.zn-theme-dark.zn-system-accounting .zn-accounting-journal-grid-totals.is-balanced > div:not(.ms-auto),
body.zn-theme-dark.zn-system-accounting .zn-accounting-journal-grid-balance {
  color: #cff5dc !important;
}

body.zn-theme-dark.zn-system-accounting .zn-accounting-journal-entry-page kbd,
body.zn-theme-dark.zn-system-accounting .zn-accounting-shortcut-list kbd,
body.zn-theme-dark.zn-system-accounting .zn-shortcut-dialog-list kbd {
  border-color: rgba(169, 197, 255, 0.5);
  background: rgba(36, 67, 119, 0.8);
  color: #edf3ff;
}

body.zn-theme-dark.zn-system-accounting .zn-accounting-shortcut-list > div,
body.zn-theme-dark.zn-system-accounting .zn-shortcut-dialog-list > div {
  border-color: rgba(152, 183, 241, 0.22);
  color: #d7e3f7;
}

/* Accounting Period Maintenance: compact monthly book controls. */
.zn-system-accounting .zn-accounting-period-loading .zn-skeleton-panel {
  min-height: 26rem;
}

.zn-system-accounting .zn-accounting-period-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.zn-system-accounting .zn-accounting-period-book {
  min-width: 0;
}

.zn-system-accounting .zn-accounting-period-book .zn-table-toolbar {
  background:
    radial-gradient(circle at 96% 10%, rgba(42, 143, 99, 0.09), transparent 28%),
    #f8fbff;
}

.zn-system-accounting .zn-accounting-period-book-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.55rem;
  min-height: 2rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid #b9cce8;
  border-radius: 999px;
  background: #edf4ff;
  color: var(--zn-teal);
  font-family: var(--zn-font-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.zn-system-accounting .zn-accounting-period-table th {
  color: var(--zn-ink-soft);
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.zn-system-accounting .zn-accounting-period-table td {
  border-color: #e1e9f5;
}

.zn-system-accounting .zn-accounting-period-current > * {
  background: #eef8f1;
}

.zn-system-accounting .zn-accounting-period-control-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.4rem;
}

body.zn-theme-dark.zn-system-accounting .zn-accounting-period-book .zn-table-toolbar {
  background:
    radial-gradient(circle at 96% 10%, rgba(69, 199, 133, 0.12), transparent 28%),
    rgba(14, 34, 67, 0.82);
}

body.zn-theme-dark.zn-system-accounting .zn-accounting-period-book-code {
  border-color: rgba(152, 183, 241, 0.4);
  background: rgba(37, 72, 128, 0.58);
  color: #cfe0ff;
}

body.zn-theme-dark.zn-system-accounting .zn-accounting-period-table th {
  color: #c8d7ee;
}

body.zn-theme-dark.zn-system-accounting .zn-accounting-period-table td {
  border-color: rgba(152, 183, 241, 0.18);
}

body.zn-theme-dark.zn-system-accounting .zn-accounting-period-current > * {
  background: rgba(24, 111, 72, 0.26);
}

/* Accounting Disbursement: compact, independently searchable supplier-source lists. */
.zn-system-accounting .zn-disbursement-source-section + .zn-disbursement-source-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--zn-stroke-soft);
}

.zn-system-accounting .zn-disbursement-source-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.zn-system-accounting .zn-disbursement-source-search {
  margin: 0.55rem 0;
}

.zn-system-accounting .zn-disbursement-source-list {
  max-height: 14rem;
  padding-right: 0.2rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.zn-system-accounting .zn-disbursement-source-item {
  padding: 0.65rem 0.75rem;
}

.zn-system-accounting .zn-disbursement-source-item + .zn-disbursement-source-item {
  margin-top: 0.45rem;
}

.zn-system-accounting .zn-disbursement-source-item .zn-state-tag {
  margin-top: 0.4rem !important;
}

.zn-system-accounting .zn-disbursement-source-item .note {
  line-height: 1.35;
}

.zn-system-accounting .zn-disbursement-source-launchers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.zn-system-accounting .zn-disbursement-source-launchers .btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.zn-system-accounting .zn-disbursement-source-drawer {
  width: min(100%, 32rem);
}

.zn-system-accounting .zn-disbursement-source-drawer .offcanvas-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 0;
}

.zn-system-accounting .zn-disbursement-source-drawer .zn-disbursement-source-list {
  max-height: min(36rem, calc(100vh - 13rem));
  flex: 1 1 auto;
}

@media (max-width: 575.98px) {
  .zn-system-accounting .zn-disbursement-source-list {
    max-height: 12rem;
  }

  .zn-system-accounting .zn-disbursement-source-drawer {
    width: 100%;
  }

  .zn-system-accounting .zn-disbursement-source-drawer .zn-disbursement-source-list {
    max-height: calc(100vh - 12rem);
  }
}

@media (max-width: 991.98px) {
  .zn-system-accounting .zn-accounting-coa-layout,
  .zn-system-accounting .zn-accounting-coa-loading,
  .zn-system-accounting .zn-accounting-journal-layout,
  .zn-system-accounting .zn-accounting-journal-loading {
    grid-template-columns: minmax(0, 1fr);
  }

  .zn-system-accounting .zn-accounting-period-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zn-system-accounting .zn-accounting-account-inspector,
  .zn-system-accounting .zn-accounting-journal-inspector {
    position: static;
  }
}

@media (max-width: 575.98px) {
  .zn-system-accounting .zn-accounting-tree {
    max-height: 58vh;
  }

  .zn-system-accounting .zn-accounting-tree-node {
    gap: 0.15rem;
  }

  .zn-system-accounting .zn-accounting-tree-toggle,
  .zn-system-accounting .zn-accounting-tree-spacer {
    flex-basis: 1.6rem;
    width: 1.6rem;
  }

  .zn-system-accounting .zn-accounting-tree-row {
    min-width: 17rem;
    padding: 0.58rem 0.6rem;
  }

  .zn-system-accounting .zn-accounting-tree-row-main {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.12rem;
  }

  .zn-system-accounting .zn-accounting-tree-level-4 {
    padding-left: 3.6rem;
  }

  .zn-system-accounting .zn-accounting-tree-level-5 {
    padding-left: 4.15rem;
  }

  .zn-system-accounting .zn-accounting-tree-level-6 {
    padding-left: 4.7rem;
  }

  .zn-system-accounting .zn-accounting-tree-level-7 {
    padding-left: 5.25rem;
  }

  .zn-system-accounting .zn-accounting-journal-narration {
    max-width: 12rem;
  }

  .zn-system-accounting .zn-accounting-journal-detail-line {
    flex-direction: column;
  }

  .zn-system-accounting .zn-accounting-journal-grid-totals {
    bottom: 0.5rem;
    align-items: stretch;
  }

  .zn-system-accounting .zn-accounting-journal-grid-totals .ms-auto {
    width: 100%;
    margin-left: 0 !important;
  }

  .zn-system-accounting .zn-accounting-shortcut-list > div,
  .zn-system-accounting .zn-shortcut-dialog-list > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.4rem;
  }

  .zn-system-accounting .zn-accounting-period-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Accounting Sales Invoice preview: the surrounding dialog follows ZnSuite,
   while its inner paper deliberately stays print-white so it matches the
   legacy IAS report that will be exported. */
.zn-system-accounting .zn-sales-invoice-preview-tools {
  padding: 0.9rem;
  border: 1px solid var(--zn-stroke-soft);
  border-radius: var(--zn-radius-lg);
  background: var(--zn-surface-subtle);
}

.zn-system-accounting .zn-sales-invoice-paper {
  width: min(100%, 8.5in);
  min-height: 11in;
  margin: 0 auto;
  padding: 0.5in;
  border: 1px solid #cbd0d8;
  border-radius: 2px;
  background: #fff;
  box-shadow: var(--zn-shadow-medium);
  color: #000;
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1.4;
}

.zn-system-accounting .zn-sales-invoice-paper p {
  margin: 0;
  color: #000;
}

.zn-system-accounting .zn-sales-invoice-paper-header,
.zn-system-accounting .zn-sales-invoice-paper-summary,
.zn-system-accounting .zn-sales-invoice-signatures {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
}

.zn-system-accounting .zn-sales-invoice-company,
.zn-system-accounting .zn-sales-invoice-meta {
  min-width: 0;
}

.zn-system-accounting .zn-sales-invoice-company h3 {
  margin: 0 0 0.35rem;
  color: #000;
  font-family: Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.zn-system-accounting .zn-sales-invoice-meta {
  text-align: right;
}

.zn-system-accounting .zn-sales-invoice-meta h3 {
  margin: 0 0 0.7rem;
  color: #000;
  font-family: Arial, sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.zn-system-accounting .zn-sales-invoice-meta dl {
  display: grid;
  gap: 0.2rem;
  margin: 0;
}

.zn-system-accounting .zn-sales-invoice-meta dl > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
}

.zn-system-accounting .zn-sales-invoice-meta dt,
.zn-system-accounting .zn-sales-invoice-meta dd {
  margin: 0;
  color: #000;
  font-size: 12px;
}

.zn-system-accounting .zn-sales-invoice-meta dt {
  font-weight: 700;
  text-align: left;
}

.zn-system-accounting .zn-sales-invoice-paper-info {
  margin: 1.25rem 0;
  color: #000;
}

.zn-system-accounting .zn-sales-invoice-paper-table {
  margin-bottom: 1.25rem;
  color: #000;
}

.zn-system-accounting .zn-sales-invoice-paper .table {
  --bs-table-bg: transparent;
  --bs-table-color: #000;
  --bs-table-border-color: #7f858d;
  color: #000;
}

.zn-system-accounting .zn-sales-invoice-paper-table > :not(caption) > * > * {
  border-color: #7f858d;
  color: #000;
}

.zn-system-accounting .zn-sales-invoice-paper-table thead th {
  background: #f0f0f0;
}

.zn-system-accounting .zn-sales-invoice-paper-summary {
  align-items: flex-start;
  margin-top: 1.25rem;
}

.zn-system-accounting .zn-sales-invoice-payment-choice {
  display: grid;
  grid-template-columns: auto 30px auto 30px;
  align-items: center;
  gap: 0.45rem;
  min-width: 40%;
  padding-top: 0.25rem;
  color: #000;
}

.zn-system-accounting .zn-sales-invoice-payment-choice span {
  display: block;
  width: 30px;
  height: 30px;
  border: 1px solid #000;
}

.zn-system-accounting .zn-sales-invoice-paper-summary > table {
  width: 40%;
  color: #000;
}

.zn-system-accounting .zn-sales-invoice-paper-summary > table td {
  color: #000;
}

.zn-system-accounting .zn-sales-invoice-paper-summary > table td:last-child {
  text-align: right;
}

.zn-system-accounting .zn-sales-invoice-paper-footer {
  margin-top: 1.75rem;
}

.zn-system-accounting .zn-sales-invoice-signatures > div {
  flex: 1 1 33%;
  color: #000;
  font-size: 12px;
  text-align: center;
  text-transform: uppercase;
}

.zn-system-accounting .zn-sales-invoice-signatures span {
  display: block;
  height: 24px;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #000;
}

.zn-system-accounting .zn-sales-invoice-bir {
  margin-top: 1.75rem;
  padding: 0.6rem;
  border: 1px solid #000;
  color: #000;
  font-size: 12px;
}

@media (max-width: 991.98px) {
  .zn-system-accounting .zn-sales-invoice-paper {
    min-height: 0;
  }

  .zn-system-accounting .zn-sales-invoice-paper-header,
  .zn-system-accounting .zn-sales-invoice-paper-summary {
    flex-direction: column;
  }

  .zn-system-accounting .zn-sales-invoice-meta {
    text-align: left;
  }

  .zn-system-accounting .zn-sales-invoice-paper-summary > table {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .zn-system-accounting .zn-sales-invoice-paper {
    padding: 1rem;
  }

  .zn-system-accounting .zn-sales-invoice-meta h3 {
    font-size: 1.5rem;
  }

  .zn-system-accounting .zn-sales-invoice-payment-choice {
    grid-template-columns: auto 26px auto 26px;
  }

  .zn-system-accounting .zn-sales-invoice-payment-choice span {
    width: 26px;
    height: 26px;
  }

  .zn-system-accounting .zn-sales-invoice-signatures {
    flex-direction: column;
  }
}

/* Inventory Reports: viewport-fitted light presentation slide. */
body.zn-inventory-presentation-active {
  overflow: hidden;
}

.zn-inventory-presentation {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 6% 0%, rgba(244, 163, 0, 0.14), transparent 30%),
    radial-gradient(circle at 94% 0%, rgba(15, 118, 110, 0.12), transparent 34%),
    var(--zn-paper-warm);
  color: var(--zn-ink);
}

.zn-inventory-presentation-shell,
.zn-inventory-presentation-empty {
  width: min(100%, 100rem);
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: clamp(0.5rem, 1.5vh, 1rem) clamp(0.65rem, 2vw, 1.5rem);
}

.zn-inventory-presentation-shell {
  display: flex;
  flex-direction: column;
  gap: clamp(0.4rem, 1vh, 0.75rem);
}

.zn-inventory-presentation-header,
.zn-inventory-presentation-stage-heading {
  flex: 0 0 auto;
  min-width: 0;
  gap: clamp(0.65rem, 1.5vw, 1rem);
}

.zn-inventory-presentation-eyebrow,
.zn-inventory-presentation-stage-heading > div > span {
  color: var(--zn-deep-teal);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.zn-inventory-presentation-header h1,
.zn-inventory-presentation-empty h1,
.zn-inventory-presentation-stage-heading h2 {
  color: var(--zn-ink);
}

.zn-inventory-presentation-header h1 {
  margin: 0.15rem 0 0.1rem;
  font-size: clamp(1.2rem, 2.25vw, 1.8rem);
}

.zn-inventory-presentation-header p,
.zn-inventory-presentation-stage-heading p,
.zn-inventory-presentation-empty p {
  color: var(--zn-ink-soft);
  font-size: clamp(0.72rem, 1.2vw, 0.88rem);
  line-height: 1.35;
}

.zn-inventory-presentation-actions,
.zn-inventory-presentation-view-toggle {
  flex-wrap: nowrap;
}

.zn-inventory-presentation .btn-zn-soft {
  border-color: var(--zn-stroke);
  background: var(--zn-card);
  color: var(--zn-ink);
}

.zn-inventory-presentation .btn-zn-soft:hover,
.zn-inventory-presentation .btn-zn-soft:focus-visible {
  border-color: var(--zn-teal);
  background: var(--zn-surface-subtle);
  color: var(--zn-deep-teal);
}

.zn-inventory-presentation-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  flex: 0 0 auto;
  gap: 0.35rem;
  overflow: visible;
  padding: 0.3rem;
  border: 1px solid var(--zn-stroke);
  border-radius: var(--zn-radius-md);
  background: rgba(255, 255, 255, 0.72);
}

.zn-inventory-presentation-tab {
  min-width: 0;
  min-height: 2.35rem;
  padding: 0.35rem 0.45rem;
  border-color: transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--zn-ink-soft);
  font-size: clamp(0.65rem, 1vw, 0.78rem);
  line-height: 1.12;
  text-align: center;
  white-space: normal;
}

.zn-inventory-presentation-tab:hover,
.zn-inventory-presentation-tab:focus-visible {
  border-color: var(--zn-stroke);
  color: var(--zn-deep-teal);
}

.zn-inventory-presentation-tab.is-active {
  border-color: var(--zn-deep-teal);
  background: linear-gradient(135deg, var(--zn-deep-teal), var(--zn-teal));
  color: var(--zn-ink-inverse);
  box-shadow: 0 0 0 2px rgba(244, 163, 0, 0.3), var(--zn-shadow-soft);
}

.zn-inventory-presentation-stage {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  gap: clamp(0.4rem, 1vh, 0.75rem);
}

.zn-inventory-presentation-stage-heading h2 {
  margin: 0.15rem 0 0.18rem;
  font-size: clamp(1rem, 1.85vw, 1.45rem);
  line-height: 1.15;
}

.zn-inventory-presentation-view-toggle {
  align-self: flex-start;
}

.zn-inventory-presentation .btn-outline-dark {
  border-color: var(--zn-stroke);
  color: var(--zn-ink);
}

.zn-inventory-presentation .btn-outline-dark:hover,
.zn-inventory-presentation .btn-outline-dark:focus-visible {
  border-color: var(--zn-teal);
  background: var(--zn-surface-subtle);
  color: var(--zn-deep-teal);
}

.zn-inventory-presentation-figures {
  flex: 0 0 auto;
  gap: clamp(0.35rem, 1vw, 0.65rem);
}

.zn-inventory-presentation-figures--1 {
  grid-template-columns: minmax(0, 1fr);
}

.zn-inventory-presentation-figures--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.zn-inventory-presentation-figure {
  min-height: 4.9rem;
  padding: clamp(0.5rem, 1.1vw, 0.75rem);
  border-color: var(--zn-stroke);
  background: var(--zn-card);
  box-shadow: var(--zn-shadow-soft);
}

.zn-inventory-presentation-figure span {
  color: var(--zn-muted);
  font-size: 0.65rem;
}

.zn-inventory-presentation-figure strong {
  color: var(--zn-ink);
  font-size: clamp(1rem, 1.8vw, 1.55rem);
  line-height: 1.12;
  white-space: nowrap;
}

.zn-inventory-presentation-figure.is-strong {
  border-color: rgba(15, 118, 110, 0.36);
  background: linear-gradient(145deg, #e9f7f3, #f8fffd);
}

.zn-inventory-presentation-figure.is-sky strong {
  color: #1767b6;
}

.zn-inventory-presentation-figure.is-sun strong {
  color: #a86300;
}

.zn-inventory-presentation-figure.is-neutral strong {
  color: var(--zn-ink-soft);
}

.zn-inventory-presentation-reconciliation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  flex: 0 0 auto;
  gap: 0.65rem 1rem;
  align-items: center;
  padding: clamp(0.55rem, 1.1vw, 0.75rem);
  border: 1px solid rgba(15, 118, 110, 0.25);
  border-radius: var(--zn-radius-md);
  background: var(--zn-surface-subtle);
}

.zn-inventory-presentation-reconciliation-eyebrow {
  display: block;
  margin-bottom: 0.18rem;
  color: var(--zn-deep-teal);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.zn-inventory-presentation-reconciliation p {
  margin: 0;
  color: var(--zn-ink-soft);
  font-size: clamp(0.68rem, 1vw, 0.8rem);
  font-weight: 700;
  line-height: 1.35;
}

.zn-inventory-presentation-reconciliation-values {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 0.75rem;
}

.zn-inventory-presentation-reconciliation-values span {
  color: var(--zn-muted);
  font-size: 0.62rem;
  font-weight: 700;
  white-space: nowrap;
}

.zn-inventory-presentation-reconciliation-values strong {
  margin-left: 0.15rem;
  color: var(--zn-ink);
  font-family: var(--zn-font-display);
  font-size: 0.82rem;
}

.zn-inventory-presentation-chart-card {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding: clamp(0.55rem, 1.25vw, 0.85rem);
  border-color: var(--zn-stroke);
  background: var(--zn-card);
  box-shadow: var(--zn-shadow-soft);
}

.zn-inventory-presentation-chart-meta {
  flex: 0 0 auto;
  padding-bottom: 0.35rem;
  color: var(--zn-muted);
  font-size: 0.7rem;
}

.zn-inventory-presentation-chart {
  display: block;
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
}

.zn-inventory-presentation-chart .zn-inventory-comparison-chart {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.zn-inventory-presentation-empty {
  display: flex;
  max-width: 48rem;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 767.98px) {
  .zn-inventory-presentation-header,
  .zn-inventory-presentation-stage-heading {
    flex-direction: row;
    align-items: flex-start;
  }

  .zn-inventory-presentation-header > div:first-child,
  .zn-inventory-presentation-stage-heading > div:first-child {
    min-width: 0;
  }

  .zn-inventory-presentation-actions {
    gap: 0.3rem;
  }

  .zn-inventory-presentation-actions .btn,
  .zn-inventory-presentation-view-toggle .btn {
    padding: 0.32rem 0.45rem;
    font-size: 0.68rem;
    white-space: nowrap;
  }

  .zn-inventory-presentation-stage-heading {
    align-items: center;
  }

  .zn-inventory-presentation-stage-heading h2 {
    font-size: 0.92rem;
  }

  .zn-inventory-presentation-figures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zn-inventory-presentation-figures--1 {
    grid-template-columns: minmax(0, 1fr);
  }

  .zn-inventory-presentation-reconciliation {
    grid-template-columns: minmax(0, 1fr);
  }

  .zn-inventory-presentation-reconciliation-values {
    justify-content: flex-start;
  }

  .zn-inventory-presentation-figure {
    min-height: 3.85rem;
  }

  .zn-inventory-presentation-figure strong {
    font-size: clamp(0.9rem, 4vw, 1.12rem);
  }
}

@media (max-height: 700px) {
  .zn-inventory-presentation-header p,
  .zn-inventory-presentation-stage-heading > div > span,
  .zn-inventory-presentation-stage-heading p {
    display: none;
  }

  .zn-inventory-presentation-figure {
    min-height: 3.5rem;
  }

  .zn-inventory-presentation-chart-meta {
    display: none;
  }
}

@media (max-height: 540px) {
  .zn-inventory-presentation-stage-heading {
    display: none;
  }

  .zn-inventory-presentation-figure {
    min-height: 3rem;
  }
}

/* Hris job-image selector */
.zn-job-image-selector {
  background: var(--zn-surface-quiet);
  border: 1px solid var(--zn-stroke-soft);
  border-radius: var(--zn-radius-md);
  padding: 0.9rem;
}

.zn-job-image-toolbar {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 0.8rem;
}

.zn-job-image-toolbar .form-control {
  min-width: 0;
}

.zn-job-image-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  max-height: 24rem;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.zn-job-image-option {
  background: var(--zn-card);
  border: 1px solid var(--zn-stroke-soft);
  border-radius: var(--zn-radius-md);
  color: var(--zn-ink);
  overflow: hidden;
  padding: 0;
  text-align: left;
}

.zn-job-image-option:hover,
.zn-job-image-option:focus-visible,
.zn-job-image-option.is-selected {
  border-color: var(--zn-teal);
  box-shadow: 0 0 0 0.18rem color-mix(in srgb, var(--zn-teal) 20%, transparent);
  outline: 0;
}

.zn-job-image-option img {
  background: var(--zn-surface-subtle);
  display: block;
  height: 82px;
  object-fit: cover;
  width: 100%;
}

.zn-job-image-option span {
  display: block;
  font-size: 0.72rem;
  line-height: 1.2;
  overflow: hidden;
  padding: 0.45rem 0.5rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zn-job-image-skeleton {
  min-height: 10rem;
}

/* zPayroll uses a plum, copper, and slate identity while retaining the shared suite shell. */
.zn-system-payroll {
  --zn-ink: #352a43;
  --zn-ink-soft: #5e526d;
  --zn-muted: #7a6f86;
  --zn-teal: #744796;
  --zn-deep-teal: #522f70;
  --zn-sun: #d78a43;
  --zn-sky: #4d8d9b;
  --zn-paper: #faf7fc;
  --zn-paper-warm: #f6f0f8;
  --zn-card: #ffffff;
  --zn-surface-subtle: #f1e9f5;
  --zn-surface-quiet: #edf6f5;
  --zn-surface-dark: #3a2948;
  --zn-stroke: #ded1e5;
  --zn-stroke-soft: #eee6f1;
  --zn-success: #397d69;
  --zn-success-soft: #e5f4ee;
  --zn-warning: #a5662e;
  --zn-warning-soft: #fff2e1;
  --zn-info: #387584;
  --zn-info-soft: #e4f3f6;
  --zn-danger: #aa5164;
  --zn-danger-soft: #fcebf0;
  --bs-link-color: var(--zn-teal);
  --bs-link-hover-color: var(--zn-deep-teal);
}

body.zn-page-home.zn-system-payroll { background: radial-gradient(circle at 4% -10%, rgba(144, 87, 172, .18), transparent 38%), radial-gradient(circle at 96% 5%, rgba(211, 138, 65, .15), transparent 35%), var(--zn-paper); }
.zn-system-payroll .zn-page-header, .zn-system-payroll .zn-payroll-cashflow-spotlight { border-color: #d9c8e3; background: radial-gradient(circle at 96% 8%, rgba(213, 138, 68, .16), transparent 27%), radial-gradient(circle at 5% 0%, rgba(116, 71, 150, .13), transparent 28%), linear-gradient(135deg, rgba(255,255,255,.98), rgba(247,240,250,.96)); }
.zn-system-payroll .zn-payroll-cashflow-spotlight { padding: 1.35rem 1.4rem; border: 1px solid #d9c8e3; border-radius: var(--zn-radius-lg); }
.zn-system-payroll .module-card, .zn-system-payroll .zn-table-card, .zn-system-payroll .zn-table-toolbar, .zn-system-payroll .zn-empty-state, .zn-system-payroll .zn-readonly-panel, .zn-system-payroll .zn-detail-item, .zn-system-payroll .zn-drawer-card, .zn-system-payroll .zn-filter-bar { border-color: #e0d4e7; }
.zn-system-payroll .zn-empty-state { background: #fcf9fd; }
.zn-system-payroll .zn-callout-info { border-color: #bfdedd; background: #e8f5f3; color: #2d626b; }
.zn-system-payroll .btn-dark { background-color: var(--zn-teal); border-color: var(--zn-teal); }
.zn-system-payroll .btn-dark:hover, .zn-system-payroll .btn-dark:focus, .zn-system-payroll .btn-dark:active, .zn-system-payroll .btn-dark.active, .zn-system-payroll .show > .btn-dark.dropdown-toggle { background-color: var(--zn-deep-teal); border-color: var(--zn-deep-teal); }
.zn-system-payroll .btn-outline-dark { border-color: #926ead; color: var(--zn-teal); }
.zn-system-payroll .btn-outline-dark:hover, .zn-system-payroll .btn-outline-dark:focus, .zn-system-payroll .btn-outline-dark:active, .zn-system-payroll .btn-outline-dark.active, .zn-system-payroll .show > .btn-outline-dark.dropdown-toggle { background-color: var(--zn-teal); border-color: var(--zn-teal); color: #fff; }
.zn-system-payroll .zn-system-sidebar { background: radial-gradient(circle at 96% 4%, rgba(222, 146, 72, .22), transparent 29%), radial-gradient(circle at 3% 18%, rgba(100, 156, 161, .15), transparent 30%), linear-gradient(180deg, #593875 0%, #38234e 100%); box-shadow: -10px 0 34px rgba(55, 32, 77, .3); }
.zn-system-payroll .zn-system-sidebar .offcanvas-header { border-color: rgba(240, 222, 247, .18); }
.zn-system-payroll .zn-system-sidebar .offcanvas-title, .zn-system-payroll .zn-system-sidebar .list-group-item { color: #fbf7ff; }
.zn-system-payroll .zn-system-sidebar .note, .zn-system-payroll .zn-system-sidebar .zn-drawer-list .list-group-item small { color: #ddcfeb; }
.zn-system-payroll .zn-system-sidebar .btn-close { filter: invert(1) grayscale(1) brightness(2); }
.zn-system-payroll .zn-system-sidebar .zn-drawer-list .list-group-item { border-color: rgba(239, 220, 248, .12); background: rgba(255,255,255,.035); }
.zn-system-payroll .zn-system-sidebar .zn-drawer-list .list-group-item.active, .zn-system-payroll .zn-system-sidebar .zn-drawer-list .list-group-item:hover { border-color: rgba(234, 182, 112, .52); background: rgba(127, 78, 157, .4); color: #fff; }
.zn-system-payroll .zn-system-sidebar .zn-drawer-list .list-group-item.active small, .zn-system-payroll .zn-system-sidebar .zn-drawer-list .list-group-item:hover small { color: #fff0db; }
.zn-system-payroll .zn-system-sidebar .zn-drawer-tag { border-color: rgba(244, 190, 120, .48); background: rgba(212, 133, 60, .2); color: #fff0d8; }
body.zn-theme-dark.zn-system-payroll { --zn-ink: #f3eafa; --zn-ink-soft: #d7c9e0; --zn-muted: #baacc4; --zn-paper: #211928; --zn-paper-warm: #281e31; --zn-card: #30243a; --zn-surface-subtle: #392b45; --zn-surface-quiet: #233a3d; --zn-stroke: #4c3b5a; --zn-stroke-soft: #42334f; }
body.zn-theme-dark.zn-system-payroll .zn-page-header, body.zn-theme-dark.zn-system-payroll .zn-payroll-cashflow-spotlight { border-color: #513c5f; background: radial-gradient(circle at 96% 8%, rgba(220, 139, 64, .13), transparent 27%), linear-gradient(135deg, #352642, #261d30); }
body.zn-theme-dark.zn-system-payroll .zn-empty-state { background: #2b2034; }
body.zn-theme-dark.zn-system-payroll .zn-callout-info { border-color: #39696c; background: #20393b; color: #c6e8e6; }
.zn-system-payroll .zn-payroll-page-size { min-width: 8rem; width: auto; }
.zn-system-payroll .zn-payroll-timekeeping-table td { min-width: 9rem; }
.zn-system-payroll .zn-payroll-timekeeping-table td:first-child { min-width: 8rem; }
.zn-system-payroll .zn-payroll-advances-table td { min-width: 8rem; }
.zn-system-payroll .zn-payroll-advances-table td:first-child { min-width: 14rem; }

@media (max-width: 575.98px) {
  .zn-job-image-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .zn-job-image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   ZnSuite portal and systems hub
   These styles extend the standard tokens/components above and stay scoped to
   the public portal and authenticated systems landing page.
   -------------------------------------------------------------------------- */

body.zn-page-home.zn-portal-page {
  background:
    radial-gradient(circle at 8% -8%, rgba(244, 163, 0, 0.22), transparent 34%),
    radial-gradient(circle at 96% 5%, rgba(15, 118, 110, 0.18), transparent 34%),
    linear-gradient(180deg, #fbf7ef 0%, #f7f1e7 58%, #f4eee3 100%);
  overflow-x: hidden;
}

.zn-portal-shell {
  width: min(100% - 2rem, 1380px);
  margin: 0 auto;
  padding: 1.25rem 0 2.5rem;
}

.zn-portal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  margin-bottom: clamp(1.5rem, 4vw, 3.25rem);
}

.zn-portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--zn-ink);
  text-decoration: none;
}

.zn-portal-brand:hover {
  color: var(--zn-ink);
}

.zn-portal-brand-mark {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  border-radius: 0.8rem;
  background: var(--zn-ink);
  color: #fff8e8;
  font-family: var(--zn-font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  box-shadow: 0 8px 18px rgba(23, 24, 31, 0.18);
}

.zn-portal-brand-name,
.zn-portal-brand-caption {
  display: block;
}

.zn-portal-brand-name {
  font-family: var(--zn-font-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.zn-portal-brand-caption {
  margin-top: 0.12rem;
  color: var(--zn-muted);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.zn-portal-nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}

.zn-portal-text-link {
  align-items: center;
  padding: 0.45rem 0.25rem;
  color: var(--zn-ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.zn-portal-text-link:hover {
  color: var(--zn-teal);
}

.zn-portal-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  min-height: 37rem;
  padding: clamp(2rem, 5vw, 5rem);
  overflow: hidden;
  border: 1px solid rgba(190, 170, 130, 0.45);
  border-radius: 2rem;
  background:
    radial-gradient(circle at 0% 100%, rgba(244, 163, 0, 0.11), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 248, 231, 0.9));
  box-shadow: 0 24px 70px rgba(74, 58, 29, 0.1);
}

.zn-portal-hero::after {
  position: absolute;
  right: -11rem;
  bottom: -15rem;
  width: 34rem;
  height: 34rem;
  border: 1px solid rgba(15, 118, 110, 0.13);
  border-radius: 50%;
  content: '';
  pointer-events: none;
}

.zn-portal-hero-copy,
.zn-portal-hero-visual {
  position: relative;
  z-index: 1;
}

.zn-portal-eyebrow {
  margin-bottom: 1.25rem;
  border-color: rgba(15, 118, 110, 0.22);
  background: rgba(15, 118, 110, 0.08);
  color: var(--zn-deep-teal);
}

.zn-live-dot {
  display: inline-block;
  width: 0.48rem;
  height: 0.48rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #1b9a5b;
  box-shadow: 0 0 0 0.22rem rgba(27, 154, 91, 0.13);
}

.zn-portal-hero h1 {
  max-width: 40rem;
  margin-bottom: 1.35rem;
  color: #151b23;
  font-size: clamp(2.6rem, 5vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.zn-portal-hero-lede {
  max-width: 36rem;
  margin-bottom: 1.8rem;
  color: var(--zn-ink-soft);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.75;
}

.zn-portal-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.zn-portal-hero-actions .btn {
  padding-right: 1.25rem;
  padding-left: 1.25rem;
}

.zn-portal-trust-line {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 2rem;
  color: var(--zn-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.zn-portal-trust-icon,
.zn-portal-checkmark {
  display: inline-grid;
  width: 1.25rem;
  height: 1.25rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(15, 118, 110, 0.12);
  color: var(--zn-teal);
  font-size: 0.75rem;
  font-weight: 800;
}

.zn-portal-hero-visual {
  display: grid;
  min-height: 29rem;
  place-items: center;
}

.zn-portal-command-card {
  position: relative;
  z-index: 2;
  width: min(100%, 29rem);
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1.35rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(43, 140, 255, 0.2), transparent 31%),
    radial-gradient(circle at 0% 100%, rgba(15, 118, 110, 0.26), transparent 36%),
    linear-gradient(145deg, #202a38 0%, #101721 100%);
  box-shadow: 0 28px 60px rgba(21, 31, 44, 0.27);
  transform: rotate(2deg);
}

.zn-portal-command-topline,
.zn-portal-system-card-topline,
.zn-portal-system-card-heading,
.zn-portal-system-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.zn-portal-command-label,
.zn-portal-command-status,
.zn-portal-command-stat span,
.zn-portal-command-footnote {
  color: rgba(225, 237, 250, 0.7);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.zn-portal-command-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #9fe0bd;
}

.zn-portal-command-heading {
  max-width: 20rem;
  margin: 3.3rem 0 2rem;
  color: #f4f8fd;
  font-family: var(--zn-font-display);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.18;
}

.zn-portal-command-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  padding: 0.95rem 0;
  border-top: 1px solid rgba(213, 228, 245, 0.13);
  border-bottom: 1px solid rgba(213, 228, 245, 0.13);
}

.zn-portal-command-stat strong,
.zn-portal-command-stat span {
  display: block;
}

.zn-portal-command-stat strong {
  margin-bottom: 0.22rem;
  color: #fff;
  font-family: var(--zn-font-display);
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.zn-portal-command-stat span {
  font-size: 0.64rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

.zn-portal-flow {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 1.4rem 0 1.5rem;
}

.zn-portal-flow-node {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.3rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.45rem;
  color: #e9f1fa;
  font-size: 0.62rem;
  font-weight: 700;
  white-space: nowrap;
}

.zn-portal-flow-node-sun { border-color: rgba(244, 163, 0, 0.35); color: #ffd582; }
.zn-portal-flow-node-teal { border-color: rgba(89, 207, 193, 0.32); color: #a9eee4; }
.zn-portal-flow-node-blue { border-color: rgba(104, 170, 255, 0.35); color: #b7d8ff; }

.zn-portal-flow-line {
  width: 0.8rem;
  height: 1px;
  background: rgba(214, 229, 245, 0.3);
}

.zn-portal-command-footnote {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(225, 237, 250, 0.57);
  font-size: 0.64rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

.zn-portal-checkmark {
  width: 1rem;
  height: 1rem;
  background: rgba(92, 210, 170, 0.13);
  color: #9fe0bd;
  font-size: 0.62rem;
}

.zn-portal-orbit {
  position: absolute;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.zn-portal-orbit-one {
  width: 31rem;
  height: 31rem;
  transform: rotate(35deg) scaleY(0.58);
}

.zn-portal-orbit-two {
  width: 24rem;
  height: 24rem;
  border-color: rgba(244, 163, 0, 0.2);
  transform: rotate(-28deg) scaleY(0.62);
}

.zn-portal-floating-note {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.72rem 0.85rem;
  border: 1px solid rgba(205, 190, 158, 0.48);
  border-radius: 0.8rem;
  background: rgba(255, 253, 247, 0.88);
  box-shadow: 0 12px 28px rgba(63, 54, 36, 0.13);
  transform: rotate(-4deg);
}

.zn-portal-floating-note strong,
.zn-portal-floating-note small {
  display: block;
}

.zn-portal-floating-note strong {
  color: var(--zn-ink);
  font-size: 0.73rem;
}

.zn-portal-floating-note small {
  margin-top: 0.15rem;
  color: var(--zn-muted);
  font-size: 0.62rem;
}

.zn-portal-floating-note-top {
  top: 8%;
  right: 0;
}

.zn-portal-floating-note-bottom {
  bottom: 8%;
  left: 0;
  transform: rotate(4deg);
}

.zn-portal-note-glyph {
  display: grid;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  border-radius: 0.55rem;
  background: rgba(244, 163, 0, 0.16);
  color: #9a6200;
  font-weight: 800;
}

.zn-portal-note-glyph-teal {
  background: rgba(15, 118, 110, 0.13);
  color: var(--zn-teal);
}

.zn-portal-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 1.1rem 0 clamp(3.5rem, 7vw, 6rem);
  padding: 1.35rem 0;
  border-top: 1px solid rgba(185, 170, 140, 0.45);
  border-bottom: 1px solid rgba(185, 170, 140, 0.45);
}

.zn-portal-metric {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-height: 3.2rem;
  padding: 0 1.5rem;
  border-right: 1px solid rgba(185, 170, 140, 0.42);
}

.zn-portal-metric:first-child { padding-left: 0; }
.zn-portal-metric:last-child { border-right: 0; }

.zn-portal-metric-value {
  color: var(--zn-ink);
  font-family: var(--zn-font-display);
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.zn-portal-metric-label {
  color: var(--zn-muted);
  font-size: 0.73rem;
  font-weight: 700;
}

.zn-portal-systems-section {
  margin-bottom: clamp(3.5rem, 7vw, 6rem);
}

.zn-portal-section-heading,
.zn-hub-list-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.65rem;
}

.zn-portal-section-eyebrow,
.zn-portal-system-category {
  display: block;
  color: var(--zn-teal);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.zn-portal-section-heading h2,
.zn-hub-list-heading h2,
.zn-hub-header h1,
.zn-hub-overview h2,
.zn-portal-footer-cta h2 {
  color: var(--zn-ink);
  font-weight: 700;
  letter-spacing: -0.045em;
}

.zn-portal-section-heading h2,
.zn-hub-list-heading h2 {
  margin: 0.45rem 0 0.35rem;
  font-size: clamp(1.8rem, 3vw, 2.75rem);
}

.zn-portal-section-heading p,
.zn-hub-list-heading p {
  max-width: 38rem;
  margin: 0;
  color: var(--zn-muted);
}

.zn-portal-search-wrap {
  position: relative;
  width: min(100%, 16rem);
  flex: 0 0 auto;
}

.zn-portal-search {
  min-height: 2.75rem;
  padding-left: 2.35rem;
  border-color: rgba(190, 170, 130, 0.62);
  background: rgba(255, 255, 255, 0.7);
}

.zn-portal-search-icon {
  position: absolute;
  top: 50%;
  left: 0.85rem;
  z-index: 2;
  color: var(--zn-muted);
  font-size: 1.15rem;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-54%);
}

.zn-portal-system-card {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 1.35rem;
  overflow: hidden;
  border: 1px solid var(--zn-stroke-soft);
  border-radius: var(--zn-radius-lg);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 24px rgba(31, 41, 55, 0.055);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.zn-portal-system-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 0.22rem;
  background: var(--zn-teal);
  content: '';
}

.zn-system-card-governance .zn-portal-system-card::before { background: #7173bc; }
.zn-system-card-operations .zn-portal-system-card::before { background: var(--zn-sun); }
.zn-system-card-people .zn-portal-system-card::before { background: var(--zn-teal); }

.zn-portal-system-card:hover {
  border-color: rgba(15, 118, 110, 0.34);
  box-shadow: 0 20px 36px rgba(31, 41, 55, 0.11);
  transform: translateY(-5px);
}

.zn-portal-system-card-topline {
  align-items: center;
  margin-bottom: 1.55rem;
}

.zn-system-mark {
  display: inline-grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 0.85rem;
  background: rgba(15, 118, 110, 0.09);
  color: var(--zn-deep-teal);
  font-family: var(--zn-font-display);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.zn-system-card-governance .zn-system-mark { border-color: rgba(113, 115, 188, 0.22); background: rgba(113, 115, 188, 0.11); color: #4c4d91; }
.zn-system-card-operations .zn-system-mark { border-color: rgba(244, 163, 0, 0.25); background: rgba(244, 163, 0, 0.12); color: #865500; }
.zn-system-card-people .zn-system-mark { border-color: rgba(15, 118, 110, 0.22); background: rgba(15, 118, 110, 0.1); color: var(--zn-deep-teal); }

.status-live {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: #12633d;
  background: #daf4e4;
}

.zn-portal-system-card-heading {
  align-items: flex-start;
}

.zn-portal-system-card-heading h3 {
  margin: 0.35rem 0 0;
  color: var(--zn-ink);
  font-family: var(--zn-font-display);
  font-size: 1.25rem;
  letter-spacing: -0.035em;
}

.zn-portal-system-arrow {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid #e4e0d5;
  border-radius: 50%;
  color: var(--zn-muted);
  font-size: 0.92rem;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.zn-portal-system-card:hover .zn-portal-system-arrow {
  border-color: var(--zn-teal);
  background: var(--zn-teal);
  color: #fff;
}

.zn-portal-system-description {
  min-height: 4.2rem;
  margin: 1rem 0;
  color: var(--zn-ink-soft);
  font-size: 0.9rem;
  line-height: 1.65;
}

.zn-portal-capability-list {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.35rem;
}

.zn-portal-capability {
  display: flex;
  gap: 0.45rem;
  color: var(--zn-muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.zn-portal-capability::before {
  flex: 0 0 auto;
  color: var(--zn-teal);
  content: '\2197';
  font-weight: 800;
}

.zn-portal-system-footer {
  align-items: flex-end;
  gap: 0.8rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #eee9de;
}

.zn-portal-audience {
  max-width: 12rem;
  color: #77766f;
  font-size: 0.68rem;
  line-height: 1.4;
}

.zn-portal-system-footer .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.zn-portal-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1rem;
  padding: 2rem;
  border: 1px dashed rgba(150, 135, 110, 0.55);
  border-radius: var(--zn-radius-lg);
  background: rgba(255, 255, 255, 0.48);
  text-align: center;
}

.zn-portal-empty strong { color: var(--zn-ink); }
.zn-portal-empty span { color: var(--zn-muted); font-size: 0.85rem; }

.zn-portal-footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: var(--zn-radius-xl);
  background:
    radial-gradient(circle at 100% 0%, rgba(15, 118, 110, 0.14), transparent 32%),
    linear-gradient(135deg, #edf7f3, #fff9eb);
}

.zn-portal-footer-cta h2 {
  max-width: 32rem;
  margin: 0.45rem 0 0;
  font-size: clamp(1.45rem, 3vw, 2.3rem);
}

.zn-portal-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.3rem 0;
  color: var(--zn-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.zn-portal-footer a {
  color: var(--zn-teal);
  text-decoration: none;
}

/* Authenticated hub-specific composition. */
.zn-systems-hub {
  min-height: 100vh;
}

.zn-hub-session-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(27, 154, 91, 0.23);
  border-radius: 999px;
  background: rgba(218, 244, 228, 0.58);
  color: #12633d;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.zn-hub-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.zn-hub-header h1 {
  margin: 0.45rem 0 0.45rem;
  font-size: clamp(2.1rem, 4vw, 3.8rem);
}

.zn-hub-header p {
  margin: 0;
  color: var(--zn-muted);
  font-size: 1rem;
}

.zn-hub-identity-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 14rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(190, 170, 130, 0.46);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.68);
}

.zn-hub-avatar {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border-radius: 0.7rem;
  background: var(--zn-ink);
  color: #fff8e8;
  font-family: var(--zn-font-display);
  font-size: 0.78rem;
  font-weight: 700;
}

.zn-hub-identity-card strong,
.zn-hub-identity-card span {
  display: block;
}

.zn-hub-identity-card strong {
  color: var(--zn-ink);
  font-size: 0.8rem;
}

.zn-hub-identity-card div span {
  margin-top: 0.16rem;
  color: var(--zn-muted);
  font-size: 0.68rem;
}

.zn-portal-alert {
  margin-bottom: 1rem;
}

.zn-hub-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.8rem;
  padding: 1.5rem;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: var(--zn-radius-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(43, 140, 255, 0.12), transparent 24%),
    linear-gradient(135deg, rgba(238, 249, 246, 0.92), rgba(255, 250, 237, 0.9));
}

.zn-hub-overview-copy {
  max-width: 27rem;
}

.zn-hub-overview h2 {
  margin: 0.4rem 0 0.25rem;
  font-size: 1.55rem;
}

.zn-hub-overview p {
  margin: 0;
  color: var(--zn-muted);
  font-size: 0.84rem;
}

.zn-hub-overview-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
}

.zn-hub-overview-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.zn-hub-overview-item strong,
.zn-hub-overview-item small {
  display: block;
}

.zn-hub-overview-item strong {
  color: var(--zn-ink);
  font-size: 0.74rem;
}

.zn-hub-overview-item small {
  margin-top: 0.13rem;
  color: var(--zn-muted);
  font-size: 0.62rem;
}

.zn-hub-overview-icon {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border-radius: 0.55rem;
  font-size: 0.82rem;
  font-weight: 800;
}

.zn-hub-overview-icon-sun { background: rgba(244, 163, 0, 0.16); color: #895900; }
.zn-hub-overview-icon-teal { background: rgba(15, 118, 110, 0.13); color: var(--zn-teal); }
.zn-hub-overview-icon-blue { background: rgba(43, 140, 255, 0.13); color: #246bb6; }

.zn-hub-list-heading {
  align-items: flex-end;
  margin-bottom: 1.35rem;
}

.zn-hub-search-wrap {
  width: min(100%, 18rem);
}

.zn-hub-system-card {
  min-height: 22rem;
}

@media (max-width: 1100px) {
  .zn-portal-hero {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
    gap: 2rem;
    padding: clamp(2rem, 5vw, 3.5rem);
  }

  .zn-portal-hero h1 {
    font-size: clamp(2.55rem, 5vw, 3.8rem);
  }

  .zn-portal-floating-note-top { right: -0.5rem; }
  .zn-portal-floating-note-bottom { left: -0.5rem; }
}

@media (max-width: 991.98px) {
  .zn-portal-hero {
    grid-template-columns: 1fr;
  }

  .zn-portal-hero-copy {
    max-width: 46rem;
  }

  .zn-portal-hero-visual {
    min-height: 25rem;
  }

  .zn-hub-header,
  .zn-hub-overview {
    align-items: flex-start;
    flex-direction: column;
  }

  .zn-hub-identity-card {
    width: 100%;
  }

  .zn-hub-overview-items {
    justify-content: flex-start;
  }
}

@media (max-width: 767.98px) {
  .zn-portal-shell {
    width: min(100% - 1.25rem, 1380px);
    padding-top: 0.8rem;
  }

  .zn-portal-nav {
    align-items: flex-start;
  }

  .zn-portal-nav-actions {
    gap: 0.4rem;
  }

  .zn-portal-nav-actions .btn-outline-dark {
    display: none;
  }

  .zn-portal-hero {
    min-height: 0;
    padding: 2rem 1.35rem;
    border-radius: 1.35rem;
  }

  .zn-portal-hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.6rem);
  }

  .zn-portal-trust-line {
    align-items: flex-start;
    line-height: 1.45;
  }

  .zn-portal-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 1rem 0;
  }

  .zn-portal-metric:nth-child(2) { border-right: 0; }
  .zn-portal-metric:nth-child(3) { padding-left: 0; }

  .zn-portal-section-heading,
  .zn-hub-list-heading,
  .zn-portal-footer-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .zn-portal-search-wrap,
  .zn-hub-search-wrap {
    width: 100%;
  }

  .zn-portal-footer-cta .btn {
    align-self: flex-start;
  }

  .zn-portal-footer {
    flex-direction: column;
  }

  .zn-hub-header h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }
}

@media (max-width: 575.98px) {
  .zn-portal-brand-caption {
    display: none;
  }

  .zn-portal-nav-actions .zn-hub-session-badge {
    display: none;
  }

  .zn-portal-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .zn-portal-hero-actions .btn {
    width: 100%;
  }

  .zn-portal-hero-visual {
    min-height: 20rem;
  }

  .zn-portal-command-card {
    width: 100%;
    transform: none;
  }

  .zn-portal-orbit,
  .zn-portal-floating-note {
    display: none;
  }

  .zn-portal-flow {
    gap: 0.3rem;
  }

  .zn-portal-flow-node {
    padding-right: 0.35rem;
    padding-left: 0.35rem;
    font-size: 0.56rem;
  }

  .zn-portal-flow-line {
    width: 0.4rem;
  }

  .zn-portal-system-card {
    padding: 1.15rem;
  }

  .zn-portal-system-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .zn-portal-system-footer .btn {
    width: 100%;
  }
}
