@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&display=swap');
:root{
    --primary-color: #db792e;
    --font-color-primary: #db792e;
    --p-color: #353535;
    --white-color: white;
    --font-color-ternary: #ebc93b;
    --font-size: 16px;
}
body{
    width: 100%;
    font-family: 'Cairo', sans-serif !important;
}
@media (max-width: 280px) {
    html{
        font-size: 12px;
    }
}
/* start box  */
.d-flex{
    display: flex;
}
.f-wrap{
    flex-wrap: wrap;
}
.align-center{
    align-items: center;
}
.space-between{
    justify-content: space-between;
}
.d-grid{
    display: grid;
}
.d-block{
    display: block;
}
.gap-20{
    gap: 20px;
}
@media (max-width: 767px) {
    .block-mobile{
        display: block;
    }
}
@media(max-width: 767px){
    .hide-mobile{
        display: none;
    }
}

/*  end box  */
/* start padding + margin */
.p-10{
    padding: 10px;
}
.p-20{
    padding: 20px;
}
.p-15{
    padding: 15px;
}
.m-20{
    margin: 20px;
}
.mt-0{
    margin-top: 0;
}
.m-0{
    margin: 0;
}
.mt-5{
    margin-top: 5px;
}
.mt-10{
    margin-top: 10px;
}
.mt-20{
    margin-top: 20px;
}
.mb-20{
    margin-bottom: 20px;
}
.mb-5{
    margin-bottom: 5px;
}
/* end padding + margin */
/* start color */
.bg-white{
    background-color: white;
}
.bg-eee{
    background-color: #eee;
}    
.bg-blue{
    background-color: var(--blue-color);
}
.bg-green{
    background-color: var(--green-color);
}
.bg-orange{
    background-color: var(--orange-color);
}
.c-black{
    color: black;
}
.c-grey{
    color: var(--grey-color);
}
.c-blue{
    color: var(--blue-color);
}
.c-orange{
    color: var(--font-color-primary);
}
.c-green{
    color: var(--green-color);
}
.c-white{
    color: white;
}
.c-red{
    color: var(--red-color);
}
/* end color */
/* start position */
.p-relative{
    position: relative;
}
/* end position */
/* start font */
.txt-c{
    text-align: center;
}
.fs-14{
    font-size: 14px;
}
.fs-13{
    font-size: 13px;
}
.fs-25{
    font-size: 25px;
}
.fw-bold{
    font-weight: bold;
}
@media (max-width: 767px){
    .txt-c-mobile{
        text-align: center;
    }
}
/* end font */
/* start border */
.rad-6{
    border-radius: 6px;
}
.rad-10{
    border-radius: 10px;
}
.b-none{
    border: none;
}
/* end border */
/* start width */
.w-full{
    width: 100%;
}
.w-fit{
    width: fit-content;
}
/* end width */
/* start components */
.center-flex{
    display: flex;
    align-items: center;
    justify-content: center ;
}
.between-flex{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.btn-shape {
    padding: 4px 10px;
    border-radius: 6px;
}
/* end components */

*{
    box-sizing: border-box;
}

body{
    font-family: "Open Sans", sans-serif;
    margin: 0;
}

*:focus{
    outline: none;
}

a{
    text-decoration: none;
}

.page{
    background-color: #f1f5f9;
    min-height: 100vh;
}

ul{
    list-style: none;
    padding: 0 !important;
    padding-left: 16px;
    margin: 0;

}

/* start sidebar */
.sidebar{
    width: 250px;
    background-color:#333333;
}
.text-center{
    margin-bottom: 15px;
}
.text-center img{
    width: 70px;
}
@media (max-width: 768px) {
    .text-center img{
        width: 35px;
    }   
}
.sidebar .text-center > h3{
    margin-bottom: 50px;
    margin-top: 15px;
    font-size: 1.6rem;
    color: var(--white-color);
}
@media (max-width: 767px){
    .sidebar .text-center h3{
        font-size: 11px;
        margin-right: 0px;
    }
}

.sidebar .text-center > h3::before{
    content: "";
    width: 120px;
    height: 2px;
    background-color: var(--font-color-primary);
    position: absolute;
    bottom: -20px;
    transform: translateX(-50%);
    left: 50%;
}

.sidebar .text-center > h3::after{
    content: "";
    width: 16px;
    height: 16px;
    background-color: #333333;
    position: absolute;
    border-radius: 50%;
    bottom: -27px;
    left: 50%;
    transform: translateX(-50%);
    border: 2px solid var(--font-color-primary);
    color: var(--font-color-primary);
}
@media (max-width: 768px) {
    .sidebar .text-center h3::before{
        width: 50px;
    }
}
.sidebar ul li a{
    transition: 0.3s;
    margin-bottom: 5px !important;
    margin: 0 0px ;
    text-decoration: none;
    padding: 10px;
    color: var(--white-color);
}

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

.sidebar ul li a:active{
    background-color: var(--primary-color);
}
.sidebar ul li a i{
    color: var(--orange-color);
}

.sidebar ul li a span{
    font-size: 18px;
    margin-right: 16px;
    color: var(--white-color);
}
.sidebar ul li a:active i{
    color: var(--font-color-primary);
}
.sidebar ul li a:active span{
    color: var(--font-color-primary);
}
@media (max-width :768px){
    .sidebar ul li button{
        font-size:  10.5px !important;
    }
    .buttons-group button{
        font-size:  10.5px !important;
    }
    .content a{
        font-size: 13px;
    }
}
.content{
    overflow-y: auto;
}

.active{
    background-color: var(--primary-color);
}

@media (max-width: 767px){
    .sidebar{
        width: 58px;
        padding: 10px;
    }

    .sidebar > h3{
        font-size: 13px;
        margin-bottom: 15px;
    }

    .sidebar > h3::before,
    .sidebar > h3::after{
        display: none;
    }

    .sidebar ul li a{
        margin: 0 0 5px 0;
    }
    .sidebar ul li a span {
        display: none;
    } 
}
/* end sidebar */
/* start content */
.content{
    overflow: hidden;
}
.head{
    background-color: #333333;
}
.head .search::before{
    font-family: var(--fa-style-family-classic);
    content: "\f002";
    font-weight: 900;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--grey-color);
}

