@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&family=Baloo+Bhaijaan+2:wght@400;500;600;700;800&family=Cairo:wght@200;300;400;500;600;700;800;900;1000&family=Changa:wght@200;300;400;500;600;700;800&family=El+Messiri:wght@400;500;600;700&family=Harmattan:wght@400;700&family=IBM+Plex+Sans+Arabic:wght@100;200;300;400;500;600;700&family=Marhey:wght@300;400;500;600;700&family=Markazi+Text:wght@400;500;600;700&family=Noto+Kufi+Arabic:wght@100;200;300;400;500;600;700;800;900&family=Tajawal:wght@200;300;400;500;700;800;900&display=swap');
body {
    font-family: 'Tajawal', sans-serif;
}
@media(max-width:960px) { 
    .offcanvas-body {
        width: 100vw;
    }
}
.table-repsonsive {
    overflow-y: visible !important;
}
@media (min-width: 768px) {
    .modal-xm {
        width: 100%;
        max-width:60vw
    }
    .modal-xl {
        width: 100%;
        max-width:90vw
    }
    .offcanvas-body {
        min-width: 300px;
    }
}
.offcanvas-title {
    width: 100%;
}
.offcanvas-title .btn-close {
    float: right;
}
.rights-modal-content .nav-item{
    background:aliceblue;
    margin:3px
}
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    font-weight: inherit;
}
.spinning {
    animation-name: spin;
    animation-duration: 5000ms;
    animation-iteration-count: infinite;
    animation-timing-function: linear; 
}

@keyframes spin {
    from {
        transform:rotate(0deg);
    }
    to {
        transform:rotate(360deg);
    }
}


form#search {
    margin-bottom: 0;
}

.offcanvas-end {
    width: auto;
    padding-left: 4rem;
}

.preview-file {
    margin-left: 6px;
    text-align: left;
    direction: ltr;
    cursor: unset;
}

.preview-file .delete-file {
    cursor:pointer;
    padding-right:4px;
}

.preview-file .download-file {
    cursor:pointer;
    padding-left:4px;
}

.modal div.dropdown-menu.open{
    max-height: unset !important;
    overflow: hidden;
}
.modal ul.dropdown-menu.inner{
    max-height: unset !important;
    overflow-y: auto;
}
.modal div.dropdown-menu.inner .inner.show {
    max-height: 100% !important;
}
.modal .dropdown-menu.settings .dropdown-menu.inner.show li {
    display: block;
}
/* .modal .dropdown .dropdown-menu.inner.show li{
    display: none;
} */
.modal .dropdown-menu.inner.show li:first-child,
.modal .show-all .dropdown-menu.inner.show li {
    display: block;
}
.dropdown-menu.show, .dropdown-menu.show .inner.show {
    min-height: auto !important;
}
#addAccModal.show {
    z-index: 1600;
}

.modal form .contact-details {
    position: relative;
}
.modal form .contact-details .remove-contact{
    position: absolute;
    top: 6px;
    right: 6px;
}

.jconfirm .jconfirm-box div.jconfirm-content-pane .jconfirm-content {
    min-height: 60px;
}

/* Each of the items in the list */
.custom-menu {
    display: none;
    z-index: 2000;
    position: absolute;
    background: rgb(255, 255, 255);
    border: 1px solid rgb(179, 179, 179);
    padding: 0;
}
.custom-menu li {
    padding: 8px 12px;
    cursor: pointer;
    list-style-type: none;
    transition: all .3s ease;
    user-select: none;
}

.custom-menu li:hover {
    background-color: #DEF;
}

#invoice-item-table .item-balance{
    float:left;
}

.invoice-back-btn {
    float: left;
}

#invoice_form #supplier_balance, #invoice_form #customer_balance {
    float: unset;
}
#invoice_form #add_supplier, #invoice_form #add_customer {
    float: right;
}

#invoice_form .recalculate {
    float: right;
}

.form-switch {
    padding:0;
}

/* .modal-backdrop {
    display: none;
} */
  
