@font-face {
	font-family: "Manrope";
	src: url("../fonts/Manrope-Regular.ttf") format("truetype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "ManropeSemi";
	src: url("../fonts/Manrope-SemiBold.ttf") format("truetype");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "ManropeBold";
	src: url("../fonts/Manrope-Bold.ttf") format("truetype");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "ManropeExBold";
	src: url("../fonts/Manrope-ExtraBold.ttf") format("truetype");
	font-weight: 800 900;
	font-style: normal;
	font-display: swap;
}
* {
	box-sizing: border-box;
}
.npn-admin-body {
	margin: 0;
	background: #f3f4f6;
	color: #0f172a;
	font-family: Manrope, Arial, sans-serif;
}
.npn-admin-body a {
	text-decoration: none;
}
.npn-admin-app {
	min-height: 100vh;
	display: flex;
	background: #f3f4f6;
}
.npn-sidebar {
	width: 292px;
	background: #0d1117;
	color: #fff;
	display: flex;
	flex-direction: column;
	position: fixed;
	inset: 0 auto 0 0;
	z-index: 20;
}
.npn-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 22px 18px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.npn-brand-logo {
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background: #ffd000;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	color: #111827;
	font-weight: 900;
}
.npn-brand-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 6px;
}
.npn-brand-title strong {
	display: block;
	font-size: 17px;
	line-height: 1.2;
}
.npn-brand-title span {
	color: #9ca3af;
	font-size: 13px;
}
.npn-sidebar-menu {
	padding: 18px 12px;
	flex: 1;
	overflow-y: auto;
}
.npn-sidebar-link {
	display: flex;
	align-items: center;
	gap: 12px;
	height: 50px;
	padding: 0 16px;
	border-radius: 12px;
	color: #f9fafb;
	margin-bottom: 8px;
	font-size: 15px;
	transition: 0.2s;
}
.npn-sidebar-link:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}
.npn-sidebar-link.active {
	background: #ffd000;
	color: #111827;
	font-weight: 800;
}
.npn-sidebar-icon {
	width: 20px;
	text-align: center;
}
.npn-sidebar-user {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding: 20px 22px;
	display: flex;
	align-items: center;
	gap: 12px;
}
.npn-user-avatar {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	border: 2px solid #ffd000;
	overflow: hidden;
	background: #fff;
}
.npn-user-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.npn-user-info strong {
	display: block;
	font-size: 14px;
}
.npn-user-info a {
	color: #cbd5e1;
	font-size: 13px;
}
.npn-main {
	margin-left: 292px;
	width: calc(100% - 292px);
	min-height: 100vh;
}
.npn-topbar {
	height: 74px;
	background: #fff;
	border-bottom: 1px solid #e5e7eb;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 22px;
	position: sticky;
	top: 0;
	z-index: 10;
}
.npn-topbar h1 {
	margin: 0;
	font-size: 22px;
}
.npn-topbar-right {
	display: flex;
	align-items: center;
	gap: 14px;
}
.npn-search,
.npn-panel-search,
.npn-date-box,
.npn-filter-select {
	height: 42px;
	border: 1px solid #e5e7eb;
	border-radius: 13px;
	padding: 0 14px;
	background: #fff;
	color: #64748b;
}
.npn-search {
	width: 370px;
}
.npn-bell {
	width: 42px;
	height: 42px;
	border: 1px solid #e5e7eb;
	border-radius: 13px;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}
.npn-content {
	max-width: 100%;
	margin: 0 auto;
	padding: 28px 24px 80px;
}
.npn-panel {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 18px;
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
	overflow: hidden;
}
.npn-panel-head {
	padding: 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	border-bottom: 1px solid #eef2f7;
}
.npn-panel-head h3 {
	margin: 0 0 6px;
	font-size: 18px;
}
.npn-panel-head p,
.npn-page-form-head p {
	margin: 0;
	color: #64748b;
}
.npn-panel-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}
.npn-panel-search {
	width: 320px;
}
.npn-table {
	width: 100%;
	border-collapse: collapse;
}
.npn-table th,
.npn-table td {
	padding: 15px 20px;
	border-bottom: 1px solid #eef2f7;
	text-align: left;
	font-size: 14px;
	vertical-align: middle;
}
.npn-table th {
	color: #64748b;
	font-size: 12px;
	text-transform: uppercase;
	background: #fafafa;
}
.npn-empty {
	padding: 22px 20px;
	color: #64748b;
	font-size: 14px;
}
.npn-btn {
	font-family: 'ManropeExBold';
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 0 13px;
	border-radius: 10px;
	border: 1px solid #e5e7eb;
	background: #fff;
	color: #0f172a;
	font-size: 13px;
	cursor: pointer;
}
.npn-btn-primary {
	background: #ffd000;
	border-color: #ffd000;
	color: #111827;
}
.npn-btn-danger {
	color: #dc2626;
	border-color: #fecaca;
}
.npn-alert {
	padding: 14px 16px;
	border-radius: 14px;
	margin-bottom: 18px;
	font-weight: 800;
}
.npn-alert-success {
	background: #dcfce7;
	color: #166534;
	border: 1px solid #bbf7d0;
}
.npn-alert-danger {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fecaca;
}
.npn-inline-search,
.npn-page-actions form {
	margin: 0;
}
.npn-page-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.npn-status,
.npn-seo-ok,
.npn-seo-missing {
	display: inline-flex;
	align-items: center;
	padding: 5px 9px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 900;
}
.npn-status-publish,
.npn-seo-ok {
	background: #dcfce7;
	color: #166534;
}
.npn-status-draft {
	background: #fef3c7;
	color: #92400e;
}
.npn-status-pending {
	background: #dbeafe;
	color: #1d4ed8;
}
.npn-status-private {
	background: #f3e8ff;
	color: #7e22ce;
}
.npn-seo-missing {
	background: #fee2e2;
	color: #991b1b;
}
.npn-row-id {
	color: #94a3b8;
	font-size: 12px;
	margin-top: 4px;
}
.npn-page-form-head {
	display: flex;
	justify-content: space-between;
	gap: 18px;
	align-items: center;
	margin-bottom: 18px;
}
.npn-page-form-head h2 {
	margin: 0 0 6px;
	font-size: 28px;
}
.npn-page-form-actions {
	display: flex;
	gap: 10px;
}
.npn-admin-edit-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 20px;
}
.npn-settings-grid {
	grid-template-columns: minmax(0, 1fr) 380px;
}
.npn-admin-edit-main {
	display: grid;
	gap: 20px;
}
.npn-admin-edit-side {
	position: sticky;
	top: 92px;
	height: max-content;
}
.npn-edit-card {
	overflow: visible;
}
.npn-edit-body {
	padding: 20px;
}
.npn-field {
	margin-bottom: 18px;
}
.npn-field:last-child {
	margin-bottom: 0;
}
.npn-field label {
	display: block;
	font-weight: 900;
	margin-bottom: 8px;
	color: #0f172a;
}
.npn-field label span {
	color: #dc2626;
}
.npn-field input[type="text"],
.npn-field input[type="password"],
.npn-field input[type="number"],
.npn-field input[type="color"],
.npn-field textarea,
.npn-field select {
	width: 100%;
	min-height: 42px;
	border: 1px solid #dbe3ef;
	border-radius: 12px;
	padding: 9px 12px;
	background: #fff;
	color: #0f172a;
	font-size: 14px;
}
.npn-field input[type="color"] {
	width: 90px;
	padding: 4px;
}
.npn-field textarea {
	min-height: 130px;
	resize: vertical;
}
.npn-field small {
	display: block;
	color: #64748b;
	margin-top: 6px;
}
.npn-save-page-btn {
	width: 100%;
	height: 46px;
	font-size: 15px;
	margin-top: 14px;
}
.npn-seo-preview {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	padding: 16px;
	margin-bottom: 18px;
	box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}
.npn-seo-preview-title {
	color: #1a0dab;
	font-size: 20px;
	line-height: 1.35;
	margin-bottom: 5px;
}
.npn-seo-preview-url {
	color: #006621;
	font-size: 13px;
	margin-bottom: 8px;
	word-break: break-all;
}
.npn-seo-preview-desc {
	color: #545454;
	font-size: 14px;
	line-height: 1.45;
}
.npn-seo-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}
.npn-seo-form-grid .npn-field {
	margin-bottom: 0;
}
.npn-field-full {
	grid-column: 1/-1;
}
.npn-media-preview {
	width: 220px;
	min-height: 110px;
	border: 1px dashed #cbd5e1;
	border-radius: 14px;
	background: #f8fafc;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.npn-media-preview img {
	max-width: 100%;
	max-height: 140px;
	display: block;
}
.npn-checkline {
	display: flex;
	gap: 9px;
	align-items: center;
	margin: 12px 0;
	font-weight: 800;
}
.npn-admin-form {
	margin: 0;
}

.npn-menu-row .npn-field {
	margin-bottom: 0;
}
@media (max-width: 1200px) {
	.npn-search,
	.npn-panel-search {
		width: 260px;
	}
	.npn-admin-edit-grid,
	.npn-settings-grid {
		grid-template-columns: 1fr;
	}
	.npn-admin-edit-side {
		position: static;
	}
	.npn-seo-form-grid {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 768px) {
	.npn-sidebar {
		position: relative;
		width: 100%;
		min-height: auto;
	}
	.npn-admin-app {
		display: block;
	}
	.npn-main {
		width: 100%;
		margin-left: 0;
	}
	.npn-topbar {
		position: relative;
		height: auto;
		padding: 16px;
		display: block;
	}
	.npn-topbar-right {
		margin-top: 12px;
	}
	.npn-search {
		width: 100%;
	}
	.npn-panel-head,
	.npn-page-form-head {
		display: block;
	}
	.npn-panel-actions,
	.npn-page-form-actions {
		margin-top: 14px;
		display: flex;
		flex-wrap: wrap;
	}
	.npn-panel-search,
	.npn-filter-select {
		width: 100%;
		margin-bottom: 8px;
	}
	.npn-menu-row {
		grid-template-columns: 1fr;
	}
}
.npn-thumb-cell {
	width: 74px;
	height: 54px;
	border-radius: 12px;
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	color: #94a3b8;
	font-weight: 900;
}
.npn-thumb-cell img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.npn-help-text {
	display: block;
	margin-top: 10px;
	color: #64748b;
	font-size: 13px;
}
.npn-seo-form-grid .npn-media-field {
	grid-column: 1/-1;
}

.npn-home-edit-section {
	border-bottom: 1px solid #eef2f7;
	padding-bottom: 22px;
	margin-bottom: 22px;
}
.npn-home-edit-section:last-child {
	border-bottom: 0;
	padding-bottom: 0;
	margin-bottom: 0;
}
.npn-home-edit-section h4 {
	margin: 0 0 14px;
	font-size: 16px;
	font-weight: 900;
	color: #0f172a;
}
.npn-help-text {
	color: #64748b;
	margin: 8px 0 0;
	font-size: 13px;
}

.npn-multi-media-field {
	display: block;
}

.npn-multi-media-list {
	display: grid;
	gap: 14px;
}

.npn-multi-media-item {
	display: grid;
	grid-template-columns: 160px minmax(0, 1fr) auto auto;
	gap: 10px;
	align-items: center;
	padding: 12px;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	background: #f8fafc;
}

.npn-multi-media-item .npn-media-preview {
	width: 150px;
	min-height: 86px;
	margin: 0;
}

.npn-multi-media-item .npn-media-url {
	width: 100%;
}

.npn-add-multi-media {
	margin-top: 12px;
}
.npn-video-input-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	gap: 10px;
	align-items: center;
}

.npn-video-preview {
	margin-top: 10px;
	color: #64748b;
	font-size: 13px;
	word-break: break-all;
}

.npn-video-preview code {
	display: inline-block;
	max-width: 100%;
	padding: 8px 10px;
	border-radius: 10px;
	background: #f1f5f9;
	color: #0f172a;
	white-space: normal;
}

@media (max-width: 768px) {
	.npn-video-input-row {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 900px) {
	.npn-multi-media-item {
		grid-template-columns: 1fr;
	}

	.npn-multi-media-item .npn-media-preview {
		width: 100%;
	}
}
/* =========================
   WP Editor trong admin frontend
========================= */

.npn-admin-wrap .wp-editor-wrap {
	border: 1px solid #d7e1ee;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
}

.npn-admin-wrap .wp-editor-tools {
	background: #f8fafc;
	padding: 8px 10px 0;
}

.npn-admin-wrap .wp-editor-tabs {
	display: flex;
	gap: 6px;
}

.npn-admin-wrap .wp-editor-tabs button,
.npn-admin-wrap .wp-switch-editor {
	font-family: "Manrope", Arial, sans-serif !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	border-radius: 8px 8px 0 0 !important;
	border: 1px solid #d7e1ee !important;
	background: #fff !important;
	color: #07152b !important;
	padding: 7px 12px !important;
	height: auto !important;
	line-height: 1.2 !important;
}

.npn-admin-wrap .html-active .switch-html,
.npn-admin-wrap .tmce-active .switch-tmce {
	background: #ffc400 !important;
	border-color: #ffc400 !important;
	color: #07152b !important;
}

.npn-admin-wrap .wp-editor-container {
	border: 0 !important;
}

.npn-admin-wrap .wp-editor-area {
	min-height: 360px;
	border: 0 !important;
	padding: 14px !important;
	font-family: "Manrope", Arial, sans-serif;
	font-size: 14px;
	line-height: 1.65;
}

.npn-admin-wrap .mce-toolbar-grp,
.npn-admin-wrap .quicktags-toolbar {
	background: #fff !important;
	border-bottom: 1px solid #e5edf6 !important;
}

.npn-admin-wrap .mce-btn button {
	font-family: "Manrope", Arial, sans-serif !important;
	font-weight: 600 !important;
}
/* =========================
   Admin bổ sung: Dashboard / Project / Customer / Contact
========================= */
.npn-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.npn-stat-card {
    position: relative;
    overflow: hidden;
    padding: 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e3eaf3;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.npn-stat-card::after {
    content: "";
    position: absolute;
    right: -30px;
    top: -34px;
    width: 90px;
    height: 90px;
    border-radius: 999px;
    background: rgba(255, 204, 0, 0.18);
}

.npn-stat-card span {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #fff7d6;
    margin-bottom: 10px;
}

.npn-stat-card strong {
    display: block;
    font-size: 28px;
    line-height: 1;
    color: #07152b;
    margin-bottom: 6px;
}

.npn-stat-card p {
    margin: 0;
    color: #708198;
    font-size: 13px;
    font-weight: 700;
}

.npn-filter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.npn-filter-row select,
.npn-mini-form select,
.npn-test-email-form input[type="email"] {
    height: 42px;
    border-radius: 12px;
    border: 1px solid #d7e1ee;
    background: #fff;
    padding: 0 12px;
    font-family: "Manrope", Arial, sans-serif;
    font-weight: 600;
}

.npn-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.npn-status-success { background: #dcfce7; color: #15803d; }
.npn-status-warning { background: #fff7d6; color: #9a6700; }
.npn-status-info { background: #e0f2fe; color: #0369a1; }
.npn-status-danger { background: #fee2e2; color: #b91c1c; }
.npn-status-muted { background: #e5e7eb; color: #4b5563; }

.npn-empty-state {
    padding: 22px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    color: #64748b;
    text-align: center;
    font-weight: 700;
}

.npn-admin-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.npn-admin-gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid #dbe5f1;
    background: #fff;
    text-decoration: none;
    color: #07152b;
}

.npn-admin-gallery-item img {
    width: 100%;
    aspect-ratio: 1 / .72;
    object-fit: cover;
    display: block;
    background: #eef2f7;
}

.npn-admin-gallery-item span {
    display: block;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.npn-file-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff7d6;
    border: 1px solid #ffe58a;
    font-weight: 800;
}

.npn-file-chip a {
    color: #07152b;
    text-decoration: none;
}

.npn-user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.npn-user-cell img {
    width: 44px;
    height: 44px;
    border-radius: 999px;
}

.npn-activity-list {
    display: grid;
    gap: 10px;
	padding: 10px;
}

.npn-activity-item {
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e3eaf3;
}

.npn-activity-item strong {
    display: block;
    color: #07152b;
    font-size: 13px;
}

.npn-activity-item span {
    display: block;
    color: #718096;
    font-size: 12px;
    margin-top: 4px;
}

.npn-mini-form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.npn-test-email-form {
    margin-top: 18px;
}

.npn-admin-wrap button,
.npn-admin-wrap .button,
.npn-admin-wrap input[type="button"],
.npn-admin-wrap input[type="submit"],
.npn-admin-app button,
.npn-admin-app .npn-btn {
    font-family: "Manrope", Arial, sans-serif;
    font-weight: 800;
}

.npn-media-field,
.npn-field .npn-media-field,
.npn-admin-form .npn-media-field {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.npn-field button.npn-upload-media,
.npn-field button.npn-remove-media {
    font-weight: 800;
}

@media (max-width: 1180px) {
    .npn-dashboard-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .npn-dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .npn-filter-row,
    .npn-mini-form {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }
}
/* =========================
   Custom scrollbar - đúng class bản HDR-admin-complete-fixed
========================= */

/* Sidebar cố định, chỉ menu bên trong được scroll */
.npn-sidebar {
	background: #0d1117;
	overflow: hidden;
}

/* Đây là thanh scroll đang thô trong ảnh */
.npn-sidebar-menu {
	overflow-y: auto;
	overflow-x: hidden;
	padding-right: 8px;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 208, 0, 0.9) rgba(13, 17, 23, 0.95);
}

/* Chrome / Edge / Safari */
.npn-sidebar-menu::-webkit-scrollbar {
	width: 8px;
}

.npn-sidebar-menu::-webkit-scrollbar-track {
	background: rgba(13, 17, 23, 0.95);
	border-radius: 999px;
	margin: 8px 0;
}

.npn-sidebar-menu::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, #ffe066 0%, #ffd000 45%, #ffb800 100%);
	border-radius: 999px;
	border: 2px solid #0d1117;
	box-shadow:
		0 0 10px rgba(255, 208, 0, 0.36),
		inset 0 0 4px rgba(255, 255, 255, 0.28);
}

.npn-sidebar-menu::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(180deg, #fff1a8 0%, #ffd000 45%, #ffc400 100%);
	box-shadow:
		0 0 14px rgba(255, 208, 0, 0.58),
		inset 0 0 5px rgba(255, 255, 255, 0.36);
}

/* Main content scrollbar nếu trang dài */
.npn-main {
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 208, 0, 0.82) #f3f4f6;
}

.npn-main::-webkit-scrollbar {
	width: 9px;
	height: 9px;
}

.npn-main::-webkit-scrollbar-track {
	background: #f3f4f6;
	border-radius: 999px;
}

.npn-main::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, #ffe066, #ffb800);
	border-radius: 999px;
	border: 2px solid #f3f4f6;
	box-shadow: 0 0 10px rgba(255, 208, 0, 0.28);
}

.npn-main::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(180deg, #fff1a8, #ffc400);
}

/* Body scrollbar nếu trình duyệt đang scroll body */
.npn-admin-body {
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 208, 0, 0.82) #f3f4f6;
}

.npn-admin-body::-webkit-scrollbar {
	width: 10px;
}

.npn-admin-body::-webkit-scrollbar-track {
	background: #f3f4f6;
}

.npn-admin-body::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, #ffe066, #ffb800);
	border-radius: 999px;
	border: 2px solid #f3f4f6;
	box-shadow:
		0 0 10px rgba(255, 208, 0, 0.3),
		inset 0 0 4px rgba(255, 255, 255, 0.25);
}

.npn-admin-body::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(180deg, #fff1a8, #ffc400);
}
.npn-sidebar-menu {
	margin-right: 4px;
}

.npn-sidebar-link {
	margin-right: 2px;
}

/* =========================================================
   ADMIN PROJECT DETAIL - POLISH UI
   Áp dụng cho trang chi tiết project / upload kết quả / ghi chú
========================================================= */

/* Card section mềm hơn */
.npn-card,
.npn-admin-card,
.npn-form-card,
.npn-project-card {
	border-radius: 18px !important;
	border: 1px solid #e5edf6 !important;
	background: #fff !important;
	box-shadow:
		0 18px 50px rgba(15, 23, 42, 0.06),
		0 2px 8px rgba(15, 23, 42, 0.03) !important;
	overflow: hidden;
}

.npn-card-head,
.npn-admin-card-head,
.npn-form-card-head,
.npn-project-card-head {
	padding: 20px 20px 18px !important;
	border-bottom: 1px solid #edf2f7 !important;
	background:
		linear-gradient(180deg, #fff 0%, #fbfdff 100%) !important;
}

.npn-card-head h2,
.npn-card-head h3,
.npn-admin-card-head h2,
.npn-admin-card-head h3,
.npn-form-card-head h2,
.npn-form-card-head h3,
.npn-project-card-head h2,
.npn-project-card-head h3 {
	margin: 0 0 6px !important;
	color: #07152b !important;
	font-size: 20px !important;
	font-weight: 900 !important;
	letter-spacing: -0.02em;
}

.npn-card-head p,
.npn-admin-card-head p,
.npn-form-card-head p,
.npn-project-card-head p {
	margin: 0 !important;
	color: #718096 !important;
	font-size: 15px !important;
	line-height: 1.5;
}

/* Body của card */
.npn-card-body,
.npn-admin-card-body,
.npn-form-card-body,
.npn-project-card-body {
	padding: 20px !important;
}

/* Empty state: Chưa có ảnh kết quả */
.npn-empty-state,
.npn-card .npn-empty,
.npn-admin-card .npn-empty {
	min-height: 72px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	border: 1px dashed #cbd8e6 !important;
	border-radius: 14px !important;
	background:
		linear-gradient(180deg, #f8fbff 0%, #f4f8fc 100%) !important;
	color: #65758b !important;
	font-size: 15px !important;
	font-weight: 800 !important;
	padding: 18px !important;
}

/* Nếu text "Chưa có ảnh kết quả." nằm trong div thường */
.npn-card-body > div:only-child,
.npn-admin-card-body > div:only-child {
	border-radius: 14px;
}

/* Label trong form */
.npn-admin-wrap label,
.npn-main label,
.npn-form label {
	color: #07152b;
	font-weight: 900;
	font-size: 15px;
	display: inline-block;
}

/* Input / select / textarea đồng bộ */
.npn-admin-wrap input[type="text"],
.npn-admin-wrap input[type="email"],
.npn-admin-wrap input[type="url"],
.npn-admin-wrap input[type="number"],
.npn-admin-wrap input[type="password"],
.npn-admin-wrap select,
.npn-admin-wrap textarea,
.npn-main input[type="text"],
.npn-main input[type="email"],
.npn-main input[type="url"],
.npn-main input[type="number"],
.npn-main input[type="password"],
.npn-main select,
.npn-main textarea {
	width: 100%;
	border: 1px solid #d9e4f2 !important;
	border-radius: 13px !important;
	background: #fff !important;
	color: #07152b !important;
	font-family: "Manrope", Arial, sans-serif !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	outline: none !important;
	box-shadow: none !important;
	transition:
		border-color .18s ease,
		box-shadow .18s ease,
		background .18s ease;
}

.npn-admin-wrap input[type="text"],
.npn-admin-wrap input[type="email"],
.npn-admin-wrap input[type="url"],
.npn-admin-wrap input[type="number"],
.npn-admin-wrap input[type="password"],
.npn-admin-wrap select,
.npn-main input[type="text"],
.npn-main input[type="email"],
.npn-main input[type="url"],
.npn-main input[type="number"],
.npn-main input[type="password"],
.npn-main select {
	min-height: 44px !important;
	padding: 0 14px !important;
}

.npn-admin-wrap textarea,
.npn-main textarea {
	min-height: 130px;
	padding: 14px !important;
	line-height: 1.6 !important;
	resize: vertical;
}

.npn-admin-wrap input:focus,
.npn-admin-wrap select:focus,
.npn-admin-wrap textarea:focus,
.npn-main input:focus,
.npn-main select:focus,
.npn-main textarea:focus {
	border-color: #ffc400 !important;
	box-shadow:
		0 0 0 3px rgba(255, 196, 0, 0.15),
		0 8px 20px rgba(15, 23, 42, 0.04) !important;
	background: #fff !important;
}

/* Upload file mặc định: làm đẹp */
.npn-admin-wrap input[type="file"],
.npn-main input[type="file"] {
	width: 100%;
	max-width: 100%;
	padding: 10px;
	border: 1px dashed #cbd8e6;
	border-radius: 14px;
	background: #f8fbff;
	color: #334155;
	font-family: "Manrope", Arial, sans-serif;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.npn-admin-wrap input[type="file"]::file-selector-button,
.npn-main input[type="file"]::file-selector-button {
	height: 36px;
	margin-right: 12px;
	padding: 0 14px;
	border: 0;
	border-radius: 10px;
	background: #07152b;
	color: #fff;
	font-family: "Manrope", Arial, sans-serif;
	font-size: 13px;
	font-weight: 900;
	cursor: pointer;
	transition: background .18s ease, transform .18s ease;
}

.npn-admin-wrap input[type="file"]::file-selector-button:hover,
.npn-main input[type="file"]::file-selector-button:hover {
	background: #ffc400;
	color: #07152b;
	transform: translateY(-1px);
}

/* Khoảng cách các field upload */
.npn-admin-wrap input[type="file"] + label,
.npn-main input[type="file"] + label {
	margin-top: 18px;
}

/* Các cụm field trong project detail */
.npn-project-field,
.npn-field,
.npn-form-row {
	margin-bottom: 18px;
}

.npn-project-field:last-child,
.npn-field:last-child,
.npn-form-row:last-child {
	margin-bottom: 0;
}

/* Button chuẩn */
.npn-admin-wrap button,
.npn-admin-wrap .button,
.npn-admin-wrap input[type="button"],
.npn-admin-wrap input[type="submit"],
.npn-main button,
.npn-main .button,
.npn-main input[type="button"],
.npn-main input[type="submit"] {
	font-family: "Manrope", Arial, sans-serif !important;
	font-weight: 900 !important;
	line-height: 1.2 !important;
	border-radius: 12px !important;
	box-shadow: none;
}

/* Button chính màu vàng */
.npn-btn-primary,
.npn-submit,
.npn-save,
.npn-update-project,
button[name="npn_update_project"],
input[name="npn_update_project"],
.npn-admin-wrap button[type="submit"]:not(.npn-danger):not(.npn-btn-danger),
.npn-main button[type="submit"]:not(.npn-danger):not(.npn-btn-danger) {
	min-height: 46px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0 !important;
	padding: 0 22px !important;
	background: linear-gradient(180deg, #ffd51a, #ffc400) !important;
	color: #07152b !important;
	font-size: 14px !important;
	font-weight: 900 !important;
	cursor: pointer;
	box-shadow:
		0 10px 24px rgba(255, 196, 0, 0.22),
		inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
	transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.npn-btn-primary:hover,
.npn-submit:hover,
.npn-save:hover,
.npn-update-project:hover,
button[name="npn_update_project"]:hover,
input[name="npn_update_project"]:hover,
.npn-admin-wrap button[type="submit"]:not(.npn-danger):not(.npn-btn-danger):hover,
.npn-main button[type="submit"]:not(.npn-danger):not(.npn-btn-danger):hover {
	transform: translateY(-1px);
	filter: brightness(1.02);
	box-shadow:
		0 14px 28px rgba(255, 196, 0, 0.28),
		inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
}

/* Button xóa */
.npn-btn-danger,
.npn-danger,
button[name="npn_delete_project"],
input[name="npn_delete_project"],
a.npn-delete,
.npn-delete {
	min-height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 16px !important;
	border-radius: 11px !important;
	border: 1px solid #fecaca !important;
	background: #fff7f7 !important;
	color: #ef4444 !important;
	font-size: 13px !important;
	font-weight: 900 !important;
	text-decoration: none !important;
	cursor: pointer;
	transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.npn-btn-danger:hover,
.npn-danger:hover,
button[name="npn_delete_project"]:hover,
input[name="npn_delete_project"]:hover,
a.npn-delete:hover,
.npn-delete:hover {
	background: #ef4444 !important;
	border-color: #ef4444 !important;
	color: #fff !important;
	transform: translateY(-1px);
}

/* Sidebar info card bên phải */
.npn-side-card,
.npn-project-side-card,
.npn-sidebar-card {
	border-radius: 18px !important;
	border: 1px solid #e5edf6 !important;
	background: #fff !important;
	box-shadow:
		0 18px 50px rgba(15, 23, 42, 0.06),
		0 2px 8px rgba(15, 23, 42, 0.03) !important;
	overflow: hidden;
}

.npn-side-card-head,
.npn-project-side-card-head,
.npn-sidebar-card-head {
	padding: 20px !important;
	border-bottom: 1px solid #edf2f7 !important;
	background: linear-gradient(180deg, #fff, #fbfdff) !important;
}

.npn-side-card-head h3,
.npn-project-side-card-head h3,
.npn-sidebar-card-head h3 {
	margin: 0 0 6px !important;
	color: #07152b !important;
	font-size: 18px !important;
	font-weight: 900 !important;
}

.npn-side-card-head p,
.npn-project-side-card-head p,
.npn-sidebar-card-head p {
	margin: 0 !important;
	color: #718096 !important;
	font-size: 14px !important;
}

.npn-side-card-body,
.npn-project-side-card-body,
.npn-sidebar-card-body {
	padding: 20px !important;
}

.npn-side-card strong,
.npn-project-side-card strong,
.npn-sidebar-card strong {
	color: #07152b;
	font-weight: 900;
}

/* Thông tin khách hàng trong sidebar */
.npn-project-meta,
.npn-project-info,
.npn-side-info {
	display: grid;
	gap: 16px;
	color: #334155;
	font-size: 14px;
	line-height: 1.45;
}

.npn-project-meta p,
.npn-project-info p,
.npn-side-info p {
	margin: 0;
}

/* Select trạng thái */
.npn-project-status-select,
select[name="npn_project_status"] {
	height: 44px !important;
	border-radius: 13px !important;
	font-weight: 700 !important;
}

/* Layout trang detail */
.npn-project-detail-grid,
.npn-admin-detail-grid,
.npn-edit-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 22px;
	align-items: start;
}

@media (max-width: 1100px) {
	.npn-project-detail-grid,
	.npn-admin-detail-grid,
	.npn-edit-layout {
		grid-template-columns: 1fr;
	}
}

/* Message / notice đẹp hơn */
.npn-admin-notice,
.npn-notice,
.npn-message {
	border-radius: 14px !important;
	border: 1px solid #dbe7f3 !important;
	background: #f8fbff !important;
	color: #334155 !important;
	padding: 14px 16px !important;
	font-weight: 700;
}

.npn-admin-notice.is-success,
.npn-notice.is-success,
.npn-message.is-success {
	border-color: #bbf7d0 !important;
	background: #f0fdf4 !important;
	color: #166534 !important;
}

.npn-admin-notice.is-error,
.npn-notice.is-error,
.npn-message.is-error {
	border-color: #fecaca !important;
	background: #fef2f2 !important;
	color: #991b1b !important;
}
.npn-admin-notice.is-warning,
.npn-notice.is-warning,
.npn-message.is-warning {
	border-color: #fde68a !important;
	background: #fffbeb !important;
	color: #92400e !important;
}
.npn-image-classifier-test-hint {
	font-size: 12px;
	color: #64748b;
}
.npn-admin-wrap .wp-editor-wrap {
	border: 1px solid #d7e1ee;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
}

.npn-admin-wrap .wp-editor-tools {
	background: #f8fafc;
	padding: 8px 10px 0;
}

.npn-admin-wrap .wp-switch-editor {
	font-family: "Manrope", Arial, sans-serif !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	border-radius: 8px 8px 0 0 !important;
	border: 1px solid #d7e1ee !important;
	background: #fff !important;
	color: #07152b !important;
	padding: 7px 12px !important;
	height: auto !important;
	line-height: 1.2 !important;
}

.npn-admin-wrap .html-active .switch-html,
.npn-admin-wrap .tmce-active .switch-tmce {
	background: #ffc400 !important;
	border-color: #ffc400 !important;
	color: #07152b !important;
}

.npn-admin-wrap .wp-editor-container {
	border: 0 !important;
}

.npn-admin-wrap .wp-editor-area {
	min-height: 320px;
	border: 0 !important;
	padding: 14px !important;
	font-family: "Manrope", Arial, sans-serif;
	font-size: 14px;
	line-height: 1.65;
}
/* =========================
   SEO Check Card
========================= */

.npn-seo-check-card {
	overflow: hidden;
}

.npn-seo-score {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px;
	border-radius: 16px;
	margin-bottom: 16px;
	border: 1px solid #e5edf6;
	background: #f8fbff;
}

.npn-seo-score-number {
	width: 64px;
	height: 64px;
	border-radius: 999px;
	display: grid;
	place-items: center;
	font-size: 20px;
	font-weight: 900;
	background: #e5edf6;
	color: #07152b;
	flex: 0 0 auto;
}

.npn-seo-score strong {
	display: block;
	font-size: 17px;
	font-weight: 900;
	color: #07152b;
	margin-bottom: 4px;
}

.npn-seo-score span {
	display: block;
	font-size: 13px;
	color: #64748b;
}

.npn-seo-score.is-good {
	background: #f0fdf4;
	border-color: #bbf7d0;
}

.npn-seo-score.is-good .npn-seo-score-number {
	background: #22c55e;
	color: #fff;
}

.npn-seo-score.is-warning {
	background: #fffbeb;
	border-color: #fde68a;
}

.npn-seo-score.is-warning .npn-seo-score-number {
	background: #f59e0b;
	color: #fff;
}

.npn-seo-score.is-bad {
	background: #fef2f2;
	border-color: #fecaca;
}

.npn-seo-score.is-bad .npn-seo-score-number {
	background: #ef4444;
	color: #fff;
}

.npn-seo-check-list {
	display: grid;
	gap: 10px;
}

.npn-seo-check-item {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 13px 14px;
	border-radius: 14px;
	border: 1px solid #e5edf6;
	background: #fff;
}

.npn-seo-check-icon {
	width: 28px;
	height: 28px;
	border-radius: 999px;
	display: grid;
	place-items: center;
	font-size: 15px;
	font-weight: 900;
	flex: 0 0 auto;
	background: #e5edf6;
	color: #475569;
}

.npn-seo-check-item strong {
	display: block;
	color: #07152b;
	font-size: 14px;
	font-weight: 900;
	margin-bottom: 3px;
}

.npn-seo-check-item p {
	margin: 0;
	color: #64748b;
	font-size: 13px;
	line-height: 1.45;
}

.npn-seo-check-item.is-good {
	border-color: #bbf7d0;
	background: #f7fef9;
}

.npn-seo-check-item.is-good .npn-seo-check-icon {
	background: #22c55e;
	color: #fff;
}

.npn-seo-check-item.is-warning {
	border-color: #fde68a;
	background: #fffdf3;
}

.npn-seo-check-item.is-warning .npn-seo-check-icon {
	background: #f59e0b;
	color: #fff;
}

.npn-seo-check-item.is-bad {
	border-color: #fecaca;
	background: #fff7f7;
}

.npn-seo-check-item.is-bad .npn-seo-check-icon {
	background: #ef4444;
	color: #fff;
}
/* =========================================================
   ADMIN PRO EXTENSIONS - dashboard, filters, media, API
========================================================= */
.npn-dashboard-grid-pro {
	grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.npn-panel-head-stack {
	align-items: flex-start;
	gap: 14px;
}

.npn-filter-toolbar {
	display: grid;
	grid-template-columns: minmax(220px, 1fr) repeat(4, minmax(130px, auto)) auto auto;
	gap: 10px;
	align-items: center;
	padding: 16px 18px;
	border-bottom: 1px solid #edf2f7;
	background: #fbfdff;
}

.npn-filter-toolbar input,
.npn-filter-toolbar select {
	min-height: 42px !important;
	border-radius: 12px !important;
}

.npn-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 18px;
	justify-content: flex-end;
}

.npn-page-num {
	min-width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	border: 1px solid #d9e4f2;
	background: #fff;
	color: #07152b;
	font-weight: 900;
	text-decoration: none;
}

.npn-page-num.active,
.npn-page-num:hover {
	background: #ffc400;
	border-color: #ffc400;
	color: #07152b;
}

.npn-admin-quick-links .npn-edit-body {
	display: grid;
	gap: 10px;
}

.npn-media-admin-grid {
	padding: 18px;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.npn-media-card {
	display: grid !important;
	gap: 8px;
	padding: 10px;
	background: #fff;
	border: 1px solid #e5edf6;
	border-radius: 16px;
	text-decoration: none;
}

.npn-media-card img,
.npn-file-thumb {
	width: 100%;
	aspect-ratio: 1 / .72;
	border-radius: 12px;
	object-fit: cover;
	display: grid;
	place-items: center;
	background: #f8fafc;
	font-size: 42px;
	text-decoration: none;
}

.npn-media-card span {
	font-weight: 900;
	font-size: 13px;
	color: #07152b;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.npn-media-card small {
	color: #64748b;
	font-size: 12px;
}

.npn-copy-url {
	height: 34px !important;
	font-size: 12px !important;
}

.npn-hp-field {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
}

@media (max-width: 1180px) {
	.npn-dashboard-grid-pro {
		grid-template-columns: repeat(2, minmax(160px, 1fr));
	}
	.npn-filter-toolbar {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 640px) {
	.npn-dashboard-grid-pro,
	.npn-filter-toolbar {
		grid-template-columns: 1fr;
	}
}

/* =========================
   Orders / Wallet / Points
========================= */
.npn-commerce-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.npn-commerce-stat {
    padding: 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e5edf6;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.npn-commerce-stat span {
    display: block;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 8px;
}

.npn-commerce-stat strong {
    color: #07152b;
    font-size: 24px;
    font-weight: 900;
}

.npn-text-success {
    color: #16a34a !important;
}

.npn-text-danger {
    color: #ef4444 !important;
}

.npn-wallet-balance-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-size: 13px;
    font-weight: 900;
}

/* =========================================================
   ORDER / WALLET / FILTER BAR - PROFESSIONAL ADMIN UI
========================================================= */

/* khoảng cách panel */
.npn-panel {
    background: #fff;
    border: 1px solid #e7ebf3;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(17, 24, 39, 0.04);
}

.npn-panel + .npn-panel {
    margin-top: 26px;
}

/* đầu box */
.npn-panel-head {
    padding: 22px 26px 18px;
    border-bottom: 1px solid #edf1f7;
    background: #fff;
}

.npn-panel-head h3 {
    margin: 0 0 6px;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 800;
    color: #111827;
}

.npn-panel-head p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #64748b;
}

/* body box */
.npn-edit-body,
.npn-panel-body {
    padding: 22px 26px 26px;
}

/* =========================================================
   PAGE TOP ACTIONS
========================================================= */
.npn-page-actions,
.npn-page-form-head-actions,
.npn-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.npn-page-form-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.npn-page-form-head h2,
.npn-page-form-head h1 {
    margin: 0 0 6px;
    font-size: 42px;
    line-height: 1.15;
    font-weight: 800;
    color: #111827;
}

.npn-page-form-head p {
    margin: 0;
    color: #64748b;
    font-size: 16px;
    line-height: 1.6;
}

/* =========================================================
   FILTER FORM
========================================================= */
.npn-admin-filter-form {
    display: block;
    width: 100%;
}

.npn-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
    margin-bottom: 22px;
}

.npn-filter-grid .npn-field {
    margin: 0;
}

.npn-filter-grid .npn-field label {
    display: block;
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.npn-filter-grid .npn-field input[type="text"],
.npn-filter-grid .npn-field input[type="search"],
.npn-filter-grid .npn-field input[type="number"],
.npn-filter-grid .npn-field input[type="date"],
.npn-filter-grid .npn-field input[type="email"],
.npn-filter-grid .npn-field select,
.npn-filter-grid .npn-field textarea {
    width: 100%;
    min-height: 54px;
    padding: 0 18px;
    border: 1px solid #d7dfeb;
    border-radius: 16px;
    background: #fdfefe;
    color: #0f172a;
    font-size: 15px;
    font-weight: 500;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.npn-filter-grid .npn-field textarea {
    min-height: 120px;
    padding: 14px 18px;
    resize: vertical;
}

.npn-filter-grid .npn-field input:focus,
.npn-filter-grid .npn-field select:focus,
.npn-filter-grid .npn-field textarea:focus {
    border-color: #facc15;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.12);
}

/* action dưới bộ lọc */
.npn-filter-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 4px;
}

/* nếu trong file cũ có margin-right gây dính thì reset luôn */
.npn-filter-actions .npn-btn,
.npn-page-actions .npn-btn,
.npn-page-form-head-actions .npn-btn,
.npn-toolbar-actions .npn-btn {
    margin: 0 !important;
}

/* =========================================================
   BUTTON SYSTEM
========================================================= */
.npn-btn,
button.npn-btn,
a.npn-btn,
input.npn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid #d7dfeb;
    background: #ffffff;
    color: #0f172a;
    font-size: 15px;
    line-height: 1;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.22s ease;
}

.npn-btn:hover,
button.npn-btn:hover,
a.npn-btn:hover {
    transform: translateY(-1px);
    border-color: #cdd8e8;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.npn-btn-primary {
    background: #facc15;
    border-color: #facc15;
    color: #111827;
}

.npn-btn-primary:hover {
    background: #f5c400;
    border-color: #f5c400;
    color: #111827;
}

.npn-btn-secondary {
    background: #fff;
    border-color: #d7dfeb;
    color: #0f172a;
}

.npn-btn-danger {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #be123c;
}

.npn-btn-danger:hover {
    background: #ffe4e6;
    border-color: #fda4af;
}

/* =========================================================
   ORDER / WALLET TABLE
========================================================= */
.npn-table-wrap,
.npn-admin-table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 18px;
    border: 1px solid #eef2f7;
    background: #fff;
}

.npn-table,
.npn-admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
}

.npn-table thead th,
.npn-admin-table thead th {
    padding: 16px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #e9eef5;
    text-align: left;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #64748b;
}

.npn-table tbody td,
.npn-admin-table tbody td {
    padding: 16px 18px;
    border-bottom: 1px solid #edf2f7;
    vertical-align: middle;
    font-size: 15px;
    line-height: 1.6;
    color: #111827;
    background: #fff;
}

.npn-table tbody tr:hover td,
.npn-admin-table tbody tr:hover td {
    background: #fcfdff;
}

/* trạng thái */
.npn-status-badge,
.npn-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.npn-status-pending,
.npn-badge-pending {
    background: #fff7ed;
    color: #c2410c;
}

.npn-status-processing,
.npn-badge-processing {
    background: #eff6ff;
    color: #1d4ed8;
}

.npn-status-completed,
.npn-badge-completed {
    background: #ecfdf5;
    color: #047857;
}

.npn-status-cancelled,
.npn-badge-cancelled {
    background: #fef2f2;
    color: #b91c1c;
}

/* actions trong table */
.npn-table-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.npn-table-actions .npn-btn {
    min-height: 40px;
    padding: 0 14px;
    font-size: 14px;
    border-radius: 12px;
}

/* =========================================================
   EMPTY STATE
========================================================= */
.npn-empty,
.npn-empty-state {
    padding: 34px 24px;
    border: 1px dashed #d9e3f0;
    border-radius: 18px;
    background: #fbfdff;
    text-align: center;
    color: #64748b;
    font-size: 15px;
}

/* =========================================================
   WALLET / ORDER SPECIFIC SPACING
========================================================= */
.npn-orders-page .npn-panel,
.npn-wallet-page .npn-panel {
    margin-bottom: 0;
}

.npn-orders-page .npn-panel + .npn-panel,
.npn-wallet-page .npn-panel + .npn-panel {
    margin-top: 24px;
}

/* dropdown / select đẹp hơn */
.npn-admin-filter-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #64748b 50%),
        linear-gradient(135deg, #64748b 50%, transparent 50%);
    background-position:
        calc(100% - 22px) calc(50% - 3px),
        calc(100% - 16px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 46px;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1200px) {
    .npn-filter-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 991px) {
    .npn-page-form-head {
        flex-direction: column;
        align-items: stretch;
    }

    .npn-page-actions,
    .npn-page-form-head-actions,
    .npn-toolbar-actions {
        justify-content: flex-start;
    }

    .npn-filter-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .npn-panel-head,
    .npn-edit-body,
    .npn-panel-body {
        padding-left: 18px;
        padding-right: 18px;
    }

    .npn-page-form-head h2,
    .npn-page-form-head h1 {
        font-size: 32px;
    }

    .npn-filter-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .npn-filter-actions .npn-btn,
    .npn-page-actions .npn-btn,
    .npn-page-form-head-actions .npn-btn,
    .npn-toolbar-actions .npn-btn {
        width: 100%;
    }
}
.page-template-template-admin-wallet .npn-table {
	margin-top: 20px;
}

/* =========================================================
   COMPACT FILTER - ORDER / WALLET
   Bộ lọc gọn 1 hàng, bỏ tiêu đề/chú thích, tách rõ với danh sách
========================================================= */

.npn-compact-filter-panel {
	margin-bottom: 24px !important;
	overflow: visible !important;
}

.npn-compact-filter-panel .npn-panel-head {
	display: none !important;
}

.npn-compact-filter-panel .npn-edit-body,
.npn-compact-filter-panel .npn-panel-body {
	padding: 16px 18px !important;
}

.npn-compact-filter-form {
	margin: 0 !important;
}

.npn-compact-filter-row {
	display: grid;
	grid-template-columns: minmax(220px, 1.35fr) minmax(170px, .95fr) minmax(220px, 1.15fr) 120px auto;
	gap: 12px;
	align-items: center;
	width: 100%;
}

.npn-compact-filter-row .npn-field {
	margin: 0 !important;
}

.npn-compact-filter-row .npn-field label {
	display: none !important;
}

.npn-compact-filter-row input[type="text"],
.npn-compact-filter-row input[type="search"],
.npn-compact-filter-row input[type="date"],
.npn-compact-filter-row input[type="number"],
.npn-compact-filter-row select {
	width: 100% !important;
	height: 46px !important;
	min-height: 46px !important;
	margin: 0 !important;
	padding: 0 14px !important;
	border: 1px solid #d9e4f2 !important;
	border-radius: 13px !important;
	background-color: #fff !important;
	color: #0f172a !important;
	font-family: "Manrope", Arial, sans-serif !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 46px !important;
	box-shadow: none !important;
	outline: none !important;
}

.npn-compact-filter-row select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding-right: 40px !important;
	background-image:
		linear-gradient(45deg, transparent 50%, #64748b 50%),
		linear-gradient(135deg, #64748b 50%, transparent 50%);
	background-position:
		calc(100% - 21px) calc(50% - 3px),
		calc(100% - 15px) calc(50% - 3px);
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
}

.npn-compact-filter-row input:focus,
.npn-compact-filter-row select:focus {
	border-color: #ffc400 !important;
	box-shadow: 0 0 0 3px rgba(255, 196, 0, 0.14) !important;
}

.npn-compact-filter-actions {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	white-space: nowrap;
}

.npn-compact-filter-actions .npn-btn {
	height: 46px !important;
	min-height: 46px !important;
	margin: 0 !important;
	padding: 0 18px !important;
	border-radius: 13px !important;
	font-size: 14px !important;
	font-weight: 900 !important;
	line-height: 1 !important;
}

.npn-compact-filter-actions .npn-btn:not(.npn-btn-primary) {
	background: #fff !important;
	border: 1px solid #d9e4f2 !important;
	color: #0f172a !important;
	box-shadow: none !important;
}

.npn-compact-filter-actions .npn-btn:not(.npn-btn-primary):hover {
	border-color: #cbd8e6 !important;
	background: #f8fafc !important;
	transform: translateY(-1px);
}

.npn-compact-filter-actions .npn-btn-primary {
	background: linear-gradient(180deg, #ffd51a, #ffc400) !important;
	border-color: #ffc400 !important;
	color: #07152b !important;
	box-shadow: 0 10px 20px rgba(255, 196, 0, 0.18) !important;
}

/* Đảm bảo bộ lọc không dính danh sách */
.npn-compact-filter-panel + .npn-panel,
.npn-wallet-compact-filter + .npn-table,
.npn-wallet-compact-filter + .npn-table-wrap {
	margin-top: 20px !important;
}

/* Bộ lọc ví chỉ có 2 dropdown + nút */
.npn-wallet-filter-row {
	grid-template-columns: minmax(280px, 1.4fr) minmax(220px, 1fr) 120px auto !important;
	margin-bottom: 20px;
}

/* Table tách khỏi form lọc trong ví */
.npn-wallet-compact-filter {
	margin-bottom: 20px !important;
}

/* Giảm độ cao block lọc trên trang đơn hàng */
.npn-orders-filter-panel {
	box-shadow: 0 8px 26px rgba(15, 23, 42, 0.035) !important;
}

/* Responsive */
@media (max-width: 1280px) {
	.npn-compact-filter-row {
		grid-template-columns: 1fr 1fr;
	}

	.npn-compact-filter-actions {
		justify-content: flex-start;
	}

	.npn-wallet-filter-row {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 680px) {
	.npn-compact-filter-row,
	.npn-wallet-filter-row {
		grid-template-columns: 1fr;
	}

	.npn-compact-filter-actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
		width: 100%;
	}

	.npn-compact-filter-actions .npn-btn {
		width: 100%;
	}
}

/* Wallet pagination */
.npn-admin-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 18px;
}

.npn-page-number {
	min-width: 38px;
	height: 38px;
	border-radius: 12px;
	border: 1px solid #d9e4f2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #07152b;
	background: #fff;
	font-weight: 900;
	font-size: 13px;
	text-decoration: none;
}

.npn-page-number:hover,
.npn-page-number.is-active {
	background: #ffc400;
	border-color: #ffc400;
	color: #07152b;
}

.npn-compact-inline-form {
	margin: 0;
}

.npn-compact-inline-form select {
	height: 42px;
	border-radius: 12px;
	border: 1px solid #d9e4f2;
	padding: 0 12px;
	background: #fff;
	font-weight: 800;
}

.npn-wallet-filter-row {
	grid-template-columns: minmax(220px, 1.4fr) minmax(170px, 1fr) 120px auto;
}

.npn-text-success {
	color: #059669;
}

.npn-text-danger {
	color: #ef4444;
}

@media (max-width: 1200px) {
	.npn-wallet-filter-row {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 640px) {
	.npn-wallet-filter-row {
		grid-template-columns: 1fr;
	}
}
#npn-wallet-history {
	scroll-margin-top: 96px;
}
html {
	scroll-behavior: smooth;
}

/* =========================================================
   WALLET AJAX PRO UI - OVERRIDE
========================================================= */
.npn-wallet-ajax-page .npn-page-form-head {
	display: none !important;
}

.npn-wallet-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 18px;
}

.npn-wallet-toolbar-left {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.npn-wallet-rate-mini {
	padding: 12px 16px;
	border-radius: 14px;
	background: #fff;
	border: 1px solid #e5edf6;
	color: #64748b;
	font-weight: 800;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.npn-wallet-rate-mini span,
.npn-wallet-rate-mini strong {
	color: #07152b;
	font-weight: 900;
}

.npn-wallet-panel {
	margin-bottom: 22px;
}

.npn-wallet-panel-head {
	padding: 18px 22px !important;
}

.npn-wallet-panel-head h3 {
	font-size: 22px !important;
	margin: 0 !important;
}

.npn-wallet-panel-head select,
.npn-wallet-history-filter select {
	height: 46px;
	border: 1px solid #d9e4f2;
	border-radius: 14px;
	background: #fff;
	padding: 0 14px;
	font-weight: 800;
	color: #07152b;
}
select.npn-wallet-balance-per-page {
	width: 200px;
}
.npn-wallet-history-filter {
	display: grid;
	grid-template-columns: minmax(260px, 1.3fr) minmax(180px, .8fr) 120px;
	gap: 12px;
	margin-bottom: 18px;
}

.npn-wallet-table th,
.npn-wallet-table td,
.npn-wallet-history-table th,
.npn-wallet-history-table td {
	vertical-align: middle;
}

.npn-wallet-balance-big {
	font-size: 16px;
	color: #07152b;
	font-family: "ManropeExBold", "Manrope", Arial, sans-serif;
}

.npn-wallet-before {
	color: #64748b;
	font-size: 13px;
}

.npn-wallet-arrow {
	display: inline-block;
	margin: 0 6px;
	color: #94a3b8;
}

.npn-wallet-after {
	display: inline-block;
	font-size: 14px;
	color: #07152b;
	font-family: "ManropeExBold", "Manrope", Arial, sans-serif;
}

.npn-text-success {
	color: #059669 !important;
}

.npn-text-danger {
	color: #ef4444 !important;
}

.npn-wallet-ajax-box {
	position: relative;
	min-height: 80px;
}

.npn-wallet-ajax-box.is-loading {
	opacity: .55;
	pointer-events: none;
}

.npn-loading-box {
	padding: 26px;
	text-align: center;
	border: 1px dashed #d9e4f2;
	border-radius: 16px;
	color: #64748b;
	font-weight: 800;
}

.npn-wallet-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 22px;
}

.npn-wallet-modal.is-open {
	display: flex;
}

.npn-wallet-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, .58);
	backdrop-filter: blur(5px);
}

.npn-wallet-modal-card {
	position: relative;
	width: min(520px, 100%);
	max-height: calc(100vh - 44px);
	overflow-y: auto;
	border-radius: 22px;
	background: #fff;
	border: 1px solid #e5edf6;
	box-shadow: 0 30px 90px rgba(15, 23, 42, .25);
	padding: 26px;
}

.npn-wallet-modal-card h3 {
	margin: 0 0 6px;
	font-size: 26px;
	color: #07152b;
}

.npn-wallet-modal-card p {
	margin: 0 0 20px;
	color: #64748b;
}

.npn-wallet-modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 999px;
	background: #f1f5f9;
	color: #07152b;
	font-size: 22px;
	cursor: pointer;
}

.npn-wallet-modal-close:hover {
	background: #ffc400;
}

.npn-admin-pagination {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 18px;
}

.npn-page-number {
	min-width: 38px;
	height: 38px;
	border-radius: 12px;
	border: 1px solid #d9e4f2;
	background: #fff;
	color: #07152b;
	font-weight: 900;
	cursor: pointer;
}

.npn-page-number.is-active,
.npn-page-number:hover {
	background: #ffc400;
	border-color: #ffc400;
}

.npn-wallet-toast {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 10000;
	max-width: min(360px, calc(100vw - 48px));
	padding: 14px 16px;
	border-radius: 16px;
	background: #07152b;
	color: #fff;
	font-weight: 800;
	box-shadow: 0 18px 50px rgba(15, 23, 42, .2);
	transform: translateY(20px);
	opacity: 0;
	pointer-events: none;
	transition: all .2s ease;
}

.npn-wallet-toast.is-show {
	transform: translateY(0);
	opacity: 1;
}

.npn-wallet-toast.is-success {
	background: #059669;
}

.npn-wallet-toast.is-error {
	background: #ef4444;
}

#npn-wallet-history {
	scroll-margin-top: 96px;
}

@media (max-width: 900px) {
	.npn-wallet-toolbar {
		align-items: stretch;
		flex-direction: column;
	}

	.npn-wallet-history-filter {
		grid-template-columns: 1fr;
	}
}

/* =========================
   Orders AJAX Pro UI
========================= */

.npn-orders-ajax-page .npn-order-filter-panel {
	margin-bottom: 22px !important;
}

.npn-order-filter-row {
	display: grid;
	grid-template-columns: minmax(240px, 1.4fr) minmax(180px, 1fr) minmax(240px, 1.2fr) 120px;
	gap: 12px;
	align-items: center;
}

.npn-order-filter-row input,
.npn-order-filter-row select {
	width: 100%;
	height: 48px;
	min-height: 48px;
	border: 1px solid #d9e4f2;
	border-radius: 14px;
	background: #fff;
	padding: 0 14px;
	color: #07152b;
	font-weight: 800;
	outline: none;
}

.npn-order-filter-row input:focus,
.npn-order-filter-row select:focus {
	border-color: #ffc400;
	box-shadow: 0 0 0 3px rgba(255, 196, 0, .15);
}

.npn-orders-ajax-box.is-loading {
	opacity: .55;
	pointer-events: none;
}

.npn-order-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 22px;
}

.npn-order-modal.is-open {
	display: flex;
}

.npn-order-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, .58);
	backdrop-filter: blur(5px);
}

.npn-order-modal-card {
	position: relative;
	width: min(860px, 100%);
	max-height: calc(100vh - 44px);
	overflow-y: auto;
	border-radius: 24px;
	background: #fff;
	border: 1px solid #e5edf6;
	box-shadow: 0 30px 90px rgba(15, 23, 42, .25);
	padding: 26px;
}

.npn-order-modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 999px;
	background: #f1f5f9;
	color: #07152b;
	font-size: 24px;
	cursor: pointer;
}

.npn-order-modal-head {
	margin-bottom: 20px;
	padding-right: 48px;
}

.npn-order-modal-head h3 {
	margin: 0 0 6px;
	font-size: 28px;
	color: #07152b;
	font-weight: 900;
}

.npn-order-modal-head p {
	margin: 0;
	color: #64748b;
}

.npn-order-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.npn-order-form-grid .npn-field {
	margin: 0;
}

.npn-order-form-grid .npn-field-full {
	grid-column: 1 / -1;
}

.npn-table-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.npn-table-actions .npn-btn {
	min-height: 42px;
	padding: 0 16px;
	border-radius: 13px;
}

@media (max-width: 1200px) {
	.npn-order-filter-row {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 760px) {
	.npn-order-filter-row,
	.npn-order-form-grid {
		grid-template-columns: 1fr;
	}

	.npn-order-modal-card {
		padding: 22px 18px;
	}
}
/* =========================================================
   CONTENT AJAX PRO: SERVICE + PROJECT SHOWCASE
========================================================= */
.npn-content-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.npn-content-toolbar h2 {
    margin: 0 0 6px;
    font-size: 32px;
    line-height: 1.15;
    color: #07152b;
    font-family: "ManropeExBold", "Manrope", Arial, sans-serif;
}

.npn-content-toolbar h2 span {
    color: #64748b;
    font-size: .72em;
}

.npn-content-toolbar p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.55;
}

.npn-content-filter-panel {
    margin-bottom: 22px;
}

.npn-content-filter-panel .npn-edit-body {
    padding: 16px 18px !important;
}

.npn-content-filter-row {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) minmax(180px, .8fr) 130px;
    gap: 12px;
    align-items: center;
}

.npn-project-showcase-filter-row {
    grid-template-columns: minmax(260px, 1.4fr) minmax(180px, .8fr) 130px;
}

.npn-content-filter-row input,
.npn-content-filter-row select {
    width: 100%;
    height: 48px;
    min-height: 48px;
    border: 1px solid #d9e4f2;
    border-radius: 14px;
    background: #fff;
    padding: 0 14px;
    color: #07152b;
    font-weight: 800;
    outline: none;
}

.npn-content-filter-row input:focus,
.npn-content-filter-row select:focus {
    border-color: #ffc400;
    box-shadow: 0 0 0 3px rgba(255, 196, 0, .15);
}

.npn-content-ajax-box.is-loading {
    opacity: .55;
    pointer-events: none;
}

.npn-service-points {
    color: #07152b;
    font-size: 15px;
}

.npn-content-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.npn-content-modal.is-open {
    display: flex;
}

.npn-content-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .58);
    backdrop-filter: blur(5px);
}

.npn-content-modal-card {
    position: relative;
    width: min(980px, 100%);
    max-height: calc(100vh - 44px);
    overflow-y: auto;
    border-radius: 24px;
    background: #fff;
    border: 1px solid #e5edf6;
    box-shadow: 0 30px 90px rgba(15, 23, 42, .25);
    padding: 26px;
}

.npn-content-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #07152b;
    font-size: 24px;
    cursor: pointer;
}

.npn-content-modal-head {
    padding-right: 48px;
    margin-bottom: 20px;
}

.npn-content-modal-head h3 {
    margin: 0 0 6px;
    font-size: 28px;
    color: #07152b;
    font-family: "ManropeExBold", "Manrope", Arial, sans-serif;
}

.npn-content-modal-head p {
    margin: 0;
    color: #64748b;
}

.npn-content-form-grid,
.npn-content-image-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.npn-content-image-grid {
    margin-top: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.npn-content-form-grid .npn-field,
.npn-content-image-grid .npn-field {
    margin: 0;
}

.npn-content-form-grid .npn-field-full,
.npn-content-image-grid .npn-field-full {
    grid-column: 1 / -1;
}

.npn-content-image-grid .npn-media-field {
    display: block;
}

.npn-content-image-grid .npn-media-preview {
    width: 100%;
    min-height: 150px;
    margin-bottom: 10px;
}

.npn-content-image-grid .npn-media-preview img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    max-height: none;
}

.npn-check-field label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border: 1px solid #d9e4f2;
    border-radius: 14px;
    background: #f8fafc;
}

.npn-check-field input {
    width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
}

@media (max-width: 1100px) {
    .npn-content-filter-row,
    .npn-project-showcase-filter-row,
    .npn-content-form-grid,
    .npn-content-image-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .npn-content-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .npn-content-filter-row,
    .npn-project-showcase-filter-row,
    .npn-content-form-grid,
    .npn-content-image-grid {
        grid-template-columns: 1fr;
    }

    .npn-content-modal-card {
        padding: 22px 18px;
    }
}

/* =========================================================
   Project showcase + result file management polish
========================================================= */
.npn-muted {
	color: #94a3b8;
	font-size: 13px;
	font-weight: 800;
}

.npn-project-showcase-table .npn-row-id,
.npn-capabilities-table .npn-row-id {
	margin-top: 6px;
}

.npn-card-detail {
	margin-top: 10px;
	color: rgba(232, 246, 255, 0.68);
	font-size: 13px;
	line-height: 1.55;
	max-height: 72px;
	overflow: hidden;
}

.npn-card-detail p {
	margin: 0 0 8px;
}

.npn-admin-gallery-manage-item {
	position: relative;
	padding-bottom: 44px;
}

.npn-admin-gallery-manage-item > a {
	display: block;
	color: inherit;
	text-decoration: none;
}

.npn-admin-gallery-manage-item label {
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 9px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	height: 28px;
	border-radius: 999px;
	background: #fff1f2;
	border: 1px solid #fecdd3;
	color: #e11d48;
	font-size: 12px;
	font-weight: 900;
	cursor: pointer;
}

.npn-admin-gallery-manage-item label input {
	margin: 0;
}


.npn-checkline input[type="checkbox"],
.npn-check-field input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: #ffd000;
}

/* =========================================================
   PROJECT DETAIL REWORK - SHOWCASE + TABS + RESULT CLEANUP
========================================================= */
.npn-project-detail-grid {
	grid-template-columns: minmax(0, 1fr) 320px;
	align-items: start;
}

.npn-showcase-edit-card {
	border: 1px solid #dbeafe !important;
	box-shadow: 0 18px 48px rgba(37, 99, 235, 0.06) !important;
}

.npn-showcase-edit-card .npn-panel-head {
	background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.npn-toggle-checkline {
	padding: 14px 16px;
	border: 1px solid #d9e4f2;
	border-radius: 16px;
	background: #f8fafc;
	margin: 0 0 18px !important;
}

.npn-toggle-checkline input {
	width: 18px;
	height: 18px;
	accent-color: #ffc400;
}

.npn-project-showcase-fields {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 160px;
	gap: 16px;
}

.npn-project-showcase-fields .npn-field {
	margin-bottom: 0;
}

.npn-project-showcase-fields .npn-field-full {
	grid-column: 1 / -1;
}

.npn-admin-tabs {
	display: block;
}

.npn-admin-tab-nav {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	padding: 8px;
	border: 1px solid #e5edf6;
	border-radius: 16px;
	background: #f8fafc;
	margin-bottom: 18px;
}

.npn-admin-tab-btn {
	min-height: 42px;
	padding: 0 18px;
	border-radius: 12px;
	border: 1px solid transparent;
	background: transparent;
	color: #64748b;
	font-family: "Manrope", Arial, sans-serif;
	font-weight: 900;
	cursor: pointer;
	transition: all .2s ease;
}

.npn-admin-tab-btn:hover {
	background: #fff;
	color: #07152b;
	border-color: #e5edf6;
}

.npn-admin-tab-btn.is-active {
	background: #ffc400;
	border-color: #ffc400;
	color: #07152b;
	box-shadow: 0 10px 22px rgba(255, 196, 0, .22);
}

.npn-admin-tab-panel {
	display: none;
}

.npn-admin-tab-panel.is-active {
	display: block;
}

.npn-tab-title-line {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
	margin-bottom: 16px;
	padding: 12px 14px;
	border: 1px solid #edf2f7;
	border-radius: 14px;
	background: #fbfdff;
}

.npn-tab-title-line strong {
	font-size: 15px;
	color: #07152b;
}

.npn-tab-title-line span {
	font-size: 13px;
	font-weight: 800;
	color: #64748b;
}

.npn-project-media-tabs-card .npn-admin-gallery,
.npn-project-notes-card .npn-admin-gallery {
	margin-bottom: 16px;
}

.npn-admin-gallery-manage-item label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 8px 10px 10px;
	padding: 8px 10px;
	border-radius: 999px;
	background: #fff1f2;
	border: 1px solid #fecdd3;
	color: #e11d48;
	font-size: 12px;
	font-weight: 900;
}


.npn-project-detail-form .wp-editor-wrap {
	margin-top: 0;
}

@media (max-width: 1200px) {
	.npn-project-detail-grid,
	.npn-project-showcase-fields {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.npn-admin-tab-nav {
		display: grid;
		grid-template-columns: 1fr;
	}
	.npn-tab-title-line {
		align-items: flex-start;
		flex-direction: column;
	}
}


/* =========================================================
   HOME 3-BLOCK ADMIN + MENU CHILDREN
========================================================= */
.npn-menu-row-pro select {
    width: 100%;
    min-height: 42px;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    padding: 9px 12px;
    background: #fff;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
}
.npn-home-layout-admin .npn-home-edit-section {
    border: 1px solid #e7edf6;
    border-radius: 18px;
    background: #fbfdff;
    padding: 20px;
    margin: 0 0 18px;
}
.npn-home-layout-admin .npn-home-edit-section h4 {
    margin: 0 0 16px;
    font-size: 18px;
    color: #07152b;
}
.npn-home-layout-admin .npn-help-text {
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff7d6;
    border: 1px solid #ffe58a;
    color: #6b4f00;
    font-weight: 700;
}
.npn-home-layout-admin textarea[name="npn_home_settings[hero_title]"] {
    min-height: 120px;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.15;
}
@media (max-width: 920px) {
    .npn-menu-row-pro {
        grid-template-columns: 1fr !important;
    }
}


/* =========================================================
   Capability gallery admin
========================================================= */

.npn-gallery-preview {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 14px;
	min-height: 132px;
	padding: 16px;
	border: 1px dashed #cbd8ea;
	border-radius: 18px;
	background: #f8fbff;
}

.npn-gallery-empty {
	grid-column: 1 / -1;
	min-height: 100px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #64748b;
	font-weight: 800;
	text-align: center;
}

.npn-gallery-item {
	position: relative;
	overflow: hidden;
	border-radius: 16px;
	border: 1px solid #dbe5f2;
	background: #fff;
	box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.npn-gallery-item img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.npn-remove-gallery-item {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 30px;
	height: 30px;
	border: 0;
	border-radius: 999px;
	background: rgba(239, 68, 68, 0.92);
	color: #fff;
	font-size: 18px;
	font-weight: 900;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 8px 18px rgba(239, 68, 68, 0.28);
}

.npn-gallery-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 12px;
}

.npn-field-note {
	margin: -2px 0 12px;
	color: #64748b;
	font-size: 13px;
	line-height: 1.5;
}
.npn-capability-edit-page-form {
	display: block;
}

.npn-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.npn-form-grid .npn-field-full {
	grid-column: 1 / -1;
}

.npn-field label span {
	color: #ef4444;
}

.npn-admin-edit-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 22px;
	align-items: start;
}

.npn-admin-edit-main,
.npn-admin-edit-side {
	min-width: 0;
}

.npn-admin-edit-side {
	position: sticky;
	top: 92px;
	display: grid;
	gap: 18px;
}

.npn-save-page-btn {
	width: 100%;
	min-height: 54px;
}

.npn-media-field .npn-media-preview {
	min-height: 170px;
	border: 1px dashed #cbd8ea;
	border-radius: 18px;
	background: #f8fbff;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	margin-bottom: 12px;
}

.npn-media-field .npn-media-preview img {
	width: 100%;
	height: 100%;
	max-height: 240px;
	object-fit: cover;
	display: block;
}

.npn-media-field .npn-media-url {
	width: 100%;
	margin-bottom: 12px;
}

.npn-media-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

@media (max-width: 1100px) {
	.npn-admin-edit-grid {
		grid-template-columns: 1fr;
	}

	.npn-admin-edit-side {
		position: static;
	}
}

@media (max-width: 700px) {
	.npn-form-grid {
		grid-template-columns: 1fr;
	}
}
/* =========================================================
   FRONT ADMIN LOGIN
========================================================= */

.npn-admin-login-body {
	margin: 0;
	background: #0d1117;
	font-family: "Manrope", Arial, sans-serif;
	color: #fff;
}

.npn-admin-login-page {
	position: relative;
	min-height: 100vh;
	padding: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background:
		radial-gradient(circle at top left, rgba(255, 208, 0, .18), transparent 34%),
		radial-gradient(circle at bottom right, rgba(14, 165, 233, .16), transparent 36%),
		linear-gradient(135deg, #0d1117 0%, #07111f 48%, #111827 100%);
}

.npn-login-bg-glow {
	position: absolute;
	border-radius: 999px;
	filter: blur(14px);
	opacity: .8;
	pointer-events: none;
}

.npn-login-bg-glow-1 {
	width: 360px;
	height: 360px;
	top: -120px;
	left: -100px;
	background: rgba(255, 208, 0, .22);
}

.npn-login-bg-glow-2 {
	width: 420px;
	height: 420px;
	right: -140px;
	bottom: -140px;
	background: rgba(56, 189, 248, .18);
}

.npn-login-shell {
	position: relative;
	z-index: 2;
	width: min(1120px, 100%);
	display: grid;
	grid-template-columns: minmax(0, 1fr) 460px;
	border-radius: 32px;
	overflow: hidden;
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .12);
	box-shadow: 0 30px 120px rgba(0, 0, 0, .38);
	backdrop-filter: blur(18px);
}

.npn-login-brand-panel {
	padding: 54px;
	background:
		linear-gradient(135deg, rgba(255, 208, 0, .12), transparent 40%),
		rgba(255, 255, 255, .035);
}

.npn-login-brand {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 76px;
}

.npn-login-logo {
	width: 56px;
	height: 56px;
	border-radius: 18px;
	background: #ffd000;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	color: #111827;
	font-weight: 900;
	box-shadow: 0 18px 40px rgba(255, 208, 0, .22);
}

.npn-login-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 7px;
}

.npn-login-brand strong {
	display: block;
	font-size: 20px;
	line-height: 1.15;
}

.npn-login-brand span {
	display: block;
	margin-top: 3px;
	color: rgba(255, 255, 255, .62);
	font-size: 13px;
}

.npn-login-brand-panel h1 {
	max-width: 560px;
	margin: 0;
	font-size: clamp(38px, 5vw, 64px);
	line-height: .98;
	letter-spacing: -.05em;
	color: #fff;
}

.npn-login-brand-panel p {
	max-width: 520px;
	margin: 22px 0 0;
	color: rgba(226, 232, 240, .78);
	font-size: 16px;
	line-height: 1.72;
}

.npn-login-feature-list {
	display: grid;
	gap: 12px;
	margin-top: 34px;
}

.npn-login-feature-list div {
	display: flex;
	align-items: center;
	gap: 10px;
	color: rgba(255, 255, 255, .82);
	font-weight: 700;
}

.npn-login-feature-list span {
	width: 28px;
	height: 28px;
	border-radius: 999px;
	background: rgba(255, 208, 0, .16);
	color: #ffd000;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 900;
}

.npn-login-card {
	background: #fff;
	color: #07152b;
	padding: 46px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.npn-login-card-head {
	margin-bottom: 24px;
}

.npn-login-card-head h2 {
	margin: 0 0 8px;
	font-size: 34px;
	line-height: 1.1;
	letter-spacing: -.03em;
	color: #07152b;
}

.npn-login-card-head p {
	margin: 0;
	color: #64748b;
	font-size: 15px;
	line-height: 1.55;
}

.npn-login-alert {
	padding: 14px 15px;
	border-radius: 16px;
	margin-bottom: 18px;
	font-weight: 800;
	font-size: 14px;
	line-height: 1.45;
}

.npn-login-alert-danger {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
}

.npn-login-alert-success {
	background: #ecfdf5;
	border: 1px solid #bbf7d0;
	color: #047857;
}

.npn-admin-login-form {
	display: grid;
	gap: 16px;
}

.npn-login-field label {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 900;
	color: #0f172a;
}

.npn-login-input-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 56px;
	padding: 0 14px;
	border: 1px solid #dbe3ef;
	border-radius: 17px;
	background: #f8fafc;
	transition: .22s ease;
}

.npn-login-input-wrap:focus-within {
	background: #fff;
	border-color: #ffd000;
	box-shadow: 0 0 0 4px rgba(255, 208, 0, .16);
}

.npn-login-input-wrap > span {
	width: 24px;
	text-align: center;
	opacity: .8;
}

.npn-login-input-wrap input {
	flex: 1;
	height: 54px;
	border: 0;
	outline: 0;
	background: transparent;
	font-family: "Manrope", Arial, sans-serif;
	font-size: 15px;
	font-weight: 700;
	color: #07152b;
	min-width: 0;
}

.npn-toggle-login-password {
	border: 0;
	background: transparent;
	color: #64748b;
	cursor: pointer;
	padding: 8px;
}

.npn-login-options {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 2px 0 4px;
}

.npn-login-options label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #475569;
	font-size: 14px;
	font-weight: 800;
}

.npn-login-options input {
	accent-color: #ffd000;
}

.npn-login-options a {
	color: #0f172a;
	font-weight: 900;
	font-size: 14px;
}

.npn-login-submit {
	width: 100%;
	height: 56px;
	border: 0;
	border-radius: 17px;
	background: #ffd000;
	color: #111827;
	font-family: "Manrope", Arial, sans-serif;
	font-size: 16px;
	font-weight: 900;
	cursor: pointer;
	box-shadow: 0 18px 34px rgba(255, 208, 0, .28);
	transition: .22s ease;
}

.npn-login-submit:hover {
	transform: translateY(-1px);
	background: #ffc400;
	box-shadow: 0 20px 44px rgba(255, 208, 0, .36);
}

.npn-login-foot {
	margin-top: 22px;
	text-align: center;
}

.npn-login-foot a {
	color: #64748b;
	font-weight: 800;
	font-size: 14px;
}

@media (max-width: 980px) {
	.npn-login-shell {
		grid-template-columns: 1fr;
	}

	.npn-login-brand-panel {
		padding: 34px;
	}

	.npn-login-brand {
		margin-bottom: 34px;
	}

	.npn-login-card {
		padding: 34px;
	}
}

@media (max-width: 560px) {
	.npn-admin-login-page {
		padding: 16px;
		align-items: flex-start;
	}

	.npn-login-shell {
		border-radius: 24px;
	}

	.npn-login-brand-panel,
	.npn-login-card {
		padding: 24px;
	}

	.npn-login-brand-panel h1 {
		font-size: 34px;
	}

	.npn-login-card-head h2 {
		font-size: 28px;
	}

	.npn-login-options {
		align-items: flex-start;
		flex-direction: column;
	}
}

/* =========================================================
   MENU BUILDER PRO - CLEAN UI
   - Giữ chức năng kéo thả
   - Menu con thụt vào rõ ràng
   - Form gọn, không bị kéo nút Xóa full xấu
========================================================= */

.npn-menu-builder-card {
	overflow: visible !important;
}

.npn-menu-builder-card .npn-edit-body {
	overflow: visible !important;
	padding: 22px !important;
}

.npn-menu-builder-note {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 18px;
	padding: 14px 16px;
	border: 1px solid #dbe7f6;
	border-radius: 16px;
	background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
	color: #0f172a;
	box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
}

.npn-menu-builder-note span {
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: #ffd000;
	color: #111827;
	font-size: 16px;
	font-weight: 900;
	flex: 0 0 auto;
	box-shadow: 0 8px 18px rgba(255, 208, 0, .22);
}

.npn-menu-builder-note strong {
	display: block;
	font-size: 14px;
	font-weight: 900;
	color: #0f172a;
}

.npn-menu-builder-note em {
	margin-left: auto;
	color: #64748b;
	font-style: normal;
	font-size: 13px;
	font-weight: 700;
}

.npn-menu-rows {
	display: grid;
	gap: 14px;
}

/* Row chính */
.npn-menu-row-pro,
.npn-menu-row {
	position: relative;
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) 116px;
	gap: 14px;
	align-items: end;
	width: 100%;
	padding: 16px;
	border: 1px solid #dbe7f6;
	border-radius: 18px;
	background: #ffffff;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.045);
	transition:
		transform .18s ease,
		box-shadow .18s ease,
		border-color .18s ease,
		margin-left .18s ease,
		background .18s ease;
}

.npn-menu-row-pro:hover,
.npn-menu-row:hover {
	border-color: #b9cbe3;
	box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

/* Khi đang kéo */
.npn-menu-row-pro.is-dragging,
.npn-menu-row-pro.sortable-chosen,
.npn-menu-row.is-dragging,
.npn-menu-row.sortable-chosen {
	opacity: .78;
	transform: scale(.992);
	border-color: #ffd000;
	background: #fffdf2;
	box-shadow: 0 18px 44px rgba(255, 208, 0, .16);
}

.sortable-ghost,
.npn-menu-row-placeholder {
	min-height: 96px;
	border: 2px dashed #ffd000 !important;
	border-radius: 18px;
	background: rgba(255, 208, 0, .08) !important;
	opacity: .72;
}

/* Nút kéo */
.npn-menu-drag-handle,
.npn-menu-drag {
	width: 44px;
	height: 46px;
	border: 1px solid #dbe7f6;
	border-radius: 14px;
	background: #f8fbff;
	display: inline-grid;
	place-items: center;
	align-self: end;
	cursor: grab;
	padding: 0;
	color: #64748b;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .65);
}

.npn-menu-drag-handle:active,
.npn-menu-drag:active {
	cursor: grabbing;
}

.npn-menu-drag-handle span,
.npn-menu-drag span {
	width: 18px;
	height: 2px;
	display: block;
	border-radius: 999px;
	background: #64748b;
	box-shadow: 0 6px 0 #64748b, 0 -6px 0 #64748b;
}

.npn-menu-drag-handle:has(span) {
	font-size: 0;
}

/* Nếu HTML không có span vẫn hiện icon kéo */
.npn-menu-drag-handle:empty::before,
.npn-menu-drag:empty::before {
	content: "";
	width: 18px;
	height: 2px;
	display: block;
	border-radius: 999px;
	background: #64748b;
	box-shadow: 0 6px 0 #64748b, 0 -6px 0 #64748b;
}

/* Cụm field */
.npn-menu-row-fields,
.npn-menu-row-inner {
	display: grid;
	grid-template-columns: minmax(180px, .9fr) minmax(260px, 1.3fr) minmax(190px, .85fr);
	gap: 12px;
	align-items: end;
	min-width: 0;
}

.npn-menu-row-fields .npn-field,
.npn-menu-row-inner .npn-field,
.npn-menu-row-pro .npn-field,
.npn-menu-row .npn-field {
	margin: 0 !important;
	min-width: 0;
}

.npn-menu-row-fields label,
.npn-menu-row-inner label,
.npn-menu-row-pro label,
.npn-menu-row label {
	display: block;
	margin: 0 0 7px !important;
	color: #0f172a;
	font-size: 13px;
	font-weight: 900;
	line-height: 1.25;
}

.npn-menu-row-fields input,
.npn-menu-row-fields select,
.npn-menu-row-inner input,
.npn-menu-row-inner select,
.npn-menu-row-pro input,
.npn-menu-row-pro select,
.npn-menu-row input,
.npn-menu-row select {
	width: 100% !important;
	height: 46px !important;
	min-height: 46px !important;
	margin: 0 !important;
	padding: 0 14px !important;
	border: 1px solid #d7e3f3 !important;
	border-radius: 13px !important;
	background-color: #ffffff !important;
	color: #0f172a !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 46px !important;
	box-shadow: none !important;
	outline: none !important;
}

.npn-menu-row-fields input:focus,
.npn-menu-row-fields select:focus,
.npn-menu-row-inner input:focus,
.npn-menu-row-inner select:focus,
.npn-menu-row-pro input:focus,
.npn-menu-row-pro select:focus,
.npn-menu-row input:focus,
.npn-menu-row select:focus {
	border-color: #ffc400 !important;
	box-shadow: 0 0 0 4px rgba(255, 196, 0, .14) !important;
}

/* Nút xóa gọn lại */
.npn-menu-row-pro .npn-btn-danger,
.npn-menu-row .npn-btn-danger,
.npn-menu-row-pro .npn-remove-menu-row,
.npn-menu-row .npn-remove-menu-row {
	width: 116px !important;
	height: 46px !important;
	min-height: 46px !important;
	align-self: end;
	padding: 0 16px !important;
	border-radius: 13px !important;
	border: 1px solid #fecaca !important;
	background: #fff7f7 !important;
	color: #ef4444 !important;
	font-size: 14px !important;
	font-weight: 900 !important;
	box-shadow: none !important;
	cursor: pointer;
}

.npn-menu-row-pro .npn-btn-danger:hover,
.npn-menu-row .npn-btn-danger:hover,
.npn-menu-row-pro .npn-remove-menu-row:hover,
.npn-menu-row .npn-remove-menu-row:hover {
	background: #fee2e2 !important;
	border-color: #fca5a5 !important;
	color: #dc2626 !important;
	transform: translateY(-1px);
}

/* Menu con: thụt vào + vạch nhận biết */
.npn-menu-row-pro.is-child-menu,
.npn-menu-row.is-child-menu {
	width: calc(100% - 56px);
	margin-left: 56px;
	padding-left: 18px;
	border-color: #ffe08a;
	border-left: 5px solid #ffd000;
	background:
		linear-gradient(90deg, rgba(255, 208, 0, .12), rgba(255, 255, 255, 1) 46%);
}

.npn-menu-row-pro.is-child-menu::before,
.npn-menu-row.is-child-menu::before {
	content: "";
	position: absolute;
	left: -38px;
	top: 50%;
	width: 26px;
	height: 2px;
	background: #ffd000;
	transform: translateY(-50%);
	box-shadow: 0 0 12px rgba(255, 208, 0, .38);
}

.npn-menu-row-pro.is-child-menu::after,
.npn-menu-row.is-child-menu::after {
	content: "";
	position: absolute;
	left: -43px;
	top: 50%;
	width: 12px;
	height: 12px;
	border-left: 3px solid #ffd000;
	border-bottom: 3px solid #ffd000;
	border-radius: 0 0 0 6px;
	transform: translateY(-10px);
}

/* Badge menu con */
.npn-menu-child-badge {
	grid-column: 1 / -1;
	display: inline-flex;
	width: fit-content;
	min-height: 28px;
	align-items: center;
	margin-top: 2px;
	padding: 0 10px;
	border-radius: 999px;
	background: #fff3bf;
	border: 1px solid #ffe08a;
	color: #8a5a00;
	font-size: 12px;
	font-weight: 900;
}

.npn-menu-row-pro:not(.is-child-menu) .npn-menu-child-badge,
.npn-menu-row:not(.is-child-menu) .npn-menu-child-badge {
	display: none !important;
}

/* Nút thêm menu */
.npn-add-menu-row {
	min-height: 48px !important;
	border-radius: 14px !important;
	font-weight: 900 !important;
}

/* Responsive */
@media (max-width: 1280px) {
	.npn-menu-row-pro,
	.npn-menu-row,
	.npn-menu-row-pro.is-child-menu,
	.npn-menu-row.is-child-menu {
		width: 100%;
		margin-left: 0;
		grid-template-columns: 44px minmax(0, 1fr);
	}

	.npn-menu-row-pro.is-child-menu,
	.npn-menu-row.is-child-menu {
		padding-left: 20px;
	}

	.npn-menu-row-pro.is-child-menu::before,
	.npn-menu-row-pro.is-child-menu::after,
	.npn-menu-row.is-child-menu::before,
	.npn-menu-row.is-child-menu::after {
		display: none;
	}

	.npn-menu-row-fields,
	.npn-menu-row-inner {
		grid-template-columns: 1fr 1fr;
	}

	.npn-menu-row-pro .npn-btn-danger,
	.npn-menu-row .npn-btn-danger,
	.npn-menu-row-pro .npn-remove-menu-row,
	.npn-menu-row .npn-remove-menu-row {
		grid-column: 2;
		width: 160px !important;
		justify-self: end;
	}
}

@media (max-width: 760px) {
	.npn-menu-builder-card .npn-edit-body {
		padding: 16px !important;
	}

	.npn-menu-builder-note {
		align-items: flex-start;
		flex-direction: column;
	}

	.npn-menu-builder-note em {
		margin-left: 0;
	}

	.npn-menu-row-pro,
	.npn-menu-row,
	.npn-menu-row-pro.is-child-menu,
	.npn-menu-row.is-child-menu {
		grid-template-columns: 1fr;
		padding: 14px;
	}

	.npn-menu-drag-handle,
	.npn-menu-drag {
		width: 100%;
		height: 42px;
	}

	.npn-menu-row-fields,
	.npn-menu-row-inner {
		grid-template-columns: 1fr;
	}

	.npn-menu-row-pro .npn-btn-danger,
	.npn-menu-row .npn-btn-danger,
	.npn-menu-row-pro .npn-remove-menu-row,
	.npn-menu-row .npn-remove-menu-row {
		grid-column: auto;
		width: 100% !important;
		justify-self: stretch;
	}
}
/* Hero title editor */
.npn-field .wp-editor-wrap {
	border: 1px solid #d7e1ee;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
}

.npn-field .wp-editor-tools {
	background: #f8fafc;
	padding: 8px 10px 0;
}

.npn-field .wp-switch-editor {
	font-family: "Manrope", Arial, sans-serif !important;
	font-size: 13px !important;
	font-weight: 800 !important;
	border-radius: 8px 8px 0 0 !important;
	border: 1px solid #d7e1ee !important;
	background: #fff !important;
	color: #07152b !important;
	padding: 7px 12px !important;
	height: auto !important;
}

.npn-field .html-active .switch-html,
.npn-field .tmce-active .switch-tmce {
	background: #ffc400 !important;
	border-color: #ffc400 !important;
	color: #07152b !important;
}

.npn-field .wp-editor-container {
	border: 0 !important;
}

.npn-field .wp-editor-area {
	min-height: 170px;
	border: 0 !important;
	padding: 14px !important;
	font-family: "Manrope", Arial, sans-serif;
	font-size: 14px;
	line-height: 1.65;
}

/* =========================================================
   Service detail gallery admin box
========================================================= */

.npn-service-detail-gallery-card {
	margin-top: 24px;
}

.npn-admin-gallery-preview {
	min-height: 132px;
	border: 1px dashed #c8d8ee;
	border-radius: 16px;
	background: #f8fbff;
	padding: 14px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.npn-admin-gallery-preview .npn-gallery-empty {
	width: 100%;
	text-align: center;
	color: #7186a6;
	font-weight: 700;
	padding: 34px 12px;
}

.npn-gallery-thumb {
	position: relative;
	width: 138px;
	height: 86px;
	border-radius: 12px;
	overflow: hidden;
	background: #eef4fb;
	border: 1px solid #d7e4f5;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.npn-gallery-thumb img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.npn-remove-detail-gallery-image {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 28px;
	height: 28px;
	border: 0;
	border-radius: 999px;
	background: #ff4d5d;
	color: #fff;
	font-size: 18px;
	font-weight: 900;
	line-height: 28px;
	cursor: pointer;
	box-shadow: 0 8px 18px rgba(255, 77, 93, 0.3);
}

.npn-admin-field-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 12px;
}

/* =========================================================
   ORDER CONFIG BUILDER IN ADMIN SERVICE EDIT - CLEAN ADMIN STYLE
========================================================= */
.npn-order-config-card .npn-edit-body {
	padding-top: 18px;
}
.npn-order-config-builder,
.npn-order-config-card {
	color: #0f172a;
}
.npn-order-config-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
	padding: 18px;
	border-radius: 18px;
	border: 1px solid #e2e8f0;
	background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.055);
}
.npn-order-config-top p {
	margin: 0;
	color: #64748b;
	font-size: 13px;
	line-height: 1.55;
	font-weight: 600;
}
.npn-order-config-spaces,
.npn-order-config-classes {
	display: grid;
	gap: 18px;
}
.npn-order-config-space,
.npn-order-config-class,
.npn-order-config-group {
	border: 1px solid #e2e8f0;
	background: #ffffff;
	border-radius: 18px;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}
.npn-order-config-space {
	padding: 18px;
}
.npn-order-config-class {
	padding: 18px;
	background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
	border-color: #dbe4f0;
}
.npn-order-config-space-head,
.npn-order-config-class-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 180px auto;
	gap: 14px;
	align-items: end;
	margin-bottom: 16px;
}
.npn-order-config-class-actions {
	display: flex;
	justify-content: flex-end;
	margin: 8px 0 12px;
}
.npn-order-config-groups {
	display: grid;
	gap: 14px;
}
.npn-order-config-group {
	padding: 16px;
	border-radius: 16px;
	background: #f8fafc;
	border-color: #e5e7eb;
	box-shadow: none;
}
.npn-order-config-common-fields {
	margin-bottom: 20px;
	background: #ffffff;
}
.npn-order-config-group-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}
.npn-order-config-group-head strong {
	color: #0f172a;
	font-size: 15px;
	font-weight: 850;
}
.npn-order-config-inclusions,
.npn-order-config-fields,
.npn-order-config-fields-common {
	display: grid;
	gap: 12px;
}
.npn-order-config-mini-row {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) 130px minmax(0, 1.4fr) auto auto;
	gap: 12px;
	align-items: end;
	padding: 14px;
	border-radius: 14px;
	border: 1px solid #e5e7eb;
	background: #ffffff;
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.035);
}
.npn-order-config-mini-row .npn-field {
	margin: 0;
}
.npn-order-config-builder label,
.npn-order-config-builder .npn-field label {
	color: #1e293b !important;
	font-weight: 750 !important;
}
.npn-order-config-check {
    display: flex !important;
	align-items: center;
	gap: 8px;
	min-height: 42px;
	padding: 0 12px;
	border-radius: 10px;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	color: #334155;
	font-size: 12px;
	font-weight: 750;
	white-space: nowrap;
	margin-bottom: 0 !important;
}
.npn-order-config-check input {
	accent-color: #06b6d4;
}
.npn-order-config-builder textarea,
.npn-order-config-builder input,
.npn-order-config-builder select {
	border-radius: 12px !important;
	border-color: #cbd5e1 !important;
	background: #ffffff !important;
	color: #0f172a !important;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}
.npn-order-config-builder textarea:focus,
.npn-order-config-builder input:focus,
.npn-order-config-builder select:focus {
	border-color: #06b6d4 !important;
	box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.12) !important;
}
.npn-order-config-builder .npn-btn,
.npn-order-config-builder button {
	border-radius: 10px !important;
	font-weight: 800 !important;
}
.npn-order-config-builder .npn-btn-primary,
.npn-order-config-builder .npn-order-add-class,
.npn-order-config-builder .npn-order-add-common-field,
.npn-order-config-builder .npn-order-add-inclusion {
	background: linear-gradient(135deg, #06b6d4, #0ea5e9) !important;
	border-color: transparent !important;
	color: #ffffff !important;
}
.npn-order-config-builder .npn-btn-danger,
.npn-order-config-builder .npn-order-remove-class,
.npn-order-config-builder .npn-order-remove-field,
.npn-order-config-builder .npn-order-remove-inclusion {
	background: #fff1f2 !important;
	border: 1px solid #fecdd3 !important;
	color: #e11d48 !important;
}
.npn-order-config-builder .npn-btn-danger:hover,
.npn-order-config-builder .npn-order-remove-class:hover,
.npn-order-config-builder .npn-order-remove-field:hover,
.npn-order-config-builder .npn-order-remove-inclusion:hover {
	background: #ffe4e6 !important;
	color: #be123c !important;
}
@media (max-width: 1200px) {
	.npn-order-config-space-head,
	.npn-order-config-class-head,
	.npn-order-config-mini-row {
		grid-template-columns: 1fr;
	}
	.npn-order-config-top {
		align-items: flex-start;
		flex-direction: column;
	}
}
.npn-order-config-class-head .npn-field {
	margin-bottom: 0 !important;
}

/* Order config inclusion sub categories */
.npn-order-config-inclusion-row {
	display: block;
}

.npn-order-config-inclusion-main,
.npn-order-config-child-row {
	display: grid;
	grid-template-columns: minmax(150px, 1.15fr) minmax(120px, .55fr) minmax(180px, 1.5fr) auto auto;
	gap: 12px;
	align-items: end;
}

.npn-order-config-child-block {
	margin-top: 12px;
	padding: 12px;
	border-radius: 14px;
	background: rgba(8, 18, 42, 0.42);
	border: 1px dashed rgba(103, 232, 249, 0.18);
}

.npn-order-config-child-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.npn-order-config-child-head strong {
	color: rgba(225, 241, 255, 0.82);
	font-size: 12px;
	font-weight: 950;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.npn-order-config-inclusion-children {
	display: grid;
	gap: 10px;
}

.npn-order-config-child-row {
	grid-template-columns: minmax(150px, 1fr) minmax(120px, .5fr) auto auto;
	padding: 10px;
	border-radius: 12px;
	background: rgba(255,255,255,.035);
}

.npn-order-config-builder .npn-order-add-inclusion-child {
	background: linear-gradient(135deg, rgba(8,213,255,.24), rgba(79,117,255,.18));
	border-color: rgba(103,232,249,.22);
	color: #eaffff;
}

@media (max-width: 1100px) {
	.npn-order-config-inclusion-main,
	.npn-order-config-child-row {
		grid-template-columns: 1fr;
	}
}

/* Admin-configured images for order inclusion sub categories */
.npn-order-config-child-images {
	min-width: 260px;
}
.npn-order-config-child-image-preview {
	min-height: 58px;
	border-radius: 12px;
	border: 1px solid rgba(103, 232, 249, 0.14);
	background: rgba(4, 12, 28, 0.42);
	padding: 8px;
}
.npn-order-config-child-empty {
	font-size: 12px;
	font-weight: 800;
	color: rgba(225, 241, 255, 0.56);
}
.npn-order-config-child-preview {
	display: flex;
	align-items: center;
	gap: 7px;
	flex-wrap: wrap;
}
.npn-order-config-child-preview span,
.npn-order-config-child-preview em {
	width: 42px;
	height: 42px;
	border-radius: 10px;
	overflow: hidden;
	display: grid;
	place-items: center;
	background: rgba(255,255,255,.06);
	color: #eaffff;
	font-size: 11px;
	font-weight: 900;
}
.npn-order-config-child-preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.npn-order-config-child-image-actions {
	display: flex;
	gap: 8px;
	margin-top: 8px;
	flex-wrap: wrap;
}
.npn-order-config-child-row {
	grid-template-columns: minmax(150px, 1fr) minmax(110px, .45fr) auto minmax(260px, 1.35fr) auto;
}

/* v4: order-config inclusion/sub-category styling */
.npn-order-config-inclusion-main {
	grid-template-columns: 34px 42px minmax(180px, 1fr) 120px 140px minmax(220px, 1.2fr) auto auto;
	padding: 14px;
	border-radius: 16px;
	background: linear-gradient(135deg, rgba(12, 30, 62, .78), rgba(6, 18, 40, .82));
	border: 1px solid rgba(103, 232, 249, .14);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.npn-order-config-child-block {
	display: none;
	margin-left: 30px;
	background: linear-gradient(135deg, rgba(7, 18, 40, .86), rgba(10, 27, 58, .72));
	border-style: solid;
	border-color: rgba(103,232,249,.16);
}
.npn-order-config-inclusion-row.is-child-open .npn-order-config-child-block {
	display: block;
}
.npn-order-config-child-row {
	grid-template-columns: 34px 42px minmax(170px, 1fr) 130px minmax(260px, 1.35fr) auto;
	align-items: center;
	padding: 12px;
	border-radius: 16px;
	background: linear-gradient(135deg, rgba(12, 30, 62, .72), rgba(6, 18, 40, .88));
	border: 1px solid rgba(103,232,249,.12);
}
.npn-order-config-child-drag {
	width: 30px;
	height: 30px;
	border-radius: 10px;
	display: grid;
	place-items: center;
	background: rgba(8,213,255,.1);
	border: 1px solid rgba(103,232,249,.18);
	color: #70efff;
	font-weight: 1000;
	cursor: grab;
}
.npn-order-config-subcheck {
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	margin: 0;
	cursor: pointer;
}
.npn-order-config-subcheck input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.npn-order-config-subcheck span {
	width: 26px;
	height: 26px;
	border-radius: 9px;
	background: rgba(2,10,24,.72);
	border: 1px solid rgba(112,239,255,.36);
	box-shadow: inset 0 0 0 3px rgba(7, 18, 40, .86);
	position: relative;
}
.npn-order-config-subcheck input:checked + span {
	background: linear-gradient(135deg, #08d5ff, #4f75ff);
	border-color: rgba(112,239,255,.86);
}
.npn-order-config-subcheck input:checked + span:after {
	content: "✓";
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-size: 15px;
	font-weight: 1000;
	color: #fff;
}
.npn-order-toggle-inclusion-child {
	background: rgba(8,213,255,.1) !important;
	border-color: rgba(103,232,249,.2) !important;
	color: #dffbff !important;
}
.npn-order-config-child-image-preview {
	background: rgba(2, 10, 24, .55);
	border-color: rgba(103,232,249,.18);
}
.npn-order-config-child-preview span,
.npn-order-config-child-preview em {
	border: 1px solid rgba(103,232,249,.14);
	background: rgba(9,25,54,.82);
}
@media (max-width: 1300px) {
	.npn-order-config-inclusion-main,
	.npn-order-config-child-row {
		grid-template-columns: 1fr;
	}
	.npn-order-config-child-block {
		margin-left: 0;
	}
}

/* v5: switch-style toggles in Order Config admin, matching frontend */
.npn-order-config-subcheck {
	width: 46px !important;
	height: 26px !important;
	display: inline-block !important;
	position: relative !important;
	cursor: pointer;
}
.npn-order-config-subcheck input {
	position: absolute !important;
	opacity: 0 !important;
	pointer-events: none !important;
}
.npn-order-config-subcheck span {
	position: absolute !important;
	inset: 0 !important;
	width: auto !important;
	height: auto !important;
	border-radius: 999px !important;
	background: rgba(255,255,255,.16) !important;
	border: 1px solid rgba(255,255,255,.08) !important;
	box-shadow: inset 0 1px 2px rgba(0,0,0,.26) !important;
	transition: .22s ease !important;
}
.npn-order-config-subcheck span:before {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 4px 10px rgba(0,0,0,.28);
	transition: .22s ease;
}
.npn-order-config-subcheck input:checked + span {
	background: linear-gradient(135deg, #22e6ff, #0fd4e6) !important;
	box-shadow: 0 0 18px rgba(31, 227, 255, .34), inset 0 1px 0 rgba(255,255,255,.3) !important;
	border-color: rgba(112,239,255,.72) !important;
}
.npn-order-config-subcheck input:checked + span:before {
	transform: translateX(20px);
}
.npn-order-config-subcheck input:checked + span:after {
	content: none !important;
}
.npn-order-config-inclusion-main {
	grid-template-columns: 34px 54px minmax(180px, 1fr) 120px 140px minmax(220px, 1.2fr) auto auto !important;
}
.npn-order-config-child-row {
	grid-template-columns: 34px 54px minmax(170px, 1fr) 130px minmax(260px, 1.35fr) auto !important;
}

/* =========================================================
   v6 - Scoped Admin Order Config switches
   Tách riêng khỏi .npn-order-config-subcheck cũ để tránh trùng style.
========================================================= */
.npn-admin-page .npn-admin-order-switch,
.npn-admin-wrap .npn-admin-order-switch,
[data-npn-order-config-builder] .npn-admin-order-switch {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    flex: 0 0 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    overflow: visible !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

.npn-admin-page .npn-admin-order-switch input,
.npn-admin-wrap .npn-admin-order-switch input,
[data-npn-order-config-builder] .npn-admin-order-switch input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    margin: 0 !important;
}

.npn-admin-page .npn-admin-order-switch span,
.npn-admin-wrap .npn-admin-order-switch span,
[data-npn-order-config-builder] .npn-admin-order-switch span {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 44px !important;
    height: 24px !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, rgba(96, 115, 151, .86), rgba(43, 57, 91, .92)) !important;
    border: 1px solid rgba(255, 255, 255, .12) !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.28) !important;
    transition: background .22s ease, box-shadow .22s ease, border-color .22s ease !important;
    box-sizing: border-box !important;
}

.npn-admin-page .npn-admin-order-switch span::before,
.npn-admin-wrap .npn-admin-order-switch span::before,
[data-npn-order-config-builder] .npn-admin-order-switch span::before {
    content: "" !important;
    position: absolute !important;
    top: 3px !important;
    left: 3px !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    background: #fff !important;
    box-shadow: 0 4px 10px rgba(0,0,0,.3) !important;
    transform: translateX(0) !important;
    transition: transform .22s ease !important;
    box-sizing: border-box !important;
}

.npn-admin-page .npn-admin-order-switch input:checked + span,
.npn-admin-wrap .npn-admin-order-switch input:checked + span,
[data-npn-order-config-builder] .npn-admin-order-switch input:checked + span {
    background: linear-gradient(135deg, #22e6ff, #0fd4e6) !important;
    border-color: rgba(112, 239, 255, .72) !important;
    box-shadow: 0 0 16px rgba(31, 227, 255, .30), inset 0 1px 0 rgba(255,255,255,.28) !important;
}

.npn-admin-page .npn-admin-order-switch input:checked + span::before,
.npn-admin-wrap .npn-admin-order-switch input:checked + span::before,
[data-npn-order-config-builder] .npn-admin-order-switch input:checked + span::before {
    transform: translateX(20px) !important;
}

.npn-admin-page .npn-admin-order-switch input:checked + span::after,
.npn-admin-wrap .npn-admin-order-switch input:checked + span::after,
[data-npn-order-config-builder] .npn-admin-order-switch input:checked + span::after {
    content: none !important;
}

[data-npn-order-config-builder] .npn-order-config-inclusion-main {
    grid-template-columns: 34px 54px minmax(180px, 1fr) 120px 140px minmax(220px, 1.2fr) auto auto !important;
}

[data-npn-order-config-builder] .npn-order-config-child-row {
    grid-template-columns: 34px 54px minmax(170px, 1fr) 130px minmax(260px, 1.35fr) auto !important;
}

/* =========================================================
   v11 - Admin Order Config light color match + readable fields
   Đồng bộ lại màu phần Inclusions/Sub categories với giao diện admin trắng.
========================================================= */
[data-npn-order-config-builder] .npn-order-config-inclusion-main,
[data-npn-order-config-builder] .npn-order-config-child-row {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05) !important;
    color: #0f172a !important;
}

[data-npn-order-config-builder] .npn-order-config-inclusion-main label,
[data-npn-order-config-builder] .npn-order-config-child-row label,
[data-npn-order-config-builder] .npn-order-config-inclusion-main .npn-field label,
[data-npn-order-config-builder] .npn-order-config-child-row .npn-field label {
    color: #334155 !important;
}

[data-npn-order-config-builder] .npn-order-config-inclusion-main input,
[data-npn-order-config-builder] .npn-order-config-inclusion-main textarea,
[data-npn-order-config-builder] .npn-order-config-child-row input,
[data-npn-order-config-builder] .npn-order-config-child-row textarea,
[data-npn-order-config-builder] .npn-order-config-child-row select {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

[data-npn-order-config-builder] .npn-order-config-inclusion-main input:focus,
[data-npn-order-config-builder] .npn-order-config-inclusion-main textarea:focus,
[data-npn-order-config-builder] .npn-order-config-child-row input:focus,
[data-npn-order-config-builder] .npn-order-config-child-row textarea:focus,
[data-npn-order-config-builder] .npn-order-config-child-row select:focus {
    border-color: #06b6d4 !important;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.14) !important;
}

[data-npn-order-config-builder] .npn-order-config-child-block {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 8px 22px rgba(15, 23, 42, 0.04) !important;
}

[data-npn-order-config-builder] .npn-order-config-child-head strong {
    color: #0f172a !important;
}

[data-npn-order-config-builder] .npn-order-config-child-image-preview {
    background: #ffffff !important;
    border-color: #dbe7f3 !important;
}

[data-npn-order-config-builder] .npn-order-config-child-empty {
    color: #64748b !important;
}

[data-npn-order-config-builder] .npn-order-config-child-preview span,
[data-npn-order-config-builder] .npn-order-config-child-preview em {
    background: #f1f5f9 !important;
    border: 1px solid #dbe7f3 !important;
    color: #334155 !important;
}

[data-npn-order-config-builder] .npn-order-config-child-drag {
    background: #e0f7ff !important;
    border-color: #bae6fd !important;
    color: #0284c7 !important;
}

[data-npn-order-config-builder] .npn-order-toggle-inclusion-child,
[data-npn-order-config-builder] .npn-order-add-inclusion-child {
    background: #e0f7ff !important;
    border: 1px solid #7dd3fc !important;
    color: #0369a1 !important;
}

[data-npn-order-config-builder] .npn-order-toggle-inclusion-child:hover,
[data-npn-order-config-builder] .npn-order-add-inclusion-child:hover {
    background: #cffafe !important;
    color: #075985 !important;
}

[data-npn-order-config-builder] .npn-order-config-child-image-actions .npn-btn:not(.npn-btn-danger) {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

[data-npn-order-config-builder] .npn-order-config-child-image-actions .npn-btn:not(.npn-btn-danger):hover {
    background: #e2e8f0 !important;
}

[data-npn-order-config-builder] .npn-order-remove-inclusion-child {
    background: #fff1f2 !important;
    border: 1px solid #fecdd3 !important;
    color: #e11d48 !important;
}

[data-npn-order-config-builder] .npn-admin-order-switch span {
    background: #cbd5e1 !important;
    border-color: #94a3b8 !important;
}

[data-npn-order-config-builder] .npn-admin-order-switch input:checked + span {
    background: linear-gradient(135deg, #22d3ee, #06b6d4) !important;
    border-color: #67e8f9 !important;
}

/* v17 - Admin image code field for sub category reference images */
.npn-order-config-child-preview-codes {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 12px;
	width: 100%;
}
.npn-order-config-child-image-card {
	border: 1px solid #d8e3f2;
	border-radius: 14px;
	background: #ffffff;
	padding: 10px;
	box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}
.npn-order-config-child-image-card > span {
	display: block;
	border-radius: 11px;
	overflow: hidden;
	background: #eef4fb;
	margin-bottom: 8px;
}
.npn-order-config-child-image-card img {
	width: 100%;
	height: 92px;
	object-fit: cover;
	display: block;
}
.npn-order-config-child-image-card label {
	display: grid;
	gap: 5px;
	font-size: 12px;
	color: #26364d;
}
.npn-order-config-child-image-card input[data-config-child-image-code] {
	width: 100%;
	height: 36px;
	border-radius: 10px;
	border: 1px solid #cbd9ea;
	background: #f8fbff;
	color: #0f1c32;
	padding: 0 10px;
}

/* =========================================================
   v23 - Front admin DIY Studio manager, same style as Services
========================================================= */
.npn-diy-manager-page .npn-content-toolbar,
.npn-diy-edit-page-form .npn-panel {
    border-radius: 20px;
}

.npn-diy-admin-table .npn-thumb-cell {
    width: 86px;
    height: 58px;
    border-radius: 12px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: #f3f6fb;
    color: #8a96a8;
}

.npn-diy-admin-table .npn-thumb-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================================
   v29 - Parent inclusion reference images, no sub category UI
========================================================= */
.npn-order-config-inclusion-main-v29 {
	grid-template-columns: 44px 58px minmax(180px,1fr) 120px 140px minmax(220px,1.2fr) 220px auto !important;
}
.npn-order-config-parent-images {
	min-width: 220px;
}
.npn-order-config-parent-images .npn-order-config-child-preview {
	max-height: 210px;
	overflow: auto;
}
.npn-order-config-parent-images .npn-order-config-child-image-card label {
	font-size: 11px;
}

/* v37 - make inclusion reference image cards clearly scoped/clickable */
.npn-order-config-inclusion-image-preview,
.npn-order-config-child-image-preview {
	min-width: 0;
}

/* =========================================================
   v24 - Copy / paste reference images in order config
========================================================= */
[data-npn-order-config-builder] .npn-order-config-child-image-card {
    position: relative;
}

[data-npn-order-config-builder] .npn-order-config-image-remove {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ef4444;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.28);
    z-index: 3;
    transition: 0.18s ease;
}

[data-npn-order-config-builder] .npn-order-config-image-remove:hover {
    transform: scale(1.06);
    background: #dc2626;
}

[data-npn-order-config-builder] .npn-order-copy-inclusion-images,
[data-npn-order-config-builder] .npn-order-paste-inclusion-images,
[data-npn-order-config-builder] .npn-order-copy-child-images,
[data-npn-order-config-builder] .npn-order-paste-child-images {
    background: #ecfeff !important;
    border-color: #67e8f9 !important;
    color: #0369a1 !important;
}

[data-npn-order-config-builder] .npn-order-copy-inclusion-images:hover,
[data-npn-order-config-builder] .npn-order-paste-inclusion-images:hover,
[data-npn-order-config-builder] .npn-order-copy-child-images:hover,
[data-npn-order-config-builder] .npn-order-paste-child-images:hover {
    background: #cffafe !important;
    color: #075985 !important;
}

/* =========================================================
   Wallet online payment gateway settings
========================================================= */
.npn-wallet-gateway-card {
    width: min(96vw, 1080px);
}

.npn-wallet-gateway-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.npn-wallet-gateway-box {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(103,232,249,.14);
    background: rgba(255,255,255,.045);
}

.npn-wallet-gateway-box h4 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 15px;
}

.npn-wallet-gateway-box code {
    display: block;
    margin-top: 6px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(0,0,0,.18);
    color: #1df2e2;
    white-space: normal;
    overflow-wrap: anywhere;
}

.npn-wallet-check {
    min-height: 42px;
    padding: 10px 12px;
    margin-bottom: 12px;
    border-radius: 12px;
    border: 1px solid rgba(103,232,249,.14);
    background: rgba(8,213,255,.06);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.npn-wallet-check input {
    accent-color: #1df2e2;
}

@media (max-width: 1180px) {
    .npn-wallet-gateway-grid {
        grid-template-columns: 1fr;
    }
}


/* Wallet payment settings separate page */
.npn-wallet-gateway-page .npn-wallet-gateway-page-card {
    width: 100%;
}

.npn-wallet-gateway-page-head {
    align-items: flex-start;
}

.npn-wallet-gateway-page .npn-wallet-gateway-grid {
    margin-bottom: 22px;
}

.npn-wallet-gateway-page .npn-wallet-gateway-box {
    background: rgba(255,255,255,.035);
}

.npn-wallet-gateway-page .npn-save-page-btn {
    min-width: 220px;
}

/* =========================================================
   Customer wallet USD detail
========================================================= */
.npn-customer-filter-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.npn-customer-filter-row select {
    min-height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(103, 232, 249, 0.16);
    background: rgba(13, 28, 62, 0.94);
    color: #fff;
    padding: 0 12px;
}
.npn-customer-action-cell {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.npn-customer-type-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #dffbff;
    background: rgba(8, 213, 255, 0.09);
    border: 1px solid rgba(103, 232, 249, 0.18);
    font-size: 12px;
    font-weight: 800;
}
.npn-customer-detail-head,
.npn-wallet-gateway-page-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}
.npn-customer-head-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.npn-customer-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    margin: 18px 0;
}
.npn-customer-stat-box {
    min-height: 112px;
    border-radius: 18px;
    border: 1px solid rgba(103, 232, 249, 0.16);
    background: radial-gradient(circle at 18% 0%, rgba(8, 213, 255, 0.12), transparent 42%), linear-gradient(180deg, rgba(17, 32, 70, 0.84), rgba(8, 20, 50, 0.94));
    padding: 16px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
}
.npn-customer-stat-box span {
    display: block;
    color: rgba(225, 241, 255, 0.64);
    font-size: 12px;
    margin-bottom: 8px;
}
.npn-customer-stat-box strong {
    display: block;
    color: #fff;
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.npn-customer-stat-box em {
    display: block;
    margin-top: 8px;
    color: #67e8f9;
    font-style: normal;
    font-weight: 800;
}
.npn-customer-stat-box.is-balance strong {
    color: #67e8f9;
    text-shadow: 0 0 20px rgba(103, 232, 249, 0.18);
}
.npn-customer-detail-grid {
    align-items: start;
}
.npn-customer-project-list {
    display: grid;
    gap: 12px;
}
.npn-customer-project-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 15px;
    border-radius: 16px;
    border: 1px solid rgba(103, 232, 249, 0.14);
    background: rgba(13, 28, 62, 0.72);
}
.npn-customer-project-card strong {
    display: block;
    color: #fff;
    margin-bottom: 5px;
}
.npn-customer-project-card small {
    display: block;
    color: rgba(225, 241, 255, 0.58);
    line-height: 1.45;
}
.npn-customer-project-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.npn-customer-project-meta b {
    color: #67e8f9;
}
.npn-customer-project-meta span {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 900;
    background: rgba(239, 68, 68, 0.12);
    color: #fecaca;
}
.npn-customer-project-card.is-paid .npn-customer-project-meta span {
    background: rgba(34, 197, 94, 0.12);
    color: #bbf7d0;
}
.npn-customer-history-table strong {
    white-space: nowrap;
}
.npn-customer-request-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.npn-customer-request-grid > div {
    border-radius: 14px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.npn-customer-request-grid span {
    display: block;
    color: rgba(225, 241, 255, 0.55);
    font-size: 12px;
    margin-bottom: 6px;
}
.npn-customer-request-grid strong {
    color: #fff;
    font-size: 13px;
    overflow-wrap: anywhere;
}
.npn-customer-file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}
.npn-customer-file-card {
    min-height: 142px;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    flex-direction: column;
}
.npn-customer-file-card img,
.npn-customer-file-card b {
    height: 104px;
    width: 100%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #67e8f9;
    background: rgba(8, 213, 255, 0.08);
}
.npn-customer-file-card span {
    padding: 8px;
    color: rgba(255,255,255,0.76);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.npn-wallet-hint-list {
    margin: 10px 0 0;
    padding-left: 18px;
    color: rgba(225, 241, 255, 0.66);
    font-size: 13px;
    line-height: 1.55;
}
.npn-muted-note {
    color: rgba(225, 241, 255, 0.56);
    font-size: 12px;
}
@media (max-width: 1280px) {
    .npn-customer-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .npn-customer-stat-grid { grid-template-columns: 1fr; }
    .npn-customer-project-card { grid-template-columns: 1fr; }
    .npn-customer-project-meta { justify-content: flex-start; }
    .npn-customer-request-grid { grid-template-columns: 1fr; }
}


/* =========================================================
   Wallet gateway webhook sync
========================================================= */
.npn-wallet-webhook-id-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.npn-wallet-webhook-id-row .npn-btn {
    white-space: nowrap;
    min-height: 42px;
}

.npn-wallet-webhook-actions {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.npn-wallet-webhook-actions .npn-btn {
    min-height: 36px;
    padding: 0 14px;
}

.npn-wallet-webhook-note {
    color: rgba(15, 23, 42, 0.58);
    font-size: 12px;
    line-height: 1.45;
}

.npn-wallet-webhook-url {
    user-select: all;
}

@media (max-width: 760px) {
    .npn-wallet-webhook-id-row {
        grid-template-columns: 1fr;
    }
}


/* Manual PayPal webhook mode */
.npn-wallet-webhook-field > input[name="paypal_webhook_id"] {
    width: 100%;
}

.npn-wallet-sync-paypal-webhook {
    display: none !important;
}


/* =========================================================
   ADMIN DASHBOARD + LAYOUT QA POLISH
   Scope: front admin only. Added to stabilize stacked/overridden UI.
========================================================= */
.npn-admin-body {
    background: #f5f7fb !important;
    color: #111827;
}

.npn-admin-app {
    min-width: 0;
    background:
        radial-gradient(circle at 84% -10%, rgba(255, 208, 0, .12), transparent 32%),
        linear-gradient(180deg, #f7f9fd 0%, #eef2f7 100%) !important;
}

.npn-sidebar {
    width: 280px !important;
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 208, 0, .12), transparent 32%),
        linear-gradient(180deg, #0b1220, #070b13) !important;
    box-shadow: 22px 0 60px rgba(15, 23, 42, .14);
}

.npn-main {
    margin-left: 280px !important;
    width: calc(100% - 280px) !important;
    min-width: 0;
}

.npn-content {
    padding: 24px !important;
    max-width: 100%;
}

.npn-topbar {
    height: 70px !important;
    background: rgba(255,255,255,.92) !important;
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .04);
}

.npn-topbar h1 {
    font-size: 20px !important;
    letter-spacing: -.02em;
}

.npn-sidebar-menu {
    padding: 14px 10px 20px !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,208,0,.55) rgba(255,255,255,.06);
}

.npn-sidebar-link {
    height: 44px !important;
    border-radius: 14px !important;
    font-size: 14px !important;
    margin-bottom: 5px !important;
}

.npn-sidebar-link.active {
    background: linear-gradient(135deg, #ffd84d, #ffb800) !important;
    color: #111827 !important;
    box-shadow: 0 12px 28px rgba(255, 184, 0, .22);
}

.npn-panel,
.npn-admin-card,
.npn-card,
.npn-form-card,
.npn-project-card {
    border-radius: 22px !important;
    border: 1px solid #e4ebf5 !important;
    box-shadow: 0 20px 54px rgba(15, 23, 42, .065) !important;
}

.npn-panel-head {
    gap: 14px;
    flex-wrap: wrap;
}

.npn-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.npn-table th {
    white-space: nowrap;
    background: #f8fafc !important;
    color: #475569 !important;
    font-size: 12px !important;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.npn-table td {
    vertical-align: middle !important;
}

.npn-btn,
.npn-admin-app .button,
.npn-admin-app button {
    max-width: 100%;
}

.npn-dashboard-v2 {
    display: grid;
    gap: 22px;
}

.npn-dashboard-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 28px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 208, 0, .24), transparent 36%),
        radial-gradient(circle at 100% 0%, rgba(14, 165, 233, .14), transparent 34%),
        linear-gradient(135deg, #0d1424, #111827 58%, #172033);
    color: #fff;
    box-shadow: 0 30px 80px rgba(15, 23, 42, .18);
}

.npn-dashboard-hero::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -90px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 208, 0, .12);
    pointer-events: none;
}

.npn-dashboard-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: #ffe58a;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.npn-dashboard-hero h2 {
    margin: 0;
    max-width: 780px;
    color: #fff;
    font-size: clamp(24px, 2.4vw, 38px);
    line-height: 1.12;
    letter-spacing: -.04em;
}

.npn-dashboard-hero p {
    max-width: 760px;
    margin: 12px 0 0;
    color: rgba(255,255,255,.72);
    font-size: 15px;
    line-height: 1.6;
}

.npn-dashboard-hero-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.npn-dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.npn-dashboard-kpi {
    position: relative;
    overflow: hidden;
    min-height: 140px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid #e4ebf5;
    background: #fff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .06);
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.npn-dashboard-kpi::after {
    content: "";
    position: absolute;
    right: -42px;
    top: -52px;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background: var(--kpi-glow, rgba(255, 208, 0, .16));
}

.npn-dashboard-kpi-icon {
    position: relative;
    z-index: 1;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    border-radius: 16px;
    background: var(--kpi-bg, #fff7d6);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.48);
    font-size: 21px;
}

.npn-dashboard-kpi div {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.npn-dashboard-kpi strong {
    display: block;
    color: #0f172a;
    font-size: 25px;
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -.03em;
    word-break: break-word;
}

.npn-dashboard-kpi p {
    margin: 7px 0 0;
    color: #334155;
    font-size: 13px;
    font-weight: 900;
}

.npn-dashboard-kpi small {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}

.npn-dashboard-kpi-blue { --kpi-bg: #e0f2fe; --kpi-glow: rgba(14,165,233,.15); }
.npn-dashboard-kpi-cyan { --kpi-bg: #cffafe; --kpi-glow: rgba(6,182,212,.15); }
.npn-dashboard-kpi-amber { --kpi-bg: #fef3c7; --kpi-glow: rgba(245,158,11,.17); }
.npn-dashboard-kpi-red { --kpi-bg: #fee2e2; --kpi-glow: rgba(239,68,68,.13); }
.npn-dashboard-kpi-green { --kpi-bg: #dcfce7; --kpi-glow: rgba(34,197,94,.14); }
.npn-dashboard-kpi-purple { --kpi-bg: #ede9fe; --kpi-glow: rgba(124,58,237,.13); }
.npn-dashboard-kpi-dark { --kpi-bg: #e2e8f0; --kpi-glow: rgba(15,23,42,.1); }

.npn-dashboard-layout-v2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 18px;
    align-items: start;
}

.npn-dashboard-panel {
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid #e4ebf5;
    background: rgba(255,255,255,.94);
    box-shadow: 0 20px 56px rgba(15, 23, 42, .065);
}

.npn-dashboard-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 22px;
    border-bottom: 1px solid #edf2f7;
    background: linear-gradient(180deg, #fff, #fbfdff);
}

.npn-dashboard-panel-head h3 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -.02em;
}

.npn-dashboard-panel-head p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}

.npn-dashboard-panel-head a {
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
}

.npn-dashboard-project-list,
.npn-dashboard-txn-list,
.npn-dashboard-shortcuts {
    padding: 14px;
}

.npn-dashboard-project-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid #edf2f7;
    background: #fff;
}

.npn-dashboard-project-item + .npn-dashboard-project-item {
    margin-top: 10px;
}

.npn-dashboard-project-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.npn-dashboard-project-dot {
    flex: 0 0 12px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    box-shadow: 0 0 0 5px rgba(148,163,184,.14);
}

.npn-dashboard-project-dot-paid { background: #22c55e; }
.npn-dashboard-project-dot-unpaid { background: #f59e0b; }

.npn-dashboard-project-main h4 {
    margin: 0;
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.npn-dashboard-project-main p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.npn-dashboard-project-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.npn-dashboard-project-meta > span:not(.npn-status),
.npn-dashboard-pay-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.npn-dashboard-pay-badge.is-paid {
    background: #dcfce7;
    color: #15803d;
}

.npn-dashboard-pay-badge.is-unpaid {
    background: #fef3c7;
    color: #a16207;
}

.npn-dashboard-side-v2 {
    display: grid;
    gap: 18px;
}

.npn-dashboard-shortcuts {
    display: grid;
    gap: 10px;
}

.npn-dashboard-shortcuts a {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 2px;
    align-items: center;
    padding: 13px;
    border-radius: 18px;
    border: 1px solid #edf2f7;
    background: #fff;
    color: #0f172a;
    transition: .2s ease;
}

.npn-dashboard-shortcuts a:hover {
    transform: translateY(-1px);
    border-color: #facc15;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}

.npn-dashboard-shortcuts span {
    grid-row: span 2;
    width: 44px;
    height: 44px;
    border-radius: 15px;
    display: inline-grid;
    place-items: center;
    background: #fff7d6;
}

.npn-dashboard-shortcuts strong {
    font-size: 14px;
    font-weight: 900;
}

.npn-dashboard-shortcuts small {
    color: #64748b;
    font-size: 12px;
    line-height: 1.3;
}

.npn-dashboard-txn-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #edf2f7;
}

.npn-dashboard-txn-item:last-child {
    border-bottom: 0;
}

.npn-dashboard-txn-item strong {
    display: block;
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
}

.npn-dashboard-txn-item span {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
}

.npn-dashboard-txn-item em {
    font-style: normal;
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.npn-dashboard-txn-item em.is-pending {
    color: #a16207;
}

@media (max-width: 1360px) {
    .npn-dashboard-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .npn-dashboard-layout-v2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1080px) {
    .npn-sidebar {
        position: static !important;
        width: 100% !important;
        min-height: auto !important;
    }

    .npn-admin-app {
        display: block !important;
    }

    .npn-main {
        width: 100% !important;
        margin-left: 0 !important;
    }

    .npn-sidebar-menu {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 8px;
    }

    .npn-sidebar-link {
        flex: 0 0 auto;
        min-width: max-content;
    }

    .npn-sidebar-user {
        display: none !important;
    }
}

@media (max-width: 720px) {
    .npn-content {
        padding: 16px !important;
    }

    .npn-dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }

    .npn-dashboard-kpi-grid {
        grid-template-columns: 1fr;
    }

    .npn-dashboard-project-item {
        grid-template-columns: 1fr;
    }

    .npn-dashboard-project-meta {
        justify-content: flex-start;
    }
}


/* =========================================================
   Customer type badges + customer detail form QA
   Scope: Admin customer list/detail only
========================================================= */
.npn-customer-table td:nth-child(3),
.npn-customer-table th:nth-child(3) {
    text-align: center;
}

.npn-customer-type-pill {
    min-width: 96px;
    justify-content: center;
    padding: 7px 12px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    letter-spacing: -0.01em;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.42), 0 8px 18px rgba(15,23,42,.06);
}

.npn-customer-type-loyal {
    color: #854d0e !important;
    background: linear-gradient(135deg, #fef3c7, #fde68a) !important;
    border-color: #facc15 !important;
}

.npn-customer-type-walk_in {
    color: #075985 !important;
    background: linear-gradient(135deg, #e0f2fe, #bae6fd) !important;
    border-color: #38bdf8 !important;
}

.npn-customer-type-wholesale {
    color: #581c87 !important;
    background: linear-gradient(135deg, #f3e8ff, #e9d5ff) !important;
    border-color: #c084fc !important;
}

.npn-customer-type-retail {
    color: #166534 !important;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0) !important;
    border-color: #22c55e !important;
}

.npn-customer-type-pill:not(.npn-customer-type-loyal):not(.npn-customer-type-walk_in):not(.npn-customer-type-wholesale):not(.npn-customer-type-retail) {
    color: #334155 !important;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0) !important;
    border-color: #cbd5e1 !important;
}

.npn-admin-edit-side .npn-edit-card .npn-field {
    display: block;
    min-width: 0;
}

.npn-admin-edit-side .npn-edit-card .npn-field label {
    display: block !important;
    margin: 0 0 8px !important;
    color: #172033 !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1.35;
}

.npn-admin-edit-side .npn-edit-card .npn-field input[type="date"],
.npn-admin-edit-side .npn-edit-card .npn-field input[name="next_billing_date"] {
    width: 100% !important;
    min-width: 0 !important;
    height: 48px !important;
    min-height: 48px !important;
    display: block !important;
    padding: 0 44px 0 16px !important;
    border-radius: 14px !important;
    border: 1px solid #d8e2f0 !important;
    background: #ffffff !important;
    color: #111827 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 48px !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 10px 22px rgba(15,23,42,.05) !important;
    color-scheme: light;
    appearance: auto;
    -webkit-appearance: none;
}

.npn-admin-edit-side .npn-edit-card .npn-field input[type="date"]:focus,
.npn-admin-edit-side .npn-edit-card .npn-field input[name="next_billing_date"]:focus {
    outline: none !important;
    border-color: #facc15 !important;
    box-shadow: 0 0 0 4px rgba(250,204,21,.18), 0 12px 24px rgba(15,23,42,.08) !important;
}

.npn-admin-edit-side .npn-edit-card .npn-field input[type="date"]::-webkit-calendar-picker-indicator,
.npn-admin-edit-side .npn-edit-card .npn-field input[name="next_billing_date"]::-webkit-calendar-picker-indicator {
    width: 18px;
    height: 18px;
    padding: 8px;
    margin-right: -32px;
    border-radius: 10px;
    cursor: pointer;
    opacity: .72;
    background-color: #f8fafc;
    box-shadow: 0 0 0 1px #e2e8f0;
}

.npn-admin-edit-side .npn-edit-card .npn-field input[type="date"]::-webkit-calendar-picker-indicator:hover,
.npn-admin-edit-side .npn-edit-card .npn-field input[name="next_billing_date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
    background-color: #fef3c7;
}

.npn-admin-edit-side .npn-checkline {
    align-items: center;
    gap: 10px;
    color: #172033 !important;
    font-weight: 900;
}

.npn-admin-edit-side .npn-checkline input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #facc15;
}

.npn-admin-edit-side .npn-btn-warning,
.npn-admin-edit-side .npn-btn-warning:hover {
    background: linear-gradient(135deg, #facc15, #f59e0b) !important;
    color: #111827 !important;
    border-color: rgba(245,158,11,.36) !important;
    box-shadow: 0 14px 28px rgba(245,158,11,.22) !important;
}

/* =========================================================
   Account code badges (NPN-ABC-00)
========================================================= */
.npn-account-code-inline,
.npn-account-code-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    border-radius: 999px;
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(45, 212, 191, 0.16));
    border: 1px solid rgba(14, 165, 233, 0.22);
    color: #075985;
    font-weight: 800;
    letter-spacing: .02em;
    white-space: nowrap;
}

.npn-table-sub .npn-account-code-inline {
    margin-right: 4px;
    padding: 2px 8px;
    font-size: 11px;
}

.npn-user-cell .npn-account-code-inline {
    color: #0f766e;
    background: rgba(20, 184, 166, 0.1);
    border-color: rgba(20, 184, 166, 0.22);
}

.npn-customer-detail-head .npn-account-code-inline {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.68);
    border-color: rgba(148, 163, 184, 0.32);
}


.npn-diy-admin-table tbody tr td:last-child {
	width: 260px !important;
}
/* Custom service admin configuration */
.npn-custom-service-config {
    display: grid;
    gap: 18px;
}

.npn-custom-service-config .npn-custom-service-note {
    margin: 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.18);
    color: #334155;
}

.npn-visual-sections,
.npn-catalog-config,
.npn-catalog-folders {
    display: grid;
    gap: 14px;
}

.npn-visual-section-row,
.npn-catalog-folder-row {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    background: rgba(248, 250, 252, 0.82);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.npn-visual-section-head,
.npn-visual-pair-head,
.npn-catalog-folder-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.npn-visual-section-head strong,
.npn-catalog-folder-actions strong {
    color: #0f172a;
    font-size: 14px;
}

.npn-visual-pairs {
    display: grid;
    gap: 12px;
}

.npn-visual-pair-row {
    padding: 14px;
    border-radius: 16px;
    border: 1px dashed rgba(100, 116, 139, 0.34);
    background: rgba(255, 255, 255, 0.72);
}

.npn-visual-pair-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.npn-visual-image-input {
    display: grid;
    gap: 8px;
}

.npn-visual-image-input label,
.npn-catalog-folder-row label {
    font-size: 12px;
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.npn-visual-image-input .npn-image-picker-line,
.npn-catalog-folder-actions .npn-image-picker-line {
    display: flex;
    gap: 8px;
}

.npn-visual-image-input input,
.npn-catalog-folder-row input {
    width: 100%;
}

.npn-visual-image-input img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: #e2e8f0;
}

.npn-catalog-image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.npn-catalog-image-preview figure {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.26);
    background: #fff;
}

.npn-catalog-image-preview img {
    display: block;
    width: 100%;
    height: 74px;
    object-fit: cover;
}

.npn-catalog-image-preview figcaption {
    display: block;
    padding: 6px;
    font-size: 11px;
    color: #475569;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.npn-saved-custom-detail {
    margin-top: 18px;
}

.npn-saved-catalog-grid .npn-customer-file-card em {
    display: block;
    margin-top: 4px;
    font-style: normal;
    color: #64748b;
    font-size: 12px;
}

@media (max-width: 780px) {
    .npn-visual-pair-grid {
        grid-template-columns: 1fr;
    }

    .npn-visual-section-head,
    .npn-visual-pair-head,
    .npn-catalog-folder-actions {
        align-items: flex-start;
        flex-direction: column;
    }
}

.npn-visual-image-input > div {
    display: flex;
    gap: 8px;
    align-items: center;
}

.npn-visual-image-input > div input {
    min-width: 0;
}

/* Project / Order merged admin detail */
.npn-project-order-table .npn-status-success,
.npn-project-order-table .npn-status-warning {
    white-space: nowrap;
}
.npn-admin-request-detail-card .npn-edit-body,
.npn-project-order-merged-card .npn-edit-body {
    display: grid;
    gap: 14px;
}
.npn-admin-request-grid > div {
    min-width: 0;
}
.npn-admin-request-subtitle {
    margin: 14px 0 8px;
    color: #eaf6ff;
    font-size: 14px;
    font-weight: 900;
}
.npn-admin-selected-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.npn-admin-selected-list span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 11px;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, .22);
    background: rgba(56, 189, 248, .1);
    color: #dff7ff;
    font-weight: 800;
    font-size: 12px;
}
.npn-admin-request-file-grid .npn-customer-file-card em,
.npn-saved-image-code {
    display: block;
    margin-top: 4px;
    color: #67e8f9;
    font-style: normal;
    font-size: 12px;
    font-weight: 900;
}
.npn-admin-note-card p {
    margin: 0;
    color: rgba(225, 241, 255, .82);
    line-height: 1.65;
}

/* Professional Project / Order admin detail */
.npn-admin-order-hero .npn-edit-body {
    gap: 18px;
}

.npn-admin-order-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(56, 189, 248, .18);
    background: linear-gradient(135deg, rgba(14, 165, 233, .12), rgba(15, 23, 42, .18));
}

.npn-admin-order-title-row h2 {
    margin: 4px 0 6px;
    color: #f8fbff;
    font-size: 26px;
    line-height: 1.2;
}

.npn-admin-order-title-row p {
    margin: 0;
    color: rgba(226, 242, 255, .74);
}

.npn-admin-eyebrow {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(103, 232, 249, .24);
    background: rgba(103, 232, 249, .1);
    color: #9ff4ff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.npn-admin-order-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.npn-admin-order-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 12px;
}

.npn-admin-order-stat-grid > div,
.npn-admin-order-customer-box > div,
.npn-admin-request-summary-grid > div {
    min-width: 0;
    padding: 14px 15px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, .16);
    background: rgba(15, 23, 42, .38);
}

.npn-admin-order-stat-grid span,
.npn-admin-order-customer-box span,
.npn-admin-request-summary-grid span {
    display: block;
    margin-bottom: 5px;
    color: rgba(203, 213, 225, .72);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .035em;
}

.npn-admin-order-stat-grid strong,
.npn-admin-order-customer-box strong,
.npn-admin-request-summary-grid strong {
    display: block;
    overflow-wrap: anywhere;
    color: #f8fbff;
    font-size: 16px;
    line-height: 1.35;
}

.npn-admin-order-customer-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 12px;
}

.npn-admin-order-customer-box em,
.npn-admin-order-customer-box p {
    display: block;
    margin: 6px 0 0;
    color: rgba(226, 242, 255, .72);
    font-style: normal;
    line-height: 1.55;
}

.npn-admin-order-detail-card .npn-panel-head h3,
.npn-project-order-merged-card .npn-panel-head h3 {
    letter-spacing: -.02em;
}

.npn-admin-image-code,
.npn-saved-image-code {
    display: inline-flex !important;
    width: fit-content;
    margin-top: 8px !important;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(34, 211, 238, .15);
    color: #67e8f9 !important;
    font-size: 12px;
    font-weight: 950;
    line-height: 1;
}

.npn-admin-saved-image-card span,
.npn-admin-saved-image-card em {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.npn-admin-catalog-choice-grid .npn-customer-file-card {
    position: relative;
}

.npn-admin-catalog-choice-grid .npn-customer-file-card::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #22d3ee;
    color: #062032;
    font-weight: 950;
    box-shadow: 0 8px 18px rgba(34, 211, 238, .28);
}

.npn-admin-request-detail-card .npn-empty-state,
.npn-project-order-merged-card .npn-empty-state {
    border-radius: 16px;
}

@media (max-width: 900px) {
    .npn-admin-order-title-row,
    .npn-admin-order-customer-box {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .npn-admin-order-badges {
        justify-content: flex-start;
    }
}


/* =========================================================
   ADMIN PROJECT / ORDER DETAIL - LIGHT ADMIN STYLE OVERRIDE
   v26: delivery-only card + combined customer notes
========================================================= */

.npn-admin-request-detail-card,
.npn-project-order-merged-card,
.npn-admin-note-card,
.npn-admin-uploaded-files-card,
.npn-project-delivery-card {
	background: #ffffff !important;
	border: 1px solid #dfeaf7 !important;
	box-shadow: 0 16px 42px rgba(15, 23, 42, .07) !important;
	color: #0f172a !important;
}

.npn-admin-request-detail-card .npn-panel-head,
.npn-project-order-merged-card .npn-panel-head,
.npn-admin-note-card .npn-panel-head,
.npn-admin-uploaded-files-card .npn-panel-head,
.npn-project-delivery-card .npn-panel-head {
	background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
	border-bottom: 1px solid #e5edf6 !important;
}

.npn-admin-request-detail-card .npn-panel-head h3,
.npn-project-order-merged-card .npn-panel-head h3,
.npn-admin-note-card .npn-panel-head h3,
.npn-admin-uploaded-files-card .npn-panel-head h3,
.npn-project-delivery-card .npn-panel-head h3 {
	color: #07152b !important;
}

.npn-admin-request-detail-card .npn-panel-head p,
.npn-project-order-merged-card .npn-panel-head p,
.npn-admin-note-card .npn-panel-head p,
.npn-admin-uploaded-files-card .npn-panel-head p,
.npn-project-delivery-card .npn-panel-head p {
	color: #64748b !important;
}

.npn-admin-request-detail-card .npn-edit-body,
.npn-project-order-merged-card .npn-edit-body,
.npn-admin-note-card .npn-edit-body,
.npn-admin-uploaded-files-card .npn-edit-body,
.npn-project-delivery-card .npn-edit-body {
	background: #ffffff !important;
	color: #0f172a !important;
}

.npn-admin-request-grid > div,
.npn-admin-order-meta-grid > div,
.npn-admin-order-customer-box,
.npn-admin-note-text,
.npn-admin-note-files {
	border: 1px solid #e5edf6 !important;
	background: #f8fbff !important;
	border-radius: 16px !important;
	box-shadow: none !important;
}

.npn-admin-request-grid span,
.npn-admin-order-meta-grid span,
.npn-admin-order-customer-box span {
	color: #64748b !important;
	font-weight: 800 !important;
}

.npn-admin-request-grid strong,
.npn-admin-order-meta-grid strong,
.npn-admin-order-customer-box strong,
.npn-admin-request-summary-grid strong {
	color: #07152b !important;
}

.npn-admin-request-subtitle {
	margin: 18px 0 10px !important;
	color: #07152b !important;
	font-size: 14px !important;
	font-weight: 950 !important;
}

.npn-admin-selected-list span {
	border-color: #c8edff !important;
	background: #ecf9ff !important;
	color: #075985 !important;
}

.npn-admin-note-combined-body {
	display: grid !important;
	gap: 16px !important;
}

.npn-admin-note-text,
.npn-admin-note-files {
	padding: 16px !important;
}

.npn-admin-note-text h4,
.npn-admin-note-files h4 {
	margin: 0 0 10px !important;
	color: #07152b !important;
	font-size: 14px !important;
	font-weight: 950 !important;
}

.npn-admin-note-card p,
.npn-admin-note-text p {
	margin: 0 !important;
	color: #334155 !important;
	line-height: 1.7 !important;
}

.npn-admin-note-files .npn-customer-file-grid,
.npn-admin-uploaded-files-card .npn-customer-file-grid,
.npn-admin-request-detail-card .npn-customer-file-grid {
	margin-top: 0 !important;
}

.npn-customer-file-card,
.npn-admin-saved-image-card,
.npn-detail-admin-image-row figure {
	border: 1px solid #dfeaf7 !important;
	background: #ffffff !important;
	box-shadow: 0 10px 28px rgba(15, 23, 42, .06) !important;
	color: #0f172a !important;
}

.npn-customer-file-card strong,
.npn-admin-saved-image-card strong,
.npn-detail-admin-image-row figure strong {
	color: #07152b !important;
}

.npn-customer-file-card span,
.npn-customer-file-card em,
.npn-admin-saved-image-card span,
.npn-admin-saved-image-card em,
.npn-detail-admin-image-row figcaption {
	color: #64748b !important;
}

.npn-admin-image-code,
.npn-saved-image-code {
	background: #fff7cc !important;
	color: #7c5b00 !important;
	border: 1px solid #ffe58a !important;
}

.npn-project-delivery-card .npn-tab-title-line,
.npn-delivery-title-line {
	background: #f8fbff !important;
	border: 1px solid #dfeaf7 !important;
	color: #07152b !important;
}

.npn-project-delivery-card .npn-tab-title-line strong,
.npn-delivery-title-line strong {
	color: #07152b !important;
}

.npn-project-delivery-card .npn-tab-title-line span,
.npn-delivery-title-line span {
	color: #64748b !important;
}



.npn-admin-request-detail-card .npn-empty-state,
.npn-project-order-merged-card .npn-empty-state,
.npn-admin-uploaded-files-card .npn-empty-state,
.npn-admin-note-card .npn-empty-state {
	background: #f8fbff !important;
	border: 1px dashed #cbdaf0 !important;
	color: #64748b !important;
}

@media (max-width: 760px) {
	.npn-admin-note-text,
	.npn-admin-note-files {
		padding: 14px !important;
	}
}


/* =========================================================
   PROJECT / ORDER DETAIL LIGHT ADMIN OVERRIDE
   Làm rõ phần tổng quan đơn hàng theo style admin sáng.
========================================================= */
.npn-project-order-merged-card,
.npn-admin-order-hero,
.npn-admin-request-detail-card,
.npn-admin-customer-note-card,
.npn-admin-uploaded-files-card,
.npn-admin-delivery-card,
.npn-project-delivery-card,
.npn-project-media-tabs-card {
    background: #ffffff !important;
    border: 1px solid #dbe7f3 !important;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .08) !important;
}

.npn-project-order-merged-card .npn-panel-head,
.npn-admin-order-hero .npn-panel-head,
.npn-admin-request-detail-card .npn-panel-head,
.npn-admin-customer-note-card .npn-panel-head,
.npn-admin-uploaded-files-card .npn-panel-head,
.npn-admin-delivery-card .npn-panel-head,
.npn-project-delivery-card .npn-panel-head,
.npn-project-media-tabs-card .npn-panel-head {
    background: #ffffff !important;
    border-bottom: 1px solid #e5edf6 !important;
}

.npn-project-order-merged-card .npn-panel-head h3,
.npn-admin-order-hero .npn-panel-head h3,
.npn-admin-request-detail-card .npn-panel-head h3,
.npn-admin-customer-note-card .npn-panel-head h3,
.npn-admin-uploaded-files-card .npn-panel-head h3,
.npn-admin-delivery-card .npn-panel-head h3,
.npn-project-delivery-card .npn-panel-head h3,
.npn-project-media-tabs-card .npn-panel-head h3 {
    color: #07152b !important;
}

.npn-project-order-merged-card .npn-panel-head p,
.npn-admin-order-hero .npn-panel-head p,
.npn-admin-request-detail-card .npn-panel-head p,
.npn-admin-customer-note-card .npn-panel-head p,
.npn-admin-uploaded-files-card .npn-panel-head p,
.npn-admin-delivery-card .npn-panel-head p,
.npn-project-delivery-card .npn-panel-head p,
.npn-project-media-tabs-card .npn-panel-head p {
    color: #64748b !important;
}

.npn-admin-order-title-row {
    background: linear-gradient(135deg, #e0f7ff 0%, #f7fbff 58%, #eef6ff 100%) !important;
    border: 1px solid #bae6fd !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 14px 34px rgba(14, 165, 233, .12) !important;
}

.npn-admin-order-title-row h2 {
    color: #07152b !important;
}

.npn-admin-order-title-row p {
    color: #475569 !important;
}

.npn-admin-eyebrow {
    background: #dff8ff !important;
    border-color: #9ee8fb !important;
    color: #036782 !important;
}

.npn-admin-order-stat-grid > div,
.npn-admin-order-customer-box > div,
.npn-admin-request-summary-grid > div {
    background: #f8fbff !important;
    border: 1px solid #dbe7f3 !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .045) !important;
}

.npn-admin-order-stat-grid span,
.npn-admin-order-customer-box span,
.npn-admin-request-summary-grid span {
    color: #64748b !important;
}

.npn-admin-order-stat-grid strong,
.npn-admin-order-customer-box strong,
.npn-admin-request-summary-grid strong {
    color: #07152b !important;
}

.npn-admin-order-customer-box em,
.npn-admin-order-customer-box p {
    color: #475569 !important;
}

.npn-admin-request-subtitle {
    color: #07152b !important;
}

.npn-admin-selected-list span {
    background: #effbff !important;
    border-color: #bae6fd !important;
    color: #075985 !important;
}

.npn-admin-note-card p,
.npn-admin-note-text p {
    color: #334155 !important;
}

.npn-admin-note-text,
.npn-admin-note-files {
    background: #f8fbff !important;
    border: 1px solid #dbe7f3 !important;
    border-radius: 16px !important;
    padding: 14px !important;
}

.npn-admin-note-text h4,
.npn-admin-note-files h4 {
    color: #07152b !important;
}

.npn-customer-file-card,
.npn-admin-saved-image-card {
    background: #ffffff !important;
    border: 1px solid #dbe7f3 !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06) !important;
}

.npn-customer-file-card strong,
.npn-admin-saved-image-card strong {
    color: #07152b !important;
}

.npn-customer-file-card span,
.npn-customer-file-card em,
.npn-admin-saved-image-card span,
.npn-admin-saved-image-card em {
    color: #64748b !important;
}

button[name="npn_admin_action"] {
	width: 100%;
	margin-top: 14px;
}
/* Order progress */
.npn-order-progress-mini { min-width: 150px; display: grid; gap: 6px; }
.npn-order-progress-mini > div { height: 8px; border-radius: 999px; background: rgba(15,23,42,.12); overflow: hidden; }
.npn-order-progress-mini > div span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(135deg, #06b6d4, #2563eb); }
.npn-order-progress-mini small { color: #64748b; font-size: 12px; }

.npn-customer-stat-box.is-debt strong {
    color: #fbbf24;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.14);
}
.npn-customer-stat-box.is-debt em {
    color: #fde68a;
}

/* =========================================================
   Admin page repeaters - Contact services / FAQ items
========================================================= */
.npn-admin-repeat-field {
    display: block;
}

.npn-admin-repeat-field > label {
    display: block;
    margin-bottom: 10px;
}

.npn-repeat-list {
    display: grid;
    gap: 12px;
}

.npn-repeat-row {
    position: relative;
    border: 1px solid rgba(12, 64, 132, 0.14);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(246,250,255,0.96));
    box-shadow: 0 12px 30px rgba(15, 33, 65, 0.06);
}

.npn-repeat-row-inline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 10px;
    align-items: center;
    padding: 10px;
}

.npn-repeat-row-inline input,
.npn-repeat-row-faq input,
.npn-repeat-row-faq textarea {
    width: 100%;
}

.npn-repeat-row-faq {
    display: grid;
    gap: 12px;
    padding: 14px;
}

.npn-repeat-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #0b1732;
    font-family: 'Manrope-Bold', sans-serif;
}

.npn-repeat-remove {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 72, 119, 0.28);
    border-radius: 13px;
    background: rgba(255, 72, 119, 0.08);
    color: #cf244f;
    cursor: pointer;
    font-size: 20px;
    font-family: 'Manrope-ExtraBold', sans-serif;
    line-height: 1;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.npn-repeat-remove:hover {
    transform: translateY(-1px);
    background: rgba(255, 72, 119, 0.14);
    border-color: rgba(255, 72, 119, 0.46);
}

.npn-repeat-add {
    margin-top: 12px;
    min-height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    color: #041223;
    background: linear-gradient(135deg, #37f1ff, #11c8ff 52%, #ffc91f);
    font-family: 'Manrope-Bold', sans-serif;
    box-shadow: 0 12px 26px rgba(17, 200, 255, 0.18);
}

.npn-admin-repeat-field small {
    display: block;
    margin-top: 9px;
    color: #6b7895;
    line-height: 1.5;
}

.npn-repeat-row-newsroom {
    display: grid;
    gap: 14px;
    padding: 14px;
}

.npn-repeat-row-newsroom .npn-seo-form-grid {
    gap: 12px;
}

.npn-repeat-row-newsroom input,
.npn-repeat-row-newsroom textarea {
    width: 100%;
}

.npn-repeat-row-newsroom .npn-media-field {
    align-self: start;
}

/* Pricing page admin repeaters */
.npn-pricing-layout-admin .npn-repeat-row-pricing {
    border-color: rgba(14, 165, 233, .28);
    background: linear-gradient(180deg, rgba(248, 252, 255, .98), rgba(241, 247, 255, .92));
}

.npn-pricing-layout-admin .npn-repeat-row-pricing .npn-repeat-row-head strong:before {
    content: 'PR';
    margin-right: 8px;
}

/* Customer detail PayPal manual top-up mail box */
.npn-paypal-mail-card {
    border-color: rgba(29, 213, 226, .32);
}
.npn-paypal-mail-card .npn-panel-head h3::before {
    content: "✉";
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-right: 8px;
    border-radius: 10px;
    background: rgba(29, 213, 226, .12);
    color: #0caec1;
    font-size: 14px;
    vertical-align: middle;
}

/* Manual wallet transaction edit inside customer detail */
.npn-wallet-txn-edit {
    position: relative;
    min-width: 170px;
}
.npn-wallet-txn-edit summary {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 800;
    color: #67e8f9;
    background: rgba(24, 220, 228, 0.12);
    border: 1px solid rgba(24, 220, 228, 0.34);
    list-style: none;
}
.npn-wallet-txn-edit summary::-webkit-details-marker {
    display: none;
}
.npn-wallet-txn-edit[open] summary {
    color: #001428;
    background: linear-gradient(135deg, #67e8f9, #22d3ee);
}
.npn-wallet-txn-edit-form {
    margin-top: 10px;
    min-width: 260px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(103, 232, 249, 0.22);
    background: rgba(4, 15, 32, 0.94);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}
.npn-wallet-txn-edit-form label {
    display: block;
    margin: 0 0 6px;
    font-size: 12px;
    color: rgba(225, 241, 255, 0.72);
    font-weight: 800;
}
.npn-wallet-txn-edit-form input,
.npn-wallet-txn-edit-form textarea {
    width: 100%;
    margin: 0 0 10px;
}
.npn-wallet-txn-edit-form .npn-btn {
    width: 100%;
}
.npn-muted {
    color: rgba(225, 241, 255, 0.45);
}

/* Customer detail compact pagination */
.npn-customer-section-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}
.npn-customer-section-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.npn-customer-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e6eef8;
}
.npn-customer-pagination .npn-admin-pagination {
    margin-top: 0;
    justify-content: flex-end;
}
.npn-pagination-summary {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}
.npn-page-number.is-disabled {
    opacity: 0.42;
    pointer-events: none;
    background: #f8fafc;
}
.npn-page-ellipsis {
    color: #64748b;
    font-weight: 900;
    padding: 0 3px;
}
@media (max-width: 720px) {
    .npn-customer-pagination {
        align-items: stretch;
    }
    .npn-customer-pagination .npn-admin-pagination {
        justify-content: flex-start;
    }
}

/* Saved catalog mapping display */
.npn-saved-catalog-mapping { display: grid; gap: 14px; }
.npn-saved-catalog-map-row { display: grid; gap: 12px; padding: 14px; border: 1px solid #dbe7f3; border-radius: 18px; background: #f8fbff; }
.npn-saved-catalog-file span { display: block; font-size: 12px; color: #64748b; margin-bottom: 4px; }
.npn-saved-catalog-file strong { color: #0f172a; }
.npn-customer-debt-history-table td, .npn-customer-debt-history-table th { vertical-align: middle; }

.npn-admin-create-order-box{
    margin-top:16px;
    padding:16px;
    border:1px solid rgba(28,67,112,.14);
    border-radius:16px;
    background:rgba(245,248,252,.88);
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    align-items:center;
}
.npn-admin-create-order-box label{font-weight:800;color:#12233f;}
.npn-admin-create-order-box input{max-width:180px;}
.npn-admin-create-order-box small{width:100%;color:#6d7890;}
.npn-btn-small{padding:6px 10px;font-size:12px;line-height:1.2;}

/* Admin realtime notifications */
.npn-notification-wrap {
    position: relative;
}
.npn-bell {
    position: relative;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.npn-bell:hover {
    border-color: #b7d4ff;
    box-shadow: 0 10px 24px rgba(15, 94, 210, .12);
    transform: translateY(-1px);
}
.npn-bell-icon {
    line-height: 1;
}
.npn-notification-count {
    position: absolute;
    right: -6px;
    top: -7px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}
.npn-notification-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    width: min(420px, calc(100vw - 34px));
    background: #fff;
    border: 1px solid #dbe7f3;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .20);
    overflow: hidden;
    z-index: 120;
}
.npn-notification-head {
    padding: 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid #eef2f7;
    background: linear-gradient(135deg, #f8fbff, #eef6ff);
}
.npn-notification-head strong {
    display: block;
    color: #0f172a;
    font-size: 15px;
    margin-bottom: 3px;
}
.npn-notification-head span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}
.npn-notification-head button {
    border: 1px solid #cfe0f5;
    border-radius: 999px;
    background: #fff;
    color: #125fc8;
    font-weight: 800;
    font-size: 12px;
    padding: 8px 10px;
    cursor: pointer;
    white-space: nowrap;
}
.npn-notification-list {
    max-height: 430px;
    overflow: auto;
    padding: 8px;
}
.npn-notification-empty {
    padding: 28px 18px;
    color: #64748b;
    text-align: center;
    font-weight: 700;
}
.npn-notification-item {
    display: grid;
    grid-template-columns: 10px 1fr;
    gap: 12px;
    padding: 13px 12px;
    border-radius: 14px;
    text-decoration: none;
    color: #0f172a;
    border: 1px solid transparent;
}
.npn-notification-item:hover {
    background: #f8fbff;
    border-color: #dbe7f3;
}
.npn-notification-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    margin-top: 7px;
    background: #cbd5e1;
}
.npn-notification-item.is-unread .npn-notification-dot {
    background: #0ea5e9;
    box-shadow: 0 0 0 5px rgba(14, 165, 233, .14);
}
.npn-notification-copy strong,
.npn-notification-copy em,
.npn-notification-copy time {
    display: block;
}
.npn-notification-copy strong {
    font-size: 14px;
    margin-bottom: 4px;
    color: #0f172a;
}
.npn-notification-copy em {
    font-style: normal;
    color: #475569;
    font-size: 13px;
    line-height: 1.4;
}
.npn-notification-copy time {
    color: #94a3b8;
    font-size: 12px;
    margin-top: 6px;
    font-weight: 700;
}
.npn-admin-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    width: min(380px, calc(100vw - 48px));
    padding: 15px 16px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #dbe7f3;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
    color: #0f172a;
    text-decoration: none;
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}
.npn-admin-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.npn-admin-toast strong,
.npn-admin-toast span {
    display: block;
}
.npn-admin-toast strong {
    font-size: 15px;
    margin-bottom: 5px;
}
.npn-admin-toast span {
    color: #475569;
    font-size: 13px;
    line-height: 1.4;
}
@media (max-width: 720px) {
    .npn-search {
        width: 180px;
    }
    .npn-notification-panel {
        right: -54px;
    }
}

/* Customer balance popup on admin order detail */
.npn-customer-balance-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.npn-customer-balance-modal.is-open {
    display: flex;
}

.npn-customer-balance-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 8, 18, .58);
    backdrop-filter: blur(8px);
}

.npn-customer-balance-modal-card {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    border: 1px solid rgba(148, 198, 255, .35);
    border-radius: 24px;
    background: linear-gradient(145deg, #ffffff 0%, #f6fbff 100%);
    box-shadow: 0 28px 80px rgba(10, 26, 54, .25);
    color: #06122b;
    overflow: hidden;
}

.npn-customer-balance-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(125, 164, 212, .45);
    border-radius: 999px;
    background: #fff;
    color: #0b1b36;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.npn-customer-balance-modal-head {
    padding: 26px 28px 18px;
    border-bottom: 1px solid rgba(170, 196, 225, .55);
}

.npn-customer-balance-modal-head span,
.npn-customer-balance-modal-total span,
.npn-customer-balance-modal-grid span {
    display: block;
    color: #60718c;
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.npn-customer-balance-modal-head h3 {
    margin: 7px 44px 4px 0;
    font-size: 27px;
    line-height: 1.1;
    letter-spacing: -.03em;
}

.npn-customer-balance-modal-head p {
    margin: 0;
    color: #63738d;
    font-size: 15px;
}

.npn-customer-balance-modal-total {
    margin: 22px 28px 14px;
    padding: 18px;
    border: 1px solid rgba(34, 211, 238, .4);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(34, 211, 238, .14), rgba(14, 165, 233, .08));
}

.npn-customer-balance-modal-total strong {
    display: block;
    margin-top: 8px;
    font-size: 34px;
    line-height: 1;
    letter-spacing: -.03em;
    color: #091a33;
}

.npn-customer-balance-modal-grid {
    display: grid;
    gap: 12px;
    padding: 0 28px 28px;
}

.npn-customer-balance-modal-grid > div {
    padding: 15px 16px;
    border: 1px solid rgba(166, 195, 230, .65);
    border-radius: 16px;
    background: #f8fbff;
}

.npn-customer-balance-modal-grid strong {
    display: block;
    margin-top: 7px;
    color: #06122b;
    font-size: 15px;
    line-height: 1.4;
    word-break: break-word;
}

@media (max-width: 640px) {
    .npn-customer-balance-modal {
        padding: 14px;
    }

    .npn-customer-balance-modal-head,
    .npn-customer-balance-modal-grid {
        padding-left: 18px;
        padding-right: 18px;
    }

    .npn-customer-balance-modal-total {
        margin-left: 18px;
        margin-right: 18px;
    }
}

/* Dashboard tracking and test debt tools */
.npn-dashboard-tracking-panel {
    margin-top: 22px;
}

.npn-dashboard-seed-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.npn-dashboard-access-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.npn-dashboard-access-box {
    border: 1px solid rgba(140, 170, 210, .28);
    border-radius: 18px;
    background: rgba(255, 255, 255, .64);
    padding: 16px;
    min-width: 0;
}

.npn-dashboard-access-box h4 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 800;
    color: #07142d;
}

.npn-access-row {
    padding: 12px 0;
    border-top: 1px solid rgba(120, 150, 190, .22);
}

.npn-access-row:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.npn-access-row strong,
.npn-access-row span,
.npn-access-row small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.npn-access-row strong {
    font-size: 14px;
    color: #07142d;
}

.npn-access-row span {
    margin-top: 4px;
    color: #49617f;
    font-size: 13px;
}

.npn-access-row small {
    margin-top: 5px;
    color: #75859a;
    font-size: 12px;
}

.npn-inline-action-form {
    display: inline-flex;
    margin: 0;
}

@media (max-width: 1180px) {
    .npn-dashboard-access-grid {
        grid-template-columns: 1fr;
    }
}

/* Dashboard login chart */
.npn-dashboard-access-grid-chart {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1fr);
}

.npn-dashboard-login-chart-box {
    min-height: 0;
}

.npn-dashboard-chart-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.npn-dashboard-chart-head h4 {
    margin-bottom: 4px;
}

.npn-dashboard-chart-head p {
    margin: 0;
    color: #657891;
    font-size: 13px;
}

.npn-dashboard-chart-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin: 0;
}

.npn-dashboard-chart-filter select,
.npn-dashboard-chart-filter input[type="date"] {
    min-height: 38px;
    border: 1px solid rgba(120, 150, 190, .34);
    border-radius: 12px;
    background: rgba(255, 255, 255, .86);
    padding: 0 10px;
    color: #0c1a33;
    font-weight: 700;
}

.npn-dashboard-login-chart {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(28px, 1fr);
    align-items: end;
    gap: 9px;
    min-height: 214px;
    overflow-x: auto;
    padding: 14px 8px 4px;
    border: 1px solid rgba(120, 150, 190, .2);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(239, 247, 255, .88), rgba(255, 255, 255, .72));
}

.npn-login-chart-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    min-width: 28px;
}

.npn-login-chart-bar-wrap {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 170px;
    width: 100%;
}

.npn-login-chart-value {
    position: absolute;
    bottom: 100%;
    transform: translateY(-2px);
    color: #516680;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.npn-login-chart-bar {
    display: block;
    width: 100%;
    max-width: 24px;
    min-height: 8px;
    border-radius: 999px 999px 6px 6px;
    background: linear-gradient(180deg, #20dfe3, #158fe8);
    box-shadow: 0 8px 20px rgba(21, 143, 232, .18);
}

.npn-login-chart-day small {
    margin-top: 8px;
    color: #6d7f96;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.npn-dashboard-chart-note {
    margin: 12px 0 0;
    color: #6d7f96;
    font-size: 13px;
}

@media (max-width: 1280px) {
    .npn-dashboard-access-grid-chart {
        grid-template-columns: 1fr;
    }

    .npn-dashboard-chart-head {
        flex-direction: column;
    }

    .npn-dashboard-chart-filter {
        justify-content: flex-start;
    }
}

.npn-login-chart-bar-wrap {
    flex-direction: column;
    gap: 6px;
}

.npn-login-chart-value {
    position: static;
    transform: none;
    line-height: 1;
}

/* v19 Chart.js dashboard + debt detail popup + ajax loading */
.npn-content.is-ajax-loading { opacity: .62; pointer-events: none; position: relative; }
.npn-content.is-ajax-loading::after { content: 'Đang tải...'; position: fixed; right: 28px; bottom: 28px; padding: 12px 18px; border-radius: 999px; background: #0f172a; color: #fff; box-shadow: 0 18px 45px rgba(15,23,42,.22); z-index: 9999; }
.npn-dashboard-chart-filter.is-loading { opacity: .65; pointer-events: none; }
.npn-dashboard-chart-canvas-wrap { height: 310px; padding: 18px; border-radius: 24px; border: 1px solid rgba(14,165,233,.18); background: linear-gradient(180deg, rgba(240,249,255,.95), rgba(255,255,255,.96)); box-shadow: inset 0 1px 0 rgba(255,255,255,.85); }
.npn-dashboard-chart-canvas-wrap canvas { width: 100% !important; height: 100% !important; }
.npn-dashboard-kpi-action,
.npn-customer-debt-detail-btn { margin-top: 10px; border: 0; border-radius: 999px; padding: 8px 12px; background: #0ea5e9; color: #fff; font-weight: 800; cursor: pointer; box-shadow: 0 10px 22px rgba(14,165,233,.22); }
.npn-dashboard-kpi-action:hover,
.npn-customer-debt-detail-btn:hover { transform: translateY(-1px); filter: brightness(1.02); }
.npn-debt-detail-modal { position: fixed; inset: 0; z-index: 10020; display: none; align-items: center; justify-content: center; padding: 24px; }
.npn-debt-detail-modal.is-open { display: flex; }
.npn-debt-detail-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.54); backdrop-filter: blur(6px); }
.npn-debt-detail-card { position: relative; z-index: 1; width: min(1040px, 96vw); max-height: 88vh; overflow: auto; border-radius: 28px; background: #fff; border: 1px solid rgba(148,163,184,.35); box-shadow: 0 30px 90px rgba(15,23,42,.32); }
.npn-debt-detail-close { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid #e2e8f0; background: #fff; font-size: 24px; cursor: pointer; }
.npn-debt-detail-head { padding: 26px 30px 18px; border-bottom: 1px solid #e2e8f0; background: linear-gradient(135deg, #f8fafc, #eff6ff); }
.npn-debt-detail-head span { text-transform: uppercase; letter-spacing: .08em; color: #0284c7; font-size: 12px; font-weight: 900; }
.npn-debt-detail-head h3 { margin: 5px 0 4px; color: #0f172a; font-size: 26px; }
.npn-debt-detail-head p { margin: 0; color: #64748b; }
.npn-debt-detail-body { padding: 24px 30px 30px; }
.npn-debt-detail-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.npn-debt-detail-summary > div { padding: 15px; border-radius: 18px; border: 1px solid #dbeafe; background: #f8fbff; }
.npn-debt-detail-summary span { display: block; color: #64748b; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.npn-debt-detail-summary strong { display: block; margin-top: 6px; color: #0f172a; font-size: 18px; }
.npn-debt-detail-summary small { display: block; margin-top: 5px; color: #64748b; line-height: 1.4; }
.npn-debt-detail-modal-content h4 { margin: 22px 0 12px; color: #0f172a; font-size: 18px; }
.npn-debt-detail-table-wrap { overflow-x: auto; border: 1px solid #e2e8f0; border-radius: 18px; }
.npn-debt-detail-table td small { display: block; color: #64748b; margin-top: 3px; }
.npn-debt-detail-history { display: grid; gap: 10px; }
.npn-debt-detail-history article { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 15px; border: 1px solid #e2e8f0; border-radius: 16px; background: #f8fafc; }
.npn-debt-detail-history strong, .npn-debt-detail-history span { color: #0f172a; font-weight: 800; }
.npn-debt-detail-history small { display: block; color: #64748b; margin-top: 3px; }
@media (max-width: 860px) { .npn-debt-detail-summary { grid-template-columns: 1fr 1fr; } .npn-debt-detail-history article { flex-direction: column; align-items: flex-start; } }
@media (max-width: 560px) { .npn-debt-detail-summary { grid-template-columns: 1fr; } .npn-debt-detail-body, .npn-debt-detail-head { padding-left: 18px; padding-right: 18px; } }

/* v20 global debt detail for all customer accounts */
.npn-debt-detail-all-table tr.no-debt td { color: #94a3b8; }
.npn-debt-detail-all-table tr.has-debt td:nth-child(4) strong { color: #dc2626; }
.npn-debt-detail-all-table .npn-btn-small { padding: 7px 10px; min-height: auto; border-radius: 999px; font-size: 12px; }
.npn-debt-detail-all-content .npn-debt-detail-table-wrap { max-height: 48vh; overflow: auto; }
.npn-debt-detail-all-content .npn-debt-detail-table thead th { position: sticky; top: 0; background: #f8fafc; z-index: 1; }

/* v22 refined deferred debt popup */
.npn-debt-detail-card {
    width: min(1120px, 96vw);
    max-height: 90vh;
    border-radius: 30px;
    overflow: hidden;
}
.npn-debt-detail-head {
    padding: 30px 34px 22px;
    background: linear-gradient(135deg, #f8fbff 0%, #eff6ff 48%, #ecfeff 100%);
}
.npn-debt-detail-head h3 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.04em; }
.npn-debt-detail-body { max-height: calc(90vh - 126px); overflow: auto; padding: 26px 34px 34px; }
.npn-debt-detail-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 26px;
}
.npn-debt-detail-summary > div {
    position: relative;
    min-height: 122px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid #dbeafe;
    background: linear-gradient(145deg, #ffffff, #f8fbff);
    box-shadow: 0 16px 38px rgba(15,23,42,.06);
    overflow: hidden;
}
.npn-debt-detail-summary > div::before {
    content: '';
    position: absolute;
    right: 16px;
    top: 16px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #0ea5e9;
    box-shadow: 0 0 20px rgba(14,165,233,.45);
}
.npn-debt-detail-summary span { margin-right: 22px; }
.npn-debt-detail-summary strong {
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: -0.03em;
    word-break: break-word;
}
.npn-debt-detail-summary small { line-height: 1.45; word-break: break-word; }
.npn-debt-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 26px 0 14px;
}
.npn-debt-section-head h4,
.npn-debt-detail-modal-content h4 { margin: 0; color: #0f172a; font-size: 19px; letter-spacing: -0.02em; }
.npn-debt-section-head p { margin: 5px 0 0; color: #64748b; line-height: 1.45; }
.npn-debt-detail-table-wrap {
    overflow-x: auto;
    border: 1px solid #dbeafe;
    border-radius: 22px;
    background: #f8fbff;
    padding: 8px;
}
.npn-debt-detail-table {
    width: 100%;
    min-width: 880px;
    border-collapse: separate;
    border-spacing: 0 10px;
}
.npn-debt-detail-table th {
    padding: 6px 12px;
    color: #64748b;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    text-align: left;
    white-space: nowrap;
}
.npn-debt-detail-table td {
    padding: 14px 12px;
    background: #fff;
    border-top: 1px solid #e0f2fe;
    border-bottom: 1px solid #e0f2fe;
    vertical-align: middle;
    white-space: nowrap;
}
.npn-debt-detail-table td:first-child { border-left: 1px solid #e0f2fe; border-radius: 16px 0 0 16px; white-space: normal; min-width: 220px; }
.npn-debt-detail-table td:last-child { border-right: 1px solid #e0f2fe; border-radius: 0 16px 16px 0; }
.npn-debt-detail-table td small,
.npn-debt-history-main small,
.npn-debt-history-order small,
.npn-debt-history-money small { display: block; margin-top: 4px; color: #64748b; line-height: 1.35; }
.npn-debt-order-code { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 10px; border-radius: 999px; background: #ecfeff; color: #0891b2; font-weight: 900; white-space: nowrap; }
.npn-debt-amount { color: #0284c7 !important; }
.npn-debt-detail-history { display: grid; gap: 12px; }
.npn-debt-detail-history article {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(160px, auto) minmax(170px, auto);
    align-items: center;
    gap: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid #dbeafe;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15,23,42,.05);
}
.npn-debt-history-order span { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; background: #eff6ff; color: #2563eb; font-weight: 900; }
.npn-debt-history-money { text-align: right; }
.npn-debt-history-money span { color: #0f172a; font-weight: 900; }
@media (max-width: 820px) {
    .npn-debt-detail-modal { padding: 16px; }
    .npn-debt-detail-head,
    .npn-debt-detail-body { padding-left: 20px; padding-right: 20px; }
    .npn-debt-detail-history article { grid-template-columns: 1fr; }
    .npn-debt-history-money { text-align: left; }
}

/* =========================================================
   Advanced AJAX filters: orders + customers
========================================================= */
.npn-order-filter-row-advanced,
.npn-customer-filter-row-advanced {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    align-items: center;
    width: 100%;
}

.npn-order-filter-row-advanced .npn-order-filter-keyword,
.npn-customer-filter-row-advanced .npn-customer-filter-keyword {
    grid-column: span 2;
    min-width: 260px;
}

.npn-order-filter-row-advanced input,
.npn-order-filter-row-advanced select,
.npn-customer-filter-row-advanced input,
.npn-customer-filter-row-advanced select {
    width: 100% !important;
    min-height: 46px;
    border-radius: 14px;
    font-weight: 800;
}

.npn-customer-filter-row-advanced input,
.npn-customer-filter-row-advanced select {
    border: 1px solid rgba(103, 232, 249, 0.16);
    background: rgba(13, 28, 62, 0.94);
    color: #fff;
    padding: 0 12px;
}

.npn-customer-list-head {
    margin: 12px 0 16px;
    color: rgba(225, 241, 255, .72);
    font-weight: 800;
}

.npn-customers-ajax-box.is-loading,
.npn-orders-ajax-box.is-loading {
    opacity: .55;
    pointer-events: none;
}

.npn-order-filter-reset,
.npn-customer-filter-reset {
    min-height: 46px;
    justify-content: center;
}

@media (max-width: 760px) {
    .npn-order-filter-row-advanced,
    .npn-customer-filter-row-advanced {
        grid-template-columns: 1fr !important;
    }

    .npn-order-filter-row-advanced .npn-order-filter-keyword,
    .npn-customer-filter-row-advanced .npn-customer-filter-keyword {
        grid-column: auto;
        min-width: 0;
    }
}

/* =========================
   Project Orders AJAX filters
========================= */
.npn-project-orders-ajax-page .npn-panel-head-stack {
	border-bottom: 1px solid #edf2f7;
}

.npn-project-order-filter-row {
	display: grid;
	grid-template-columns: minmax(260px, 1.5fr) repeat(5, minmax(155px, 1fr));
	gap: 10px;
	align-items: center;
	padding: 18px;
	border-bottom: 1px solid #edf2f7;
	background: #fbfdff;
}

.npn-project-order-filter-row input,
.npn-project-order-filter-row select {
	width: 100%;
	min-height: 44px !important;
	border: 1px solid #d9e4f2;
	border-radius: 12px !important;
	background: #fff;
	padding: 0 12px;
	color: #07152b;
	font-weight: 800;
	outline: none;
}

.npn-project-order-filter-row input:focus,
.npn-project-order-filter-row select:focus {
	border-color: #ffc400;
	box-shadow: 0 0 0 3px rgba(255, 196, 0, .14);
}

.npn-project-order-filter-keyword,
.npn-project-order-filter-customer {
	grid-column: span 2;
}

.npn-project-order-filter-reset {
	min-height: 44px;
}

.npn-project-order-list-head {
	padding: 14px 18px 0;
}

.npn-project-order-list-head p {
	margin: 0;
	color: #64748b;
	font-weight: 800;
}

.npn-project-orders-ajax-box {
	position: relative;
	padding-top: 12px;
}

.npn-project-orders-ajax-box.is-loading {
	opacity: .55;
	pointer-events: none;
}

.npn-admin-pagination.npn-project-order-ajax-pagination {
	padding: 18px;
}

@media (max-width: 1320px) {
	.npn-project-order-filter-row {
		grid-template-columns: repeat(4, minmax(150px, 1fr));
	}

	.npn-project-order-filter-keyword,
	.npn-project-order-filter-customer {
		grid-column: span 2;
	}
}

@media (max-width: 860px) {
	.npn-project-order-filter-row {
		grid-template-columns: 1fr 1fr;
	}

	.npn-project-order-filter-keyword,
	.npn-project-order-filter-customer {
		grid-column: span 2;
	}
}

@media (max-width: 560px) {
	.npn-project-order-filter-row {
		grid-template-columns: 1fr;
	}

	.npn-project-order-filter-keyword,
	.npn-project-order-filter-customer {
		grid-column: auto;
	}
}

/* External integrations and custom order config additions */
.npn-admin-dropbox-meta {
    display: block;
    margin-top: 6px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    word-break: break-all;
}

.npn-admin-dropbox-meta.is-error {
    color: #dc2626;
}

.npn-workflow-note-config .npn-order-config-note-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 760px) {
    .npn-workflow-note-config .npn-order-config-note-grid {
        grid-template-columns: 1fr;
    }
}

.npn-order-remove-inclusion {
    max-width: unset !important;
    min-width: unset;
    width: max-content !important;
}

/* Pricing/CAT layout patch: keep service configuration on the left and prevent right sidebar overlap. */
.npn-capability-pricing-layout {
	grid-template-columns: minmax(0, 1fr) 300px !important;
	align-items: start;
}
.npn-capability-pricing-layout .npn-admin-edit-main {
	min-width: 0;
	order: 1;
}
.npn-capability-pricing-layout .npn-admin-edit-side {
	order: 2;
	z-index: 1;
}
.npn-order-config-card,
.npn-order-config-builder {
	max-width: 100%;
	min-width: 0;
	overflow: visible;
}
.npn-order-config-class-head,
.npn-visual-section-head,
.npn-order-config-note-grid {
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
	align-items: end;
}
.npn-order-config-note-grid h4 {
	grid-column: 1 / -1;
	margin: 10px 0 0;
	font-size: 13px;
	font-weight: 900;
	color: #0f172a;
}
.npn-visual-pricing-config .npn-order-config-note-grid,
.npn-visual-workflow-pricing .npn-order-config-note-grid {
	display: grid;
	gap: 12px;
}
.npn-order-service-code,
.npn-order-service-subhint,
.npn-price-detail-line {
	display: block;
	font-size: 12px;
	line-height: 1.35;
	font-weight: 750;
	opacity: .82;
	margin-top: 5px;
}
.npn-price-detail-line {
	font-weight: 800;
}
.npn-order-detail-segment button .npn-price-detail-line,
.npn-custom-visual-tab .npn-price-detail-line,
.npn-staging-mode-tabs button .npn-price-detail-line {
	font-size: 11px;
	white-space: normal;
	opacity: .88;
}
.npn-staging-mode-tabs button strong {
	display: block;
	margin-bottom: 3px;
}
@media (max-width: 1280px) {
	.npn-capability-pricing-layout {
		grid-template-columns: minmax(0, 1fr) !important;
	}
	.npn-capability-pricing-layout .npn-admin-edit-side {
		position: static !important;
		order: 3;
	}
}

/* =========================================================
   v35 - Content management / service editor redesign
   Professional admin layout for service detail, pricing, VAT and sub-category config.
========================================================= */
.npn-admin-body {
    background: #eef3f8;
}
.npn-content {
    padding: 30px 28px 96px;
}
.npn-panel,
.npn-edit-card {
    border-color: #dfe8f3;
    border-radius: 22px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.055);
}
.npn-panel-head {
    padding: 22px 24px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}
.npn-panel-head h3 {
    font-size: 18px;
    letter-spacing: -0.02em;
}
.npn-panel-head p {
    font-size: 13px;
    line-height: 1.55;
    max-width: 860px;
}
.npn-edit-body {
    padding: 24px;
}
.npn-kicker {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 10px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.npn-content-toolbar-modern {
    padding: 26px 28px;
    border: 1px solid #dfe8f3;
    border-radius: 24px;
    background: radial-gradient(circle at top left, rgba(6, 182, 212, .15), transparent 34%), linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .055);
    margin-bottom: 18px;
}
.npn-content-toolbar-modern h2 {
    font-size: 30px;
    letter-spacing: -0.04em;
    margin-bottom: 8px;
}
.npn-content-toolbar-modern p {
    max-width: 840px;
    line-height: 1.6;
}
.npn-btn-large {
    min-height: 48px;
    padding: 0 20px;
    border-radius: 16px;
}
.npn-content-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.npn-content-summary-card {
    padding: 18px 20px;
    border: 1px solid #dfe8f3;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .045);
}
.npn-content-summary-card span {
    display: block;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 8px;
}
.npn-content-summary-card strong {
    display: block;
    color: #0f172a;
    font-size: 30px;
    line-height: 1;
    letter-spacing: -0.04em;
}
.npn-content-filter-panel-modern .npn-edit-body {
    padding: 18px;
}
.npn-content-filter-row {
    grid-template-columns: minmax(260px, 1fr) 210px 160px;
    gap: 12px;
}
.npn-content-filter-row input,
.npn-content-filter-row select,
.npn-field input[type="text"],
.npn-field input[type="password"],
.npn-field input[type="number"],
.npn-field input[type="color"],
.npn-field textarea,
.npn-field select {
    min-height: 46px;
    border-radius: 14px;
    border-color: #d4e0ee;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.npn-content-filter-row input:focus,
.npn-content-filter-row select:focus,
.npn-field input[type="text"]:focus,
.npn-field input[type="password"]:focus,
.npn-field input[type="number"]:focus,
.npn-field input[type="color"]:focus,
.npn-field textarea:focus,
.npn-field select:focus {
    outline: none;
    border-color: #06b6d4;
    box-shadow: 0 0 0 4px rgba(6, 182, 212, .12);
}
.npn-capabilities-table th {
    background: #f6f9fc;
    color: #475569;
    font-weight: 900;
    letter-spacing: .03em;
}
.npn-capabilities-table td {
    background: #fff;
}
.npn-capabilities-table tbody tr:hover td {
    background: #f8fbff;
}

/* Service edit hero */
.npn-service-edit-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 22px;
    padding: 28px;
    border: 1px solid #dfe8f3;
    border-radius: 26px;
    background: radial-gradient(circle at 8% 0%, rgba(34, 211, 238, .18), transparent 35%), linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 20px 54px rgba(15, 23, 42, .06);
}
.npn-service-edit-hero h2 {
    margin: 0 0 8px;
    font-size: 32px;
    line-height: 1.12;
    letter-spacing: -0.05em;
}
.npn-service-edit-hero p {
    margin: 0;
    color: #64748b;
    line-height: 1.65;
    max-width: 820px;
}
.npn-breadcrumb-mini {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #0284c7;
    font-size: 13px;
    font-weight: 900;
}
.npn-service-edit-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}
.npn-service-edit-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
    font-size: 12px;
    font-weight: 900;
}
.npn-service-edit-actions {
    flex-shrink: 0;
    align-items: center;
}
.npn-capability-pricing-layout {
    grid-template-columns: minmax(0, 1fr) 320px !important;
    gap: 24px !important;
    align-items: start;
}
.npn-service-edit-side {
    top: 94px;
    gap: 18px;
}
.npn-service-basic-card .npn-form-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px 20px;
}
.npn-service-basic-card .npn-field-full {
    grid-column: 1 / -1;
}
.npn-service-basic-card .npn-field {
    margin: 0;
}
.npn-service-basic-card .npn-field label,
.npn-order-config-builder label,
.npn-order-config-builder .npn-field label {
    margin-bottom: 7px;
    color: #1e293b !important;
    font-size: 13px;
    font-weight: 900 !important;
}
.npn-service-basic-card .npn-field small,
.npn-help-text,
.npn-service-save-note {
    color: #64748b;
    font-size: 12px;
    line-height: 1.55;
}
.npn-service-basic-card .wp-editor-wrap {
    border: 1px solid #d4e0ee;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}
.npn-service-publish-card {
    overflow: hidden;
}
.npn-service-side-meta {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}
.npn-service-side-meta div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eef2f7;
}
.npn-service-side-meta div:last-child {
    border-bottom: 0;
}
.npn-service-side-meta span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}
.npn-service-side-meta strong {
    color: #0f172a;
    font-size: 13px;
    text-align: right;
}
.npn-service-save-note {
    display: block;
    margin-top: 10px;
}
.npn-service-featured-card .npn-media-preview {
    width: 100%;
    min-height: 210px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f8fafc, #eef6ff);
}
.npn-media-empty-text {
    color: #94a3b8;
    font-weight: 800;
    font-size: 13px;
}
.npn-service-featured-card .npn-media-actions .npn-btn {
    flex: 1 1 auto;
    justify-content: center;
}
.npn-service-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.npn-service-gallery-card .npn-edit-body {
    min-height: 240px;
}
.npn-gallery-preview,
.npn-admin-gallery-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 12px;
    min-height: 128px;
    padding: 12px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
}
.npn-gallery-item,
.npn-gallery-thumb {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .05);
}
.npn-gallery-item img,
.npn-gallery-thumb img {
    width: 100%;
    height: 104px;
    object-fit: cover;
    display: block;
}
.npn-gallery-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 104px;
    color: #64748b;
    font-size: 13px;
    text-align: center;
    grid-column: 1 / -1;
}
.npn-gallery-actions {
    margin-top: 14px;
}

/* Order configuration builder, more spacious and less technical */
.npn-order-config-card {
    border-color: #d9e8f5;
}
.npn-order-config-card .npn-panel-head {
    background: linear-gradient(135deg, #f8fbff, #ffffff);
}
.npn-order-config-card .npn-edit-body {
    background: #fbfdff;
}
.npn-order-config-top {
    align-items: center;
    padding: 18px 20px !important;
    border-radius: 20px !important;
    background: linear-gradient(135deg, #ecfeff 0%, #f8fbff 100%) !important;
    border: 1px solid #bae6fd !important;
    box-shadow: none !important;
}
.npn-order-config-top strong {
    display: block;
    font-size: 17px;
    letter-spacing: -0.02em;
}
.npn-order-config-top .npn-btn,
.npn-order-config-top .npn-btn-primary {
    min-height: 42px;
    border-radius: 14px !important;
}
.npn-order-config-group,
.npn-order-config-class,
.npn-order-config-space {
    border-radius: 22px !important;
    border-color: #dfe8f3 !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .045) !important;
}
.npn-order-config-class {
    padding: 20px !important;
    background: #ffffff !important;
}
.npn-order-config-class-head {
    grid-template-columns: minmax(220px, 1.35fr) repeat(4, minmax(118px, .75fr)) auto !important;
    align-items: end !important;
    gap: 12px !important;
    padding: 16px !important;
    margin: 0 0 16px !important;
    border-radius: 18px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}
.npn-order-config-class-head .npn-field,
.npn-order-config-note-grid .npn-field,
.npn-visual-pair-row .npn-field,
.npn-catalog-folder-row .npn-field {
    margin-bottom: 0 !important;
}
.npn-order-config-common-fields {
    background: #ffffff !important;
}
.npn-order-config-group-head {
    padding-bottom: 12px;
    border-bottom: 1px solid #edf2f7;
}
.npn-order-config-group-head strong {
    font-size: 15px;
    letter-spacing: -0.01em;
}
.npn-order-config-mini-row {
    border-radius: 18px !important;
    border-color: #e2e8f0 !important;
    box-shadow: none !important;
}
.npn-order-config-fields-common .npn-order-config-mini-row {
    grid-template-columns: minmax(180px, 1fr) 150px minmax(220px, 1.35fr) 120px auto !important;
}
[data-npn-order-config-builder] .npn-order-config-inclusion-main {
    grid-template-columns: 34px 54px minmax(180px, 1.25fr) 110px 130px minmax(220px, 1.35fr) minmax(120px, .7fr) minmax(130px, .7fr) auto !important;
    align-items: end !important;
    gap: 12px !important;
    padding: 16px !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    border: 1px solid #dfe8f3 !important;
}
[data-npn-order-config-builder] .npn-order-config-inclusion-main .npn-order-config-parent-images {
    grid-column: 1 / -1 !important;
    margin-top: 8px !important;
}
[data-npn-order-config-builder] .npn-order-config-inclusion-main .npn-order-remove-inclusion {
    min-height: 42px;
}
[data-npn-order-config-builder] .npn-order-config-child-block {
    margin-left: 0 !important;
    margin-top: 12px !important;
    padding: 14px !important;
    border-radius: 18px !important;
    background: #f8fafc !important;
}
[data-npn-order-config-builder] .npn-order-config-child-row {
    grid-template-columns: 34px 54px minmax(180px, 1fr) 130px minmax(280px, 1.35fr) auto !important;
    gap: 12px !important;
    align-items: end !important;
    border-radius: 18px !important;
    background: #ffffff !important;
}
[data-npn-order-config-builder] .npn-admin-order-switch {
    align-self: center !important;
}
[data-npn-order-config-builder] .npn-order-config-child-drag {
    align-self: center;
}
.npn-order-config-child-image-preview,
.npn-order-config-inclusion-image-preview {
    min-height: 88px;
    padding: 10px;
    border-radius: 16px;
    background: #f8fafc !important;
    border: 1px dashed #cbd5e1 !important;
}
.npn-order-config-child-image-card,
.npn-order-config-inclusion-image-card {
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
}
.npn-order-config-note-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.npn-order-config-note-grid h4 {
    grid-column: 1 / -1;
    margin: 8px 0 0;
    padding-top: 10px;
    border-top: 1px solid #edf2f7;
    color: #0f172a;
    font-size: 14px;
}
.npn-visual-pair-row,
.npn-catalog-folder-row {
    border-radius: 18px !important;
    border-color: #e2e8f0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
}
.npn-visual-pair-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.npn-btn,
.npn-order-config-builder .npn-btn,
.npn-order-config-builder button {
    border-radius: 13px !important;
}
.npn-btn-primary,
.npn-order-config-builder .npn-btn-primary,
.npn-order-config-builder .npn-order-add-class,
.npn-order-config-builder .npn-order-add-common-field,
.npn-order-config-builder .npn-order-add-inclusion {
    background: linear-gradient(135deg, #ffd000 0%, #fbbf24 100%) !important;
    border-color: transparent !important;
    color: #111827 !important;
    box-shadow: 0 10px 24px rgba(251, 191, 36, .25);
}
.npn-order-config-builder .npn-btn-danger,
.npn-order-config-builder .npn-order-remove-class,
.npn-order-config-builder .npn-order-remove-field,
.npn-order-config-builder .npn-order-remove-inclusion,
.npn-order-config-builder .npn-order-remove-inclusion-child {
    box-shadow: none !important;
}

@media (max-width: 1280px) {
    .npn-capability-pricing-layout {
        grid-template-columns: 1fr !important;
    }
    .npn-service-edit-side {
        position: static !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .npn-service-basic-card .npn-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 1280px) {
    .npn-order-config-class-head,
    .npn-order-config-fields-common .npn-order-config-mini-row,
    [data-npn-order-config-builder] .npn-order-config-inclusion-main,
    [data-npn-order-config-builder] .npn-order-config-child-row,
    .npn-order-config-note-grid {
        grid-template-columns: 1fr 1fr !important;
    }
    [data-npn-order-config-builder] .npn-order-config-inclusion-main .npn-order-config-parent-images,
    .npn-order-config-note-grid h4 {
        grid-column: 1 / -1 !important;
    }
}
@media (max-width: 900px) {
    .npn-content {
        padding: 22px 16px 72px;
    }
    .npn-service-edit-hero,
    .npn-content-toolbar-modern {
        flex-direction: column;
        padding: 22px;
    }
    .npn-service-edit-actions,
    .npn-page-form-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .npn-content-summary-grid,
    .npn-service-gallery-grid,
    .npn-service-edit-side,
    .npn-service-basic-card .npn-form-grid,
    .npn-content-filter-row,
    .npn-order-config-class-head,
    .npn-order-config-fields-common .npn-order-config-mini-row,
    [data-npn-order-config-builder] .npn-order-config-inclusion-main,
    [data-npn-order-config-builder] .npn-order-config-child-row,
    .npn-order-config-note-grid,
    .npn-visual-pair-grid {
        grid-template-columns: 1fr !important;
    }
    .npn-service-edit-hero h2 {
        font-size: 26px;
    }
}

/* =========================================================
   v36 - Global admin layout cleanup
   Gọn lại toàn bộ dashboard, sidebar, bảng, form và service editor.
========================================================= */
html {
    scroll-behavior: smooth;
}
.npn-admin-body {
    background:
        radial-gradient(circle at 12% 0%, rgba(59, 130, 246, .10), transparent 30%),
        radial-gradient(circle at 95% 12%, rgba(14, 165, 233, .10), transparent 28%),
        #eef3f8;
    color: #0f172a;
}
.npn-admin-app {
    background: transparent;
}
.npn-sidebar {
    width: 284px;
    background: linear-gradient(180deg, #07111f 0%, #101827 58%, #0b1220 100%);
    border-right: 1px solid rgba(148, 163, 184, .14);
    box-shadow: 18px 0 42px rgba(15, 23, 42, .16);
}
.npn-brand {
    min-height: 82px;
    padding: 18px 18px 16px;
    background: rgba(255, 255, 255, .035);
}
.npn-brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    box-shadow: 0 12px 26px rgba(255, 208, 0, .16);
}
.npn-brand-title strong {
    font-size: 16px;
    letter-spacing: -.02em;
}
.npn-brand-title span {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.npn-sidebar-menu {
    padding: 14px 12px 18px;
}
.npn-sidebar-section-label {
    margin: 18px 10px 8px;
    color: #7dd3fc;
    font-size: 10.5px;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.npn-sidebar-section-label:first-child {
    margin-top: 4px;
}
.npn-sidebar-link {
    min-height: 44px;
    height: auto;
    margin-bottom: 6px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 14px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 800;
}
.npn-sidebar-link:hover {
    background: rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .08);
    color: #fff;
    transform: translateX(2px);
}
.npn-sidebar-link.active {
    background: linear-gradient(135deg, #ffd000 0%, #facc15 100%);
    color: #101827;
    box-shadow: 0 12px 26px rgba(250, 204, 21, .24);
}
.npn-sidebar-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, .06);
    font-size: 13px;
}
.npn-sidebar-link.active .npn-sidebar-icon {
    background: rgba(15, 23, 42, .12);
}
.npn-sidebar-user {
    padding: 16px 18px;
    background: rgba(255, 255, 255, .035);
}
.npn-user-avatar {
    width: 44px;
    height: 44px;
    border-color: rgba(255, 208, 0, .9);
}
.npn-main {
    margin-left: 284px;
    width: calc(100% - 284px);
}
.npn-topbar {
    height: 78px;
    padding: 0 30px;
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid rgba(203, 213, 225, .82);
    box-shadow: 0 8px 26px rgba(15, 23, 42, .035);
    backdrop-filter: blur(14px);
}
.npn-topbar-title {
    display: grid;
    gap: 3px;
}
.npn-topbar-title span {
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.npn-topbar-title h1,
.npn-topbar h1 {
    margin: 0;
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -.045em;
}
.npn-topbar-right {
    gap: 12px;
}
.npn-search,
.npn-panel-search,
.npn-date-box,
.npn-filter-select {
    height: 44px;
    border-color: #d9e3ef;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .025);
}
.npn-search {
    width: min(420px, 34vw);
    background: #f8fafc;
}
.npn-global-search-form {
    position: relative;
    width: min(420px, 34vw);
    margin: 0;
}
.npn-global-search-form .npn-search {
    width: 100%;
}
.npn-global-search-page {
    display: grid;
    gap: 22px;
}
.npn-global-search-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 26px;
    color: #0f172a;
    background: linear-gradient(135deg, #fff 0%, #f8fbff 100%);
    border: 1px solid #dbe6f2;
    border-radius: 22px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .05);
}
.npn-global-search-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.npn-global-search-hero h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: -.04em;
}
.npn-global-search-hero p {
    margin: 7px 0 0;
    color: #64748b;
}
.npn-global-search-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}
.npn-global-search-column {
    min-width: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, .98);
    border: 1px solid #dbe6f2;
    border-radius: 22px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .045);
}
.npn-global-search-column-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 22px;
    border-bottom: 1px solid #e5edf6;
}
.npn-global-search-column-head > div {
    display: flex;
    align-items: center;
    gap: 11px;
}
.npn-global-search-column-head h3 {
    margin: 0;
    color: #172033;
    font-size: 19px;
}
.npn-global-search-column-head b {
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 30px;
    padding: 0 9px;
    color: #0f172a;
    background: #facc15;
    border-radius: 999px;
    font-size: 13px;
}
.npn-global-search-column-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    background: #eff6ff;
    border-radius: 12px;
}
.npn-global-search-list {
    display: grid;
    gap: 10px;
    padding: 14px;
}
.npn-global-search-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    min-width: 0;
    padding: 14px;
    color: #172033;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e3ebf4;
    border-radius: 16px;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.npn-global-search-card:hover,
.npn-global-search-card:focus-visible {
    color: #172033;
    border-color: #b8cae0;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .09);
    outline: none;
    transform: translateY(-2px);
}
.npn-global-search-avatar,
.npn-global-search-order-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border-radius: 14px;
}
.npn-global-search-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.npn-global-search-order-icon {
    color: #1d4ed8;
    background: #eff6ff;
    font-size: 20px;
    font-weight: 900;
}
.npn-global-search-card-body {
    display: grid;
    min-width: 0;
    gap: 4px;
}
.npn-global-search-card-body strong,
.npn-global-search-card-body small,
.npn-global-search-card-body > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.npn-global-search-card-body strong {
    color: #0f172a;
    font-size: 15px;
}
.npn-global-search-card-body small {
    color: #475569;
    font-size: 13px;
}
.npn-global-search-card-body > span {
    color: #718096;
    font-size: 12px;
}
.npn-global-search-card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.npn-global-search-card-title .npn-status {
    flex: 0 0 auto;
    font-style: normal;
}
.npn-global-search-arrow {
    color: #94a3b8;
    font-size: 20px;
    transition: color .18s ease, transform .18s ease;
}
.npn-global-search-card:hover .npn-global-search-arrow {
    color: #2563eb;
    transform: translateX(3px);
}
.npn-global-search-empty {
    display: grid;
    place-items: center;
    min-height: 180px;
    padding: 28px;
    color: #64748b;
    text-align: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
}
.npn-bell {
    width: 44px;
    height: 44px;
    border-color: #d9e3ef;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .025);
}
.npn-content {
    width: 100%;
    max-width: 1760px;
    padding: 30px 30px 96px;
}
.npn-panel,
.npn-edit-card,
.npn-dashboard-panel,
.npn-wallet-panel,
.npn-account-panel,
.npn-customer-promo-card,
.npn-customer-promo-run-card {
    border: 1px solid #dbe6f2;
    border-radius: 22px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 18px 48px rgba(15, 23, 42, .055);
}
.npn-panel-head,
.npn-wallet-panel-head,
.npn-dashboard-panel-head,
.npn-account-section-head {
    padding: 22px 24px;
    border-bottom: 1px solid #edf2f7;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}
.npn-panel-head h3,
.npn-wallet-panel-head h3,
.npn-dashboard-panel-head h3 {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: -.025em;
}
.npn-panel-head p,
.npn-page-form-head p,
.npn-muted,
.npn-muted-note {
    color: #64748b;
    line-height: 1.55;
}
.npn-edit-body,
.npn-card-body {
    padding: 24px;
}
.npn-btn {
    min-height: 42px;
    border-radius: 14px !important;
    padding-inline: 16px;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.npn-btn:hover {
    transform: translateY(-1px);
}
.npn-btn-primary {
    background: linear-gradient(135deg, #ffd000 0%, #fbbf24 100%) !important;
    border-color: transparent !important;
    color: #111827 !important;
    box-shadow: 0 12px 26px rgba(251, 191, 36, .25);
}
.npn-btn-secondary,
.npn-btn-light {
    background: #f8fafc !important;
    border-color: #dbe6f2 !important;
    color: #0f172a !important;
}
.npn-btn-danger {
    background: #fff1f2 !important;
    border-color: #fecdd3 !important;
    color: #be123c !important;
}
.npn-alert {
    border-radius: 18px;
    padding: 14px 16px;
    border: 1px solid transparent;
}
.npn-alert-danger {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #be123c;
}
.npn-alert-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}
.npn-table {
    border-collapse: separate;
    border-spacing: 0;
}
.npn-table th,
.npn-table td,
.npn-orders-table th,
.npn-orders-table td,
.npn-project-order-table th,
.npn-project-order-table td,
.npn-customer-table th,
.npn-customer-table td,
.npn-wallet-table th,
.npn-wallet-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #edf2f7;
    vertical-align: middle;
}
.npn-table th,
.npn-orders-table th,
.npn-project-order-table th,
.npn-customer-table th,
.npn-wallet-table th {
    background: #f6f9fc;
    color: #475569;
    font-size: 11.5px;
    font-weight: 900;
    letter-spacing: .045em;
    text-transform: uppercase;
}
.npn-table tbody tr:hover td,
.npn-orders-table tbody tr:hover td,
.npn-project-order-table tbody tr:hover td,
.npn-customer-table tbody tr:hover td,
.npn-wallet-table tbody tr:hover td {
    background: #fbfdff;
}
.npn-content-filter-row,
.npn-customer-filter-row,
.npn-order-filter-row,
.npn-project-order-filter-row,
.npn-wallet-toolbar,
.npn-panel-actions {
    gap: 12px;
}
.npn-field label,
.npn-check-field label {
    color: #172033;
    font-size: 13px;
    font-weight: 900;
}
.npn-field input[type="text"],
.npn-field input[type="email"],
.npn-field input[type="password"],
.npn-field input[type="number"],
.npn-field input[type="date"],
.npn-field input[type="url"],
.npn-field input[type="color"],
.npn-field textarea,
.npn-field select,
.npn-content-filter-row input,
.npn-content-filter-row select,
.npn-customer-filter-row input,
.npn-customer-filter-row select,
.npn-order-filter-row input,
.npn-order-filter-row select,
.npn-project-order-filter-row input,
.npn-project-order-filter-row select {
    min-height: 46px;
    border: 1px solid #d4e0ee;
    border-radius: 14px;
    background: #fff;
    color: #0f172a;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}
.npn-field textarea {
    min-height: 132px;
}
.npn-field input:focus,
.npn-field textarea:focus,
.npn-field select:focus,
.npn-content-filter-row input:focus,
.npn-content-filter-row select:focus,
.npn-customer-filter-row input:focus,
.npn-customer-filter-row select:focus,
.npn-order-filter-row input:focus,
.npn-order-filter-row select:focus,
.npn-project-order-filter-row input:focus,
.npn-project-order-filter-row select:focus {
    outline: none;
    border-color: #06b6d4 !important;
    box-shadow: 0 0 0 4px rgba(6, 182, 212, .12) !important;
}
.npn-field small,
.npn-help-text {
    color: #64748b;
    font-size: 12px;
    line-height: 1.55;
}
.npn-page-form-head,
.npn-content-toolbar,
.npn-content-toolbar-modern,
.npn-orders-head,
.npn-project-order-list-head,
.npn-customer-list-head,
.npn-wallet-toolbar {
    border-radius: 24px;
}
.npn-content-toolbar-modern,
.npn-page-form-head,
.npn-orders-head,
.npn-project-order-list-head,
.npn-customer-list-head {
    margin-bottom: 18px;
    padding: 24px 26px;
    border: 1px solid #dbe6f2;
    background:
        radial-gradient(circle at top left, rgba(6, 182, 212, .13), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .055);
}
.npn-content-summary-grid,
.npn-stat-grid,
.npn-admin-order-stat-grid,
.npn-customer-stat-grid,
.npn-dashboard-kpi-grid {
    gap: 14px;
}
.npn-stat-card,
.npn-content-summary-card,
.npn-admin-order-stat-grid > *,
.npn-customer-stat-box,
.npn-dashboard-kpi {
    border-color: #dbe6f2;
    border-radius: 20px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, .045);
}
.npn-admin-edit-grid,
.npn-settings-grid,
.npn-customer-detail-grid,
.npn-project-detail-grid,
.npn-admin-request-grid {
    gap: 24px;
    align-items: start;
}
.npn-admin-edit-side {
    top: 98px;
}
.npn-media-preview,
.npn-project-image-preview {
    border-color: #cbd5e1;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef6ff 100%);
}

/* Service editor map and balanced page structure */
.npn-service-editor-map {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 22px;
}
.npn-service-editor-map a {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 4px 12px;
    align-items: center;
    min-height: 78px;
    padding: 14px 16px;
    border: 1px solid #dbe6f2;
    border-radius: 20px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 12px 32px rgba(15, 23, 42, .045);
    color: #0f172a;
}
.npn-service-editor-map a:hover {
    border-color: #7dd3fc;
    box-shadow: 0 18px 42px rgba(14, 165, 233, .12);
}
.npn-service-editor-map span {
    grid-row: 1 / 3;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #ecfeff;
    color: #0369a1;
    font-size: 12px;
    font-weight: 900;
}
.npn-service-editor-map strong {
    font-size: 14px;
    letter-spacing: -.02em;
}
.npn-service-editor-map em {
    color: #64748b;
    font-size: 12px;
    font-style: normal;
    line-height: 1.35;
}
.npn-service-edit-hero {
    position: relative;
    overflow: hidden;
    border-color: #dbe6f2;
}
.npn-service-edit-hero:after {
    content: '';
    position: absolute;
    right: -70px;
    top: -85px;
    width: 210px;
    height: 210px;
    border-radius: 999px;
    background: rgba(255, 208, 0, .20);
    filter: blur(4px);
    pointer-events: none;
}
.npn-service-edit-hero-main,
.npn-service-edit-actions {
    position: relative;
    z-index: 1;
}
.npn-service-edit-actions .npn-btn {
    background: #fff;
}
.npn-capability-pricing-layout {
    grid-template-columns: minmax(0, 1fr) 340px !important;
    gap: 24px !important;
}
.npn-capability-pricing-layout .npn-admin-edit-main {
    min-width: 0;
}
.npn-service-edit-side {
    display: grid;
    gap: 18px;
}
.npn-service-basic-card .npn-form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 20px;
}
.npn-service-basic-card .npn-field-full {
    grid-column: 1 / -1;
}
.npn-service-basic-card .npn-field {
    margin: 0;
}
.npn-service-basic-card .wp-editor-wrap {
    border: 1px solid #d4e0ee;
    border-radius: 18px;
    overflow: hidden;
}
.npn-service-side-meta div {
    border-bottom-color: #edf2f7;
}
.npn-service-featured-card .npn-media-preview {
    width: 100%;
    min-height: 220px;
}
.npn-service-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.npn-gallery-preview,
.npn-admin-gallery-preview {
    border-radius: 18px;
    background: #f8fafc;
    border-color: #cbd5e1;
}
.npn-order-config-card .npn-edit-body,
.npn-order-config-builder {
    min-width: 0;
}
.npn-order-config-top,
.npn-order-config-group,
.npn-order-config-class,
.npn-order-config-space,
.npn-order-config-mini-row,
.npn-visual-pair-row,
.npn-catalog-folder-row {
    border-radius: 20px !important;
}
.npn-order-config-class-head {
    grid-template-columns: minmax(220px, 1.35fr) repeat(4, minmax(120px, .7fr)) auto !important;
}
[data-npn-order-config-builder] .npn-order-config-inclusion-main {
    grid-template-columns: 34px 54px minmax(190px, 1.2fr) 115px 130px minmax(220px, 1.35fr) minmax(118px, .7fr) minmax(126px, .7fr) auto !important;
}
[data-npn-order-config-builder] .npn-order-config-child-row {
    grid-template-columns: 34px 54px minmax(190px, 1fr) 130px minmax(260px, 1.35fr) auto !important;
}
.npn-order-config-child-image-card,
.npn-order-config-inclusion-image-card,
.npn-gallery-item,
.npn-gallery-thumb {
    border-radius: 16px;
}

/* Customer/promo and long-table sections */
.npn-customer-promo-card,
.npn-customer-promo-run-card {
    width: 100%;
}
.npn-promo-rules-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.npn-promo-rules-table th {
    background: #f6f9fc;
    color: #475569;
    font-size: 11.5px;
    font-weight: 900;
    letter-spacing: .045em;
    text-transform: uppercase;
}
.npn-promo-rules-table td,
.npn-promo-rules-table th {
    padding: 14px 16px;
    border-bottom: 1px solid #edf2f7;
}
.npn-promo-rules-table select,
.npn-promo-rules-table input {
    min-height: 44px;
    border-radius: 14px;
}

@media (max-width: 1560px) {
    .npn-capability-pricing-layout {
        grid-template-columns: 1fr !important;
    }
    .npn-service-edit-side {
        position: static !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .npn-service-editor-map {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .npn-order-config-class-head,
    [data-npn-order-config-builder] .npn-order-config-inclusion-main,
    [data-npn-order-config-builder] .npn-order-config-child-row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    [data-npn-order-config-builder] .npn-order-config-inclusion-main .npn-order-config-parent-images {
        grid-column: 1 / -1 !important;
    }
}
@media (max-width: 1180px) {
    .npn-sidebar {
        width: 252px;
    }
    .npn-main {
        margin-left: 252px;
        width: calc(100% - 252px);
    }
    .npn-content {
        padding: 24px 20px 84px;
    }
    .npn-service-basic-card .npn-form-grid,
    .npn-service-gallery-grid,
    .npn-service-edit-side,
    .npn-content-summary-grid,
    .npn-stat-grid,
    .npn-dashboard-kpi-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 900px) {
    .npn-sidebar {
        position: relative;
        width: 100%;
        min-height: auto;
    }
    .npn-main {
        margin-left: 0;
        width: 100%;
    }
    .npn-topbar {
        height: auto;
        min-height: 72px;
        padding: 14px 16px;
        align-items: flex-start;
        gap: 14px;
        flex-direction: column;
    }
    .npn-topbar-right,
    .npn-search,
    .npn-global-search-form {
        width: 100%;
    }
    .npn-global-search-grid {
        grid-template-columns: 1fr;
    }
    .npn-global-search-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 20px;
    }
    .npn-content {
        padding: 18px 14px 72px;
    }
    .npn-panel-head,
    .npn-content-toolbar-modern,
    .npn-page-form-head,
    .npn-orders-head,
    .npn-project-order-list-head,
    .npn-customer-list-head,
    .npn-service-edit-hero {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
    }
    .npn-service-editor-map,
    .npn-service-basic-card .npn-form-grid,
    .npn-service-gallery-grid,
    .npn-service-edit-side,
    .npn-content-summary-grid,
    .npn-stat-grid,
    .npn-dashboard-kpi-grid,
    .npn-order-config-class-head,
    [data-npn-order-config-builder] .npn-order-config-inclusion-main,
    [data-npn-order-config-builder] .npn-order-config-child-row,
    .npn-order-config-note-grid,
    .npn-content-filter-row,
    .npn-customer-filter-row,
    .npn-order-filter-row,
    .npn-project-order-filter-row {
        grid-template-columns: 1fr !important;
    }
    .npn-table,
    .npn-orders-table,
    .npn-project-order-table,
    .npn-customer-table,
    .npn-wallet-table,
    .npn-promo-rules-table {
        min-width: 760px;
    }
    .npn-panel,
    .npn-edit-card {
        overflow-x: auto;
    }
}
/* =========================================================
   Admin-only layout refinement, compact filters and drawers
   Giữ nguyên frontend. Chỉ áp dụng trong giao diện quản trị riêng.
========================================================= */
.npn-admin-body {
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

.npn-main,
.npn-content,
.npn-panel,
.npn-edit-card,
.npn-admin-edit-main,
.npn-admin-edit-side {
    min-width: 0;
}

.npn-content {
    width: 100%;
    max-width: 1680px;
}

.npn-page-form-head,
.npn-panel-head {
    flex-wrap: wrap;
}

.npn-page-form-actions,
.npn-panel-actions,
.npn-admin-panel-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.npn-page-form-head {
    position: sticky;
    top: 74px;
    z-index: 8;
    padding: 16px 18px;
    margin: -10px 0 18px;
    border: 1px solid rgba(226, 232, 240, .92);
    border-radius: 18px;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(12px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, .055);
}

.npn-page-form-head h2,
.npn-panel-head h3 {
    letter-spacing: -.025em;
}

.npn-admin-edit-grid,
.npn-settings-grid {
    align-items: start;
}

.npn-admin-edit-side {
    top: 96px;
}

.npn-panel,
.npn-edit-card {
    border-color: #e2e8f0;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .045);
}

.npn-edit-card > .npn-panel-head {
    background: linear-gradient(180deg, #ffffff 0%, #fcfcfd 100%);
}

.npn-edit-body {
    padding: 22px;
}

.npn-admin-form .npn-form-grid {
    gap: 18px 20px;
}

.npn-field {
    margin-bottom: 16px;
}

.npn-field label,
.npn-main label {
    letter-spacing: -.01em;
}

.npn-field small,
.npn-table-sub,
.npn-panel-head p,
.npn-page-form-head p {
    line-height: 1.55;
}

.npn-main input[type="text"],
.npn-main input[type="email"],
.npn-main input[type="url"],
.npn-main input[type="number"],
.npn-main input[type="password"],
.npn-main input[type="date"],
.npn-main select,
.npn-main textarea {
    font-family: "Manrope", Arial, sans-serif !important;
}

.npn-main input[type="date"] {
    min-height: 44px;
    border-radius: 13px;
    border: 1px solid #d9e4f2;
    padding: 0 14px;
    background: #fff;
    color: #07152b;
}

.npn-table-wrap,
.npn-content-ajax-box,
.npn-orders-ajax-box,
.npn-project-orders-ajax-box,
.npn-customers-ajax-box {
    width: 100%;
    overflow-x: auto;
}

.npn-table,
.npn-orders-table,
.npn-project-order-table,
.npn-customer-table,
.npn-wallet-table {
    border-collapse: separate;
    border-spacing: 0;
}

.npn-table th,
.npn-orders-table th,
.npn-project-order-table th,
.npn-customer-table th,
.npn-wallet-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    letter-spacing: .045em;
    white-space: nowrap;
}

.npn-table td,
.npn-orders-table td,
.npn-project-order-table td,
.npn-customer-table td,
.npn-wallet-table td {
    line-height: 1.48;
}

.npn-table-actions,
.npn-customer-action-cell,
.npn-project-order-table td:last-child {
    white-space: nowrap;
}

.npn-status,
.npn-customer-type-pill,
.npn-account-code-inline {
    white-space: nowrap;
}

.npn-btn,
.npn-main button,
.npn-main input[type="button"],
.npn-main input[type="submit"] {
    white-space: nowrap;
}

.npn-panel-toggle {
    min-height: 34px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-family: "ManropeSemi", "Manrope", Arial, sans-serif !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    box-shadow: none !important;
}

.npn-panel-toggle:hover {
    background: #fff8cf !important;
    border-color: #ffd000 !important;
    color: #111827 !important;
}

.npn-edit-card.is-collapsed > .npn-edit-body,
.npn-edit-card.is-collapsed > .npn-form-grid,
.npn-edit-card.is-collapsed > .npn-card-body {
    display: none !important;
}

.npn-edit-card.is-collapsed > .npn-panel-head {
    border-bottom: 0;
}

.npn-filter-panel-is-drawerized {
    display: none !important;
}

.npn-admin-filter-button {
    position: relative;
    min-height: 42px !important;
    gap: 8px;
}

.npn-admin-filter-count {
    display: none;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    background: #111827;
    color: #ffd000;
    font-size: 12px;
    font-family: "ManropeExBold", "Manrope", Arial, sans-serif;
}

.npn-admin-filter-button.has-active .npn-admin-filter-count {
    display: inline-flex;
}

.npn-admin-filter-drawer {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.npn-admin-filter-drawer.is-open {
    display: block;
}

.npn-admin-filter-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .56);
    backdrop-filter: blur(5px);
}

.npn-admin-filter-card {
    position: absolute;
    top: 20px;
    right: 20px;
    bottom: 20px;
    width: min(560px, calc(100vw - 40px));
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 24px;
    background: #fff;
    box-shadow: -20px 30px 80px rgba(15, 23, 42, .24);
    overflow: hidden;
    transform: translateX(18px);
    opacity: .98;
    animation: npnAdminDrawerIn .18s ease-out forwards;
}

@keyframes npnAdminDrawerIn {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.npn-admin-filter-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
    border-bottom: 1px solid #eef2f7;
    background: linear-gradient(180deg, #fff 0%, #fcfcfd 100%);
}

.npn-admin-filter-head h3 {
    margin: 4px 0 4px;
    font-size: 21px;
    letter-spacing: -.03em;
}

.npn-admin-filter-head p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.npn-admin-filter-close {
    width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    border: 1px solid #e2e8f0 !important;
    background: #fff !important;
    color: #111827 !important;
    font-size: 22px !important;
    line-height: 1 !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .08) !important;
}

.npn-admin-filter-body {
    flex: 1;
    overflow: auto;
    padding: 22px 24px 8px;
}

.npn-filter-drawer-fields,
.npn-admin-filter-body .npn-inline-search,
.npn-admin-filter-body .npn-order-filter-row,
.npn-admin-filter-body .npn-project-order-filter-row,
.npn-admin-filter-body .npn-customer-filter-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 14px !important;
    align-items: start;
    width: 100% !important;
}

.npn-admin-filter-body input,
.npn-admin-filter-body select,
.npn-admin-filter-body textarea {
    width: 100% !important;
}

.npn-admin-filter-body .npn-panel-search,
.npn-admin-filter-body input[type="text"]:first-child {
    grid-column: 1 / -1;
}

.npn-admin-filter-body .npn-btn,
.npn-admin-filter-body button {
    justify-content: center;
}

.npn-admin-filter-foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px 22px;
    border-top: 1px solid #eef2f7;
    background: #fff;
}

body.npn-admin-modal-open {
    overflow: hidden;
}

.npn-admin-filter-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: auto;
}

.npn-panel-head-stack .npn-admin-filter-actions {
    align-self: flex-start;
}

.npn-orders-ajax-page .npn-page-form-actions,
.npn-project-orders-ajax-page .npn-admin-filter-actions,
.npn-customers-ajax-page .npn-admin-filter-actions {
    flex-wrap: wrap;
}

.npn-project-order-list-head,
.npn-customer-list-head {
    padding: 16px 20px;
    border-top: 1px solid #eef2f7;
    border-bottom: 1px solid #eef2f7;
    background: #fbfdff;
}

.npn-project-order-list-head p,
.npn-customer-list-head p {
    margin: 0;
    color: #64748b;
    font-family: "ManropeSemi", "Manrope", Arial, sans-serif;
}

@media (max-width: 1180px) {
    .npn-page-form-head {
        top: 74px;
    }
    .npn-admin-edit-side {
        position: static;
    }
}

@media (max-width: 900px) {
    .npn-page-form-head {
        position: static;
        margin-top: 0;
    }
    .npn-admin-filter-card {
        inset: auto 10px 10px 10px;
        top: 10px;
        width: auto;
        border-radius: 20px;
    }
    .npn-filter-drawer-fields,
    .npn-admin-filter-body .npn-inline-search,
    .npn-admin-filter-body .npn-order-filter-row,
    .npn-admin-filter-body .npn-project-order-filter-row,
    .npn-admin-filter-body .npn-customer-filter-row {
        grid-template-columns: 1fr !important;
    }
    .npn-admin-filter-head,
    .npn-admin-filter-body,
    .npn-admin-filter-foot {
        padding-left: 18px;
        padding-right: 18px;
    }
}


/* v36 - Service editor compact admin layout only
   Keeps frontend untouched. Makes the long service form easier to scan with collapsible panels and modal-sized editing. */
.npn-service-edit-page-form .npn-service-editor-map {
    position: sticky;
    top: 14px;
    z-index: 25;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0 18px;
    padding: 10px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 18px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 16px 40px rgba(15, 23, 42, .08);
    backdrop-filter: blur(12px);
}

.npn-service-edit-page-form .npn-service-editor-map a {
    min-height: auto;
    padding: 11px 12px;
    border-radius: 14px;
    gap: 8px;
}

.npn-service-edit-page-form .npn-service-editor-map a span {
    width: 26px;
    height: 26px;
    min-width: 26px;
    font-size: 11px;
}

.npn-service-edit-page-form .npn-service-editor-map a strong {
    font-size: 13px;
    line-height: 1.2;
}

.npn-service-edit-page-form .npn-service-editor-map a em {
    font-size: 11px;
    line-height: 1.35;
}

.npn-service-compact-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin: -4px 0 14px;
}

.npn-service-compact-actions .npn-service-compact-btn,
.npn-service-panel-tools .npn-service-section-toggle,
.npn-service-panel-tools .npn-service-section-expand,
.npn-service-field-toggle button,
.npn-service-inner-toggle {
    appearance: none;
    border: 1px solid rgba(15, 23, 42, .12);
    background: #fff;
    color: #1f2937;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.npn-service-compact-actions .npn-service-compact-btn:hover,
.npn-service-panel-tools .npn-service-section-toggle:hover,
.npn-service-panel-tools .npn-service-section-expand:hover,
.npn-service-field-toggle button:hover,
.npn-service-inner-toggle:hover {
    border-color: rgba(15, 23, 42, .28);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .09);
    transform: translateY(-1px);
}

.npn-service-panel-tools {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
}

.npn-service-edit-page-form .npn-edit-card > .npn-panel-head {
    align-items: flex-start;
    gap: 14px;
}

.npn-service-edit-page-form .npn-edit-card.is-service-collapsed {
    overflow: hidden;
}

.npn-service-edit-page-form .npn-edit-card.is-service-collapsed > .npn-edit-body {
    display: none !important;
}

.npn-service-edit-page-form .npn-edit-card.is-service-collapsed > .npn-panel-head {
    border-bottom: 0;
}

.npn-service-edit-page-form .npn-edit-card.is-service-collapsed > .npn-panel-head p::after {
    content: '  ·  Đang thu gọn';
    font-weight: 700;
    color: #64748b;
}

.npn-service-edit-page-form .npn-edit-card.is-service-modal {
    position: fixed !important;
    inset: 32px auto auto 50%;
    transform: translateX(-50%);
    width: min(1180px, calc(100vw - 36px));
    max-height: calc(100vh - 64px);
    overflow: auto;
    z-index: 100002;
    border-radius: 22px;
    box-shadow: 0 32px 90px rgba(15, 23, 42, .30);
}

.npn-service-edit-page-form .npn-edit-card.is-service-modal > .npn-edit-body {
    display: block !important;
}

.npn-service-edit-page-form .npn-edit-card.is-service-modal > .npn-panel-head {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
}

.npn-service-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100001;
    background: rgba(15, 23, 42, .42);
    backdrop-filter: blur(3px);
}

body.npn-service-modal-open {
    overflow: hidden;
}

.npn-service-field-toggle {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 0;
    padding: 12px 14px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 16px;
    background: rgba(248, 250, 252, .88);
}

.npn-service-field-toggle strong {
    display: block;
    color: #111827;
    font-size: 14px;
}

.npn-service-field-toggle span {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
}

.npn-service-long-field.is-service-field-collapsed {
    display: none !important;
}

.npn-service-edit-page-form .npn-order-config-card > .npn-edit-body {
    padding-top: 14px;
}

.npn-order-config-class {
    position: relative;
}

.npn-order-config-class.is-inner-collapsed > .npn-order-config-groups {
    display: none !important;
}

.npn-order-config-class.is-inner-collapsed {
    padding-bottom: 10px;
}

.npn-order-config-class-head {
    gap: 10px;
}

.npn-order-config-class-head .npn-service-inner-toggle {
    align-self: end;
    margin-left: auto;
    white-space: nowrap;
}

.npn-order-config-class.is-inner-collapsed .npn-service-inner-toggle {
    background: rgba(248, 250, 252, .96);
}

.npn-order-config-group-head {
    gap: 10px;
}

.npn-service-edit-page-form .npn-service-gallery-grid {
    gap: 16px;
}

.npn-service-edit-page-form .npn-gallery-preview,
.npn-service-edit-page-form .npn-admin-gallery-preview {
    max-height: 360px;
    overflow: auto;
}

.npn-service-edit-page-form .npn-service-gallery-card.is-service-modal .npn-gallery-preview,
.npn-service-edit-page-form .npn-service-gallery-card.is-service-modal .npn-admin-gallery-preview {
    max-height: none;
}

@media (max-width: 1180px) {
    .npn-service-edit-page-form .npn-service-editor-map {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .npn-service-edit-page-form .npn-service-editor-map {
        position: static;
        grid-template-columns: 1fr;
    }

    .npn-service-edit-page-form .npn-edit-card.is-service-modal {
        inset: 12px auto auto 50%;
        width: calc(100vw - 20px);
        max-height: calc(100vh - 24px);
        border-radius: 18px;
    }

    .npn-service-field-toggle,
    .npn-service-edit-page-form .npn-edit-card > .npn-panel-head {
        align-items: stretch;
        flex-direction: column;
    }

    .npn-service-panel-tools {
        justify-content: flex-start;
        margin-left: 0;
    }
}

/* v38 - Service popup fullscreen and header/remove-button stacking fix. Admin only. */
body.npn-service-modal-open {
    overflow: hidden !important;
}

.npn-service-modal-backdrop {
    z-index: 100000 !important;
}

.npn-service-edit-page-form .npn-edit-card.is-service-modal {
    position: fixed !important;
    inset: 14px !important;
    transform: none !important;
    width: auto !important;
    max-width: none !important;
    height: calc(100vh - 28px) !important;
    max-height: none !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    z-index: 100002 !important;
    border-radius: 24px !important;
    background: #ffffff !important;
    box-shadow: 0 34px 96px rgba(15, 23, 42, .34) !important;
}

.npn-service-edit-page-form .npn-edit-card.is-service-modal > .npn-panel-head {
    position: relative !important;
    top: auto !important;
    z-index: 120 !important;
    flex: 0 0 auto !important;
    background: rgba(255, 255, 255, .98) !important;
    border-bottom: 1px solid rgba(226, 232, 240, .92) !important;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .08) !important;
    backdrop-filter: blur(14px);
}

.npn-service-edit-page-form .npn-edit-card.is-service-modal > .npn-edit-body {
    display: block !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: auto !important;
    padding-bottom: 46px !important;
}

.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-gallery-preview,
.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-admin-gallery-preview,
.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-child-preview,
.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-inclusion-image-preview,
.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-child-image-preview {
    max-height: none !important;
}

.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-builder .npn-order-remove-class,
.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-builder .npn-order-remove-field,
.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-builder .npn-order-remove-inclusion,
.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-builder .npn-order-remove-inclusion-child,
.npn-service-edit-page-form .npn-edit-card.is-service-modal [data-npn-order-config-builder] .npn-order-config-image-remove,
.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-remove-gallery-item,
.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-remove-detail-gallery-image,
.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-repeat-remove {
    z-index: 4 !important;
}

.npn-service-edit-page-form .npn-edit-card.is-service-modal > .npn-panel-head .npn-service-panel-tools,
.npn-service-edit-page-form .npn-edit-card.is-service-modal > .npn-panel-head .npn-service-section-toggle,
.npn-service-edit-page-form .npn-edit-card.is-service-modal > .npn-panel-head .npn-service-section-expand {
    position: relative;
    z-index: 130 !important;
}

@media (max-width: 760px) {
    .npn-service-edit-page-form .npn-edit-card.is-service-modal {
        inset: 8px !important;
        width: auto !important;
        height: calc(100vh - 16px) !important;
        max-height: none !important;
        border-radius: 18px !important;
    }
}

/* =========================================================
   v39 - Service order config popup even layout. Admin only.
   Mục tiêu: các tab/danh mục con, block ảnh và dòng pricing đều hàng hơn.
========================================================= */
.npn-service-edit-page-form .npn-edit-card.is-service-modal > .npn-edit-body {
    padding: 18px 20px 44px !important;
    background: #f8fafc !important;
}

.npn-service-edit-page-form .npn-edit-card.is-service-modal [data-npn-order-config-builder] {
    width: 100% !important;
    max-width: none !important;
}

.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-classes,
.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-groups,
.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-inclusions {
    gap: 16px !important;
}

.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-class,
.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-group,
.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-mini-row {
    width: 100% !important;
    box-sizing: border-box !important;
}

.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-class {
    padding: 18px !important;
    border-radius: 20px !important;
    background: #ffffff !important;
    border: 1px solid #dbe4f0 !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .055) !important;
}

/* Class/tab pricing row: keep all controls on one clean row on desktop. */
.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-class-head {
    display: grid !important;
    grid-template-columns:
        minmax(240px, 1.7fr)
        minmax(180px, .9fr)
        minmax(150px, .75fr)
        minmax(190px, .95fr)
        minmax(150px, .75fr)
        minmax(92px, auto)
        minmax(86px, auto) !important;
    gap: 12px !important;
    align-items: end !important;
    margin-bottom: 16px !important;
}

.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-class-head > .npn-field,
.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-inclusion-main > .npn-field,
.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-child-row > .npn-field,
.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-note-grid > .npn-field {
    min-width: 0 !important;
    margin: 0 !important;
}

.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-class-head input,
.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-class-head select,
.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-inclusion-main input,
.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-inclusion-main select,
.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-inclusion-main textarea,
.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-child-row input,
.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-child-row select,
.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-child-row textarea {
    width: 100% !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
}

.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-class-head textarea,
.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-inclusion-main textarea,
.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-child-row textarea {
    min-height: 78px !important;
    resize: vertical !important;
}

.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-class-head .npn-order-remove-class,
.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-class-head .npn-service-inner-toggle {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    margin: 0 !important;
    align-self: end !important;
    white-space: nowrap !important;
}

/* Inclusion row: split into an even first row + full-width image row. */
.npn-service-edit-page-form .npn-edit-card.is-service-modal [data-npn-order-config-builder] .npn-order-config-inclusion-main,
.npn-service-edit-page-form .npn-edit-card.is-service-modal [data-npn-order-config-builder] .npn-order-config-inclusion-main-v29 {
    display: grid !important;
    grid-template-columns:
        36px
        54px
        minmax(210px, 1.25fr)
        minmax(130px, .6fr)
        minmax(150px, .7fr)
        minmax(260px, 1.35fr)
        minmax(140px, .65fr)
        minmax(150px, .7fr)
        minmax(92px, auto) !important;
    gap: 12px !important;
    align-items: end !important;
    padding: 16px !important;
    border-radius: 18px !important;
    background: #f8fafc !important;
    border: 1px solid #dbe4f0 !important;
}

.npn-service-edit-page-form .npn-edit-card.is-service-modal [data-npn-order-config-builder] .npn-order-config-inclusion-main .npn-order-config-child-drag,
.npn-service-edit-page-form .npn-edit-card.is-service-modal [data-npn-order-config-builder] .npn-order-config-inclusion-main .npn-admin-order-parent-switch {
    align-self: center !important;
    justify-self: center !important;
}

.npn-service-edit-page-form .npn-edit-card.is-service-modal [data-npn-order-config-builder] .npn-order-config-parent-images {
    grid-column: 3 / 9 !important;
    grid-row: 2 !important;
    min-width: 0 !important;
    width: 100% !important;
    margin-top: 2px !important;
}

.npn-service-edit-page-form .npn-edit-card.is-service-modal [data-npn-order-config-builder] .npn-order-remove-inclusion {
    grid-column: 9 !important;
    grid-row: 1 / span 2 !important;
    width: 100% !important;
    min-height: 44px !important;
    align-self: center !important;
    margin: 0 !important;
}

.npn-service-edit-page-form .npn-edit-card.is-service-modal [data-npn-order-config-builder] .npn-order-config-inclusion-image-preview,
.npn-service-edit-page-form .npn-edit-card.is-service-modal [data-npn-order-config-builder] .npn-order-config-child-image-preview {
    padding: 12px !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    border: 1px dashed #cbd5e1 !important;
}

.npn-service-edit-page-form .npn-edit-card.is-service-modal [data-npn-order-config-builder] .npn-order-config-child-preview-codes {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)) !important;
    gap: 12px !important;
    align-items: stretch !important;
}

.npn-service-edit-page-form .npn-edit-card.is-service-modal [data-npn-order-config-builder] .npn-order-config-child-image-card {
    min-width: 0 !important;
    height: 100% !important;
    border-radius: 14px !important;
}

.npn-service-edit-page-form .npn-edit-card.is-service-modal [data-npn-order-config-builder] .npn-order-config-child-image-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 10px !important;
}

/* Child rows use the same spacing rhythm as parent rows. */
.npn-service-edit-page-form .npn-edit-card.is-service-modal [data-npn-order-config-builder] .npn-order-config-child-row {
    display: grid !important;
    grid-template-columns:
        36px
        54px
        minmax(220px, 1fr)
        minmax(140px, .55fr)
        minmax(420px, 1.65fr)
        minmax(90px, auto) !important;
    gap: 12px !important;
    align-items: end !important;
    padding: 16px !important;
    border-radius: 18px !important;
}

.npn-service-edit-page-form .npn-edit-card.is-service-modal [data-npn-order-config-builder] .npn-order-config-child-row .npn-order-config-child-drag,
.npn-service-edit-page-form .npn-edit-card.is-service-modal [data-npn-order-config-builder] .npn-order-config-child-row .npn-admin-order-switch {
    align-self: center !important;
    justify-self: center !important;
}

.npn-service-edit-page-form .npn-edit-card.is-service-modal [data-npn-order-config-builder] .npn-order-remove-inclusion-child {
    width: 100% !important;
    min-height: 44px !important;
    align-self: center !important;
}

/* Visual service/pricing grids: make columns consistent. */
.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-note-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(180px, 1fr)) !important;
    gap: 12px !important;
    align-items: end !important;
}

.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-note-grid h4 {
    grid-column: 1 / -1 !important;
    margin: 6px 0 0 !important;
}

@media (max-width: 1280px) {
    .npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-class-head,
    .npn-service-edit-page-form .npn-edit-card.is-service-modal [data-npn-order-config-builder] .npn-order-config-inclusion-main,
    .npn-service-edit-page-form .npn-edit-card.is-service-modal [data-npn-order-config-builder] .npn-order-config-inclusion-main-v29,
    .npn-service-edit-page-form .npn-edit-card.is-service-modal [data-npn-order-config-builder] .npn-order-config-child-row,
    .npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-note-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .npn-service-edit-page-form .npn-edit-card.is-service-modal [data-npn-order-config-builder] .npn-order-config-parent-images,
    .npn-service-edit-page-form .npn-edit-card.is-service-modal [data-npn-order-config-builder] .npn-order-remove-inclusion,
    .npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-note-grid h4 {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
    }

    .npn-service-edit-page-form .npn-edit-card.is-service-modal [data-npn-order-config-builder] .npn-order-config-inclusion-main .npn-order-config-child-drag,
    .npn-service-edit-page-form .npn-edit-card.is-service-modal [data-npn-order-config-builder] .npn-order-config-inclusion-main .npn-admin-order-parent-switch,
    .npn-service-edit-page-form .npn-edit-card.is-service-modal [data-npn-order-config-builder] .npn-order-config-child-row .npn-order-config-child-drag,
    .npn-service-edit-page-form .npn-edit-card.is-service-modal [data-npn-order-config-builder] .npn-order-config-child-row .npn-admin-order-switch {
        justify-self: start !important;
    }
}

@media (max-width: 760px) {
    .npn-service-edit-page-form .npn-edit-card.is-service-modal > .npn-edit-body {
        padding: 14px 12px 34px !important;
    }

    .npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-class-head,
    .npn-service-edit-page-form .npn-edit-card.is-service-modal [data-npn-order-config-builder] .npn-order-config-inclusion-main,
    .npn-service-edit-page-form .npn-edit-card.is-service-modal [data-npn-order-config-builder] .npn-order-config-inclusion-main-v29,
    .npn-service-edit-page-form .npn-edit-card.is-service-modal [data-npn-order-config-builder] .npn-order-config-child-row,
    .npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-note-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Admin brand uses Cấu hình chung logo/title and falls back cleanly if image URL is broken. */
.npn-brand-logo {
    position: relative;
    flex: 0 0 auto;
}

.npn-brand-logo .npn-brand-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
    line-height: 1;
    color: #0f172a;
    z-index: 0;
}

.npn-brand-logo img {
    position: relative;
    z-index: 1;
    background: transparent;
}

.npn-brand-logo img + .npn-brand-fallback {
    display: none;
}

.npn-brand-logo.is-logo-error .npn-brand-fallback {
    display: flex;
}

/* Admin sidebar compact width patch: make the left navigation slimmer without changing admin colors. */
.npn-sidebar {
    width: 256px !important;
}

.npn-main {
    margin-left: 256px !important;
    width: calc(100% - 256px) !important;
}

.npn-brand {
    min-height: 74px !important;
    padding: 15px 14px !important;
    gap: 10px !important;
}

.npn-brand-logo {
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
}

.npn-brand-logo img {
    padding: 5px !important;
}

.npn-brand-title {
    min-width: 0 !important;
}

.npn-brand-title strong {
    font-size: 14.5px !important;
    line-height: 1.22 !important;
    letter-spacing: -.025em !important;
}

.npn-brand-title span {
    font-size: 10.5px !important;
    letter-spacing: .045em !important;
}

.npn-sidebar-menu {
    padding: 12px 10px 16px !important;
}

.npn-sidebar-section-label {
    margin: 16px 8px 7px !important;
    font-size: 10px !important;
}

.npn-sidebar-section-label:first-child {
    margin-top: 3px !important;
}

.npn-sidebar-link {
    min-height: 40px !important;
    padding: 8px 10px !important;
    gap: 10px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    margin-bottom: 5px !important;
}

.npn-sidebar-icon {
    width: 22px !important;
    height: 22px !important;
    flex: 0 0 22px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
}

.npn-sidebar-user {
    padding: 14px 14px !important;
    gap: 10px !important;
}

.npn-user-avatar {
    width: 40px !important;
    height: 40px !important;
}

.npn-user-info strong {
    font-size: 13px !important;
}

.npn-user-info a {
    font-size: 12px !important;
}

@media (max-width: 1180px) {
    .npn-sidebar {
        width: 236px !important;
    }
    .npn-main {
        margin-left: 236px !important;
        width: calc(100% - 236px) !important;
    }
}

@media (max-width: 900px) {
    .npn-sidebar {
        width: 100% !important;
    }
    .npn-main {
        margin-left: 0 !important;
        width: 100% !important;
    }
}

/* Admin sidebar collapse/expand control. Desktop only; frontend is not affected. */
.npn-sidebar-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    min-height: 34px !important;
    margin: 10px 12px 2px !important;
    padding: 0 12px !important;
    border: 1px solid rgba(255,255,255,.11) !important;
    border-radius: 13px !important;
    background: rgba(255,255,255,.055) !important;
    color: #e5e7eb !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease !important;
}

.npn-sidebar-toggle:hover {
    background: rgba(255,255,255,.1) !important;
    border-color: rgba(255,208,0,.36) !important;
    color: #fff !important;
}

.npn-sidebar-toggle-icon {
    width: 18px !important;
    height: 18px !important;
    display: inline-grid !important;
    place-items: center !important;
    border-radius: 7px !important;
    background: rgba(255,208,0,.16) !important;
    color: #ffd000 !important;
    font-size: 18px !important;
    line-height: 1 !important;
    transition: transform .18s ease !important;
}

.npn-admin-body.npn-sidebar-collapsed .npn-sidebar {
    width: 78px !important;
}

.npn-admin-body.npn-sidebar-collapsed .npn-main {
    margin-left: 78px !important;
    width: calc(100% - 78px) !important;
}

.npn-admin-body.npn-sidebar-collapsed .npn-brand {
    justify-content: center !important;
    min-height: 72px !important;
    padding: 14px 10px 8px !important;
}

.npn-admin-body.npn-sidebar-collapsed .npn-brand-title {
    display: none !important;
}

.npn-admin-body.npn-sidebar-collapsed .npn-brand-logo {
    width: 38px !important;
    height: 38px !important;
    border-radius: 12px !important;
}

.npn-admin-body.npn-sidebar-collapsed .npn-sidebar-toggle {
    width: 42px !important;
    min-width: 42px !important;
    height: 34px !important;
    margin: 8px auto 8px !important;
    padding: 0 !important;
    border-radius: 12px !important;
}

.npn-admin-body.npn-sidebar-collapsed .npn-sidebar-toggle-text {
    display: none !important;
}

.npn-admin-body.npn-sidebar-collapsed .npn-sidebar-toggle-icon {
    transform: rotate(180deg) !important;
}

.npn-admin-body.npn-sidebar-collapsed .npn-sidebar-menu {
    padding: 8px 8px 14px !important;
}

.npn-admin-body.npn-sidebar-collapsed .npn-sidebar-section-label {
    height: 1px !important;
    margin: 15px 16px 10px !important;
    padding: 0 !important;
    overflow: hidden !important;
    color: transparent !important;
    background: rgba(255,255,255,.1) !important;
    border-radius: 999px !important;
    font-size: 0 !important;
    line-height: 0 !important;
}

.npn-admin-body.npn-sidebar-collapsed .npn-sidebar-section-label:first-child {
    margin-top: 4px !important;
}

.npn-admin-body.npn-sidebar-collapsed .npn-sidebar-link {
    justify-content: center !important;
    width: 46px !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 auto 7px !important;
    padding: 0 !important;
    gap: 0 !important;
    border-radius: 14px !important;
}

.npn-admin-body.npn-sidebar-collapsed .npn-sidebar-link > span:not(.npn-sidebar-icon) {
    display: none !important;
}

.npn-admin-body.npn-sidebar-collapsed .npn-sidebar-icon {
    width: 24px !important;
    height: 24px !important;
    flex-basis: 24px !important;
    display: inline-grid !important;
    place-items: center !important;
    font-size: 13px !important;
}

.npn-admin-body.npn-sidebar-collapsed .npn-sidebar-user {
    justify-content: center !important;
    padding: 12px 8px !important;
}

.npn-admin-body.npn-sidebar-collapsed .npn-user-info {
    display: none !important;
}

.npn-admin-body.npn-sidebar-collapsed .npn-user-avatar {
    width: 36px !important;
    height: 36px !important;
}

@media (max-width: 900px) {
    .npn-sidebar-toggle {
        display: none !important;
    }

    .npn-admin-body.npn-sidebar-collapsed .npn-sidebar {
        width: 100% !important;
    }

    .npn-admin-body.npn-sidebar-collapsed .npn-main {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .npn-admin-body.npn-sidebar-collapsed .npn-brand-title,
    .npn-admin-body.npn-sidebar-collapsed .npn-sidebar-link > span:not(.npn-sidebar-icon),
    .npn-admin-body.npn-sidebar-collapsed .npn-user-info {
        display: block !important;
    }
}

/* Sidebar collapse button SVG icon refinement */
.npn-sidebar-toggle-icon svg {
    width: 16px !important;
    height: 16px !important;
    display: block !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.45 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.npn-sidebar-toggle-icon {
    font-size: 0 !important;
}

/* v37 - Inline collapsible admin filters.
   Replaces the side popup filter with an in-page row: first 3 controls stay visible, the rest open/close inline. */
.npn-inline-filter-collapsible {
    position: relative;
    align-items: center !important;
}

.npn-inline-filter-collapsible.is-collapsed > [data-npn-inline-filter-extra="1"],
.npn-inline-filter-collapsible.is-collapsed > select[data-npn-inline-filter-extra="1"] + .select2-container {
    display: none !important;
}

.npn-admin-filter-inline-toggle {
    min-height: 44px !important;
    justify-content: center !important;
    gap: 8px !important;
    border-style: dashed !important;
    white-space: nowrap !important;
}

.npn-admin-filter-inline-toggle::after {
    content: "⌄";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    line-height: 1;
    transition: transform .16s ease;
}

.npn-inline-filter-collapsible.is-expanded .npn-admin-filter-inline-toggle::after {
    transform: rotate(180deg);
}

.npn-admin-filter-inline-count {
    display: none;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    background: #111827;
    color: #ffd000;
    font-size: 12px;
    font-family: "ManropeExBold", "Manrope", Arial, sans-serif;
}

.npn-admin-filter-inline-toggle.has-active .npn-admin-filter-inline-count {
    display: inline-flex;
}

.npn-order-filter-row-advanced.npn-inline-filter-collapsible,
.npn-project-order-filter-row-advanced.npn-inline-filter-collapsible,
.npn-customer-filter-row-advanced.npn-inline-filter-collapsible,
.npn-content-filter-row.npn-inline-filter-collapsible,
.npn-filter-toolbar.npn-inline-filter-collapsible {
    grid-template-columns: repeat(3, minmax(180px, 1fr)) auto auto !important;
}

.npn-project-order-filter-row-advanced.npn-inline-filter-collapsible .npn-project-order-filter-keyword,
.npn-project-order-filter-row-advanced.npn-inline-filter-collapsible .npn-project-order-filter-customer,
.npn-order-filter-row-advanced.npn-inline-filter-collapsible .npn-order-filter-keyword,
.npn-customer-filter-row-advanced.npn-inline-filter-collapsible .npn-customer-filter-keyword {
    grid-column: auto !important;
    min-width: 0 !important;
}

.npn-inline-filter-collapsible.is-expanded.npn-order-filter-row-advanced,
.npn-inline-filter-collapsible.is-expanded.npn-project-order-filter-row-advanced,
.npn-inline-filter-collapsible.is-expanded.npn-customer-filter-row-advanced,
.npn-inline-filter-collapsible.is-expanded.npn-content-filter-row,
.npn-inline-filter-collapsible.is-expanded.npn-filter-toolbar {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
}

.npn-inline-filter-collapsible.is-expanded .npn-admin-filter-inline-toggle,
.npn-inline-filter-collapsible.is-expanded .npn-order-filter-reset,
.npn-inline-filter-collapsible.is-expanded .npn-project-order-filter-reset,
.npn-inline-filter-collapsible.is-expanded .npn-customer-filter-reset {
    min-width: 140px;
}

@media (max-width: 980px) {
    .npn-order-filter-row-advanced.npn-inline-filter-collapsible,
    .npn-project-order-filter-row-advanced.npn-inline-filter-collapsible,
    .npn-customer-filter-row-advanced.npn-inline-filter-collapsible,
    .npn-content-filter-row.npn-inline-filter-collapsible,
    .npn-filter-toolbar.npn-inline-filter-collapsible {
        grid-template-columns: repeat(2, minmax(150px, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    .npn-order-filter-row-advanced.npn-inline-filter-collapsible,
    .npn-project-order-filter-row-advanced.npn-inline-filter-collapsible,
    .npn-customer-filter-row-advanced.npn-inline-filter-collapsible,
    .npn-content-filter-row.npn-inline-filter-collapsible,
    .npn-filter-toolbar.npn-inline-filter-collapsible {
        grid-template-columns: 1fr !important;
    }
}


/* Project order delete action */
.npn-project-order-row-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}


/* Rate-card service rows: Retouching / Video / DIY */
.npn-order-config-builder .npn-order-config-class-head {
	grid-template-columns: minmax(180px, 1fr) 130px 130px 140px 130px minmax(220px, 1.25fr);
	align-items: start;
}
.npn-order-config-builder .npn-order-config-class-head .npn-field {
	min-width: 0;
}
.npn-order-config-builder .npn-order-config-class-head .npn-field-wide {
	grid-column: span 2;
}
.npn-order-config-builder .npn-order-config-class-head .npn-quote-field {
	min-width: 240px;
}
.npn-order-config-builder .npn-field-helpful label {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}
.npn-order-config-builder .npn-field-helpful label small {
	font-size: 11px;
	font-weight: 700;
	color: #64748b;
	background: #eef2ff;
	border: 1px solid #dbeafe;
	border-radius: 999px;
	padding: 2px 8px;
}
.npn-order-config-builder .npn-input-help {
	display: block;
	margin-top: 6px;
	font-size: 11.5px;
	line-height: 1.45;
	color: #64748b;
	font-weight: 600;
}
.npn-order-config-builder .npn-quote-check {
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	white-space: normal;
	line-height: 1.35;
	align-items: flex-start;
}
.npn-order-config-builder .npn-quote-check span {
	display: block;
	min-width: 0;
	word-break: normal;
}
@media (max-width: 1280px) {
	.npn-order-config-builder .npn-order-config-class-head {
		grid-template-columns: repeat(3, minmax(180px, 1fr));
	}
	.npn-order-config-builder .npn-order-config-class-head .npn-field-wide {
		grid-column: span 2;
	}
}
@media (max-width: 900px) {
	.npn-order-config-builder .npn-order-config-class-head,
	.npn-order-config-builder .npn-order-config-class-head .npn-field-wide {
		grid-template-columns: 1fr;
		grid-column: auto;
	}
}

/* =========================================================
   v40 - Professional rate-card admin layout for Retouching / Video / DIY.
   Scope: order config builder only; keeps Photo Editing layout untouched.
========================================================= */
.npn-order-config-top-admin {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    padding: 14px 16px !important;
    margin-bottom: 14px !important;
    border: 1px solid #dbe4f0 !important;
    border-radius: 18px !important;
    background: #ffffff !important;
}

.npn-order-config-top-admin p {
    margin: 0 !important;
    max-width: 860px !important;
    color: #475569 !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
}

.npn-ratecard-guide {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding: 12px 14px !important;
    margin: 0 0 16px !important;
    border: 1px solid #cfe4ff !important;
    border-radius: 16px !important;
    background: linear-gradient(180deg, #f8fbff 0%, #f1f7ff 100%) !important;
    color: #0f172a !important;
}

.npn-ratecard-guide > strong {
    margin-right: 2px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
}

.npn-ratecard-guide span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    min-height: 28px !important;
    padding: 5px 10px !important;
    border: 1px solid #d8e7fb !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: #475569 !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
}

.npn-ratecard-guide b {
    color: #0f172a !important;
}

.npn-order-config-builder .npn-ratecard-row,
.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-builder .npn-ratecard-row {
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid #d7e2ef !important;
    border-radius: 22px !important;
    background: #ffffff !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .06) !important;
}

.npn-order-config-builder .npn-ratecard-editor,
.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-builder .npn-ratecard-editor {
    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
    align-items: stretch !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

.npn-ratecard-row-toolbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    padding: 16px 18px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
}

.npn-ratecard-row-toolbar > div {
    min-width: 0 !important;
    display: grid !important;
    gap: 3px !important;
}

.npn-ratecard-row-toolbar strong {
    display: block !important;
    color: #0f172a !important;
    font-size: 15px !important;
    line-height: 1.25 !important;
}

.npn-ratecard-row-toolbar small {
    display: block !important;
    color: #64748b !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
}

.npn-ratecard-row-kicker {
    display: inline-flex !important;
    width: fit-content !important;
    padding: 3px 8px !important;
    border: 1px solid #dbeafe !important;
    border-radius: 999px !important;
    background: #eff6ff !important;
    color: #2563eb !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: .035em !important;
}

.npn-ratecard-row-toolbar .npn-order-remove-class {
    flex: 0 0 auto !important;
    min-width: 104px !important;
    min-height: 40px !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

.npn-ratecard-editor-main {
    display: grid !important;
    grid-template-columns: minmax(0, 1.55fr) minmax(360px, .95fr) !important;
    gap: 16px !important;
    padding: 18px !important;
}

.npn-ratecard-panel {
    min-width: 0 !important;
    padding: 16px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 18px !important;
    background: #fbfdff !important;
}

.npn-ratecard-panel-primary {
    background: #ffffff !important;
}

.npn-ratecard-panel-bottom {
    margin: 0 18px 18px !important;
}

.npn-ratecard-panel-title {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
}

.npn-ratecard-panel-title > span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 26px !important;
    height: 26px !important;
    flex: 0 0 26px !important;
    border-radius: 999px !important;
    background: #0f172a !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

.npn-ratecard-panel-title strong {
    display: block !important;
    color: #0f172a !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
}

.npn-ratecard-panel-title small {
    display: block !important;
    margin-top: 2px !important;
    color: #64748b !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
}

.npn-ratecard-grid {
    display: grid !important;
    gap: 14px !important;
}

.npn-ratecard-grid-pricing {
    grid-template-columns: minmax(220px, 1.35fr) minmax(120px, .72fr) minmax(110px, .65fr) minmax(145px, .82fr) minmax(110px, .65fr) !important;
}

.npn-ratecard-grid-mapping {
    grid-template-columns: 1fr !important;
}

.npn-ratecard-grid-condition {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px) !important;
    align-items: stretch !important;
}

.npn-ratecard-grid .npn-field,
.npn-order-config-builder .npn-ratecard-editor .npn-field,
.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-builder .npn-ratecard-editor .npn-field {
    min-width: 0 !important;
    margin: 0 !important;
}

.npn-ratecard-editor .npn-field label {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-bottom: 7px !important;
    color: #0f172a !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
}

.npn-ratecard-editor .npn-field label small,
.npn-order-config-builder .npn-field-helpful label small {
    display: inline-flex !important;
    align-items: center !important;
    padding: 2px 7px !important;
    border: 1px solid #dbeafe !important;
    border-radius: 999px !important;
    background: #eef2ff !important;
    color: #475569 !important;
    font-size: 10.5px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

.npn-ratecard-editor input,
.npn-ratecard-editor select,
.npn-ratecard-editor textarea,
.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-builder .npn-ratecard-editor input,
.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-builder .npn-ratecard-editor select,
.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-builder .npn-ratecard-editor textarea {
    width: 100% !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
    border-radius: 13px !important;
}

.npn-ratecard-editor textarea,
.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-builder .npn-ratecard-editor textarea {
    min-height: 116px !important;
    resize: vertical !important;
}

.npn-ratecard-editor .npn-input-help,
.npn-order-config-builder .npn-ratecard-editor .npn-input-help {
    display: block !important;
    margin-top: 7px !important;
    color: #64748b !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
}

.npn-ratecard-editor .npn-quote-field {
    min-width: 0 !important;
}

.npn-ratecard-editor .npn-quote-check,
.npn-order-config-builder .npn-ratecard-editor .npn-quote-check {
    width: 100% !important;
    min-height: 116px !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 14px !important;
    border: 1px solid #fecaca !important;
    border-radius: 16px !important;
    background: #fff7f7 !important;
    box-sizing: border-box !important;
    white-space: normal !important;
}

.npn-ratecard-editor .npn-quote-check input {
    width: auto !important;
    min-height: 0 !important;
    margin-top: 3px !important;
}

.npn-ratecard-editor .npn-quote-check span {
    display: grid !important;
    gap: 5px !important;
    min-width: 0 !important;
    color: #b91c1c !important;
    line-height: 1.35 !important;
    word-break: normal !important;
}

.npn-ratecard-editor .npn-quote-check span strong {
    color: #dc2626 !important;
    font-size: 13px !important;
}

.npn-ratecard-editor .npn-quote-check span em {
    color: #b91c1c !important;
    font-size: 12px !important;
    font-style: normal !important;
    font-weight: 700 !important;
}

@media (max-width: 1480px) {
    .npn-ratecard-editor-main,
    .npn-ratecard-grid-condition {
        grid-template-columns: 1fr !important;
    }

    .npn-ratecard-grid-pricing {
        grid-template-columns: repeat(3, minmax(160px, 1fr)) !important;
    }
}

@media (max-width: 900px) {
    .npn-order-config-top-admin,
    .npn-ratecard-row-toolbar {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    .npn-ratecard-row-toolbar .npn-order-remove-class,
    .npn-order-config-top-admin .npn-order-add-class {
        width: 100% !important;
    }

    .npn-ratecard-editor-main {
        padding: 14px !important;
    }

    .npn-ratecard-panel-bottom {
        margin: 0 14px 14px !important;
    }

    .npn-ratecard-grid-pricing {
        grid-template-columns: 1fr !important;
    }
}

/* v48 - rate card shared demo editor */
.npn-ratecard-demo-panel {
    border-color: rgba(34, 211, 238, 0.22);
    background: linear-gradient(180deg, rgba(236, 254, 255, 0.82), rgba(248, 252, 255, 0.96));
}

.npn-ratecard-shared-demo {
    margin-top: 14px;
    border: 1px dashed rgba(14, 165, 233, 0.28);
    border-radius: 18px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.72);
}

.npn-ratecard-demo-shared-note {
    padding: 16px;
    background: rgba(248, 250, 252, 0.82);
    border-style: dashed;
}

.npn-ratecard-demo-shared-note .npn-ratecard-panel-title {
    margin: 0;
}

.npn-ratecard-editor .npn-order-config-class-visuals .npn-order-config-group-head {
    align-items: center;
    gap: 12px;
}

.npn-ratecard-editor .npn-order-config-class-visuals .npn-order-add-class-pair {
    min-height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0ea5e9, #22d3ee);
    color: #ffffff;
    border: 0;
    box-shadow: 0 10px 24px rgba(14, 165, 233, 0.22);
}

.npn-ratecard-editor .npn-visual-pairs {
    margin-top: 10px;
}

.npn-ratecard-editor .npn-visual-pair-row {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(148, 163, 184, 0.24);
}

/* v49 - fix rate-card admin name render area and responsive wrapping */
.npn-order-config-builder .npn-ratecard-editor-main,
.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-builder .npn-ratecard-editor-main {
    grid-template-columns: 1fr !important;
    align-items: start !important;
    gap: 14px !important;
}

.npn-order-config-builder .npn-ratecard-panel,
.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-builder .npn-ratecard-panel {
    align-self: start !important;
    height: auto !important;
    min-height: 0 !important;
}

.npn-order-config-builder .npn-ratecard-grid-pricing,
.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-builder .npn-ratecard-grid-pricing {
    grid-template-columns: minmax(260px, 1.45fr) minmax(140px, .75fr) minmax(130px, .75fr) !important;
    align-items: end !important;
}

.npn-order-config-builder .npn-ratecard-grid-pricing .npn-field:nth-child(4),
.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-builder .npn-ratecard-grid-pricing .npn-field:nth-child(4) {
    grid-column: 1 / span 2 !important;
    max-width: 420px !important;
}

.npn-order-config-builder .npn-ratecard-grid-pricing .npn-field:nth-child(5),
.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-builder .npn-ratecard-grid-pricing .npn-field:nth-child(5) {
    max-width: 180px !important;
}

.npn-order-config-builder .npn-ratecard-grid-pricing input,
.npn-order-config-builder .npn-ratecard-grid-pricing select,
.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-builder .npn-ratecard-grid-pricing input,
.npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-builder .npn-ratecard-grid-pricing select {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

@media (max-width: 980px) {
    .npn-order-config-builder .npn-ratecard-grid-pricing,
    .npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-builder .npn-ratecard-grid-pricing {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .npn-order-config-builder .npn-ratecard-grid-pricing .npn-field:nth-child(1),
    .npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-builder .npn-ratecard-grid-pricing .npn-field:nth-child(1) {
        grid-column: 1 / -1 !important;
    }
    .npn-order-config-builder .npn-ratecard-grid-pricing .npn-field:nth-child(4),
    .npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-builder .npn-ratecard-grid-pricing .npn-field:nth-child(4),
    .npn-order-config-builder .npn-ratecard-grid-pricing .npn-field:nth-child(5),
    .npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-builder .npn-ratecard-grid-pricing .npn-field:nth-child(5) {
        grid-column: auto !important;
        max-width: none !important;
    }
}

@media (max-width: 620px) {
    .npn-order-config-builder .npn-ratecard-grid-pricing,
    .npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-builder .npn-ratecard-grid-pricing {
        grid-template-columns: 1fr !important;
    }
    .npn-order-config-builder .npn-ratecard-grid-pricing .npn-field,
    .npn-service-edit-page-form .npn-edit-card.is-service-modal .npn-order-config-builder .npn-ratecard-grid-pricing .npn-field {
        grid-column: auto !important;
        max-width: none !important;
    }
}


/* v6 Admin image classifier saved counts */
.npn-admin-image-classification-card {
    margin: 18px 0 22px;
    padding: 18px;
    border: 1px solid rgba(14, 165, 233, 0.18);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(6, 31, 58, 0.96), rgba(4, 15, 32, 0.96));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
}
.npn-admin-image-classification-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}
.npn-admin-image-classification-head > div {
    display: grid;
    gap: 4px;
}
.npn-admin-image-classification-head strong {
    color: #f8fafc;
    font-size: 15px;
    font-weight: 900;
}
.npn-admin-image-classification-head span,
.npn-admin-image-classification-meta span {
    color: rgba(203, 213, 225, 0.78);
    font-size: 12px;
}
.npn-admin-image-classification-head em {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(20, 184, 166, 0.14);
    color: #67e8f9;
    border: 1px solid rgba(45, 212, 191, 0.24);
    font-style: normal;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}
.npn-admin-image-classification-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}
.npn-admin-image-classification-grid div {
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 14px;
    background: rgba(3, 12, 27, 0.58);
}
.npn-admin-image-classification-grid span {
    display: block;
    color: rgba(203, 213, 225, 0.72);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.npn-admin-image-classification-grid strong {
    display: block;
    margin-top: 6px;
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
}
.npn-admin-image-classification-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 12px;
}
@media (max-width: 780px) {
    .npn-admin-image-classification-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .npn-admin-image-classification-head { flex-direction: column; }
}

/* v39 - keep admin notification dropdown/toast above sticky bars and service modals */
.npn-notification-panel {
    z-index: 2147483647 !important;
}
.npn-notification-wrap {
    z-index: 2147483646 !important;
}
.npn-admin-toast,
.npn-wallet-toast {
    z-index: 2147483647 !important;
}
.npn-virtual-twilight-hidden-head {
    display: none !important;
}

/* v42 - Retouching quote-only front options */
.npn-order-detail-segment-retouching-quote {
    display: grid;
    gap: 14px;
}
.npn-order-detail-segment-retouching-quote .npn-retouch-quote-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.npn-order-detail-segment-retouching-quote .npn-retouch-demo-panel {
    grid-column: 1 / -1;
    border: 1px solid rgba(34, 211, 238, .26);
    border-radius: 16px;
    padding: 14px;
    background: rgba(12, 24, 48, .66);
}
.npn-retouch-demo-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.npn-retouch-demo-head strong {
    color: #fff;
    font-weight: 800;
}
.npn-retouch-demo-head span {
    color: rgba(226, 232, 240, .72);
    font-size: 12px;
}
.npn-retouch-demo-buttons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.npn-retouch-demo-btn {
    min-height: 38px;
}
@media (max-width: 720px) {
    .npn-order-detail-segment-retouching-quote .npn-retouch-quote-options,
    .npn-retouch-demo-buttons {
        grid-template-columns: 1fr;
    }
}

/* v43 - WebSocket live chat */
.npn-admin-live-chat-wrap {
    position: relative;
    z-index: 2147483646 !important;
}
.npn-admin-live-chat-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    width: min(760px, calc(100vw - 34px));
    height: min(620px, calc(100vh - 96px));
    max-height: calc(100vh - 80px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    background: #fff;
    border: 1px solid #dbe7f3;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
    overflow: hidden;
    z-index: 2147483647 !important;
}
.npn-admin-live-chat-panel[hidden] {
    display: none !important;
}
.npn-admin-live-chat-head {
    padding: 15px 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid #eef2f7;
    background: linear-gradient(135deg, #f8fbff, #eef6ff);
}
.npn-admin-live-chat-head strong,
.npn-admin-live-chat-head span {
    display: block;
}
.npn-admin-live-chat-head strong {
    color: #0f172a;
    font-size: 15px;
    margin-bottom: 3px;
}
.npn-admin-live-chat-head span {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}
.npn-admin-live-chat-head button,
.npn-admin-live-chat-form button {
    border: 1px solid #cfe0f5;
    border-radius: 999px;
    background: #fff;
    color: #125fc8;
    font-weight: 800;
    font-size: 12px;
    padding: 8px 12px;
    cursor: pointer;
    white-space: nowrap;
}
.npn-admin-live-chat-body {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    min-height: 0;
    height: 100%;
    overflow: hidden;
}
.npn-admin-live-chat-threads {
    min-height: 0;
    border-right: 1px solid #eef2f7;
    overflow-y: auto;
    overflow-x: hidden;
    background: #f8fbff;
    padding: 8px;
}
.npn-admin-live-chat-thread {
    width: 100%;
    display: block;
    position: relative;
    text-align: left;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 14px;
    padding: 11px 36px 11px 12px;
    cursor: pointer;
    color: #0f172a;
}
.npn-admin-live-chat-thread:hover,
.npn-admin-live-chat-thread.is-active {
    background: #fff;
    border-color: #dbe7f3;
    box-shadow: 0 8px 18px rgba(15, 94, 210, .08);
}
.npn-admin-live-chat-thread strong,
.npn-admin-live-chat-thread span {
    display: block;
}
.npn-admin-live-chat-thread strong {
    font-size: 13px;
    margin-bottom: 4px;
}
.npn-admin-live-chat-thread span {
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.npn-admin-live-chat-thread em {
    position: absolute;
    right: 10px;
    top: 10px;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
}
.npn-admin-live-chat-conversation {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}
.npn-admin-live-chat-messages {
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 14px;
    background: #fff;
    scroll-behavior: smooth;
}
.npn-admin-live-chat-empty {
    padding: 26px 14px;
    color: #64748b;
    text-align: center;
    font-weight: 700;
}
.npn-admin-live-chat-message {
    max-width: 78%;
    margin: 0 0 10px;
    padding: 10px 12px;
    border-radius: 15px;
    border: 1px solid #dbe7f3;
    background: #f8fbff;
    color: #0f172a;
}
.npn-admin-live-chat-message.is-mine {
    margin-left: auto;
    background: #e8f3ff;
    border-color: #b7d4ff;
}
.npn-admin-live-chat-message strong,
.npn-admin-live-chat-message p,
.npn-admin-live-chat-message time {
    display: block;
    margin: 0;
}
.npn-admin-live-chat-message strong {
    font-size: 12px;
    margin-bottom: 4px;
    color: #125fc8;
}
.npn-admin-live-chat-message p {
    font-size: 13px;
    line-height: 1.45;
}
.npn-admin-live-chat-message time {
    color: #94a3b8;
    font-size: 11px;
    margin-top: 6px;
    font-weight: 700;
}
.npn-admin-live-chat-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #eef2f7;
    background: #f8fbff;
    position: relative;
    z-index: 2;
}
.npn-admin-live-chat-form input {
    width: 100%;
    border: 1px solid #cfe0f5;
    border-radius: 999px;
    padding: 10px 13px;
    outline: none;
}
@media (max-width: 780px) {
    .npn-admin-live-chat-panel {
        right: -80px;
        width: min(560px, calc(100vw - 24px));
        height: min(620px, calc(100vh - 88px));
    }
    .npn-admin-live-chat-body {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
    }
    .npn-admin-live-chat-threads {
        max-height: 170px;
        border-right: 0;
        border-bottom: 1px solid #eef2f7;
    }
}

/* Quote panel: service code selector and quote history */
.npn-admin-quote-table select {
    width: 100%;
    min-width: 180px;
    border: 1px solid #d7e3f2;
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
    color: #0f172a;
    font-weight: 600;
}
.npn-admin-quote-history {
    clear: both;
    margin-top: 22px;
    padding-top: 18px;
    display: grid;
    gap: 10px;
    border-top: 1px solid #e5edf7;
}
.npn-admin-quote-history h4 {
    margin: 0 0 4px;
    font-size: 15px;
    color: #0f172a;
}
.npn-admin-quote-history-item {
    border: 1px solid #dbe7f3;
    border-radius: 14px;
    background: #f8fbff;
    overflow: hidden;
}
.npn-admin-quote-history-item summary {
    cursor: pointer;
    padding: 12px 14px;
    color: #0f172a;
    font-weight: 800;
}
.npn-admin-quote-history-item .npn-responsive-table {
    padding: 0 12px 12px;
}

/* v60 - Retouching folder-based before/after demo editor */
.npn-retouch-demo-config {
    margin: 18px 0 22px;
    border: 1px solid rgba(14, 165, 233, .22);
    background: linear-gradient(180deg, rgba(248, 251, 255, .96), rgba(241, 247, 255, .9));
    border-radius: 18px;
    padding: 18px;
}
.npn-retouch-demo-config > .npn-order-config-group-head {
    align-items: center;
    gap: 16px;
}
.npn-retouch-demo-folders {
    display: grid;
    gap: 16px;
    margin-top: 14px;
}
.npn-retouch-demo-folder-row {
    border: 1px solid rgba(148, 163, 184, .32);
    border-radius: 18px;
    background: rgba(255,255,255,.88);
    padding: 16px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}
.npn-retouch-demo-folder-head {
    align-items: end;
    gap: 16px;
    margin-bottom: 14px;
}
.npn-retouch-demo-folder-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.npn-retouch-demo-pairs {
    display: grid;
    gap: 12px;
}
.npn-retouch-demo-pairs .npn-visual-pair-row {
    margin: 0;
}
@media (max-width: 780px) {
    .npn-retouch-demo-folder-head {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
    .npn-retouch-demo-folder-actions {
        justify-content: flex-start;
    }
}

/* v62 - Retouching 3 frontend tabs with per-tab demo folders */
.npn-retouch-section-config {
    margin: 18px 0 22px;
    border: 1px solid rgba(14, 165, 233, .22);
    background: linear-gradient(180deg, rgba(248, 251, 255, .98), rgba(241, 247, 255, .94));
    border-radius: 18px;
    padding: 18px;
}
.npn-retouch-section-list {
    display: grid;
    gap: 18px;
    margin-top: 16px;
}
.npn-retouch-section-row {
    border: 1px solid #dbe7f3;
    border-radius: 18px;
    background: #fff;
    padding: 16px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
}
.npn-retouch-section-head {
    margin-bottom: 14px;
}
.npn-retouch-demo-config-nested {
    margin: 0;
    padding: 14px;
    background: #f8fbff;
}
.npn-retouch-demo-config-nested .npn-order-config-group-head {
    gap: 12px;
}

/* Retouching: section 3 only keeps quote control, so make it full width. */
.npn-ratecard-grid-condition > .npn-quote-field:only-child {
    grid-column: 1 / -1 !important;
    max-width: 560px !important;
}

/* v64 - Retouching demo mode: direct pairs or folders per main tab */
.npn-retouch-demo-config-nested[data-retouch-demo-config] {
    display: grid;
    gap: 14px;
}
.npn-retouch-demo-mode {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 8px;
    border: 1px solid #d9e8f6;
    border-radius: 18px;
    background: #eef6ff;
}
.npn-retouch-demo-mode-btn {
    min-height: 44px;
    border: 1px solid #cbdced;
    border-radius: 14px;
    background: #fff;
    color: #0f172a;
    font-weight: 800;
    cursor: pointer;
}
.npn-retouch-demo-mode-btn.is-active {
    border-color: #0ea5e9;
    background: linear-gradient(135deg, #22d3ee, #0ea5e9);
    color: #001423;
    box-shadow: 0 10px 22px rgba(14,165,233,.20);
}
.npn-retouch-direct-demo,
.npn-retouch-folder-demo {
    border: 1px dashed rgba(14, 165, 233, .25);
    border-radius: 18px;
    padding: 14px;
    background: rgba(255,255,255,.82);
}
.npn-retouch-direct-demo-pairs {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}
.npn-retouch-demo-config-nested[data-retouch-demo-active-mode="direct"] .npn-retouch-folder-demo,
.npn-retouch-demo-config-nested[data-retouch-demo-active-mode="folders"] .npn-retouch-direct-demo {
    display: none;
}
@media (max-width: 760px) {
    .npn-retouch-demo-mode {
        grid-template-columns: 1fr;
    }
}

/* v67 - Retouching demo folder compact/collapsible editor */
.npn-retouch-demo-folder-summary {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto auto;
    gap: 14px;
    align-items: end;
}
.npn-retouch-folder-name-field {
    min-width: 0;
}
.npn-retouch-demo-folder-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: #eef6ff;
    border: 1px solid #d9e8f6;
    color: #486078;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}
.npn-retouch-demo-folder-row.is-collapsed {
    padding-bottom: 16px;
}
.npn-retouch-demo-folder-row.is-collapsed .npn-retouch-demo-pairs {
    display: none;
}
.npn-retouch-demo-folder-row.is-open .npn-retouch-demo-pairs {
    margin-top: 14px;
}
.npn-retouch-demo-toggle-folder {
    background: #eaf4ff;
    border-color: #cfe1f3;
    color: #0f365b;
}
.npn-retouch-demo-folder-row.is-collapsed .npn-retouch-demo-folder-summary {
    align-items: center;
}
.npn-retouch-demo-folder-row.is-collapsed .npn-retouch-folder-name-field label {
    margin-bottom: 6px;
}
@media (max-width: 980px) {
    .npn-retouch-demo-folder-summary {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
    .npn-retouch-demo-folder-actions {
        justify-content: flex-start;
    }
    .npn-retouch-demo-folder-count {
        width: max-content;
    }
}


/* v52 - Service order-card demo before/after pairs */
.npn-service-order-demo-panel .npn-service-order-demo-card,
.npn-service-order-demo-modal-wrap .npn-service-order-demo-card {
    width: 100%;
    margin: 0;
}

.npn-service-order-demo-card .npn-order-config-group-head {
    align-items: flex-start;
}

.npn-service-order-demo-card .npn-order-config-group-head > div {
    display: grid;
    gap: 4px;
}

.npn-service-order-demo-card .npn-help-text {
    margin: 0;
    color: #64748b;
}

.npn-service-order-demo-card .npn-visual-pair-row {
    background: rgba(255,255,255,0.9);
}

/* Employee role money masking + account/price-list admin additions */
.npn-admin-employee-role .npn-price-list-form,
.npn-admin-employee-role .npn-price-list-table,
.npn-admin-employee-role .npn-price-version-tabs {
    filter: blur(5px);
    pointer-events: none;
    user-select: none;
}
.npn-admin-employee-role .npn-price-list-form::before {
    content: 'Nhân viên không có quyền xem mệnh giá tiền.';
    display: block;
    filter: none;
    margin: 0 0 12px;
    font-weight: 700;
    color: #b91c1c;
}
.npn-admin-inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 16px 0;
}
.npn-admin-inline-form input,
.npn-admin-inline-form select,
.npn-admin-table-form select,
.npn-price-list-table input,
.npn-price-list-form input {
    border: 1px solid #d6e2f2;
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
    min-height: 42px;
}
.npn-admin-table-form {
    display: flex;
    gap: 8px;
    align-items: center;
}
.npn-price-version-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0 18px;
}
.npn-price-list-scroll {
    width: 100%;
    overflow: auto;
    border: 1px solid #dbe7f4;
    border-radius: 18px;
    background: #fff;
    margin: 16px 0;
}
.npn-price-list-table {
    width: max(1320px, 100%);
    border-collapse: collapse;
}
.npn-price-list-table th {
    background: #ff9800;
    color: #111827;
    font-weight: 800;
    padding: 10px;
    border: 1px solid #1f2937;
    text-align: left;
    white-space: nowrap;
}
.npn-price-list-table td {
    border: 1px solid #1f2937;
    padding: 6px;
    background: #fff7d6;
}
.npn-price-list-table tr:nth-child(even) td { background: #e5f0f2; }
.npn-price-list-table input { width: 100%; min-width: 110px; border-radius: 8px; min-height: 36px; padding: 6px 8px; }
.npn-price-list-table input[readonly] { background: #f1f5f9; color: #64748b; }
.npn-notification-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}
.npn-notification-item > a {
    display: grid;
    grid-template-columns: 12px 1fr;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}
.npn-notification-item.is-done { opacity: .62; }
.npn-notification-done-btn,
.npn-notification-done-label {
    border: 1px solid rgba(14,165,233,.35);
    background: rgba(14,165,233,.08);
    color: #0369a1;
    border-radius: 999px;
    padding: 7px 10px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}
.npn-notification-done-label {
    background: rgba(34,197,94,.12);
    color: #15803d;
    cursor: default;
}


/* Notification complete/check icon */
.npn-notification-item {
    grid-template-columns: 10px 1fr auto;
    align-items: center;
}

.npn-notification-item > a {
    display: contents;
    color: inherit;
    text-decoration: none;
}

.npn-notification-done-btn,
.npn-notification-done-label {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    font-weight: 1000;
    white-space: nowrap;
}

.npn-notification-done-btn {
    border: 1px solid #9ae6b4;
    background: #ecfdf5;
    color: #16a34a;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(22, 163, 74, .12);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.npn-notification-done-btn:hover {
    transform: translateY(-1px);
    background: #dcfce7;
    box-shadow: 0 12px 24px rgba(22, 163, 74, .18);
}

.npn-notification-done-label {
    border: 1px solid #bbf7d0;
    background: #dcfce7;
    color: #15803d;
}


/* Notification status: unfinished = red action, completed = green check */
.npn-notification-item {
    grid-template-columns: 10px 1fr auto;
    align-items: center;
}

.npn-notification-item > a {
    display: contents;
    color: inherit;
    text-decoration: none;
}

.npn-notification-done-btn,
.npn-notification-done-label {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    font-weight: 1000;
    white-space: nowrap;
}

.npn-notification-done-btn {
    border: 1px solid #fecaca !important;
    background: #fff1f2 !important;
    color: #e11d48 !important;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(225, 29, 72, .12);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.npn-notification-done-btn:hover {
    transform: translateY(-1px);
    background: #ffe4e6 !important;
    box-shadow: 0 12px 24px rgba(225, 29, 72, .18);
}

.npn-notification-done-label {
    border: 1px solid #bbf7d0 !important;
    background: #dcfce7 !important;
    color: #15803d !important;
}

/* Account management polished UI */
.npn-accounts-page {
    gap: 22px;
}

.npn-accounts-hero .npn-panel-head,
.npn-accounts-list-card .npn-panel-head {
    align-items: center;
}

.npn-accounts-summary {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.npn-accounts-summary span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    border-radius: 999px;
    background: #f1f7ff;
    border: 1px solid #d8e8fb;
    color: #48617e;
    font-weight: 800;
}

.npn-accounts-summary b {
    color: #0f172a;
    font-size: 16px;
}

.npn-accounts-action-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
}

.npn-account-card-form {
    padding: 18px;
    border: 1px solid #dbe7f3;

    background: linear-gradient(135deg, #ffffff, #f7fbff);
    box-shadow: 0 12px 34px rgba(15, 23, 42, .05);
}
.npn-account-create-form {
    border-radius: 0 0 0 20px;
}
.npn-account-role-form {
   border-radius: 0 0 20px 0; 
}
.npn-account-card-form h3 {
    margin: 0 0 4px;
    font-size: 17px;
    color: #0f172a;
}

.npn-account-card-form p {
    margin: 0 0 14px;
    color: #64748b;
    font-weight: 700;
}

.npn-account-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.npn-account-role-form .npn-account-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.npn-account-form-grid label,
.npn-account-edit-form label,
.npn-account-password-form label {
    display: grid;
    gap: 7px;
    font-weight: 800;
    color: #334155;
}

.npn-account-form-grid label span,
.npn-account-edit-form label span,
.npn-account-password-form label span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #64748b;
}

.npn-account-form-grid input,
.npn-account-form-grid select,
.npn-account-edit-form input,
.npn-account-edit-form select,
.npn-account-password-form input {
    width: 100%;
    min-height: 44px;
    border-radius: 14px;
    border: 1px solid #cfe0f5;
    padding: 0 13px;
    background: #fff;
    color: #0f172a;
    font-weight: 750;
}

.npn-accounts-table-wrap {
    overflow: visible;
}

.npn-accounts-table {
    table-layout: auto;
}

.npn-accounts-table th,
.npn-accounts-table td {
    vertical-align: middle;
}

.npn-account-user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
}

.npn-account-user-cell img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2ecf8;
}

.npn-account-user-cell strong,
.npn-account-user-cell small {
    display: block;
}

.npn-account-user-cell strong {
    color: #0f172a;
    font-size: 14px;
}

.npn-account-user-cell small {
    color: #64748b;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 750;
}

.npn-account-code-pill,
.npn-account-role-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    font-weight: 850;
    font-size: 12px;
    white-space: nowrap;
}

.npn-account-code-pill {
    background: #eef6ff;
    color: #1d4ed8;
    border: 1px solid #cfe0f5;
}

.npn-account-role-pill {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #bbf7d0;
}

.npn-account-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    min-width: 360px;
    position: relative;
}

.npn-account-actions .npn-btn {
    white-space: nowrap;
    min-height: 40px;
    padding: 10px 13px;
}

.npn-account-action-popover {
    position: relative;
}

.npn-account-action-popover summary {
    list-style: none;
    cursor: pointer;
}

.npn-account-action-popover summary::-webkit-details-marker {
    display: none;
}

.npn-account-popover-box {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 50;
    width: min(420px, calc(100vw - 40px));
    padding: 16px;
    border: 1px solid #d8e8fb;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .18);
}

.npn-account-popover-box h4 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 16px;
}

.npn-account-edit-form,
.npn-account-password-form {
    display: grid;
    gap: 12px;
}

.npn-account-wp-link {
    color: #334155;
}

@media (max-width: 1100px) {
    .npn-accounts-action-grid,
    .npn-account-form-grid,
    .npn-account-role-form .npn-account-form-grid {
        grid-template-columns: 1fr;
    }

    .npn-account-actions {
        min-width: 0;
        flex-wrap: wrap;
    }

    .npn-account-popover-box {
        left: 0;
        right: auto;
    }
}


/* Account role labels in Vietnamese + polished price list UI */
.npn-account-role-pill {
    text-transform: none;
}

.npn-price-list-page {
    gap: 22px;
}

.npn-price-list-hero,
.npn-price-list-form {
    overflow: hidden;
}

.npn-section-eyebrow {
    display: inline-flex;
    margin: 0 0 6px;
    color: #64748b;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 900;
}

.npn-price-list-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.npn-price-list-summary span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border: 1px solid #dbe7f3;
    border-radius: 999px;
    background: #f8fbff;
    color: #506681;
    font-weight: 800;
    white-space: nowrap;
}

.npn-price-list-summary span.is-active {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #047857;
}

.npn-price-filter-bar {
    display: grid;
    grid-template-columns: minmax(240px, 1.2fr) minmax(220px, 1fr) minmax(170px, .7fr) auto;
    gap: 12px;
    align-items: end;
    padding: 18px;
    border-top: 1px solid #e6eef8;
    background: linear-gradient(135deg, #f8fbff, #eef6ff);
}

.npn-price-filter-bar label,
.npn-price-version-fields label {
    display: grid;
    gap: 7px;
    color: #334155;
    font-weight: 850;
}

.npn-price-filter-bar label span,
.npn-price-version-fields label span {
    color: #64748b;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.npn-price-filter-bar input,
.npn-price-filter-bar select,
.npn-price-version-fields input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 15px;
    border: 1px solid #cfe0f5;
    background: #fff;
    color: #0f172a;
    font-weight: 800;
}

.npn-price-filter-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.npn-price-version-history {
    padding: 18px;
    border-top: 1px solid #e6eef8;
    background: #fff;
}

.npn-price-version-history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.npn-price-version-history-head strong {
    color: #0f172a;
    font-size: 15px;
}

.npn-price-version-history-head small {
    color: #64748b;
    font-weight: 800;
}

.npn-price-version-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.npn-price-version-card,
.npn-price-version-empty {
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid #dbe7f3;
    border-radius: 17px;
    background: linear-gradient(135deg, #ffffff, #f8fbff);
    color: #0f172a;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .04);
}

.npn-price-version-card:hover {
    border-color: #8fc3ff;
    box-shadow: 0 14px 34px rgba(15, 94, 210, .10);
}

.npn-price-version-card.is-current {
    border-color: #0ea5e9;
    box-shadow: inset 0 0 0 1px rgba(14, 165, 233, .35), 0 14px 34px rgba(14, 165, 233, .12);
}

.npn-price-version-card.is-active {
    background: linear-gradient(135deg, #ecfdf5, #f8fffb);
    border-color: #86efac;
}

.npn-price-version-card span {
    font-weight: 900;
}

.npn-price-version-card strong {
    color: #0284c7;
    font-size: 13px;
}

.npn-price-version-card small,
.npn-price-version-empty {
    color: #64748b;
    font-weight: 800;
}

.npn-price-editor-head {
    border-bottom: 1px solid #e6eef8;
    background: #fff;
}

.npn-price-version-fields {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 220px;
    gap: 14px;
    padding: 18px;
    background: linear-gradient(135deg, #f8fbff, #ffffff);
    border-bottom: 1px solid #e6eef8;
}

.npn-price-list-scroll {
    width: calc(100% - 36px) !important;
    margin: 18px !important;
    overflow: auto;
    border: 1px solid #dbe7f3 !important;
    border-radius: 20px !important;
    background: #fff !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .06);
}

.npn-price-list-table {
    width: max(1420px, 100%) !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: #fff !important;
    font-size: 13px;
}

.npn-price-list-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: linear-gradient(135deg, #0f2748, #143d68) !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    padding: 13px 12px !important;
    border: 0 !important;
    border-right: 1px solid rgba(255,255,255,.12) !important;
    text-align: left !important;
    white-space: nowrap;
}

.npn-price-list-table th:first-child {
    border-top-left-radius: 18px;
}

.npn-price-list-table th:last-child {
    border-top-right-radius: 18px;
    border-right: 0 !important;
}

.npn-price-list-table td {
    border: 0 !important;
    border-bottom: 1px solid #e6eef8 !important;
    border-right: 1px solid #eef3f8 !important;
    padding: 10px 8px !important;
    background: #ffffff !important;
    vertical-align: middle;
}

.npn-price-list-table tr:nth-child(even) td {
    background: #f8fbff !important;
}

.npn-price-list-table tr:hover td {
    background: #eff8ff !important;
}

.npn-price-list-table td:last-child {
    border-right: 0 !important;
}

.npn-price-list-table input {
    width: 100% !important;
    min-width: 118px;
    min-height: 42px !important;
    border-radius: 13px !important;
    border: 1px solid #cfe0f5 !important;
    background: #fff !important;
    color: #0f172a !important;
    padding: 8px 10px !important;
    font-weight: 800;
}

.npn-price-list-table input:focus,
.npn-price-filter-bar input:focus,
.npn-price-filter-bar select:focus,
.npn-price-version-fields input:focus {
    outline: none;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, .14);
}

.npn-price-list-table input[readonly] {
    background: #f1f5f9 !important;
    color: #64748b !important;
}

.npn-price-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 86px;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid #bbf7d0;
    background: #ecfdf5;
    color: #047857;
    font-weight: 900;
}

.npn-price-toggle input {
    width: 18px !important;
    min-width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    padding: 0 !important;
    accent-color: #16a34a;
}

.npn-price-toggle:has(input:not(:checked)) {
    background: #fff1f2;
    border-color: #fecaca;
    color: #e11d48;
}

.npn-price-list-submit {
    display: flex;
    justify-content: flex-start;
    padding: 0 18px 18px;
}

@media (max-width: 1200px) {
    .npn-price-filter-bar {
        grid-template-columns: 1fr 1fr;
    }
    .npn-price-filter-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .npn-price-filter-bar,
    .npn-price-version-fields {
        grid-template-columns: 1fr;
    }
    .npn-price-list-summary {
        justify-content: flex-start;
    }
}


/* Price list Excel import/export */
.npn-price-excel-tools {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #d9e7f5;
    border-radius: 20px;
    background: linear-gradient(135deg, #f8fbff, #eef7ff);
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 16px;
    align-items: start;
}

.npn-price-excel-copy strong,
.npn-price-excel-copy small {
    display: block;
}

.npn-price-excel-copy strong {
    color: #0f172a;
    font-size: 16px;
    margin-bottom: 5px;
}

.npn-price-excel-copy small {
    color: #64748b;
    line-height: 1.45;
}

.npn-price-excel-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.npn-price-excel-import {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(240px, 1.3fr) minmax(180px, .7fr) auto;
    gap: 12px;
    align-items: end;
    padding-top: 14px;
    border-top: 1px dashed #c7d8ea;
}

.npn-price-excel-import label {
    display: grid;
    gap: 6px;
    margin: 0;
}

.npn-price-excel-import span {
    color: #50627b;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.npn-price-excel-import input[type="file"],
.npn-price-excel-import select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #d6e3f1;
    border-radius: 14px;
    padding: 10px 12px;
    background: #fff;
    color: #0f172a;
    font-weight: 700;
}

@media (max-width: 900px) {
    .npn-price-excel-tools {
        grid-template-columns: 1fr;
    }

    .npn-price-excel-actions {
        justify-content: flex-start;
    }

    .npn-price-excel-import {
        grid-template-columns: 1fr;
    }
}


/* Price list import result alert */
.npn-price-import-alert {
    border-radius: 18px;
    padding: 16px 18px;
    border: 1px solid #dbe7f3;
    background: #f8fbff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, .06);
}

.npn-price-import-alert strong,
.npn-price-import-alert p,
.npn-price-import-alert small {
    display: block;
}

.npn-price-import-alert strong {
    color: #0f172a;
    font-size: 16px;
    margin-bottom: 6px;
}

.npn-price-import-alert p {
    color: #334155;
    margin: 0 0 6px;
    font-weight: 700;
    line-height: 1.45;
}

.npn-price-import-alert small {
    color: #64748b;
    line-height: 1.4;
}

.npn-admin-alert-danger {
    border-color: #fecaca;
    background: #fff1f2;
}

.npn-admin-alert-danger strong {
    color: #be123c;
}

.npn-admin-alert-success {
    border-color: #bbf7d0;
    background: #ecfdf5;
}

.npn-admin-alert-success strong {
    color: #15803d;
}

.npn-price-list-page form label {
	margin-bottom: 0;
}
.npn-price-excel-import select[name="import_mode"],
.npn-price-excel-import > button{
	height: 58px;
}
body.npn-admin-employee-role .npn-hide-for-employee-money,
body.npn-admin-employee-role .npn-money-hidden-for-employee {
    display: none !important;
}

/* Support tickets */
.npn-ticket-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 14px;
    margin: 0 0 18px;
}
.npn-ticket-stat-grid .npn-stat-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 118px;
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid #dbe7f3;
    background:
        radial-gradient(circle at top right, rgba(255, 204, 0, .18), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 14px 36px rgba(15, 23, 42, .055);
}
.npn-ticket-stat-grid .npn-stat-card::after {
    right: -22px;
    top: -24px;
    width: 76px;
    height: 76px;
    background: rgba(255, 204, 0, .22);
}
.npn-ticket-stat-grid .npn-stat-card span {
    display: block;
    width: auto;
    height: auto;
    margin: 0 0 12px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #64748b;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.npn-ticket-stat-grid .npn-stat-card strong {
    margin: 0;
    color: #07152b;
    font-size: 36px;
    line-height: 1;
    letter-spacing: -.03em;
}
.npn-ticket-filter-bar {
    display: grid;
    grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(150px, .8fr)) auto auto;
    gap: 12px;
    align-items: center;
    padding: 16px;
}
.npn-ticket-filter-bar input,
.npn-ticket-filter-bar select {
    width: 100%;
    min-height: 46px;
    border-radius: 14px;
    border: 1px solid #dbe7f3;
    background: #fff;
    color: #0f172a;
    font-weight: 700;
    padding: 0 12px;
}
.npn-ticket-list-panel {
    margin-top: 16px;
    overflow: hidden;
}
.npn-ticket-admin-table td {
    vertical-align: top;
}
.npn-ticket-admin-table tr.is-open td:first-child strong,
.npn-ticket-admin-table tr.is-in_progress td:first-child strong,
.npn-ticket-admin-table tr.is-pending td:first-child strong {
    color: #0f172a;
}
.npn-ticket-admin-table small,
.npn-row-id {
    color: #64748b;
    font-weight: 700;
    line-height: 1.35;
}
.npn-ticket-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    border-radius: 999px;
    padding: 6px 10px;
    border: 1px solid #dbe7f3;
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}
.npn-ticket-status-pill.is-open {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}
.npn-ticket-status-pill.is-in_progress {
    border-color: #fde68a;
    background: #fffbeb;
    color: #b45309;
}
.npn-ticket-status-pill.is-pending {
    border-color: #ddd6fe;
    background: #f5f3ff;
    color: #6d28d9;
}
.npn-ticket-status-pill.is-resolved {
    border-color: #bbf7d0;
    background: #ecfdf5;
    color: #15803d;
}
.npn-ticket-status-pill.is-closed {
    border-color: #e2e8f0;
    background: #f1f5f9;
    color: #475569;
}
.npn-ticket-detail-grid {
    align-items: start;
}
.npn-ticket-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.npn-ticket-meta-grid > div {
    border: 1px solid #e5edf6;
    border-radius: 16px;
    background: #f8fbff;
    padding: 12px 14px;
}
.npn-ticket-meta-grid span {
    display: block;
    margin-bottom: 5px;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.npn-ticket-meta-grid strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.35;
    word-break: break-word;
}
.npn-ticket-message-box {
    margin-top: 14px;
    border: 1px solid #e5edf6;
    border-radius: 18px;
    background: #fff;
    padding: 16px;
}
.npn-ticket-message-box span {
    display: block;
    margin-bottom: 8px;
    color: #475569;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.npn-ticket-message-box p {
    margin: 0;
    color: #1e293b;
    line-height: 1.6;
    font-weight: 650;
}
.npn-ticket-message-box .npn-ticket-files {
    margin-top: 0;
}
.npn-ticket-files {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.npn-ticket-files a,
.npn-ticket-files span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border-radius: 999px;
    padding: 7px 11px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}
.npn-ticket-files a:hover {
    border-color: #38bdf8;
    background: #eff6ff;
}
@media (max-width: 1180px) {
    .npn-ticket-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .npn-ticket-filter-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 720px) {
    .npn-ticket-stat-grid,
    .npn-ticket-filter-bar,
    .npn-ticket-meta-grid {
        grid-template-columns: 1fr !important;
    }
    .npn-ticket-stat-grid .npn-stat-card {
        min-height: 104px;
    }
}

/* Admin statistics / reports */
.npn-admin-stats-page {
    display: grid;
    gap: 22px;
}
.npn-admin-stats-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
}
.npn-admin-stats-head h2 {
    margin: 4px 0 8px;
    font-size: 30px;
    color: #0f172a;
}
.npn-admin-stats-head span {
    display: inline-block;
    color: #64748b;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 12px;
}
.npn-admin-stats-head p {
    margin: 0;
    color: #64748b;
}
.npn-admin-stats-export-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.npn-admin-stats-filter {
    padding: 18px;
}
.npn-admin-stats-filter .npn-filter-grid {
    align-items: end;
}
.npn-admin-stats-kpi-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
.npn-admin-stats-grid {
    display: grid;
    gap: 22px;
}
.npn-admin-stats-grid.two-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.npn-admin-stats-grid.three-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 18px;
}
.npn-admin-stats-chart-panel {
    overflow: hidden;
}
.npn-admin-stats-bars {
    min-height: 260px;
    padding: 24px 18px 14px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    overflow-x: auto;
}
.npn-admin-stats-bar-day {
    min-width: 34px;
    height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}
.npn-admin-stats-bar-pair {
    height: 180px;
    width: 26px;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    padding: 0 2px;
    border-bottom: 1px solid #e2e8f0;
}
.npn-admin-stats-bar-pair span {
    display: block;
    width: 9px;
    min-height: 0;
    border-radius: 8px 8px 2px 2px;
}
.npn-admin-stats-bar-pair .is-orders,
.npn-admin-stats-legend .is-orders {
    background: #0ea5e9;
}
.npn-admin-stats-bar-pair .is-revenue,
.npn-admin-stats-legend .is-revenue {
    background: #22c55e;
}
.npn-admin-stats-bar-day small {
    color: #64748b;
    font-size: 11px;
    white-space: nowrap;
}
.npn-admin-stats-legend {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px 18px;
    color: #64748b;
    font-size: 13px;
}
.npn-admin-stats-legend span {
    width: 11px;
    height: 11px;
    display: inline-block;
    border-radius: 4px;
}
.npn-admin-stats-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 12px;
    font-weight: 800;
}

.npn-admin-stats-service-panel {
    overflow: hidden;
}
.npn-admin-stats-service-chart {
    display: grid;
    gap: 12px;
    padding: 18px;
}
.npn-admin-stats-service-row {
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid #e5edf7;
    border-radius: 16px;
    background: #fff;
}
.npn-admin-stats-service-info strong {
    display: block;
    color: #0f172a;
    font-size: 15px;
    line-height: 1.3;
}
.npn-admin-stats-service-info small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    line-height: 1.45;
}
.npn-admin-stats-service-bars {
    display: grid;
    gap: 7px;
}
.npn-admin-stats-service-bars span {
    display: block;
    height: 13px;
    border-radius: 999px;
    min-width: 3px;
}
.npn-admin-stats-service-bars .is-orders,
.npn-admin-stats-service-legend .is-orders {
    background: #0ea5e9;
}
.npn-admin-stats-service-bars .is-revenue,
.npn-admin-stats-service-legend .is-revenue {
    background: #22c55e;
}
.npn-admin-stats-detail-table {
    padding: 0 18px 18px;
}
.npn-admin-stats-detail-table summary {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #d8e3f1;
    border-radius: 12px;
    color: #0f172a;
    font-weight: 800;
    background: #fff;
}
.npn-admin-stats-detail-table[open] summary {
    margin-bottom: 12px;
}
.npn-empty-state {
    padding: 22px;
    color: #64748b;
}
.npn-admin-stats-page .npn-admin-table small {
    color: #64748b;
}
@media (max-width: 1400px) {
    .npn-admin-stats-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .npn-admin-stats-grid.two-cols,
    .npn-admin-stats-grid.three-cols {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 900px) {
    .npn-admin-stats-head {
        align-items: flex-start;
        flex-direction: column;
    }
    .npn-admin-stats-kpi-grid {
        grid-template-columns: 1fr;
    }
    .npn-admin-stats-service-row {
        grid-template-columns: 1fr;
    }
}

/* Admin statistics chart refinement */
.npn-admin-stats-compact-panel {
    overflow: hidden;
}
.npn-admin-stats-hbar-list {
    display: grid;
    gap: 12px;
    padding: 18px;
}
.npn-admin-stats-hbar-row {
    display: grid;
    grid-template-columns: minmax(170px, 260px) minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid #e5edf7;
    border-radius: 16px;
    background: #fff;
}
.npn-admin-stats-hbar-label strong {
    display: block;
    color: #0f172a;
    font-size: 15px;
    line-height: 1.3;
}
.npn-admin-stats-hbar-label small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}
.npn-admin-stats-hbar-track {
    position: relative;
    height: 16px;
    border-radius: 999px;
    background: #eef4fb;
    overflow: hidden;
}
.npn-admin-stats-hbar-track span {
    display: block;
    min-width: 4px;
    height: 100%;
    border-radius: 999px;
    background: #0ea5e9;
}
.npn-admin-stats-hbar-cyan .npn-admin-stats-hbar-track span { background: #06b6d4; }
.npn-admin-stats-hbar-amber .npn-admin-stats-hbar-track span { background: #f59e0b; }
.npn-admin-stats-hbar-green .npn-admin-stats-hbar-track span { background: #22c55e; }
.npn-admin-stats-hbar-purple .npn-admin-stats-hbar-track span { background: #8b5cf6; }
.npn-admin-stats-hbar-red .npn-admin-stats-hbar-track span { background: #ef4444; }
.npn-admin-stats-bars.is-compact {
    min-height: 190px;
    padding-top: 18px;
}
.npn-admin-stats-bars.is-compact .npn-admin-stats-bar-day {
    height: 160px;
}
.npn-admin-stats-bars.is-compact .npn-admin-stats-bar-pair {
    height: 122px;
    justify-content: center;
}
.npn-admin-stats-bar-pair.single {
    width: 18px;
}
.npn-admin-stats-bar-pair.single span {
    width: 13px;
}
.npn-admin-stats-bar-pair .is-customers,
.npn-admin-stats-legend .is-customers {
    background: #8b5cf6;
}
.npn-admin-stats-grid.three-cols.is-inside-details {
    padding: 0;
    gap: 14px;
}
.npn-admin-stats-detail-table .npn-admin-table-wrap {
    margin-top: 0;
}
@media (max-width: 900px) {
    .npn-admin-stats-hbar-row {
        grid-template-columns: 1fr;
    }
}

/* Price list layout cleanup, row drag and copy/paste tools */
.npn-price-list-hero .npn-panel-head {
    align-items: flex-start;
    gap: 18px;
}

.npn-price-filter-bar {
    grid-template-columns: minmax(260px, 1.35fr) minmax(230px, 1.1fr) minmax(230px, 1fr) minmax(150px, .62fr) max-content !important;
    align-items: end !important;
    gap: 12px !important;
}

.npn-price-filter-actions {
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    white-space: nowrap;
}

.npn-price-filter-actions .npn-btn,
.npn-price-editor-actions .npn-btn,
.npn-price-paste-actions .npn-btn {
    min-height: 46px;
    padding-left: 16px;
    padding-right: 16px;
}

.npn-price-user-toggle-card {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 18px;
    border-top: 1px solid #e6eef8;
    background: #fff;
}

.npn-price-editor-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.npn-price-editor-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    flex: 0 0 auto;
}

.npn-price-paste-panel {
    display: grid;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #e6eef8;
    background: linear-gradient(135deg, #fff7ed, #ffffff);
}

.npn-price-paste-panel[hidden] {
    display: none !important;
}

.npn-price-paste-panel strong,
.npn-price-paste-panel small {
    display: block;
}

.npn-price-paste-panel strong {
    color: #0f172a;
    font-size: 15px;
    margin-bottom: 4px;
}

.npn-price-paste-panel small {
    color: #64748b;
    font-weight: 750;
    line-height: 1.45;
}

.npn-price-paste-textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;
    border: 1px solid #cfe0f5;
    border-radius: 16px;
    padding: 12px 14px;
    color: #0f172a;
    background: #fff;
    font-weight: 750;
    line-height: 1.45;
}

.npn-price-paste-textarea:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, .14);
}

.npn-price-paste-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.npn-price-list-table {
    width: max(1580px, 100%) !important;
}

.npn-price-list-table .npn-price-row-order {
    width: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;
    text-align: center !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
}

.npn-price-row-handle {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid #cfe0f5;
    background: #f8fbff;
    color: #334155;
    font-weight: 900;
    cursor: grab;
    line-height: 1;
}

.npn-price-row-handle:active {
    cursor: grabbing;
}

.npn-price-list-table tr.is-dragging td {
    opacity: .58;
    background: #fff7ed !important;
}

@media (max-width: 1280px) {
    .npn-price-filter-bar {
        grid-template-columns: minmax(240px, 1.2fr) minmax(220px, 1fr) minmax(220px, 1fr) minmax(150px, .7fr) !important;
    }

    .npn-price-filter-actions {
        grid-column: 1 / -1;
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
    }
}

@media (max-width: 900px) {
    .npn-price-filter-bar,
    .npn-price-version-fields {
        grid-template-columns: 1fr !important;
    }

    .npn-price-filter-actions,
    .npn-price-editor-actions {
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
    }

    .npn-price-editor-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

.npn-price-list-table select {
    width: 100% !important;
    min-width: 118px;
    min-height: 42px !important;
    border-radius: 13px !important;
    border: 1px solid #cfe0f5 !important;
    background: #fff !important;
    color: #0f172a !important;
    padding: 8px 10px !important;
    font-weight: 800;
}

.npn-price-list-table select:focus {
    outline: none;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, .14);
}

/* v47 - per-customer membership tier configuration */
.npn-customer-tier-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0;
}
.npn-customer-tier-summary > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid var(--npn-border, #dfe6ee);
    border-radius: 12px;
    background: var(--npn-soft, #f7f9fc);
}
.npn-customer-tier-summary span {
    color: var(--npn-muted, #667085);
    font-size: 12px;
    font-weight: 700;
}
.npn-customer-tier-summary strong {
    font-size: 18px;
}
.npn-customer-tier-master-toggle {
    margin-bottom: 6px;
}
.npn-customer-token-tier-table input[type="text"] {
    min-width: 140px;
    width: 100%;
}
.npn-customer-member-tier-card.is-using-global-tiers .npn-customer-tier-table-head p::after {
    content: " Bảng bên dưới đang được lưu dự phòng; bảng chung mới là bảng đang áp dụng.";
    font-weight: 700;
}
@media (max-width: 760px) {
    .npn-customer-tier-summary {
        grid-template-columns: 1fr;
    }
}

/* FAQ bilingual editor */
.npn-faq-admin-language-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.npn-faq-admin-language-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.035);
}

.npn-faq-admin-language-card > strong {
    color: inherit;
    font-size: 13px;
}

.npn-faq-admin-language-card input,
.npn-faq-admin-language-card textarea {
    width: 100%;
}

@media (max-width: 900px) {
    .npn-faq-admin-language-grid {
        grid-template-columns: 1fr;
    }
}

/* Terms & Conditions bilingual editor */
.npn-terms-admin-notice {
    margin-bottom: 22px;
    padding: 16px 18px;
    border: 1px solid rgba(245, 158, 11, .28);
    border-radius: 14px;
    background: rgba(245, 158, 11, .07);
}

.npn-terms-admin-notice strong {
    display: block;
    margin-bottom: 5px;
    color: #b86a00;
}

.npn-terms-admin-notice p {
    margin: 0;
    color: inherit;
    line-height: 1.6;
}

.npn-admin-terms-repeat .npn-faq-admin-language-card textarea {
    min-height: 190px;
    line-height: 1.55;
    resize: vertical;
}

.npn-terms-bilingual-row .npn-repeat-row-head strong {
    letter-spacing: .01em;
}

.npn-admin-terms-repeat .npn-repeat-list {
    gap: 18px;
}

.npn-terms-bilingual-row {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.npn-policy-editor-card {
    min-width: 0;
}

.npn-policy-editor-card > input[type="text"] {
    min-height: 46px;
}

.npn-policy-editor-card .wp-editor-wrap {
    width: 100%;
    min-width: 0;
}

.npn-policy-editor-card .wp-editor-tools {
    min-height: 30px;
}

.npn-policy-editor-card .wp-editor-tabs {
    display: flex;
    align-items: flex-end;
    gap: 4px;
}

.npn-policy-editor-card .wp-switch-editor {
    min-height: 30px;
    margin: 0 0 -1px 4px;
    padding: 4px 12px;
    border: 1px solid rgba(148, 163, 184, .34);
    border-bottom-color: rgba(148, 163, 184, .2);
    border-radius: 9px 9px 0 0;
    background: rgba(248, 250, 252, .94);
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    line-height: 20px;
}

.npn-policy-editor-card .html-active .switch-html,
.npn-policy-editor-card .tmce-active .switch-tmce {
    background: #fff;
    color: #0f172a;
}

.npn-policy-editor-card .wp-editor-container {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .34);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}

.npn-policy-editor-card .mce-tinymce,
.npn-policy-editor-card .mce-container,
.npn-policy-editor-card .mce-container-body {
    max-width: 100%;
}

.npn-policy-editor-card .mce-toolbar-grp {
    border-bottom: 1px solid rgba(148, 163, 184, .22);
    background: #f8fafc;
}

.npn-policy-editor-card textarea.wp-editor-area {
    width: 100%;
    min-height: 260px;
    border: 0;
    border-radius: 0;
    background: #fff;
    line-height: 1.65;
    resize: vertical;
}

.npn-policy-editor-card textarea.wp-editor-area:focus {
    border: 0;
    box-shadow: none;
    outline: none;
}

.npn-admin-privacy-repeat {
    margin-top: 0;
}

@media (max-width: 900px) {
    .npn-terms-bilingual-row {
        padding: 14px;
    }

    .npn-policy-editor-card textarea.wp-editor-area {
        min-height: 220px;
    }
}

/* Multiple PayPal / Stripe accounts */
.npn-wallet-gateway-common-grid,
.npn-wallet-gateway-account-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.npn-wallet-gateway-page-card {
    margin-bottom: 18px;
}

.npn-wallet-gateway-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.npn-wallet-gateway-account-list {
    display: grid;
    gap: 16px;
}

.npn-wallet-gateway-account {
    padding: 18px;
    border: 1px solid rgba(103, 232, 249, .18);
    border-radius: 18px;
    background: rgba(255, 255, 255, .035);
}

.npn-wallet-gateway-account-head,
.npn-wallet-gateway-account-flags,
.npn-wallet-account-webhook {
    display: flex;
    align-items: center;
    gap: 12px;
}

.npn-wallet-gateway-account-head {
    justify-content: space-between;
    margin-bottom: 14px;
}

.npn-wallet-gateway-account-head h5 {
    margin: 0 0 4px;
    font-size: 16px;
    color: #fff;
}

.npn-wallet-gateway-account-head small {
    color: rgba(226, 244, 255, .72);
}

.npn-wallet-gateway-account-head code,
.npn-wallet-account-webhook code {
    color: #1df2e2;
    overflow-wrap: anywhere;
}

.npn-wallet-gateway-account-flags {
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.npn-wallet-gateway-account-flags .npn-wallet-check {
    margin: 0;
}

.npn-wallet-field-wide {
    grid-column: span 2;
}

.npn-wallet-account-webhook {
    margin-top: 14px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, .18);
    flex-wrap: wrap;
}

.npn-wallet-account-webhook span {
    font-size: 12px;
    font-weight: 800;
    color: rgba(226, 244, 255, .78);
}

.npn-wallet-account-webhook code {
    flex: 1 1 420px;
    white-space: normal;
}

.npn-wallet-gateway-savebar {
    position: sticky;
    bottom: 12px;
    z-index: 10;
    display: flex;
    justify-content: flex-end;
    padding: 12px;
    border: 1px solid rgba(103, 232, 249, .16);
    border-radius: 16px;
    background: rgba(7, 18, 44, .92);
    backdrop-filter: blur(14px);
}

@media (max-width: 1000px) {
    .npn-wallet-gateway-common-grid,
    .npn-wallet-gateway-account-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    .npn-wallet-gateway-common-grid,
    .npn-wallet-gateway-account-grid {
        grid-template-columns: 1fr;
    }
    .npn-wallet-field-wide {
        grid-column: auto;
    }
    .npn-wallet-gateway-section-head,
    .npn-wallet-gateway-account-head {
        align-items: flex-start;
        flex-direction: column;
    }
    .npn-wallet-gateway-section-head .npn-btn,
    .npn-wallet-gateway-account-head .npn-btn,
    .npn-wallet-gateway-savebar .npn-btn {
        width: 100%;
    }
}

.npn-customer-gateway-assignment {
    margin: 14px 0;
    padding: 14px;
    border: 1px solid rgba(103, 232, 249, .16);
    border-radius: 14px;
    background: rgba(8, 213, 255, .045);
}

.npn-customer-gateway-title {
    margin-bottom: 12px;
    color: #fff;
    font-weight: 800;
}

.npn-wallet-gateway-account-used {
    display: block;
    margin-top: 4px;
    opacity: .72;
    font-size: 11px;
}


/* Wallet gateway light-theme readability refinements */
.npn-wallet-gateway-page .npn-wallet-gateway-account {
    border-color: #d9e2ec;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
}

.npn-wallet-gateway-page .npn-wallet-gateway-account-head h5 {
    color: #0f172a;
}

.npn-wallet-gateway-page .npn-wallet-gateway-account-head small {
    color: #64748b;
}

.npn-wallet-gateway-page .npn-wallet-gateway-account-head code {
    color: #0f4c81;
    font-weight: 700;
}

.npn-wallet-gateway-page .npn-wallet-gateway-account-flags .npn-wallet-check {
    border-color: #cbd5e1;
    background: #f1f5f9;
    color: #1e293b;
}

.npn-wallet-gateway-page .npn-wallet-gateway-account-flags .npn-wallet-check:hover {
    border-color: #94a3b8;
    background: #e8eef5;
}

.npn-wallet-gateway-page .npn-wallet-gateway-account-flags .npn-wallet-check input {
    accent-color: #2563eb;
}

.npn-wallet-gateway-page .npn-wallet-account-webhook {
    border: 1px solid #dbe4ee;
    background: #f8fafc;
}

.npn-wallet-gateway-page .npn-wallet-account-webhook span {
    color: #475569;
}

.npn-wallet-gateway-page .npn-wallet-account-webhook code {
    color: #0f4c81;
    font-weight: 650;
}

/* Searchable filter dropdowns (Select2) */
.npn-admin-body .select2-container,
body.wp-admin .select2-container {
    min-width: 150px;
    max-width: 100%;
    font-family: Manrope, Arial, sans-serif;
}

.npn-admin-body .select2-container .select2-selection--single,
.npn-admin-body .select2-container .select2-selection--multiple,
body.wp-admin .select2-container .select2-selection--single,
body.wp-admin .select2-container .select2-selection--multiple {
    min-height: 44px;
    border: 1px solid #d7e2ee;
    border-radius: 12px;
    background: #fff;
    color: #0f172a;
    box-shadow: none;
}

.npn-admin-body .select2-container .select2-selection--single .select2-selection__rendered,
body.wp-admin .select2-container .select2-selection--single .select2-selection__rendered {
    min-height: 42px;
    padding: 0 38px 0 13px;
    line-height: 42px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 600;
}

.npn-admin-body .select2-container .select2-selection--single .select2-selection__placeholder,
body.wp-admin .select2-container .select2-selection--single .select2-selection__placeholder {
    color: #64748b;
}

.npn-admin-body .select2-container .select2-selection--single .select2-selection__arrow,
body.wp-admin .select2-container .select2-selection--single .select2-selection__arrow {
    top: 1px;
    right: 9px;
    height: 40px;
}

.npn-admin-body .select2-container .select2-selection--single .select2-selection__clear,
body.wp-admin .select2-container .select2-selection--single .select2-selection__clear {
    margin-right: 23px;
    color: #64748b;
    font-size: 18px;
}

.npn-admin-body .select2-container--default.select2-container--focus .select2-selection--single,
.npn-admin-body .select2-container--default.select2-container--open .select2-selection--single,
.npn-admin-body .select2-container--default.select2-container--focus .select2-selection--multiple,
.npn-admin-body .select2-container--default.select2-container--open .select2-selection--multiple,
body.wp-admin .select2-container--default.select2-container--focus .select2-selection--single,
body.wp-admin .select2-container--default.select2-container--open .select2-selection--single,
body.wp-admin .select2-container--default.select2-container--focus .select2-selection--multiple,
body.wp-admin .select2-container--default.select2-container--open .select2-selection--multiple {
    border-color: #0891b2;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, .12);
}

.select2-container--open {
    z-index: 100000 !important;
}

.select2-dropdown {
    overflow: hidden;
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px !important;
    background: #fff;
    box-shadow: 0 16px 38px rgba(15, 23, 42, .16);
}

.select2-search--dropdown {
    padding: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    height: 40px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    outline: none;
    color: #0f172a;
    font-family: Manrope, Arial, sans-serif;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #0891b2;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, .1);
}

.select2-results__options {
    max-height: 300px !important;
    padding: 6px;
}

.select2-container--default .select2-results__option {
    margin: 2px 0;
    padding: 9px 11px;
    border-radius: 8px;
    color: #1e293b;
    font-size: 13px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: #e6f7fb;
    color: #075985;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    background: #cffafe;
    color: #155e75;
    font-weight: 700;
}

.select2-container--default .select2-selection--multiple {
    padding: 4px 7px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    border: 1px solid #bae6fd;
    border-radius: 8px;
    background: #ecfeff;
    color: #155e75;
}

/* CSV export follows the active list/search filters */
.npn-csv-export-tools {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.npn-csv-export-range-wrap,
.npn-csv-export-custom-dates label {
    display: grid;
    gap: 4px;
    min-width: 175px;
}

.npn-csv-export-range-wrap > span,
.npn-csv-export-custom-dates label > span {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.npn-csv-export-custom-dates {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.npn-csv-export-custom-dates[hidden] {
    display: none !important;
}

.npn-csv-export-custom-dates input {
    min-width: 150px;
    height: 44px;
    padding: 0 11px;
    border: 1px solid #d7e2ee;
    border-radius: 12px;
    background: #fff;
    color: #0f172a;
    font: inherit;
}

.npn-csv-export-tools .npn-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.npn-csv-export-current-filter-note {
	flex: 1 1 100%;
	color: #64748b;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.45;
	text-align: right;
}

.npn-page-form-actions .npn-csv-export-tools,
.npn-panel-head .npn-csv-export-tools {
    max-width: 100%;
}

@media (max-width: 980px) {
    .npn-csv-export-tools {
        width: 100%;
        justify-content: flex-start;
    }
    .npn-csv-export-current-filter-note {
        text-align: left;
    }
    .npn-csv-export-range-wrap,
    .npn-csv-export-custom-dates label,
    .npn-csv-export-tools .npn-btn {
        flex: 1 1 180px;
    }
}

@media (max-width: 640px) {
    .npn-csv-export-custom-dates {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    .npn-csv-export-range-wrap,
    .npn-csv-export-custom-dates label,
    .npn-csv-export-custom-dates input,
    .npn-csv-export-tools .select2-container,
    .npn-csv-export-tools .npn-btn {
        width: 100% !important;
        min-width: 0;
    }
}


/* Realtime WebSocket diagnostics v1 */
.npn-realtime-test-field {
    margin-top: 4px;
}

.npn-realtime-test-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
}

.npn-realtime-test-actions .npn-btn.is-loading {
    opacity: .75;
    cursor: wait;
}

.npn-realtime-test-hint {
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.npn-realtime-test-result {
    margin-top: 14px;
    border: 1px solid #dbe4f0;
    border-radius: 14px;
    background: #f8fafc;
    overflow: hidden;
}

.npn-realtime-test-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
}

.npn-realtime-test-head > div {
    display: grid;
    gap: 3px;
}

.npn-realtime-test-head strong {
    color: #0f172a;
    font-size: 15px;
}

.npn-realtime-test-head small {
    color: #64748b;
    font-size: 12px;
}

.npn-realtime-test-summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.npn-realtime-test-summary.is-running {
    color: #075985;
    background: #e0f2fe;
}

.npn-realtime-test-summary.is-success {
    color: #166534;
    background: #dcfce7;
}

.npn-realtime-test-summary.is-error {
    color: #991b1b;
    background: #fee2e2;
}

.npn-realtime-test-steps {
    display: grid;
    gap: 0;
}

.npn-realtime-test-step {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 11px;
    padding: 13px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.npn-realtime-test-step:last-child {
    border-bottom: 0;
}

.npn-realtime-test-icon {
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    position: relative;
}

.npn-realtime-test-step.is-running .npn-realtime-test-icon {
    border-color: #0ea5e9;
    border-top-color: transparent;
    animation: npn-realtime-test-spin .8s linear infinite;
}

.npn-realtime-test-step.is-success .npn-realtime-test-icon {
    border-color: #22c55e;
    background: #22c55e;
}

.npn-realtime-test-step.is-success .npn-realtime-test-icon::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.npn-realtime-test-step.is-error .npn-realtime-test-icon {
    border-color: #ef4444;
    background: #ef4444;
}

.npn-realtime-test-step.is-error .npn-realtime-test-icon::before,
.npn-realtime-test-step.is-error .npn-realtime-test-icon::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 3px;
    width: 2px;
    height: 10px;
    background: #fff;
}

.npn-realtime-test-step.is-error .npn-realtime-test-icon::before { transform: rotate(45deg); }
.npn-realtime-test-step.is-error .npn-realtime-test-icon::after { transform: rotate(-45deg); }

.npn-realtime-test-step.is-waiting .npn-realtime-test-icon {
    border-color: #94a3b8;
    background: #f1f5f9;
}

.npn-realtime-test-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.npn-realtime-test-copy strong {
    color: #0f172a;
    font-size: 13px;
}

.npn-realtime-test-copy span {
    color: #475569;
    font-size: 13px;
    line-height: 1.5;
}

.npn-realtime-test-copy code {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
    color: #334155;
    background: #e2e8f0;
    border-radius: 7px;
    padding: 6px 8px;
    font-size: 11px;
}

.npn-realtime-test-diagnostic {
    padding: 13px 16px;
    color: #7f1d1d;
    background: #fff7ed;
    border-top: 1px solid #fed7aa;
}

.npn-realtime-test-diagnostic strong {
    display: block;
    margin-bottom: 6px;
}

.npn-realtime-test-diagnostic ul {
    margin: 0;
    padding-left: 18px;
}

.npn-realtime-test-diagnostic li {
    margin: 4px 0;
    line-height: 1.5;
}

@keyframes npn-realtime-test-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
    .npn-realtime-test-head {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* =========================================================
   Facebook-style realtime notifications
   ========================================================= */
.npn-notification-wrap .npn-bell {
    width: 44px;
    height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: #e4e6eb;
    color: #050505;
    box-shadow: none;
}
.npn-notification-wrap .npn-bell:hover,
.npn-notification-wrap .npn-bell[aria-expanded="true"] {
    background: #d8dadf;
    color: #0866ff;
    transform: none;
}
.npn-notification-wrap .npn-bell-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.npn-notification-wrap .npn-notification-count {
    right: -4px;
    top: -6px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    background: #e41e3f;
    border: 2px solid #fff;
    font-size: 10px;
    line-height: 1;
}
.npn-notification-panel {
    top: calc(100% + 10px);
    width: min(430px, calc(100vw - 24px));
    max-height: min(76vh, 720px);
    border: 0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 28px 0 rgba(0, 0, 0, .20), 0 2px 4px 0 rgba(0, 0, 0, .10);
    overflow: hidden;
}
.npn-notification-head {
    padding: 18px 16px 12px;
    align-items: center;
    background: #fff;
    border-bottom: 0;
}
.npn-notification-head-copy strong {
    margin: 0;
    color: #050505;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 800;
}
.npn-notification-head-copy span {
    margin-top: 4px;
    color: #65676b;
    font-size: 12px;
    font-weight: 600;
}
.npn-notification-head-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}
.npn-notification-head-actions button,
.npn-notification-head button {
    border: 0;
    border-radius: 8px;
    padding: 7px 9px;
    background: transparent;
    color: #0866ff;
    font-size: 12px;
    font-weight: 700;
}
.npn-notification-head-actions button:hover,
.npn-notification-head button:hover {
    background: #f0f2f5;
}
.npn-notification-head-actions button:disabled {
    color: #65676b;
    cursor: default;
}
.npn-notification-list {
    max-height: min(63vh, 590px);
    padding: 4px 8px 12px;
    overscroll-behavior: contain;
}
.npn-notification-item {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 6px !important;
    align-items: center !important;
    padding: 6px 8px !important;
    border: 0 !important;
    border-radius: 10px !important;
    opacity: 1;
    transition: background .16s ease;
}
.npn-notification-item:hover {
    background: #f0f2f5 !important;
}
.npn-notification-item.is-unread {
    background: #e7f3ff;
}
.npn-notification-item.is-unread:hover {
    background: #dcecff !important;
}
.npn-notification-item.is-done {
    opacity: .72;
}
.npn-notification-main {
    display: grid !important;
    grid-template-columns: 56px minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: center;
    min-width: 0;
}
.npn-notification-item.is-expanded,
.npn-notification-item.is-expanded .npn-notification-main {
    align-items: start !important;
}
.npn-notification-avatar-link,
.npn-notification-content-link {
    min-width: 0;
    color: inherit;
    text-decoration: none;
}
.npn-notification-avatar-link {
    display: inline-flex;
    border-radius: 999px;
}
.npn-notification-content-link {
    display: block;
}
.npn-notification-avatar,
.npn-admin-toast-avatar {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: #e7f3ff;
    color: #0866ff;
    font-size: 24px;
    font-style: normal;
    box-shadow: inset 0 0 0 1px rgba(8, 102, 255, .08);
}
.npn-notification-avatar.is-order,
.npn-admin-toast.is-order .npn-admin-toast-avatar { background: #fff4e5; color: #f59e0b; }
.npn-notification-avatar.is-job,
.npn-admin-toast.is-job .npn-admin-toast-avatar { background: #e8f5ff; color: #0284c7; }
.npn-notification-avatar.is-payment,
.npn-admin-toast.is-payment .npn-admin-toast-avatar { background: #f3e8ff; color: #7c3aed; }
.npn-notification-avatar.is-customer,
.npn-admin-toast.is-customer .npn-admin-toast-avatar { background: #ecfdf3; color: #16a34a; }
.npn-notification-avatar.is-support,
.npn-admin-toast.is-support .npn-admin-toast-avatar { background: #fff1f2; color: #e11d48; }
.npn-notification-avatar.is-success,
.npn-admin-toast.is-success .npn-admin-toast-avatar { background: #dcfce7; color: #15803d; }
.npn-notification-avatar.is-danger,
.npn-admin-toast.is-danger .npn-admin-toast-avatar { background: #ffe4e6; color: #be123c; }
.npn-notification-copy {
    min-width: 0;
}
.npn-notification-copy strong {
    margin: 0 0 2px;
    color: #050505;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
}
.npn-notification-copy em {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #65676b;
    font-size: 13px;
    line-height: 1.35;
}
.npn-notification-item.is-expanded .npn-notification-copy em {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    -webkit-box-orient: initial;
    white-space: normal;
}
.npn-notification-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 22px;
    margin-top: 3px;
}
.npn-notification-copy time {
    margin-top: 0;
    color: #0866ff;
    font-size: 12px;
    font-weight: 700;
}
.npn-notification-expand-btn {
    flex: 0 0 auto;
    padding: 3px 7px !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: #0866ff !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    box-shadow: none !important;
    cursor: pointer;
}
.npn-notification-expand-btn:hover,
.npn-notification-expand-btn:focus-visible {
    background: rgba(8, 102, 255, .10) !important;
    color: #0757d8 !important;
    outline: none;
    transform: none !important;
}
.npn-notification-item-actions {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding-left: 2px;
}
.npn-notification-item.is-expanded .npn-notification-item-actions {
    padding-top: 12px;
}
.npn-notification-unread-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #0866ff;
    flex: 0 0 auto;
}
.npn-notification-done-btn,
.npn-notification-done-label {
    width: 30px !important;
    height: 30px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 15px !important;
    font-weight: 800 !important;
    box-shadow: none !important;
}
.npn-notification-done-btn {
    border: 0 !important;
    background: #e4e6eb !important;
    color: #65676b !important;
}
.npn-notification-done-btn:hover {
    background: #d8dadf !important;
    color: #16a34a !important;
    transform: none !important;
}
.npn-notification-done-label {
    border: 0 !important;
    background: #dcfce7 !important;
    color: #15803d !important;
}
.npn-notification-empty {
    padding: 42px 18px;
    color: #65676b;
    font-weight: 600;
}

.npn-admin-toast-stack {
    position: fixed;
    top: 78px;
    right: 20px;
    z-index: 2147483000;
    width: min(390px, calc(100vw - 24px));
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.npn-admin-toast {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    min-height: 86px;
    padding: 12px 44px 14px 12px !important;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    overflow: hidden;
    border: 0 !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .24), 0 2px 6px rgba(0, 0, 0, .12) !important;
    color: #050505 !important;
    opacity: 0;
    transform: translateX(28px) scale(.98) !important;
    pointer-events: auto;
    cursor: pointer;
    transition: opacity .2s ease, transform .2s ease !important;
}
.npn-admin-toast.is-visible {
    opacity: 1;
    transform: translateX(0) scale(1) !important;
}
.npn-admin-toast-avatar {
    width: 52px;
    height: 52px;
    font-size: 22px;
}
.npn-admin-toast-copy,
.npn-admin-toast-copy strong,
.npn-admin-toast-copy span,
.npn-admin-toast-copy time {
    display: block;
}
.npn-admin-toast-copy strong {
    margin: 0 0 3px;
    color: #050505;
    font-size: 14px;
    line-height: 1.25;
}
.npn-admin-toast-copy span {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #65676b;
    font-size: 13px;
    line-height: 1.35;
}
.npn-admin-toast-copy time {
    margin-top: 4px;
    color: #0866ff;
    font-size: 12px;
    font-weight: 700;
}
.npn-admin-toast-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #e4e6eb;
    color: #65676b;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
.npn-admin-toast-close:hover { background: #d8dadf; color: #050505; }
.npn-admin-toast-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: #0866ff;
    transform-origin: left center;
    animation: npnFacebookNotificationProgress 8s linear forwards;
}
@keyframes npnFacebookNotificationProgress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}
@media (max-width: 720px) {
    .npn-notification-panel {
        position: fixed;
        top: 66px;
        right: 8px;
        left: 8px;
        width: auto;
        max-height: calc(100vh - 80px);
    }
    .npn-notification-head {
        align-items: flex-start;
    }
    .npn-notification-head-actions {
        max-width: 150px;
    }
    .npn-admin-toast-stack {
        top: 68px;
        right: 8px;
        width: calc(100vw - 16px);
    }
}

/* Front service visibility setup */
.npn-service-visibility-page{max-width:1180px;margin:0 auto;padding-bottom:96px}.npn-service-visibility-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:20px}.npn-service-visibility-head h2{margin:4px 0 8px;font-size:30px;line-height:1.15}.npn-service-visibility-head p{max-width:780px;margin:0;color:#64748b;line-height:1.6}.npn-page-kicker{display:inline-flex;padding:5px 10px;border-radius:999px;background:#e8f1ff;color:#1769e0;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.npn-service-visibility-head-actions{display:flex;gap:9px;flex-wrap:wrap}.npn-service-visibility-toolbar{position:sticky;top:0;z-index:6;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;margin-bottom:16px;border:1px solid #dfe7f2;border-radius:16px;background:rgba(255,255,255,.95);box-shadow:0 8px 28px rgba(15,23,42,.08);backdrop-filter:blur(12px)}.npn-service-visibility-search{display:flex;align-items:center;gap:9px;min-width:320px;flex:1}.npn-service-visibility-search input{width:100%;height:42px;border:1px solid #d8e1ed;border-radius:11px;padding:0 13px;background:#f8fafc;color:#0f172a;outline:none}.npn-service-visibility-search input:focus{border-color:#4c8dff;box-shadow:0 0 0 3px rgba(59,130,246,.12);background:#fff}.npn-service-visibility-summary{display:flex;align-items:center;gap:8px;color:#64748b;font-size:13px;white-space:nowrap}.npn-service-visibility-summary strong{color:#0f172a;font-size:16px}.npn-service-visibility-list{display:grid;gap:16px}.npn-service-visibility-card{overflow:hidden;border:1px solid #dce5f0;border-radius:18px;background:#fff;box-shadow:0 8px 30px rgba(15,23,42,.055);transition:.2s ease}.npn-service-visibility-card:hover{border-color:#bfd2eb;box-shadow:0 12px 36px rgba(15,23,42,.085)}.npn-service-visibility-card.is-disabled{border-color:#e4e8ef;background:#fbfcfe}.npn-service-visibility-card[hidden]{display:none!important}.npn-service-visibility-card-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;border-bottom:1px solid #edf1f6}.npn-service-visibility-title{display:flex;align-items:center;gap:14px;min-width:0}.npn-service-visibility-icon{display:grid;place-items:center;width:48px;height:48px;flex:0 0 48px;border-radius:15px;background:linear-gradient(145deg,#e8f2ff,#f4f8ff);color:#1972ed}.npn-service-visibility-icon svg{width:25px;height:25px;stroke:currentColor;stroke-width:1.8}.npn-service-visibility-title h3{margin:0 0 6px;color:#0f172a;font-size:18px}.npn-service-visibility-title p{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:0}.npn-service-visibility-title p span{padding:4px 8px;border-radius:999px;background:#f1f5f9;color:#64748b;font-size:11px;font-weight:700}.npn-service-visibility-card.is-disabled .npn-service-visibility-title{opacity:.62}.npn-switch{display:inline-flex;align-items:center;gap:10px;cursor:pointer;user-select:none}.npn-switch input,.npn-mini-switch input{position:absolute;opacity:0;pointer-events:none}.npn-switch-slider{position:relative;width:46px;height:26px;border-radius:999px;background:#cbd5e1;box-shadow:inset 0 0 0 1px rgba(15,23,42,.08);transition:.2s}.npn-switch-slider:after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 2px 7px rgba(15,23,42,.25);transition:.2s}.npn-switch input:checked+.npn-switch-slider{background:#1877f2}.npn-switch input:checked+.npn-switch-slider:after{transform:translateX(20px)}.npn-switch strong{min-width:92px;color:#64748b;font-size:12px}.npn-switch input:checked~strong{color:#1769e0}.npn-service-visibility-card-body{padding:16px 20px 20px}.npn-service-visibility-card.is-disabled .npn-service-visibility-card-body{opacity:.72}.npn-service-visibility-option-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}.npn-service-visibility-option-head>div:first-child{display:flex;align-items:baseline;gap:9px}.npn-service-visibility-option-head strong{color:#1e293b;font-size:14px}.npn-service-visibility-option-head span{color:#94a3b8;font-size:12px}.npn-service-visibility-option-head button{padding:0;border:0;background:none;color:#1877f2;font-size:12px;font-weight:700;cursor:pointer}.npn-service-visibility-option-head button+button{margin-left:13px;color:#64748b}.npn-service-visibility-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.npn-service-visibility-option{position:relative;display:flex;align-items:center;gap:10px;min-height:52px;padding:9px 10px;border:1px solid #e5ebf3;border-radius:12px;background:#fbfdff;cursor:pointer;transition:.18s}.npn-service-visibility-option:hover{border-color:#bcd2ef;background:#f7fbff}.npn-service-visibility-option.is-disabled{background:#f8fafc;opacity:.58}.npn-service-option-tree{display:none;width:18px;flex:0 0 18px;border-left:1px solid #cbd5e1;border-bottom:1px solid #cbd5e1;height:20px;margin-top:-9px}.npn-service-visibility-option.depth-1,.npn-service-visibility-option.depth-2,.npn-service-visibility-option.depth-3{margin-left:12px}.npn-service-visibility-option.depth-1 .npn-service-option-tree,.npn-service-visibility-option.depth-2 .npn-service-option-tree,.npn-service-visibility-option.depth-3 .npn-service-option-tree{display:block}.npn-service-option-copy{display:flex;flex-direction:column;min-width:0;flex:1}.npn-service-option-copy strong{overflow:hidden;color:#253248;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.npn-service-option-copy small{margin-top:3px;color:#94a3b8;font-size:10px;text-transform:uppercase;letter-spacing:.04em}.npn-mini-switch{position:relative;width:36px;height:21px;flex:0 0 36px}.npn-mini-switch i{position:absolute;inset:0;border-radius:999px;background:#cbd5e1;transition:.18s}.npn-mini-switch i:after{content:"";position:absolute;top:3px;left:3px;width:15px;height:15px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(15,23,42,.25);transition:.18s}.npn-mini-switch input:checked+i{background:#22a06b}.npn-mini-switch input:checked+i:after{transform:translateX(15px)}.npn-service-visibility-no-options{padding:16px;border:1px dashed #cbd5e1;border-radius:12px;background:#f8fafc;color:#64748b;font-size:13px}.npn-service-visibility-savebar{position:fixed;left:calc(var(--npn-sidebar-width,260px) + 24px);right:24px;bottom:18px;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 18px;border:1px solid rgba(186,204,226,.9);border-radius:16px;background:rgba(255,255,255,.96);box-shadow:0 14px 44px rgba(15,23,42,.17);backdrop-filter:blur(14px)}.npn-service-visibility-savebar>div{display:flex;flex-direction:column;gap:3px}.npn-service-visibility-savebar strong{color:#0f172a}.npn-service-visibility-savebar span{color:#64748b;font-size:12px}.npn-service-visibility-savebar .npn-btn-primary{min-width:150px}.npn-admin-app.is-sidebar-collapsed .npn-service-visibility-savebar{left:96px}
@media(max-width:1050px){.npn-service-visibility-options{grid-template-columns:1fr}.npn-service-visibility-savebar{left:18px;right:18px}.npn-service-visibility-toolbar{position:relative;top:auto;align-items:stretch;flex-direction:column}.npn-service-visibility-summary{white-space:normal}}
@media(max-width:700px){.npn-service-visibility-head,.npn-service-visibility-card-head,.npn-service-visibility-option-head,.npn-service-visibility-savebar{align-items:stretch;flex-direction:column}.npn-service-visibility-search{min-width:0}.npn-service-visibility-card-head{padding:15px}.npn-service-visibility-card-body{padding:14px}.npn-service-master-switch{justify-content:flex-end}.npn-service-visibility-savebar{bottom:10px}.npn-service-visibility-savebar .npn-btn-primary{width:100%}}

/* =========================================================
   Admin compact professional refresh
   Keeps every existing section/action, only improves density and hierarchy.
========================================================= */
.npn-admin-body {
    --npn-admin-surface: #ffffff;
    --npn-admin-border: #e3e8ef;
    --npn-admin-muted: #667085;
    --npn-admin-radius: 14px;
    background: #f5f7fa !important;
}
.npn-topbar {
    height: 64px !important;
    min-height: 64px !important;
    padding: 0 18px !important;
    border-bottom-color: #e7ebf0 !important;
    box-shadow: 0 1px 0 rgba(15, 23, 42, .02) !important;
}
.npn-topbar-title > span {
    font-size: 10px !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
    color: #8a94a6 !important;
}
.npn-topbar h1 {
    margin-top: 1px !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
    letter-spacing: -.02em !important;
}
.npn-topbar-right { gap: 10px !important; }
.npn-search,
.npn-panel-search,
.npn-date-box,
.npn-filter-select {
    height: 38px !important;
    border-radius: 10px !important;
    padding-inline: 12px !important;
    border-color: #dfe5ec !important;
}
.npn-search { width: min(330px, 32vw) !important; }
.npn-bell {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
}
.npn-content {
    padding: 18px 18px 64px !important;
}
.npn-panel,
.npn-card,
.npn-admin-card,
.npn-edit-card,
.npn-account-panel,
.npn-admin-order-detail-card,
.npn-admin-request-detail-card {
    border-radius: var(--npn-admin-radius) !important;
    border-color: var(--npn-admin-border) !important;
    box-shadow: 0 6px 20px rgba(15, 23, 42, .045) !important;
}
.npn-panel-head,
.npn-card-head,
.npn-admin-card-head {
    padding: 14px 16px !important;
    gap: 12px !important;
}
.npn-panel-head h3,
.npn-card-head h3,
.npn-admin-card-head h3 {
    margin-bottom: 3px !important;
    font-size: 16px !important;
    letter-spacing: -.015em !important;
}
.npn-panel-head p,
.npn-page-form-head p,
.npn-card-head p,
.npn-admin-card-head p {
    font-size: 12px !important;
    line-height: 1.45 !important;
    color: var(--npn-admin-muted) !important;
}
.npn-table th,
.npn-table td,
.npn-admin-table th,
.npn-admin-table td,
.npn-customer-table th,
.npn-customer-table td,
.npn-accounts-table th,
.npn-accounts-table td {
    padding: 10px 13px !important;
    font-size: 12.5px !important;
    line-height: 1.45 !important;
}
.npn-table th,
.npn-admin-table th,
.npn-customer-table th,
.npn-accounts-table th {
    font-size: 10.5px !important;
    letter-spacing: .045em !important;
    background: #f8fafc !important;
}
.npn-table tbody tr:hover,
.npn-admin-table tbody tr:hover,
.npn-customer-table tbody tr:hover,
.npn-accounts-table tbody tr:hover {
    background: #fbfcfe !important;
}
.npn-btn {
    min-height: 38px !important;
    padding: 8px 13px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
}
.npn-btn-small { min-height: 32px !important; padding: 6px 10px !important; }
.npn-field,
.npn-form-field { gap: 5px !important; }
.npn-field label,
.npn-form-field label {
    font-size: 11.5px !important;
    font-weight: 700 !important;
    color: #344054 !important;
}
.npn-admin-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.npn-admin-form select,
.npn-admin-form textarea,
.npn-field input:not([type="checkbox"]):not([type="radio"]),
.npn-field select,
.npn-field textarea {
    border-radius: 10px !important;
    border-color: #dfe5ec !important;
    font-size: 12.5px !important;
}
.npn-admin-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.npn-admin-form select,
.npn-field input:not([type="checkbox"]):not([type="radio"]),
.npn-field select {
    min-height: 40px !important;
}
.npn-admin-form textarea,
.npn-field textarea { padding: 10px 12px !important; }
.npn-page-form-head {
    margin-bottom: 14px !important;
    padding: 12px 14px !important;
    border: 1px solid #e3e8ef !important;
    border-radius: 13px !important;
    background: rgba(255, 255, 255, .94) !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .04) !important;
}
.npn-page-form-head h2 {
    margin: 0 0 3px !important;
    font-size: 20px !important;
    letter-spacing: -.025em !important;
}
.npn-admin-edit-grid,
.npn-admin-detail-grid,
.npn-content-form-grid,
.npn-account-form-grid {
    gap: 14px !important;
}
.npn-admin-edit-side { gap: 14px !important; }
.npn-badge {
    min-height: 25px !important;
    padding: 5px 9px !important;
    border-radius: 999px !important;
    font-size: 10.5px !important;
}
.npn-admin-order-hero,
.npn-accounts-hero,
.npn-customer-detail-head {
    padding: 16px 18px !important;
    border-radius: var(--npn-admin-radius) !important;
}
.npn-admin-order-stat-grid,
.npn-commerce-summary,
.npn-accounts-summary,
.npn-customer-stat-grid {
    gap: 10px !important;
}
.npn-admin-order-stat-grid > *,
.npn-commerce-stat,
.npn-accounts-summary > *,
.npn-customer-stat-box {
    padding: 12px 14px !important;
    border-radius: 12px !important;
}
.npn-sidebar-menu {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.18) transparent;
}
.npn-sidebar-link {
    transition: background .16s ease, color .16s ease, transform .16s ease !important;
}
.npn-sidebar-link:hover { transform: translateX(2px); }
.npn-admin-body.npn-sidebar-collapsed .npn-sidebar-link:hover { transform: none; }

@media (max-width: 900px) {
    .npn-topbar { height: auto !important; min-height: 62px !important; padding: 10px 14px !important; }
    .npn-content { padding: 14px 12px 56px !important; }
    .npn-search { width: min(52vw, 300px) !important; }
    .npn-page-form-head { align-items: stretch !important; }
}
@media (max-width: 620px) {
    .npn-topbar-right { width: 100% !important; }
    .npn-global-search-form { flex: 1 !important; }
    .npn-search { width: 100% !important; }
    .npn-table th,
    .npn-table td,
    .npn-admin-table th,
    .npn-admin-table td { padding: 9px 10px !important; }
}
