﻿/*.sy-grid,*/
#divAppSearchGrid {
    background-color: #ffffff;
    border: 1px solid black;
    padding: 3px;
    overflow: hidden;
    white-space: nowrap;
    /*max-height: 245px;*/
    width: 100%;
    top: 0px;
    left: 0;
    right: 0;
    position: fixed;
}

/*.sy-grid:not(#divAppSearchGrid) {
        position: relative;
        overflow-x: auto;
    }*/

/*.sy-grid:not(#divAppSearchGrid)::after
{
    content: '';
    position: absolute;
    bottom: 0;
    width: 240px;
    height: 25px;
    background: linear-gradient( rgba(255, 255, 255, 0.001), white);
    pointer-events: none;
}*/

.sy-grid-table-wrapper table {
    table-layout: fixed;
}

#divAppSearchGrid {
    display: flex;
    flex-grow: 0;
    flex-shrink: 0;
    -ms-flex-direction: column;
    -webkit-flex-direction: column;
    flex-direction: column;
    -ms-flex-wrap: nowrap;
    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;
    width: 100%;
    align-self: flex-start;
}

    /*#divAppSearchGrid.pinned {
        margin-top: 5px;
        width: 98.55%;
    }*/

    /*#divAppSearchGrid.expanded:not(.pinned) {
        -moz-box-shadow: 0 4px 8px 0 rgba(0,0,0,0.35);
        -webkit-box-shadow: 0 4px 8px 0 rgba(0,0,0,0.35);
        box-shadow: 0 4px 8px 0 rgba(0,0,0,0.35);
        bottom: 0px;
    }*/

    #divAppSearchGrid.expanded {
        -moz-box-shadow: 0 4px 8px 0 rgba(0,0,0,0.35);
        -webkit-box-shadow: 0 4px 8px 0 rgba(0,0,0,0.35);
        box-shadow: 0 4px 8px 0 rgba(0,0,0,0.35);
        /*bottom: 0px;*/
        top: 35px;
        height: 95vh;
    }

    #divAppSearchGrid:not(.pinned) {
        position: sticky;
        /*position: absolute;*/
        /*height: 100%;*/
        /*top: 0px;*/
        top: 30px;
        z-index: 9100;
        /*left: 5px;
    right: 5px;*/
        /*max-width: 1920px;*/
        margin: auto;
    }

.sy-header[style*='display: none'] #divAppSearchGrid {
    top: 0px;
}

/*#divAppSearchGrid:not([.sy-header]:visible)*/
/*.sy-header[hidden] ~ #divAppSearchGrid {
    top: 5px;
}*/

#divAppSearchGrid .sy-grid-table-wrapper {
    flex-grow: 1;
    flex-shrink: 0;
    background-color: rgba(242, 242, 242, 1);
    width: 100%;
}

#divAppSearchGrid:not(.pinned) .sy-grid-table-wrapper {
    /*max-height: 565px;*/
    /*height: 565px;*/
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: auto;
    overflow: auto;
}

#divAppSearchGrid.collapsed:not(.pinned) .sy-grid-table-wrapper {
    overflow: hidden;
}

#divAppSearchGrid.pinned,
#divAppSearchGrid.pinned .sy-grid-table-wrapper {
    max-height: 385px;
    align-self: center;
}

    #divAppSearchGrid.pinned .sy-grid-table-wrapper {
        max-height: 322px;
        height: 300px;
        overflow: auto;
    }

#divAppSearchGrid .sy-grid-table-wrapper table tbody,
#divAppSearchGrid .sy-grid-controls {
    display: none;
}

#divAppSearchGrid .sy-grid-controls {
    /*height: 40px;*/
    height: 50px;
    padding-top: 10px;
    flex-grow: 0;
    flex-shrink: 0;
}

/*.sy-header[hidden] ~ .sy-content {
    top: 105px !important;
}*/

/*#divAppSearchGrid:not(.pinned) ~ .sy-content {
    top: 124px !important;
}*/

#divAppSearchGrid.pinned ~ .sy-content {
    margin-top: 3px;
}

#divAppSearchGrid.pinned .sy-grid-controls {
    margin-top: 2px;
}

#divAppSearchGrid table thead tr.sy-grid-sort th span {
    margin-right: 5px;
}

#divAppSearchGrid table thead tr.sy-grid-sort th {
    border-bottom: none;
    border-top: none;
    padding: 2.5px 3px;
}

#divAppSearchGrid table thead tr.sy-grid-filter th {
    border-top: none;
    padding-top: 0;
}

    #divAppSearchGrid table thead tr.sy-grid-filter th .sy-input-group {
        width: 100%;
    }

    #divAppSearchGrid table thead tr.sy-grid-filter th span.sy-input-group-add-on {
        padding: 0 5px;
        height: 25px;
    }

        #divAppSearchGrid table thead tr.sy-grid-filter th span.sy-input-group-add-on i {
            font-size: 10px;
        }

    #divAppSearchGrid table thead tr.sy-grid-filter th input.sy-input-group-add-on {
        background-color: white;
        text-align: left;
        line-height: 1;
        padding: 0 12px;
    }

