html, body, .font1 {
    font-family: "Vazir", serif;
}
th, .font2 {
    font-family: "BTitr", serif;
}

.form-select {background-position: left .75rem center;}
.tr-strip {background-color: #ccc;}

.d-rtl {direction: rtl;}
.d-ltr {direction: ltr;}

.fw-thin {font-weight: 100!important;}
.fw-extralight {font-weight: 200!important;}
.fw-light {font-weight: 300!important;}
.fw-regular {font-weight: 400!important;}
.fw-medium {font-weight: 500!important;}
.fw-semibold {font-weight: 600!important;}
.fw-bold {font-weight: 700!important;}
.fw-extrabold {font-weight: 800!important;}
.fw-black {font-weight: 900!important;}

.text-start {text-align: right !important;}
.text-end {text-align: left !important;}

.w-30px {width: 30px;}

.pos-absolute-center {
    position: absolute;
    top: 50%;
    left: 50%;
    -moz-transform: translateX(-50%) translateY(-50%);
    -webkit-transform: translateX(-50%) translateY(-50%);
    -o-transform: translateX(-50%) translateY(-50%);
    -ms-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
}

.bg-darkgreen { background-color: #356d43 !important; }
.bg-darkblue { background-color: #35436d !important; }
.bg-darkred { background-color: #6d3543 !important; }
.bg-lightinfo { background-color: #e7f4f7 !important; }
.bg-lightdanger { background-color: #f3dddf !important; }
.bg-lightwarning { background-color: #faf0d1 !important; }
.bg-lightsuccess { background-color: #c0e6d5 !important; }
.bg-lightblue { background-color: #e3e7f2 !important; }
.bg-lightsecondary { background-color: #bcc0ca !important; }

.border-y {border-top-width: 1px; border-bottom-width: 1px; border-top-color: #cccccc; border-bottom-color: #cccccc; border-top-style: solid; border-bottom-style: solid;}
.border-y-2 {border-top-width: 2px; border-bottom-width: 2px; border-top-color: #cccccc; border-bottom-color: #cccccc; border-top-style: solid; border-bottom-style: solid;}
.border-x {border-right-width: 1px; border-left-width: 1px; border-right-color: #cccccc; border-left-color: #cccccc; border-right-style: solid; border-left-style: solid;}
.border-x-2 {border-right-width: 2px; border-left-width: 2px; border-right-color: #cccccc; border-left-color: #cccccc; border-right-style: solid; border-left-style: solid;}
.border-s {border-left-color: #cccccc; border-left-style: solid; border-left-width: 1px;}
.border-s-2 {border-left-color: #cccccc; border-left-style: solid; border-left-width: 2px;}
.border-e {border-right-color: #cccccc; border-right-style: solid; border-right-width: 1px;}
.border-e-2 {border-right-color: #cccccc; border-right-style: solid; border-right-width: 2px;}
.border-color-gray, .border-color-gray * {
    border-color: #555555;
}

.table > :not(caption) > * > * {
    padding: 0.4rem 0.5rem;
    padding: 0.2rem 0.5rem;
}

.table tbody td { color: #000; }



.row_id {width: 50px;}
.row_code {width: 140px;}
.row_title_end {width: 120px;}
.row_amount {width: 80px;}
.row_unit {width: 80px;}
.row_price {width: 140px;}
.row_total {width: 140px;}

@media print {
    .container {max-width: 100%;}

    .print-container .row_id {width: 50px;}
    .print-container .row_code {width: 60px;}
    .print-container .row_title_end {width: 100px;}
    .print-container .row_amount {width: 30px;}
    .print-container .row_unit {width: 60px;}
    .print-container .row_price {width: 100px;}
    .print-container .row_total {width: 100px;}

    .hide-print {display: none;}

    .px-5-print {
        padding-right: 2rem !important;
        padding-left: 2rem !important;
    }
}
@media screen {
    .show-print {display: none;}
    body {
        padding-top: 120px;
        padding-bottom: 100px;
    }
}

#plus_2, #plus_3, #plus_4, #plus_5, #plus_6, #plus_7
, #minus_2, #minus_3, #minus_4, #minus_5, #minus_6, #minus_7
, [id^="plus_"], [id^="minus_"]
{
    text-decoration: none;
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 32px;
    font-size: 22px;
    font-weight: bold;
    background-color: blue;
    color: #ffffff;
    text-align: center;
    -webkit-border-radius: 20px;
    border-radius: 20px;
    position: absolute;
    right: 0;
    bottom: -42px;
}
#minus_2, #minus_3, #minus_4, #minus_5, #minus_6, #minus_7
, [id^="minus_"]
{
    background-color: red;
    right: 42px;
    bottom: -42px;
}

#target_2, #target_3, #target_4, #target_5, #target_6, #target_7
, [id^="target_"]
{
    display: none;
}




#mohr_shod {
    width: 230px;
    height: auto;
    position: absolute;
    bottom: 80px;
    left: 20px;
}
#mohr_shod2 {
    height: 120px;
    width: auto;
    max-width: 100%;
}


@page { size: a4;  margin: 0mm; }

.print-container {
    max-width: 820px;
    margin: 5vh auto;
}
.print-container .row {
    margin: 0;
}
.print-container table td {
    font-size: 14px;
}
#factor_bg_img, #factor_bg_img_footer {
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 20% !important;
    image-rendering: pixelated;

    object-fit: cover;
    object-position: top center;
}
#factor_bg_img_footer {
    bottom: -150px;
    object-position: bottom center;
}
@media print {
    .print-container {
        margin: 0 10px;
        margin: 0 auto !important;
    }
    .table-bordered td {border-width: 2px;}
    #factor_bg_img {
        position: fixed;
        z-index: -1;
        width: 100vw;
        height: 141.4285vw !important;
        height: 100% !important;

        object-fit: unset;
        object-position: unset;
    }
    #factor_bg_img_footer {
        display: none;
    }
}





.fs-6 {font-size: 6px;}
.fs-7 {font-size: 7px;}
.fs-8 {font-size: 8px;}
.fs-9 {font-size: 9px;}
.fs-10 {font-size: 10px;}
.fs-11 {font-size: 11px;}
.fs-12 {font-size: 12px;}
.fs-13 {font-size: 13px;}
.fs-14 {font-size: 14px;}
.fs-15 {font-size: 15px;}
.fs-16 {font-size: 16px;}
.fs-17 {font-size: 17px;}
.fs-18 {font-size: 18px;}
.fs-19 {font-size: 19px;}
.fs-20 {font-size: 20px;}
.fs-21 {font-size: 21px;}
.fs-22 {font-size: 22px;}
.fs-23 {font-size: 23px;}
.fs-24 {font-size: 24px;}

.btn-small {padding: 3px 5px 0px;}



#bb_debug_info {
    position: fixed;
    top: 100px;
    left: 0;
    padding: 10px;
    background-color: rgba(250,255,250,0.7);
    width: 400px;
    text-align: left;
}
#bb_debug_info a {
    width: 25px;
    line-height: 25px;
    text-align: center;
    background-color: #ccc5;
    color: #333;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    position: absolute;
    right: -15px;
    bottom: -15px;
    font-size: 18px;
    text-decoration: none;
}
#bb_debug_info.min {
    top: 30px;
}
#bb_debug_info.min a {
    background-color: #5554;
    color: #fff;
    bottom: -20px;
}



.captcha-login {
    height: 50px;
}
.captcha-login img {
    width: 150px;
    max-width: 75%;
    cursor: pointer;
    float: right;
    height: 48px;
}
.captcha-login input {
    width: calc(100% - 160px);
    float: left;
}
@media (max-width: 400px) {
    .captcha-login {
        height: unset;
    }
    .captcha-login img {
        width: 150px;
        max-width: 75%;
        margin: 0 auto;
        float: unset;
        padding: 5px 0 10px;
    }
    .captcha-login input {
        width: 150px;
        max-width: 75%;
        margin: 0 auto;
        float: unset;
    }
}



.select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow {
    right: unset;
    left: 3px;
}
.select2-container .select2-selection--single .select2-selection__rendered {
    padding-right: 8px !important;
    padding-left: 20px !important;
}



#side_menu {
    display: none;
}
body.has_side_menu #side_menu {
    display: block;
}
body.has_side_menu, body.has_side_menu #breadcrumbs_bar {
    margin-right: 250px;
}
#side_menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    width: 250px;
    overflow: hidden;
    -webkit-box-shadow: -10px 0 20px -25px #000000;
    box-shadow: -10px 0 20px -25px #000000;
}
#side_menu {
    -webkit-transition: all 200ms ease;
    -moz-transition: all 200ms ease;
    -ms-transition: all 200ms ease;
    -o-transition: all 200ms ease;
    transition: all 200ms ease;
}
#side_menu img.logo {
    margin-right: 5px;
    max-width: 90%;
    max-height: 70px;
    filter: grayscale(70%) brightness(250%) hue-rotate(-20deg);
    -webkit-filter: grayscale(70%) brightness(250%) hue-rotate(-20deg);
    -moz-filter: grayscale(70%) brightness(250%) hue-rotate(-20deg);
}
#side_menu .toggle {
    color: #ccffff;
}
#side_menu > ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
#side_menu > ul > li .parent-icon {
    /*float: right;*/
    font-size: 24px;
    width: 24px;
    display: inline-block;
    text-align: center;
}
#side_menu > ul > li .menu-title {
    /*float: left;*/
    padding-right: 5px;
    line-height: 31.5px;
}
#side_menu > ul > li {
    padding: 10px 10px 0;
}
#side_menu > ul > li > a {
    display: block;
    padding: 5px 10px 5px 0;
}
#side_menu > ul > li > a:hover {
    background-color: #35434d;
}
#side_menu > ul > li > a
, #side_menu > ul > li > a *
{
    color: #35434d;
    text-decoration: none;
}
#side_menu > ul > li > a:hover
, #side_menu > ul > li > a:hover *
{
    color: #ccffff;
}

