:root {
    --bg-color: #ebedef;
    --hover-bg: hsl(218, 11%, 91%);
    --hover-bg-dark: hsl(218, 11%, 80%);
    --space: #fff;
    --border-color: #d1d1d1;
    --primary: #498dfa;
    --primary2: hsl(217, 95%, 85%);
    --primaryDark: #3f7fe6;
    --primaryLight: hsl(217, 95%, 90%);
    --primaryHover: #d2e3ff;
    --space-hover: hsl(0, 0%, 93%);
    --space-active: hsl(0, 0%, 80%);
    --black: #3f3f3f;
    --danger: hsl(0, 81%, 54%);
    --dangerHover: hsl(0, 81%, 48%);
    --primaryGradient: linear-gradient(145deg,
            hsl(217, 95%, 63%) 0%,
            hsl(217, 95%, 40%) 100%);
}

* {
    font-size: 16px;
    color: var(--black);
}

body {
    background-color: var(--bg-color);
}

/* width */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

/* Track */
::-webkit-scrollbar-track {
    border-radius: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: var(--border-color);
}

/* input field */
input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"] {
    position: relative;
    outline: transparent;
    width: 100%;
    border: 2px solid var(--border-color);
    padding-inline: 0.7em;
    padding-block: 0.6em;
    z-index: 0;
}

input[type="email"],
input[type="password"] {
    padding-right: 3em;
    box-shadow: none !important;
}

/* select */
select {
    padding-inline: 0.7em;
    padding-block: 0.6em;
    width: 100%;
    position: relative;
    outline: transparent;
    border: 2px solid var(--border-color);
}

.hr {
    position: relative;
    width: 100%;
    height: 1px;
    background-color: var(--border-color);
}

.hr::before {
    content: attr(aria-label);
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(0%, -50%);
    background: var(--bg-color);
    /* padding-inline: .3em; */
    /* margin-inline: .63em; */
}

a {
    color: var(--black);
    text-decoration: none !important;
}

a:hover {
    color: var(--primary);
}

.link {
    color: var(--primary) !important;
}

.link:hover {
    text-decoration: underline !important;
}

.btn-link {
    color: var(--black) !important;
    padding: 0.4em 0.6em;
    border-radius: 0.6em;
}

.btn-link:hover {
    background-color: var(--hover-bg);
}

.no-event {
    pointer-events: none;
}

.no-textselect {
    user-select: none;
}

.ellipsis-text {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: var(--lines, 1);
    /* number of lines to show */
    line-clamp: var(--lines, 1);
    -webkit-box-orient: vertical;
}

.button {
    padding-inline: 1em;
    padding-block: 0.47em;
    /*.3em*/
    border: 1px solid var(--border-color);
    color: var(--black);
    border-radius: 0.6em;
}

.btn-primary {
    border: none;
    background-color: var(--primary);
    color: var(--space);
}

.btn-primary:hover {
    background-color: var(--primaryDark);
}

.btn-danger {
    border: none;
    background-color: var(--danger);
    color: var(--space);
}

.btn-danger:hover {
    background-color: var(--dangerHover);
}

.btn-secondary {
    background-color: var(--space);
    color: var(--black);
}

.btn-secondary:hover *,
.btn-secondary:hover,
.btn-hover:hover {
    background-color: var(--space-hover);
}

.inputWrapper {
    position: relative;
    margin-bottom: 1em;
}

.inputWrapper label {
    position: absolute;
    padding-inline: 0.3em;
    margin-left: 0.4em;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    user-select: none;
    transition: 0.1s ease-in-out;
    background-color: var(--space);
    line-height: 16px;
    color: var(--black);
    pointer-events: none;
}

.inputWrapper input:focus {
    border: 2px solid var(--primary);
}

.inputWrapper input:focus+label {
    color: var(--primary);
}

/* end */
.formCard {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 0.6em;
}

.fieldset {
    padding: 1.5em 1em;
    border: 1px solid var(--border-color);
    position: relative;
    border-radius: 0.6em;
}

