@import url(https://fonts.googleapis.com/css?family=Barlow);

/* html {
    height: 100% !important;
} */

body {
    font-family: Barlow;
    background-color: #fff;
    /* min-height: 100% !important; */
}

hr {
    color: #EC2D2D;
    border-top: 1px solid #EC2D2D;
    opacity: 1;
}

.card {
    border-radius: 0;
}

.form-check-input:checked {
    background-color: #EC2D2D !important;
    border-color: #b3b5b8;
}

.form-check-input:focus {
    border-color: #b3b5b8;
}

.form-control:focus {
    border-color: #b3b5b8;
}

input#name.form-control.register {
    width: 100%;
}

.btn-auth {
    color: #fff !important;
    background-color: #EC2D2D !important;
    border-radius: 0 !important;
    height: 35px;
    padding: 3px 20px;
}

.btn-link {
    color: #EC2D2D;
}

.btn-link:hover {
    color: #EC2D2D;
}

.btn:focus, select:focus {
    outline: 0 !important;
    box-shadow: none !important;
}

button, input, textarea {
    outline: 0 !important;
    box-shadow: none !important
}

p {
    color: #555555;
    font-size: 16px;
}

a {
    color: #EC2D2D;
    text-decoration: none;
}

a:hover {
    color: #EC2D2D;
    text-decoration: underline;
}

.navbar ul {
    z-index: 10;
    position: fixed;
    top: 0;
    width: 100%;

    list-style-type: none;
    margin: 0;
    padding: 0 20px 0 0;
    overflow: hidden;
    background-color: #fff;
    height: 70px;
    display: flex;
    justify-content: flex-end;
    box-shadow: 0 2px 4px 0 rgba(0,0,0,0.2) !important;
}

nav.navbar {
    height: 70px;
}

a.nav-link.active span{
    color: #EC2D2D;
}

li.sidenav-item {
    display: none;
}


@media (max-width: 768px) {

    nav.navbar {
        position: fixed;
        width: 100%;
        top: 0;
        box-shadow: 0 2px 4px 0 rgba(0,0,0,0.2) !important;
        z-index: 10;
        background-color: #fff;
    }

    .navbar ul {
        position: fixed;
        top: 70px;
        height: auto;
        width: 100%;
        list-style-type: none;
        background-color: #fff;
        padding: 0;
    }

    li.nav-item {
        margin: 0 !important;
    }

    li.sidenav-item {
        display: block;
    }

    .page-content {
        margin-top: 70px;
    }

    .page-card {
        margin-top: 70px;
    }

}

.logo {
    position: fixed;
    left: 30px;
    top: 16px;
    width: 105px;
    z-index: 11;
}

li.nav-item {
    margin: auto 20px auto 0;
}

a.nav-link, i.nav-link{
    display: block;
    color: #555555 !important;
    font-size: 16px;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none !important;
    cursor: pointer;
}

a.nav-link:hover, i.nav-link:hover {
    color: #EC2D2D !important;
}

a.nav-link:active, i.nav-link:active{
    color: #EC2D2D !important;
}

.navbar-toggler {
    position: absolute;
    right: 20px;
}

.navbar-toggler:focus {
    outline: none !important;
    box-shadow: none !important;
}

.sidenav {
    height: 100%;
    width: 210px;
    position: fixed;
    z-index: 1;
    top: 70px;
    left: 0;
    background-color: #EC2D2D;
    overflow-x: hidden;
    padding-top: 20px;
}

.sidenav a {
    padding: 8px 8px 8px 30px;
    text-decoration: none;
    font-size: 14px;
    color: #fff;
    display: block;
}

.sidenav p {
    padding: 8px 8px 0px 30px;
    text-decoration: none;
    font-size: 16px;
    color: #fff;
    display: block;
}


.sidenav a:hover {
    color: #fff;
    display: block;
    background-color: rgba(0,0,0,0.07);
}

.sidenav a.active {
    color: #fff;
    display: block;
    background-color: rgba(0,0,0,0.07);
}

.container-fluid {
    z-index: -1;
    margin-top: 50px;
    margin-bottom: 50px;
    /* margin-left: 340px; */
    margin-left: 90px !important;
    margin-right: 90px !important;
    width: unset;
}

h3 {
    margin-bottom: 15px;
}

