html {
    scroll-behavior: smooth;
}

body {
    width: 100%;
    height: 100%;
    background: var(--gray-50);
}

.admin-container {
    height: 100%;
}

.admin-sidebar {
    display: flex;
    flex-direction: column;
    min-width: 260px;
    max-width: 260px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: calc(2*var(--border-radius));
    margin: 3rem 1.5rem 3rem -300px;
    transition: margin-left .15s linear, margin-right .15s linear;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 101;
}

[dir="rtl"] .admin-sidebar {
    margin-left: initial;
    left: initial;
    right: 0;
    margin-right: -300px;
    border-left: 1px solid var(--gray-100);
    border-right: 0;
}

[dir="rtl"] [data-theme-style="dark"] .admin-sidebar {
    border-right: 0;
    border-left: 1px solid var(--gray-100);
}

body.admin-sidebar-opened .admin-sidebar {
    margin-left: 1.5rem;
}

[dir="rtl"] body.admin-sidebar-opened .admin-sidebar {
    margin-right: 1.5rem;
}

@media (min-width: 992px) {
    .admin-sidebar {
        margin-left: 1.5rem;
    }

    [dir="rtl"] .admin-sidebar {
        margin-right: 1.5rem;
    }
}

.admin-sidebar-title {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: .5rem;
    margin: .5rem;
    height: 75px;
}

.admin-sidebar-title a {
    font-size: 1.4rem;
    color: var(--gray-900);
    font-weight: 600;
}

.admin-sidebar-title a:hover {
    text-decoration: none;
}

.admin-sidebar-footer {
    width: 100%;
}

.admin-sidebar-footer > a {
    width: 100%;
    padding: .75rem 1.75rem;
    border-top: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    color: var(--gray-500);
    font-size: .9rem;
    font-weight: 500;
    transition: background .3s;
    border-radius: calc(2*var(--border-radius));
}

.admin-sidebar-footer > a:hover {
    text-decoration: none;
    background: var(--gray-100);
    color: var(--gray-600);
}

.admin-sidebar-links-wrapper {
    overflow-y: scroll;
    width: calc(100% - 6px);
    padding-bottom: .25rem;
    scrollbar-width: none;
}

.admin-sidebar-links-wrapper:hover {
    width: 100%;
    scrollbar-color: var(--gray-200) var(--white) !important;
    scrollbar-width: thin !important;
}

.admin-sidebar-links-wrapper::-webkit-scrollbar {
    background-color: transparent;
    width: 0;
}

.admin-sidebar-links-wrapper::-webkit-scrollbar-thumb {
    background: var(--gray-200);
    border-radius: 10px;
}

.admin-sidebar-links-wrapper:hover::-webkit-scrollbar {
    width: 6px;
}

.admin-sidebar-links-wrapper:hover::-webkit-scrollbar-track {
    width: 6px;
}

.admin-sidebar-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-sidebar-links > li {
    width: 100%;
    padding: 0.25rem calc(1rem - 6px) 0.25rem 1rem;
}

.admin-sidebar-links > div {
    width: 90%;
    margin: 0.25rem calc(1rem - 6px) 0.25rem 1rem;
    padding: 0.5rem 0;
}

.admin-sidebar-links > div > li {
    width: 100%;
    padding: .5rem 1rem;
}

.admin-sidebar-links .divider-wrapper {
    width: 100%;
    padding: 0 calc(0.75rem - 6px) 0 0.75rem;
    margin: .25rem 0;
}

.admin-sidebar-links .divider-wrapper > .divider {
    border-top: 1px solid var(--gray-100);
}

.admin-sidebar-links li > a {
    width: 100%;
    display: flex;
    align-items: center;
    color: var(--gray-600);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    transition: background .3s;
    font-size: .9rem;
    font-weight: 500;
}

.admin-sidebar-links li > a:hover {
    text-decoration: none;
    background: var(--gray-100);
    color: var(--gray-600);
}

[data-theme-style="dark"] .admin-sidebar-links li > a:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.admin-sidebar-links li.active > a:not(.default) {
    background: var(--primary-800);
    color: var(--white);
    font-weight: 500;
}

[data-theme-style="dark"] .admin-sidebar-links li.active > a:not(.default) {
    background: var(--primary-800);
    color: var(--white);
}

