.ndx-list-barcode { display: none; align-items: center; gap: 6px; vertical-align: middle; }
.ndx-list-barcode.is-open { display: inline-flex; }
.ndx-list-barcode-svg { display: block; width: 105px; height: 30px; cursor: pointer; }
.ndx-service-editor { grid-column: 1 / -1; }
.ndx-service-field { grid-column: 1 / -1; }
.ndx-service-row { display: grid; grid-template-columns: minmax(0, 1fr) 180px auto; gap: 8px; margin-bottom: 8px; }
.ndx-service-row input { min-width: 0; }
.ndx-service-row .ndx-btn { white-space: nowrap; }
.ndx-service-editor > .ndx-add-service { margin-top: 2px; }

/* CRM Admin Suite — admin UI */
/* Standalone full-window mode (no WordPress admin menu/bar overlapping) */
html.ndx-standalone-html, body.ndx-standalone { margin: 0 !important; padding: 0 !important; background: #f6f7fb; }
body.ndx-standalone #wpadminbar, body.ndx-standalone #adminmenumain { display: none !important; }
body.ndx-standalone .ndx-app { min-height: 100vh; }
.ndx-pill-ghost { background: #fff !important; color: #1f2434 !important; border: 1px solid #e8eaf1; }

.ndx-crm-screen #wpcontent,
.ndx-crm-screen #wpbody-content { padding: 0 !important; margin: 0 !important; }
.ndx-crm-screen #wpfooter { display: none; }
.ndx-crm-screen .notice, .ndx-crm-screen .update-nag { display: none !important; }

.ndx-app {
	--ndx-primary: #6d5ae6;
	--ndx-primary-dark: #5b48d6;
	--ndx-sidebar: #ffffff;
	--ndx-bg: #f6f7fb;
	--ndx-text: #1f2434;
	--ndx-muted: #6b7280;
	--ndx-border: #e8eaf1;
	display: flex;
	min-height: calc(100vh - 32px);
	background: var(--ndx-bg);
	color: var(--ndx-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 14px;
}

/* Sidebar */
.ndx-sidebar {
	width: 272px; flex: 0 0 272px;
	background: var(--ndx-sidebar);
	border-right: 1px solid var(--ndx-border);
	min-height: 100%;
}
.ndx-app.is-collapsed .ndx-sidebar { display: none; }
.ndx-brand-top {
	height: 64px; display: flex; align-items: center; justify-content: center;
	font-size: 19px; font-weight: 700; letter-spacing: .3px;
	border-bottom: 1px solid var(--ndx-border);
}
.ndx-brand-card {
	margin: 18px; padding: 16px; text-align: center;
	border: 1px solid var(--ndx-border); border-radius: 12px;
	box-shadow: 0 1px 2px rgba(20,20,43,.04);
}
.ndx-brand-name { font-size: 22px; font-weight: 800; }
.ndx-brand-name span { color: #e11d48; }
.ndx-brand-avatar {
	display: flex; align-items: center; justify-content: center;
	width: 56px; height: 56px; margin: 0 auto 10px;
	border-radius: 50%; background: #fff; border: 2px solid #10b981; color: #0f766e;
	box-shadow: 0 0 0 3px rgba(16,185,129,.12);
	font-size: 16px; font-weight: 700; letter-spacing: .06em;
}
.ndx-brand-logo {
	display: block; max-width: 100%; max-height: 56px; margin: 0 auto 6px;
	object-fit: contain; border-radius: 0; background: transparent; border: 0; box-shadow: none;
}
.ndx-toggles { display: flex; flex-wrap: wrap; gap: 18px; padding: 4px 0; }
.ndx-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.ndx-toggle input { width: 16px; height: 16px; }
.ndx-brand-tag { font-size: 12px; color: var(--ndx-muted); margin-top: 2px; }

.ndx-nav { padding-bottom: 24px; }
.ndx-nav-item {
	display: flex; align-items: center; gap: 12px; width: 100%; box-sizing: border-box;
	padding: 12px 20px; background: none; border: 0; cursor: pointer;
	color: var(--ndx-text); text-decoration: none; font-size: 14px; text-align: left;
}
.ndx-nav-item:hover { background: #f3f2fd; color: var(--ndx-primary); }
.ndx-nav-item.is-active { background: #efedfd; color: var(--ndx-primary); font-weight: 600; box-shadow: inset 3px 0 0 var(--ndx-primary); }
.ndx-nav-ico { display: inline-flex; opacity: .9; }
.ndx-sidebar-logout { margin-top: 8px; color: #b42318; }
.ndx-sidebar-logout:hover { color: #b42318; background: #fdecec; }
.ndx-chevron { margin-left: auto; transition: transform .18s ease; color: var(--ndx-muted); display: inline-flex; }
.ndx-nav-group.is-open .ndx-chevron { transform: rotate(180deg); }
.ndx-subnav { display: none; padding: 2px 0 8px 30px; }
.ndx-subnav-group { position: relative; }
.ndx-subnav-grouped .ndx-subnav-group { margin: 6px 0 4px; padding: 6px 0 6px 10px; border-left: 2px solid #e6e3fa; border-radius: 0 8px 8px 0; background: rgba(243,242,253,.45); }
.ndx-subnav-grouped .ndx-subnav-group + .ndx-subnav-group { margin-top: 8px; }
.ndx-subnav-title { display: flex; align-items: center; gap: 8px; margin: 2px 0 4px; padding: 0 10px; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #7a6fd0; }
.ndx-subnav-title::after { content: ""; flex: 1; height: 1px; background: #e6e3fa; }
.ndx-subnav-links { display: block; padding-left: 2px; }
.ndx-subnav-title:first-child { margin-top: 2px; }
.ndx-nav-group.is-open .ndx-subnav { display: block; }
.ndx-subnav-item { display: block; padding: 7px 10px; color: var(--ndx-muted); text-decoration: none; border-radius: 6px; font-size: 13px; }
.ndx-subnav-item:hover { color: var(--ndx-primary); background: #f3f2fd; }
.ndx-subnav-item.is-active { color: var(--ndx-primary); font-weight: 600; background: #f3f2fd; }

.ndx-app.is-collapsed .ndx-sidebar { display: block; width: 72px; flex-basis: 72px; }
.ndx-app.is-collapsed .ndx-brand-top { overflow: hidden; padding: 0; font-size: 0; }
.ndx-app.is-collapsed .ndx-brand-card { margin: 12px 8px; padding: 8px 4px; }
.ndx-app.is-collapsed .ndx-brand-logo { max-height: 40px; margin: 0 auto; }
.ndx-app.is-collapsed .ndx-brand-avatar { width: 40px; height: 40px; margin: 0 auto; font-size: 12px; }
.ndx-app.is-collapsed .ndx-brand-name, .ndx-app.is-collapsed .ndx-brand-tag { display: none; }
.ndx-app.is-collapsed .ndx-nav-item { justify-content: center; gap: 0; padding: 12px 0; }
.ndx-app.is-collapsed .ndx-nav-item > span:not(.ndx-nav-ico) { display: none; }
.ndx-app.is-collapsed .ndx-chevron, .ndx-app.is-collapsed .ndx-subnav { display: none !important; }
.ndx-app.is-collapsed .ndx-nav-item.is-active { box-shadow: inset 3px 0 0 var(--ndx-primary); }
.ndx-app.is-collapsed .ndx-sidebar-logout { margin-top: 8px; }

/* Main */
.ndx-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.ndx-topbar {
	height: 64px; background: #fff; border-bottom: 1px solid var(--ndx-border);
	display: flex; align-items: center; justify-content: space-between; padding: 0 20px;
}
.ndx-topbar-left, .ndx-topbar-right { display: flex; align-items: center; gap: 10px; }
.ndx-icon-btn { width: 34px; height: 34px; border: 1px solid var(--ndx-border); border-radius: 8px; background: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--ndx-text); }
.ndx-control-btn { width: auto; min-width: 34px; padding: 0 10px; gap: 7px; font-size: 12px; font-weight: 600; }
.ndx-round-btn { width: 34px; height: 34px; border: 0; border-radius: 9px; background: var(--ndx-primary); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ndx-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--ndx-border); border-radius: 999px; background: #fff; color: var(--ndx-text); text-decoration: none; font-weight: 500; }
.ndx-pill:hover { color: var(--ndx-primary); }
.ndx-bell { position: relative; display: inline-flex; padding: 6px; color: var(--ndx-text); }
.ndx-bell em { position: absolute; top: -4px; right: -6px; background: #ef4444; color: #fff; font-style: normal; font-size: 10px; font-weight: 700; border-radius: 999px; padding: 1px 5px; }
.ndx-account-menu { position: relative; }
.ndx-avatar { width: 34px; height: 34px; padding: 0; overflow: hidden; border-radius: 999px; border: 2px solid #10b981; color: #0f766e; background: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; cursor: pointer; }
.ndx-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ndx-account-pop { display: none; position: absolute; top: calc(100% + 10px); right: 0; z-index: 30; width: 220px; padding: 8px; background: #fff; border: 1px solid var(--ndx-border); border-radius: 10px; box-shadow: 0 12px 30px rgba(31,39,51,.14); }
.ndx-account-menu.is-open .ndx-account-pop { display: block; }
.ndx-account-summary { display: flex; align-items: center; gap: 9px; padding: 8px 10px 10px; border-bottom: 1px solid var(--ndx-border); }
.ndx-account-company-logo { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 6px; object-fit: contain; border: 1px solid var(--ndx-border); background: #fff; }
.ndx-account-company-initials { display: inline-flex; align-items: center; justify-content: center; color: var(--ndx-primary); font-size: 11px; font-weight: 700; }
.ndx-account-summary strong, .ndx-account-summary small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ndx-account-summary small { margin-top: 3px; color: var(--ndx-muted); font-size: 12px; }
.ndx-account-pop a { display: block; padding: 9px 10px; color: var(--ndx-text); text-decoration: none; border-radius: 6px; }
.ndx-account-pop a:hover { background: #f3f4f6; }
.ndx-account-pop .ndx-account-logout { color: #b42318; }
.ndx-profile-grid { display: flex; gap: 24px; align-items: flex-start; padding: 24px; }
.ndx-company-profile-box {
	margin: 0 0 18px; padding: 20px 24px;
	background: #f9fafb; border: 1px solid var(--ndx-border); border-radius: 14px;
}
.ndx-company-form { padding-top: 0; }
.ndx-profile-avatar { width: 72px; height: 72px; overflow: hidden; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #dcfce7; color: #166534; font-size: 22px; font-weight: 700; }
.ndx-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ndx-profile-details h3 { margin: 0 0 16px; }
.ndx-profile-details p { display: flex; gap: 24px; margin: 9px 0; }
.ndx-profile-details p span { width: 80px; color: var(--ndx-muted); }

.ndx-content { flex: 1 1 auto; width: 100%; max-width: 1600px; box-sizing: border-box; padding: 28px clamp(18px, 3vw, 38px) 38px; }
.ndx-alert { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; }

/* Stat cards */
.ndx-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 26px; }
.ndx-dashboard-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 4px 0 22px; }
.ndx-dashboard-hero h1 { margin: 5px 0 3px; font-size: 30px; letter-spacing: -.4px; }
.ndx-dashboard-hero p { margin: 0; color: var(--ndx-muted); }
.ndx-eyebrow { color: var(--ndx-primary); font-size: 10px; font-weight: 800; letter-spacing: 1.2px; }
.ndx-dashboard-quick { display: flex; gap: 8px; flex-wrap: wrap; }
.ndx-dashboard-reports { display: grid; grid-template-columns: minmax(190px, .55fr) minmax(0, 1.7fr) auto; align-items: center; gap: 18px; margin-bottom: 24px; padding: 16px 18px; background: #fff; border: 1px solid rgba(232,234,241,.85); border-radius: 14px; box-shadow: 0 3px 10px rgba(20,20,43,.04); }
.ndx-dashboard-reports > div:first-child strong { display: block; margin-top: 5px; font-size: 13px; }
.ndx-report-periods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ndx-report-period { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 10px 8px; color: var(--ndx-text); border: 1px solid var(--ndx-border); border-radius: 9px; text-decoration: none; font-size: 12px; font-weight: 600; white-space: nowrap; }
.ndx-report-period:hover { color: var(--ndx-primary); border-color: #cfc8fb; background: #faf9ff; }
.ndx-report-period span { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex: 0 0 22px; border-radius: 7px; background: #efedfd; color: var(--ndx-primary); font-size: 10px; }
.ndx-invoice-report-link { display: flex; flex-direction: column; gap: 5px; min-width: 128px; padding-left: 18px; border-left: 1px solid var(--ndx-border); color: var(--ndx-text); text-decoration: none; font-size: 13px; font-weight: 700; }
.ndx-invoice-report-link strong { color: var(--ndx-primary); font-size: 11px; }.ndx-invoice-report-link b { font-size: 15px; }
.ndx-dashboard-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.ndx-dashboard-overview-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; margin-bottom: 24px; }
.ndx-dashboard-table-panel { padding: 0; overflow: hidden; }
.ndx-dashboard-table-panel .ndx-widget-head, .ndx-sales-data-panel .ndx-widget-head, .ndx-dashboard-entity-panel .ndx-widget-head, .ndx-expense-summary .ndx-widget-head { padding: 22px 22px 0; }
.ndx-table-scroll { overflow-x: auto; max-height: 250px; }
.ndx-table-scroll .ndx-table { min-width: 480px; margin: 0; }
.ndx-table-scroll .ndx-table th, .ndx-table-scroll .ndx-table td { padding: 11px 14px; }
.ndx-panel-total { border-top: 1px solid var(--ndx-border); padding: 13px 22px; color: var(--ndx-primary); font-weight: 700; font-size: 12px; }
.ndx-sales-data-panel, .ndx-dashboard-entity-panel, .ndx-expense-summary { min-height: 210px; }
.ndx-sales-data { display: grid; gap: 8px; padding: 0 22px 22px; }
.ndx-sales-data a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid #f0f1f5; color: var(--ndx-primary); text-decoration: none; font-weight: 600; }
.ndx-sales-data a:nth-child(2) { color: #149b83; }.ndx-sales-data a:nth-child(3) { color: #25aeb5; }.ndx-sales-data strong { color: var(--ndx-text); }
.ndx-dashboard-mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ndx-mini-stat { min-height: 120px; display: flex; flex-direction: column; justify-content: center; text-align: center; }.ndx-mini-stat span { color: var(--ndx-muted); font-weight: 600; }.ndx-mini-stat strong { margin-top: 10px; color: #1677ff; font-size: 25px; }.ndx-mini-stat-success strong { color: #3caf35; }
.ndx-entity-chart { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 0 22px 22px; align-items: end; min-height: 120px; }.ndx-entity-chart > div { display: flex; flex-direction: column; gap: 7px; text-align: center; color: var(--ndx-muted); font-size: 12px; }.ndx-entity-chart strong { color: var(--ndx-text); font-size: 20px; }.ndx-entity-chart i { height: 78px; display: flex; align-items: flex-end; justify-content: center; background: #f1f4f8; border-radius: 5px 5px 0 0; }.ndx-entity-chart em { display: block; width: 56%; background: #168dfb; border-radius: 5px 5px 0 0; }.ndx-entity-chart > div:nth-child(2) em { background: #18bd8b; }.ndx-entity-chart > div:nth-child(3) em { background: #f05b72; }
.ndx-expense-summary-list { display: grid; gap: 15px; padding: 0 22px 22px; }.ndx-expense-summary-list div { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 10px; border-bottom: 1px solid #f0f1f5; }.ndx-expense-summary-list span { color: var(--ndx-muted); font-size: 12px; }.ndx-expense-summary-list strong { color: #408fce; font-size: 17px; }.ndx-expense-summary-list div:nth-child(2) strong { color: #378ce7; }.ndx-expense-summary-list div:nth-child(3) strong { color: #9b4444; }
.ndx-metric { padding: 18px 20px; border-radius: 14px; color: #fff; min-height: 104px; box-sizing: border-box; position: relative; overflow: hidden; }
.ndx-metric::after { content: ""; position: absolute; width: 90px; height: 90px; right: -25px; bottom: -38px; border: 18px solid rgba(255,255,255,.15); border-radius: 50%; }
.ndx-metric span, .ndx-metric small, .ndx-metric strong { display: block; position: relative; z-index: 1; }
.ndx-metric span { font-size: 12px; font-weight: 600; opacity: .88; }
.ndx-metric strong { margin: 9px 0 3px; font-size: 25px; }
.ndx-metric small { font-size: 11px; opacity: .75; }
.ndx-metric-sales { background: linear-gradient(135deg, #6254d9, #8175ee); }
.ndx-metric-collection { background: linear-gradient(135deg, #079669, #25b889); }
.ndx-metric-due { background: linear-gradient(135deg, #e38a24, #f0ad4e); }
.ndx-metric-expense { background: linear-gradient(135deg, #d84d61, #ed7180); }
.ndx-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .8fr); gap: 18px; margin-bottom: 22px; }
.ndx-dashboard-panel { background: #fff; border: 1px solid rgba(232,234,241,.75); border-radius: 14px; box-shadow: 0 4px 14px rgba(20,20,43,.055); padding: 22px; min-width: 0; }
.ndx-dashboard-panel:hover { box-shadow: 0 8px 22px rgba(20,20,43,.08); }
.ndx-widget-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.ndx-widget-head h2 { margin: 4px 0 0; font-size: 17px; }
.ndx-widget-meta { color: var(--ndx-muted); font-size: 12px; }
.ndx-text-link { color: var(--ndx-primary); font-size: 12px; text-decoration: none; white-space: nowrap; }
.ndx-quarter-chart { display: flex; height: 190px; gap: 12px; border-bottom: 1px solid var(--ndx-border); }
.ndx-chart-axis { display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 24px; color: var(--ndx-muted); font-size: 10px; }
.ndx-chart-bars { flex: 1; display: flex; align-items: stretch; justify-content: space-around; gap: 12px; background: repeating-linear-gradient(to bottom, transparent 0, transparent 47px, #f0f1f5 48px); }
.ndx-quarter { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; min-width: 32px; flex: 1; }
.ndx-quarter b { color: var(--ndx-muted); font-size: 11px; }
.ndx-bar-group { height: 150px; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.ndx-bar { display: block; width: 17px; min-height: 2px; border-radius: 5px 5px 0 0; transition: height .25s ease; }
.ndx-bar-sales { background: #6d5ae6; }.ndx-bar-paid { background: #2ab88a; }
.ndx-chart-legend { display: flex; gap: 18px; margin-top: 12px; color: var(--ndx-muted); font-size: 11px; }
.ndx-chart-legend span { display: inline-flex; align-items: center; gap: 6px; }.ndx-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }.ndx-dot-sales { background: #6d5ae6; }.ndx-dot-paid { background: #2ab88a; }
.ndx-ranking-list > div, .ndx-entity-list > div, .ndx-expense-list > div { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid #f0f1f5; }
.ndx-ranking-list > div:last-child, .ndx-entity-list > div:last-child, .ndx-expense-list > div:last-child { border-bottom: 0; }
.ndx-ranking-list strong, .ndx-entity-list strong, .ndx-expense-list strong { font-size: 12px; }
.ndx-rank { color: var(--ndx-primary); font-size: 11px; font-weight: 800; }.ndx-ranking-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ndx-entity-list > div { grid-template-columns: minmax(0, 1fr) auto; }.ndx-entity-list span { color: var(--ndx-muted); }.ndx-entity-list strong { font-size: 18px; }
.ndx-expense-list > div { grid-template-columns: minmax(0, 1fr) auto; position: relative; padding-bottom: 18px; }.ndx-expense-list i { grid-column: 1 / -1; height: 4px; background: #f0f1f5; border-radius: 99px; }.ndx-expense-list em { display: block; height: 100%; background: #ef7180; border-radius: inherit; }
.ndx-report-columns { display: grid; grid-template-columns: minmax(180px, .55fr) minmax(0, 1.45fr); gap: 22px; margin-top: 22px; }
.ndx-report-columns h3, .ndx-report-invoice > .ndx-table-wrap h3 { margin: 0 0 12px; font-size: 15px; }
.ndx-report-status-list { border: 1px solid var(--ndx-border); border-radius: 10px; padding: 4px 14px; }
.ndx-report-status-list > div { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f0f1f5; }.ndx-report-status-list > div:last-child { border-bottom: 0; }
.ndx-employee-insights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.ndx-employee-insight { padding: 17px; border: 1px solid var(--ndx-border); border-radius: 12px; background: linear-gradient(145deg, #fff, #fafaff); }
.ndx-employee-insight span, .ndx-employee-insight small { display: block; color: var(--ndx-muted); font-size: 11px; }
.ndx-employee-insight strong { display: block; margin: 8px 0 3px; font-size: 22px; color: var(--ndx-primary); }
.ndx-emp-shell .ndx-content { padding-top: 26px; }
.ndx-emp-shell .ndx-cards { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 14px; }
.ndx-emp-shell .ndx-card { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "ico body donut" "note note note"; align-items: center; gap: 10px 12px; padding: 16px; }
.ndx-emp-shell .ndx-card-ico { grid-area: ico; }
.ndx-emp-shell .ndx-card-body { grid-area: body; min-width: 0; }
.ndx-emp-shell .ndx-card-label { font-size: 10.5px; line-height: 1.3; white-space: normal; }
.ndx-emp-shell .ndx-card-value { font-size: 26px; }
.ndx-emp-shell .ndx-donut { grid-area: donut; flex: 0 0 auto; }
.ndx-emp-shell .ndx-card-note { grid-area: note; max-width: none; margin: 0; padding-top: 8px; border-top: 1px dashed var(--ndx-border); font-size: 11px; }
.ndx-emp-shell .ndx-emp-detail-grid .ndx-panel { min-height: 178px; box-sizing: border-box; }
.ndx-emp-shell .ndx-emp-welcome { background: linear-gradient(120deg, #f0efff 0%, #fff 68%); border: 1px solid #e2defd; }
.ndx-emp-shell .ndx-employee-insight:hover { border-color: #cfc8fb; box-shadow: 0 5px 14px rgba(109,90,230,.08); }
.ndx-leave-time { display: block; margin-top: 3px; color: var(--ndx-muted); font-size: 11px; }
.ndx-emp-shell .ndx-table td a { color: var(--ndx-primary); text-decoration: none; font-weight: 600; }
.ndx-emp-shell .ndx-table td a:hover { text-decoration: underline; }
.ndx-card { background: #fff; border: 1px solid rgba(232,234,241,.75); border-radius: 14px; padding: 18px; box-shadow: 0 3px 10px rgba(20,20,43,.05); display: flex; align-items: center; gap: 14px; position: relative; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.ndx-card-link:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(20,20,43,.1); }
.ndx-card-link:focus-visible, .ndx-btn:focus-visible, .ndx-icon-btn:focus-visible { outline: 3px solid rgba(109,90,230,.25); outline-offset: 2px; }
.ndx-card-ico { width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px; }
.ndx-violet { background: #efedfd; color: #6d5ae6; }
.ndx-green { background: #e7f9f0; color: #10b981; }
.ndx-red { background: #fdecec; color: #ef4444; }
.ndx-blue { background: #e8f2fe; color: #3b82f6; }
.ndx-card-label { font-size: 11px; letter-spacing: .6px; color: var(--ndx-muted); text-transform: uppercase; font-weight: 600; }
.ndx-card-value { font-size: 28px; font-weight: 700; line-height: 1.15; }
.ndx-card-note { font-size: 11px; color: var(--ndx-muted); max-width: 62px; line-height: 1.3; margin-left: auto; }
.ndx-orange { background: #fff3e0; color: #c2410c; }
.ndx-donut {
	width: 52px; height: 52px; border-radius: 50%; flex: 0 0 52px;
	display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: var(--ndx-text);
	background: conic-gradient(var(--ndx-donut-color, #6d5ae6) calc(var(--ndx-pct) * 1%), #eef0f6 0);
	position: relative;
}
.ndx-donut::after { content: ""; position: absolute; inset: 6px; background: #fff; border-radius: 50%; }
.ndx-donut span { position: relative; z-index: 1; }
.ndx-donut-violet { --ndx-donut-color: #6d5ae6; }
.ndx-donut-green { --ndx-donut-color: #10b981; }
.ndx-donut-red { --ndx-donut-color: #ef4444; }
.ndx-donut-blue { --ndx-donut-color: #3b82f6; }
.ndx-donut-orange { --ndx-donut-color: #f97316; }

/* Panel */
.ndx-panel { background: #fff; border-radius: 14px; box-shadow: 0 2px 8px rgba(20,20,43,.06); padding: 8px 22px 22px; }
.ndx-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; flex-wrap: wrap; }
.ndx-panel-head h2 { margin: 0; font-size: 18px; font-weight: 700; }
.ndx-count { display: inline-block; margin-left: 6px; background: #efedfd; color: var(--ndx-primary); border-radius: 999px; font-size: 12px; padding: 2px 9px; vertical-align: middle; }
.ndx-panel-actions { display: flex; align-items: center; gap: 10px; }
.ndx-search { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ndx-search input, .ndx-search select { height: 34px; border: 1px solid var(--ndx-border); border-radius: 8px; padding: 0 10px; min-width: 130px; background: #fff; color: var(--ndx-text); }
.ndx-search input[type="search"] { min-width: 200px; }
.ndx-search input[type="date"] { min-width: 145px; }
.ndx-search input[type="number"] { width: 105px; min-width: 105px; }
.ndx-creator-readonly { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 36px; padding: 8px 12px; border: 1px solid var(--ndx-border); border-radius: 8px; background: #f8fafc; color: var(--ndx-text); }
.ndx-creator-readonly span { color: var(--ndx-muted); font-size: 12px; }
.ndx-task-assignee { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(240px, 1.2fr); gap: 8px; }
.ndx-task-assignee select { width: 100%; }
.ndx-task-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ndx-task-files a { padding: 6px 9px; border: 1px solid var(--ndx-border); border-radius: 7px; color: var(--ndx-primary); text-decoration: none; font-size: 12px; }
.ndx-task-files a:hover { background: #f3f2fd; }
.ndx-other-category-field { display: none; }

.ndx-scope-tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--ndx-border); padding: 10px 0 0; }
.ndx-scope-tab { background: none; border: 0; padding: 10px 2px 14px; font-size: 16px; color: var(--ndx-muted); cursor: pointer; border-bottom: 2px solid transparent; }
.ndx-scope-tab.is-active { color: var(--ndx-primary); font-weight: 600; border-bottom-color: var(--ndx-primary); }
.ndx-scope-pane { display: none; }
.ndx-scope-pane.is-active { display: block; }

.ndx-dim-tabs { display: flex; flex-wrap: wrap; gap: 6px 18px; border-bottom: 1px solid var(--ndx-border); margin-top: 6px; }
.ndx-dim-tab { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 14px 2px; color: var(--ndx-muted); cursor: pointer; border-bottom: 2px solid transparent; font-size: 14px; }
.ndx-dim-tab.is-active { color: var(--ndx-primary); font-weight: 600; border-bottom-color: var(--ndx-primary); }
.ndx-dim-pane { display: none; }
.ndx-dim-pane.is-active { display: block; }

/* Tables */
.ndx-table-wrap { overflow-x: auto; margin-top: 18px; }
.ndx-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ndx-table thead th { background: var(--ndx-primary); color: #fff; text-align: left; padding: 14px 12px; font-weight: 600; white-space: nowrap; }
.ndx-table thead th:first-child { border-radius: 8px 0 0 0; }
.ndx-table thead th:last-child { border-radius: 0 8px 0 0; }
.ndx-table tbody td { padding: 14px 12px; border-bottom: 1px solid var(--ndx-border); vertical-align: middle; }
.ndx-table tbody tr:hover td { background: #fafaff; }
.ndx-link { color: var(--ndx-primary); text-decoration: none; }
.ndx-empty { text-align: center; color: var(--ndx-muted); padding: 30px 0; }
.ndx-table:not(.ndx-table-plain) tbody td.ndx-col-2 { background: #e9fbf1; }
.ndx-table:not(.ndx-table-plain) tbody td.ndx-col-3 { background: #fdeceb; }
.ndx-table:not(.ndx-table-plain) tbody td.ndx-col-4 { background: #eef0fe; }
.ndx-table:not(.ndx-table-plain) tbody td.ndx-col-5 { background: #fdf6e3; }
.ndx-table:not(.ndx-table-plain) tbody td.ndx-col-6 { background: #e6f8fb; }

.ndx-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; background: #eef0f6; color: #475467; text-transform: capitalize; }
.ndx-badge-active, .ndx-badge-approved, .ndx-badge-paid, .ndx-badge-completed { background: #e7f9f0; color: #067647; }
.ndx-badge-pending, .ndx-badge-partial, .ndx-badge-scheduled, .ndx-badge-running { background: #fef6e7; color: #b54708; }
.ndx-badge-assigned, .ndx-badge-in_progress, .ndx-badge-submitted { background: #e8f2fe; color: #175cd3; }
.ndx-badge-rejected, .ndx-badge-unpaid, .ndx-badge-cancelled, .ndx-badge-inactive { background: #fdecec; color: #b42318; }

/* Buttons */
.ndx-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; background: var(--ndx-primary); color: #fff !important; text-decoration: none; border: 0; cursor: pointer; font-size: 13px; font-weight: 500; }
.ndx-btn:hover { background: var(--ndx-primary-dark); }
.ndx-btn-sm { padding: 5px 10px; font-size: 12px; }
.ndx-btn-primary { background: var(--ndx-primary); }
.ndx-btn-ghost { background: #fff; color: var(--ndx-text) !important; border: 1px solid var(--ndx-border); }
.ndx-btn-ghost:hover { background: #f3f2fd; color: var(--ndx-primary) !important; }
.ndx-btn-danger { background: #ef4444; }
.ndx-btn-danger:hover { background: #dc2626; }
.ndx-actions { white-space: nowrap; }
.ndx-actions .ndx-btn { margin-right: 6px; }

/* Forms */
.ndx-form { padding-top: 6px; }
.ndx-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 20px; }
.ndx-field-wide { grid-column: 1 / -1; }
.ndx-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.ndx-field label em { color: #ef4444; font-style: normal; }
.ndx-field input, .ndx-field select, .ndx-field textarea {
	width: 100%; box-sizing: border-box; border: 1px solid var(--ndx-border); border-radius: 8px; padding: 9px 12px; font-size: 13px; background: #fff; box-shadow: none;
}
.ndx-field input:focus, .ndx-field select:focus, .ndx-field textarea:focus { outline: 0; border-color: var(--ndx-primary); box-shadow: 0 0 0 3px rgba(109,90,230,.15); }
.ndx-form-section { background: #fff; border: 1px solid var(--ndx-border); border-radius: 14px; padding: 18px 20px 20px; margin-bottom: 18px; }
.ndx-section-title { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #1f2547; margin: 4px 0 20px; position: relative; }
.ndx-section-title::before, .ndx-section-title::after { content: ""; flex: 1; height: 1px; background: var(--ndx-border); }
.ndx-section-title::before { margin-right: 12px; }
.ndx-section-title::after { margin-left: 12px; }
.ndx-section-icon { font-size: 14px; }
.ndx-form-section .ndx-field label { font-weight: 500; color: #3a4060; }
.ndx-form-footer { margin-top: 22px; display: flex; gap: 10px; }

/* Summary + pagination */
.ndx-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 6px 0 4px; }
.ndx-summary-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ndx-summary > div { background: #f8f8fd; border: 1px solid var(--ndx-border); border-radius: 12px; padding: 14px; }
.ndx-summary span { display: block; font-size: 12px; color: var(--ndx-muted); }
.ndx-summary strong { font-size: 22px; }
.ndx-finance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ndx-finance-grid .ndx-card { padding: 18px; border: 1px solid var(--ndx-border); border-radius: 12px; background: #fff; }
.ndx-finance-grid h3 { margin: 0 0 14px; font-size: 15px; }
.ndx-finance-grid p { display: flex; justify-content: space-between; gap: 12px; margin: 10px 0 0; color: var(--ndx-muted); }
.ndx-finance-grid p strong { color: var(--ndx-text); }
.ndx-employee-login { min-height: 70vh; display: grid; place-items: center; padding: 32px 16px; background: #f6f7fb; }
.ndx-employee-login-card { width: min(420px, 100%); padding: 28px; background: #fff; border: 1px solid var(--ndx-border); border-radius: 12px; box-shadow: 0 12px 30px rgba(31,39,51,.08); }
.ndx-employee-login-card h1 { margin: 0 0 22px; font-size: 24px; }
.ndx-employee-login-card label, .ndx-employee-leave-form label { display: grid; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 600; }
.ndx-employee-login-card input, .ndx-employee-leave-form input, .ndx-employee-leave-form select, .ndx-employee-leave-form textarea { box-sizing: border-box; width: 100%; padding: 9px 11px; border: 1px solid var(--ndx-border); border-radius: 7px; font: inherit; }
.ndx-employee-login-card button, .ndx-employee-leave-form button { margin-top: 18px; padding: 9px 16px; border: 0; border-radius: 7px; background: var(--ndx-primary); color: #fff; cursor: pointer; font-weight: 600; }
.ndx-employee-app { --ndx-primary: #6d5ae6; --ndx-primary-dark: #5b48d6; --ndx-border: #e8eaf1; --ndx-text: #1f2434; --ndx-muted: #6b7280; min-height: 100vh; background: #f6f7fb; color: var(--ndx-text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.ndx-employee-top { min-height: 64px; box-sizing: border-box; display: flex; justify-content: space-between; align-items: center; padding: 0 5%; background: #fff; border-bottom: 1px solid var(--ndx-border); box-shadow: 0 1px 2px rgba(20,20,43,.04); }
.ndx-employee-top strong, .ndx-employee-top span { display: block; }
.ndx-employee-top span { margin-top: 3px; color: #6b7280; font-size: 12px; }
.ndx-employee-top a { padding: 8px 14px; border-radius: 8px; color: #b42318; text-decoration: none; font-size: 13px; font-weight: 600; }
.ndx-employee-top a:hover { background: #fdecec; }
.ndx-employee-app main { width: min(1120px, 90%); margin: 28px auto; }
.ndx-employee-welcome, .ndx-employee-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ndx-employee-welcome > div, .ndx-employee-cards section, .ndx-employee-section { padding: 20px; background: #fff; border: 1px solid var(--ndx-border); border-radius: 10px; box-shadow: 0 1px 2px rgba(20,20,43,.04); }
.ndx-employee-welcome img { width: 64px; height: 64px; object-fit: contain; margin-bottom: 10px; }
.ndx-employee-welcome h1 { margin: 0 0 4px; font-size: 26px; }
.ndx-employee-welcome p { margin: 5px 0; color: #6b7280; }
.ndx-employee-cards { margin-top: 16px; }
.ndx-employee-cards h2, .ndx-employee-section h2 { margin: 0 0 14px; font-size: 17px; }
.ndx-employee-cards p { display: flex; justify-content: space-between; gap: 16px; margin: 9px 0; color: #6b7280; }
.ndx-employee-cards strong { color: #1f2434; text-align: right; }
.ndx-employee-section { margin-top: 16px; overflow-x: auto; }
.ndx-employee-section h2 { color: var(--ndx-text); }
.ndx-employee-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ndx-employee-table th, .ndx-employee-table td { padding: 9px; border-bottom: 1px solid var(--ndx-border); text-align: left; white-space: nowrap; }
.ndx-employee-table th { color: #6b7280; font-size: 12px; }
.ndx-employee-leave-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ndx-employee-leave-form label:last-of-type { grid-column: 1 / -1; }
.ndx-employee-leave-form button { grid-column: 1 / -1; width: fit-content; margin-top: 4px; background: var(--ndx-primary); }
.ndx-employee-leave-form button:hover, .ndx-employee-login-card button:hover { background: var(--ndx-primary-dark); }
.ndx-employee-message { padding: 10px; background: #e7f9f0; color: #067647; border-radius: 6px; }

/* Employee portal — same admin app shell (sidebar/topbar/cards/panel), frontend variant */
.ndx-app.ndx-emp-shell { min-height: 100vh; background: var(--ndx-bg); }
.ndx-emp-shell .ndx-content { max-width: 1280px; margin: 0 auto; width: 100%; box-sizing: border-box; }
.ndx-emp-pane { display: none; }
.ndx-emp-pane.is-active { display: block; }
.ndx-emp-welcome { display: flex; align-items: center; gap: 16px; padding: 20px; margin-bottom: 20px; }
.ndx-emp-welcome-avatar { width: 60px; height: 60px; flex: 0 0 60px; border-radius: 50%; object-fit: contain; background: #efedfd; color: var(--ndx-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; border: 2px solid var(--ndx-primary); }
.ndx-emp-welcome-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.ndx-emp-welcome h1 { margin: 0 0 4px; font-size: 21px; }
.ndx-emp-welcome p { margin: 0; color: var(--ndx-muted); font-size: 13px; }
.ndx-emp-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.ndx-emp-detail-grid .ndx-panel { padding: 8px 20px 20px; }
.ndx-emp-detail-grid h2 { margin: 0; font-size: 16px; font-weight: 700; padding: 16px 0 10px; }
.ndx-emp-detail-grid p { display: flex; justify-content: space-between; gap: 16px; margin: 10px 0; color: var(--ndx-muted); font-size: 13px; border-bottom: 1px solid var(--ndx-border); padding-bottom: 10px; }
.ndx-emp-detail-grid p:last-child { border-bottom: 0; padding-bottom: 0; }
.ndx-emp-detail-grid p strong { color: var(--ndx-text); }
@media (max-width: 782px) {
	.ndx-emp-detail-grid { grid-template-columns: 1fr; }
}
.ndx-alert-error { background: #fdecec; border-color: #f6b4ac; color: #b42318; }
.ndx-emp-profile-hint { margin: 0 0 16px; color: var(--ndx-muted); font-size: 13px; }
.ndx-task-count { margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: #f97316; color: #fff; font-size: 10px; font-style: normal; }
.ndx-task-list { display: grid; gap: 14px; }
.ndx-task-item { padding: 18px; border: 1px solid var(--ndx-border); border-radius: 10px; background: #fff; }
.ndx-task-head, .ndx-task-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.ndx-task-head h3 { margin: 0 0 5px; font-size: 16px; }
.ndx-task-head p { margin: 0; color: var(--ndx-muted); line-height: 1.5; }
.ndx-task-meta { margin-top: 16px; color: var(--ndx-muted); font-size: 12px; }
.ndx-task-meta strong { color: var(--ndx-text); }
.ndx-task-progress { height: 8px; margin: 8px 0 16px; overflow: hidden; border-radius: 999px; background: #eef0f6; }
.ndx-task-progress span { display: block; height: 100%; border-radius: inherit; background: #f97316; transition: width .2s ease; }
.ndx-task-progress.is-complete span { background: #16a34a; }
.ndx-task-update-form { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; }
.ndx-task-update-form label { display: grid; gap: 5px; color: var(--ndx-muted); font-size: 12px; font-weight: 600; }
.ndx-task-update-form input, .ndx-task-update-form select { height: 34px; min-width: 105px; padding: 0 9px; border: 1px solid var(--ndx-border); border-radius: 7px; background: #fff; color: var(--ndx-text); }
.ndx-task-update-form .ndx-task-note { flex: 1 1 220px; }
.ndx-task-update-form .ndx-task-note input { width: 100%; box-sizing: border-box; }
.ndx-task-files-input { flex: 1 1 190px; }
.ndx-task-files-input input { width: 100%; box-sizing: border-box; padding: 7px 0; }
.ndx-task-note-display { margin: 0; padding: 10px 12px; border-left: 3px solid #f97316; background: #fff7ed; color: var(--ndx-text); font-size: 13px; }
.ndx-emp-notice-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ndx-border); font-size: 13px; }
.ndx-emp-notice-row:last-child { border-bottom: 0; }
.ndx-emp-notice-row strong { flex: 1; }
.ndx-emp-notice-date { color: var(--ndx-muted); font-size: 12px; white-space: nowrap; }
.ndx-emp-notice-card { padding: 14px 0; border-bottom: 1px solid var(--ndx-border); }
.ndx-emp-notice-card:last-child { border-bottom: 0; }
.ndx-emp-notice-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.ndx-emp-notice-head strong { flex: 1; font-size: 14px; }
.ndx-emp-notice-card p { margin: 4px 0 0; color: var(--ndx-muted); font-size: 13px; line-height: 1.5; }
.ndx-pagination { display: flex; gap: 6px; margin-top: 16px; }
.ndx-pagination a { min-width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ndx-border); border-radius: 8px; text-decoration: none; color: var(--ndx-text); }
.ndx-pagination a.is-active { background: var(--ndx-primary); color: #fff; border-color: var(--ndx-primary); }

/* Footer */
.ndx-footer { padding: 18px 22px 26px; text-align: center; color: var(--ndx-muted); font-size: 12px; }
.ndx-footer a { color: var(--ndx-primary); text-decoration: none; font-weight: 600; }
.ndx-footer-meta { margin-top: 4px; }

/* Dark mode */
.ndx-app.ndx-dark { --ndx-bg: #14162a; --ndx-sidebar: #1b1e36; --ndx-text: #e8e9f3; --ndx-muted: #9aa1bd; --ndx-border: #2a2e4d; }
.ndx-app.ndx-dark .ndx-topbar, .ndx-app.ndx-dark .ndx-panel, .ndx-app.ndx-dark .ndx-card,
.ndx-app.ndx-dark .ndx-dashboard-panel,
.ndx-app.ndx-dark .ndx-brand-card, .ndx-app.ndx-dark .ndx-icon-btn, .ndx-app.ndx-dark .ndx-pill,
.ndx-app.ndx-dark .ndx-field input, .ndx-app.ndx-dark .ndx-field select, .ndx-app.ndx-dark .ndx-field textarea,
.ndx-app.ndx-dark .ndx-search input { background: #1b1e36; color: var(--ndx-text); }
.ndx-app.ndx-dark .ndx-donut::after { background: #1b1e36; }
.ndx-app.ndx-dark .ndx-table tbody tr:hover td { background: #232748; }
.ndx-app.ndx-dark .ndx-summary > div { background: #20233c; }
.ndx-app.ndx-dark .ndx-form-section { background: #1b1e36; }
.ndx-app.ndx-dark .ndx-section-title, .ndx-app.ndx-dark .ndx-form-section .ndx-field label { color: var(--ndx-text); }

@media (max-width: 1200px) {
	.ndx-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ndx-dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ndx-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ndx-summary, .ndx-summary-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 782px) {
	.ndx-app { flex-direction: column; }
	.ndx-sidebar { width: 100%; flex: none; }
	.ndx-cards, .ndx-form-grid { grid-template-columns: 1fr; }
	.ndx-dashboard-hero, .ndx-dashboard-grid { display: block; }
	.ndx-dashboard-overview-grid { display: block; }
	.ndx-dashboard-reports { display: block; }.ndx-report-periods { margin: 14px 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }.ndx-invoice-report-link { padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--ndx-border); }
	.ndx-dashboard-quick { margin-top: 14px; }
	.ndx-dashboard-panel { margin-bottom: 18px; }
	.ndx-dashboard-mini-grid { grid-template-columns: 1fr; gap: 0; }
	.ndx-dashboard-overview-grid .ndx-dashboard-panel { margin-bottom: 18px; }
	.ndx-dashboard-metrics { grid-template-columns: 1fr; }
	.ndx-employee-insights { grid-template-columns: 1fr; }
	.ndx-report-columns { grid-template-columns: 1fr; }
	.ndx-service-row { grid-template-columns: 1fr; }
	.ndx-finance-grid { grid-template-columns: 1fr; }
	.ndx-employee-welcome, .ndx-employee-cards, .ndx-employee-leave-form { grid-template-columns: 1fr; }
	.ndx-search { align-items: stretch; width: 100%; }
	.ndx-search input, .ndx-search select, .ndx-search input[type="search"], .ndx-search input[type="date"], .ndx-search input[type="number"] { width: 100%; min-width: 0; box-sizing: border-box; }
	.ndx-task-assignee { grid-template-columns: 1fr; }
}

/* Notifications dropdown */
.ndx-notif { position: relative; }
.ndx-bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--ndx-border); background: #fff; border-radius: 999px; cursor: pointer; color: inherit; }
.ndx-bell em { position: absolute; top: -6px; right: -6px; font-style: normal; font-size: 10px; line-height: 1; padding: 3px 5px; border-radius: 999px; background: #ef4444; color: #fff; }
.ndx-notif-pop { position: absolute; right: 0; top: calc(100% + 10px); width: 360px; max-height: 440px; overflow: auto; background: #fff; border: 1px solid var(--ndx-border); border-radius: 12px; box-shadow: 0 18px 40px rgba(16, 24, 40, .18); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .15s ease; z-index: 999; }
.ndx-notif:hover .ndx-notif-pop, .ndx-notif.is-open .ndx-notif-pop { opacity: 1; visibility: visible; transform: translateY(0); }
.ndx-notif-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--ndx-border); position: sticky; top: 0; background: #fff; }
.ndx-notif-head strong { font-size: 16px; }
.ndx-notif-head a { color: #334155; text-decoration: none; font-size: 13px; }
.ndx-notif-item { display: flex; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--ndx-border); text-decoration: none; color: inherit; }
.ndx-notif-item:hover { background: #f3f6fb; }
.ndx-notif-dot { width: 8px; height: 8px; border-radius: 999px; background: #3b82f6; margin-top: 8px; flex: none; }
.ndx-notif-body { display: block; }
.ndx-notif-type { display: block; color: #16a34a; font-size: 12px; text-transform: lowercase; }
.ndx-notif-title { display: block; color: #2563eb; font-size: 14px; margin: 2px 0; }
.ndx-notif-time { display: block; color: var(--ndx-muted); font-size: 12px; }
.ndx-notif-list-page .ndx-notif-item:last-child { border-bottom: 0; }

/* Lead detail */
.ndx-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.ndx-company-readonly { padding-top: 8px; }
.ndx-detail-item { min-width: 0; padding: 14px 16px; border: 1px solid var(--ndx-border); background: #fff; }
.ndx-detail-item > span { display: block; margin-bottom: 6px; color: var(--ndx-muted); font-size: 12px; }
.ndx-detail-item > strong { display: block; color: var(--ndx-text); font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.ndx-detail-item-wide { grid-column: 1 / -1; }
.ndx-company-logo-display { display: block; max-width: 220px; max-height: 100px; object-fit: contain; object-position: left center; }
.ndx-detail-card { background: #fff; border: 1px solid var(--ndx-border); border-radius: 10px; overflow: hidden; }
.ndx-detail-head { padding: 16px 20px; color: #fff; font-size: 18px; font-weight: 600; }
.ndx-head-green { background: #4caf82; }
.ndx-head-blue { background: #4a9fe0; }
.ndx-head-red { background: #ec4d43; }
.ndx-detail-table { width: 100%; border-collapse: collapse; margin: 14px; width: calc(100% - 28px); }
.ndx-detail-table th, .ndx-detail-table td { border: 1px solid var(--ndx-border); padding: 10px 12px; text-align: left; font-weight: 400; font-size: 14px; }
.ndx-detail-table th { color: #475569; background: #fafbfd; width: 45%; }
.ndx-link-text { color: #2563eb; }
.ndx-due { color: #ef4444; }
.ndx-track-table tbody tr td { background: #eef7e6; }
.ndx-detail-actions { display: flex; gap: 10px; padding: 14px; }
.ndx-app.ndx-dark .ndx-notif-pop, .ndx-app.ndx-dark .ndx-notif-head, .ndx-app.ndx-dark .ndx-bell, .ndx-app.ndx-dark .ndx-detail-card { background: #1b1e36; color: var(--ndx-text); }
.ndx-app.ndx-dark .ndx-detail-table th { background: #20233c; color: var(--ndx-text); }
.ndx-app.ndx-dark .ndx-track-table tbody tr td { background: #232748; }
@media (max-width: 1200px) { .ndx-detail-grid { grid-template-columns: 1fr; } }

/* ---- Employee photo + detail ---- */
.ndx-avatar-sm { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 1px solid var(--ndx-border, #e5e7eb); display: inline-block; }
.ndx-avatar-fallback { display: inline-flex; align-items: center; justify-content: center; background: #ede9fe; color: #6d28d9; font-weight: 700; font-size: 14px; }
.ndx-image-field { display: flex; gap: 14px; align-items: center; }
.ndx-image-preview { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; border: 1px dashed var(--ndx-border, #e5e7eb); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ndx-image-preview img { width: 100%; height: 100%; object-fit: cover; }
.ndx-image-placeholder { font-size: 11px; opacity: .6; }
.ndx-image-inputs { display: grid; gap: 6px; flex: 1; }
.ndx-signature-input { display: grid; gap: 6px; }
.ndx-signature-preview { height: 54px; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--ndx-border, #e5e7eb); background: #fff; }
.ndx-signature-preview img { max-width: 100%; max-height: 48px; object-fit: contain; }
.ndx-signature-preview span { color: var(--ndx-muted); font-size: 12px; }
.ndx-off-days { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 10px 12px; border: 1px solid var(--ndx-border); border-radius: 8px; background: #fff; }
.ndx-off-days label { display: inline-flex; align-items: center; gap: 5px; margin: 0; font-size: 13px; font-weight: 400; }
.ndx-emp-profile { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: 20px; padding: 20px; }
.ndx-emp-photo-card { border: 1px solid var(--ndx-border, #e5e7eb); border-radius: 12px; padding: 22px; text-align: center; }
.ndx-emp-photo { width: 100%; max-width: 300px; margin: 0 auto; aspect-ratio: 1 / 1; border: 1px solid var(--ndx-border, #e5e7eb); display: flex; align-items: center; justify-content: center; overflow: hidden; background: #f8fafc; }
.ndx-emp-photo img { width: 100%; height: 100%; object-fit: cover; }
.ndx-emp-photo-fallback { font-size: 72px; font-weight: 700; color: #6d28d9; }
.ndx-emp-name { margin: 18px 0 0; font-size: 26px; font-weight: 700; }
.ndx-emp-info { border: 1px solid var(--ndx-border, #e5e7eb); border-radius: 12px; overflow: hidden; }
.ndx-emp-table { width: 100%; }
.ndx-emp-table th { width: 38%; text-align: left; }
@media (max-width: 900px) { .ndx-emp-profile { grid-template-columns: 1fr; } }

/* --- Notifications read / unread --- */
.ndx-notif-item.is-read { opacity: .72; background: #fbfcfe; }
.ndx-notif-item.is-read .ndx-notif-dot { background: #cbd5e1; }
.ndx-notif-item.is-unread { background: #f5f8ff; }
.ndx-notif-item.is-unread .ndx-notif-title { font-weight: 600; }
.ndx-notif-state { margin-left: auto; align-self: center; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #64748b; }
.ndx-notif-item.is-unread .ndx-notif-state { color: #2563eb; font-weight: 600; }
.ndx-notif-head-actions { display: inline-flex; gap: 12px; }
.ndx-unread-pill { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: #2563eb; color: #fff; font-size: 11px; vertical-align: middle; }

/* --- Clickable stat cards --- */
.ndx-card-link { text-decoration: none; color: inherit; transition: transform .12s ease, box-shadow .12s ease; }
.ndx-card-link:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(16, 24, 40, .12); }

/* --- Logo cropper --- */
.ndx-cropper { margin-top: 14px; }
.ndx-cropper-stage { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
.ndx-cropper-canvas-wrap { position: relative; display: inline-block; max-width: 420px; background: #f1f5f9; border: 1px solid var(--ndx-border); border-radius: 10px; overflow: hidden; }
.ndx-cropper-canvas-wrap img { display: block; max-width: 420px; max-height: 300px; user-select: none; -webkit-user-drag: none; }
.ndx-crop-box { position: absolute; border: 2px solid #2563eb; box-shadow: 0 0 0 9999px rgba(15, 23, 42, .35); cursor: move; }
.ndx-crop-handle { position: absolute; right: -7px; bottom: -7px; width: 14px; height: 14px; border-radius: 3px; background: #2563eb; cursor: nwse-resize; }
.ndx-cropper-side { display: flex; flex-direction: column; gap: 10px; max-width: 260px; }
.ndx-cropper-side .ndx-btn { width: fit-content; }
.ndx-crop-result img { max-width: 200px; max-height: 120px; display: block; margin-top: 6px; border: 1px solid var(--ndx-border); border-radius: 8px; background: #fff; }
.ndx-hint { font-size: 12px; color: var(--ndx-muted); margin: 0; }
.ndx-size-fields { display: flex; gap: 16px; flex-wrap: wrap; }
.ndx-size-fields label { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.ndx-size-fields input { width: 110px; }

/* Dashboard date range filter */
.ndx-filterbar { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; background: #fff; border-radius: 14px; box-shadow: 0 2px 8px rgba(20,20,43,.06); padding: 14px 18px; margin-bottom: 18px; }
.ndx-filter-field { display: flex; flex-direction: column; gap: 4px; }
.ndx-filter-field label { font-size: 12px; font-weight: 600; color: var(--ndx-muted); }
.ndx-filter-field input[type="date"] { padding: 7px 10px; border: 1px solid var(--ndx-border); border-radius: 8px; font-size: 13px; background: #fff; color: var(--ndx-text); min-width: 160px; }
.ndx-filterbar .ndx-btn { height: 34px; }
.ndx-range-chip { padding: 6px 12px; border-radius: 999px; background: #f3f2fd; color: var(--ndx-primary); font-size: 12px; font-weight: 600; }
.ndx-filter-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.ndx-preset { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--ndx-border); font-size: 12px; text-decoration: none; color: var(--ndx-muted); background: #fff; }
.ndx-preset:hover, .ndx-preset.is-active { border-color: var(--ndx-primary); color: var(--ndx-primary); background: #f3f2fd; }
.ndx-app.ndx-dark .ndx-filterbar, .ndx-app.ndx-dark .ndx-filter-field input[type="date"], .ndx-app.ndx-dark .ndx-preset { background: #1f2440; color: #e6e8f5; border-color: #2c3255; }
@media (max-width: 782px) { .ndx-filter-presets { margin-left: 0; } }


/* --- Location combo (dropdown + inline create) ---------------------- */
.ndx-combo { position: relative; }
.ndx-combo-toggle {
	display: flex; align-items: center; justify-content: space-between; gap: 8px;
	width: 100%; padding: 9px 12px; background: #fff; cursor: pointer;
	border: 1px solid #e2e5ef; border-radius: 8px; font-size: 14px; color: #1f2340; text-align: left;
}
.ndx-combo.is-open .ndx-combo-toggle { border-color: var(--ndx-primary); box-shadow: 0 0 0 3px rgba(109,90,230,.15); }
.ndx-combo.is-disabled .ndx-combo-toggle { background: #f4f5fa; cursor: not-allowed; color: #9aa0b8; }
.ndx-combo-value.is-placeholder { color: #9aa0b8; }
.ndx-combo-caret { color: #9aa0b8; font-size: 12px; }
.ndx-combo-panel {
	display: none; position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px);
	background: #fff; border: 1px solid #e2e5ef; border-radius: 10px; box-shadow: 0 18px 40px rgba(24,26,54,.14);
	padding: 6px;
}
.ndx-combo.is-open .ndx-combo-panel { display: block; }
.ndx-combo-list { max-height: 220px; overflow-y: auto; }
.ndx-combo-option {
	display: block; width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
	padding: 9px 10px; border-radius: 6px; font-size: 14px; color: #1f2340;
}
.ndx-combo-option:hover { background: #f2f1fd; }
.ndx-combo-option.is-selected { background: #e7e4fb; font-weight: 600; }
.ndx-combo-option[hidden] { display: none; }
.ndx-combo-empty { display: none; padding: 18px 10px; text-align: center; font-size: 13px; color: #9aa0b8; }
.ndx-combo-add { display: flex; gap: 8px; padding: 8px 4px 4px; border-top: 1px solid #eef0f7; margin-top: 6px; }
.ndx-combo-add input {
	flex: 1; min-width: 0; padding: 8px 10px; font-size: 13px;
	border: 1px solid #e2e5ef; border-radius: 8px;
}
.ndx-combo-add input:focus { outline: 0; border-color: var(--ndx-primary); box-shadow: 0 0 0 3px rgba(109,90,230,.15); }
.ndx-combo-create { white-space: nowrap; }
.ndx-combo-msg { margin: 4px 4px 2px; font-size: 12px; color: #6b7192; }
.ndx-combo-msg.is-error { color: #ef4444; }
.ndx-app.ndx-dark .ndx-combo-toggle,
.ndx-app.ndx-dark .ndx-combo-panel,
.ndx-app.ndx-dark .ndx-combo-add input { background: #232744; border-color: #343a63; color: var(--ndx-text); }
.ndx-app.ndx-dark .ndx-combo-option { color: var(--ndx-text); }
.ndx-app.ndx-dark .ndx-combo-option:hover,
.ndx-app.ndx-dark .ndx-combo-option.is-selected { background: #33386a; }

/* Read-only auto fields (e.g. auto generated invoice number) */
.ndx-form input.ndx-readonly { background: #f2f5f9; color: #4a5563; cursor: not-allowed; font-weight: 600; letter-spacing: .4px; }
.ndx-form .ndx-hint { display: block; margin-top: 4px; font-size: 11.5px; color: #7a8794; }

/* ---- Activation gate ---- */
.ndx-gate-body { margin:0; background:linear-gradient(135deg,#eef2ff,#f8fafc); font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; }
.ndx-gate { min-height:100vh; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:18px; padding:24px; }
.ndx-gate-card { width:100%; max-width:420px; background:#fff; border-radius:18px; padding:34px 30px; box-shadow:0 18px 45px rgba(30,41,59,.12); text-align:center; }
.ndx-gate-badge { width:56px; height:56px; margin:0 auto 14px; border-radius:16px; background:#5b5bd6; color:#fff; font-weight:800; display:flex; align-items:center; justify-content:center; letter-spacing:.5px; }
.ndx-gate-card h1 { font-size:22px; margin:0 0 6px; color:#0f172a; }
.ndx-gate-sub { margin:0 0 20px; color:#64748b; font-size:13px; }
.ndx-gate-card label { display:block; text-align:left; font-size:12px; font-weight:700; color:#334155; margin:12px 0 6px; }
.ndx-gate-card input { width:100%; box-sizing:border-box; padding:11px 13px; border:1px solid #dbe1ea; border-radius:10px; font-size:14px; }
.ndx-gate-card input:focus { outline:none; border-color:#5b5bd6; box-shadow:0 0 0 3px rgba(91,91,214,.15); }
.ndx-gate-card button { width:100%; margin-top:18px; padding:12px; border:0; border-radius:10px; background:#5b5bd6; color:#fff; font-weight:700; font-size:14px; cursor:pointer; }
.ndx-gate-card button:hover { background:#4a4ac4; }
.ndx-gate-error { background:#fee2e2; color:#991b1b; border-radius:10px; padding:10px 12px; font-size:13px; margin-bottom:8px; }
.ndx-gate-link { display:inline-block; margin-top:16px; font-size:13px; color:#5b5bd6; text-decoration:none; }
.ndx-gate-footer { color:#94a3b8; font-size:12px; }
.ndx-footer-lock { margin-left:10px; color:#5b5bd6; text-decoration:none; font-weight:600; }

/* Embedded shortcode login */
.ndx-gate-embed { position:relative; min-height:560px; box-sizing:border-box; overflow:hidden; padding:48px 20px; background:#f7f8fc; isolation:isolate; }
.ndx-gate-embed::before, .ndx-gate-embed::after { content:""; position:absolute; z-index:-1; border-radius:50%; pointer-events:none; }
.ndx-gate-embed::before { width:340px; height:340px; top:-150px; left:-90px; background:#dff5ee; }
.ndx-gate-embed::after { width:420px; height:420px; right:-170px; bottom:-210px; background:#e8e5ff; }
.ndx-gate-embed .ndx-gate-card { max-width:430px; padding:42px 40px 34px; border:1px solid rgba(255,255,255,.9); border-radius:8px; box-shadow:0 24px 60px rgba(38,45,75,.14); }
.ndx-gate-embed .ndx-gate-badge { width:64px; height:64px; margin-bottom:20px; border-radius:18px; background:#173f5f; box-shadow:8px 8px 0 #f2b134; font-size:17px; letter-spacing:1px; }
.ndx-gate-kicker { margin:0 0 8px; color:#e07a5f; font-size:10px; font-weight:800; letter-spacing:2px; }
.ndx-gate-embed .ndx-gate-card h1 { color:#173f5f; font-family:Georgia,"Times New Roman",serif; font-size:30px; letter-spacing:0; }
.ndx-gate-embed .ndx-gate-sub { margin:8px auto 24px; max-width:280px; line-height:1.6; }
.ndx-gate-embed .ndx-gate-card label { margin-top:16px; color:#173f5f; letter-spacing:.2px; }
.ndx-gate-embed .ndx-gate-card input { min-height:46px; border-color:#d9dee8; border-radius:5px; background:#fbfcfe; }
.ndx-gate-embed .ndx-gate-card input:focus { border-color:#e07a5f; box-shadow:0 0 0 3px rgba(224,122,95,.15); }
.ndx-gate-embed .ndx-gate-card button { min-height:48px; margin-top:24px; border-radius:5px; background:#e07a5f; text-align:left; padding:0 18px; }
.ndx-gate-embed .ndx-gate-card button span { float:right; font-size:20px; line-height:16px; }
.ndx-gate-embed .ndx-gate-card button:hover { background:#c9654b; }
.ndx-gate-secure { margin:22px 0 0; color:#8792a5; font-size:11px; letter-spacing:.2px; }
.ndx-gate-secure span { display:inline-block; margin-right:5px; color:#2a9d8f; font-size:8px; vertical-align:1px; }
@media (max-width:480px) { .ndx-gate-embed { min-height:520px; padding:28px 12px; } .ndx-gate-embed .ndx-gate-card { padding:34px 24px 28px; } }

/* Employee client invoice service rows */
.ndx-emp-services { margin-top: 18px; }
.ndx-emp-service-row { margin-bottom: 10px; }
#ndx-emp-add-service { margin-top: 4px; }

/* Invoice live totals summary (admin form + employee portal) */
.ndx-invoice-summary {
	margin: 18px 0;
	padding: 14px 18px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #f8fafc;
	max-width: 420px;
	margin-left: auto;
}
.ndx-invoice-summary-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 6px 0;
	font-size: 14px;
	color: #475569;
}
.ndx-invoice-summary-row strong { font-variant-numeric: tabular-nums; color: #1f2733; }
.ndx-invoice-summary-row.is-total {
	border-top: 1px dashed #cbd5e1;
	font-weight: 600;
	color: #1f2733;
}
.ndx-invoice-summary-row.is-due {
	border-top: 2px solid #1f2733;
	margin-top: 4px;
	padding-top: 10px;
	font-weight: 700;
}
.ndx-invoice-summary-row.is-due strong { color: #c02626; font-size: 16px; }

/* Client picker on the invoice form */
.ndx-client-picker { display: grid; gap: 8px; }
.ndx-client-picker .ndx-client-select { width: 100%; }
.ndx-client-due { font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 6px; }
.ndx-client-due.is-due { background: #fff4e0; color: #b26a00; }
.ndx-client-due.is-clear { background: #e6f6ee; color: #12855b; }
.ndx-client-picker [data-settle-due] { justify-self: start; }

/* Client account ledger + previous due payment (invoice form) */
.ndx-client-ledger {
	border: 1px solid #e3e8ef;
	border-radius: 10px;
	background: #fbfcfe;
	padding: 10px 12px;
	display: grid;
	gap: 10px;
}
.ndx-ledger-head { font-size: 12px; font-weight: 700; color: #1f2733; }
.ndx-ledger-head span {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 7px;
	border-radius: 999px;
	background: #eef2f7;
	color: #5b6676;
	font-weight: 600;
}
.ndx-ledger-scroll { max-height: 220px; overflow: auto; }
.ndx-ledger-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.ndx-ledger-table th,
.ndx-ledger-table td { padding: 6px 8px; border-bottom: 1px solid #eef1f5; text-align: left; white-space: nowrap; }
.ndx-ledger-table th { background: #f4f6fa; color: #5b6676; font-weight: 700; }
.ndx-ledger-table .ndx-num { text-align: right; font-variant-numeric: tabular-nums; }
.ndx-ledger-status {
	text-transform: capitalize;
	font-weight: 700;
	padding: 1px 8px;
	border-radius: 999px;
	font-size: 11px;
}
.ndx-ledger-status.is-paid { background: #e6f6ee; color: #12855b; }
.ndx-ledger-status.is-partial { background: #fff4e0; color: #b26a00; }
.ndx-ledger-status.is-unpaid { background: #fdeaea; color: #c02626; }
.ndx-ledger-totals { display: flex; flex-wrap: wrap; gap: 10px; }
.ndx-ledger-totals div {
	flex: 1 1 120px;
	background: #fff;
	border: 1px solid #e3e8ef;
	border-radius: 8px;
	padding: 8px 10px;
	display: grid;
	gap: 2px;
}
.ndx-ledger-totals span { font-size: 11px; color: #5b6676; font-weight: 600; }
.ndx-ledger-totals strong { font-size: 15px; color: #1f2733; font-variant-numeric: tabular-nums; }
.ndx-ledger-totals .is-due { border-color: #f3c7c7; background: #fdeaea; }
.ndx-ledger-totals .is-due strong { color: #c02626; }
.ndx-due-payment {
	display: grid;
	gap: 6px;
	padding: 10px 12px;
	border: 1px dashed #c9d4e2;
	border-radius: 10px;
	background: #fff;
}
.ndx-due-payment > label { font-size: 12px; font-weight: 700; color: #1f2733; }
.ndx-due-payment-row { display: flex; gap: 8px; align-items: center; }
.ndx-due-payment-row input { flex: 1 1 auto; }
.ndx-due-payment-result { margin: 0; font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 6px; }
.ndx-due-payment-result.is-due { background: #fff4e0; color: #b26a00; }
.ndx-due-payment-result.is-clear { background: #e6f6ee; color: #12855b; }

/* Employee dashboard hero + due list */
.ndx-emp-hero { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: space-between; padding: 24px 26px; margin-bottom: 18px; border-radius: 18px; border: 1px solid #ded8fb; background: linear-gradient(115deg, #6d5ae6 0%, #8b6ef0 45%, #b4a4fb 100%); color: #fff; box-shadow: 0 14px 34px rgba(109,90,230,.22); }
.ndx-emp-hero-main { display: flex; align-items: center; gap: 18px; min-width: 260px; }
.ndx-emp-hero-avatar { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.22); border: 2px solid rgba(255,255,255,.55); color: #fff; font-weight: 700; font-size: 22px; letter-spacing: .5px; flex: 0 0 auto; }
.ndx-emp-hero .ndx-eyebrow { color: rgba(255,255,255,.78); letter-spacing: .12em; font-size: 10px; }
.ndx-emp-hero h1 { margin: 6px 0 2px; font-size: 25px; line-height: 1.2; color: #fff; }
.ndx-emp-hero p { margin: 0; font-size: 13px; color: rgba(255,255,255,.85); }
.ndx-emp-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ndx-emp-hero-chips span { padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.28); font-size: 11px; font-weight: 600; }
.ndx-emp-hero-stats { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 12px; }
.ndx-emp-hero-stats > div { padding: 13px 15px; border-radius: 13px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24); }
.ndx-emp-hero-stats span { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.8); }
.ndx-emp-hero-stats strong { display: block; margin-top: 6px; font-size: 19px; color: #fff; }
.ndx-emp-client-panel { margin-top: 18px; }
.ndx-emp-due-list { display: grid; gap: 12px; }
.ndx-emp-due-row { display: grid; grid-template-columns: minmax(140px, 1.2fr) minmax(90px, 2fr) auto; align-items: center; gap: 14px; padding: 11px 13px; border: 1px solid var(--ndx-border); border-radius: 12px; background: linear-gradient(145deg, #fff, #fafaff); }
.ndx-emp-due-name { font-weight: 600; font-size: 13px; color: #1f2138; display: block; }
.ndx-emp-due-name small { display: block; font-weight: 500; font-size: 11px; color: var(--ndx-muted); margin-top: 2px; }
.ndx-emp-due-bar { display: block; height: 8px; border-radius: 999px; background: #eeecfb; overflow: hidden; }
.ndx-emp-due-bar em { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #6d5ae6, #9d8bf5); }
.ndx-emp-due-row strong { font-size: 13px; color: var(--ndx-primary); white-space: nowrap; }
@media (max-width: 860px) {
	.ndx-emp-hero { padding: 20px; }
	.ndx-emp-hero-stats { grid-template-columns: repeat(3, minmax(90px, 1fr)); }
	.ndx-emp-due-row { grid-template-columns: 1fr auto; }
	.ndx-emp-due-bar { grid-column: 1 / -1; }
}

/* ---- Finance chart (Profit & Loss / Dashboard) ---- */
.ndx-fin-chart-wrap{width:100%;padding:6px 4px 0}
.ndx-fin-chart{width:100%;height:240px;display:block;overflow:visible}
.ndx-fin-grid{stroke:rgba(125,135,160,.22);stroke-width:1}
.ndx-fin-bar-in{fill:#22a06b}
.ndx-fin-bar-out{fill:#e2564d}
.ndx-fin-line{fill:none;stroke:#3b6df5;stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}
.ndx-fin-label{font-size:15px;fill:currentColor;opacity:.65}
.ndx-dot-in{background:#22a06b}
.ndx-dot-out{background:#e2564d}
.ndx-dot-profit{background:#3b6df5}
.ndx-span-2{grid-column:span 2}
@media(max-width:1100px){.ndx-span-2{grid-column:auto}}
.ndx-pos{color:#22a06b}
.ndx-neg{color:#e2564d}
.ndx-help-text{margin:0 0 14px;font-size:13px;opacity:.75}
.ndx-summary-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:12px}
@media(max-width:760px){.ndx-summary-3{grid-template-columns:1fr}}
