body {
  background: #ffffff;
}
/* ============================================================
   NoShow — Booking Dashboard
   Light glassmorphism · Animated card entrance · Clean modal
   ============================================================ */

/* ── CSS custom properties ── */
.ndp-wrap {
  --ndp-brand: #0f766e;
  --ndp-brand-lt: #f0fdfa;
  --ndp-blue: #3b82f6;
  --ndp-green: #16a34a;
  --ndp-red: #dc2626;
  --ndp-amber: #d97706;
  --ndp-purple: #7c3aed;
  --ndp-indigo: #4f46e5;
  --ndp-pink: #db2777;
  --ndp-orange: #ea580c;
  --ndp-text: #0f172a;
  --ndp-text-2: #334155;
  --ndp-muted: #64748b;
  --ndp-muted-lt: #94a3b8;
  --ndp-divider: rgba(15, 23, 42, 0.06);
  --ndp-glass: #ffffff;
  --ndp-glass-bd: rgba(15, 23, 42, 0.08);
  --ndp-glass-sh: 0 4px 20px rgba(15, 23, 42, 0.07), 0 1px 4px rgba(15, 23, 42, 0.04);
  --ndp-r: 14px;
  --ndp-tr: 0.18s ease;
  --ndp-font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  font-family: var(--ndp-font);
  color: var(--ndp-text);
  padding-top: 6px;
}

.ndp-wrap * {
  box-sizing: border-box;
}

/* ── Entrance animation ── */
@keyframes ndpSlideUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Page header ── */
.ndp-page-header {
  margin-bottom: 24px;
  animation: ndpSlideUp 0.35s ease backwards;
}

.ndp-page-header h1 {
  margin: 0 0 2px;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ndp-text);
  letter-spacing: -0.025em;
}

.ndp-page-header p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ndp-muted);
}

/* ── Stat cards ── */
.ndp-stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