.fieldset::before {
    content: attr(aria-label);
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(0%, -50%);
    background: var(--bg-color);
    padding-inline: 0.3em;
    margin-inline: 0.63em;
    white-space: nowrap;
}

.perm-fieldset {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15ch, 1fr));
    min-width: max-content;
    gap: 0.4em;
}

.perm-checkboxContainer label {
    margin-left: 0.4em;
    width: 100%;
}

.perm-checkboxIcon {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 24px;
    height: 24px;
}

.perm-checkboxIcon>* {
    position: absolute;
}

.perm-checkboxIcon input[type="checkbox"] {
    width: 100%;
    height: 100%;
    left: 0;
    right: 0;
    opacity: 0;
}

.perm-checkboxIcon [aria-label="tick"] {
    display: none;
    color: var(--primary);
}

.perm-checkboxIcon [aria-label="untick"] {
    color: var(--primary);
    opacity: 0.2;
}

.perm-checkboxIcon input[type="checkbox"]:checked+[aria-label="tick"] {
    display: block;
}

.perm-checkboxIcon .bi {
    pointer-events: none;
    font-size: 1.2rem;
    margin-inline: auto;
}

.box-shadow::after {
    position: absolute;
    content: "";
    width: 90%;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
    top: 12px;
    z-index: -1;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: inherit;
    filter: blur(9px);
}

.create-area {
    --areaColor: rgb(146, 146, 146);
    position: relative;
    width: 100%;
    border: 2px dashed var(--areaColor);
    color: var(--areaColor) !important;
    padding: 1.3em 1em;
    display: flex;
    justify-content: center;
    font-weight: bold;
    border-radius: 0.6em;
}

.create-area.primary-area {
    border: 2px dashed var(--primary);
    color: var(--primary) !important;
}

.grid {
    display: grid;
}

.beta-label::after {
    content: "BETA";
    position: relative;
    background: var(--primaryHover);
    color: var(--primaryDark);
    padding: 0.1em 0.4em;
    border-radius: 0.5em;
    font-size: 0.8rem;
    font-weight: bold;
    margin-inline: 0.3em;
    vertical-align: top;
}

.beta-label-center::after {
    vertical-align: middle;
}

.tag-label::after {
    content: var(--tag, "Tag");
    position: relative;
    background: var(--primaryHover);
    color: var(--primaryDark);
    padding: 0.1em 0.4em;
    border-radius: 0.5em;
    font-size: 0.8rem;
    font-weight: bold;
    margin-inline: 0.3em;
    vertical-align: top;
}

.tag-label-center::after {
    vertical-align: middle;
}

/* password */
.passEye,
.fieldIcon {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    z-index: 1;
    right: 0.6em;
    padding-right: 1em;
    top: 50%;
    transform: translateY(-50%);
    width: min-content;
}

.passEye i,
.fieldIcon i {
    position: relative;
    left: 50%;
    font-size: 1rem;
}

.passEye [type="checkbox"] {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    right: 0;
    outline-color: transparent;
    opacity: 0;
}

.bi-eye-fill {
    display: none;
}

.passEye [type="checkbox"]:checked~.bi-eye-slash-fill {
    display: none;
}

.passEye [type="checkbox"]:checked~.bi-eye-fill {
    display: block;
}

.logoBox {
    max-width: 170px;
    margin-inline: auto;
}

