/* ============================================================================
 * Nguyano Escrow Manager FRONTEND FRAMEWORK
 * ============================================================================
 * Author: Nguyano
 * Version: 1.0.0
 * @package Nguyano_Escrow_Manager
 */

/* ============================================================================
 * 1.0  GLOBAL LAYOUT & CONTAINERS
 * ============================================================================ */

/* Shared state utility used by hidden dialog payloads and transient controls. */
.ngesc-hidden,
.ngesc-hide {
  display: none !important;
}

/* ----------------------------------------------------------------------------
 * 1.1  App Shell
 * ---------------------------------------------------------------------------- */

.ngesc-app {
  display: flex;
  min-height: auto;
  background: var(--ngesc-bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  /*box-shadow: var(--ngesc-shadow);*/
  border: 1px solid #d1dbe0;
  border-radius: 8px;
}

.ngesc-front-wrapper {
  min-height: 100vh;
  height: auto;
  width: 100%;
  background: #ffffff;
}

.ngesc-front-wrapper.ngesc-front-width-wide {
  position: relative;
  left: 50%;
  right: 50%;
  width: calc(100vw - 10px);
  max-width: calc(100vw - 10px);
  margin-left: calc(-50vw + 5px) !important;
  margin-right: calc(-50vw + 5px) !important;
}

.ngesc-front-wrapper.ngesc-front-width-wide .ngesc-app,
.ngesc-front-wrapper.ngesc-front-width-wide .ngesc-guest-container {
  width: 100%;
  max-width: none;
}

.ngesc-front-wrapper.ngesc-front-width-wide .ngesc-app {
  border-left: 0;
  border-right: 0;
  border-radius: 0;
}

.ngesc-front-wrapper {
	font-size: 13px;
	font-family: var(--ngesc-font-sans);
}

.ngesc-front-wrapper h1,
.ngesc-front-wrapper h2,
.ngesc-front-wrapper h3,
.ngesc-front-wrapper h4,
.ngesc-front-wrapper h5 {
	font-family: var(--ngesc-font-sans);
}

.ngesc-front-wrapper h3, {
	font-size: var(--ngesc-text-2xl);
}

.ngesc-front-wrapper h4, {
	font-size: var(--ngesc-text-xl);
}

/* ----------------------------------------------------------------------------
 * 1.1.1  Email Verification Landing
 * ---------------------------------------------------------------------------- */

.ngesc-verify-page {
  margin: 0;
  background: #f6f8fb;
}

.ngesc-verify-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 20px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(20, 184, 166, 0.06)),
    #f8fafc;
}

.ngesc-verify-card {
  width: min(520px, 100%);
  padding: 36px;
  border: 1px solid var(--ngesc-border, #e2e8f0);
  border-radius: 16px;
  background: #ffffff;
  color: var(--ngesc-text, #111827);
  text-align: center;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

.ngesc-verify-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border-radius: 18px;
  font-size: 32px;
}

.ngesc-verify-success .ngesc-verify-icon {
  background: #ecfdf5;
  color: #16a34a;
}

.ngesc-verify-error .ngesc-verify-icon {
  background: #fef2f2;
  color: #dc2626;
}

.ngesc-verify-card h2 {
  margin: 0 0 10px;
  color: var(--ngesc-text, #111827);
  font-size: 28px;
  line-height: 1.2;
}

.ngesc-verify-card p {
  margin: 0;
  color: var(--ngesc-muted, #64748b);
  font-size: 15px;
  line-height: 1.55;
}

.ngesc-verify-resend-status {
  min-height: 22px;
  margin-top: 14px !important;
  font-size: 13px !important;
  font-weight: 600;
}

.ngesc-verify-resend-status.is-success {
  color: #15803d;
}

.ngesc-verify-resend-status.is-error {
  color: #b91c1c;
}

.ngesc-verify-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

@media (max-width: 520px) {
  .ngesc-verify-card {
    padding: 28px 20px;
  }

  .ngesc-verify-actions .ngesc-btn {
    width: 100%;
    justify-content: center;
  }
}


/* ----------------------------------------------------------------------------
 * 1.2  Page Title Bar
 * ---------------------------------------------------------------------------- */

.ngesc-content-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  font-weight: 600;
  color: var(--ngesc-text);
}

.ngesc-page-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--ngesc-text);
}

.ngesc-title-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

/* ----------------------------------------------------------------------------
 * 1.3  Loaders
 * ---------------------------------------------------------------------------- */

.ngesc-pub-loader{
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  z-index: 100000;
  font-size: 14px;
  color: var(--ngesc-primary);
  height: 45px;
  width: 180px;
  margin: auto;
  border-radius: var(--ngesc-radius-pill);
}

/* Elements that need position: relative to anchor the absolute loader */
.ngesc-main,
.ngesc-chart-wrapper,
.ngesc-card,
.ngesc-admin-card,
.ngesc-admin-card-body,
.ngesc-section {
  position: relative;
}

.ngesc-pub-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
}

.ngesc-pub-loader.ngesc-hide {
    display: none !important;
}

.ngesc-pub-spinner {
    display: inline-block;
    width: 28px;
    height: 28px;
    border: 3px solid rgba(0, 0, 0, 0.08);
    border-top-color: var(--ngesc-primary-color, #0A66FF);
    border-radius: 50%;
    flex-shrink: 0;
    animation: ngesc-spin 0.7s linear infinite;
}

.ngesc-pub-loader-text {
    font-size: 13px;
    color: var(--ngesc-primary-color, #0A66FF);
    letter-spacing: 0.02em;
}

@keyframes ngesc-spin {
    to { transform: rotate(360deg); }
}

/* ----------------------------------------------------------------------------
 * 1.4  Auth System
 * ---------------------------------------------------------------------------- */

.ngesc-auth-view {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 120px);
  padding: 20px;
  box-sizing: border-box;
}

.ngesc-login-inner {
  width: 100%;
}

.ngesc-signup-inner {
  width: 960px;
  border-radius: var(--ngesc-radius-lg);
  margin: auto;
  box-shadow: var(--ngesc-shadow-lg);
}

.ngesc-guest-wrapper,
.ngesc-auth-layout {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ngesc-bg-dark);
  padding: 32px;
  box-sizing: border-box;
}

.ngesc-auth-card {
  display: flex;
  width: 100%;
  max-width: 1080px;
  min-height: 400px;
  background: var(--ngesc-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--ngesc-shadow);
  margin: auto;
  height: 410px;
}

.ngesc-auth-aside {
  flex: 1.05;
  background: var(--ngesc-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 72px 56px;
  box-sizing: border-box;
  flex-direction: column;
}

.ngesc-auth-aside > * {
  display: block;
  width: 100%;
  max-width: 420px;
}

.ngesc-auth-aside h2 {
  color: var(--ngesc-bg);
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.ngesc-auth-aside p {
  color: var(--ngesc-bg);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 360px;
  opacity: 0.95;
}

.ngesc-auth-main {
  flex: 1;
  padding: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.ngesc-auth-title {
  font-size: 24px;
  font-weight: 600;
  color: #3f3f3f;
  margin-bottom: 28px;
}

.ngesc-auth-meta {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #444;
  gap: 12px;
  flex-wrap: wrap;
}

.ngesc-pass-reset-form{
  min-width: 480px;
  width: 480px;
  padding: 30px;
  margin: auto;
  margin-top: auto;
  border-radius: var(--ngesc-radius-lg);
  margin-top: 150px;
  box-shadow: var(--ngesc-shadow-lg);

}
/* Show/Hide Password Toggless styles*/

/* Password field wrapper */
.ngesc-pass-field {
	position: relative;
}

/* Input padding so text never overlaps icon */
.ngesc-pass-field input[type="password"],
.ngesc-pass-field input[type="text"] {
	padding-right: 2.6rem;
}

/* Toggle button */
.ngesc-pass-toggle {
	position: absolute;
	right: 1.2rem;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	width: 1.2rem;
	height: 1.2rem;
	color: #666;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Hover effect */
.ngesc-pass-toggle:hover {
	color: #111;
}

/* Password strength meter */
.ngesc-password-strength {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--ngesc-text-muted, #64748b);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: var(--ngesc-radius);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.ngesc-password-strength__bar {
  position: relative;
  width: 100%;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.68) 1px, transparent 1px) 0 0 / 20% 100%,
    #e5e7eb;
}

.ngesc-password-strength__bar span {
  display: block;
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ef4444, #dc2626);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22) inset;
  transition: width 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.ngesc-password-strength[data-score="1"] .ngesc-password-strength__bar span {
  background: linear-gradient(90deg, #f97316, #ea580c);
}

.ngesc-password-strength[data-score="2"] .ngesc-password-strength__bar span {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.ngesc-password-strength[data-score="3"] .ngesc-password-strength__bar span {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.ngesc-password-strength[data-score="4"] .ngesc-password-strength__bar span {
  background: linear-gradient(90deg, #34d399, #15803d);
  box-shadow: 0 0 14px rgba(21, 128, 61, 0.2);
}

.ngesc-password-strength__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  line-height: 1.35;
  min-width: 0;
}

.ngesc-password-strength__label {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 9px;
  font-weight: 700;
  color: #991b1b;
  background: rgba(220, 38, 38, 0.1);
  border-radius: 999px;
  white-space: nowrap;
}

.ngesc-password-strength[data-status="invalid"] .ngesc-password-strength__label {
  color: #991b1b;
  background: rgba(220, 38, 38, 0.1);
}

.ngesc-password-strength[data-status="valid"] .ngesc-password-strength__label {
  color: #15803d;
  background: rgba(21, 128, 61, 0.1);
}

.ngesc-password-strength__rule {
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ngesc-front-wrapper .ngesc-auth-card--landing .ngesc-password-strength {
  margin-top: 6px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.92);
}

@media (max-width: 520px) {
  .ngesc-password-strength__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .ngesc-password-strength__rule {
    text-align: left;
    white-space: normal;
  }
}

/* ----------------------------------------------------------------------------
 * 1.5  Dashboard Layout
 * ---------------------------------------------------------------------------- */

.ngesc-dashboard {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.ngesc-dashboard-action {
  display: flex;
  justify-content: center;
}

.ngesc-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.ngesc-dashboard-charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ngesc-dashboard-chart-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--ngesc-border, #dbe3ea);
  background: var(--ngesc-card-bg, #ffffff);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.ngesc-dashboard-chart-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 44px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.ngesc-dashboard-chart-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  border-radius: 8px;
  color: var(--ngesc-primary, #3746ce);
  background: var(--ngesc-primary-light, #eef2ff);
  font-size: 16px;
}

.ngesc-dashboard-chart-card:nth-child(2) .ngesc-dashboard-chart-icon {
  color: var(--ngesc-secondary, #2d9fb4);
  background: var(--ngesc-secondary-light, #e8f7fa);
}

.ngesc-dashboard-chart-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ngesc-text, #1f2937);
}

.ngesc-dashboard-chart-header p {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ngesc-muted, #64748b);
}

.ngesc-dashboard-chart-wrapper {
  position: relative;
  min-height: 280px;
}

.ngesc-dashboard-chart-wrapper canvas {
  width: 100% !important;
  height: 280px !important;
}

.ngesc-dashboard-chart-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: var(--ngesc-muted, #64748b);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  background: rgba(255, 255, 255, 0.82);
}

.ngesc-dashboard-chart-empty .ngesc-empty-record {
  width: min(100%, 360px);
  padding: 0;
}

.ngesc-dashboard-chart-empty .icon-wrapper {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  border-radius: 50%;
  color: var(--ngesc-primary, #3746ce);
  background: var(--ngesc-primary-light, #eef2ff);
  padding: 15px;
}

.ngesc-dashboard-chart-empty h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ngesc-text, #1f2937);
}

.ngesc-dashboard-chart-empty p {
  margin: 0;
  color: var(--ngesc-muted, #64748b);
  font-size: 13px;
  line-height: 1.45;
}

.ngesc-dashboard-chart-empty[hidden] {
  display: none;
}

/* ----------------------------------------------------------------------------
 * 1.6  Sidebar Layout
 * ---------------------------------------------------------------------------- */

.ngesc-sidebar {
  width: 260px;
  background: var(--ngesc-bg);
  border-right: 1px solid var(--ngesc-border);
  display: flex;
  flex-direction: column;
  transition: width 0.25s ease;
  color: #4a4a4a;
}

.ngesc-sidebar-collapsed {
  width: 78px;
}

.ngesc-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
}

.ngesc-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ngesc-brand-logo {
  width: 36px;
  height: 36px;
  background: var(--ngesc-primary);
  color: var(--ngesc-bg);
  border-radius: var(--ngesc-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.ngesc-brand-text {
  font-size: 16px;
  font-weight: 600;
}

.ngesc-sidebar-collapsed .ngesc-brand-text {
  display: none;
}

/* Desktop toggle visible */
.ngesc-toggle-desktop {
	display: inline-flex;
}

/* Mobile toggle hidden */
.ngesc-toggle-mobile {
	display: none;
}

.ngesc-sidebar-footer {
  padding: 14px;
  border-top: 1px solid var(--ngesc-border);
}

.ngesc-content-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 30px;
  background: #eff6fdb5;
  border-radius: var(--ngesc-radius-lg);
}

/* ----------------------------------------------------------------------------
 * 1.7  Content Area
 * ---------------------------------------------------------------------------- */

.ngesc-content {
  flex: 1;
  padding: 30px 45px;
  margin-bottom: 20px;
}

.ngesc-content-body {
  width: 100%;
  min-width: 0;
}

.ngesc-page-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}


/* ============================================================================
 * 2.0  NAVIGATION & MENUS
 * ============================================================================ */

/* ----------------------------------------------------------------------------
 * 2.1  Main Menu (generic)
 * ---------------------------------------------------------------------------- */

.ngesc-menu {
  list-style: none;
  padding: 10px 20px 10px 10px;
  margin: 0;
  flex: 1;
}

.ngesc-menu li a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--ngesc-radius);
  color: #4a4a4a;
  text-decoration: none;
  transition: background 0.15s ease;
  margin: 8px 0;
  font-size: 15px;
}

.ngesc-menu li a:hover,
.ngesc-menu li.active > a {
  background: var(--ngesc-primary);
  color: var(--ngesc-bg);
}

.ngesc-menu li i {
  font-size: 16px;
  min-width: 22px;
  text-align: center;
}

/* ----------------------------------------------------------------------------
 * 2.2  Collapsed Sidebar States
 * ---------------------------------------------------------------------------- */

.ngesc-sidebar-collapsed .ngesc-menu span {
  display: none;
}

.ngesc-sidebar-collapsed .ngesc-menu li a {
  position: relative;
  justify-content: center;
}

/* Tooltip shown on hover when sidebar is collapsed */
.ngesc-sidebar-collapsed .ngesc-menu li a:hover::after {
  content: attr(data-label);
  position: absolute;
  left: 90px;
  background: var(--ngesc-text);
  color: var(--ngesc-bg);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 100;
}

.ngesc-sidebar-collapsed .ngesc-user-meta {
  display: none;
}

/* ----------------------------------------------------------------------------
 * 2.3  Unified Hover & Active States
 * ---------------------------------------------------------------------------- */

/* Dropdown toggle links */
.ngesc-menu-link:hover,
.ngesc-menu li.active > .ngesc-menu-link,
.ngesc-dropdown.is-open > .ngesc-menu-link {
  background: var(--ngesc-primary);
  color: var(--ngesc-bg);
}

.ngesc-menu-link:hover i,
.ngesc-menu-link:hover span,
.ngesc-dropdown.is-open > .ngesc-menu-link i,
.ngesc-dropdown.is-open > .ngesc-menu-link span {
  color: var(--ngesc-bg);
}

.ngesc-menu-link.is-active {
  font-weight: 600;
  color: var(--ngesc-primary);
}

.ngesc-menu-link.is-open {
  font-weight: 600;
  color: var(--ngesc-bg);
  background-color: var(--ngesc-primary);
}

/* Submenu links */
.ngesc-submenu li a:hover,
.ngesc-submenu li.active > a {
  background: var(--ngesc-primary);
  color: var(--ngesc-bg);
}

.ngesc-submenu li a:hover i,
.ngesc-submenu li a:hover span {
  color: var(--ngesc-bg);
}

/* ----------------------------------------------------------------------------
 * 2.4  Dropdowns
 * ---------------------------------------------------------------------------- */

.ngesc-dropdown {
  position: relative;
}

.ngesc-dropdown-menu,
.ngesc-action-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 180px;
  background: var(--ngesc-bg-light);
  border: 1px solid var(--ngesc-border);
  border-radius: var(--ngesc-radius);
  box-shadow: var(--ngesc-shadow-lg);
  padding: 6px;
  display: none;
  z-index: 1000;
}

.ngesc-dropdown.is-open > .ngesc-dropdown-menu,
.ngesc-dropdown.open .ngesc-dropdown-menu,
.ngesc-dropdown.is-open > .ngesc-action-dropdown,
.ngesc-dropdown.open .ngesc-action-dropdown {
  display: block;
}

.ngesc-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ngesc-text);
}

.ngesc-dropdown-menu a:hover {
  background: var(--ngesc-hover);
  color: var(--ngesc-primary);
}

/* ----------------------------------------------------------------------------
 * 2.5  Submenus
 * ---------------------------------------------------------------------------- */

/* Used both for sidebar nested menus and dropdown sub-lists */
.ngesc-dropdown > .ngesc-submenu,
.ngesc-menu-submenu,
.ngesc-user-submenu {
  display: none;
  position: relative;
  width: 100%;
  margin-top: 6px;
  padding: 6px;
  background: #f8fafc;
  border-radius: var(--ngesc-radius);
  z-index: 50;
  list-style: none;
}

.ngesc-dropdown.is-open > .ngesc-submenu {
  display: block;
}

.ngesc-submenu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 38px;
  border-radius: var(--ngesc-radius);
  color: #475569;
  text-decoration: none;
  font-size: 14px;
}

.ngesc-sidebar-collapsed .ngesc-submenu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
}

.ngesc-submenu a.is-active {
  background-color: rgba(0, 0, 0, 0.06);
  font-weight: 600;
  border-left: 3px solid var(--ngesc-primary);
}

/* ----------------------------------------------------------------------------
 * 2.6  Action Dropdown
 * ---------------------------------------------------------------------------- */

.ngesc-action-dropdown {
  min-width: 160px;
  z-index: 9999;
  padding: 5px;
}

.ngesc-action-dropdown a,
.ngesc-action-dropdown button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 13px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  color: var(--ngesc-text);
  border-radius: 8px;
  box-sizing: border-box;
}

.ngesc-action-dropdown a:hover,
.ngesc-action-dropdown button:hover {
  background: var(--ngesc-hover);
}

.ngesc-action-dropdown .ngesc-danger {
  color: var(--ngesc-danger);
}

/* ----------------------------------------------------------------------------
 * 2.7  User Menu
 * ---------------------------------------------------------------------------- */

.ngesc-user-menu {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px;
}

.ngesc-user-toggle {
  width: 100%;
  background: none;
  border: none;
  color: #4a4a4a;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 10px;
}

.ngesc-user-dropdown {
  display: none;
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  background: #020617;
  border-radius: 6px;
}

.ngesc-user-dropdown li a {
  display: block;
  padding: 10px 14px;
  color: #cbd5f5;
  text-decoration: none;
}

.ngesc-user-dropdown li a:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* User Profile block */
.ngesc-user {
  display: inline-block;
  align-items: center;
  gap: 10px;
  position: relative;
}

.ngesc-user img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.ngesc-user-meta {
  line-height: 1.2;
}

.ngesc-sidebar-collapsed .ngesc-user img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.ngesc-sidebar-collapsed .ngesc-user-submenu {
  position: absolute;
  left: 78px;
  bottom: 14px;
  width: 200px;
  background: var(--ngesc-bg);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-radius: var(--ngesc-radius);
}

/* ----------------------------------------------------------------------------
 * 2.8  Chevron & Sidebar Controls
 * ---------------------------------------------------------------------------- */

.ngesc-chevron,
.ngesc-caret {
  margin-left: auto;
  font-size: 12px;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.ngesc-sidebar-collapsed .ngesc-chevron {
  display: none;
}

.ngesc-sidebar-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  border-radius: var(--ngesc-radius);
  padding: 6px;
  align-items: center;
  justify-content: center;
  color: var(--ngesc-text);
}

/* Themed toggle inside the content header bar */
.ngesc-content-header .ngesc-sidebar-toggle {
  background: var(--ngesc-primary);
  color: #fff;
  padding: 10px 12px;
}

.ngesc-dropdown-toggle {
  background: transparent;
  border: none;
  color: #4a4a4a;
  width: 100%;
  text-align: left;
  border-radius: var(--ngesc-radius);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  cursor: pointer;
  margin: 4px 0;
  font-size: 15px;
}

.ngesc-action-toggle {
  background: #ebebeb;
  border: none;
  cursor: pointer;
  border-radius: var(--ngesc-radius);
}

.ngesc-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 999;
}

.ngesc-sidebar-backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
}


/* ============================================================================
 * 3.0  INTERACTIVE COMPONENTS
 * ============================================================================ */

/* ----------------------------------------------------------------------------
 * 3.1  Buttons
 * ---------------------------------------------------------------------------- */

.ngesc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--ngesc-radius-pill);
  padding: 12px 24px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  height: 40px;
  font-size: 14px;
  transition: var(--ngesc-transition);
  text-decoration: none;
  box-sizing: border-box;
  color: #515151;
}

