﻿.dataTables_supplier {
    display: none;
    padding:10px;
}

section.content-common {
    background: rgba(246, 246, 246, 1);
}

.container-ins-fuid img {
    width: 100%;
    height: auto;
}

.form-row {
    display: flex;
    gap: 10px;
    margin: 10px auto 10px auto;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.card-national-supplier {
    margin: 10px auto;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 4px 4px 8px 0px rgba(0, 0, 0, 0.25);
}

.col.text-right {
    text-align: end;
    position: relative;
    right: 5%;
}

button.btn.btn-warning {
    width: 250px;
}

.form-group {
    max-width: 25%;
}

div#supplier_wrapper {
    margin: 30px auto;
}

div#supplier_filter {
    margin: 10px;
}

.dataTables_filter input {
    width: 400px;
    border: 1px solid rgba(217, 222, 227, 1);
    background: rgba(255, 255, 255, 1);
    outline: none;
}

thead {
    background: var(--primary_100);
    border-bottom: 1px solid var(--primary_100);
    color: var(--gray-20);
}



tr.odd-row {
    background: rgba(255, 255, 255, 1) !important;
}

tr.even-row {
    background: rgba(246, 246, 246, 1) !important;
}

td.sorting_1 {
    background: none !important;
}

a.paginate_button.current {
    background: #074a59 !important;
    border: none !important;
    color: white !important;
}

a.paginate_button:hover {
    background: rgba(29, 133, 156, 1) !important;
    color: white !important;
}

td.action-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    flex-direction: column;
    align-items: flex-start;
}

    td.action-buttons img {
        margin-right: 5px;
    }

a.btn-contact-supplier {
    padding: 5px;
    color: var(--primary_50);
}
table.dataTable {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 
        0 1px 3px rgba(0, 0, 0, 0.06);
}

table.dataTable thead .sorting_desc {
    background-image: url(/media/fjultlwg/sort-arrows-inver.svg) !important;
}

table.dataTable thead .sorting_asc {
    background-image: url(/media/yw2fwlb3/sort-arrows.svg) !important;
}


div#supplier_wrapper {
    margin: 0 auto;
    /* text-align: center; */
    display: flex;
    flex-direction: column;
    align-items: center;
}


input[type="search"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gICAgaWQ9ImcxNyIgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNjAuNCw4NjYuMjQxMzQpIj4gICAgICA8cGF0aCAgICAgICAgIGlkPSJwYXRoMTkiICAgICAgICAgZD0ibSAtNTAuNSwxNzkuMSBjIC0yLjcsMCAtNC45LC0yLjIgLTQuOSwtNC45IDAsLTIuNyAyLjIsLTQuOSA0LjksLTQuOSAyLjcsMCA0LjksMi4yIDQuOSw0LjkgMCwyLjcgLTIuMiw0LjkgLTQuOSw0LjkgeiBtIDAsLTguOCBjIC0yLjIsMCAtMy45LDEuNyAtMy45LDMuOSAwLDIuMiAxLjcsMy45IDMuOSwzLjkgMi4yLDAgMy45LC0xLjcgMy45LC0zLjkgMCwtMi4yIC0xLjcsLTMuOSAtMy45LC0zLjkgeiIgICAgICAgICBjbGFzcz0ic3Q0IiAvPiAgICAgIDxyZWN0ICAgICAgICAgaWQ9InJlY3QyMSIgICAgICAgICBoZWlnaHQ9IjUiICAgICAgICAgd2lkdGg9IjAuODk5OTk5OTgiICAgICAgICAgY2xhc3M9InN0NCIgICAgICAgICB0cmFuc2Zvcm09Im1hdHJpeCgwLjY5NjQsLTAuNzE3NiwwLjcxNzYsMC42OTY0LC0xNDIuMzkzOCwyMS41MDE1KSIgICAgICAgICB5PSIxNzYuNjAwMDEiICAgICAgICAgeD0iLTQ2LjIwMDAwMSIgLz4gICAgPC9nPiAgPC9nPjwvc3ZnPg==);
    background-repeat: no-repeat;
    background-color: #fff;
    background-position: 99% 6px !important;
}