.page-content {
    margin-left: 210px;
}

table {
    table-layout: auto;
    width: 100%;
    border-top: none;
}

thead tr {
    border-top: none;
}

.table-title {
    width: 100%;
}

.btn-add  {
    width: 200px;
    margin-left: auto;
    color: #fff !important;
    background-color: #EC2D2D !important;
    border-radius: 0 !important;
    height: fit-content;
}

.submenu {
    display: none;
    position: absolute;
    background-color: #fff;

    /* right: 62px; */
    right: 109px;
    top: 110px;
    box-shadow: 0 10px 37px rgb(0 0 0 / 7%);
    border-bottom: 3px solid #f0542d;
    transform: translateY(50px);
    transition: all .3s cubic-bezier(.645,.045,.355,1);
    transition-delay: .3s;
    transition-duration: .6s;
    min-width: 250px;
    padding: 25px 0;
    z-index: 9;
}

.submenu li {
    list-style-type: none;
}

.submenu li>a {
    display: block;
    padding: 11px 30px;
    color: #555555;
}

.submenu li>a:hover {
    color: #EC2D2D;
    text-decoration: none;
}

.submenu.show {
    display: block;
}

th.col-actions, td.col-actions {
    width: 260px !important;
}

table.pages th.col-actions, table.pages td.col-actions {
    width: 129px !important;
}

.btn-outline-primary:hover {
    text-decoration: none !important;
}


th.id, td.id{
    width: 50px !important;
}

.td-content {
    vertical-align: middle;
}

.td-content.name, .col.name {
    min-width: 250px;
}

.td-content.category, .col.category {
    min-width: 210px;
}

td.name, td.category {
    max-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

form label, form input, form img, form.btn-submit {
    margin-bottom: 10px;
}

form label {
    /* width: 220px; */
    /* float: left; */
    font-size: 18px;
}

.form-check-label {
    font-size: 14.4px;
}

form input {
    border-radius: 0 !important;
    background-color: #fff !important;
}

form img {
    margin-bottom: 20px;
}

.search-div {
    /* background-color: #f7f7f7; */
    border: 1px solid #dee2e6;
    width: 100%;
    padding: 15px;
    height: 60px;
}

/* ul.filter.dropdown-menu {
    border-radius: 0 !important;
} */

select#filter {
    border: 1px solid #ced4da;
    height: 30.15px;
    font-size: 0.7875rem;
    line-height: 1.6;
    border-radius: 0;
    padding: 4px 8px;
    float: left;
}

select#filter option {
    -webkit-appearance: none;
    min-height: 1.2em;
    padding: 2px 2px 2px;
    font-size: 0.7875rem;
}

/* select#filter::after {
    display: none !important;
} */

.search {
    width: 200px;
    max-width: 100%;
    float: right;
    margin-bottom: 5px;
}

.search form {
    display: flex;
}

/* .search input{
    margin-right: 10px;
} */

.search .btn-search {
    padding: 0 10px;
    height: 30px;
    display: none;
}

.no-results {
    margin-top: 60px;
}

.btn-submit  {
    margin-top: 20px;
    width: 120px;
    color: #fff !important;
    background-color: #EC2D2D !important;
    border-radius: 0 !important;
    float: right;
}

input::-webkit-file-upload-button, input::file-selector-button {
    margin-right: 10px !important;
}


select#accessories {
    height: 90px;
    width: fit-content;
    max-width: 100%;
    padding-right: 30px;
}

input#name.form-control {
    width: 500px;
    max-width: 100%;
}

input#article_code.form-control {
    width: 105px;
    max-width: 100%;
}

textarea#description.form-control {
    height: 100px;
}

textarea#specification.form-control {
    height: 100px;
}

.price input {
    width: 85px;
    max-width: 100%;
}

select#subcategory, select#product, select#category, select#type {
    width: fit-content;
    max-width: 100%;
    padding-right: 45px;
}

input#start_date, input#end_date {
    width: fit-content;
    max-width: 100%;
}

.dates {
    display: flex;
    flex-wrap: wrap;
}

.dates .start-date {
    margin-right: 30px;
}

.email input#email {
    width: 500px;
    max-width: 100%;
}

/* .new_passwords {
    display: flex;
    flex-wrap: wrap;
} */

