@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: 13px;
}

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;
}

/* 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 2rem !important;
}
.content-wrapper>.content .container-fluid {
    padding: 0;
}

.btn-toolbar.ew-toolbar {
    padding: 0px 15px;
}
.ew-grid .ew-table td {
    text-wrap: nowrap;
}
.navbar-primary {
    background-color: transparent;
}
[class*='sidebar-dark-'] {
    background-color: #000000;
}
.sidebar-dark-primary .nav-sidebar>.nav-item>.nav-link.active {
    background-color: #EAF1FB;
    color: #040000;
}
.nav-sidebar>.nav-item a {
    font-size: 16px !important;
}

span.invoice-status {
    display: inline-block;
    margin: 10px;
    font-size: 15px;
    text-decoration: none;
}
span.invoice-status.st-1{
    color: #f5a000;
}
span.invoice-status.st-2{
    color: #479302;
}
span.invoice-status.st-3{
    color: #ff5757;
}
.invoice-action {
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: row;
    align-items: baseline;
}
.invoice-action .action {
    margin-right: 20px;
    display: flex;
    column-gap: 15px;
}
.brand-text {
    font-size: 20px;
}



/* balali style  */
body {
    background: #f5f5f5 !important;
}
.main-footer {
    display: none;
}
.main-header {
    height: 64px;
    background-color: #fff;
    border-color: #f5f5f5;
    position: sticky;
    top: 0px;
}
.brand-link{
    background: #fff;
    border: none !important;
    padding-block: 40px;
}
.content-wrapper {
    background: #F5F5F5;
}
.form-control {
    min-height: 52px;
    border-radius: 4px !important;
    border: 1px solid #F5F5F5 !important;
    width: 100% !important;
}
.form-control:focus{
    border-color: #000 !important;
    box-shadow: none !important;
}
.ew-lookup-text {
    height: 52px;
    border-radius: 4px;
    border: 1px solid #F5F5F5;
}
.custom-control-label:after{
    content: unset !important;
}
.custom-control-label::before{
    content: unset !important;
}
.custom-control {
    border: 1px solid #F5F5F5 !important;
    padding: 4px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    padding-inline: 16px !important;
    background-color: #EEEEEE;
}
.custom-control:has(>input:checked){
    color: #fff;
    background-color: #000;
}
.custom-select {
    height: 52px;
       border: 1px solid #F5F5F5 !important;
    border-radius: 4px !important;
    width: 100% !important;
    max-width: 100% !important;
}
.custom-file {
    min-height: 52px;
}
.custom-file-label {
    height: 52px;
    border-radius: 4px;
    border: 1px solid #F5F5F5 !important;
    align-items: center;
    display: flex;
    justify-content: center !important;
}
.custom-file-label:after {
    height: 52px;
    width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    color: #fff;
}
.ew-upload-table >.files {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.ew-upload-table {
    display: flex;
    background: #fff;
    border-radius: 4px;
    padding: 16px;
}
.ew-upload-table:has(>.files:empty){
    display: none !important;
}
.ew-upload-table >.files >.template-download {
    display: flex;
    flex-direction: column;
    border: 1px solid #F5F5F5;
    border-radius: 4px;
    padding: 16px;
}
.ew-upload-table >.files >.template-download .preview img {
    height: 64px;
    width: 64px;
    object-fit: contain;
    border: 1px solid #F5F5F5;
    border-radius: 4px;
}
.ew-upload-table >.files >.template-download .name a {
    font-size: 12px;
    max-width: 104px;
    overflow: hidden;
    display: flex;
    text-wrap-mode: nowrap;
    text-overflow: ellipsis;
    color: #000;
}
.ew-form {
    overflow: hidden;
    width: 100% !important;
}

[class*='sidebar-dark-'] {
    background-color: #ffffff !important;
}
#ew-menu .nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
#ew-menu .nav >.nav-item a {
    height: 44px;
    display: flex;
    align-items: center;
    margin: 0px;
    color: #000;
    border-radius: 4px !important;
    gap: 12px;
}
#ew-menu .nav >.nav-item a i {
    font-size: 16px;
}
#ew-menu .nav >.nav-item a:hover {
    background: #F5F5F5;
}
#ew-menu .nav >.nav-item a.active {
    background: #1b29d0;
    color: #fff;
}

