html,
body {
	width: 100%;
	min-height: 100%;
	margin: 0;
	padding: 0;
	overflow-x: hidden;
}

body.mtm-fullscreen-app {
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	min-height: 100vh;
	overflow: hidden;
	background: #f5f7fb;
}

body.mtm-fullscreen-app > header,
body.mtm-fullscreen-app > footer,
body.mtm-fullscreen-app header:not(.mtm-topbar):not(.mtm-drawer-header):not(.mtm-modal-header),
body.mtm-fullscreen-app footer:not(.mtm-app-footer),
body.mtm-fullscreen-app .site-header,
body.mtm-fullscreen-app .site-footer,
body.mtm-fullscreen-app .wp-site-blocks > header,
body.mtm-fullscreen-app .wp-site-blocks > footer,
body.mtm-fullscreen-app .entry-header,
body.mtm-fullscreen-app .entry-title,
body.mtm-fullscreen-app .page-title,
body.mtm-fullscreen-app .wp-block-post-title,
body.mtm-fullscreen-app .post-title,
body.mtm-fullscreen-app .entry-content > h1:first-child,
body.mtm-fullscreen-app .wp-block-post-content > h1:first-child,
body.mtm-fullscreen-app .comments-area,
body.mtm-fullscreen-app .sidebar,
body.mtm-fullscreen-app aside.widget-area {
	display: none !important;
}

body.mtm-fullscreen-app .wp-site-blocks,
body.mtm-fullscreen-app .site,
body.mtm-fullscreen-app .site-main,
body.mtm-fullscreen-app .site-content,
body.mtm-fullscreen-app .content-area,
body.mtm-fullscreen-app .page-content,
body.mtm-fullscreen-app .post-content,
body.mtm-fullscreen-app .wp-site-blocks > main,
body.mtm-fullscreen-app .site-main > article,
body.mtm-fullscreen-app article.type-page,
body.mtm-fullscreen-app .hentry,
body.mtm-fullscreen-app .entry-content,
body.mtm-fullscreen-app .wp-block-post-content,
body.mtm-fullscreen-app main,
body.mtm-fullscreen-app article {
	width: 100% !important;
	max-width: none !important;
	min-height: 100vh;
	margin: 0 !important;
	padding: 0 !important;
}

body.mtm-fullscreen-app .entry-content > *,
body.mtm-fullscreen-app .wp-block-post-content > *,
body.mtm-fullscreen-app .is-layout-constrained > *,
body.mtm-fullscreen-app .is-layout-flow > *,
body.mtm-fullscreen-app .alignwide,
body.mtm-fullscreen-app .alignfull,
body.mtm-fullscreen-app .is-layout-constrained > .mtm-app,
body.mtm-fullscreen-app .is-layout-flow > .mtm-app {
	width: 100vw !important;
	max-width: none !important;
	margin: 0 !important;
}

.mtm-app-root {
	width: 100vw !important;
	max-width: none !important;
	min-height: 100vh;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden;
	background: #f5f7fb;
}

.mtm-app,
.mtm-app * {
	box-sizing: border-box;
}

.mtm-app {
	--mtm-sidebar-width: 240px;
	display: block;
	width: 100vw !important;
	max-width: none !important;
	min-height: 100vh;
	color: #182230;
	background: #f5f7fb;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.mtm-fullscreen-app .mtm-app {
	width: 100vw !important;
	max-width: none !important;
	min-height: 100vh;
	margin: 0 !important;
	padding: 0 !important;
}

.mtm-sidebar {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 50;
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: var(--mtm-sidebar-width);
	height: 100vh;
	min-height: 100vh;
	overflow-y: auto;
	padding: 24px 18px;
	background: #101828;
	color: #ffffff;
}

.mtm-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
}

.mtm-brand-mark {
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	border-radius: 8px;
	background: #16a34a;
	font-weight: 800;
}

.mtm-brand strong,
.mtm-brand span {
	display: block;
	line-height: 1.2;
}

.mtm-brand div span {
	color: #cbd5e1;
	font-size: 13px;
}

.mtm-nav {
	display: grid;
	gap: 6px;
}

.mtm-nav a {
	display: flex;
	align-items: center;
	min-height: 42px;
	padding: 10px 12px;
	border-radius: 8px;
	color: #d7dde8;
	text-decoration: none;
	font-size: 14px;
	font-weight: 650;
}

.mtm-nav a:hover,
.mtm-nav a.is-active {
	background: #1f2937;
	color: #ffffff;
}

.mtm-main {
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: 100vh;
	min-height: 100vh;
	width: calc(100vw - var(--mtm-sidebar-width)) !important;
	max-width: none !important;
	margin-left: var(--mtm-sidebar-width) !important;
	background: #f5f7fb;
}

body.mtm-fullscreen-app .mtm-main {
	width: calc(100vw - var(--mtm-sidebar-width)) !important;
	max-width: none !important;
	height: 100vh;
	min-height: 100vh;
	margin: 0 0 0 var(--mtm-sidebar-width) !important;
	padding: 0 !important;
}

body.mtm-fullscreen-app .mtm-topbar,
.mtm-topbar {
	position: sticky;
	top: 0;
	z-index: 40;
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	height: 72px;
	min-height: 72px;
	padding: 18px 30px;
	border-bottom: 1px solid #e4e7ec;
	background: #ffffff;
}

.mtm-topbar p,
.mtm-topbar h1,
.mtm-module-heading p,
.mtm-module-heading h2 {
	margin: 0;
}

.mtm-topbar p {
	color: #667085;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.mtm-topbar h1 {
	color: #101828;
	font-size: 24px;
	line-height: 1.2;
}

.mtm-user {
	display: flex;
	align-items: center;
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid #d0d5dd;
	border-radius: 8px;
	background: #ffffff;
	color: #344054;
	font-size: 14px;
	font-weight: 650;
}

.mtm-content {
	width: 100%;
	max-width: none !important;
	flex: 1;
	min-height: 0;
	margin: 0 !important;
	padding: 32px;
	overflow: auto;
}

body.mtm-fullscreen-app .mtm-content {
	width: 100% !important;
	max-width: none !important;
	min-height: 0;
	margin: 0 !important;
	padding: 32px !important;
	overflow: auto;
}

.mtm-module-heading {
	display: grid;
	gap: 8px;
	margin-bottom: 24px;
}

.mtm-module-heading-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.mtm-module-heading p {
	max-width: 740px;
	color: #667085;
	font-size: 15px;
}

.mtm-module-heading h2 {
	color: #101828;
	font-size: 30px;
	line-height: 1.2;
}

.mtm-module-heading span {
	width: fit-content;
	padding: 6px 10px;
	border: 1px solid #b7d6c2;
	border-radius: 8px;
	background: #ecfdf3;
	color: #027a48;
	font-size: 13px;
	font-weight: 700;
}

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

.mtm-card {
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	min-height: 164px !important;
	padding: 20px;
	border: 1px solid #e4e7ec;
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

body.mtm-fullscreen-app .mtm-card {
	width: auto !important;
	max-width: none !important;
	min-height: 164px !important;
	margin: 0 !important;
	padding: 20px !important;
}

.mtm-card span {
	color: #667085;
	font-size: 13px;
	font-weight: 750;
	text-transform: uppercase;
}

.mtm-card strong {
	display: block;
	margin-top: 16px;
	color: #101828;
	font-size: 26px;
	line-height: 1.1;
}

.mtm-card p {
	margin: 12px 0 0;
	color: #667085;
	font-size: 14px;
	line-height: 1.5;
}

.mtm-button,
.mtm-button-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid transparent;
	border-radius: 8px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 750;
	cursor: pointer;
}

.mtm-button {
	background: #101828;
	color: #ffffff;
}

.mtm-button:hover {
	color: #ffffff;
	background: #1f2937;
}

.mtm-button-secondary {
	border-color: #d0d5dd;
	background: #ffffff;
	color: #344054;
}

.mtm-notice {
	margin: 0 0 16px;
	padding: 12px 14px;
	border: 1px solid #b7d6c2;
	border-radius: 8px;
	background: #ecfdf3;
	color: #027a48;
	font-size: 14px;
	font-weight: 650;
}

.mtm-notice-error {
	border-color: #f3b7b7;
	background: #fff1f1;
	color: #b42318;
}

.mtm-filters,
.mtm-form {
	display: grid;
	gap: 14px;
}

.mtm-filters {
	grid-template-columns: repeat(4, minmax(160px, 1fr));
	margin-bottom: 18px;
	padding: 16px;
	border: 1px solid #e4e7ec;
	border-radius: 8px;
	background: #ffffff;
}

.mtm-form {
	grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.mtm-form label,
.mtm-filters label {
	display: grid;
	gap: 6px;
	min-width: 0;
}

.mtm-form span,
.mtm-filters span {
	color: #344054;
	font-size: 13px;
	font-weight: 750;
}

.mtm-form input,
.mtm-form select,
.mtm-form textarea,
.mtm-filters input,
.mtm-filters select {
	width: 100%;
	min-height: 40px;
	padding: 8px 10px;
	border: 1px solid #d0d5dd;
	border-radius: 8px;
	background: #ffffff;
	color: #101828;
	font: inherit;
	font-size: 14px;
}

.mtm-form textarea {
	min-height: 94px;
	resize: vertical;
}

.mtm-form small {
	color: #667085;
	font-size: 12px;
}

.mtm-panel {
	margin-bottom: 18px;
	padding: 18px;
	border: 1px solid #e4e7ec;
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.mtm-panel h3 {
	margin: 0 0 16px;
	color: #101828;
	font-size: 18px;
}

.mtm-field-wide,
.mtm-form-actions {
	grid-column: 1 / -1;
}

.mtm-form-actions,
.mtm-filter-actions {
	display: flex;
	align-items: end;
	gap: 10px;
}

.mtm-table-wrap {
	width: 100%;
	max-width: none !important;
	overflow-x: auto;
	border: 1px solid #e4e7ec;
	border-radius: 8px;
	background: #ffffff;
}

.mtm-table {
	width: 100%;
	min-width: 1320px;
	border-collapse: collapse;
	font-size: 13px;
}

.mtm-table th,
.mtm-table td {
	padding: 12px;
	border-bottom: 1px solid #e4e7ec;
	color: #344054;
	text-align: left;
	vertical-align: top;
	white-space: nowrap;
}

.mtm-table th {
	background: #f8fafc;
	color: #475467;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
}

.mtm-table tr:last-child td {
	border-bottom: 0;
}

.mtm-status {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding: 0 8px;
	border-radius: 8px;
	background: #eef4ff;
	color: #3538cd;
	font-size: 12px;
	font-weight: 800;
}

.mtm-actions {
	display: flex;
	gap: 10px;
}

.mtm-actions a {
	color: #175cd3;
	font-weight: 750;
	text-decoration: none;
}

.mtm-detail {
	padding: 12px;
	border-radius: 8px;
	background: #f8fafc;
	white-space: normal;
}

.mtm-detail p,
.mtm-detail ul {
	margin: 8px 0 0;
}

.mtm-sales-screen {
	display: grid;
	gap: 24px;
	width: 100%;
	max-width: none;
}

.mtm-sales-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.mtm-sales-header h2 {
	margin: 0;
	color: #101828;
	font-size: 28px;
	line-height: 1.15;
}

.mtm-sales-header p {
	margin: 6px 0 0;
	color: #667085;
	font-size: 14px;
}

.mtm-button-primary {
	background: #079455;
	box-shadow: 0 8px 18px rgba(7, 148, 85, 0.22);
}

.mtm-button-primary:hover {
	background: #067647;
}

.mtm-kpi-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(180px, 1fr));
	gap: 20px;
}