/* ── CHANGE 1: Chevron arrows on stat cards (from Doc 9) ── */
.ndp-stat-card {
  background: var(--ndp-glass);
  border: 1px solid var(--ndp-glass-bd);
  border-radius: 16px;
  box-shadow: var(--ndp-glass-sh);
  padding: 25px 22px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  transition:
    transform var(--ndp-tr),
    box-shadow var(--ndp-tr),
    outline var(--ndp-tr);
  cursor: pointer;
  text-decoration: none !important;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.ndp-stat-card::after {
  content: "›";
  position: absolute;
  right: 24px;
  top: 58%;
  transform: translateY(-50%);
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  pointer-events: none;
}

.ndp-stat-card--blue::after {
  color: #218aff;
}
.ndp-stat-card--green::after {
  color: #16a34a;
}
.ndp-stat-card--red::after {
  color: #dc2626;
}
.ndp-stat-card--teal::after {
  color: #0f766e;
}

.ndp-stat-card:hover,
.ndp-stat-card:active {
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  transform: translateY(-1px);
  border-color: transparent;
  text-decoration: none !important;
  color: inherit;
}

.ndp-stat-card--blue:hover,
.ndp-stat-card--blue.is-active {
  border-color: #3b82f6;
}

.ndp-stat-card--green:hover,
.ndp-stat-card--green.is-active {
  border-color: #16a34a;
}

.ndp-stat-card--red:hover,
.ndp-stat-card--red.is-active {
  border-color: #dc2626;
}

.ndp-stat-card--teal:hover,
.ndp-stat-card--teal.is-active {
  border-color: #0f766e;
}

.ndp-stat-card * {
  text-decoration: none !important;
}

.ndp-stat-card.is-active {
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

.ndp-stat-card--blue.is-active {
  outline-color: #3b82f6;
}
.ndp-stat-card--green.is-active {
  outline-color: #16a34a;
}
.ndp-stat-card--red.is-active {
  outline-color: #dc2626;
}
.ndp-stat-card--teal.is-active {
  outline-color: #0f766e;
}

/* Staggered entrance */
.ndp-stat-card:nth-child(1) {
  animation: ndpSlideUp 0.4s ease 0.05s backwards;
}
.ndp-stat-card:nth-child(2) {
  animation: ndpSlideUp 0.4s ease 0.1s backwards;
}
.ndp-stat-card:nth-child(3) {
  animation: ndpSlideUp 0.4s ease 0.15s backwards;
}
.ndp-stat-card:nth-child(4) {
  animation: ndpSlideUp 0.4s ease 0.2s backwards;
}

.ndp-stat-card--blue {
  border: 2px solid #cbe3fe;
}
.ndp-stat-card--green {
  border: 2px solid #c2f2d5;
}
.ndp-stat-card--red {
  border: 2px solid rgba(239, 68, 68, 0.22);
}
.ndp-stat-card--teal {
  border: 2px solid rgba(20, 184, 166, 0.22);
}

.ndp-stat-icon {
  width: 35px;
  height: 35px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ndp-stat-icon .dashicons {
  font-size: 26px;
  width: 26px;
  height: 26px;
  line-height: 26px;
}

.ndp-stat-card--blue .ndp-stat-icon {
  background: rgba(59, 130, 246, 0.1);
  color: #218aff;
}
.ndp-stat-card--green .ndp-stat-icon {
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
}
.ndp-stat-card--red .ndp-stat-icon {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}
.ndp-stat-card--teal .ndp-stat-icon {
  background: rgba(20, 184, 166, 0.1);
  color: #14b8a6;
}

.ndp-stat-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 2px;
}

.ndp-stat-body span {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ndp-muted);
}

.ndp-stat-body strong {
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}

.ndp-stat-card--blue .ndp-stat-body strong {
  color: #218aff;
}
.ndp-stat-card--green .ndp-stat-body strong {
  color: #16a34a;
}
.ndp-stat-card--red .ndp-stat-body strong {
  color: #dc2626;
}
.ndp-stat-card--teal .ndp-stat-body strong {
  color: #0f766e;
}

.ndp-stat-sub {
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: var(--ndp-muted) !important;
  opacity: 0.85;
  margin-top: -2px;
}

/* ── Upsell banner ── */
.ndp-upsell-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  background: #ffffff;
  border: 1.5px solid rgba(15, 118, 110, 0.2);
  border-radius: 0px;
  box-shadow: var(--ndp-glass-sh);
  padding: 22px 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  animation: ndpSlideUp 0.4s ease 0.08s backwards;
  position: relative;
  overflow: hidden;
}

.ndp-upsell-left {
  flex: 1;
  min-width: 260px;
  position: relative;
  z-index: 1;
}
.ndp-upsell-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.ndp-upsell-heading-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.ndp-upsell-pill {
  background: linear-gradient(135deg, #0f766e, #0d9488);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(15, 118, 110, 0.3);
}

.ndp-upsell-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ndp-text);
  letter-spacing: -0.01em;
}

.ndp-upsell-sub {
  margin: 0 0 14px;
  font-size: 0.78rem;
  color: var(--ndp-muted);
  line-height: 1.5;
}

.ndp-upsell-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ndp-upsell-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--ndp-text-2);
  font-weight: 500;
  line-height: 1.4;
}

.ndp-upsell-feature-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 1px;
}

.ndp-upsell-feature-icon--green {
  background: #dcfce7;
}
.ndp-upsell-feature-icon--blue {
  background: #dbeafe;
}
.ndp-upsell-feature-icon--teal {
  background: #ccfbf1;
}
.ndp-upsell-feature-icon--purple {
  background: #ede9fe;
}
.ndp-upsell-feature-icon--orange {
  background: #fff7ed;
}

.ndp-upsell-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #0f766e, #0d9488);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.35);
  transition: all var(--ndp-tr);
  letter-spacing: -0.01em;
}

.ndp-upsell-cta-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.45);
  color: #fff;
}

.ndp-upsell-cta-arrow {
  font-size: 1rem;
  transition: transform var(--ndp-tr);
}
.ndp-upsell-cta-btn:hover .ndp-upsell-cta-arrow {
  transform: translateX(3px);
}

