@import url('https://unpkg.com/leaflet@1.9.4/dist/leaflet.css');

:root {
  --nc-bg: #eef4ff;
  --nc-surface: rgba(255,255,255,.90);
  --nc-surface-solid: #ffffff;
  --nc-surface-2: #f7f9ff;
  --nc-border: rgba(15, 23, 42, .08);
  --nc-text: #0f172a;
  --nc-muted: #64748b;
  --nc-primary: #2563eb;
  --nc-primary-2: #7c3aed;
  --nc-accent: #0ea5e9;
  --nc-success: #16a34a;
  --nc-radius: 1.35rem;
  --nc-shadow: 0 18px 50px rgba(15, 23, 42, .08);
  --nc-shadow-lg: 0 28px 80px rgba(15, 23, 42, .12);
}

html[data-bs-theme="dark"] {
  color-scheme: dark;
  --nc-bg: #07111f;
  --nc-surface: rgba(15, 23, 42, .72);
  --nc-surface-solid: #0f172a;
  --nc-surface-2: #111c31;
  --nc-border: rgba(148, 163, 184, .16);
  --nc-text: #e5eefc;
  --nc-muted: #94a3b8;
  --nc-primary: #60a5fa;
  --nc-primary-2: #a78bfa;
  --nc-accent: #38bdf8;
  --nc-success: #4ade80;
  --nc-shadow: 0 18px 50px rgba(2, 6, 23, .35);
  --nc-shadow-lg: 0 28px 80px rgba(2, 6, 23, .45);
}

html, body { height: 100%; }
body.app-body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, .14), transparent 28%),
    radial-gradient(circle at top right, rgba(124, 58, 237, .10), transparent 26%),
    linear-gradient(180deg, color-mix(in srgb, var(--nc-bg) 84%, #fff 16%) 0%, var(--nc-bg) 100%);
  color: var(--nc-text);
}

html[data-bs-theme="dark"] body.app-body {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, .16), transparent 28%),
    radial-gradient(circle at top right, rgba(124, 58, 237, .14), transparent 26%),
    linear-gradient(180deg, #09111e 0%, var(--nc-bg) 100%);
}

.nc-shell {
  min-height: 100vh;
  width: 100%;
  align-items: stretch;
}
.nc-sidebar {
  width: 310px;
  min-width: 310px;
  flex: 0 0 310px;
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  border-right: 1px solid rgba(255,255,255,.06);
  box-shadow: 12px 0 40px rgba(15, 23, 42, .16);
}
.nc-sidebar .brand { letter-spacing: .02em; }
.nc-brand-logo {
  display: block;
  width: 238px;
  max-width: 100%;
  height: 31px;
  object-fit: contain;
  object-position: left center;
}
.nc-brand-tagline {
  margin-top: .55rem;
  color: rgba(255,255,255,.62);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: 0;
}
.nc-mobile-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
}
.nc-mobile-brand img {
  width: 30px;
  height: 38px;
  flex: 0 0 30px;
  object-fit: contain;
}
.nc-login-hero-brand img,
.nc-login-form-brand img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: left center;
}
.nc-login-hero-brand img {
  max-width: 360px;
}
.nc-login-hero-brand div {
  margin-top: .65rem;
  color: rgba(255,255,255,.72);
  font-weight: 600;
}
.nc-login-form-brand {
  margin-bottom: 2rem;
}
.nc-login-form-brand img {
  max-width: 290px;
}
.nc-login-form-brand div {
  margin-top: .5rem;
  color: var(--nc-muted);
  font-size: .9rem;
  font-weight: 600;
}
.nc-sidebar .nav-link {
  color: rgba(255,255,255,.80);
  border-radius: 1rem;
  padding: .86rem 1rem;
  margin-bottom: .35rem;
  transition: all .18s ease;
}
.nc-sidebar .nav-link:hover,
.nc-sidebar .nav-link.active {
  color: #fff;
  background: rgba(255,255,255,.10);
}
.nc-sidebar .nav-link i { width: 1.25rem; text-align: center; }
.nc-sidebar-card {
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.08);
}

.nc-main {
  flex: 1 1 0%;
  width: 0;
  min-width: 0;
  max-width: calc(100% - 310px);
}
.nc-main > main,
.nc-main > header,
.nc-main .container-fluid,
.nc-main .row > *,
.nc-main .card,
.nc-main .tab-content,
.nc-main .tab-pane {
  min-width: 0;
}
.nc-main .table-responsive,
.nc-main pre {
  max-width: 100%;
}

.nc-topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  backdrop-filter: blur(22px);
  background: color-mix(in srgb, var(--nc-surface-solid) 78%, transparent);
  border-bottom: 1px solid var(--nc-border);
}

.nc-card,
.card {
  border: 1px solid var(--nc-border);
  border-radius: var(--nc-radius);
  box-shadow: var(--nc-shadow);
  background: var(--nc-surface-solid);
}

.card-header {
  border-top-left-radius: calc(var(--nc-radius) - .1rem) !important;
  border-top-right-radius: calc(var(--nc-radius) - .1rem) !important;
}

