﻿/*
    Copyright (c) 2001 Envision Technology Partners, Inc. All rights reserved.
*/

/*
    This file is where we will override all the Bootstrap 5 CSS variables
    with the WebIZ ones.
    --iz-* variable values will be in a "theme" file 
*/
:root {
    --menu-font-color: #ffffff;
    --form-switch-focus-color: var(--bs-gray-800);
    --bs-danger-text-emphasis: var(--error-color);
    --sticky-top:  45px;
}

/* Global override styles that cannot be done with CSS variables. */
/* This is to override the hard-coded outline:0 in the Bootstrap files */
* {
    outline: revert !important;
}

    /* 
    This is to override the shadows in the Bootstrap files. 
    Does not seem to be a simple way to get rid of them all at once.
*/
    *:focus {
        box-shadow: none !important;
    }

    /* 
   This is to override the shadows in the Bootstrap files. 
   Also adds a black border when focused with the keyboard.
*/
    *:focus-visible {
        box-shadow: none !important;
        outline: 1px solid black;
    }

/*
    Going to bring over from WebIZ
    The default is not to transform text, but we will be explicit
*/
.no-transform {
    text-transform: none !important;
}

.toast-container {
    margin-top: 50px;
    position: fixed;
}

.toast {
    --bs-toast-max-width: clamp(350px, auto, 725px);
}

.toast-header {
    border-radius: .5rem .5rem 0 0;
}

main {
    width: calc(100vw - var(--menu-width) - 45px) !important;
    scroll-margin-top: 45px;
}

.form-control, .form-select, .input-group-text {
    border: 1px solid #767676;
}

/* This is specifically for the switch element to have a darker border than all the other inputs */
.form-check-input {
    border: 1px solid var(--bs-gray-700);
}

/* reduce the padding on inputs that have the add-on button so that they remain the same height as regular inputs */
.input-group-text {
    padding-top: 0.2rem !important;
    padding-bottom: 0.1rem !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

/* BUTTONS */
.btn {
    height: fit-content;    
}


.btn-primary {
    --bs-btn-color: var(--iz-primary-text-color);
    --bs-btn-bg: var(--iz-primary-color);
    --bs-btn-border-color: var(--iz-primary-color);
    --bs-btn-hover-color: var(--iz-primary-text-color);
    --bs-btn-hover-bg: var(--iz-primary-color-dark);
    --bs-btn-hover-border-color: var(--iz-primary-color-darker);
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: var(--iz-primary-text-color);
    --bs-btn-active-bg: var(--iz-primary-color-darker);
    --bs-btn-active-border-color: var(--iz-primary-color-darker);
    --bs-btn-disabled-color: var(--iz-primary-text-color);
    --bs-btn-disabled-bg: var(--iz-primary-color);
    --bs-btn-disabled-border-color: var(--iz-primary-color);
}

/* This will be the replacement for btn btn-default */
.btn-outline-secondary {
    --bs-btn-color: #333333;
    --bs-btn-border-color: #333333;
    --bs-btn-hover-color: #333333;
    --bs-btn-hover-bg: #e6e6e6;
    --bs-btn-hover-border-color: #333333;
    --bs-btn-focus-shadow-rgb: 51, 51, 51;
    --bs-btn-active-color: #333333;
    --bs-btn-active-bg: #e6e6e6;
    --bs-btn-active-border-color: #333333;
    --bs-btn-disabled-color: #333333;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #333333;
    --bs-gradient: none;
}

.btn-outline-none {
    --bs-btn-color: #333333;
    --bs-btn-border-color: transparent;
    --bs-btn-hover-color: #333333;
    --bs-btn-hover-bg: transparent;
    --bs-btn-hover-border-color: transparent;
    --bs-btn-focus-shadow-rgb: 51, 51, 51;
    --bs-btn-active-color: #333333;
    --bs-btn-active-bg: #e6e6e6;
    --bs-btn-active-border-color: #333333;
    --bs-btn-disabled-color: #333333;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #333333;
    --bs-gradient: none;
}


/* 
    Could not do this with the sass variable $link-decoration because that 
    would make it global. Maybe we do not want to do that.
    If we decide later that we can use $link-decoration: none; for all but actual anchors
    then we just override a {text-decoration: underline;}
*/
/*.btn-link {
    --bs-btn-bg: #ffffff;
    --bs-btn-border-color: #333333;
    --bs-btn-hover-border-color: #333333;
    --bs-btn-active-border-color: #333333;
    --bs-btn-disabled-border-color: #333333;
    --bs-btn-color: #333333;
    --bs-btn-active-color: #333333;
    --bs-link-hover-color: #333333;
    text-decoration: none;
}*/

.btn-link {
    text-align: start;
}

/* ACCORDION */

h2.accordion-header {
    color: var(--iz-primary-text-color);
    background-color: var(--bs-accordion-active-bg);
}

.accordion-fit-content {
    width: fit-content;
    min-width: 100%;
}

.accordion-status {
    height: 20px;
    width: 20px;
    display: block;
    margin-left: 5px;
}

.accordion-header-with-status {
    display: flex;
    align-items: center;
}

/* TOOLTIPS */

.tooltip {
    border: solid 1px #000000;
}

/*
    Had to do this to get the tooltip arrow to be black 
    while the tooltip background stays white since
    border-bottom-color: var(--bs-tooltip-bg); is what gets generated
    Probably need to do the same sort of thing for the other data-popper-placement^=*

*/
/* Bottom tooltip arrow */
.bs-tooltip-bottom .tooltip-arrow::before, .bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow::before {
    bottom: 0;
    border-width: 0 calc(var(--bs-tooltip-arrow-width) * 0.5) var(--bs-tooltip-arrow-height);
    border-bottom-color: #000000;
}

/* Left tooltip arrow */
.bs-tooltip-bottom .tooltip-arrow::before, .bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow::before {
    border-left-color: #000000;
}

/* Left tooltip arrow positioning */
.bs-tooltip-start .tooltip-arrow, .bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow {
    transform: translate(1px, 6px) !important;
}

/* Top tooltip arrow */
.bs-tooltip-top .tooltip-arrow::before, .bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before {
    top: 0;
    border-width: var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * 0.5) 0;
    border-top-color: #000000;
}

