/*-----------------------------
          Custom Arabic font
-------------------------------*/
@font-face {
    font-family: "Droid Arabic Kufi";
    font-weight: normal;
    font-style: normal italic;
    src: url(../fonts/DroidKufi-Regular.woff2) format('woff2');
}

@font-face {
    font-family: "Droid Arabic Kufi";
    font-weight: bold;
    font-style: normal italic;
    src: url(../fonts/DroidKufi-Bold.woff2) format('woff2');
}

:root {
    --green-color: #367d3c;
    --rgb-green-color: 51, 123, 57;
    --default-font-family: "droid arabic kufi", "poppins", arial, sans-serif;
    --dark-color: #212529
}

html {
    font-size: 14px;
}


body {
    margin-bottom: 0;
    direction: rtl;
    background-color: rgb(51 123 57 / 16%);
    font-family: var(--default-font-family);
    font-size: 14px;
}

.text-success {
    color: var(--green-color) !important
}

.text-warning {
    color: #ffc107 !important
}
.text-dark {
    color: var(--dark-color) !important;
}
.flex-grow-100 {
    flex: 0 0 100%;
}
.media{
    display: grid;
    grid-template-columns: 30px 1fr;
    & .media-img img{
       
    }
    & .media-body{
& h6{
    
}
& p{
    
}
    }
}
/*-----------------------
     Header Navbar
 ---------------------*/
.navbar {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    background-color: var(--green-color) !IMPORTANT;
    border-bottom: 1px solid #ccc;
    box-shadow: 0 2px 4px rgba(204, 204, 204, 0.5);
    margin-block-end: 1rem;
    & .navbar-brand

{
    margin-right: 1.4rem;
    & img

{
    width: 60px;
}

& h5 {
    color: #fff;
    font-size: 1.10rem;
}

}

& .lang-switcher {
    border-inline: 1px solid var(--bs-white);
    padding-inline: 0.7rem;
    margin-inline: 1rem;
    line-height: 1;
    & a

{
    color: var(--bs-white);
    text-decoration: none;
}

}
}

/*--------------------
        Heading
-----------------------*/
.h1, h1 {
    font-size: 1.8rem;
    font-weight: 600 !IMPORTANT;
}

h4 span {
    display: inline-block;
}

.h3, h3 {
    color: var(--green-color);
}

:is(h1, h2, h3, h4, h5, h6) {
    &:has(.heading-detail)

{
    display: flex;
    padding-inline-start: 1rem;
    align-items: center;
}

& .heading-detail {
    border-inline-start: 1px solid currentColor;
    font-size: 60%;
    margin-inline-start: 1rem;
    padding-inline-start: 1rem;
    & b i

{
    margin-inline-start: 1rem;
    color: #212529;
    font-weight: normal;
}

}
}

.link-heading {
    &> :is(.btn)

{
    margin-inline-start: 1rem;
    position: relative;
    &:before

{
    content: '';
    position: absolute;
    display: inline-block;
    inset-block: 1.4px;
    inset-inline-start: -1rem;
    background-color: var(--bs-body-color);
    inline-size: 2px;
}

}
}

.heading-detail {
    display: flex;
    align-items: center;
    border-inline-end: 1px solid currentColor;
    font-size: 1.3rem;
    & b i

{
    margin-inline-end: 1rem;
    color: #212529;
    font-weight: normal;
}

}



/*----------------------------
    Utility Classes
----------------------------*/
.dir-ltr {
    direction: ltr;
}

.c-pointer {
    cursor: pointer;
}

/*---------------------------
    main
-------------------------*/
.card {
    border: 1px solid var(--green-color);
    border-radius: 2rem;
    &:not(:last-child)

{
    margin-block-end: 1rem;
}

& .card-body {
    padding: 2.5rem 2rem;
}

}

.row > [class^=col-] {
    margin-block-end: 0.7rem;
}

