﻿* {
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

.w-full {
    width: 100% !important;
}

/* Main menu */
header {
    border: none !important;
    position: fixed !important;
    top: 0 !important;
    width: 100% !important;
    z-index: 3;
    min-height: 50px !important;
}

    header .organization-section {
        display: inline-block;
        vertical-align: middle;
    }

        header .organization-section .navbar-brand {
            padding: 14.5px 15px;
            height: 50px;
        }

        header .organization-section a.organization {
            display: inline-block;
            line-height: 50px;
            padding: 0;
            float: left;
        }

        header .organization-section a.other-organizations {
            display: inline-block;
            line-height: 50px;
            padding-top: 0;
            padding-bottom: 0;
            float: left;
        }

    header .user-section {
        display: inline-block;
        vertical-align: middle;
        padding-right: 10px
    }

    header .actions-section a {
        display: inline-block;
        vertical-align: middle;
        line-height: 50px;
        padding: 0 15px;
    }

        header .user-section .dropdown:hover,
        header .user-section .open > a,
        header .user-section .open > .dropdown-menu,
        header .user-section .open > .dropdown-menu > li:hover a,
        header .organization-section:hover,
        header .organization-section .open > a,
        header .organization-section .open > .dropdown-menu,
        header .organization-section .open > .dropdown-menu > li:hover a,
        header .actions-section a:hover,
        header a.user:hover,
        header a.organization:hover {
            cursor: pointer;
            border-top: none;
        }

    header .user-section .open > .dropdown-menu {
        width: 100%;
        margin-top: -1px;
        display: inline-table;
        /*background: #eeeeee;*/
    }

        header .user-section .open > .dropdown-menu a,
        header .organization-section .open > .dropdown-menu a {
        }

            header .user-section .open > .dropdown-menu a.dropdown-toggle,
            header .organization-section .open > .dropdown-menu a.dropdown-toggle {
                display: none;
            }

    header .organization-section .open > .dropdown-menu {
        width: 100%;
        margin-top: -1px;
        display: block;
        height: calc(60vh);
        overflow: hidden;
        overflow-y: auto;
    }

    header .navbar-right {
        margin-right: 0 !important;
        padding-right: 0 !important;
    }

    header a.name {
        display: inline-block;
        padding-right: 10px;
        padding-top: 0;
        padding-bottom: 0;
        line-height: 50px;
    }

    header .avatar img {
        border-radius: 50% !important;
        padding: 6px;
    }

/* Sidebar */
.navbar-nav {
    margin: 0 !important;
}

nav.sidebar {
    height: calc(100vh - 50px);
    width: 180px;
    top: 0;
    left: 0;
    position: fixed;
    width: 50px;
    z-index: 1;
    padding: 0 0 25px 0;
    font-size: 12px;
    overflow-scrolling: auto;
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
    border: 0;
    margin-top: 49px
}

    nav.sidebar .navbar-nav {
        width: 100%;
    }

    nav.sidebar::-webkit-scrollbar {
        display: none !important;
    }

    nav.sidebar > ul {
        margin-left: 0;
        padding-left: 0;
    }

        nav.sidebar > ul > li {
            display: block;
            position: relative;
            clear: both;
            width: 100%;
            padding: 0;
        }

            nav.sidebar > ul > li span {
                width: 180px;
            }

            nav.sidebar > ul > li.heading {
                padding-top: 6px;
                padding-left: 14px;
                padding-bottom: 6px;
            }

                nav.sidebar > ul > li.heading span {
                    font-size: 14px;
                    font-weight: bold;
                }

    nav.sidebar ul > li > a:hover,
    nav.sidebar ul > li > a:focus,
    nav.sidebar ul > li.active > a {
        text-decoration: none;
    }

    nav.sidebar ul > li > a {
        display: block;
        line-height: 20px;
        min-height: 32px !important;
        position: relative;
        min-width: 50px;
        padding: 6px 37px 6px 37px;
    }

        nav.sidebar ul > li > a > i {
            position: absolute;
            font-size: 130%;
            top: 10.4px;
            top: 8.4px;
            left: 14.4px;
            min-height: 32px;
        }

/* Content */
section.content {
    margin-left: 50px;
    padding: 50px 15px;
    margin-bottom: 0;
}

/* Grid */
.search {
    margin-bottom: 0;
}

    .search .panel-heading {
        padding: 0;
    }

    .search .filter-button {
        padding-top: 10px;
        padding-bottom: 10px;
    }

#query {
    height: 43px;
}

small.last-modified {
    color: #ccc;
}

.grid-avatar {
    height: 25px;
    width: 25px;
    border-radius: 50% !important;
}

/* Automate grid truncation */
.tablesorter td {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    -ms-text-overflow: ellipsis;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
}

.tablesorter tr.related td:first-of-type {
    padding-left: 30px;
}


/* Resource Details */
.panel-heading {
    text-transform: uppercase;
}

/* Pop-out window */
.new-window {
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
    transition: 0.25s;
}

    .new-window:hover {
        color: #666;
    }

/*.panel:hover .panel-heading {
    background: #e7e7e7;
    color: #212121;
}
.panel.search:hover .panel-heading {
    background:#f5f5f5;
    color: #212121;
}*/

