:root {
    --main-color: #DA262B;
}

::-webkit-scrollbar {
    width: 2px;
    height: 2px;
}

::-webkit-scrollbar-button {
    width: 0px;
    height: 0px;
}

::-webkit-scrollbar-thumb {
    background: #AAA;
    border: 0px none #ffffff;
    border-radius: 50px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--main-color);
}

::-webkit-scrollbar-thumb:active {
    background: var(--main-color);
}

::-webkit-scrollbar-track {
    background: #E9E9E9;
    border: 0px none #ffffff;
    border-radius: 100px;
}

::-webkit-scrollbar-track:hover {
    background: #E9E9E9;
}

::-webkit-scrollbar-track:active {
    background: #E9E9E9;
}

::-webkit-scrollbar-corner {
    background: transparent;
}

.swal2-container {
    display: flex;
    position: fixed;
    z-index: 3000000 !important;
}

* {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 1em;
    line-height: 1.2em;
    box-sizing: border-box;
}

body {
    background: #F7F7F7;
    font-family: Arial, sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #000;
}

a,
input[type="submit"],
button {
    text-decoration: none;
    color: #333;
    cursor: pointer;
    display: inline-block;
    transition: all 0.3s;
}

a:hover {
    text-decoration: underline;
}

strong {
    font-weight: 700
}

small {
    font-size: 0.8em;
    display: block;
    opacity: 0.5;
}

small a {
    color: var(--main-color)
}

p {
    margin: 1em 0;
    clear: both;
    position: relative;
}

ul,
ol {
    list-style: none;
}

header,
main,
footer,
section,
nav {
    display: block;
    clear: both;
    overflow: hidden;
    position: relative;
}

figure {
    background: #ddd;
    width: 100%;
    display: block;
    overflow: hidden;
    position: relative;
}

figure a,
figure img {
    width: 100%;
    display: block;
}

img {
    max-width: 100%;
}

iframe {
    max-width: 100%;
}

table {
    width: 100%;
    margin: 1em 0;
    border-collapse: collapse;
}

table,
tr,
td,
th {
    padding: 1em;
    text-align: left;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: Roboto, Arial, sans-serif;
}

hr {
    width: 2em;
    height: 0;
    border-top: medium solid #fff;
    margin: 1em 0
}

address {
    font-style: normal;
}

input {
    background: none;
    line-height: 1.5em;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input[type="submit"] {
    background: var(--main-color);
    color: #fff;
    font-weight: 700;
    transition: all 0.3s;
}

input[type="submit"]:hover {
    background: #892725;
}

input[type="checkbox"],
input[type="radio"] {
    width: auto !important;
    height: auto !important;
    display: inline-block;
    margin-right: 0.5em
}

input[type="checkbox"] {
    -webkit-appearance: checkbox;
    -moz-appearance: checkbox;
    appearance: checkbox;
    display: inline-block !important
}

input[type="radio"] {
    -webkit-appearance: radio;
    -moz-appearance: radio;
    appearance: radio;
    display: inline-block !important
}

select {
    background: url(../img/ico-down.svg) 98% center no-repeat;
    background-size: 1em;
    border-radius: 0;
    padding-right: 9% !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

textarea {
    font-family: Arial, sans-serif;
    font-size: 1em;
    width: 100%;
    min-width: 9em;
    min-height: 9em;
    resize: none;
    padding: 0.5em;
    border: 1px solid rgba(0, 0, 0, 0.1)
}

.checks label,
.radios label {
    display: inline-block !important;
    font-size: 0.9em
}

.btn {
    background: var(--main-color);
    color: #fff;
    padding: 0.5em 1em;
}

.btn:hover {
    background: #892725;
    color: #fff;
    text-decoration: none
}

.hide {
    display: none !important
}

.clear {
    clear: both;
}

.center {
    text-align: center;
    margin-bottom: 2em
}

.fleft {
    float: left;
}

.fright {
    float: right !important;
}

.disabled,
.ui-state-disabled {
    cursor: default;
    opacity: 0.4
}

.flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.flex.baseline {
    align-items: baseline;
    justify-content: space-between;
}

.cols2 {
    display: flex;
}

.cols2>* {
    width: 50%
}

.zebra>*:nth-child(odd) {
    background: #F7F7F7;
}

.size08 {
    font-size: 0.8em
}

.btn-new {
    background: var(--main-color);
    color: #fff;
    width: 3em;
    height: 3em;
    border-radius: 100%;
    position: relative;
    font-size: 1.5rem;
    margin-left: auto
}

.btn-new i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5em;
}

.btn-new:hover {
    background: #777;
    color: #fff
}

.suc {
    color: #6EC469 !important
}

.err {
    color: #f00 !important
}

.color {
    color: var(--main-color)
}

.invisible {
    border: 1px solid #fff;
    padding: 0.2em;
    margin: 0.2em -0.2em
}

.invisible:focus {
    border-color: #ccc
}

.botones {
    margin: 4em 0 0;
    text-align: center;
    width: 100%;
}

.botones button[type='submit'] {
    background: var(--main-color);
    color: #fff;
    width: 4em;
    height: 4em;
    border-radius: 100%;
    position: relative;
}

.botones button[type='submit'] i {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 3em;
    transform: translate(-50%, -50%);
}

.layout {
    width: 960px;
    margin: auto;
}

body.login {
    background: var(--main-color) url(../img/background.png) center/cover no-repeat;
}

#login {
    display: flex;
    align-items: flex-start;
    padding: 5em 0
}

