﻿#table-wrapper {
    position: relative;
    height: 100%;
    margin-top: 50px;

    transition: margin-top .3s;
    -moz-transition: margin-top .3s;
    -webkit-transition: margin-top .3s;
}
#table-scroller {
    overflow: auto;
    height: 100%;
}
.elements-table thead {
    position: absolute;
    top: -50px;
    
    transition: top .3s;
    -moz-transition: top .3s;
    -webkit-transition: top .3s;
}

.elements-table {
    width: 100%;
    border-spacing: 0px;
}
.elements-table tr {
    height: 52px;
}
.elements-table tr.headers {
    border-bottom: 1px solid #dedede;
}
.elements-table th,
.elements-table td {
    text-align: left;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding-right: 4px; /* Prevent the ellipsis to be too much to the next field*/
    overflow: hidden;
    
    background: none;
    border: 0px;    
    font-weight: normal;      
    
    min-width: 30px;
    box-sizing: border-box;
}
.elements-table th {
    text-transform: uppercase;
    font-size: 0.75em;
}
.elements-table th a,
.elements-table th label {
    text-overflow: ellipsis;
    display: block;
    overflow: hidden;
}
.elements-table th a {
    position: relative;
    box-sizing: border-box;
    padding-right: 10px;
}
.elements-table th a .order-asc,
.elements-table th a .order-desc {
    position: absolute;
    top: 5px;
    right: 2px;
}

/*  Hide the table headers, and show when hovering. 
    Turned off by default, below is the css to turn it on.
.elements-table th:not(:first-child):not(.sorting) {
    opacity: 0;
    transition: opacity .3s;
    -moz-transition: opacity .3s;
    -webkit-transition: opacity .3s;
}
.elements-table tr.headers:hover th {
    opacity: 1;
}*/

.elements-table th .order-asc,
.elements-table th .order-desc {        
    background: url(../images/Portal/order.svg) no-repeat;
    width: 6px;
    height: 3px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
    margin-bottom: 2px;

    transition: transform .3s;    
    -moz-transition: transform .3s;
    -webkit-transition: transform .3s;    
}
.elements-table th a:hover .order-desc,
.elements-table th a:not(:hover) .order-asc,
.elements-table th .order-asc.inactive {
    transform: scaleY(-1);
    -ms-transform: scaleY(-1);
    -moz-transform: scaleY(-1);
    -webkit-transform: scaleY(-1);
}
.elements-table th a:not(:hover) .order-asc.inactive {
    background: none;
}
.elements-table th.can-sort a:hover {
    background: white;
}


.elements-table tr.item {
    background: white;
    position: relative;
}
.elements-table tr.item td {
    border-bottom: 1px solid #f3f3f3;   
}
.elements-table tr.item td:first-child {
    font-weight: bold;
    font-size: 1.1em;
}
.elements-table th:first-child,
.elements-table td:first-child {
    padding-left: 20px;    
}
.elements-table td:first-child a {
    color: #3a4763;
}
.elements-table th:last-child,
.elements-table td:last-child {
    padding-right: 10px;
}

.elements-table tr.item:first-child td {
    border-top: 1px solid #DDDDDD;
}
.elements-table tr.item:nth-last-of-type(2) td {
    border-bottom: 1px solid #DDDDDD;
}

.elements-table tr.page-row td {
    text-align: center;
    font-size: 0.8em;
}
.elements-table tr.page-row:not(:last-child) {
    display: none;
}


.elements-table th.buttons-headercell,
.elements-table td.buttons-cell {
    width: 40px;
    position: relative;
    overflow: visible;
}
.elements-table .buttons-container {
    position: absolute;
    display: inline-block;
    white-space: nowrap;
    right: 15px;
    vertical-align: middle;
    margin-top: -7px;
    background: white;
}
.elements-table .buttons-container a {
    margin: 0px 10px;
}

#scroll-to-top {
    position: fixed;
    right: 10px;
    bottom: 10px;
    background: white;
    padding: 5px;
    display: none;
    opacity: 0;

    box-shadow: 0 3px 10px 0 rgba(0,0,0,.2);
    transition: box-shadow 150ms cubic-bezier(.4,0,1,1), opacity .3s;
    -moz-transition: box-shadow 150ms cubic-bezier(.4,0,1,1), opacity .3s;
    -webkit-transition: box-shadow 150ms cubic-bezier(.4,0,1,1), opacity .3s;
}

#progressbar {
    display: none;
    position: absolute;
    top: 0px;
    bottom: 0px;
    
    left: 0px;
    right: 0px;    
}
#progressbar .overlay {
    opacity: 0.5;
    background: #dddddd;
    height: 100%;
    width: 100%;
}
#progressbar.show {
    display: block;
}
#progressbar.show .econ-progressbar {
    display: block;
    position: absolute;
    bottom: 50%;
    width: 100%;
}
#progressbar.show .econ-progressbar-block {
    animation-name: econ-progressbar-block-move-1500;
}

@-webkit-keyframes econ-progressbar-block-move-1500 {
    0% {
        left: -16px;
        opacity: 1;
    }
    11% {
        left: 727.142856px;
        opacity: 1;
    }
    45% {
        left: 772.857144px;
        opacity: 1;
    }
    57% {
        left: 1500px;
        opacity: 1;
    }
    60% {
        left: 1500px;
        opacity: 0;
    }
    100% {
        left: -16px;
        opacity: 0;
    }
}

@keyframes econ-progressbar-block-move-1500 {
    0% {
        left: -16px;
        opacity: 1;
    }
    11% {
        left: 727.142856px;
        opacity: 1;
    }
    45% {
        left: 772.857144px;
        opacity: 1;
    }
    57% {
        left: 1500px;
        opacity: 1;
    }
    60% {
        left: 1500px;
        opacity: 0;
    }
    100% {
        left: -16px;
        opacity: 0;
    }
}

div.econ-progressbar-small {
    display: none;
    width: auto;
    overflow: hidden;
    margin: 5px;
    height: 16px; /* for jQuery progressbar in <=IE9 */
}

div.econ-progressbar-large {
    width: 100%;
    position: absolute;
    z-index: 101;
    display: none;
    top: 50%;
    height: 50px; /* for jQuery progressbar in <=IE9 */
}

div#econ-progressbar-overlay {
    display: none;
    opacity: 0.2;
    filter: Alpha(Opacity=20);
}

div.econ-progressbar-block {
    position: relative;
    -webkit-animation: 4.4s linear infinite; /* The specific animation is calculated and set in InitializeProgressbar.js */
    animation: 4.4s linear infinite;
    display: inline-block;
    opacity: 0;
    position: absolute;
}

div.econ-progressbar-block {
    width: 16px;
    height: 16px;
}

div.econ-progressbar-large div.econ-progressbar-block {
    width: 50px;
    height: 50px;
}

#block1 {
    background: #DB902D;
    -webkit-animation-delay: 1.8s !important;
    animation-delay: 1.8s !important;
}

#block2 {
    background: #9A9A9A;
    -webkit-animation-delay: 1.2s !important;
    animation-delay: 1.2s !important;
}

#block3 {
    background: #004996;
    -webkit-animation-delay: .6s !important;
    animation-delay: .6s !important;
}

#block4 {
    background: #011F53;
}