/* global remove user-agent styling */

@import 'partials/theme.css';

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* custom vars */

/* tags styling */

body {
	background: var(--i2s-background);
	font-family: 'Poppins', sans-serif !important;
	min-width: 320px;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

body.app-loading {
	overflow: hidden;
}

a {
	text-decoration: none;
}

img {
	max-width: 100%;
	height: auto;
}

.sweet-alert button.cancel {
	width: 10rem;
	text-transform: uppercase;
	font-size: 13px;
	background-color: var(--i2s-grape) !important;
	border-radius: 20px;
	color: var(--i2s-white);
	border-color: unset !important;
}

.sweet-alert button.cancel:hover {
	width: 10rem;
	text-transform: uppercase;
	font-size: 13px;
	background-color: var(--i2s-purple) !important;
	color: var(--i2s-white);
}

.sweet-alert button.confirm {
	color: var(--i2s-white);
	background-color: var(--i2s-blue) !important;
	border-radius: 20px;
	width: 10rem;
	text-transform: uppercase;
	font-size: 13px;
	border-color: unset !important;
}

.sweet-alert button.confirm:hover {
	background-color: var(--i2s-purple) !important;
	color: var(--i2s-white);
}

.btn-danger {
	width: 10rem;
	text-transform: uppercase;
	font-size: 13px;
	background-color: var(--i2s-grape);
	border-radius: 20px;
	color: var(--i2s-white);
	border-color: unset !important;
}

.btn-danger:hover {
	width: 10rem;
	text-transform: uppercase;
	font-size: 13px;
	background-color: var(--i2s-purple);
	color: var(--i2s-white);
}

.btn-nav,
.btn-primary {
	color: var(--i2s-white);
	background-color: var(--i2s-blue);
	border-radius: 20px;
	width: 10rem;
	text-transform: uppercase;
	font-size: 13px;
}

.btn-nav:hover {
	background-color: var(--i2s-purple);
	color: var(--i2s-white);
}

.btn-primary:hover {
	background-color: var(--i2s-purple);
	color: var(--i2s-white);
}



.dropdown-menu {
	border-radius: 25px;
}

.admin-tabs {
	display: flex;
	gap: 0.6rem;
	flex-wrap: wrap;
	border-bottom: 0;
	margin-top: 1rem;
}

.admin-tabs .nav-link {
	border: 0;
	border-radius: 20px;
	background: var(--i2s-grey);
	color: var(--i2s-white);
	font-weight: 400;
	font-size: 13px;
	line-height: 1.2;
	text-transform: uppercase;
	padding: 0.55rem 1rem;
	min-height: 2.35rem;
}

.admin-tabs .nav-link:hover,
.admin-tabs .nav-link:focus {
	border: 0;
	background: var(--i2s-dark-grey);
	color: var(--i2s-white);
}

.admin-tabs .nav-link.active {
	background: var(--i2s-purple);
	color: var(--i2s-white);
}

.admin-tab-content {
	margin-top: 1.5rem;
}

.admin-tab-pane {
	outline: none;
}

.selection-checklist {
	max-height: 180px;
	overflow-y: auto;
	border: 1px solid var(--i2s-light-grey);
	border-radius: 12px;
	padding: 0.35rem 0.85rem;
	background: var(--i2s-white);
}

.selection-checklist.is-disabled {
	background: #f6f8fb;
}

.selection-checklist-item {
	display: flex;
	align-items: flex-start;
	gap: 0.7rem;
	margin: 0;
	padding: 0.65rem 0;
	border-bottom: 1px solid #eef1f4;
	cursor: pointer;
}

.selection-checklist-item:last-child {
	border-bottom: 0;
}

.selection-checklist-input {
	width: 1.15rem;
	height: 1.15rem;
	margin-top: 0.12rem;
	flex: 0 0 auto;
	accent-color: var(--i2s-blue);
}

.selection-checklist-copy {
	display: grid;
	gap: 0.08rem;
}

.selection-checklist-copy strong {
	color: #41414c;
	font-size: 0.95rem;
	font-weight: 600;
}

.selection-checklist-copy small {
	color: #787880;
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.selection-checklist-empty {
	color: #787880;
	font-size: 0.85rem;
	padding: 0.4rem 0;
}

.admin-store-matrix-table th,
.admin-store-matrix-table td {
	white-space: nowrap;
}

.store-matrix-heading {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.15rem;
	min-width: 7rem;
	line-height: 1.15;
}

.store-matrix-heading strong {
	font-size: 0.78rem;
	font-weight: 600;
}

.store-matrix-heading small {
	font-size: 0.68rem;
	color: #6b7280;
}

.store-matrix-cell {
	text-align: center;
}

.store-matrix-toggle-cell {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 2rem;
}

.store-matrix-checkbox {
	width: 1.1rem;
	height: 1.1rem;
	accent-color: var(--i2s-blue);
	cursor: pointer;
}

.store-matrix-checkbox:disabled {
	cursor: wait;
}

.dropdown-item:hover {
	font-weight: 600;
	background-color: unset;
	color: var(--i2s-purple);
}

.page-header {
	border-bottom: 4px solid;
	border-image: linear-gradient(90deg, var(--i2s-light-blue) 0%, /* blue */ var(--i2s-blue) 25%, /* blue-purple */ var(--i2s-purple) 50%, /* purple */ var(--i2s-light-grape) 75%, /* pink */ var(--i2s-grape) 100% /* strong pink */) 1;
}
/* basic classes */

.container {
	width: min(1440px, 90vw);
	margin: 0 auto;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

.separator {
	height: 1px;
	background-color: var(--color-hairline-in-dark);
	margin: 1rem 0;
}

.separator.light {
	background-color: #e1e3e5;
}

.form-group {
	margin-bottom: 1rem;
}

.app-footer {
	margin-top: 2.5rem;
	padding: 1.25rem 0 1.5rem;
	border-top: 1px solid rgba(65, 65, 76, 0.1);
	background: rgba(255, 255, 255, 0.72);
	backdrop-filter: blur(8px);
	margin-top: auto;
	flex: 0 0 auto;
}

.app-footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.app-footer-brand,
.app-footer-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.75rem;
	align-items: center;
	color: #5a5a66;
	font-size: 0.86rem;
}

.app-footer-brand strong {
	color: #41414c;
	font-size: 0.92rem;
	font-weight: 700;
}

.flex {
	display: flex;
}

.first_menu {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 1rem;
	margin-bottom: 1rem;
}

.first_menu > .dropdown-menu .nav {
	display: grid;
	gap: 0.35rem;
}

.first_menu > .dropdown-menu .nav-link {
	white-space: normal;
}

.dataTables_wrapper {
	/*width: 100%;*/
}

table.dataTable,
.dataTable {
	color: black !important;
}

table.dataTable.dtr-column > tbody > tr > td.control,
table.dataTable.dtr-column > tbody > tr > th.control,
table.dataTable.dtr-column > tbody > tr > td.dtr-control,
table.dataTable.dtr-column > tbody > tr > th.dtr-control {
	position: relative;
	cursor: pointer;
}

table.dataTable.dtr-column > tbody > tr > td.control:before,
table.dataTable.dtr-column > tbody > tr > th.control:before,
table.dataTable.dtr-column > tbody > tr > td.dtr-control:before,
table.dataTable.dtr-column > tbody > tr > th.dtr-control:before {
	content: '+';
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	top: 50%;
	left: 50%;
	width: 22px;
	height: 22px;
	margin-top: -11px;
	margin-left: -11px;
	border-radius: 50%;
	border: 0;
	box-shadow: none;
	box-sizing: border-box;
	background: var(--i2s-grape);
	color: var(--i2s-white);
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1;
	text-indent: 0;
}

table.dataTable.dtr-column > tbody > tr.parent td.control:before,
table.dataTable.dtr-column > tbody > tr.parent th.control:before,
table.dataTable.dtr-column > tbody > tr.parent td.dtr-control:before,
table.dataTable.dtr-column > tbody > tr.parent th.dtr-control:before {
	content: '-';
	background: var(--i2s-blue);
}

table.dataTable th.table-actions-cell,
table.dataTable td.table-actions-cell {
	white-space: nowrap !important;
	word-break: normal !important;
	overflow-wrap: normal !important;
	width: 1%;
}

.table-actions {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: nowrap;
	gap: 10px;
	min-width: max-content;
}

.table-actions.table-actions-start {
	justify-content: flex-start;
}

.table-actions > a,
.table-actions > .dropdown > .dropdown-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.table-actions .dropdown {
	flex: 0 0 auto;
}

.table-actions .dropdown-toggle::after {
	display: none;
}

.table-actions .dropdown-menu .dropdown-item {
	display: block;
	line-height: 1.35;
	white-space: nowrap;
}

.store-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	align-items: center;
}

.store-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.22rem 0.58rem;
	border-radius: 999px;
	background: #e8f3ff;
	color: #16639a;
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
}