.dropdown-menu {
    border-radius: 4px;
    border: 1px solid #eee;
    min-width: 220px;
}
.btn-default {
    background-color: #000 !important;
    color: #fff !important;
}
.btn-primary {
    background-color: #1b29d0;
}
.btn{
    height: 44px;
    display: inline-flex;
    padding-inline: 16px;
    align-items: center;
    justify-content: center;
    border: none;
}
.ew-grid .ew-table .ew-table-row {
    background-color: #ffffff;
}
.ew-grid .ew-table .ew-table-select-row>td {
    background-color: #000000;
}
.ew-grid .ew-table .ew-table-highlight-row>td {
    background-color: #1b29d0;
}
.card {
    border-radius: 8px;
}
ul#ew-navbar-right .btn {
    width: 100%;
    color: #fff;
}
.btn-sm, .btn-group-sm>.btn {
    border-radius: 4px;
    aspect-ratio: 1;
}
.custom-control:has(>.custom-control-label:empty){
    display: none !important;
}
.btn-toolbar.ew-toolbar >.ew-list-option-separator {
    margin: 0px !important;
}
.btn-toolbar.ew-toolbar {
    background: #fff;
    display: flex;
    align-items: center;
    padding: 8px;
}
.ew-edit-div  {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media only screen and (max-width: 1024px) {
    .ew-edit-div {
        grid-template-columns: repeat(3, 1fr);
    }           
}
@media only screen and (max-width: 425px) {
    .ew-edit-div {
        grid-template-columns: repeat(2, 1fr);
    }           
}
@media only screen and (max-width: 375px) {
    .ew-edit-div {
        grid-template-columns: repeat(1, 1fr);
    }           
}
.ew-edit-div >.form-group {
    display: flex;
     flex-direction: column;
    gap: 8px;
    margin: 0;
    width: 100%;
    height: auto !important;
}

.ew-edit-div >.form-group [class^="col"] {
    width: auto !important;
    flex: auto !important;
    padding: 0px;
    line-height: normal;
}
.ew-edit-div >.form-group label {
    text-wrap-mode: nowrap;
}
.ew-edit-div >.form-group .input-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
        width: 100%;
}

.ew-item-list .ew-item-table .d-table-row {
    width: 100%;
    display: flex !important;
    flex-flow: wrap;
}
.ew-edit-div >.form-group .input-group .twitter-typeahead {
    width: 100%;
}
.input-group-append button {
    color: #fff;
}
.ew-form >.form-group {
    background: #fff;
    margin: 0px;
    margin-top: 32px;
    padding: 8px;
}
.ew-form >.form-group .col-sm-10.offset-sm-2 {
    margin: 0 !important;
}
a {
    color: #1b29d0;
}
.bg-warning{
background-color: #ffd608 !important;
}
#toast-container .toast {
    min-width: 220px;
    border: 1px solid #f5f5f5;
    border-radius: 8px;
}
#toast-container .toast .toast-header {
    padding: 16px;
}
#toast-container .toast .toast-body {
    padding: 16px;
}
.ew-layout:has(#flogin) .main-header {
    display: none !important;
}
.ew-layout:has(#flogin) .main-sidebar {
    display: none !important;
}
.ew-layout:has(#flogin) .content-wrapper {
    width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ew-layout:has(#flogin) .content-wrapper .content-header {
    display: none;
}

#flogin .ew-login-box .card {
    border: none;
    border-radius: 20px;
    padding: 32px;
    margin: 0;
}
#flogin .ew-login-box {
    height: 100% !important;
    max-height: 600px !important;
    max-width: 500px !important;
    padding: 40px 0;
    width: 100% !important;
}
#flogin .ew-login-box .card-body {
    padding: 0px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ew-layout:has(#flogin) .content-wrapper .content {
    width: 100% !important;
    height: 100% !important;
}
#flogin .ew-login-box #btn-submit {
    height: 52px;
}
#flogin .ew-login-box .card-body .social-auth-links {
    display: none;
}
@media only screen and (max-width: 425px) {
    .ew-layout:has(#flogin) .content-wrapper .content {
    padding: 0 !important;
    }     
    .ew-layout:has(#flogin) .content-wrapper {
    background: #fff;
}
body:has(#flogin) {
    background: #fff !important;
}
}