html, body {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.body-content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.dl-horizontal dt {
    white-space: normal;
}

.flashToast {
    position: fixed;
    bottom: 0;
    left: 0;
}

.navbar {
    background-color: #0B3F5C;
    color: white;
    font-weight: 300;
}

.navbar-brand {
    font-family: "minion-pro", serif;
    font-weight: 400;
    font-style: normal;
    color: white;
}

.navbar-brand:hover {
    color: white;
    font-weight: bold;
}

.navbar-text {
    color: white;
}
.navbar-toggler {
    border: 1px solid white;
}
.navbar-toggler-icon {
    filter: invert(1) brightness(150%);
}

.nav-link.dropdown-toggle {
    color: inherit;
}

.navbar-nav .nav-link.active, .navbar-nav .nav-link.show {
    color: white;
}

.nav-link {
    color: inherit;
}


.nav-link:hover {
    color: white;
    font-weight: bold;
}

.navbar-nav .nav-link.active, .navbar-nav .nav-link.show {
    color: white !important;
    font-weight: bold !important;
}
.nav-item .dropdown-menu .dropdown-label {
    font-size: 14px;
    color: white;
    padding: 10px;
    background: #0B3F5C;
}

.card {
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    width: 50vw;
    margin: 0 auto;
    background:#f0f0f0; 
    border:1px solid black;
}
    /* On mouse-over, add a deeper shadow */
    .card:hover {
        box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
    }

.card-header {
    /* background: darkseagreen; */
    background-color: #0B3F5C;
    color: rgba(157,206,114, 0.85);
    font-weight: 300;
}
.card-header .fa{
    transition: .3s transform ease-in-out;
}
.card-header .collapsed .fa{
    transform: rotate(90deg);
}
.card-header .fa:hover{
    transform: scale(1.2);
}

.card-text {
    align-content: center
}

#wrapper {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
  }
  
#left {
    flex: 1;
}

#right {
    flex: 1;
}

#footer {
    width: 100%;
    height: 100px;
}

#check-icon {
    height: 1.25em;
    width: 1.25em;
    margin: auto;
    fill: green
}

.vc-hidden {
    display: none !important;
}

.dataTables_wrapper .dataTables_length select {
    background-color: white;
    margin-bottom: 1em;
}
.dataTables_wrapper .dataTables_filter input {
    background-color: white;
    margin-bottom: 1em;
}

.table {
    display: table-header-group;
    width: 100%;
}

.table.dataTables tbody th,
.table.dataTables tbody td {
    white-space: nowrap;
}

.dataTables_wrapper .dataTables_scrollHeadInner {
    padding-right: 0px !important;
}


.offcanvas.offcanvas-bottom {
    width: 80%;
    margin: auto;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    border: none;
    height: 350px;
}

.offcanvas.offcanvas-bottom .offcanvas-header {
    border-bottom: 1px solid #eee;
    margin-left: 25px;
    margin-right: 25px;
    padding-bottom: 10px;
}

.offcanvas.offcanvas-bottom .info-col input,
.offcanvas.offcanvas-bottom .info-col textarea {
    font-size: 0.8rem;
}

.offcanvas.offcanvas-bottom .info-col label {
    margin-right: 5px;
}

.offcanvas.offcanvas-bottom .issue-type-col {
    display: flex;
    flex-direction: column;
}

.offcanvas.offcanvas-bottom .issue-type-col .issue-type-label {
    margin-bottom: 10px
}

.offcanvas.offcanvas-bottom .issue-type-col .form-check fieldset {
    display: flex;
    flex-direction: column;
}

.offcanvas.offcanvas-bottom .issue-type-col .form-check:first-child {
    margin-bottom: 10px;
}

.offcanvas.offcanvas-bottom .issue-type-col .form-check {
    padding: 0;
}

.offcanvas.offcanvas-bottom .issue-type-col .form-check label {
    width: 80%;
}

#id_cost_structures {
    background: white;
    padding: 5px;
    border: 1px solid;
    height: 125px;
    overflow-y: scroll;
}

form .selectize-control.single .selectize-input {
    box-shadow: none;
    background-image: none;
    border-radius: 0px;
    border-width: 1px;
    border-style: solid;
    border-color: black;
    margin-bottom: 5px;
    background-color: #fff !important;
    color: #000;
}

form .selectize-control.single .selectize-dropdown {
    border-radius: 0px;
    border-width: 1px;
    border-style: solid;
    border-color: black;
    box-shadow: none;
    color: black;
    margin-top: -5px;
    border-top: 0px;
}

form .selectize-control.single .selectize-dropdown .selected, 
form .selectize-control.single .selectize-dropdown .active {
    background-color: #eee;
    color: black;
}

form .selectize-control.single .selectize-dropdown .vc-selectize-option-provider,
form .selectize-control.single .selectize-dropdown .vc-selectize-option-patient {
    padding: 5px;
}

/* Style for unselected buttons */
div.form-check label.btn.btn-primary.btn-sm#select-patient {
    background-color: #a7a9ac !important;
    /* Add other styles as needed */
}

div.form-check label.btn.btn-primary.btn-sm#add-patient {
    background-color: #a7a9ac !important;
    /* Add other styles as needed */
}

/* Style for unselected buttons */
.form-check input[type="radio"]:not(:checked) + label.btn.btn-primary.btn-sm {
    background-color: #a7a9ac;
    /* Add other styles as needed */
}

/* Style for selected buttons */
.form-check input[type="radio"]:checked + label.btn.btn-primary.btn-sm {
    background-color: #276fa4;
    /* Add other styles as needed */
}

