@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: bold;
    src: url('fonts/eot/IRANSansWeb_Bold.eot');
    src: url('fonts/eot/IRANSansWeb_Bold.eot?#iefix') format('embedded-opentype'),
        /* IE6-8 */
        url('fonts/woff2/IRANSansWeb_Bold.woff2') format('woff2'),
        /* FF39+,Chrome36+, Opera24+*/
        url('fonts/woff/IRANSansWeb_Bold.woff') format('woff'),
        /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
        url('fonts/ttf/IRANSansWeb_Bold.ttf') format('truetype');
}

@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 500;
    src: url('fonts/eot/IRANSansWeb_Medium.eot');
    src: url('fonts/eot/IRANSansWeb_Medium.eot?#iefix') format('embedded-opentype'),
        /* IE6-8 */
        url('fonts/woff2/IRANSansWeb_Medium.woff2') format('woff2'),
        /* FF39+,Chrome36+, Opera24+*/
        url('fonts/woff/IRANSansWeb_Medium.woff') format('woff'),
        /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
        url('fonts/ttf/IRANSansWeb_Medium.ttf') format('truetype');
}

@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 300;
    src: url('fonts/eot/IRANSansWeb_Light.eot');
    src: url('fonts/eot/IRANSansWeb_Light.eot?#iefix') format('embedded-opentype'),
        /* IE6-8 */
        url('fonts/woff2/IRANSansWeb_Light.woff2') format('woff2'),
        /* FF39+,Chrome36+, Opera24+*/
        url('fonts/woff/IRANSansWeb_Light.woff') format('woff'),
        /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
        url('fonts/ttf/IRANSansWeb_Light.ttf') format('truetype');
}

@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 200;
    src: url('fonts/eot/IRANSansWeb_UltraLight.eot');
    src: url('fontss/eot/IRANSansWeb_UltraLight.eot?#iefix') format('embedded-opentype'),
        /* IE6-8 */
        url('fonts/woff2/IRANSansWeb_UltraLight.woff2') format('woff2'),
        /* FF39+,Chrome36+, Opera24+*/
        url('fonts/woff/IRANSansWeb_UltraLight.woff') format('woff'),
        /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
        url('fonts/ttf/IRANSansWeb_UltraLight.ttf') format('truetype');
}

@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: normal;
    src: url('fonts/eot/IRANSansWeb.eot');
    src: url('fonts/eot/IRANSansWeb.eot?#iefix') format('embedded-opentype'),
        /* IE6-8 */
        url('fonts/woff2/IRANSansWeb.woff2') format('woff2'),
        /* FF39+,Chrome36+, Opera24+*/
        url('fonts/woff/IRANSansWeb.woff') format('woff'),
        /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
        url('fonts/ttf/IRANSansWeb.ttf') format('truetype');
}

*{
    font-size: 15px;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
input,
textarea,
select {
    font-family: IRANSans !important;
}

.ew-grid {
    width: 100% !important;
}

th.ew-list-option-header,
.brand-link,
td.ew-list-option-body {
    text-align: center;
}

textarea.form-control {
    width: auto;
}

.select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow {
    left: 3px;
    right: auto !important;
}

span.select2.select2-container.select2-container--bootstrap4 {
    min-width: auto !important;
}

table#tbl_adviceslist,
table#tbl_organslist,
table#tbl_diseaseslist,
table#tbl_materiallist,
table#tbl_qualitylist,
table#tbl_userslist,
table#tbl_userlevelslist,
table#tbl_audittraillist {
    text-align: center;
}

.table th,
.table td {
    vertical-align: middle !important;
    text-align: center !important;
}

#fmaterial_documentadd .ew-detail-caption, #fproduct_documentadd .ew-detail-caption, #fwaste_documentadd .ew-detail-caption, #fassembly_documentadd .ew-detail-caption, footer, #fproduction_product_documentadd .ew-detail-caption{
    display: none;
}


/* cartable */
.cartable .title {
    padding: 20px;
    border: 1px dashed #ccc;
    background-color: #f1f1f1;
    margin: 10px;
    border-radius: 5px;
    color: #4b4949;
}

.cartable .item {
    list-style: none;
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 5px;
    width: 60%;
    margin: 10px auto;
    color: #5a5959;
}

.cartable .item:hover {
    border: 1px solid #ccc;
    background-color: #fafafa;
}

.cartable .item span {
    font-weight: bold;
    display: inline-block;
}

.cartable .item li {
    margin-bottom: 10px;
}

.cartable .item .item-footer {
    position: relative;
    margin-top: 20px;
}

.cartable .item .item-footer a, .cartable .item .item-footer button.btn {
    margin: 0 10px;
    min-width: 145px;
}
/* ------------------------------------------ */
.add-material .modal-footer button, .cartable .modal-footer button {
    min-width: 100px !important;
}




/* modal styles start */
.input-box {
    position: relative;
    margin-bottom: 20px;
}

