/* --------------------------------------------------
Utilities
------------------------------------------------- */

.text-muted {
    color: #666;
}

.gap-3 {
	gap: 3px !important;
}

body.inline .hidden-inline {
    display: none !important;
}

table.no-wrap td,
table.no-wrap th {
	white-space: nowrap;
}

/* --------------------------------------------------
Hide disabled options in select2
------------------------------------------------- */

.select2-container .select2-results__option[aria-disabled=true] {
	display: none;
}

/* --------------------------------------------------
Select2 dummy when disabled
------------------------------------------------- */

.select2-container--disabled .select2-selection__arrow {
	display: none;
}

.select2-container--disabled .select2-selection {
	box-shadow: unset;
	border: none !important;
	background: unset !important;
}

/* --------------------------------------------------
Repeater inside a table
------------------------------------------------- */

tbody[items-container] li[repeater-item] {
	display: contents;
}

.data-table .repeater-connection.wrapper {
	margin: 0;
}

/* --------------------------------------------------
Repeater inside a panel group
------------------------------------------------- */

[repeater-item].panel {
	border: unset;
	background: unset;
	overflow: visible;
}

[repeater-item].panel .panel-heading {
	border-radius: 3px;
	background-color: #fff;
	border: 1px solid #c8c8c8;
	box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------
Circular Progress
------------------------------------------------- */

.circular-progress {
    position: relative;
    height: var(--size, 65px);
    width: var(--size, 65px);
    border-radius: 50%;
    background: conic-gradient(var(--color, green) calc(var(--value, 0) * 3.6deg), var(--bg-color, #ededed) 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.circular-progress::before{
    content: "";
    position: absolute;
    height: calc(var(--size, 65px) - (var(--size, 65px) / 5));
    width: calc(var(--size, 65px) - (var(--size, 65px) / 5));
    border-radius: 50%;
    background-color: #fff;
}

.circular-progress:after {
    counter-reset: percentage var(--value, 0);
    content: counter(percentage) "%";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: calc(var(--size, 65px) / 4);
    font-weight: 600;
    color: var(--color);
    text-align: center;
}

/* --------------------------------------------------
Mega Dropdown
------------------------------------------------- */

.mega-dropdown {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 400px;
    max-width: 80vw;
}

.mega-dropdown > b {
    display: block;
    width: 100;
}

.mega-dropdown > .items > a {
    justify-content: flex-start;
}

.mega-dropdown > .items > a img {
    width: 30px;
}

.mega-dropdown > .items > a.active {
    pointer-events: none;
}

/* --------------------------------------------------
Statistics - الإحصائيات
------------------------------------------------- */

.graph-container b {
	display: block;
}

.graph-container .dropdown-menu .elements-container {
	padding: 5px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 5px;
}

.graph-container .dropdown-menu .btn {
	justify-content: flex-start;
}

.graph-container img {
	display: none;
}

/* --------------------------------------------------
Project Card
------------------------------------------------- */

.project-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    border: 1px solid #ddd;
}

.project-card .project-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--project-color);
    color: #fff;
}

.project-card .project-icon i {
    font-size: 1.6rem;
}

.project-card .label {
    margin-inline-start: 5px;
    padding: 4px 8px;
}

.project-card .progress-bar-striped {
	height: 15px;
    position: relative;
}

.project-card .progress-bar-striped:after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: repeating-linear-gradient(-45deg, #ffffff30, #ffffff30 10px, #ffffff00 10px, #ffffff00 20px);
}

.project-card .project-info {
    border: 1px dotted #ccc;
    padding: 10px;
    border-radius: 5px;
}

.pmp-card h3 {
    line-height: 1;
    font-size: 3rem;
    font-weight: bold;
}

.pmp-card b {
    display: block;
}

.pmp-card .value {
    text-align: center;
    margin: 15px 0 10px 0;
}

.pmp-card .value.percentage .circular-progress {
    margin: 0 auto 0 auto;
}

.pmp-card .money b {
    font-size: 3rem;
}

.pmp-card .money i {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 2.4rem;
}

.pmp-card .index b {
    width: 75px;
    height: 75px;
    font-size: 2.2rem;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin: 0 auto 0 auto;
}

.fancybox-active #launcher {
	display: none !important;
}

/* --------------------------------------------------
Statistics Module
------------------------------------------------- */

