@media (min-width: 992px) {
    :root {
        --bs-app-header-height: 70px;
        --bs-app-header-height-actual: 70px;
        --bs-app-sidebar-width: 260px;
        --bs-app-sidebar-width-actual: 270px;
        --bs-app-aside-width: 50px;
        --bs-app-aside-width-actual: 50px;
    }

    [data-kt-app-aside-enabled=true] .app-header-separator {
        margin-right: 50px;
    }

    .app-content {
        padding-top: 10px;
    }

    .app-container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

.form-control-solid {
    border: 1px solid #ebebeb !important;
}

.form-select-solid {
    border: 1px solid #ebebeb !important;
}

.login-screen-bg-img {
    background-image: url("../img/bg_2.jpg");
}

:root, [data-bs-theme=light] {
    --bs-loading-indicator: #F9F9F9;
    --bs-loading-indicator-gradiant: #e5e5e5;
}

[data-bs-theme=dark] {
    --bs-loading-indicator: #15171C;
    --bs-loading-indicator-gradiant: #0F1014;
}

/*p {*/
/*    margin-top: unset;*/
/*    margin-bottom: unset !important;*/
/*}*/

.ml-auto {
    margin-left: auto;
}

.flatpickr-wrapper {
    width: 100%;
}

/*============= Begin::Required Field ============*/
.validation-message {
    margin-top: 5px;
    color: #f1416c;
}

.invalid {
    border: 1px solid #FFE2E5 !important;
}

.required-filed:after {
    content: " *";
    font-weight: bold;
    color: #f1416c;
}

.validation-errors {
    background-color: #ffe2e5;
    border-color: transparent;
    color: #f1416c;
    padding: .75rem 1.25rem;
    border-radius: 5px;
    /*display: flex;*/
}

.validation-errors > li {
    /*margin-top: 1rem;*/
    margin-left: 1.5rem;
}

/*============= End::Required Field ============*/

/*================ being::loading ====================================*/

/* HTML: <div class="loader"></div> */
.loader-bar {
    width: 120px;
    height: 20px;
    background: linear-gradient(to right, var(--bs-loading-indicator) 8%, var(--bs-loading-indicator-gradiant) 18%, var(--bs-loading-indicator) 33%),
    var(--bs-loading-indicator);
    background-size: 300% 100%;
    animation: l1 1s infinite linear;
}

@keyframes l1 {
    0% {
        background-position: right
    }
}

.linear-background {
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
    animation-name: placeHolderShimmer;
    animation-timing-function: linear;
    background: linear-gradient(to right, var(--bs-loading-indicator) 8%, var(--bs-loading-indicator-gradiant) 18%, var(--bs-loading-indicator) 33%),
    var(--bs-loading-indicator);
    background-size: 1000px 104px;
    /*height: 338px;*/
    position: relative;
    overflow: hidden;
}

@keyframes placeHolderShimmer {
    0% {
        background-position: -468px 0
    }
    100% {
        background-position: 468px 0
    }
}

/*================ being::loading ====================================*/

/* ============ begin::file-upload ===================================*/
/* Container for file upload button */
.file-upload {
    position: relative;
    display: inline-block;
    overflow: hidden;
    cursor: pointer;
}

/* Actual hidden file input */
.file-upload input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

/* Button styles */
/*.file-upload button {*/
/*    padding: 10px 20px;*/
/*    background-color: #4CAF50; !* green *!*/
/*    color: white;*/
/*    border: none;*/
/*    border-radius: 4px;*/
/*    font-size: 16px;*/
/*    cursor: pointer;*/
/*    transition: background-color 0.3s ease;*/
/*}*/

/* Button hover effect */
/*.file-upload button:hover {*/
/*    background-color: #45a049;*/
/*}*/
/* ============ end::file-upload ===================================*/

/* ============== begin:: page sizes ===============================*/
.a4-page {
    width: 210mm;
    min-height: 297mm;
}

.a4-page-height {
    min-height: 297mm;
}

.a4-page-width {
    width: 210mm;
}

@media (max-width: 768px) {
    .a4-page {
        width: 100%;
        height: auto;
        padding: 10px;
    }

    .a4-page-height {
        height: auto;
    }

    .a4-page-width {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .a4-page {
        padding: 5px;
    }
}

.a5-page {
    width: 148mm;
    min-height: 210mm;
}

.a5-page-height {
    min-height: 210mm;
}

.a5-page-width {
    width: 148mm;
}

@media (max-width: 768px) {
    .a5-page {
        width: 100%;
        height: auto;
        padding: 10px;
    }

    .a5-page-height {
        height: auto;
    }

    .a5-page-width {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .a5-page {
        padding: 5px;
    }
}

.a5-page-landscape {
    width: 210mm;
    min-height: 148mm;
}

.a5-page-landscape-height {
    min-height: 148mm;
}

.a5-page-landscape-width {
    width: 210mm;
}

@media (max-width: 768px) {
    .a5-page-landscape {
        width: 100%;
        height: auto;
        padding: 10px;
    }

    .a5-page-landscape-height {
        height: auto;
    }

    .a5-page-landscape-width {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .a5-page-landscape {
        padding: 5px;
    }
}

/* ============== end:: page sizes ===============================*/

.h-18px {
    height: 18px;
}

.h-30px {
    height: 30px;
}

.max-h-500px {
    max-height: 500px !important;
}

.max-h-400px {
    max-height: 400px !important;
}

.max-h-300px {
    max-height: 300px !important;
}

.fs-10x {
    font-size: calc(100px + 5vw) !important;
}

/* ============== begin:: drawer ===============================*/
.drawer2 {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    background-color: white;
    /*box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);*/
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1050;
}

.drawer2.open {
    transform: translateX(0);
}

.drawer-overlay2 {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(204, 204, 204, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1040;
}

.drawer-overlay2.open {
    opacity: 1;
    visibility: visible;
}

.responsive-drawer {
    width: 360px; /* Default width */
}

@media (min-width: 992px) {
    .responsive-drawer {
        width: 960px; /* Large screens (lg and up) */
    }
}

/* ============== end:: drawer ===============================*/

/*================== begin::loading spinner ============================*/

.blazor-load-progress {
    margin-top: 20px;
}

.progress-container {
    margin: 0 auto;
    background-color: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #007bff;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.progress-text {
    display: block;
    margin-top: 10px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.theme-light-show,
.theme-dark-show {
    display: none !important;
}

[data-bs-theme="light"] .theme-light-show,
html:not([data-bs-theme]) .theme-light-show {
    display: inline !important;
}

[data-bs-theme="dark"] .theme-dark-show {
    display: inline !important;
}
/*=================== end::loading spinner ============================*/

.episode-diagnosis .timeline-label:before {
    content: "";
    position: absolute;
    left: 2px;
    width: 3px;
    top: 0;
    bottom: 0;
    background-color: var(--bs-gray-200);
}



/* Diagnosis grid row extracted from inline styles in AddedDiagnosisDetails.razor */
.diagnosis-row {
  display: grid;
  grid-template-columns: minmax(200px, 2fr) minmax(140px, 2fr) minmax(140px, 2fr) 140px 140px auto;
  column-gap: 1.25rem;
  align-items: start;
}

.medicine-row {
    display: grid;
    grid-template-columns: minmax(200px, 2fr) minmax(140px, 2fr) minmax(140px, 2fr) auto;
    column-gap: 1.25rem;
    align-items: start;
}
.medicine-row > div:last-child {
    justify-self: end;
}