.ngesc-btn-w-auto {
  width: auto;
}

/* Button Variants */
.ngesc-btn-danger {
    background: var(--ngesc-danger) !important;
    color: var(--ngesc-text-light);
    border-color: var(--ngesc-danger);
}


.ngesc-btn-primary {
  background: var(--ngesc-primary);
  color: var(--ngesc-bg);
}

.ngesc-btn-primary:hover {
  background: var(--ngesc-primary-dark);
  box-shadow: var(--ngesc-shadow);
}

.ngesc-btn-secondary {
  border: 1px solid var(--ngesc-border-dark);
  background: #edf1f4;
  color: var(--ngesc-text);
}

.ngesc-btn-secondary:hover {
  background: var(--ngesc-bg-light);
}

.ngesc-table-action-btn {
  background: var(--ngesc-primary);
  border-radius: 5px;
  padding: 4px 8px;
  color: var(--ngesc-bg);
  font-size: 11px;
  border: none;
  cursor: pointer;
}

.ngesc-table-action-btn:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.ngesc-btn-outline {
  border: 1px solid #cbd5f5;
  background: transparent;
}

.ngesc-btn-outline-light {
  padding: 16px 36px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--ngesc-radius-pill);
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: var(--ngesc-bg);
  background: transparent;
  transition: var(--ngesc-transition);
}

.ngesc-btn-outline-light:hover {
  background: var(--ngesc-bg);
  color: var(--ngesc-primary);
}


.ngesc-btn-sm {
  font-size: 12px;
  padding: 6px 15px;
  height: 40px;
}

.ngesc-btn-block {
  width: 100%;
}

.ngesc-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--ngesc-radius);
  border: none;
  background: transparent;
  color: var(--ngesc-muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  font-size: 18px;
  padding: 0;
}

.ngesc-icon-btn:hover {
  background: var(--ngesc-bg-light);
  color: var(--ngesc-primary);
}

/* Focus styles — keyboard navigation visibility (WCAG 2.4.7) */
.ngesc-btn:focus-visible,
.ngesc-icon-btn:focus-visible,
.ngesc-tab-btn:focus-visible,
.ngesc-sidebar-toggle:focus-visible,
.ngesc-dropdown-toggle:focus-visible,
.ngesc-info:focus-visible {
  outline: 2px solid var(--ngesc-primary);
  outline-offset: 2px;
}

/* ----------------------------------------------------------------------------
 * 3.2  Forms — Base Elements
 * ---------------------------------------------------------------------------- */

.ngesc-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ngesc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ngesc-input,
.ngesc-textarea {
  padding: 10px 12px;
  font-size: 14px;
  border-radius: var(--ngesc-radius);
  background: var(--ngesc-bg);
  border: 1px solid var(--ngesc-border-dark);
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  color: var(--ngesc-text);
}

.ngesc-input,
.ngesc-form input[type="color"],
.ngesc-form input[type="date"],
.ngesc-form input[type="datetime-local"],
.ngesc-form input[type="datetime"],
.ngesc-form input[type="email"],
.ngesc-form input[type="month"],
.ngesc-form input[type="number"],
.ngesc-form input[type="range"],
.ngesc-form input[type="tel"],
.ngesc-form input[type="text"],
.ngesc-form input[type="time"],
.ngesc-form input[type="url"],
.ngesc-form input[type="week"] {
	height: 2.5rem;
	border-radius: var(--ngesc-radius);
}

.ngesc-input:focus,
.ngesc-textarea:focus {
  outline: none;
  border-color: var(--ngesc-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.ngesc-input::placeholder {
  color: #b0b0b0;
}

.ngesc-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Auth-specific full-height pill inputs */
.ngesc-login-inner  .ngesc-input,
.ngesc-login-inner input[type="text"],
.ngesc-pass-reset-form .ngesc-input,
.ngesc-pass-reset-form input[type="text"] {
  height: 2.6rem;
  border-radius: var(--ngesc-radius-pill);
  padding: 0 54px;
  font-size: 15px;
}

/* Account settings standard inputs */
.ngesc-account-layout .ngesc-input {
  height: 42px;
  border-radius: var(--ngesc-radius);
  padding: 0 15px;
}

/* Select */
.ngesc-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: var(--ngesc-panel);
  border: 1px solid var(--ngesc-border-dark);
  border-radius: var(--ngesc-radius);
  padding: 10px 36px 10px 12px;
  font-size: 14px;
  color: var(--ngesc-text);
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  transition: border-color 0.2s ease;
}

.ngesc-select:hover,
.ngesc-select:focus {
  border-color: var(--ngesc-primary);
  outline: none;
}

/* Input with leading/trailing icon */
.ngesc-input-icon {
  position: relative;
}

.ngesc-input-icon i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #666;
  pointer-events: none;
}

.ngesc-input-icon .fa-eye,
.ngesc-input-icon .fa-eye-slash {
  right: 18px;
  left: auto;
  cursor: pointer;
  pointer-events: auto;
}

/* Labels */
.ngesc-field label,
.ngesc-field-label {
  font-size: 14px;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
  display: block;
}

.ngesc-field-label-with-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ngesc-ai-label-btn,
.ngesc-field-label-with-action .ngesc-ai-label-btn {
  width: auto;
  height: auto;
  min-height: 26px;
  padding: 4px 8px;
  font-size: 11px;
  line-height: 1;
  flex: 0 0 auto;
}

/* Required field indicator */
.ngesc-form [required] + label::after,
.ngesc-form label:has(+ [required])::after {
  content: ' *';
  color: var(--ngesc-danger);
}

/* Checkbox */
.ngesc-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.ngesc-checkbox input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Link */
.ngesc-link {
  color: var(--ngesc-primary);
  font-weight: 500;
  text-decoration: none;
}

.ngesc-link:hover {
  text-decoration: underline;
}

.ngesc-link:focus-visible {
  outline: 2px solid var(--ngesc-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ----------------------------------------------------------------------------
 * 3.3  Form Actions
 * ---------------------------------------------------------------------------- */

/* Consolidated from 3 duplicate blocks — final intent: right-aligned flex */
.ngesc-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
}

.ngesc-form-actions-split {
  justify-content: space-between;
}

.ngesc-form-actions .ngesc-auth-footer {
  margin: 0;
  font-size: 14px;
  color: #555;
}

.ngesc-form-actions .ngesc-btn {
  min-width: 140px;
}

.ngesc-form-submit {
  display: flex;
  gap: 10px;
}

/* ----------------------------------------------------------------------------
 * 3.4  Form Grid
 * ---------------------------------------------------------------------------- */

.ngesc-form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}


.ngesc-pass-reset-form .ngesc-form-grid {
  margin-bottom: 0;
}

.ngesc-form-grid .ngesc-field {
  width: 100%;
}

.ngesc-span-1 { grid-column: span 1; }
.ngesc-span-2 { grid-column: span 2; }
.ngesc-span-3 { grid-column: span 3; }

/* ----------------------------------------------------------------------------
 * 3.5  File Upload
 * ---------------------------------------------------------------------------- */

.ngesc-upload {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ngesc-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.ngesc-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px dashed var(--ngesc-border);
  background: var(--ngesc-panel);
  color: var(--ngesc-text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--ngesc-transition);
}

.ngesc-upload-btn i {
  font-size: 14px;
  color: var(--ngesc-muted);
}

.ngesc-upload-btn:hover {
  border-color: var(--ngesc-primary);
  background: var(--ngesc-bg-light);
}

.ngesc-file-input:focus + .ngesc-upload-btn {
  outline: 2px solid var(--ngesc-primary);
  outline-offset: 2px;
}

.ngesc-upload-filename {
  font-size: 12px;
  color: var(--ngesc-muted);
}

.ngesc-form-file-preview {
  font-size: 13px;
  color: var(--ngesc-muted);
  min-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ngesc-file-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ngesc-image-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.ngesc-avatar-preview {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ngesc-border);
  background: var(--ngesc-bg-dark);
}

.ngesc-image-picker {
  font-size: 13px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}


/* ============================================================================
 * 4.0  DATA DISPLAY COMPONENTS
 * ============================================================================ */

/* ----------------------------------------------------------------------------
 * 4.1  Metric Cards
 * ---------------------------------------------------------------------------- */

.ngesc-metric-card {
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  border: 1px solid #c2cfd6;
  border-radius: var(--ngesc-radius-lg);
  padding: 40px 35px;
  background: var(--ngesc-bg);
  /* GPU layer for hover transform */
  will-change: transform;
}

.ngesc-metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08), 0 6px 16px rgba(0, 0, 0, 0.06);
}

.ngesc-metric-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  background: #eff6ff;
  color: var(--ngesc-primary);
  font-size: 26px;
}

.ngesc-metric-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--ngesc-text);
  margin-bottom: 6px;
}

.ngesc-metric-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ngesc-muted);
}

.ngesc-metric-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* ----------------------------------------------------------------------------
 * 4.2  Card Containers
 * ---------------------------------------------------------------------------- */

.ngesc-pub-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ngesc-pub-card-header .ngesc-pub-card__title {
  font-size: 20px;
  font-weight: 600;
}

.ngesc-surface {
  background: var(--ngesc-bg);
}

.ngesc-rounded {
  border-radius: 8px;
}

/* ----------------------------------------------------------------------------
 * 4.3  Tables
 * ---------------------------------------------------------------------------- */

.ngesc-data-table {
  border: 1px solid #cbc3c3;
  border-radius: 5px;
  padding: 20px;
  width: 100%;
  border-collapse: collapse;
}

.ngesc-front-wrapper .ngesc-data-table tbody > tr > td,
.ngesc-front-wrapper .ngesc-data-table thead th,
.ngesc-front-wrapper .ngesc-data-table tbody > tr:last-child > * {
  border: none;
}

.ngesc-front-wrapper .ngesc-data-table tbody > tr > td,
.ngesc-front-wrapper .ngesc-data-table thead {
  background-color: #f9f9f900;
}

.ngesc-front-wrapper .ngesc-table-wrap {
  width: 100%;
  overflow-x: visible;
  -webkit-overflow-scrolling: touch;
}

.ngesc-front-wrapper .ngesc-table-wrap::-webkit-scrollbar {
  height: 8px;
}

.ngesc-front-wrapper .ngesc-table-wrap::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}
/* ----------------------------------------------------------------------------
 * 4.4  Notification Panel
 * ---------------------------------------------------------------------------- */

/* Severity badge  */
.ngesc-severity-success { border-left: 4px solid #28a745; }
.ngesc-severity-warning { border-left: 4px solid #ffc107; }
.ngesc-severity-danger  { border-left: 4px solid #dc3545; }
.ngesc-severity-info    { border-left: 4px solid #17a2b8; }

.ngesc-unread {
    background: rgba(0,0,0,0.04);
    font-weight: 600;
}

/* Dropdown shell */
.ngesc-notifications {
	position: relative;
}

.ngesc-noty-panel {
	width: 360px;
	max-width: 90vw;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(0,0,0,.15);
	overflow: hidden;
}

/* Header */
.ngesc-noty-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 14px;
	border-bottom: 1px solid #e5e7eb;
	background: #f9fafb;
}

.ngesc-noty-badge {
    position: absolute;
    top: 1px;
    right: 2px;
    width: 17px;
    height: 17px;
    font-size: 9px;
    border-radius: 50%;
    background: var(--ngesc-primary);
    color: #fff;
    font-weight: 550;
    text-align: center;
    padding-top: 3px;
}

.ngesc-noty-title {
	font-weight: 600;
	font-size: 14px;
}

.ngesc-noty-action {
	background: none;
	border: none;
	color: #2271b1;
	font-size: 12px;
	cursor: pointer;
}

/* List */
.ngesc-noty-list {
	max-height: 320px;
	overflow-y: auto;
	margin: 0;
	padding: 6px;
	list-style: none;
}

/* Notification item */
.ngesc-notification {
	border-radius: 8px;
}

.ngesc-notification + .ngesc-notification {
	margin-top: 4px;
}

.ngesc-notification-link {
	display: flex;
	gap: 12px;
	padding: 10px;
	text-decoration: none;
	color: inherit;
	border-radius: 8px;
}

.ngesc-notification-link:hover {
	background: #f1f5f9;
}

/* Unread emphasis */
.ngesc-notification--unread .ngesc-notification-title {
	font-weight: 600;
}

.ngesc-notification--unread::before {
	content: "";
	width: 6px;
	height: 6px;
	background: #2271b1;
	border-radius: 50%;
	position: absolute;
	left: 6px;
	top: 16px;
}

/* Icon */
.ngesc-notification-icon {
	flex-shrink: 0;
	color: #2271b1;
	margin-top: 2px;
}

/* Body */
.ngesc-notification-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ngesc-notification-title {
	font-size: 13px;
}

.ngesc-notification-message {
	font-size: 12px;
	color: #50575e;
	line-height: 1.3;
}

.ngesc-notification-time {
	font-size: 11px;
	color: #8c8f94;
}

.ngesc-noty-empty {
	display: flex;
	flex-direction: column;
	text-align: center;
	justify-content: center;
	gap: 6px;
	padding: 40px 12px;
	color: #8c8f94;
	font-size: 16px;
}

.ngesc-noty-footer {
	padding: 10px;
	border-top: 1px solid #e5e7eb;
	text-align: center;
}

.ngesc-noty-view-all {
	font-size: 13px;
	color: #2271b1;
	text-decoration: none;
}


/* ----------------------------------------------------------------------------
 * 4.5  Key-Value Meta Rows
 * ---------------------------------------------------------------------------- */

.ngesc-meta-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--ngesc-border);
  padding: 6px 0;
  font-size: 13px;
}

.ngesc-meta-label {
  color: var(--ngesc-muted);
}

.ngesc-meta-value {
  font-weight: 500;
  color: var(--ngesc-text);
}

/* ----------------------------------------------------------------------------
 * 4.6  Invoice
 * ---------------------------------------------------------------------------- */

.ngesc-invoice {
  padding: 32px;
  background: var(--ngesc-surface);
  max-width: 920px;
  margin: 0 auto;
}

.ngesc-invoice-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

/* Invoice header actions stay grouped when optional CTAs are available. */
.ngesc-invoice-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.ngesc-invoice-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0;
}