/* Resource Activity */
.media-heading.single-line {
    margin-top: 5px;
}

.mention_name {
    margin-left: 2px;
}

/* Resource Details (Sidebar) */
.panel {
    margin-bottom: 0;
}

.sidebar-actions > div {
    margin-bottom: 23px;
}

.related-resource-picker .dropdown-menu.open,
.related-resource-picker .dropdown-menu.open ul,
.related-resource-picker .dropdown-menu.open ul > li
.sidebar-actions .dropdown-menu.open,
.sidebar-actions .dropdown-menu.open ul,
.sidebar-actions .dropdown-menu.open ul > li {
    background: #FFF;
    /*color: #555555;*/
    text-transform: none !important;
}

    .related-resource-picker .dropdown-menu.open ul > li.selected a,
    .sidebar-actions .dropdown-menu.open ul > li.selected a {
        background: #2196f3;
        color: #FFF !important;
    }

.related-resource-picker .dropdown-menu.open {
    width: calc(100% + 150px);
    left: -150px;
}


.sidebar-option {
    width: 100% !important;
}

    .sidebar-option button {
        border: none;
        width: 100% !important;
        background: transparent;
        padding-left: 0;
        padding-top: 0;
        padding-bottom: 0;
    }

        .sidebar-option button.btn-default:hover,
        .sidebar-option button.btn-default:active,
        .sidebar-option.open > .dropdown-toggle.btn-default {
            background: transparent !important;
        }

.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus {
    background: #e7e7e7;
    color: #212121;
}

/* tag picker display*/
.sidebar-actions .list-group-item > .badge {
    float: none;
}

.sidebar-actions .list-group-item > .pull-right.check-mark {
    width: 25px;
    margin-left: 0;
    padding-top: 5px;
    cursor: pointer;
}

/* user picker sizing */
img.user-picker-avatar {
    height: 20px;
    width: 20px;
    margin-top: -2px;
    border-radius: 50% !important;
}

/* attachments selector */
.create-attachment {
    cursor: pointer;
    color: #444;
}

li.create-new-attachment {
    border-bottom: 2px solid #ddd !important;
}

    /* Hide the top border for elements after the create element */
    li.create-new-attachment.list-group-item + .list-group-item {
        border-top: 0;
    }
/* user profile area */
#update-profile form {
    text-align: center;
}

#update-profile img.profile-avatar {
    height: 150px;
    width: 150px;
    margin: 30px;
    border-radius: 50% !important;
}

/* login screen */
.sign-on .container-fill-height {
    display: table;
    width: 100%;
    height: 100vh;
}

    .sign-on .container-fill-height .container-content-bottom,
    .sign-on .container-fill-height .container-content-middle {
        display: table-cell;
        vertical-align: middle;
    }

    .sign-on .container-fill-height .container-content-bottom {
        vertical-align: bottom;
    }

.sign-on .btn-primary {
    color: #ffffff;
    background-color: #2196f3;
    border-color: transparent;
}

    .sign-on .btn-primary:focus,
    .sign-on .btn-primary.focus {
        color: #ffffff;
        background-color: #0c7cd5;
        border-color: rgba(0, 0, 0, 0);
    }

    .sign-on.btn-primary:hover {
        color: #ffffff;
        background-color: #0c7cd5;
        border-color: rgba(0, 0, 0, 0);
    }

    .sign-on.btn-primary:active,
    .sign-on.btn-primary.active,
    .sign-on .open > .dropdown-toggle.btn-primary {
        color: #ffffff;
        background-color: #0c7cd5;
        border-color: rgba(0, 0, 0, 0);
    }

        .sign-on .btn-primary:active:hover,
        .sign-on .btn-primary.active:hover,
        .sign-on.open > .dropdown-toggle.btn-primary:hover,
        .sign-on .btn-primary:active:focus,
        .sign-on .btn-primary.active:focus,
        .sign-on .open > .dropdown-toggle.btn-primary:focus,
        .sign-on .btn-primary:active.focus,
        .sign-on .btn-primary.active.focus,
        .sign-on .open > .dropdown-toggle.btn-primary.focus {
            color: #ffffff;
            background-color: #0a68b4;
            border-color: rgba(0, 0, 0, 0);
        }

/* Fix up file uploads */
.bootstrap-filestyle.input-group,
.bootstrap-filestyle.input-group .btn {
    width: 100% !important;
    text-align: left;
}

.bootstrap-filestyle span.buttonText {
    overflow: hidden;
    width: 100%;
    text-overflow: ellipsis;
    display: inline-block;
    line-height: 0.75;
}

/* Media queries */
@media (min-width: 992px) {
    nav.sidebar {
        width: 225px;
    }

    section.content {
        margin-left: 225px;
    }
}

@media (max-width: 992px) {
    .pop-out-sidebar nav.sidebar {
        width: 180px !important;
    }

    .pop-out-sidebar section.content {
        margin-left: 180px !important;
    }

    .pop-out-sidebar nav.sidebar .visible-md,
    .pop-out-sidebar nav.sidebar .visible-lg {
        display: block !important;
    }
}
