nav {
    background-color: #37474f;
}

footer {
    position: static;
    width: 100vw;
    clear: both;
    text-align: center;
}

h2 {
    font-size: 2em !important;
}

h3 {
    font-size: 1.4em !important;
}

h4 {
    font-size: 1.1em !important;
}

.small-caps {
    font-variant: small-caps;
}

.content {
    padding-left: 3%;
    padding-right: 3%;
    background-color: rgb(239, 239, 239);
}

.container {
    width: 100%;
    clear: both;
}

.panel_login {
    text-align: center;
    margin: 10px 20% 10% 20%;
}

.content-table {
    display: flex;
    max-width: 100%;
}

.breadcrumbs {
    margin-left: 2rem;
    padding-top: 1rem;
}

.breadcrumbs ul {
    display: inline-flex;
}

.sidenav {
    width: 220px;
}

.sidenav-header {
    background-size: cover;
    background-color: #000000;
    margin-bottom: 0;
}

.profile-button {
    float: right;
    margin-top: 1em;
}

.profile-menu {
    background-color: #37474f;
    color: white;
    z-index: 100000;
    position: fixed;
    right: 8%;
    top: 50px;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
}

.profile-menu ul {
    text-align: center;
}

.profile-menu .menu-item {
    width: 100%;
}

.panel-title .badge {
    float: none;
    color: white;
}

.panel-default {
    border: 1pt silver solid;
    border-radius: 5px;
    padding: 3px 5px;
    margin-bottom: 5px;
}

.badge-box {
    padding: 0.3em;
    border-radius: 5px;
}

.report-title {
    font-size: 1.4em;
    margin: 0 20px;
    line-height: 2em;
}

.warning-text {
    color: #ffab40;
}

#homepage {
    width: 100%;
}

#homepage .wrapper {
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    background-color: #fff;
    color: #444;
    padding: 2rem;
    align-items: center;
    /*align-content: stretch;*/
    flex-wrap: wrap;
}

#homepage .title-card .card .card-content {
    padding: 0;
}

#help .wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.card {
    padding: 1.5rem;
    animation: fadeEffect 1s;
}

.card-content p {
    text-align: left;
}

.card-content p.info {
    text-align: center;
}

.wrapper .card {
    max-width: 320px;
}

#help .wrapper .card {
    max-width: 400px;
}

#help .wrapper .card-lg {
    max-width: 820px;
}

.logo_image {
    text-align: center;
    padding: 10px 10px 10px 5px;
    margin: 0;
}

.search-form {
    margin-top: 15px;
    margin-bottom: 0;
}

.card-content {
    /*height: 220px;*/
    text-align: center;
}

.card-action {
    height: 50px;
}

.card-profile {
    height: 70vh;
}

.card-title {
    font-size: 1.4rem;
}

/* dashboard cards */
.card-digit {
    font-size: 5rem;
    /*text-align: center;*/
}

