/* ===============================================================
 *                          VARIABLES
 * =============================================================== */
:root {
	--tblr-font-sans-serif: 'Segoe UI', Arial, sans-serif;
}

/* ===============================================================
 *                          WP ADMIN BAR
 * ===============================================================
 * Fix for admin bar overlapping the main sidebar
 * when the admin bar is visible.
 */
html:has(> body.admin-bar) {
	--admin-bar-height: 32px;

	&,
	body.admin-bar {
		height: calc(100vh - var(--admin-bar-height)) !important;
		min-height: unset !important;
		max-height: unset !important;
	}
}
@media screen and (max-width: 782px) {
	html:has(> body.admin-bar) {
		--admin-bar-height: 46px;
	}
}
@media screen and (min-width: 992px) {
	body.admin-bar aside.navbar {
		top: var(--admin-bar-height) !important;
	}
}

/* ===============================================================
 *                      TAILWIND LIKE CLASSES
 * =============================================================== */
.cursor-pointer {
	cursor: pointer;
}
.h-\[40px\] {
	height: 40px !important;
}
.min-h-96 {
	min-height: 24rem !important;
}
.max-w-full {
	max-width: 100% !important;
}
.max-w-72 {
	max-width: 18rem !important;
}
.max-w-80 {
	max-width: 20rem !important;
}
.max-w-96 {
	max-width: 24rem !important;
}
.max-h-72 {
	max-height: 18rem !important;
}
.max-h-80 {
	max-height: 20rem !important;
}
.max-h-96 {
	max-height: 24rem !important;
}
.pointer-events-none {
	pointer-events: none;
}
.ml-2 {
	margin-left: 0.5rem !important;
}
.text-ellipsis {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.grid-t-col-\[1fr_auto\] {
	grid-template-columns: 1fr auto !important;
}
.grid-t-row-\[auto_auto\] {
	grid-template-rows: auto auto !important;
}
.grid-area-\[2\/1\/3\/3\] {
	grid-area: 2 / 1 / 3 / 3 !important;
}
.p-unset {
	padding: unset;
}
.after\:aria-expanded\:\!-rotate-45[aria-expanded='true']::after {
	transform: rotate(-45deg) !important;
}
.after\:\!rotate-45::after {
	transform: rotate(45deg) !important;
}
.after\:transition-transform::after {
	transition-property: transform;
	transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
	transition-duration: 150ms;
}
.d-list-item {
	display: list-item !important;
}
@media screen and (min-width: 576px) {
	.d-sm-list-item {
		display: list-item !important;
	}
}
@media screen and (min-width: 768px) {
	.d-md-list-item {
		display: list-item !important;
	}
}
.transition-none {
	transition: none !important;
}

/* ===============================================================
 *                              HEADER
 * =============================================================== */
header [data-bs-target] {
	&.collapsed {
		border-top-right-radius: var(--tblr-btn-border-radius) !important;
		border-bottom-right-radius: var(--tblr-btn-border-radius) !important;

		i.ti-chevron-right {
			display: none;
		}
	}

	&:not(.collapsed) {
		i.ti-search {
			display: none;
		}
	}
}

/* ===============================================================
 *                              NAVBAR
 * =============================================================== */
@media screen and (min-width: 992px) {
	.navbar-vertical.navbar-expand-lg .navbar-collapse .nav-item:has(.dropdown-item.active) {
		position: relative;

		&:after {
			border-bottom-width: 0;
			border-left-width: 3px;
			right: auto;
			top: 0;
			bottom: 0;
		}
	}

	.navbar-expand-lg .nav-item:has(.dropdown-item.active) {
		position: relative;

		&:after {
			content: '';
			position: absolute;
			left: 0;
			right: 0;
			bottom: -0.25rem;
			border: 0 var(--tblr-border-style) var(--tblr-navbar-active-border-color);
			border-bottom-width: 2px;
		}
	}
}
.navbar i {
	width: 24px;
	height: 24px;
}

/* ===============================================================
 *                         PAGE WRAPPER
 * ===============================================================
 * Adjust the padding of the page wrapper
 */
.page-wrapper {
	padding: 1.5rem 1rem 1rem;
}
@media screen and (min-width: 992px) {
	.page-wrapper {
		padding: 0;
	}
}

/* ===============================================================
 *                           LITEPICKER
 * ===============================================================
 * Fix SVG fill in vendor
 */
.litepicker .container__months .month-item-header {
	button {
		cursor: pointer !important;

		svg,
		img {
			fill: var(--litepicker-button-prev-month-color) !important;
		}
	}
}

/* ===============================================================
 *                        WP GROUP BUTTON
 * =============================================================== */
.components-button-group.is-vertical {
	display: flex;
	flex-direction: column;
}
.components-button-group.is-vertical > * {
	flex: 1;
}
.components-button-group.is-vertical .components-button + .components-button {
	margin-top: -1px;
	margin-left: 0;
}
.components-button-group.is-vertical .components-button:first-child {
	border-radius: 2px 2px 0 0;
}
.components-button-group.is-vertical .components-button:last-child {
	border-radius: 0 0 2px 2px;
}

.components-button-group.is-columns-2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
}

.components-button-group.is-columns-2 .components-button:nth-child(2n + 3) {
	margin-top: -1px;
	margin-left: 0;
}
.components-button-group.is-columns-2 .components-button:nth-child(2n + 4) {
	margin-top: -1px;
}

.components-button-group.is-columns-2 .components-button:first-child {
	border-top-left-radius: 2px;
	border-bottom-left-radius: 0;
}
.components-button-group.is-columns-2 .components-button:nth-child(2) {
	border-top-right-radius: 2px;
}
.components-button-group.is-columns-2 .components-button:nth-child(2n + 1):last-child,
.components-button-group.is-columns-2
	.components-button:has(+ .components-button:nth-child(2n + 2):last-child) {
	border-bottom-left-radius: 2px;
	border-top-right-radius: 0;
}
.components-button-group.is-columns-2 .components-button:last-child,
.components-button-group.is-columns-2
	.components-button:has(+ .components-button:nth-child(2n + 1):last-child) {
	border-bottom-right-radius: 2px;
}

.components-button-group.is-full-width {
	display: flex;
	flex-direction: row;
}
.components-button-group.is-full-width > * {
	flex: 1;
}

/* ===============================================================
 *                            TABLER
 * ===============================================================
 * Tabler Card Status Bar
 */
.card-status-start,
.card-status-bottom {
	left: 0;
}

/* ===============================================================
 *                             LINKS
 * =============================================================== 
 * Link role
 */
div[role='link'] {
	cursor: pointer;
	&:hover {
		text-decoration: underline;
	}
}

/**
 * Open in new tab
 */
#page.page a[target='_blank']::after {
	font-family: 'tabler-icons' !important;
	speak: none;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	line-height: 1;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	content: '\ea99';
	margin-left: 0.25rem;
}

/* ===============================================================
 *                              ...
 * =============================================================== */
.headline {
	font-size: 5rem;
	padding-bottom: 1rem;
}
