﻿:root {
    --input-padding-x: .75rem;
    --input-padding-y: .75rem;
}

html {
    position: relative;
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

/* Align list number/bullets with the text */
li:not(.view-msg-wrap li) {
    list-style-position: inside;
}

.no-js {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    max-width: 800px;
    padding: 100px;
    margin: 0 auto;
    text-align: center;
}

.js-enabled {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    height: 100%;
    width: 100%;
}

.scroll-disabled {
    overflow: hidden !important;
}

.text-semibold {
    font-weight: 700;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-right {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
}

.thm-current {
    text-transform: capitalize
}

.grow-1 {
    flex-grow: 1 !important;
}

.grow-2 {
    flex-grow: 2 !important;
}

.grow-3 {
    flex-grow: 3 !important;
}

.fs-7 {
    font-size: 0.9rem !important;
}

.fs-8 {
    font-size: 0.8rem !important;
}

/* - FIX Datepicker -*/
.bootstrap-datetimepicker-widget.dropdown-menu {
    z-index: 100000;
}

#earliest-date-picker .form-control[readonly] {
    background-color: #fff;
    opacity: 1;
}

@media print {
    div.noprint {
        display: none;
    }

    div.justprint {
        display: block;
    }
}

@media screen {
    div.justprint {
        display: none;
    }
}

.footer {
    width: 100%;
    height: 40px;
    line-height: 40px;
    margin-top: auto;
}

.dropdown-menu {
    min-width: 200px;
    left: 0px;
    right: 0px;
}

.dropdown-menu.columns-2 {
    min-width: 400px;
}

.dropdown-menu.columns-3 {
    min-width: 600px;
}

.dropdown-menu li a {
    padding: 5px 15px;
    font-weight: 300;
}

.multi-column-dropdown {
    list-style: none;
    margin: 0px;
    padding: 0px;
}

.multi-column-dropdown li a {
    display: block;
    clear: both;
    line-height: 1.428571429;
    color: #333;
    white-space: normal;
}

.multi-column-dropdown li a:hover {
    text-decoration: none;
    color: #262626;
    background-color: #999;
}

span.block-ui {
    position: relative;
    top: -4px;
    font-size: 16px;
}

.page-spinner.spinner-border {
    width: 6rem;
    height: 6rem;
}

@media (max-width: 767.98px) {
    .dropdown-menu.multi-column {
        min-width: 240px !important;
        overflow-x: hidden;
    }
}


/******************************/
/* FullCalendar style changes */
/******************************/
.fc-event-container {
    cursor: pointer;
}


/*******************
Table Cell
*******************/
.table-box {
    display: table;
    width: 100%;
}

.table.no-border tbody td {
    border: 0px;
}

.cell {
    display: table-cell;
    vertical-align: middle;
}

.table td,
.table th {
    border-color: #f3f1f1;
}

.table thead th,
.table th {
    font-weight: 500;
}

.table-hover tbody tr:hover {
    /*background: #f2f4f8;*/
    background: var(--tr-hover) !important;
}

.v-middle td,
.v-middle th {
    vertical-align: middle;
}

.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -ms-overflow-style: -ms-autohiding-scrollbar;
}


.stylish-table thead th {
    font-weight: 400;
    color: #99abb4;
    border: 0px;
    border-bottom: 1px;
}

.stylish-table tbody tr {
    border-left: 4px solid #ffffff;
}

.stylish-table tbody tr:hover,
.stylish-table tbody tr.active {
    border-left: 4px solid var(--primary) !important;
}

.stylish-table tbody tr.active {
    background: var(--tr-active);
}


.stylish-table tbody td {
    vertical-align: middle;
}

.stylish-table tbody td h6 {
    font-weight: 500;
    margin-bottom: 0px;
    white-space: nowrap;
}

.stylish-table tbody td small {
    line-height: 12px;
    white-space: nowrap;
}

.comment-widgets .comment-row,
.stylish-table tbody tr {
    border-left-color: transparent;
}


table.scroll {
    width: 100%;
    border-spacing: 0;
}

table.scroll tbody,
table.scroll thead {
    display: block;
}

thead tr th {
    height: 30px;
    line-height: 30px;
    /*text-align: left;*/
}

table.scroll tbody {
    overflow-y: auto;
    overflow-x: hidden;
}


table.fixed {
    table-layout: fixed;
    word-break: break-word;
}

tbody td:last-child,
thead th:last-child {
    border-right: none;
}


/*******************
Rounds
*******************/
.round {
    line-height: 48px;
    color: #ffffff;
    width: 45px;
    height: 45px;
    display: inline-block;
    font-weight: 400;
    text-align: center;
    border-radius: 100%;
    background: #1e88e5;
}