/* Right tooltip arrow */
.bs-tooltip-end .tooltip-arrow::before, .bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow::before {
    border-right-color: #000000;
}

/* Right tooltip arrow positioning */
.bs-tooltip-end .tooltip-arrow, .bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow {
    top: 50% !important;
    left: -8px;
    transform: translateY(-50%) !important;
}

/* To prevent a screen reader from reading the tooltip */
.sr-hidden-tooltip[aria-describedby]::after {
    content: none !important;
}

/* POPOVERS */

/*
    On the popovers that open downward (bottom) we want the arrow to match the color of the title bar
*/
div[data-popper-placement='bottom'] > div.popover-arrow::after {
    border-bottom-color: var(--bs-popover-header-bg) !important;
}


/* DATES */

input[type='date'] {
    min-width: 130px !important;
    max-width: 130px !important;
    width: 130px !important;
}

input[type='datetime-local'] {
    min-width: 175px !important;
    max-width: 175px !important;
    width: 175px !important;
}

/* 
    This selector will apply the specified max-width to any div element whose class starts with col 
    and has a direct child div with the class date-group. 
    This will keep the gap to the right of a date to a minimum
*/
div[class^="col"]:has(> div.date-group) {
    min-width: 175px;
    max-width: 175px;
}

input[type="date"][readonly]::after,
input[type="datetime-local"][readonly]::after {
    font-family: "bootstrap-icons";
    content: "\F1F6" / "Calander icon disabled";
    position: absolute;
    top: 8px;
    right: 15px;
    font-size: 12px;
}

.date-range-container {
    min-width: 200px !important;
    max-width: 200px !important;
    margin-bottom: 1rem !important;
}

.date-range-legend {
    white-space: nowrap
}

/*
    This will ensure that no matter what size the col is that contains the age range picker it will always be at least 400px wide.
    so if a user uses <div class="col-1"> it will still be wide enough to show the age range picker properly.
*/
div[class^="col"]:has(div > div.age-range-container) {
    min-width: 400px !important;
}

.age-range-container {
    min-width: 375px !important;
    max-width: 400px !important;
}

.age-range-label-container {
    /*border-bottom: 1px solid #e5e5e5;*/
    height: 22px;
}

div.age-range-container > div > div > label.form-label {
    font-size: .75rem !important;
    font-weight: bold;
}

.age-range-label {
    font-size: .75rem !important;
    font-weight: bold;
    text-decoration: underline;
    white-space: nowrap;
}