.nc-soft-card,
.nc-form-card,
.nc-selectable-card,
.nc-stat,
.nc-panel {
  background: linear-gradient(180deg, color-mix(in srgb, var(--nc-surface-solid) 96%, #f8fbff 4%), var(--nc-surface-solid));
  border: 1px solid var(--nc-border);
  border-radius: var(--nc-radius);
  box-shadow: var(--nc-shadow);
}

.nc-form-card { overflow: hidden; }
.nc-form-header {
  background: linear-gradient(135deg, rgba(37, 99, 235, .10), rgba(124, 58, 237, .06));
  border-bottom: 1px solid var(--nc-border);
}
.nc-form-shell { width: 100%; }

.nc-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 44%, #7c3aed 100%);
  color: #fff;
  border-radius: calc(var(--nc-radius) + .25rem);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .20);
}

.nc-stat {
  border-radius: 1.1rem;
  padding: 1rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--nc-surface-solid) 98%, #f8fbff 2%), var(--nc-surface-solid));
  border: 1px solid var(--nc-border);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
}
.nc-stat .value {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}
.nc-stat .label {
  color: var(--nc-muted);
  font-size: .86rem;
}
.nc-stat .icon {
  width: 3rem; height: 3rem; border-radius: .95rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(37, 99, 235, .10);
  color: var(--nc-primary);
}

.table { vertical-align: middle; }
.table thead th {
  color: color-mix(in srgb, var(--nc-text) 72%, var(--nc-muted) 28%);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: color-mix(in srgb, var(--nc-surface-2) 92%, var(--nc-surface-solid) 8%);
  border-bottom: 1px solid var(--nc-border);
}
.table tbody tr:hover { background: color-mix(in srgb, var(--nc-primary) 4%, transparent); }
.table > :not(caption) > * > * { padding: .95rem .95rem; }

.form-control,
.form-select,
.ts-wrapper .ts-control {
  border-radius: 1rem;
  border-color: color-mix(in srgb, var(--nc-border) 100%, #fff 0%);
  min-height: 52px;
  padding: .78rem .95rem;
  background-color: var(--nc-surface-solid);
  color: var(--nc-text);
}
.form-control:focus,
.form-select:focus,
.ts-wrapper.focus .ts-control {
  border-color: color-mix(in srgb, var(--nc-primary) 68%, white 32%);
  box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--nc-primary) 14%, transparent);
}
.ts-wrapper .ts-control { display: flex; align-items: center; }
textarea.form-control { min-height: 132px; }
.btn {
  border-radius: 1rem;
  padding: .76rem 1rem;
  font-weight: 600;
}
.btn-sm { border-radius: .85rem; padding: .5rem .85rem; min-height: 40px; }
.btn-icon {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-icon.btn-sm { width: 2.15rem; height: 2.15rem; }
.btn-outline-secondary,
.btn-outline-primary,
.btn-outline-danger,
.btn-outline-dark {
  background: color-mix(in srgb, var(--nc-surface-solid) 88%, transparent);
}
.badge { border-radius: 999px; }
.alert { border-radius: 1rem; }

.nc-section-title {
  font-weight: 800;
  letter-spacing: -.03em;
  font-size: 1.25rem;
}
.nc-muted { color: var(--nc-muted); }
.nc-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .42rem .78rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--nc-surface-2) 92%, transparent);
  color: color-mix(in srgb, var(--nc-text) 84%, var(--nc-muted) 16%);
  font-size: .85rem;
  border: 1px solid var(--nc-border);
}
.nc-selectable-card {
  border: 1px solid var(--nc-border);
  border-radius: 1.15rem;
  padding: 1rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--nc-surface-solid) 98%, #f8fbff 2%), var(--nc-surface-solid));
  box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
  cursor: pointer;
  transition: all .18s ease;
}
.nc-selectable-card:hover,
.nc-selectable-card.is-selected {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--nc-primary) 35%, transparent);
  box-shadow: 0 16px 40px rgba(37, 99, 235, .12);
}

.nc-panel {
  padding: 1.25rem;
}

.card-modern {
  background: linear-gradient(180deg, color-mix(in srgb, var(--nc-surface-solid) 98%, #f8fbff 2%), var(--nc-surface-solid));
  border: 1px solid var(--nc-border);
  border-radius: 1.2rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
}


.nc-nav-group-toggle { display: flex; align-items: center; gap: .5rem; }
.nc-nav-group-toggle .nc-chevron { transition: transform .18s ease; }
.nc-nav-group-toggle[aria-expanded="true"] .nc-chevron { transform: rotate(180deg); }
.nc-subnav .nav-link { padding-top: .6rem; padding-bottom: .6rem; }
.nc-legend { color: var(--nc-muted); font-size: .85rem; }
pre {
  border-radius: 1rem !important;
  background: color-mix(in srgb, var(--nc-surface-2) 94%, #fff 6%);
  color: var(--nc-text);
}

.permission-action-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .52rem .78rem;
  border: 1px solid var(--nc-border);
  border-radius: 999px;
  background: var(--nc-surface-solid);
  cursor: pointer;
  transition: all .16s ease;
  user-select: none;
}
.permission-action-chip:hover {
  border-color: color-mix(in srgb, var(--nc-primary) 35%, transparent);
  box-shadow: 0 10px 24px rgba(37, 99, 235, .08);
}
.permission-action-chip input { margin-top: 0; }
.permission-options-scroll {
  max-height: 64vh;
  overflow: auto;
  padding-right: .25rem;
}

.nc-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, .28);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nc-loading-card {
  width: min(420px, calc(100vw - 2rem));
  border-radius: 1.5rem;
  background: var(--nc-surface-solid);
  border: 1px solid var(--nc-border);
  box-shadow: var(--nc-shadow-lg);
  padding: 1.5rem;
  text-align: center;
}

.nc-toast-stack .toast {
  border-radius: 1rem;
  overflow: hidden;
}

.min-w-0 { min-width: 0; }

@media (max-width: 991.98px) {
  .nc-sidebar {
    width: 100%;
    min-width: 0;
    flex-basis: auto;
  }
  .nc-main {
    width: 100%;
    max-width: 100%;
  }
}


.address-map {
  width: 100%;
  height: 420px;
  min-height: 420px;
}

.quick-add-help {
  font-size: .84rem;
  color: var(--nc-muted);
}

.input-group .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.form-check.form-switch .form-check-input {
  width: 3em;
  height: 1.45em;
}

.step-chip {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--nc-primary) 12%, transparent);
  color: var(--nc-primary);
  font-weight: 700;
}


