/*
 Theme Name:   Programari Ambulatoriu
 Theme URI:    http://spitalmures.ro/programari-ambulatoriu
 Description:  Spital Mures - Programari Ambulatoriu theme
 Author:       Spital Mures
 Author URI:   http://spitalmures.ro/
 Template:     understrap
 Version:      1.2.2.5
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  programiu
*/

.dropdown-toggle .text {
    margin-right: 10px;
}

.dropdown-list .spinner-grow {
    display: none;
    margin-right: 10px;
}

.dropdown-menu.show {
    width: 100%;
}

.department-button .fa-map-marker-alt {
    float: right;
}

.dropdown-departments,
.dropdown-list .spinner-grow.visible,
.dropdown-doctors.visible,
.dropdown-schedules.visible,
.dropdown-hours.visible {
    display: inline-block;
}

.dropdown-doctors,
.dropdown-schedules,
.dropdown-hours {
    display: none;
}

.dropdown-doctors.visible,
.dropdown-schedules.visible,
.dropdown-hours.visible {
    margin-left: 20px;
}

.dropdown-departments.faded,
.dropdown-doctors.faded,
.dropdown-hours.faded {
    opacity: 0.5;
}

.dropdown-schedules .date-picker,
.dropdown-hours .time-picker {
    display: block;
}

.ui-datepicker-calendar .booked .ui-state-default {
    background: red;
    color: #fff;
    border: none;
}

.ui-datepicker-calendar .available:not(.ui-state-disabled) .ui-state-default {
    background: #00a200;
    color: #fff;
    border: none;
}

.dropdown-hours .dropdown-menu {
    width: 250px;
    max-height: 250px;
    overflow-y: scroll;
}

.hour-button {
    color: #05750e;
    border-bottom: solid 1px #f3f3f3;
}

.hour-button span {
    float: right;
    color: #afaaaa;
    font-size: 14px;
    line-height: 24px;
}

.dropdown-item.hour-button.unavailable {
    color: #de0000;
    background-color: #ffeded;
    cursor: not-allowed;
}

.hour-button.small {
    padding-left: 2.2rem;
}

span.notice {
    color: #bdbbbb;
    max-width: 50%;
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
    line-height: 15px;
}

.appointment-spinner {
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
}

.dropdown-list {
    position: relative;
}

.dropdown-list.loading .appointment-spinner {
    display: block;
}

.dropdown-list.loading .dropdown,
.dropdown-list.loading form {
    opacity: 0.1;
}


/* Appointment Availability */

.template-availability {
    padding-top: 2rem;
}

.availability-results {
    width: 100%;
    max-width: 300px;
    margin: 20px auto;
}

.availability-results .main-tr .time {
    padding: 5px 10px;
}

.availability-results .hour-td {
    width: 80%;
    border: solid 1px #ccc;
}

.availability-results .time {
    background: #e8e8e8;
    padding: 1px 5px;
    border: solid 1px #adafad;
    text-align: right;
}

.availability-results .available {
    background-color: #1caf1c;
}

.availability-results .unavailable {
    background-color: #a00000;
}

.availability-results .secondary-tr {
    font-size: 14px;
}

.availability-results .secondary-tr .time {
    background-color: #fbfbfb;
}

.legend {
    margin: 20px auto;
    list-style: none;
    max-width: 500px;
    width: 100%;
    padding: 20px 30px;
}

.legend .square {
    width: 15px;
    height: 15px;
    margin-right: 10px;
}

.legend .square,
.legend .description {
    display: inline-block;
    vertical-align: middle;
}

.legend .available-display {
    background-color: #1caf1c;
}

.legend .unavailable-display {
    background-color: #a00000;
}

a.dropdown-item:focus,
a.dropdown-item:hover {
    color: #fff;
    background-color: #2c8bc8;
}

button.btn-primary:hover,
button.btn-primary:focus,
button.btn-primary:disabled {
    border-color: #545b62;
    background-color: #545b62;
}

button.btn-primary {
    border-color: #2c8bc8;
    background-color: #2c8bc8;
}

nav.navbar {
    border-bottom: solid 2px #2c8bc8;
}

.navbar-dark .navbar-brand {
    max-width: 400px;
}

.navbar.bg-primary {
    background-color: #fff !important;
}

#main-menu {
    background: #2c8bc8;
    border-radius: 4px;
}

.site #wrapper-footer-full {
    background-color: #4e555b;
    color: #fff;
}

#index-wrapper {
    min-height: 75vh;
}