/*
div.age-range-picker > div > fieldset {
    border-bottom: 1px solid #e5e5e5;
}
*/

div.age-range-picker > div.form-group {
    margin-bottom: .5rem;
}

div.age-range-picker > div > fieldset.form-group
{
    margin-bottom: 0 !important;
}

div.age-range-picker > div > fieldset label.form-check-label {
    font-size: 12px !important;
    font-weight: bold;
}

@media (min-width: 576px) {
    .date-range-container {
        min-width: 365px !important;
        max-width: 365px !important;
    }
}


/* CHECKBOX & SWITCH */

/* Could not do this with sass variables. */
.form-switch .form-check-input {
    border-radius: 10px !important;
    transform: scale(1.25);
}

input[type=checkbox] + label {
    -webkit-user-select: none; /* Safari */
    user-select: none; /* Standard syntax */
    cursor: pointer
}

input[type=checkbox].readonly {
    cursor: not-allowed;
    opacity: .5;
}

.checkbox-label-readonly {
    cursor: not-allowed;
}

/*
    testing overrides for checkbox and switches
*/

.form-check-input:checked {
    /* This is the background color when it is checked (use theme primary color - default is blue) */
    background-color: var(--iz-primary-color);
    border-color: var(--iz-primary-color);
}

    .form-check-input:checked[type=checkbox] {
        --bs-form-check-bg-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAyMCAyMCc+PHBhdGggZmlsbD0nbm9uZScgc3Ryb2tlPScjZmZmJyBzdHJva2UtbGluZWNhcD0ncm91bmQnIHN0cm9rZS1saW5lam9pbj0ncm91bmQnIHN0cm9rZS13aWR0aD0nMycgZD0nbTYgMTAgMyAzIDYtNicvPjwvc3ZnPg==");
    }

    .form-check-input[type=checkbox]:indeterminate {
        --bs-form-check-bg-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAyMCAyMCc+PHBhdGggZmlsbD0nbm9uZScgc3Ryb2tlPScjZmZmJyBzdHJva2UtbGluZWNhcD0ncm91bmQnIHN0cm9rZS1saW5lam9pbj0ncm91bmQnIHN0cm9rZS13aWR0aD0nMycgZD0nTTYgMTBoOCcvPjwvc3ZnPg==");
    }

    .form-check-input:checked[type=radio] {
        --bs-form-check-bg-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9Jy00IC00IDggOCc+PGNpcmNsZSByPScyJyBmaWxsPScjZmZmJy8+PC9zdmc+");
    }

.form-check-input:focus {
    border-color: var(--form-switch-focus-color);
}

.form-switch .form-check-input {
    /*gray circle*/
    --bs-form-switch-bg: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9Jy00IC00IDggOCc+CiAgPGNpcmNsZSByPSczJyBmaWxsPScjNDk1MDU3Jy8+Cjwvc3ZnPg==");
}

.form-switch .form-check-input:focus {
    /*gray circle*/
    --bs-form-switch-bg: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9Jy00IC00IDggOCc+CiAgPGNpcmNsZSByPSczJyBmaWxsPScjNDk1MDU3Jy8+Cjwvc3ZnPg==");
    outline: 1px solid var(--form-switch-focus-color);
}

.form-switch .form-check-input:checked:focus {
    /*white circle*/
    --bs-form-switch-bg: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9Jy00IC00IDggOCc+PGNpcmNsZSByPSczJyBmaWxsPScjZmZmJy8+PC9zdmc+");
}

/* MISC INPUTS */

/* For phone and Ext */
div[class^="col"]:has(> div.form-group > div.input-group > input[data-input-type^="phone"]) {
    min-width: 145px;
    max-width: 145px;
}

/* For phone error message or it will be squished. Need sign off from business. */
div.input-group:has(input[data-input-type^="phone"]) + span.field-validation-error {
    white-space: nowrap;
}

.form-group {
    margin-bottom: 1rem;
}

/* 
    This is for inputs with a visual label like Phone Ext we want to push the input down 32px 
    if it has the class has-error we won't do that since the error icon will be displayed and that will push the input down.
*/
.form-group:not(.has-error):has(label.visually-hidden) {
    padding-top: 18px;
}

div.form-group.date-group {
    margin-bottom: 0 !important;
}

#workingDialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000000;
    background-color: rgba(0,0,0,0.5);
}

    #workingDialog > div {
        background-color: #ffffff;
        min-width: 200px;
        border: 1px solid #757575;
        border-radius: 5px;
        padding: 5px 0 15px 0;
    }

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

