/**
 * Overwrite bootstrap
 */
body {
    overflow-x: hidden;
}
.container {
    background-color: #F5F5F5;
}
@media (min-width: 992px) and (max-width: 1080px) {
    .container {
        max-width: 750px;
    }
}
@media (min-width: 992px) and (max-width: 1999px) {
    .container {
        max-width: 1450px;
    }
}
.alert-danger > a {
    color: #761b18;
}

/**
 * Warning containers
 */
.warning-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.warning-container > img {
    width: 200px;
    height: auto;
    margin: 20px 0px;
}
@media (max-width: 768px) {
   .warning-container > img {
      width: 65%;
      height: auto;
   }
}
.warning-container > p {
    margin: 20px 0px;
    width: 250px;
    text-align: center;
    color: rgba(0, 0, 0, 0.8);
    font-weight: normal;
}

/**
 * general
 */
html * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
p, small, strong, span, h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif !important;
}
.form-buttons-container {
    display: flex;
    flex-direction: row;
}
.submit-button {
    display: flex;
    justify-content: flex-end;
    margin-right: 20px;
}

/**
 * Helpers
 */
.hide {
    display: none;
}
.center-items {
    display: flex;
    justify-content: center;
}
.no-pointer-events {
    pointer-events: none;
}


/**
 * buttons
 */
.btn-primary, .swal-button  {
    background-color: #e67e22;
    border-color: #e67e22;
    margin-bottom: 20px;
}
.btn-primary:hover, .btn-primary:focus, .swal-button:hover, .swal-button:focus   {
    background-color: #d35400 !important;
    border-color: #d35400 !important;
    outline: none !important;
    color: white;
}

/**
 * Sweetalert
 */
.swal-text {
    text-align: center;
}
.swal-button--cancel {
    background-color: white;
    border: 2px solid #e67e22;
    color: #e67e22;
}
.swal-button--cancel:hover {
    background-color: #d35400;
    border-color: #d35400;
    color: white;
}

/**
 * forms
 */
.form-error {
    padding: 0;
}
.form-error > li {
    color: red;
    text-decoration: none;
    list-style-type: none;
}
@media (max-width: 768px) {
   .form-group {
       margin-bottom: 20px;
   }
}

.form-group > .sub-title {
    font-size: 20px !important;
    font-weight: bold;
}
.custom-select-lg {
    height: calc(2.19rem + 2px);
    font-size: 15px;
}
.form-control:disabled, .form-control[readonly] {
    background-color: white;
}


/**
 * Grids
 */
.content {
    display: flex;
    flex-direction: row;
}
.content > .app {
    background-color: #F5F5F5;
    width: calc(100vw - 250px);
    min-height: calc(100vh - 80px);
    margin-left: 250px;
}

/**
 * Containers
 */
.block {
    background-color: white;
    border: 1px solid #dbe1e8;
    padding: 20px;
    padding-bottom: 4px !important;
}

@media (min-width: 992px) and (max-width: 1999px) {
    .block {
        padding: 30px;
    }
}

/**
 * Table
 */
table, table > thead, table > tbody {
    width: 100% !important;
}
table td {
    border-top: 0;
    border-bottom: 1px;
    border-color: #555;
    padding: 20px 12px;
}
table.hidden > tbody, table.hidden td  {
    padding: .5rem 0px;
    background-color: white;
    border-bottom: 0px;
    border-top: 0px;
    border-color: white;
}
tr, tr > th {
    border-top: 0 !important;
}
.table-interactions > ul {
    list-style-type: none;
}
.table-interactions > ul > li {
    display: inline;
    margin: 0px 1px;
}
.table-interactions > ul > li > a:hover{
    text-decoration: none;
}
.table-striped > thead {
    border: 0;
}
.table-striped > thead > tr {
    font-size: 14px;
    font-weight: bold;
}
.table-actions > a {
    color: #e67e22;
}
.table-actions > span {
    margin-left: 5px;
    margin-right: 5px;
}
.table-action {
    display: flex;
    flex-direction: row;
    justify-content: center;
    cursor: pointer;
    width: 30px;
    height: 20px;
}
.table-action > a {
    width: 30px;
    height: 20px;
    display: flex;
    justify-content: center;
}
.table-action > a > i {
    font-size: 20px;
    color: rgba(0,0,0,.8);
}
.collapsable-table:hover {
    cursor: pointer;
}
.table-collapse {
    margin-top: 20px;
    padding: 0px 40px;
    width: 100%;
}
@media (max-width: 768px) {
    .table-collapse {
        margin-top: 20px;
        padding: 0px 20px;
    }
}
.hiddenRow {
    padding: 0 !important;
}
/**
 * Pagination
 */