.admin-sidebar-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.admin-sidebar-footer-block {
    max-width: 100%;
}

.admin-sidebar-footer-text {
    color: var(--gray-600);
}

.admin-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background: var(--gray-200);
    z-index: 100;
    opacity: .75;
}

.admin-content {
    height: 100%;
    overflow: auto;
    margin-left: 0;
    position: relative;
}

[dir="rtl"] .admin-content {
    margin-left: initial;
    margin-right: 0;
}

@media (min-width: 992px) {
    .admin-content {
        margin-left: calc(275px + 1.5rem);
    }
    [dir="rtl"] .admin-content {
        margin-left: initial;
        margin-right: calc(275px + 1.5rem);
    }
}

.admin-navbar-logo {
    max-height: 2.5rem;
    height: 2.5rem;
}

.chart-container {
	position: relative;
	margin: auto;
	height: 275px;
	width: 100%;
}

@media print {
	.chart-container canvas {
		min-height: 100%;
		max-width: 100%;
		max-height: 100%;
		height: auto!important;
		width: auto!important;
	}
}

/* Top Navbar */
.admin-navbar-top {
    background: var(--white);
}

@media (min-width: 992px) {
    .admin-navbar-top {
        display: none;
    }
}

.admin-navbar-logo-top {
    max-height: 2rem;
    height: 2rem;
}

.navbar-custom-toggler {
    padding: 0.5rem .8rem;
    font-size: 1.25rem;
    line-height: 1;
    background-color: transparent;
    border-radius: var(--border-radius);
    color: var(--gray-700);
    border-color: var(--gray-200);
}

.admin-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    vertical-align: middle !important;
}

/* Other */
.user-avatar {
    min-width: 45px;
    min-height: 45px;
    width: 45px;
    height: 45px;
    object-fit: cover;
    background: var(--primary-100);
}

.plugin-avatar {
    min-width: 60px;
    min-height: 60px;
    width: 60px;
    height: 60px;
    object-fit: cover;
    font-size: 1.25rem;
}

img {
	vertical-align: inherit !important;
}

.icon-favicon {
	width: .95rem;
	height: auto;
}

.icon-favicon-small {
	width: .75rem;
	height: auto;
}

/* Tables */
.table-custom-container {
    border-radius: calc(2*var(--border-radius));
    border: 1px solid var(--gray-100);
}

.table-custom {
    margin-bottom: 0;
    background: var(--white);
}

.table-custom thead th {
    border-top: 0;
    border-bottom: 0;
    color: var(--gray);
}

.table-custom th {
    padding: 1rem 1.25rem;
    font-size: .9rem;
}

[data-theme-style="dark"] .table-custom thead th {
    color: var(--gray-800)
}

.table-custom td {
    padding: 1.25rem 1.25rem;
    vertical-align: middle;
}

.table-custom tbody tr td {
    border-top: 1px solid var(--gray-100);
}

.table-custom tfoot tr td {
    border-top: 1px solid var(--gray-100);
}

/* Footer */
footer img {
    width: 16px;
    height: 14px;
}

footer {
    color: var(--gray-700);
}

footer button, footer button:hover {
    color: var(--gray-700) !important;
}

/* Misc */
.container-disabled {
    pointer-events: none;
    opacity: .5;
}

.container-disabled-simple {
    pointer-events: none;
}