#login .logo {
    background: var(--main-color);
    padding: 3em;
    text-align: center;
    width: 14em;
    height: 14em;
    position: relative;
}

#login .logo img {
    width: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 10em
}

#login article {
    background: #fff;
    padding: 11em;
    width: calc(100% - 14em)
}

#login article h1 {
    font-size: 4em;
    font-weight: 900;
    line-height: 0.8em
}

#login form p {
    margin: 4em 0
}

#login form label {
    font-size: 1.1em;
    font-weight: 700;
    color: #666;
}

#login form input {
    border-bottom: 1px solid #E1E1E1;
    width: 100%;
    padding: 0.4em 0
}

#login form a {
    font-size: 1.1em;
    color: var(--main-color)
}

#login form button {
    display: flex;
    width: 100%;
    padding-top: 2em;
    align-items: center;
    justify-content: space-between;
    background: none;
}

#login button strong {
    font-size: 2em;
    font-weight: 900;
    color: var(--main-color)
}

#login button span {
    background-color: var(--main-color);
    width: 5em;
    height: 5em;
    border-radius: 100%;
    position: relative;
}

#login button span i {
    color: #fff;
    font-size: 2em;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#header_mobile {
    display: none
}

#sidebar {
    background: #fff;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 1em 0px 4em -2em rgba(0, 0, 0, 0.2);
    display: flex;
    flex-flow: column;
    width: 9em;
    position: fixed;
    top: 0;
    left: 0;
}

#sidebar .logo {
    background: var(--main-color);
    padding: 2.5em;
    text-align: center;
    width: 100%;
    height: 9em;
    position: relative;
}

#sidebar .logo img {
    width: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#sidebar img {
    display: block;
    margin: auto;
    width: 6em;
    height: 6em
}

#sidebar ul,
#sidebar ol,
#sidebar li,
#sidebar li a {
    display: block;
    width: 100%;
    text-align: center;
}

#sidebar li a {
    padding: 0.5em;
    font-size: 0.9em;
    position: relative;
}

#sidebar li a.active {
    color: var(--main-color)
}

#sidebar li a.active::after {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: block;
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 1em;
    border-color: transparent #E8E8E8 transparent transparent;
}

#sidebar ol {
    margin: auto 0 2em;
    padding-top: 3em
}

#sidebar .avatar {
    width: 3em;
    height: 3em;
    border-radius: 100%;
    object-fit: cover;
}

#sidebar .logout i {
    font-size: 3em
}

#main {
    width: calc(100% - 9em);
    padding: 6em;
    float: right;
}

#main h1 {
    font-size: 4em;
    font-weight: 900;
    display: flex;
}

#modal {
    min-width: 90em;
    max-width: 960px;
}

#modal.minwidth {
    min-width: 55em
}

#modal .acciones {
    text-align: right;
}

#modal .acciones li {
    display: inline-block;
}

#modal .acciones li a {
    font-size: 1.4em;
    padding: 0.5em 0.3em;
    display: block;
}

#modal .cambiar_idioma {
    opacity: 0.5;
    filter: grayscale(100%);
}

