@media only screen and (max-width:1000px) {
    /*
    table.lined, 
    table.lined  > *, 
    table.lined  > * > *, 
    table.lined  > * > * > * {
        display: block;
        text-align: left;
    }
    table.lined {
        border-top: 10px solid #e0e0e0;
        border-bottom: 10px solid #e0e0e0;
        margin: 20px 0;
    }
    table.lined thead {display: none; }
    table.lined tr {padding: 10px 20px; }
    table.lined td, 
    table.lined tr.first td {border: none !important; }
    table.lined td:before {
        font-weight:bold;
        text-transform:capitalize
    }
    table.lined td.edit, 
    table.lined td.delete, 
    table.lined td.view, 
    table.lined td.attachment {
        float: right;
    }    
    table.lined tr > *.edit {}
    table.lined tr > *.edit img {}
    table.lined tr > *.delete {}
    table.lined tr > *.delete img {}
    table.lined tr > *.date { }
    table.lined tr > *.datetime {width:auto; }
    table.lined tr > *.number {text-align:left; }
    table.lined tr > *.percent {text-align:left; }
    table.lined tr > *.percent:after {content:'%'; }
    table.lined tr > *.currency {text-align:left; }
    table.lined tr > *.currency:before {content:'$'; }
    */
    table.lined, 
    table.lined  > *, 
    table.lined  > * > *, 
    table.lined  > * > * > * {
        display: block;
        text-align: left;
    }
    table.lined {
        border-top: 10px solid #e0e0e0;
        border-bottom: 10px solid #e0e0e0;
        margin: 20px 0;
    }
    table.lined  thead {display: none; }
    table.lined  tr {padding: 10px 20px; }
    table.lined tr:nth-child(even) {background: rgba(224,224,224,0.35); }
    table.lined tr:nth-child(odd) {background: rgba(255,255,255,0.1); }
    table.lined tr:nth-child(even) > td,
    table.lined tr:nth-child(odd) > td {background: none; }
    table.lined td, 
    table.lined tr.first td {border: none !important; }
    table.lined td:before {
        font-weight:bold;
        text-transform:capitalize
    }
    table.lined td.edit, 
    table.lined td.delete, 
    table.lined td.view, 
    table.lined td.attachment {float: right; }    
    table.lined tr > *.edit {}
    table.lined tr > *.edit img {}
    table.lined tr > *.delete {}
    table.lined tr > *.delete img {}
    table.lined tr > *.date { }
    table.lined tr > *.datetime {width:auto; }
    table.lined tr > *.number {text-align:left; }
    table.lined tr > *.percent {text-align:left; }
    table.lined tr > *.percent:after {content:'%'; }
    table.lined tr > *.currency {text-align:left; }
    table.lined tr > *.currency:before {content:'$'; }   
    
    table.titled thead {display: none; }    
    table.titled tr {padding: 1em 0; }
    table.titled td {
        padding-left: 10em;
        font-size: 1em;
        clear: both;
        background: none;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    table.titled td.edit,
    table.titled td.view,
    table.titled td.attachment,
    table.titled td.delete {
        float: right;
        padding: 5px 2px;
        clear: none;
    }
    table.titled td[data-title]:before {
        content: attr(data-title);
        display: block;
        width: 9em;
        float: left;
        margin-left: -10em;
        text-align: right;
        text-overflow: ellipsis;
        overflow-x: hidden;
    }

    /* NAVIGATION ***********************************/
    #navigation {
        background: none;
        /* margin-left: -202px; */
        transition: margin 0.2s ease-in-out;
        /* margin-right: -200px; */
        margin-top: 30px;
        height: auto;
        right: 32px;
    }
    #navigation.expanded {
        margin-left: 0;
        z-index: 100;
        /* margin-right: -200px; */
        /* width: 100%; */
        /* right: 0; */
    }

    #navigation:before {
        display: block;
        content: ' ';
        height: 33px;
        width: 32px;
        padding: 5px;
        position: absolute;
        top: -32px;
        /* left: -1px; */
        background: #FFF url(/images/icon_sprite.png) -190px -8px;
        /* border-left: 1px solid #000; */
        /* box-shadow: 0 0 50px 0px #fff; */
        /* border-right: 2px solid #000; */
        cursor: pointer;
        box-sizing: border-box;
        /* border-bottom: 2px solid green; */
        right: 0px;
        /* background: #EEE; */
    }
    #navigation:after {
        display: block;
        /*content: 'Menu';*/
        height: 32px;
        width: 79px;
        padding: 3px 10px 10px 10px;
        position: absolute;
        top: -32px;
        right: 32px;
        background: #FFF;
        /* border-left: 1px solid #000; */
        /* box-shadow: 0 0 50px 0px #fff; */
        /* border-right: 2px solid #000; */
        cursor: pointer;
        box-sizing: border-box;
        /* border-bottom: 2px solid green; */
        font-size: 24px;
        color: #000;
        /* font-weight: bold; */
        /* display: none; */
    }
    #navigation.expanded:before,
    #navigation.expanded:after {
        height: 32px;
        background-color: #FFF;
    }
    
    #navigation > ul {
        background: #FFF;
        margin-top: 0;
        /* border-left: 2px solid #000; */
        /* box-shadow: 0 0 50px -5px #FFF; */
        height: 0;
        box-sizing: border-box;
        overflow: hidden;
        padding: 0;
        /* margin-left: 10%; */
    }
    #navigation.expanded > ul {
        height: auto;
        padding: 0 0 3px;
        box-shadow: -10px 10px 10px 0 rgba(0, 0, 0, 0.35);
    }

    #navigation ul > li:first-child {
        top: auto;
        background: none;
        position: relative;
        border: none;
    }

    #navigation ul li:first-child a img {
        display: none;
    }

    #navigation a {
        color: #000;
    }

    #navigation a.active {
        background: #EEE;
    }

    #navigation li {
        border-top: 1px solid #000;
        float: none;
    }
    
    #navigation.expanded li ul li {
        padding: 3px 0 3px 20px;
    }

    #navigation.expanded li ul a {
        font-size: 16px;
    }
    #header .search > a {display:block; }
    #header .search > form {display:none; }
    #show_search {border-radius: 0; padding: 6px; }
}
@media only screen and (max-width:761px) {
    .leftcol, .rightcol {
        width: 100% !important;
        float: none;
        margin: 0 !important;
    }
    #footer {
        color: #000;
        background: #000;
        height: auto;
        text-align: center;
        font-size: 0;
        padding: 0;
    }

    #footer:after {
        content: ' ';
        clear: both;
        display: block;
    }

    #footer > * {
        display: block;
        margin: 0 auto;
        color: #FFF;
        font-size: 12px;
        padding: 10px 0;
        border-top: 1px solid #FFF;
        width: 100%;
        text-align: center;
        float: none;
        /* border-bottom: 1px solid #FFF; */
        /* margin-top: -1px; */
        clear: both;
    }

    #footer A {
        color: #FFF;
    }

    div#footer-links {
        /* text-align: center; */
        /* float: none; */
    }

    div#footer-links {
        /* clear: both; */
    }
}
@media only screen and (max-width:500px) {
    #navigation:after {display:none; }
    #header .search > a span {display:none; }
    #navigation {right:32px; }
    #logo:after {display:none; }
    .leftcol, .rightcol {
        clear: both;
    }
}