.mtm-kpi-card {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr);
	align-items: center;
	gap: 18px;
	min-height: 128px !important;
	margin: 0 !important;
	padding: 24px 28px !important;
	border: 1px solid #e4e7ec;
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
	overflow: hidden;
}

body.mtm-fullscreen-app .mtm-kpi-card {
	display: grid !important;
	grid-template-columns: 52px minmax(0, 1fr);
	align-items: center;
	gap: 22px;
	width: auto !important;
	max-width: none !important;
	min-height: 132px !important;
	margin: 0 !important;
	padding: 28px 34px !important;
}

.mtm-kpi-icon {
	display: grid;
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	place-items: center;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 900;
}

.mtm-kpi-icon svg {
	width: 24px;
	height: 24px;
	color: currentColor;
	fill: none !important;
	stroke: currentColor !important;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mtm-kpi-icon svg *,
.mtm-kpi-icon svg path,
.mtm-kpi-icon svg circle,
.mtm-kpi-icon svg rect,
.mtm-kpi-icon svg line,
.mtm-kpi-icon svg polyline,
.mtm-kpi-icon svg polygon {
	fill: none !important;
	stroke: currentColor !important;
}

.mtm-kpi-icon.is-green {
	background: #dcfae6;
	color: #067647;
}

.mtm-kpi-icon.is-purple {
	background: #ebe9fe;
	color: #5925dc;
}

.mtm-kpi-icon.is-orange {
	background: #fef0c7;
	color: #b54708;
}

.mtm-kpi-icon.is-blue {
	background: #dff3ff;
	color: #026aa2;
}

.mtm-kpi-card p,
.mtm-kpi-card strong,
.mtm-kpi-card small {
	display: block;
	margin: 0;
	max-width: 100%;
	overflow-wrap: anywhere;
}

.mtm-kpi-card p {
	color: #667085;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
}

.mtm-kpi-card strong {
	margin-top: 8px;
	color: #101828;
	font-size: 28px;
	line-height: 1;
}

.mtm-kpi-card small {
	margin-top: 10px;
	color: #079455;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.35;
}

.mtm-card-panel {
	width: 100%;
	max-width: none;
	border: 1px solid #e4e7ec;
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.mtm-card-panel-heading {
	padding: 20px 22px 0;
}

.mtm-card-panel-heading-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.mtm-card-panel-heading h3 {
	margin: 0;
	color: #101828;
	font-size: 17px;
}

.mtm-card-panel-heading p {
	margin: 5px 0 0;
	color: #667085;
	font-size: 13px;
}

.mtm-filter-panel .mtm-filters {
	grid-template-columns: minmax(280px, 2fr) repeat(4, minmax(150px, 1fr));
	margin: 0;
	padding: 18px 22px 22px;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.mtm-filter-search {
	grid-column: span 2;
}

.mtm-filter-actions {
	align-items: end;
	justify-content: flex-end;
}

.mtm-sales-table-panel {
	overflow: hidden;
}

.mtm-sales-table-panel .mtm-table-wrap {
	margin-top: 18px;
	border: 0;
	border-top: 1px solid #e4e7ec;
	border-radius: 0;
	box-shadow: none;
}

.mtm-sales-table {
	min-width: 1540px;
}

.mtm-base-table {
	min-width: 980px;
}

.mtm-sales-table th {
	height: 48px;
	background: #f9fafb;
	color: #475467;
	font-size: 11px;
	letter-spacing: 0;
}

.mtm-sales-table td {
	height: 64px;
	padding: 14px 12px;
	color: #344054;
	background: #ffffff;
	vertical-align: middle;
}

.mtm-sales-table tbody tr:hover td {
	background: #f9fafb;
}

.mtm-sales-table td strong {
	display: block;
	color: #101828;
	font-weight: 750;
}

.mtm-sales-table td small {
	display: block;
	margin-top: 4px;
	color: #667085;
	font-size: 12px;
}

.mtm-sale-id {
	color: #175cd3 !important;
}

.mtm-badge {
	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;
}

.mtm-badge-limpia,
.mtm-badge-emitida,
.mtm-badge-si {
	background: #dcfae6;
	color: #067647;
}

.mtm-badge-preexistencia,
.mtm-badge-pendiente {
	background: #fef0c7;
	color: #b54708;
}

.mtm-badge-rechazo {
	background: #fee4e2;
	color: #b42318;
}

.mtm-badge-cancelada {
	background: #fecdca;
	color: #b42318;
}

.mtm-badge-no {
	background: #f2f4f7;
	color: #475467;
}

.mtm-badge-activo {
	background: #dcfae6;
	color: #067647;
}

.mtm-badge-inactivo {
	background: #f2f4f7;
	color: #475467;
}

.mtm-cost-warning {
	display: none;
	color: #b54708 !important;
	font-weight: 800;
}

.mtm-cost-warning.is-visible {
	display: block;
}

.mtm-actions {
	align-items: center;
	gap: 8px;
}

.mtm-action-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border: 1px solid #d0d5dd;
	border-radius: 999px;
	background: #ffffff;
	color: #344054 !important;
	font-size: 11px;
	font-weight: 900;
	text-decoration: none;
}

.mtm-action-button:hover {
	border-color: #079455;
	color: #067647 !important;
	background: #ecfdf3;
}

.mtm-empty-state {
	display: grid;
	place-items: center;
	gap: 8px;
	min-height: 300px;
	padding: 42px 20px;
	text-align: center;
}

.mtm-empty-icon {
	display: grid;
	width: 52px;
	height: 52px;
	place-items: center;
	border-radius: 999px;
	background: #dcfae6;
	color: #067647;
	font-size: 26px;
	font-weight: 800;
}

.mtm-empty-state h3,
.mtm-empty-state p {
	margin: 0;
}

.mtm-empty-state h3 {
	color: #101828;
	font-size: 20px;
}

.mtm-empty-state p {
	color: #667085;
	font-size: 14px;
}

.mtm-drawer-overlay {
	position: fixed;
	inset: 0;
	z-index: 200;
	pointer-events: none;
}

.mtm-drawer-backdrop {
	position: absolute;
	inset: 0;
	display: block;
	background: rgba(16, 24, 40, 0.42);
	pointer-events: auto;
}

.mtm-sale-drawer {
	position: absolute;
	top: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	width: min(540px, 100vw);
	height: 100vh;
	max-width: 100vw;
	background: #ffffff;
	box-shadow: -24px 0 60px rgba(16, 24, 40, 0.18);
	pointer-events: auto;
}

.mtm-drawer-header {
	display: flex !important;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	min-height: 86px;
	padding: 22px 24px;
	border-bottom: 1px solid #e4e7ec;
	background: #ffffff;
}

.mtm-drawer-header h3,
.mtm-drawer-header p {
	margin: 0;
}

.mtm-drawer-header h3 {
	color: #101828;
	font-size: 20px;
}

.mtm-drawer-header p {
	margin-top: 5px;
	color: #667085;
	font-size: 13px;
}

.mtm-drawer-close {
	display: grid;
	width: 32px;
	height: 32px;
	place-items: center;
	border: 1px solid #e4e7ec;
	border-radius: 999px;
	color: #475467;
	text-decoration: none;
	font-size: 16px;
	font-weight: 800;
}

.mtm-sale-drawer .mtm-sale-form {
	display: block;
	flex: 1;
	min-height: 0;
	padding: 0 24px 132px;
	overflow-y: auto;
}

.mtm-sale-drawer > .mtm-notice {
	margin: 16px 24px 0;
}

.mtm-form-section {
	padding: 22px 0;
	border-bottom: 1px solid #eef2f6;
}

.mtm-form-section h4 {
	margin: 0 0 14px;
	color: #101828;
	font-size: 15px;
}

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

.mtm-sale-drawer .mtm-form label {
	display: grid;
	gap: 6px;
}

.mtm-sale-drawer .mtm-form textarea {
	min-height: 96px;
	scroll-margin-bottom: 120px;
}

.mtm-sale-drawer .mtm-form input[readonly],
.mtm-sale-drawer .mtm-form input:disabled,
.mtm-sale-drawer .mtm-form select:disabled {
	background: #f2f4f7;
	color: #667085;
}

.mtm-sale-drawer .mtm-form-actions {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin: 0;
	padding: 16px 24px;
	border-top: 1px solid #e4e7ec;
	background: #ffffff;
	box-shadow: 0 -12px 28px rgba(16, 24, 40, 0.08);
	z-index: 3;
}

.mtm-sale-drawer .mtm-form-section:last-of-type {
	padding-bottom: 28px;
}

.mtm-login-gate {
	display: grid;
	width: 100vw;
	min-height: 100vh;
	place-items: center;
	padding: 24px;
	background: #f5f7fb;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.mtm-login-panel {
	width: min(100%, 420px);
	padding: 32px;
	border: 1px solid #e4e7ec;
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 20px 60px rgba(16, 24, 40, 0.12);
}

.mtm-login-panel span {
	color: #16a34a;
	font-weight: 800;
}

.mtm-login-panel h1 {
	margin: 10px 0;
	color: #101828;
}

.mtm-login-panel p {
	color: #667085;
}

.mtm-login-panel a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	margin-top: 12px;
	padding: 0 16px;
	border-radius: 8px;
	background: #101828;
	color: #ffffff;
	text-decoration: none;
	font-weight: 750;
}

@media (max-width: 820px) {
	.mtm-app {
		--mtm-sidebar-width: 0px;
	}

	.mtm-sidebar {
		position: sticky;
		width: 100%;
		height: auto;
		min-height: auto;
		padding: 16px;
	}

	.mtm-main {
		width: 100vw !important;
		margin-left: 0 !important;
	}

	.mtm-nav {
		display: flex;
		gap: 8px;
		overflow-x: auto;
		padding-bottom: 4px;
	}

	.mtm-nav a {
		flex: 0 0 auto;
	}

	.mtm-topbar {
		align-items: flex-start;
		flex-direction: column;
		gap: 12px;
		padding: 18px;
	}

	.mtm-content {
		padding: 24px 18px 36px;
	}

	.mtm-card-grid {
		grid-template-columns: 1fr;
	}

	.mtm-module-heading-row,
	.mtm-form-actions,
	.mtm-filter-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.mtm-filters,
	.mtm-form {
		grid-template-columns: 1fr;
	}

	.mtm-sales-header,
	.mtm-card-panel-heading-row {
		align-items: stretch;
		flex-direction: column;
	}

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

	.mtm-filter-panel .mtm-filters {
		grid-template-columns: 1fr;
		padding: 16px;
	}

	.mtm-filter-search {
		grid-column: auto;
	}

	.mtm-sale-drawer {
		width: 100vw;
	}

	.mtm-form-grid {
		grid-template-columns: 1fr;
	}
}

/* Mutuus iOS-style visual system */
:root {
	--mtm-blue: #1f3f95;
	--mtm-blue-dark: #12265f;
	--mtm-green: #b2d72e;
	--mtm-bg: #f6f8fc;
	--mtm-surface: rgba(255, 255, 255, 0.86);
	--mtm-surface-strong: rgba(255, 255, 255, 0.96);
	--mtm-border: rgba(31, 63, 149, 0.12);
	--mtm-text: #081633;
	--mtm-muted: #667085;
	--mtm-shadow: 0 18px 45px rgba(16, 24, 40, 0.08);
	--mtm-shadow-hover: 0 24px 60px rgba(16, 24, 40, 0.12);
	--mtm-radius-lg: 28px;
	--mtm-radius-md: 18px;
	--mtm-radius-sm: 12px;
}

body.mtm-fullscreen-app {
	background:
		linear-gradient(135deg, rgba(31, 63, 149, 0.08), rgba(178, 215, 46, 0.06) 36%, rgba(246, 248, 252, 1) 72%),
		var(--mtm-bg);
	color: var(--mtm-text);
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

.mtm-app-root,
.mtm-app {
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(246, 248, 252, 0.96)),
		var(--mtm-bg) !important;
	color: var(--mtm-text);
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

.mtm-app {
	--mtm-sidebar-width: 272px;
}

body.mtm-fullscreen-app .mtm-main {
	width: calc(100vw - var(--mtm-sidebar-width)) !important;
	margin-left: var(--mtm-sidebar-width) !important;
	background: transparent;
}

.mtm-sidebar {
	width: var(--mtm-sidebar-width);
	padding: 24px 18px;
	background: rgba(255, 255, 255, 0.82);
	color: var(--mtm-text);
	border-right: 1px solid var(--mtm-border);
	box-shadow: 18px 0 45px rgba(31, 63, 149, 0.06);
	backdrop-filter: blur(22px);
	-webkit-backdrop-filter: blur(22px);
}

.mtm-logo-wrap {
	display: flex;
	align-items: center;
	min-height: 56px;
	margin: 2px 4px 22px;
}

.mtm-logo {
	display: block;
	width: 150px;
	max-height: 54px;
	object-fit: contain;
}

.mtm-logo-fallback {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--mtm-blue);
}

.mtm-logo-symbol,
.mtm-brand-mark,
.mtm-user-avatar {
	display: grid;
	place-items: center;
	border-radius: 16px;
	background: linear-gradient(145deg, var(--mtm-green), #28b463);
	color: #ffffff;
	box-shadow: 0 14px 30px rgba(62, 168, 73, 0.22);
}

.mtm-logo-symbol {
	width: 42px;
	height: 42px;
	font-weight: 900;
}

.mtm-logo-fallback strong {
	display: block;
	font-size: 19px;
	line-height: 1;
}

.mtm-logo-fallback small {
	display: block;
	margin-top: 4px;
	color: #476083;
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
}

.mtm-brand {
	min-height: 62px;
	margin-bottom: 24px;
	padding: 12px;
	border: 1px solid var(--mtm-border);
	border-radius: var(--mtm-radius-md);
	background: rgba(255, 255, 255, 0.72);
	box-shadow: 0 12px 30px rgba(31, 63, 149, 0.06);
}

.mtm-brand-mark {
	width: 38px;
	height: 38px;
	border-radius: 12px;
}

.mtm-brand strong {
	color: var(--mtm-blue-dark);
	font-weight: 800;
}

.mtm-brand div span {
	color: #667b9c;
}

.mtm-nav {
	gap: 8px;
}

.mtm-nav a {
	position: relative;
	gap: 12px;
	min-height: 48px;
	padding: 0 14px;
	border: 1px solid transparent;
	border-radius: 16px;
	color: #415372;
	font-size: 14px;
	font-weight: 750;
	transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.mtm-nav a:hover {
	transform: translateY(-1px);
	background: rgba(31, 63, 149, 0.06);
	color: var(--mtm-blue);
}

.mtm-nav a.is-active {
	background: linear-gradient(135deg, rgba(31, 63, 149, 0.1), rgba(178, 215, 46, 0.16));
	border-color: rgba(31, 63, 149, 0.12);
	color: var(--mtm-blue);
	box-shadow: 0 14px 30px rgba(31, 63, 149, 0.08);
}

.mtm-nav a.is-active::before {
	content: "";
	position: absolute;
	left: 0;
	top: 12px;
	bottom: 12px;
	width: 4px;
	border-radius: 999px;
	background: var(--mtm-green);
}

.mtm-nav-icon {
	display: grid;
	width: 28px;
	height: 28px;
	place-items: center;
	border-radius: 10px;
	background: rgba(31, 63, 149, 0.06);
	color: var(--mtm-blue);
	font-size: 12px;
	font-weight: 900;
}

.mtm-sidebar-user {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr) 24px;
	align-items: center;
	gap: 10px;
	margin-top: auto;
	padding: 14px;
	border: 1px solid var(--mtm-border);
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.78);
	box-shadow: 0 14px 35px rgba(16, 24, 40, 0.06);
}

.mtm-user-avatar {
	width: 42px;
	height: 42px;
	border-radius: 999px;
	font-weight: 900;
}

.mtm-sidebar-user strong,
.mtm-sidebar-user small {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mtm-sidebar-user strong {
	color: var(--mtm-text);
	font-size: 13px;
}

.mtm-sidebar-user small {
	margin-top: 3px;
	color: var(--mtm-muted);
	font-size: 11px;
}

.mtm-user-gear {
	color: var(--mtm-blue);
	font-weight: 900;
	text-decoration: none;
	font-size: 11px;
}

body.mtm-fullscreen-app .mtm-topbar,
.mtm-topbar {
	height: 82px;
	min-height: 82px;
	padding: 16px 34px;
	background: rgba(255, 255, 255, 0.74);
	border-bottom: 1px solid var(--mtm-border);
	box-shadow: 0 10px 30px rgba(31, 63, 149, 0.04);
	backdrop-filter: blur(22px);
	-webkit-backdrop-filter: blur(22px);
}

.mtm-topbar p {
	color: var(--mtm-muted);
	font-size: 12px;
	font-weight: 750;
}

.mtm-topbar h1 {
	color: var(--mtm-text);
	font-size: 22px;
	font-weight: 800;
}

.mtm-global-search,
.mtm-module-search {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 46px;
	padding: 0 14px;
	border: 1px solid var(--mtm-border);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.78);
	box-shadow: 0 10px 25px rgba(31, 63, 149, 0.06);
}

.mtm-global-search {
	width: min(420px, 38vw);
}

.mtm-global-search input,
.mtm-module-search input {
	width: 100%;
	min-width: 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--mtm-text);
	font: inherit;
	font-size: 14px;
}

