/**
 * NGCS Sendit — app shell styles (2.6.0)
 *
 * Everything is scoped under .ngcs-shell (and .ngcs-modal-backdrop for the
 * modals rendered outside it), so the theme and other NGCS screens are not
 * affected. Uses logical properties (inline-start/end) so the same rules work
 * for English (ltr) and Hebrew (rtl).
 */

.ngcs-shell,
.ngcs-modal-backdrop {
	--s-ground: #F3F5F2;
	--s-surface: #FFFFFF;
	--s-surface-2: #F6F8F6;
	--s-line: #DCE3DE;
	--s-line-soft: #ECF0ED;
	--s-line-strong: #C8D2CC;
	--s-ink: #12211C;
	--s-muted: #4E5F58;
	--s-accent: #0B6E55;
	--s-accent-hover: #095C47;
	--s-accent-ink: #0A5E48;
	--s-accent-soft: #E3F1EB;
	--s-info: #1F4E8C;
	--s-info-soft: #E6EEF8;
	--s-warn: #6B3A00;
	--s-warn-soft: #FCEFD9;
	--s-bad: #8A1D15;
	--s-bad-strong: #A8241B;
	--s-bad-soft: #FBE6E3;
	--s-side: #0D1A15;
	--s-side-2: #142520;
	--s-side-line: #2A3F37;
	--s-side-text: #C9D6D0;
	--s-side-muted: #93A69E;
	--s-side-active: #1F3A30;
	--s-radius: 12px;
	--s-radius-sm: 8px;
	--s-font: 'IBM Plex Sans', 'IBM Plex Sans Hebrew', 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-family: var(--s-font);
	color: var(--s-ink);
	font-size: 14px;
	line-height: 1.45;
	box-sizing: border-box;
}

.ngcs-shell *,
.ngcs-shell *::before,
.ngcs-shell *::after,
.ngcs-modal-backdrop *,
.ngcs-modal-backdrop *::before,
.ngcs-modal-backdrop *::after {
	box-sizing: border-box;
}

/* ---- Theme resets inside the app ---------------------------------------- */
.ngcs-shell h1,
.ngcs-shell h2,
.ngcs-shell h3,
.ngcs-shell p,
.ngcs-modal-backdrop h3,
.ngcs-modal-backdrop p {
	margin: 0;
	font-family: var(--s-font);
	color: inherit;
	letter-spacing: normal;
	text-transform: none;
}
.ngcs-shell button,
.ngcs-shell input,
.ngcs-shell select,
.ngcs-shell textarea,
.ngcs-modal-backdrop button,
.ngcs-modal-backdrop input {
	font-family: var(--s-font);
	font-size: 14px;
	letter-spacing: normal;
	text-transform: none;
	line-height: 1.3;
}
.ngcs-shell button,
.ngcs-modal-backdrop button {
	box-shadow: none;
	text-shadow: none;
	margin: 0;
}
.ngcs-shell a { color: var(--s-accent); }
.ngcs-shell a:hover { color: var(--s-accent-hover); }
.ngcs-shell :focus-visible,
.ngcs-modal-backdrop :focus-visible {
	outline: 3px solid #6DB3F2;
	outline-offset: 2px;
}
.ngcs-shell [hidden] { display: none !important; }
.ngcs-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.ngcs-shell .ngcs-ico { flex: none; display: block; }
.ngcs-shell .ngcs-muted { color: var(--s-muted); }
.ngcs-shell .ngcs-small { font-size: 13px; }
.ngcs-shell .ngcs-stack { display: flex; flex-direction: column; gap: 16px; }
.ngcs-shell .ngcs-stack-sm { display: flex; flex-direction: column; gap: 10px; }
.ngcs-shell .ngcs-row-gap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ngcs-shell .ngcs-row-between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

/* Undo 2.5.x widths/borders from ngcs-core.css on the new pages */
.ngcs-shell .ngcs-excel-box,
.ngcs-shell .ngcs-wa-status { max-width: none; }
.ngcs-shell .ngcs-status-box { border-inline-start: none; border-left: none; }
.ngcs-shell #ngcs-tab-batches,
.ngcs-shell #ngcs-batches-table { background: transparent; padding: 0; border-radius: 0; }

/* Headings: beat theme heading fonts (id-level specificity) */
#ngcs-shell h1, #ngcs-shell h2, #ngcs-shell h3,
.ngcs-modal-backdrop h3 { font-family: var(--s-font); color: var(--s-ink); margin: 0; letter-spacing: normal; text-transform: none; }
#ngcs-shell #ngcs-page-title { font-size: 28px; font-weight: 700; line-height: 1.2; }
#ngcs-shell .ngcs-card-head h2,
#ngcs-shell .ngcs-section-title { font-size: 17px; font-weight: 600; line-height: 1.3; }

/* ---- Shell layout ------------------------------------------------------- */
.ngcs-shell {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	width: 100%;
	min-height: 86vh;
	background: var(--s-ground);
	border-radius: 16px;
	overflow: hidden;
	margin: 0 auto;
}

/* Side menu */
.ngcs-shell .ngcs-side {
	flex: 1 1 236px;
	max-width: 100%;
	background: var(--s-side);
	color: var(--s-side-text);
	padding: 22px 14px;
	display: flex;
	flex-direction: column;
	gap: 22px;
}
.ngcs-shell .ngcs-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; }
.ngcs-shell .ngcs-brand-mark {
	width: 34px; height: 34px; border-radius: 9px;
	background: var(--s-accent); color: #FFFFFF;
	display: flex; align-items: center; justify-content: center; flex: none;
}
.ngcs-shell .ngcs-brand-text { display: flex; flex-direction: column; min-width: 0; }
.ngcs-shell .ngcs-brand-name { font-weight: 700; font-size: 16px; color: #FFFFFF; }
.ngcs-shell .ngcs-brand-tag { font-size: 12px; color: var(--s-side-muted); }

.ngcs-shell .ngcs-side-label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	color: var(--s-side-muted);
	text-transform: uppercase;
	letter-spacing: 0.6px;
	margin: 0 0 6px;
	padding: 0 4px;
}
.ngcs-shell .ngcs-side-business { margin: 0; display: block; }
.ngcs-shell .ngcs-business-row { display: flex; gap: 6px; align-items: stretch; }
.ngcs-shell .ngcs-business-row select,
.ngcs-shell .ngcs-business-selector select {
	flex: 1;
	min-width: 0;
	max-width: none;
	min-height: 44px;
	padding: 0 12px;
	border-radius: 10px;
	border: 1px solid var(--s-side-line);
	background: var(--s-side-2);
	color: #FFFFFF;
	font-weight: 600;
	font-size: 14px;
	appearance: auto;
}
.ngcs-shell .ngcs-business-row select option { color: var(--s-ink); background: #FFFFFF; }
.ngcs-shell .ngcs-side-icon-btn,
.ngcs-shell #ngcs-add-business-btn {
	width: 44px; height: 44px; min-width: 44px;
	padding: 0;
	border-radius: 10px;
	border: 1px solid var(--s-side-line);
	background: var(--s-side-2);
	color: var(--s-side-text);
	display: inline-flex; align-items: center; justify-content: center;
	cursor: pointer;
	text-decoration: none;
}
.ngcs-shell .ngcs-side-icon-btn:hover,
.ngcs-shell #ngcs-add-business-btn:hover { background: var(--s-side-active); color: #FFFFFF; }

/* Nav (keeps the .ngcs-tab class the JS binds to) */
.ngcs-shell .ngcs-nav { display: flex; flex-direction: column; gap: 4px; flex-wrap: nowrap; }
.ngcs-shell .ngcs-nav .ngcs-tab {
	display: flex; align-items: center; gap: 12px;
	width: 100%;
	min-height: 44px;
	padding: 0 12px;
	border: none;
	border-radius: 10px;
	background: transparent;
	color: var(--s-side-text);
	font-size: 14px;
	font-weight: 500;
	text-align: start;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}