.ndp-upsell-cta-sub {
  margin: 0;
  font-size: 0.7rem;
  color: var(--ndp-muted-lt);
  text-align: center;
}

/* ── Notices ── */
.ndp-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 16px;
  animation: ndpSlideUp 0.3s ease backwards;
}

.ndp-notice--success {
  background: rgba(240, 253, 244, 0.9);
  border: 1px solid #bbf7d0;
  color: #15803d;
}
.ndp-notice--error {
  background: rgba(254, 242, 242, 0.9);
  border: 1px solid #fecaca;
  color: #b91c1c;
}

/* ── Button primitives ── */
.ndp-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 9px;
  font-family: var(--ndp-font);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--ndp-tr);
  white-space: nowrap;
}

/* ── CHANGE 2: Green color scheme on primary button (from Doc 9) ── */
.ndp-btn--primary {
  background: #16a34a;
  color: #fff;
  box-shadow: none;
}
.ndp-btn--primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  color: #fff;
}
.ndp-btn--primary:active {
  transform: translateY(0);
}

.ndp-btn--ghost {
  background: #f8fafc;
  color: var(--ndp-muted);
  border: 1px solid rgba(15, 23, 42, 0.12);
}
.ndp-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ndp-text);
}

.ndp-btn--sm {
  padding: 7px 14px;
  font-size: 0.75rem;
}

/* ── Filter section ── */
.ndp-filter-section {
  background: var(--ndp-glass);
  border: 0;
  border-radius: var(--ndp-r);
  box-shadow: 0;
  padding: 16px 20px 20px;
  margin-bottom: 16px;
  animation: ndpSlideUp 0.4s ease 0.12s backwards;
}

.ndp-filter-row {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.ndp-all-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 10px;
  border: 2px solid #dddddd;
  border-radius: 9px;
  color: var(--ndp-muted);
  font-family: var(--ndp-font);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--ndp-tr);
}

.ndp-all-label:hover {
  border-color: var(--ndp-brand);
  color: var(--ndp-brand);
}

.ndp-all-label.is-active {
  border-color: var(--ndp-brand);
  background: 0;
  color: var(--ndp-brand);
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.12);
}

.ndp-filter-form {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
  flex-wrap: wrap;
}

.ndp-search-box {
  position: relative;
  flex: 1;
  min-width: 240px;
}

.ndp-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ndp-muted-lt);
  pointer-events: none;
  font-size: 18px;
  width: 18px;
  height: 18px;
}

.ndp-search-box input[type="search"] {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 36px;
  border: 2px solid #dddddd;
  border-radius: 9px;
  font-family: var(--ndp-font);
  font-size: 0.82rem;
  color: var(--ndp-text);
  background: #ffffff;
  outline: none;
  transition:
    border-color var(--ndp-tr),
    box-shadow var(--ndp-tr),
    background var(--ndp-tr);
}

.ndp-search-box input[type="search"]:focus {
  border-color: var(--ndp-brand);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
  background: rgba(255, 255, 255, 0.95);
}

/* ── Date pills ── */
.ndp-date-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 40px;
  padding: 0 12px;
  border: 2px solid #dddddd;
  border-radius: 9px;
  background: #ffffff;
  transition:
    border-color var(--ndp-tr),
    box-shadow var(--ndp-tr);
}

.ndp-date-pill:focus-within {
  border-color: var(--ndp-brand);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
  background: rgba(255, 255, 255, 0.95);
}

.ndp-date-pill-icon {
  color: var(--ndp-muted-lt);
  flex-shrink: 0;
  font-size: 15px;
  width: 15px;
  height: 15px;
}

.ndp-date-pill .flatpickr-wrapper {
  display: contents;
}

.ndp-date-pill input[type="text"] {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  font-family: var(--ndp-font);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ndp-text);
  outline: none;
  width: 82px;
  cursor: pointer;
  padding: 0 !important;
  margin: 0;
  min-height: 0 !important;
  height: auto !important;
  line-height: normal;
}

