/*
 * Nantucket Classifieds — My Account dashboard.
 * Same layout as the events.nantucket.net dashboard so the two feel like one product.
 * Layout and structure only. Fonts and colors inherit from the active theme
 * (Hello Elementor / Elementor global styles) except for the sidebar
 * (which must stay dark) and semantic status badge colors.
 */

/* ── Structural tokens only ─────────────────────────────────────── */
.ncd {
  --ncd-sidebar:     #1B3A5A;
  --ncd-sidebar-t:   #edf1f4;
  --ncd-sidebar-m:   rgba(255,255,255,.5);
  --ncd-sidebar-a:   rgba(255,255,255,.08);
  --ncd-sidebar-b:   rgba(255,255,255,.08);
  --ncd-radius:      8px;
  --ncd-w-sidebar:   236px;
  --ncd-h-topbar:    54px;
}

/* ── Reset within scope ─────────────────────────────────────────── */
.ncd *, .ncd *::before, .ncd *::after {
  box-sizing: border-box;
}

.ncd {
  display: flex;
  min-height: 80vh;
  position: relative;
}

/* ── Sidebar ────────────────────────────────────────────────────── */
.ncd-sidebar {
  width: var(--ncd-w-sidebar);
  flex-shrink: 0;
  background: var(--ncd-sidebar);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}

.ncd-sidebar__brand {
  padding: 22px 20px 18px;
  border-bottom: 1px solid var(--ncd-sidebar-b);
}

.ncd-brand-name {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}

.ncd-brand-sub {
  font-size: 10.5px;
  color: var(--ncd-sidebar-m);
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-top: 3px;
}

.ncd-sidebar__profile {
  padding: 18px 20px;
  border-bottom: 1px solid var(--ncd-sidebar-b);
}

.ncd-profile-row {
  display: flex;
  align-items: center;
  gap: 11px;
}

.ncd-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: #fff; font-weight: 700;
  flex-shrink: 0; overflow: hidden;
}
.ncd-avatar__img { width: 100%; height: 100%; object-fit: cover; }

.ncd-profile-info { min-width: 0; }

.ncd-profile-name {
  font-size: 13px; font-weight: 600; color: var(--ncd-sidebar-t);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.ncd-profile-email {
  font-size: 11px; color: var(--ncd-sidebar-m);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.ncd-account-badge {
  margin-top: 10px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--ncd-sidebar-a);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.8);
  font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}

/* ── Sidebar nav ── */
.ncd-sidebar__nav {
  list-style: none;
  padding: 10px 0;
  flex: 1;
  margin: 0;
}

.ncd-nav-section-label {
  font-size: 9.5px; font-weight: 600; letter-spacing: .11em; text-transform: uppercase;
  color: var(--ncd-sidebar-m);
  padding: 10px 20px 3px;
  display: block;
}

.ncd-nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 20px;
  color: var(--ncd-sidebar-t) !important;
  font-size: 13px;
  cursor: pointer;
  border: none; background: none; width: 100%; text-align: left;
  position: relative;
  transition: background .12s;
  text-decoration: none !important;
  border-radius: 0;
}

.ncd-nav-item:hover {
  background: rgba(255,255,255,.06);
  color: #fff !important;
}

.ncd-nav-item.active {
  background: var(--ncd-sidebar-a);
  color: #fff !important;
}

.ncd-nav-item.active::before {
  content: '';
  position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 2px;
  background: rgba(255,255,255,.6);
  border-radius: 0 2px 2px 0;
}

.ncd-nav-icon {
  width: 15px; height: 15px; flex-shrink: 0; opacity: .65;
}
.ncd-nav-item.active .ncd-nav-icon { opacity: 1; }

.ncd-nav-badge {
  margin-left: auto;
  background: rgba(255,255,255,.9);
  color: var(--ncd-sidebar);
  font-size: 10px; font-weight: 700;
  min-width: 18px; padding: 1px 5px;
  border-radius: 20px; text-align: center; line-height: 16px;
}

.ncd-nav-divider {
  height: 1px;
  background: var(--ncd-sidebar-b);
  margin: 6px 0;
}

.ncd-nav-item--logout {
  color: var(--ncd-sidebar-m) !important;
  font-size: 12.5px;
}
.ncd-nav-item--logout:hover {
  color: var(--ncd-sidebar-t) !important;
}