#modal .cambiar_idioma.active {
    opacity: 1;
    filter: grayscale(0);
}

#modal .cambiar_idioma img {
    width: 1em;
    height: 1em
}

#modal h1 {
    font-size: 2.5em;
    font-weight: 900;
}

#modal h1.titulo_accion {
    font-size: 1.9em;
    font-weight: 900;
    margin: 0 0 1em
}

#modal h2 {
    font-size: 1.2em;
    font-weight: 400;
}

#modal h2 strong {
    font-weight: 400;
    color: var(--main-color)
}

#modal h3 {
    font-size: 1em;
    border-bottom: 2px solid #000;
    padding-bottom: 0.5em;
    margin-bottom: 1em;
}

#modal h4 {
    font-size: 1em;
    color: #6e6e6e;
    margin: 1em 0
}

#modal label,
#modal input,
#modal select {
    display: block;
    width: 100%
}

#modal label,
#modal .zebra>div {
    padding: 0.5em 2em
}

#modal .checks label,
#modal .radios label {
    width: auto !important;
    padding: 0.5em !important
}

#modal select {
    padding: 0.5em 0
}

#modal .col1 {
    width: 35%;
    align-self: baseline;
    padding-right: 3em
}

#modal .col1 img {
    width: 100%;
    border: 1px solid #e9e9e9
}

#modal .col2 {
    width: 65%
}

#modal .productos article {
    width: 25%;
    padding: 2em
}

#modal .files li {
    display: flex;
}

#modal .imagenes li {
    display: flex;
}

#modal .files li a,
.imagenes li a {
    padding: 0.5em;
    display: flex;
    align-items: center;
}

#modal .imagenes li a {
    padding: 0.5em;
    display: flex;
    align-items: center;
}

#modal .files li a:hover,
.imagenes li a:hover {
    background: #ddd;
    text-decoration: none
}

#modal .files li a span,
.imagenes li a span {
    font-size: 0.8em;
    word-break: break-all
}

#modal .files li a i,
.imagenes li a i {
    margin-right: 0.5em
}

#modal .files a.file,
.imagenes a.imagenes {
    width: 60%
}

#modal .imagenes a.file {
    width: 90%
}

#modal .imagenes a.borrar_btn {
    width: 10%;
    align-items: flex-end;
    margin-right: 0px;
}

#modal .files a.new,
.imagenes a.new {
    width: 100%;
    color: #007E32;
    border-top: 2px solid #fff;
    background: #eee
}

#modal .files a.edit,
#modal .files a.borrar_btn {
    width: 20%;
    align-items: flex-end;
}

#modal .imagenes a.edit,
#modal .imagenes a.borrar_btn {
    width: 10%;
    align-items: flex-end;
}

#modal .files a.edit i,
#modal .files a.borrar_btn i {
    margin: 0;
    opacity: 0.8;
}

#modal .imagenes a.edit i,
#modal .imagenes a.borrar_btn i {
    margin: 0;
    opacity: 0.8;
}

#modal.producto>.flex {
    align-items: flex-start;
}

#modal.producto .col1 {
    width: 16%;
    padding-right: 2em
}

#modal.producto .col1 img {
    width: 100%;
}

#modal.producto .col2,
#modal.producto .col3 {
    width: 42%;
    padding-left: 1em
}

#modal.producto h1 {
    margin-bottom: 2em
}

#modal.producto h4 {
    margin-bottom: 0
}

#modal.producto label {
    padding: 0.5em 0
}

#modal.producto .flex article {
    width: 50%;
    padding-right: 1em
}

#modal.producto .envases {
    flex-wrap: wrap;
}

#modal.producto .envases li {
    text-align: center;
    font-size: 0.8em
}

#modal.producto .envases img {
    display: block;
    margin: 0 auto 1em;
    height: 3.5em
}

#modal.producto .envases a {
    width: 7em;
    padding: 1em;
}

#modal.producto .envases a.active {
    border: 1px solid var(--main-color);
}

#modal.producto .archivos {
    padding: 1em;
    border: 1px solid #f1f1f1;
    /* width: 49% !important; */
    margin: 1% 0;
    ;
}

#modal .archivos-angosto {
    width: 49% !important;
}

#modal .archivos-ancho {
    width: 100% !important;
}

#modal.producto .archivos h4 {
    margin: 0 0 1em
}