.ndp-date-between {
  color: var(--ndp-muted-lt);
  font-size: 0.9rem;
  font-weight: 500;
  flex-shrink: 0;
  line-height: 1;
}

/* ── Table card ── */
.ndp-table-card {
  background: var(--ndp-glass);
  border: 1px solid var(--ndp-glass-bd);
  border-radius: var(--ndp-r);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  animation: ndpSlideUp 0.4s ease 0.18s backwards;
}

.ndp-table-wrap {
  overflow-x: auto;
}

.ndp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  table-layout: fixed;
}

.ndp-table thead th {
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ndp-muted);
  text-align: center;
  white-space: nowrap;
}

.ndp-table tbody td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.035);
  color: var(--ndp-text-2);
  vertical-align: middle;
  background: transparent;
  text-align: center;
}

.ndp-table tbody td:nth-child(2),
.ndp-table thead th:nth-child(2) {
  text-align: left;
}

.ndp-table tbody tr:last-child td {
  border-bottom: none;
}

.ndp-table tbody tr {
  transition: background var(--ndp-tr);
}

.ndp-table tbody tr:hover td {
  background: #f8fafc;
}

/* ── Sr. No. column ── */
.ndp-th-sr {
  width: 44px;
  text-align: center !important;
}

.ndp-td-sr {
  text-align: center;
  width: 44px;
}

.ndp-sr-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--ndp-muted);
  letter-spacing: 0;
}

/* ── Customer cell ── */
.ndp-customer {
  display: flex;
  align-items: center;
  gap: 11px;
}

.ndp-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  flex-shrink: 0;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}

.ndp-avatar--blue {
  background: #dbeafe;
  color: #1d4ed8;
}
.ndp-avatar--teal {
  background: #ccfbf1;
  color: #0f766e;
}
.ndp-avatar--purple {
  background: #ede9fe;
  color: #6d28d9;
}
.ndp-avatar--orange {
  background: #ffedd5;
  color: #c2410c;
}
.ndp-avatar--red {
  background: #fee2e2;
  color: #b91c1c;
}
.ndp-avatar--indigo {
  background: #e0e7ff;
  color: #4338ca;
}
.ndp-avatar--green {
  background: #dcfce7;
  color: #15803d;
}
.ndp-avatar--pink {
  background: #fce7f3;
  color: #be185d;
}

.ndp-customer-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ndp-customer-info strong,
.ndp-customer-name {
  font-weight: 700;
  color: var(--ndp-text);
  font-size: 0.84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  display: block;
}

.ndp-customer-email {
  font-size: 0.72rem;
  color: var(--ndp-muted);
  display: block;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.ndp-refund-req-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 3px;
  padding: 2px 7px;
  background: #fff7ed;
  border: 1px solid #fcd34d;
  border-radius: 20px;
  font-size: 0.64rem;
  font-weight: 800;
  color: #b45309;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ── Table cell helpers ── */
.ndp-service {
  font-weight: 600;
  color: var(--ndp-text);
  max-width: 160px;
}

.ndp-date {
  display: block;
  font-weight: 600;
  color: var(--ndp-text);
  font-size: 0.82rem;
}

.ndp-time {
  display: block;
  font-size: 0.72rem;
  color: var(--ndp-muted);
  margin-top: 1px;
}

.ndp-money {
  font-weight: 600;
  color: var(--ndp-text);
  white-space: nowrap;
}

/* ── CHANGE 3: Distinct money column colors (from Doc 9) ── */
.ndp-total {
  color: #3474ff !important;
}
.ndp-deposit {
  color: #7a8400 !important;
}
.ndp-collect {
  color: #0c9c00 !important;
}

.ndp-muted {
  color: var(--ndp-muted-lt);
}

/* ── Status badges ── */
.ndp-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.ndp-badge--confirmed {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}
.ndp-badge--completed {
  background: #ede9fe;
  color: #5b21b6;
  border: 1px solid #ddd6fe;
}
.ndp-badge--partial {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}
.ndp-badge--refunded {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.ndp-badge--requested {
  background: #fff7ed;
  color: #b45309;
  border: 1px solid #fcd34d;
  animation: ndpPulse 2s ease infinite;
}

@keyframes ndpPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(180, 83, 9, 0.3);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(180, 83, 9, 0);
  }
}