body.has_side_menu.side_menu_toggled, body.has_side_menu.side_menu_toggled #breadcrumbs_bar {
    margin-right: 60px;
}
body.has_side_menu.side_menu_toggled #side_menu {
    width: 60px;
    -webkit-box-shadow: -10px 0 20px -22px #000000;
    box-shadow: -10px 0 20px -22px #000000;
}
body.has_side_menu.side_menu_toggled #side_menu > ul > li > a {
    text-align: center;
    padding-right: 0;
}
body.has_side_menu.side_menu_toggled #side_menu > ul > li .menu-title {
    display: none;
}

body.has_side_menu.side_menu_toggled.side_menu_hovered, body.has_side_menu.side_menu_toggled.side_menu_hovered #breadcrumbs_bar {
    margin-right: 60px;
    -webkit-box-shadow: -10px 0 20px -22px #000000;
    box-shadow: -10px 0 20px -22px #000000;
}
body.has_side_menu.side_menu_toggled.side_menu_hovered #side_menu {
    width: 250px;
}
body.has_side_menu.side_menu_toggled.side_menu_hovered #side_menu > ul > li > a {
    text-align: right;
    padding-right: 10px;
}
body.has_side_menu.side_menu_toggled.side_menu_hovered #side_menu > ul > li .menu-title {
    display: inline-block;
}
@media print {
    body.has_side_menu {
        margin-right: unset !important;
    }
}


