/* DSP Portal v3.1.1 — địa giới VN 2 cấp + fix mobile stack */

/* Ẩn chrome theme thừa trên trang tài khoản */
body.dsp-account-portal .entry-header,
body.dsp-account-portal .page-title,
body.dsp-account-portal h1.entry-title,
body.dsp-account-portal .entry-content > h1,
body.dsp-account-portal .entry-content > h2,
body.dsp-account-portal .page-content > h1,
body.dsp-account-portal .woocommerce-breadcrumb,
body.dsp-account-portal .devvn_breadcrumb,
body.dsp-account-portal nav.woocommerce-breadcrumb {
	display: none !important;
}

body.dsp-account-logged-in .devvn_wrapper {
	background: #eef2f7;
	padding: 0;
	min-height: calc(100vh - 120px);
}

body.dsp-account-logged-in.admin-bar .devvn_wrapper {
	min-height: calc(100vh - 152px);
}

body.dsp-account-logged-in .devvn_wrapper > .container,
body.dsp-account-portal .devvn_wrapper > .container {
	width: 100% !important;
	max-width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body.dsp-account-logged-in .woocommerce {
	max-width: 100% !important;
	width: 100% !important;
}

/* Reset layout float WooCommerce account — gây khoảng trống giữa sidebar & content */
body.dsp-account-logged-in.woocommerce-account .woocommerce-MyAccount-navigation,
body.dsp-account-logged-in .woocommerce .woocommerce-MyAccount-navigation {
	display: none !important;
}

body.dsp-account-logged-in .dsp-portal-layout,
body.dsp-account-logged-in .dsp-portal-main,
body.dsp-account-logged-in .dsp-portal-main .woocommerce-MyAccount-content,
body.dsp-account-logged-in.woocommerce-account .woocommerce-MyAccount-content {
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	clear: none !important;
}

body.dsp-account-logged-in .dsp-portal-main {
	flex: 1 1 auto !important;
	width: auto !important;
	min-width: 0;
}

body.dsp-account-logged-in .dsp-portal-sidebar {
	float: none !important;
	flex: 0 0 240px !important;
	width: 240px !important;
	margin: 0 !important;
}

@media (min-width: 768px) {
	body.dsp-account-logged-in .devvn_wrapper > .container,
	body.dsp-account-portal .devvn_wrapper > .container {
		width: 100% !important;
	}
}

@media (min-width: 992px) {
	body.dsp-account-logged-in .devvn_wrapper > .container,
	body.dsp-account-portal .devvn_wrapper > .container {
		width: 100% !important;
	}
}

@media (min-width: 1200px) {
	body.dsp-account-logged-in .devvn_wrapper > .container,
	body.dsp-account-portal .devvn_wrapper > .container {
		width: 100% !important;
	}
}

.dsp-portal-wrap {
	margin: 0;
	width: 100%;
	min-height: inherit;
}

/* ===== LOGIN (trong container theme) ===== */
.dsp-auth-page {
	padding: 24px 0 40px;
	background: transparent;
}
.dsp-auth-card {
	display: grid;
	grid-template-columns: 42% 58%;
	width: 100%;
	max-width: 920px;
	margin: 0 auto;
	min-height: 520px;
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid #e2e8f0;
	box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}
.dsp-auth-brand {
	position: relative;
	background: linear-gradient(145deg, #0284c7 0%, #03a0e2 45%, #38bdf8 100%);
	color: #fff;
	padding: 36px 32px;
	display: flex;
	flex-direction: column;
}
.dsp-auth-brand-inner { position: relative; z-index: 2; flex: 1; }
.dsp-auth-brand-deco {
	position: absolute; bottom: -40px; right: -40px; width: 180px; height: 180px;
	border-radius: 50%; background: rgba(255,255,255,.12);
}
.dsp-auth-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.dsp-auth-logo-mark {
	width: 48px; height: 48px; border-radius: 14px; background: rgba(255,255,255,.2);
	display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.dsp-auth-logo strong { display: block; font-size: 17px; }
.dsp-auth-logo small { display: block; font-size: 12px; opacity: .85; }
.dsp-auth-benefits { list-style: none; margin: 0 0 24px; padding: 0; }
.dsp-auth-benefits li { padding: 8px 0 8px 26px; position: relative; font-size: 14px; line-height: 1.45; }
.dsp-auth-benefits li::before { content: '✓'; position: absolute; left: 0; font-weight: 700; }
.dsp-auth-benefits--compact li { font-size: 13px; }
.dsp-auth-hotline { margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.25); }
.dsp-auth-hotline span { display: block; font-size: 12px; opacity: .85; }
.dsp-auth-hotline a { color: #fff; font-size: 20px; font-weight: 800; text-decoration: none; }
.dsp-auth-form-col { padding: 36px 40px; position: relative; display: flex; flex-direction: column; justify-content: center; }
.dsp-auth-form-col h2 { margin: 0 0 6px; font-size: 24px; font-weight: 800; color: #0f172a; }
.dsp-auth-lead { margin: 0 0 20px; font-size: 14px; color: #64748b; }
.dsp-auth-form-panel--register { display: none; }
.dsp-auth-card.is-register .dsp-auth-form-panel--login { display: none; }
.dsp-auth-card.is-register .dsp-auth-form-panel--register { display: block; }
.dsp-auth-social { display: flex; gap: 10px; margin-bottom: 4px; }
.dsp-auth-social-btn {
	flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
	padding: 11px; border-radius: 10px; font-weight: 600; font-size: 14px;
	text-decoration: none !important; border: 1px solid #e2e8f0; background: #fff; color: #334155 !important;
}
.dsp-auth-social-btn--zalo { background: #0068FF !important; color: #fff !important; border-color: #0068FF !important; }
.dsp-auth-or { display: flex; align-items: center; gap: 10px; margin: 16px 0; color: #94a3b8; font-size: 12px; }
.dsp-auth-or::before, .dsp-auth-or::after { content: ''; flex: 1; height: 1px; background: #e2e8f0; }
.dsp-field { margin-bottom: 14px; }
.dsp-field label { display: block; font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 5px; }
.dsp-field label em { color: #ef4444; font-style: normal; }
.dsp-field-hint { display: block; margin-top: 5px; font-size: 12px; color: #94a3b8; line-height: 1.4; }
.dsp-addr-old { color: #64748b; font-size: 12px; font-weight: 500; }
.dsp-field input {
	width: 100%; border: 1px solid #d1d9e6; border-radius: 10px; padding: 11px 13px; font-size: 14px; box-sizing: border-box;
}
.dsp-field input:focus { border-color: #03a0e2; outline: none; box-shadow: 0 0 0 3px rgba(3,160,226,.12); }
.dsp-field select.dsp-vn-select {
	width: 100%; border: 1px solid #d1d9e6; border-radius: 10px; padding: 11px 13px; font-size: 14px; box-sizing: border-box; background: #fff;
}
/* Select2 trong modal địa chỉ — dropdown gắn body, tránh cắt/nháy */
#dspAddressModal .select2-container { width: 100% !important; }
#dspAddressModal .select2-container--default .select2-selection--single {
	height: 42px; border: 1px solid #d1d9e6; border-radius: 10px; padding: 6px 10px;
}
#dspAddressModal .select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 28px; font-size: 14px; color: #334155; padding-left: 0;
}
#dspAddressModal .select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 40px; right: 8px;
}
#dspAddressModal .select2-container--default.select2-container--focus .select2-selection--single,
#dspAddressModal .select2-container--default.select2-container--open .select2-selection--single {
	border-color: #03a0e2; box-shadow: 0 0 0 3px rgba(3,160,226,.12);
}
body.dsp-modal-open .select2-container {
	z-index: 10000070 !important;
}
body.dsp-modal-open .select2-dropdown {
	z-index: 10000071 !important;
	border-color: #d1d9e6;
	border-radius: 10px;
	overflow: auto;
	max-height: min(240px, 38vh);
}
body.dsp-modal-open .select2-results__options {
	max-height: min(200px, 32vh) !important;
}
body.dsp-modal-open .select2-container--open .select2-dropdown {
	box-shadow: 0 8px 24px rgba(15, 23, 42, .18);
}
body.dsp-modal-open .select2-dropdown.dsp-select2-above {
	/* Select2 tự đặt top; class này chỉ siết chiều cao khi mở lên */
	box-shadow: 0 -8px 24px rgba(15, 23, 42, .18);
}
.dsp-auth-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: 13px; }
.dsp-check { display: flex; align-items: center; gap: 6px; color: #64748b; }
.dsp-btn { border: none; border-radius: 10px; font-weight: 700; font-size: 14px; cursor: pointer; transition: .2s; }
.dsp-btn-primary { background: linear-gradient(135deg, #03a0e2, #0284b8); color: #fff; padding: 13px 20px; }
.dsp-btn-primary:hover { filter: brightness(1.05); }
.dsp-btn-block { width: 100%; display: block; text-align: center; }
.dsp-link { color: #03a0e2; text-decoration: none; font-weight: 600; font-size: 13px; }
.dsp-link-btn { background: none; border: none; color: #03a0e2; font-weight: 700; cursor: pointer; }
.dsp-auth-switch { text-align: center; margin-top: 16px; font-size: 14px; color: #64748b; }
.dsp-back-btn { background: none; border: none; color: #03a0e2; font-weight: 600; cursor: pointer; margin-bottom: 12px; }
.dsp-auth-back-home { position: absolute; bottom: 16px; right: 40px; font-size: 13px; color: #94a3b8; text-decoration: none; }

/* ===== CRM layout — full width, cao full viewport ===== */
.dsp-portal-layout {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: stretch;
	width: 100%;
	min-height: calc(100vh - 120px);
	background: #fff;
	border: none;
	border-radius: 0;
	overflow: visible;
	box-shadow: none;
	gap: 0;
}
body.dsp-account-logged-in.admin-bar .dsp-portal-layout {
	min-height: calc(100vh - 152px);
}
.dsp-portal-sidebar {
	flex: 0 0 240px;
	width: 240px;
	background: #111827;
	color: #e5e7eb;
	display: flex;
	flex-direction: column;
}
.dsp-portal-sidebar-inner {
	display: flex;
	flex-direction: column;
	flex: 1;
	width: 100%;
	padding: 16px 12px;
}
.dsp-portal-user--head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 8px 16px;
	margin-bottom: 8px;
	border-bottom: 1px solid rgba(255,255,255,.1);
}
.dsp-portal-user-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.dsp-portal-user-avatar--placeholder {
	background: #03a0e2; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px;
}
.dsp-portal-user-name { font-size: 14px; font-weight: 700; color: #fff; margin: 0; line-height: 1.3; }
.dsp-portal-user-role { font-size: 11px; color: #94a3b8; margin: 2px 0 0; }
.dsp-portal-nav { flex: 1; }
.dsp-portal-nav ul { list-style: none; margin: 0; padding: 0; }
.dsp-portal-nav li { margin-bottom: 3px; }
.dsp-portal-nav-link {
	display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px;
	color: #cbd5e1 !important; text-decoration: none !important; font-size: 14px; font-weight: 500;
}
.dsp-portal-nav-link:hover { background: rgba(255,255,255,.08); color: #fff !important; }
.dsp-portal-nav li.is-active .dsp-portal-nav-link {
	background: rgba(3,160,226,.18);
	color: #fff !important;
	font-weight: 600;
	border-left: 3px solid #03a0e2;
	padding-left: 9px;
}
.dsp-portal-nav-logout { color: #f87171 !important; }
.dsp-portal-nav-icon svg { width: 18px; height: 18px; }

.dsp-portal-main {
	flex: 1 1 auto;
	min-width: 0;
	min-height: inherit;
	padding: 20px 24px 32px;
	background: #f8fafc;
	display: flex;
	flex-direction: column;
}
.dsp-portal-main .woocommerce-MyAccount-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
}
.dsp-account-manage,
.dsp-orders-history,
.dsp-dashboard {
	flex: 1;
	min-height: calc(100vh - 260px);
}
.dsp-content-title {
	margin: 0 0 14px;
	font-size: 18px;
	font-weight: 700;
	color: #0f172a;
}
.dsp-portal-main .woocommerce-MyAccount-content { background: transparent; }
.dsp-portal-main .woocommerce-MyAccount-content > p:first-of-type { display: none; }
.dsp-portal-main .woocommerce-MyAccount-content > h2:first-child { display: none; }

/* WooCommerce info/message — sửa icon đè chữ */
.dsp-portal-main .woocommerce-info,
.dsp-portal-main .woocommerce-message,
.dsp-portal-main .woocommerce-error {
	border-radius: 8px;
	margin: 0;
	padding: 14px 16px 14px 44px !important;
	position: relative;
	background: #fff !important;
	border: 1px solid #e2e8f0 !important;
	border-left: 4px solid #03a0e2 !important;
	list-style: none !important;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	min-height: auto;
}
.dsp-portal-main .woocommerce-info::before,
.dsp-portal-main .woocommerce-message::before {
	position: absolute !important;
	left: 14px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	margin: 0 !important;
}
.dsp-portal-main .woocommerce-info .button,
.dsp-portal-main .woocommerce-message .button {
	margin: 0 !important;
	flex-shrink: 0;
	background: #03a0e2 !important;
	color: #fff !important;
	border-radius: 6px !important;
	padding: 8px 14px !important;
	font-size: 13px !important;
}
.dsp-portal-main .woocommerce-orders-table,
.dsp-portal-main table.shop_table {
	width: 100%; background: #fff; border-radius: 10px; border: 1px solid #e2e8f0; border-collapse: separate; border-spacing: 0; overflow: hidden;
}
.dsp-portal-main .woocommerce-orders-table thead,
.dsp-portal-main table.shop_table thead {
	background: #f1f5f9; position: sticky; top: 0;
}
.dsp-portal-main .woocommerce-orders-table th,
.dsp-portal-main .woocommerce-orders-table td,
.dsp-portal-main table.shop_table th,
.dsp-portal-main table.shop_table td {
	padding: 10px 14px; font-size: 13px; border-bottom: 1px solid #f1f5f9;
}
.dsp-portal-main .woocommerce-orders-table .button,
.dsp-portal-main .woocommerce-button {
	color: #03a0e2 !important; background: none !important; border: none !important; font-weight: 600; padding: 0;
}
.dsp-portal-main .woocommerce-form-row input.input-text,
.dsp-portal-main .woocommerce-Input {
	border-radius: 8px; border: 1px solid #d1d9e6; padding: 10px 12px;
}
.dsp-portal-main fieldset { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px; margin-bottom: 16px; }

.dsp-portal-mobile-toggle {
	display: none; position: fixed; bottom: 20px; right: 20px; z-index: 200;
	width: 48px; height: 48px; border-radius: 50%; background: #03a0e2; color: #fff; border: none; cursor: pointer;
}
.dsp-portal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 150; }

/* Dashboard */
.dsp-dashboard-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.dsp-dashboard-eyebrow { font-size: 11px; font-weight: 700; color: #03a0e2; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 4px; }
.dsp-dashboard-title { font-size: 22px; font-weight: 700; color: #0f172a; margin: 0 0 4px; }
.dsp-dashboard-desc { font-size: 13px; color: #64748b; margin: 0; }
.dsp-stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.dsp-stat-card { background: #fff; border-radius: 10px; padding: 14px 16px; border: 1px solid #e2e8f0; }
.dsp-stat-label { font-size: 11px; color: #64748b; margin: 0 0 4px; font-weight: 600; text-transform: uppercase; }
.dsp-stat-value { font-size: 20px; font-weight: 700; color: #0f172a; margin: 0; }
.dsp-stat-card--warning .dsp-stat-value { color: #d97706; }
.dsp-stat-card--success .dsp-stat-value { color: #059669; }
.dsp-stat-card--brand { border-color: #03a0e2; background: #f0f9ff; }
.dsp-stat-card--brand .dsp-stat-value { color: #0284c7; }
.dsp-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 14px; align-items: start; }
.dsp-panel { background: #fff; border-radius: 12px; border: 1px solid #e2e8f0; overflow: hidden; }
.dsp-panel-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid #f1f5f9; }
.dsp-panel-header h2 { font-size: 15px; font-weight: 700; margin: 0; color: #0f172a; }
.dsp-table-wrap { overflow: auto; max-height: 280px; }
.dsp-table { width: 100%; border-collapse: collapse; font-size: 13px; background: transparent; }
.dsp-table thead { position: sticky; top: 0; background: #f8fafc; }
.dsp-table th { text-align: left; padding: 8px 14px; font-weight: 600; color: #64748b; border-bottom: 1px solid #e2e8f0; }
.dsp-table td { padding: 10px 14px; border-bottom: 1px solid #f1f5f9; }
.dsp-table.table-sm th, .dsp-table.table-sm td { padding: 7px 12px; }
.dsp-empty { text-align: center; color: #94a3b8; padding: 24px !important; }
.dsp-badge { background: #e0f2fe; color: #0369a1; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.dsp-info-list { list-style: none; margin: 0; padding: 14px 18px; }
.dsp-info-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f1f5f9; font-size: 13px; }
.dsp-quick-actions { display: grid; gap: 8px; padding: 0 18px 18px; }
.dsp-quick-card {
	display: block; padding: 10px 12px; background: #f8fafc; border-radius: 8px;
	color: #334155 !important; text-decoration: none !important; font-size: 13px; font-weight: 600; border: 1px solid #e2e8f0;
}

/* Modal — trên header/footer theme, không bị che */
body.dsp-modal-open { overflow: hidden !important; }
.dsp-modal {
	position: fixed;
	inset: 0;
	z-index: 10000050;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 90px 16px 70px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}
.dsp-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(15,23,42,.55);
	backdrop-filter: blur(3px);
	z-index: 0;
}
.dsp-modal-card {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 38% 62%;
	width: 100%;
	max-width: 820px;
	max-height: calc(100vh - 160px);
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 24px 64px rgba(0,0,0,.2);
	margin: auto 0;
	flex-shrink: 0;
}
.dsp-modal-brand { background: linear-gradient(145deg, #0284c7, #03a0e2 50%, #38bdf8); color: #fff; padding: 32px 28px; position: relative; }
.dsp-modal-brand-inner { position: relative; z-index: 2; }
.dsp-modal-brand-text { font-size: 13px; line-height: 1.5; opacity: .92; margin: 0 0 16px; }
.dsp-modal-body { padding: 32px 36px; overflow-y: auto; }
.dsp-modal-body h3 { margin: 0 0 4px; font-size: 20px; font-weight: 800; }
.dsp-form-error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; border-radius: 8px; padding: 10px 12px; font-size: 13px; margin-bottom: 10px; }

/* Account manage tabs */
.dsp-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; border-bottom: 1px solid #e2e8f0; padding-bottom: 10px; }
.dsp-tab { background: none; border: none; padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; color: #64748b; cursor: pointer; }
.dsp-tab.is-active { background: #e0f2fe; color: #0369a1; }
.dsp-tab-panel { display: none; }
.dsp-tab-panel.is-active {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: calc(100vh - 320px);
}
.dsp-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dsp-field--full { grid-column: 1 / -1; }
.dsp-form-actions { grid-column: 1 / -1; display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }
.dsp-panel-toolbar { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.dsp-btn-text { background: none; border: none; font-weight: 600; font-size: 13px; cursor: pointer; color: #64748b; padding: 0; }
.dsp-btn-text-primary { color: #03a0e2 !important; }
.dsp-btn-text-danger { color: #ef4444 !important; }
.dsp-table-scroll {
	flex: 1;
	overflow: auto;
	min-height: calc(100vh - 380px);
	max-height: none;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #fff;
}
.dsp-td-actions { white-space: nowrap; }
.dsp-modal[hidden] { display: none !important; }
.dsp-modal-card--form { display: block; max-width: 560px; grid-template-columns: 1fr; max-height: calc(100vh - 140px); overflow: visible; }
.dsp-modal-card--wide { max-width: 720px; }
.dsp-modal-card--form .dsp-modal-body { padding: 24px; overflow-y: auto; max-height: calc(100vh - 160px); -webkit-overflow-scrolling: touch; }
#dspAddressModal .dsp-modal-card--form { max-width: 560px; }

/* Orders history */
.dsp-status-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.dsp-status-chip { border: 1px solid #e2e8f0; background: #fff; border-radius: 999px; padding: 7px 14px; font-size: 12px; font-weight: 600; color: #64748b; cursor: pointer; }
.dsp-status-chip.is-active { background: #03a0e2; border-color: #03a0e2; color: #fff; }
.dsp-orders-toolbar { display: flex; gap: 10px; margin-bottom: 12px; align-items: center; }
.dsp-search-input { flex: 1; border: 1px solid #d1d9e6; border-radius: 8px; padding: 9px 12px; font-size: 13px; }
.dsp-badge--processing, .dsp-badge--on-hold, .dsp-badge--pending { background: #fef3c7; color: #b45309; }
.dsp-badge--dsp-da-xu-ly { background: #dbeafe; color: #1d4ed8; }
.dsp-badge--completed { background: #d1fae5; color: #047857; }
.dsp-order-address { font-size: 13px; color: #475569; margin: 12px 0; }

@media (max-width: 782px) {
	body.dsp-account-logged-in.admin-bar .devvn_wrapper,
	body.dsp-account-logged-in.admin-bar .dsp-portal-layout {
		min-height: calc(100vh - 166px);
	}
	.dsp-modal { padding: 70px 12px 60px; }
	.dsp-account-manage,
	.dsp-orders-history,
	.dsp-dashboard { min-height: calc(100vh - 300px); }
	.dsp-table-scroll { min-height: calc(100vh - 420px); }
}

@media (max-width: 768px) {
	.dsp-form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
	.dsp-auth-card { grid-template-columns: 1fr; max-width: 440px; min-height: auto; }
	.dsp-auth-brand { padding: 24px; }
	.dsp-auth-form-col { padding: 24px 20px 40px; }
	.dsp-stats-grid { grid-template-columns: repeat(2, 1fr); }
	.dsp-dashboard-grid { grid-template-columns: 1fr; }
	.dsp-modal-card { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
	.dsp-portal-layout {
		flex-direction: column !important;
		flex-wrap: wrap !important;
	}
	body.dsp-account-logged-in .dsp-portal-sidebar,
	.dsp-portal-sidebar {
		flex: 0 0 auto !important;
		width: 100% !important;
	}
	body.dsp-account-logged-in .dsp-portal-main,
	.dsp-portal-main {
		flex: 1 1 auto !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		padding: 16px !important;
	}
	.dsp-portal-sidebar-inner { min-height: auto; }
	.dsp-portal-nav ul { display: flex; flex-wrap: wrap; gap: 4px; }
	.dsp-portal-nav li { flex: 1 1 45%; }
	/* chống chữ xuống dòng từng ký tự do cột hẹp */
	.dsp-portal-main .dsp-dashboard-title,
	.dsp-portal-main .dsp-content-title,
	.dsp-portal-main h2,
	.dsp-portal-main .woocommerce-info,
	.dsp-portal-main .woocommerce-message {
		word-break: normal !important;
		overflow-wrap: anywhere;
	}
}
