@import url('./fonts/cairo/cairo.css');
@import url('./fonts/tajawal/tajawal.css');

::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #DDD;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #337ab7;
  border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #337ab1;
}

.table .ti {
    font-size: 1rem !important;
}

.menu-icon {
    font-size: 18px !important;
    text-align: center;
}

/* Keep sidebar glyphs consistent with the dashboard's outline icon family. */
#layout-menu .menu-icon {
    color: #1c2833;
    font-size: 22px !important;
    width: 24px;
    line-height: 24px;
    flex-shrink: 0;
}
#layout-menu .menu-sub .menu-link .menu-icon {
    display: inline-block;
    flex-shrink: 0;
    font-size: 19px !important;
    margin-inline-end: 8px;
}
#layout-menu .menu-item.open > .menu-link .menu-icon {
    color: #009bc5;
}
#layout-menu .menu-item.active > .menu-link .menu-icon {
    color: inherit;
}
.dark-style #layout-menu .menu-icon {
    color: #d7e7ee;
}
.dark-style #layout-menu .menu-item.open > .menu-link .menu-icon {
    color: #00b3d4;
}
.dark-style #layout-menu .menu-item.active > .menu-link .menu-icon {
    color: inherit;
}
#layout-menu .menu-sub > .menu-item > .menu-link::before {
    display: none;
}

#layout-menu .menu-inner > .menu-item > .menu-link {
    transition: box-shadow .18s ease, background-color .18s ease;
}
@media (hover: hover) {
    #layout-menu .menu-inner > .menu-item:not(.active) > .menu-link:hover {
        background-color: #eef5f8;
        box-shadow: 0 4px 12px rgba(28, 40, 51, .18);
    }
    #layout-menu .menu-inner > .menu-item.active > .menu-link:hover {
        box-shadow: 0 5px 15px rgba(28, 40, 51, .26);
    }
    .dark-style #layout-menu .menu-inner > .menu-item:not(.active) > .menu-link:hover {
        background-color: #273b46;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
    }
}
#layout-menu .menu-inner > .menu-item > .menu-link:focus-visible {
    outline: 2px solid #009bc5;
    outline-offset: -2px;
    box-shadow: 0 4px 12px rgba(28, 40, 51, .18);
}

/* Branches follow the document direction and inherit the existing theme. */
#layout-menu.nexel-tree-menu .menu-sub {
    margin-inline-start: 27px;
    margin-inline-end: 12px;
    padding: 4px 0;
}
#layout-menu.nexel-tree-menu .menu-sub > .menu-item {
    position: relative;
    margin: 0;
}
#layout-menu.nexel-tree-menu .menu-sub > .menu-item::before,
#layout-menu.nexel-tree-menu .menu-sub > .menu-item::after {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    pointer-events: none;
    border-color: #bacbd3;
    border-style: solid;
    border-width: 0;
}
#layout-menu.nexel-tree-menu .menu-sub > .menu-item::before {
    top: 50%;
    width: 14px;
    border-block-start-width: 1px;
}
#layout-menu.nexel-tree-menu .menu-sub > .menu-item::after {
    top: 0;
    bottom: 0;
    border-inline-start-width: 1px;
}
#layout-menu.nexel-tree-menu .menu-sub > .menu-item:last-child::after {
    bottom: 50%;
}
#layout-menu.nexel-tree-menu .menu-sub > .menu-item:has(> .menu-sub)::before {
    top: 22px;
}
#layout-menu.nexel-tree-menu .menu-sub > .menu-item:last-child:has(> .menu-sub)::after {
    bottom: auto;
    height: 22px;
}
#layout-menu.nexel-tree-menu .menu-sub > .menu-item > .menu-link {
    margin: 0 0 2px;
    padding-inline-start: 20px;
    padding-inline-end: 8px;
    min-height: 38px;
}
.dark-style #layout-menu.nexel-tree-menu .menu-sub > .menu-item::before,
.dark-style #layout-menu.nexel-tree-menu .menu-sub > .menu-item::after {
    border-color: #516b78;
}

.dataTables_wrapper {
    max-height: none;
}