.wizard-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
}
.wizard-step {
  border: 1px solid var(--nc-border);
  border-radius: 1rem;
  background: var(--nc-surface-solid);
  padding: .85rem .9rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
  opacity: .72;
}
.wizard-step span {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--nc-primary) 12%, transparent);
  color: var(--nc-primary);
  font-weight: 700;
}
.wizard-step small {
  display: block;
  color: var(--nc-muted);
  line-height: 1.15;
}
.wizard-step.is-active,
.wizard-step.is-complete {
  opacity: 1;
  border-color: color-mix(in srgb, var(--nc-primary) 28%, var(--nc-border));
}
.wizard-step.is-complete span,
.wizard-step.is-active span {
  background: color-mix(in srgb, var(--nc-primary) 18%, transparent);
  color: var(--nc-primary);
}

@media (max-width: 991.98px) {
  .wizard-track {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 992px) {
  .w-lg-auto { width: auto !important; }
}


.nc-section-card { overflow: hidden; }
.nc-info-card {
  background: linear-gradient(180deg, color-mix(in srgb, var(--nc-surface-solid) 98%, #f8fbff 2%), var(--nc-surface-solid));
  border: 1px solid var(--nc-border);
  border-radius: 1.15rem;
  padding: 1rem 1.05rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}
.nc-info-label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--nc-muted);
  margin-bottom: .45rem;
}
.nc-info-value {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
  word-break: break-word;
}
.nc-info-meta {
  margin-top: .45rem;
  color: var(--nc-muted);
  font-size: .9rem;
}
.nc-list-card,
.nc-alarm-card {
  background: linear-gradient(180deg, color-mix(in srgb, var(--nc-surface-solid) 98%, #f8fbff 2%), var(--nc-surface-solid));
  border: 1px solid var(--nc-border);
  border-radius: 1.15rem;
  padding: 1rem 1.05rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
}
.nc-list-title {
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: 1rem;
}
.nc-list-meta {
  color: var(--nc-muted);
  font-size: .88rem;
  margin-top: .15rem;
}
.nc-alarm-description {
  color: var(--nc-text);
  font-size: .95rem;
  line-height: 1.45;
}
.nc-alarm-history-shell {
  background: linear-gradient(180deg, color-mix(in srgb, var(--nc-surface-solid) 98%, #f8fbff 2%), var(--nc-surface-solid));
  border: 1px solid var(--nc-border);
  border-radius: 1.2rem;
  padding: 1.1rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
}


.nc-tabs {
  border-bottom: 0;
  gap: .5rem;
}
.nc-tabs .nav-link {
  border: 1px solid var(--nc-border);
  border-radius: 999px;
  color: var(--nc-muted);
  background: color-mix(in srgb, var(--nc-surface-solid) 92%, transparent);
  padding: .78rem 1rem;
  font-weight: 700;
}
.nc-tabs .nav-link:hover {
  color: var(--nc-primary);
}
.nc-tabs .nav-link.active {
  color: var(--nc-primary);
  background: var(--nc-surface-solid);
  border-color: color-mix(in srgb, var(--nc-primary) 24%, var(--nc-border));
  box-shadow: 0 12px 28px rgba(37, 99, 235, .10);
}
.nc-switch-row {
  min-width: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
}
.nc-switch-row .form-check-input {
  margin-top: 0;
}
.nc-day-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: .75rem;
}
.nc-day-option {
  border: 1px solid var(--nc-border);
  border-radius: 1rem;
  background: var(--nc-surface-solid);
  padding: .9rem 1rem;
  display: flex;
  align-items: center;
  gap: .8rem;
  cursor: pointer;
  transition: all .18s ease;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}
.nc-day-option:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--nc-primary) 24%, var(--nc-border));
}
.nc-day-option input {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  margin: 0;
}
.nc-day-option .nc-day-option-label {
  font-weight: 700;
  line-height: 1.2;
}
.nc-day-option input:checked + .nc-day-option-label {
  color: var(--nc-primary);
}
.nc-form-card .tab-content {
  min-height: 280px;
}


.tech-switch-wrap {
  min-width: 3.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
}
.tech-switch-wrap .form-check-input {
  float: none;
  margin: 0;
}
.tech-button-card,
.nc-step-card {
  border: 1px solid var(--nc-border);
  border-radius: 1.15rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--nc-surface-solid) 98%, #f8fbff 2%), var(--nc-surface-solid));
  box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
  transition: all .18s ease;
}
.tech-button-card {
  padding: 1rem;
  min-height: 100%;
  cursor: pointer;
}
.tech-button-card:hover,
.nc-step-card:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--nc-primary) 24%, var(--nc-border));
}
.tech-button-card.is-selected {
  border-color: color-mix(in srgb, var(--nc-primary) 38%, var(--nc-border));
  box-shadow: 0 14px 34px rgba(37, 99, 235, .10);
}
.nc-step-card .form-control,
.nc-step-card .form-select,
.nc-step-card textarea,
.nc-soft-card .form-control,
.nc-soft-card .form-select,
.nc-soft-card textarea {
  border-radius: .95rem;
}
.nc-provision-client-block {
  position: relative;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--bs-primary) 18%, var(--bs-border-color));
  border-radius: 8px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bs-primary-bg-subtle) 38%, var(--bs-body-bg)), var(--bs-body-bg));
}