.modal {
    background: rgba(0, 0, 0, 0.5);
}
.dropdown-menu.settings, .dropdown.bootstrap-select {
    max-width: inherit;
}
.inp-number-group {
    display: flex;
    min-width: 260px;
}
.inp-number-group button {
    border-radius: 5px;
    border: 1px solid #888;
    width: 24px;
    padding-top: 0;
    padding-bottom: 0;
    text-align: center;
}
.inp-number-group input[type=number] {
    max-width: 40px;
    text-align: center;
    height: 100%;
}

.numToStr {
    text-align:center
}

@media (min-width: 1080px) {
    .modal#cheque .modal-dialog {
        width: 1000px !important;
    }
    ul.dropdown-menu.keepopen.settings.show {
        width: 380px;
    }
    .inp-number-group input[type=number] {
        max-width: 150px;
        text-align: center;
        height: 100%;
    }
}

#item_table tr .dragHandle, .item_table tr .dragHandle {
    cursor: grab;
    opacity: 0.5;
    max-height:10px;
    background-image: url(../imgs/drag.png);
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
}
#item_table tr.dragging, .item_table tr.dragging {
    opacity: 0.8;
    transition:0.25s;
    box-shadow: 0px 3px 12px #ddd;
    border: 2px dashed #888;
    background: #f3f3f3;
}

/* .modal-xl .modal-body {
    overflow: hidden;
} */

.scroll-to-first, .scroll-to-last {
    position: fixed;
    width: 30px;
    left: 0;
    transition: width 0.25s;
    margin-left: 20px;
    background: var(--primary) !important;
    border-color: var(--lighter) !important;
    color: var(--lighter) !important;
    border-radius: 50%;
}
.scroll-to-first {
    top: 70px;
}
.scroll-to-last {
    bottom: 10px;
}

/* .scroll-to-first:hover, .scroll-to-last:hover {
    width: 50px;
    transition: width 0.25s ease-in-out;
} */

table tr {
    vertical-align: middle;
}

.colors .color .box {
    display:inline-block;
    width:30px;
    height:30px;
    border-radius: 5px;
    border:2px solid #000;
    background:#F00;
    cursor:pointer;
}

.colors .color+.color  {
    margin-right:4px;
}

.colors .color input[type=checkbox], .colors .color input[type=radio] {
    display: none;
}

.colors .color input:checked+.box {
    border-color: transparent;
    opacity: 0.75;
}


/* Fix Voucher Table Columns */
/* Fix Voucher Debit & Credit Column */
.item_table th:not(:first-child):not(:last-child):not(.free-width) {
    min-width: 130px;
}
@media(max-width:960px) {
    #result table th:not(:first-child):not(:last-child):not(.free-width) {
        min-width: 140px;
    }
    #data_table td:not(:last-child):not(.free-width) {
        min-width: 140px;
    }
}
/* Fix Voucher Table Columns */