#modal.producto .archivosFormatos {
    display: none
}

#modal .input_lang {
    display: none
}

#modal .input_es {
    display: block
}

#modal .tab {
    height: 10em;
    overflow-y: auto;
    display: none
}

#modal .tab li {
    display: block;
}

#modal .tab-btn {
    color: #6e6e6e
}

#modal .tab-btn.active {
    color: #000;
    text-decoration: underline;
}

#modal .productos h4 {
    display: flex;
    justify-content: space-between;
}

#img_upload {
    cursor: pointer
}

#img_hidden,
#file_hidden,
#otras_img_hidden {
    opacity: 0
}

#seleccion {
    margin-top: 2em
}

#seleccion article {
    width: 100%;
    margin-bottom: 1em;
    padding-bottom: 1em;
    border-bottom: 2px solid #444;
    align-items: flex-start;
}

#seleccion h3 {
    border: none;
    text-align: center;
    width: 20%;
}

#seleccion h3 img {
    display: block;
    margin: 0 auto 1em;
}

#seleccion .archivos {
    width: 80%;
    display: flex;
    flex-wrap: wrap;
}

#seleccion .archivo {
    width: 50%;
    padding: 0 1em
}

#seleccion .archivo h4 {
    background: #F7F7F7;
    padding: 1em;
    color: #000;
    display: flex;
    align-items: center;
    cursor: pointer;
}

#seleccion .archivo h4::after {
    font-family: 'Material Icons';
    content: "expand_more";
    margin-left: auto
}

#seleccion .archivo h4.active::after {
    content: "expand_less";
}

#seleccion .archivo h4 i {
    margin-left: auto
}

@media all and (max-width: 1280px) {
    #main {
        padding: 6em 2em;
    }
    #modal {
        min-width: auto
    }
}

@media all and (max-width: 980px) {
    body {
        font-size: 13px;
    }
    .layout {
        width: 100%;
    }
    body.login {
        background: none
    }
    #login {
        flex-wrap: wrap;
        padding: 0
    }
    #login .logo,
    #login article {
        width: 100%;
        padding: 4em
    }
    #sidebar {
        display: none;
        width: 100%;
        height: auto;
        position: relative;
    }
    #sidebar .logo {
        display: none
    }
    #main {
        display: block;
        width: 100%;
        padding: 2em
    }
    #header_mobile {
        display: flex;
        background: var(--main-color);
        align-items: center;
    }
    #header_mobile .logo img {
        width: 11em;
        padding: 2em
    }
    #header_mobile .menu {
        margin-left: auto;
        font-size: 2em;
        color: #fff;
        padding: 1em
    }
    #modal .productos article {
        width: 50%
    }
    #modal.producto .col1 {
        width: 30%;
    }
    #modal.producto .col2 {
        width: 70%
    }
    #modal.producto .col3 {
        width: 100%
    }
}

@media all and (max-width: 550px) {
    body {
        font-size: 12px;
    }
    .btn-new {
        width: 2em;
        height: 2em
    }
    #header_mobile .logo img,
    #header_mobile .menu,
    #main {
        padding: 1rem
    }
    #main h1 {
        font-size: 3em;
        display: block;
    }
    #datatable_wrapper {
        padding: 1em !important;
        overflow-x: auto;
    }
    #datatable_filter {
        padding: 0 !important;
        margin: 0 0 1em !important;
        border: none !important
    }
    table.dataTable {
        width: auto;
    }
    table.dataTable thead th {
        padding-right: 2em
    }
    #modal {
        padding: 2em;
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important
    }
    #modal .col1,
    #modal .col2 {
        width: 100%;
        padding: 0 0 1em
    }
    #modal .col1 img {
        width: 10em;
        display: block;
        margin: 0 auto 1em
    }
    #modal .productos article {
        width: 100%;
        padding: 0 0 2em
    }
    #seleccion h3,
    #seleccion .archivos,
    #seleccion .archivo {
        width: 100%
    }
    .otrasImagenes {
        display: flex;
        flex-wrap: wrap;
        padding: 1em;
        border: 1px solid #000000;
        width: 100% !important;
        margin: 1% 0;
    }
    .h4otrasImagenes {
        width: 100% !important;
    }
    .archivos-ancho {
        max-width: 100%;
        width: 100% !important;
    }
}