#divAppSearchGrid table thead tr.sy-grid-sort {
    height: auto;
}

#divAppSearchGrid table tbody tr:nth-child(even):not(:hover) {
    background-color: rgba(235, 245, 255, 1);
}

#divAppSearchGrid table tbody tr:nth-child(odd):not(:hover) {
    background-color: white;
}

#divAppSearchGrid table tbody tr.selected:not(:hover) {
    background-color: lightblue;
}

#divAppSearchGrid table tbody tr td {
    border-top: none;
    border-bottom: none;
    overflow: hidden;
    text-overflow: ellipsis;
    /*white-space: nowrap;*/
    max-width: 0px;
    /*width: 30px;*/
}

/*#divAppSearchGrid table tbody tr span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 30px;
    width: 30px;
}*/

#divAppSearchGrid table tbody tr:last-child td {
    border-bottom: 1px solid black;
}


#divAppSearchGridBar {
    border: 1px solid black;
    display: flex;
    -ms-flex-wrap: nowrap;
    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
    flex-grow: 0;
    flex-shrink: 0;
    /*background-image:url('/Content/Images/pattern.png');
    background-repeat: repeat-x;*/
}

    #divAppSearchGridBar > .sy-column-6 {
        display: flex;
        -ms-flex-wrap: nowrap;
        -webkit-flex-wrap: nowrap;
        flex-wrap: nowrap;
        align-items: flex-start;
        flex-grow: 1;
        flex-shrink: 1;
    }

        #divAppSearchGridBar > .sy-column-6:first-child {
            justify-content: flex-start;
        }

        #divAppSearchGridBar > .sy-column-6:last-child {
            justify-content: flex-end;
        }

    #divAppSearchGridBar .sy-handle-label {
        height: 100%;
        line-height: 1.5;
        padding: 0 3px;
        color: white;
    }

.sy-grid thead,
.sy-grid tfoot,
#divAppSearchGridBar,
#btnAppSearchGridPin,
#btnAppSearchGridExpandCollapse {
    background-color: #2983d9;
    /*background: -moz-linear-gradient(90deg, rgba(46,147,242,1) 0%, rgba(41,131,217,1) 50%, rgba(46,147,242,1) 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(46,147,242,1)), color-stop(50%, rgba(41,131,217,1)), color-stop(100%, rgba(46,147,242,1)));
    background: -webkit-linear-gradient(90deg, rgba(46,147,242,1) 0%, rgba(41,131,217,1) 50%, rgba(46,147,242,1) 100%);
    background: -o-linear-gradient(90deg, rgba(46,147,242,1) 0%, rgba(41,131,217,1) 50%, rgba(46,147,242,1) 100%);
    background: -ms-linear-gradient(90deg, rgba(46,147,242,1) 0%, rgba(41,131,217,1) 50%, rgba(46,147,242,1) 100%);
    background: linear-gradient(0deg, rgba(46,147,242,1) 0%, rgba(41,131,217,1) 50%, rgba(46,147,242,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#2E93F2', endColorstr='#2E93F2',GradientType=0 );
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#2E93F2', endColorstr='#2E93F2',GradientType=0 );*/
    /*background: #54666d;
background: -moz-linear-gradient(top, #54666d 0%, #5e7078 50%, #49595f 51%, #4c5b61 71%, #4d5b60 100%);
background: -webkit-gradient(left top, left bottom, color-stop(0%, #54666d), color-stop(50%, #5e7078), color-stop(51%, #49595f), color-stop(71%, #4c5b61), color-stop(100%, #4d5b60));
background: -webkit-linear-gradient(top, #54666d 0%, #5e7078 50%, #49595f 51%, #4c5b61 71%, #4d5b60 100%);
background: -o-linear-gradient(top, #54666d 0%, #5e7078 50%, #49595f 51%, #4c5b61 71%, #4d5b60 100%);
background: -ms-linear-gradient(top, #54666d 0%, #5e7078 50%, #49595f 51%, #4c5b61 71%, #4d5b60 100%);
background: linear-gradient(to bottom, #54666d 0%, #5e7078 50%, #49595f 51%, #4c5b61 71%, #4d5b60 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#54666d', endColorstr='#4d5b60', GradientType=0 );*/
    /*background: #829ca6;
background: -moz-linear-gradient(top, #829ca6 0%, #98acb3 50%, #6d8d97 51%, #718e98 71%, #769198 100%);
background: -webkit-gradient(left top, left bottom, color-stop(0%, #829ca6), color-stop(50%, #98acb3), color-stop(51%, #6d8d97), color-stop(71%, #718e98), color-stop(100%, #769198));
background: -webkit-linear-gradient(top, #829ca6 0%, #98acb3 50%, #6d8d97 51%, #718e98 71%, #769198 100%);
background: -o-linear-gradient(top, #829ca6 0%, #98acb3 50%, #6d8d97 51%, #718e98 71%, #769198 100%);
background: -ms-linear-gradient(top, #829ca6 0%, #98acb3 50%, #6d8d97 51%, #718e98 71%, #769198 100%);
background: linear-gradient(to bottom, #829ca6 0%, #98acb3 50%, #6d8d97 51%, #718e98 71%, #769198 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#829ca6', endColorstr='#769198', GradientType=0 );*/
    color: white;
    font-weight: bold;
    /*position: fixed;
    z-index: 1;*/
}