.round img {
    border-radius: 100%;
}

.round-lg {
    line-height: 65px;
    width: 60px;
    height: 60px;
    font-size: 30px;
}

.round.round-info {
    background: #1e88e5;
}

.round.round-warning {
    background: #ffb22b;
}

.round.round-danger {
    background: #fc4b6c;
}

.round.round-success {
    background: #26c6da;
}

.round.round-primary {
    background: #7460ee;
}

/*******************
Labels
*******************/
.label {
    padding: 3px 10px;
    line-height: 13px;
    color: #ffffff;
    font-weight: 400;
    border-radius: 4px;
    font-size: 75%;
}

.label-rounded {
    border-radius: 60px;
}

.label-custom {
    background-color: #00897b;
}

.label-success {
    background-color: #26c6da;
}

.label-info {
    background-color: #1e88e5;
}

.label-warning {
    background-color: #ffb22b;
}

.label-danger {
    background-color: #fc4b6c;
}

.label-megna {
    background-color: #00897b;
}

.label-primary {
    background-color: #7460ee;
}

.label-purple {
    background-color: #7460ee;
}

.label-red {
    background-color: #fb3a3a;
}

.label-inverse {
    background-color: #2f3d4a;
}

.label-default {
    background-color: #f2f4f8;
}

.label-white {
    background-color: #ffffff;
}

.label-light-success {
    background-color: #e8fdeb;
    color: #26c6da;
}

.label-light-info {
    background-color: #cfecfe;
    color: #1e88e5;
}

.label-light-warning {
    background-color: #fff8ec;
    color: #ffb22b;
}

.label-light-danger {
    background-color: #f9e7eb;
    color: #fc4b6c;
}

.label-light-megna {
    background-color: #e0f2f4;
    color: #00897b;
}

.label-light-primary {
    background-color: #f1effd;
    color: #7460ee;
}

.label-light-inverse {
    background-color: #f6f6f6;
    color: #2f3d4a;
}


.addYScroll {
    height: 150px;
    overflow-y: scroll;
}

table.scroll tbody,
table.scroll thead {
    display: block;
}


table.scroll tbody {
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
}

/*******************
Bootstrap Mod
*******************/
.navbar-brand {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.modal-dialog {
    max-width: 775px;
}

/*******************
Shared layout
*******************/

img.icon {
    width: 40px;
    max-height: 40px;
}

img.logo {
    max-height: 120px;
    max-width: 576px;
}

img.logo-header {
    max-height: 70px;
    max-width: 250px;
}

.wrap {
    max-width: 700px;
}

.view-msg-wrap {
    margin: 0 auto;
}

.view-msg-wrap>div {
    display: none;
}

.hidden {
    display: none !important;
}

.backdrop {
    background: grey;
    opacity: 0.7;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.navbar .contact,
.navbar .contact a {
    color: var(--bs-nav-link-color, --bs-body-bg);
}

.navbar .contact a {
    text-decoration: none;
}

.navbar .contact a:hover {
    text-decoration: underline;
}

.navbar .contact.small {
    display: none !important;
}

@media only screen and (max-width: 767.98px) {
    img.logo {
        max-width: 500px;
    }
}

@media only screen and (max-width: 575.98px) {
    .navbar .contact {
        display: none !important;
    }

    .navbar .contact.small {
        display: flex !important;
    }

    img.logo-header {
        max-width: 150px;
    }

    img.logo {
        max-width: 100%;
    }

    h3 {
        font-size: 1.5rem;
    }
}

/*******************
Login page
*******************/
.login-register {
    max-width: 575px;
}

.form-signin {
    width: 100%;
    max-width: 420px;
    padding: 15px;
    margin: 0 auto;
}

.form-label-group {
    position: relative;
    margin-bottom: 1rem;
}

.form-label-group>input,
.form-label-group>label {
    padding: var(--input-padding-y) var(--input-padding-x);
}

.form-label-group>label {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    margin-bottom: 0;
    /* Override default `<label>` margin */
    line-height: 1.5;
    color: #495057;
    border: 1px solid transparent;
    border-radius: .25rem;
    transition: all .1s ease-in-out;
}

.validation-field {
    display: inline-block;
    color: var(--bs-danger);
    border: solid 1px var(--bs-danger);
    border-radius: 0.375rem;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    width: 100%;
}

.field-validation-valid {
    display: none !important;
}

.validation-summary-valid {
    display: none;
}

/*******************
Register page
*******************/
.dob-date-input-item {
    padding-right: 0px;
}

.dob-date-input-item.col-3 {
    min-width: 60px;
}

.dob-date-input-item.col-4 {
    min-width: 80px;
}


/*******************
Index page
*******************/

table.appointments,
table.appointments tbody,
table.appointments tr {
    width: 100%;
}

table.appointments th,
table.appointments td {
    width: 25%;
}

table.appointments th.wider,
table.appointments td.wider {
    width: 35%;
}

table.appointments th.smaller,
table.appointments td.smaller {
    width: 15%;
}

.apps-wrap>div:not(.small) {
    display: table;
}

.apps-wrap>div.small {
    display: none;
}

@media only screen and (max-width: 575.98px) {
    .apps-wrap>div:not(.small) {
        display: none;
    }

    .apps-wrap>div.small {
        display: block;
    }
}

/*******************
Book Appointment
*******************/

/*
* Booking info and terms have basic styling in the Bridge-IT editor
* so we want to try to match how it appears there.
*/

/* Remove paragraph spacing */
#booking-info p,
#booking-terms p {
    margin-bottom: 0;
}

/* Align list items so they don't flow under the bullet */
#booking-info ul,
#booking-terms ul {
    list-style-position: outside;
}

