:root {
	--tblr-primary: #4375a7;
	--tblr-primary-rgb: 67, 117, 167;
	--tblr-link-color: #4375a7;
	--tblr-link-color-rgb: 67, 117, 167;
	--tblr-link-hover-color: #34618d;
	--tblr-link-hover-color-rgb: 52, 97, 141;
	--crm-shell-padding-x: 1.5rem;
}

body.crm-app {
	background: var(--tblr-body-bg);
}

/* Evita el desplazamiento del cabezal en Chrome (Tabler usa 100vw en :root). */
@media (min-width: 992px) {
	:root {
		margin-left: 0 !important;
		margin-right: 0 !important;
	}

	html {
		scrollbar-gutter: stable;
	}

	html,
	body.crm-app {
		overflow-x: clip;
	}

	body.crm-app .page,
	body.crm-app .page-wrapper,
	body.crm-app .page-body,
	body.crm-app .card {
		min-width: 0;
		max-width: 100%;
	}

	body.crm-app .table-responsive {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.crm-app .card-tabs {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}

body.crm-app .container-xl,
body.crm-app .crm-shell-container,
body.crm-app .page > .crm-topbar > .container-xl,
body.crm-app .page > .crm-topbar > .crm-shell-container,
body.crm-app .page > .crm-menubar .container-xl,
body.crm-app .page > .crm-menubar .crm-shell-container,
body.crm-app .page-wrapper > .page-header .container-xl,
body.crm-app .page-wrapper > .page-body .container-xl {
	width: 100% !important;
	max-width: none !important;
	margin-right: 0 !important;
	margin-left: 0 !important;
	padding-right: var(--crm-shell-padding-x) !important;
	padding-left: var(--crm-shell-padding-x) !important;
}

.crm-topbar {
	background: var(--tblr-bg-surface, #fff);
	border-bottom: 1px solid var(--tblr-border-color);
}

.crm-menubar {
	background: var(--tblr-bg-surface, #fff);
	border-bottom: 1px solid var(--tblr-border-color);
	box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}

.crm-topbar-brand {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
}

.crm-topbar-logo {
	width: auto;
	max-width: 96px;
	max-height: 32px;
	object-fit: contain;
}

.crm-topbar-name {
	display: block;
	color: #4375a7;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.05;
}

.crm-topbar-subtitle {
	display: block;
	margin-top: .1rem;
	color: #667085;
	font-size: .68rem;
	font-weight: 600;
	letter-spacing: .02em;
	line-height: 1.1;
	text-transform: uppercase;
}

.crm-menubar .nav-item.active .nav-link {
	color: #4375a7;
	font-weight: 600;
}

.crm-menubar .nav-item.active .nav-link::after {
	background: #4375a7;
}

.crm-avatar {
	background: #4375a7;
	color: #fff;
}

.crm-profit-heatmap table {
	min-width: 1180px;
	table-layout: fixed;
}

.crm-profit-heatmap th:first-child,
.crm-profit-heatmap td:first-child {
	width: 180px;
}

.crm-profit-heat-cell {
	border-radius: 0;
	vertical-align: middle;
}

.crm-profit-months {
	display: grid;
	gap: .75rem;
}

.crm-profit-month {
	border: 1px solid var(--tblr-border-color);
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
}

.crm-profit-month summary {
	display: flex;
	flex-wrap: wrap;
	gap: .35rem 1rem;
	align-items: center;
	justify-content: space-between;
	min-height: 46px;
	padding: .75rem 1rem;
	cursor: pointer;
	list-style: none;
}

.crm-profit-month summary::-webkit-details-marker {
	display: none;
}

.crm-profit-month-body {
	padding: 1rem;
	border-top: 1px solid var(--tblr-border-color);
}

.crm-auth-page {
	min-height: 100vh;
}

.crm-login-screen {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: 2rem 1rem;
}

.crm-login-container {
	width: 100%;
	max-width: 360px;
	padding: 0;
}

.crm-login-card {
	width: 100%;
	border: 1px solid #d8e2e7;
	border-radius: 8px;
	background: #fff;
	box-shadow: none;
}

.crm-login-card .card-body {
	padding: 1.35rem;
}

.crm-login-brand {
	margin-bottom: 1rem;
	text-align: center;
}

.crm-login-logo {
	display: block;
	width: auto;
	max-width: 78px;
	max-height: 78px;
	margin: 0 auto .75rem;
	border-radius: 8px;
	object-fit: contain;
}

.crm-login-title {
	margin: 0;
	color: #30343a;
	font-size: 1.25rem;
	font-weight: 400;
	line-height: 1.2;
}

.crm-login-card .form-label {
	display: none;
}

.crm-login-input {
	min-height: 42px;
	padding: .55rem .75rem;
	border-color: #d8e2e7;
	border-radius: 6px;
	color: #2f3b47;
	font-size: .95rem;
}

.crm-login-input::placeholder {
	color: #9aa7b3;
	opacity: 1;
}

.crm-login-reset {
	margin: .1rem 0 1rem;
	text-align: right;
}

.crm-login-reset a {
	color: #0082c6;
	font-size: .95rem;
	text-decoration: none;
}

.crm-login-button {
	width: auto;
	min-width: 120px;
	min-height: 40px;
	margin: 0 auto;
	padding-right: 1.2rem;
	padding-left: 1.2rem;
	border-radius: 6px;
	font-size: .95rem;
	font-weight: 600;
}

.crm-auth-brand {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .75rem;
	text-align: left;
}

.crm-auth-logo-link {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.crm-auth-logo {
	width: 44px;
	height: 44px;
	object-fit: contain;
}

.crm-auth-copy {
	min-width: 0;
}

.crm-auth-name {
	margin-bottom: .12rem;
	color: #4375a7;
	font-size: .78rem;
	font-weight: 600;
	line-height: 1.1;
	text-transform: uppercase;
}

.crm-auth-title {
	margin: 0;
	color: #1f2937;
	font-size: 1.3rem;
	font-weight: 600;
	line-height: 1.2;
}

.crm-alert {
	margin-bottom: 1rem;
	border-radius: 6px;
	box-shadow: none;
}

.crm-alert .alert-title {
	margin-bottom: .15rem;
	font-weight: 600;
}

.crm-alert .alert-icon {
	margin-top: .1rem;
}

.crm-modal-open {
	overflow: hidden;
}

.crm-dialog-backdrop {
	position: fixed;
	inset: 0;
	z-index: 1080;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: rgba(15, 23, 42, .46);
}

.crm-dialog {
	width: min(420px, 100%);
	border: 1px solid rgba(15, 23, 42, .08);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 18px 48px rgba(15, 23, 42, .2);
}

.crm-dialog-body {
	padding: 1.4rem 1.35rem 1.2rem;
	text-align: center;
}

.crm-dialog-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.4rem;
	height: 2.4rem;
	margin-bottom: .75rem;
	border: 2px solid #4375a7;
	border-radius: 50%;
	color: #4375a7;
	font-size: 1.28rem;
	font-weight: 700;
	line-height: 1;
}

.crm-dialog-icon-success {
	border-color: #2fb344;
	color: #2fb344;
}

.crm-dialog-icon-danger {
	border-color: #d63939;
	color: #d63939;
}

.crm-dialog-title {
	margin: 0 0 .45rem;
	color: #172033;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0;
}

.crm-dialog-message {
	margin: 0;
	color: #475467;
	font-size: .92rem;
	line-height: 1.45;
}

.crm-dialog-actions {
	display: flex;
	justify-content: center;
	gap: .55rem;
	margin-top: 1.1rem;
}

.crm-dialog-btn {
	min-width: 5.8rem;
	padding: .42rem .85rem;
	border-radius: 6px;
	font-size: .86rem;
}

.card {
	border-radius: 6px;
}

.btn {
	box-shadow: none;
	font-weight: 500;
}

.btn-primary {
	--tblr-btn-bg: #4375a7;
	--tblr-btn-border-color: #4375a7;
	--tblr-btn-hover-bg: #34618d;
	--tblr-btn-hover-border-color: #34618d;
}

.btn-sm {
	--tblr-btn-padding-y: .22rem;
	--tblr-btn-padding-x: .48rem;
	--tblr-btn-font-size: .78rem;
}

.crm-narrow-card {
	max-width: 680px;
}

.crm-user-card {
	max-width: 960px;
}

.crm-product-permission-list {
	max-height: 24rem;
	overflow-y: auto;
	background: #fff;
}

.crm-product-permission-row {
	display: flex;
	gap: .75rem;
	align-items: flex-start;
	margin: 0;
	padding: .65rem .75rem;
	border-bottom: 1px solid rgba(4, 32, 69, .08);
	cursor: pointer;
}

.crm-product-permission-row:last-child {
	border-bottom: 0;
}

.crm-product-permission-row:hover {
	background: rgba(67, 117, 167, .06);
}

.crm-product-permission-row[hidden] {
	display: none;
}

.crm-product-permission-row .form-check-input {
	margin-top: .2rem;
	flex: 0 0 auto;
}

.crm-products-assign-list {
	max-height: calc(100vh - 22rem);
	min-height: 18rem;
	overflow: auto;
}

.crm-products-assign-list thead th {
	position: sticky;
	top: 0;
	z-index: 1;
	background: #fff;
}

.crm-products-assign-list tbody tr,
.crm-resource-product-list tbody tr {
	cursor: pointer;
}

.crm-products-assign-list tbody tr:hover,
.crm-resource-product-list tbody tr:hover {
	background: rgba(67, 117, 167, .05);
}

.crm-products-assign-list tr[hidden],
.crm-resource-product-list tr[hidden] {
	display: none;
}

.crm-resource-product-list {
	max-height: 18rem;
	overflow-y: auto;
}

.inline-form {
	display: inline-flex;
	margin: 0;
}

.crm-module-card {
	color: inherit;
	text-decoration: none;
	transition: border-color .15s ease, transform .15s ease;
}

.crm-module-card:hover {
	border-color: rgba(67, 117, 167, .45);
	color: inherit;
	text-decoration: none;
	transform: translateY(-1px);
}

.crm-module-disabled {
	opacity: .72;
}

.crm-module-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	margin-bottom: .75rem;
	border-radius: 8px;
	font-weight: 700;
}

.crm-welcome-mark {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 96px;
	height: 96px;
	border-radius: 22px;
	background: linear-gradient(135deg, rgba(67, 117, 167, .16), rgba(67, 117, 167, .04));
	color: #4375a7;
	font-weight: 800;
	letter-spacing: .04em;
}

.table .btn-list {
	flex-wrap: nowrap;
}

.table .btn {
	white-space: nowrap;
}

.crm-item-small {
	min-width: 5rem;
}

.crm-item-comment {
	min-width: 7rem;
	max-width: 10rem;
}

.crm-listado-detalle {
	max-width: 18rem;
	min-width: 10rem;
	white-space: normal;
}

.crm-listado-detalle-item + .crm-listado-detalle-item {
	margin-top: .35rem;
}

.crm-listado-detalle-comentarios {
	line-height: 1.35;
	word-break: break-word;
}

.crm-item-money {
	min-width: 6.4rem;
}

.crm-item-currency {
	min-width: 5.4rem;
}

.crm-prefactura-items-table > tbody > tr > td {
	vertical-align: top;
}

.crm-prefactura-items-table > tbody > tr > td[data-label="Facturable"] .form-check {
	margin-top: .45rem;
}

.crm-service-form #items-table .crm-item-currency {
	width: 4.6rem;
	min-width: 4.6rem;
	padding-right: 1.55rem;
	padding-left: .55rem;
}

.crm-discount-col {
	width: 4.2rem;
}

.crm-discount-percent {
	width: 3.2rem;
	min-width: 3.2rem;
	max-width: 3.2rem;
	padding-right: .4rem;
	padding-left: .4rem;
	text-align: center;
}

.crm-mobile-service-fab {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	left: 1rem;
	z-index: 1030;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	border: 1px solid #34618d;
	border-radius: 8px;
	background: #4375a7;
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 10px 28px rgba(15, 23, 42, .18);
}

.crm-mobile-service-fab:hover {
	color: #fff;
	text-decoration: none;
}

.crm-service-savebar {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1040;
	padding: .65rem 1rem calc(.65rem + env(safe-area-inset-bottom));
	border-top: 1px solid var(--tblr-border-color);
	background: rgba(255, 255, 255, .96);
	box-shadow: 0 -8px 24px rgba(15, 23, 42, .12);
}

.crm-service-savebar .btn {
	width: 100%;
	min-height: 2.75rem;
}

@media (max-width: 767.98px), (max-device-width: 767.98px) {
	html,
	body.crm-app {
		min-width: 0;
		overflow-x: hidden;
	}

	.container,
	.container-xl {
		max-width: 100%;
	}

	.crm-topbar .container-xl,
	.crm-topbar .crm-shell-container {
		flex-wrap: wrap;
		gap: .5rem;
	}

	.crm-topbar .navbar-nav {
		flex-direction: row;
	}

	.crm-topbar .d-md-inline-flex {
		display: none !important;
	}

	.crm-app .navbar-expand-md {
		flex-wrap: wrap;
	}

	.crm-app .navbar-expand-md .navbar-toggler {
		display: block;
	}

	.crm-app .navbar-expand-md .navbar-collapse {
		display: none !important;
		flex-basis: 100%;
		flex-grow: 1;
		align-items: stretch;
	}

	.crm-app .navbar-expand-md .navbar-collapse.show {
		display: block !important;
	}

	.crm-app .navbar-expand-md .navbar-nav {
		flex-direction: column;
		align-items: stretch;
	}

	.crm-menubar .navbar .container-xl,
	.crm-menubar .navbar .crm-shell-container {
		display: block;
	}

	.crm-menubar .nav-link {
		padding: .7rem 0;
	}

	.crm-mobile-service-fab.d-md-none {
		display: inline-flex !important;
	}

	.crm-service-savebar.d-md-none {
		display: block !important;
	}

	.page-header .row {
		align-items: stretch !important;
	}

	.page-header .col-auto {
		width: 100%;
		margin-left: 0 !important;
	}

	.page-header .btn-list,
	.page-header form,
	.page-header form .btn {
		width: 100%;
	}

	.page-header .btn-list .btn {
		flex: 1 1 auto;
	}

	.card-header {
		align-items: flex-start;
	}

	.card-tabs {
		overflow: hidden;
	}

	.card-tabs .nav-tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
		overflow-y: hidden;
		padding-inline: .75rem;
		-webkit-overflow-scrolling: touch;
	}

	.card-tabs .nav-link {
		white-space: nowrap;
	}

	.crm-topbar-logo {
		max-width: 82px;
		max-height: 28px;
	}

	.crm-topbar-name {
		font-size: .98rem;
	}

	.crm-topbar-subtitle {
		font-size: .62rem;
	}

	/* overflow visible solo en el contenedor de tarjetas móviles, no en toda la página */
	.table-responsive:has(.table.card-table) {
		overflow: visible;
	}

	.table.card-table {
		display: block;
		border-collapse: separate;
	}

	.table.card-table thead {
		display: none;
	}

	.table.card-table tbody {
		display: block;
		padding: .5rem;
	}

	.table.card-table tbody tr {
		display: block;
		margin-bottom: .75rem;
		border: 1px solid var(--tblr-border-color);
		border-radius: 8px;
		background: #fff;
		box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
		overflow: hidden;
	}

	.table.card-table tbody tr:last-child {
		margin-bottom: 0;
	}

	.table.card-table tbody td {
		border-bottom: 0;
	}

	.table.card-table td[colspan] {
		display: block;
		padding: 1.4rem .9rem;
		text-align: center !important;
	}

	.table.card-table td[data-label] {
		display: grid;
		grid-template-columns: minmax(6.8rem, 36%) minmax(0, 1fr);
		gap: .75rem;
		align-items: start;
		padding: .48rem .8rem;
		text-align: left !important;
		white-space: normal;
		word-break: break-word;
	}

	.table.card-table td[data-label]::before {
		content: attr(data-label);
		color: #667085;
		font-size: .72rem;
		font-weight: 700;
		letter-spacing: .02em;
		text-transform: uppercase;
	}

	.table.card-table td[data-label]:first-child {
		display: block;
		padding: .8rem .8rem .35rem;
	}

	.table.card-table td[data-label]:first-child::before {
		display: none;
	}

	.table.card-table td[data-label="Acciones"] {
		display: block;
		padding: .65rem .8rem .8rem;
	}

	.table.card-table td[data-label="Acciones"]::before {
		display: block;
		margin-bottom: .45rem;
	}

	.table .btn-list {
		flex-wrap: wrap;
	}

	.table .btn,
	.table .inline-form,
	.table .inline-form .btn {
		width: 100%;
	}

	.table .btn-list .btn,
	.table .btn-list .inline-form {
		flex: 1 1 9rem;
	}

	.crm-dialog {
		width: min(360px, 100%);
	}

	.crm-services-page {
		padding-bottom: 4.25rem;
	}

	.crm-service-page {
		padding-bottom: 5.5rem;
	}

	.crm-service-page .page-header .col-auto {
		display: none;
	}

	.crm-service-form .row > [class*="col-md-"] {
		flex: 0 0 auto;
		width: 100%;
	}

	.crm-service-form .form-control,
	.crm-service-form .form-select {
		min-height: 2.75rem;
		font-size: 16px;
	}

	.crm-service-form textarea.form-control {
		min-height: 7rem;
	}

	.crm-service-form #items-table td[data-label],
	.crm-service-form #items-table td[data-label]:first-child {
		display: block;
		padding: .65rem .8rem;
	}

	.crm-service-form #items-table td[data-label]::before,
	.crm-service-form #items-table td[data-label]:first-child::before {
		display: block;
		margin-bottom: .35rem;
		color: #667085;
		font-size: .72rem;
		font-weight: 700;
		letter-spacing: .02em;
		text-transform: uppercase;
	}

	.crm-service-form #items-table td[data-label="Acciones"] {
		padding-top: .45rem;
	}

	.crm-service-form #items-table .form-control,
	.crm-service-form #items-table .form-select,
	.crm-service-form .crm-item-small,
	.crm-service-form .crm-item-money,
	.crm-service-form .crm-item-currency,
	.crm-service-form .crm-item-comment {
		width: 100%;
		min-width: 0;
		max-width: none;
	}

	.crm-service-form .card-body {
		padding: 1rem;
	}
}