.head .search input{
    border: 1px solid #ccc;
    border-radius: 10px;
    margin-left: 5px;
    padding-left: 30px;
    padding: 0;
    width: 160px;
    transition: width 0.3s;
}

.head .search input:focus{
    width: 200px;

}

.head .search input:focus::placeholder{
    color: transparent;
}

.head .icons .notification::before {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--red-color);
    border-radius: 50%;
    right: -5px;
    top: -5px;
}

.head .icons img{
    width: 32px;
    height: 32px;
    margin-left: 15px;
}

.page .head h2{
    margin: 20px 20px 40px;
    font-size: 1.5rem;
    color: white;
}

.page .head h2::before,
.page .head h2::after{
    content: "";
    height: 3px;
    position: absolute;
    bottom: -10px;
    right: 0;
}

.page .head h2::before{
    background-color: #d87d362c;
    width: 120px;
}

.page .head h2::after{
    background-color: var(--font-color-primary);
    width: 80px;
}

.wrapper{
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    margin-left: 20px;
    margin-right: 20px;
}

@media (max-width: 767px){
    .wrapper{
        grid-template-columns: minmax(200px, 1fr);
        margin-left: 10px;
        margin-right: 10px;
        gap: 10px;
    }
}
/* end content */
/* start welcome widget */
.welcome {
    overflow: hidden;
}
.welcome .intro img{
    width: 200px;
    margin-bottom: -10px;
}
.welcome .avatar{
    width: 64px;
    height: 64px;
    border: 2px solid white;
    border-radius: 50%;
    padding: 2px;
    box-shadow: 0 0 5px #ddd;
    margin-left: 20px;
    margin-top: -32px;
  
}
.welcome .body{
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.welcome .body > div{
    flex: 1;
}

.welcome .visit {
    margin: 0 15px 15px auto;
    transition: 0.3s;
}

.welcome .visit:hover {
    background-color: var(--blue-alt-color);
}

@media(max-width: 767px){
    .welcome .intro {
        padding-bottom: 30px;
    }
    .welcome .avatar{
        margin-left: 0;
    }
    .welcome .body > div:not(:last-child){
        margin-bottom: 20px;
    }
}
/* end welcome widget */
/* Start Quick Draft */
.quick-draft textarea{
    resize: none;
    min-height: 180px;
}
.quick-draft .save{
   margin-left: auto;
   transition: 0.3s;
   cursor: pointer;
}
.quick-draft .save:hover{
   background-color: var(--blue-alt-color);
 }
/* end Quick Draft */
/* Start targets */
.targets .target-row .icon {
    width: 80px;
    height: 80px;
    margin-right: 15px;
  }
  .targets .details {
    flex: 1;
  }
  .targets .details .progress {
    height: 4px;
  }
  .targets .details .progress > span {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
  }
  .targets .details .progress > span span {
    position: absolute;
    bottom: 16px;
    right: -16px;
    color: white;
    padding: 2px 5px;
    border-radius: 6px;
    font-size: 13px;
  }
  .targets .details .progress > span span::after {
    content: "";
    border-color: transparent;
    border-width: 5px;
    border-style: solid;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
  }
  .targets .details .progress > .blue span::after {
    border-top-color: var(--blue-color);
  }
  .targets .details .progress > .orange span::after {
    border-top-color: var(--orange-color);
  }
  .targets .details .progress > .green span::after {
    border-top-color: var(--green-color);
  }
  .blue .icon,
  .blue .progress {
    background-color: rgb(0 117 255 / 20%);
  }
  .orange .icon,
  .orange .progress {
    background-color: rgb(245 158 11 / 20%);
  }
  .green .icon,
  .green .progress {
    background-color: rgb(34 197 94 / 20%);
  }
/* end targets */
/* Start tickets */
.tickets .box{
    border: 1px solid #ccc;
    width: calc(50% - 10px);
    
}
@media (max-width: 767px){
    .tickets .box{
        width: 100%;
    }
}
/* end tickets */
/* Start Projects Table */
.projects .responsive-table {
    overflow-x: hidden;
  }
@media (max-width: 768px) {
    .projects .responsive-table {
        overflow-x: auto;
    }
}
  .projects table {
    min-width: 1000px;
    border-spacing: 0;
    border-bottom: 3px solid var(--primary-color);
  }
  
  .projects thead td {
    background-color: var(--primary-color);
    color: var(--white-color);
    font-weight: bolder;
    font-size: 1.2rem;
  }
  .projects table td {
    padding: 15px;
  }
  .projects tbody td {
    border-bottom: 1px solid #eee;
    border-left: 1px solid #eee;
    transition: 0.3s;
    color: var(--p-color);
    font-weight: 500;
  }
  .projects table tbody tr td:last-child {
    border-right: 1px solid #eee;
  }
  .projects tbody tr:hover td {
    background-color: #faf7f7;
  }
  .projects table img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    padding: 2px;
    background-color: white;
  }
  .projects table img:not(:first-child) {
    margin-left: -20px;
  }
  .projects table .label {
    font-size: 13px;
  }
  
  /* Adjust the width of the first three columns */
  .projects table td:nth-child(1),
  .projects table td:nth-child(2),
  .projects table td:nth-child(3) {
    width: 16%;
  }
  .projects table td:nth-child(4) {
    width: auto; /* Let the last column take the remaining space */
  }
  
  /* End Projects Table */