.navbar-dark .navbar-nav .nav-link {
    text-align: center;
}

.site .navbar-dark .navbar-toggler {
    color: #2c8bc8;
    border-color: #2c8bc8;
}

.ui-datepicker-calendar .ui-state-disabled.holiday .ui-state-default,
.ui-datepicker-calendar .ui-state-disabled.day-off .ui-state-default {
    background: #ffcb00bf;
    color: #fff;
}

.ui-datepicker-calendar .ui-state-disabled.holiday,
.ui-datepicker-calendar .ui-state-disabled.full-day,
.ui-datepicker-calendar .ui-state-disabled.day-off {
    opacity: 1;
}

.legend {
    font-size: 13px;
    float: right;
}

.legend li::before {
    display: inline-block;
    width: 10px;
    height: 10px;
    content: '';
    position: relative;
    margin-right: 5px;
}

.legend li.available::before {
    background-color: green;
}

.legend li.unavailable::before {
    background-color: red;
}

.legend li.day-off::before {
    background-color: #ffcb00bf;
}

.legend li.weekend::before {
    background-color: #ccc;
}

.dropdown-menu.show {
    width: 320px;
}

a.dropdown-item {
    border-bottom: solid 1px #ccc;
    white-space: normal;
}

.list-style {
    margin: 0 0 0 30px;
    padding: 0;
    list-style: none;
}

.heading {
    text-transform: uppercase;
    font-size: 16px;
    line-height: 28px;
    padding: 0 0 10px 10px;
    border-bottom: solid 1px #2c8bc8;
    color: #090909;
    font-weight: 600;
    position: relative;
    margin: 0 0 25px 0;
}

.heading:after {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 128px;
    height: 3px;
    background: #2c8bc8;
    content: "";
}