/* ── Action dropdown ── */
.ndp-action-wrap {
  position: relative;
  display: inline-block;
}

.ndp-action-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1.5px solid transparent;
  border-radius: 9px;
  background: #f8fafc;
  cursor: pointer;
  color: var(--ndp-muted);
  transition: all var(--ndp-tr);
}

.ndp-action-trigger:hover,
.ndp-action-wrap.is-open .ndp-action-trigger {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(15, 23, 42, 0.14);
  color: var(--ndp-text);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

.ndp-dots,
.ndp-dots::before,
.ndp-dots::after {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.ndp-dots {
  position: relative;
}

.ndp-dots::before,
.ndp-dots::after {
  content: "";
  position: absolute;
  left: 0;
}

.ndp-dots::before {
  top: -7px;
}
.ndp-dots::after {
  top: 7px;
}

.ndp-action-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 168px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  box-shadow:
    0 10px 40px rgba(15, 23, 42, 0.14),
    0 3px 10px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  z-index: 9999;
  padding: 5px;
  overflow: hidden;
}

.ndp-action-wrap.is-open .ndp-action-menu {
  display: block;
  animation: ndpDropIn 0.2s cubic-bezier(0.34, 1.3, 0.64, 1);
}

@keyframes ndpDropIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ndp-menu-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--ndp-text-2);
  font-family: var(--ndp-font);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition:
    background var(--ndp-tr),
    color var(--ndp-tr);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.2;
}

.ndp-menu-item:hover {
  background: #f8fafc;
  color: var(--ndp-text);
}

.ndp-menu-item .dashicons {
  font-size: 15px;
  width: 15px;
  height: 15px;
  line-height: 15px;
  flex-shrink: 0;
}

.ndp-menu-item--success {
  color: #15803d;
}
.ndp-menu-item--success:hover {
  background: #f0fdf4;
  color: #16a34a;
}
.ndp-menu-item--danger {
  color: #b91c1c;
}
.ndp-menu-item--danger:hover {
  background: #fef2f2;
  color: #dc2626;
}
.ndp-menu-item--disabled {
  color: var(--ndp-muted-lt);
  cursor: default;
  opacity: 0.55;
}
.ndp-menu-item--disabled:hover {
  background: transparent;
  color: var(--ndp-muted-lt);
}

.ndp-menu-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 4px 0;
}

.ndp-action-menu form {
  display: block;
}

/* ── Empty state ── */
.ndp-empty-state {
  padding: 64px 24px;
  text-align: center;
}

.ndp-empty-state .dashicons {
  font-size: 48px;
  width: 48px;
  height: 48px;
  color: var(--ndp-muted-lt);
  display: block;
  margin: 0 auto 16px;
}

.ndp-empty-state h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ndp-text);
}
.ndp-empty-state p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ndp-muted);
}

/* ── Pagination ── */
.ndp-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.4);
  flex-wrap: wrap;
}

.ndp-pagination-info {
  font-size: 0.78rem;
  color: var(--ndp-muted);
  font-weight: 600;
}

.ndp-page-buttons {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.ndp-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--ndp-text-2);
  font-family: var(--ndp-font);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--ndp-tr);
}

.ndp-page-btn:hover {
  border-color: var(--ndp-brand);
  color: var(--ndp-brand);
  background: rgba(240, 253, 250, 0.9);
  transform: translateY(-1px);
}

/* ── CHANGE 4: Green on active pagination (from Doc 9) ── */
.ndp-page-btn.is-current {
  background: #16a34a;
  border-color: transparent;
  color: #fff;
  box-shadow: none;
}

.ndp-page-btn.is-disabled {
  opacity: 0.25;
  pointer-events: none;
  cursor: default;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  color: #0f172a;
}

