
:root
{
  --dark: rgb(2, 3, 5);
  --gray-100: #F0F1F3;
  --white: #fff;
  --transparent: rgba(255, 255, 255, 0.8);
  --red: rgb(245, 20, 20);
  --font-family: zar;
  --font-family-bold: zarBold;
  --lightGray: #F3F4F6;
  --blue: rgba(7, 153, 146,1.0);
}

@font-face{
  font-family: 'zar';
  src: url(../assets/fonts/bahij-regular.TTF);
}


@font-face{
  font-family: 'zarBold';
  src: url(../assets/fonts/bahij-bold.TTF);
}

@font-face{
  font-family: 'viga';
  src: url(../assets/fonts/Viga-Regular.ttf);
}

body{
    direction: rtl;
    font-family: var(--font-family);
    user-select: none;
}

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

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

/* Handle */
::-webkit-scrollbar-thumb {
background: var(--mainColor);
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: #555;
}
*
{
  transition: all 0.1s ease;
}


.alert
{
  padding: 5px 10px !important;
  border-radius: 0 !important;
  border-right: 5px solid var(--red);
}

.card{
  border: 0 !important;
  box-shadow: 5px 5px 15px var(--lightGray);
}

a
{
  text-decoration: none !important;
}
.btn{
  font-family: var(--font-family-bold) !important;
}
small
{
  color: gray;
  font-size: 0.8em !important;
}
small i
{
  font-size: 0.8em !important;
}
nav *
{
  text-align: right !important;
}
.navbar-expand-lg
{
  background-color: var(--mainColor) !important;
  z-index: 999;
  color: var(--white)
}

h1, h2, h3, h4, h5, h6, th, strong{
    font-family: zarBold;
}


form small
{
color: var(--red);
text-transform: capitalize;
}


/* ADMIN PANEL */
.admin-img
{
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--mainColor)
}
.admin-img img
{
  width: 100%;
  height: 60px;
  object-fit: cover;
  object-position: top;
}


.nav-link
{
font-family: var(--font-family-bold) !important;
font-size: 1.1em !important;
}
.main-wrapper
{
  display: flex;
}
.sidebar
{
 background-color: var(--dark);
 width: 200px;
 padding: 0px 15px;
 white-space: nowrap;
 height: 90vh;
 font-family: var(--font-family-bold);
}
.sidebar-header .logo span
{
 background-color: var(--dark);
 color: var(--white);
 padding: 0 5px;
 border-radius: 5px;
 cursor: pointer;
}

.sidebar-body
{
 margin: 35px 0;
}
.sidebar ul
{
 list-style: none;
 padding: 0;
}
.sidebar a
{
 text-decoration: none;
 color: var(--white)
}


.sidebar ul li
{
 /* padding: 0px 5px; */
 border-radius: 5px;
 margin: 10px 0;
}

@media screen and (max-width: 1300px)
{
  .sidebar ul li
{
 /* padding: 0px 5px; */
 border-radius: 5px;
 margin: 5px 0;
}
}

.sidebar ul li:hover
{
 background-color: var(--white);
}

.sidebar ul li:hover > a
{
 color: var(--dark);
}

.sidebar ul li a i
{
 margin-right: 8px;
}
.main-content
{
 padding:10px;
 color: var(--dark);
 width: 100%;
 max-height: 90vh;
 overflow-y: auto;
 overflow-x: hidden;
}

.sidebar.show-hide
{
 width: 60px;
}
.sidebar.show-hide .link-text
{
 opacity: 0;
}

/* PROFILE */
.profile-thumb
{
  cursor: pointer;
}
.profile-img
{
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  margin: 0 auto;
  border: 3px solid #fff;
}

input,
select,
textarea
{
  border-radius: 0 !important;
}

.profile-img img
{
  width: 100%;
  height: 50px;
  object-fit: cover;
  object-position: top;
}

