html, body {
    height: 100%;
}

#logo-wrapper {
    width: 100%;
    background-color: white;
}

#logo-sidebar {
    width: 80%;
    margin-top: 10%;
    margin-left: 10%;
    margin-right: 10%;
}

.nav-link {
    margin: 5px;
}

.missing {
    background-color: red;
}

.card {
    margin-top: 5px;
}

.tall {
    min-height: 500px;
}

.table-input {
    max-width: 250px;
}

#table-view-study tbody {
    height: 200px;
    overflow-y: scroll;
}

#table-view-study tbody tr:HOVER {
    cursor: pointer;
}

/*
 * PERMISSIONS LIST
 */

.ul-permissions li {
    height: 30px;
}

/*
 * SORTABLE TABLE
 */

.ui-sortable tr {
    cursor: pointer;
}

/*
 * INSERT/EDIT CONTROLS TABLES
 */
#table-study .clockpicker {
    width: 100%;
}

.clockpicker input {
    border-radius: 4px !important;
}

/*
 * SPEECH BUBBLE
 */
.comment {
    padding-top: 20px;
    padding-bottom: 20px;
}

.bubble {
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.5);
    max-width: 80%;
    width: 80%;
    padding: 10px;
    font-size: 14px;
    border-radius: 6px;
}

.bubble .comment-delete {
    position: absolute;
    top: 5px;
    right: 5px;
}

.bubble .comment-delete:HOVER {
    cursor: pointer;
    text-decoration: none;
}

.bubble-mine {
    margin-left: 15%;
    margin-right: 5%;
    background: rgb(172, 228, 75);
}

.bubble-mine:after,
.bubble-mine:before {
    left: 100%;
    top: 50%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}

.bubble-mine:after {
    border-color: rgba(255, 255, 204, 0);
    border-left-color: rgb(172, 228, 75);
    border-width: 15px;
    margin-top: -15px;
}

.bubble-mine:before {
    border-color: rgba(255, 204, 0, 0);
    border-left-color: rgba(0, 0, 0, 0.5);
    border-width: 16px;
    margin-top: -16px;
}

.bubble-others {
    margin-left: 5%;
    margin-right: 15%;
    background: rgb(149, 194, 253);
}

.bubble-others:after,
.bubble-others:before {
    right: 100%;
    top: 50%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}

.bubble-others:after {
    border-color: rgba(255, 255, 204, 0);
    border-right-color: rgb(149, 194, 253);
    border-width: 15px;
    margin-top: -15px;
}

.bubble-others:before {
    border-color: rgba(255, 204, 0, 0);
    border-right-color: rgba(0, 0, 0, 0.5);
    border-width: 16px;
    margin-top: -16px;
}

.bubble .comment-title {
    font-size: 16px;
    font-weight: bold;
}

.bubble .comment-posted-by {
    color: gray;
    font-size: 10px;
}

.bubble .comment-content {
    margin-top: 10px;
}

/*
 * ADMIN TEMPLATE
 */

#wrapper {
    height: calc(100% - 4px);
}

#page-wrapper {
    padding-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
    min-height: calc(100% - 52px);
}

@media (min-width: 768px) {
    #page-wrapper {
        position: inherit;
        margin: 0 0 0 250px;
        width: calc(100% - 250px);
        padding: 0 30px;
        border-left: 1px solid #e7e7e7;
    }
}

.navbar-top-links {
    margin-right: 0;
}

.navbar-top-links li {
    display: inline-block;
}

.navbar-top-links li:last-child {
    margin-right: 15px;
}

.navbar-top-links li a {
    padding: 15px;
    min-height: 50px;
}

.navbar-top-links .dropdown-menu li {
    display: block;
}

.navbar-top-links .dropdown-menu li:last-child {
    margin-right: 0;
}

.navbar-top-links .dropdown-menu li a {
    padding: 3px 20px;
    min-height: 0;
}

.navbar-top-links .dropdown-menu li a div {
    white-space: normal;
}

.navbar-top-links .dropdown-messages,
.navbar-top-links .dropdown-tasks,
.navbar-top-links .dropdown-alerts {
    width: 310px;
    min-width: 0;
}

.navbar-top-links .dropdown-messages {
    margin-left: 5px;
}

.navbar-top-links .dropdown-tasks {
    margin-left: -59px;
}

.navbar-top-links .dropdown-alerts {
    margin-left: -123px;
}

.navbar-top-links .dropdown-user {
    right: 0;
    left: auto;
}

.sidebar .sidebar-nav.navbar-collapse {
    padding-right: 0;
    padding-left: 0;
}

.sidebar .sidebar-search {
    padding: 15px;
}

.sidebar ul li {
    border-bottom: 1px solid #e7e7e7;
}

.sidebar ul li a.active {
    background-color: #eee;
}

.sidebar .arrow {
    float: right;
}

.sidebar .fa.arrow:before {
    content: "\f104";
}

.sidebar .active > a > .fa.arrow:before {
    content: "\f107";
}

.sidebar .nav-second-level li,
.sidebar .nav-third-level li {
    border-bottom: 0 !important;
}

.sidebar .nav-second-level li a {
    padding-left: 37px;
}

.sidebar .nav-third-level li a {
    padding-left: 52px;
}

@media (min-width: 768px) {
    .sidebar {
        z-index: 1;
        position: absolute;
        width: 250px;
    }

    .navbar-top-links .dropdown-messages,
    .navbar-top-links .dropdown-tasks,
    .navbar-top-links .dropdown-alerts {
        margin-left: auto;
    }
}

.loading {
    min-height: 250px;
    background-image: url(../img/loading.gif);
    background-position: center;
    background-repeat: no-repeat;
}

/* BOOTSTRAP TABLE */
.table.clickable tr {
    cursor: pointer;
}
