@font-face {
    font-family: Vazir;
    src: url('../fonts/vazir/Vazir.eot');
    src: url('../fonts/vazir/Vazir.eot?#iefix') format('embedded-opentype'), url('../fonts/vazir/Vazir.woff2') format('woff2'), url('../fonts/vazir/Vazir.woff') format('woff'), url('../fonts/vazir/Vazir.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: Vazir;
    src: url('../fonts/vazir/Vazir-Bold.eot');
    src: url('../fonts/vazir/Vazir-Bold.eot?#iefix') format('embedded-opentype'), url('../fonts/vazir/Vazir-Bold.woff2') format('woff2'), url('../fonts/vazir/Vazir-Bold.woff') format('woff'), url('../fonts/vazir/Vazir-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: Vazir;
    src: url('../fonts/vazir/Vazir-Black.eot');
    src: url('../fonts/vazir/Vazir-Black.eot?#iefix') format('embedded-opentype'), url('../fonts/vazir/Vazir-Black.woff2') format('woff2'), url('../fonts/vazir/Vazir-Black.woff') format('woff'), url('../fonts/vazir/Vazir-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: Vazir;
    src: url('../fonts/vazir/Vazir-Medium.eot');
    src: url('../fonts/vazir/Vazir-Medium.eot?#iefix') format('embedded-opentype'), url('../fonts/vazir/Vazir-Medium.woff2') format('woff2'), url('../fonts/vazir/Vazir-Medium.woff') format('woff'), url('../fonts/vazir/Vazir-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: Vazir;
    src: url('../fonts/vazir/Vazir-Light.eot');
    src: url('../fonts/vazir/Vazir-Light.eot?#iefix') format('embedded-opentype'), url('../fonts/vazir/fa/Vazir-Light.woff2') format('woff2'), url('../fonts/vazir/Vazir-Light.woff') format('woff'), url('../fonts/vazir/Vazir-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: Vazir;
    src: url('../fonts/vazir/fa/Vazir-Thin.eot');
    src: url('../fonts/vazir/fa/Vazir-Thin.eot?#iefix') format('embedded-opentype'), url('../fonts/vazir/fa/Vazir-Thin.woff2') format('woff2'), url('../fonts/vazir/Vazir-Thin.woff') format('woff'), url('../fonts/vazir/Vazir-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}


/* ----------farsi digits -------------- */

@font-face {
    font-family: Vazirfa;
    src: url('../fonts/vazir/fa/Vazir-FD.eot');
    src: url('../fonts/vazir/fa/Vazir-FD.eot?#iefix') format('embedded-opentype'), url('../fonts/vazir/fa/Vazir-FD.woff2') format('woff2'), url('../fonts/vazir/fa/Vazir-FD.woff') format('woff'), url('../fonts/vazir/fa/Vazir-FD.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: Vazirfa;
    src: url('../fonts/vazir/fa/Vazir-Bold-FD.eot');
    src: url('../fonts/vazir/fa/Vazir-Bold-FD.eot?#iefix') format('embedded-opentype'), url('../fonts/vazir/fa/Vazir-Bold-FD.woff2') format('woff2'), url('../fonts/vazir/fa/Vazir-Bold-FD.woff') format('woff'), url('../fonts/vazir/fa/Vazir-Bold-FD.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: Vazirfa;
    src: url('../fonts/vazir/fa/Vazir-Black-FD.eot');
    src: url('../fonts/vazir/fa/Vazir-Black-FD.eot?#iefix') format('embedded-opentype'), url('../fonts/vazir/fa/Vazir-Black-FD.woff2') format('woff2'), url('../fonts/vazir/fa/Vazir-Black-FD.woff') format('woff'), url('../fonts/vazir/fa/Vazir-Black-FD.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: Vazirfa;
    src: url('../fonts/vazir/fa/Vazir-Medium-FD.eot');
    src: url('../fonts/vazir/fa/Vazir-Medium-FD.eot?#iefix') format('embedded-opentype'), url('../fonts/vazir/fa/Vazir-Medium-FD.woff2') format('woff2'), url('../fonts/vazir/fa/Vazir-Medium-FD.woff') format('woff'), url('../fonts/vazir/fa/Vazir-Medium-FD.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: Vazirfa;
    src: url('../fonts/vazir/fa/Vazir-Light-FD.eot');
    src: url('../fonts/vazir/fa/Vazir-Light-FD.eot?#iefix') format('embedded-opentype'), url('../fonts/vazir/fa/Vazir-Light-FD.woff2') format('woff2'), url('../fonts/vazir/fa/Vazir-Light-FD.woff') format('woff'), url('../fonts/vazir/fa/Vazir-Light-FD.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: Vazirfa;
    src: url('../fonts/vazir/fa/Vazir-Thin-FD.eot');
    src: url('../fonts/vazir/fa/Vazir-Thin-FD.eot?#iefix') format('embedded-opentype'), url('../fonts/vazir/fa/Vazir-Thin-FD.woff2') format('woff2'), url('../fonts/vazir/fa/Vazir-Thin-FD.woff') format('woff'), url('../fonts/vazir/fa/Vazir-Thin_FD.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}


/*
boxshadow:#8483A1
button-color:#4B4B78
botton-pressed,border:#38386A
icon-color_primary:#25255C
inner-background:#F1ECEF
red:#BA252D
text_color:222831;
text_light:393e46;
green:#309975
light-green:#58b368
active-state-green:2a8867
*/

body,
html {
    margin: 0px;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

* {
    box-sizing: border-box;
    font-family: Vazirfa;
    direction: rtl;
    user-select: none;
}

span,
div {
    user-select: text;
}

::-webkit-scrollbar-thumb {
    background: #38386A;
    border-radius: 10px;
}

a {
    text-decoration: none;
    color: #222831;
}

i {
    color: #25255C;
}

button {
    min-width: 85px;
    background-color: #42476e;
    color: white;
    border-radius: 5px;
    outline: none;
    padding-right: 7px;
    padding-left: 7px;
    height: 40px;
    border: none;
    font-size: 14px;
    font-weight: bold;
}

button:active {
    background-color: #252550;
}


/* Chrome, Safari, Edge, Opera */

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


/* Firefox */

input[type=number] {
    -moz-appearance: textfield;
}

input[type="number"] {
    direction: ltr;
    text-align: right;
}

input[type="text"],
input[type="number"],
select,
textarea {
    min-width: 200px;
    height: 38px;
    outline: none;
    border: none;
    border-radius: 5px;
    padding-left: 5px;
    padding-right: 5px;
    user-select: unset;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border: 2px solid #8483A1;
}

input[type="submit"] {
    background-color: #42476e;
    color: white;
    border-radius: 5px;
    outline: none;
    padding-right: 7px;
    padding-left: 7px;
    height: 32px;
    border: none;
}

input[type="submit"]:active {
    background-color: #252550;
}

.main {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    height: 100%;
}

.menu {
    flex-basis: 300px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background-color: #F1ECEF;
    height: 100%;
    padding: 10px;
    box-shadow: 0px 0px 5px #8483A1;
    overflow: hidden;
    z-index: 99;
    opacity: 1;
}

.menu .close_btn i:active {
    background-color: #8483A1;
    color: #38386A;
}

.close_btn {
    display: none;
}

.menu a {
    padding: 10px;
    border-bottom: 1px solid #4B4B78;
    transition: 0.1s;
}

.menu a:last-child {
    border-bottom: none;
}

.menu a i {
    padding-right: 5px;
    padding-left: 10px;
}

.menu a:hover {
    background-color: #8483A1;
    color: white;
    transition: 0.1s ease-in;
}

.menu a:hover i {
    color: white;
}

.menu_active {
    background-color: #8483A1;
    color: white;
    transition: 0.1s ease-in;
}

.menu_active i {
    color: #F1ECEF;
}

.exit_dialog .form_content input[type="submit"] {
    margin-top: 7px;
    height: 38px;
}

.exit_dialog {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    flex-wrap: wrap;
    /* Stay in place */
    z-index: 1;
    /* Location of the box */
    left: 0;
    top: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
}

.exit_dialog .exit_form {
    background-color: #F1ECEF;
    border-radius: 5px;
    margin-top: -50px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    width: 350px;
}

.exit_dialog .form_content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.exit_dialog .form_content * {
    margin-bottom: 7px;
}

.exit_dialog .form_content :last-child {
    margin-bottom: 0px;
}

.alert_dialog .form_content input[type="submit"] {
    margin-top: 7px;
    height: 38px;
}

.alert_dialog {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    flex-wrap: wrap;
    /* Stay in place */
    z-index: 4;
    /* Location of the box */
    left: 0;
    top: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
}

.alert_dialog .alert_form {
    background-color: #F1ECEF;
    border-radius: 5px;
    margin-top: -50px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    width: 350px;
}

.alert_dialog .form_content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.alert_dialog .form_content * {
    margin-bottom: 7px;
}

.alert_dialog .form_content :last-child {
    margin-bottom: 0px;
}

.basket {
    display: flex;
    flex-direction: column;
    flex-basis: 400px;
    min-width: 300px;
    width: 300px;
    flex-grow: 1;
    height: 100%;
    padding: 0px 0px 0px 0px;
    box-shadow: 0px 0px 5px #8483A1;
    margin-right: 3px;
    overflow-y: auto;
    transition: 0.5s ease;
    z-index: 2;
}

.show_basket {
    display: none;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    position: fixed;
    bottom: 8px;
    left: 7px;
    border-radius: 50%;
    box-shadow: 0px 0px 10px #cccace;
    background-color: #309975;
    cursor: pointer;
    z-index: 2;
}

.show_basket:hover {
    background-color: #36a37d;
}

.show_basket:active {
    background-color: #278060;
}

.show_basket i {
    font-size: 20px;
    color: white;
}

.basket .basket_save {
    position: sticky;
    position: -webkit-sticky;
    /* Safari */
    bottom: 0px;
    width: 100%;
    border-radius: 0px;
    margin-top: auto;
    min-height: 40px;
}

.basket .basket_icon {
    width: 100%;
    color: white;
    padding: 9px;
    background-color: #309975;
    position: sticky;
    position: -webkit-sticky;
    /* Safari */
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #F1ECEF;
}

.basket .basket_icon i {
    font-size: 20px;
    color: white;
    margin-left: 9px;
}

.basket .basket_arrow_left {
    position: absolute;
    left: 0;
    padding: 5px;
}

.basket .basket_arrow_left i {
    font-size: 22px;
    padding: 7px 5px 10px 5px;
    box-sizing: content-box;
    margin-left: -1px;
}

.basket .basket_arrow_left i:hover {
    color: #F1ECEF!important;
}

.basket .basket_arrow_left i:active {
    color: #7b738a!important;
}


/* --------------------------- warehouse manage ----------------------*/

.container {
    flex-grow: 3;
    height: 100%;
    width: 100%;
    flex-shrink: 1;
    overflow-y: auto;
    scrollbar-face-color: #9C97A1;
    scrollbar-track-color: #7b738a;
}

.container .whearehouse_head {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #cccace;
    /* border-top: 1px solid #cccace; */
    flex-direction: row-reverse;
    padding-left: 20px;
    background-color: #E6E8E8;
    position: -webkit-sticky;
    /* Safari */
    position: sticky;
    top: 0;
}

.navicon {
    display: none;
    position: absolute;
    right: 15px;
    top: 10px;
    cursor: pointer;
    font-size: 26px;
}

.container .whearehouse_head button {
    margin-right: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    background-color: #42476e;
    color: white;
    font-weight: bold;
    font-size: 14px;
    outline: none;
    border: none;
    border-radius: 5px;
    padding-right: 9px;
    padding-left: 9px;
    height: 40px;
}

.container .whearehouse_head button:active {
    background-color: #252550;
}

.cat_list {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    padding: 20px;
}

.cat_item {
    background-color: #8483A1;
    text-align: right;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0px 0px 1px black;
    margin-bottom: 10px;
    color: white;
}

.cat_item a {
    color: white;
}

.btn_ed {
    float: left;
    border-right: 1px solid #38386A;
    align-items: center;
}

.btn_ed a {
    padding: 10px;
    transition: 0.2s;
    cursor: pointer;
}

.btn_ed a:nth-child(odd):hover {
    color: #120078;
    font-weight: bold;
    transition: 0.2s ease-in;
}

.btn_ed a:nth-child(even):hover {
    color: #a20a0a;
    font-weight: bold;
    transition: 0.2s ease-in;
}

.cat_list .sub_cat {
    background-color: #F1ECEF;
    color: #222831;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0px 0px 3px #8483A1;
    max-width: 96%;
    float: left;
    width: 100%;
    margin-right: auto;
    margin-bottom: 10px;
}

.cat_dialog {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    /* Stay in place */
    z-index: 2;
    /* Location of the box */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
}

.cat_dialog .cat_form {
    background-color: #F1ECEF;
    border-radius: 5px;
    margin-top: -50px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    min-width: 350px;
}

.cat_dialog .form_content {
    padding-top: 15px;
    padding-bottom: 15px;
    padding-right: 20px;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
}

.cat_dialog .form_content input[type="submit"] {
    margin-top: 10px;
    height: 38px;
}

.product_dialog .form_content input[type="submit"] {
    margin-top: 7px;
    height: 38px;
}

.product_dialog {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    flex-wrap: wrap;
    /* Stay in place */
    z-index: 2;
    /* Location of the box */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
    transition: visibility 1s ease;
    overflow-x: hidden;
    overflow-y: auto;
}

.product_dialog .product_form {
    background-color: #F1ECEF;
    border-radius: 5px;
    margin-top: -5px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    width: 320px;
}

.product_dialog .form_content {
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.product_dialog .form_content * {
    margin-bottom: 7px;
}

.product_dialog .form_content :last-child {
    margin-bottom: 0px;
}

.form_content textarea {
    resize: both;
    min-height: 50px;
    max-width: 350px;
    max-height: 100px;
}

.dialog_head {
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
    background-color: #8483A1;
    color: white;
    padding-right: 5px;
    padding-left: 15px;
    display: flex;
    align-items: center;
    height: 40px;
    width: 100%;
}

.dialog_head span {
    position: relative;
    margin-right: 4px;
}

.dialog_head i {
    position: relative;
    right: 0px;
    top: 0px;
    font-size: 22px;
    padding: 7px;
}

.dialog_head i:hover {
    color: #a20a0a;
}

.product_del_cat_dialog .form_content input[type="submit"] {
    margin-top: 7px;
    height: 38px;
}

.product_del_cat_dialog {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    flex-wrap: wrap;
    /* Stay in place */
    z-index: 2;
    /* Location of the box */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
}

.product_del_cat_dialog .product_del_cat_form {
    background-color: #F1ECEF;
    border-radius: 5px;
    margin-top: -50px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    min-width: 350px;
}

.product_del_cat_dialog .form_content {
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.product_del_cat_dialog .form_content * {
    margin-bottom: 7px;
}

.product_del_cat_dialog .form_content :last-child {
    margin-bottom: 0px;
}

.product_del_dialog .form_content input[type="submit"] {
    margin-top: 7px;
    height: 38px;
}

.product_del_dialog {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    flex-wrap: wrap;
    /* Stay in place */
    z-index: 1;
    /* Location of the box */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
}

.product_del_dialog .product_del_form {
    background-color: #F1ECEF;
    border-radius: 5px;
    margin-top: -50px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    min-width: 350px;
}

.product_del_dialog .form_content {
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.product_del_dialog .form_content * {
    margin-bottom: 7px;
}

.product_del_dialog .form_content :last-child {
    margin-bottom: 0px;
}

.form-check {
    max-height: 125px;
    background-color: white;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 5px;
    border-radius: 5px;
}

.form-check input[type="checkbox"] {
    /* width: 100%; */
}

input:focus~.floating-label,
input:not(:focus):valid~.floating-label {
    top: 8px;
    bottom: 10px;
    left: 20px;
    font-size: 11px;
    opacity: 1;
}

.floating-label {
    position: absolute;
    pointer-events: none;
    left: 20px;
    top: 18px;
    transition: 0.2s ease all;
}

.wmanagment_select {
    border: none;
    outline: none;
    min-width: 100%;
    text-align: center;
    padding: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-overflow: ellipsis;
    -o-text-overflow: ellipsis;
}

.sub_cat_container {
    transition: all 0.4s ease-in-out;
    height: 0;
    overflow: hidden;
    padding-top: 2px;
    padding-left: 4px;
}

.sub_cat_container:last-child {
    padding-top: 1px;
}

.sub_cat_container_hide {
    height: auto;
}

.btn_editp {
    background-color: #42476e;
    color: white;
    border-radius: 5px;
    outline: none;
    padding-right: 7px;
    padding-left: 7px;
    height: 38px;
    border: none;
}

.btn_editp:active {
    background-color: #252550;
}


/*--------------------------------------------------- responsive codes ------------------------------------------------------*/

@media (max-width:900px) {
    .menu {
        width: 0;
        opacity: 0;
        position: fixed;
        z-index: -1;
        top: 0;
        right: 0;
        overflow: hidden;
        transition: 0.5s;
    }
    .navicon {
        display: inline;
    }
    .sum_head {
        margin-bottom: 33px;
    }
    .close_btn {
        display: inline;
    }
}

@media (max-width:600px) {
    .cat_item {
        display: flex;
        flex-direction: column;
    }
    .cat_list .sub_cat {
        display: flex;
        flex-direction: column;
    }
    .member_list .sub_cat {
        display: flex;
        flex-direction: column;
    }
    .member_dialog .member_form {
        min-width: 200px;
    }
    .tag_list .sub_cat {
        display: flex;
        flex-direction: column;
    }
    .cat_dialog .cat_form {
        min-width: 200px;
    }
    .tag_dialog .tag_form {
        min-width: 200px;
    }
    .account_dialog .account_form {
        min-width: 200px;
    }
    .member_role {
        width: 100%!important;
    }
    .member_name {
        width: 100%!important;
    }
    .btn_ed {
        border-right: none;
        margin-top: 7px;
        text-align: left;
    }
    .btn_ed a:nth-child(odd) {
        color: #120078;
        transition: 0.2s ease-in;
    }
    .btn_ed a:nth-child(even) {
        color: #a20a0a;
        transition: 0.2s ease-in;
    }
    .hatable td input,
    select {
        min-width: 90px!important;
        width: 90px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-overflow: ellipsis;
        -o-text-overflow: ellipsis;
    }
    .wmanagment_select {
        min-width: 100%!important;
    }
    .basket {
        width: 0px;
        min-width: 0px;
        flex-basis: 0px;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        background-color: white;
    }
    .basket_save {
        display: none;
    }
    .show_basket {
        display: flex;
    }
}

@media(max-width:740px) {
    .search_p .btn_search {
        margin-top: 10px;
        ;
    }
}

@media(max-width: 400px) {
    .account_list .sub_cat .acc_info {
        flex-direction: column;
    }
    .account_list .sub_cat .acc_info span {
        max-width: calc(100%)!important;
    }
}

@media(max-width: 320px) {
    .hatable td input,
    select {
        min-width: 82px;
        padding: 1px;
    }
    .wmanagment_select {
        min-width: 100%!important;
    }
    .container .tag_head {
        padding-left: 10px;
    }
    .acc_btns button {
        margin: 3px;
    }
}


/* --------------------------- tags ----------------------*/

.container .tag_head {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #cccace;
    /* border-top: 1px solid #cccace; */
    flex-direction: row-reverse;
    padding-left: 15px;
    background-color: #E6E8E8;
    position: -webkit-sticky;
    /* Safari */
    position: sticky;
    top: 0;
    align-items: center;
    z-index: 1;
}

.container .tag_head button {
    margin-right: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    background-color: #42476e;
    color: white;
    font-weight: bold;
    font-size: 14px;
    outline: none;
    border: none;
    border-radius: 5px;
    padding-right: 9px;
    padding-left: 9px;
    height: 40px;
}

.container .tag_head button:active {
    background-color: #252550;
}

.tag_list {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    padding: 20px;
    align-items: center;
}

.tag_list .sub_cat {
    background-color: #F1ECEF;
    color: #222831;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0px 0px 3px #8483A1;
    float: left;
    width: 100%;
    margin-right: auto;
    margin-bottom: 10px;
}

.tag_dialog {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    /* Stay in place */
    z-index: 2;
    /* Location of the box */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
}

.tag_dialog .tag_form {
    background-color: #F1ECEF;
    border-radius: 5px;
    margin-top: -50px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    min-width: 350px;
}

.tag_dialog .form_content {
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.tag_dialog .form_content input[type="submit"] {
    margin-top: 10px;
    height: 38px;
}

.tag_del_dialog .form_content input[type="submit"] {
    margin-top: 7px;
    height: 38px;
}

.tag_del_dialog {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    flex-wrap: wrap;
    /* Stay in place */
    z-index: 2;
    /* Location of the box */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
}

.tag_del_dialog .tag_del_form {
    background-color: #F1ECEF;
    border-radius: 5px;
    margin-top: -50px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    min-width: 350px;
}

.tag_del_dialog .form_content {
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.tag_del_dialog .form_content * {
    margin-bottom: 7px;
}

.tag_del_dialog .form_content :last-child {
    margin-bottom: 0px;
}


/*------------------------- members ----------------------*/

.member_list {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    padding: 20px;
    align-items: center;
}

.member_list .sub_cat {
    background-color: #F1ECEF;
    color: #222831;
    padding: 7px;
    border-radius: 5px;
    box-shadow: 0px 0px 3px #8483A1;
    float: left;
    width: 100%;
    margin-right: auto;
    margin-bottom: 10px;
    display: flex;
}

.member_list .sub_cat .btn_ed a {
    padding: 7px;
}

.member_list .sub_cat .btn_ed {
    display: flex;
}

.member_role {
    display: flex;
    width: 60%;
    padding-top: 7px;
    color: #4B4B78;
}

.member_name {
    display: flex;
    width: 40%;
    padding-top: 7px;
    color: #4B4B78;
}

.member_dialog .form_content input[type="submit"] {
    margin-top: 7px;
    height: 38px;
}

.member_dialog {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    flex-wrap: wrap;
    /* Stay in place */
    z-index: 2;
    /* Location of the box */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
}

.member_dialog .member_form {
    background-color: #F1ECEF;
    border-radius: 5px;
    margin-top: -50px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    min-width: 350px;
}

.member_dialog .form_content {
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.member_dialog .form_content * {
    margin-bottom: 7px;
}

.member_dialog .form_content :last-child {
    margin-bottom: 0px;
}

.member_del_dialog .form_content input[type="submit"] {
    margin-top: 7px;
    height: 38px;
}

.member_del_dialog {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    flex-wrap: wrap;
    /* Stay in place */
    z-index: 2;
    /* Location of the box */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
}

.member_del_dialog .member_del_form {
    background-color: #F1ECEF;
    border-radius: 5px;
    margin-top: -50px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    min-width: 350px;
}

.member_del_dialog .form_content {
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.member_del_dialog .form_content * {
    margin-bottom: 7px;
}

.member_del_dialog .form_content :last-child {
    margin-bottom: 0px;
}


/*--- custom checkbox below code ----*/

.rule_item {
    display: block;
    position: relative;
    padding-right: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


/* Hide the browser's default checkbox */

.rule_item input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 3px;
    right: 0;
    height: 23px;
    width: 23px;
    background-color: #b4b3c9;
    border-radius: 5px
}

.rule_item:hover input~.checkmark {
    background-color: #8483A1;
}

.rule_item input:checked~.checkmark {
    background-color: #42476e;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.rule_item input:checked~.checkmark:after {
    display: block;
}

.rule_item .checkmark:after {
    right: 9px;
    top: 5px;
    width: 3px;
    height: 8px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}


/*------------------------- accounting ----------------------*/

.hatable {
    margin-right: 50px;
}

.hatable td {
    text-align: left;
    padding-right: 2px;
    padding-left: 2px;
    font-size: 14px;
}

.hatable td input,
select {
    border: none;
    outline: none;
    min-width: 140px;
    max-width: 140px;
    text-align: center;
    padding: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-overflow: ellipsis;
    -o-text-overflow: ellipsis;
}

.acc_select {
    border: none;
    outline: none;
    min-width: 100%;
    text-align: center;
    padding: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-overflow: ellipsis;
    -o-text-overflow: ellipsis;
}

.hatable td select {
    border: none;
}

.forrent {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    cursor: pointer;
}

.account_list {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    padding: 20px;
}

.account_list .sub_cat {
    background-color: #F1ECEF;
    color: #222831;
    padding: 7px;
    border-radius: 5px;
    box-shadow: 0px 0px 3px #8483A1;
    width: 100%;
    margin-right: auto;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.account_list .sub_cat .acc_info {
    display: flex;
    flex-basis: 100%;
    justify-content: space-around;
    flex-wrap: wrap;
}

.account_list .sub_cat .acc_info span {
    padding: 3px;
    text-align: center;
    flex-grow: 1;
    flex-shrink: 0;
    max-width: calc(100%/5);
}

.account_list .sub_cat .btn_ed a {
    padding: 7px;
    margin-right: 4px;
}

.account_list .sub_cat .btn_ed a:hover {
    color: #a20a0a;
}

.account_list .sub_cat .btn_ed {
    min-width: 55px;
    display: flex;
}

.acc_btns {
    display: flex;
    flex-wrap: wrap;
    background-color: #E6E8E8;
    bottom: 0;
    justify-content: space-around;
    margin-right: auto;
    margin-left: auto;
    padding: 15px;
    margin: 0px;
    box-sizing: border-box;
    position: -webkit-sticky;
    /* Safari */
    position: sticky;
    border-top: 1px solid #cccace;
}


/* .acc_btns {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    color: #222831;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0px 0px 3px #8483A1;
    float: left;
    width: 100%;
} */

.acc_btns button {
    cursor: pointer;
    background-color: #42476e;
    color: white;
    font-weight: bold;
    font-size: 14px;
    outline: none;
    border: none;
    border-radius: 5px;
    padding-right: 9px;
    padding-left: 9px;
    height: 40px;
    margin-left: 5px;
}

.acc_btns button:active {
    background-color: #252550;
}

.account_dialog .form_content input[type="submit"] {
    margin-top: 7px;
    height: 38px;
}

.account_dialog {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    flex-wrap: wrap;
    /* Stay in place */
    z-index: 2;
    /* Location of the box */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
}

.account_dialog .account_form {
    background-color: #F1ECEF;
    border-radius: 5px;
    margin-top: -50px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    min-width: 350px;
}

.account_dialog .form_content {
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.account_dialog .form_content * {
    margin-bottom: 7px;
}

.account_dialog .form_content :last-child {
    margin-bottom: 0px;
}

.del_message {
    display: flex;
    justify-content: left;
    align-self: flex-end;
}

.del_message button {
    height: 34px;
    margin-right: 7px;
    cursor: pointer;
}

.account_del_dialog .form_content input[type="submit"] {
    margin-top: 7px;
    height: 38px;
}

.account_del_dialog {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    flex-wrap: wrap;
    /* Stay in place */
    z-index: 2;
    /* Location of the box */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
}

.account_del_dialog .account_del_form {
    background-color: #F1ECEF;
    border-radius: 5px;
    margin-top: -50px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    width: 350px;
}

.account_del_dialog .form_content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.account_del_dialog .form_content * {
    margin-bottom: 7px;
}

.account_del_dialog .form_content :last-child {
    margin-bottom: 0px;
}

.account_del_all_dialog .form_content input[type="submit"] {
    margin-top: 7px;
    height: 38px;
}

.account_del_all_dialog {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    flex-wrap: wrap;
    /* Stay in place */
    z-index: 1;
    /* Location of the box */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
}

.account_del_all_dialog .account_del_all_form {
    background-color: #F1ECEF;
    border-radius: 5px;
    margin-top: -50px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    min-width: 350px;
}

.account_del_all_dialog .form_content {
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.account_del_all_dialog .form_content * {
    margin-bottom: 7px;
}

.account_del_all_dialog .form_content :last-child {
    margin-bottom: 0px;
}

.sum {
    color: #4B4B78;
    background-color: white;
    padding: 8px;
    border-radius: 5px;
    margin-top: 2px;
    margin-bottom: 2px;
}

.forrent .tooltiptext {
    visibility: hidden;
    background-color: #8483A1;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    opacity: 0;
    transition: 0.3s ease-in;
    white-space: pre-line;
}

.forrent .tooltiptext::after {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: rotate(180deg);
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.forrent:hover {
    font-weight: bold;
    color: #a20a0a;
}

.forrent:hover a {
    font-weight: bold;
}

.forrent:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}


/*------------------------------------ rents -------------------------------------*/

.rent_list * {
    -moz-user-select: -moz-none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -o-user-select: none;
    user-select: none;
}

.rent_list {
    display: flex;
    flex-wrap: wrap;
    padding: 20px 10px 20px 10px;
    justify-content: center;
    align-items: center;
    position: relative;
}

.rent_list .sub_rent {
    background-color: #F1ECEF;
    color: #222831;
    padding: 7px;
    border-radius: 5px;
    box-shadow: 0px 0px 5px #8483A1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 230px;
    margin: 0px 8px 16px 8px;
}

.rent_list .sub_rent a {
    width: 100%;
    text-align: center;
    padding: 5px;
    transition: 0.2s;
}

.rent_list .sub_rent a:hover {
    color: #120078;
    font-weight: bold;
    transition: 0.2s ease-in;
}

.rent_list .sub_rent div {
    width: 100%;
    padding: 7px 7px 3px 7px;
    text-align: center;
    color: #4B4B78;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flow-root;
    -webkit-line-clamp: 1;
    /* number of lines to show */
    -webkit-box-orient: vertical;
}

.rent_list .sub_rent div button {
    margin: 2px;
    height: 36px;
    color: #EBEAE7;
    background-color: #4B4B78;
    cursor: pointer;
}

.rent_list .sub_rent div button:active {
    background-color: #252550;
}

.rent_list .sub_rent .btn_add {
    background-color: #309975;
    color: white;
}

.rent_list .sub_rent .btn_add:active {
    background-color: #278060;
}


/*---------------------------------------------- reserve page -------------------------------------------*/

.container_reserve {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    background-color: #F1ECEF;
    width: 100%;
    justify-content: start;
    align-items: center;
    overflow-y: auto;
}

.reserv_form {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    padding: 30px;
}

.reserv_form table tr td {
    padding: 5px;
    background-color: white;
    border-radius: 7px;
    margin: 1px;
    border: 1px solid #F1ECEF;
}

.reserv_form table tr:last-child {
    min-height: 150px;
}

.reserv_form table tr td:nth-child(odd) {
    text-align: left;
}

.reserv_form .reserv_tb {
    width: 100%;
}

.reserv_form .reserv_tb tr td select {
    min-width: 100%;
    min-height: 45px;
    font-size: 15px!important;
    text-align: right;
}

.reserv_form .reserv_tb tr td .inr {
    width: 100%;
    min-height: 45px;
    font-size: 15px!important;
}

.reserv_form .reserv_tb tr td #btn_show_products {
    width: 100%;
    min-height: 45px;
    font-size: 15px!important;
}

.reserv_form table tr td textarea {
    min-height: 60px;
    max-height: 200px;
    width: 100%!important;
    font-size: 14px;
}

.btn_reg_rent {
    font-size: 14px;
    font-weight: bold;
    width: 100%;
    height: 45px!important;
    background-color: #309975!important;
    cursor: pointer;
}

.btn_reg_rent:active {
    background-color: #2b8a69!important;
}


/*------------------------------------- pick products --------------------------------------*/

.pick_p_head {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    margin-right: 15px;
    padding: 5px;
}

.cat_select select {
    width: 300px;
    font-size: 14px;
    height: 40px;
}

.search_p input[type=text] {
    padding: 10px;
    font-size: 15px;
    height: 40px;
    width: 300px;
}

.search_p .btn_search {
    font-size: 15px;
    border-left: none;
    cursor: pointer;
    margin-right: 0px!important;
    background-color: #42476e!important;
}

.search_p .btn_search:active {
    background-color: #252550!important;
}

.search_p::after {
    content: "";
    clear: both;
    display: table;
}

.pick_product_head {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #cccace;
    /* border-top: 1px solid #cccace; */
    flex-direction: row-reverse;
    padding-left: 15px;
    background-color: #E6E8E8;
    position: -webkit-sticky;
    /* Safari */
    position: sticky;
    top: 0;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
    z-index: 1;
}

.relate_dialog {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    flex-wrap: wrap;
    /* Stay in place */
    z-index: 3;
    /* Location of the box */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
}

.relate_dialog .relate_form {
    display: flex;
    background-color: #ffffff;
    border-radius: 5px;
    flex-direction: column;
    flex-wrap: wrap;
    min-width: 350px;
    max-width: 83%;
    border-left: 3px solid #8483A1;
    border-right: 3px solid #8483A1;
    border-bottom: 3px solid #8483A1;
    border-radius: 10px;
}

.relate_list {
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 600px;
}

.tag_relates {
    padding: 5px 15px 5px 15px;
    display: flex;
    align-items: center;
    flex-direction: row;
    background-color: #E6E8E8;
    overflow-y: hidden;
    overflow-x: auto;
    width: 100%;
}

.tag_relates button {
    margin: 5px;
}

.btn_del_basket:active {
    background-color: #a20a0a!important;
}

@media(max-width:550px) {
    .reserv_form table tr {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
    }
    .reserv_form table tr td:nth-child(odd) {
        padding: 10px 5px 0px 5px;
        background-color: transparent;
        text-align: right;
    }
    .reserv_form table tr td button {
        width: 100%;
        min-height: 40px;
    }
    .cat_select {
        width: 100%!important;
    }
    .pick_p_search {
        width: 100%!important;
    }
    .search_p input[type=text] {
        width: 100%!important;
    }
    .cat_select select {
        width: 100%!important;
    }
    .search_p input[type=text] {
        width: 100%;
    }
    .search_p .btn_search {
        width: 100%;
    }
    .pic_all_select {
        min-width: 100%!important;
    }
    .hatable {
        margin-right: 10px;
    }
    .container .tag_head button {
        margin-right: 38px;
    }
}

@media(max-width:1100px) {
    .cat_select select {
        width: 250px;
    }
    .search_p input[type=text] {
        width: 250px;
    }
}

@media(max-width:905px) {
    .pick_p_head {
        flex-direction: column;
        justify-content: right;
        align-items: flex-start;
    }
    .cat_select {
        margin-bottom: 10px;
    }
}

@media(max-width:500px) {
    .tag_relates {
        flex-direction: column;
    }
}