/* Tiny MCE border color */
.tox-tinymce {
    border-radius: 0 !important;
    border: 1px solid #767676 !important;
}

.tox .tox-edit-area::before {
    border: 2px solid #000000 !important;
    border-radius: 0 !important;
}

/* AUDITS */

dl.dl-horizontal {
    display: flex;
    flex-wrap: wrap;
}

    dl.dl-horizontal > dt {
        width: 35%;
    }

    dl.dl-horizontal > dd {
        margin-left: auto;
        width: 60%;
    }

.dl-audit dt {
    font-size: small;
}

.dl-audit dd {
    margin-left: 0;
    margin-bottom: 0;
    font-size: small;
    white-space: nowrap;
}


/* Hide arrows on number inputs */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

select, option {
    text-transform: uppercase !important;
}


/* Dialog */
/*
    This may or may not be a style that we could use on ALL dialogs.
*/
dialog {
    margin-top: 30px;
    border: solid 1px #999;
    border-radius: 10px;
}

dialog::backdrop {
    background: #ddd;
    background: rgba(0, 0, 0, .5);
}

.modal-content {
    border-radius: var(--bs-border-radius);
}

.checkbox-column {
    width: 2rem !important;
    padding-right: 0.5rem !important;
    padding-left: 0.5rem !important;
    text-align: center;
}

/* Makes links inside bootstrap alerts black-ish instead of blue. Needed for proper color accessibility contrast. */
div.alert > a {
    color: var(--bs-gray-dark);
}

.grid-group {
    background-color: #757575 !important;
    color: #ffffff !important;
    font-weight: bold;
}

/*
    Used to display the Bootstrap 5 logo in the lower right corner on the Bootstrap 5 screens. 
    But only for the Envision DEV theme. 
    NOT other jurisdictions e.g. Colorado, Delaware, etc.
*/
.bs5-info {
    --display: var(--iz-display-bootstrap-info, none); 
    display: var(--display);
    position: fixed;
    bottom: 10px;
    right: 10px;
}

input[type='time'] {
    min-width: 130px !important;
    max-width: 130px !important;
    width: 130px !important;
}

    input[type="time"][readonly]::after
    {
        font-family: "bootstrap-icons";
        content: "\F293" / "Clock icon disabled";
        position: absolute;
        top: 8px;
        right: 15px;
        font-size: 12px;
    }

.validation-summary-errors {
    background-color: var(--bs-danger-bg-subtle);
    color: var(--bs-danger-text-emphasis);
    padding: 1rem .5rem;
    margin-bottom: 1.15rem;
}

.validation-summary-errors > ul { margin-bottom: 0; }


/* Select / Dropdown */
.form-select {
    --bs-form-select-bg-img: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAxNiAxNic+PHBhdGggZmlsbD0nbm9uZScgc3Ryb2tlPScjMzQzYTQwJyBzdHJva2UtbGluZWNhcD0ncm91bmQnIHN0cm9rZS1saW5lam9pbj0ncm91bmQnIHN0cm9rZS13aWR0aD0nMicgZD0nbTIgNSA2IDYgNi02Jy8+PC9zdmc+");
}

.btn-close {
    --bs-btn-close-bg: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAxNiAxNicgZmlsbD0nIzAwMCc+PHBhdGggZD0nTS4yOTMuMjkzYTEgMSAwIDAgMSAxLjQxNCAwTDggNi41ODYgMTQuMjkzLjI5M2ExIDEgMCAxIDEgMS40MTQgMS40MTRMOS40MTQgOGw2LjI5MyA2LjI5M2ExIDEgMCAwIDEtMS40MTQgMS40MTRMOCA5LjQxNGwtNi4yOTMgNi4yOTNhMSAxIDAgMCAxLTEuNDE0LTEuNDE0TDYuNTg2IDggLjI5MyAxLjcwN2ExIDEgMCAwIDEgMC0xLjQxNHonLz48L3N2Zz4=");
}

/* Report Output type styles */
.report-output-type-group {
    width: auto;
}

.delimiter-label {
    min-width: 10ch;
}

.delimiter-input {
    width: 2.5rem;
    max-width: 2.5rem;
}

.delimiter-input[aria-invalid] {
    margin-left: 1.75rem;
}