.circle-tile {
	height: 100%;
	text-align: center;
	--color: var(--var-bg-color, #808080);
	--shade: color-mix(in srgb, var(--color), #000000 30%);
}

.circle-tile-heading {
	position: relative;
	width: 80px;
	height: 80px;
	color: #fff;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 10px;
	margin: 0 auto -40px 15px;
	background-color: var(--color);
	background-image: linear-gradient(315deg, var(--shade), var(--color));
	box-shadow:
		0 2px 4px color-mix(in srgb, var(--shade), transparent 80%),
		0 8px 16px -4px color-mix(in srgb, var(--color), transparent 70%);
}

.text-faded {
	color: #808080;
}

.circle-tile-content {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	padding-top: 50px;
	border-radius: 10px;
	overflow: hidden;
	background: #fefefe;
	box-shadow: var(--shadow-sm);
	border-bottom: 3px solid var(--shade);
}

.circle-tile-description {
	margin-top: auto;
}

.circle-tile-number {
	padding: 5px 0 10px;
	font-size: 26px;
	font-weight: 700;
	line-height: 1;
	color: var(--shade);
}

/* Center label/number when there is no footer */
.circle-tile-number:last-child {
	margin-bottom: auto;
}

.circle-tile-footer {
	display: block;
	width: 100%;
	margin-top: auto;
	padding: 8px;
	color: var(--color) !important;
	border-top: 1px solid #e7e7e7;
	transition: all ease-in-out .3s;
}

a.circle-tile-footer,
a.circle-tile-footer:link,
a.circle-tile-footer:hover,
a.circle-tile-footer:active,
a.circle-tile-footer:visited {
	color: var(--shade) !important;
}

/* Arrow stays hidden (space reserved) and slides in on hover */
.circle-tile-footer i {
	opacity: 0;
	translate: -6px;
	transition: opacity ease-in-out .3s, translate ease-in-out .3s;
}

.circle-tile-footer:dir(rtl) i {
	transform: rotate(180deg);
	translate: 6px;
}

a.circle-tile-footer:hover {
	text-decoration: none;
	color: #606060;
	background-color: #f8f8f8;
}

a.circle-tile-footer:hover i {
	opacity: 1;
	translate: 0;
}

/* --------------------------------------------------
Dashboard Widgets
------------------------------------------------- */

.dashboard-widgets.gridstack-container {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	grid-auto-flow: row dense;
	gap: 20px;
}

/* Subtract from 12 to calculate proper rtl direction */
.dashboard-widgets .gridstack-item {
	grid-row-start: calc(var(--y) + 1);
	grid-row-end: calc(var(--height) + var(--y) + 1);
	grid-column-start: calc(12 - var(--x) + 1);
	grid-column-end: calc(12 - var(--width) - var(--x) + 1);
}

@media screen and (max-width: 1279px) {
	.dashboard-widgets .gridstack-item {
		grid-row: span var(--height);
		grid-column: span 6;
	}

	.dashboard-widgets .gridstack-item[widget-width="2"] {
		grid-column: span 3;
	}

	.dashboard-widgets .gridstack-item[widget-width="12"] {
		grid-column: span 12;
	}
}

@media screen and (max-width: 959px) {
	.dashboard-widgets .gridstack-item {
		grid-column: span 12;
	}

	.dashboard-widgets .gridstack-item[widget-width="2"] {
		grid-column: span 6;
	}
}

.dashboard-widgets .widget-container {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 15px;
	background: #fff;
	border-radius: 10px;
	height: 100%;
	overflow-x: auto;
}

.dashboard-widgets .widget-container::-webkit-scrollbar {
	display: none;
}

.dashboard-widgets .widget-container.padding-0 {
	padding: 0 !important;
}

.dashboard-widgets .widget-container.no-header .widget-header {
	display: none;
}

.widget-header {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* Pin the header link to the end, even when the widget has no title */
.widget-header > a {
	margin-inline-start: auto;
}

.widget-header .info-item .label {
	aspect-ratio: 1 / 1;
	padding: 10px;
}

.dashboard-widgets .widget-container.no-card {
	padding: 0;
	background: transparent;
	box-shadow: none;
	overflow: visible;
}

.dashboard-widgets .widget-container.no-card:hover {
	box-shadow: none;
	transform: none;
}

/* Shadow/hover on widget bodies */
.dashboard-widgets .widget-container, .widget-surface {
	transition: box-shadow 0.2s ease, transform 0.2s ease;
	box-shadow: var(--shadow-xs);
}

.dashboard-widgets .widget-container:hover, .widget-surface:hover {
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}

/* Unset the first .margin-top-15 if widget header is empty */
.dashboard-widgets .info-item.no-data {
	display: none !important;
}

.dashboard-widgets .info-item.no-data + .margin-top-15 {
	margin-top: 0 !important;
}