/* Start Latest News */
.latest-news .news-row:not(:last-of-type) {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
  }
  .latest-news .news-row img {
    width: 100px;
    border-radius: 6px;
    margin-left: 15px;
  }
  .latest-news .info {
    flex-grow: 1;
  }
  .latest-news .info h3 {
    margin: 0 0 6px;
    font-size: 16px;
  }
.buttons-group{
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.btn{
    padding: 5px 5px !important;
}
.btn-success{
    margin-top: 20px;
    width: 150px;
}
  @media (max-width: 767px) {
    .latest-news .news-row {
      display: block;
    }
    .latest-news .news-row .label {
      margin: 10px auto;
      width: fit-content;
    }
  }  
/* End Latest News */
/* Start create Rich text */
.form-control:focus{
    border-color: #f767006e;
    box-shadow: none;
}
div input::placeholder{
    text-align: right;
}
.form-control{
    direction: rtl;
}
form div input:focus{
    box-shadow: none !important;
    outline: none !important;
    border-color: #db792e5a !important;
}
form div select:focus{
    box-shadow: none !important;
    outline: none !important;
    border-color: #db792e5a !important;
}
.editor-container div{
    direction: ltr;
    max-height: 600px;
}
/* End create Rich text */

.editor-container div{
    direction: ltr;
    max-height: 600px;
    max-width: 800px;
}