.ngesc-invoice-code {
  font-size: 0.9rem;
  font-weight: 400;
  opacity: 0.7;
  margin-left: 6px;
}

.ngesc-invoice-logo {
  margin-bottom: 16px;
}

.ngesc-invoice-footer {
  align-items: end;
  gap: 24px;
  border-top: 1px solid var(--ngesc-border);
  padding-top: 18px;
}

.ngesc-invoice-notes {
  color: var(--ngesc-muted);
  font-size: 13px;
  line-height: 1.7;
}

.ngesc-barcode-wrapper svg {
  max-width: 100%;
  height: auto;
}

/* BTC Invoice */
.ngesc-btc-invoice {
  max-width: 820px;
  margin: 40px auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ngesc-btc-invoice .ngesc-pub-card {
  background: var(--ngesc-bg);
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid #f1f1f1;
}

.ngesc-btc-invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  border-bottom: 1px solid #f3f3f3;
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.ngesc-btc-invoice-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.ngesc-btc-invoice-logo img {
  max-height: 55px;
}

.ngesc-btc-invoice-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  text-align: left;
}

.ngesc-btc-invoice-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 22px;
  font-weight: 600;
  margin: 0;
}

.ngesc-btc-invoice-title small {
  display: inline-flex;
  font-size: 13px;
  color: #888;
  margin-top: 0;
}

.ngesc-btc-invoice-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
  text-align: right;
}

.ngesc-crypto-polling {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 22px;
  padding: 4px 10px;
  border: 1px solid #dbe3ea;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.ngesc-crypto-polling-spinner {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border: 2px solid rgba(45, 159, 180, 0.25);
  border-top-color: var(--ngesc-secondary-color, #2d9fb4);
  border-radius: 50%;
  animation: ngescCryptoPollingSpin 0.8s linear infinite;
}

.ngesc-crypto-polling.is-waiting .ngesc-crypto-polling-spinner {
  animation-duration: 1.4s;
}

.ngesc-crypto-polling.is-complete {
  border-color: rgba(22, 163, 74, 0.25);
  background: rgba(22, 163, 74, 0.08);
  color: #15803d;
}

.ngesc-crypto-polling.is-stopped {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.08);
  color: #92400e;
}

.ngesc-crypto-polling.is-complete .ngesc-crypto-polling-spinner,
.ngesc-crypto-polling.is-stopped .ngesc-crypto-polling-spinner {
  animation: none;
  border-color: currentColor;
}

@keyframes ngescCryptoPollingSpin {
  to {
    transform: rotate(360deg);
  }
}

.ngesc-status {
  font-size: 12px;
  font-weight: 600;
}

.ngesc-btc-invoice-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.ngesc-btc-invoice-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ngesc-btc-invoice-list li {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #f5f5f5;
}

.ngesc-btc-invoice-list span:first-child {
  font-size: 13px;
  color: #777;
}

.ngesc-btc-invoice-list span:last-child {
  font-weight: 600;
}

.ngesc-btc-invoice-notes {
  margin-top: 30px;
  padding: 15px;
  background: #fafafa;
  border-radius: 8px;
  border: 1px solid #f1f1f1;
}

.ngesc-btc-invoice-notes p {
  margin: 8px 0;
  font-size: 14px;
  color: #555;
}

.ngesc-btc-block {
  margin-top: 20px;
  padding: 20px;
  background: #f8fbff;
  border-radius: var(--ngesc-radius);
  border: 1px solid #e6f0ff;
}

.ngesc-btc-block strong {
  font-size: 18px;
  color: #0b6efd;
}

.ngesc-btc-invoice svg {
  margin-top: 25px;
  width: 100%;
  height: auto;
}

/* ----------------------------------------------------------------------------
 * 4.7  Gateway Card
 * ---------------------------------------------------------------------------- */

.ngesc-gateway-card {
  position: relative;
  overflow: hidden;
  padding: 10px 22px;
  border-radius: 8px;
  background: var(--ngesc-bg);
  border: 1px solid #cbd2e2;
  transition: var(--ngesc-transition);
  /* GPU layer for hover transform */
  will-change: transform;
}

.ngesc-gateway-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.ngesc-gateway-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.ngesc-gateway-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ngesc-gateway-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.ngesc-gateway-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ngesc-text);
}

.ngesc-divider {
  width: 1px;
  height: 30px;
  background: rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.ngesc-select-btn {
  border-radius: 8px;
  padding: 5px 25px;
  font-weight: 600;
  height: 35px;
  font-size: 14px;
}

/* ----------------------------------------------------------------------------
 * 4.8  Dispute View
 * ---------------------------------------------------------------------------- */

.ngesc-view-dispute {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ngesc-dispute-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.ngesc-dispute-meta li {
  display: flex;
  gap: 6px;
  align-items: center;
}

.ngesc-dispute-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ngesc-muted);
}

.ngesc-dispute-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--ngesc-text);
}

.ngesc-dispute-status {
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--ngesc-radius-pill);
  display: inline-block;
}

.ngesc-status-open   { background: #ecfeff; color: #0369a1; }
.ngesc-status-closed { background: #f7e5d7; color: #764300;}

.ngesc-dispute-body {
  padding-top: 16px;
}

/* ----------------------------------------------------------------------------
 * 4.9  Tabs
 * ---------------------------------------------------------------------------- */

.ngesc-tabs {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ngesc-tabs-nav {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--ngesc-border);
  overflow-x: visible;
  overflow-y: visible;
}

.ngesc-tabs-panels {
  width: 100%;
}

.ngesc-tab-btn {
  background: none;
  border: none;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ngesc-muted);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.ngesc-tab-btn:hover {
  color: var(--ngesc-text);
}

.ngesc-tab-btn.is-active {
  color: var(--ngesc-primary);
  font-weight: 600;
}

.ngesc-tab-btn.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--ngesc-primary);
  border-radius: 2px;
}

.ngesc-tab-panel {
  display: none;
}

.ngesc-tab-panel.is-active {
  display: block;
  animation: ngescFadeIn 0.22s ease;
}

/* ----------------------------------------------------------------------------
 * 4.10  User Profile
 * ---------------------------------------------------------------------------- */

.ngesc-user-dashboard {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ngesc-profile-header {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: center;
}

.ngesc-profile-avatar img {
  max-width: 100%;
  border-radius: 8px;
  background: #f1f3f5;
  padding: 15px;
}

.ngesc-profile-name {
  font-size: 26px;
  font-weight: 700;
  color: var(--ngesc-text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Verification badges (profile header) */
.ngesc-verif-badges {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
}

.ngesc-verif-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
  color: #fff;
  line-height: 1;
  flex-shrink: 0;
}

.ngesc-verif-badge--email  { background-color: #2563eb; }
.ngesc-verif-badge--admin  { background-color: #16a34a; }
.ngesc-verif-badge--kyc    { background-color: #9333ea; }

.ngesc-username-cell {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ngesc-profile-sub {
  margin: 8px 0 16px;
  font-size: 14px;
  color: var(--ngesc-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.ngesc-profile-sep {
  color: #9ca3af;
}

.ngesc-profile-bio {
  font-size: 15px;
  color: #374151;
  line-height: 1.6;
  max-width: 680px;
}

.ngesc-profile-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 32px;
}

.ngesc-profile-col {
  display: flex;
  flex-direction: column;
}

.ngesc-profile-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px dashed var(--ngesc-border);
}

.ngesc-profile-col .ngesc-profile-item:last-child {
  border-bottom: none;
}

.ngesc-profile-label {
  font-size: 14px;
  color: var(--ngesc-muted);
  font-weight: 500;
}

.ngesc-profile-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--ngesc-text);
  text-align: right;
}

/* ----------------------------------------------------------------------------
 * 4.11  Account Settings Layout
 * ---------------------------------------------------------------------------- */

.ngesc-account-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.ngesc-account-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  gap: 32px;
  flex-wrap: wrap;
}

.ngesc-account-user {
  display: flex;
  align-items: center;
  gap: 20px;
}

.ngesc-avatar-box {
  width: 150px;
  height: 150px;
  border-radius: 8px;
  background: #f1f3f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ngesc-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ngesc-user-meta h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.ngesc-username {
  display: block;
  font-size: 14px;
  color: var(--ngesc-muted);
  margin-top: 2px;
}

.ngesc-avatar-action {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 500;
  color: var(--ngesc-primary);
}

.ngesc-avatar-action i {
  font-size: 14px;
}

.ngesc-avatar {
  border-radius: var(--ngesc-radius-pill);
}

.ngesc-account-status {
  text-align: right;
  font-size: 14px;
  color: var(--ngesc-muted);
}

.ngesc-role-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--ngesc-radius-pill);
  background: var(--ngesc-primary-dark);
  color: var(--ngesc-bg);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}

/* Profile completion progress bar */
.ngesc-completion-wrap {
  margin-top: 10px;
  min-width: 180px;
}

.ngesc-completion-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ngesc-muted);
  margin-bottom: 4px;
}

.ngesc-completion-pct {
  font-weight: 700;
  color: var(--ngesc-primary);
}

.ngesc-completion-bar {
  background: var(--ngesc-border);
  border-radius: var(--ngesc-radius-pill);
  height: 6px;
  overflow: hidden;
  width: 100%;
}

.ngesc-completion-fill {
  height: 100%;
  background: var(--ngesc-primary);
  border-radius: var(--ngesc-radius-pill);
  transition: width 0.4s ease;
}

.ngesc-account-form {
  margin-top: 24px;
}

/* Sticky save bar */
.ngesc-account-actions {
  position: sticky;
  bottom: 24px;
  display: flex;
  justify-content: flex-end;
  margin-top: 40px;
}

.ngesc-account-actions .ngesc-btn {
  padding: 12px 28px;
  border-radius: var(--ngesc-radius-pill);
  font-size: 14px;
}

.ngesc-profile-svg-icon {
    color: #9ca3af;
}
/* ----------------------------------------------------------------------------
 * 4.12  Form Wizard (Step Header)
 * ---------------------------------------------------------------------------- */

/* Consolidated from 2 conflicting blocks — kept the fuller bead+thread version */
.ngesc-step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin: 10px 0 38px;
  padding: 0 6px;
  gap: 0;
}

/* Background thread */
.ngesc-step-header::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--ngesc-border);
  border-radius: var(--ngesc-radius-pill);
  z-index: 0;
}

/* Active progress thread */
.ngesc-step-header::after {
  content: "";
  position: absolute;
  top: 11px;
  left: 5px;
  height: 2px;
  background: var(--ngesc-primary);
  border-radius: var(--ngesc-radius-pill);
  z-index: 0;
  width: 0;
  transition: width 0.35s ease;
}

/* 2-step */
.ngesc-step-header.step-2.active-1::after { width: 0%; }
.ngesc-step-header.step-2.active-2::after { width: 100%; }

/* 3-step */
.ngesc-step-header.step-3.active-1::after { width: 0%; }
.ngesc-step-header.step-3.active-2::after { width: 50%; }
.ngesc-step-header.step-3.active-3::after { width: 100%; }

/* 4-step */
.ngesc-step-header.step-4.active-1::after { width: 0%; }
.ngesc-step-header.step-4.active-2::after { width: 33.33%; }
.ngesc-step-header.step-4.active-3::after { width: 66.66%; }
.ngesc-step-header.step-4.active-4::after { width: 100%; }

/* Step bead + label — consolidated from 2 conflicting blocks */
.ngesc-step {
  flex: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  border: none;
  padding: 0;
  cursor: default;
  z-index: 1;
  position: relative;
}

.ngesc-step:first-child { align-items: flex-start; }
.ngesc-step:last-child  { align-items: flex-end; }

/* Bead (default = inactive) */
.ngesc-step::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ngesc-border-dark);
  position: relative;
  z-index: 2;
  transition: background 0.3s ease;
}

.ngesc-step.active::before {
  background: var(--ngesc-primary);
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.15), 0 0 0 2px #fff inset;
}

.ngesc-step.completed::before {
  background: var(--ngesc-primary);
}