@media (max-width: 991.98px), (max-device-width: 991.98px), (pointer: coarse) {
	:root {
		--tblr-page-padding: .75rem;
		--crm-shell-padding-x: .75rem;
	}

	* {
		min-width: 0;
	}

	html,
	body.crm-app {
		width: 100%;
		max-width: 100%;
		min-width: 0 !important;
		overflow-x: hidden;
		font-size: 16px;
	}

	body.crm-app {
		background: #eef3f8;
	}

	.crm-app .page,
	.crm-app .page-wrapper,
	.crm-app .page-body,
	.crm-app .page-header,
	.crm-app .container,
	.crm-app .container-sm,
	.crm-app .container-md,
	.crm-app .container-lg,
	.crm-app .container-xl,
	.crm-app .container-xxl,
	.crm-app .container-tight {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
	}

	.crm-app .container,
	.crm-app .container-xl,
	.crm-app .container-tight {
		padding-right: .75rem !important;
		padding-left: .75rem !important;
	}

	.crm-app .page-header {
		padding: .8rem 0 .35rem;
	}

	.crm-app .page-body {
		margin-top: .65rem;
	}

	.crm-app .page-title {
		font-size: 1.22rem;
		line-height: 1.25;
	}

	.crm-app .page-pretitle,
	.crm-app .subheader {
		font-size: .68rem;
	}

	.crm-app .text-muted {
		line-height: 1.35;
	}

	.crm-app .row {
		--tblr-gutter-x: .75rem;
		--tblr-gutter-y: .75rem;
	}

	.crm-app .row > [class*="col-"],
	.crm-app .row > .col,
	.crm-app .row > .col-auto {
		flex: 0 0 auto !important;
		width: 100% !important;
		max-width: 100% !important;
	}

	.crm-app .col-auto.ms-auto {
		margin-left: 0 !important;
	}

	.crm-app .card {
		width: 100%;
		border-radius: 6px;
		box-shadow: none;
	}

	.crm-app .card-body {
		padding: .9rem;
	}

	.crm-app .card-header {
		min-height: auto;
		padding: .85rem .9rem;
	}

	.crm-app .card-title {
		font-size: 1rem;
		line-height: 1.25;
	}

	.crm-app .btn,
	.crm-app .form-control,
	.crm-app .form-select,
	.crm-app input[type="file"] {
		min-height: 44px;
		font-size: 16px;
	}

	.crm-app .btn {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		white-space: normal;
		line-height: 1.2;
	}

	.crm-app .btn-sm {
		min-height: 40px;
		padding: .45rem .65rem;
		font-size: .9rem;
	}

	.crm-app .btn-list {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: .5rem;
		width: 100%;
	}

	.crm-app .btn-list .btn,
	.crm-app .btn-list .inline-form,
	.crm-app .btn-list .inline-form .btn,
	.crm-app .form-footer .btn {
		width: 100%;
	}

	.crm-auth-page {
		align-items: center !important;
		justify-content: center !important;
		min-height: 100dvh;
		padding-top: .75rem;
		padding-bottom: .75rem;
	}

	.crm-auth-page .container-tight {
		padding-top: .75rem !important;
		padding-bottom: .75rem !important;
	}

	.crm-login-screen {
		min-height: 100dvh;
		padding: .75rem;
	}

	.crm-login-container {
		max-width: 650px !important;
		padding: 0 !important;
	}

	.crm-login-card {
		width: min(100%, 650px);
		margin: 0 auto;
		border-radius: 8px;
	}

	.crm-login-card .card-body {
		padding: 2.2rem 1.6rem 1.9rem;
	}

	.crm-login-logo {
		max-width: 110px;
		max-height: 110px;
		margin-bottom: 1rem;
	}

	.crm-login-title {
		font-size: 1.75rem;
	}

	.crm-login-input {
		min-height: 58px;
		font-size: 1.12rem;
	}

	.crm-login-reset a {
		font-size: 1.1rem;
	}

	.crm-login-button {
		width: auto !important;
		min-width: 220px;
		min-height: 54px;
		font-size: 1.12rem;
		font-weight: 700;
	}

	.crm-login-card .form-footer {
		text-align: center;
	}

	.crm-auth-brand {
		gap: .65rem;
		margin-bottom: 1rem !important;
	}

	.crm-auth-logo {
		width: 40px;
		height: 40px;
	}

	.crm-auth-name {
		max-width: calc(100vw - 8rem);
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.crm-auth-name {
		font-size: .72rem;
	}

	.crm-auth-title {
		max-width: calc(100vw - 8rem);
		font-size: 1.12rem;
		overflow-wrap: anywhere;
	}

	.crm-topbar .container-xl,
	.crm-topbar .crm-shell-container {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr) auto;
		align-items: center;
		gap: .5rem;
		padding-top: .45rem;
		padding-bottom: .45rem;
	}

	.crm-topbar .navbar-toggler {
		display: inline-flex;
		grid-column: 1;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		padding: 0;
	}

	.crm-topbar-brand {
		grid-column: 2;
		overflow: hidden;
		gap: .45rem;
		margin: 0;
	}

	.crm-topbar-logo {
		max-width: 72px;
		max-height: 28px;
	}

	.crm-topbar-name {
		max-width: 100%;
		overflow: hidden;
		font-size: .9rem;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.crm-topbar-subtitle {
		font-size: .58rem;
	}

	.crm-topbar .navbar-nav {
		grid-column: 3;
		justify-content: flex-end;
	}

	.crm-topbar .d-md-inline-flex {
		display: none !important;
	}

	.crm-app .navbar-expand-md {
		flex-wrap: wrap;
	}

	.crm-app .navbar-expand-md .navbar-toggler {
		display: inline-flex;
	}

	.crm-app .navbar-expand-md .navbar-collapse {
		display: none !important;
		flex-basis: 100%;
		flex-grow: 1;
		align-items: stretch;
	}

	.crm-app .navbar-expand-md .navbar-collapse.show {
		display: block !important;
	}

	.crm-app .navbar-expand-md .navbar-nav {
		flex-direction: column;
		align-items: stretch;
	}

	.crm-menubar .navbar-collapse {
		width: 100%;
	}

	.crm-menubar .navbar {
		padding: 0;
	}

	.crm-menubar .nav-link {
		min-height: 44px;
		padding: .65rem 0;
	}

	.crm-mobile-service-fab.d-md-none,
	.crm-service-savebar.d-md-none {
		display: flex !important;
	}

	.crm-narrow-card {
		max-width: 100%;
	}

	.crm-module-card .card-body {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		gap: .25rem .75rem;
		align-items: center;
	}

	.crm-module-card .crm-module-icon {
		grid-row: 1 / span 2;
		margin-bottom: 0;
	}

	.crm-module-card .card-title,
	.crm-module-card .text-muted {
		margin: 0;
	}

	.table-responsive:has(.table.card-table) {
		overflow: visible !important;
	}

	.table.card-table {
		display: block;
		width: 100%;
		border-collapse: separate;
	}

	.table.card-table thead {
		display: none;
	}

	.table.card-table tbody {
		display: block;
		padding: .5rem;
	}

	.table.card-table tbody tr {
		display: block;
		margin-bottom: .75rem;
		border: 1px solid var(--tblr-border-color);
		border-radius: 8px;
		background: #fff;
		overflow: hidden;
	}

	.table.card-table tbody tr:last-child {
		margin-bottom: 0;
	}

	.table.card-table tbody td,
	.table.card-table td[data-label],
	.table.card-table td[data-label]:first-child {
		display: block;
		width: 100%;
		padding: .65rem .8rem;
		border-bottom: 0;
		text-align: left !important;
		white-space: normal;
		word-break: break-word;
	}

	.table.card-table td[data-label]::before,
	.table.card-table td[data-label]:first-child::before {
		display: block;
		margin-bottom: .3rem;
		color: #667085;
		content: attr(data-label);
		font-size: .68rem;
		font-weight: 700;
		letter-spacing: .02em;
		text-transform: uppercase;
	}

	.table.card-table td[colspan] {
		display: block;
		padding: 1.25rem .85rem;
	}

	.table.card-table .btn,
	.table.card-table .inline-form,
	.table.card-table .inline-form .btn,
	.table.card-table .dropdown,
	.table.card-table .dropdown-toggle {
		width: 100%;
	}

	.table.card-table .dropdown-menu {
		width: 100%;
		min-width: 100%;
	}

	.table.card-table .form-control,
	.table.card-table .form-select {
		width: 100%;
		min-width: 0;
	}

	.crm-service-page {
		padding-bottom: 5.75rem;
	}

	.crm-service-page .page-header .col-auto {
		display: none;
	}

	.crm-service-form .card-body {
		padding: .85rem;
	}

	.crm-service-form textarea.form-control {
		min-height: 7rem;
	}

	.crm-service-form #items-table tbody {
		padding: .35rem;
	}

	.crm-service-form #items-table tbody tr {
		border-color: rgba(67, 117, 167, .22);
	}

	.crm-service-form #items-table td[data-label] {
		padding: .55rem .65rem;
	}

	.crm-service-form .crm-item-small,
	.crm-service-form .crm-item-money,
	.crm-service-form .crm-item-currency,
	.crm-service-form .crm-item-comment {
		width: 100%;
		min-width: 0;
		max-width: none;
	}

	.crm-service-savebar {
		padding: .55rem .75rem calc(.55rem + env(safe-area-inset-bottom));
	}
}