#booking-info li,
#booking-terms li {
    text-indent: -1.5rem;
    padding-left: 1.5rem;
}


.select2-container .select2-selection--single {
    height: auto;
}

.select2-dropdown.provider li {
    display: flex;
    align-items: center;
}

.select2-results .treatment .type {
    font-weight: bold;
}

.treatment .tag {
    background: rgb(255, 255, 188);
    padding: 2px;
}

.treatment .tag:not(:last-child) {
    margin-right: 3px;
}

.treatment .price {
    font-weight: bold;
}

.old-price {
    font-weight: lighter;
    font-size: 0.8rem;
}

.treatment.results .tag:not(.price) {
    font-size: 0.9em;
}

.treatment.selection .tag:not(.price) {
    display: none;
}

.select2-results__option--highlighted .tag {
    color: #343a40;
}

.treatment .add {
    margin-left: 10px;
}

.provider .name {
    font-weight: bold;
}

.provider .type {
    margin-left: 10px;
}

.provider .thumbnail {
    width: 100px;
    height: 140px;
    object-fit: cover;
    margin-right: 10px;
    flex-shrink: 0;
}

.provider .thumbnail.small {
    height: 60px;
}

.row.appointment:hover,
.row.appointment.active {
    background-color: var(--bs-primary);
    color: var(--bs-light, var(--bs-body-bg));
}

.row.appointment:hover {
    cursor: pointer;
}

#appointment-selected .appointment-details,
#confirmed-appointment .appointment-details {
    display: flex;
    align-items: center;
    gap: calc(var(--bs-gutter-x) * 0.5);
}

#appointment-selected .row>* {
    padding: 0px;
    width: auto;
    min-width: 35px;
}

#appointment-selected img {
    width: 130px;
    height: 182px;
    object-fit: cover;
}

#appointment-selected img.logo {
    width: 100%;
    height: auto;
    max-width: 400px;
    max-height: 150px;
    object-fit: contain;
}

#appointment-selected {
    container-type: inline-size;
}

#appointment-selected .deposit-outer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    border-left: solid 2px grey;
    padding-left: 10px;
}

#appointment-selected .deposit-outer.inline {
    /* Only shown when container width is > 600px */
    display: none;
}

#appointment-selected div.appointment-note {
    border: 1px solid #ced4da;
    width: 100%;
    padding: 10px;
    min-height: calc(var(--bs-body-font-size) + 20px);
    font-weight: bold;
}

@container (min-width: 600px) {
    #appointment-selected .deposit-outer.inline {
        display: flex;
    }

    #appointment-selected .deposit-outer:not(.inline) {
        display: none;
    }

    #appointment-selected img {
        width: 180px;
        height: 252px;
    }

    #appointment-selected .appointment-details {
        gap: calc(var(--bs-gutter-x) * 2);
    }
}

#content-wrap {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

#content-wrap iframe {
    width: 1px;
    min-width: 100%;
    height: 500px;
    min-height: 500px;
}

/* Override the standard bootstrap breakpoint, to ensure appointment card wide enough */
@media (min-width: 1200px) and (max-width: 1399.97px) {

    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl {
        max-width: 1180px;
        /* usually 1140px */
    }
}

@media only screen and (max-width: 767.98px) {
    #select-appointment-wrap .spacer {
        display: none;
    }
}