.nc-provision-client-block .form-control {
  min-height: 3rem;
  border-radius: 8px;
  font-weight: 600;
}

.nc-autocomplete-menu {
  position: absolute;
  z-index: 1050;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 320px;
  overflow-y: auto;
  background: var(--bs-body-bg);
  border: 1px solid color-mix(in srgb, var(--bs-primary) 16%, var(--bs-border-color));
  border-radius: 8px;
  box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, .18);
  padding: .35rem;
}

.nc-autocomplete-item {
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr) 2rem;
  align-items: center;
  gap: .7rem;
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: .65rem .7rem;
  text-align: left;
  color: var(--bs-body-color);
}

.nc-autocomplete-item:hover,
.nc-autocomplete-item:focus {
  background: var(--bs-primary-bg-subtle);
  outline: 0;
}

.nc-autocomplete-avatar {
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--bs-primary) 14%, transparent);
  color: var(--bs-primary);
  font-weight: 800;
  font-size: .8rem;
}

.nc-autocomplete-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.nc-autocomplete-copy span,
.nc-autocomplete-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nc-autocomplete-action {
  color: var(--bs-primary);
  opacity: 0;
  text-align: center;
}

.nc-autocomplete-item:hover .nc-autocomplete-action,
.nc-autocomplete-item:focus .nc-autocomplete-action {
  opacity: 1;
}

.nc-autocomplete-item small,
.nc-autocomplete-empty {
  color: var(--bs-secondary-color);
}

.nc-autocomplete-empty {
  padding: .75rem .85rem;
}

/* Keep modal headers/actions reachable on short screens and mobile devices. */
.modal-dialog-centered .modal-content,
.modal-dialog-scrollable .modal-content {
  max-height: calc(100dvh - 1rem);
}

.modal-content > form:not(.modal-content) {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}

.modal-header,
.modal-footer {
  flex: 0 0 auto;
}

.modal-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

@media (min-width: 576px) {
  .modal-dialog-centered .modal-content,
  .modal-dialog-scrollable .modal-content {
    max-height: calc(100dvh - 3.5rem);
  }
}

.nc-playbook-form textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.nc-playbook-card {
  border: 1px solid color-mix(in srgb, var(--bs-primary) 10%, var(--bs-border-color));
  box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, .055);
}

.nc-playbook-step-badge {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: .8rem;
  background: color-mix(in srgb, var(--bs-primary) 12%, transparent);
  color: var(--bs-primary);
  font-weight: 800;
}

.nc-playbook-rule-help,
.nc-rule-box,
.nc-severity-panel,
.nc-scope-card,
.nc-status-card {
  border: 1px solid color-mix(in srgb, var(--bs-border-color) 80%, transparent);
  border-radius: 1.15rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bs-body-bg) 96%, var(--bs-light) 4%), var(--bs-body-bg));
}

.nc-playbook-rule-help {
  padding: 1rem;
}

.nc-rule-box,
.nc-scope-card,
.nc-severity-panel,
.nc-status-card {
  padding: 1rem;
}

.nc-rule-box-header,
.nc-scope-card-title {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: .8rem;
}

.nc-rule-box-header > i,
.nc-scope-card-title > i {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: .75rem;
  background: color-mix(in srgb, var(--bs-primary) 9%, transparent);
}

.nc-rule-box textarea {
  min-height: 8rem;
}

.nc-rule-box .form-text,
.nc-scope-card .form-text,
.nc-severity-panel .form-text {
  margin-top: .65rem;
}

.nc-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: .65rem;
}

.nc-choice-card,
.nc-checkbox-row {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-width: 0;
  border: 1px solid var(--bs-border-color);
  border-radius: .85rem;
  background: var(--bs-body-bg);
}