.store-badge.store-badge-muted {
	background: #eef1f4;
	color: #6b7280;
}

.card-store-meta {
	margin-top: 0.45rem;
}

.product-order-card {
	grid-template-columns: minmax(18rem, 1fr) 8rem 10rem 8rem 3.5rem;
	column-gap: 1.5rem;
	min-height: 7.5rem;
	padding-right: 1.5rem;
}

.product-order-card .name {
	min-width: 0;
}

.product-order-card .name > div:first-child {
	overflow-wrap: anywhere;
}

.product-order-card .card-store-meta {
	font-size: 0.95rem;
	line-height: 1.35;
}

.product-order-card .amount {
	justify-self: start;
	min-width: 0;
}

.product-order-card .amount p {
	margin-bottom: 0;
}

.product-order-card .status {
	justify-self: center;
	min-width: 7.2rem;
	text-align: center;
}

.product-order-card .actions {
	justify-self: end;
}

.product-order-modal-summary {
	display: grid;
	grid-template-columns: repeat(2, minmax(8rem, 1fr)) auto;
	align-items: center;
	gap: 1rem;
	padding: 0 0 1rem;
	margin-bottom: 1rem;
	border-bottom: 1px solid #e6e9ee;
}

.product-order-modal-total {
	display: grid;
	gap: 0.15rem;
}

