@font-face {
    font-family: fontVazir;
    src: url(../fonts/Vazir.ttf) format("truetype");
    /*src: url(../fonts/BYekan.ttf) format("truetype");*/
}

:root {
    --fontFamily: fontVazir;
    --headerFooterColor: #03478A;
}

body, html {
    font-family: var(--fontFamily), serif;
    font-size: 0.95rem;
    margin: 0;
    padding: 0;
    direction: rtl;
    user-select: none;
    overflow: hidden;
    overscroll-behavior-y: contain;
}

#ppiHeader {
    background: var(--headerFooterColor) !important;
    height: 3rem;
    left: 0;
    right: 0;
    top: 0;
    position: fixed;
    z-index: 10;
    display: grid;
}

#containerBase {
    top: 3rem;
    bottom: 3rem;
    left: 0;
    right: 0;
    overflow-y: auto;
    overflow-x: hidden;
    position: fixed;
    display: inline;
    padding-bottom: 1rem;
}

#ppiFooter {
    background: var(--headerFooterColor);
    left: 0;
    right: 0;
    height: 3rem;
    position: fixed;
    bottom: 0;
    z-index: 10;
}

.logoImage {
    vertical-align: middle;
    height: 45px;
    margin-top: 0.3rem;
    float: left;
    margin-left: 2rem;
    padding-bottom: 0.1rem;
}

#pageName {
    color: white;
    width: 30%;
    text-align: right;
    margin-right: 2rem;
    float: right;
    margin-top: 1rem;
}

#imgMenu {
    margin-right: 2rem;
    cursor: pointer;
}

.ver {
    color: white;
    float: right;
    margin-top: 1rem;
    margin-right: 1rem;
    font-family: var(--fontFamily), serif;
    font-size: 0.8rem;
}

.copyright {
    color: white;
    float: left;
    margin-top: 0.8rem;
    margin-left: 0.2rem;
}

.dropdown {
    height: 4rem;
    float: right;
    margin-top: 0;
    margin-right: 1rem;
}

.form-control.is-invalid, .was-validated .form-control:invalid, .was-validated .form-control:valid {
    background-image: none !important;
    padding-left: 5px;
}

.copyrightImage {
    width: 40px;
    height: 40px;
    float: left;
    margin-top: 0.1rem;
    margin-left: 1rem;
}

::-webkit-scrollbar {
    width: 5px;
    border: 1px solid #d5d5d5;
}

::-webkit-scrollbar-track {
    border-radius: 10px;
    background: #eeeeee;
}

::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: coral;
}

.rowDetail {
    background: darkgrey;
    padding: 1rem 0 2rem;
    border-color: #3C3C3C;
    border-width: 2px;
    border-top: none;
}

.ltr {
    direction: ltr !important;
}

.textAlignRight {
    text-align: right !important;
}

.itemRight {
    float: right;
    text-align: right;
}

.itemCenter {
    text-align: center;
}

.itemLeft {
    float: left;
    text-align: left;
}

.isTrue {
    font-size: 1.2rem;
    color: green;
    width: 5rem;
}

@media screen and (max-width: 768px) {
    .inputWidth {
        width: 93% !important;
    }
}

@media screen and (min-width: 769px) {
    .inputWidth {
        width: 22rem !important;
    }
}

.isFalse {
    font-size: 1.2rem;
    color: red;
    width: 5rem;
}

input, button {
    border-radius: 5px !important;
}

input:focus {
    outline: none;
}

.headerIcon {
    width: 20px;
    height: 20px;
    margin-top: 0.8rem;
    cursor: pointer;
}

.menuButton {
    background: transparent;
    border: 0;
}

.menuButton:active {
    opacity: 0.2;
}

.btn-Custom {
    background: #0166C0;
    border-radius: 5px;
    color: white;
    width: 8rem;
}

.btn-Custom:focus {
    background: #004B89;
    color: white;
}

.btn-Custom:active, .btn-Custom:hover {
    background: #0166C0;
}

.inputDirLTR {
    direction: ltr;
}

.inputDirRTL {
    direction: rtl;
}

.ws {
    white-space: pre-wrap
}

.pr-30 {
    padding-right: 30%;
}

.h-5r {
    height: 5rem;
}

.wr-initial {
    word-wrap: initial;
}

.fs-11 {
    font-size: 11px;
}

.sticky-top {
    padding-top: 5px;
    padding-bottom: 5px;
    backdrop-filter: blur(10px) grayscale(100%);
}

.titleIcon {
    width: 16px;
    margin-left: 5px;
}

/*---------------------------------------- data table ----------------------------------------------------------------*/
table.dataTable tbody tr:hover {
    background-color: #BCC9D6;
}

table.dataTable tbody tr:active {
    background-color: #E0EDF7;
}

.selectedRew {
    background-color: #E0EDF7 !important;
}

table, .dataTables_wrapper table, table.dataTable {
    border: 1px solid black !important;
    border-collapse: collapse !important;
    padding: 1px;
    width: 100%;
}

table.dataTable thead tr, table.dataTable tfoot tr {
    background-color: #0166C0 !important;
    color: white !important;
    width: 100% !important;
}