/* Round circles */
.round-circle-md {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.round-circle-lg {
    width: 4.5rem;
    height: 4.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

/* Invoice css */
.invoice-table th {
    border-top: 0 !important;
}

.invoice-table td {
    vertical-align: baseline !important;
}

.invoice-logo {
    max-height: 2.5rem;
    height: 2.5rem;
}

@media print {
    .invoice {
        page-break-after: always;
    }

    body, html, .container {
        height: auto !important;
        overflow: visible !important;
    }

    .invoice-logo {
        filter: grayscale(100%);
    }
}

/* Modal */
.modal-header {
    padding: 1rem;
    border-bottom: 0;
}

.modal-subheader {
    padding: 0 1rem;
    border-bottom: 0;
    margin: 0;
}

.modal-content {
    padding: 1rem;
    border: none;
    box-shadow: none;
    -webkit-box-shadow: none;
}

/* Filters */
.filters-dropdown {
    width: 18rem;
    max-height: 30rem;
    overflow-y: auto;
}

/* Custom breadcrumbs */
.custom-breadcrumbs {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.custom-breadcrumbs > li {
    margin-right: .5rem;
}

.custom-breadcrumbs > li > a {
    color: var(--gray);
}

.custom-breadcrumbs > li > svg {
    color: var(--gray-400);
    margin-left: .5rem;
}

/* Base animation */
.altum-animate {
    -webkit-animation-duration:1s;
    animation-duration:1s;
}

.altum-animate-fill-both {
    -webkit-animation-fill-mode:both;
    animation-fill-mode:both;
}

.altum-animate-fill-none {
    -webkit-animation-fill-mode:none;
    animation-fill-mode:none;
}

@-webkit-keyframes fadeIn {
    0% {
        opacity:0
    }
    to {
        opacity:1
    }
}
@keyframes fadeIn {
    0% {
        opacity:0
    }
    to {
        opacity:1
    }
}
.altum-animate-fade-in {
    -webkit-animation-name:fadeIn;
    animation-name:fadeIn
}



/* File input */
.altum-file-input {
    padding: 1rem;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: .9rem;
}

[data-theme-style="dark"] .altum-file-input {
    background: var(--gray-200);
    border: 1px solid var(--gray-300);
}

.altum-file-input:hover {
    border-color: var(--gray-300);
}

[data-theme-style="dark"] .altum-file-input:hover {
    border-color: var(--gray-400);
}

.altum-file-input::file-selector-button {
    border: 0;
    padding: .4rem .75rem;
    border-radius: var(--border-radius);
    background-color: var(--white);
    cursor: pointer;
    font-size: .9rem;
    margin-right: 1rem;
}

/* File input preview */
.altum-file-input-preview {
    max-width: 100%;
    max-height: 68px;
    min-height: 68px;
    object-fit: cover;
}

/* Icons on links animations */
a svg {
    transition: transform .15s;
}

a:hover svg {
    transform: scale(1.1);
}

a:active svg {
    transform: scale(.9);
}

/* Dark mode for some icons */
[data-theme-style="dark"] svg[data-custom-colors] {
    color: var(--brand-color-dark) !important;
}

/* Dropdown */
.dropdown-item {
    color: var(--gray-800);
    font-weight: 450;
    font-size: .9rem;
}

.dropdown-item:hover, .dropdown-item:focus, .dropdown-item.active {
    border-radius: var(--border-radius);
}

.dropdown-item svg {
    color: var(--gray-600);
}

.dropdown-item:active svg, .dropdown-item.active svg {
    color: var(--white);
}

/* Color picker */
.pcr-button {
    border: 1px solid white !important;
    outline: 1px solid var(--gray-300) !important;
    height: calc(var(--input-padding-y) + var(--input-padding-x) + var(--input-font-size) + calc(var(--input-font-size) / 2.75)) !important;
    border-radius: var(--border-radius) !important;
    width: 100% !important;
}

.pcr-button::before, .pcr-button::after {
    border-radius: var(--border-radius) !important;
}

/* Helper for quill editor code block */
.ql-code-block {
    background-color: var(--gray-200);
    color: var(--gray-600);
    padding: 1rem;
    border-radius: var(--border-radius);
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    white-space: pre;
    font-size: .9rem;
    line-height: 1.5;
}

blockquote {
    border-left: 4px solid var(--gray-400) !important;
    padding: 1rem 1.5rem !important;
    margin: 1.5rem 0 !important;
    background-color: var(--gray-100);
    font-style: italic;
    color: var(--gray-600);
    font-size: 1.1rem;
    line-height: 1.6;
    border-radius: var(--border-radius);
}

/* Shiki code highlighter */
.shiki {
    overflow: auto;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    font-size: .9rem;
    line-height: 1.5rem;
}

.shiki code {
    background: initial !important;
}

/* Opacity */
.opacity-0 {
    opacity: 0;
}

/* Custom scrollbar */
body * {
    scrollbar-color: var(--gray-200) var(--white) !important;
    scrollbar-width: thin !important;
}

body *::-webkit-scrollbar-thumb  {
    background: var(--gray-200);
    border-radius: 10px;
    width: 6px;
    height: 6px;
}

body *::-webkit-scrollbar, body *::-webkit-scrollbar-track {
    background: var(--white);
    border-radius: 10px;
    width: 6px;
    height: 6px;
}

/* Custom input range */
.form-control-range {
    /* removing default appearance */
    -webkit-appearance: none;
    appearance: none;

    /*  slider progress trick  */
    overflow: hidden;

    /* creating a custom design */
    accent-color: var(--primary);
    background: var(--gray-200);
    border-radius: var(--border-radius);
    height: .5rem;
    margin: 0.75rem 0;
}

/* Track: webkit browsers */
.form-control-range::-webkit-slider-runnable-track, .form-control-range::-moz-range-track {
    background: var(--gray-200);
}

/* Thumb: webkit */
.form-control-range::-webkit-slider-thumb {
    /* removing default appearance */
    -webkit-appearance: none;
    appearance: none;

    /* creating a custom design */
    height: .75rem;
    width: .75rem;
    background-color: var(--primary);
    border-radius: 50%;
    border: 2px solid var(--white);

    /*  slider progress trick  */
    box-shadow: -2007px 0 0 2000px var(--primary-300);
}

.form-control-range::-moz-range-thumb {
    /* removing default appearance */
    -webkit-appearance: none;
    appearance: none;

    /* creating a custom design */
    height: .75rem;
    width: .75rem;
    background-color: var(--primary);
    border-radius: 50%;
    border: 2px solid var(--white);

    /*  slider progress trick  */
    box-shadow: -2007px 0 0 2000px var(--primary-300);
}

/* Zoom animation */
.zoom-animation-subtle {
    transition: transform .3s;
}

.zoom-animation-subtle:hover {
    transform: scale(1.025);
}

/* Prevent fontawesome layout shifts */
i.fa-fw {
    width: 1.25em;
}

i.fa-xs {
    font-size: .85em;
}

i.fa-sm {
    font-size: .875em;
}

i.fa-lg {
    font-size: 1.25em;
}

i.xl {
    font-size: 1.5em;
}

i {
    display: inline-block;
}

.cursor-grab {
    cursor: grab !important;
}

.cursor-pointer {
    cursor: pointer;
}

/* Custom Radio Boxes */
.custom-radio-box {
    cursor: pointer;
}

.custom-radio-box .custom-radio-box-main-text {
    font-size: 1.15rem;
    font-weight: bold;
}

.custom-radio-box .custom-radio-box-main-icon {
    font-size: 1.25rem;
}

.custom-radio-box input[type="radio"] + div, .custom-radio-box input[type="checkbox"] + div {
    transition: all .3s ease-in-out;
    border: 2px solid var(--gray-200);
    background: var(--white);
}

.custom-radio-box input[type="radio"]:checked + div, .custom-radio-box input[type="checkbox"]:checked + div {
    border: 2px solid var(--primary);
}

.custom-radio-box input[type="radio"]:hover + div, .custom-radio-box input[type="checkbox"]:hover + div {
    border: 2px solid var(--primary);
}

/* Code editor */
.CodeMirror {
    width: 100%;
    height: auto;
    min-height: 150px;
    resize: vertical;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    font-size: .9rem;
}

/* Editor js buttons */
.ce-toolbar__plus, .ce-toolbar__settings-btn {
    color: var(--body-color) !important;
}

.ce-toolbar__plus:hover, .ce-toolbar__settings-btn:hover {
    background-color: var(--body-bg) !important;
}

/* Ajax loading overlay */
.loading-overlay {
    padding: 1.25rem;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 100;
    opacity: 0.8;
}

[data-theme-style="dark"] .loading-overlay {
    background: var(--gray-50);
}

/* Helper */
.user-select-none {
	user-select: none;
}

.font-size-little-small {
    font-size: .95rem;
}

.font-size-small {
    font-size: .9rem;
}

.font-weight-450 {
    font-weight: 450;
}

.font-weight-500 {
    font-weight: 500;
}

/* Border radius */
.rounded-2x {
    border-radius: calc(2*var(--border-radius));
}

/* Widget icon */
.widget-icon {
    width: 2.5rem;
    height: 2.5rem;
}

/* Teams */
.team-user-avatar {
    width: 45px;
    height: 45px;
}