.list-style li {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.list-style li::before {
    content: '\f058';
    font-family: 'FontAwesome';
    margin-right: 6px;
    font-size: 20px;
    vertical-align: middle;
    color: #2c8bc8;
}

.appointment-content {
    background-color: #fff;
    border: solid 1px #ccc;
    border-radius: 5px;
}

.btn.btn-primary {
    background: #2c8bc8;
    border-color: #2c8bc8;
}

.btn.btn-primary:hover,
.btn.btn-primary:focus {
    background: #2c8bc8;
    border-color: #2c8bc8;
    opacity: 0.8;
}

.ui-datepicker-calendar .ui-state-disabled.holiday,
.ui-datepicker-calendar .ui-state-disabled.full-day,
.ui-datepicker-calendar .ui-state-disabled.day-off,
.ui-datepicker-calendar .ui-state-disabled.legal-day {
    pointer-events: all;
}

/* Legal day */
.ui-datepicker-calendar .ui-state-disabled.legal-day .ui-state-default {
    background: yellow;
}

/* Full day */
.ui-datepicker-calendar .ui-state-disabled.full-day .ui-state-default {
    background: red;
    color: #fff;
}

.dropdown-departments .dropdown-menu,
.dropdown-hours .dropdown-menu {
    margin-left: -160px !important;
    left: 50% !important;
}

@media (max-width: 1024px) {
	.dropdown-departments .dropdown-toggle {
		width: 100%;
	}
	.dropdown-hours {
		min-width: 150px;
	}
}

.g-recaptcha {
    display: table;
    margin: 0 auto 20px auto;
}

.g-recaptcha > div {
    margin: 0 auto;
}

/* Frontend style updates */

/* Page background */
#page {
    background-image: linear-gradient(292deg, #e9fffd 0%, #e9f9ff 100%);
}

/* Header and menu */
#main-menu {
	background-image: linear-gradient(292deg, #0ed7cd 0%, #00afef 100%);
}

nav.navbar {
    border-bottom: solid 2px #07c4dc;
}
.navbar-dark .navbar-nav .active>.nav-link,
.navbar-dark .navbar-nav .nav-link.active,
.navbar-dark .navbar-nav .nav-link.show,
.navbar-dark .navbar-nav .show>.nav-link,
.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link:hover {
    color: #fff;
    background-image: linear-gradient(292deg, #0ed7cd 0%, #00afef 100%);
}

.site .navbar-dark .navbar-nav .nav-link {
    color: #07c4dc;
}
.navbar-dark .navbar-nav .nav-link {
    font-size: 15px;
    padding: 10px 12px;
    background: #fff;
	font-weight: 600;
}
.heading {
    border-bottom: solid 1px #07c4dc;
}
.heading:after {
    background: #07c4dc;
}

/* Back button */
.btn.btn-primary {
    border-color: #00afef;
    color: #00afef;
    background: white;
}
.btn.btn-primary:hover {
    background-image: linear-gradient(292deg, #0ed7cd 0%, #00afef 100%);
    border-color: #00afef;
	color: #fff;
}
.btn-primary:not(:disabled):not(.disabled).active, .btn-primary:not(:disabled):not(.disabled):active, .show>.btn-primary.dropdown-toggle {
    background-color: #2ebdf2;
    border-color: #2ebdf2;
}

/* Frontend calendar */
#dropdownDepartments {
    background-image: linear-gradient(292deg, #d92412 0%, #e01010 100%);
    border-color: #c0392b;
}
.dropdown-departments.faded, .dropdown-doctors.faded, .dropdown-hours.faded {
    opacity: 1;
}
.appointment-content .btn.send-appointment:hover {
    background: #222;
    opacity: 1;
    border: #222;
    cursor: pointer;
}
.appointment-content .btn.send-appointment {
    opacity: 1;
    border: #d61b1b;
    background-image: linear-gradient(292deg, #d92412 0%, #e01010 100%);
    padding: 6px 21px;
    font-size: 18px;
    font-weight: 600;
    margin-right: 10px;
	color: #fff;
}

.appointment-content a#dropdownHours {
    background-image: linear-gradient(292deg, #d92412 0%, #e01010 100%);
    border-color: #c0392b;
}
a.dropdown-item:focus, a.dropdown-item:hover {
    color: #fff;
    background-image: linear-gradient(292deg, #0ed7cd 0%, #00afef 100%);
}
a.dropdown-item:hover span {
    color: #fff;
}
.ui-datepicker-calendar .available:not(.ui-state-disabled) .ui-state-default {
    background: #2ecc71;
}
.legend li.available::before {
    background-color: #2ecc71;
}

/* Verify availability dropdown */
.btn-secondary {
    background-image: linear-gradient(292deg, #d92412 0%, #e01010 100%);
    border-color: #c0392b;
}
.btn-secondary:not(:disabled):not(.disabled).active, .btn-secondary:not(:disabled):not(.disabled):active, .show>.btn-secondary.dropdown-toggle {
    background-image: linear-gradient(292deg, #0ed7cd 0%, #00afef 100%);
    border-color: #0ed7cd;
}

/* Check icon */
.list-style li::before {
    color: #2ecc71;
}
h3.heading {
    text-transform: none;
}

/* Calendar datepicker */
.ui-datepicker-header.ui-widget-header.ui-helper-clearfix.ui-corner-all {
    background-image: linear-gradient(292deg, #0ed7cd 0%, #00afef 100%);
    text-transform: capitalize;
    color: #fff;
}
.ui-datepicker th {
    color: #7a8a8c;
}


/* Scrollbar styles */

/* width */
::-webkit-scrollbar {
    width: 10px;
    background: #fff;
}

/* Track */
::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey;
    border-radius: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #0ed6ce;
    border-radius: 10px;
    background-image: linear-gradient(292deg, #0ed7cd 0%, #00afef 100%);
}

/* Fix dropdown hours word wrap */

.dropdown-menu .dropdown-item.hour-button {
    display: flex;
}

.dropdown-menu .hour-button span {
    float: none;
    margin-left: 10px;
}

/* Fix mobile list items */

@media screen and (max-width: 500px) {
    .list-style {
        margin-left: 0;
    }
    .list-style li {
        word-break: break-word;
    }
}

/* 404 page */

.error404 .btn.btn-primary.m-3 {
    display: none;
}

body.error404 {
    background: linear-gradient(292deg, #e9fffd 0%, #e9f9ff 100%);
}

.error404 .wrapper .error-404 {
    height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error404 .site #wrapper-footer-full {
    position: fixed;
    bottom: 0;
    width: 100%;
}

.error-404 .go-back-link {
    color: #fff;
    background: linear-gradient(292deg, #3697c3 0%, #3697c3 100%); 
    padding: 5px 10px;
}

.error-404 .go-back-link:hover,
.error-404 .go-back-link:focus {
    background: transparent;
    color: #3697c3;
    text-decoration: none;
}


/* Manual embed */

.programiu-manual-embed {
    background: #fff;
    width: 100%;
    height: 600px;
}

#wpadminbar ul li.programiu-manual {
    background-color: #096e7a;
}