table.dataTable thead th, table.dataTable tfoot th {
    text-align: center !important;
    font-weight: unset !important;
}

table.dataTable tbody td {
    text-align: center;
    font-weight: unset !important;
}

.columnTextRight {
    text-align: right !important;
}

.columnTextLeft {
    text-align: left !important;
}

.columnTextCenter {
    text-align: center !important;
}

th, td {
    border: 1px solid #0166C0;
    padding: 8px 1px;
    cursor: pointer;
}

.dataTables_empty {
    background-color: #EDEDED;
}

table.dataTable > thead > tr > th, table.dataTable > tbody > tr > td {
    padding: 10px 5px !important;
}

.dataTables_wrapper .dataTables_filter input {
    width: 20rem;
    margin-bottom: 0.1rem;
    float: right;
}

.dataTables_filter {
    float: right !important;
    width: 98% !important;
    margin-right: 1% !important;
}

.dataTables_filter label {
    width: 100% !important;
}

.dataTables_filter label input {
    width: 100% !important;
}

/*---------------------------------------------------------   dialog box   -------------------------------------------*/
.dialogModal {
    display: none;
    position: fixed;
    z-index: 100;
    padding-top: 3rem;
    padding-bottom: 2rem !important;
    left: 0;
    top: 0;
    width: 100%;
    height: calc(100% - 3rem);
    overflow-y: auto;
    overflow-x: hidden;
    background-color: rgba(0, 0, 0, 0.80);
}

.modal-content {
    position: relative;
    background-color: white;
    margin: auto;
    padding: 0 0 1rem;
    border: 1px solid #888;
    width: 100%;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    -webkit-animation-name: animateTop;
    -webkit-animation-duration: 0.5s;
    animation-name: animateTop;
    animation-duration: 0.5s;
    border-radius: 5px;
}

@-webkit-keyframes animateTop {
    from {
        top: -300px;
        opacity: 0
    }
    to {
        top: 0;
        opacity: 1
    }
}

.modal-body {
    padding: 2px 16px;
    border-radius: 5%;
}

/*---------------------------------------------------------   select2   ----------------------------------------------*/

.select2-selection, .select2-selection--single {
    line-height: 55px !important;
    border: none !important;
}

.select2 {
    width: 100% !important;
    border: 2px solid #75B798;
    border-radius: 7px !important;
}

.select2-container .select2-container--default {
    border: 2px solid #75B798;
    border-radius: 7px !important;
}

.select2-selection__clear, .select2-selection__arrow {
    visibility: hidden;
}

.select2-selection__rendered {
    margin-top: 20px;
    float: right !important;
    direction: rtl !important;
    font-family: var(--fontFamily), serif !important;
    width: 100%;
    text-align: right !important;
}

.select2-results__option {
    margin-top: 10px;
    float: right !important;
    direction: rtl !important;
    font-family: var(--fontFamily), serif !important;
    font-size: 1rem;
    width: 100%;
    text-align: right !important;
    padding-right: 7px;
}

.select2-search__field {
    direction: rtl;
}

.select2-dropdown, .select2-dropdown--below {
    background: #dddddd;
}

.selectLabel {
    margin-top: -12px;
    color: #8c8d8e;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: red;
    font-weight: bold;
    margin-right: 2px;
    margin-left: 7px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: transparent;
    border: 0;
    cursor: default;
    float: right;
    margin-right: 0 !important;
    margin-left: 3px;
    margin-top: 10px;
    padding: 0 5px;
    height: 35px;
}

.select2-results {
    border: solid 1px coral;
}

/*span .select2-container .select2-container--default .select2-container--open {*/
/*    width: 0 !important;*/
/*}*/

/*--------------------------------------------------   toggle switch   -----------------------------------------------*/
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 15px;
    bottom: -5px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 10px;
    width: 10px;
    left: 2px;
    bottom: 3px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/*------------------------------------------------------  box barcode scaner  ----------------------------------------*/
.box {
    --b: 3px; /* thickness of the border */
    --c: red; /* color of the border */
    --w: 30px; /* width of border */
    position: relative;
    display: inline-flex;
}

.box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--c, red);
    --_g: #0000 90deg, #000 0;
    --_p: var(--w) var(--w) no-repeat;
    --mask: conic-gradient(from 90deg at top var(--b) left var(--b), var(--_g)) 0 0    / var(--_p),
    conic-gradient(from 180deg at top var(--b) right var(--b), var(--_g)) 100% 0    / var(--_p),
    conic-gradient(from 0deg at bottom var(--b) left var(--b), var(--_g)) 0 100% / var(--_p),
    conic-gradient(from -90deg at bottom var(--b) right var(--b), var(--_g)) 100% 100% / var(--_p);
    -webkit-mask: var(--mask);
    mask: var(--mask);
}

/*-----------------------------------------------   tab   ------------------------------------------------------------*/
.tabLink {
    background-color: #f1efef;
    border-radius: unset !important;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    font-size: 15px;
}

.tabLink:hover {
    background-color: #e4e1e1;
    font-style: italic;
}

.tabContent {
    display: none;
}

/*--------------------------------------------------------------------------------------------------------------------*/