.back-to-page {
    position: fixed;
    inset-inline-start: 1.2vw;
    inset-block-end: 0.3vw;
    font-size: 29px;
    cursor: pointer;
    z-index: 2;
    &:has(.bi.bi-arrow-right),&:has(.bi.bi-arrow-right):is(:focus,:hover,:active,:active:focus)

{
    color: var(--bs-body-color) !important;
    box-shadow: none;
}

}
/*----------File Upload----------------*/
#fileDrag {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 1.25rem;
    text-align: center;
    padding: 2em 0;
    aspect-ratio: 4 / 1;
    border-radius: 2.4rem 2.4rem 0 0;
    outline: 2px dashed var(--green-color);
    outline-offset: 0;
    transition: outline-offset .15s ease-in-out, background-color .15s linear;
    &.hover {
        color: #bb2d3b;
        border-color: #bb2d3b;
        border-style: solid;
        box-shadow: inset 1px -2px 10px 6px rgb(0 0 0 / 18%);
        outline: 2px dashed #bb2d3b;
    }
    & input[type=file] {
        opacity:0;
        position: absolute;
        height: 100%;
        width: 100%;
    }
   
}

.uploaded-img {
    display: flex;
    column-gap: 1rem;
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.7rem;
    box-shadow: 1px 1px 13px 1px rgb(0 0 0 / 9%);
    & .detail {
        flex: 1;
        display: flex;
        
    }
   & img {
        width: 100px;
        height: 70px;
        object-fit: contain;
        margin-inline-end: 1rem
    }
} 
/*---------------------------
    Form
-------------------------*/
input:is([type=text], [type=number], [type=password]):is( :-webkit-autofill, :-webkit-autofill:hover, :-webkit-autofill:focus, :-webkit-autofill:active ) {
    transition: background-color 5000s ease-in-out 0s;
}

:is(.form-control, .form-select):focus {
    outline: none;
    border-color: var(--green-color);
    box-shadow: none;
}

.search-form {
    & :is(.form-control, .form-select)

{
    border-width: 0 0 1px 0;
    border-radius: 0;
    padding-inline: 0;
}

& .btn:focus {
    outline: none;
    box-shadow: none;
}

}

:is(.col-form-label, label) {
    color: var(--green-color);
    &:has(+ :is(.form-control, .form-select))

{
    margin-block-end: 0.25rem;
}

}

input:is([type=radio], [type=checkbox]) {
    accent-color: var(--green-color);
    width: 18px;
    height: 18px;
    &:has(+ label)

{
    vertical-align: top;
    margin-inline-end: 0.4rem;
    margin-block-end: 0.5rem;
}

}


label + input:is([type=radio], [type=checkbox]) {
    vertical-align: middle;
}

/*---------Buttons----*/
.btn {
    &+.btn

{
    margin-inline-start: 0.7rem;
}

& > .bi {
    margin-inline-end: 0.5rem;
    font-size: 20px;
    vertical-align: sub;
    line-height: 1;
}

}

.btn-primary {
    background-color: var(--green-color);
    border-color: var(--green-color);
    &:is(:hover, :focus, :ative, :acive:focus)

{
    background-color: var(--green-color);
    border-color: var(--green-color);
    box-shadow: 0 0 0 .25rem rgba(var(--rgb-green-color), 0.16) !important;
}

}


.btn-outline-primary {
    border-color: var(--green-color);
    color: var(--green-color);
    &:is(:hover, :focus, :ative, :acive:focus)

{
    background-color: var(--green-color);
    border-color: var(--green-color);
    color: var(--bs-white);
    box-shadow: 0 0 0 .25rem rgba(var(--rgb-green-color), 0.16) !important;
}

}

.btn-outline-dark {
    color: var(--bs-body-color);
    border-color: var(--bs-body-color);
    &:is(:hover, :focus, :ative, :acive:focus)

{
    color: var(--bs-white);
    border-color: var(--bs-body-color);
    background-color: var(--bs-body-color);
}

}

