html {
    height: 100%;
}
body {
    height: 100%;
    color: #414141;
    font-size: 0.9rem;
}

/*-------- overwrite for bootstrap --------------*/
.btn {
    font-size: 0.85rem;
}
.dropdown-menu {
    z-index: 1500;
}
.form-control,
.dropdown-menu,
.input-group-text {
    font-size: 0.9rem;
}

.card-header {
    font-size: 1rem;
    padding: 0.6rem 1.25rem;
}

.navbar {
    background: linear-gradient(#78C2AD, #CCE8E0);
    padding: 0;
}
.navbar-brand {
    margin-left: -0.5rem;
    margin-right: 0;
}
.navbar-light .navbar-nav .nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: #4a4a4a;
    white-space: nowrap;
}
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .show>.nav-link {
    color: #fff;
}
.navbar-nav .dropdown-menu {
    position: absolute;
}
.nav-item.dropdown {
    cursor: pointer;
}
.navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgb(74,74,74)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}
.navbar-light .navbar-toggler {
    border-color: rgba(74, 74, 74, 0.5);
}

.nav-tabs {
    border-bottom: 1px solid #CCE8E0;
}
.nav-tabs .nav-item {
    flex: 1;
    text-align: center;
}
.nav-tabs .nav-link {
    background-color: rgba(0,0,0,0.03);
    border-color: #ddd;
    white-space: nowrap;
}
.nav-tabs .nav-link.active {
    background-color: #CCE8E0;
    border-color: #CCE8E0;
}

.dropdown-toggle::after {
    margin-left: 0;
}

.alert .close {
    font-size: 1.3rem;
    line-height: 0.7;
}

select.form-control:not([size]):not([multiple]) {
    height: calc(1.97rem + 2px);
}

a {
    color: #5FA994;
}
a:hover {
    color: #458F7A;
}
a:not([href]):not([tabindex]) {
    color: #c3c3c3;
}
a:not([href]):not([tabindex]):hover {
    color: #c3c3c3;
}
a:not([href]):not([tabindex]).btn-primary {
    background-color: #ddd;
    border-color: #ddd;
    cursor: default;
}
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: none;
}

.is-invalid + .invalid-feedback {
    display: block;
}

.custom-file-label {
    white-space: nowrap;
    overflow: hidden;
    height: calc(1.97rem + 2px);
}
.custom-file-label > .file-name {
    color: #999;
}
.custom-file-label:after {
    display: none;
}
.input-group>.custom-file:not(:last-child) .custom-file-label.field-only {
    border-radius: 0.4rem;
}


/*---------- layout ------------------*/
#app {
    min-height: 100%;
    height: auto !important;
    height: 100%;
    margin: 0 auto -2.8rem;
    overflow-x: hidden;
}

main {
    min-height: calc(100vh - 2.8rem - 60px); /* for IE which does not understand css var */
    min-height: calc((var(--vh, 1vh) * 100) - 2.8rem - 60px); /* introduce css var vh to be able to change it programmatically */
}

.company-logo {
    width: 110px;
}

.push {
    height: 2.8rem;
}