.ndp-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 36px;
  color: var(--ndp-muted-lt);
  font-size: 0.82rem;
}

/* ── View Modal ── */
.ndp-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ndp-modal-overlay.is-open {
  display: flex;
  animation: ndpBackdropIn 0.2s ease;
}

@keyframes ndpBackdropIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.ndp-modal {
  background: #ffffff;
  border-radius: 20px;
  box-shadow:
    0 32px 80px rgba(15, 23, 42, 0.28),
    0 8px 24px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  animation: ndpModalIn 0.28s cubic-bezier(0.34, 1.4, 0.64, 1);
}

@keyframes ndpModalIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.ndp-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 18px;
  background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.ndp-modal-header h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ndp-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ndp-modal-header h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  background: linear-gradient(180deg, #0f766e, #0ea5e9);
  border-radius: 4px;
}

.ndp-modal-close {
  background: rgba(15, 23, 42, 0.06);
  border: none;
  cursor: pointer;
  color: var(--ndp-muted);
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background var(--ndp-tr),
    color var(--ndp-tr),
    transform var(--ndp-tr);
}

.ndp-modal-close:hover {
  background: rgba(15, 23, 42, 0.12);
  color: var(--ndp-text);
  transform: rotate(90deg);
}

.ndp-modal-close .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
  line-height: 18px;
}

.ndp-modal-body {
  padding: 4px 0 8px;
}

.ndp-modal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 24px;
  border-bottom: 1px solid #f8fafc;
  gap: 24px;
  transition: background var(--ndp-tr);
}

.ndp-modal-row:last-child {
  border-bottom: none;
}
.ndp-modal-row:hover {
  background: #f8fffe;
}

.ndp-modal-row span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ndp-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
}

.ndp-modal-row strong {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ndp-text);
  text-align: right;
  word-break: break-word;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .ndp-stat-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ndp-wrap {
    padding: 16px 14px 28px;
    border-radius: 14px;
  }
  .ndp-page-header h1 {
    font-size: 1.4rem;
  }
  .ndp-stat-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .ndp-filter-row {
    flex-direction: column;
    align-items: stretch;
  }
  .ndp-search-box {
    min-width: 0;
  }
  .ndp-date-pill {
    height: auto;
    padding: 8px 12px;
  }
  .ndp-date-pill input[type="text"] {
    width: auto;
    min-width: 70px;
  }
  .ndp-actions {
    flex-wrap: wrap;
  }
  .ndp-pagination {
    flex-direction: column;
    align-items: flex-start;
  }
  .ndp-customer-info strong {
    max-width: 140px;
  }
}

@media (max-width: 480px) {
  .ndp-stat-cards {
    grid-template-columns: 1fr;
  }
  .ndp-modal {
    border-radius: 14px;
  }
}

/* ── Flatpickr — full custom styles (no CDN CSS loaded) ── */
.flatpickr-calendar {
  font-family:
    "Montserrat",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 0.8rem;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  box-shadow:
    0 8px 30px rgba(15, 23, 42, 0.12),
    0 2px 8px rgba(15, 23, 42, 0.05);
  padding: 12px;
  width: 268px;
  opacity: 0;
  display: none;
  visibility: hidden;
  text-align: center;
  animation: none;
  direction: ltr;
  line-height: 24px;
  position: absolute;
  touch-action: manipulation;
  box-sizing: border-box;
}

.flatpickr-calendar.open,
.flatpickr-calendar.inline {
  opacity: 1;
  visibility: visible;
  display: block;
  z-index: 99999;
}

.flatpickr-calendar.arrowTop::before,
.flatpickr-calendar.arrowTop::after {
  border-bottom-color: #ffffff;
}

.flatpickr-calendar::before,
.flatpickr-calendar::after {
  position: absolute;
  display: block;
  pointer-events: none;
  border: solid transparent;
  content: "";
  height: 0;
  width: 0;
  left: 22px;
}

