/*
  NuvoCall Premium UI System V3
  Single source of visual truth: tokens, layout, components, utilities.
*/
:root {
  --nv-graphite: #111A1F;
  --nv-graphite-2: #1B262C;
  --nv-emerald-900: #063F37;
  --nv-emerald-800: #074F45;
  --nv-emerald-700: #0B6558;
  --nv-teal-600: #0E8B78;
  --nv-mint-500: #10BFA4;
  --nv-mint-100: #DDF8F2;
  --nv-violet-500: #8360F6;
  --nv-bg: #F4FAF8;
  --nv-bg-2: #ECF7F3;
  --nv-surface: rgba(255,255,255,.86);
  --nv-surface-solid: #FFFFFF;
  --nv-line: rgba(17,26,31,.10);
  --nv-line-strong: rgba(17,26,31,.16);
  --nv-muted: #687780;
  --nv-muted-2: #92A0A7;
  --nv-danger: #B42318;
  --nv-danger-bg: #FFF1F2;
  --nv-success: #067647;
  --nv-success-bg: #ECFDF3;
  --nv-warning: #B54708;
  --nv-warning-bg: #FFFAEB;
  --nv-radius-xs: 10px;
  --nv-radius-sm: 14px;
  --nv-radius-md: 20px;
  --nv-radius-lg: 28px;
  --nv-radius-xl: 36px;
  --nv-shadow-soft: 0 18px 45px rgba(17,26,31,.075);
  --nv-shadow-premium: 0 28px 90px rgba(7,79,69,.13);
  --nv-shadow-button: 0 18px 36px rgba(11,101,88,.28);
  --nv-font: Inter, Manrope, Segoe UI, Arial, sans-serif;
  --nv-font-display: Manrope, Inter, Segoe UI, Arial, sans-serif;
  --nv-sidebar-w: 292px;
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; min-height: 100vh; color: var(--nv-graphite); font-family: var(--nv-font); background: var(--nv-bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--nv-emerald-700); text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; }

