$medium-screen: 992px !default;

/**------------ GENERAL ----------------**/

.card.material-table {
    border-radius: 4px !important;
}

.inset-card-table {
    box-shadow: 0px 1px 1px 0 rgba(0,0,0,0.1), 0px 0px 2px 0 rgba(0,0,0,0.2), 0px 0px 0px 0px rgba(0,0,0,0.1);
}

div.material-table {
    padding: 0px;
}

div.material-table th, div.material-table td, div.material-table td p, table.fixedHeader-floating th {
    font-size: 14px;
}

div.material-table.large-content th, div.material-table.large-content td, div.material-table.large-content td p, table.large-content.fixedHeader-floating th, thead.large-content th {
    font-size: 12px;
}

div.material-table th, div.material-table td {
    height: 48px !important;
    padding: 10px;
}

div.material-table.large-content th, div.material-table.large-content td {
    height: 36px !important;
}

div.material-table th {
    position: relative;
}

div.material-table thead tr,  table.fixedHeader-floating tr{
    border-bottom: 1px solid lightgrey !important;
}

div.material-table th span {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
  
div.material-table table tr td {
    line-height: normal;
    color: rgb(0, 0, 0);
    border-bottom: solid 1px #DDDDDD;
    text-align: center;
}

div.material-table table tr td, div.material-table table th, div.material-table table tr td p, div.material-table table tr td a, table.fixedHeader-floating th {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
  
div.material-table table tr td a i {
    font-size: 18px;
    line-height: 1em;
    color: rgba(0, 0, 0, 0.54);
}

div.material-table.large-content table tr td a i {
    line-height: 1em;
}
  
div.material-table table td p {
    line-height: normal;
}

div.material-table table th, table.fixedHeader-floating th{
    font-weight: bold;
    color: #171616;
    cursor: pointer;
    white-space: nowrap;
    vertical-align: middle;
    outline: none !important;
    text-align: center !important;
    text-transform: uppercase;
    background-color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1em;
}
  
div.material-table table tbody tr:hover {
    background-color: #EEE;
}
  
div.material-table table td, div.material-table table th, table.fixedHeader-floating th {
    border-radius: 0px !important;
}
  
div.material-table table th, div.material-table table td{
    input {
        margin: 0px !important;
        height: 48px !important;
    }
  
    select {
      height: 48px !important;
    }  
}

div.material-table.large-content table th, div.material-table.large-content table td{
    input {
        height: 36px !important;
    }
  
    select {
        height: 36px !important;
    }  
}
  
div.material-table table th:first-child, div.material-table table td:first-child, table.fixedHeader-floating th:first-child {
    padding: 10px 30px !important;
}
  
div.material-table table th p, div.material-table table td p, table.fixedHeader-floating th p, table.fixedHeader-floating th p {
    margin: 0;
}
  
table.dataTable.dtr-inline.collapsed>tbody>tr[role="row"]>td:first-child, table.dataTable.dtr-inline.collapsed>tbody>tr[role="row"]>th:first-child {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
}
  
table.dataTable.display tbody tr.odd>.sorting_1, table.dataTable.order-column.stripe tbody tr.odd>.sorting_1 {
    background-color: #f1f1f1;
}
  
table.dataTable.order-column tbody tr>.sorting_1, table.dataTable.order-column tbody tr>.sorting_2, table.dataTable.order-column tbody tr>.sorting_3, table.dataTable.display tbody tr>.sorting_1, table.dataTable.display tbody tr>.sorting_2, table.dataTable.display tbody tr>.sorting_3 {
    background-color: #fafafa;
}
  
table.dataTable.row-border tbody th, table.dataTable.row-border tbody td, table.dataTable.display tbody th, table.dataTable.display tbody td {
    border-top: 1px solid #ddd;
}
  
table.dataTable.nowrap th, table.dataTable.nowrap td, table.fixedHeader-floating th {
    white-space: nowrap;
}
  
table.dataTable.dtr-inline.collapsed>tbody>tr[role="row"]>td:first-child:before, table.dataTable.dtr-inline.collapsed>tbody>tr[role="row"]>th:first-child:before {
    margin: auto 0;
    top: 0;
    left: 4px;
    bottom: 0;
    right: 0;
    height: 14px;
    width: 14px;
    display: block;
    position: absolute;
    color: white;
    border: 2px solid white;
    border-radius: 14px;
    box-shadow: 0 0 3px #444;
    box-sizing: content-box;
    text-align: center;
    text-indent: 0 !important;
    font-family: 'Courier New', Courier, monospace;
    line-height: 14px;
    content: '+';
    background-color: #31b131;
}
  
table.dataTable.dtr-inline.collapsed>tbody>tr.parent>td:first-child:before, table.dataTable.dtr-inline.collapsed>tbody>tr.parent>th:first-child:before {
    content: '-';
    background-color: #d33333;
}
  
table.dataTable>tbody>tr.child span.dtr-title {
    display: inline-block;
    min-width: 75px;
    font-weight: bold;
}
  
table.dataTable tbody th.focus, table.dataTable tbody td.focus{
    box-shadow:inset 0 0 1px 2px #3366FF;
}

/**------------- FIXED HEADER -------------**/
table.fixedHeader-floating {
    position: fixed !important;
    background-color: white;
    table-layout: initial !important;
}

table.fixedHeader-floating.no-footer {
    border-bottom-width: 0;
}

table.fixedHeader-locked {
    position: absolute !important;
    background-color: white;
}

table.fixedHeader-floating th {
    background-color: #f1f1f1;
    padding: 10px;
    box-sizing: content-box;
    text-align: center !important;
    line-height: 1em;
    border-radius: 0px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    outline: none !important;
}

@media print{
    table.fixedHeader-floating{
        display:none;
    }
}

/**---------HEADER------------**/

div.material-table .table-title {
    font-size: 20px;
    color: #000;
}

th.dt-complex-header {
    border-top-width: 0 !important;
}
  
div.material-table .table-header {
    min-height: 70px;
    padding: 0px 14px ;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    display: flex;
    -webkit-display: flex;
    border-bottom: solid 1px #DDDDDD;
    background-color: #ffffff;
}

div.material-table .table-header div.table-title h5 {
    font-weight: bold;
}

div.material-table .table-header div.dt-buttons {
    display: flex;
    margin-left: auto;
}

div.material-table .table-header i {
    color: rgba(0, 0, 0, 0.54);
    font-size: 24px;
}
  
div.material-table .table-header .actions {
    display: -webkit-flex;
    margin-left: auto;
}
  
div.material-table .table-header .btn-flat {
    min-width: 36px;
    padding: 0 8px;
}
  
div.material-table .table-header input {
    margin: 0;
    height: auto;
}

div.material-table .table-header h6 {
    margin: 1rem 0rem !important;
}

/**-----------FOOTER-------------**/
div.material-table .table-footer {
    min-height: 48px;
    padding: 10px 14px;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-justify-content: flex-end;
    justify-content: flex-end;
    -webkit-align-items: center;
    align-items: center;
    font-size: 12px !important;
    color: rgba(0, 0, 0, 0.54);
    background-color: #ffffff;
}

div.material-table.large-content .table-footer {
    min-height: 36px;
}
  
div.material-table .table-footer .dataTables_length {
    display: -webkit-flex;
    display: flex;
}
  
div.material-table .table-footer label {
    font-size: 12px;
    color: #171616;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
}
  
div.material-table .table-footer .select-wrapper {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
}
  
div.material-table .table-footer .dataTables_info, 
div.material-table .table-footer .dataTables_length {
    margin-right: 10px;
}
  
div.material-table .table-footer .material-pagination {
    display: flex;
    -webkit-display: flex;
    margin: 0;
}
  
div.material-table .table-footer .material-pagination li:first-child {
    margin-right: 24px;
}
  
div.material-table .table-footer .material-pagination li a {
    color: rgba(0, 0, 0, 0.54);
}
  
div.material-table .table-footer .select-wrapper input.select-dropdown {
    margin: 0;
    padding-left: 10px;
    border-bottom: none;
    height: auto;
    line-height: normal;
    font-size: 12px;
    width: 60px;
}

.table-footer .dropdown-content li>a, .table-footer .dropdown-content li>span {
    font-size: 12px !important;
    padding: 6px 8px !important;
}

.table-footer .dropdown-content li, .table-footer .dropdown-content li {
    min-height: 20px !important;
}
  
div.material-table .table-footer select {
    background-color: transparent;
    width: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    height: auto;
    margin-left: 20px;
}

div.material-table table tfoot th{
    color: #171616 !important;
}
  
.paginate_button i {
    cursor: pointer;
}

a.paginate_button {
    color:#827e7e !important;
}

/**---------- BUSCADOR ------------**/
div.material-table .hiddensearch {
    padding: 0px 14px;
    border-bottom: solid 1px #DDDDDD;
    display: none;
}
    
div.material-table .hiddensearch input {
    margin: 0 auto;
    border: none !important;
    color: rgba(0, 0, 0, .84);
    font-size: 14px;
}

div.material-table.large-content .hiddensearch input {
    font-size: 12px;
}

/**---------- UTILIDADES -----------**/
.hidden_column {
    display: none !important;
}

th.dt-invisible-column {
    border: 0 !important;
    padding: 0 !important;
}
  
div.material-table ::-webkit-input-placeholder { 
    color: #9e9e9e;
    opacity: 1 !important;
}

.dt_input {
    text-align: center;
}

.cell-bordered {

}

table textarea {
    font-size: 14px !important;
    text-align: justify !important;
}

table.large-content textarea {
    font-size: 12px !important;
}

/** ------------ AGRUPACIONES ------------**/
.group {
    background-color: #eaeaea;
    font-weight: bold;
}

/**----------- FILTROS -------------**/
.dataTables_filter input {
    border-bottom: none !important;
    box-shadow: none !important;
}

div.material-table table th.sorting_asc,
div.material-table table th.sorting_desc {
    color: rgba(0, 0, 0, 0.87);
}
  
div.material-table table th.sorting:after,
div.material-table table th.sorting_asc:after,
div.material-table table th.sorting_desc:after {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 16px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    word-wrap: normal;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    content: "arrow_back";
    -webkit-transform: rotate(90deg);
    display: none;
    vertical-align: middle;
}
  
div.material-table table th.sorting:hover:after,
div.material-table table th.sorting_asc:after,
div.material-table table th.sorting_desc:after {
    display: inline-block;
}
  
div.material-table table th.sorting_desc:after {
    content: "arrow_forward";
}

/**---------- INDICADOR DE PROCESAMIENTO ------------**/
div.dataTables_processing {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 60px;
    margin-left: -50%;
    margin-top: -25px;
    padding-top: 20px;
    padding-bottom: 20px;
    text-align: center;
    font-size: 1.2em;
    background-color: white;
    background: -webkit-gradient(linear, left top, right top, color-stop(0%, rgba(255,255,255,0)), color-stop(25%, rgba(255,255,255,0.9)), color-stop(75%, rgba(255,255,255,0.9)), color-stop(100%, rgba(255,255,255,0)));
    background: -webkit-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);
    background: -moz-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);
    background: -ms-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);
    background: -o-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);
}

td.details-control {
    background: url('../img/app/details_open.png') no-repeat center center;
    cursor: pointer;
}

tr.shown td.details-control {
    background: url('../img/app/details_close.png') no-repeat center center;
}

.dtr-details li {
    text-align: left;
}

/**----------- BOTONES -------------**/
button.buttons-pdf {
    margin-right: 4px;
}

button.buttons-excel {
    margin-right: 4px;
}

/**----------- MEDIA QUERIES -----------**/
@media only screen and (max-width: $medium-screen) {
    table.responsive-table thead tr th::before {
        content: none;
    }

    div.material-table table.responsive-table th:first-child, div.material-table table.responsive-table th, div.material-table table.responsive-table td:first-child, div.material-table table.responsive-table th:last-child, div.material-table table.responsive-table td:last-child {
        margin: 0px;
        width: 100% !important;
    }

    table.responsive-table thead tr {
        padding: 0px !important;
    }

    div.material-table table.responsive-table th, div.material-table table.responsive-table td{
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex-wrap: wrap;
    }
}