.card-header-tabs {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.card-stats .card-header.card-header-icon, .card-stats .card-header.card-header-text {
    text-align: right;
}

.card [class*="card-header-"] .card-icon, .card [class*="card-header-"] .card-text {
    padding: 15px;
    margin-top: -20px;
    margin-right: 15px;
    float: left;
    color: #fff;
}

.card .card-header-danger .card-icon, .card .card-header-danger:not(.card-header-icon):not(.card-header-text), .card .card-header-danger .card-text {
    box-shadow: 0 4px 20px 0px rgb(0 0 0 / 14%), 0 7px 10px -5px rgb(244 67 54 / 40%);
}

.card .card-header-danger .card-icon, .card .card-header-danger .card-text, .card .card-header-danger:not(.card-header-icon):not(.card-header-text), .card.bg-danger, .card.card-rotate.bg-danger .front, .card.card-rotate.bg-danger .back {
    background: linear-gradient(60deg, #ef5350, #e53935);
}

.card .card-header-warning .card-icon, .card .card-header-warning:not(.card-header-icon):not(.card-header-text), .card .card-header-warning .card-text {
    box-shadow: 0 4px 20px 0px rgb(0 0 0 / 14%), 0 7px 10px -5px rgb(255 152 0 / 40%);
}

.card .card-header-warning .card-icon, .card .card-header-warning .card-text, .card .card-header-warning:not(.card-header-icon):not(.card-header-text), .card.bg-warning, .card.card-rotate.bg-warning .front, .card.card-rotate.bg-warning .back {
    background: linear-gradient(60deg, #ffa726, #fb8c00);
}

.card .card-header-success .card-icon, .card .card-header-success:not(.card-header-icon):not(.card-header-text), .card .card-header-success .card-text {
    box-shadow: 0 4px 20px 0px rgb(0 0 0 / 14%), 0 7px 10px -5px rgb(76 175 80 / 40%);
}

.card .card-header-success .card-icon, .card .card-header-success .card-text, .card .card-header-success:not(.card-header-icon):not(.card-header-text), .card.bg-success, .card.card-rotate.bg-success .front, .card.card-rotate.bg-success .back {
    background: linear-gradient(60deg, #66bb6a, #43a047);
}

.card .card-header-info .card-icon, .card .card-header-info:not(.card-header-icon):not(.card-header-text), .card .card-header-info .card-text {
    box-shadow: 0 4px 20px 0px rgb(0 0 0 / 14%), 0 7px 10px -5px rgb(0 188 212 / 40%);
}

.card .card-header-info .card-icon, .card .card-header-info .card-text, .card .card-header-info:not(.card-header-icon):not(.card-header-text), .card.bg-info, .card.card-rotate.bg-info .front, .card.card-rotate.bg-info .back {
    background: linear-gradient(60deg, #26c6da, #00acc1);
}

.card-header, .card-footer {
    background-color: #ffffff !important;
}

.card [class*="card-header"] h3 {
    margin-top: 0;
}

.card-header-tabs button {
    border-radius: 10px;
    margin-right: 10px;
    border: none;
    padding: 1em;
    opacity: 50%;
    width: 150px;
}

.card-header-tabs button.active {
    opacity: 100%;
}

.card-category {
    font-size: 1.1em;
    color: #9d9fa1;
}

.helptext, .help-block {
    font-style: italic;
}

#homepage .title-card {
    width: 60vw;
    height: auto;
}

/*#homepage .title-card .card {*/
/*    max-width: 900px;*/
/*}*/

#homepage .title-card .card-content {
    height: auto;
}

/** patient display */
.card-row {
    display: flex;
    align-content: space-evenly;
}

.left-col {
    flex: 2;
    margin-right: 0.3em;
}

.right-col {
    flex: 1;
    margin-left: 0.3em;
}

.pull-right {
    position: relative;
    float: right;
}

#search {
    color: #fffad7;
}

#search a {
    vertical-align: middle;
}

.dashboard-card {
    width: 30%;
    margin: 0 10px;
}

.right-panel {
    width: 18%;
    margin-left: .375rem;
    margin-right: .375rem;
    float: right;
}

.right-panel .card {
    min-width: 250px;
}

.left-panel {
    width: 80%;
    margin-left: .375rem;
    margin-right: .375rem;
}

.btn-group {
    float: right;
    margin-left: 80%;
    /*width: 20%;*/
}

.btn-group a:hover {
    color: white;
}

li.active {
    border-bottom: 1pt solid #37474f;
    color: #37474f;
    font-weight: bold;
    transition: border-bottom-color 0.2s linear;
}

.errorlist li {
    color: red;
}

.item-list {
    text-align: left;
}

/*******************************
Card info items
 */
.card-info {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: flex-start;
    width: 100%
}

.info-item {
    width: 23%;
    display: flex;
    justify-content: flex-start;
}

.info-label {
    padding-right: 6px;
    text-align: right;
}

.info-text {
    padding-right: 6px;
    text-align: left;
}

#site-panel .info-item, #registration-panel .info-item {
    width: auto;
}

#interval-panel .info-item {
    /*width: 33%;*/
}

#registration-panel .card-content, #site-panel .card-content {
    display: flex;
}

.well {
    background-color: #e9e9ef;
    padding: 3px 5px;
    text-align: left;
}

.interval-box {
    display: inline-flex;
    flex-direction: column;
    vertical-align: middle;
}

/*******************************
Tabs
 ********************************/
/* Style the tab */
.tab {
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: #f1f1f1;
}

/* Style the buttons that are used to open the tab content */
.tab button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
}

/* Change background color of buttons on hover */
.tab button:hover {
    background-color: #ddd;
}

/* Create an active/current tablink class */
.tab button.active {
    background-color: #ccc;
}

/* Style the tab content */
.tab_content {
    display: none;
    width: 100%;
    overflow: auto;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-top: none;
    animation: fadeEffect 1s;
}