.sy-grid td, .sy-grid th {
    border: 1px solid black;
    padding: 5px 3px;
    vertical-align: middle;
}

.sy-grid:not(#divAppSearchGrid) table tbody td:first-child i {
    display: block !important;
}

.sy-grid tr:not(.sy-grid-filter) {
    cursor: pointer;
}

/*New*/
.sy-grid:not(#divAppSearchGrid) table,
.sy-grid:not(#divAppSearchGrid) table tbody tr {
    width: 100%;
}
    /*New*/
    .sy-grid:not(#divAppSearchGrid) table thead {
        height: 35px;
    }
    /*New*/
    .sy-grid:not(#divAppSearchGrid) table tbody td {
        padding: 1px 3px;
    }

    /*New*/
    .sy-grid:not(#divAppSearchGrid) table tbody tr {
        height: 30px;
    }
    /*New*/
    .sy-grid:not(#divAppSearchGrid) table tbody td input {
        font-size: 90%;
        height: 25px;
        line-height: normal;
        margin: 0;
        padding: 0 6px;
    }
    /*New*/
    .sy-grid:not(#divAppSearchGrid) table tbody td .k-datepicker .k-picker-wrap .k-input {
        padding: 0;
        height: 100% !important;
    }
    /*New*/
    .sy-grid:not(#divAppSearchGrid) table tbody td .sy-dropdown {
        display: block;
        height: 100%;
    }
    /*New*/
    .sy-grid:not(#divAppSearchGrid) table tbody td button {
        font-size: 95%;
        height: 25px;
        line-height: normal;
        margin: 0;
        padding: 1px 6px !important;
        /*display: table-cell;
    vertical-align: middle;*/
        width: 100%;
    }

.sy-grid span {
    line-height: 0;
}

.sy-grid-sort {
    height: 35px;
}

    .sy-grid-sort th {
        line-height: 23px;
    }

.sy-grid-filter input {
    height: 28px;
}

.sy-grid input {
    color: black;
    font-weight: normal;
}

.sy-grid-last-column {
    width: 100%;
}

    .sy-grid-last-column input {
        width: 100%;
    }

.sy-grid-show-grid-button {
    margin-left: 0px;
    height: 23px;
}

.sy-grid-button-comparison {
    width: 20px;
}

.sy-grid-controls {
    /*padding: 5px 0px;*/
    /*top: 199px;*/
    /*position: absolute;*/
    /*position: relative;
    width: 100%;*/
    flex-grow: 0;
    flex-shrink: 0;
    width: 100%;
}

.sy-grid tbody tr:hover,
.sy-grid tbody tr:hover td {
    background-color: #fff8d1 !important;
    color: black !important;
}

    .sy-grid tbody tr:hover td span {
        color: black !important;
    }

.sy-grid-paging {
    width: 100px;
    display: inline-block;
}

/*.sy-glyphicon
{
    top: 5px !important;
}*/

.sy-grid .sy-glyphicon-remove {
    color: #D9534F;
}

/*.sy-grid-fixed-header
{
  width: auto;
  table-layout: fixed;
  border-collapse: collapse;
}*/
/*.fixed_header th {
  text-decoration: underline;
}*/
.sy-grid-fixed-header th,
.sy-grid-fixed-header tfoot td {
    padding: 5px 3px;
    /*text-align: left;*/
}
/*.fixed_header thead {
  background-color: #333;
  color: #FDFDFD;
}*/
.sy-grid-fixed-header thead tr,
.sy-grid-fixed-header tfoot tr {
    display: block;
    /*position: relative;
  width: 100px;*/
}

.sy-grid-fixed-header tbody {
    display: block;
    overflow-y: scroll;
    overflow-x: hidden;
    width: 100%;
    margin-top: 0px;
}

    .sy-grid-fixed-header tbody tr:first-child td {
        border-top: none
    }

.sy-grid-fixed-header tfoot {
    display: block;
    width: 100%;
    margin-top: 0px;
}
/*.fixed_header tbody tr:nth-child(even) {
  background-color: #DDD;
}*/

/*Versiones que no funciona meter la tabla en un div y aplicarles estas clases*/
/*.old_ie_wrapper {
  height: 200px;
  width: 750px;
  overflow-x: hidden;
  overflow-y: auto;
}
.old_ie_wrapper tbody {
  height: auto;
}*/
