#content {

    &:only-child {

        width: 100%;
    }

    span.success {

        font-size: 18px;
        font-weight: bold;
        color: #0f9928;
    }

    span.error {

        font-size: 18px;
        font-weight: bold;
        color: #FF0000;
    }

    span.warning {

        font-size: 18px;
        font-weight: bold;
        color: #ff9900;
    }

    table.content_table tr:nth-child(1) td { 

        background-image: url(/wp-content/images/bgta.png);
        background-size: contain;
        background-color: white;
        height: 30px;
        width: 125px;
        text-align: center;
        font-weight: bold;
        vertical-align: middle;
    }

    table.content_table tr:nth-child(even) {

        background-color: #FFFFFF;
    }

    table.content_table tr:nth-child(odd) {

        background-color: #E0E0E0;

        td {
            
            border-color: #FFFFFF;
        }
    }

    table.content_table td {

        vertical-align: middle;
        text-align: center;
    }

    table.content_table {

        .foto {
            
            width: 160px;
            height: 160px;
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
        }
    }

    table.content_table td {

        vertical-align: middle;
        text-align: center;
    }

    table.nomenclator.activada tr:first-child td:last-child {

        background-image: url(/wp-content/images/activada.png);
        background-repeat: no-repeat;
        background-position: right 3px top 7px;
    }
    
    table.nomenclator .activa::after {

        content: '';
        position: absolute;
        width: 6px;
        height: 12px;
        border: solid green;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
        margin-left: 5px;
    }
    
    table.nomenclator .no_activa::before,
    table.nomenclator .no_activa::after {

        content: "";
        position: absolute;
        width: 14px;
        height: 2px;
        background-color: red;
        margin-top: 11px;
    }

    table.nomenclator .no_activa::before {

        transform: translateY(-50%) rotate(45deg);
    }

    table.nomenclator .no_activa::after {

        transform: translateY(-50%) rotate(-45deg);
    }

    table tr:last-child td {
    
        border-bottom: none;
    }
    table tr td:last-child {

        border-right: none;
    }

    table tr:first-child td {
    
        border-top: none;
    }
    
    table tr td:first-child {

        border-left: none;
    }

    table td[data-order] {

        cursor: pointer;
        position: relative;

        &[data-order=ASC]::after {

            content: "";
            display: inline-block;
            margin-left: 5px;
            width: 0;
            height: 0;
            border-left: 5px solid transparent;
            border-right: 5px solid transparent;
            border-bottom: 7px solid #333;
            margin-bottom: 2px;
        }

        &[data-order=DESC]::after{

            content: "";
            display: inline-block;
            margin-left: 5px;
            width: 0;
            height: 0;
            border-left: 5px solid transparent;
            border-right: 5px solid transparent;
            border-top: 7px solid #333;
            margin-bottom: 2px;
        }

        &[data-order=""]::after{

            content: "";
            display: inline-block;
            margin-left: 5px;
            width: 0;
            height: 0;
            border-left: 5px solid transparent;
            border-right: 5px solid transparent;
            border-bottom: 7px solid #333;
            margin-bottom: 0px;
        }

        &[data-order=""]::before{

            content: "";
            display: inline-block;
            width: 0;
            height: 0;
            border-left: 5px solid transparent;
            border-right: 5px solid transparent;
            border-top: 7px solid #333;
            position: absolute;
            right: 13px;
            margin-top: 7px;
        }

        a {

            text-decoration: none;
            color: #000000;
        }
    }

    .paginacion {

        text-align: center;
        font-size: 14px;
    }

    form.busqueda {

        text-align: right;

        input[type=text] {

            margin-right: 10px;
            width: 140px;
            height: 22px;
        }

        select {
            height: 34px;
            width: 130px;
            margin-right: 10px;
        }
    }

    form.formulario_logs {

        text-align: center;
        font-size: 18px;

        div {

            margin: 10px;
        }
    }

    form.formulario {

        tr td:first-child {
            
            font-weight: bold;
            font-size: 18px;
        }

        i {

            margin-left: 5px;
        }

        .autocomplete_wrapper {

            display: inline-block;
            width: 50%;
            position: relative;
            padding-right: 10px;
            margin-right: 5px;

            .autocomplete {

                width: 100%;
            }

            .autocomplete_results {

                position: absolute;
                background: #fff;
                border: 1px solid #ddd;
                border-top: none;
                width: 100%;
                max-height: 220px;
                overflow-y: auto;
                list-style: none;
                margin: 0;
                padding: 0;
                z-index: 9999;
                box-shadow: 0 4px 10px rgba(0,0,0,0.1);

                li {

                    padding: 10px 12px;
                    cursor: pointer;
                    font-size: 14px;
                }

                li:hover, li.active {

                    background: #f2f2f2;
                }

                &:empty {
                    display: none;
                }
            }
        }

        button {

            height:27px;
        }
    }

    .gallery {

        width: 160px;
        height: 160px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        float:left;        
        border: 1px solid black;
        margin: 10px;
    }
}