.form-group:has(input.form-control.delimiter-input) {
    margin-bottom: 0 !important;
}

.report-output-type-group .form-check-inline {
    margin-top: .35rem;
}
/* End Report Output type styles */

/* Report scroll container - for screen-only reports with scrollable results */
.report-scroll {
    max-height: 37.5rem;
    overflow-y: auto;
    overflow-x: auto;
}

a[target="_blank"]:not(.hide-icon):after {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-box-arrow-up-right' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5'/%3E%3Cpath fill-rule='evenodd' d='M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0z'/%3E%3C/svg%3E");
    margin-left: 0.25em; /* Adds a small space between the link text and the icon */
    vertical-align: middle; /* Aligns the icon vertically with the text */
}

/* Adds ellipsis ... to text inputs where the content is longer than the box can display. */
input[type="text"] {
    white-space: nowrap;
    overflow: hidden !important;
    text-overflow: ellipsis;
}

.patient-lookup-container {
    min-width: 35rem;
}

.modal-iframe {
    /* ReSharper disable once CssNotResolved */
    height: min(75vh, 800px);
    border: 0;
}

/* about 35px */
.checkbox-col {
    width: 2.91rem;
    max-width: 2.91rem;
}

/* This is to override the btn-outline-dark that is used in a WebIZ Panel header button. */
.btn-outline-dark {
    color: var(--bs-white);
    border-color: var(--bs-white);
    background-color: transparent;
}

/* Hover state: background turns white, text turns dark */
.btn-outline-dark:hover {
    color: var(--bs-dark); /* Standard Bootstrap dark text color */
    background-color: var(--bs-white);
    border-color: var(--bs-white);
}

/* Focus and Active states */
.btn-outline-dark:focus,
.btn-outline-dark.focus,
.btn-outline-dark:active,
.btn-outline-dark.active {
    color: var(--bs-dark);
    background-color: var(--bs-white);
    border-color: var(--bs-white);
}
/* End btn-outline-dark customizations */


/* This targets the specific attribute Keeper uses for its container */
/* Hide the Keeper icon only when it follows an ignored input */
input.keeper-ignore + keeper-lock,
input.keeper-ignore ~ keeper-lock {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
}

/* Center-align delivery time cells (skip the day-of-week column) */
tbody.center-times td:not(:nth-child(1)) {
    text-align: center;
}

/* ============================================
   Storage Units Panel Styles (BS3 Migration)
   ============================================ */

/* Label/Data Pattern - equivalent to BS3 .label-panel/.panel-data */
.label-panel {
    font-size: 12px;
    color: #636363;
    font-weight: bold;
    display: block;
    margin: 8px 0 2px 0;
}

.panel-data {
    display: block;
}

/* Metric displays */
.panel-metric-lg {
    font-size: 24px;
    color: #636363;
    margin: 0;
}

.panel-metric-md {
    font-size: 18px;
    color: #636363;
    margin: 0;
}

/* Storage Units specific */
.su-panel-mobile {
    margin-top: 4px;
}

.icon-su-menu {
    margin-right: 4px;
}

/* Content area layout */
.iz-content {
    width: 100%;
}

.su-panels {
    /* Container for storage unit cards */
}