/* .new_passwords .new_pass {
    margin-right: 30px;
} */

.change-password {
    margin-top: 30px;
}

.change-password .btn-submit {
    width: fit-content;
    padding-left: 20px;
    padding-right: 20px;
}

.change-password input {
    max-width: 100% !important;
    width: 300px;
}



/* .prices .date {
    margin-right: 30px;
} */


.form-group {
    margin-bottom: 20px;
    /* width: 600px; */
}

.custom-select {
    font-family: Barlow;
}

.form-select {
    border-radius: 0;
    background-color: #fff;
    border: 1px solid #ced4da;
}

form textarea {
    background-color: #fff !important;
    border-radius: 0 !important;
}

.crud-card {
    padding: 40px;
    border-radius: 0;
    background-color: #f7f7f7;
}

.form-control-file {
    background-color: #f7f7f7 !important;
}

textarea#content.form-control {
    height: 640px;
    font-family: barlow;
    font-size: 16px;
    padding: 20px;
}

th.column_date, td.column_date {
    /* max-width: 110px; */
    width: 110px;
}

.page-item.active .page-link {
    background-color: #EC2D2D;
    border-color: #EC2D2D;
}

.page-link {
    color: #555555;
}

.page-link:hover {
    color: #555555;
    text-decoration: none;
}

.page-link:focus {
    color: #555555;
    box-shadow: none;
  }


@media (max-width: 1500px) {
    .container-fluid {
        margin-right: 60px !important;
        margin-left: 60px !important;
    }
}

@media (max-width: 1200px) {

    .btn-action span {
        display: none;
    }

    th.col-actions, td.col-actions {
        width: 105px !important;
    }

    table.pages th.col-actions, table.pages td.col-actions {
        width: 59px !important;
    }
}


@media (max-width: 950px) {
    .td-content.category, col.category {
        width: 210px;
    }

    th.id, td.id {
        display: none;
    }
}


@media (max-width: 768px) {

    .container-fluid {
        margin-right: 10px !important;
        margin-left: 10px !important;
    }

    .page-content {
        margin-left: 0;
    }

    .sidenav {
        display: none !important;
    }
}

@media (max-width: 650px) {

    /* table.subcategories {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    table.subcategories tbody, table.subcategories thead {
        display: table;
        width: 100%;
    } */

    .td-content.name, .col.name {
        min-width: auto;
        /* max-width: auto; */
    }

    .td-content.category, th.col.category {
        display: none;
    }
}

@media (max-width: 600px) {

    th.column_date, td.column_date {
        display: none;
    }

    .crud-card {
        padding: 20px 10px;
    }

    .crud-card h3 {
        margin-bottom: 0;
    }

}

@media (max-width: 500px) {

    .btn-add span {
        display: none;
    }

    .btn-add {
        width: fit-content;
    }
}

@media (max-width: 480px) {
    .search {
        position: absolute;
        right: 37px;
        margin-top: 40px;
        width: calc(100% - 74px);
    }

    .dropdown-toggle {
        float: right;
        /* margin-top: 40px; */
    }

    .search-div {
        height: 100.15px;
    }
}


.select2-container {
    width: 500px;
    max-width: 100%;;
}

.select2.select2-container .select2-selection {
    /* background: var(--flat-theme-light-color); */
    border: 1px solid #ced4da;
    border-radius: 0;
    outline: none !important;
    transition: all .15s ease-in-out;
    height: 37.02px;
}

.select2.select2-container .select2-selection .select2-selection__rendered {
    line-height: 37px;
    padding-right: 45px;
    padding-left: 12px;
}

.select2.select2-container .select2-selection .select2-selection__arrow {
    background: #f8f8f8;
    border-left: 1px solid #ccc;
    -webkit-border-radius: 0 3px 3px 0;
    -moz-border-radius: 0 3px 3px 0;
    border-radius: 0 3px 3px 0;
    height: 35px;
    width: 33px;
}

.select2-search--dropdown {
    display: block;
    padding: 0 !important;
    border-bottom: 1px solid #aaa;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    /* border: 1px solid #aaa; */
    border: none !important;
}

.select2-search--dropdown .select2-search__field {
    padding: 4px 6px !important;
    width: 100%;
    box-sizing: border-box;
}

.select2-results__option {
      padding: 0 6px !important;
}