@media (max-width: 900px) {



    .dataTables_wrapper {
        position: relative;
        clear: both;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        align-content: center;
    }

    table#supplier thead {
        display: none; /* Ocultar el encabezado de la tabla */
    }


    table#supplier tr {
        border-bottom: 1px solid rgba(222, 226, 230, 1);
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-content: center;
        justify-content: center;
        align-items: stretch;
        margin: 10px;
    }

        table#supplier tr td {
            border-top: none;        
            padding: 2px 0px 2px 8px;
        }

    td.action-buttons {
        margin-bottom: 5px !important;
    }
}

@media (max-width: 800px) {


        div#supplier_filter {
            width: 100%;
        }

        div#supplier_filter label{

            width:100%;
        }

    .dataTables_filter input {
        width: 80%;
    }

    .form-group {
        min-width: 80%;
    }

    .col.text-right {
        text-align: center;
        position: unset;
        right: 0;
    }

    button.btn.btn-warning {
        width: 80%;
    }
}

.dataTables_length {
    font-size: 24px !important;
    margin-top: 0;
    margin-bottom: .5rem;
    font-weight: 500;
    line-height: 1.2;
}

#supplier_controls {
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap; 
    width: 100%;
    margin-bottom: 20px; 
}

#supplier_length, #supplier_filter {
    margin: 0;
    padding: 0;
    display: inline-block;
}
@media (max-width: 992px) {
    #supplier_controls {
        flex-direction: column;
    }

    #supplier_length,
    #supplier_filter {
        margin-bottom: 10px;
    }
}


/*Sweet Alert*/
div.swal2-popup {
    width: 25em;
    border-radius: 25px;
    min-height: 350px;
    color: var(--primary_100);
}

div:where(.swal2-container) button:where(.swal2-styled):not([disabled]) {
    width: 350px;
    border-radius:25px;
    background-color: var(--primary_50);
}

/* Estilos específicos para CEDs usando las mismas clases de agentes-api-template.css */
#ceds-table {
    border: none !important;
}

#ceds-table thead {
    display: none !important;
}

#ceds-table tbody tr {
    border: none !important;
    background: transparent !important;
}

#ceds-table tbody td {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

/* Contenedor principal para todos los controles */
.ceds-controls-container {
    display: flex !important;
    align-items: end !important;
    justify-content: space-between !important;
    margin-bottom: 20px !important;
    flex-wrap: nowrap !important;
    gap:20px;
}

/* Contenedor del campo de búsqueda */
.ceds-search-container {
    flex: 1 !important;
    /*max-width: 400px !important;*/
}

.ceds-search-container .input-group {
    width: 100% !important;
}

.ceds-search-container input {
    height: 38px !important; /* Misma altura que los selects */
}

/* Contenedor para los selects alineados a la derecha */
.ceds-selects-container {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}

/* Asegurar que los selects tengan la misma altura que el input de búsqueda */
.ceds-province-div,
.ceds-canton-div {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    margin-bottom: 0 !important;
}

.ceds-province-div label,
.ceds-canton-div label {
    margin-bottom: 5px !important;
    font-size: 14px !important;
    color: #333 !important;
}

.ceds-province-div select,
.ceds-canton-div select {
    height: 38px !important; /* Misma altura que el input de búsqueda */
}

/* Responsive para tablets */
@media (max-width: 992px) {
    .ceds-controls-container {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 15px !important;
    }
    
    .ceds-search-container {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .ceds-selects-container {
        flex-direction: row !important;
        gap: 15px !important;
        width: 100% !important;
        justify-content: space-between !important;
    }
    
    .ceds-province-div,
    .ceds-canton-div {
        flex: 1 !important;
        margin: 0 5px !important;
    }
}

/* Responsive para mobile */
@media (max-width: 768px) {
    .ceds-controls-container {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 15px !important;
    }
    
    .ceds-search-container {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .ceds-selects-container {
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
    }
    
    .ceds-province-div,
    .ceds-canton-div {
        width: 100% !important;
        margin: 0 !important;
    }
    
    .ceds-province-div select,
.ceds-canton-div select {
    width: 100% !important;
}
}

/* Estilos para contact-methods de CEDs (igual que agentes-api-template.css) */
.contact-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-method {
    display: flex;
    align-items: center;
    background-color: #eef6f7;
    padding: 8px;
    border-radius: 20px;
    text-decoration: none;
    color: #007a8c;
    font-size: 13px;
}

.contact-method img {
    width: 16px;
    height: 16px;
}

.contact-method i {
    margin-right: 8px;
    font-size: 16px;
}

.contact-method:hover {
    background-color: #e0f0f2;
}
