@media only screen and (max-width: 1023px) {

    html {
        font-size: 20px;
    }

    .html-security {
        font-size: 16px;
    }

    .text-label {
        font-size: 1.1rem;
    }

    .gray {
        color: #999;
    }

    /*** Bootstrap Fix ***/
    .col-xs-1 {
        width: 8.33333333% !important;
    }
    .col-xs-11 {
        width: 91.66666667% !important;
    }
    .col-xs-12 {
        width: 100%;
    }

    /*** Navbar Fix - collapsed by default in mobile ***/
    .navbar .navbar-header {
        float: none;
        position: relative;
        min-height: 8rem;
    }

    .navbar-left,
    .navbar-right {
        float: none !important;
    }

    .navbar-toggle {
        display: block;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        left: 0;
    }

    .navbar-collapse {
        border-top: 0.0625rem solid transparent;
        box-shadow: inset 0 0.0625rem 0 rgba(255, 255, 255, 0.1);
    }

    .navbar-fixed-top {
        top: 0;
        border-width: 0 0 0.0625rem;
    }

    .navbar-collapse.collapse {
        display: none !important;
    }

    .navbar-nav {
        float: none !important;
        margin-top: 0.4688rem;
    }

    .navbar-nav>li {
        min-height: 5rem;
    }

    .navbar-nav>li>a {
        padding: 2rem 0;
    }

    .collapse.in {
        display: block !important;
    }

    /*** Navbar fix - end ***/

    /*Show navbar, hide navigation and make content full width*/
    .navbar {
        display: block !important;
        min-height: 3.75rem;
        margin-bottom: 0;
        border-bottom: 0.0625rem solid #ff6900;
    }

    .navigation {
        display: none;
    }

    .main-content {
        width: 100%;
        border-radius: 0;
    }

    .main-content .container-pad {
        margin-bottom: 1.875rem;
    }

    .navbar .navbar-brand .logo {
        display: inline-block;
        margin-right: 0.875rem;
        width: 4.5rem;
    }

    .navbar .navbar-nav>li {
        float: none;
    }

    .navbar .navbar-brand {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-weight: 600;
        color: #ff6900;
        font-size: 2rem;
        height: 50%;
    }

    .navbar-toggle .icon-bar {
        background: black;
        transition: background-color 1s ease;
    }

    .navbar-toggle.collapsed .icon-bar {
        background: #ff6900;
    }

    .navbar .menu-item {
        font-weight: 600;
        font-size: 2rem;
        line-height: 2.5rem;
        color: #A6ACBE;
    }

    .navbar .menu-icon {
        width: 3rem;
        height: 3rem;
    }

    .navbar .menu-item.active {
        color: #FF6900;
    }

    .navbar .menu-icon {
        margin-bottom: 0;
    }

    .navbar .navbar-collapse {
        padding: 0;
    }

    .navbar .navbar-collapse .nav {
        margin: 0 auto;
    }

    .account.grid-container {
        grid-template-areas: "edit info"
            "help info";
        grid-auto-columns: auto;
    }

    .account .help {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 40rem;
    }

    .account .help .row {
        margin: 0;
    }

    .puntos.grid-container {
        grid-template-areas:
            "luz consumo"
            "luz consumo"
            "ahorro gasto"
            "ahorro help"
            "historico historico"
            "facturas facturas";
    }

    .contratos.grid-container {
        grid-template-areas:
            "info descarga"
            "luz address"
            "luz address";
        grid-auto-columns: auto;
    }

    .contratos .descarga {
        height: unset;
        background-image: none;
    }

    .docs.grid-container {
        grid-template-areas: "tabs""content""upload";
        grid-auto-columns: auto;
        grid-row-gap: 2%;
        grid-template-rows: auto 56rem auto;
    }

    .docs .nav-pills {
        display: none !important;
    }

    .docs .tabs .tabs-select {
        margin: 0 auto;
        display: block;
        width: unset !important;
    }

    .docs .tabs .tabs-select .dropdown-toggle {
        padding: 2%;
        font-size: 2rem;
    }

    .docs .tabs .tabs-select .dropdown-menu li a {
        padding: 2%;
    }

    .docs .tabs .tabs-select .dropdown-toggle .filter-option {
        overflow: initial;
    }

    .docs .tabs .tabs-select .dropdown-toggle .filter-option-inner-inner {
        overflow: initial;
    }

    .docs .upload .datepicker {
        width: 100%;
    }

    .docs .upload .upload-collapse-toggle {
        display: flex;
    }

    .pagination {
        box-shadow: none;
        font-size: 1rem;
    }

    .pagination li a{
        padding: 0.5rem 1.5rem;
        font-size: 1.5rem;
    }
    .dataTables_wrapper .col-sm-7{
        width: 100%;
    }

    .docs .upload .file-upload {
        display: flex;
        justify-content: center;
        margin-top: 1rem;
    }

    .docs .upload .row-title {
        height: unset;
    }

    .contact .add-buttons {
        width: 66%;
        width: 25%;
    }

    .contact .contact-left {
        width: 100%;
    }

    .contact .contact-right {
        width: 100%;
        display: none;
    }

    .contact .chat-back {
        display: block;
        width: 4.3333rem;
        height: 4.3333rem;
        padding: 1.1667rem;
        background: white;
        border-radius: 50%;
        cursor: pointer;
        box-shadow: 0rem 0.4167rem 0.9167rem rgba(0, 0, 0, 0.07);
        position: absolute;
        left: 0;
    }

    .incidencias .title {
        margin-bottom: 2rem;
    }

    .incidencias .table-container {
        height: 92rem;
    }

    .incidencias .table-container .table-card-deck {
        display: grid;
        grid-row-gap: 2rem;
    }

    /* .incidencias .table-container.bottom-fade::after {
        background-image: none;
    } */

    .incidencias .table-container .card {
        box-shadow: 0rem 0.1875rem 0.625rem rgba(3, 9, 20, 0.05);
        border-radius: 1.25rem;
        padding: 2rem;
        border: 0.0625rem solid orange;
    }

    /* Seguridad */
    .security.body-container {
        width: 100%;
        height: 100%;
        position: relative;
    }

    .security-box {
        width: 70%;
        height: 70%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .security-box input {
        width: 100%;
        height: 3em;
        background: #FFFFFF;
        border: 0.0367em solid #FFFFFF;
        box-sizing: border-box;
        box-shadow: 0em 0.25em 0.6875em rgba(0, 0, 0, 0.15);
        border-radius: 1.25em;
        padding: 0.9375em 1.875em;
    }

    .security-box .btn {
        width: 19.6875em;
        height: 2.9375em;
    }

    .security-box .logo {
        width: 20rem;
        margin-bottom: 5rem;
    }

    .security-box .login {
        display: grid;
        grid-row-gap: 2.8125em;
    }

    .security-box input {
        font-size: 3rem;
    }

    .security-box .btn {
        font-size: 3rem;
        width: 100%;
    }

    .security-box p,
    .security-box a {
        font-size: 3rem;
    }

    .login .forgot-pw-text {
        margin-top: 0.625em;
    }

    .navbar .navbar-toggle .icon-bar {
        display: block;
        width: 3rem;
        height: 0.33rem;
        border-radius: 0.0625rem;
    }

    .header .header-right {
        display: none;
    }

    .header-right {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: 0;
        height: 30%;
        z-index: 100;
        width: 50%;
    }

    .header-right .user-info {
        margin-right: 0.5rem;
    }

    .header-right .user-info .user-avatar {
        width: 4rem;
        height: 4rem;
        float: right;
    }

    .header-right .user-info .notifications {
        left: unset;
        position: relative;
        /* grid-auto-rows: auto; */
    }

    .header-right .user-info .notifications .notification {
        font-size: 2rem;
        height: unset;
        display: flex;
        align-items: center;
    }


    .header-right .user-icons {
        width: 2.5rem;
        height: 2rem;
    }

    .header-right .user-info .user-name {
        font-size: 2rem;
        line-height: 2.5rem;
    }

    .header-right .user-info .user-mail {
        font-size: 1.25rem;
    }

    .account.grid-container {
        grid-auto-columns: 38% 57%;
        grid-auto-rows: auto 45rem;
    }

    .account>div {
        padding: 1.25rem 0.5rem;
    }

    .account .info-container {
        grid-auto-rows: max-content;
        min-height: 100%
    }

    .account .edit .center {
        max-width: 18rem;
        word-break: break-word;
    }

    .descarga .btn {
        margin-top: 4rem !important;
    }

    .contratos .address .titular {
        padding: 4.0625rem 2rem;
    }

    .contratos .other {
        height: 20rem;
    }

    .contact .chat-content .panel-body {
        padding: 2.5rem 5rem;
        display: grid;
        grid-row-gap: 1.5rem;
        height: 70em;
    }

    .contact .chat-tabs {
        display: grid;
        grid-row-gap: 2.5rem;
        overflow-y: auto;
        mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
        scrollbar-width: thin;
        height: auto;
    }

    .contact .add-buttons {
        margin-bottom: 0rem;
    }

    .account .info .icon-medal {
        width: 100%;
        height: auto;
    }

    .modal-dialog {
        width: 45rem;
        margin: 30px auto;
        font-size: 1.2rem;
    }

    .modal-dialog input {
        font-size: 1.5rem;
        height: 3rem;
    }

    .modal-dialog textarea {
        font-size: 1.5rem;
        height: 3rem;
    }


    .modal-title {
        font-size: 1.5rem;
    }

    iao-alert-box {
        max-width: 50rem !important;
        font-size: 1.5rem !important;
    }

    iao-alert {
        font-size: 1.5rem !important;
    }

    .ultimomsg {
        font-size: 1.2rem;
    }

    .msg-content {
        font-size: 1.5rem;
    }

    .contact .chat-body .msg.reply .msg-content {
        font-size: 1.5rem;
    }

    .contact .chat-footer .chat-input {
        height: 5rem;
        font-size: 1.5rem;
    }

    .contact {
        padding: 2.5rem 5rem;
        padding: 1rem;
    }

    .contact-left {
        padding: 1.5rem;
    }

    .contact .chat-tabs .chat-avatar {
        width: 100%;
        height: auto;
    }

    .header .row-1 {
        margin-top: 2rem;
    }

    .header .title-container {
        margin-top: 0;
        margin-bottom: 2rem;
    }


    ::-webkit-scrollbar:vertical {
        width: 0.7rem;
    }

    .docs .content .table tr td .fa {
        font-size: 2rem;
    }

    .datepicker table {
        font-size: 2rem;
    }

    .docs .upload .row-upload {
        align-items: baseline;
    }

    .select-empresa{
        display:none;
    }
}