.input-box input,
.input-box textarea,
.input-box select {
    width: 100%;
    color: #213368;
    padding: 15px 20px;
    font-size: 15px;
    border: 1px solid #D5D5D5;
    transition: all 0.1s;
    /* font-weight: 200; */
    box-shadow: unset;
}

.input-box label {
    position: absolute;
    z-index: 1;
    color: #000;
    bottom: 9px;
    right: 13px;
    font-size: 15px;
    background-color: #fff;
    padding: 0 6px;
    transition: all 0.4s;
    font-weight: 400 !important;
    pointer-events: none;
}

.input-box textarea {
    resize: none;
}

.input-box textarea~label {
    top: 15px;
    bottom: auto;
}

.input-box textarea:focus~label,
.input-box textarea:valid~label {
    top: -10px;
    font-size: 14px;
}


.input-box input:focus~label,
.input-box input:valid~label,
.input-box select:focus~label,
.input-box select:valid~label {
    bottom: 35px;
    font-size: 14px;
}


.modal-content .form-group {
    margin-left: 30px;
    margin-right: 10px;
}

.modal-content .form-group>label {
    margin-left: 5px;
}

/* modal styles end */
span.count {
    /* display: block; */
    color: #CCC;
    font-size: small;
    font-weight: 300;
    margin-right: 10px;
}
/* -------- */

button.trash {
    position: absolute;
    left: 0;
    bottom: 0;
    border: unset;
    background: none;
    color: #e7c2c2;
}
button.trash:hover {
    color: #f27575;
}




.card-footer.ew-grid-lower-panel {
 position: sticky;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ew-list-other-options {
    display: flex;
    position: absolute;
    left: 0;
}
nav.main-header.navbar.navbar-expand.navbar-success.navbar-dark {
    background: #F3F7FE;
    height: 70px;
    border: none;
}
body {
    background: #F3F7FE;
}
.wrapper.ew-layout {
    background: #f3f7fe;
}
.content-wrapper {
    background: #ffffff;
    border-radius: 23px 23px 0px 0px;
}
.navbar-dark .navbar-nav .nav-link {
    color: #000;
}
.navbar-dark .navbar-nav .show>.nav-link, .navbar-dark .navbar-nav .active>.nav-link, .navbar-dark .navbar-nav .nav-link.show, .navbar-dark .navbar-nav .nav-link.active {
    color: #0B57D0;
}
.content-wrapper {
    width: calc(100% - 30px);
    margin: 0 auto !important;
}
.navbar-dark .navbar-nav .nav-link:hover, .navbar-dark .navbar-nav .nav-link:focus {
    color: #0B57D0;
}
.navbar-dark .navbar-brand {
    color: #000;
}
.btn-sm, .btn-group-sm>.btn {
    height: 45px;
    width: 45px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #f3f7fe;
}
.ew-grid {
    background: #fff;
    border: none;
}

.ew-grid .ew-table tr {
    height: 60px;
}
.ew-grid .ew-table .ew-table-alt-row {
    background-color: #f3f7fe;
    color: inherit;
}
.ew-grid-lower-panel.card-footer {
    background: #EAF1FB;
    border: none;
    height: 75px;
    padding: 0px 15px;
}
.ew-grid .ew-table>tbody>tr>td, .ew-grid .ew-table>tfoot>tr>td {
    border: none;
}
.ew-grid .ew-table .ew-table-highlight-row>td{background-color:#0B57D0;color:#fff}

.ew-grid .ew-table .ew-table-highlight-row>td .ew-row-link i {
    color: #fff;
}

.ew-grid-upper-panel.card-header {
    background: #EAF1FB;
    border: none;
    height: 75px;
    padding: 0px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
select.custom-select.custom-select-sm.ew-tooltip {
    height: 45px;
    border-radius: 45px;
    border: none;
}
.ew-prev-next {
    height: 45px;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 13px;
        padding: 0px 15px;
}
.ew-prev-next input {
    text-align: center;
    font-size: 14px;
    border: none;
}
.ew-prev-next .input-group-append a, .ew-prev-next .input-group-prepend a {
    border: none;
    background: transparent;
    color: #000;
}
.ew-prev-next .input-group-append a i, .ew-prev-next .input-group-prepend a i {
    font-size: 20px;
}
.ew-prev-next .input-group-append, .ew-prev-next .input-group-prepend {
     flex-direction: row-reverse;
}

.ew-pager {
    color: #000;
}
.ew-pager.ew-rec {
    display: none;
}
.ew-grid .ew-table>thead>tr>th, .ew-grid .ew-table>thead>tr>td {
      background: #f3f7fe;
    color: #000;
    border: none !important;
    position: sticky;
    top: 0;
}

@media only screen and (max-width: 600px) {
  .ew-grid-upper-panel.card-header .ew-pager-form, .ew-grid-lower-panel.card-footer .ew-pager-form {
    display: none;
}
}
section.content {
    padding: 0 !important;
}
.content-wrapper>.content .container-fluid {
    padding: 0;
}

.btn-toolbar.ew-toolbar {
    padding: 0px 15px;
}
.ew-grid .ew-table td {
    text-wrap: nowrap;
}