/* Utilities */
.nv-eyebrow { color: var(--nv-emerald-700); font-weight: 900; letter-spacing: .16em; text-transform: uppercase; font-size: 11px; }
.nv-muted { color: var(--nv-muted); }
.nv-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--nv-mint-500); display: inline-block; box-shadow: 0 0 0 6px rgba(16,191,164,.12); }
.nv-shell-card { border: 1px solid var(--nv-line); border-radius: var(--nv-radius-lg); background: var(--nv-surface); box-shadow: var(--nv-shadow-soft); backdrop-filter: blur(18px); }
.nv-gradient-text { background: linear-gradient(135deg, var(--nv-emerald-800), var(--nv-mint-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nv-page-bg { background:
  radial-gradient(circle at 90% 0%, rgba(16,191,164,.15), transparent 32%),
  radial-gradient(circle at 8% 22%, rgba(131,96,246,.055), transparent 28%),
  linear-gradient(135deg, #F9FCFB, var(--nv-bg-2)); }

/* Flash */
.flash { padding: 14px 16px; border-radius: var(--nv-radius-sm); margin: 14px 0; font-weight: 800; border: 1px solid transparent; }
.flash.error { color: var(--nv-danger); background: var(--nv-danger-bg); border-color: #FFD5D9; }
.flash.success { color: var(--nv-success); background: var(--nv-success-bg); border-color: #ABEFC6; }

/* Auth */
.auth-body { min-height: 100vh; background:
  radial-gradient(circle at 88% 12%, rgba(16,191,164,.18), transparent 28%),
  radial-gradient(circle at 10% 84%, rgba(7,79,69,.13), transparent 34%),
  linear-gradient(135deg, #FFFFFF, #F2FBF8 55%, #FFFFFF); }
.nv-login-canvas { min-height: 100vh; display: grid; place-items: center; padding: 34px; }
.nv-login-window { width: min(1320px, 100%); min-height: 790px; display: grid; grid-template-columns: .92fr 1.58fr; overflow: hidden; border: 1px solid var(--nv-line); border-radius: 38px; background: rgba(255,255,255,.58); box-shadow: var(--nv-shadow-premium); backdrop-filter: blur(22px); }
.nv-login-card { padding: 56px 52px; background: rgba(255,255,255,.92); border-inline-end: 1px solid var(--nv-line); display: flex; flex-direction: column; justify-content: center; }
.nv-login-logo { width: 332px; margin: 0 auto 26px; display: block; }
.nv-login-card h1 { margin: 0; color: var(--nv-emerald-700); font-family: var(--nv-font-display); font-size: 30px; letter-spacing: -.03em; text-align: center; }
.nv-login-card p { margin: 8px 0 30px; color: var(--nv-muted); text-align: center; }
.nv-login-form label { display: block; margin: 16px 0 8px; font-size: 14px; font-weight: 850; color: #243137; }
.nv-input { height: 58px; display: flex; align-items: center; gap: 12px; padding: 0 17px; border: 1px solid var(--nv-line); border-radius: 17px; background: #fff; transition: border .2s, box-shadow .2s, transform .2s; }
.nv-input:focus-within { border-color: rgba(14,139,120,.42); box-shadow: 0 0 0 5px rgba(16,191,164,.12); }
.nv-input svg { width: 20px; height: 20px; color: var(--nv-emerald-700); flex: 0 0 auto; }
.nv-input input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--nv-graphite); }
.nv-input button { border: 0; background: transparent; color: var(--nv-muted); cursor: pointer; padding: 4px; }
.nv-form-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 18px 0 26px; font-size: 14px; }
.nv-checkbox { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 9px; margin: 0 !important; color: #3D4B52; font-weight: 650 !important; }
.nv-checkbox input { accent-color: var(--nv-emerald-700); }
.nv-btn { border: 0; border-radius: 16px; height: 54px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; font-weight: 900; cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s; }
.nv-btn:hover { transform: translateY(-1px); }
.nv-btn-primary { color: #fff; background: linear-gradient(135deg, var(--nv-emerald-800), var(--nv-teal-600)); box-shadow: var(--nv-shadow-button); }
.nv-btn-primary svg { width: 18px; }
.nv-btn-ghost { color: #304047; border: 1px solid var(--nv-line); background: #fff; }
.nv-btn-sm { height: 42px; border-radius: 13px; padding: 0 15px; font-size: 13px; }
.nv-login-submit { width: 100%; height: 62px; }
.nv-language-tabs { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; margin-top: 30px; border: 1px solid var(--nv-line); border-radius: 16px; background: #fff; }
.nv-language-tabs a { padding: 13px 10px; color: #59676E; text-align: center; border-inline-end: 1px solid var(--nv-line); font-weight: 750; }
.nv-language-tabs a:last-child { border-inline-end: 0; }
.nv-language-tabs .active { color: var(--nv-emerald-800); background: linear-gradient(135deg, rgba(16,191,164,.12), rgba(11,101,88,.06)); }
.nv-security-line { display: flex; align-items: center; gap: 8px; margin-top: 21px; color: var(--nv-muted); font-size: 13px; }
.nv-security-line svg { width: 18px; color: var(--nv-emerald-700); }
.nv-feature-panel { padding: 58px 64px; position: relative; overflow: hidden; background:
  linear-gradient(145deg, rgba(255,255,255,.60), rgba(235,249,244,.78)),
  radial-gradient(circle at 100% 0%, rgba(16,191,164,.14), transparent 30%); }
.nv-feature-panel::after { content: ''; position: absolute; inset: auto -80px -140px auto; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(16,191,164,.16), transparent 65%); pointer-events: none; }
.nv-hero-copy h2 { margin: 0; font-family: var(--nv-font-display); font-size: clamp(38px, 4vw, 60px); line-height: 1.03; letter-spacing: -.055em; }
.nv-hero-copy h2 span { color: var(--nv-emerald-700); }
.nv-hero-copy p { max-width: 760px; color: #415057; font-size: 17px; line-height: 1.72; }
.nv-feature-grid { margin-top: 38px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.nv-feature-item { padding: 22px; border: 1px solid var(--nv-line); border-radius: 23px; background: rgba(255,255,255,.72); box-shadow: 0 15px 36px rgba(17,26,31,.055); }
.nv-feature-icon { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 15px; color: var(--nv-emerald-700); border-radius: 50%; background: linear-gradient(135deg, rgba(16,191,164,.16), rgba(11,101,88,.05)); }
.nv-feature-icon svg { width: 24px; height: 24px; }
.nv-feature-item strong { display: block; margin-bottom: 7px; font-size: 16px; }
.nv-feature-item span { color: var(--nv-muted); line-height: 1.55; }
.nv-mini-dashboard { margin-top: 25px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.nv-mini-dashboard div { padding: 18px; border: 1px solid var(--nv-line); border-radius: 19px; background: rgba(255,255,255,.78); }
.nv-mini-dashboard span { display: block; color: var(--nv-muted); font-size: 12px; }
.nv-mini-dashboard strong { display: block; margin: 7px 0; font-size: 26px; letter-spacing: -.03em; }
.nv-mini-dashboard small { color: var(--nv-success); font-weight: 900; }
.nv-mini-dashboard .violet { color: var(--nv-violet-500); }

/* App layout */
.app-body { min-height: 100vh; background:
  radial-gradient(circle at 94% -6%, rgba(16,191,164,.16), transparent 32%),
  linear-gradient(135deg, #FAFDFC, #EEF8F4); }
.nv-app-shell { display: grid; grid-template-columns: var(--nv-sidebar-w) 1fr; min-height: 100vh; }
.nv-sidebar { position: sticky; top: 0; height: 100vh; padding: 24px 18px; background: rgba(255,255,255,.82); border-inline-end: 1px solid var(--nv-line); backdrop-filter: blur(20px); display: flex; flex-direction: column; gap: 24px; }
.nv-brand { display: flex; align-items: center; justify-content: center; height: 58px; padding: 0 10px; }
.nv-brand img { max-width: 214px; max-height: 54px; object-fit: contain; }
.nv-side-nav { display: flex; flex-direction: column; gap: 7px; }
.nv-side-link { position: relative; display: flex; align-items: center; gap: 12px; min-height: 47px; padding: 0 14px; color: #26343A; border-radius: 16px; font-size: 14px; font-weight: 850; transition: background .18s, color .18s, transform .18s; }
.nv-side-link::before { content: ''; position: absolute; inset-inline-start: 5px; width: 3px; height: 20px; border-radius: 99px; background: transparent; }
.nv-side-link:hover { background: rgba(16,191,164,.09); color: var(--nv-emerald-800); transform: translateX(1px); }
.nv-side-link.is-active { background: linear-gradient(135deg, rgba(16,191,164,.15), rgba(11,101,88,.06)); color: var(--nv-emerald-800); }
.nv-side-link.is-active::before { background: var(--nv-mint-500); }
.nv-side-icon { width: 22px; height: 22px; display: inline-grid; place-items: center; color: currentColor; opacity: .95; }
.nv-side-icon svg { width: 19px; height: 19px; stroke-width: 2; }
.nv-sidebar-footer { margin-top: auto; display: flex; flex-direction: column; gap: 13px; }
.nv-user-chip { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--nv-line); border-radius: 21px; background: #fff; box-shadow: 0 12px 26px rgba(17,26,31,.055); }
.nv-avatar { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 950; background: linear-gradient(135deg, var(--nv-emerald-800), var(--nv-mint-500)); }
.nv-user-chip strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nv-user-chip small { display: block; color: var(--nv-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nv-logout { padding: 10px 12px; color: var(--nv-danger); font-weight: 900; border-radius: 13px; }
.nv-logout:hover { background: var(--nv-danger-bg); }
.nv-main { min-width: 0; padding: 28px 32px 42px; }
.nv-topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.nv-topbar h1 { margin: 6px 0 0; font-family: var(--nv-font-display); font-size: clamp(28px, 2.4vw, 42px); letter-spacing: -.052em; line-height: 1.04; }
.nv-top-actions { display: flex; align-items: center; gap: 10px; }
.nv-lang-pill { display: flex; gap: 6px; padding: 5px; border: 1px solid var(--nv-line); border-radius: 999px; background: rgba(255,255,255,.76); }
.nv-lang-pill a { padding: 8px 12px; border-radius: 999px; color: #58676E; font-size: 12px; font-weight: 850; }
.nv-lang-pill .active { color: #fff; background: var(--nv-emerald-800); }
.nv-mobile-toggle { display: none; }

/* Dashboard */
.nv-dashboard-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 180px; gap: 20px; padding: 34px; margin-bottom: 20px; }
.nv-dashboard-hero::after { content: ''; position: absolute; right: -90px; top: -120px; width: 330px; height: 330px; border-radius: 50%; background: radial-gradient(circle, rgba(16,191,164,.18), transparent 62%); }
.nv-dashboard-hero h2 { margin: 10px 0 10px; font-family: var(--nv-font-display); max-width: 920px; font-size: clamp(30px, 3vw, 48px); line-height: 1.09; letter-spacing: -.05em; }
.nv-dashboard-hero p { margin: 0; max-width: 760px; color: var(--nv-muted); line-height: 1.7; }
.nv-hero-badge { align-self: center; justify-self: end; width: 118px; height: 118px; display: grid; place-items: center; color: var(--nv-emerald-700); border-radius: 34px; background: linear-gradient(135deg, rgba(16,191,164,.14), rgba(255,255,255,.72)); border: 1px solid var(--nv-line); }
.nv-hero-badge svg { width: 48px; height: 48px; }
.nv-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.nv-kpi { padding: 20px; border: 1px solid var(--nv-line); border-radius: 24px; background: #fff; box-shadow: 0 12px 30px rgba(17,26,31,.052); }
.nv-kpi span { color: var(--nv-muted); font-size: 13px; }
.nv-kpi strong { display: block; margin: 7px 0 5px; font-family: var(--nv-font-display); font-size: 28px; letter-spacing: -.045em; }
.nv-kpi small { color: var(--nv-emerald-800); font-weight: 900; }
.nv-two-col { display: grid; grid-template-columns: 1.25fr .85fr; gap: 18px; }
.nv-panel { padding: 24px; border: 1px solid var(--nv-line); border-radius: 26px; background: rgba(255,255,255,.86); box-shadow: var(--nv-shadow-soft); }
.nv-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.nv-panel-head h3 { margin: 0; font-family: var(--nv-font-display); font-size: 20px; letter-spacing: -.025em; }
.nv-activity { display: flex; flex-direction: column; gap: 12px; }
.nv-activity-item { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; padding: 13px; border: 1px solid var(--nv-line); border-radius: 18px; background: #fff; }
.nv-activity-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; color: var(--nv-emerald-700); background: rgba(16,191,164,.11); }
.nv-activity-icon svg { width: 20px; height: 20px; }
.nv-activity-item strong { display:block; font-size: 14px; }
.nv-activity-item small { color: var(--nv-muted); }
.nv-status-stack { display: grid; gap: 12px; }
.nv-status-line { padding: 14px; border: 1px solid var(--nv-line); border-radius: 18px; background: #fff; }
.nv-status-line b { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.nv-bar { height: 8px; border-radius: 99px; overflow: hidden; background: #EEF4F2; }
.nv-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--nv-emerald-700), var(--nv-mint-500)); }
.nv-debug { margin-top: 18px; padding: 18px; }
.nv-debug summary { cursor: pointer; font-weight: 900; }
.nv-permission-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.nv-permission-list span { display: inline-flex; align-items: center; gap: 7px; padding: 9px 11px; border: 1px solid var(--nv-line); border-radius: 999px; background: #fff; font-size: 12px; font-weight: 800; }
.nv-permission-list em { color: var(--nv-emerald-800); font-style: normal; }

/* Tables and forms */
.nv-section-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.nv-section-head h2 { margin: 5px 0 0; font-family: var(--nv-font-display); font-size: 31px; letter-spacing: -.04em; }
.nv-table-card { overflow: hidden; border: 1px solid var(--nv-line); border-radius: 28px; background: #fff; box-shadow: var(--nv-shadow-soft); }
.nv-table-scroll { overflow: auto; }
.nv-table { width: 100%; border-collapse: collapse; min-width: 860px; }
.nv-table th, .nv-table td { padding: 17px 20px; text-align: start; border-bottom: 1px solid var(--nv-line); vertical-align: top; }
.nv-table th { color: #607078; font-size: 12px; font-weight: 950; text-transform: uppercase; letter-spacing: .08em; background: rgba(247,251,250,.86); }
.nv-table td small { display: block; margin-top: 4px; color: var(--nv-muted); }
.nv-table tr:hover td { background: rgba(16,191,164,.035); }
.nv-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 950; background: #EEF2F4; color: #425058; }
.nv-pill.active { color: var(--nv-success); background: var(--nv-success-bg); }
.nv-pill.suspended { color: var(--nv-danger); background: var(--nv-danger-bg); }
.nv-pill.invited { color: var(--nv-warning); background: var(--nv-warning-bg); }
.nv-form-card { padding: 26px; border: 1px solid var(--nv-line); border-radius: 28px; background: #fff; box-shadow: var(--nv-shadow-soft); }
.nv-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.nv-field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 900; }
.nv-field input, .nv-field select, .nv-field textarea { width: 100%; min-height: 48px; padding: 0 14px; color: var(--nv-graphite); border: 1px solid var(--nv-line); border-radius: 14px; background: #fff; outline: 0; }
.nv-field input:focus, .nv-field select:focus, .nv-field textarea:focus { border-color: rgba(14,139,120,.45); box-shadow: 0 0 0 5px rgba(16,191,164,.11); }
.nv-matrix { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--nv-line); }
.nv-matrix h3 { margin: 0 0 6px; font-family: var(--nv-font-display); font-size: 20px; }
.nv-check-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 14px; }
.nv-check-card { min-height: 78px; display: grid; grid-template-columns: 20px 1fr; gap: 12px; padding: 15px; border: 1px solid var(--nv-line); border-radius: 18px; background: #fff; cursor: pointer; transition: border .18s, box-shadow .18s, transform .18s; }
.nv-check-card:hover { transform: translateY(-1px); border-color: rgba(14,139,120,.26); box-shadow: 0 10px 24px rgba(17,26,31,.06); }
.nv-check-card input { margin-top: 3px; accent-color: var(--nv-emerald-700); }
.nv-check-card strong { display: block; }
.nv-check-card small { display: block; color: var(--nv-muted); margin-top: 3px; font-weight: 550; }
.nv-form-actions { margin-top: 26px; display: flex; gap: 12px; align-items: center; }

/* RTL */
html[dir="rtl"] .nv-login-card { border-inline-end: 0; border-inline-start: 1px solid var(--nv-line); }
html[dir="rtl"] .nv-btn svg.arrow { transform: rotate(180deg); }
html[dir="rtl"] .nv-side-link:hover { transform: translateX(-1px); }

@media (max-width: 1120px) {
  .nv-login-window, .nv-app-shell { grid-template-columns: 1fr; }
  .nv-feature-panel { display: none; }
  .nv-sidebar { position: fixed; z-index: 20; transform: translateX(-105%); transition: transform .2s; width: var(--nv-sidebar-w); }
  .nv-sidebar.is-open { transform: translateX(0); }
  html[dir="rtl"] .nv-sidebar { transform: translateX(105%); }
  html[dir="rtl"] .nv-sidebar.is-open { transform: translateX(0); }
  .nv-mobile-toggle { display: inline-flex; }
  .nv-main { padding: 20px; }
  .nv-kpi-grid, .nv-two-col, .nv-form-grid, .nv-check-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nv-login-canvas { padding: 18px; }
  .nv-login-card { padding: 34px 22px; }
  .nv-mini-dashboard, .nv-feature-grid { grid-template-columns: 1fr; }
  .nv-dashboard-hero { grid-template-columns: 1fr; }
  .nv-hero-badge { justify-self: start; width: 80px; height: 80px; }
}

/* =========================================================
   NuvoCall Luxury Theme V4 Override
   Direction: Graphite + Deep Emerald + Controlled Mint
   Goal: less flat white, stronger premium contrast, cleaner nav.
   ========================================================= */
:root {
  --nv-graphite: #0F171B;
  --nv-graphite-2: #172328;
  --nv-emerald-900: #042C27;
  --nv-emerald-800: #06483F;
  --nv-emerald-700: #087060;
  --nv-teal-600: #0B8A78;
  --nv-mint-500: #19D2B1;
  --nv-mint-100: #DDF8F2;
  --nv-bg: #EEF5F2;
  --nv-bg-2: #E6F1ED;
  --nv-surface: rgba(255,255,255,.88);
  --nv-line: rgba(10, 31, 35, .12);
  --nv-line-strong: rgba(10,31,35,.20);
  --nv-shadow-soft: 0 18px 48px rgba(5, 28, 28, .09);
  --nv-shadow-premium: 0 34px 110px rgba(4, 44, 39, .22);
}

body.app-body {
  background:
    radial-gradient(circle at 92% -8%, rgba(25,210,177,.18), transparent 30%),
    radial-gradient(circle at 45% 110%, rgba(4,44,39,.08), transparent 35%),
    linear-gradient(135deg, #F7FAF8 0%, #EAF3EF 50%, #F7FAF8 100%);
}

.nv-app-shell {
  grid-template-columns: 306px 1fr;
}

.nv-sidebar {
  width: 306px;
  padding: 22px 17px;
  background:
    radial-gradient(circle at 20% 0%, rgba(25,210,177,.18), transparent 28%),
    linear-gradient(180deg, #071113 0%, #09211F 48%, #041412 100%);
  border-inline-end: 1px solid rgba(255,255,255,.08);
  box-shadow: 24px 0 70px rgba(4, 20, 18, .14);
}

.nv-brand {
  height: 70px;
  margin: 0 0 4px;
  padding: 10px 14px;
  border-radius: 22px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 20px 45px rgba(0,0,0,.18);
}
.nv-brand img { max-width: 222px; max-height: 58px; }

.nv-side-nav { gap: 8px; padding-top: 6px; }
.nv-side-link {
  min-height: 50px;
  color: rgba(255,255,255,.72);
  border: 1px solid transparent;
  letter-spacing: -.01em;
}
.nv-side-link .nv-side-icon { color: rgba(255,255,255,.74); }
.nv-side-link:hover {
  color: #fff;
  background: rgba(255,255,255,.065);
  border-color: rgba(255,255,255,.08);
  transform: translateX(2px);
}
.nv-side-link:hover .nv-side-icon { color: var(--nv-mint-500); }
.nv-side-link.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(25,210,177,.22), rgba(255,255,255,.06));
  border-color: rgba(25,210,177,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 14px 30px rgba(0,0,0,.16);
}
.nv-side-link.is-active .nv-side-icon { color: var(--nv-mint-500); }
.nv-side-link::before { inset-inline-start: 7px; width: 3px; height: 22px; }
.nv-side-link.is-active::before { background: linear-gradient(180deg, var(--nv-mint-500), var(--nv-teal-600)); }

.nv-user-chip {
  background: rgba(255,255,255,.075);
  border-color: rgba(255,255,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.nv-user-chip strong { color: #fff; }
.nv-user-chip small { color: rgba(255,255,255,.58); }
.nv-avatar { background: linear-gradient(135deg, var(--nv-mint-500), var(--nv-emerald-700)); color: #021413; }
.nv-logout { color: #FFB4B4; }
.nv-logout:hover { background: rgba(255,255,255,.06); color: #fff; }

.nv-main { padding: 30px 34px 46px; }
.nv-topbar { margin-bottom: 24px; }
.nv-topbar h1 {
  color: #101A1E;
  font-size: clamp(31px, 2.5vw, 46px);
  font-weight: 900;
}
.nv-eyebrow { color: var(--nv-emerald-800); }
.nv-lang-pill {
  padding: 5px;
  background: rgba(255,255,255,.74);
  border-color: rgba(7,79,69,.10);
  box-shadow: 0 10px 28px rgba(4,44,39,.08);
}
.nv-lang-pill a { color: #526269; }
.nv-lang-pill .active { background: linear-gradient(135deg, var(--nv-emerald-900), var(--nv-emerald-700)); color: #fff; box-shadow: 0 8px 18px rgba(4,72,63,.22); }

.nv-dashboard-hero {
  min-height: 238px;
  padding: 42px 46px;
  background:
    radial-gradient(circle at 88% 10%, rgba(25,210,177,.22), transparent 24%),
    linear-gradient(135deg, #101A1E 0%, #063F37 55%, #042C27 100%);
  border-color: rgba(255,255,255,.12);
  box-shadow: var(--nv-shadow-premium);
}
.nv-dashboard-hero .nv-eyebrow { color: var(--nv-mint-500); }
.nv-dashboard-hero h2 {
  max-width: 980px;
  color: #FFFFFF;
  font-size: clamp(34px, 3.2vw, 56px);
  font-weight: 950;
  letter-spacing: -.065em;
}
.nv-dashboard-hero p {
  color: rgba(255,255,255,.72);
  font-size: 15px;
}
.nv-dashboard-hero::after {
  opacity: .65;
  background: radial-gradient(circle, rgba(25,210,177,.26), transparent 63%);
}
.nv-hero-badge {
  color: var(--nv-mint-500);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.nv-kpi {
  position: relative;
  overflow: hidden;
  min-height: 116px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(249,252,251,.90));
  border-color: rgba(7,79,69,.10);
  box-shadow: 0 18px 42px rgba(4,44,39,.075);
}
.nv-kpi::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--nv-emerald-900), var(--nv-mint-500));
  opacity: .88;
}
.nv-kpi span { color: #728087; }
.nv-kpi strong { color: #101A1E; }
.nv-kpi small { color: var(--nv-emerald-800); }

.nv-panel,
.nv-table-card,
.nv-form-card,
.nv-debug {
  background: rgba(255,255,255,.88);
  border-color: rgba(7,79,69,.11);
  box-shadow: 0 22px 58px rgba(4,44,39,.085);
}
.nv-panel-head h3 { color: #111A1F; font-size: 22px; }
.nv-dot { background: var(--nv-mint-500); box-shadow: 0 0 0 7px rgba(25,210,177,.13); }

.nv-activity-item,
.nv-status-line,
.nv-permission-list span,
.nv-table tr,
.nv-check-card {
  border-color: rgba(7,79,69,.10);
}
.nv-activity-item {
  background: linear-gradient(180deg, #fff, #FBFEFD);
}
.nv-activity-icon {
  color: var(--nv-emerald-800);
  background: linear-gradient(135deg, rgba(25,210,177,.18), rgba(6,72,63,.05));
}
.nv-bar { background: rgba(6,72,63,.08); }
.nv-bar i { background: linear-gradient(90deg, var(--nv-emerald-900), var(--nv-teal-600), var(--nv-mint-500)); }

.nv-section-head h2 { color: #101A1E; font-size: 34px; }
.nv-table-card { background: rgba(255,255,255,.92); }
.nv-table th { background: linear-gradient(180deg, #F8FCFB, #F1F7F4); color: #526169; }
.nv-table tr:hover td { background: rgba(25,210,177,.045); }
.nv-pill.active { color: #035C4F; background: #DDF8F2; }
.nv-btn-primary { background: linear-gradient(135deg, var(--nv-emerald-900), var(--nv-emerald-700)); box-shadow: 0 18px 36px rgba(4,72,63,.30); }
.nv-btn-ghost { background: rgba(255,255,255,.84); border-color: rgba(7,79,69,.13); }
.nv-field input,
.nv-field select,
.nv-field textarea {
  border-color: rgba(7,79,69,.13);
  background: #FCFEFD;
}
.nv-check-card:hover {
  border-color: rgba(25,210,177,.32);
  box-shadow: 0 16px 34px rgba(4,44,39,.09);
}

/* Auth luxury alignment */
.auth-body {
  background:
    radial-gradient(circle at 88% 10%, rgba(25,210,177,.18), transparent 28%),
    radial-gradient(circle at 8% 80%, rgba(4,44,39,.16), transparent 34%),
    linear-gradient(135deg, #F9FCFB, #EAF3EF 55%, #F7FBFA);
}
.nv-login-window {
  box-shadow: 0 38px 120px rgba(4,44,39,.20);
  border-color: rgba(7,79,69,.12);
}
.nv-login-card { background: rgba(255,255,255,.94); }
.nv-feature-panel {
  background:
    radial-gradient(circle at 92% 7%, rgba(25,210,177,.16), transparent 25%),
    linear-gradient(145deg, #101A1E 0%, #063F37 100%);
}
.nv-feature-panel::after { background: radial-gradient(circle, rgba(25,210,177,.23), transparent 65%); }
.nv-hero-copy h2 { color: #fff; }
.nv-hero-copy h2 span { color: var(--nv-mint-500); }
.nv-hero-copy p { color: rgba(255,255,255,.70); }
.nv-feature-item,
.nv-mini-dashboard div {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.nv-feature-item span,
.nv-mini-dashboard span { color: rgba(255,255,255,.64); }
.nv-feature-icon { color: var(--nv-mint-500); background: rgba(255,255,255,.09); }
.nv-mini-dashboard strong { color: #fff; }

@media (max-width: 1120px) {
  .nv-sidebar { transform: translateX(-105%); }
}

/* =========================================================
   NuvoCall V5 Profile Components
   ========================================================= */
.nv-user-link { text-decoration: none; color: inherit; }
.nv-user-link:hover { transform: translateY(-1px); }
.nv-avatar-img,
.nv-top-avatar-img,
.nv-profile-avatar-img {
  display: block;
  object-fit: cover;
  border-radius: 999px;
}
.nv-avatar-img { width: 44px; height: 44px; border: 2px solid rgba(25,210,177,.38); }
.nv-top-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 5px 12px 5px 5px;
  border: 1px solid rgba(7,79,69,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  color: #152226;
  box-shadow: 0 10px 28px rgba(4,44,39,.08);
}
.nv-top-user:hover { background: #fff; }
.nv-top-avatar,
.nv-top-avatar-img {
  width: 34px;
  height: 34px;
}
.nv-top-avatar {
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #021413;
  font-size: 13px;
  font-weight: 950;
  background: linear-gradient(135deg, var(--nv-mint-500), var(--nv-emerald-700));
}
.nv-top-user strong { font-size: 13px; max-width: 140px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.nv-profile-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 20px;
}
.nv-profile-card {
  padding: 26px;
  border: 1px solid rgba(7,79,69,.11);
  border-radius: 28px;
  background: rgba(255,255,255,.90);
  box-shadow: 0 22px 58px rgba(4,44,39,.085);
}
.nv-profile-identity {
  text-align: center;
}
.nv-profile-avatar,
.nv-profile-avatar-img {
  width: 142px;
  height: 142px;
  margin: 0 auto 18px;
}
.nv-profile-avatar {
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #021413;
  font-size: 48px;
  font-weight: 950;
  background: linear-gradient(135deg, var(--nv-mint-500), var(--nv-emerald-700));
  box-shadow: 0 20px 46px rgba(6,72,63,.22);
}
.nv-profile-avatar-img {
  border: 4px solid rgba(255,255,255,.9);
  box-shadow: 0 20px 46px rgba(6,72,63,.22);
}
.nv-profile-identity h2 { margin: 0 0 5px; font-size: 24px; letter-spacing: -.03em; }
.nv-profile-identity p { margin: 0; color: var(--nv-muted); }
.nv-profile-meta {
  margin-top: 22px;
  display: grid;
  gap: 10px;
  text-align: start;
}
.nv-profile-meta div {
  padding: 13px 14px;
  border: 1px solid rgba(7,79,69,.09);
  border-radius: 16px;
  background: #FCFEFD;
}
.nv-profile-meta span { display: block; color: var(--nv-muted); font-size: 12px; margin-bottom: 4px; }
.nv-profile-meta strong { display: block; overflow-wrap: anywhere; }
.nv-profile-tabs {
  display: grid;
  gap: 20px;
}
.nv-profile-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -.03em;
}
.nv-profile-card .nv-muted { margin-top: 0; }
.nv-profile-card textarea { min-height: 112px; padding: 14px; resize: vertical; }
.nv-photo-upload {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.nv-photo-upload input[type=file] {
  height: auto;
  padding: 14px;
}
@media (max-width: 1120px) {
  .nv-profile-grid { grid-template-columns: 1fr; }
  .nv-top-user strong { display: none; }
}

/* =========================================================
   NuvoCall V6 Role Management Components
   ========================================================= */
.nv-role-form-header {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.nv-role-matrix {
  display: grid;
  gap: 18px;
}
.nv-role-module {
  border: 1px solid rgba(7,79,69,.11);
  border-radius: 24px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 42px rgba(4,44,39,.065);
  overflow: hidden;
}
.nv-role-module-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: linear-gradient(180deg, #F8FCFB, #F1F7F4);
  border-bottom: 1px solid rgba(7,79,69,.10);
}
.nv-role-module-head h3 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -.025em;
}
.nv-role-permissions {
  display: grid;
}
.nv-role-permission-row {
  display: grid;
  grid-template-columns: 42px 1fr 170px;
  align-items: center;
  gap: 14px;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(7,79,69,.08);
}
.nv-role-permission-row:last-child { border-bottom: 0; }
.nv-role-permission-row:hover { background: rgba(25,210,177,.045); }
.nv-role-permission-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--nv-emerald-700); }
.nv-role-permission-row strong { display: block; font-size: 14px; }
.nv-role-permission-row small { display: block; color: var(--nv-muted); margin-top: 3px; }
.nv-role-permission-row select {
  height: 40px;
  border: 1px solid rgba(7,79,69,.13);
  border-radius: 12px;
  padding: 0 10px;
  background: #fff;
}
.nv-role-protected {
  padding: 18px 20px;
  border: 1px solid rgba(181,71,8,.18);
  border-radius: 20px;
  background: #FFFAEB;
  color: #7A2E0E;
  margin-bottom: 20px;
  font-weight: 800;
}
.nv-role-actions-cell {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .nv-role-form-header { grid-template-columns: 1fr; }
  .nv-role-permission-row { grid-template-columns: 32px 1fr; }
  .nv-role-permission-row select { grid-column: 2; }
}

/* =========================================================
   NuvoCall V7 Clients / Leads Pipeline Kanban
   ========================================================= */
.nv-clients-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(circle at 95% 20%, rgba(16,191,164,.26), transparent 28%),
    linear-gradient(135deg, #0B1618 0%, #082F2A 54%, #0B6558 100%);
  box-shadow: 0 30px 80px rgba(4,44,39,.24);
  color: #fff;
  overflow: hidden;
  margin-bottom: 18px;
}
.nv-clients-hero::after {
  content: "";
  position: absolute;
  inset: auto -90px -120px auto;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: rgba(131,96,246,.16);
  filter: blur(5px);
}
.nv-clients-hero .nv-eyebrow { color: #56E8D0; }
.nv-clients-hero h2 {
  position: relative;
  margin: 8px 0 10px;
  max-width: 780px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: .94;
  letter-spacing: -.06em;
}
.nv-clients-hero p {
  position: relative;
  max-width: 760px;
  color: rgba(255,255,255,.72);
  margin: 0;
  line-height: 1.7;
}
.nv-client-actions { position: relative; z-index: 2; display:flex; gap:10px; }
.nv-pipeline-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(7,79,69,.10);
  border-radius: 24px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 18px 50px rgba(4,44,39,.07);
  margin-bottom: 18px;
}
.nv-pipeline-toolbar strong { display:block; font-size: 16px; }
.nv-pipeline-toolbar small { display:block; color: var(--nv-muted); margin-top: 4px; }
.nv-pipeline-toolbar select {
  min-width: 220px;
  height: 44px;
  border: 1px solid rgba(7,79,69,.12);
  border-radius: 14px;
  background: #fff;
  padding: 0 12px;
}
.nv-kanban {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(286px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding: 2px 2px 22px;
  min-height: 580px;
  scroll-snap-type: x proximity;
}
.nv-kanban-column {
  scroll-snap-align: start;
  border-radius: 26px;
  border: 1px solid rgba(7,79,69,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(246,251,249,.84));
  box-shadow: 0 18px 48px rgba(4,44,39,.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 76vh;
}
.nv-kanban-head {
  --stage-color: var(--nv-emerald-700);
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid rgba(7,79,69,.09);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--stage-color) 18%, #fff), #fff 72%);
}
.nv-kanban-head h3 {
  margin: 0 0 4px;
  font-size: 15px;
  letter-spacing: -.02em;
}
.nv-kanban-head small { color: var(--nv-muted); font-weight: 800; }
.nv-kanban-head span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--stage-color);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--stage-color) 14%, transparent);
}
.nv-kanban-dropzone {
  padding: 14px;
  display: grid;
  align-content: start;
  gap: 12px;
  overflow-y: auto;
  min-height: 480px;
  transition: background .18s ease;
}
.nv-kanban-dropzone.is-over { background: rgba(16,191,164,.10); }
.nv-account-card {
  cursor: pointer;
  border: 1px solid rgba(7,79,69,.10);
  border-radius: 20px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 14px 34px rgba(4,44,39,.09);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.nv-account-card[draggable="true"] { cursor: grab; }
.nv-account-card:hover {
  transform: translateY(-2px);
  border-color: rgba(16,191,164,.35);
  box-shadow: 0 18px 44px rgba(4,44,39,.13);
}
.nv-account-card.is-dragging { opacity: .62; transform: rotate(1.2deg) scale(.98); }
.nv-account-card.is-saved { outline: 2px solid rgba(16,191,164,.35); }
.nv-card-topline,
.nv-card-footer,
.nv-card-activity {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.nv-card-topline { color: var(--nv-muted); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.nv-source-badge {
  display:inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(7,79,69,.07);
  color: var(--nv-emerald-800);
}
.nv-account-card h4 {
  margin: 12px 0 8px;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -.02em;
}
.nv-card-meta {
  display:grid;
  gap: 4px;
  min-height: 34px;
  color: var(--nv-muted);
  font-size: 12px;
}
.nv-card-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(7,79,69,.08);
  font-size: 12px;
}
.nv-card-footer span { color: var(--nv-muted); }
.nv-card-footer strong { color: var(--nv-emerald-800); }
.nv-card-activity {
  margin-top: 10px;
  padding: 10px 11px;
  border-radius: 14px;
  background: #F7FBFA;
  color: var(--nv-muted);
  font-size: 12px;
}
.priority-urgent { border-color: rgba(181,71,8,.24); }
.priority-high { border-color: rgba(131,96,246,.22); }
.nv-client-drawer {
  position: fixed;
  top: 24px;
  right: 24px;
  bottom: 24px;
  width: min(430px, calc(100vw - 48px));
  padding: 28px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.20);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(246,252,250,.94));
  box-shadow: 0 38px 110px rgba(4,44,39,.30);
  z-index: 90;
  transform: translateX(calc(100% + 48px));
  transition: transform .24s ease;
  overflow: auto;
}
.nv-client-drawer.is-open { transform: translateX(0); }
.nv-drawer-close {
  position:absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 14px;
  background: rgba(7,79,69,.08);
  color: var(--nv-emerald-900);
  font-size: 24px;
  cursor: pointer;
}
.nv-client-drawer h3 {
  margin: 12px 0 22px;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -.04em;
}
.nv-drawer-grid {
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.nv-drawer-grid div,
.nv-drawer-notes {
  padding: 14px;
  border: 1px solid rgba(7,79,69,.09);
  border-radius: 18px;
  background: #fff;
}
.nv-drawer-grid small,
.nv-drawer-notes small { display:block; color: var(--nv-muted); margin-bottom: 5px; }
.nv-drawer-grid strong { display:block; overflow-wrap:anywhere; }
.nv-drawer-notes { margin-bottom: 20px; }
.nv-drawer-notes p { margin: 0; color: var(--nv-text); line-height: 1.6; }
.nv-form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nv-account-form textarea { min-height: 130px; }
.nv-empty-state {
  padding: 40px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(7,79,69,.10);
  color: var(--nv-muted);
  box-shadow: 0 16px 42px rgba(4,44,39,.08);
}
@media (max-width: 980px) {
  .nv-clients-hero,
  .nv-pipeline-toolbar { flex-direction: column; align-items: stretch; }
  .nv-kanban { grid-auto-columns: minmax(270px, 82vw); }
  .nv-form-grid.two { grid-template-columns: 1fr; }
}

/* =========================================================
   NuvoCall V8 Client Workspace / Timeline / Tasks / Notes
   ========================================================= */
.nv-workspace-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(4, 18, 17, .56);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
  padding: 28px;
}
.nv-workspace-overlay.is-open { opacity: 1; visibility: visible; }
.nv-workspace-modal {
  position: relative;
  width: min(1240px, calc(100vw - 56px));
  max-height: calc(100vh - 56px);
  margin: 0 auto;
  overflow: auto;
  border-radius: 34px;
  border: 1px solid rgba(255,255,255,.22);
  background: linear-gradient(180deg, #F8FCFA 0%, #EEF7F3 100%);
  box-shadow: 0 50px 150px rgba(0,0,0,.38);
}
.nv-workspace-close {
  position: sticky;
  top: 18px;
  float: right;
  z-index: 5;
  margin: 18px 18px 0 0;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 16px;
  background: #081C1A;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}
.nv-workspace-loading,
.nv-workspace-error {
  padding: 80px 36px;
  text-align: center;
  font-weight: 900;
  color: var(--nv-muted);
}
.nv-workspace-content { padding: 34px; clear: both; }
.nv-workspace-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 20px;
  padding: 28px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 15%, rgba(16,191,164,.28), transparent 32%),
    linear-gradient(135deg, #0B1618 0%, #073E37 58%, #0B6558 100%);
  box-shadow: 0 26px 70px rgba(4,44,39,.20);
}
.nv-workspace-head h2 {
  margin: 8px 0 8px;
  font-size: clamp(30px, 3vw, 48px);
  line-height: .98;
  letter-spacing: -.055em;
}
.nv-workspace-head p { margin: 0; color: rgba(255,255,255,.74); }
.nv-workspace-summary {
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
  margin: 16px 0;
}
.nv-workspace-summary div {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(7,79,69,.10);
  box-shadow: 0 12px 34px rgba(4,44,39,.06);
}
.nv-workspace-summary small { display:block; color: var(--nv-muted); margin-bottom: 6px; }
.nv-workspace-summary strong { display:block; overflow-wrap:anywhere; }
.nv-workspace-tabs {
  display:flex;
  gap: 8px;
  flex-wrap:wrap;
  margin-bottom: 16px;
}
.nv-workspace-tabs a {
  text-decoration:none;
  color: var(--nv-emerald-900);
  font-weight: 900;
  font-size: 12px;
  padding: 10px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(7,79,69,.10);
}
.nv-workspace-grid {
  display:grid;
  grid-template-columns: minmax(0,1.25fr) minmax(360px,.75fr);
  gap: 16px;
  align-items:start;
}
.nv-workspace-panel {
  border-radius: 26px;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(7,79,69,.10);
  box-shadow: 0 18px 48px rgba(4,44,39,.08);
  padding: 20px;
  margin-bottom: 16px;
}
.nv-panel-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
  margin-bottom: 16px;
}
.nv-panel-head h3 { margin:0; font-size: 20px; letter-spacing: -.03em; }
.nv-panel-head small { color: var(--nv-muted); font-weight: 800; }
.nv-timeline { display:grid; gap: 12px; }
.nv-timeline-item {
  display:grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(7,79,69,.08);
  border-radius: 18px;
  background: #FCFEFD;
}
.nv-timeline-dot {
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border-radius: 999px;
  background: var(--nv-emerald-700);
  box-shadow: 0 0 0 7px rgba(16,191,164,.12);
}
.nv-timeline-item.type-note .nv-timeline-dot { background:#8360F6; }
.nv-timeline-item.type-task_completed .nv-timeline-dot { background:#10BFA4; }
.nv-timeline-item.type-stage_changed .nv-timeline-dot { background:#0B6558; }
.nv-timeline-item header {
  display:flex;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 7px;
}
.nv-timeline-item header span { color: var(--nv-muted); font-size: 12px; white-space:nowrap; }
.nv-timeline-item p { margin: 0; color: var(--nv-muted); line-height: 1.6; }
.nv-mini-form {
  display:grid;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: #F8FCFA;
  border: 1px solid rgba(7,79,69,.08);
  margin-bottom: 12px;
}
.nv-mini-form input,
.nv-mini-form select,
.nv-mini-form textarea {
  width:100%;
  border:1px solid rgba(7,79,69,.12);
  border-radius: 14px;
  padding: 11px 12px;
  background:#fff;
}
.nv-mini-form textarea { min-height: 78px; resize: vertical; }
.nv-mini-row { display:grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nv-edit-last-note { border-color: rgba(131,96,246,.20); background: #F7F5FF; }
.nv-task-list { display:grid; gap: 10px; }
.nv-task-item {
  display:grid;
  gap: 10px;
  padding: 13px;
  border-radius: 18px;
  border: 1px solid rgba(7,79,69,.08);
  background:#fff;
}
.nv-task-item strong { display:block; }
.nv-task-item small { display:block; color: var(--nv-muted); margin-top:4px; }
.nv-task-item.status-done { opacity:.72; }
.nv-task-item form { display:grid; gap: 8px; }
.nv-empty-state.small { padding: 18px; box-shadow:none; font-size: 13px; }
@media (max-width: 1100px) {
  .nv-workspace-grid { grid-template-columns: 1fr; }
  .nv-workspace-summary { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .nv-workspace-overlay { padding: 10px; }
  .nv-workspace-modal { width: calc(100vw - 20px); max-height: calc(100vh - 20px); border-radius: 22px; }
  .nv-workspace-content { padding: 16px; }
  .nv-workspace-head { flex-direction:column; border-radius: 22px; }
  .nv-workspace-summary { grid-template-columns: 1fr; }
  .nv-timeline-item header { flex-direction:column; }
}


/* =========================================================
   NuvoCall V8A Workspace Premium Redesign
   Icons, colored notes, voice note button, cleaner timeline.
   ========================================================= */
.nv-workspace-modal {
  background:
    radial-gradient(circle at 10% 0%, rgba(25,210,177,.14), transparent 28%),
    radial-gradient(circle at 92% 10%, rgba(131,96,246,.11), transparent 30%),
    linear-gradient(180deg, #F8FCFA 0%, #EDF6F2 100%);
}
.nv-workspace-pro { padding: 30px; }
.nv-workspace-head-pro {
  min-height: 190px;
  align-items: center;
  background:
    radial-gradient(circle at 88% 22%, rgba(16,191,164,.33), transparent 28%),
    radial-gradient(circle at 22% 18%, rgba(131,96,246,.17), transparent 32%),
    linear-gradient(135deg, #081716 0%, #052E2A 48%, #0B6558 100%);
}
.nv-workspace-head-pro h2 {
  font-size: clamp(34px, 4vw, 64px);
  letter-spacing: -.065em;
}
.nv-workspace-actions { display:flex; gap: 10px; position:relative; z-index:2; }
.nv-workspace-summary-pro {
  grid-template-columns: repeat(4, minmax(0,1fr));
  margin-top: -26px;
  position:relative;
  z-index:2;
  padding: 0 18px;
}
.nv-workspace-summary-pro div {
  background: rgba(255,255,255,.96);
  border-color: rgba(7,79,69,.11);
  box-shadow: 0 18px 55px rgba(5,28,28,.10);
}
.nv-workspace-tabs-pro {
  margin: 18px 0;
  padding: 8px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(7,79,69,.09);
  border-radius: 999px;
}
.nv-workspace-tabs-pro a {
  border: 0;
  background: transparent;
}
.nv-workspace-tabs-pro a:hover {
  background: #fff;
  box-shadow: 0 10px 24px rgba(4,44,39,.08);
}
.nv-workspace-grid-pro {
  grid-template-columns: minmax(0, 1.38fr) minmax(390px, .72fr);
}
.nv-workspace-panel-pro {
  padding: 22px;
  border-radius: 30px;
  border: 1px solid rgba(7,79,69,.10);
  background: rgba(255,255,255,.93);
  box-shadow: 0 22px 60px rgba(4,44,39,.085);
}
.nv-timeline-pro {
  position: relative;
  padding-left: 12px;
}
.nv-timeline-pro::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 99px;
  background: linear-gradient(180deg, rgba(16,191,164,.48), rgba(131,96,246,.25), rgba(7,79,69,.18));
}
.nv-timeline-card {
  position: relative;
  grid-template-columns: 56px 1fr;
  align-items: start;
  border-radius: 24px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,252,250,.94));
  border: 1px solid rgba(7,79,69,.09);
  box-shadow: 0 14px 38px rgba(4,44,39,.06);
}
.nv-timeline-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 52px rgba(4,44,39,.10);
}
.nv-timeline-icon,
.nv-task-icon {
  width: 44px;
  height: 44px;
  display:grid;
  place-items:center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--nv-emerald-800), var(--nv-teal-600));
  box-shadow: 0 14px 28px rgba(6,72,63,.22);
  position: relative;
  z-index: 2;
}
.nv-timeline-icon svg,
.nv-task-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nv-activity-note { background: linear-gradient(135deg, #8360F6, #6D4FE8); }
.nv-activity-task { background: linear-gradient(135deg, #0B6558, #10BFA4); }
.nv-activity-check { background: linear-gradient(135deg, #079455, #10BFA4); }
.nv-activity-stage { background: linear-gradient(135deg, #06483F, #0E8B78); }
.nv-activity-phone { background: linear-gradient(135deg, #0E8B78, #10BFA4); }
.nv-activity-mail { background: linear-gradient(135deg, #8360F6, #10BFA4); }
.nv-activity-chat { background: linear-gradient(135deg, #10BFA4, #0B6558); }
.nv-activity-quote { background: linear-gradient(135deg, #B54708, #F79009); }
.nv-activity-payment { background: linear-gradient(135deg, #067647, #12B76A); }
.nv-timeline-body header {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.nv-timeline-body header strong { display:block; font-size: 15px; }
.nv-timeline-body header em {
  display:inline-flex;
  margin-top: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(7,79,69,.07);
  color: var(--nv-muted);
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.nv-timeline-body header span {
  color: var(--nv-muted);
  font-size: 12px;
  white-space: nowrap;
}
.nv-timeline-body p {
  margin: 0;
  color: #445158;
  line-height: 1.65;
}
.nv-note-tools {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
.nv-note-colors {
  display:flex;
  align-items:center;
  gap: 7px;
  flex-wrap: wrap;
}
.nv-note-color {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(7,79,69,.12), 0 6px 14px rgba(4,44,39,.10);
  cursor: pointer;
}
.nv-note-color.active { box-shadow: 0 0 0 3px rgba(16,191,164,.22), 0 7px 16px rgba(4,44,39,.12); }
.color-default { background: linear-gradient(135deg, #EAF2EF, #fff); }
.color-mint { background: #10BFA4; }
.color-teal { background: #0E8B78; }
.color-violet { background: #8360F6; }
.color-amber { background: #F79009; }
.color-rose { background: #F04438; }
.color-graphite { background: #111A1F; }
.nv-mic-btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(131,96,246,.12), rgba(16,191,164,.12));
  color: var(--nv-emerald-800);
  cursor: pointer;
  font-size: 18px;
}
.nv-mic-btn.is-recording {
  color: #fff;
  background: linear-gradient(135deg, #8360F6, #10BFA4);
  box-shadow: 0 0 0 7px rgba(131,96,246,.16);
  animation: nvPulseMic 1.05s infinite;
}
@keyframes nvPulseMic {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.nv-note-composer,
.nv-edit-last-note {
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(16,191,164,.10), transparent 40%),
    #fff;
}
.nv-note-stack {
  display:grid;
  gap: 10px;
  margin-top: 12px;
}
.nv-note-card {
  position:relative;
  padding: 14px 14px 14px 17px;
  border-radius: 19px;
  background: #fff;
  border: 1px solid rgba(7,79,69,.09);
  box-shadow: 0 10px 28px rgba(4,44,39,.055);
  overflow:hidden;
}
.nv-note-card::before {
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:5px;
  background: rgba(7,79,69,.20);
}
.nv-note-card header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 7px;
}
.nv-note-card header span {
  color: var(--nv-muted);
  font-size: 12px;
}
.nv-note-card p {
  margin:0;
  color:#425058;
  line-height:1.55;
}
.nv-note-color-mint::before { background: #10BFA4; }
.nv-note-color-teal::before { background: #0E8B78; }
.nv-note-color-violet::before { background: #8360F6; }
.nv-note-color-amber::before { background: #F79009; }
.nv-note-color-rose::before { background: #F04438; }
.nv-note-color-graphite::before { background: #111A1F; }
.nv-task-list-pro { gap: 12px; }
.nv-task-card {
  grid-template-columns: 44px 1fr;
  align-items:start;
  border-radius: 22px;
  background:
    linear-gradient(180deg, #fff, #FAFDFC);
  box-shadow: 0 12px 32px rgba(4,44,39,.06);
}
.nv-task-main p {
  margin: 8px 0 0;
  color: var(--nv-muted);
  font-size: 12px;
  line-height: 1.5;
}
.nv-task-done-form {
  grid-column: 2;
  display:grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.nv-task-done-form input {
  min-height: 40px;
  border: 1px solid rgba(7,79,69,.12);
  border-radius: 13px;
  padding: 0 12px;
}
@media (max-width: 1100px) {
  .nv-workspace-grid-pro { grid-template-columns: 1fr; }
}

/* =========================================================
   NuvoCall V8B Clean Product UI Override
   Goal: compact, sharp, modern workspace + Kanban. Less 2000s cards.
   CSS-only, no workflow change.
   ========================================================= */

/* Global spacing cleanup */
.nv-main { padding: 22px 26px 34px; }
.nv-topbar { margin-bottom: 14px; }
.nv-topbar h1 { font-size: clamp(24px, 2vw, 34px); }

/* Kanban: more working space, less presentation space */
.nv-clients-hero {
  min-height: 116px;
  padding: 24px 28px;
  margin-bottom: 14px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 94% 18%, rgba(16,191,164,.22), transparent 26%),
    linear-gradient(135deg, #061918 0%, #06362F 58%, #0B6558 100%);
  box-shadow: 0 20px 58px rgba(4,44,39,.20);
}
.nv-clients-hero h2 {
  font-size: clamp(30px, 3.2vw, 46px);
  letter-spacing: -.055em;
  margin: 6px 0 8px;
}
.nv-clients-hero p { max-width: 720px; line-height: 1.45; }
.nv-pipeline-toolbar {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(4,44,39,.055);
}
.nv-kanban {
  grid-auto-columns: minmax(255px, 1fr);
  gap: 12px;
  min-height: calc(100vh - 315px);
  padding-bottom: 14px;
}
.nv-kanban-column {
  border-radius: 18px;
  max-height: calc(100vh - 315px);
  box-shadow: 0 12px 36px rgba(4,44,39,.06);
  background: rgba(255,255,255,.72);
}
.nv-kanban-head {
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(244,249,247,.88));
}
.nv-kanban-head h3 { font-size: 14px; }
.nv-kanban-head small { font-size: 11px; }
.nv-kanban-dropzone { padding: 10px; gap: 9px; min-height: calc(100vh - 390px); }
.nv-account-card {
  padding: 12px;
  border-radius: 15px;
  box-shadow: 0 10px 24px rgba(4,44,39,.055);
}
.nv-account-card h4 { font-size: 15px; margin: 9px 0 7px; }
.nv-card-meta { font-size: 11px; min-height: 28px; }
.nv-card-footer { margin-top: 9px; padding-top: 9px; }
.nv-card-activity { margin-top: 8px; padding: 8px 9px; border-radius: 11px; }

/* Workspace modal: product-app feel */
.nv-workspace-overlay {
  background: rgba(1,15,14,.58);
  backdrop-filter: blur(10px);
  padding: 16px;
}
.nv-workspace-modal {
  width: min(1500px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  border-radius: 22px;
  background: linear-gradient(180deg, #F6FAF8 0%, #EEF5F2 100%);
  box-shadow: 0 36px 120px rgba(0,0,0,.34);
}
.nv-workspace-content,
.nv-workspace-pro { padding: 18px 22px 22px; }
.nv-workspace-close {
  top: 12px;
  margin: 12px 12px 0 0;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #071B19;
  font-size: 22px;
}

/* Compact header instead of giant hero */
.nv-workspace-head,
.nv-workspace-head-pro {
  min-height: 112px;
  padding: 22px 26px;
  border-radius: 20px;
  align-items: center;
  background:
    radial-gradient(circle at 100% 0%, rgba(16,191,164,.28), transparent 32%),
    linear-gradient(135deg, #071817 0%, #05352F 55%, #0A5F53 100%);
  box-shadow: 0 16px 46px rgba(4,44,39,.18);
}
.nv-workspace-head h2,
.nv-workspace-head-pro h2 {
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: -.055em;
  margin: 5px 0 5px;
}
.nv-workspace-head p { font-size: 13px; }
.nv-workspace-head .nv-eyebrow { font-size: 10px; }

/* Summary becomes a slim info strip */
.nv-workspace-summary,
.nv-workspace-summary-pro {
  margin: 10px 0 12px;
  padding: 0;
  gap: 10px;
}
.nv-workspace-summary div,
.nv-workspace-summary-pro div {
  min-height: 62px;
  padding: 12px 14px;
  border-radius: 15px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 8px 24px rgba(4,44,39,.055);
}
.nv-workspace-summary small { font-size: 11px; }
.nv-workspace-summary strong { font-size: 13px; }

/* Tabs: thin and modern */
.nv-workspace-tabs,
.nv-workspace-tabs-pro {
  margin: 10px 0 14px;
  padding: 5px;
  border-radius: 14px;
  background: rgba(255,255,255,.72);
}
.nv-workspace-tabs a,
.nv-workspace-tabs-pro a {
  padding: 8px 11px;
  border-radius: 10px;
  font-size: 12px;
}

/* Workspace grid: dense, app-like */
.nv-workspace-grid,
.nv-workspace-grid-pro {
  grid-template-columns: minmax(0, 1.55fr) 390px;
  gap: 14px;
}
.nv-workspace-panel,
.nv-workspace-panel-pro {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.90);
  box-shadow: 0 10px 30px rgba(4,44,39,.055);
}
.nv-panel-head { margin-bottom: 12px; }
.nv-panel-head h3 { font-size: 18px; }
.nv-panel-head small { font-size: 12px; }

/* Timeline: not huge cards, clean feed */
.nv-timeline-pro { padding-left: 0; gap: 8px; }
.nv-timeline-pro::before { display: none; }
.nv-timeline-card,
.nv-timeline-item {
  grid-template-columns: 38px 1fr;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 15px;
  box-shadow: none;
  background: #fff;
  border: 1px solid rgba(7,79,69,.08);
}
.nv-timeline-card:hover { box-shadow: 0 10px 24px rgba(4,44,39,.06); }
.nv-timeline-icon,
.nv-task-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  box-shadow: 0 8px 18px rgba(6,72,63,.15);
}
.nv-timeline-icon svg,
.nv-task-icon svg { width: 18px; height: 18px; }
.nv-timeline-body header { margin-bottom: 4px; align-items: center; }
.nv-timeline-body header strong { font-size: 13px; }
.nv-timeline-body header span { font-size: 11px; }
.nv-timeline-body header em {
  padding: 3px 7px;
  font-size: 10px;
  margin-top: 3px;
  background: rgba(7,79,69,.06);
}
.nv-timeline-body p { font-size: 13px; line-height: 1.45; }

/* Notes/task side panels: tighter and more professional */
.nv-mini-form { padding: 10px; border-radius: 15px; gap: 8px; }
.nv-mini-form input,
.nv-mini-form select,
.nv-mini-form textarea {
  border-radius: 11px;
  padding: 9px 10px;
  font-size: 13px;
}
.nv-mini-form textarea { min-height: 70px; }
.nv-note-tools { min-height: 34px; }
.nv-note-color { width: 18px; height: 18px; }
.nv-mic-btn {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  font-size: 15px;
}
.nv-note-stack { gap: 8px; }
.nv-note-card {
  padding: 11px 12px 11px 14px;
  border-radius: 14px;
  box-shadow: none;
}
.nv-note-card header { margin-bottom: 4px; }
.nv-note-card header strong { font-size: 12px; }
.nv-note-card header span { font-size: 11px; }
.nv-note-card p { font-size: 13px; line-height: 1.45; }
.nv-task-list-pro { gap: 12px; }
.nv-task-card {
  grid-template-columns: 34px 1fr;
  border-radius: 15px;
  padding: 11px;
  box-shadow: none;
}
.nv-task-main strong { font-size: 13px; }
.nv-task-main small { font-size: 11px; }
.nv-task-main p { font-size: 12px; margin-top: 5px; }
.nv-task-done-form {
  grid-column: 1 / -1;
  grid-template-columns: 1fr auto;
}
.nv-task-done-form input {
  min-height: 36px;
  border-radius: 11px;
  font-size: 12px;
}
.nv-task-done-form .nv-btn { height: 36px; }

/* Sidebar slightly cleaner */
.nv-sidebar {
  background: linear-gradient(180deg, #071B19, #051311);
  color: rgba(255,255,255,.78);
}
.nv-brand {
  background: #fff;
  border-radius: 18px;
}
.nv-side-link { color: rgba(255,255,255,.78); }
.nv-side-link:hover,
.nv-side-link.is-active {
  color: #fff;
  background: rgba(16,191,164,.14);
}
.nv-user-chip {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
  color: #fff;
}
.nv-user-chip small { color: rgba(255,255,255,.68); }

/* Responsive */
@media (max-width: 1180px) {
  .nv-workspace-grid,
  .nv-workspace-grid-pro { grid-template-columns: 1fr; }
  .nv-workspace-summary,
  .nv-workspace-summary-pro { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .nv-workspace-overlay { padding: 6px; }
  .nv-workspace-modal { width: calc(100vw - 12px); max-height: calc(100vh - 12px); border-radius: 16px; }
  .nv-workspace-content, .nv-workspace-pro { padding: 12px; }
  .nv-workspace-summary, .nv-workspace-summary-pro { grid-template-columns: 1fr; }
  .nv-task-done-form { grid-template-columns: 1fr; }
}


/* =========================================================
   NuvoCall V8C Compact Workbench
   Remove marketing hero from Clients page + collapsed sidebar default.
   ========================================================= */

/* Remove the big Clients hero from the working page */
.nv-clients-hero {
  display: none !important;
}

/* Compact toolbar becomes the main header for pipeline page */
.nv-pipeline-toolbar {
  margin-top: 0;
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 18px;
}
.nv-pipeline-toolbar .nv-pipeline-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nv-pipeline-toolbar .nv-btn {
  height: 42px;
  border-radius: 12px;
}

/* Sidebar collapsed by default: icon rail */
:root {
  --nv-sidebar-w-expanded: 252px;
  --nv-sidebar-w-collapsed: 76px;
  --nv-sidebar-w: var(--nv-sidebar-w-collapsed);
}
.nv-app-shell {
  grid-template-columns: var(--nv-sidebar-w) minmax(0, 1fr) !important;
  transition: grid-template-columns .18s ease;
}
.nv-sidebar {
  width: var(--nv-sidebar-w);
  overflow: hidden;
  padding: 16px 10px !important;
  transition: width .18s ease, padding .18s ease;
}
.nv-brand {
  height: 50px !important;
  padding: 0 !important;
  border-radius: 16px !important;
}
.nv-brand img {
  max-width: 50px !important;
  max-height: 42px !important;
  object-fit: contain;
  object-position: left center;
}
.nv-side-link {
  justify-content: center;
  padding: 0 !important;
  min-height: 44px;
}
.nv-side-link strong {
  display: none !important;
}
.nv-side-link::before {
  inset-inline-start: 0 !important;
}
.nv-side-icon {
  width: 44px !important;
  height: 44px !important;
}
.nv-user-chip {
  grid-template-columns: 44px !important;
  justify-content: center;
  padding: 8px !important;
}
.nv-user-chip > div {
  display: none !important;
}
.nv-logout {
  display: none !important;
}

/* Expanded sidebar when user clicks menu */
body.nv-sidebar-expanded {
  --nv-sidebar-w: var(--nv-sidebar-w-expanded);
}
body.nv-sidebar-expanded .nv-sidebar {
  padding: 24px 18px !important;
}
body.nv-sidebar-expanded .nv-brand {
  height: 58px !important;
  padding: 0 10px !important;
}
body.nv-sidebar-expanded .nv-brand img {
  max-width: 214px !important;
  max-height: 54px !important;
}
body.nv-sidebar-expanded .nv-side-link {
  justify-content: flex-start;
  padding: 0 14px !important;
}
body.nv-sidebar-expanded .nv-side-link strong {
  display: block !important;
}
body.nv-sidebar-expanded .nv-user-chip {
  grid-template-columns: 44px 1fr !important;
  justify-content: initial;
  padding: 12px !important;
}
body.nv-sidebar-expanded .nv-user-chip > div {
  display: block !important;
}
body.nv-sidebar-expanded .nv-logout {
  display: block !important;
}

/* The menu toggle is useful on desktop now */
.nv-mobile-toggle {
  display: inline-flex !important;
}

/* Rebalance board height after hero removal */
.nv-kanban {
  min-height: calc(100vh - 205px) !important;
}
.nv-kanban-column {
  max-height: calc(100vh - 205px) !important;
}
.nv-kanban-dropzone {
  min-height: calc(100vh - 282px) !important;
}

/* More desktop density */
@media (min-width: 1121px) {
  .nv-main {
    padding-left: 22px;
    padding-right: 22px;
  }
}


/* =========================================================
   NuvoCall V8D Sidebar Hover
   Desktop: no click button. Sidebar opens on mouse hover.
   Mobile/tablet keeps the menu button.
   ========================================================= */

/* Hide the expand/collapse button on desktop */
@media (min-width: 1121px) {
  .nv-mobile-toggle {
    display: none !important;
  }

  /* Expand grid when sidebar is hovered. Chrome/Edge support :has(). */
  .nv-app-shell:has(.nv-sidebar:hover) {
    grid-template-columns: var(--nv-sidebar-w-expanded) minmax(0, 1fr) !important;
  }

  .nv-sidebar:hover {
    width: var(--nv-sidebar-w-expanded);
    padding: 24px 18px !important;
    box-shadow: 18px 0 44px rgba(0,0,0,.18);
  }

  .nv-sidebar:hover .nv-brand {
    height: 58px !important;
    padding: 0 10px !important;
  }

  .nv-sidebar:hover .nv-brand img {
    max-width: 214px !important;
    max-height: 54px !important;
  }

  .nv-sidebar:hover .nv-side-link {
    justify-content: flex-start;
    padding: 0 14px !important;
  }

  .nv-sidebar:hover .nv-side-link strong {
    display: block !important;
  }

  .nv-sidebar:hover .nv-user-chip {
    grid-template-columns: 44px 1fr !important;
    justify-content: initial;
    padding: 12px !important;
  }

  .nv-sidebar:hover .nv-user-chip > div {
    display: block !important;
  }

  .nv-sidebar:hover .nv-logout {
    display: block !important;
  }
}

/* Keep mobile menu usable */
@media (max-width: 1120px) {
  .nv-mobile-toggle {
    display: inline-flex !important;
  }
}


/* =========================================================
   NuvoCall V8M Clean Stage Text
   New isolated classes: no old circles, no colored label background.
   ========================================================= */
.nv-kanban-head-clean {
  display: block;
  width: 100%;
  padding: 8px 10px 5px;
  background: transparent;
  border: 0;
}
.nv-stage-clean {
  --stage-color: var(--nv-emerald-700);
  position: relative;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 8px 4px;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: hidden;
}
.nv-stage-clean::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 0;
  background: var(--stage-color);
}
.nv-stage-clean-count {
  flex: 0 0 auto;
  min-width: 24px;
  height: 16px;
  padding: 0 7px;
  display: inline-grid;
  place-items: center;
  border-radius: 2px;
  background: #071311;
  color: #fff;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}
.nv-stage-clean-label {
  min-width: 0;
  flex: 1 1 auto;
  display: block;
  color: #172328;
  background: transparent !important;
  border: 0 !important;
  font-size: 12px;
  font-weight: 950;
  line-height: 16px;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nv-kanban-dropzone {
  padding-top: 6px !important;
}

/* =========================================================
   NuvoCall V8O Collapsed Sidebar Logo
   Collapsed sidebar shows N icon, expanded/hover sidebar shows full logo.
   ========================================================= */
.nv-brand {
  overflow: hidden;
}
.nv-logo-icon {
  display: block !important;
  width: 44px !important;
  height: 44px !important;
  object-fit: contain !important;
}
.nv-logo-full {
  display: none !important;
}
body.nv-sidebar-expanded .nv-logo-icon,
.nv-sidebar:hover .nv-logo-icon {
  display: none !important;
}
body.nv-sidebar-expanded .nv-logo-full,
.nv-sidebar:hover .nv-logo-full {
  display: block !important;
  max-width: 214px !important;
  max-height: 54px !important;
  object-fit: contain !important;
}
.nv-sidebar:not(:hover) .nv-brand,
body:not(.nv-sidebar-expanded) .nv-brand {
  justify-content: center !important;
}


/* =========================================================
   NuvoCall V8P Clean Header + Sidebar Separator
   Remove top title text and visually separate sidebar/content.
   ========================================================= */

/* Remove "Nuvocall / Operational command center" block from the topbar */
.nv-topbar > div:first-child {
  display: none !important;
}

/* Keep top actions clean and aligned */
.nv-topbar {
  justify-content: flex-end !important;
  align-items: center !important;
  min-height: 48px !important;
  margin-bottom: 14px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid rgba(7,79,69,.10) !important;
}

/* Stronger separation between sidebar/nav and the work area */
.nv-sidebar {
  border-inline-end: 1px solid rgba(16,191,164,.22) !important;
  box-shadow: inset -1px 0 0 rgba(255,255,255,.05), 8px 0 28px rgba(0,0,0,.10) !important;
}
.nv-main {
  border-inline-start: 1px solid rgba(7,79,69,.06) !important;
}

/* When sidebar is collapsed, keep separator subtle but visible */
.nv-app-shell {
  background:
    linear-gradient(90deg, rgba(7,79,69,.12) 0, rgba(7,79,69,.00) 10px),
    transparent;
}

/* =========================================================
   NuvoCall V8Q Workspace Top Modal
   Workspace opens as a top-attached working window. Backdrop click does not close it.
   ========================================================= */
.nv-workspace-overlay {
  padding: 0 18px 18px !important;
  align-items: flex-start !important;
  overflow-y: auto !important;
}
.nv-workspace-modal {
  margin: 0 auto !important;
  width: min(1540px, calc(100vw - 36px)) !important;
  max-height: none !important;
  min-height: min(860px, calc(100vh - 20px)) !important;
  border-radius: 0 0 26px 26px !important;
  border-top: 0 !important;
}
.nv-workspace-close {
  position: sticky !important;
  top: 12px !important;
  float: right !important;
  z-index: 20 !important;
  width: auto !important;
  min-width: 76px !important;
  height: 38px !important;
  padding: 0 16px !important;
  border-radius: 12px !important;
  background: #071B19 !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  letter-spacing: .02em !important;
  text-transform: uppercase !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.18) !important;
}
.nv-workspace-content,
.nv-workspace-pro {
  padding-top: 24px !important;
}
@media (max-width: 760px) {
  .nv-workspace-overlay { padding: 0 !important; }
  .nv-workspace-modal {
    width: 100vw !important;
    min-height: 100vh !important;
    border-radius: 0 !important;
  }
}


/* =========================================================
   NuvoCall V8R Workspace Window Header
   Close button lives inside green header. Modal is not closed by backdrop click.
   ========================================================= */
.nv-workspace-window-head {
  display: block !important;
  padding: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(16,191,164,.30), transparent 34%),
    linear-gradient(135deg, #061817 0%, #053E36 55%, #0B6558 100%) !important;
}
.nv-workspace-windowbar {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px 0 22px;
  color: rgba(255,255,255,.86);
  background: rgba(2,18,16,.36);
  border-bottom: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
}
.nv-workspace-windowbar > div {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nv-window-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--nv-mint-500);
  box-shadow: 0 0 0 6px rgba(16,191,164,.12);
}
.nv-workspace-windowbar strong {
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nv-workspace-hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  padding: 24px 28px 28px;
}
.nv-workspace-window-head h2 {
  margin: 7px 0 6px !important;
}
.nv-workspace-window-head p {
  margin: 0 !important;
  color: rgba(255,255,255,.78) !important;
}

/* Close button now belongs to the green window header */
.nv-workspace-windowbar .nv-workspace-close,
.nv-workspace-loading-frame .nv-workspace-close {
  position: static !important;
  float: none !important;
  top: auto !important;
  right: auto !important;
  margin: 0 !important;
  width: auto !important;
  min-width: 74px !important;
  height: 36px !important;
  padding: 0 14px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  background: rgba(2,18,16,.72) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.18) !important;
}
.nv-workspace-windowbar .nv-workspace-close:hover,
.nv-workspace-loading-frame .nv-workspace-close:hover {
  background: rgba(0,0,0,.88) !important;
}
.nv-workspace-loading-frame {
  min-height: 260px;
  padding: 16px;
  display: grid;
  gap: 30px;
  align-content: start;
}
.nv-workspace-loading-frame .nv-workspace-close {
  justify-self: end;
}
.nv-workspace-content,
.nv-workspace-pro {
  padding-top: 18px !important;
}
@media (max-width: 760px) {
  .nv-workspace-windowbar {
    height: 50px;
    padding: 0 12px 0 14px;
  }
  .nv-workspace-hero-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
  }
}


/* =========================================================
   NuvoCall V8T Workspace Header Full Modal Width
   Based on V8R: keep modal width, make green header span the full modal.
   ========================================================= */

/* Keep the V8R modal width, not fullscreen */
.nv-workspace-overlay {
  padding: 0 18px 18px !important;
}
.nv-workspace-modal {
  width: min(1540px, calc(100vw - 36px)) !important;
  max-width: none !important;
  margin: 0 auto !important;
  border-radius: 0 0 26px 26px !important;
}

/* Content keeps padding, but the green header escapes it */
.nv-workspace-content,
.nv-workspace-pro {
  padding: 0 22px 24px !important;
}
.nv-workspace-window-head {
  margin-left: -22px !important;
  margin-right: -22px !important;
  margin-top: 0 !important;
  border-radius: 0 0 24px 24px !important;
}

/* The content below remains padded and clean */
.nv-workspace-summary,
.nv-workspace-summary-pro {
  margin-top: 16px !important;
}

/* =========================================================
   NuvoCall V9 Notifications + Activities
   Correct CRM flow: notes/notifications need attention, activities are done actions.
   ========================================================= */

/* Clean Kanban stage header from final accepted direction */
.nv-kanban-head-clean {
  display: block;
  width: 100%;
  padding: 8px 10px 5px;
  background: transparent;
  border: 0;
}
.nv-stage-clean {
  --stage-color: var(--nv-emerald-700);
  position: relative;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 8px 4px;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: hidden;
}
.nv-stage-clean::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 0;
  background: var(--stage-color);
}
.nv-stage-clean-count {
  flex: 0 0 auto;
  min-width: 24px;
  height: 16px;
  padding: 0 7px;
  display: inline-grid;
  place-items: center;
  border-radius: 2px;
  background: #071311;
  color: #fff;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}
.nv-stage-clean-label {
  min-width: 0;
  flex: 1 1 auto;
  display: block;
  color: #172328;
  background: transparent !important;
  border: 0 !important;
  font-size: 12px;
  font-weight: 950;
  line-height: 16px;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nv-account-card { position: relative; }
.nv-card-alert {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #D92D20;
  border: 2px solid #fff;
  font-size: 10px;
  font-weight: 950;
  box-shadow: 0 10px 18px rgba(217,45,32,.28);
  z-index: 3;
}

.nv-notification-list { display: grid; gap: 10px; }
.nv-notification-item {
  position: relative;
  padding: 13px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(7,79,69,.10);
  box-shadow: 0 10px 24px rgba(4,44,39,.045);
}
.nv-notification-item.is-unread {
  border-color: rgba(217,45,32,.22);
  box-shadow: 0 12px 28px rgba(217,45,32,.07);
}
.nv-notification-item.is-unread::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 0 99px 99px 0;
  background: #D92D20;
}
.nv-notification-item header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.nv-notification-item header strong { font-size: 13px; }
.nv-notification-item header span, .nv-notification-item small { color: var(--nv-muted); font-size: 11px; }
.nv-notification-item p { margin: 0 0 7px; color: #425058; line-height: 1.45; font-size: 13px; }
.nv-notification-item form { margin-top: 10px; }
.nv-activity-composer .nv-mini-row { grid-template-columns: 1fr 1fr; }
.nv-activity-composer input[name="title"] { font-weight: 800; }

@media (max-width: 760px) {
  .nv-activity-composer .nv-mini-row { grid-template-columns: 1fr; }
}

/* =========================================================
   NuvoCall V9A Timeline Post-it Notes
   Notes appear only in timeline, as yellow post-it cards with chosen accent.
   ========================================================= */
.nv-note-flow-hint {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 13px;
  background: rgba(255,248,196,.68);
  border: 1px solid rgba(240,191,54,.28);
  color: #6B5600;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}
.nv-timeline-card.is-note-postit {
  --note-accent: #F6C343;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,252,214,.98), rgba(255,244,157,.94)) !important;
  border: 1px solid rgba(198,151,18,.20) !important;
  border-left: 7px solid var(--note-accent) !important;
  box-shadow: 0 16px 34px rgba(130,95,12,.12) !important;
}
.nv-timeline-card.is-note-postit::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, rgba(255,255,255,.74) 0 48%, rgba(230,183,44,.23) 49% 100%);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}
.nv-timeline-card.is-note-postit .nv-timeline-icon {
  background: linear-gradient(135deg, #F8D65D, #F2B705) !important;
  color: #3C3102 !important;
  box-shadow: 0 10px 22px rgba(198,151,18,.20) !important;
}
.nv-timeline-card.is-note-postit .nv-timeline-body header strong {
  color: #2C2400;
}
.nv-timeline-card.is-note-postit .nv-timeline-body header em {
  background: rgba(97,73,0,.10) !important;
  color: #6B5600 !important;
}
.nv-timeline-card.is-note-postit .nv-timeline-body p {
  color: #3D3305 !important;
  font-weight: 650;
}
.nv-timeline-card.is-note-postit.nv-note-color-default { --note-accent: #F2B705; }
.nv-timeline-card.is-note-postit.nv-note-color-mint { --note-accent: #10BFA4; }
.nv-timeline-card.is-note-postit.nv-note-color-teal { --note-accent: #0E8B78; }
.nv-timeline-card.is-note-postit.nv-note-color-violet { --note-accent: #8360F6; }
.nv-timeline-card.is-note-postit.nv-note-color-amber { --note-accent: #F79009; }
.nv-timeline-card.is-note-postit.nv-note-color-rose { --note-accent: #F04438; }
.nv-timeline-card.is-note-postit.nv-note-color-graphite { --note-accent: #111A1F; }

/* =========================================================
   NuvoCall V9B Phone Composer Placeholder
   Design-only dialer block, not connected yet.
   ========================================================= */
.nv-phone-composer {
  background:
    radial-gradient(circle at 100% 0%, rgba(16,191,164,.14), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(246,252,250,.92)) !important;
}
.nv-phone-composer-box {
  display: grid;
  gap: 12px;
}
.nv-phone-screen {
  position: relative;
  padding: 12px;
  border-radius: 18px;
  background: #061B18;
  border: 1px solid rgba(16,191,164,.20);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 16px 34px rgba(4,44,39,.10);
}
.nv-phone-screen span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255,255,255,.55);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.nv-phone-screen input {
  width: 100%;
  height: 46px;
  border: 0;
  outline: 0;
  border-radius: 13px;
  padding: 0 14px;
  color: #fff;
  background: rgba(255,255,255,.08);
  font-size: 20px;
  font-weight: 950;
  letter-spacing: .02em;
}
.nv-phone-screen input::placeholder { color: rgba(255,255,255,.35); }
.nv-phone-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.nv-phone-btn {
  height: 44px;
  border: 0;
  border-radius: 14px;
  cursor: default;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .02em;
}
.nv-phone-btn-call {
  color: #fff;
  background: linear-gradient(135deg, var(--nv-emerald-800), var(--nv-teal-600));
  box-shadow: 0 14px 28px rgba(7,79,69,.22);
}
.nv-phone-btn-call span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-inline-end: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
}
.nv-phone-btn-log {
  color: var(--nv-emerald-800);
  background: rgba(16,191,164,.12);
  border: 1px solid rgba(7,79,69,.10);
}
@media (max-width: 760px) {
  .nv-phone-actions { grid-template-columns: 1fr; }
}

/* =========================================================
   NuvoCall V10 Email Foundation
   Shared commercial mailbox composer, logged only for now.
   ========================================================= */
.nv-email-composer {
  background:
    radial-gradient(circle at 100% 0%, rgba(131,96,246,.10), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,252,251,.92)) !important;
}
.nv-email-form label {
  color: var(--nv-muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.nv-email-form input[readonly] {
  color: var(--nv-emerald-800);
  background: rgba(16,191,164,.08);
  font-weight: 850;
}
.nv-email-form textarea {
  min-height: 108px;
}

/* =========================================================
   NuvoCall V12 Rich Email Composer + Templates
   ========================================================= */
.nv-email-rich-form {
  gap: 10px !important;
}
.nv-wysiwyg-toolbar {
  display: flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(7,79,69,.10);
  border-radius: 13px 13px 0 0;
  background: rgba(6,72,63,.05);
}
.nv-wysiwyg-toolbar button {
  height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(7,79,69,.12);
  border-radius: 9px;
  background: #fff;
  color: var(--nv-emerald-800);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.nv-wysiwyg-editor {
  min-height: 180px;
  max-height: 360px;
  overflow: auto;
  padding: 14px;
  border: 1px solid rgba(7,79,69,.10);
  border-top: 0;
  border-radius: 0 0 15px 15px;
  background: #fff;
  color: #243137;
  font-size: 14px;
  line-height: 1.65;
  outline: 0;
}
.nv-wysiwyg-editor:focus {
  border-color: rgba(14,139,120,.38);
  box-shadow: 0 0 0 5px rgba(16,191,164,.10);
}
.nv-wysiwyg-editor:empty::before {
  content: attr(data-placeholder);
  color: #93A2A8;
}
.nv-email-form input[type="file"] {
  padding: 10px;
  background: #fff;
  border: 1px dashed rgba(7,79,69,.24);
  border-radius: 13px;
}

/* V12A: email sending busy state */
.nv-email-rich-form.is-sending {
  position: relative;
  opacity: .62;
  filter: grayscale(.25);
  pointer-events: none;
}
.nv-email-rich-form.is-sending::after {
  content: "Sending email...";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  color: var(--nv-emerald-800);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .03em;
  backdrop-filter: blur(2px);
}

/* =========================================================
   NuvoCall V14 Email subject list + client notification style
   ========================================================= */
.nv-account-card.has-unread-notification {
  border-color: rgba(217,45,32,.34) !important;
  box-shadow: 0 18px 34px rgba(217,45,32,.10), 0 0 0 1px rgba(217,45,32,.12) !important;
}
.nv-account-card.has-unread-notification::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 0 99px 99px 0;
  background: #D92D20;
}
.nv-email-timeline-placeholder {
  color: #6b7b82 !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  background: rgba(16,191,164,.08);
  border: 1px solid rgba(16,191,164,.12);
  padding: 8px 10px;
  border-radius: 12px;
}
.nv-email-subject-list {
  display: grid;
  gap: 9px;
}
.nv-email-subject-item {
  border: 1px solid rgba(7,79,69,.10);
  border-radius: 15px;
  background: #fff;
  overflow: hidden;
}
.nv-email-subject-item.direction-inbound {
  border-left: 4px solid #D92D20;
}
.nv-email-subject-item.direction-outbound {
  border-left: 4px solid var(--nv-teal-600);
}
.nv-email-subject-main {
  width: 100%;
  border: 0;
  background: transparent;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 8px;
  align-items: center;
  text-align: left;
  padding: 10px 11px;
  cursor: pointer;
}
.nv-email-subject-main span {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(16,191,164,.10);
  color: var(--nv-emerald-800);
  font-weight: 950;
}
.nv-email-subject-main strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #172328;
  font-size: 12px;
  font-weight: 950;
}
.nv-email-subject-main small {
  color: var(--nv-muted);
  font-size: 10px;
  font-weight: 800;
}
.nv-email-subject-actions {
  display: flex;
  gap: 6px;
  padding: 0 10px 10px 43px;
}
.nv-email-subject-actions button {
  border: 1px solid rgba(7,79,69,.10);
  border-radius: 999px;
  background: rgba(16,191,164,.08);
  color: var(--nv-emerald-800);
  font-size: 11px;
  font-weight: 950;
  padding: 6px 9px;
  cursor: pointer;
}
.nv-email-preview {
  margin-top: 10px;
  padding: 12px;
  border-radius: 15px;
  background: #F8FCFA;
  border: 1px solid rgba(7,79,69,.10);
  color: var(--nv-muted);
  font-size: 12px;
}
.nv-email-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.nv-email-preview-head strong { color: #172328; }
.nv-email-preview-head small { color: var(--nv-muted); }
.nv-email-preview pre {
  max-height: 280px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  color: #243137;
  font-family: inherit;
  line-height: 1.55;
}

/* V14A: email preview actions */
.nv-email-preview-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 0 0 10px;
}
.nv-email-preview-actions button {
  border: 1px solid rgba(7,79,69,.12);
  border-radius: 999px;
  background: rgba(16,191,164,.10);
  color: var(--nv-emerald-800);
  font-size: 11px;
  font-weight: 950;
  padding: 7px 10px;
  cursor: pointer;
}
.nv-email-preview.is-marked-unread {
  border-color: rgba(217,45,32,.28);
  box-shadow: 0 12px 28px rgba(217,45,32,.08);
}
.nv-email-preview.is-marked-unread::before {
  content: "Marked unread";
  display: inline-block;
  margin-bottom: 8px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(217,45,32,.10);
  color: #D92D20;
  font-size: 10px;
  font-weight: 950;
}

/* V14B: make email timeline cards clearly clickable */
.nv-timeline-card.is-email-clickable,
.nv-email-subject-main,
.nv-email-subject-actions button,
.nv-email-preview-actions button {
  cursor: pointer !important;
}
.nv-timeline-card.is-email-clickable {
  border-color: rgba(14,139,120,.22) !important;
}
.nv-timeline-card.is-email-clickable:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(7,79,69,.10) !important;
  background: rgba(16,191,164,.055) !important;
}
.nv-timeline-card.is-email-clickable .nv-timeline-body header strong::after {
  content: "  · click to open";
  color: var(--nv-teal-600);
  font-size: 11px;
  font-weight: 900;
}

/* V14C: email inline slide inside timeline */
.nv-email-inline-reader {
  display: none;
  margin: 12px 0 0 48px;
  padding: 0;
  border-radius: 16px;
  border: 1px solid rgba(7,79,69,.10);
  background: #fff;
  overflow: hidden;
}
.nv-email-inline-reader.is-open {
  display: block;
  animation: nvEmailSlide .18s ease-out;
}
@keyframes nvEmailSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.nv-email-slide-loading {
  padding: 18px;
  color: var(--nv-emerald-800);
  font-size: 12px;
  font-weight: 950;
  background: rgba(16,191,164,.08);
}
.nv-email-slide-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(7,79,69,.08);
  background: #F8FCFA;
}
.nv-email-slide-head strong {
  display: block;
  color: #172328;
  font-size: 13px;
  font-weight: 950;
}
.nv-email-slide-head small {
  display: block;
  color: var(--nv-muted);
  font-size: 11px;
  margin-top: 3px;
}
.nv-email-inline-reader pre {
  max-height: 420px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  padding: 15px;
  color: #243137;
  font-family: inherit;
  line-height: 1.6;
}
.nv-email-slide-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(7,79,69,.08);
  background: #FAFDFC;
}
.nv-email-slide-attachments strong {
  width: 100%;
  color: #172328;
  font-size: 11px;
  font-weight: 950;
}
.nv-email-slide-attachments a {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(16,191,164,.10);
  border: 1px solid rgba(7,79,69,.10);
  color: var(--nv-emerald-800);
  font-size: 11px;
  font-weight: 950;
  text-decoration: none;
}
.nv-email-inline-reader.is-marked-unread {
  border-color: rgba(217,45,32,.28);
  box-shadow: 0 12px 28px rgba(217,45,32,.08);
}

/* V14D: no email body in notifications, robust timeline click/slide */
.nv-email-notification-hint {
  margin: 7px 0 0 !important;
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(16,191,164,.08);
  color: var(--nv-emerald-800) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}
.nv-timeline-card.is-email-clickable:not(.has-open-email) .nv-email-inline-reader {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}
.nv-timeline-card.is-email-clickable.has-open-email .nv-email-inline-reader.is-open {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
}
.nv-timeline-card.is-email-clickable * {
  cursor: pointer;
}
.nv-timeline-card.is-email-clickable .nv-email-inline-reader,
.nv-timeline-card.is-email-clickable .nv-email-inline-reader * {
  cursor: auto;
}
.nv-timeline-card.is-email-clickable .nv-email-preview-actions button,
.nv-timeline-card.is-email-clickable .nv-email-slide-attachments a {
  cursor: pointer !important;
}

/* V14E: email slide layout fix - slide lives inside timeline body */
.nv-timeline-body .nv-email-inline-reader {
  grid-column: auto !important;
  width: 100% !important;
  margin: 12px 0 0 !important;
  min-height: 0 !important;
}
.nv-timeline-card.is-email-clickable:not(.has-open-email) .nv-email-inline-reader {
  display: none !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}
.nv-timeline-card.is-email-clickable.has-open-email .nv-email-inline-reader.is-open {
  display: block !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}
.nv-email-inline-reader pre {
  min-height: 42px !important;
  max-height: 380px !important;
}

/* V15 - Client workspace tabs refactor */
.nv-workspace-main-tabs {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 14px !important;
}
.nv-workspace-main-tabs button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #111A1F;
  font-weight: 900;
  font-size: 13px;
  padding: 11px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.nv-workspace-main-tabs button:hover,
.nv-workspace-main-tabs button.active {
  background: rgba(16,191,164,.12);
  color: #063f38;
  box-shadow: inset 0 0 0 1px rgba(14,139,120,.16);
}
.nv-workspace-tab-panel { display: none; }
.nv-workspace-tab-panel.active { display: block; }
.nv-client-details-panel,
.nv-contacts-panel,
.nv-logs-panel {
  max-width: 1080px;
  margin: 0 auto;
}
.nv-form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.nv-form-grid-2 label,
.nv-contact-json-form label {
  display: grid;
  gap: 7px;
  color: #5b6970;
  font-size: 12px;
  font-weight: 900;
}
.nv-form-grid-2 input,
.nv-form-grid-2 select,
.nv-contact-json-textarea {
  width: 100%;
  border: 1px solid rgba(11,101,88,.16);
  background: #fff;
  color: #111A1F;
  border-radius: 16px;
  padding: 12px 13px;
  font-weight: 800;
  outline: none;
}
.nv-form-grid-2 input:focus,
.nv-form-grid-2 select:focus,
.nv-contact-json-textarea:focus {
  border-color: rgba(16,191,164,.55);
  box-shadow: 0 0 0 4px rgba(16,191,164,.12);
}
.nv-form-span-2 { grid-column: 1 / -1; }
.nv-contact-json-textarea {
  min-height: 420px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.45;
  resize: vertical;
  white-space: pre;
}
.nv-help-text {
  display: block;
  color: #65757b;
  font-size: 12px;
  line-height: 1.5;
  margin-top: -2px;
}
.nv-log-list {
  display: grid;
  gap: 10px;
}
.nv-log-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid rgba(11,101,88,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.78);
}
.nv-log-row strong {
  display: block;
  color: #111A1F;
  font-weight: 900;
}
.nv-log-row small,
.nv-log-row span {
  color: #64767d;
  font-size: 12px;
  font-weight: 800;
}
.nv-log-row span { white-space: nowrap; }
@media (max-width: 860px) {
  .nv-form-grid-2 { grid-template-columns: 1fr; }
  .nv-form-span-2 { grid-column: auto; }
  .nv-workspace-main-tabs { overflow-x: auto; }
  .nv-log-row { align-items: flex-start; flex-direction: column; }
  .nv-log-row span { white-space: normal; }
}

/* V15A - Visual contacts form + stage/log split */
.nv-contact-form {
  gap: 18px;
}
.nv-contact-list {
  display: grid;
  gap: 16px;
}
.nv-contact-card {
  border: 1px solid rgba(11,101,88,.14);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(248,253,251,.9));
  padding: 16px;
  box-shadow: 0 14px 35px rgba(17,26,31,.06);
}
.nv-contact-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.nv-contact-card-head strong {
  color: #111A1F;
  font-weight: 950;
}
.nv-primary-contact {
  display: inline-flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 7px !important;
  margin-left: auto;
  color: #0B6558 !important;
}
.nv-primary-contact input {
  width: auto !important;
  box-shadow: none !important;
}
.nv-contact-remove {
  border: 1px solid rgba(217,45,32,.18);
  background: rgba(217,45,32,.08);
  color: #9e1c13;
  border-radius: 999px;
  padding: 8px 11px;
  font-weight: 900;
  cursor: pointer;
}
.nv-contact-card textarea {
  width: 100%;
  border: 1px solid rgba(11,101,88,.16);
  background: #fff;
  color: #111A1F;
  border-radius: 16px;
  padding: 12px 13px;
  font-weight: 800;
  outline: none;
  resize: vertical;
}
.nv-contact-card textarea:focus {
  border-color: rgba(16,191,164,.55);
  box-shadow: 0 0 0 4px rgba(16,191,164,.12);
}
.nv-timeline-card.type-stage_changed,
.nv-timeline-card.type-client_updated,
.nv-timeline-card.type-contacts_updated {
  display: none;
}
@media (max-width: 860px) {
  .nv-contact-card-head { align-items: flex-start; flex-direction: column; }
  .nv-primary-contact { margin-left: 0; }
}


/* V17 - Email templates admin */
.nv-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.nv-template-card {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(11,101,88,.14);
  border-radius: 26px;
  padding: 20px;
  box-shadow: 0 18px 45px rgba(17,26,31,.08);
}
.nv-template-card-head,
.nv-template-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.nv-template-card h3 {
  margin: 16px 0 8px;
  font-size: 18px;
  color: #111A1F;
}
.nv-template-card p {
  min-height: 38px;
  color: #65757b;
  line-height: 1.55;
}
.nv-template-card code {
  display: block;
  padding: 10px 12px;
  margin: 12px 0;
  background: #eff8f5;
  color: #0B6558;
  border-radius: 14px;
  font-weight: 900;
}
.nv-template-actions form { margin: 0; }
.nv-email-template-form { display: grid; gap: 18px; }
.nv-template-builder {
  border: 1px solid rgba(11,101,88,.16);
  background: #f8fcfa;
  border-radius: 26px;
  overflow: hidden;
}
.nv-template-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid rgba(11,101,88,.12);
  background: linear-gradient(135deg, rgba(6,24,23,.96), rgba(11,101,88,.95));
}
.nv-template-toolbar button {
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.12);
  color: #fff;
  border-radius: 999px;
  padding: 8px 11px;
  font-weight: 900;
  cursor: pointer;
}
.nv-template-toolbar button:hover { background: rgba(16,191,164,.35); }
.nv-template-editor-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.nv-template-editor-wrap > div { padding: 14px; }
.nv-template-editor-wrap label {
  display: block;
  margin-bottom: 8px;
  color: #5b6970;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.nv-template-visual {
  min-height: 620px;
  background: #eef7f4;
  border: 1px solid rgba(11,101,88,.14);
  border-radius: 18px;
  padding: 18px;
  overflow: auto;
  outline: none;
}
.nv-template-editor-wrap textarea {
  width: 100%;
  min-height: 620px;
  border: 1px solid rgba(11,101,88,.14);
  border-radius: 18px;
  padding: 16px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
  color: #172328;
  outline: none;
}
.nv-template-vars {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px;
  background: rgba(16,191,164,.08);
  border: 1px solid rgba(16,191,164,.18);
  border-radius: 20px;
}
.nv-template-vars strong { margin-right: 8px; color: #0B6558; }
.nv-template-vars span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 900;
  color: #063f38;
  background: #fff;
  border-radius: 999px;
  padding: 7px 10px;
}
@media (max-width: 1100px) {
  .nv-template-editor-wrap { grid-template-columns: 1fr; }
  .nv-template-visual, .nv-template-editor-wrap textarea { min-height: 460px; }
}

/* V18C - Email composer as a full workspace tab */
.nv-email-tab-panel .nv-email-composer {
  max-width: 1180px;
  margin: 0 auto;
}
.nv-email-tab-panel .nv-email-rich-form {
  display: grid;
  gap: 12px;
  padding: 18px;
}
.nv-email-tab-panel .nv-wysiwyg-editor {
  min-height: 520px;
  max-height: 720px;
  overflow: auto;
}
.nv-email-tab-panel .nv-wysiwyg-toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
}
@media (max-width: 900px) {
  .nv-email-tab-panel .nv-wysiwyg-editor { min-height: 420px; }
}

/* V19 - Funding requests */
.nv-funding-tab-panel { gap: 16px; }
.nv-workspace-tab-panel.nv-funding-tab-panel.active { display: grid; }
.nv-funding-panel,
.nv-funding-card {
  border: 1px solid rgba(11,101,88,.12);
  background: rgba(255,255,255,.94);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(17,26,31,.06);
}
.nv-funding-list { display: grid; gap: 14px; }
.nv-funding-card { padding: 18px; display: grid; gap: 14px; }
.nv-funding-card header { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.nv-funding-card header strong { display:block; font-size:17px; color:#111A1F; }
.nv-funding-card header small { color:#73838a; font-weight:800; }
.nv-funding-status { border-radius:999px; padding:7px 11px; background:#e8f7f3; color:#0B6558; font-weight:950; text-transform:capitalize; }
.nv-funding-amount { font-size:28px; font-weight:950; color:#063f38; }
.nv-funding-meta { display:flex; flex-wrap:wrap; gap:10px; color:#66747b; font-weight:800; }
.nv-copy-row { display:grid; grid-template-columns: minmax(0,1fr) auto; gap:10px; }
.nv-copy-row input { width:100%; border:1px solid rgba(11,101,88,.12); border-radius:14px; padding:10px 12px; background:#f8fcfa; color:#405158; }
.nv-funding-update-form { border:1px dashed rgba(11,101,88,.18); background:#fbfffd; }
.nv-funding-actions { display:flex; flex-wrap:wrap; gap:8px; }
.nv-funding-actions form { margin:0; }
.nv-funding-log { border-top:1px solid rgba(11,101,88,.10); padding-top:12px; display:grid; gap:8px; }
.nv-funding-log > strong { color:#0B6558; }
.nv-funding-log div { padding:10px 12px; border-radius:14px; background:#f6fbf9; }
.nv-funding-log span { color:#7b8b92; font-size:12px; font-weight:800; }
.nv-funding-log p { margin:4px 0 0; color:#283940; font-weight:800; }
.nv-funding-card.status-cancelled .nv-funding-status,
.nv-funding-card.status-refund_requested .nv-funding-status,
.nv-funding-card.status-refunded .nv-funding-status { background:#fff1f0; color:#D92D20; }
.nv-funding-card.status-approved .nv-funding-status,
.nv-funding-card.status-paid_by_card .nv-funding-status { background:#e8fff7; color:#067647; }
@media (max-width: 760px) {
  .nv-copy-row { grid-template-columns: 1fr; }
  .nv-funding-card header { flex-direction:column; }
}

/* V19B - funding receipts */
.nv-funding-receipts {
  border-top:1px solid rgba(11,101,88,.10);
  padding-top:12px;
  display:grid;
  gap:8px;
}
.nv-funding-receipts > strong { color:#0B6558; }
.nv-funding-receipts div { padding:10px 12px; border-radius:14px; background:#fff8e8; border:1px solid rgba(247,181,0,.18); }
.nv-funding-receipts span { color:#9a6b00; font-size:12px; font-weight:800; }
.nv-funding-receipts p { margin:4px 0 0; color:#4f3f10; font-weight:850; }

/* V20 - Ajax Kanban notifications */
.nv-account-card.has-new-notification-pulse {
  animation: nvNotificationPulse 1.6s ease;
}
@keyframes nvNotificationPulse {
  0% { box-shadow: 0 0 0 0 rgba(217,45,32,.42), 0 18px 40px rgba(17,26,31,.08); }
  70% { box-shadow: 0 0 0 12px rgba(217,45,32,0), 0 18px 40px rgba(17,26,31,.08); }
  100% { box-shadow: 0 0 0 0 rgba(217,45,32,0), 0 18px 40px rgba(17,26,31,.08); }
}

/* V21 - Quotes / Devis */
.nv-quotes-tab-panel { gap: 16px; }
.nv-workspace-tab-panel.nv-quotes-tab-panel.active { display: grid; }
.nv-quotes-panel,
.nv-quote-card {
  border: 1px solid rgba(11,101,88,.12);
  background: rgba(255,255,255,.94);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(17,26,31,.06);
}
.nv-quotes-panel { padding: 18px; }
.nv-quotes-list { display: grid; gap: 14px; }
.nv-quote-card { padding: 18px; display: grid; gap: 14px; }
.nv-quote-card header { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.nv-quote-card header strong { display:block; font-size:17px; color:#111A1F; }
.nv-quote-card header small { color:#73838a; font-weight:800; }
.nv-quote-form { display:grid; gap:14px; }
.nv-quote-lines { display:grid; gap:10px; margin-top:10px; }
.nv-quote-line {
  display:grid;
  grid-template-columns:minmax(260px,1.7fr) 90px 120px 100px 120px 120px 38px;
  gap:8px;
  align-items:start;
  padding:10px;
  border:1px solid rgba(11,101,88,.12);
  background:#fbfffd;
  border-radius:18px;
}
.nv-quote-line textarea,
.nv-quote-line input {
  width:100%;
  border:1px solid rgba(11,101,88,.14);
  border-radius:13px;
  padding:10px 11px;
  background:#fff;
  color:#172328;
  font:inherit;
  font-weight:750;
  outline:none;
}
.nv-quote-line textarea {
  min-height:52px;
  resize:vertical;
  line-height:1.45;
  font-weight:800;
}
.nv-quote-line input[readonly] { background:#f2fbf8; color:#4a6264; }
.nv-quote-line button[data-nv-remove-quote-line] {
  height:40px;
  border:0;
  border-radius:12px;
  background:#fff1f0;
  color:#D92D20;
  font-weight:950;
  cursor:pointer;
}
.nv-quote-line button[data-nv-remove-quote-line]:hover { background:#ffe4e0; }
.nv-quote-totals {
  display:flex;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}
.nv-quote-totals span {
  display:flex;
  gap:10px;
  align-items:center;
  border:1px solid rgba(11,101,88,.12);
  background:#f6fbf9;
  color:#52656c;
  border-radius:999px;
  padding:10px 14px;
  font-weight:950;
}
.nv-quote-totals span:last-child {
  background:#0B6558;
  color:#fff;
  border-color:#0B6558;
}
.nv-quote-card.status-accepted .nv-funding-status { background:#e8fff7; color:#067647; }
.nv-quote-card.status-cancelled .nv-funding-status,
.nv-quote-card.status-expired .nv-funding-status { background:#fff1f0; color:#D92D20; }
@media (max-width: 1160px) {
  .nv-quote-line { grid-template-columns:1fr 1fr 1fr; }
  .nv-quote-line textarea { grid-column:1 / -1; }
}
@media (max-width: 720px) {
  .nv-quote-line { grid-template-columns:1fr; }
  .nv-quote-totals { justify-content:stretch; }
  .nv-quote-totals span { justify-content:space-between; width:100%; }
}

/* V21A - Quote line headers + accepted quote readonly view */
.nv-quote-line-head,
.nv-quote-readonly-line {
  display:grid;
  grid-template-columns:minmax(260px,1.7fr) 90px 120px 100px 120px 120px 38px;
  gap:8px;
  align-items:center;
}
.nv-quote-line-head {
  margin: 12px 10px 4px;
  color:#65777e;
  font-size:11px;
  font-weight:950;
  letter-spacing:.07em;
  text-transform:uppercase;
}
.nv-quote-readonly {
  display:grid;
  gap:14px;
  border:1px solid rgba(11,101,88,.12);
  background:#fbfffd;
  border-radius:20px;
  padding:14px;
}
.nv-quote-readonly .nv-form-grid-2 > div {
  border:1px solid rgba(11,101,88,.10);
  background:#fff;
  border-radius:16px;
  padding:12px;
}
.nv-quote-readonly small {
  display:block;
  color:#6a7b82;
  font-size:11px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.06em;
  margin-bottom:5px;
}
.nv-quote-readonly p { margin:0; color:#26373d; font-weight:800; line-height:1.55; }
.nv-quote-readonly-lines { display:grid; gap:8px; }
.nv-quote-readonly-line {
  padding:10px;
  border:1px solid rgba(11,101,88,.10);
  background:#fff;
  border-radius:16px;
}
.nv-quote-readonly-line div { color:#172328; font-weight:850; line-height:1.45; }
.nv-quote-readonly-line strong { color:#22343a; text-align:right; }
@media (max-width: 1160px) {
  .nv-quote-line-head { display:none; }
  .nv-quote-readonly-line { grid-template-columns:1fr 1fr 1fr; }
  .nv-quote-readonly-line div { grid-column:1 / -1; }
}
@media (max-width: 720px) {
  .nv-quote-readonly-line { grid-template-columns:1fr; }
  .nv-quote-readonly-line strong { text-align:left; }
}

/* V22 - Daily wallboard / TV dashboard */
.nv-daily-body {
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(16,191,164,.22), transparent 28%),
    radial-gradient(circle at 90% 0%, rgba(131,96,246,.18), transparent 26%),
    linear-gradient(135deg,#061817,#0b2927 48%,#111A1F);
  color:#fff;
  overflow:hidden;
}
.nv-daily-wall { padding:28px; min-height:100vh; display:grid; grid-template-rows:auto auto 1fr; gap:22px; }
.nv-daily-head { display:flex; justify-content:space-between; align-items:center; gap:20px; }
.nv-daily-brand { display:flex; align-items:center; gap:18px; }
.nv-daily-brand img { width:210px; max-height:58px; object-fit:contain; filter:drop-shadow(0 16px 32px rgba(0,0,0,.22)); }
.nv-daily-brand span { display:block; color:#9cebdd; font-size:13px; font-weight:900; letter-spacing:.13em; text-transform:uppercase; }
.nv-daily-brand strong { display:block; font-size:34px; line-height:1.1; }
.nv-daily-clock { text-align:right; }
.nv-daily-clock strong { display:block; font-size:44px; line-height:1; }
.nv-daily-clock span { color:#b9d7d1; font-weight:850; }
.nv-daily-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.nv-daily-kpis article { padding:20px; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.08); border-radius:26px; box-shadow:0 24px 70px rgba(0,0,0,.18); backdrop-filter:blur(16px); }
.nv-daily-kpis span { color:#a6dcd3; font-size:12px; font-weight:950; text-transform:uppercase; letter-spacing:.10em; }
.nv-daily-kpis strong { display:block; margin-top:10px; font-size:34px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.nv-daily-kpis small { color:#bcd6d1; font-weight:850; }
.nv-daily-grid { display:grid; grid-template-columns:1.4fr .8fr .8fr; grid-template-rows:1fr 1fr; gap:16px; min-height:0; }
.nv-daily-wide { grid-row:span 2; }
.nv-daily-panel { min-height:0; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.08); border-radius:28px; padding:20px; box-shadow:0 24px 70px rgba(0,0,0,.18); backdrop-filter:blur(16px); overflow:hidden; display:flex; flex-direction:column; gap:16px; }
.nv-daily-panel header { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; }
.nv-daily-panel h2 { margin:0; font-size:24px; }
.nv-daily-panel header span { color:#9cebdd; font-size:12px; font-weight:950; text-transform:uppercase; letter-spacing:.10em; }
.nv-daily-chart { flex:1; min-height:0; display:grid; grid-template-columns:repeat(24,1fr); gap:7px; align-items:end; padding:12px 4px 0; }
.nv-hour-bar { min-width:0; display:flex; flex-direction:column; align-items:center; gap:7px; height:100%; justify-content:flex-end; }
.nv-hour-bar i { width:100%; min-height:4px; border-radius:999px 999px 6px 6px; background:linear-gradient(180deg,#10BFA4,#8360F6); box-shadow:0 0 24px rgba(16,191,164,.28); transition:height .4s ease; }
.nv-hour-bar span { font-size:10px; color:#bcd6d1; font-weight:850; }
.nv-daily-winners,
.nv-daily-score { overflow:auto; padding-right:4px; display:grid; gap:10px; }
.nv-daily-person { display:grid; grid-template-columns:44px 1fr auto; gap:12px; align-items:center; padding:10px; border-radius:18px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.10); }
.nv-daily-person img,
.nv-daily-initials { width:44px; height:44px; border-radius:50%; object-fit:cover; background:linear-gradient(135deg,#10BFA4,#8360F6); display:grid; place-items:center; color:#fff; font-weight:950; }
.nv-daily-person strong { display:block; font-size:14px; }
.nv-daily-person small { color:#bcd6d1; font-weight:800; }
.nv-daily-person b { font-size:18px; color:#10BFA4; }
.nv-deal-spotlight { position:fixed; inset:0; display:grid; place-items:center; background:rgba(3,12,12,.45); opacity:0; pointer-events:none; transition:opacity .25s ease; z-index:10000; }
.nv-deal-spotlight.is-open { opacity:1; }
.nv-deal-card { position:relative; width:min(520px,88vw); padding:42px 34px; border-radius:38px; background:linear-gradient(135deg,#fff,#e9fff9); color:#111A1F; text-align:center; box-shadow:0 36px 120px rgba(0,0,0,.36); transform:scale(.92) translateY(20px); transition:transform .35s ease; overflow:hidden; }
.nv-deal-spotlight.is-open .nv-deal-card { transform:scale(1) translateY(0); }
.nv-deal-avatar img,
.nv-deal-avatar .nv-daily-initials { width:148px; height:148px; margin:0 auto 18px; border:6px solid #10BFA4; box-shadow:0 0 0 10px rgba(16,191,164,.14); }
.nv-deal-card span { color:#0B6558; font-size:13px; font-weight:950; text-transform:uppercase; letter-spacing:.18em; }
.nv-deal-card h2 { margin:8px 0; font-size:42px; }
.nv-deal-card p { margin:0; color:#475b62; font-size:18px; font-weight:850; }
.nv-confetti::before,
.nv-confetti::after { content:""; position:absolute; inset:0; background-image:radial-gradient(#10BFA4 0 4px, transparent 5px), radial-gradient(#8360F6 0 3px, transparent 4px), radial-gradient(#f7b500 0 4px, transparent 5px); background-size:80px 80px, 110px 110px, 130px 130px; animation:nvConfetti 1.8s linear infinite; }
.nv-confetti::after { animation-duration:2.4s; opacity:.6; }
@keyframes nvConfetti { from { transform:translateY(-20px) rotate(0deg); } to { transform:translateY(120px) rotate(20deg); } }
@media (max-width:1100px) {
  .nv-daily-body { overflow:auto; }
  .nv-daily-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .nv-daily-grid { grid-template-columns:1fr; grid-template-rows:auto; }
  .nv-daily-wide { grid-row:auto; min-height:420px; }
}
@media (max-width:700px) {
  .nv-daily-wall { padding:16px; }
  .nv-daily-head { display:block; }
  .nv-daily-clock { text-align:left; margin-top:16px; }
  .nv-daily-kpis { grid-template-columns:1fr; }
  .nv-daily-brand strong { font-size:26px; }
}

/* V18E - OpenAI HTML assistant for templates */
.nv-ai-template-box {
  display:grid;
  gap:12px;
  margin:16px 0;
  padding:18px;
  border:1px solid rgba(131,96,246,.20);
  background:linear-gradient(135deg, rgba(131,96,246,.10), rgba(16,191,164,.08));
  border-radius:22px;
  box-shadow:0 18px 44px rgba(17,26,31,.06);
}
.nv-ai-template-box h3 { margin:4px 0 4px; color:#111A1F; }
.nv-ai-template-box p { margin:0; color:#5d6f76; font-weight:800; }
.nv-ai-template-box textarea {
  width:100%;
  min-height:110px;
  border:1px solid rgba(11,101,88,.16);
  border-radius:18px;
  padding:14px;
  resize:vertical;
  outline:none;
  font:inherit;
  line-height:1.55;
  background:#fff;
  color:#172328;
}
.nv-ai-template-actions {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
}
.nv-ai-template-actions small {
  color:#0B6558;
  font-weight:900;
}
.nv-ai-template-actions small.is-error { color:#D92D20; }
.nv-ai-template-box.is-busy {
  opacity:.78;
  pointer-events:none;
}