#sidebar {

    table.content_table tr:nth-child(1) td { 

        background-image: url(/wp-content/images/bgta.png);
        background-size: contain;
        background-color: white;
        height: 30px;
        text-align: center;
        font-weight: bold;
        vertical-align: middle;
    }

    table.content_table tr:nth-child(even) {

        background-color: #FFFFFF;
    }

    table.content_table tr:nth-child(odd) {

        background-color: #E0E0E0;

        td {
            
            border-color: #FFFFFF;
        }
    }

    table.content_table td {

        vertical-align: middle;
        text-align: center;
    }

    table tr:last-child td {
    
        border-bottom: none;
    }
    table tr td:last-child {

        border-right: none;
    }

    table tr:first-child td {
    
        border-top: none;
    }

    table tr td:first-child {

        border-left: none;
    }
}

#baguetteBox-overlay {

    .bb-delete-btn {

        left: calc(2% + 10px);

        &::after {

            content: '';
            display: block;
            width: 30px;
            height: 30px;
            background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="rgb(160,160,160)" class="bi bi-trash3-fill" viewBox="0 0 16 16"><path d="M11 1.5v1h3.5a.5.5 0 0 1 0 1h-.538l-.853 10.66A2 2 0 0 1 11.115 16h-6.23a2 2 0 0 1-1.994-1.84L2.038 3.5H1.5a.5.5 0 0 1 0-1H5v-1A1.5 1.5 0 0 1 6.5 0h3A1.5 1.5 0 0 1 11 1.5m-5 0v1h4v-1a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5M4.5 5.029l.5 8.5a.5.5 0 1 0 .998-.06l-.5-8.5a.5.5 0 1 0-.998.06m6.53-.528a.5.5 0 0 0-.528.47l-.5 8.5a.5.5 0 0 0 .998.058l.5-8.5a.5.5 0 0 0-.47-.528M8 4.5a.5.5 0 0 0-.5.5v8.5a.5.5 0 0 0 1 0V5a.5.5 0 0 0-.5-.5"/></svg>');
            background-size: contain;
            top: 20px;
            position: absolute;
        }
    }

    .bb-rotate-btn {

        left: calc(2% + 70px);

        &::after {

            content: '';
            display: block;
            width: 30px;
            height: 30px;
            background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="rgb(160,160,160)" class="bi bi-arrow-clockwise" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M8 3a5 5 0 1 0 4.546 2.914.5.5 0 0 1 .908-.417A6 6 0 1 1 8 2z"/><path d="M8 4.466V.534a.25.25 0 0 1 .41-.192l2.36 1.966c.12.1.12.284 0 .384L8.41 4.658A.25.25 0 0 1 8 4.466"/></svg>');
            background-size: contain;
            top: 20px;
            position: absolute;
        }
    }
}