.product-order-modal-total span {
	color: var(--color-card-label);
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
}

.product-order-modal-total strong {
	color: #41414c;
	font-size: 1.15rem;
	font-weight: 600;
}

.product-order-fill-actions {
	display: flex;
	gap: 0.6rem;
	justify-self: end;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.product-order-fill-client-btn {
	justify-self: end;
	width: auto;
	min-width: 12rem;
}

.preview-order-modal-store {
	margin-top: 0.45rem;
}

@media (max-width: 767.98px) {
	.product-order-modal-summary {
		grid-template-columns: 1fr;
	}

	.product-order-fill-actions,
	.product-order-fill-client-btn {
		justify-self: stretch;
		width: 100%;
	}

	.product-order-fill-actions {
		display: grid;
	}
}

table.dataTable a.delete,
table.dataTable a.delete .material-icons {
	color: #d33333;
}

table.dataTable a.call,
table.dataTable a.call .material-icons {
	color: #2f9d44;
}

table.dataTable a.mail,
table.dataTable a.mail .material-icons {
	color: var(--i2s-blue);
}

@media (max-width: 1199.98px) {
	.container {
		width: min(1440px, calc(100vw - 2rem));
	}

	.first_menu {
		flex-wrap: wrap;
		justify-content: flex-start;
		gap: 0.75rem;
		margin-bottom: 2.75rem;
	}

	.first_menu > .btn-nav,
	.first_menu > button.btn-nav {
		flex: 1 1 calc(50% - 0.75rem);
		width: auto;
		min-width: 12rem;
	}

	.first_menu > .dropdown-menu {
		min-width: 100%;
		width: 100%;
	}
}

@media (max-width: 991.98px) {
	.container {
		width: min(1440px, calc(100vw - 1.5rem));
	}

	body#page-index .app-footer {
		padding-bottom: 7rem;
	}

	.app-footer-inner {
		align-items: flex-start;
		flex-direction: column;
	}

	.page-header {
		padding-bottom: 2rem;
	}

	.btn-nav,
	.btn-primary,
	.btn-danger {
		width: auto;
	}

	.first_menu {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: stretch;
	}

	.first_menu > .btn-nav,
	.first_menu > button.btn-nav {
		width: 100%;
		min-width: 0;
	}

	.first_menu > .dropdown-menu {
		position: static !important;
		inset: auto !important;
		transform: none !important;
		float: none;
		width: 100%;
		min-width: 0;
		margin: 0;
		border-radius: 18px;
		grid-column: 1 / -1;
		box-shadow: 0 14px 30px rgba(65, 65, 76, 0.12);
	}

	.dataTables_wrapper {
		overflow-x: auto;
		overflow-y: hidden;
		padding-bottom: 0.4rem;
		-webkit-overflow-scrolling: touch;
	}

	table.dataTable,
	.dataTable {
		/*min-width: 42rem;*/
	}

	.dataTables_wrapper .dataTables_length,
	.dataTables_wrapper .dataTables_filter,
	.dataTables_wrapper .dataTables_info,
	.dataTables_wrapper .dataTables_paginate {
		float: none !important;
		text-align: left !important;
	}

	.dataTables_wrapper .dataTables_filter input,
	.dataTables_wrapper .dataTables_length select {
		/*max-width: 100%;*/
	}
}