/* ── Main area ──────────────────────────────────────────────────── */
.ncd-main {
  flex: 1;
  display: flex; flex-direction: column;
  min-height: 80vh;
  min-width: 0;
}

.ncd-topbar {
  border-bottom: 1px solid rgba(0,0,0,.1);
  padding: 0 28px;
  height: var(--ncd-h-topbar);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
  background: inherit;
}

.ncd-topbar__title { font-size: 16px; font-weight: 600; }
.ncd-topbar__actions { display: flex; align-items: center; gap: 10px; }

/* ── Buttons ────────────────────────────────────────────────────── */
.ncd-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 15px;
  border-radius: var(--ncd-radius);
  font-size: 13px; font-weight: 500;
  cursor: pointer; border: 1px solid transparent;
  transition: opacity .14s, filter .14s;
  text-decoration: none !important; line-height: 1; white-space: nowrap;
}
.ncd-btn--primary { background: var(--ncd-sidebar); color: #fff !important; }
.ncd-btn--primary:hover { filter: brightness(1.15); }

.ncd-btn--outline { background: transparent; border-color: rgba(0,0,0,.2); }
.ncd-btn--outline:hover { background: rgba(0,0,0,.04); }

.ncd-btn--warn { background: #b36200; color: #fff !important; }
.ncd-btn--warn:hover { filter: brightness(.93); }

.ncd-btn--danger-outline { border-color: #b63224; color: #b63224 !important; opacity: .8; }
.ncd-btn--danger-outline:hover { opacity: 1; }

.ncd-btn--sm { padding: 5px 11px; font-size: 12px; }
.ncd-btn--lg { padding: 11px 28px; font-size: 14px; }

/* ── Content ────────────────────────────────────────────────────── */
.ncd-content { padding: 28px; flex: 1; }

.ncd-tab-panel { display: none; }
.ncd-tab-panel.is-active { display: block; }

/* ── Attention banner ───────────────────────────────────────────── */
.ncd-banner {
  display: flex; align-items: flex-start; gap: 14px;
  border: 1px solid rgba(0,0,0,.1);
  border-left: 3px solid #b36200;
  border-radius: var(--ncd-radius);
  padding: 14px 18px;
  margin-bottom: 24px;
}
.ncd-banner__body { flex: 1; min-width: 0; }
.ncd-banner__title { font-size: 13px; font-weight: 600; color: #b36200; display: block; }
.ncd-banner__text  { font-size: 12.5px; margin-top: 2px; }

/* ── Stats row ──────────────────────────────────────────────────── */
.ncd-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.ncd-stat-tile {
  border: 1px solid rgba(0,0,0,.1);
  border-radius: var(--ncd-radius);
  padding: 16px 18px;
}

.ncd-stat-value {
  font-size: 26px; font-weight: 700; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ncd-stat-value--ok   { color: #25795a; }
.ncd-stat-value--warn { color: #b36200; }

.ncd-stat-label { font-size: 11.5px; opacity: .6; margin-top: 4px; }

/* ── Filter bar ─────────────────────────────────────────────────── */
.ncd-filter-bar {
  display: flex; align-items: center; gap: 7px;
  margin-bottom: 18px; flex-wrap: wrap;
}

.ncd-filter-pill {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12.5px; font-weight: 500;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,.15);
  background: transparent;
  transition: all .12s;
}
.ncd-filter-pill:hover { border-color: rgba(0,0,0,.35); }
.ncd-filter-pill.is-active { background: var(--ncd-sidebar); border-color: var(--ncd-sidebar); color: #fff !important; }

.ncd-pill-count {
  background: rgba(0,0,0,.1); border-radius: 20px;
  padding: 0 5px; font-size: 10.5px; margin-left: 2px;
  font-variant-numeric: tabular-nums;
}
.ncd-filter-pill.is-active .ncd-pill-count { background: rgba(255,255,255,.22); }

/* ── Events table ───────────────────────────────────────────────── */
.ncd-table {
  border: 1px solid rgba(0,0,0,.1);
  border-radius: var(--ncd-radius);
  overflow: hidden;
}

.ncd-table-head {
  display: grid;
  grid-template-columns: 1fr 152px 134px 108px;
  padding: 9px 20px;
  background: rgba(0,0,0,.03);
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.ncd-th {
  font-size: 10.5px; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; opacity: .5;
}

.ncd-row {
  display: grid;
  grid-template-columns: 1fr 152px 134px 108px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(0,0,0,.07);
  align-items: center;
  transition: background .1s;
}
.ncd-row:last-of-type { border-bottom: none; }
.ncd-row:hover { background: rgba(0,0,0,.02); }
.ncd-row.is-hidden { display: none; }

.ncd-row-title {
  font-size: 13.5px; font-weight: 600;
  margin-bottom: 2px;
}
.ncd-row-title a { color: inherit !important; text-decoration: none; }
.ncd-row-title a:hover { text-decoration: underline; }

.ncd-row-sub { font-size: 11.5px; opacity: .55; }

.ncd-date-primary { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ncd-date-sub     { font-size: 11px; opacity: .5; margin-top: 1px; }

/* ── Status badges ──────────────────────────────────────────────── */
.ncd-status-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 20px;
  font-size: 11.5px; font-weight: 500; white-space: nowrap; width: fit-content;
}
.ncd-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }

.ncd-badge-live     { background: rgba(37,121,90,.1);    color: #25795a; }
.ncd-badge-live     .ncd-dot { background: #25795a; }

.ncd-badge-pending  { background: rgba(179,98,0,.1);     color: #b36200; }
.ncd-badge-pending  .ncd-dot { background: #b36200; }

.ncd-badge-payment  { background: rgba(179,98,0,.1);     color: #b36200; border: 1px solid rgba(179,98,0,.18); }
.ncd-badge-payment  .ncd-dot { background: #b36200; }

.ncd-badge-draft    { background: rgba(0,0,0,.07);       color: inherit; opacity: .7; }
.ncd-badge-draft    .ncd-dot { background: currentColor; opacity: .4; }

.ncd-badge-rejected { background: rgba(182,50,36,.1);    color: #b63224; }
.ncd-badge-rejected .ncd-dot { background: #b63224; }

.ncd-badge-past     { background: rgba(0,0,0,.05);       color: inherit; opacity: .55; }
.ncd-badge-past     .ncd-dot { background: currentColor; opacity: .35; }

/* ── Event actions ── */
.ncd-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.ncd-action-link {
  font-size: 12px; font-weight: 500;
  background: none; border: none; padding: 0;
  cursor: pointer; text-decoration: none;
}
.ncd-action-link:hover { text-decoration: underline; }
.ncd-action-link--warn   { color: #b36200 !important; }
.ncd-action-link--danger { color: #b63224 !important; }
.ncd-action-link--danger:hover { opacity: .8; }

.ncd-action-sep { opacity: .3; font-size: 12px; user-select: none; }

/* ── Rejection note ── */
.ncd-rejection-note { padding: 0 20px 14px; margin-top: -6px; }
.ncd-rejection-note.is-hidden { display: none; }

.ncd-rejection-inner {
  padding: 9px 13px;
  background: rgba(182,50,36,.08);
  border: 1px solid rgba(182,50,36,.14);
  border-radius: 6px;
  font-size: 12px; color: #b63224; line-height: 1.5;
}
.ncd-rejection-inner strong { font-weight: 600; }

/* ── Empty state ── */
.ncd-empty-state {
  text-align: center; padding: 56px 20px; opacity: .6;
}
.ncd-empty-state p { margin-bottom: 16px; font-size: 13px; }

/* ── Section header ─────────────────────────────────────────────── */
.ncd-section-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 22px; gap: 16px;
}
.ncd-section-title { font-size: 19px; font-weight: 600; }
.ncd-section-sub   { font-size: 12.5px; opacity: .6; margin-top: 3px; }

/* ── Submit callout ─────────────────────────────────────────────── */
.ncd-callout {
  border: 1px solid rgba(0,0,0,.1);
  border-radius: var(--ncd-radius);
  padding: 48px 40px;
  text-align: center;
  max-width: 560px;
}
.ncd-callout__heading  { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.ncd-callout__body     { font-size: 13.5px; line-height: 1.7; margin-bottom: 24px; max-width: 380px; margin-inline: auto; opacity: .7; }
.ncd-callout__hint     { font-size: 11.5px; opacity: .5; margin-top: 16px; }

/* ── Cards ──────────────────────────────────────────────────────── */
.ncd-card {
  border: 1px solid rgba(0,0,0,.1);
  border-radius: var(--ncd-radius);
  padding: 22px;
}

.ncd-card__title {
  font-size: 13px; font-weight: 600;
  padding-bottom: 13px; margin-bottom: 18px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

/* ── Settings grid ── */
.ncd-settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}
.ncd-settings-right { display: flex; flex-direction: column; gap: 0; }

/* ── Forms ── */
.ncd-form-field { margin-bottom: 15px; }
.ncd-form-field:last-child { margin-bottom: 0; }

.ncd-form-label {
  display: block;
  font-size: 11.5px; font-weight: 600; opacity: .7;
  margin-bottom: 5px; letter-spacing: .02em;
}

.ncd-form-input {
  width: 100%; padding: 8px 11px;
  border: 1px solid rgba(0,0,0,.18); border-radius: 6px;
  font-family: inherit;
  font-size: 13.5px;
  background: transparent;
  transition: border-color .13s, box-shadow .13s;
  appearance: none;
}
.ncd-form-input:focus {
  outline: none;
  border-color: var(--ncd-sidebar);
  box-shadow: 0 0 0 2px rgba(27,58,90,.15);
}
.ncd-form-input--error {
  border-color: #b63224;
  box-shadow: 0 0 0 2px rgba(182,50,36,.1);
}

.ncd-field-error { font-size: 11.5px; color: #b63224; margin-top: 4px; }
.ncd-hint { font-size: 11.5px; opacity: .55; margin-top: 4px; }

/* ── Logo upload ── */
.ncd-logo-upload {
  display: flex; align-items: center; gap: 14px;
  padding: 14px;
  border: 1px dashed rgba(0,0,0,.2);
  border-radius: var(--ncd-radius);
  background: rgba(0,0,0,.02);
}

.ncd-logo-preview {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--ncd-sidebar);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff; font-weight: 700; flex-shrink: 0; overflow: hidden;
}
.ncd-logo-preview__img { width: 100%; height: 100%; object-fit: cover; }
.ncd-logo-upload__text p { font-size: 12.5px; opacity: .7; }
.ncd-logo-upload__text .ncd-hint { margin-bottom: 8px; }

.ncd-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Upgrade card ── */
.ncd-upgrade-card {
  border: 1px solid rgba(0,0,0,.1);
  border-left: 3px solid var(--ncd-sidebar);
  border-radius: var(--ncd-radius);
  padding: 20px 22px;
}
.ncd-upgrade-card--pending { border-left-color: #b36200; opacity: .85; }
.ncd-upgrade-card__title { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.ncd-upgrade-card p { font-size: 12.5px; opacity: .7; line-height: 1.6; margin-bottom: 14px; }
.ncd-upgrade-card p:last-child { margin-bottom: 0; }

/* ── Billing ────────────────────────────────────────────────────── */
.ncd-billing-wrap { max-width: 500px; display: flex; flex-direction: column; gap: 18px; }

.ncd-card-on-file {
  display: flex; align-items: center; gap: 14px;
  padding: 14px;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: var(--ncd-radius);
  background: rgba(0,0,0,.02);
  margin-bottom: 14px;
}

.ncd-card-brand-icon {
  width: 42px; height: 28px; flex-shrink: 0;
  border-radius: 4px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.ncd-card-brand-icon svg { width: 42px; }

.ncd-card-number { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .09em; }
.ncd-card-label  { font-size: 11.5px; opacity: .5; }
.ncd-card-expiry { font-size: 12.5px; font-variant-numeric: tabular-nums; opacity: .7; }

.ncd-card-actions { display: flex; gap: 10px; margin-bottom: 0; }

.ncd-secure-badge {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; opacity: .5;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,.08);
}

.ncd-no-card-notice { font-size: 13px; opacity: .7; margin-bottom: 14px; }

.ncd-pricing-row {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px; margin-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.ncd-pricing-name   { font-size: 13.5px; font-weight: 600; }
.ncd-pricing-sub    { font-size: 12px; opacity: .55; margin-top: 1px; }
.ncd-pricing-amount { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ncd-pricing-per    { font-size: 12px; font-weight: 400; opacity: .55; }
.ncd-pricing-note   { font-size: 12.5px; opacity: .7; line-height: 1.6; margin-bottom: 8px; }

/* ── Login prompt ───────────────────────────────────────────────── */
.ncd-login-prompt {
  text-align: center; padding: 60px 20px;
  max-width: 400px; margin: 0 auto;
}
.ncd-login-prompt h2 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.ncd-login-prompt p  { font-size: 13px; opacity: .7; margin-bottom: 20px; }

/* ── Toast notifications ────────────────────────────────────────── */
.ncd-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(8px);
  background: #1B3A5A; color: #fff;
  padding: 10px 18px; border-radius: 6px;
  font-size: 13px;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  opacity: 0; transition: opacity .2s, transform .2s;
  z-index: 9999; white-space: nowrap;
  pointer-events: none;
}
.ncd-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.ncd-toast--error   { background: #b63224; }
.ncd-toast--success { background: #25795a; }

/* ── Focus styles ───────────────────────────────────────────────── */
.ncd :focus-visible {
  outline: 2px solid var(--ncd-sidebar);
  outline-offset: 2px;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 800px) {
  .ncd-sidebar {
    position: fixed; inset: 0 auto 0 0;
    transform: translateX(-100%);
    transition: transform .22s cubic-bezier(.4,0,.2,1);
    box-shadow: none;
    height: 100%;
  }
  .ncd-sidebar.is-open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0,0,0,.35);
  }

  .ncd-main { margin-left: 0; }
  .ncd-topbar { display: none; }
  .ncd-content { padding: 20px 16px; }

  .ncd-stats-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  .ncd-table-head { display: none; }
  .ncd-row {
    grid-template-columns: 1fr;
    gap: 8px; padding: 14px 16px;
  }

  .ncd-settings-grid { grid-template-columns: 1fr; }
  .ncd-section-header { flex-direction: column; }
  .ncd-section-header .ncd-btn { align-self: flex-start; }
}

/* Mobile bar */
.ncd-mobile-bar {
  display: none;
  align-items: center; justify-content: space-between;
  padding: 14px 18px;
  background: var(--ncd-sidebar);
  position: sticky; top: 0; z-index: 200;
}
.ncd-mobile-bar .ncd-brand-name { font-size: 15px; }

.ncd-hamburger {
  display: flex; flex-direction: column; gap: 4px;
  cursor: pointer; padding: 4px;
  background: none; border: none;
}
.ncd-hamburger span { display: block; width: 20px; height: 2px; background: var(--ncd-sidebar-t); border-radius: 1px; }

.ncd-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.45); z-index: 99;
}
.ncd-overlay.is-visible { display: block; }

@media (max-width: 800px) {
  .ncd-mobile-bar { display: flex; }
}

/* "Editing closed" in place of Request Edit (date reached or edits used up) */
.ncd-action-muted {
	color: #6b7280;
	font-size: inherit;
	cursor: help;
	border-bottom: 1px dotted #9ca3af;
}


/* ── Classifieds additions ─────────────────────────────────────── */
.ncd { color: #333; font-size: 15px; line-height: 1.5; background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 10px; overflow: clip; }
.ncd a { color: #CC3366; }
.ncd .ncd-btn, .ncd .ncd-nav-item { font-family: Montserrat, system-ui, sans-serif; }
.ncd-section-title, .ncd-callout__heading, .ncd-topbar__title { font-family: "Playfair Display", Georgia, serif; font-weight: 400; color: #1B3A5A; margin: 0; }
.ncd-topbar__title { font-size: 20px; }
.ncd-section-sub, .ncd-callout__body, .ncd-pricing-note, .ncd-banner__text, .ncd-callout__hint { margin: 0; }
.ncd-btn { min-height: 36px; }
.ncd-btn--lg { min-height: 46px; }
.ncd-btn--primary { color: #fff !important; }
.ncd-btn--outline { color: #1B3A5A !important; }
.ncd a.ncd-btn--warn { color: #fff !important; }
.ncd-stat-value { color: #1B3A5A; font-family: Montserrat, system-ui, sans-serif; }
.ncd-stat-value--muted { color: #5b6470; }
.ncd-stat-label { opacity: 1; color: #5b6470; }
.ncd-th { opacity: 1; color: #5b6470; }
.ncd-row-sub, .ncd-date-sub { opacity: 1; color: #5b6470; }
.ncd-date-sub--warn { color: #9a5400; font-weight: 600; }
.ncd-row-title { color: #1B3A5A; }
.ncd-row-title a { color: #1B3A5A !important; }
.ncd-table-head, .ncd-row { grid-template-columns: minmax(0,1fr) 140px 150px 230px; column-gap: 16px; }
.ncd-featured { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 4px; background: #1B3A5A; color: #fff; font-family: Montserrat, system-ui, sans-serif; font-size: 10px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; vertical-align: 2px; }
.ncd-action-link { color: #1B3A5A; font-family: inherit; font-size: 13px; min-height: 32px; display: inline-flex; align-items: center; }
.ncd a.ncd-action-link { color: #1B3A5A; }
.ncd-action-link--warn, .ncd a.ncd-action-link--warn { color: #9a5400 !important; }
.ncd-badge-pending, .ncd-badge-payment { color: #8a4b00; }
.ncd-badge-payment { background: rgba(179,98,0,.12); }
.ncd-badge-expired { background: rgba(0,0,0,.06); color: #4b5563; }
.ncd-badge-expired .ncd-dot { background: #9ca3af; }
.ncd-badge-draft, .ncd-badge-past { opacity: 1; color: #4b5563; }
.ncd-banner { background: #fffaf2; }
.ncd-banner--warn .ncd-banner__icon { color: #b36200; }
.ncd-banner__title { color: #8a4b00; }
.ncd-banner--ok { background: #eef8f1; border-left-color: #25795a; }
.ncd-banner--ok .ncd-banner__title { color: #14532d; }
.ncd-empty-state { opacity: 1; color: #5b6470; }
.ncd-callout { max-width: 620px; }
.ncd-callout__body { opacity: 1; color: #4b5563; }
.ncd-plan-list { margin-top: 28px; text-align: left; border-top: 1px solid rgba(0,0,0,.08); padding-top: 16px; }
.ncd-pricing-row:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.ncd-pricing-sub, .ncd-pricing-note, .ncd-pricing-per, .ncd-hint, .ncd-secure-badge, .ncd-no-card-notice, .ncd-logo-upload__text p { opacity: 1; color: #5b6470; }
.ncd-pricing-amount { color: #1B3A5A; }
.ncd-form-label { opacity: 1; color: #1B3A5A; }
.ncd-form-input { min-height: 40px; color: #333; background: #fff; }
.ncd-card__title { margin-top: 0; color: #1B3A5A; }
.ncd-settings-right { gap: 18px; }
.ncd-billing-wrap { max-width: 720px; }
.ncd-paytable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ncd-paytable th, .ncd-paytable td { text-align: left; padding: 9px 8px; border-bottom: 1px solid rgba(0,0,0,.07); }
.ncd-paytable thead th { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #5b6470; font-weight: 600; }
.ncd-paytable tfoot th, .ncd-paytable tfoot td { border-bottom: 0; }
.ncd-num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ncd-login-prompt { text-align: center; padding: 60px 20px; max-width: 420px; margin: 0 auto; }
.ncd-sidebar { height: auto; min-height: 100%; position: relative; }
.ncd-nav-item { min-height: 40px; }
.ncd-nav-item--logout, .ncd-brand-sub, .ncd-profile-email, .ncd-nav-section-label { color: rgba(255,255,255,.72) !important; }
@media (max-width: 800px) {
  .ncd { border-radius: 0; border-left: 0; border-right: 0; }
  .ncd-sidebar { position: fixed; height: 100%; min-height: 0; }
  .ncd-row { grid-template-columns: 1fr; }
  .ncd-actions { gap: 4px 10px; }
}

/* ── Width: break out of narrow theme content columns ───────────── */
.ncd {
  width: min(1240px, calc(100vw - 32px));
  max-width: none !important;
  /* Center on the viewport without transforms (a transform would trap the mobile slide-out menu). */
  margin-left: calc(50% - min(620px, 50vw - 16px)) !important;
  margin-right: 0 !important;
}
/* Beat block themes' constrained-layout "margin: auto !important" on content children. */
body div.ncd.ncd {
  margin-left: calc(50% - min(620px, 50vw - 16px)) !important;
  margin-right: 0 !important;
  max-width: none !important;
  container-type: inline-size;
  container-name: ncd;
}
/* Layout follows the dashboard's own width, so it also works inside page builders. */
@container ncd (max-width: 1040px) {
  .ncd-table-head { display: none; }
  .ncd-row { grid-template-columns: minmax(0,1fr) auto; row-gap: 8px; }
  .ncd-title-cell { grid-column: 1 / -1; }
  .ncd-actions { grid-column: 1 / -1; }
  .ncd-stats-row { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ncd-settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  body div.ncd.ncd { width: 100vw; margin-left: calc(50% - 50vw) !important; }
}
@media (max-width: 800px) {
  .ncd-sidebar { z-index: 1001; }
  .ncd-overlay { z-index: 1000; }
  .ncd-mobile-bar { z-index: 50; }
}