ul.pagination {
    margin-top: 20px;
}
ul.pagination > li > .page-link {
    color: #e67e22;
}
ul.pagination > li.active > .page-link {
    background-color: #e67e22;
    color: white;
    border-color: #e67e22;
}


/**
 * Auth routes
 */
.auth-container {
    background-image: url('../images/auth-bg.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    width: 100vw;
    height: 100vh;
}
.auth-container > .backdrop {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0, 0.35);
}
.auth-content {
    border-radius: 8px;
    width: 30vw;
    max-width: 500px;
    -webkit-box-shadow: -5px 5px 30px 0px rgba(0,0,0,0.35);
    -moz-box-shadow: -5px 5px 30px 0px rgba(0,0,0,0.35);
    box-shadow: -5px 5px 30px 0px rgba(0,0,0,0.35);
}
.auth-content > .form-group {
    display: flex;
    flex-direction: column;
}
.auth-logo {
    text-align: center;
    font-weight: bold;
    font-size: 17px;
    padding:  0 0 15px 0;
}

.auth-logo > img {
    height: auto;
    max-height: 175px;
    max-width: 175px;
}
.auth-form {
    margin-top: 10px;
}
.auth-button {
    width: 30%;
}
.auth-introduction {
    margin-bottom: 30px;
}
.auth-introduction > p {
    color: rgba(0, 0, 0, 0.8);
    font-size: 13px;
}
@media (max-width: 768px) {
    .auth-container {
        background-image: url('../images/auth-bg-mobile.jpg');
    }
    .auth-content {
        width: 85vw;
    }
}

/**
 * Navbar
 */
.navbar {
    width: calc(100vw - 250px);
    margin-left: 250px;
    height: 70px;
    -webkit-box-shadow: 0 2px 3px -2px rgba(0,0,0,.15);
    box-shadow: 0 2px 3px -2px rgba(0,0,0,.15);
}
.navbar-hamburger > i {
    margin-left: 20px;
    font-size: 20px;
    color: #525f80;
}
.navbar-dropdown {
    margin-right: 20px;
    background-color: transparent;
    border: 0;
}
.dropdown-button {
    background-color: transparent;
    border: 0;
}
.dropdown-button:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
   .navbar {
       margin-top: 5px;
   }
   .navbar, .content > .app {
       margin-left: 0px;
       width: 100vw;
   }
}


/**
 * Sidebar
 */
.sidebar {
    background-color: #2E3B4C;
    height: 100%;
    max-height: 100vh;
    width: 250px;
    position: fixed;
    top: 0;
    overflow-y: scroll;
    overflow-x: hidden;
}
div.sidebar::-webkit-scrollbar {
    display: none;
}
.sidebar-name {
    color: white;
    padding: 20px;
}
.sidebar-logo {
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
    width: 100%;
}
.sidebar-logo > img {
    height: 70px;
    width: auto;
}
.sidebar-content {
    height: calc(100vh - 200px);
    width: 100%;
}
.sidebar-title {
    font-size: 11px;
    color: #b4bfcc;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: 20px;
    margin-top: 20px;
    margin-bottom: 10px;
}
.sidebar-item {
    display: flex;
    flex-direction: row;
    height: 40px;
    width: 100%;
    align-items: center;
    color: #8699AC;
    font-size: 13px;
}
.sidebar-item > a {
    color: #8699AC;
}
.sidebar-item > a:hover {
    color: white;
    text-decoration: none;
    -webkit-transition: color .2s ease-in;
    -moz-transition: color .2s ease-in;
    -o-transition: color .2s ease-in;
    -ms-transition: color .2s ease-in;
    transition: color .2s ease-in;
}
.sidebar-item > a > i {
    margin: 0px 10px 0px 20px;
}
.sidebar-version {
    display: flex;
    flex-direction: row;
    height: 40px;
    width: 100%;
    justify-content: center;
    align-items: center;
    color: #8699AC;
    font-size: 11px;
}
.sidebar-mobile-container {
    width: 100vw;
    height: 100vh;
    position: absolute;
    z-index: 99;
    background-color: black;
    opacity: 0;
}
.sidebar-mobile-container.hidden {
    pointer-events: none;
}
.sidebar-mobile {
    height: calc(100vh - 5px);
    width: 65vw;
    background-color: #2E3B4C;
    position: absolute;
    z-index: 100;
    left: -100vw;
}
.navbar-hamburger {
    opacity: 0;
    pointer-events: none;
}
@media (max-width: 768px) {
   .sidebar {
       display: none;
   }
   .navbar {
       margin-top: 5px;
   }
   .navbar, .content > .app {
       margin-left: 0px;
       width: 100vw;
   }
   .navbar-hamburger {
       opacity: 1;
       pointer-events: all;
   }
}