.nc-choice-card {
  padding: .75rem .85rem;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.nc-choice-card:hover,
.nc-checkbox-row:hover {
  border-color: color-mix(in srgb, var(--bs-primary) 28%, var(--bs-border-color));
  box-shadow: 0 .6rem 1.4rem rgba(15, 23, 42, .055);
}

.nc-choice-card input,
.nc-checkbox-row input {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
}

.nc-choice-card span,
.nc-checkbox-row span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nc-choice-card span small {
  display: block;
  margin-top: .1rem;
  color: var(--bs-secondary-color);
  font-size: .74rem;
  line-height: 1.2;
}

.nc-severity-grid {
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
}

.nc-severity-card {
  align-items: flex-start;
  min-height: 4.25rem;
}

.nc-severity-card:has(input:checked),
.nc-checkbox-row:has(input:checked) {
  border-color: color-mix(in srgb, var(--bs-primary) 42%, var(--bs-border-color));
  background: color-mix(in srgb, var(--bs-primary) 7%, var(--bs-body-bg));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bs-primary) 18%, transparent);
}

.nc-checkbox-panel {
  max-height: 17rem;
  overflow-y: auto;
  border: 1px solid color-mix(in srgb, var(--bs-border-color) 70%, transparent);
  border-radius: 1rem;
  padding: .65rem;
  background: color-mix(in srgb, var(--bs-body-bg) 94%, var(--bs-light) 6%);
}

.nc-checkbox-row {
  padding: .62rem .75rem;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.nc-checkbox-row + .nc-checkbox-row {
  margin-top: .5rem;
}

.nc-playbook-active-switch {
  padding: 1rem 1rem 1rem 3.25rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--bs-success) 7%, var(--bs-body-bg));
}

.nc-status-card {
  background: linear-gradient(135deg, color-mix(in srgb, var(--bs-success) 8%, var(--bs-body-bg)), var(--bs-body-bg));
}

.nc-status-icon {
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: .85rem;
  background: color-mix(in srgb, var(--bs-success) 14%, transparent);
  color: var(--bs-success);
  font-size: 1.2rem;
}

.nc-status-card .form-check-input {
  width: 3rem;
  height: 1.55rem;
  margin: 0;
}

.nc-sticky-help {
  position: sticky;
  top: 1rem;
}

.nc-form-actions {
  position: sticky;
  bottom: 0;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  gap: .75rem;
  padding: 1rem;
  margin-top: .25rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--bs-body-bg) 94%, white 6%);
  box-shadow: 0 -10px 30px rgba(15, 23, 42, .06);
}

/* NOC IA workspace */
.nc-noc-main {
  width: min(100%, 1440px);
  margin-inline: auto;
  padding-inline: clamp(1rem, 2vw, 2rem) !important;
}

.nc-noc-main > .d-flex:first-child {
  padding-bottom: .35rem;
}

.nc-noc-main .card,
.nc-noc-main .nc-panel-card,
.nc-noc-main .nc-playbook-section,
.nc-noc-main .nc-review-card {
  border-color: color-mix(in srgb, var(--bs-border-color) 76%, transparent);
  box-shadow: 0 .75rem 2rem rgba(15, 23, 42, .045);
}

.nc-noc-main .table {
  --bs-table-bg: transparent;
  font-size: .9rem;
}

.nc-noc-main .table thead th {
  padding-top: .75rem;
  padding-bottom: .75rem;
  color: var(--bs-secondary-color);
  font-size: .72rem;
  letter-spacing: .045em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nc-noc-main .table tbody td {
  padding-top: .85rem;
  padding-bottom: .85rem;
}

.nc-noc-main .form-label {
  font-size: .82rem;
  letter-spacing: .01em;
}

.nc-noc-main .form-text {
  font-size: .76rem;
}

.nc-noc-tabs {
  display: flex;
  gap: .45rem;
  padding: .35rem;
  overflow-x: auto;
  border: 1px solid color-mix(in srgb, var(--bs-border-color) 75%, transparent);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--bs-body-bg) 92%, var(--bs-light) 8%);
  scrollbar-width: thin;
}

.nc-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.nc-page-header h1 {
  margin: 0 0 .3rem;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  letter-spacing: -.025em;
}

.nc-page-header p {
  max-width: 58rem;
  margin: 0;
  color: var(--bs-secondary-color);
}

.nc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .45rem;
  color: var(--bs-primary);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nc-query-panel {
  display: flex;
  align-items: flex-end;
  gap: .75rem;
  padding: .85rem;
  border: 1px solid color-mix(in srgb, var(--bs-border-color) 78%, transparent);
  border-radius: 1rem;
  background: var(--bs-body-bg);
}

.nc-query-field { min-width: 12rem; }
.nc-query-grow { flex: 1 1 auto; }
.nc-query-field label { display:block; margin-bottom: .35rem; color: var(--bs-secondary-color); font-size:.74rem; font-weight:700; }
.nc-query-actions { display:flex; align-items:center; gap:.35rem; }