form label.required:after {
    content: ' *';
    color: red;
}

form label.required.expandable:after {
    content: ' * +';
    color: red;
}

form label.expandable:after {
    content: ' +';
    color: green;
}

form label.conditionally-required:after {
    content: ' ⊛';
    color: orange;
}

h4.card-header {
    position: relative;
}

.form-legend {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    display: inline-block;
    cursor: help;
    color: black;
}

.legend-icon {
    color: #e1a604;
    font-size: 1.2em;
}

.legend-content {
    display: none;
    position: absolute;
    right: -175px;
    background-color: #ffffff;
    border: 1px solid #ccc;
    padding: 5px;
    width: 200px;
    z-index: 1;
    font-size: 0.9em;
    white-space: normal;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 5px;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.form-legend:hover .legend-content {
    display: block;
    opacity: 1;
    visibility: visible;
}

.legend-table {
    display: table;
    width: 100%;
}

.legend-table tr {
    display: table-row;
}

.legend-table td {
    display: table-cell;
    border: 2px solid black;
    padding: 5px;
    vertical-align: middle;
    font-size: 0.8em;
}

.legend-symbol {
    width: 20px;
    text-align: center;
    font-weight: bold;
}

.required-indicator {
    color: red;
}

.expandable-indicator {
    color: green;
}

.required-expandable-indicator {
    color: red;
}

.conditionally-required-indicator {
    color: orange;
}

.group-cost-marker {
    margin-left: 2px;
    color: red !important;
}

#patientEditForm {
    margin-top: 10px;
}

.patient-data-container {
    position: relative;
}

.patient-data-container .patient-edit-button {
    position: absolute;
    top: 0;
    right: -55px;
    padding: 5px 10px;
    font-size: 14px;
}

.form-mimic-single .series-form-divider,
.form-mimic-single .series-add-button {
    display: none;
}

#accessModal, #timeoutModal {
    display: block;
    background: rgb(11, 63, 92, 0.75);
}

#accessModal .modal-title, #timeoutModal .modal-title {
    color: #0B3F5C;
}

#access_acknowledgement, #staySignedIn {
    background: #0B3F5C;
}

.vc-saving-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(11, 63, 92, 0.75);
    z-index: 9999;
    color: white;
    font-size: 20px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.vc-no-scroll {
    overflow: hidden;
}

.vc-saving-overlay.visible {
    display: flex;
}

.vc-saving-overlay svg {
    width: 200px;
    height: 200px;
}

.vc-saving-overlay svg .vc-loading-circle{
    animation: 1.25s linear infinite rotate;
}

.vc-loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(11, 63, 92, 0.75);
    z-index: 9999;
    color: white;
    font-size: 20px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.vc-loading-overlay.visible {
    display: flex;
}

.vc-loading-overlay svg {
    width: 200px;
    height: 200px;
}

.vc-loading-overlay svg .vc-loading-circle{
    animation: 1.25s linear infinite rotate;
}

.vc-searching-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(11, 63, 92, 0.75);
    z-index: 9999;
    color: white;
    font-size: 20px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.vc-searching-overlay.visible {
    display: flex;
}

.vc-searching-overlay svg {
    width: 200px;
    height: 200px;
}

.vc-searching-overlay svg .vc-loading-circle{
    animation: 1.25s linear infinite rotate;
}

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

body .navbar>.container-fluid {
    flex-wrap: wrap !important;
}

@media (max-width: 1285px) {
    #navbarNavDropdown {
        order: 1;
    }
}

/* For Appointment Date = None rows in Appointments and Onsite, and Date of Surgery for Surgical, highlight the row top, bottom, and only far left and right edges.*/
table.dataTable tbody tr.highlight-none td {
    border-top: 1px solid red; /* Add top border to each cell */
    border-bottom: 1px solid red; /* Add bottom border to each cell */
}

table.dataTable tbody tr.highlight-none td:first-child {
    border-left: 1px solid red; /* Add left border to the first cell */
}

table.dataTable tbody tr.highlight-none td:last-child {
    border-right: 1px solid red; /* Add right border to the last cell */
}

/* Make the "None" text red */
table.dataTable tbody tr.highlight-none td.appointment-date,
table.dataTable tbody tr.highlight-none td.date-of-surgery {
    color: red;
}

/* Or make the cell background red */
table.dataTable tbody tr.highlight-none td.appointment-date,
table.dataTable tbody tr.highlight-none td.date-of-surgery {
    background-color: pink;
}

table.dataTable tbody tr td.complete-record-true {
    background-color: lightgreen;
    color: darkgreen;
}

.left-aligned-list {
    text-align: left;
    max-height: 200px;
    overflow-y: auto;
}

.tab-button:hover,
.tab-button:focus,
.tab-button:active {
    color: #000; 
    background-color: #f8f9fa;
}

#searchForm {
    transition: width 0.5s ease;
    width: 0;
    overflow: hidden;
  }
  
  #searchForm.show {
    width: 200px;
  }

  .searchTermHighlight {
    background-color: yellow;
  }

  /* Disable select Sapphire fields */
  .sapphireNonAdminDisabled {
    pointer-events: none;
    opacity: 0.5;
  }

/* Style for the note_in_chart small text */
textarea[id$="note_in_chart"] ~ small {
    line-height: 0.5em;
    display: block;
}

/* Style for the authorization_number small text */
input#id_authorization_number ~ small {
    display: block;
    margin-bottom: 0.5em;
}