.logoBox img {
    max-width: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.not-found-icon {
    font-size: 3rem;
    color: var(--border-color);
}

.default-icon-size {
    font-size: 16px;
}

.table-wrapper,
.box-wrapper {
    background: var(--space);
    border: 1px solid var(--border-color);
    padding-inline: 1em;
    padding-block: 1.5em;
    border-radius: 0.6em;
}

.table-wrapper {
    padding: 4em 2em;
}

.table-wrapper select {
    width: min-content;
    border-radius: 0.6em !important;
}

.table-wrapper input[type="search"] {
    border-radius: 0.6em !important;
}

.table-wrapper .dataTables_length,
.table-wrapper .dataTables_filter {
    padding-bottom: 0.7em;
}

.form-wrapper {
    max-width: 480px;
}

.form-wrapper-2 {
    max-width: 576px;
}

.form-wrapper-3 {
    max-width: 768px;
}

.form-wrapper-4 {
    max-width: 992px;
}

.form-wrapper-5 {
    max-width: 1124px;
}

.form-wrapper-6 {
    max-width: 1256px;
}

.form-wrapper-7 {
    max-width: 1440px;
}

.form-wrapper-max {
    max-width: 100%;
    width: 100%;
}

.content-wrapper {
    max-width: 480px;
}

.content-wrapper-2 {
    max-width: 576px;
}

.content-wrapper-3 {
    max-width: 768px;
}

.content-wrapper-4 {
    max-width: 992px;
}

.content-wrapper-5 {
    max-width: 1124px;
}

.content-wrapper-6 {
    max-width: 1256px;
}

.content-wrapper-7 {
    max-width: 1440px;
}

.content-wrapper-max {
    max-width: 100%;
    width: 100%;
}

.actionButtonWrapper {
    display: flex;
    gap: 0.4em;
    flex-wrap: wrap;
}

.checkbox-fill {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    right: 0;
    z-index: 1;
    opacity: 0;
}

[aria-blur-screen="true"] {
    overflow: hidden !important;
    pointer-events: none !important;
    user-select: none !important;
}

[aria-blur-screen="true"]::before {
    content: "";
    top: 0;
    left: 0;
    position: fixed;
    width: 100%;
    height: 100vh;
    background-color: rgba(248, 248, 248, 0.5);
    backdrop-filter: blur(0.3rem);
    z-index: 99999999;
}

.loader-container,
.pre-loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100dvh;
    height: 100%;
    background: var(--space);
    z-index: 99999999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pre-loader-container {
    background: none;
}

.loader {
    position: relative;
    max-width: 230px;
    animation: loader 3s infinite linear;
}

@keyframes loader {
    0% {
        opacity: 100%;
    }

    50% {
        opacity: 0%;
    }

    100% {
        opacity: 100%;
    }
}

.loader-in {
    animation: loaderin 0.2s 1 forwards;
}

@keyframes loaderin {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.loader-out {
    animation: loaderout 1s 1 forwards;
}

@keyframes loaderout {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.pre-loader-old {
    width: var(--size, 50px);
    height: var(--size, 50px);
    border-radius: 50%;
    border: calc(var(--size, 50px) * 8 / 50) solid var(--loaderColor, var(--primary));
    animation: s10-1 1s infinite linear alternate, s10-2 2s infinite linear;
}

@keyframes s10-1 {
    0% {
        clip-path: polygon(50% 50%,
                0 0,
                50% 0%,
                50% 0%,
                50% 0%,
                50% 0%,
                50% 0%);
    }

    12.5% {
        clip-path: polygon(50% 50%,
                0 0,
                50% 0%,
                100% 0%,
                100% 0%,
                100% 0%,
                100% 0%);
    }

    25% {
        clip-path: polygon(50% 50%,
                0 0,
                50% 0%,
                100% 0%,
                100% 100%,
                100% 100%,
                100% 100%);
    }

    50% {
        clip-path: polygon(50% 50%,
                0 0,
                50% 0%,
                100% 0%,
                100% 100%,
                50% 100%,
                0% 100%);
    }

    62.5% {
        clip-path: polygon(50% 50%,
                100% 0,
                100% 0%,
                100% 0%,
                100% 100%,
                50% 100%,
                0% 100%);
    }

    75% {
        clip-path: polygon(50% 50%,
                100% 100%,
                100% 100%,
                100% 100%,
                100% 100%,
                50% 100%,
                0% 100%);
    }

    100% {
        clip-path: polygon(50% 50%,
                50% 100%,
                50% 100%,
                50% 100%,
                50% 100%,
                50% 100%,
                0% 100%);
    }
}

@keyframes s10-2 {
    0% {
        transform: scaleY(1) rotate(0deg);
    }

    49.99% {
        transform: scaleY(1) rotate(135deg);
    }

    50% {
        transform: scaleY(-1) rotate(0deg);
    }

    100% {
        transform: scaleY(-1) rotate(-135deg);
    }
}

.ring {
    --uib-size: 40px;
    --uib-speed: 2s;
    --uib-color: black;

    height: var(--uib-size);
    width: var(--uib-size);
    vertical-align: middle;
    transform-origin: center;
    animation: rotate var(--uib-speed) linear infinite;
}

.ring circle {
    fill: none;
    stroke: var(--uib-color);
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
    stroke-linecap: round;
    animation: stretch calc(var(--uib-speed) * 0.75) ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes stretch {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dasharray: 90, 200;
        stroke-dashoffset: -35px;
    }

    100% {
        stroke-dashoffset: -124px;
    }
}

/* Search bar */
.searchContainer {
    background-color: var(--space);
    border-radius: 0.4em;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0.5em;
    border-radius: 45em;
    justify-content: flex-start;
    z-index: 2;
    /* outline: 1px solid var(--border-color); */
}

.searchContainer:focus-within {
    outline: 1px solid var(--primary);
}

.searchContainer>* {
    background-color: transparent;
    border: none !important;
    padding: 0 !important;
}

#searchinput {
    margin-inline: 0.7em;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 38px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    background-color: var(--primaryHover);
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-box i {
    color: var(--primary);
}

.searchWrapper {
    position: relative;
    z-index: 99;
}

.searchResultContainer {
    margin-block: 0.4em;
    position: absolute;
    width: 100%;
    height: min-content;
    padding: 1em;
    background-color: var(--space);
    z-index: 99;
    border-radius: 1.5em;
    top: 100%;
    box-shadow: 0 7px 7px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
}

.record-list {
    list-style: none;
    padding: 0;
}

.record-list li {
    padding: 0.7em 1.2em;
    border-radius: 0.6em;
    cursor: pointer;
}

.record-list li:hover {
    background-color: var(--primaryHover);
}

.floating-alert-container {
    position: fixed;
    display: flex;
    right: 0;
    height: min-content;
    z-index: 99999998;
}

[data-container="tree-view"] {
    min-height: 135px;
}

/* bootstrap */
.modal-content {
    border-radius: 0.6em !important;
}

/* quickalert */
.quickalert-container {
    --top: -100%;
    position: fixed;
    top: var(--top);
    left: 50%;
    width: 100%;
    max-width: 100%;
    z-index: 99999998;
    display: flex;
    justify-content: center;
    transform: translateX(-50%);
    padding-inline: 0.6em;
    /* pointer-events: none !important; */
    transition: top 0.3s;
    transition-delay: 0.3s;
}

.quickalert-wrapper {
    border-radius: 5rem !important;
    padding: 0.5em 0.8em !important;
    display: grid;
    grid-template-columns: min-content 0fr;
    align-items: center;
    max-width: 48ch;
    margin-inline: auto;
    transition: grid-template-columns 0.3s;
}

.quickalert-text {
    font-weight: bold !important;
    white-space: nowrap;
}

.quickalert-show {
    animation: quickalert-show 0.2s 1 forwards;
    animation-delay: 0.7s;
}

@keyframes quickalert-show {
    to {
        grid-template-columns: min-content 1fr;
    }
}

.quickalert-hide {
    animation: quickalert-hide 0.2s 1 forwards;
}

@keyframes quickalert-hide {
    from {
        grid-template-columns: min-content 1fr;
    }

    to {
        grid-template-columns: min-content 0fr;
    }
}

@media screen and (max-width: 575px) {
    .table-wrapper {
        padding: 2em 1em;
    }
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    transition: background-color 5000s ease-in-out 0s;
}