/* Fill short dashboard pages while allowing long tables and forms to scroll. */
.dashboard-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.dashboard-content > .card {
    flex: 1 0 auto;
    min-width: 0;
}
.dashboard-content > .card > .card-datatable {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.dashboard-content > .card > .card-datatable > .dataTables_wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.dashboard-content > .card > .card-datatable > .dataTables_wrapper > .row:last-child {
    margin-top: auto;
}
.loading {
    position: fixed;
    background: #FFF;
    width: 100vw;
    height: 100vh;
    z-index: 9999999999;
    display: flex;
    right: 0;
    top: 0;
    justify-content: center;
    align-items: center;
}

.lds-hourglass {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}
.lds-hourglass:after {
    content: " ";
    display: block;
    border-radius: 50%;
    width: 0;
    height: 0;
    margin: 8px;
    box-sizing: border-box;
    border: 32px solid #685dd8;
    border-color: #685dd8 transparent #685dd8 transparent;
    animation: lds-hourglass 1.2s infinite;
}
@keyframes lds-hourglass {
    0% {
      transform: rotate(0);
      animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
    }
    50% {
      transform: rotate(900deg);
      animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    }
    100% {
      transform: rotate(1800deg);
    }
}

.loader {
    width: 48px;
    height: 48px;
    border: 3px solid #685dd8;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
} 
.loader::after {
    content: '';  
    box-sizing: border-box;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-bottom-color: #948deb;
}
@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


.sk-folding-cube {
    margin: 20px auto;
    width: 40px;
    height: 40px;
    position: relative;
    -webkit-transform: rotateZ(45deg);
            transform: rotateZ(45deg);
  }
  
  .sk-folding-cube .sk-cube {
    float: left;
    width: 50%;
    height: 50%;
    position: relative;
    -webkit-transform: scale(1.1);
        -ms-transform: scale(1.1);
            transform: scale(1.1); 
  }
  .sk-folding-cube .sk-cube:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #685dd8;
    -webkit-animation: sk-foldCubeAngle 2.4s infinite linear both;
            animation: sk-foldCubeAngle 2.4s infinite linear both;
    -webkit-transform-origin: 100% 100%;
        -ms-transform-origin: 100% 100%;
            transform-origin: 100% 100%;
  }
  .sk-folding-cube .sk-cube2 {
    -webkit-transform: scale(1.1) rotateZ(90deg);
            transform: scale(1.1) rotateZ(90deg);
  }
  .sk-folding-cube .sk-cube3 {
    -webkit-transform: scale(1.1) rotateZ(180deg);
            transform: scale(1.1) rotateZ(180deg);
  }
  .sk-folding-cube .sk-cube4 {
    -webkit-transform: scale(1.1) rotateZ(270deg);
            transform: scale(1.1) rotateZ(270deg);
  }
  .sk-folding-cube .sk-cube2:before {
    -webkit-animation-delay: 0.3s;
            animation-delay: 0.3s;
  }
  .sk-folding-cube .sk-cube3:before {
    -webkit-animation-delay: 0.6s;
            animation-delay: 0.6s; 
  }
  .sk-folding-cube .sk-cube4:before {
    -webkit-animation-delay: 0.9s;
            animation-delay: 0.9s;
  }
  @-webkit-keyframes sk-foldCubeAngle {
    0%, 10% {
      -webkit-transform: perspective(140px) rotateX(-180deg);
              transform: perspective(140px) rotateX(-180deg);
      opacity: 0; 
    } 25%, 75% {
      -webkit-transform: perspective(140px) rotateX(0deg);
              transform: perspective(140px) rotateX(0deg);
      opacity: 1; 
    } 90%, 100% {
      -webkit-transform: perspective(140px) rotateY(180deg);
              transform: perspective(140px) rotateY(180deg);
      opacity: 0; 
    } 
  }
  
  @keyframes sk-foldCubeAngle {
    0%, 10% {
      -webkit-transform: perspective(140px) rotateX(-180deg);
              transform: perspective(140px) rotateX(-180deg);
      opacity: 0; 
    } 25%, 75% {
      -webkit-transform: perspective(140px) rotateX(0deg);
              transform: perspective(140px) rotateX(0deg);
      opacity: 1; 
    } 90%, 100% {
      -webkit-transform: perspective(140px) rotateY(180deg);
              transform: perspective(140px) rotateY(180deg);
      opacity: 0; 
    }
  }