/* Go from zero to full opacity */
@keyframes fadeEffect {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.tab-header {

}

/*******************************
Modal
 ********************************/

.modal {
    top: auto;
    bottom: auto;
    padding-right: 0 !important;
}

.modal.fade {
    z-index: 10000000 !important;
    background: rgba(0, 0, 0, 0.5);
}

.modal-backdrop.fade {
    opacity: 0;
}

.modal-footer button {
    margin-left: 20px;
}

/********************************
Loading spinner
*********************************/
/*#modal {*/
/*    position: fixed;*/
/*    z-index: 1000;*/
/*    top: 0;*/
/*    left: 0;*/
/*    height: 100vh;*/
/*    width: 100vw;*/
/*    background: rgba(255, 255, 255, .8) url('http://i.stack.imgur.com/FhHRx.gif') 50% 50% no-repeat;*/
/*}*/

/*body #modal {*/
/*    display: none;*/
/*}*/

/*body.loading #modal {*/
/*    display: block;*/
/*}*/

/********************************
Dropdown menus
*********************************/
.filter-group {
    position: relative;
    display: inline-block;
}

#filter-by-status {
    display: none;
    position: absolute;
    /*background-color: #546e7a !important;*/
    /*width: 160px;*/
    /*height: 140px;*/
    box-shadow: 5px 5px 5px;
    z-index: 100;

}

#filter-by-status option {
    line-height: 2em;
    display: block;
    /*color: #fff;*/
    padding: 1rem;
}

.filter-group:hover #filter-by-status {
    display: block;
}

.datepicker-modal {
    height: 390px;
    vertical-align: middle;
}

.subactions {
    display: flex;
    flex-direction: row;

}

.subactions-items {
    display: none;
    position: absolute;
    z-index: 100;
    background-color: #fff;
    padding: 2rem;
    box-shadow: 5px 5px 5px;
    right: 0;

}

.subactions-items a {
    display: block;
}

.subactions button {
    background-color: #fff;
    border: none;
    color: #ffab40;
    /*pointer: cursor;*/
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0;
    min-width: 0;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    line-height: 40px;
    border-radius: 50%;
}

#id_sample_qc-0-DELETE_container label {
    float: right;
}

/********************************
Tables
*********************************/
.table-container {
    width: 100%;
    text-align: center;
    overflow-x: auto;
}

#summary td {
    max-width: 10vw;
}

td {
    text-align: center;
}

.answer-table {
    background-color: aliceblue;
}

.subtitle {
    background-color: #cccccc;
}

.booked {
    color: white !important;
    font-weight: normal;
    font-size: 0.9em !important;
}

#schedule th {
    text-align: center;
    max-width: 100px;
}

.scheduled-item {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    min-height: 75px;
    min-width: 100px;
    padding: 2px 0;
    box-shadow: 0 4px 20px 0px rgb(0 0 0 / 14%), 0 7px 10px -5px rgb(83, 109, 121);
}

.scheduled-item li {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.scheduled-item li span.badge {
    margin-left: 0 !important;
    margin-bottom: 2px !important;
}

/********************************
Pagination - overwritten with DataTables
*********************************/
ul.pagination {
    /*background-color: #546e7a;*/
    /*padding: 1rem 2rem;*/
    /*display: flex;*/
    /*flex: 1 1 auto;*/
    /*color: #F0F8FF;*/
    /*justify-content: center;*/
    display: none;
}

.pagination a {
    margin: 0 1rem;
}

/********************************
Card grid
*********************************/
#card-grid {
    display: flex;
    flex-wrap: wrap;
}

#card-grid .card {
    width: 25%;
    margin-right: 20px;
}

/********************************
Media sizes
*********************************/

@media only screen and (min-width: 993px) {
    .sidenav {
        width: auto !important;
    }

    .sidenav.sidenav-fixed {
        -webkit-transform: translateX(105%);
        transform: translateX(105%)
    }

    .content {
        margin-left: 220px;
        -webkit-transition: margin-left 2s;
        transition: margin-left 2s;
        min-height: 92vh;
    }

    .content-frontpage {
        margin-left: 10vw;
        display: flex;
        height: 90vh;
    }

    .nav-wrapper {
        padding-left: 10%;
        -webkit-transition: padding-left 2s;
        transition: padding-left 2s;
    }

    #tasks-panel {
        width: 100%;
    }

}

@media only screen and (max-width: 1300px) {
    .nav-wrapper {
        overflow: hidden;
    }

    nav .brand-logo {
        display:none !important;
    }

}

@media only print {
    #side-panel {
        display: none;
    }
}