.nc-entity-card { overflow:hidden; }
.nc-entity-head { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; }
.nc-entity-title { display:block; color:var(--bs-body-color); font-size:1.08rem; font-weight:800; text-decoration:none; }
.nc-entity-title:hover { color:var(--bs-primary); }
.nc-entity-meta { display:flex; flex-wrap:wrap; gap:.55rem; margin-top:.3rem; color:var(--bs-secondary-color); font-size:.76rem; }
.nc-entity-description { min-height:2.7rem; margin:1rem 0; color:var(--bs-secondary-color); }
.nc-entity-metrics { display:flex; flex-wrap:wrap; gap:.5rem; }
.nc-entity-metrics span { padding:.4rem .55rem; border:1px solid var(--bs-border-color); border-radius:.65rem; color:var(--bs-secondary-color); font-size:.78rem; }
.nc-entity-metrics strong { color:var(--bs-body-color); }
.nc-entity-actions { display:flex; justify-content:flex-end; gap:.5rem; }
.nc-status-chip { display:inline-flex; flex:0 0 auto; align-items:center; min-height:1.55rem; padding:.2rem .55rem; border-radius:999px; font-size:.72rem; font-weight:800; }
.nc-status-chip.is-success { color:var(--bs-success-text-emphasis); background:var(--bs-success-bg-subtle); }
.nc-status-chip.is-muted { color:var(--bs-secondary-color); background:var(--bs-secondary-bg); }

.nc-noc-tab {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  flex: 0 0 auto;
  padding: .58rem .85rem;
  border-radius: .78rem;
  color: var(--bs-secondary-color);
  text-decoration: none;
  font-weight: 700;
  font-size: .88rem;
  transition: background-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.nc-noc-tab:hover {
  color: var(--bs-primary);
  background: var(--bs-body-bg);
}

.nc-noc-tab.active {
  color: var(--bs-primary);
  background: var(--bs-body-bg);
  box-shadow: 0 .55rem 1.25rem rgba(15, 23, 42, .07);
}

.nc-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .85rem;
}

.nc-kpi-card {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--bs-border-color) 78%, transparent);
  border-radius: 1rem;
  background: var(--bs-body-bg);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 .7rem 1.8rem rgba(15, 23, 42, .045);
}

.nc-kpi-card small {
  display: block;
  color: var(--bs-secondary-color);
  line-height: 1.1;
}

.nc-kpi-card strong {
  display: block;
  font-size: 1.7rem;
  line-height: 1;
  margin-top: .25rem;
}

.nc-kpi-icon {
  width: 2.45rem;
  height: 2.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: .85rem;
}

.nc-panel-card {
  border: 1px solid color-mix(in srgb, var(--bs-border-color) 78%, transparent);
  border-radius: 1.1rem;
  box-shadow: 0 1rem 2.8rem rgba(15, 23, 42, .055);
  overflow: hidden;
}

.nc-list-stack {
  display: grid;
  gap: .65rem;
}

.nc-alert-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .85rem;
  border: 1px solid var(--bs-border-color);
  border-radius: .95rem;
  color: inherit;
  text-decoration: none;
  background: color-mix(in srgb, var(--bs-body-bg) 97%, var(--bs-light) 3%);
}

.nc-alert-row:hover {
  border-color: color-mix(in srgb, var(--bs-primary) 28%, var(--bs-border-color));
  background: var(--bs-body-bg);
}

.nc-alert-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .75rem;
  align-items: center;
  min-width: 0;
}

.nc-status-dot {
  width: .7rem;
  height: .7rem;
  border-radius: 50%;
  background: var(--bs-info);
  box-shadow: 0 0 0 .25rem color-mix(in srgb, var(--bs-info) 14%, transparent);
}

.nc-status-dot.success { background: var(--bs-success); box-shadow: 0 0 0 .25rem color-mix(in srgb, var(--bs-success) 14%, transparent); }
.nc-status-dot.warning { background: var(--bs-warning); box-shadow: 0 0 0 .25rem color-mix(in srgb, var(--bs-warning) 18%, transparent); }
.nc-status-dot.danger { background: var(--bs-danger); box-shadow: 0 0 0 .25rem color-mix(in srgb, var(--bs-danger) 14%, transparent); }

.nc-config-list {
  display: grid;
  gap: .45rem;
}

.nc-config-list > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--bs-border-color);
}

.nc-config-list > div:last-child {
  border-bottom: 0;
}

.nc-config-list span {
  color: var(--bs-secondary-color);
}

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

.nc-mini-metrics > div {
  padding: .85rem;
  border: 1px solid var(--bs-border-color);
  border-radius: .9rem;
  background: color-mix(in srgb, var(--bs-body-bg) 96%, var(--bs-light) 4%);
}

.nc-mini-metrics small {
  display: block;
  color: var(--bs-secondary-color);
}

.nc-mini-metrics strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.1;
}

.min-w-0 {
  min-width: 0;
}

.nc-code-preview {
  max-height: 18rem;
  overflow: auto;
  padding: .9rem;
  border-radius: .85rem;
  color: #e2e8f0;
  background: #0f172a;
  white-space: pre-wrap;
  font-size: .78rem;
}

.nc-filter-bar {
  display: grid;
  grid-template-columns: minmax(16rem, 1.7fr) minmax(12rem, 1fr) minmax(10rem, .75fr) minmax(10rem, .75fr) auto;
  gap: .65rem;
  align-items: center;
  padding: .75rem;
  border: 1px solid color-mix(in srgb, var(--bs-border-color) 78%, transparent);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--bs-body-bg) 94%, var(--bs-light) 6%);
}

.nc-filter-bar-compact {
  grid-template-columns: minmax(16rem, 1fr) minmax(10rem, 14rem) auto;
}