.mtm-global-search kbd {
	padding: 4px 8px;
	border: 1px solid rgba(31, 63, 149, 0.12);
	border-radius: 9px;
	background: #f7f9fd;
	color: #667b9c;
	font-size: 11px;
	font-weight: 800;
}

.mtm-user {
	gap: 10px;
	min-height: 44px;
	border-color: var(--mtm-border);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.78);
	color: var(--mtm-blue-dark);
	box-shadow: 0 10px 25px rgba(31, 63, 149, 0.06);
}

.mtm-topbar-bell {
	display: grid;
	width: 24px;
	height: 24px;
	place-items: center;
	border-radius: 999px;
	background: rgba(31, 63, 149, 0.08);
	color: var(--mtm-blue);
	line-height: 1;
}

body.mtm-fullscreen-app .mtm-content {
	padding: 20px 28px !important;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(246, 248, 252, 0)),
		transparent;
}

.mtm-sales-screen {
	gap: 16px;
}

.mtm-workspace,
.mtm-sales-screen,
.mtm-validation-page {
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.mtm-sales-screen > .mtm-sales-header,
.mtm-validation-page > .mtm-page-header {
	display: none !important;
}

.mtm-sales-header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 420px) auto;
	align-items: center;
	gap: 18px;
}

.mtm-eyebrow {
	display: inline-flex;
	margin-bottom: 8px;
	color: #50617f;
	font-size: 13px;
	font-weight: 750;
}

.mtm-sales-header h2 {
	color: var(--mtm-text);
	font-size: 34px;
	font-weight: 850;
}

.mtm-sales-header p {
	margin-top: 8px;
	color: #667b9c;
	font-size: 15px;
}

