<div class="table">
    <div class="tableRow" style="height: 10%">
        <div class="tableCell">
             
             <p class="titlePage"> Comunicaciones </p>
             
        </div>
    </div>
    
    <div class="tableRow">
        <div class="tableCell">
            
                <div class=centeredImage style="height: 100%">
                    <div class="headerFilter">
                        <div class="subTitlePage">
                            <p style="font-weight: 400;"> Mensajes </p>
                        </div>
                        
                        <div class="inputsContainer">
                           <div class="inputContainer">
                               <label for="search" class="ordered"> Buscar </label>
                                <input class="inputElement searching" type="text" id="search" name="search" style="border: none"> 
                                <div class="iconContainerSearch">
                                    <i class="fas fa-search" id="iconSearch"></i>
                                </div>
                            </div>
                            
                            <div class="inputContainer tabtext">
                               <label for="orderBy" class="ordered"> Ordenar por </label>
                                <select class="inputElement selectOrderBy" id="orderBy" name="orderBy" style="border: none"> 
                                    <option value="1" > Más reciente </option>
                                    <option value="2" > Usuario Email </option>
                                    <option value="3" > Mensaje </option>
                                </select>
                                <div class="iconContainerArrow">
                                    <i class="fas fa-caret-down" id="arrowOrderBy"></i>
                                </div>
                            </div>
                            <div class="inputContainer tabtext">
                                <select class="inputElement selectOrderBy" id="orderDirect" name="orderBy" placeholder="Nombre" style="border:none;width:70px" > 
                                    <option value="asc"> Asc </option>
                                    <option value="desc" selected> Desc </option>
                                </select>
                                <div class="iconContainerArrow" style="width: 15px;text-align: center;">
                                    <i class="fas fa-caret-down" style="width:auto" id="arrowOrderDir"></i>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="tableContainer">
                        <div class="rowContainer" style="height: 80%">
                            <div class="cellCnt">
                                <div class="tableCurrencies">
                                    
                                    <div class="headerTableCurrencies tabtext tabselect">
                                        <div class="inputContainer selectorbox" style="padding-left: 8px">
                                            <select class="inputElement selectOrderBy" id="rangeFilter" style="border: none; width:100%"> 
                                                <option value='' selected style="font-size: 13px"> Rango de Fechas </option>
                                                <option value="1" style="font-size: 13px"> Hoy </option>
                                                <option value="2" style="font-size: 13px"> Últimos 7 días </option>
                                                <option value="3" style="font-size: 13px"> Últimos 30 días </option>
                                                <option value="4" style="font-size: 13px"> Últimos 3 meses </option>
                                                <option value="5" style="font-size: 13px"> Últimos 6 meses </option>
                                            </select>
                                            <div class="iconContainerArrow">
                                                <i class="fas fa-caret-down" id="arrowRangeFilter"></i>
                                            </div>
                                        </div>
                                        
                                        <div class="inputContainer selectorbox relign">
                                            <select class="inputElement selectOrderBy" id="typeFilter" style="border: none; width:100%"> 
                                                <option value='' selected style="font-size: 13px"> Seleccionar Tipo </option>
                                                <option value="0" style="font-size: 13px"> Todos </option>
                                                <option value="1" style="font-size: 13px"> Enviados </option>
                                                <option value="2" style="font-size: 13px"> Recibidos </option>
                                            </select>
                                            <div class="iconContainerArrow">
                                                <i class="fas fa-caret-down" id="arrowTypeFilter"></i>
                                            </div>
                                        </div>
                                        <div class="circledown" id="addData">
                                            <i class="fas fa-plus blue" aria-hidden="true"></i>
                                        </div>
                                        
                                    </div>
                                    
                                    <div class="headerTableCurrencies" style="border: none; padding-top: 0px">
                                        <div class="inputContainer">
                                            <p style="font-size: 70%"> </p>
                                        </div>
                                        
                                        <div class="inputContainer">
                                           <p id="msgErrorLevelFilter" class="msgError" style="font-size: 70%; display: none"> Error al cargar los niveles </p>
                                        </div>
                                        
                                        
                                        <div class="inputContainer">
                                            <p style="font-size: 70%">  </p>
                                        </div>
                                    </div>
                                    <div class="rowCurrencie headtop headlist">
                                        <div class="cell1">
                                            <span class="colHead"> Leído </span>
                                        </div>
                                            
                                        <div class="cell2">
                                            <span class="colHead"> Ent-Sal </span>    
                                        </div>
                                        
                                        <div class="cell3">
                                            <span class="colHead"> Fecha y Hora </span>    
                                        </div>
                                            
                                        <div class="cell4">
                                            <span class="colHead"> Emisor-Destinatario </span>    
                                        </div>
                                        
                                        <div class="cell5">
                                            <span class="colHead"> Mensaje </span>    
                                        </div>
                                        
                                    </div>
                                    
                                    <p id="messageApi" ></p>
                                    <div class="bodyTableCurrencies" id="bodyTableCurrencies">
                                        <div class="rowCurrencieNoDefine rowImpar" style="display: none" id="noCurrencieDefine">
                                            <p id="msgInTable"> msg Error </p>
                                        </div>
                                    </div>
                                    
                                </div>
                            </div>
                            
                        </div>
                        
                        <div class="rowContainer" style="height: 20%;">
                            <div class="cellContainer"  >
                                <div class="rowContainer paginator" id="paginator">
                                    <div class="pageCntBox" align="center">
                                        <p>
                                            <i class='fas fa-angle-left editCurrencie'></i>
                                        </p>
                                        
                                        <div arrowsEvent="false" id="numbersPaginator">
                                               
                                        </div>
                                        
                                        
                                        <p>
                                            <i class='fas fa-angle-right editCurrencie'></i>
                                        </p>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            
        </div>
    </div>