footer {
    background: linear-gradient(#CCE8E0, #78C2AD);
    height: 2.8rem;
    padding-top: 0.7rem;
}
footer a {
    color: #5a5a5a;
}
footer a:hover {
    color: #fff;
}

.tab-content {
    padding: 1.5rem 1rem 1rem 1rem;
}

/*--------- helpers -----------------*/
.bottom-bordered {
    border-bottom: 2px solid #ddd;
}

[aria-expanded="false"] .collapse_icon-open {
    display: inline;
}
[aria-expanded="false"] .collapse_icon-close {
    display: none;
}
[aria-expanded="true"] .collapse_icon-open {
    display: none;
}
[aria-expanded="true"] .collapse_icon-close {
    display: inline;
}

.hidden {
    display: none;
}

.invisible {
    visibility: hidden;
}

.hidden-xs {
    display: inline-block;
}
.visible-xs {
    display: none;
}

.nowrap {
    white-space: nowrap;
}

/* TODO rename to alerts */
/*-------- notifications -------------*/
.notification-container {
    position: absolute;
    right: -1000px;
    display: inline-block;
    z-index: 100;
    top: 0.5rem;
}

.notification-container > .alert {
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
}

/*-------- notifications -------------*/
.notification > .nav-link {
    position: relative;
}
.notification-icon {
    font-size: 1.2rem;
}
.notification-count {
    position: absolute;
    top: 0;
    width: 19px;
    height: 19px;
    line-height: 19px;
    text-align: center;
    right: -0.8rem;
    font-size: 0.5rem;
    background-color: #F3969A;
    border-radius: 50%;
}
.notification-list .item {
    cursor: pointer;
}
.notification-list .item > td:first-child {
    padding-left: 0.75rem !important;
}
.notification-list .item > td:first-child:before {
    visibility: hidden;
}
.notification-list .item.new {
    font-weight: bold;
}
.notification-list .item.read {
    background-color: rgba(0,0,0,0.05);
}
.notification-list .item.read.parent,
.notification-list .item.read.parent ~ .child {
    background-color: #eff8f5;
}
.notification-list .item.read.parent ~ .child:hover {
    background-color: #eff8f5 !important;
}
.notification-list .item.read.parent ~ .child > td {
    padding-left: 1.6rem;
}
.notification-list .date-column {
    min-width: 160px;
}


/*---------- modals ------------------*/
.modal-footer > a.btn {
    color: #fff;
}
.modal-footer > a.btn:hover {
    color: #fff;
}
.modal-header-icon {
    line-height: 1.5;
    padding-right: 0.5rem;
}

/*---------- icons ------------------*/
.icon-btn {
    border: none;
    background-color: transparent;
    padding: 0;
    line-height: 1.5;
    color: #5FA994;
    cursor: pointer;
}
.icon-btn:hover {
    color: #4aa48a;
}
.icon-btn:focus {
    -webkit-box-shadow: none;
    box-shadow: none;
}

.disabled-icon {
    line-height: 1.5;
    color: #414141;
}

a.collapse-icon {
    text-decoration: none;
}

/*--------- forms -----------------*/
.form-control-plaintext.inline-value {
    display: inline-block;
    width: 60%;
    border: none;
    color: #414141;
}

.custom-checkbox {
    position: relative;
}
.custom-checkbox .custom-control-label::before {
    border-radius: 0.2rem;
}
.custom-checkbox > .expand-icon {
    position: absolute;
    color: #F3969A;
    left: 0;
    line-height: 1.5;
    width: 1rem;
}
.custom-control-input.checkbox-partial:checked ~ .custom-control-label::before {
    background-color: #c6c8ca;
}

.filter-btn {
    cursor: pointer;
}
.filter-reset-btn {
    font-size: 1.5rem;
    padding-top: 0;
    padding-bottom: 0;
}

.datepicker-wrapper {
    position: relative;
}
.datepicker-wrapper > .disabled-icon {
    position: absolute;
    left: 0.75rem;
    padding-top: 0.375rem;
}
.datepicker-wrapper > .datepicker {
    padding-left: 2rem;
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
}

.phone-group {
    display: flex;
}
.phone-group input {
    flex: 1;
    margin-left: 0.5rem;
    padding-top: 0;
    padding-bottom: 0;
}
.timezone > select {
    width: 100%;
    font-size: 0.9rem;
    color: #5a5a5a;
    height: calc(1.97rem + 2px);
    background-color: #fff;
    border: 1px solid #ced4da;
}
/*------- custom radio-button ------------*/
.switch-button {
    display: none;
}

.switch-button-label {
    color: #78C2AD;
    display: inline-block;
    cursor: pointer;
    font-weight: bold;
    padding: 0.25rem 0.9rem;
    margin-bottom: 0;
}

.switch-button:checked + .switch-button-label{
    color: #fff;
    background: #78C2AD;
}

.radio-group {
    border: solid 1px #78C2AD;
    display: inline-block;
    margin-bottom: 1rem;
    border-radius: 5px;
    overflow: hidden;
}

/*------- miscellaneous ----------*/
.user-name {
    padding: 0.25rem 0.5rem;
    border-bottom: 1px solid #888;
    cursor: default;
}

.color-sample {
    width: 1rem;
    height: 1rem;
}
.color-caption {
    line-height: 1rem;
    padding-left: 0.3rem;
}

/*---------- loader --------------------*/
#loader {
    position: fixed;
    width: 100%;
    left: 0;
    top: 0;
    bottom: 0;
    /*background-color: rgba(255,255,255,0.7);*/
    z-index: 9999;
    display: none;
}

@-webkit-keyframes spin {
    from {-webkit-transform:rotate(0deg);}
    to {-webkit-transform:rotate(360deg);}
}

@keyframes spin {
    from {transform:rotate(0deg);}
    to {transform:rotate(360deg);}
}

#loader::after {
    content:'';
    display: block;
    position: absolute;
    left: 48%;
    top: 40%;
    width: 40px;
    height: 40px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #4aa48a;
    border-radius:50%;
    -webkit-animation: spin .8s linear infinite;
    animation: spin .8s linear infinite;
}

/*---------- media queries ----------------*/
@media (min-width: 768px) {
    .navbar-expand-md .navbar-nav .nav-link {
        padding-left: 0.4rem;
    }
    .notification-count {
        right: -0.4rem;
    }
    .notification-list .description-column {
        min-width: 250px;
    }
}
@media (min-width: 992px) {
    .notification-list .description-column {
        min-width: 350px;
    }
}
@media (max-width: 767px) {
    .hidden-xs {
        display: none;
    }
    .visible-xs {
        display: inline-block;
    }
    .navbar-nav .nav-item {
        padding-left: 10px;
    }
    .lang-dropdown {
        padding-right: 15px;
    }
    .notification {
        padding-right: 20px;
    }
    .field-list-control {
        width: 40px;
        margin-right: 5px;
    }
}
@media (max-width: 575.98px) {
    body,
    .btn {
        font-size: 0.8rem;
    }
    .form-control,
    .dropdown-menu,
    .input-group-text {
        font-size: 0.85rem;
    }
    .card-header,
    .navbar-light .navbar-nav .nav-link {
        font-size: 0.9rem;
    }
    .card-header,
    .card-body {
        padding: 0.6rem 1rem;
    }
    .card-header.header-w-buttons {
        font-size: 0.8rem;
    }

    footer {
        padding-top: 0.4rem;
    }

    /*jquery datatable - info row*/
    div.dataTables_wrapper .dataTables_info[role=status] {
        white-space: unset;
    }

    .switch-button-label {
        padding-left: 0.6rem;
        padding-right: 0.6rem;
    }
}