@media (max-width: 767.98px) {
	.container {
		width: calc(100vw - 1.25rem);
	}

	.dataTables_wrapper .dataTables_paginate {
		margin-bottom: 0.65rem;
		padding-bottom: 0;
		white-space: normal;
		overflow: visible;
		text-align: center !important;
	}

	.dataTables_wrapper .dataTables_paginate .pagination {
		display: flex;
		flex-wrap: nowrap;
		align-items: center;
		justify-content: center;
		gap: 0.18rem;
		/*width: 100%;*/
		margin: 0 auto;
	}

	.dataTables_wrapper .dataTables_paginate .paginate_button {
		float: none !important;
	}

	.dataTables_wrapper .dataTables_paginate .paginate_button a,
	.dataTables_wrapper .dataTables_paginate .paginate_button span,
	.dataTables_wrapper .dataTables_paginate .paginate_button .page-link {
		padding: 0.3rem 0.52rem;
		font-size: 0.9rem;
		line-height: 1.2;
	}

	.dataTables_wrapper .dataTables_paginate .paginate_button.previous a,
	.dataTables_wrapper .dataTables_paginate .paginate_button.next a,
	.dataTables_wrapper .dataTables_paginate .paginate_button.previous span,
	.dataTables_wrapper .dataTables_paginate .paginate_button.next span,
	.dataTables_wrapper .dataTables_paginate .paginate_button.previous .page-link,
	.dataTables_wrapper .dataTables_paginate .paginate_button.next .page-link {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 2rem;
		padding-left: 0.36rem;
		padding-right: 0.36rem;
	}

	.dataTables_wrapper .dataTables_paginate .paginate_button.previous .material-icons,
	.dataTables_wrapper .dataTables_paginate .paginate_button.next .material-icons {
		font-size: 1.15rem;
		line-height: 1;
	}

	.first_menu {
		grid-template-columns: 1fr;
		gap: 0.65rem;
		margin-top: 1.5rem;
		margin-bottom: 2rem;
	}

	.first_menu > .btn-nav,
	.first_menu > button.btn-nav {
		width: 100%;
	}

	.modal .btn-primary,
	.modal .btn-danger,
	.modal .btn-outline-success {
		width: 100%;
	}

	.modal .form-group[style*='float: left'],
	.modal .form-group[style*='float: right'] {
		float: none !important;
		width: 100%;
	}

	.modal .form-group[style*='float: left'] .btn,
	.modal .form-group[style*='float: right'] .btn {
		width: 100%;
	}
}

.modal-backdrop {
	z-index: 1050 !important;
}

.modal {
	z-index: 1060 !important;
}