/* Mobile adjustments */
@media (max-width: 767.98px) {
    .tight-mobile-pad {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Desktop layout */
@media (min-width: 768px) {
    .iz-content {
        width: 80%;
        float: left;
    }
}

/* BS5 notes layout (_LayoutBootstrap5WithNotes.cshtml) — when iz-content sits
   inside a .row alongside iz-notes, only constrain to 80% at xxl+. Below xxl,
   the notes panel wraps below so main content takes full width. */
@media (max-width: 1399.98px) {
    .row > .iz-content {
        width: 100%;
        float: none;
    }
}

/* ============================================
   Side Navigation Styles (BS3 Migration)
   Source: Areas/ClinicTools/Views/Shared
   ============================================ */

/* Menu section title */
.menu-title {
    color: #636363;
    font-weight: bold;
    padding: 5px 0;
}

/* SideNav - wrapper spacing */
.menu-right-wrap {
    margin-top: 15px;
}

/* SideNav - vertical spacing between links */
.menu-right-wrap .nav-item {
    margin-bottom: 6px;
}

/* SideNav - link styling */
.menu-right-wrap .nav-link {
    color: #0d6efd;
    text-decoration: underline;
    background: transparent;
}

.menu-right-wrap .nav-link:hover,
.menu-right-wrap .nav-link:focus {
    color: #0a58ca;
    background: transparent;
}

/* SideNav - active link (current page) is not clickable */
.menu-right-wrap .nav-link[data-active-right-menu-nav] {
    color: #555555;
    text-decoration: none;
    background-color: #f5f5f5;
    pointer-events: none;
    cursor: default;
}

/* ============================================
   Contextual Header Styles (BS3 Migration)
   ============================================ */

.contextual-header {
    padding: 15px;
    margin: 0 calc(-1 * var(--bs-gutter-x, 0.75rem)) 15px;
    background: #f6f6f6;
}

/* iz-label - small gray bold label */
.iz-label {
    font-size: 12px;
    color: #636363;
    font-weight: bold;
    display: block;
    margin: 10px 0 2px 0;
}

.contextual-header .iz-label {
    font-size: 11px;
    margin-top: 0;
}

/* iz-label-data - value beneath each iz-label */
.iz-label-data {
    display: block;
}

/* ============================================
   Navigation Tabs Styles (BS3 Migration)
   ============================================ */

/* Summary tabs - scoped to nav-tab class */
.nav-tabs .nav-link.nav-tab {
    color: var(--bs-body-color);
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.nav-tabs .nav-link.nav-tab.active,
.nav-tabs .nav-link.nav-tab.active:hover,
.nav-tabs .nav-link.nav-tab.active:focus {
    background-color: #555555;
    color: #ffffff;
    border-color: #555555;
}

.nav-tabs .nav-link.nav-tab:not(.active):hover {
    background-color: #d3d3d3;
    border-color: #c8c8c8;
}

/* ============================================
   Breadcrumb & View Button Styles (BS3 Migration)
   ============================================ */

/* iz-view-btn-enabled - overrides disabled state on view buttons */
.iz-view-btn-enabled {
    pointer-events: auto !important;
    cursor: pointer !important;
    opacity: 1 !important;
}

/* iz-breadcrumb-lg - larger breadcrumb text (16px) */
.iz-breadcrumb-lg {
    margin-top: 8px;
}

.iz-breadcrumb-lg li {
    font-size: 16px;
}

.iz-breadcrumb-lg a {
    color: #0a58ca;
}

.iz-breadcrumb-lg a:hover {
    text-decoration: none;
}

/* ============================================
   Section Header & Tab Styles (BS3 Migration)
   Source: Areas/ClinicTools/Views/TemperatureLog
   ============================================ */

/* Section header - bold with bottom border */
.section-hdr {
    border-bottom: 1px solid #f6f6f6;
    padding-bottom: 6px;
    margin-top: 15px;
    font-weight: bold;
}

/* Tab pane with border (for tabbed content) */
.tab-pane-bordered {
    border-left: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    padding: 10px;
}

/* Sub-label - smaller muted description text */
.sub-label {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: normal;
}

/* ============================================
   Notes Sidebar Styles (BS3 Migration)
   ============================================ */

/* Notes sidebar - width constraint for side panel (legacy BS5 layouts: _Layout.cshtml etc.) */
.iz-notes {
    flex: 0 0 20vw;
    width: 20vw;
    max-width: 300px;
    border-left: 1px solid #dee2e6;
    padding-left: 1rem;
    background-color: #fff;
}

/* BS5 notes layout (_LayoutBootstrap5WithNotes.cshtml) — when iz-notes sits inside
   a .row alongside iz-content, the panel should wrap below at <xxl (col-12 default)
   and only sit side-by-side at xxl+. Override the legacy width/border at small widths. */
@media (max-width: 1399.98px) {
    .row > .iz-notes {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        border-left: none;
        padding-left: 0;
    }
}

/* ============================================
   Label classes (ported from BS3 iz-app.css)
   Used for status badges on list/index views
   ============================================ */
.label {
    display: inline;
    padding: 0.2em 0.6em 0.3em;
    font-size: 10.5px;
    font-weight: bold;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25em;
}
.label:empty {
    display: none;
}
.label-default {
    background-color: #777777;
}
.label-primary {
    background-color: #647F2E;
}
.label-success {
    background-color: #3a833a;
}
.label-info {
    background-color: #20809d;
}
.label-warning {
    background-color: #8e6c15;
}
.label-danger {
    background-color: #ce4844;
}

.input-small {
    max-width: 10ch;
}