.ngesc-step-label {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ngesc-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.ngesc-step.active .ngesc-step-label,
.ngesc-step.completed .ngesc-step-label {
  color: var(--ngesc-primary);
}

.ngesc-step-divider {
  flex: 1;
  height: 1px;
  background: var(--ngesc-border);
}

/* Consolidated from 2 identical declarations */
.ngesc-step-panel {
  display: none;
}

.ngesc-step-panel.active {
  display: block;
  animation: ngescFadeIn 0.22s ease;
}

.ngesc-form-title {
  margin-bottom: 16px;
}

/* Single definition — was declared twice identically */
@keyframes ngescFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Modern contract wizard */
.ngesc-modern-wizard {
  --ngesc-wizard-accent: var(--ngesc-primary);
  --ngesc-wizard-soft: var(--ngesc-primary-light, #eef2ff);
  --ngesc-wizard-border: var(--ngesc-border, #e5e7eb);
  --ngesc-wizard-muted: var(--ngesc-muted, #64748b);
  overflow: hidden;
  border: 1px solid var(--ngesc-wizard-border);
  border-radius: 18px;
  background: var(--ngesc-surface, #ffffff);
}

.ngesc-modern-wizard-form {
  padding: 0;
}

.ngesc-modern-wizard .ngesc-step-header {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 24px 30px 22px;
  background: color-mix(in srgb, var(--ngesc-wizard-soft) 52%, #ffffff);
  border-bottom: 1px solid var(--ngesc-wizard-border);
}

.ngesc-modern-wizard .ngesc-step-header::before,
.ngesc-modern-wizard .ngesc-step-header::after {
  top: 43px;
  left: calc(16.666% + 17px);
  right: calc(16.666% + 17px);
}

.ngesc-modern-wizard .ngesc-step-header::after {
  right: auto;
  background: var(--ngesc-wizard-accent);
}

.ngesc-modern-wizard .ngesc-step-header.completed-0::after,
.ngesc-modern-wizard .ngesc-step-header.completed-1::after {
  width: 0;
}

.ngesc-modern-wizard .ngesc-step-header.completed-2::after {
  width: 33.333%;
}

.ngesc-modern-wizard .ngesc-step-header.completed-3::after {
  width: 66.666%;
}

.ngesc-modern-wizard .ngesc-step {
  align-items: center;
  gap: 8px;
  margin: 0;
  cursor: pointer;
}

.ngesc-modern-wizard .ngesc-step::before {
  content: none;
}

.ngesc-modern-wizard .ngesc-step:disabled {
  cursor: not-allowed;
}

.ngesc-modern-wizard .ngesc-step-number {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--ngesc-wizard-border);
  border-radius: 50%;
  background: #ffffff;
  color: var(--ngesc-wizard-muted);
  font-size: 14px;
  font-weight: 750;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ngesc-modern-wizard .ngesc-step.active .ngesc-step-number {
  border-color: var(--ngesc-wizard-accent);
  background: var(--ngesc-wizard-accent);
  color: #ffffff;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--ngesc-wizard-accent) 14%, transparent);
  transform: translateY(-1px);
}

.ngesc-modern-wizard .ngesc-step.completed .ngesc-step-number {
  border-color: var(--ngesc-wizard-accent);
  background: var(--ngesc-wizard-accent);
  color: #ffffff;
  font-size: 0;
}

.ngesc-modern-wizard .ngesc-step.completed .ngesc-step-number::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
  font-size: 14px;
  font-weight: 900;
}

.ngesc-modern-wizard .ngesc-step-label {
  margin: 0;
  color: var(--ngesc-wizard-muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-transform: none;
}

.ngesc-modern-wizard .ngesc-step.active .ngesc-step-label,
.ngesc-modern-wizard .ngesc-step.completed .ngesc-step-label {
  color: var(--ngesc-wizard-accent);
}

.ngesc-modern-wizard-body {
  padding: 30px;
}

.ngesc-modern-step-intro {
  margin-bottom: 24px;
}

.ngesc-modern-step-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--ngesc-wizard-accent);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ngesc-modern-step-intro .ngesc-form-title {
  margin: 0 0 6px;
  color: var(--ngesc-text, #111827);
  font-size: 20px;
  letter-spacing: -0.02em;
}

.ngesc-modern-step-intro p {
  margin: 0;
  color: var(--ngesc-wizard-muted);
  line-height: 1.6;
}

.ngesc-modern-step-fields {
  min-height: 106px;
}

.ngesc-modern-wizard .ngesc-form-actions {
  padding-top: 22px;
  border-top: 1px solid var(--ngesc-wizard-border);
}

.ngesc-modern-wizard .ngesc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 118px;
}

@media (max-width: 600px) {
  .ngesc-modern-wizard .ngesc-step-header {
    padding: 20px 14px 18px;
  }

  .ngesc-modern-wizard .ngesc-step-header::before,
  .ngesc-modern-wizard .ngesc-step-header::after {
    top: 39px;
  }

  .ngesc-modern-wizard .ngesc-step-number {
    width: 36px;
    height: 36px;
  }

  .ngesc-modern-wizard .ngesc-step-label {
    font-size: 11px;
  }

  .ngesc-modern-wizard-body {
    padding: 24px 18px;
  }

  .ngesc-modern-wizard .ngesc-form-actions {
    gap: 10px;
  }

  .ngesc-modern-wizard .ngesc-btn {
    min-width: 0;
  }
}

/* ----------------------------------------------------------------------------
 * 4.13  Tooltip
 * ---------------------------------------------------------------------------- */

.ngesc-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #eef2ff;
  color: var(--ngesc-primary);
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: var(--ngesc-transition);
}

.ngesc-info:hover {
  background: var(--ngesc-primary);
  color: var(--ngesc-bg);
}

.ngesc-tooltip {
  position: absolute;
  background: var(--ngesc-text);
  color: #f9fafb;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.4;
  max-width: 280px;
  z-index: 100000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}


/* ============================================================================
 * 5.0  MODALS & OVERLAYS
 * ============================================================================ */

/* ----------------------------------------------------------------------------
 * 5.1  Modal
 * ---------------------------------------------------------------------------- */

.ngesc-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: none;
}

.ngesc-modal.is-open {
	display: block;
}

.ngesc-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.36);
	backdrop-filter: blur(8px);
}

.ngesc-modal-dialog {
	--ngesc-dialog-accent: var(--ngesc-primary, #3746ce);
	--ngesc-dialog-accent-soft: rgba(55, 70, 206, 0.09);
	position: relative;
	margin: 7vh auto;
	max-width: 780px;
	width: calc(100% - 32px);
	background: #fff;
	border-radius: 8px;
	border: 1px solid #e4eaf2;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
	overflow: hidden;
	animation: ngesc-modal-in 0.25s ease-out;
}

.ngesc-modal-header {
	position: relative;
	padding: 18px 56px 16px 22px;
	border-bottom: 1px solid #e8eef6;
	background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.ngesc-modal-header::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 4px;
	background: var(--ngesc-dialog-accent);
	opacity: 0.82;
}

.ngesc-modal-header::after {
	content: "";
	position: absolute;
	inset: 4px 0 auto;
	height: 42px;
	background: var(--ngesc-dialog-accent-soft);
	pointer-events: none;
}

.ngesc-modal-header h2 {
	position: relative;
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
	color: #0f172a;
	z-index: 1;
}

.ngesc-modal-body {
	padding: 22px;
	font-size: 14px;
	line-height: 1.55;
	color: #334155;
	max-height: 65vh;
	overflow-y: auto;
	background: #ffffff;
}

.ngesc-modal-close {
	position: absolute;
	top: 10px;
	right: 16px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: rgba(255, 255, 255, 0.82);
	border: 1px solid #dce5ef;
	border-radius: 999px;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: #6b7280;
}

.ngesc-modal-close:hover {
	background: #ffffff;
	border-color: #cbd5e1;
	color: #0f172a;
}

@keyframes ngesc-modal-in {
  from { opacity: 0; transform: translateY(-12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ----------------------------------------------------------------------------
 * 5.2  Collapse Panel
 * ---------------------------------------------------------------------------- */

/*
 * Note: CSS cannot animate from height: 0 to height: auto.
 * The `will-change: height` hint is retained as it was in the original.
 * JS must set explicit pixel height when opening for the transition to work.
 */
.ngesc-collapse {
  overflow: hidden;
  display: none;
  height: 0;
  opacity: 0;
  transition: height 280ms cubic-bezier(0.4, 0, 0.2, 1),
              opacity 200ms ease;
  pointer-events: none;
  will-change: height;
}

.ngesc-collapse.is-open {
  opacity: 1;
  pointer-events: auto;
  box-shadow: var(--ngesc-shadow);
}

.ngesc-collapse-inner {
  background: var(--ngesc-bg);
  border: 1px solid var(--ngesc-border);
  border-radius: 8px;
  box-sizing: border-box;
}

.ngesc-collapse-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--ngesc-border);
}

.ngesc-collapse-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

/* Deduplicated — was declared twice */
.ngesc-collapse-body {
  padding: 1.25rem;
}

.ngesc-collapse-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--ngesc-muted);
  line-height: 1;
}

.ngesc-collapse-close:hover {
  color: var(--ngesc-danger);
}

.ngesc-front-wrapper .ngesc-collapse.is-open {
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.ngesc-front-wrapper .ngesc-collapse {
  padding: 0;
  background: transparent;
  border: 0;
}

.ngesc-front-wrapper .ngesc-collapse-inner {
  --ngesc-dialog-accent: var(--ngesc-primary, #3746ce);
  --ngesc-dialog-accent-soft: rgba(55, 70, 206, 0.08);
  background: #ffffff;
  border: 1px solid #e4eaf2;
  border-radius: 8px;
  overflow: hidden;
}

.ngesc-front-wrapper .ngesc-collapse-header {
  position: relative;
  padding: 1.1rem 3.25rem 1rem 1.35rem;
  border-bottom: 1px solid #e8eef6;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.ngesc-front-wrapper .ngesc-collapse-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--ngesc-dialog-accent);
  opacity: 0.82;
}

.ngesc-front-wrapper .ngesc-collapse-header::after {
  content: "";
  position: absolute;
  inset: 4px 0 auto;
  height: 40px;
  background: var(--ngesc-dialog-accent-soft);
  pointer-events: none;
}

.ngesc-front-wrapper .ngesc-collapse-title {
  position: relative;
  line-height: 1.35;
  color: #0f172a;
  z-index: 1;
}

.ngesc-front-wrapper .ngesc-collapse-body {
  padding: 1.35rem;
  color: #334155;
  background: #ffffff;
}

.ngesc-front-wrapper .ngesc-collapse-close {
  position: absolute;
  top: 13px;
  right: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #dce5ef;
  border-radius: 999px;
  font-size: 1.25rem;
  color: #64748b;
}

.ngesc-front-wrapper .ngesc-collapse-close:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

.ngesc-modal.ngesc-theme-saas .ngesc-modal-dialog,
.ngesc-front-wrapper.ngesc-theme-saas .ngesc-collapse-inner {
  --ngesc-dialog-accent: #3746ce;
  --ngesc-dialog-accent-soft: rgba(55, 70, 206, 0.09);
}

.ngesc-modal.ngesc-theme-sleek .ngesc-modal-dialog,
.ngesc-front-wrapper.ngesc-theme-sleek .ngesc-collapse-inner {
  --ngesc-dialog-accent: #4f63d9;
  --ngesc-dialog-accent-soft: rgba(79, 99, 217, 0.1);
}

.ngesc-modal.ngesc-theme-fintech .ngesc-modal-dialog,
.ngesc-front-wrapper.ngesc-theme-fintech .ngesc-collapse-inner {
  --ngesc-dialog-accent: #0c152b;
  --ngesc-dialog-accent-soft: rgba(12, 21, 43, 0.08);
}

.ngesc-modal.ngesc-theme-minimalistic .ngesc-modal-dialog,
.ngesc-front-wrapper.ngesc-theme-minimalistic .ngesc-collapse-inner {
  --ngesc-dialog-accent: #2563eb;
  --ngesc-dialog-accent-soft: rgba(37, 99, 235, 0.08);
}

.ngesc-modal .ngesc-modal-body .ngesc-input,
.ngesc-modal .ngesc-modal-body .ngesc-textarea,
.ngesc-modal .ngesc-modal-body .ngesc-select,
.ngesc-modal .ngesc-modal-body input[type="color"],
.ngesc-modal .ngesc-modal-body input[type="date"],
.ngesc-modal .ngesc-modal-body input[type="datetime-local"],
.ngesc-modal .ngesc-modal-body input[type="datetime"],
.ngesc-modal .ngesc-modal-body input[type="email"],
.ngesc-modal .ngesc-modal-body input[type="month"],
.ngesc-modal .ngesc-modal-body input[type="number"],
.ngesc-modal .ngesc-modal-body input[type="password"],
.ngesc-modal .ngesc-modal-body input[type="range"],
.ngesc-modal .ngesc-modal-body input[type="tel"],
.ngesc-modal .ngesc-modal-body input[type="text"],
.ngesc-modal .ngesc-modal-body input[type="time"],
.ngesc-modal .ngesc-modal-body input[type="url"],
.ngesc-modal .ngesc-modal-body input[type="week"],
.ngesc-modal .ngesc-modal-body textarea,
.ngesc-modal .ngesc-modal-body select,
.ngesc-front-wrapper .ngesc-collapse-body .ngesc-input,
.ngesc-front-wrapper .ngesc-collapse-body .ngesc-textarea,
.ngesc-front-wrapper .ngesc-collapse-body .ngesc-select,
.ngesc-front-wrapper .ngesc-collapse-body input[type="color"],
.ngesc-front-wrapper .ngesc-collapse-body input[type="date"],
.ngesc-front-wrapper .ngesc-collapse-body input[type="datetime-local"],
.ngesc-front-wrapper .ngesc-collapse-body input[type="datetime"],
.ngesc-front-wrapper .ngesc-collapse-body input[type="email"],
.ngesc-front-wrapper .ngesc-collapse-body input[type="month"],
.ngesc-front-wrapper .ngesc-collapse-body input[type="number"],
.ngesc-front-wrapper .ngesc-collapse-body input[type="password"],
.ngesc-front-wrapper .ngesc-collapse-body input[type="range"],
.ngesc-front-wrapper .ngesc-collapse-body input[type="tel"],
.ngesc-front-wrapper .ngesc-collapse-body input[type="text"],
.ngesc-front-wrapper .ngesc-collapse-body input[type="time"],
.ngesc-front-wrapper .ngesc-collapse-body input[type="url"],
.ngesc-front-wrapper .ngesc-collapse-body input[type="week"],
.ngesc-front-wrapper .ngesc-collapse-body textarea,
.ngesc-front-wrapper .ngesc-collapse-body select {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  box-shadow: none;
}

.ngesc-modal .ngesc-modal-body .ngesc-input:focus,
.ngesc-modal .ngesc-modal-body .ngesc-textarea:focus,
.ngesc-modal .ngesc-modal-body .ngesc-select:focus,
.ngesc-modal .ngesc-modal-body input:focus,
.ngesc-modal .ngesc-modal-body textarea:focus,
.ngesc-modal .ngesc-modal-body select:focus,
.ngesc-front-wrapper .ngesc-collapse-body .ngesc-input:focus,
.ngesc-front-wrapper .ngesc-collapse-body .ngesc-textarea:focus,
.ngesc-front-wrapper .ngesc-collapse-body .ngesc-select:focus,
.ngesc-front-wrapper .ngesc-collapse-body input:focus,
.ngesc-front-wrapper .ngesc-collapse-body textarea:focus,
.ngesc-front-wrapper .ngesc-collapse-body select:focus {
  border-color: var(--ngesc-dialog-accent);
  box-shadow: 0 0 0 4px var(--ngesc-dialog-accent-soft);
  outline: none;
}

.ngesc-modal .ngesc-modal-body .ngesc-btn-primary,
.ngesc-modal .ngesc-modal-body .ngesc-form-submit,
.ngesc-modal .ngesc-modal-body button[type="submit"],
.ngesc-modal .ngesc-modal-body input[type="submit"],
.ngesc-front-wrapper .ngesc-collapse-body .ngesc-btn-primary,
.ngesc-front-wrapper .ngesc-collapse-body .ngesc-form-submit,
.ngesc-front-wrapper .ngesc-collapse-body button[type="submit"],
.ngesc-front-wrapper .ngesc-collapse-body input[type="submit"] {
  background: var(--ngesc-dialog-accent);
  border-color: var(--ngesc-dialog-accent);
  color: #ffffff;
}

.ngesc-modal.ngesc-theme-fintech .ngesc-modal-body .ngesc-btn-primary,
.ngesc-modal.ngesc-theme-fintech .ngesc-modal-body .ngesc-form-submit,
.ngesc-modal.ngesc-theme-fintech .ngesc-modal-body button[type="submit"],
.ngesc-modal.ngesc-theme-fintech .ngesc-modal-body input[type="submit"],
.ngesc-front-wrapper.ngesc-theme-fintech .ngesc-collapse-body .ngesc-btn-primary,
.ngesc-front-wrapper.ngesc-theme-fintech .ngesc-collapse-body .ngesc-form-submit,
.ngesc-front-wrapper.ngesc-theme-fintech .ngesc-collapse-body button[type="submit"],
.ngesc-front-wrapper.ngesc-theme-fintech .ngesc-collapse-body input[type="submit"] {
  color: #ffffff;
}

.ngesc-modal .ngesc-modal-body .ngesc-btn-primary:hover,
.ngesc-modal .ngesc-modal-body .ngesc-form-submit:hover,
.ngesc-modal .ngesc-modal-body button[type="submit"]:hover,
.ngesc-modal .ngesc-modal-body input[type="submit"]:hover,
.ngesc-front-wrapper .ngesc-collapse-body .ngesc-btn-primary:hover,
.ngesc-front-wrapper .ngesc-collapse-body .ngesc-form-submit:hover,
.ngesc-front-wrapper .ngesc-collapse-body button[type="submit"]:hover,
.ngesc-front-wrapper .ngesc-collapse-body input[type="submit"]:hover {
  background: color-mix(in srgb, var(--ngesc-dialog-accent) 88%, #000000);
  border-color: color-mix(in srgb, var(--ngesc-dialog-accent) 88%, #000000);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

/* ----------------------------------------------------------------------------
 * 5.3  Toast Notifications
 * ---------------------------------------------------------------------------- */

#ngesc-toast-container {
	position: fixed;
	top: clamp(16px, 3vw, 28px);
	right: clamp(16px, 3vw, 28px);
	left: auto;
	transform: none;
	z-index: 100000;
	display: flex;
	flex-direction: column;
	gap: 12px;
	pointer-events: none;
	align-items: flex-end;
	width: auto;
	max-width: calc(100vw - 32px);
}

.ngesc-toast {
	position: relative;
	width: min(440px, calc(100vw - 32px));
	min-width: min(320px, calc(100vw - 32px));
	max-width: 440px;
	min-height: 72px;
	padding: 18px 58px 20px 22px;
	border-radius: 8px;
	border: 0;
	background: var(--ngesc-toast-accent, #2563eb);
	color: #ffffff;
	box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
	display: flex;
	align-items: stretch;
	justify-content: center;
	opacity: 0;
	overflow: hidden;
	pointer-events: auto;
	transform: translateY(-6px);
	animation: ngesc-toast-in 0.25s ease-out forwards;
	text-align: left;
}

.ngesc-toast--success { --ngesc-toast-accent: var(--ngesc-success, #047857); }
.ngesc-toast--error   { --ngesc-toast-accent: var(--ngesc-danger, #c9183a); }
.ngesc-toast--info    { --ngesc-toast-accent: var(--ngesc-info, #075db8); }
.ngesc-toast--warning { --ngesc-toast-accent: var(--ngesc-warning, #a45b00); }

.ngesc-toast-main {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
}

.ngesc-toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: transparent;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

.ngesc-toast-message {
  flex: 1;
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
  min-width: 0;
}

.ngesc-toast-close {
  position: absolute;
  top: 50%;
  right: 22px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
}

.ngesc-toast-close:hover {
  color: #ffffff;
}

.ngesc-toast-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.38);
  transform-origin: left center;
  animation: ngesc-toast-progress var(--ngesc-toast-duration, 3000ms) linear forwards;
}

.ngesc-toast.is-stopped .ngesc-toast-progress {
  opacity: 0.35;
}

.ngesc-toast:hover .ngesc-toast-progress {
  animation-play-state: paused;
}

@keyframes ngesc-toast-in {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ngesc-toast-out {
  to { opacity: 0; transform: translateY(-6px); }
}

@keyframes ngesc-toast-progress {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

/* ----------------------------------------------------------------------------
 * 5.4  Confirm Dialog
 * ---------------------------------------------------------------------------- */
.ngesc-confirm {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
}

.ngesc-confirm-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.45);
	z-index: 0;
}

.ngesc-confirm-dialog {
	position: relative;
	z-index: 1;
	max-width: 420px;
	margin: 15vh auto;
	background: #fff;
	border-radius: 8px;
	padding: 20px;
	box-shadow: 0 20px 60px rgba(0,0,0,.25);
	animation: ngesc-confirm-in .2s ease;
}

.ngesc-confirm-title {
	margin: 0 0 3px;
	font-size: 16px;
}

.ngesc-confirm-message {
	font-size: 13px;
	color: #555;
	margin-bottom: 20px;
}

.ngesc-confirm-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}

.ngesc-confirm-ai-prompt .ngesc-confirm-dialog {
	width: min(840px, calc(100vw - 32px));
	max-width: 840px;
	margin: 8vh auto;
	padding: 28px;
}

.ngesc-confirm-ai-prompt .ngesc-confirm-header {
	justify-content: center;
	margin-bottom: 18px;
}

.ngesc-confirm-ai-prompt .ngesc-confirm-icon {
	display: none;
}

.ngesc-confirm-ai-prompt .ngesc-confirm-title {
	font-size: 22px;
	text-align: center;
}

.ngesc-confirm-ai-prompt .ngesc-confirm-message {
	margin-bottom: 18px;
}

.ngesc-confirm-ai-prompt .ngesc-ai-prompt {
	width: 100%;
	min-height: 220px;
	box-sizing: border-box;
	resize: vertical;
}

@keyframes ngesc-confirm-in {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
}
/* Header */
.ngesc-confirm-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.ngesc-confirm-icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	font-weight: 700;
	color: #fff;
	flex-shrink: 0;
}

/* Variants */
.ngesc-confirm--success .ngesc-confirm-icon { background: var(--ngesc-success); }
.ngesc-confirm--warning .ngesc-confirm-icon { background: var(--ngesc-warning); }
.ngesc-confirm--danger  .ngesc-confirm-icon { background: var(--ngesc-danger); }

/* Button variants */
.ngesc-confirm--success .ngesc-confirm-ok { background: var(--ngesc-success); color: var(--ngesc-bg); }
.ngesc-confirm--warning .ngesc-confirm-ok { background: var(--ngesc-warning); color: var(--ngesc-bg); }
.ngesc-confirm--danger  .ngesc-confirm-ok { background: var(--ngesc-danger);  color: var(--ngesc-bg); }




/* ============================================================================
 * 6.0  EMPTY STATES
 * ============================================================================ */

.ngesc-empty-record {
  width: 100%;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #2d3748;
  padding: 80px 20px;
  box-sizing: border-box;
}

.ngesc-empty-state-no-icon {
  border: 1px solid #ddd;
  padding: 50px;
  border-radius: 8px;
  font-size: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.ngesc-icon-wrapper {
  width: 120px;
  height: 120px;
  background: var(--ngesc-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}


/* ============================================================================
 * 7.0  PRINT STYLES
 * ============================================================================ */

@media print {
  body * {
    visibility: hidden;
  }

  #ngesc-invoice-print,
  #ngesc-invoice-print * {
    visibility: visible;
  }

  #ngesc-invoice-print {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }

  body.ngesc-invoice-print-window {
    background: #ffffff;
    color: #111827;
    margin: 0;
    padding: 0;
  }

  body.ngesc-invoice-print-window * {
    visibility: visible;
  }

  body.ngesc-invoice-print-window #ngesc-invoice-print {
    position: static;
    width: auto;
  }

  .ngesc-invoice-printable,
  body.ngesc-invoice-print-window .ngesc-invoice,
  body.ngesc-invoice-print-window .ngesc-crypto-invoice .ngesc-pub-card {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    box-shadow: none;
    color: #111827;
  }

  .ngesc-invoice-printable .ngesc-invoice-header,
  body.ngesc-invoice-print-window .ngesc-btc-invoice-header {
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 18px;
    padding-bottom: 12px;
  }

  .ngesc-invoice-printable .ngesc-meta-row,
  body.ngesc-invoice-print-window .ngesc-btc-invoice-list li {
    border-bottom-color: #e5e7eb;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .ngesc-invoice-footer {
    border-top-color: #e5e7eb;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  /* !important is justified here: print overrides must beat all authored specificity */
  .ngesc-btn,
  .ngesc-icon-btn,
  .ngesc-print-invoice-btn,
  .ngesc-btc-invoice-actions,
  .ngesc-sidebar,
  .ngesc-content-header {
    display: none !important;
  }
}


/* ============================================================================
 * 8.0  ACCESSIBILITY — REDUCED MOTION
 * ============================================================================ */

@media (prefers-reduced-motion: reduce) {
  .ngesc-toast,
  .ngesc-modal-dialog,
  .ngesc-confirm-dialog,
  .ngesc-tab-panel.is-active,
  .ngesc-step-panel.active {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .ngesc-spinner {
    animation-duration: 1.5s;
  }

  .ngesc-metric-card,
  .ngesc-gateway-card {
    transition: none;
  }

  .ngesc-collapse {
    transition: none;
  }
}


/* ============================================================================
 * 9.0  RESPONSIVE MEDIA QUERIES
 * Consolidated from scattered breakpoints throughout the original file.
 * ============================================================================ */

/* ----------------------------------------------------------------------------
 * 9.1  Large Tablets & Small Desktops  (≤ 1024px)
 * ---------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .ngesc-auth-card {
    flex-direction: column;
    min-height: unset;
	height: auto;
  }

  .ngesc-auth-aside,
  .ngesc-auth-main {
    padding: 56px 40px;
  }

  .ngesc-auth-aside h2 {
    font-size: 36px;
  }

  .ngesc-auth-title {
    font-size: 28px;
  }

  .ngesc-form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ----------------------------------------------------------------------------
 * 9.2  Tablets  (≤ 900px)
 * Consolidated 3 separate @media (max-width: 900px) blocks into one.
 * ---------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .ngesc-sidebar {
    width: 220px;
  }

  .ngesc-invoice-body {
    grid-template-columns: 1fr;
  }

  .ngesc-invoice-graphic {
    text-align: center;
  }

  .ngesc-btc-invoice-body {
    grid-template-columns: 1fr;
  }

  .ngesc-profile-header {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }

  .ngesc-profile-avatar {
    justify-self: center;
  }

  .ngesc-profile-name {
    justify-content: center;
  }

  .ngesc-profile-details {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ngesc-profile-value {
    text-align: left;
  }

  .ngesc-form-grid {
    grid-template-columns: 1fr;
  }

  .ngesc-span-1,
  .ngesc-span-2,
  .ngesc-span-3 {
    grid-column: span 1;
  }
}

/* ----------------------------------------------------------------------------
 * 9.3  Small Tablets & Mobile  (≤ 768px)
 * ---------------------------------------------------------------------------- */
@media (max-width: 768px) {
	.ngesc-app {
		display: block;
		margin: 0;
		min-height: 0;
		height: auto;
		box-shadow: none;
		border-radius: 0;
	}

	.ngesc-table-wrap {
	  overflow-x: scroll;
	}

	.ngesc-front-wrapper {
		min-height: 100vh;
		overflow-x: hidden;
	}

	/* Off-canvas sidebar */
	.ngesc-sidebar {
		position: fixed;
		top: 0;
		left: 0;
		width: min(280px, 82vw);
		height: 100vh;
		z-index: 1001;
		transform: translateX(-100%);
		transition: transform 0.25s ease;
		box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
		overflow-y: auto;
		border-right: 1px solid var(--ngesc-border);
		background: var(--ngesc-bg);
	}

	.ngesc-sidebar.is-open {
		transform: translateX(0);
	}

    .ngesc-toggle-desktop {
		display: none;
	}

	.ngesc-toggle-mobile {
		display: inline-flex;
	}

  .ngesc-content {
    width: 100%;
    margin: 0;
    padding: 16px;
  }

  .ngesc-content-header {
    padding: 14px 16px;
    border-radius: 8px;
    gap: 12px;
  }

  .ngesc-content-title {
    min-width: 0;
    gap: 10px;
  }

  .ngesc-page-title {
    min-width: 0;
    font-size: 18px;
    line-height: 1.25;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .ngesc-auth-view {
    margin-top: 0;
    min-height: auto;
  }

  .ngesc-pass-reset-form {
    min-width: 100%;
    width: 100%;
  }

  .ngesc-account-header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .ngesc-account-status {
    text-align: left;
  }

  .ngesc-form-grid {
    grid-template-columns: 1fr;
  }

  .ngesc-span-1,
  .ngesc-span-2,
  .ngesc-span-3 {
    grid-column: span 1;
  }

}

/* ----------------------------------------------------------------------------
 * 9.4  Mobile  (≤ 600px)
 * ---------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .ngesc-guest-wrapper,
  .ngesc-auth-layout {
    padding: 20px;
  }

  .ngesc-auth-aside {
    padding: 48px 24px;
  }

  .ngesc-auth-main {
    padding: 48px 24px;
  }

  .ngesc-auth-aside h2 {
    font-size: 30px;
  }

  .ngesc-auth-title {
    font-size: 24px;
  }

  .ngesc-auth-aside p {
    font-size: 15px;
  }

  .ngesc-btn-outline-light {
    width: 100%;
  }

  .ngesc-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ngesc-form-actions .ngesc-auth-footer {
    text-align: center;
  }

  .ngesc-form-actions .ngesc-btn,
  .ngesc-dashboard-action .ngesc-btn {
    width: 100%;
  }

  .ngesc-dashboard-action {
    justify-content: stretch;
  }

  .ngesc-dashboard-charts {
    grid-template-columns: 1fr;
  }

  .ngesc-dashboard-chart-wrapper {
    min-height: 260px;
  }

  .ngesc-dashboard-chart-wrapper canvas {
    height: 260px !important;
  }
}

/* =========================================================
   CONTRACT VIEW (overview / milestones / conversations)
   ========================================================= */

.ngesc-contract-tabs {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ngesc-contract-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
}

.ngesc-contract-tab-nav {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: var(--ngesc-panel, #f9fafb);
    border: 1px solid var(--ngesc-border, #e5e7eb);
    border-radius: 8px;
}

.ngesc-contract-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ngesc-muted, #6b7280);
    text-decoration: none;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
    white-space: nowrap;
}

.ngesc-contract-tab:hover {
    color: var(--ngesc-text, #111827);
    background: rgba(15, 23, 42, 0.04);
}

.ngesc-contract-tab.is-active {
    background: var(--ngesc-surface, #ffffff);
    color: var(--ngesc-text, #111827);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.04);
}

.ngesc-contract-tab i {
    font-size: 13px;
}

.ngesc-contract-tab .ngesc-badge {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
    font-size: 10px;
    padding: 1px 7px;
    line-height: 1.4;
	border-radius: var(--ngesc-radius-xs);
}

.ngesc-badge-danger {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
}

.ngesc-contract-overview {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ngesc-contract-breakdown-card .ngesc-admin-card-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ngesc-contract-decision-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 24px;
    background: #f8fafc;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    flex-wrap: wrap;
}

.ngesc-contract-decision-text h3 {
    margin: 0 0 4px 0;
    font-size: 17px;
    font-weight: 600;
    color: #0f172a;
}

.ngesc-contract-decision-text p {
    margin: 0;
    font-size: 14px;
}

.ngesc-contract-decision-actions {
    display: inline-flex;
    gap: 10px;
}

.ngesc-contract-stepper {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 22px;
    background: var(--ngesc-panel, #f9fafb);
    border: 1px solid var(--ngesc-border, #e5e7eb);
    border-radius: 8px;
    flex-wrap: wrap;
}

.ngesc-contract-step {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ngesc-muted, #6b7280);
    font-size: 13px;
    font-weight: 500;
}

.ngesc-contract-step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--ngesc-surface, #ffffff);
    border: 1.5px solid var(--ngesc-border, #e5e7eb);
    color: var(--ngesc-muted, #6b7280);
    font-size: 14px;
    transition: all .2s ease;
}

.ngesc-contract-step.is-complete {
    color: #047857;
}

.ngesc-contract-step.is-complete .ngesc-contract-step-icon {
    background: #ecfdf5;
    border-color: #10b981;
    color: #059669;
}

.ngesc-contract-step.is-current {
    color: #1d4ed8;
}

.ngesc-contract-step.is-current .ngesc-contract-step-icon {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #2563eb;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.ngesc-contract-step:not(.is-complete) {
    color: #9ca3af;
}

.ngesc-contract-step:not(.is-complete) .ngesc-contract-step-icon {
    background: #f8fafc;
    border-color: #d1d5db;
    color: #9ca3af;
    box-shadow: none;
}

.ngesc-milestone-cap-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -8px 0 18px;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    font-size: 14px;
}

.ngesc-milestone-cap-summary strong {
    color: #0f172a;
    font-size: 16px;
    font-weight: 700;
}

.ngesc-contract-step-connector {
    flex: 1;
    min-width: 24px;
    height: 2px;
    background: var(--ngesc-border, #e5e7eb);
    border-radius: 2px;
}

.ngesc-contract-step-connector.is-complete {
    background: #10b981;
}

.ngesc-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 14px;
}

.ngesc-alert-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.ngesc-alert-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.ngesc-alert-link {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #b91c1c;
    font-weight: 600;
    text-decoration: none;
}

.ngesc-alert-link:hover {
    text-decoration: underline;
}

.ngesc-contract-breakdown {
    gap: 24px;
}

.ngesc-contract-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ngesc-contract-section-title {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ngesc-muted, #6b7280);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ngesc-contract-section-title i {
    color: var(--ngesc-primary, #2563eb);
}

.ngesc-detail-list {
    display: grid;
    grid-template-columns: minmax(120px, max-content) 1fr;
    gap: 8px 16px;
    margin: 0;
    padding: 18px 20px;
    background: var(--ngesc-surface, #ffffff);
    border: 1px solid var(--ngesc-border, #e5e7eb);
    border-radius: 8px;
}

.ngesc-detail-list dt {
    font-size: 13px;
    color: var(--ngesc-muted, #6b7280);
    font-weight: 500;
}

.ngesc-detail-list dd {
    margin: 0;
    font-size: 14px;
    color: var(--ngesc-text, #111827);
    word-break: break-word;
}

.ngesc-detail-list dd code {
    font-size: 13px;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.06);
}

/* Modern milestone detail modal content. */
.ngesc-milestone-detail {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px;
    color: var(--ngesc-text, #111827);
}

.ngesc-milestone-detail__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--ngesc-border, #e5e7eb);
}

.ngesc-milestone-detail__eyebrow,
.ngesc-milestone-detail__stat span,
.ngesc-milestone-detail__section-title {
    color: var(--ngesc-muted, #6b7280);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.ngesc-milestone-detail__header h3 {
    margin: 4px 0 0;
    color: var(--ngesc-text, #111827);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
}

.ngesc-milestone-detail__status {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.ngesc-milestone-detail__status--warning { background: #fffbeb; color: #92400e; }
.ngesc-milestone-detail__status--active { background: #eff6ff; color: #1d4ed8; }
.ngesc-milestone-detail__status--success { background: #ecfdf5; color: #047857; }
.ngesc-milestone-detail__status--danger { background: #fef2f2; color: #991b1b; }
.ngesc-milestone-detail__status--disputed { background: #f5f3ff; color: #6d28d9; }
.ngesc-milestone-detail__status--neutral { background: #f1f5f9; color: #475569; }

.ngesc-milestone-detail__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.ngesc-milestone-detail__stat {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--ngesc-border, #e5e7eb);
    border-radius: 8px;
    background: var(--ngesc-surface, #ffffff);
}

.ngesc-milestone-detail__stat strong {
    display: block;
    margin-top: 6px;
    color: var(--ngesc-text, #111827);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    word-break: break-word;
}

.ngesc-milestone-detail__section {
    padding: 16px;
    border: 1px solid var(--ngesc-border, #e5e7eb);
    border-radius: 8px;
    background: var(--ngesc-surface, #ffffff);
}

.ngesc-milestone-detail__section--reason {
    border-color: rgba(220, 38, 38, 0.18);
    background: rgba(254, 242, 242, 0.58);
}

.ngesc-milestone-detail__section-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.ngesc-milestone-detail__section-title i {
    color: var(--ngesc-primary, #2563eb);
}

.ngesc-milestone-detail__section p {
    margin: 0;
    color: var(--ngesc-text, #111827);
    font-size: 14px;
    line-height: 1.65;
    word-break: break-word;
}

@media (max-width: 720px) {
    .ngesc-milestone-detail {
        padding: 14px;
    }

    .ngesc-milestone-detail__header {
        flex-direction: column;
    }

    .ngesc-milestone-detail__stats {
        grid-template-columns: 1fr;
    }
}

.ngesc-amount {
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

.ngesc-amount-total {
    font-weight: 700;
    color: var(--ngesc-text, #111827);
}

.ngesc-amount-released {
    color: #047857;
}

.ngesc-status-draft     { background: #f1f5f9; color: #475569; }
.ngesc-status-active    { background: #ecfdf5; color: #047857; }
.ngesc-status-partially_released { background: #fffbeb; color: #b45309; }
.ngesc-status-completed { background: #eff6ff; color: #1d4ed8; }
.ngesc-status-cancelled,
.ngesc-status-trash     { background: #fef2f2; color: #991b1b; }

/* Role pills in DataTable */
.ngesc-role-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.6;
    white-space: nowrap;
}
.ngesc-role-pill--payer  { background: #dbeafe; color: #1e40af; }
.ngesc-role-pill--earner { background: #dcfce7; color: #166534; }

/* Truncated title cell */
.ngesc-cell-title {
    display: inline-block;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.ngesc-contract-share {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ngesc-contract-share-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.ngesc-contract-share-row .ngesc-input {
    flex: 1;
    font-size: 14px;
    background: var(--ngesc-panel, #f9fafb);
}

.ngesc-contract-share-row .ngesc-btn {
  white-space: nowrap;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ngesc-contract-share-row .ngesc-btn.is-copied {
  background: #15a46b;
  border-color: #15a46b;
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(21, 164, 107, 0.22);
  transform: translateY(-1px) scale(1.02);
  animation: ngesc-copy-confirm 0.42s ease;
}

@keyframes ngesc-copy-confirm {
  0% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-2px) scale(1.05);
  }

  100% {
    transform: translateY(-1px) scale(1.02);
  }
}

/* Conversations tab */
.ngesc-contract-chat {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
    align-items: start;
}

.ngesc-contract-chat-main {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: var(--ngesc-surface, #ffffff);
    border: 1px solid var(--ngesc-border, #e5e7eb);
    border-radius: 8px;
    padding: 18px;
    min-height: 460px;
}

.ngesc-contract-messages {
    flex: 1;
    min-height: 360px;
    max-height: 560px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 8px 6px;
    position: relative;
}

.ngesc-contract-messages .ngesc-loader-wrap,
.ngesc-contract-messages .ngesc-pub-loader,
.ngesc-contract-messages .ngesc-ajax-loader {
    margin: auto;
    align-self: center;
}

.ngesc-contract-messages-loader {
    display: inline-flex;
    align-items: center;
    align-self: center;
    gap: 9px;
    margin: auto;
    color: var(--ngesc-muted, #64748b);
    font-size: 13px;
    font-weight: 600;
}

.ngesc-contract-empty {
    margin: auto;
    text-align: center;
    align-self: center;
}

/* ============================================================================
 * 10.0  OPERATIONAL FRONTEND CONSOLIDATION
 * ============================================================================
 * Design-only overrides that align the public app, auth, table, payment,
 * invoice, profile, dispute, and contract surfaces around one compact SaaS
 * system while preserving existing behavior hooks and markup identifiers.
 */

.ngesc-front-wrapper {
  --ngesc-radius: 8px;
  --ngesc-radius-sm: 8px;
  --ngesc-radius-md: 8px;
  --ngesc-radius-lg: 8px;
  --ngesc-radius-xl: 8px;
  --ngesc-panel: #f8fafc;
  --ngesc-surface: #ffffff;
  --ngesc-public-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  --ngesc-public-shadow-raised: 0 8px 18px rgba(15, 23, 42, 0.08);
  min-height: 100vh;
  height: auto;
  margin-bottom: clamp(48px, 7vh, 150px);
  background: transparent;
  color: #0f172a;
}

.ngesc-front-wrapper .ngesc-app {
  min-height: 0;
  height: auto;
  align-items: stretch;
  background: #f8fafc;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
  box-shadow: none;
  margin-bottom: clamp(40px, 6vh, 72px);
  overflow: hidden;
}

.ngesc-front-wrapper .ngesc-guest-container {
  position: relative;
  min-height: 0;
  height: auto;
  margin: clamp(18px, 3vh, 36px) 0 0;
}

.ngesc-front-wrapper .ngesc-content {
  min-width: 0;
  padding: 40px 50px 100px;
  background: #f8fafc;
}

.ngesc-front-wrapper .ngesc-content-header {
  min-height: 56px;
  padding: 10px 14px;
  margin-bottom: 30px;
  background: #ffffff;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
  box-shadow: var(--ngesc-public-shadow);
}

.ngesc-front-wrapper .ngesc-page-title {
  font-size: 17px;
  line-height: 1.35;
}

.ngesc-front-wrapper .ngesc-content-body,
.ngesc-front-wrapper .ngesc-page-content,
.ngesc-front-wrapper .ngesc-dashboard-page,
.ngesc-front-wrapper .ngesc-table-page,
.ngesc-front-wrapper .ngesc-contract-page,
.ngesc-front-wrapper .ngesc-user-profile,
.ngesc-front-wrapper .ngesc-view-dispute {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.ngesc-front-wrapper .ngesc-header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}

.ngesc-front-wrapper .ngesc-sidebar {
  flex: 0 0 250px;
  width: 250px;
  background: #ffffff;
  border-right: 1px solid #dbe3ea;
}

.ngesc-front-wrapper .ngesc-sidebar-collapsed {
  flex-basis: 76px;
  width: 76px;
}

.ngesc-front-wrapper .ngesc-sidebar-header {
  min-height: 64px;
  padding: 24px;
  border-bottom: 1px solid #eef2f7;
}

.ngesc-front-wrapper .ngesc-brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.ngesc-front-wrapper .ngesc-menu {
  padding: 10px;
}

.ngesc-front-wrapper .ngesc-menu li a,
.ngesc-front-wrapper .ngesc-dropdown-toggle {
  min-height: 40px;
  margin: 2px 0;
  padding: 10px 12px;
  border-radius: 8px;
  color: #475569;
  font-size: 14px;
}

.ngesc-front-wrapper .ngesc-menu li a:hover,
.ngesc-front-wrapper .ngesc-menu li.active > a,
.ngesc-front-wrapper .ngesc-menu-link:hover,
.ngesc-front-wrapper .ngesc-menu li.active > .ngesc-menu-link,
.ngesc-front-wrapper .ngesc-dropdown.is-open > .ngesc-menu-link {
  background: #eff6ff;
  color: #1d4ed8;
}

.ngesc-front-wrapper .ngesc-menu-link:hover i,
.ngesc-front-wrapper .ngesc-menu-link:hover span,
.ngesc-front-wrapper .ngesc-dropdown.is-open > .ngesc-menu-link i,
.ngesc-front-wrapper .ngesc-dropdown.is-open > .ngesc-menu-link span {
  color: #1d4ed8;
}

.ngesc-front-wrapper .ngesc-submenu {
  margin-top: 4px;
  padding: 4px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 8px;
}

.ngesc-front-wrapper .ngesc-submenu li a {
  min-height: 36px;
  padding: 8px 10px 8px 34px;
  font-size: 13px;
}

.ngesc-front-wrapper .ngesc-submenu li.active > a,
.ngesc-front-wrapper .ngesc-submenu a.is-active {
  background: #e0f2fe;
  color: var(--ngesc-primary);
  border-left: 0;
}

.ngesc-front-wrapper .ngesc-submenu li a:hover,
.ngesc-front-wrapper .ngesc-submenu li a:hover i,
.ngesc-front-wrapper .ngesc-submenu li a:hover span {
  color: var(--ngesc-primary);
}

.ngesc-front-wrapper .ngesc-submenu li a:hover {
  background: #eff6ff;
}

.ngesc-front-wrapper .ngesc-user-toggle {
  padding: 8px;
  border: 1px solid #eef2f7;
  border-radius: 8px;
  background: #f8fafc;
}

.ngesc-front-wrapper .ngesc-user-meta {
  min-width: 0;
}

.ngesc-front-wrapper .ngesc-user-meta strong,
.ngesc-front-wrapper .ngesc-user-meta small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ngesc-front-wrapper .ngesc-header-user {
  display: inline-flex;
}

.ngesc-front-wrapper .ngesc-header-user-toggle {
  min-height: 38px;
  width: auto;
  gap: 8px;
  padding: 5px 8px;
  background: #ffffff;
}

.ngesc-front-wrapper .ngesc-header-user-toggle img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.ngesc-front-wrapper .ngesc-header-username {
  max-width: 150px;
  overflow: hidden;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ngesc-front-wrapper .ngesc-header-user-submenu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  width: 190px;
  box-shadow: var(--ngesc-public-shadow-raised);
}

.ngesc-front-wrapper .ngesc-pub-loader {
  position: absolute;
  inset: 0;
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 96px;
  margin: 0;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.ngesc-front-wrapper .ngesc-contract-messages .ngesc-pub-loader {
  position: static;
  width: auto;
  height: auto;
  min-height: 0;
  background: transparent;
}

.ngesc-front-wrapper .ngesc-pub-card,
.ngesc-front-wrapper .ngesc-pub-card--bordered,
.ngesc-front-wrapper .ngesc-admin-card,
.ngesc-front-wrapper .ngesc-surface,
.ngesc-front-wrapper .ngesc-empty-state-no-icon {
  background: #ffffff;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
  box-shadow: var(--ngesc-public-shadow);
}

.ngesc-front-wrapper .ngesc-pub-card,
.ngesc-front-wrapper .ngesc-admin-card {
  padding: 20px;
  overflow: visible;
}

.ngesc-front-wrapper .ngesc-pub-card--sm,
.ngesc-front-wrapper .ngesc-pub-card--lg {
  padding: 30px;
  border-radius: 8px;
}

.ngesc-front-wrapper .ngesc-pub-card-header,
.ngesc-front-wrapper .ngesc-pub-card__header,
.ngesc-front-wrapper .ngesc-admin-card-header,
.ngesc-front-wrapper .ngesc-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #eef2f7;
  background: #ffffff;
}

.ngesc-front-wrapper .ngesc-pub-card__body,
.ngesc-front-wrapper .ngesc-admin-card-body {
  padding: 32px 10px 60px;
}

.ngesc-front-wrapper .ngesc-pub-card-header .ngesc-pub-card__title,
.ngesc-front-wrapper .ngesc-pub-card__title,
.ngesc-front-wrapper .ngesc-page-header .ngesc-page-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 650;
  color: #0f172a;
}

.ngesc-front-wrapper .ngesc-btn {
  min-height: 38px;
  height: auto;
  padding: 9px 14px;
  gap: 8px;
  border-radius: 8px;
  line-height: 1.2;
  white-space: normal;
  text-align: center;
  word-break: normal;
}

.ngesc-front-wrapper .ngesc-auth-aside .ngesc-btn {
    padding: 15px 25px;
}

.ngesc-front-wrapper .ngesc-btn-sm {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 12.5px;
}

.ngesc-front-wrapper .ngesc-btn-outline-light,
.ngesc-front-wrapper .ngesc-select-btn,
.ngesc-front-wrapper .ngesc-account-actions .ngesc-btn {
  border-radius: var(--ngesc-radius-pill);
}

.ngesc-front-wrapper .ngesc-btn-primary:hover,
.ngesc-front-wrapper .ngesc-table-action-btn:hover,
.ngesc-front-wrapper .ngesc-gateway-card:hover,
.ngesc-front-wrapper .ngesc-metric-card:hover {
  box-shadow: var(--ngesc-public-shadow-raised);
}

.ngesc-front-wrapper .ngesc-input,
.ngesc-front-wrapper .ngesc-textarea,
.ngesc-front-wrapper .ngesc-select,
.ngesc-front-wrapper .ngesc-form input[type="color"],
.ngesc-front-wrapper .ngesc-form input[type="date"],
.ngesc-front-wrapper .ngesc-form input[type="datetime-local"],
.ngesc-front-wrapper .ngesc-form input[type="datetime"],
.ngesc-front-wrapper .ngesc-form input[type="email"],
.ngesc-front-wrapper .ngesc-form input[type="month"],
.ngesc-front-wrapper .ngesc-form input[type="number"],
.ngesc-front-wrapper .ngesc-form input[type="range"],
.ngesc-front-wrapper .ngesc-form input[type="tel"],
.ngesc-front-wrapper .ngesc-form input[type="text"],
.ngesc-front-wrapper .ngesc-form input[type="time"],
.ngesc-front-wrapper .ngesc-form input[type="url"],
.ngesc-front-wrapper .ngesc-form input[type="week"] {
  min-height: 40px;
  border-radius: 8px;
  border-color: #cbd5e1;
  background: #ffffff;
}

.ngesc-front-wrapper .ngesc-login-inner .ngesc-input,
.ngesc-front-wrapper .ngesc-login-inner input[type="text"],
.ngesc-front-wrapper .ngesc-pass-reset-form .ngesc-input,
.ngesc-front-wrapper .ngesc-pass-reset-form input[type="text"] {
  border-radius: 8px;
  padding-inline: 42px 14px;
}

.ngesc-front-wrapper .ngesc-form-grid {
  gap: 16px;
  margin-bottom: 20px;
}

.ngesc-front-wrapper .ngesc-form-actions {
  margin-top: 20px;
}

.ngesc-front-wrapper .ngesc-auth-view {
  min-height: auto;
  padding: clamp(16px, 3vh, 28px) 16px;
}

.ngesc-front-wrapper .ngesc-auth-view--guest {
  align-items: center;
  flex-direction: column;
  gap: 12px;
}

.ngesc-front-wrapper .ngesc-login-inner,
.ngesc-front-wrapper .ngesc-signup-inner,
.ngesc-front-wrapper .ngesc-pass-reset-form {
  min-width: 0;
  margin: 0 auto;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
  box-shadow: var(--ngesc-public-shadow);
}

.ngesc-front-wrapper .ngesc-auth-view--guest .ngesc-login-inner,
.ngesc-front-wrapper .ngesc-auth-view--guest .ngesc-signup-inner {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.ngesc-front-wrapper .ngesc-login-inner {
  width: min(100%, 920px);
  max-width: 100%;
}

.ngesc-front-wrapper .ngesc-signup-inner {
  width: 100%;
  max-width: 100%;
}

.ngesc-front-wrapper .ngesc-pass-reset-form {
  width: min(100%, 520px);
}

/* Reference login card layout shared across frontend themes. */
.ngesc-front-wrapper .ngesc-auth-view--guest .ngesc-login-inner {
  width: min(100%, 1440px);
}

.ngesc-front-wrapper .ngesc-auth-view--guest .ngesc-login-inner .ngesc-auth-card {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(360px, 1fr);
  align-items: stretch;
  width: 100%;
  max-width: none;
  min-height: clamp(340px, 28vw, 420px);
  height: auto;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  border: 0;
  border-radius: 36px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.08);
}

.ngesc-front-wrapper .ngesc-auth-view--guest .ngesc-login-inner .ngesc-auth-aside {
  flex: none;
  min-height: 100%;
  padding: clamp(38px, 5vw, 72px) clamp(34px, 5vw, 72px);
  background: var(--ngesc-primary, #1458ff);
  border-radius: 36px;
  text-align: center;
}

.ngesc-front-wrapper .ngesc-auth-view--guest .ngesc-login-inner .ngesc-auth-aside h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: clamp(30px, 2.8vw, 42px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.12;
}

.ngesc-front-wrapper .ngesc-auth-view--guest .ngesc-login-inner .ngesc-auth-aside p {
  margin: 0;
  max-width: none;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(15px, 1.15vw, 19px);
  line-height: 1.35;
  opacity: 1;
}

.ngesc-front-wrapper .ngesc-auth-view--guest .ngesc-login-inner .ngesc-auth-aside .ngesc-btn-outline-light {
  width: auto;
  min-width: 154px;
  min-height: 46px;
  margin-top: 26px;
  padding: 10px 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--ngesc-radius-pill);
  background: transparent;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  box-shadow: none;
}

.ngesc-front-wrapper .ngesc-auth-view--guest .ngesc-login-inner .ngesc-auth-aside .ngesc-btn-outline-light:hover,
.ngesc-front-wrapper .ngesc-auth-view--guest .ngesc-login-inner .ngesc-auth-aside .ngesc-btn-outline-light:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: none;
  text-decoration: none;
}

.ngesc-front-wrapper .ngesc-auth-view--guest .ngesc-login-inner .ngesc-auth-main {
  flex: none;
  justify-content: center;
  padding: clamp(32px, 4.5vw, 64px) clamp(42px, 5vw, 72px);
}

.ngesc-front-wrapper .ngesc-auth-view--guest .ngesc-login-inner .ngesc-auth-title {
  margin: 0 0 24px;
  color: #666666;
  font-size: clamp(24px, 1.75vw, 30px);
  font-weight: 400;
  line-height: 1.2;
}

.ngesc-front-wrapper .ngesc-auth-view--guest .ngesc-login-inner .ngesc-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ngesc-front-wrapper .ngesc-auth-view--guest .ngesc-login-inner .ngesc-field {
  margin: 0 0 22px;
}

.ngesc-front-wrapper .ngesc-auth-view--guest .ngesc-login-inner .ngesc-field label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  color: #666666;
  font-size: clamp(16px, 1.1vw, 19px);
  font-weight: 400;
  line-height: 1.2;
}

.ngesc-front-wrapper .ngesc-auth-view--guest .ngesc-login-inner .ngesc-field label i {
  color: #5b5b5b;
  font-size: 16px;
  line-height: 1;
}

.ngesc-front-wrapper .ngesc-auth-view--guest .ngesc-login-inner .ngesc-input,
.ngesc-front-wrapper .ngesc-auth-view--guest .ngesc-login-inner input[type="text"],
.ngesc-front-wrapper .ngesc-auth-view--guest .ngesc-login-inner input[type="password"] {
  width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 0 50px 0 24px;
  border: 1px solid #d3d3d3;
  border-radius: var(--ngesc-radius-pill);
  background: #ffffff;
  color: #374151;
  font-size: 15px;
  font-weight: 400;
  box-shadow: none;
}

.ngesc-front-wrapper .ngesc-auth-view--guest .ngesc-login-inner .ngesc-input::placeholder {
  color: #c7cbd1;
}

.ngesc-front-wrapper .ngesc-auth-view--guest .ngesc-login-inner .ngesc-input:focus,
.ngesc-front-wrapper .ngesc-auth-view--guest .ngesc-login-inner input[type="text"]:focus,
.ngesc-front-wrapper .ngesc-auth-view--guest .ngesc-login-inner input[type="password"]:focus {
  border-color: var(--ngesc-primary, #1458ff);
  box-shadow: 0 0 0 3px var(--ngesc-dialog-accent-soft, rgba(20, 88, 255, 0.14));
}

.ngesc-front-wrapper .ngesc-auth-view--guest .ngesc-login-inner .ngesc-pass-toggle {
  right: 18px;
  width: 24px;
  height: 24px;
  color: #666666;
}

.ngesc-front-wrapper .ngesc-auth-view--guest .ngesc-login-inner .ngesc-btn-primary {
  width: 100%;
  min-height: 46px;
  margin-top: 6px;
  padding: 11px 20px;
  border-color: var(--ngesc-primary, #1458ff);
  border-radius: var(--ngesc-radius-pill);
  background: var(--ngesc-primary, #1458ff);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 6px 10px rgba(15, 23, 42, 0.2);
}

.ngesc-front-wrapper .ngesc-auth-view--guest .ngesc-login-inner .ngesc-btn-primary:hover,
.ngesc-front-wrapper .ngesc-auth-view--guest .ngesc-login-inner .ngesc-btn-primary:focus {
  border-color: var(--ngesc-primary-dark, #0f46d9);
  background: var(--ngesc-primary-dark, #0f46d9);
  color: #ffffff;
  box-shadow: 0 8px 14px rgba(15, 23, 42, 0.22);
}

.ngesc-front-wrapper .ngesc-auth-view--guest .ngesc-login-inner .ngesc-auth-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  color: var(--ngesc-primary, #1458ff);
  font-size: clamp(15px, 1.1vw, 18px);
}

.ngesc-front-wrapper .ngesc-auth-view--guest .ngesc-login-inner .ngesc-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ngesc-primary, #1458ff);
  font-weight: 400;
}

.ngesc-front-wrapper .ngesc-auth-view--guest .ngesc-login-inner .ngesc-checkbox input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--ngesc-primary, #1458ff);
}

.ngesc-front-wrapper .ngesc-auth-view--guest .ngesc-login-inner .ngesc-link {
  color: var(--ngesc-primary, #1458ff);
  font-weight: 400;
  text-align: right;
}

@media (max-width: 900px) {
  .ngesc-front-wrapper .ngesc-auth-view--guest .ngesc-login-inner {
    width: min(100%, 640px);
  }

  .ngesc-front-wrapper .ngesc-auth-view--guest .ngesc-login-inner .ngesc-auth-card {
    grid-template-columns: 1fr;
    border-radius: 28px;
  }

  .ngesc-front-wrapper .ngesc-auth-view--guest .ngesc-login-inner .ngesc-auth-aside {
    min-height: 220px;
    border-radius: 28px;
  }
}

@media (max-width: 600px) {
  .ngesc-front-wrapper .ngesc-auth-view--guest {
    padding: 16px 12px;
  }

  .ngesc-front-wrapper .ngesc-auth-view--guest .ngesc-login-inner .ngesc-auth-card {
    border-radius: 22px;
  }

  .ngesc-front-wrapper .ngesc-auth-view--guest .ngesc-login-inner .ngesc-auth-aside {
    min-height: 190px;
    padding: 34px 24px;
    border-radius: 22px;
  }

  .ngesc-front-wrapper .ngesc-auth-view--guest .ngesc-login-inner .ngesc-auth-main {
    padding: 28px 22px 26px;
  }

  .ngesc-front-wrapper .ngesc-auth-view--guest .ngesc-login-inner .ngesc-field {
    margin-bottom: 20px;
  }

  .ngesc-front-wrapper .ngesc-auth-view--guest .ngesc-login-inner .ngesc-auth-meta {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ngesc-front-wrapper .ngesc-auth-view--guest .ngesc-login-inner .ngesc-link {
    text-align: left;
  }
}

.ngesc-front-wrapper .ngesc-auth-view--guest .ngesc-pub-card.ngesc-p-4 {
  padding: 24px;
}

.ngesc-front-wrapper .ngesc-auth-view--guest .ngesc-auth-title.ngesc-mb-5 {
  margin-bottom: 18px;
}

.ngesc-front-wrapper .ngesc-auth-page-header {
  width: 100%;
  color: #475569;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  line-height: 1.35;
  text-align: center;
}

.ngesc-front-wrapper .ngesc-auth-view--guest .ngesc-auth-page-header + .ngesc-signup-inner {
  width: 100%;
}

/* Keep the signup Terms confirmation aligned as one accessible control. */
.ngesc-front-wrapper .ngesc-auth-view--guest .ngesc-signup-inner .ngesc-checkbox-field {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  flex-direction: row;
  gap: 10px;
  width: auto;
  margin: 0;
  color: var(--ngesc-text, #334155);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.ngesc-front-wrapper .ngesc-auth-view--guest .ngesc-signup-inner .ngesc-checkbox-field input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--ngesc-primary, #1458ff);
}

.ngesc-front-wrapper .ngesc-auth-view--guest .ngesc-signup-inner .ngesc-checkbox-field a {
  color: var(--ngesc-primary, #1458ff);
  font-weight: 500;
  text-decoration: none;
}

.ngesc-front-wrapper .ngesc-auth-view--guest .ngesc-signup-inner .ngesc-checkbox-field a:hover {
  text-decoration: underline;
}

.ngesc-front-wrapper .ngesc-auth-view--guest .ngesc-signup-inner .ngesc-checkbox-field a:focus-visible {
  outline: 2px solid var(--ngesc-primary, #1458ff);
  outline-offset: 2px;
  border-radius: 2px;
}

.ngesc-front-wrapper .ngesc-dashboard-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.ngesc-front-wrapper .ngesc-dashboard-action {
  justify-content: flex-end;
}

.ngesc-front-wrapper .ngesc-metric-card {
  padding: 30px;
  text-align: left;
  border-radius: 8px;
  cursor: default;
}

.ngesc-front-wrapper .ngesc-metric-card:hover {
  transform: none;
}

.ngesc-front-wrapper .ngesc-metric-icon {
  width: 36px;
  height: 36px;
  margin: 0 0 14px;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 16px;
}

.ngesc-front-wrapper .ngesc-metric-value {
  font-size: 20px;
}

.ngesc-front-wrapper .ngesc-table-wrap {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
  background: #ffffff;
  padding: 15px;
}

.ngesc-front-wrapper .ngesc-table-wrap .dataTables_wrapper,
.ngesc-front-wrapper .ngesc-table-wrapper .dataTables_wrapper,
.ngesc-front-wrapper .ngesc-table-wrap .dt-container,
.ngesc-front-wrapper .ngesc-table-wrapper .dt-container {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.ngesc-front-wrapper .ngesc-table-wrap .dataTables_scroll,
.ngesc-front-wrapper .ngesc-table-wrapper .dataTables_scroll,
.ngesc-front-wrapper .ngesc-table-wrap .dt-layout-row,
.ngesc-front-wrapper .ngesc-table-wrapper .dt-layout-row,
.ngesc-front-wrapper .ngesc-table-wrap .dt-layout-cell,
.ngesc-front-wrapper .ngesc-table-wrapper .dt-layout-cell,
.ngesc-front-wrapper .ngesc-table-wrap .dt-layout-table,
.ngesc-front-wrapper .ngesc-table-wrapper .dt-layout-table,
.ngesc-front-wrapper .ngesc-table-wrap .dt-layout-table > div,
.ngesc-front-wrapper .ngesc-table-wrapper .dt-layout-table > div {
  max-width: 100%;
  min-width: 0;
}

.ngesc-front-wrapper .ngesc-table-wrap .dataTables_scrollBody,
.ngesc-front-wrapper .ngesc-table-wrapper .dataTables_scrollBody,
.ngesc-front-wrapper .ngesc-table-wrap .dt-scroll,
.ngesc-front-wrapper .ngesc-table-wrapper .dt-scroll,
.ngesc-front-wrapper .ngesc-table-wrap .dt-scroll-body,
.ngesc-front-wrapper .ngesc-table-wrapper .dt-scroll-body,
.ngesc-front-wrapper .ngesc-table-wrap .dt-layout-table,
.ngesc-front-wrapper .ngesc-table-wrapper .dt-layout-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Initial DataTable placeholder lives inside the table card, then AJAX replaces it. */
.ngesc-front-wrapper .ngesc-table-wrap > .ngesc-table-loader,
.ngesc-front-wrapper .ngesc-table-wrapper > .ngesc-table-loader {
  position: static;
  inset: auto;
  width: 100%;
  height: auto;
  min-height: 220px;
  margin: 0;
  border-radius: 6px;
  background: #ffffff;
}

/* Float row action menus above scrollable frontend DataTable wrappers. */
.ngesc-action-dropdown.ngesc-action-dropdown--floating {
  display: block;
  position: absolute;
  top: var(--ngesc-action-dropdown-top);
  left: var(--ngesc-action-dropdown-left);
  right: auto;
  z-index: 10020;
}

.ngesc-front-wrapper .ngesc-data-table,
.ngesc-front-wrapper table.dataTable {
  width: 100% !important;
  min-width: 720px;
  margin: 0 !important;
  border: 0;
  border-radius: 0;
  padding: 0;
  border-collapse: collapse;
}

.ngesc-front-wrapper .ngesc-data-table thead th,
.ngesc-front-wrapper table.dataTable thead th {
  padding: 12px 14px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #dbe3ea;
  white-space: nowrap;
}

.ngesc-front-wrapper .ngesc-data-table tbody td,
.ngesc-front-wrapper table.dataTable tbody td {
  padding: 12px 14px;
  border-top: 1px solid #eef2f7;
  font-size: 13.5px;
  color: #334155;
  vertical-align: middle;
}

.ngesc-front-wrapper .ngesc-data-table tbody tr:hover,
.ngesc-front-wrapper table.dataTable tbody tr:hover {
  background: #f8fafc;
}

.ngesc-front-wrapper .ngesc-datatable-toolbar,
.ngesc-front-wrapper .ngesc-notifications-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  max-width: 100%;
  min-width: 0;
}

.ngesc-front-wrapper .ngesc-dt-left {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  min-width: 0;
}

.ngesc-front-wrapper .ngesc-dt-center {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  min-width: 0;
}

.ngesc-front-wrapper .ngesc-dt-right {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  min-width: 0;
}

.ngesc-front-wrapper .ngesc-dt-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ngesc-front-wrapper .ngesc-dt-actions .ngesc-select,
.ngesc-front-wrapper .ngesc-notifications-toolbar .ngesc-select {
  width: auto;
  min-width: 170px;
  max-width: 220px;
}

.ngesc-front-wrapper .ngesc-notifications-toolbar #ngesc-notification-filter-date {
  min-width: 160px;
}

.ngesc-front-wrapper .ngesc-dt-actions .ngesc-apply-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.ngesc-front-wrapper .ngesc-dt-actions .ngesc-apply-btn.ngesc-hide {
  display: none !important;
}

.ngesc-front-wrapper .ngesc-dispute-resource {
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.ngesc-front-wrapper .ngesc-dispute-resource + .ngesc-dispute-resource {
  margin-top: 4px;
}

.ngesc-front-wrapper .ngesc-dispute-resource small {
  min-width: 58px;
  color: var(--ngesc-muted, #64748b);
  font-weight: 600;
}

.ngesc-front-wrapper .ngesc-dispute-resource-link {
  color: var(--ngesc-primary, #2563eb);
  font-weight: 600;
  text-decoration: none;
}

.ngesc-front-wrapper .ngesc-dispute-resource-link:hover,
.ngesc-front-wrapper .ngesc-dispute-resource-link:focus {
  text-decoration: underline;
}

.ngesc-front-wrapper .ngesc-selected-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #475569;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

.ngesc-front-wrapper .ngesc-status-tabs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
}

.ngesc-front-wrapper .ngesc-status-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid #dbe3ea;
  border-radius: var(--ngesc-radius-pill);
  color: #64748b;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  background: #ffffff;
}

.ngesc-front-wrapper .ngesc-status-tab:hover,
.ngesc-front-wrapper .ngesc-status-tab:focus {
  color: #334155;
  border-color: #cbd5e1;
  background: #f8fafc;
}

.ngesc-front-wrapper .ngesc-status-tab--active {
  color: #ffffff;
  border-color: var(--ngesc-primary);
  background: var(--ngesc-primary);
}

/* Notification table read state and delete feedback. */
.ngesc-front-wrapper .ngesc-notification-table-unread {
  font-weight: 700;
  color: #0f172a;
}

.ngesc-front-wrapper #ngesc-notifications-table tr.ngesc-row-delete-fire > td {
  animation: ngesc-notification-delete-fire 360ms ease forwards;
}

@keyframes ngesc-notification-delete-fire {
  0% {
    background: #fff7ed;
    box-shadow: inset 4px 0 0 #f97316;
    opacity: 1;
  }
  55% {
    background: #fee2e2;
    box-shadow: inset 7px 0 0 #ef4444;
  }
  100% {
    background: #fff1f2;
    box-shadow: inset 0 0 0 transparent;
    opacity: 0.34;
  }
}

.ngesc-front-wrapper .dataTables_wrapper .dataTables_length,
.ngesc-front-wrapper .dataTables_wrapper .dataTables_filter,
.ngesc-front-wrapper .dataTables_wrapper .dataTables_info,
.ngesc-front-wrapper .dataTables_wrapper .dataTables_paginate {
  padding: 12px 14px;
  color: #475569;
  font-size: 13px;
}

.ngesc-front-wrapper .dataTables_wrapper .dataTables_filter input,
.ngesc-front-wrapper .dataTables_wrapper .dataTables_length select {
  min-height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}

@media (max-width: 900px) {
  .ngesc-front-wrapper .ngesc-datatable-toolbar,
  .ngesc-front-wrapper .ngesc-notifications-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .ngesc-front-wrapper .ngesc-dt-left,
  .ngesc-front-wrapper .ngesc-dt-center,
  .ngesc-front-wrapper .ngesc-dt-right {
    justify-content: flex-start;
  }

  .ngesc-front-wrapper .ngesc-dt-actions,
  .ngesc-front-wrapper .ngesc-status-tabs {
    width: 100%;
  }

  .ngesc-front-wrapper .ngesc-dt-actions .ngesc-select,
  .ngesc-front-wrapper .ngesc-notifications-toolbar .ngesc-select {
    flex: 1 1 170px;
    max-width: none;
  }
}

.ngesc-front-wrapper .ngesc-table-action-btn,
.ngesc-front-wrapper .ngesc-action-toggle {
  border-radius: 8px;
}

.ngesc-front-wrapper .ngesc-status,
.ngesc-front-wrapper .ngesc-dispute-status,
.ngesc-front-wrapper .ngesc-role-pill,
.ngesc-front-wrapper .ngesc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 2px 8px 1px 8px;
  border-radius: var(--ngesc-radius-pill);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
}

.ngesc-front-wrapper .ngesc-gateway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.ngesc-front-wrapper .ngesc-gateway-card,
.ngesc-front-wrapper .pricing-item.ngesc-gateway-card {
  margin: 0;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #dbe3ea;
  background: #ffffff;
  box-shadow: var(--ngesc-public-shadow);
  transform: none;
}

.ngesc-front-wrapper .ngesc-gateway-card:hover {
  transform: none;
  border-color: #bfdbfe;
}

.ngesc-front-wrapper .ngesc-gateway-row {
  align-items: center;
  gap: 14px;
}

.ngesc-front-wrapper .ngesc-divider {
  display: none;
}

.ngesc-front-wrapper .ngesc-gateway-icon {
  width: 34px;
  height: 34px;
}

.ngesc-front-wrapper .ngesc-invoice,
.ngesc-front-wrapper .ngesc-btc-invoice {
  max-width: 960px;
  margin: 0 auto;
}

.ngesc-front-wrapper .ngesc-btc-invoice .ngesc-pub-card {
  padding: 24px;
  border-radius: 8px;
  border-color: #dbe3ea;
  box-shadow: var(--ngesc-public-shadow);
}

.ngesc-front-wrapper .ngesc-btc-invoice-header,
.ngesc-front-wrapper .ngesc-invoice-header {
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom-color: #dbe3ea;
}

.ngesc-front-wrapper .ngesc-btc-invoice-body {
  gap: 24px;
}

.ngesc-front-wrapper .ngesc-btc-block,
.ngesc-front-wrapper .ngesc-btc-invoice-notes {
  border-radius: 8px;
  background: #f8fafc;
  border-color: #dbe3ea;
}

.ngesc-front-wrapper .ngesc-tabs {
  gap: 18px;
}

.ngesc-front-wrapper .ngesc-tabs-nav {
  gap: 4px;
  padding: 5px 10px;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
  background: #f8fafc;
  overflow-x: auto;
}

.ngesc-front-wrapper .ngesc-tab-btn {
  padding: 9px 12px;
  border-radius: 8px;
}

.ngesc-front-wrapper .ngesc-tab-btn.is-active {
  background: #ffffff;
  box-shadow: var(--ngesc-public-shadow);
}

.ngesc-front-wrapper .ngesc-tab-btn.is-active::after {
  display: none;
}

.ngesc-front-wrapper .ngesc-profile-header {
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
}

.ngesc-front-wrapper .ngesc-profile-avatar img,
.ngesc-front-wrapper .ngesc-rounded {
  border-radius: 8px;
}

.ngesc-front-wrapper .ngesc-profile-details {
  gap: 24px;
  margin-top: 24px;
}

.ngesc-front-wrapper .ngesc-profile-item {
  gap: 12px;
  padding: 11px 0;
}

.ngesc-front-wrapper .ngesc-account-layout {
  max-width: none;
  padding: 30px;
}

.ngesc-front-wrapper .ngesc-account-header-row {
  margin-bottom: 22px;
}

.ngesc-front-wrapper .ngesc-avatar-box {
  width: 96px;
  height: 96px;
  border-radius: 8px;
}

.ngesc-front-wrapper .ngesc-account-actions {
  bottom: 12px;
  margin-top: 22px;
}

.ngesc-front-wrapper .ngesc-dispute-header {
  flex-wrap: wrap;
  align-items: stretch;
}

.ngesc-front-wrapper .ngesc-dispute-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px 16px;
  flex: 1 1 100%;
  width: 100%;
}

.ngesc-front-wrapper .ngesc-dispute-meta.ngesc-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ngesc-front-wrapper .ngesc-dispute-meta li {
  align-items: flex-start;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid #eef2f7;
  border-radius: 8px;
  background: #f8fafc;
}

/* Resolved dispute summary shown in the public dispute header. */
.ngesc-front-wrapper .ngesc-dispute-resolution-summary {
  flex: 1 1 100%;
  width: 100%;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #eff6ff;
  color: #475569;
}

.ngesc-front-wrapper .ngesc-dispute-resolution-summary strong {
  display: block;
  margin-bottom: 8px;
  color: #1f2937;
}

.ngesc-front-wrapper .ngesc-dispute-resolution-summary p {
  margin: 0;
}

.ngesc-front-wrapper .ngesc-dispute-resolution-summary p + p {
  margin-top: 10px;
}

.ngesc-front-wrapper .ngesc-contract-tab-nav,
.ngesc-front-wrapper .ngesc-contract-stepper,
.ngesc-front-wrapper .ngesc-detail-list,
.ngesc-front-wrapper .ngesc-contract-chat-main,
.ngesc-front-wrapper .ngesc-contract-chat-side,
.ngesc-front-wrapper .ngesc-alert,
.ngesc-front-wrapper .ngesc-contract-dropzone,
.ngesc-front-wrapper .ngesc-contract-attachment-preview {
  border-radius: 8px;
}

.ngesc-front-wrapper .ngesc-contract-decision-card {
  padding: 18px;
  background: #f8fafc;
  border-color: #bfdbfe;
  border-radius: 8px;
}

.ngesc-front-wrapper .ngesc-contract-step-connector {
  background: #dbe3ea;
}

.ngesc-front-wrapper .ngesc-contract-step-connector.is-complete {
  background: #10b981;
}

.ngesc-front-wrapper .ngesc-contract-message-bubble {
  border-radius: 8px;
  background: #f8fafc;
}

.ngesc-front-wrapper .ngesc-contract-message.is-self .ngesc-contract-message-bubble {
  background: #1d4ed8;
  border-color: #1e40af;
}

.ngesc-front-wrapper .ngesc-contract-message--payer .ngesc-contract-message-bubble {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e3a8a;
}

.ngesc-front-wrapper .ngesc-contract-message--earner .ngesc-contract-message-bubble {
  background: #ecfdf5;
  border-color: #bbf7d0;
  color: #064e3b;
}

.ngesc-front-wrapper .ngesc-contract-message--admin .ngesc-contract-message-bubble {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #7c2d12;
}

.ngesc-front-wrapper .ngesc-empty-state-no-icon,
.ngesc-front-wrapper .ngesc-empty-record {
  padding: 36px 18px;
  color: #64748b;
  font-size: 14px;
}

.ngesc-front-wrapper .ngesc-icon-wrapper {
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  border-radius: 50%;
  box-shadow: none;
  background: #f8fafc;
}

@media (max-width: 1024px) {
  .ngesc-front-wrapper .ngesc-app {
    min-height: 0;
    height: auto;
    border-radius: 0;
  }

  .ngesc-front-wrapper .ngesc-content {
    padding: 18px;
  }

  .ngesc-front-wrapper .ngesc-auth-aside,
  .ngesc-front-wrapper .ngesc-auth-main {
    padding: 28px;
  }
}

@media (max-width: 900px) {
  .ngesc-front-wrapper .ngesc-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1000;
    width: min(82vw, 290px);
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }

  .ngesc-front-wrapper .ngesc-sidebar.is-open {
    transform: translateX(0);
  }

  .ngesc-front-wrapper .ngesc-toggle-desktop {
    display: none;
  }

  .ngesc-front-wrapper .ngesc-toggle-mobile {
    display: inline-flex;
  }

  .ngesc-front-wrapper .ngesc-profile-header,
  .ngesc-front-wrapper .ngesc-profile-details,
  .ngesc-front-wrapper .ngesc-contract-chat,
  .ngesc-front-wrapper .ngesc-btc-invoice-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ngesc-front-wrapper .ngesc-content {
    padding: 12px;
  }

  .ngesc-front-wrapper .ngesc-btc-invoice-header {
    align-items: stretch;
    flex-direction: column;
  }

  .ngesc-front-wrapper .ngesc-btc-invoice-actions {
    justify-content: flex-start;
    margin-left: 0;
    text-align: left;
  }

  .ngesc-front-wrapper .ngesc-btc-invoice-title {
    font-size: 20px;
  }

  .ngesc-front-wrapper .ngesc-content-header,
  .ngesc-front-wrapper .ngesc-pub-card-header,
  .ngesc-front-wrapper .ngesc-pub-card__header,
  .ngesc-front-wrapper .ngesc-admin-card-header,
  .ngesc-front-wrapper .ngesc-page-header {
    align-items: stretch;
    flex-direction: column;
  }

  .ngesc-front-wrapper .ngesc-header-actions {
    width: 100%;
  }

  .ngesc-front-wrapper .ngesc-header-user {
    margin-left: auto;
  }

  .ngesc-front-wrapper .ngesc-title-actions,
  .ngesc-front-wrapper .ngesc-pub-card-header .ngesc-btn,
  .ngesc-front-wrapper .ngesc-pub-card__header .ngesc-btn {
    width: 100%;
  }

  .ngesc-front-wrapper .ngesc-pub-card__body,
  .ngesc-front-wrapper .ngesc-admin-card-body {
    padding: 14px;
  }

  .ngesc-front-wrapper .ngesc-form-grid {
    grid-template-columns: 1fr;
  }

  .ngesc-front-wrapper .ngesc-form-actions,
  .ngesc-front-wrapper .ngesc-form-actions-split {
    align-items: stretch;
    flex-direction: column;
  }

  .ngesc-front-wrapper .ngesc-form-actions .ngesc-btn,
  .ngesc-front-wrapper .ngesc-gateway-row,
  .ngesc-front-wrapper .ngesc-contract-message-input-row,
  .ngesc-front-wrapper .ngesc-contract-share-row {
    width: 100%;
  }

  .ngesc-front-wrapper .ngesc-gateway-row {
    align-items: stretch;
    flex-direction: column;
  }

  .ngesc-front-wrapper .ngesc-select-btn {
    width: 100%;
  }

  .ngesc-front-wrapper .ngesc-auth-view {
    padding: 14px;
  }

  .ngesc-front-wrapper .ngesc-login-inner,
  .ngesc-front-wrapper .ngesc-signup-inner,
  .ngesc-front-wrapper .ngesc-pass-reset-form,
  .ngesc-front-wrapper .ngesc-auth-main {
    width: 100%;
    padding: 18px;
  }

  .ngesc-front-wrapper .ngesc-auth-view--guest .ngesc-login-inner,
  .ngesc-front-wrapper .ngesc-auth-view--guest .ngesc-signup-inner {
    padding: 0;
  }

  .ngesc-front-wrapper .ngesc-auth-view--guest .ngesc-auth-main {
    padding: 20px;
  }

  .ngesc-front-wrapper .ngesc-contract-tab-nav,
  .ngesc-front-wrapper .ngesc-tabs-nav {
    width: 100%;
  }

  .ngesc-front-wrapper .ngesc-contract-message {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 8px;
  }

  .ngesc-front-wrapper .ngesc-contract-message.is-self {
    grid-template-columns: minmax(0, 1fr) 32px;
  }

  .ngesc-front-wrapper .ngesc-contract-message-avatar {
    width: 32px;
    height: 32px;
  }
}

.ngesc-contract-message {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    max-width: 84%;
    align-items: flex-start;
}

.ngesc-contract-message.is-self {
    align-self: flex-end;
    grid-template-columns: minmax(0, 1fr) 40px;
}

.ngesc-contract-message.is-self .ngesc-contract-message-avatar {
    order: 2;
}

.ngesc-contract-message.is-self .ngesc-contract-message-body {
    order: 1;
    align-items: flex-end;
    text-align: right;
}

.ngesc-contract-message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--ngesc-panel, #f3f4f6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ngesc-muted, #6b7280);
    flex-shrink: 0;
}

.ngesc-contract-message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ngesc-contract-message-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.ngesc-contract-message-head {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--ngesc-muted, #6b7280);
}

.ngesc-contract-message.is-self .ngesc-contract-message-head {
    flex-direction: row-reverse;
}

.ngesc-contract-message-name {
    font-weight: 600;
    color: var(--ngesc-text, #111827);
}

.ngesc-contract-message-role {
    display: inline-flex;
    align-items: center;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 18px;
    background: #e5e7eb;
    color: #374151;
}

.ngesc-contract-message-role--payer  { background: #dbeafe; color: #1d4ed8; }
.ngesc-contract-message-role--earner { background: #dcfce7; color: #15803d; }
.ngesc-contract-message-role--admin  { background: #fee2e2; color: #b91c1c; }

.ngesc-contract-message-bubble {
    padding: 12px 16px;
    border-radius: 8px;
    background: #eef2f7;
    color: var(--ngesc-text, #111827);
    border: 1px solid #e2e8f0;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}

.ngesc-contract-message--earner .ngesc-contract-message-bubble {
    background: #ecfdf5;
    border-color: #86efac;
    color: #064e3b;
}

.ngesc-contract-message--payer .ngesc-contract-message-bubble {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e3a8a;
}

.ngesc-contract-message--admin .ngesc-contract-message-bubble {
    background: #fef2f2;
    border-color: #fecaca;
    color: #7f1d1d;
}

.ngesc-contract-message.is-self .ngesc-contract-message-bubble {
    background: #2563eb;
    color: #ffffff;
    border-color: #1d4ed8;
}

.ngesc-contract-message-meta {
    font-size: 11px;
    color: var(--ngesc-muted, #6b7280);
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.ngesc-contract-message-attachment {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(15, 23, 42, 0.06);
    border-radius: 8px;
    font-size: 12px;
    color: inherit;
    text-decoration: none;
    max-width: 100%;
}

.ngesc-contract-message-attachment.is-image {
    padding: 0;
    background: transparent;
}

.ngesc-contract-message-attachment.is-image img {
    max-width: 260px;
    max-height: 220px;
    border-radius: 8px;
    display: block;
}

.ngesc-contract-message.is-self .ngesc-contract-message-attachment {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.ngesc-contract-message.is-self .ngesc-contract-message-attachment.is-image {
    background: transparent;
}

.ngesc-contract-message-attachment:hover {
    text-decoration: underline;
}

.ngesc-contract-message-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid var(--ngesc-border, #e5e7eb);
    padding-top: 14px;
}

.ngesc-contract-message-form.is-submitting .ngesc-contract-message-input-row {
    opacity: 0.72;
}

.ngesc-contract-message-submit-loader {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-height: 30px;
    color: var(--ngesc-muted, #64748b);
    font-size: 12px;
    font-weight: 600;
}

.ngesc-contract-message-submit-loader[hidden] {
    display: none;
}

.ngesc-contract-message-spinner {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    box-sizing: border-box;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: ngesc-contract-message-spin 0.7s linear infinite;
}

@keyframes ngesc-contract-message-spin {
    to {
        transform: rotate(360deg);
    }
}

.ngesc-contract-message-submit-loader .ngesc-loader-wrap,
.ngesc-contract-message-submit-loader .ngesc-pub-loader {
    position: static;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    min-height: 30px;
    background: transparent;
    color: var(--ngesc-muted, #64748b);
}

.ngesc-contract-message-submit-loader .ngesc-ajax-loader-svg {
    width: 18px;
    height: 18px;
}

.ngesc-contract-message-submit-loader .ngesc-loader-text,
.ngesc-contract-message-submit-loader .ngesc-pub-loader-text {
    font-size: 12px;
    font-weight: 600;
}

.ngesc-contract-message-input-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: end;
}

.ngesc-contract-attachment-preview {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    font-size: 12px;
    align-self: flex-start;
    max-width: 100%;
}

.ngesc-contract-attachment-preview[hidden] {
    display: none;
}

.ngesc-contract-attachment-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 260px;
}

.ngesc-contract-attachment-clear {
    background: none;
    border: 0;
    cursor: pointer;
    color: inherit;
    padding: 0 2px;
    line-height: 1;
}

.ngesc-contract-message-input {
    resize: vertical;
    min-height: 48px;
    width: 100%;
}

.ngesc-contract-dropzone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px dashed var(--ngesc-border, #d1d5db);
    border-radius: 8px;
    color: var(--ngesc-muted, #6b7280);
    background: var(--ngesc-panel, #f9fafb);
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.ngesc-contract-dropzone:hover,
.ngesc-contract-dropzone.is-active {
    border-color: var(--ngesc-primary, #2563eb);
    color: var(--ngesc-primary, #2563eb);
}

.ngesc-contract-dropzone.has-file {
    border-style: solid;
    border-color: #10b981;
    color: #059669;
    background: #ecfdf5;
}

.ngesc-contract-message-send {
    height: 48px;
    width: 48px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ngesc-contract-message-send.is-loading {
    opacity: 0.7;
    cursor: progress;
}

.ngesc-contract-chat-side {
    background: var(--ngesc-surface, #ffffff);
    border: 1px solid var(--ngesc-border, #e5e7eb);
    border-radius: 8px;
    padding: 18px;
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ngesc-contract-chat-side h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ngesc-muted, #6b7280);
}

.ngesc-contract-chat-summary {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 8px 12px;
    margin: 0;
}

.ngesc-contract-chat-summary dt {
    font-size: 12px;
    color: var(--ngesc-muted, #6b7280);
}

.ngesc-contract-chat-summary dd {
    margin: 0;
    font-size: 13px;
    color: var(--ngesc-text, #111827);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Contract chat sidebar navigation */
.ngesc-contract-chat-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ngesc-contract-chat-actions .ngesc-btn {
    align-items: center;
    gap: 8px;
}

.ngesc-btn-block {
    display: flex;
    width: 100%;
    justify-content: center;
}

@media (max-width: 960px) {
    .ngesc-contract-chat {
        grid-template-columns: 1fr;
    }

    .ngesc-contract-chat-side {
        position: static;
    }

    .ngesc-contract-decision-card {
        flex-direction: column;
        align-items: stretch;
    }

    .ngesc-contract-decision-actions {
        flex-direction: column;
    }

    .ngesc-contract-decision-actions .ngesc-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 720px) {
    .ngesc-contract-header {
        flex-direction: column;
        align-items: stretch;
    }

    .ngesc-contract-tab-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .ngesc-contract-stepper {
        gap: 6px;
        padding: 14px;
    }

    .ngesc-contract-step-label {
        display: none;
    }

    .ngesc-contract-share-row {
        flex-direction: column;
    }

    .ngesc-contract-message-input-row {
        grid-template-columns: auto 1fr auto;
    }

    .ngesc-contract-message {
        max-width: 100%;
    }
}

/* ============================================================
 * KYC Upload Page & Form
 * ============================================================ */
.ngesc-kyc-page {
    max-width: 600px;
    margin: 0 auto;
}

.ngesc-kyc-status-header {
    text-align: center;
    padding: 1.5rem 1.25rem;
    border: 1px solid var(--ngesc-border, #e5e7eb);
    border-radius: 10px;
    background: #f8fafc;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.ngesc-kyc-status-header--pending {
    border-color: rgba(245, 158, 11, 0.38);
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.95), #ffffff);
}

.ngesc-kyc-status-header--verified {
    border-color: rgba(22, 163, 74, 0.36);
    background: linear-gradient(180deg, rgba(240, 253, 244, 0.96), #ffffff);
}

.ngesc-kyc-status-header--rejected {
    border-color: rgba(220, 38, 38, 0.34);
    background: linear-gradient(180deg, rgba(254, 242, 242, 0.97), #ffffff);
}

.ngesc-kyc-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: .25rem .75rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

.ngesc-kyc-status-header--pending .ngesc-kyc-status-pill {
    color: #78350f;
    background: #fde68a;
}

.ngesc-kyc-status-header--verified .ngesc-kyc-status-pill {
    color: #14532d;
    background: #bbf7d0;
}

.ngesc-kyc-status-header--rejected .ngesc-kyc-status-pill {
    color: #7f1d1d;
    background: #fecaca;
}

.ngesc-kyc-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin-top: .85rem;
    border-radius: 50%;
    font-size: 2.25rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65), 0 14px 30px rgba(15, 23, 42, 0.12);
}

.ngesc-kyc-status-header--pending .ngesc-kyc-status-icon {
    color: #92400e;
    background: #fef3c7;
}

.ngesc-kyc-status-header--verified .ngesc-kyc-status-icon {
    color: #166534;
    background: #dcfce7;
}

.ngesc-kyc-status-header--rejected .ngesc-kyc-status-icon {
    color: #991b1b;
    background: #fee2e2;
}

.ngesc-kyc-status-header h2 {
    margin: .9rem 0 .35rem;
    font-size: 1.45rem;
    font-weight: 750;
    color: var(--ngesc-text, #111827);
}

.ngesc-kyc-status-header p {
    max-width: 460px;
    margin: 0 auto;
    font-size: .98rem;
    line-height: 1.55;
}

.ngesc-auth-notice-list {
    margin: .75rem 0 0;
    padding-left: 1.2rem;
    text-align: left;
}

.ngesc-auth-notice-list li {
    margin: .25rem 0;
}

.ngesc-kyc-status {
    margin-bottom: 1rem;
}

.ngesc-kyc-info-block {
    background: var(--ngesc-surface, #f9fafb);
    border: 1px solid var(--ngesc-border, #e5e7eb);
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

.ngesc-kyc-info-block h4 {
    font-size: .875rem;
    font-weight: 600;
    margin: 0 0 .5rem;
}

.ngesc-kyc-doc-types {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.ngesc-kyc-doc-types li {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .875rem;
    color: var(--ngesc-text-muted, #6b7280);
}

/* Upload dropzone */
.ngesc-kyc-dropzone {
    position: relative;
    border: 2px dashed var(--ngesc-border, #d1d5db);
    border-radius: 8px;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}

.ngesc-kyc-dropzone:hover,
.ngesc-kyc-dropzone.is-dragover {
    border-color: var(--ngesc-primary, #3b82f6);
    background: var(--ngesc-primary-light, #eff6ff);
}

.ngesc-kyc-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.ngesc-kyc-dropzone-label {
    pointer-events: none;
}

.ngesc-kyc-dropzone-label .fa {
    color: var(--ngesc-text-muted, #9ca3af);
    margin-bottom: .5rem;
}

.ngesc-kyc-dropzone-label p {
    margin: .25rem 0;
    font-size: .875rem;
}

/* File preview list */
.ngesc-kyc-file-preview {
    margin-top: .75rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.ngesc-kyc-preview-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .8125rem;
    padding: .35rem .5rem;
    background: var(--ngesc-surface, #f9fafb);
    border: 1px solid var(--ngesc-border, #e5e7eb);
    border-radius: 5px;
}

.ngesc-kyc-preview-name {
    flex: 1;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ngesc-kyc-preview-size {
    color: var(--ngesc-text-muted, #9ca3af);
    font-size: .75rem;
    white-space: nowrap;
}

/* Existing submitted docs */
.ngesc-kyc-existing-docs h4 {
    font-size: .875rem;
    font-weight: 600;
    margin: 0 0 .5rem;
}

.ngesc-kyc-doc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.ngesc-kyc-doc-list li {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .875rem;
    padding: .35rem 0;
    border-bottom: 1px solid var(--ngesc-border, #f3f4f6);
}
