﻿@media screen and (max-height: 650px) {
    #portal-header {
        height: 90px;
        min-height: 90px;
        margin-bottom: 28px;
    }
    #portal-header .container {
        grid-template-rows: 32px 57px auto;
        -ms-grid-rows: 32px 57px auto;
    }
    .new-button {
        width: 48px;
        height: 48px;
        font-size: 34px;
        margin-top: -24px;
    }
    h1 {
        font-size: 1.7em;
    }

    #table-wrapper {
        margin-top: 25px;
    }
    .elements-table thead {
        top: -40px;
    }
    .elements-table thead tr {
        height: 40px;
    }
}

@media screen and (max-height: 500px) {
    #portal-header {
        height: 75px;
        min-height: 75px;
        margin-bottom: 25px;
    }
    #portal-header .container {
        grid-template-rows: 32px 40px auto;
        -ms-grid-rows: 32px 40px auto;
    }
    .new-button {
        width: 45px;
        height: 45px;
        font-size: 32px;
        margin-top: -22px;
    }

    h1 {
        font-size: 1.5em;
    }
}


@media screen and (max-width: 1410px) {
    .container {
        padding: 0px 15px;        
    }
    .company-logo {
        display: none;
    }
   
}

@media screen and (max-width: 1225px) {
    .container {
        padding: 0px 10px;
    }
    #table-wrapper {
        margin-left: -10px;
        margin-right: -10px;
    }
}

@media screen and (max-width: 750px) {
    .container {
        padding: 0px 5px;
    }
    .new-button {
        right: 10px;
    }

    .filter-field {
        width: 175px;
    }
    .filter-value span {
        width: 50px;
    }
    .filter-value input[type=text],
    .filter-value select,
    .filter-value .ms-options-wrap {
        width: 150px;
    }
    .filter-buttons {
        margin: 0px 10px;
    }

    #table-wrapper {
        margin-left: -5px;
        margin-right: -5px;
    }
}



body.scrolling #portal-header {
    height: 43px;
    min-height: 43px;
    margin-bottom: 10px;
}

body.scrolling #portal-header .container {
    grid-template-rows: 0px 40px auto;
    -ms-grid-rows: 0px 40px auto;
}

body.scrolling .header-menu {
    height: 0px;
    padding: 0px;
    opacity: 0;
}


body.scrolling .new-button {
    width: 45px;
    height: 45px;
    font-size: 32px;
    margin-top: -22px;
}

body.scrolling h1 {
    font-size: 1.5em;
}

body.scrolling #table-wrapper {
    margin-top: 25px;
}

body.scrolling .elements-table thead {
    top: -40px;
}
body.scrolling .elements-table thead tr {
    height: 40px;
}

body.scrolling #table-wrapper.compact {
    margin-top: 10px;
}

body.scrolling .compact .elements-table thead {
    top: -25px;
}
body.scrolling .compact .elements-table thead tr {
    height: 25px;
}

body.scrolling #scroll-to-top {
    opacity: 0.7;
    display: block;
}
body.scrolling #scroll-to-top:hover {
    opacity: 1;
    cursor: pointer;

    box-shadow: 0 6px 12px rgba(0,0,0,.3);
}