.ngcs-shell .ngcs-nav .ngcs-tab:hover { background: var(--s-side-2); color: #FFFFFF; }
.ngcs-shell .ngcs-nav .ngcs-tab.active { background: var(--s-side-active); color: #FFFFFF; font-weight: 600; }

.ngcs-shell .ngcs-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding: 0 4px; }
.ngcs-shell .ngcs-side-foot .ngcs-side-label { margin: 0; }
.ngcs-shell .ngcs-lang-switch {
	display: flex; gap: 4px; padding: 4px;
	background: var(--s-side-2);
	border: 1px solid var(--s-side-line);
	border-radius: 10px;
}
.ngcs-shell .ngcs-lang-btn {
	flex: 1;
	min-height: 36px;
	border: none;
	border-radius: 7px;
	background: transparent;
	color: var(--s-side-text);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
}
.ngcs-shell .ngcs-lang-btn.is-on { background: var(--s-accent); color: #FFFFFF; font-weight: 600; }
.ngcs-shell .ngcs-user {
	display: flex; align-items: center; gap: 10px;
	padding-top: 12px;
	border-top: 1px solid #22352E;
}
.ngcs-shell .ngcs-avatar {
	width: 32px; height: 32px; border-radius: 50%;
	background: var(--s-side-line); color: #FFFFFF;
	display: flex; align-items: center; justify-content: center;
	font-weight: 600; font-size: 12px; flex: none;
}
.ngcs-shell .ngcs-user-name { flex: 1; min-width: 0; color: #FFFFFF; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ngcs-shell .ngcs-user .ngcs-side-icon-btn { background: transparent; border-color: transparent; }

/* Main */
.ngcs-shell .ngcs-main {
	flex: 999 1 560px;
	min-width: 0;
	padding: 28px clamp(16px, 3vw, 40px) 48px;
	display: flex;
	flex-direction: column;
	gap: 22px;
}
.ngcs-shell .ngcs-page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.ngcs-shell .ngcs-page-titles { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ngcs-shell #ngcs-page-title { font-size: 28px; font-weight: 700; line-height: 1.2; }
.ngcs-shell #ngcs-page-sub { color: var(--s-muted); font-size: 15px; }
.ngcs-shell .ngcs-tab-content { padding: 0; display: flex; flex-direction: column; gap: 20px; }
.ngcs-shell .ngcs-tab-content[style*="display:none"],
.ngcs-shell .ngcs-tab-content[style*="display: none"] { display: none !important; }

/* ---- Cards ---------------------------------------------------------------- */
.ngcs-shell .ngcs-card {
	background: var(--s-surface);
	border: 1px solid var(--s-line);
	border-radius: var(--s-radius);
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}
.ngcs-shell .ngcs-card-flush { padding: 0; gap: 0; }
.ngcs-shell .ngcs-pad { padding: 18px 20px 10px; }
.ngcs-shell .ngcs-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.ngcs-shell .ngcs-card-head h2,
.ngcs-shell .ngcs-section-title { font-size: 17px; font-weight: 600; line-height: 1.3; }
.ngcs-shell .ngcs-subhead { font-size: 14px; font-weight: 600; }
.ngcs-shell .ngcs-split { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.ngcs-shell .ngcs-split-main { flex: 2 1 460px; min-width: 0; }
.ngcs-shell .ngcs-split-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

/* KPIs */
.ngcs-shell .ngcs-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.ngcs-shell .ngcs-kpi {
	background: var(--s-surface);
	border: 1px solid var(--s-line);
	border-radius: var(--s-radius);
	padding: 16px;
	display: flex; flex-direction: column; gap: 6px;
}
.ngcs-shell .ngcs-kpi-label { color: var(--s-muted); font-size: 13px; }
.ngcs-shell .ngcs-kpi-value { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.15; }
.ngcs-shell .ngcs-kpi-note { font-size: 12px; color: var(--s-muted); }
.ngcs-shell .ngcs-kpi-note.is-bad { color: var(--s-bad); }

/* Recent list */
.ngcs-shell .ngcs-recent { display: flex; flex-direction: column; }
.ngcs-shell .ngcs-recent-item { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--s-line-soft); }
.ngcs-shell .ngcs-recent-item:first-child { border-top: none; padding-top: 0; }
.ngcs-shell .ngcs-recent-main { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ngcs-shell .ngcs-recent-title { font-weight: 600; overflow-wrap: anywhere; }
.ngcs-shell .ngcs-recent-meta { color: var(--s-muted); font-size: 13px; }
.ngcs-shell .ngcs-recent-progress { flex: 1 1 160px; display: flex; align-items: center; gap: 10px; }
.ngcs-shell .ngcs-recent-item > .ngcs-pill { min-width: 96px; justify-content: center; }

/* Health */
.ngcs-shell .ngcs-health-number { font-weight: 600; font-size: 16px; unicode-bidi: plaintext; }
.ngcs-shell .ngcs-health-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ngcs-shell .ngcs-health-grid dt { font-size: 12px; color: var(--s-muted); }
.ngcs-shell .ngcs-health-grid dd { margin: 0; font-weight: 600; }

/* Pills & bars */
.ngcs-shell .ngcs-pill {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px; font-weight: 600;
	white-space: nowrap;
	background: #ECEFED; color: #3E4B46;
}
.ngcs-shell .ngcs-pill.is-ok { background: var(--s-accent-soft); color: var(--s-accent-ink); }
.ngcs-shell .ngcs-pill.is-run { background: var(--s-info-soft); color: var(--s-info); }
.ngcs-shell .ngcs-pill.is-warn { background: var(--s-warn-soft); color: var(--s-warn); }
.ngcs-shell .ngcs-pill.is-bad { background: var(--s-bad-soft); color: var(--s-bad); }
.ngcs-shell .ngcs-pill.is-dark { background: var(--s-ink); color: #FFFFFF; }
.ngcs-shell .ngcs-bar { flex: 1; height: 8px; border-radius: 99px; background: #E4EAE6; overflow: hidden; min-width: 60px; }
.ngcs-shell .ngcs-bar > span { display: block; height: 100%; border-radius: 99px; background: var(--s-accent); }
.ngcs-shell .ngcs-bar.is-run > span { background: #2F6FB5; }
.ngcs-shell .ngcs-bar.is-bad > span { background: #C2410C; }
.ngcs-shell .ngcs-bar-pct { font-size: 12px; color: var(--s-muted); font-variant-numeric: tabular-nums; min-width: 36px; }

/* Callouts */
.ngcs-shell .ngcs-callout {
	display: flex; gap: 10px; align-items: flex-start;
	padding: 12px 14px;
	border-radius: 10px;
	font-size: 13px;
	margin: 0;
}
.ngcs-shell .ngcs-callout .ngcs-ico { margin-top: 1px; }
.ngcs-shell .ngcs-callout.is-info { background: var(--s-info-soft); color: var(--s-info); }
.ngcs-shell .ngcs-callout.is-warn { background: var(--s-warn-soft); color: var(--s-warn); }
.ngcs-shell .ngcs-callout.is-bad { background: var(--s-bad-soft); color: var(--s-bad); }
.ngcs-shell .ngcs-callout.is-ok { background: var(--s-accent-soft); color: var(--s-accent-ink); }
.ngcs-shell .ngcs-callout-block { flex-direction: column; gap: 8px; }
.ngcs-shell .ngcs-row-between > .ngcs-callout { flex: 1 1 360px; }

/* ---- Buttons ---------------------------------------------------------------- */
.ngcs-shell .ngcs-btn,
.ngcs-modal-backdrop .ngcs-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 10px;
	border: 1px solid transparent;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.ngcs-shell .ngcs-btn:disabled,
.ngcs-modal-backdrop .ngcs-btn:disabled { opacity: .5; cursor: not-allowed; }
.ngcs-shell .ngcs-btn-primary,
.ngcs-modal-backdrop .ngcs-btn-primary { background: var(--s-accent); color: #FFFFFF; border-color: var(--s-accent); }
.ngcs-shell .ngcs-btn-primary:hover:not(:disabled),
.ngcs-modal-backdrop .ngcs-btn-primary:hover:not(:disabled) { background: var(--s-accent-hover); color: #FFFFFF; }
.ngcs-shell .ngcs-btn-dark { background: var(--s-ink); color: #FFFFFF; border-color: var(--s-ink); }
.ngcs-shell .ngcs-btn-dark:hover:not(:disabled) { background: #22352E; color: #FFFFFF; }
.ngcs-shell .ngcs-btn-outline,
.ngcs-modal-backdrop .ngcs-btn-outline { background: var(--s-surface); color: var(--s-ink); border-color: var(--s-line-strong); }
.ngcs-shell .ngcs-btn-outline:hover:not(:disabled),
.ngcs-modal-backdrop .ngcs-btn-outline:hover:not(:disabled) { background: var(--s-surface-2); color: var(--s-ink); }
.ngcs-shell .ngcs-btn-accent-outline { background: var(--s-surface); color: var(--s-accent); border-color: var(--s-accent); }
.ngcs-shell .ngcs-btn-accent-outline:hover:not(:disabled) { background: var(--s-accent-soft); color: var(--s-accent-hover); }
.ngcs-shell .ngcs-btn-quiet-danger { background: transparent; color: var(--s-bad-strong); border-color: transparent; }
.ngcs-shell .ngcs-btn-quiet-danger:hover:not(:disabled) { background: var(--s-bad-soft); color: var(--s-bad); }
.ngcs-shell .ngcs-btn-lg { min-height: 48px; padding: 0 22px; font-size: 15px; }
.ngcs-shell .ngcs-link-btn {
	min-height: 44px; padding: 0 8px;
	border: none; background: transparent;
	color: var(--s-accent); font-weight: 600; cursor: pointer;
}
.ngcs-shell .ngcs-icon-btn {
	width: 44px; height: 44px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 8px;
	border: 1px solid var(--s-line);
	background: var(--s-surface);
	color: var(--s-muted);
	cursor: pointer;
	padding: 0;
	list-style: none;
}
.ngcs-shell .ngcs-icon-btn:hover { background: var(--s-surface-2); color: var(--s-ink); }
.ngcs-shell .ngcs-btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; font-weight: 500; }

/* ---- Toolbar, chips, search, menu ---------------------------------------- */
.ngcs-shell .ngcs-toolbar {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
	padding: 14px 20px;
	border-bottom: 1px solid var(--s-line-soft);
}
.ngcs-shell .ngcs-toolbar-end { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ngcs-shell .ngcs-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ngcs-shell .ngcs-chip {
	min-height: 36px; padding: 0 14px;
	border-radius: 999px;
	border: 1px solid var(--s-line-strong);
	background: var(--s-surface);
	color: var(--s-ink);
	font-size: 13px;
	cursor: pointer;
}
.ngcs-shell .ngcs-chip.is-on { background: var(--s-accent); border-color: var(--s-accent); color: #FFFFFF; font-weight: 600; }
.ngcs-shell .ngcs-chip .ngcs-chip-n { opacity: .8; margin-inline-start: 4px; font-variant-numeric: tabular-nums; }
.ngcs-shell .ngcs-search {
	display: flex; align-items: center; gap: 8px; min-width: 0;
	min-height: 40px; padding: 0 12px;
	border: 1px solid var(--s-line-strong);
	border-radius: 10px;
	background: var(--s-surface);
	color: var(--s-muted);
	flex: 1 1 220px;
	max-width: 320px;
	margin: 0;
}
.ngcs-shell .ngcs-search input {
	border: none !important; outline: none; box-shadow: none !important;
	background: transparent !important;
	flex: 1; min-width: 0;
	padding: 8px 0 !important;
	color: var(--s-ink);
	height: auto;
}
.ngcs-shell .ngcs-menu { position: relative; }
.ngcs-shell .ngcs-menu > summary::-webkit-details-marker { display: none; }
.ngcs-shell .ngcs-menu > summary::marker { content: ''; }
.ngcs-shell .ngcs-menu-pop {
	position: absolute;
	inset-inline-end: 0;
	top: calc(100% + 6px);
	z-index: 50;
	min-width: 230px;
	padding: 6px;
	background: var(--s-surface);
	border: 1px solid var(--s-line);
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(18, 33, 28, .14);
	display: flex; flex-direction: column;
}
.ngcs-shell .ngcs-menu-item {
	min-height: 44px; padding: 0 12px;
	border: none; border-radius: 8px;
	background: transparent;
	color: var(--s-ink);
	text-align: start;
	font-size: 14px;
	cursor: pointer;
}
.ngcs-shell .ngcs-menu-item:hover { background: var(--s-surface-2); }
.ngcs-shell .ngcs-menu-item.is-danger { color: var(--s-bad-strong); }
.ngcs-shell .ngcs-menu-item.is-danger:hover { background: var(--s-bad-soft); }

/* ---- Tables ---------------------------------------------------------------- */
.ngcs-shell .ngcs-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ngcs-shell .ngcs-table {
	width: 100%;
	border-collapse: collapse;
	border: none;
	margin: 0;
	background: transparent;
	font-size: 14px;
	box-shadow: none;
}
.ngcs-shell .ngcs-table thead { background: transparent; }
.ngcs-shell .ngcs-table th {
	padding: 12px;
	text-align: start;
	font-size: 12px;
	font-weight: 600;
	color: var(--s-muted);
	text-transform: uppercase;
	letter-spacing: .4px;
	background: transparent;
	border: none;
	border-bottom: 1px solid var(--s-line-soft);
	white-space: nowrap;
}
.ngcs-shell .ngcs-table td {
	padding: 13px 12px;
	border: none;
	border-top: 1px solid var(--s-line-soft);
	vertical-align: middle;
	background: transparent;
	color: var(--s-ink);
	text-align: start;
}
.ngcs-shell .ngcs-table th:first-child,
.ngcs-shell .ngcs-table td:first-child { padding-inline-start: 20px; }
.ngcs-shell .ngcs-table th:last-child,
.ngcs-shell .ngcs-table td:last-child { padding-inline-end: 20px; }
.ngcs-shell .ngcs-table tbody tr:hover { background: #FAFBFA; }
.ngcs-shell .ngcs-table tbody tr:first-child td { border-top: none; }
.ngcs-shell .ngcs-table .ngcs-num { text-align: end; font-variant-numeric: tabular-nums; }
.ngcs-shell .ngcs-table .ngcs-empty { text-align: center; color: var(--s-muted); padding: 28px 20px; }
.ngcs-shell .ngcs-table .ngcs-col-check { width: 44px; }
.ngcs-shell .ngcs-table .ngcs-col-progress { width: 180px; }
.ngcs-shell .ngcs-table input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--s-accent); cursor: pointer; }
.ngcs-shell .ngcs-table-campaigns { min-width: 900px; }
.ngcs-shell #ngcs-batch-stats-table,
.ngcs-shell #ngcs-search-results-table { min-width: 760px; }
.ngcs-shell #ngcs-batch-stats-table th,
.ngcs-shell #ngcs-batch-stats-table td { text-align: start; }
.ngcs-shell .ngcs-cell-title { display: flex; flex-direction: column; gap: 2px; }
.ngcs-shell .ngcs-cell-title strong { font-weight: 600; }
.ngcs-shell .ngcs-cell-title span { color: var(--s-muted); font-size: 13px; overflow-wrap: anywhere; }
.ngcs-shell .ngcs-progress-cell { display: flex; align-items: center; gap: 8px; }
.ngcs-shell .ngcs-code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 12px;
	background: #F1F4F2;
	padding: 3px 6px;
	border-radius: 6px;
	unicode-bidi: plaintext;
}
.ngcs-shell .ngcs-ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.ngcs-shell .error-message { color: var(--s-bad); max-width: 420px; font-family: var(--s-font); font-size: 13px; }
.ngcs-shell #ngcs-batch-stats-table th { background: transparent; }
.ngcs-shell #ngcs-batch-stats-table td,
.ngcs-shell #ngcs-batch-stats-table .stat-sent,
.ngcs-shell #ngcs-batch-stats-table .stat-delivered,
.ngcs-shell #ngcs-batch-stats-table .stat-read { color: var(--s-ink); font-weight: 400; }
.ngcs-shell #ngcs-batch-stats-table .stat-failed { color: var(--s-bad-strong); font-weight: 600; }
.ngcs-shell .ngcs-template-content td { background: var(--s-surface-2) !important; }
.ngcs-shell .ngcs-template-row { cursor: pointer; }
.ngcs-shell .ngcs-tpl-detail { display: grid; gap: 6px; font-size: 13px; }
.ngcs-shell .ngcs-tpl-detail b { font-weight: 600; }
.ngcs-shell .ngcs-tpl-detail > div { display: grid; grid-template-columns: minmax(80px, 120px) minmax(0, 1fr); gap: 12px; }
.ngcs-shell .ngcs-tpl-text { white-space: pre-line; unicode-bidi: plaintext; text-align: start; }
.ngcs-shell .ngcs-preview-table-container { max-height: 340px; overflow: auto; border: 1px solid var(--s-line-soft); border-radius: 10px; }
.ngcs-shell .ngcs-table-compact td,
.ngcs-shell .ngcs-table-compact th { padding: 8px 10px; font-size: 13px; white-space: nowrap; }

/* Success-rate badges from the core JS */
.ngcs-shell .ngcs-success-rate { display: inline-flex; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.ngcs-shell .ngcs-success-rate.high { background: var(--s-accent-soft); color: var(--s-accent-ink); }
.ngcs-shell .ngcs-success-rate.medium { background: var(--s-warn-soft); color: var(--s-warn); }
.ngcs-shell .ngcs-success-rate.low { background: var(--s-bad-soft); color: var(--s-bad); }

/* ---- Forms ---------------------------------------------------------------- */
.ngcs-shell .ngcs-form { display: flex; flex-direction: column; gap: 16px; }
.ngcs-shell .ngcs-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 0; }
.ngcs-shell .ngcs-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; border: none; padding: 0; }
.ngcs-shell .ngcs-field > label,
.ngcs-shell .ngcs-field > legend,
.ngcs-modal-backdrop .ngcs-field > label { font-size: 13px; font-weight: 600; color: var(--s-ink); margin: 0; padding: 0; }
.ngcs-shell .ngcs-hint { font-size: 12px; color: var(--s-muted); margin: 0; }
.ngcs-shell .ngcs-input,
.ngcs-shell .ngcs-select,
.ngcs-shell .ngcs-textarea,
.ngcs-shell .ngcs-field select,
.ngcs-modal-backdrop .ngcs-input {
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid var(--s-line-strong);
	border-radius: var(--s-radius-sm);
	background: var(--s-surface);
	color: var(--s-ink);
	font-size: 14px;
	box-shadow: none;
	margin: 0;
}
.ngcs-shell .ngcs-textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.ngcs-shell .ngcs-input:focus,
.ngcs-shell .ngcs-select:focus,
.ngcs-shell .ngcs-textarea:focus,
.ngcs-modal-backdrop .ngcs-input:focus {
	outline: none;
	border-color: var(--s-accent);
	box-shadow: 0 0 0 3px rgba(11, 110, 85, .18);
}
.ngcs-shell .ngcs-radio-row { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.ngcs-shell .ngcs-radio-row label,
.ngcs-shell .ngcs-check { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; font-weight: 400; cursor: pointer; margin: 0; }
.ngcs-shell .ngcs-radio-row input,
.ngcs-shell .ngcs-check input { accent-color: var(--s-accent); width: 18px; height: 18px; margin: 0; }
.ngcs-shell .ngcs-subpanel { padding: 16px; background: var(--s-surface-2); border-radius: 10px; display: flex; flex-direction: column; gap: 14px; }
.ngcs-shell #ngcs-parameter-inputs { display: grid; gap: 10px; }
.ngcs-shell #ngcs-parameter-inputs input { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--s-line-strong); border-radius: 8px; }
.ngcs-shell .ngcs-search-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: end; }
.ngcs-shell .ngcs-search-actions { align-self: end; }

/* Status lines from the JS (.ngcs-success / .ngcs-error / .ngcs-info) */
.ngcs-shell .ngcs-success,
.ngcs-shell .ngcs-error,
.ngcs-shell .ngcs-info { padding: 10px 12px; border-radius: 8px; font-size: 13px; border: none; margin: 0; }
.ngcs-shell .ngcs-success { background: var(--s-accent-soft); color: var(--s-accent-ink); }
.ngcs-shell .ngcs-error { background: var(--s-bad-soft); color: var(--s-bad); }
.ngcs-shell .ngcs-info { background: var(--s-info-soft); color: var(--s-info); }
.ngcs-shell .ngcs-status-line:empty { display: none; }
.ngcs-shell .ngcs-status-line { padding: 10px 12px; border-radius: 8px; font-size: 13px; background: var(--s-surface-2); }
.ngcs-shell .ngcs-status-line.is-ok { background: var(--s-accent-soft); color: var(--s-accent-ink) !important; }
.ngcs-shell .ngcs-status-line.is-bad { background: var(--s-bad-soft); color: var(--s-bad) !important; }
.ngcs-shell .ngcs-status-line.is-warn { background: var(--s-warn-soft); color: var(--s-warn) !important; }
.ngcs-shell .ngcs-status-line.is-busy { background: var(--s-info-soft); color: var(--s-info) !important; }

/* nice-select (used on the message status filter) */
.ngcs-shell .nice-select {
	float: none;
	width: 100%;
	height: 44px;
	line-height: 42px;
	border-radius: var(--s-radius-sm);
	border: 1px solid var(--s-line-strong);
	font-size: 14px;
	padding-inline: 12px 30px;
	text-align: start;
}
.ngcs-shell .nice-select { padding-top: 0 !important; padding-bottom: 0 !important; line-height: 42px !important; background: var(--s-surface); }
.ngcs-shell .nice-select .current { line-height: 42px; }
.ngcs-shell .nice-select .list { width: 100%; border-radius: 8px; }
.ngcs-shell[dir="rtl"] .nice-select:after { right: auto; left: 12px; }
.ngcs-shell[dir="rtl"] .nice-select .option { text-align: right; }

/* ---- New campaign --------------------------------------------------------- */
.ngcs-shell .ngcs-campaign { display: flex; flex-direction: column; gap: 20px; }
.ngcs-shell .ngcs-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ngcs-shell .ngcs-step {
	display: flex; align-items: center; gap: 8px;
	padding-block: 6px; padding-inline: 6px 14px;
	border-radius: 999px;
	background: var(--s-surface);
	border: 1px solid var(--s-line);
	color: var(--s-muted);
	font-size: 14px;
	margin: 0;
}
.ngcs-shell .ngcs-step-dot {
	width: 26px; height: 26px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: #ECEFED; color: var(--s-muted);
	font-size: 12px; font-weight: 700;
}
.ngcs-shell .ngcs-step.is-active { background: var(--s-ink); border-color: var(--s-ink); color: #FFFFFF; font-weight: 600; }
.ngcs-shell .ngcs-step.is-active .ngcs-step-dot { background: #FFFFFF; color: var(--s-ink); }
.ngcs-shell .ngcs-step.is-done { background: var(--s-accent-soft); border-color: var(--s-accent-soft); color: var(--s-accent-ink); }
.ngcs-shell .ngcs-step.is-done .ngcs-step-dot { background: var(--s-accent); color: #FFFFFF; }

.ngcs-shell .ngcs-required-columns { display: flex; flex-direction: column; gap: 8px; }
.ngcs-shell .ngcs-col-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ngcs-shell .ngcs-col-chip {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 6px 12px 6px 6px;
	padding-inline: 6px 12px;
	border-radius: 8px;
	background: var(--s-surface-2);
	border: 1px solid var(--s-line);
	font-size: 13px; font-weight: 500;
	margin: 0;
}
.ngcs-shell .ngcs-col-n {
	width: 22px; height: 22px; border-radius: 6px;
	display: inline-flex; align-items: center; justify-content: center;
	background: #E4EAE6; color: var(--s-ink);
	font-size: 12px; font-weight: 700;
}
.ngcs-shell .ngcs-col-chip.is-ok { background: var(--s-accent-soft); border-color: #BFDFD2; color: var(--s-accent-ink); }
.ngcs-shell .ngcs-col-chip.is-ok .ngcs-col-n { background: var(--s-accent); color: #FFFFFF; }
.ngcs-shell .ngcs-col-chip.is-missing { background: var(--s-bad-soft); border-color: #F1C3BD; color: var(--s-bad); }
.ngcs-shell .ngcs-col-chip.is-missing .ngcs-col-n { background: var(--s-bad-strong); color: #FFFFFF; }

.ngcs-shell .ngcs-file {
	position: relative;
	display: flex; align-items: center; gap: 14px;
	padding: 18px;
	border: 1.5px dashed var(--s-line-strong);
	border-radius: 12px;
	background: var(--s-surface-2);
	color: var(--s-muted);
	cursor: pointer;
	margin: 0;
	font-weight: 400;
}
.ngcs-shell .ngcs-file:hover,
.ngcs-shell .ngcs-file.is-drag { border-color: var(--s-accent); background: var(--s-accent-soft); }
.ngcs-shell .ngcs-file:focus-within { outline: 3px solid #6DB3F2; outline-offset: 2px; }
.ngcs-shell .ngcs-file input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.ngcs-shell .ngcs-file-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ngcs-shell .ngcs-file-text strong { color: var(--s-ink); font-weight: 600; }
.ngcs-shell #ngcs-file-name { overflow-wrap: anywhere; }

.ngcs-shell .ngcs-plan { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0; }
.ngcs-shell .ngcs-plan > div { padding: 12px; border-radius: 10px; background: var(--s-surface-2); }
.ngcs-shell .ngcs-plan dt { font-size: 12px; color: var(--s-muted); margin: 0 0 2px; }
.ngcs-shell .ngcs-plan dd { margin: 0; font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.ngcs-shell .ngcs-send-row { padding-top: 4px; }

/* Phone preview */
.ngcs-shell .ngcs-preview-col { align-items: center; position: sticky; top: 20px; }
.ngcs-shell .ngcs-preview-caption { align-self: stretch; font-size: 13px; color: var(--s-muted); font-weight: 500; }
.ngcs-shell .ngcs-phone { width: 100%; max-width: 340px; border-radius: 28px; background: var(--s-side); padding: 12px; }
.ngcs-shell .ngcs-chat {
	border-radius: 20px;
	background: #E9E3DA;
	padding: 16px 12px 18px;
	min-height: 460px;
	display: flex; flex-direction: column; gap: 6px;
}
.ngcs-shell .ngcs-chat-empty { margin: auto; text-align: center; color: #5C5C52; font-size: 13px; max-width: 220px; }
.ngcs-shell .ngcs-bubble {
	align-self: flex-start;
	width: 88%;
	background: #FFFFFF;
	border-radius: 10px;
	padding: 4px;
	display: flex; flex-direction: column;
	box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
}
.ngcs-shell .ngcs-bubble-header:empty,
.ngcs-shell .ngcs-bubble-footer:empty,
.ngcs-shell .ngcs-bubble-buttons:empty { display: none; }
.ngcs-shell .ngcs-bubble-header { padding: 6px 8px 0; font-weight: 700; font-size: 14px; color: #111B21; unicode-bidi: plaintext; }
.ngcs-shell .ngcs-bubble-media {
	height: 132px; border-radius: 8px;
	background: #F2F2EE; border: 1px dashed #B8B8AE;
	display: flex; align-items: center; justify-content: center;
	color: #5C5C52; font-size: 12px; overflow: hidden;
}
.ngcs-shell .ngcs-bubble-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ngcs-shell .ngcs-bubble-body {
	padding: 8px 8px 2px;
	font-size: 13px;
	line-height: 1.6;
	color: #111B21;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	unicode-bidi: plaintext;
	font-family: var(--s-font);
}
.ngcs-shell .ngcs-bubble-footer { padding: 2px 8px 6px; font-size: 11px; color: #667781; unicode-bidi: plaintext; }
.ngcs-shell .ngcs-bubble-buttons { align-self: flex-start; width: 88%; display: flex; flex-direction: column; gap: 4px; }
.ngcs-shell .ngcs-bubble-btn { background: #FFFFFF; border-radius: 10px; padding: 10px; text-align: center; color: #0A6FAE; font-size: 13px; font-weight: 500; unicode-bidi: plaintext; }

/* ---- Reports ------------------------------------------------------------ */
.ngcs-shell .ngcs-funnel { display: flex; flex-direction: column; gap: 12px; }
.ngcs-shell .ngcs-funnel-row { display: grid; grid-template-columns: minmax(90px, 140px) minmax(0, 1fr) minmax(110px, auto); gap: 12px; align-items: center; }
.ngcs-shell .ngcs-funnel-bar { height: 22px; border-radius: 6px; background: #EEF2EF; overflow: hidden; }
.ngcs-shell .ngcs-funnel-bar > span { display: block; height: 100%; border-radius: 6px; }
.ngcs-shell .ngcs-funnel-val { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ngcs-shell .ngcs-funnel-val b { font-weight: 700; }
.ngcs-shell .ngcs-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: 8px; margin: 0; }

/* ---- WhatsApp numbers --------------------------------------------------- */
.ngcs-shell .ngcs-status-box { padding: 0; border: none; background: transparent; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.ngcs-shell .ngcs-number-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.ngcs-shell .ngcs-number-card { gap: 14px; }
.ngcs-shell .ngcs-number-card.is-default { border-color: #9CCBB9; box-shadow: 0 0 0 1px #9CCBB9 inset; }
.ngcs-shell .ngcs-number-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ngcs-shell .ngcs-number-title strong { font-size: 18px; font-weight: 700; unicode-bidi: plaintext; }
.ngcs-shell .ngcs-number-title span { color: var(--s-muted); font-size: 13px; overflow-wrap: anywhere; }
.ngcs-shell .ngcs-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.ngcs-shell .ngcs-facts dt { font-size: 12px; color: var(--s-muted); margin: 0; }
.ngcs-shell .ngcs-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.ngcs-shell .is-good-text { color: var(--s-accent-ink); }
.ngcs-shell .is-warn-text { color: var(--s-warn); }
.ngcs-shell .is-bad-text { color: var(--s-bad-strong); }
.ngcs-shell .ngcs-card-actions { display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--s-line-soft); padding-top: 14px; }

/* ---- Modals (rendered inside or outside the shell) ---------------------- */
.ngcs-modal-backdrop,
.ngcs-shell .ngcs-modal-backdrop {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(13, 26, 21, .55);
	align-items: center;
	justify-content: center;
	padding: 16px;
	overflow-y: auto;
}
.ngcs-modal-backdrop .ngcs-modal-panel {
	width: 100%;
	max-width: 440px;
	margin: 8vh auto 0;
	background: #FFFFFF;
	border-radius: 14px;
	padding: 24px;
	box-shadow: 0 20px 60px rgba(13, 26, 21, .3);
	display: flex; flex-direction: column; gap: 14px;
	color: #12211C;
	text-align: start;
}
.ngcs-modal-backdrop[style*="flex"] .ngcs-modal-panel { margin-top: 0; }
.ngcs-modal-backdrop h3 { font-size: 18px; font-weight: 700; }
.ngcs-modal-backdrop .ngcs-modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin: 4px 0 0; }
.ngcs-modal-backdrop .ngcs-modal-content label { margin: 0; }
.ngcs-modal-backdrop .ngcs-modal-content input { margin: 0; }
.ngcs-modal-backdrop .ngcs-pin-input { text-align: center; font-size: 20px; letter-spacing: 8px; font-variant-numeric: tabular-nums; }
.ngcs-modal-backdrop #ngcs-register-pin-status:empty { display: none; }

/* ---- Sign-in gate --------------------------------------------------------- */
.ngcs-shell.ngcs-shell-gate { min-height: 0; justify-content: center; padding: 48px 16px; background: transparent; }
.ngcs-shell .ngcs-gate-card { max-width: 420px; width: 100%; align-items: center; text-align: center; padding: 32px; }

/* ---- Small screens -------------------------------------------------------- */
@media (max-width: 860px) {
	.ngcs-shell { border-radius: 0; }
	.ngcs-shell .ngcs-side { flex-basis: 100%; padding: 14px 12px; gap: 12px; }
	.ngcs-shell .ngcs-nav { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 2px; scrollbar-width: thin; }
	.ngcs-shell .ngcs-nav .ngcs-tab { width: auto; flex: none; white-space: nowrap; }
	.ngcs-shell .ngcs-side-foot { flex-direction: row; flex-wrap: wrap; align-items: center; margin-top: 0; }
	.ngcs-shell .ngcs-side-foot > .ngcs-side-label { display: none; }
	.ngcs-shell .ngcs-lang-switch { flex: 0 1 200px; }
	.ngcs-shell .ngcs-user { flex: 1 1 200px; border-top: none; padding-top: 0; }
	.ngcs-shell .ngcs-main { padding: 20px 16px 40px; }
	.ngcs-shell #ngcs-page-title { font-size: 24px; }
	.ngcs-shell .ngcs-preview-col { position: static; }
	.ngcs-shell .ngcs-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ngcs-shell .ngcs-funnel-row { grid-template-columns: 1fr auto; }
	.ngcs-shell .ngcs-funnel-row .ngcs-funnel-bar { grid-column: 1 / -1; grid-row: 2; }
}

/* Phone numbers are LTR islands: keep them at the start edge in both directions */
.ngcs-shell .ngcs-number-title > strong[dir="ltr"],
.ngcs-shell .ngcs-health-number { align-self: flex-start; unicode-bidi: isolate; }

/* ---- 2.6.1: live-site fixes ------------------------------------------- */

/* Hide the theme's page-title banner (title + breadcrumbs) above the app. */
body.ngcs-sendit-app .tm-page-title,
body.ngcs-sendit-app section.page-title,
body:has(#ngcs-shell) .tm-page-title,
body:has(#ngcs-shell) section.page-title { display: none !important; }
/* The app is the whole page: no theme header, footer, banner or gutters around it. */
body.ngcs-sendit-app #header, body:has(#ngcs-shell) #header,
body.ngcs-sendit-app #footer, body:has(#ngcs-shell) #footer,
body.ngcs-sendit-app .scroll-to-top, body:has(#ngcs-shell) .scroll-to-top { display: none !important; }
body.ngcs-sendit-app .main-content-section-wrapper,
body:has(#ngcs-shell) .main-content-section-wrapper,
body.ngcs-sendit-app .main-content-section-wrapper > .container,
body:has(#ngcs-shell) .main-content-section-wrapper > .container { padding: 0 !important; margin: 0 !important; max-width: none !important; width: 100% !important; }
/* Only the theme's own grid row/columns (2.6.4: the old selector also hit the app's
   .ngcs-col-* cells and removed their padding). */
body.ngcs-sendit-app .main-content-section-wrapper > .container > .row,
body:has(#ngcs-shell) .main-content-section-wrapper > .container > .row { margin: 0 !important; }
body.ngcs-sendit-app .main-content-section-wrapper > .container > .row > [class*="col-"],
body:has(#ngcs-shell) .main-content-section-wrapper > .container > .row > [class*="col-"] { padding: 0 !important; }
body.ngcs-sendit-app .ngcs-shell:not(.ngcs-shell-gate),
body:has(#ngcs-shell) #ngcs-shell { min-height: 100vh; border-radius: 0; margin: 0; }

/* Theme colours <strong> grey; keep the app's own ink. */
.ngcs-shell strong, .ngcs-shell b { color: inherit; }

/* The theme turns every <select> into a dark nice-select. Restyle it inside the app. */
.ngcs-shell .nice-select {
	float: none !important;
	display: flex !important;
	align-items: center;
	width: 100%;
	height: 44px !important;
	min-height: 44px;
	line-height: 1.3 !important;
	padding-block: 0 !important;
	padding-inline: 12px 34px !important;
	background: var(--s-surface) !important;
	color: var(--s-ink) !important;
	border: 1px solid var(--s-line-strong) !important;
	border-radius: var(--s-radius-sm) !important;
	font-family: var(--s-font) !important;
	font-size: 14px !important;
	box-shadow: none !important;
	text-align: start;
}
.ngcs-shell .nice-select .current { color: inherit !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ngcs-shell .nice-select:after {
	border-color: var(--s-muted) !important;
	right: 14px; left: auto;
}
.ngcs-shell[dir="rtl"] .nice-select:after { right: auto; left: 14px; }
.ngcs-shell .nice-select .list {
	width: 100%;
	max-height: 320px;
	overflow-y: auto;
	z-index: 60;
	background: var(--s-surface) !important;
	border: 1px solid var(--s-line) !important;
	border-radius: 10px !important;
	box-shadow: 0 10px 30px rgba(18, 33, 28, .14) !important;
	padding: 4px !important;
}
.ngcs-shell .nice-select .option {
	color: var(--s-ink) !important;
	background: transparent !important;
	min-height: 40px;
	line-height: 40px !important;
	padding-inline: 12px !important;
	border-radius: 6px;
	text-align: start;
	font-size: 14px !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ngcs-shell .nice-select .option:hover,
.ngcs-shell .nice-select .option.focus,
.ngcs-shell .nice-select .option.selected.focus { background: var(--s-surface-2) !important; }
.ngcs-shell .nice-select .option.selected { font-weight: 600; }

/* Business picker in the dark side menu */
.ngcs-shell .ngcs-business-row .nice-select {
	flex: 1;
	min-width: 0;
	background: var(--s-side-2) !important;
	color: #FFFFFF !important;
	border-color: var(--s-side-line) !important;
	font-weight: 600;
}
.ngcs-shell .ngcs-business-row .nice-select:after { border-color: var(--s-side-muted) !important; }

/* 2.6.2: fixed-width side menu; the content takes all the remaining width. */
.ngcs-shell .ngcs-side { flex: 0 0 248px; }
.ngcs-shell .ngcs-main { max-width: none; }
@media (max-width: 860px) { .ngcs-shell .ngcs-side { flex: 1 1 100%; } }

/* ---- 2.6.3: app-style layout ---------------------------------------------
 * The side menu stays put; only the content area scrolls. The app sits on
 * the page with a margin from the screen edges. Table headers stay visible
 * while a long list scrolls (wide screens).
 */
body.ngcs-sendit-app,
body:has(#ngcs-shell) { background: #E4E9E5 !important; }

@media (min-width: 861px) {
	body.ngcs-sendit-app,
	body:has(#ngcs-shell) { overflow: hidden; }
	#ngcs-shell {
		height: calc(100vh - 32px);
		min-height: 0 !important;
		margin: 16px !important;
		width: auto;
		flex-wrap: nowrap;
		overflow: hidden;
		border-radius: 16px !important;
		box-shadow: 0 1px 3px rgba(13, 26, 21, .08);
	}
	#ngcs-shell .ngcs-side { height: 100%; overflow-y: auto; }
	#ngcs-shell .ngcs-main { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding-top: 0; }
	#ngcs-shell .ngcs-page-head { padding-top: 28px; }
}
@media (min-width: 1200px) {
	#ngcs-shell .ngcs-table-wrap,
	#ngcs-shell .ngcs-table { overflow: visible; }
	#ngcs-shell .ngcs-table thead th {
		position: sticky;
		top: -1px;
		z-index: 5;
		background: #FFFFFF;
		box-shadow: inset 0 -1px 0 #ECF0ED;
	}
}
@media (max-width: 860px) {
	#ngcs-shell { margin: 8px !important; border-radius: 12px !important; }
}


/* ---- 2.6.4: Campaigns list scrolls inside its white card ------------------
 * The page title and the filter/search bar stay put; only the table scrolls,
 * with its column headers pinned. Rows get 24 px from the card edges.
 */
#ngcs-shell .ngcs-toolbar { padding: 16px 24px; }
#ngcs-shell .ngcs-search { min-width: 240px; }
#ngcs-shell .ngcs-table th:first-child,
#ngcs-shell .ngcs-table td:first-child { padding-inline-start: 24px; }
#ngcs-shell .ngcs-table th:last-child,
#ngcs-shell .ngcs-table td:last-child { padding-inline-end: 24px; }
@media (min-width: 861px) {
	#ngcs-shell .ngcs-toolbar-end { flex-wrap: nowrap; }
	#ngcs-shell[data-page="batches"] .ngcs-main { overflow: hidden; padding-bottom: 20px; }
	#ngcs-shell[data-page="batches"] #ngcs-tab-batches { flex: 1 1 auto; min-height: 0; }
	#ngcs-shell[data-page="batches"] #ngcs-tab-batches > .ngcs-card { flex: 1 1 auto; min-height: 0; overflow: hidden; }
	#ngcs-shell[data-page="batches"] #ngcs-tab-batches .ngcs-table-wrap { flex: 1 1 auto; min-height: 0; overflow: auto !important; }
	#ngcs-shell[data-page="batches"] #ngcs-tab-batches .ngcs-table { overflow: visible; }
	#ngcs-shell[data-page="batches"] #ngcs-tab-batches .ngcs-table thead th {
		position: sticky;
		top: 0;
		z-index: 5;
		background: #FFFFFF;
		box-shadow: inset 0 -1px 0 #ECF0ED;
	}
}

/* ==========================================================================
   2.7.0 — Campaign responses
   ========================================================================== */
.ngcs-shell .ngcs-resp-btn {
	min-width: 44px; min-height: 32px; padding: 4px 10px;
	border: 1px solid transparent; border-radius: 99px;
	background: transparent; color: var(--s-muted);
	font: inherit; font-variant-numeric: tabular-nums; cursor: pointer;
}
.ngcs-shell .ngcs-resp-btn.has-resp { background: var(--s-accent-soft); color: var(--s-accent-ink); font-weight: 600; }
.ngcs-shell .ngcs-resp-btn:hover { border-color: var(--s-line-strong); }
.ngcs-shell .ngcs-resp-btn:focus-visible { outline: 2px solid var(--s-accent); outline-offset: 2px; }

.ngcs-modal-backdrop .ngcs-modal-panel.ngcs-responses-panel { max-width: 720px; max-height: calc(100vh - 48px); overflow: hidden; }
.ngcs-modal-backdrop .ngcs-responses-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ngcs-modal-backdrop .ngcs-responses-sub { margin: 2px 0 0; color: var(--s-muted); font-size: 13px; }
.ngcs-modal-backdrop .ngcs-responses-head .ngcs-icon-btn {
	width: 40px; height: 40px; flex: 0 0 40px; border-radius: 8px;
	border: 1px solid var(--s-line); background: var(--s-surface); color: var(--s-muted);
	font-size: 22px; line-height: 1; padding: 0;
}
.ngcs-modal-backdrop .ngcs-responses-body { overflow: auto; min-height: 120px; display: flex; flex-direction: column; gap: 10px; }
.ngcs-modal-backdrop .ngcs-responses-body h4 { margin: 8px 0 0; font-size: 13px; font-weight: 700; color: var(--s-ink); text-transform: none; letter-spacing: normal; }
.ngcs-modal-backdrop .ngcs-resp-kpi { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; padding: 14px 16px; border-radius: 10px; background: var(--s-surface-2); }
.ngcs-modal-backdrop .ngcs-resp-kpi strong { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ngcs-modal-backdrop .ngcs-resp-kpi span { color: var(--s-ink); }
.ngcs-modal-backdrop .ngcs-resp-kpi em { font-style: normal; color: var(--s-muted); margin-inline-start: auto; }
.ngcs-modal-backdrop .ngcs-resp-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ngcs-modal-backdrop .ngcs-resp-bars li { display: grid; grid-template-columns: minmax(120px, 34%) 1fr 56px; align-items: center; gap: 12px; }
.ngcs-modal-backdrop .ngcs-resp-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ngcs-modal-backdrop .ngcs-bar { height: 10px; border-radius: 99px; background: #E4EAE6; overflow: hidden; }
.ngcs-modal-backdrop .ngcs-bar > span { display: block; height: 100%; border-radius: 99px; background: var(--s-accent); }
.ngcs-modal-backdrop .ngcs-resp-n { text-align: end; font-variant-numeric: tabular-nums; font-weight: 600; }
.ngcs-modal-backdrop .ngcs-resp-link { margin: 0; }
.ngcs-modal-backdrop .ngcs-resp-muted { margin: 0; color: var(--s-muted); font-size: 13px; }
.ngcs-modal-backdrop .ngcs-empty { margin: 0; padding: 24px 8px; text-align: center; color: var(--s-muted); }
.ngcs-modal-backdrop .ngcs-resp-table-wrap { border: 1px solid var(--s-line); border-radius: 10px; overflow: auto; max-height: 280px; }
.ngcs-modal-backdrop .ngcs-resp-table { width: 100%; min-width: 560px; border-collapse: collapse; margin: 0; font-size: 13px; }
.ngcs-modal-backdrop .ngcs-resp-table td { white-space: nowrap; }
.ngcs-modal-backdrop .ngcs-resp-table .ngcs-pill { margin-inline-start: 6px; }
.ngcs-modal-backdrop .ngcs-resp-table th,
.ngcs-modal-backdrop .ngcs-resp-table td { padding: 8px 12px; text-align: start; border: 0; border-bottom: 1px solid var(--s-line-soft); background: transparent; color: var(--s-ink); }
.ngcs-modal-backdrop .ngcs-resp-table th { position: sticky; top: 0; background: var(--s-surface-2); font-weight: 600; color: var(--s-muted); z-index: 1; }
.ngcs-modal-backdrop .ngcs-pill { display: inline-flex; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.ngcs-modal-backdrop .ngcs-pill.is-bad { background: var(--s-bad-soft); color: var(--s-bad); }
@media (max-width: 600px) {
	.ngcs-modal-backdrop .ngcs-resp-bars li { grid-template-columns: 1fr 48px; }
	.ngcs-modal-backdrop .ngcs-resp-bars .ngcs-bar { grid-column: 1 / -1; grid-row: 2; }
}

/* 2.7.3 — failure reason under the status pill */
.ngcs-shell .ngcs-fail-reason { margin-top: 4px; max-width: 260px; font-size: 12px; line-height: 1.35; color: var(--s-bad); white-space: normal; }

/* ==========================================================================
   2.8.0 — Contacts page + "From my contacts" audience
   ========================================================================== */
.ngcs-shell .ngcs-ct-list-select { width: auto; min-width: 170px; max-width: 260px; }
.ngcs-shell .ngcs-ct-phone,
.ngcs-shell .ngcs-ct-count {
	min-height: 40px; padding: 0 10px; margin-inline-start: -10px;
	border: none; border-radius: 8px; background: transparent;
	color: var(--s-accent); font-weight: 600; font-variant-numeric: tabular-nums;
	cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.ngcs-shell .ngcs-ct-count {
	margin: 0; min-width: 44px; min-height: 36px;
	border: 1px solid var(--s-line-strong); border-radius: 999px;
	color: var(--s-ink); text-decoration: none; background: var(--s-surface);
}
.ngcs-shell .ngcs-ct-phone:hover,
.ngcs-shell .ngcs-ct-count:hover { background: var(--s-accent-soft); }
.ngcs-shell .ngcs-ct-pager {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
	padding: 12px 24px; border-top: 1px solid var(--s-line-soft);
}
.ngcs-shell .ngcs-ct-upload {
	display: flex; flex-direction: column; gap: 14px;
	padding: 18px 24px; background: var(--s-surface-2); border-bottom: 1px solid var(--s-line-soft);
}
.ngcs-shell .ngcs-ct-upload[hidden],
.ngcs-shell #ngcs-ct-map[hidden] { display: none !important; }
.ngcs-shell #ngcs-ct-map { display: flex; flex-direction: column; gap: 14px; }
.ngcs-shell .ngcs-ct-map-table .ngcs-select { min-height: 40px; padding: 6px 10px; }
.ngcs-shell .ngcs-ct-map-table th[scope="row"] { font-weight: 600; text-align: start; }
.ngcs-shell .ngcs-ct-history { border: 2px solid var(--s-accent); }
.ngcs-shell .ngcs-ct-hist-head {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
	padding: 16px 24px; background: var(--s-surface-2); border-bottom: 1px solid var(--s-line-soft);
	border-radius: var(--s-radius) var(--s-radius) 0 0;
}
.ngcs-shell .ngcs-ct-hist-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ngcs-shell .ngcs-ct-eyebrow { font-size: 12px; color: var(--s-muted); text-transform: uppercase; letter-spacing: .6px; }
.ngcs-shell #ngcs-ct-hist-name { font-size: 18px; outline-offset: 4px; }
.ngcs-shell .ngcs-ct-tpl { text-align: start; }
.ngcs-shell .ngcs-ct-lists { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ngcs-shell .ngcs-ct-lists li {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
	padding: 10px 0; border-top: 1px solid var(--s-line-soft);
}
.ngcs-shell .ngcs-ct-lists li:first-child { border-top: none; }

/* Source switch (Upload a file / From my contacts) */
.ngcs-shell .ngcs-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--s-surface-2); border: 1px solid var(--s-line); border-radius: 12px; align-self: flex-start; }
.ngcs-shell .ngcs-seg-opt { position: relative; margin: 0; cursor: pointer; }
.ngcs-shell .ngcs-seg-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ngcs-shell .ngcs-seg-opt span {
	display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
	border-radius: 9px; color: var(--s-ink); font-weight: 500;
}
.ngcs-shell .ngcs-seg-opt input:checked + span { background: var(--s-surface); color: var(--s-accent-ink); font-weight: 600; box-shadow: 0 1px 2px rgba(18, 33, 28, .12); }
.ngcs-shell .ngcs-seg-opt input:focus-visible + span { outline: 3px solid #6DB3F2; outline-offset: 2px; }

.ngcs-shell .ngcs-aud { display: flex; flex-direction: column; gap: 18px; }
.ngcs-shell .ngcs-aud[hidden] { display: none !important; }
.ngcs-shell .ngcs-aud-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px; }
.ngcs-shell .ngcs-aud-group {
	display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px 14px;
	border: 1px solid var(--s-line-strong); border-radius: 10px; background: var(--s-surface); cursor: pointer;
}
.ngcs-shell .ngcs-aud-group input { accent-color: var(--s-accent); width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
.ngcs-shell .ngcs-aud-group:has(input:checked) { border: 2px solid var(--s-accent); background: var(--s-accent-soft); padding: 11px 13px; }
.ngcs-shell .ngcs-aud-g-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ngcs-shell #ngcs-aud-report[hidden] { display: none !important; }
.ngcs-shell .ngcs-aud-cap { display: flex; flex-direction: column; gap: 8px; }
.ngcs-shell .ngcs-aud-cap-days { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-inline-start: 26px; }
.ngcs-shell .ngcs-aud-cap-days.is-off { opacity: .55; }
.ngcs-shell .ngcs-input-num { width: 96px; min-height: 40px; padding: 6px 10px; font-variant-numeric: tabular-nums; }
.ngcs-shell .ngcs-aud-count { width: 120px; min-height: 44px; font-size: 16px; font-weight: 600; }
.ngcs-shell .ngcs-aud-count-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ngcs-shell .ngcs-field-title { font-size: 13px; font-weight: 600; }
.ngcs-shell .ngcs-aud-values { display: flex; flex-direction: column; gap: 10px; }
.ngcs-shell .ngcs-aud-value { display: flex; flex-direction: column; gap: 6px; }
.ngcs-shell .ngcs-aud-v-label { font-size: 13px; color: var(--s-muted); }
.ngcs-shell .ngcs-aud-v-row { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); gap: 8px; }
.ngcs-shell .ngcs-aud-v-row > :only-child,
.ngcs-shell .ngcs-aud-v-row > .ngcs-input:first-child { grid-column: 1 / -1; }
.ngcs-shell .ngcs-aud-sum { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 12px; background: var(--s-surface-2); border: 1px solid var(--s-line-soft); }
.ngcs-shell .ngcs-aud-funnel { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ngcs-shell .ngcs-aud-funnel li {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 10px 0; border-top: 1px solid var(--s-line-soft);
}
.ngcs-shell .ngcs-aud-funnel li:first-child { border-top: none; }
.ngcs-shell .ngcs-aud-funnel li > span:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ngcs-shell .ngcs-aud-n { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ngcs-shell .ngcs-aud-funnel li.is-strong { margin-top: 4px; padding: 12px 14px; border: none; border-radius: 10px; background: var(--s-accent); color: #FFFFFF; }
.ngcs-shell .ngcs-aud-funnel li.is-strong .ngcs-muted { color: #CFE7DD; }
.ngcs-shell .ngcs-aud-funnel li.is-strong .ngcs-aud-n { font-size: 24px; }
.ngcs-shell #ngcs-aud-sample-wrap[hidden],
.ngcs-shell #ngcs-src-file-panel[hidden] { display: none !important; }
@media (max-width: 600px) {
	.ngcs-shell .ngcs-aud-v-row { grid-template-columns: 1fr; }
	.ngcs-shell .ngcs-ct-list-select { max-width: none; width: 100%; }
	.ngcs-shell .ngcs-ct-pager { padding: 12px 16px; }
}

.ngcs-shell .ngcs-ct-phone { white-space: nowrap; }
@media (max-width: 600px) {
	.ngcs-shell #ngcs-ct-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ngcs-shell #ngcs-ct-kpis .ngcs-kpi-value { font-size: 22px; }
}

/* 2.8.1 — pick contacts with checkboxes, saved groups */
.ngcs-shell #ngcs-ct-table .ngcs-col-check { width: 44px; padding-inline-end: 0; }
.ngcs-shell #ngcs-ct-table .ngcs-col-check input { width: 20px; height: 20px; accent-color: var(--s-accent); margin: 0; cursor: pointer; }
.ngcs-shell #ngcs-ct-table tr.is-picked td { background: var(--s-accent-soft); }
.ngcs-shell .ngcs-ct-selbar {
	position: sticky; top: 0; z-index: 3;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
	padding: 12px 24px; background: var(--s-ink); color: #FFFFFF;
}
.ngcs-shell .ngcs-ct-selbar[hidden] { display: none !important; }
.ngcs-shell .ngcs-ct-sel-info { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ngcs-shell .ngcs-ct-selbar .ngcs-link-btn { color: #BFE3D4; background: none; border: none; padding: 0; min-height: 36px; text-decoration: underline; cursor: pointer; font-weight: 600; }
.ngcs-shell .ngcs-ct-sel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ngcs-shell .ngcs-ct-sel-group { width: auto; min-width: 170px; min-height: 36px; padding: 6px 10px; }
.ngcs-shell .ngcs-ct-sel-newname { width: 190px; min-height: 36px; padding: 6px 10px; }
.ngcs-shell .ngcs-ct-selbar .ngcs-btn-quiet-danger { color: #FFC9C2; }
.ngcs-shell .ngcs-ct-selbar .ngcs-btn-quiet-danger:hover:not(:disabled) { background: rgba(255,255,255,.08); color: #FFFFFF; }
.ngcs-shell .ngcs-ct-selbar .ngcs-status-line { flex-basis: 100%; color: #FFFFFF; }
.ngcs-shell .ngcs-ct-selbar .ngcs-status-line:empty { display: none; }
.ngcs-shell .ngcs-ct-selbar .ngcs-status-line.is-bad { color: #FFC9C2; }
.ngcs-shell .ngcs-ct-selbar .ngcs-status-line.is-ok { color: #BFE3D4; }
.ngcs-shell #ngcs-ct-groups-card[hidden], .ngcs-shell #ngcs-aud-group-box[hidden] { display: none !important; }
@media (max-width: 600px) {
	.ngcs-shell .ngcs-ct-selbar { padding: 12px 16px; }
	.ngcs-shell .ngcs-ct-sel-group, .ngcs-shell .ngcs-ct-sel-newname { width: 100%; }
}
.ngcs-shell .ngcs-ct-selbar #ngcs-ct-sel-save { background: #FFFFFF; color: var(--s-ink); border-color: #FFFFFF; }
.ngcs-shell .ngcs-ct-selbar #ngcs-ct-sel-save:hover:not(:disabled) { background: var(--s-accent-soft); }