@media only screen and (max-width: 374.98px) {

    /* Reduce the provider thumbnail in the dropdown on very small screens */
    .provider .thumbnail {
        width: 80px;
        height: 112px;
        margin-right: 5px;
    }

    /* Hide the provider image on very small screens */
    #appointment-selected .img-container {
        display: none !important;
    }

    /* Left justify content instead of centralise */
    #appointment-selected .appointment-details {
        justify-content: start;
    }
}

/******************
THEME FIXES
******************/
p {
    font-family: var(--bs-body-font-family);
}

.form-group.row:not(:first-child) {
    margin-top: 1rem;
}

.navbar .container table td,
.navbar .container table th {
    background-color: inherit;
}

iframe {
    background: white;
}

/******************
DATEPICKER THEME TO MATCH BOOTSTRAP
******************/
div[class*=" theme--"] [data-toggle=datetimepicker] .input-group-text {
    display: inherit;
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
}

/******************
Dark background themes
******************/
.select2-container .theme--cyborg .select2-results__options,
.select2-container .theme--darkly .select2-results__options,
.select2-container .theme--slate .select2-results__options,
.select2-container .theme--superhero .select2-results__options {
    color: var(--dark);
}

/******************
QUARTZ
******************/
.theme--quartz [data-toggle=datetimepicker] .input-group-text {
    border-width: 1px;
    border-style: solid;
    border-color: rgba(255, 255, 255, .4);
}

.theme--quartz .bootstrap-datetimepicker-widget {
    background-color: var(--bs-primary);
}

/*****************
MORPH
*****************/
.theme--morph hr {
    border-top-style: solid;
    border-top-width: 1px;
}

/******************
SELECT2 THEME TO MATCH BOOTSTRAP
******************/
.select-wrap:hover {
    cursor: pointer;
}

.select2 .selection span:focus-visible {
    outline: none;
}

.select2-container.form-select {
    padding-right: 25px;
}

.select2-container.form-select [class*=" theme--"] {
    background: inherit;
    border: inherit;
}

.select2-container.form-select [class*=" theme--"] .select2-selection__arrow {
    display: none;
}

.select2-container [class*=" theme--"] .select2-selection__rendered {
    color: inherit;
    padding: 0px;
}

.select2-container [class*=" theme--"] .select2-results__options {
    max-height: 450px;
}

.select2-container [class*=" theme--"] .select2-results__option--disabled {
    display: none;
}

.select2-dropdown.theme--quartz {
    --bs-dropdown-min-width: 10rem;
    --bs-dropdown-padding-x: 0;
    --bs-dropdown-padding-y: 0.5rem;
    --bs-dropdown-spacer: 0.125rem;
    --bs-dropdown-font-size: 1rem;
    --bs-dropdown-color: #fff;
    --bs-dropdown-bg: #fff;
    --bs-dropdown-border-color: rgba(255, 255, 255, 0.2);
    --bs-dropdown-border-radius: 0.5rem;
    --bs-dropdown-border-width: 1px;
    --bs-dropdown-inner-border-radius: calc(0.5rem - 1px);
    --bs-dropdown-divider-bg: rgba(255, 255, 255, 0.2);
    --bs-dropdown-divider-margin-y: 1rem;
    --bs-dropdown-box-shadow: 1px 3px 24px -1px rgba(0, 0, 0, 0.15);
    --bs-dropdown-link-color: #212529;
    --bs-dropdown-link-hover-color: #fff;
    --bs-dropdown-link-hover-bg: rgba(255, 255, 255, 0.4);
    --bs-dropdown-link-active-color: #fff;
    --bs-dropdown-link-active-bg: #e83283;
    --bs-dropdown-link-disabled-color: #adb5bd;
    --bs-dropdown-item-padding-x: 2rem;
    --bs-dropdown-item-padding-y: 0.5rem;
    --bs-dropdown-header-color: #6c757d;
    --bs-dropdown-header-padding-x: 2rem;
    --bs-dropdown-header-padding-y: 0.5rem;
    min-width: var(--bs-dropdown-min-width);
    padding: var(--bs-dropdown-padding-y) var(--bs-dropdown-padding-x);
    margin: 0;
    font-size: var(--bs-dropdown-font-size);
    color: var(--bs-dropdown-color);
    text-align: left;
    list-style: none;
    background-color: var(--bs-dropdown-bg);
    background-clip: padding-box;
    border: var(--bs-dropdown-border-width) solid var(--bs-dropdown-border-color);
    border-radius: var(--bs-dropdown-border-radius);
    border: none;
    box-shadow: inset 1px 1px rgb(255 255 255 / 20%), inset -1px -1px rgb(255 255 255 / 10%), 1px 3px 24px -1px rgb(0 0 0 / 15%);
    background-color: transparent;
    background-image: linear-gradient(125deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2) 70%);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}