@media screen and (max-width: 720px) {
    .mainBox {
        width: auto;
    }


    .logoBox {
        display: none;
    }

    .bottons {
        min-height: calc(100vh - 53px);
    }

    .note-active {
        margin-left: none;
        min-height: 0px;
    }

    .note-body {
        height: 100%;
        overflow: auto;
    }

    .grid-content-4 {
        margin-left: -32px;
        font-size: smaller;
    }

    .modern-header {
        position: fixed;
        bottom: 0;
        top: auto;
        left: 0;
        width: 100%;
        margin: 0;
        z-index: 9999;
        grid-template-columns: 28% 57% 20% !important;
    }

    .username {
        display: flex;
        flex-direction: column-reverse;
        align-items: flex-end;
    }

    .nav-menu {
        grid-template-columns: 1fr 1fr 1fr !important;
    }

    .search-table {
        padding: 0px;
        height: calc(100vh - 63px);
        overflow: auto;
    }

    .grid-content-4 {
        grid-template-columns: 50% 50% !important;
    }

    #contacts {
        display: none;
        width: 100%;
        grid-template-columns: 50% 50%;
        height: 0px;

        section {
            display: none;
        }
    }

    .contacts {
        width: 100%;
    }

    .seguro {
        padding: 0px;
    }

    .heading {
        display: none !important;
    }

    #search-ref {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        padding: 0 8px;
        margin-top: 10px;

        input {
            width: 100% !important;
        }

        select {
            width: 100% !important;
        }

        label {
            display: none;
        }
    }

    #search-ref section:nth-child(1) {
        grid-column: span 2;
    }

    #search-ref section:nth-child(5) {
        order: 0;
    }

    #search-ref section:nth-child(4) {
        order: 0;
    }

    #search-ref section:nth-child(6) {
        display: none;
    }

    #search-ref section:nth-child(7) {
        grid-column: span 2;

        input {
            box-shadow: 2px 2px 3px 1px;
        }
    }

    #search-ref section:nth-child(2) {
        order: 0;
    }

    #cesiones {
        margin-top: 10px;
    }

    #cesiones ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
        align-items: center;
        list-style: none;
        padding: 0;
        margin: 0;
        text-align: center;
    }

    #cesiones li:nth-child(-n+2) {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        justify-content: center;
        width: 50%;
        font-size: medium;
    }

    #cesiones li:nth-child(n+3) {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    #cesiones li>i {
        display: none;
    }

    #cesiones li:nth-child(3) {
        order: 6;
        font-weight: bolder;
    }

    #cesiones li:nth-child(4) {
        order: 4;
    }

    #cesiones li:nth-child(5) {
        order: 6;
    }

    #cesiones li:nth-child(10) {
        order: 3;
    }

    #cesiones li:nth-child(7),
    #cesiones li:nth-child(8),
    #cesiones li:nth-child(9),
    #cesiones li:nth-child(11),
    #cesiones li:nth-child(12),
    #cesiones li:nth-child(13),
    #cesiones li:nth-child(14) {
        display: none !important;
    }

    footer {
        display: none;
    }

    /* Centros */

    #center-items {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        margin-top: 40%;

        ul {
            margin-left: -34px;
            grid-template-columns: 80%;
            grid-gap: 6px;
        }
    }

    #center-list-items {
        font-size: smaller;

        .corporativo {
            font-size: medium;
        }

        .header-title-contacts,
        .header-title-contacts,
        .heading-center {
            top: 0px;
        }

        h3 {
            top: 15px;
        }

        ul {
            grid-template-columns: 1fr 1fr;
        }

        li:nth-child(3),
        li:nth-child(4),
        li:nth-child(5),
        li:nth-child(6),
        li:nth-child(7),
        li:nth-child(8),
        li:nth-child(9) {
            display: none;
        }
    }

    /* Facturas Cabecera */
    form label {
        display: none;
    }

    .form-extBuy {
        display: block;
    }

    .form-group {
        display: block;
        top: 0 !important;

        input {
            width: auto !important;
        }

        #vor {
            width: 38px !important;
        }
    }

    #clientName {
        display: grid;
        grid-template-columns: 1fr 1fr !important;

        div select {
            margin-top: 3px !important;
            width: 90% !important;
        }

        div input {
            margin-top: 3px !important;
            width: 90% !important;
        }

        div:nth-child(1) {
            order: 10;
            display: flex;
            flex-direction: row;
            justify-content: space-evenly;

            &::before {
                content: 'Urgente: ' !important;
                font-weight: bolder;
            }
        }

        div:nth-child(2) {
            order: 1;
        }

        div:nth-child(3) {
            order: 3;
        }

        div:nth-child(4) {
            order: 6;
        }

        div:nth-child(5) {
            order: 5;
        }

        div:nth-child(6) {
            order: 4;
        }

        div:nth-child(7) {
            order: 7;
        }

        div:nth-child(8) {
            order: 8;
        }

        div:nth-child(8)::after {
            content: 'Desde' !important;
        }

        div:nth-child(9)::after {
            content: 'Hasta' !important;
        }

        div:nth-child(9) {
            order: 9;
        }

        div:nth-child(10) {
            order: 10;
        }
    }

    /* Facturas detalle */

    #center-item-pass {
        ul {
            grid-template-columns: repeat(4, 1fr) !important;
        }

        li:nth-child(9) {
            display: none;
        }

    }
}