.mtm-button,
.mtm-button-secondary {
	min-height: 46px;
	padding: 0 18px;
	border-radius: 15px;
	font-weight: 800;
	transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.mtm-button-primary,
.mtm-button {
	background: linear-gradient(135deg, var(--mtm-blue), #2157d6);
	color: #ffffff;
	box-shadow: 0 16px 32px rgba(31, 63, 149, 0.22);
}

.mtm-button-primary:hover,
.mtm-button:hover {
	transform: translateY(-1px);
	background: linear-gradient(135deg, var(--mtm-blue-dark), #1f3f95);
	box-shadow: 0 20px 40px rgba(31, 63, 149, 0.28);
}

.mtm-button-secondary {
	border-color: var(--mtm-border);
	background: rgba(255, 255, 255, 0.82);
	color: var(--mtm-blue);
	box-shadow: 0 8px 20px rgba(31, 63, 149, 0.05);
}

.mtm-button-secondary:hover {
	transform: translateY(-1px);
	background: rgba(31, 63, 149, 0.06);
}

.mtm-kpi-grid {
	grid-template-columns: repeat(4, minmax(210px, 1fr));
	gap: 16px;
	margin-bottom: 16px;
}

body.mtm-fullscreen-app .mtm-kpi-card,
.mtm-card,
.mtm-card-panel,
.mtm-panel {
	border: 1px solid var(--mtm-border);
	border-radius: var(--mtm-radius-lg);
	background: var(--mtm-surface);
	box-shadow: var(--mtm-shadow);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

body.mtm-fullscreen-app .mtm-kpi-card {
	grid-template-columns: 68px minmax(0, 1fr);
	min-height: 104px !important;
	padding: 18px 20px !important;
	border-radius: 22px;
}

body.mtm-fullscreen-app .mtm-kpi-card:hover,
.mtm-card-panel:hover {
	transform: translateY(-2px);
	box-shadow: var(--mtm-shadow-hover);
}

.mtm-kpi-icon {
	width: 52px;
	height: 52px;
	border-radius: 18px;
	font-size: 18px;
}

.mtm-kpi-icon.is-blue,
.mtm-kpi-icon.is-purple {
	background: linear-gradient(145deg, rgba(31, 63, 149, 0.14), rgba(31, 63, 149, 0.04));
	color: var(--mtm-blue);
}

.mtm-kpi-icon.is-green {
	background: linear-gradient(145deg, rgba(178, 215, 46, 0.34), rgba(38, 166, 91, 0.08));
	color: #117a43;
}

.mtm-kpi-icon.is-orange {
	background: #fff4dc;
	color: #b54708;
}

.mtm-kpi-card p {
	color: #667b9c;
	font-size: 13px;
}

.mtm-kpi-card strong {
	color: var(--mtm-text);
	font-size: 26px;
	font-weight: 850;
}

.mtm-kpi-card small {
	color: #0f8f50;
}

.mtm-card-panel-heading {
	padding: 24px 28px 0;
}

.mtm-card-panel-heading h3 {
	color: var(--mtm-text);
	font-size: 18px;
	font-weight: 850;
}

.mtm-card-panel-heading p {
	color: #667b9c;
}

.mtm-filter-panel {
	position: relative;
	overflow: hidden;
}

.mtm-filter-panel::after {
	content: "";
	position: absolute;
	right: -80px;
	top: -80px;
	width: 360px;
	height: 220px;
	background: linear-gradient(135deg, rgba(31, 63, 149, 0.08), rgba(178, 215, 46, 0.12));
	transform: rotate(-12deg);
	pointer-events: none;
}

.mtm-filter-panel .mtm-filters {
	position: relative;
	z-index: 1;
	grid-template-columns: minmax(280px, 2fr) repeat(3, minmax(160px, 1fr));
	gap: 18px;
	padding: 22px 28px 28px;
	background: transparent;
}

.mtm-filter-search {
	grid-column: span 2;
}

.mtm-form span,
.mtm-filters span {
	color: #344766;
	font-size: 12px;
	font-weight: 800;
}

.mtm-form input,
.mtm-form select,
.mtm-form textarea,
.mtm-filters input,
.mtm-filters select {
	min-height: 48px;
	border: 1px solid rgba(31, 63, 149, 0.14);
	border-radius: 15px;
	background: rgba(255, 255, 255, 0.9);
	color: var(--mtm-text);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
	transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.mtm-form input:focus,
.mtm-form select:focus,
.mtm-form textarea:focus,
.mtm-filters input:focus,
.mtm-filters select:focus {
	outline: 0;
	border-color: rgba(31, 63, 149, 0.55);
	box-shadow: 0 0 0 4px rgba(31, 63, 149, 0.09);
	background: #ffffff;
}

.mtm-advanced-link {
	display: inline-flex;
	align-items: center;
	min-height: 46px;
	color: var(--mtm-blue);
	font-size: 13px;
	font-weight: 850;
	text-decoration: none;
}

.mtm-table-tools {
	display: flex;
	gap: 10px;
}

.mtm-sales-table-panel {
	border-radius: var(--mtm-radius-lg);
}

.mtm-sales-table-panel .mtm-table-wrap {
	margin-top: 20px;
	border-top-color: rgba(31, 63, 149, 0.1);
	background: rgba(255, 255, 255, 0.72);
}

/* Compact database-style toolbars and filter drawers. */
.mtm-table-toolbar-card {
	margin: 0 0 12px;
}

.mtm-table-toolbar {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 60px;
	padding: 10px 12px;
	border: 1px solid rgba(31, 63, 149, 0.1);
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 14px 34px rgba(16, 24, 40, 0.05);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
}

.mtm-toolbar-search {
	position: relative;
	flex: 1 1 360px;
	min-width: 280px;
}

.mtm-toolbar-search-icon {
	position: absolute;
	top: 50%;
	left: 14px;
	display: grid;
	width: 18px;
	height: 18px;
	place-items: center;
	color: #62728f;
	transform: translateY(-50%);
	pointer-events: none;
}

.mtm-toolbar-search-icon svg,
.mtm-toolbar-btn svg,
.mtm-filter-drawer-header svg {
	display: block;
	width: 18px;
	height: 18px;
	fill: none !important;
	stroke: currentColor !important;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mtm-toolbar-search input {
	width: 100%;
	min-height: 42px;
	border: 1px solid rgba(31, 63, 149, 0.12);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.96);
	padding: 0 14px 0 44px;
	color: var(--mtm-text);
	font-size: 14px;
	font-weight: 650;
}

.mtm-toolbar-search input:focus {
	outline: 0;
	border-color: var(--mtm-blue);
	box-shadow: 0 0 0 4px rgba(31, 63, 149, 0.1);
}

.mtm-toolbar-btn {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid rgba(31, 63, 149, 0.12);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.88);
	color: var(--mtm-blue);
	font-size: 13px;
	font-weight: 850;
	text-decoration: none;
	box-shadow: 0 8px 18px rgba(31, 63, 149, 0.05);
	cursor: pointer;
	font-family: inherit;
	transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.mtm-toolbar-btn:hover {
	transform: translateY(-1px);
	background: rgba(31, 63, 149, 0.06);
	box-shadow: 0 12px 24px rgba(31, 63, 149, 0.08);
}

.mtm-toolbar-btn-primary {
	border-color: rgba(31, 63, 149, 0.2);
	background: linear-gradient(135deg, var(--mtm-blue), #2157d6);
	color: #ffffff;
	box-shadow: 0 14px 28px rgba(31, 63, 149, 0.22);
}

.mtm-toolbar-btn-primary:hover {
	background: linear-gradient(135deg, var(--mtm-blue-dark), #1f3f95);
}

.mtm-filter-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 10px 2px 0;
}

.mtm-filter-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 30px;
	padding: 0 10px 0 12px;
	border: 1px solid rgba(31, 63, 149, 0.1);
	border-radius: 999px;
	background: linear-gradient(135deg, rgba(31, 63, 149, 0.08), rgba(178, 215, 46, 0.12));
	color: var(--mtm-blue);
	font-size: 12px;
	font-weight: 800;
	text-decoration: none;
}

.mtm-filter-chip strong {
	display: grid;
	width: 18px;
	height: 18px;
	place-items: center;
	border-radius: 999px;
	background: rgba(31, 63, 149, 0.1);
	font-size: 12px;
	line-height: 1;
}

.mtm-filter-drawer-overlay {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: none;
	background: rgba(8, 22, 51, 0.24);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.mtm-filter-drawer-overlay.is-open {
	display: block;
}

.mtm-filter-drawer-backdrop {
	position: absolute;
	inset: 0;
	display: block;
}

.mtm-filter-drawer {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 100002;
	display: flex;
	flex-direction: column;
	width: min(92vw, 420px);
	height: 100vh;
	border-left: 1px solid rgba(31, 63, 149, 0.12);
	background: rgba(255, 255, 255, 0.98);
	box-shadow: -22px 0 60px rgba(16, 24, 40, 0.18);
}

.mtm-filter-drawer-header {
	display: flex;
	flex: 0 0 auto;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
	padding: 24px 24px 18px;
	border-bottom: 1px solid rgba(31, 63, 149, 0.1);
}

.mtm-filter-drawer-header h3 {
	margin: 0;
	color: var(--mtm-text);
	font-size: 24px;
	font-weight: 850;
}

.mtm-filter-drawer-header p {
	margin: 6px 0 0;
	color: #667b9c;
	font-size: 14px;
}

.mtm-filter-drawer-header a {
	display: grid;
	width: 40px;
	height: 40px;
	place-items: center;
	border: 1px solid rgba(31, 63, 149, 0.12);
	border-radius: 999px;
	color: var(--mtm-blue);
	text-decoration: none;
}

.mtm-filter-drawer-form {
	display: flex;
	flex: 1 1 auto;
	min-height: 0;
	flex-direction: column;
}

.mtm-filter-drawer-body {
	display: grid;
	flex: 1 1 auto;
	min-height: 0;
	align-content: start;
	gap: 16px;
	overflow-y: auto;
	padding: 22px 24px 28px;
}

.mtm-filter-drawer-body label {
	display: grid;
	gap: 8px;
	min-width: 0;
	color: #344766;
	font-size: 13px;
	font-weight: 800;
}

.mtm-filter-drawer-body input,
.mtm-filter-drawer-body select {
	width: 100%;
	min-height: 46px;
	box-sizing: border-box;
	border: 1px solid rgba(31, 63, 149, 0.14);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.96);
	padding: 0 14px;
	color: var(--mtm-text);
	font-size: 14px;
	font-weight: 650;
}

.mtm-filter-drawer-footer {
	display: flex;
	flex: 0 0 auto;
	justify-content: flex-end;
	gap: 10px;
	padding: 18px 24px calc(18px + env(safe-area-inset-bottom));
	border-top: 1px solid rgba(31, 63, 149, 0.1);
	background: rgba(255, 255, 255, 0.96);
}

.mtm-sales-table-panel,
.mtm-validation-page .mtm-table-card {
	margin-top: 12px;
}

.mtm-sales-table-panel .mtm-table-wrap,
.mtm-validation-page .mtm-table-scroll {
	max-height: calc(100vh - 285px);
	overflow: auto;
}

.mtm-card-panel-heading-row .mtm-table-tools {
	display: none;
}

.mtm-sales-screen .mtm-empty-state .mtm-button-primary {
	display: none;
}

/* Firma de Validacion: page rhythm and form layout. */
.mtm-validation-page {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.mtm-validation-page .mtm-page-header {
	display: block;
	margin-bottom: 24px;
}

.mtm-validation-page .mtm-page-header h2 {
	margin: 4px 0 6px;
}

.mtm-validation-page .mtm-page-header span {
	display: block;
	color: #667b9c;
	font-size: 15px;
	line-height: 1.45;
}

.mtm-validation-page .mtm-kpi-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	margin: 0 0 32px;
}

body.mtm-fullscreen-app .mtm-validation-page .mtm-kpi-card {
	min-height: 128px !important;
	grid-template-columns: 54px minmax(0, 1fr);
	align-items: center;
	gap: 18px;
	padding: 22px !important;
	border-radius: 24px;
}

.mtm-validation-page .mtm-kpi-icon {
	display: grid;
	width: 54px;
	height: 54px;
	place-items: center;
	border-radius: 18px;
	background: linear-gradient(135deg, rgba(31, 63, 149, 0.1), rgba(178, 215, 46, 0.14));
	color: var(--mtm-blue);
	font-size: 24px;
}

.mtm-validation-page .mtm-kpi-icon svg {
	display: block;
	width: 24px;
	height: 24px;
	fill: none !important;
	stroke: currentColor !important;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mtm-validation-page .mtm-kpi-icon.is-green {
	background: linear-gradient(135deg, rgba(178, 215, 46, 0.28), rgba(34, 197, 94, 0.1));
	color: #117a43;
}

.mtm-validation-page .mtm-kpi-icon.is-orange {
	background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(254, 226, 226, 0.42));
	color: #b54708;
}

.mtm-validation-page .mtm-filter-card {
	position: relative;
	margin: 0 0 28px;
	padding: 26px;
	overflow: visible;
	border-radius: 26px;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 18px 45px rgba(16, 24, 40, 0.06);
}

.mtm-validation-page .mtm-filter-card::after {
	display: none;
}

.mtm-validation-page .mtm-panel-header {
	position: relative;
	z-index: 1;
	margin-bottom: 22px;
}

.mtm-validation-page .mtm-panel-header h3 {
	margin: 0;
	color: var(--mtm-text);
	font-size: 20px;
	font-weight: 850;
	letter-spacing: 0;
}

.mtm-validation-page .mtm-panel-header p {
	margin: 8px 0 0;
	color: #667b9c;
	font-size: 14px;
	line-height: 1.45;
}

.mtm-validation-page .mtm-filter-form {
	position: relative;
	z-index: 1;
}

.mtm-validation-page .mtm-filter-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px 22px;
	align-items: end;
}

.mtm-validation-page .mtm-field-search {
	grid-column: span 2;
}

.mtm-validation-page .mtm-field {
	min-width: 0;
}

.mtm-validation-page .mtm-field > label {
	display: block;
	margin: 0 0 8px;
	color: #344766;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: 0;
}

.mtm-validation-page .mtm-input-icon-wrap {
	position: relative;
}

.mtm-validation-page .mtm-input-icon {
	position: absolute;
	top: 50%;
	left: 14px;
	z-index: 1;
	width: 18px;
	height: 18px;
	color: #62728f;
	transform: translateY(-50%);
	pointer-events: none;
}

.mtm-validation-page .mtm-input-icon svg {
	display: block;
	width: 18px;
	height: 18px;
	fill: none !important;
	stroke: currentColor !important;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mtm-validation-page .mtm-input-icon-wrap input {
	width: 100%;
	min-height: 50px;
	box-sizing: border-box;
	border: 1px solid rgba(31, 63, 149, 0.14);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.96);
	padding: 0 14px 0 44px;
	color: var(--mtm-text);
	font-size: 14px;
	font-weight: 650;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.mtm-validation-page .mtm-input-icon-wrap input:focus {
	outline: 0;
	border-color: var(--mtm-blue);
	box-shadow: 0 0 0 4px rgba(31, 63, 149, 0.1);
	background: #ffffff;
}

.mtm-validation-page .mtm-has-custom-select > .mtm-input-icon {
	display: none;
}

.mtm-validation-page .mtm-filter-actions {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 12px;
	margin: 22px 0 0;
}

.mtm-validation-page .mtm-filter-actions .mtm-button,
.mtm-validation-page .mtm-filter-actions .mtm-button-secondary {
	min-width: 118px;
	justify-content: center;
}

.mtm-validation-page .mtm-table-card {
	margin-top: 0;
	overflow: hidden;
}

/* Global hierarchy cleanup: topbar owns page titles and module context. */
body.mtm-fullscreen-app .mtm-sales-screen > .mtm-sales-header,
body.mtm-fullscreen-app .mtm-validation-page > .mtm-page-header {
	display: none !important;
}

body.mtm-fullscreen-app .mtm-validation-page .mtm-kpi-card {
	min-height: 104px !important;
	padding: 18px 20px !important;
}

.mtm-module-status {
	margin: 0 0 14px;
}

.mtm-module-status p,
.mtm-module-status h2 {
	display: none !important;
}

.mtm-table {
	font-size: 13px;
}

.mtm-table th {
	height: 54px;
	background: rgba(246, 248, 252, 0.9);
	color: #4d5f7f;
	font-size: 11px;
	font-weight: 900;
}

.mtm-table td {
	height: 68px;
	border-bottom-color: rgba(31, 63, 149, 0.08);
	color: #23334f;
}

.mtm-table tbody tr:hover td {
	background: rgba(31, 63, 149, 0.035);
}

.mtm-sale-id,
.mtm-actions a {
	color: var(--mtm-blue) !important;
}

.mtm-action-button {
	width: 34px;
	height: 34px;
	border-color: rgba(31, 63, 149, 0.14);
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 8px 18px rgba(31, 63, 149, 0.06);
}

.mtm-action-button:hover {
	transform: translateY(-1px);
	border-color: rgba(31, 63, 149, 0.32);
	background: rgba(31, 63, 149, 0.07);
}

.mtm-badge {
	min-height: 28px;
	padding: 0 11px;
	border: 1px solid transparent;
	font-size: 12px;
}

.mtm-badge-limpia,
.mtm-badge-validada,
.mtm-badge-validado,
.mtm-badge-activo,
.mtm-badge-app-usada-correctamente,
.mtm-badge-finalizada,
.mtm-badge-si {
	background: rgba(178, 215, 46, 0.22);
	border-color: rgba(91, 158, 42, 0.18);
	color: #176b39;
}

.mtm-badge-pendiente,
.mtm-badge-preexistencia {
	background: rgba(255, 186, 73, 0.18);
	border-color: rgba(181, 71, 8, 0.16);
	color: #a34b00;
}

.mtm-badge-rechazo,
.mtm-badge-rechazada,
.mtm-badge-cancelada,
.mtm-badge-inactivo {
	background: rgba(244, 63, 94, 0.12);
	border-color: rgba(180, 35, 24, 0.14);
	color: #b42318;
}

.mtm-badge-emitida,
.mtm-badge-en-revision,
.mtm-badge-en-proceso,
.mtm-badge-en-seguimiento,
.mtm-badge-app-descargada,
.mtm-badge-en-tiempo {
	background: rgba(31, 63, 149, 0.1);
	border-color: rgba(31, 63, 149, 0.16);
	color: var(--mtm-blue);
}

.mtm-badge-firmada {
	background: rgba(178, 215, 46, 0.22);
	border-color: rgba(91, 158, 42, 0.18);
	color: #176b39;
}

.mtm-badge-atrasada,
.mtm-badge-cliente-no-responde,
.mtm-badge-error-de-datos,
.mtm-badge-rechazada {
	background: rgba(244, 63, 94, 0.12);
	border-color: rgba(180, 35, 24, 0.14);
	color: #b42318;
}

.mtm-badge-detenida-por-documentacion,
.mtm-badge-requiere-apoyo {
	background: rgba(255, 186, 73, 0.18);
	border-color: rgba(181, 71, 8, 0.16);
	color: #a34b00;
}

.mtm-empty-state {
	min-height: 340px;
	padding: 58px 24px;
}

.mtm-empty-icon {
	width: 66px;
	height: 66px;
	border-radius: 24px;
	background: linear-gradient(145deg, rgba(31, 63, 149, 0.12), rgba(178, 215, 46, 0.2));
	color: var(--mtm-blue);
}

.mtm-drawer-backdrop {
	background: rgba(8, 22, 51, 0.28);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.mtm-sale-drawer {
	width: min(540px, 100vw);
	background: rgba(255, 255, 255, 0.94);
	border-left: 1px solid var(--mtm-border);
	box-shadow: -28px 0 80px rgba(8, 22, 51, 0.18);
	backdrop-filter: blur(22px);
	-webkit-backdrop-filter: blur(22px);
	animation: mtmDrawerIn 220ms ease both;
}

@keyframes mtmDrawerIn {
	from {
		transform: translateX(28px);
		opacity: 0.7;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

.mtm-drawer-header {
	min-height: 96px;
	padding: 28px 30px 22px;
	border-bottom-color: var(--mtm-border);
	background: rgba(255, 255, 255, 0.78);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
}

.mtm-drawer-header h3 {
	color: var(--mtm-text);
	font-size: 22px;
	font-weight: 850;
}

.mtm-drawer-close {
	border-color: var(--mtm-border);
	background: rgba(255, 255, 255, 0.86);
	color: var(--mtm-blue);
}

.mtm-sale-drawer .mtm-sale-form {
	padding: 2px 30px 138px;
}

.mtm-form-section {
	padding: 26px 0;
	border-bottom-color: rgba(31, 63, 149, 0.09);
}

.mtm-form-section h4 {
	color: var(--mtm-text);
	font-size: 16px;
	font-weight: 850;
}

.mtm-sale-drawer .mtm-form-actions {
	padding: 18px 30px;
	border-top-color: var(--mtm-border);
	background: rgba(255, 255, 255, 0.88);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
}

.mtm-module-heading h2 {
	color: var(--mtm-text);
	font-size: 32px;
	font-weight: 850;
}

.mtm-module-heading p {
	color: #667b9c;
}

.mtm-module-heading span {
	border-color: rgba(178, 215, 46, 0.35);
	border-radius: 999px;
	background: rgba(178, 215, 46, 0.18);
	color: #176b39;
}

@media (max-width: 1100px) {
	.mtm-sales-header {
		grid-template-columns: 1fr;
		align-items: stretch;
	}

	.mtm-module-search,
	.mtm-global-search {
		width: 100%;
	}

	.mtm-kpi-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mtm-validation-page .mtm-kpi-grid,
	.mtm-validation-page .mtm-filter-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mtm-validation-page .mtm-field-search {
		grid-column: span 2;
	}

	.mtm-table-toolbar {
		flex-wrap: wrap;
	}

	.mtm-toolbar-search {
		flex-basis: 100%;
	}
}

@media (max-width: 820px) {
	.mtm-app {
		--mtm-sidebar-width: 0px;
	}

	body.mtm-fullscreen-app .mtm-main {
		width: 100vw !important;
		margin-left: 0 !important;
	}

	.mtm-sidebar {
		position: sticky;
		width: 100%;
		border-right: 0;
		border-bottom: 1px solid var(--mtm-border);
	}

	.mtm-logo-wrap,
	.mtm-sidebar-user {
		display: none;
	}

	.mtm-topbar {
		height: auto;
		min-height: 96px;
	}

	.mtm-global-search {
		display: none;
	}

	body.mtm-fullscreen-app .mtm-content {
		padding: 24px 18px !important;
	}

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

	.mtm-filter-panel .mtm-filters {
		grid-template-columns: 1fr;
	}

	.mtm-filter-search {
		grid-column: auto;
	}

	.mtm-sale-drawer {
		width: 100vw;
	}
}

.mtm-login-template-page,
body.mtm-login-template-page {
	width: 100%;
	min-height: 100vh;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background: #f6f8fc;
}

.mtm-login-page {
	position: relative;
	display: grid;
	width: 100vw;
	min-height: 100vh;
	place-items: center;
	padding: 32px;
	background:
		radial-gradient(circle at 20% 18%, rgba(31, 63, 149, 0.12), transparent 34%),
		radial-gradient(circle at 78% 72%, rgba(178, 215, 46, 0.18), transparent 32%),
		linear-gradient(135deg, #ffffff 0%, #f6f8fc 58%, #eef3fb 100%);
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
	color: var(--mtm-text);
}

.mtm-login-background {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(120deg, rgba(255,255,255,0.7), rgba(255,255,255,0.12)),
		radial-gradient(circle at 50% 0%, rgba(31, 63, 149, 0.08), transparent 42%);
	pointer-events: none;
}

.mtm-login-card {
	position: relative;
	z-index: 1;
	width: min(100%, 430px);
	padding: 42px;
	border: 1px solid rgba(31, 63, 149, 0.12);
	border-radius: 28px;
	background: rgba(255, 255, 255, 0.88);
	box-shadow: 0 28px 80px rgba(8, 22, 51, 0.13);
	backdrop-filter: blur(22px);
	-webkit-backdrop-filter: blur(22px);
}

.mtm-login-logo {
	display: flex;
	justify-content: center;
	margin-bottom: 28px;
}

.mtm-login-logo img {
	width: 174px;
	max-height: 74px;
	object-fit: contain;
}

.mtm-login-logo-fallback {
	text-align: center;
	color: var(--mtm-blue);
}

.mtm-login-logo-fallback strong,
.mtm-login-logo-fallback span {
	display: block;
}

.mtm-login-logo-fallback strong {
	font-size: 28px;
	font-weight: 900;
	letter-spacing: 0.04em;
}

.mtm-login-logo-fallback span {
	margin-top: 4px;
	color: #60708e;
	font-size: 11px;
	font-weight: 850;
	text-transform: uppercase;
}

.mtm-login-card h1,
.mtm-login-card p {
	margin: 0;
	text-align: center;
}

.mtm-login-card h1 {
	color: var(--mtm-text);
	font-size: 28px;
	font-weight: 850;
}

.mtm-login-card p {
	margin-top: 8px;
	color: #667b9c;
	font-size: 14px;
}

.mtm-login-form {
	display: grid;
	gap: 16px;
	margin-top: 30px;
}

.mtm-login-form label {
	display: grid;
	gap: 7px;
}

.mtm-login-form label span {
	color: #344766;
	font-size: 12px;
	font-weight: 850;
}

.mtm-login-input {
	width: 100%;
	min-height: 50px;
	padding: 0 15px;
	border: 1px solid rgba(31, 63, 149, 0.15);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.94);
	color: var(--mtm-text);
	font: inherit;
	font-size: 15px;
	transition: border-color 180ms ease, box-shadow 180ms ease;
}

.mtm-login-input:focus {
	outline: 0;
	border-color: rgba(31, 63, 149, 0.62);
	box-shadow: 0 0 0 4px rgba(31, 63, 149, 0.09);
}

.mtm-login-remember {
	display: flex !important;
	grid-template-columns: none;
	align-items: center;
	gap: 9px !important;
	margin-top: 2px;
	color: #50617f;
	font-size: 13px;
}

.mtm-login-remember input {
	width: 16px;
	height: 16px;
	accent-color: var(--mtm-blue);
}

.mtm-login-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	margin-top: 4px;
	border: 0;
	border-radius: 16px;
	background: linear-gradient(135deg, var(--mtm-blue), #2157d6);
	color: #ffffff;
	font: inherit;
	font-size: 15px;
	font-weight: 850;
	box-shadow: 0 18px 36px rgba(31, 63, 149, 0.24);
	cursor: pointer;
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.mtm-login-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 22px 42px rgba(31, 63, 149, 0.3);
}

.mtm-login-error {
	margin-top: 20px;
	padding: 12px 14px;
	border: 1px solid rgba(180, 35, 24, 0.14);
	border-radius: 14px;
	background: rgba(244, 63, 94, 0.1);
	color: #b42318;
	font-size: 13px;
	font-weight: 800;
	text-align: center;
}

.mtm-notice-info {
	background: rgba(31, 63, 149, 0.08);
	border-color: rgba(31, 63, 149, 0.16);
	color: var(--mtm-blue);
}

.mtm-users-table th,
.mtm-users-table td {
	white-space: nowrap;
}

.mtm-user-drawer .mtm-form-section {
	margin-bottom: 18px;
}

.mtm-checkbox-field {
	align-items: center;
	display: flex !important;
	flex-direction: row !important;
	gap: 10px;
	min-height: 48px;
}

.mtm-checkbox-field input {
	height: 18px;
	margin: 0;
	width: 18px;
}

.mtm-user-profile-line {
	color: var(--mtm-muted);
	font-size: 14px;
	margin: 0;
}

/* Premium large modal system for create/edit workflows. */
.mtm-modal-overlay,
.mtm-drawer-overlay.mtm-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 32px;
	background: rgba(8, 22, 51, 0.35);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	pointer-events: auto;
}

.mtm-modal-overlay.is-open {
	display: flex;
}

.mtm-modal-overlay .mtm-drawer-backdrop {
	position: absolute;
	inset: 0;
	display: block;
	background: transparent;
	pointer-events: auto;
}

.mtm-modal,
.mtm-modal.mtm-sale-drawer {
	position: relative;
	top: auto;
	right: auto;
	width: min(92vw, 1180px);
	max-width: 1180px;
	height: auto;
	max-height: min(90vh, calc(100vh - 48px));
	border: 1px solid rgba(31, 63, 149, 0.12);
	border-radius: 28px;
	background: rgba(255, 255, 255, 0.97);
	box-shadow: 0 30px 90px rgba(16, 24, 40, 0.25);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	min-height: 0;
	pointer-events: auto;
	backdrop-filter: blur(22px);
	-webkit-backdrop-filter: blur(22px);
	animation: mtmModalIn 180ms ease both;
}

@keyframes mtmModalIn {
	from {
		opacity: 0;
		transform: translateY(14px) scale(0.985);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.mtm-modal-header,
.mtm-modal.mtm-sale-drawer .mtm-drawer-header {
	flex: 0 0 auto;
	min-height: auto;
	padding: 26px 32px;
	border-bottom: 1px solid rgba(31, 63, 149, 0.1);
	background: rgba(255, 255, 255, 0.92);
	display: flex !important;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
}

.mtm-modal-header h3,
.mtm-modal.mtm-sale-drawer .mtm-drawer-header h3 {
	margin: 0;
	color: var(--mtm-text);
	font-size: clamp(24px, 2.2vw, 34px);
	line-height: 1.08;
	font-weight: 850;
	letter-spacing: 0;
}

.mtm-modal-header p,
.mtm-modal.mtm-sale-drawer .mtm-drawer-header p {
	margin: 8px 0 0;
	color: var(--mtm-muted);
	font-size: 15px;
	line-height: 1.45;
}

.mtm-modal .mtm-drawer-close {
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	border: 1px solid rgba(31, 63, 149, 0.14);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--mtm-blue);
	font-size: 18px;
	box-shadow: 0 10px 24px rgba(16, 24, 40, 0.08);
}

.mtm-modal .mtm-sale-form,
.mtm-modal .mtm-form {
	display: flex !important;
	flex-direction: column;
	grid-template-columns: none !important;
	flex: 1 1 auto;
	min-height: 0;
	padding: 28px 32px 20px;
	overflow-y: auto;
	overflow-x: hidden;
	scrollbar-gutter: stable;
}

.mtm-modal-body {
	flex: 1 1 auto;
	min-height: 0;
	padding: 28px 32px 34px;
	overflow-y: auto;
	overflow-x: hidden;
	scrollbar-gutter: stable;
}

.mtm-modal-footer {
	flex: 0 0 auto;
	padding: 18px 32px calc(18px + env(safe-area-inset-bottom));
	border-top: 1px solid rgba(31, 63, 149, 0.1);
	background: rgba(255, 255, 255, 0.94);
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	position: relative;
	z-index: 2;
}

.mtm-modal > .mtm-notice {
	margin: 20px 32px 0;
}

.mtm-modal .mtm-form-section {
	margin: 0 0 30px;
	padding: 0 0 28px;
	border-bottom: 1px solid rgba(31, 63, 149, 0.08);
}

.mtm-modal .mtm-form-section:last-of-type {
	margin-bottom: 0;
	padding-bottom: 28px;
	border-bottom: 0;
}

.mtm-modal .mtm-form-section h4 {
	margin: 0 0 18px;
	color: var(--mtm-text);
	font-size: 18px;
	line-height: 1.25;
	font-weight: 850;
	letter-spacing: 0;
}

.mtm-form-section-title {
	margin: 0 0 18px;
	color: var(--mtm-text);
	font-size: 18px;
	line-height: 1.25;
	font-weight: 850;
}

.mtm-modal .mtm-form-grid {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 18px 24px;
	align-items: start;
}

.mtm-modal .mtm-field-wide,
.mtm-modal .mtm-field-full {
	grid-column: 1 / -1;
}

.mtm-modal .mtm-form label {
	min-width: 0;
	display: block;
}

.mtm-modal .mtm-form label > span {
	display: block;
	margin: 0 0 8px;
	color: var(--mtm-text);
	font-size: 13px;
	font-weight: 750;
	line-height: 1.3;
	letter-spacing: 0;
}

.mtm-modal .mtm-form input,
.mtm-modal .mtm-form select,
.mtm-modal .mtm-form textarea {
	width: 100%;
	min-height: 50px;
	box-sizing: border-box;
	border-radius: 14px;
	padding: 0 14px;
	font-size: 14px;
	line-height: 1.35;
}

.mtm-modal .mtm-form textarea {
	min-height: 104px;
	padding: 14px;
	resize: vertical;
}

.mtm-modal .mtm-form input[type="checkbox"] {
	width: 18px;
	min-height: 18px;
	height: 18px;
	padding: 0;
}

.mtm-modal .mtm-checkbox-field {
	display: flex !important;
	align-items: center;
	gap: 12px;
	min-height: 48px;
	padding: 2px 0;
}

.mtm-modal .mtm-checkbox-field span {
	margin: 0;
}

.mtm-modal .mtm-form-actions,
.mtm-modal.mtm-sale-drawer .mtm-form-actions {
	position: static;
	right: auto;
	bottom: auto;
	left: auto;
	z-index: 5;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 12px;
	margin: 28px -32px 0;
	padding: 18px 32px calc(20px + env(safe-area-inset-bottom));
	border-top: 1px solid rgba(31, 63, 149, 0.1);
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 -10px 28px rgba(16, 24, 40, 0.05);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
}

.mtm-modal .mtm-form-actions .mtm-button,
.mtm-modal .mtm-form-actions .mtm-button-secondary,
.mtm-modal .mtm-form-actions button,
.mtm-modal .mtm-form-actions a {
	min-width: 132px;
	justify-content: center;
}

.mtm-modal .mtm-form-actions .mtm-button-primary,
.mtm-modal .mtm-btn-primary {
	gap: 9px;
	background: linear-gradient(135deg, var(--mtm-blue), #2c63e6);
	color: #ffffff;
	box-shadow: 0 18px 34px rgba(31, 63, 149, 0.24);
}

.mtm-modal .mtm-btn-secondary {
	background: #ffffff;
	border: 1px solid rgba(31, 63, 149, 0.14);
	color: var(--mtm-blue);
}

.mtm-modal .mtm-form-actions svg,
.mtm-modal .mtm-btn-primary svg,
.mtm-modal .mtm-btn-secondary svg {
	width: 17px;
	height: 17px;
}

.mtm-modal .mtm-input-icon-wrap textarea {
	padding-left: 44px;
	padding-top: 14px;
}

.mtm-textarea-icon-wrap .mtm-input-icon {
	top: 22px;
	transform: none;
}

.mtm-modal .mtm-input-icon-wrap input[type="file"] {
	padding-top: 12px;
}

.mtm-alert-card {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr);
	gap: 13px;
	align-items: start;
	margin: 20px 32px 0;
	padding: 16px;
	border: 1px solid rgba(31, 63, 149, 0.1);
	border-radius: 18px;
	background: rgba(31, 63, 149, 0.06);
	color: var(--mtm-text);
}

.mtm-alert-card-danger {
	border-color: rgba(220, 38, 38, 0.16);
	background: rgba(254, 242, 242, 0.9);
}

.mtm-alert-card-warning {
	border-color: rgba(245, 158, 11, 0.18);
	background: rgba(255, 251, 235, 0.92);
}

.mtm-alert-card-info {
	border-color: rgba(31, 63, 149, 0.16);
	background: rgba(31, 63, 149, 0.07);
}

.mtm-alert-card-success {
	border-color: rgba(34, 197, 94, 0.18);
	background: rgba(240, 253, 244, 0.92);
}

.mtm-alert-icon {
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	border-radius: 14px;
	background: rgba(220, 38, 38, 0.1);
	color: #dc2626;
}

.mtm-alert-card strong {
	display: block;
	color: var(--mtm-text);
	font-size: 14px;
	font-weight: 850;
	line-height: 1.3;
}

.mtm-alert-card p {
	margin: 4px 0 0;
	color: #667085;
	font-size: 13px;
	line-height: 1.4;
}

.mtm-alert-card svg {
	width: 20px;
	height: 20px;
}

.mtm-native-select-hidden {
	position: absolute !important;
	opacity: 0 !important;
	pointer-events: none !important;
	width: 1px !important;
	height: 1px !important;
	min-height: 1px !important;
	margin: 0 !important;
	padding: 0 !important;
}

.mtm-custom-select {
	position: relative;
	width: 100%;
}

.mtm-input-icon-wrap.mtm-has-custom-select > .mtm-input-icon {
	display: none;
}

.mtm-custom-select-trigger {
	width: 100%;
	min-height: 50px;
	border: 1px solid rgba(31, 63, 149, 0.14);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.96);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 0 14px;
	cursor: pointer;
	color: var(--mtm-text);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	text-align: left;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
	transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.mtm-custom-select-trigger:hover {
	border-color: rgba(31, 63, 149, 0.26);
	background: #ffffff;
}

.mtm-custom-select-trigger:disabled {
	cursor: not-allowed;
	background: #f2f4f7;
	color: #667085;
}

.mtm-custom-select.is-open .mtm-custom-select-trigger,
.mtm-custom-select-trigger:focus {
	outline: none;
	border-color: var(--mtm-blue);
	box-shadow: 0 0 0 4px rgba(31, 63, 149, 0.1);
}

.mtm-custom-select-value,
.mtm-custom-select-label {
	display: flex;
	align-items: center;
	min-width: 0;
	gap: 10px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mtm-chevron {
	flex: 0 0 auto;
	color: #7a869a;
	transition: transform 180ms ease, color 180ms ease;
}

.mtm-chevron svg,
.mtm-custom-select-icon svg,
.mtm-option-check svg {
	display: block;
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mtm-custom-select.is-open .mtm-chevron {
	color: var(--mtm-blue);
	transform: rotate(180deg);
}

.mtm-custom-select-menu {
	position: fixed;
	top: 0;
	left: 0;
	right: auto;
	z-index: 1000002;
	display: none;
	max-height: 280px;
	overflow-y: auto;
	padding: 6px;
	border: 1px solid rgba(31, 63, 149, 0.12);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.98);
	box-shadow: 0 18px 45px rgba(16, 24, 40, 0.14);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	transform-origin: top center;
	scrollbar-width: thin;
	scrollbar-color: rgba(31, 63, 149, 0.22) transparent;
}

.mtm-custom-select-menu::-webkit-scrollbar {
	width: 6px;
}

.mtm-custom-select-menu::-webkit-scrollbar-track {
	background: transparent;
}

.mtm-custom-select-menu::-webkit-scrollbar-thumb {
	border-radius: 999px;
	background: rgba(31, 63, 149, 0.22);
}

.mtm-custom-select.is-open .mtm-custom-select-menu,
.mtm-custom-select-menu.is-open {
	display: block;
	animation: mtmSelectIn 160ms ease both;
}

.mtm-custom-select-menu.is-above {
	transform-origin: bottom center;
}

@keyframes mtmSelectIn {
	from {
		opacity: 0;
		transform: translateY(-4px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.mtm-custom-select-option {
	width: 100%;
	min-height: 42px;
	border: 0;
	border-radius: 12px;
	background: transparent;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 12px;
	cursor: pointer;
	color: var(--mtm-text);
	font: inherit;
	font-size: 14px;
	font-weight: 650;
	text-align: left;
	transition: background 160ms ease, color 160ms ease;
}

.mtm-custom-select-option:hover {
	background: rgba(31, 63, 149, 0.06);
}

.mtm-custom-select-option.is-selected {
	background: linear-gradient(135deg, rgba(31, 63, 149, 0.08), rgba(178, 215, 46, 0.12));
	color: var(--mtm-blue);
	font-weight: 800;
}

.mtm-custom-select-icon {
	flex: 0 0 auto;
	color: #7a869a;
}

.mtm-custom-select-option.is-selected .mtm-custom-select-icon {
	color: var(--mtm-blue);
}

.mtm-option-check {
	display: grid;
	width: 18px;
	height: 18px;
	margin-left: auto;
	place-items: center;
	color: var(--mtm-blue);
}

.mtm-custom-select-status-dot {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	flex: 0 0 auto;
}

.mtm-status-active {
	background: #22c55e;
	box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.mtm-status-inactive {
	background: #94a3b8;
	box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.12);
}

.mtm-status-danger {
	background: #ef4444;
	box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.mtm-status-warning {
	background: #f59e0b;
	box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.mtm-modal .mtm-custom-select-menu {
	z-index: 1000002;
}

.mtm-modal svg {
	display: block;
	width: 1em;
	height: 1em;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mtm-user-drawer {
	width: min(92vw, 1100px) !important;
	max-width: 1100px !important;
	background:
		radial-gradient(circle at 18% 0%, rgba(31, 63, 149, 0.08), transparent 30%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(250, 252, 255, 0.98));
}

.mtm-user-drawer .mtm-modal-header {
	padding: 30px 40px 24px;
}

.mtm-modal-title-group {
	display: flex;
	align-items: center;
	gap: 22px;
	min-width: 0;
}

.mtm-modal-header-icon {
	display: grid;
	flex: 0 0 auto;
	width: 72px;
	height: 72px;
	place-items: center;
	border-radius: 22px;
	background: linear-gradient(135deg, rgba(31, 63, 149, 0.11), rgba(178, 215, 46, 0.14));
	color: #2454d4;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 18px 34px rgba(31, 63, 149, 0.1);
}

.mtm-modal-header-icon svg {
	width: 36px;
	height: 36px;
	stroke-width: 1.8;
}

.mtm-user-drawer .mtm-user-form {
	display: block !important;
	grid-template-columns: none !important;
	padding: 22px 40px 0;
}

.mtm-modal .mtm-form-card {
	display: block;
	width: 100%;
	margin-bottom: 16px;
	padding: 22px;
	border: 1px solid rgba(31, 63, 149, 0.1);
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 14px 38px rgba(16, 24, 40, 0.045);
}

.mtm-modal .mtm-form-card:last-of-type {
	margin-bottom: 0;
}

.mtm-form-card-title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 18px !important;
	color: var(--mtm-text);
	font-size: 18px !important;
	font-weight: 800 !important;
	line-height: 1.25;
}

.mtm-section-icon {
	display: grid;
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	place-items: center;
	border-radius: 12px;
	background: rgba(178, 215, 46, 0.18);
	color: var(--mtm-blue);
}

.mtm-section-icon svg {
	width: 18px;
	height: 18px;
}

.mtm-user-drawer .mtm-form-grid {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 18px 22px;
}

.mtm-input-icon-wrap {
	position: relative;
	min-width: 0;
}

.mtm-modal .mtm-input-icon-wrap input,
.mtm-modal .mtm-input-icon-wrap select {
	padding-left: 44px;
}

.mtm-modal .mtm-input-icon-wrap.mtm-has-action input {
	padding-right: 46px;
}

.mtm-input-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	z-index: 2;
	width: 18px;
	height: 18px;
	color: #7a869a;
	pointer-events: none;
	transform: translateY(-50%);
	transition: color 180ms ease;
}

.mtm-input-icon svg {
	width: 18px;
	height: 18px;
}

.mtm-input-action {
	position: absolute;
	right: 10px;
	top: 50%;
	z-index: 3;
	display: grid;
	width: 32px;
	height: 32px;
	place-items: center;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #7a869a;
	cursor: pointer;
	transform: translateY(-50%);
	transition: background 180ms ease, color 180ms ease;
}

.mtm-input-action:hover,
.mtm-input-action.is-visible {
	background: rgba(31, 63, 149, 0.08);
	color: var(--mtm-blue);
}

.mtm-input-icon-wrap:focus-within .mtm-input-icon,
.mtm-input-icon-wrap:focus-within .mtm-input-action {
	color: var(--mtm-blue);
}

.mtm-user-drawer .mtm-form input,
.mtm-user-drawer .mtm-form select {
	min-height: 50px;
	font-size: 15px;
	border-color: rgba(31, 63, 149, 0.14);
	background: rgba(255, 255, 255, 0.94);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.mtm-user-drawer .mtm-form input::placeholder {
	color: #98a2b3;
}

.mtm-status-select-wrap select {
	padding-left: 42px !important;
}

.mtm-status-dot {
	position: absolute;
	left: 16px;
	top: 50%;
	z-index: 2;
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: #22c55e;
	box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
	transform: translateY(-50%);
	pointer-events: none;
}

.mtm-status-dot.is-inactive {
	background: #ef4444;
	box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.mtm-generate-password-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	width: fit-content;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid rgba(31, 63, 149, 0.18);
	border-radius: 14px;
	background: rgba(31, 63, 149, 0.04);
	color: var(--mtm-blue);
	font: inherit;
	font-size: 14px;
	font-weight: 800;
	cursor: pointer;
	transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.mtm-generate-password-btn:hover {
	border-color: rgba(31, 63, 149, 0.28);
	background: rgba(31, 63, 149, 0.08);
	transform: translateY(-1px);
}

.mtm-generate-password-btn svg {
	width: 17px;
	height: 17px;
}

.mtm-user-drawer .mtm-checkbox-field {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid rgba(31, 63, 149, 0.09);
	border-radius: 14px;
	background: rgba(246, 248, 252, 0.72);
	color: var(--mtm-text);
}

.mtm-user-drawer .mtm-checkbox-field input {
	accent-color: var(--mtm-blue);
}

.mtm-user-drawer .mtm-form-actions {
	margin-top: 20px;
}

.mtm-user-drawer .mtm-form-actions .mtm-button-primary {
	gap: 9px;
	background: linear-gradient(135deg, var(--mtm-blue), #2c63e6);
	box-shadow: 0 18px 34px rgba(31, 63, 149, 0.24);
}

.mtm-user-drawer .mtm-form-actions .mtm-button-primary svg {
	width: 17px;
	height: 17px;
}

/* Premium iOS-style sidebar. */
.mtm-app {
	--mtm-sidebar-width: 270px;
}

body.mtm-fullscreen-app .mtm-main {
	width: calc(100vw - var(--mtm-sidebar-width)) !important;
	margin-left: var(--mtm-sidebar-width) !important;
}

.mtm-sidebar {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 40;
	width: var(--mtm-sidebar-width) !important;
	height: 100vh;
	padding: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-right: 1px solid rgba(31, 63, 149, 0.1);
	background: rgba(255, 255, 255, 0.88);
	box-shadow: 12px 0 40px rgba(16, 24, 40, 0.04);
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
}

.mtm-sidebar svg {
	display: block;
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mtm-sidebar-top {
	flex: 0 0 auto;
	padding: 22px 18px 12px;
}

.mtm-logo-wrap {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	min-height: 58px;
	padding: 0 2px 14px;
}

.mtm-logo {
	width: 164px;
	max-width: 100%;
	height: auto;
	max-height: 56px;
	object-fit: contain;
	object-position: left center;
}

.mtm-logo-fallback {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--mtm-blue);
}

.mtm-logo-symbol {
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--mtm-blue), #2c63e6);
	color: #ffffff;
	font-weight: 900;
}

.mtm-brand {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr) 18px;
	align-items: center;
	gap: 11px;
	margin: 0;
	padding: 11px;
	border: 1px solid rgba(31, 63, 149, 0.1);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.86);
	box-shadow: 0 14px 32px rgba(16, 24, 40, 0.055);
}

.mtm-brand-mark {
	display: grid;
	width: 40px;
	height: 40px;
	place-items: center;
	border-radius: 14px;
	background: linear-gradient(135deg, #18b85f, #b2d72e);
	color: #ffffff;
	font-weight: 900;
}

.mtm-brand strong,
.mtm-brand span {
	display: block;
	min-width: 0;
}

.mtm-brand strong {
	color: var(--mtm-text);
	font-size: 13px;
	font-weight: 850;
	line-height: 1.2;
}

.mtm-brand div span {
	margin-top: 2px;
	color: var(--mtm-muted);
	font-size: 12px;
	font-weight: 650;
}

.mtm-brand-chevron {
	color: #8b98ad;
}

.mtm-brand-chevron svg {
	width: 16px;
	height: 16px;
}

.mtm-sidebar-nav {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 8px 14px 12px;
	scrollbar-width: thin;
	scrollbar-color: rgba(31, 63, 149, 0.18) transparent;
}

.mtm-sidebar-nav::-webkit-scrollbar {
	width: 6px;
}

.mtm-sidebar-nav::-webkit-scrollbar-track {
	background: transparent;
}

.mtm-sidebar-nav::-webkit-scrollbar-thumb {
	border-radius: 999px;
	background: rgba(31, 63, 149, 0.18);
}

.mtm-nav-group {
	margin: 0 0 15px;
}

.mtm-nav-heading {
	display: block;
	margin: 0 0 8px;
	padding: 0 10px;
	color: #98a2b3;
	font-size: 10px;
	font-weight: 850;
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.mtm-nav {
	display: grid;
	gap: 6px;
}

.mtm-nav a {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	height: 46px;
	padding: 0 12px;
	border: 1px solid transparent;
	border-radius: 16px;
	color: #475467;
	font-size: 14px;
	font-weight: 750;
	line-height: 1;
	text-decoration: none;
	transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.mtm-nav-icon {
	display: grid;
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	place-items: center;
	border-radius: 12px;
	background: rgba(31, 63, 149, 0.045);
	color: #667085;
	transition: background 180ms ease, color 180ms ease;
}

.mtm-nav-text {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mtm-nav a:hover {
	border-color: rgba(31, 63, 149, 0.08);
	background: rgba(31, 63, 149, 0.055);
	color: var(--mtm-blue);
	transform: translateX(1px);
}

.mtm-nav a:hover .mtm-nav-icon {
	background: rgba(31, 63, 149, 0.09);
	color: var(--mtm-blue);
}

.mtm-nav a.is-active {
	border-color: rgba(178, 215, 46, 0.35);
	background: linear-gradient(135deg, rgba(31, 63, 149, 0.1), rgba(178, 215, 46, 0.16));
	color: var(--mtm-blue);
	box-shadow: 0 12px 26px rgba(31, 63, 149, 0.08);
}

.mtm-nav a.is-active::before {
	position: absolute;
	left: 0;
	top: 12px;
	bottom: 12px;
	width: 3px;
	border-radius: 999px;
	background: var(--mtm-green);
	content: "";
}

.mtm-nav a.is-active .mtm-nav-icon {
	background: rgba(255, 255, 255, 0.72);
	color: var(--mtm-blue);
}

.mtm-sidebar-user {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr) 36px;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
	margin: 12px 14px 16px;
	padding: 12px;
	border: 1px solid rgba(31, 63, 149, 0.1);
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 14px 32px rgba(16, 24, 40, 0.07);
}

.mtm-user-avatar {
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	border-radius: 999px;
	background: linear-gradient(135deg, rgba(31, 63, 149, 0.95), #2c63e6);
	color: #ffffff;
	font-size: 13px;
	font-weight: 900;
}

.mtm-sidebar-user strong,
.mtm-sidebar-user small {
	display: block;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mtm-sidebar-user strong {
	color: var(--mtm-text);
	font-size: 13px;
	font-weight: 850;
}

.mtm-sidebar-user small {
	margin-top: 3px;
	color: var(--mtm-muted);
	font-size: 11px;
	font-weight: 650;
}

.mtm-user-gear {
	display: grid;
	width: 36px;
	height: 36px;
	place-items: center;
	border: 1px solid rgba(31, 63, 149, 0.1);
	border-radius: 14px;
	background: rgba(31, 63, 149, 0.045);
	color: var(--mtm-blue);
	text-decoration: none;
	transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.mtm-user-gear:hover {
	background: rgba(239, 68, 68, 0.08);
	color: #dc2626;
	transform: translateY(-1px);
}

@media (max-width: 900px) {
	.mtm-modal-overlay,
	.mtm-drawer-overlay.mtm-modal-overlay {
		padding: 16px;
	}

	.mtm-modal,
	.mtm-modal.mtm-sale-drawer {
		width: 100%;
		max-height: 94vh;
		border-radius: 22px;
	}

	.mtm-user-drawer {
		width: 100% !important;
		max-width: 100% !important;
	}

	.mtm-modal-header,
	.mtm-modal.mtm-sale-drawer .mtm-drawer-header,
	.mtm-modal .mtm-sale-form,
	.mtm-modal .mtm-form {
		padding-left: 20px;
		padding-right: 20px;
	}

	.mtm-modal .mtm-form-grid {
		grid-template-columns: 1fr;
	}

	.mtm-user-drawer .mtm-form-grid {
		grid-template-columns: 1fr !important;
	}

	.mtm-modal .mtm-form-actions,
	.mtm-modal.mtm-sale-drawer .mtm-form-actions {
		margin-left: -20px;
		margin-right: -20px;
		padding-left: 20px;
		padding-right: 20px;
	}

	.mtm-validation-page .mtm-filter-card {
		padding: 22px;
	}

	.mtm-validation-page .mtm-filter-grid,
	.mtm-validation-page .mtm-kpi-grid {
		grid-template-columns: 1fr;
	}

	.mtm-validation-page .mtm-field-search {
		grid-column: span 1;
	}

	.mtm-validation-page .mtm-filter-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.mtm-validation-page .mtm-filter-actions .mtm-button,
	.mtm-validation-page .mtm-filter-actions .mtm-button-secondary {
		width: 100%;
	}

	.mtm-table-toolbar {
		align-items: stretch;
		flex-direction: column;
	}

	.mtm-toolbar-search {
		min-width: 0;
	}

	.mtm-toolbar-btn {
		width: 100%;
	}

	.mtm-filter-drawer {
		width: 100vw;
	}
}

@media (max-width: 520px) {
	.mtm-login-page {
		padding: 18px;
	}

	.mtm-login-card {
		padding: 30px 22px;
	}
}