/**
 * Dashboard
 */
.dashboard-cta {
    border-radius: 5px;
    margin-left: 10%;
    width: 80%;
    height: 80px;
    display: flex;
    flex-direction: row;
    align-items: center;
}
.dashboard-cta > i {
    font-size: 26px;
}
.dashboard-cta > strong, .dashboard-cta > small {
    margin-left: 20px;
}
.dashboard-cta > small {
    position: absolute;
    top: 15%;
    left: 60px;
    font-weight: lighter;
}
.dashboard-cta > strong {
    font-size: 18px;
}
.cta-green {
    border: 2px solid #2ecc71;
}
.cta-green > i, .cta-green > strong {
    color: #2ecc71;
}
.cta-blue {
    border: 2px solid #3498db;
}
.cta-blue > i, .cta-blue > strong {
    color: #3498db;
}
.cta-red {
    border: 2px solid #e74c3c;
}
.cta-red > i, .cta-red > strong {
    color: #e74c3c;
}
.dashboard-title {
    color: #343A3E;
    font-size: 17px;
    margin-bottom: 25px;
}

/**
 * Page intro
 */
.page-intro {
    width: 100%;
    height: 110px;
    background-color: white;
    display: flex;
    justify-content: center;
    flex-direction: column;
}
.page-intro > h1 {
    color: #343a40;
    font-size: 18px;
    margin-left: 40px;
}
.page-intro > h2 {
    color: #343a40;
    font-size: 13px;
    margin-left: 40px;
}

/**
 * Collapse
 */
.collapse-title > a {
    display: flex;
    flex-direction: row;
    margin-bottom: 20px;
    align-items: center;
}
.collapse-title > a:hover, .collapse-title > a:focus {
    text-decoration: none;
}
.collapse-title > a > h1 {
    width: 80%;
    color: #343A3E;
    font-size: 15px;
}
.collapse-title > a > .icon {
    display: flex;
    justify-content: flex-end;
    width: 20%;
    color: #343A3E;
    font-size: 16px;
}

.collapse-title > a > .mobile {
    display: none;
}
@media (max-width: 768px) {
   .collapse-title > a > .full {
       display: none;
   }
   .collapse-title > a > .mobile {
       display: block;
       margin-top: 8px;
       font-size: 16px;
   }
}

/**
 * Treatments
 */
#treatment-name {
    width: 45%;
}
#treatment-tasks {
    width: 30%;
}
#treatment-days {
    width: 30%;
}
#treatment-actions {
    width: 5%;
}
.treatment-add {
    display: flex;
    justify-content: center;
}
@media (max-width: 768px) {
    #treatment-message {
        display: none;
    }
}

/**
 * tasks
 */
#task-order {
    width: 15%;
}
#task-days{
    width: 15%;
}
#task-message {
    width: 65%;
}
#task-actions {
    width: 5%;
}
.task-order-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.task-move-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 20px;
    margin-bottom: 5px;
    color: black;
}
.task-move-button:hover {
    color: #555;
    text-decoration: none;
    -webkit-transition: color .2s ease-in;
    -moz-transition: color .2s ease-in;
    -o-transition: color .2s ease-in;
    -ms-transition: color .2s ease-in;
    transition: color .2s ease-in;
}

/**
 * Reminders
 */
@media (max-width: 1100px) {
    .table-sms-preview {
        display: none;
    }
    .table-view-sms {
        text-align: right;
    }
}
@media (min-width: 1100px) {
    .table-view-sms {
        display: none;
    }
}

/**
 * Users
 */
#user-name, #user-email {
    width: 30%;
}
#user-rank, #user-active {
    width: 20%;
}

@media (max-width: 768px) {
    #user-email {
        display: none;
    }
    #user-name {
        width: 60%;
    }
}
/**
 * MOBILE
 */
 @media (max-width: 768px) {
    .top-color-accent {
        height: 5px;
        width: 100vw;
        position: absolute;
        top: 0;
        background-color: #e67e22;
    }
 }