.nc-filter-search {
  position: relative;
}

.nc-filter-search > i {
  position: absolute;
  z-index: 1;
  left: .85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bs-secondary-color);
}

.nc-filter-search .form-control {
  padding-left: 2.35rem;
}

.nc-list-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: .75rem;
}

.nc-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  margin-top: .85rem;
}

.nc-list-toolbar .nc-pagination {
  margin-top: 0;
}

.nc-line-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nc-severity-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: .2rem .55rem;
  border-radius: 999px;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-light);
  font-size: .78rem;
  font-weight: 700;
}

.nc-empty-state {
  display: grid;
  place-items: center;
  gap: .35rem;
  text-align: center;
  color: var(--bs-secondary-color);
}

.nc-empty-state i {
  font-size: 2rem;
  color: var(--bs-primary);
}

.nc-playbook-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem);
  gap: 1.25rem;
  align-items: start;
}

.nc-edit-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 21rem);
  gap: 1.25rem;
  align-items: start;
}

.nc-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: .75rem;
  padding: 1rem 1.25rem;
}

.nc-playbook-main {
  display: grid;
  gap: 1rem;
}

.nc-playbook-section,
.nc-review-card {
  border: 1px solid color-mix(in srgb, var(--bs-border-color) 80%, transparent);
  border-radius: 1.25rem;
  background: var(--bs-body-bg);
  box-shadow: 0 1rem 2.6rem rgba(15, 23, 42, .055);
}

.nc-playbook-section {
  padding: 1.15rem;
}

.nc-playbook-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--bs-border-color);
}

.nc-playbook-section-head h2,
.nc-review-card h2 {
  margin: .35rem 0 .15rem;
  font-size: 1.05rem;
}

.nc-playbook-section-head p {
  margin: 0;
  color: var(--bs-secondary-color);
  font-size: .88rem;
}

.nc-step-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  height: 1.5rem;
  padding: 0 .45rem;
  border-radius: 999px;
  color: var(--bs-primary);
  background: color-mix(in srgb, var(--bs-primary) 10%, transparent);
  font-weight: 800;
  font-size: .75rem;
}

.nc-rule-tile,
.nc-control-panel {
  height: 100%;
  padding: .95rem;
  border: 1px solid color-mix(in srgb, var(--bs-border-color) 80%, transparent);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--bs-body-bg) 96%, var(--bs-light) 4%);
}

.nc-rule-tile-featured {
  border-color: color-mix(in srgb, var(--bs-primary) 24%, var(--bs-border-color));
  background: linear-gradient(135deg, color-mix(in srgb, var(--bs-primary) 7%, var(--bs-body-bg)), var(--bs-body-bg));
}

.nc-rule-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: .75rem;
  color: var(--bs-primary);
  background: color-mix(in srgb, var(--bs-primary) 13%, transparent);
}

.nc-rule-tile label {
  display: flex;
  align-items: center;
  gap: .45rem;
}

.nc-rule-tile textarea {
  min-height: 7.2rem;
  border-radius: .85rem;
}

.nc-select-panel .ts-wrapper.multi .ts-control,
.nc-select-panel .ts-wrapper.single .ts-control,
.nc-playbook-section .ts-wrapper.multi .ts-control,
.nc-playbook-section .ts-wrapper.single .ts-control,
.nc-edit-card .ts-wrapper.multi .ts-control,
.nc-edit-card .ts-wrapper.single .ts-control {
  min-height: 2.95rem;
  padding: .38rem .5rem;
  border-color: color-mix(in srgb, var(--bs-border-color) 90%, transparent);
  border-radius: .9rem;
  background: var(--bs-body-bg);
}

.nc-select-panel .ts-wrapper.focus .ts-control,
.nc-playbook-section .ts-wrapper.focus .ts-control,
.nc-edit-card .ts-wrapper.focus .ts-control {
  border-color: color-mix(in srgb, var(--bs-primary) 55%, var(--bs-border-color));
  box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--bs-primary) 16%, transparent);
}

.nc-select-panel .ts-wrapper.multi .ts-control > div,
.nc-playbook-section .ts-wrapper.multi .ts-control > div,
.nc-edit-card .ts-wrapper.multi .ts-control > div {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin: .16rem;
  padding: .38rem .5rem;
  border: 1px solid color-mix(in srgb, var(--bs-primary) 18%, transparent);
  border-radius: 999px;
  color: var(--bs-primary);
  background: color-mix(in srgb, var(--bs-primary) 9%, transparent);
  font-size: .83rem;
  font-weight: 700;
}

.nc-select-panel .ts-wrapper.plugin-remove_button .item .remove,
.nc-playbook-section .ts-wrapper.plugin-remove_button .item .remove,
.nc-edit-card .ts-wrapper.plugin-remove_button .item .remove {
  margin-left: .25rem;
  border-left: 0;
  color: inherit;
  opacity: .72;
}

.nc-select-panel .ts-dropdown,
.nc-playbook-section .ts-dropdown,
.nc-edit-card .ts-dropdown {
  border-radius: .95rem;
  border-color: color-mix(in srgb, var(--bs-primary) 18%, var(--bs-border-color));
  box-shadow: 0 1rem 2rem rgba(15, 23, 42, .12);
  overflow: hidden;
}