.flatpickr-calendar.arrowTop::before {
  border-width: 5px;
  margin: 0 -5px;
  top: -10px;
  border-bottom-color: rgba(15, 23, 42, 0.1);
}

.flatpickr-calendar.arrowTop::after {
  border-width: 4px;
  margin: 0 -4px;
  top: -8px;
  border-bottom-color: #ffffff;
}

.flatpickr-calendar.arrowBottom::before {
  border-width: 5px;
  margin: 0 -5px;
  bottom: -10px;
  border-top-color: rgba(15, 23, 42, 0.1);
}

.flatpickr-calendar.arrowBottom::after {
  border-width: 4px;
  margin: 0 -4px;
  bottom: -8px;
  border-top-color: #ffffff;
}

.flatpickr-wrapper {
  position: relative;
  display: inline-block;
}

.flatpickr-months {
  display: flex;
  align-items: center;
  padding-bottom: 10px;
}

.flatpickr-month {
  background: transparent;
  color: #0f172a;
  fill: #0f172a;
  height: 28px;
  line-height: 1;
  text-align: center;
  position: relative;
  user-select: none;
  overflow: hidden;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flatpickr-prev-month,
.flatpickr-next-month {
  text-decoration: none;
  cursor: pointer;
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #64748b;
  fill: #64748b;
  padding: 0;
  transition:
    background 0.15s,
    color 0.15s;
  flex-shrink: 0;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
  background: #f0fdfa;
  color: #0f766e;
  fill: #0f766e;
}

.flatpickr-prev-month svg,
.flatpickr-next-month svg {
  width: 14px;
  height: 14px;
}

.flatpickr-current-month {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  line-height: 1;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: #0f172a;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 0 2px;
  appearance: none;
  -webkit-appearance: none;
}

.flatpickr-current-month .numInputWrapper {
  display: inline-flex;
  align-items: center;
}

.flatpickr-current-month input.cur-year {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: #0f172a;
  background: transparent;
  border: none;
  outline: none;
  padding: 0 2px;
  width: 52px;
  cursor: default;
}

.numInputWrapper {
  position: relative;
  display: inline-block;
}
.numInputWrapper span {
  display: none;
}

.flatpickr-weekdays {
  background: transparent;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  padding-bottom: 6px;
  margin-bottom: 4px;
}

.flatpickr-weekdaycontainer {
  display: flex;
  flex: 1;
}

span.flatpickr-weekday {
  font-family: "Montserrat", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: transparent;
  flex: 1;
  text-align: center;
  line-height: 1;
  cursor: default;
}

.flatpickr-days {
  width: 100%;
  display: flex;
}

.dayContainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}

.flatpickr-day {
  font-family: "Montserrat", sans-serif;
  font-size: 0.78rem;
  color: #0f172a;
  background: transparent;
  border: none;
  border-radius: 8px;
  width: 14.2857%;
  max-width: 34px;
  height: 34px;
  line-height: 34px;
  text-align: center;
  cursor: pointer;
  display: inline-block;
  box-sizing: border-box;
  transition:
    background 0.12s,
    color 0.12s;
}

.flatpickr-day:hover {
  background: #f0fdfa;
  color: #0f766e;
}

.flatpickr-day.today {
  border: 2px solid #0f766e;
  color: #0f766e;
  font-weight: 600;
  line-height: 30px;
}

.flatpickr-day.today:hover {
  background: #f0fdfa;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange,
.flatpickr-day.endRange:hover {
  background: #0f766e;
  color: #ffffff;
  font-weight: 600;
  border-color: #0f766e;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  color: #cbd5e1;
  background: transparent;
  cursor: default;
  border: none;
}

.flatpickr-day.inRange {
  background: #f0fdfa;
  color: #0f766e;
  border-radius: 0;
  border: none;
}

.flatpickr-innerContainer {
  display: flex;
  box-sizing: border-box;
  overflow: hidden;
}
.flatpickr-rContainer {
  display: inline-block;
  padding: 0;
  box-sizing: border-box;
  width: 100%;
}