.profile-nav
{
  background-color: var(--transparent);
  padding: 0px;
  border-radius: 10px;
  margin: 20px auto;
  position: absolute;
  right: 10px;
  width: 120px;
  translate: 0 50px;
  opacity: 0;
  transition: all .1s ease;
  z-index: 9999;
  box-shadow: 0 0 5px var(--gray-100);
  pointer-events: none;
}
hr
{
  margin: 8px 0 !important; 
}
.profile
{
  padding: 0 20px;
}
.profile-nav.toggle
{
  translate: 0 0px;
  opacity: 1; 
  pointer-events: auto;
}
.profile-nav::before
{
  content: "";
  display: block;
  position: absolute;
  width: 30px;
  height:  40px;
  border-radius: 5px;
  top: -10px;
  background-color: var(--transparent);
  rotate: 45deg;
  right: 15px;
  z-index: -1;

}

.profile-nav ul
{
  list-style: none;
  line-height: 2;
  padding: 0 15px;
  margin: 10px 0;
}
.profile-nav ul li a
{
  text-decoration: none;
  color: black;
}


/***************************************************************************
                         MEDIA QURIES
***************************************************************************/
@media screen and (max-width: 768px){
.sidebar-section
{
    position: fixed;
    top: 0;
    right: 400px;
    opacity: 0;
    z-index: 9999;
    pointer-events: none;
}

.toggle
{
    right: 0px;
    opacity: 1;
    pointer-events: auto;
}
#bar, #close, .nav-bar-opt
{
    display: block;
}
.sidebar
{
    position: fixed;
    z-index: 999;
    left: -400px;
    opacity: 1;
}
.sidebar.show-hide
{
    height: 100vh;
    width: 200px;
    right: 0;
    opacity: 1;

}
.sidebar.show-hide .link-text
{
    opacity: 1;
}

}
.search-table{
  display: none;
}
.search-table tr,
.search-table-debit tr
{
  cursor: pointer;
}
.search-table tr:hover,
.search-table-debit tr:hover{
  background-color: var(--bs-primary) !important;
  color: var(--white);
}
.dash-card{
  text-align: center;
}
.icon{
  font-size: 3em;
}


.profile-img1 img{
  width: 120px;
  aspect-ratio: 1/1;
  object-fit: cover;
}
.profile-img1{
  width: 120px;
  position: relative;
  margin: 0 auto
}
.profile-img1 a{
  position: absolute;
  bottom: 0;
  right: 0;
  border-radius: 20px;
  display: inline-block;
}
#print{
  position: absolute;
  bottom: -70px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2em;
  background-color: var(--white);
  color: var(--mainColor);
  padding: 10px 20px;
  border-radius: 0px 0px 30px 30px ;
  border: 2px solid var(--dark);
}
.save-us-pdf{
  border: none;
  background-color: var(--bs-warning  );
  padding: 10px 15px;
  position: fixed;
  left: 10px;
  bottom: 10px;
}

.login-bg{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: url(../assets/bg.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(5px);
}

.dash-card{
  position: relative;
  background-color: rgba(255, 94, 87,1.0);
  color: var(--white)
}
.dash-card span{
  position: absolute;
  left: 20px;
  font-size: 4em;
  opacity: 0.5;
}
.dash-card h1{
  font-family: Viga;
}

.dash-card a{
  position: absolute;
  left: 0;
  bottom: 0;
  background-color: rgba(255, 63, 52,1.0);
  width: 100%;
  color: var(--white);
  padding: 10px 0;
  text-align: center;
  font-family: zarBold;
}



/* suggestion*/
.suggestions {
    border: 1px solid #ccc;
    max-height: 150px;
    overflow-y: auto;
    background-color: white;
    position: absolute;
    width: 100%;
    z-index: 10;
}

.suggestions div {
    padding: 8px;
    cursor: pointer;
}

.suggestions div:hover {
    background-color: #f0f0f0;
}