/*---------------------------
    Footer
---------------------------*/
footer {
    background-color: var(--green-color);
    color: #fff !important;
    & p.text-muted

{
    color: #fff !important;
}

}

/*-------------------------
        Table
----------------------------*/
.table {
    &.fixed-inline-start :is(thead tr th,tbody tr td):first-child {
        position: sticky;
        inset-inline-start: 0;
        z-index: 5;
        white-space: nowrap;
    }
    &.fixed-inline-start > tbody > tr:hover > :is(th, td):first-child {
        background-color: #fff;
    }
    /*----------Table fixed right side----*/
    &.fixed-inline-end :is(thead tr th,tbody tr td):last-child {
    position: sticky;
    inset-inline-end: 0;
    z-index: 5;
    white-space: nowrap;
    }
    &.head-border thead th{
        border-width: 0 0 0 1px;
        white-space: nowrap;
    }
    &:not(.balance-table,.tbl-agentcashbalance,.fixed-inline-start,.fixed-inline-end) tbody tr:hover :is(th, td){
    background-color: rgba(var(--rgb-green-color), 0.16);
}

&:has(tbody td.actions) thead th:last-child {
    text-align: center;
}

& tbody td.actions:last-child {
    white-space: nowrap;
    text-align: center;
}

& tbody td.actions :is(a, button, .btn) {
    color: var(--green-color);
    line-height: 1;
}

    & tbody td.actions :is(a, button, .btn) + :is(a, button, .btn) {
        border-inline-start: 1px solid var(--green-color);
        padding-inline-start: 0.4rem;
        display: inline-block;
    }

& thead {
    position: sticky;
    top: 0;
    background-color: #fff;
    & th

{
    border-block: 1px solid var(--green-color) !IMPORTANT;
    color: #547d3f;
    padding: 0.8rem .5rem;
}

}
}

:is(.table, .balance-table) {
    border-collapse: separate;
    border-spacing: 0;
    & :is(th, td)

{
    background-color: #fff;
}

}

/*----Balance Table------*/
.table.balance-table {
    & tbody

{
    border-inline: 1px solid #dee2e6;
    & td:nth-child(3)

{
    border-inline-end: 1px solid #dee2e6;
}

& tr td:hover {
    background-color: rgba(var(--rgb-green-color), 0.16);
    cursor: pointer;
}

}
}

.table.balance-table tbody tr:has(td:is(:first-child, :nth-child(2),:nth-child(3)):hover) td:is(:nth-child(2),:nth-child(3), :first-child) {
    background-color: rgba(var(--rgb-green-color), 0.16);
}

.table.balance-table tbody tr:has(td:is(:last-child, :nth-last-child(2),:nth-last-child(3)):hover) td:is(:nth-last-child(2),:nth-last-child(3), :last-child) {
    background-color: rgba(var(--rgb-green-color), 0.16);
}
.table:is(.tbl-agentcashbalance) tbody tr:has(td:is(:first-child, :nth-child(2),:nth-child(3),:nth-child(4)):hover) td:is(:nth-child(2),:nth-child(3),:nth-child(4), :first-child) {
    background-color: rgba(var(--rgb-green-color), 0.16);
}

.table:is(.tbl-agentcashbalance) tr:has(td:is(:last-child, :nth-last-child(2),:nth-last-child(3),:nth-last-child(4)):hover) td:is(:nth-last-child(2),:nth-last-child(3),:nth-last-child(4), :last-child) {
    background-color: rgba(var(--rgb-green-color), 0.16);
}


.table.balance-table thead tr th:is(:first-child, :nth-last-child(3)) {
    border-start-start-radius: 2rem;
}