</div>
<div id="modalconfir" class="modal" style="padding-top:10vh">
    <div class="bodyModal confirbox">
        <p class="tittlemodal" id="modalcTit"> Nuevo Mensaje </p>
        <div class="bodyCells">
            <div class="subCells">
                <div class="inputContainer selectorbox">
                    <input class="inputRow inputElement inputModal" placeholder="Fecha de envío" type="datetime-local" id="addDate" name="addDate">
                    <div class="sendlike">
                        <span>Enviar como</span>
                        <span id="sendEmail">
                            <i class="far fa-square iconBlue"></i>
                        </span>
                        <span>Email</span>
                        <span id="sendSms">
                            <i class="far fa-square iconBlue"></i>
                        </span>
                        <span>SMS</span>
                    </div>
                </div>
                <div class="inputContainer selectorbox1">
                    <select class="inputElement selectOrderBy inputRow currencyList" id="depFilter" style="border: none;"> 
                        <option value='' selected> Seleccionar un departamento </option>
                    </select>
                    <div class="iconContainerArrow left1">
                        <i class="fas fa-caret-down" id="arrowCurrencyFilter"></i>
                    </div>
                </div>
                <div class="inputContainer selectorbox1">
                    <div class="groupAdd"> 
                        <input userids="" placeholder="Seleccionar Destinatario(s)"  type="tags" id="searchUser" name="searchUser" autocomplete="off"> 
                    </div> 
                    <!--RESULTADOS DE BUSQUEDA-->
                    <div class="noShow searchResult" id="searchResult">
                        <ul class="resultsC" id="resultsC">
                        </ul>
                    </div>
                </div>
                
                <div class="inputContainer selectorbox1">
                    <div class="groupAdd"> 
                        <input placeholder="Etiquetas"  type="tags" id="addTags" name="addTags" autocomplete="off"> 
                    </div> 
                </div>
                
                <div class="inputContainer selectorbox1" style="width:91%;">
                    <textarea class="inputRow inputElement inputModal area" style="height:140px;" placeholder="Mensajes" id="addDescription" name="addDescription">
                    </textarea>
                </div>
             </div>   
        </div>
        <div class="errorMsg">
            <span class="error" id="msgErrorC">Error</span>
            </div>
        <div class="buttonsBox" id="buttonsCreate">
            <div class="subCells">
                <div class="buttondelete buttonsPop" id="cancelM">
                    ELIMINAR
                </div>
            </div>
            <div class="subCells space1">
                <div class="buttonacept buttonsPop" id="aceptM">
                    GUARDAR
                </div>
            </div>
        </div>
        
    </div>
</div>
<div id="modaldetails" class="modal">
    <div class="bodyModal confirbox1">
        <p class="tittlemodal"> Detalle de Mensaje </p>
        <div class="bodyCells1">
            <div class="detailsInfCnt">
                <div class="infLineCnt">
                    <div class="infLblCell"> Fecha/Hora </div>
                    <div class="infDetCell" id="dateDet"> 12/09/2020 10:50 pm </div>
                </div>
                <div class="infLineCnt">
                    <div class="infLblCell"> Emisor </div>
                    <div class="infDetCell" id="refDet"> Operaciones </div>
                </div>
                <div class="infLineCnt">
                    <div class="infLblCell"> Destinatario </div>
                    <div class="infDetCell" id="destDet"> javierramoselias@gmail.com </div>
                </div>
            </div>
            <div class="contMessage">
                <div class="detailsInfCnt" style="font-size:90%">
                    <span class="graytext"> Contenido del Mensaje </span>
                    <div class="messageLine">
                        <span class="blacktext" id="msgDet">  
                            Aquí iría todo lo relacionado con el contenido del mensaje
                        </span>
                    </div>
                </div>
                
            </div>
        </div>
        <div class="errorMsg"><span class="error" id="msgError">Error</span></div>
        <div class="buttonsBox1" id="buttonsCreate">
            <div class="subCells">
                <div class="buttondelete1 buttonsPop" id="cancelDet" refresh="0">
                    ACEPTAR
                </div>
            </div>
        </div>
    </div>
</div>
<!--<div id="modalconfir1" class="modal">
    <div class="bodyModal confirbox1">
        <p class="tittlemodal"> Detalle de Mensaje </p>
        <div class="bodyCells1">
            <div class="subCells1">
                <div class="infLine">
                    <span class="graytext"> Fecha/Hora </span>
                    <span class="graytext"> Destinatario </span>
                    <span class="graytext"> Emisor </span>
                    
                </div>
                <div class="infLine">
                    <span class="blacktext">  </span>
                    <span class="blacktext">  </span>
                    <span class="blacktext">  </span>
                </div>
            </div>
            <div class="contMessage">
                    <span class="graytext"> Contenido del Mensaje </span>
                        <div class="messageLine">
                            <span class="blacktext">  </span>
                        </div>
            </div>
        </div>
        <div class="errorMsg"><span id="msgError">Error</span></div>
        <div class="buttonsBox1" id="buttonsCreate">
            <div class="subCells">
                <div class="buttondelete1 buttonsPop" id="cancelM">
                    ELIMINAR
                </div>
            </div>
        </div>
    </div>
</div>-->
<input type="hidden" id="txid">