/* Custom Mode Styles */
.bg-primary {
    background-color: var(--primary) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

.bg-dark {
    background-color: var(--font-dark) !important;
}

.bg-light {
    background-color: var(--light) !important;
}

.bg-red {
    background-color: var(--font-red) !important;
}

.bg-green {
    background-color: var(--font-green) !important;
}

.bg-blue {
    background-color: var(--font-blue) !important;
}

.bg-navy {
    background-color: var(--font-navy) !important;
}

.bg-yellow {
    background-color: var(--font-yellow) !important;
}

.btn-main {
    background-color: var(--font-default) !important;
    color: var(--primary) !important;
}

.text-default {
    color: var(--font-default) !important;
}

.btn-main:hover {
    /* background-color: var(--secondary) !important;
    color: var(--font-default) !important; */
    opacity: 0.75;
}

.border, .border-top, .border-bottom, .border-start, .border-end, .modal-header, .modal-footer {
    border-color: var(--light)!important;
}

/* width */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

/* Track */
::-webkit-scrollbar-track {
    background: var(--light);
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: var(--lighter);
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

body, .offcanvas, .navbar {
    background-color: var(--primary);
    color:  var(--font-default);
}

.dropdown-menu {
    color:  var(--font-default);
}

.navbar-toggler {
    border: 2px solid var(--light);
    color: var(--font-default);
    padding: 5px 15px 10px;
}

.navbar .navbar-brand {
    color: var(--white);
}

.navbar-nav .nav-link {
    color: var(--font-default);
}

.btn-outline-dark {
    color: var(--font-default);
    border-color:var(--font-default);
}
.btn-check:active+.btn-outline-dark, .btn-check:checked+.btn-outline-dark, .btn-outline-dark.active, .btn-outline-dark.dropdown-toggle.show, .btn-outline-dark:active {
    color: var(--font-default);
    background-color: var(--light);
    border-color: var(--secondary);
}

.btn-close {
    filter: invert(1);
}
.offcanvas.show {
    border-color: var(--light);
}

.card, .modal-content, .jconfirm .jconfirm-box, .custom-menu {
    border-color: var(--font-default);
    background-color: var(--secondary);
    color: var(--font-default);
}

.card {
    box-shadow: 7px 4px 6px var(--secondary);
}

.card .accordion .accordion-button::after{
    filter: brightness(0.5);
}
.card .accordion .card-title {
    width: 100%;
    text-align: center;
}
.card .accordion .accordion-button:not(.collapsed), .card .accordion .link-default {
    color: var(--lighter);
    text-align: center;
}

.nav-tabs .nav-item {
    border-color: var(--light);
    background-color: var(--primary);
    color: var(--font-default);
}

.nav-tabs .nav-item .nav-link:not(.active) {
    color: var(--font-default);
}

.custom-menu li:hover {
    background-color: var(--light);
}
.table {
    color: var(--font-default);
    border-color: var(--light);
}

.table-striped>tbody>tr:nth-of-type(odd) {
    color: var(--font-default);
    background-color: var(--secondary);
}

.dropdown .btn-light.dropdown-toggle {
    color: var(--font-default);
    border-color: var(--light);
    background-color: var(--primary);
}

.bootstrap-select.dropdown .dropdown-toggle.btn-light, .form-control, .form-control:focus {
    color: var(--font-default);
    border-color: var(--light);
    background-color: var(--primary);
}
.input-group-text {
    color: var(--font-default);
    border-color: var(--light);
    background-color: var(--secondary);
}
::placeholder, .form-control::placeholder {
    color: var(--font-default);
    opacity: 0.8;
}
input:read-only {
    border-color: var(--light);
}

.form-control:disabled, .form-control[readonly] {
    background-color: var(--light);
    color: var(--font-default) !important;
    filter: opacity(0.85);
}

.dropdown-menu {
    background-color: var(--secondary);
}

.dropdown-menu .dropdown-item {
    color: var(--font-default);
}

.dropdown-menu .dropdown-item:hover {
    color: var(--secondary);
    background-color: var(--lighter);
}

.dropdown-menu .dropdown-item.active, .dropdown-menu .dropdown-item:active {
    color: var(--secondary);
    background-color: var(--font-default);
}

form#search > .row {
    background-color: var(--secondary) !important;
}

.page-item .page-link {
    background-color: var(--secondary);
    color: var(--font-default);
}

.page-item.active .page-link {
    background-color: var(--light);
    color: var(--font-default);
    border-color: var(--font-default);
}

.refresh-accounts img {
    filter: invert(1);
}

body > .container > .bg-light, #invoice_details_holder .bg-light{
    background-color: var(--secondary) !important;
    border-radius: 5px;
}
body > .container > .bg-light > table.bg-white {
    background-color: var(--primary) !important;
}

.alert.alert-secondary {
    background-color: var(--secondary);
    border-color: var(--font-default);
    color: var(--font-default);
}
.color-primary {
    color: var(--primary) !important;
}
.color-secondary {
    color: var(--secondary) !important;
}
.color-reset {
    color: unset !important;
}
/* Custom Mode Styles */

input[type=checkbox]:checked ~ .unchecked-warning {
    display:none;
}

.bg-primary-subtle {
    background-color:rgba(93, 135, 255, 0.1) !important;
}

.button-group .btn {
    margin-bottom: 12px;
    margin-right: 12px;
}

.btn.bg-primary-subtle.text-primary:not(.collapsed) {
    background: var(--bs-primary) !important;
    color: var(--bs-white) !important;
}

.previous-deductions-show:not(.collapsed) {
    transform: scale(1.015);
    transition: 0.25s ease-in-out;
    box-shadow: 6px 5px 5px #DDD;
    font-weight: bold;
    filter: hue-rotate(10deg);
}