.table.balance-table thead tr th:is(:nth-child(3), :last-child) {
    border-start-end-radius: 2rem;
}
.tbl-agentcashbalance :is(tbody,thead) :is(th,td):nth-child(4){
    border-inline-end: 1px solid #dee2e6;
}
.btnCashBalance{
        color:var(--green-color);
        font-size: 18px;
        vertical-align: initial;
        position: relative;
        display: inline-block;
        padding: 2px 5px 1px;
        border:1px solid #fff;
        line-height: 0;
        background-color: #fff;
        border-radius: 4px;
}
.btnCashBalance::after{
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    inset-inline-start: 6px;
    inset-block-start: 10px;
    z-index: 2;
    background-color: #fff;
}
.btnCashBalance:hover{
    border-color: var(--green-color);
    box-shadow: 1px 1px 2px 0px var(--green-color);
}
/*--------------------------
    Loader
--------------------------*/
.inline-loader {
    position: relative;
    &:after

{
    content: "";
    position: absolute;
    background: url(../images/notch-loader.gif) no-repeat;
    background-size: 75px;
    background-position: center;
    inline-size: 60px;
    block-size: 60px;
    margin-inline-start: -30px;
    inset-block-start: 50%;
    inset-inline-start: 50%;
    /*transform: translate(-50%,-50%);*/
    z-index: 55;
}

&:before {
    content: '';
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    block-size: 100%;
    inline-size: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 50;
    border-radius: 2rem;
}

}

.block-loader {
    &:before

{
    position: fixed;
    content: '';
    position: fixed;
    inset-block-start: 0;
    inset-inline-start: 0;
    block-size: 100%;
    inline-size: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 2000;
}

&:after {
    content: "";
    position: fixed;
    background: url(../images/ellipsis.gif) no-repeat;
    background-size: 75px;
    background-position: center;
    inline-size: 80px;
    block-size: 60px;
    margin-inline-start: -40px;
    inset-block-start: 50%;
    inset-inline-start: 50%;
    /*transform: translate(-50%,-50%);*/
    z-index: 2005;
}

}

/*------------------------
    Custom Scrollbar
------------------------*/
body::-webkit-scrollbar {
    width: 10px;
    -webkit-appearance: none;
}

.table-responsive::-webkit-scrollbar {
    width: 7px;
    height: 7px;
    -webkit-appearance: none;
}

::-webkit-scrollbar-thumb {
    background-color: #BDBDBD;
    border-radius: 4px;
    border: 2px solid #BDBDBD;
    height: 40px;
}

::-webkit-scrollbar-track {
    border-radius: 4px;
    background-color: #E0E0E0;
    border: 2px solid #E0E0E0;
    margin: 0;
}

.table-responsive::-webkit-scrollbar-track {
    margin-block: 50px 30px;
}

/*--------------------
Login
----------------------*/
:is(html,body):has(.log-layout) {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.log-layout {
    width: 500px;
    max-width: 100%;
    margin-inline: auto;
    & .btn.btn-lg

{
    font-size: 1.1rem;
    padding: 0.7rem 1rem;
}

& .logo-heading {
    margin-block-end: 2rem;
    font-size: 2rem;
    & img

{
    width: 70px;
    margin-inline-end: 0.9rem;
}

}

& .form-group + .form-group {
    margin-block-start: 1rem;
}

& .card-body {
    padding: 2.5rem 3rem 3.2rem;
}

& .input-group {
    border-block-end: 1px solid #ced4da;
    overflow: hidden;
    border-radius: 0;
    & .input-group-text

{
    background-color: #fff;
    border: 0;
    padding-inline-end: 2px;
    & .bi

{
    font-size: 20px;
}

& .vr {
    align-self: inherit;
    margin-inline: 0.3rem 0.6rem;
    opacity: 1;
}

}

& :is(.form-control,.form-select) {
    border: 0;
    padding-inline: 0;
}

&:focus-within {
    border-color: var(--green-color);
    & .bi

{
    color: var(--green-color);
}

}
}
}