.nc-select-panel .ts-dropdown .option,
.nc-playbook-section .ts-dropdown .option,
.nc-edit-card .ts-dropdown .option {
  padding: .6rem .8rem;
}

.nc-select-panel .ts-dropdown .active,
.nc-playbook-section .ts-dropdown .active,
.nc-edit-card .ts-dropdown .active {
  background: color-mix(in srgb, var(--bs-primary) 10%, var(--bs-body-bg));
  color: var(--bs-body-color);
}

.nc-playbook-section .ts-wrapper .ts-control input::placeholder,
.nc-edit-card .ts-wrapper .ts-control input::placeholder {
  color: var(--bs-secondary-color);
  opacity: .9;
}

.nc-check-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: .65rem;
}

.nc-check-card,
.nc-check-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
  margin: 0;
  cursor: pointer;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-body-bg);
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.nc-check-card {
  min-height: 4.35rem;
  padding: .85rem;
  border-radius: .95rem;
}

.nc-check-row {
  padding: .72rem .8rem;
  border-radius: .85rem;
}

.nc-check-list {
  display: grid;
  gap: .45rem;
  max-height: 16rem;
  overflow: auto;
  padding-right: .15rem;
}

.nc-check-card input,
.nc-check-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nc-check-card-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  flex: 0 0 auto;
  border-radius: .55rem;
  border: 1px solid var(--bs-border-color);
  color: transparent;
  background: var(--bs-body-bg);
}

.nc-check-card-text {
  display: grid;
  min-width: 0;
}

.nc-check-card-text small {
  color: var(--bs-secondary-color);
}

.nc-check-card:has(input:checked),
.nc-check-row:has(input:checked) {
  border-color: color-mix(in srgb, var(--bs-primary) 48%, var(--bs-border-color));
  background: color-mix(in srgb, var(--bs-primary) 8%, var(--bs-body-bg));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bs-primary) 16%, transparent);
}

.nc-check-card:has(input:focus-visible),
.nc-check-row:has(input:focus-visible) {
  outline: .2rem solid color-mix(in srgb, var(--bs-primary) 18%, transparent);
}

.nc-check-card:has(input:checked) .nc-check-card-mark,
.nc-check-row:has(input:checked) .nc-check-card-mark {
  color: #fff;
  border-color: var(--bs-primary);
  background: var(--bs-primary);
}

.nc-switch-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--bs-success) 18%, var(--bs-border-color));
  border-radius: 1rem;
  cursor: pointer;
  background: linear-gradient(135deg, color-mix(in srgb, var(--bs-success) 7%, var(--bs-body-bg)), var(--bs-body-bg));
}

.nc-switch-copy {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.nc-switch-copy > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: .8rem;
  color: var(--bs-success);
  background: color-mix(in srgb, var(--bs-success) 13%, transparent);
}

.nc-switch-copy small {
  display: block;
  color: var(--bs-secondary-color);
}

.nc-switch-card .form-check-input {
  width: 3rem;
  height: 1.55rem;
  margin: 0;
}

.nc-playbook-aside {
  position: sticky;
  top: 1rem;
}

.nc-review-card {
  padding: 1.1rem;
}

.nc-review-icon {
  width: 2.6rem;
  height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: .9rem;
  color: var(--bs-primary);
  background: color-mix(in srgb, var(--bs-primary) 10%, transparent);
}

.nc-review-card ul {
  margin: .8rem 0 1rem;
  padding-left: 1.1rem;
  color: var(--bs-secondary-color);
  font-size: .88rem;
}

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

  .nc-playbook-shell {
    grid-template-columns: 1fr;
  }

  .nc-edit-shell {
    grid-template-columns: 1fr;
  }

  .nc-playbook-aside {
    position: static;
  }
}

@media (max-width: 991.98px) {
  .nc-filter-bar {
    grid-template-columns: 1fr 1fr;
  }

  .nc-filter-bar-compact {
    grid-template-columns: 1fr;
  }

  .nc-filter-search {
    grid-column: 1 / -1;
  }

  .nc-list-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 767.98px) {
  .nc-page-header,
  .nc-query-panel { flex-direction: column; align-items: stretch; }
  .nc-query-field { min-width: 0; }
  .nc-query-actions { justify-content: flex-end; }

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

  .nc-filter-bar {
    grid-template-columns: 1fr;
  }

  .nc-responsive-table thead {
    display: none;
  }

  .nc-responsive-table,
  .nc-responsive-table tbody,
  .nc-responsive-table tr,
  .nc-responsive-table td {
    display: block;
    width: 100%;
  }

  .nc-responsive-table tr {
    margin: .75rem;
    padding: .85rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    background: var(--bs-body-bg);
  }

  .nc-responsive-table td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .55rem 0;
    border: 0;
    text-align: right !important;
  }

  .nc-responsive-table td::before {
    content: attr(data-label);
    flex: 0 0 8.5rem;
    text-align: left;
    color: var(--bs-secondary-color);
    font-size: .8rem;
    font-weight: 700;
  }

  .nc-form-actions {
    flex-direction: column-reverse;
  }

  .nc-form-actions .btn {
    width: 100%;
  }
}