@media only screen {
    /* Mobile header */
    #mobile_header {
        background: #34567a;
        color: #FFF;
        display: flex;
        font-size: 1.25em;
    }
    #content h1 {display: none; }
    #mobile_header h1 {
        margin: 0;
        font-size: 1.25em;
        line-height: 2em;
        font-weight: normal;
        text-overflow: ellipsis;
        overflow: hidden;
        flex: 1;
        white-space: nowrap;
    }
    #mobile_header > div.notifications,
    #mobile_header > span.timeclock {
        position: relative;
        top: auto;
        right: auto;
        border-radius: 5px;
        height: 1.5em;
        width: 1.5em;
        margin: 0.125em;
        font-size: 1.5em;
        line-height: 1.25em;
    }
    #overlay-wrapper .notifications-content {position: relative;top: auto;right: auto;}

    /* Mobile navigation */
    #mobile_navigation {
        background: #EEE;
        max-width: 80vw;
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        height: 100vh;
        z-index: 9999;
        box-sizing: border-box;
        overflow-y: auto;
        font-size: 16px;
        padding: 0;
        transition: 0.5s ease-in-out;
        width: 250px;
        border-right: 1px solid #DDD;
    }
    #mobile_navigation > * {
        padding: 0 1em;
    }

    #header, #navigation2 {
        display: none;
    }

    #mobile_navigation ul:not(:last-child) {
        border-bottom: 1px solid #DDD;
    }
    #mobile_navigation .navigation[label="sub-navigation"] {
        background: #fafaff;
    }
    #mobile_navigation .navigation[label="bookmarks"] {
        background: #eaeaef;        
    }
    #mobile_navigation li {
        list-style: none;
    }
    #mobile_navigation li ul {
        padding-left: 1em;
        list-style: disc;
    }

    #mobile_navigation li a {
        display: inline-block;
        padding: 0.5em 0;
        text-decoration: none;
    }

    #mobile_navigation li a.add {
        float: none;
        padding: 0;
        margin: 0 0 0 0.25em;
    }

    #mobile_navigation .logo,
    #mobile_navigation .mobile-breadcrumbs {
        background: #34567a;
        color: #FFF;
    }
    #mobile_navigation .mobile-breadcrumbs a {
        color: #FFF;
    }
    #mobile_navigation .profile {
        position: absolute;
        top: 0.5em;
        right: 0.5em;
        height: 40px;
        width: 40px;
        background: url(/images/icons/profile-white.png);
        background-size: contain;
        z-index: 9999;
        padding: 0;
    }
    #mobile_navigation .logo {
        padding: 0.5em 1em 0;
    }
    #mobile_navigation .logo img {
        height: 40px;
    }
    #mobile_navigation .edit {
        display: none;
    }

    #mobile_navigation .navigation {
        position: relative; 
    }
    #mobile_navigation .navigation:not(.mobile-breadcrumbs):before {
        content: attr(label);
        font-size: 0.9em;
        position: absolute;
        top: 0;
        right: -0.5em;
        transform: rotate(90deg) translate(50%,-100%);
        font-weight: bold;
        color: #AAA;
    }
    #mobile_navigation .navigation.mobile-breadcrumbs li {
        display: inline-block;
    }

    #mobile_navigation .navigation.mobile-breadcrumbs li:first-child {
        display: none;
    }
    .navigation .icon {
        min-width: 1em;
        display: inline-block;
    }
}
@media only screen and (min-width: 722px) {
    body {
        padding-left: 250px;
        padding-top: 48px;
        background: #FFF;
    }
    .nav-toggle {display: none; }
    #mobile_header {
        background: #EEE;
        color: #34567a;
        background: rgba(255,255,255,0.8);
        position: fixed;
        left: 250px;
        top: 0;
        right: 0;
        z-index: 100;
    }

    #mobile_header h1 {
        font-size: 1.5em;
        padding: 0 0 0 0.75em;
    }

}
@media only screen and (max-width: 721px) {
    body {padding-top: 44px; }
    #mobile_header {
        position:fixed;
        z-index: 100;
        top: 0;
        right: 0;
        left: 0;
    }
    #mobile_header .nav-toggle {
        width: 1.5em;
        padding: 0.5em;
        font-size: 1.25em;
    }
    #mobile_header .nav-toggle:before,
    #mobile_header .nav-toggle:after {
        content: '';
        display: block;
        box-sizing: border-box;
    }
    #mobile_header .nav-toggle:before {
        border-top: 0.125em solid #FFF;
        border-bottom: 0.125em solid #FFF;
        height: 0.625em;
    }
    #mobile_header .nav-toggle:after {
        border-bottom: 0.125em solid #FFF;
        height: 0.5em;
    }
    
    #mobile_navigation {
        box-shadow: 0.5em 0.25em 1em rgba(0,0,0,0.5);
        border: none;
    }
    #mobile_navigation:not(.expanded) {
        transform: translateX(-120%);
        -webkit-transform: translateX(-120%);
    }    
}