body {
    padding-top: 96px;
    padding-bottom: 40px;
}

/** { outline: 2px dotted red }*/
/** * { outline: 2px dotted green }*/
/** * * { outline: 2px dotted orange }*/
/** * * * { outline: 2px dotted blue }*/
/** * * * * { outline: 1px solid red }*/
/** * * * * * { outline: 1px solid green }*/
/** * * * * * * { outline: 1px solid orange }*/
/** * * * * * * * { outline: 1px solid blue }*/

.threeMenus {
    padding-top: 44px;
}

.publicpage {
    padding-top: 4px;
}

.publicpage .nav {
    padding-top: 40px;
}

.login {
    border: 1px solid #dddddd;
    border-collapse: separate;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    padding-bottom: 15px;
}

.icon-flipped {
    transform: scaleX(-1);
    -moz-transform: scaleX(-1);
    -webkit-transform: scaleX(-1);
    -ms-transform: scaleX(-1);
}

/*!
 * Overridden bootstrap styles
 */
.popover {
    z-index: 1040;
}

.dropdown-menu {
    z-index: 1100;
}

.accordion-toggle {
    background-color: #f7f7f7;
}

.rootMenu {
    border-bottom: 1px solid #003a63;
    background-color: #166aa6;
    background-image: -moz-linear-gradient(top, #2b77ad, #005c9e);
    background-image: -ms-linear-gradient(top, #2b77ad, #005c9e);
    background-image: -webkit-gradient(
            linear,
            0 0,
            0 100%,
            from(#2b77ad),
            to(#005c9e)
    );
    background-image: -webkit-linear-gradient(top, #2b77ad, #005c9e);
    background-image: -o-linear-gradient(top, #2b77ad, #005c9e);
    background-image: linear-gradient(top, #2b77ad, #005c9e);
    filter: progid:dximagetransform.microsoft.gradient(startColorstr='#2B77AD', endColorstr='#005C9E', GradientType=0);
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}

.rootMenu .divider-vertical {
    margin: 0;
    margin-top: 5px;
    height: 30px;
    border-left: 1px solid #dddd;
}

.rootMenu .brand {
    color: #fff;
    text-shadow: none;
}

.rootMenu .ul > li {
    max-height: 40px;
}

.rootMenu .nav > li > a {
    color: #e7e3ff;
    max-height: 40px;
}

.rootMenu .nav > li > a:hover {
    background-color: #00538e;
}

.rootMenu .nav > li > a:focus,
.rootMenu .nav > li > a:focus:not(:hover) {
    color: #e7e3ff;
    background-color: #00538e;
}

.navbar .rootMenu .nav li.dropdown > .dropdown-toggle .caret {
    border-top-color: #cad2f3;
    border-bottom-color: #cad2f3;
}

.rootMenu .brand:hover {
    color: #e7e3ff;
    text-shadow: none;
}

.rootMenu .brand {
    padding-top: 0px;
    padding-bottom: 0px;
}

.widerLabel .control-label {
    width: 200px;
}

.widerLabel .controls {
    margin-left: 220px;
}

/*!
 * Other Classes
 */
.badge-message {
    background-color: red;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    position: relative;
    margin-left: 8px;
}

.badge-pill {
    background-color: red;
    border-radius: 99px;
    color: white;
    font-family: sans-serif;

    padding: 1px 3px;
    font-size: 16px;

    position: absolute; /* Position the badge within the relatively positioned button */
    top: -10px;
    right: -10px;
}

.position-relative {
    position: relative;
    display: inline-block; /* Make sure the container sizes to content */
}

.custom-message-badge {
    position: absolute;
    top: -5px;
    right: -3px;
    padding: 6px;
    background-color: red;
    box-shadow: 0 0 0 2px white;
    border-radius: 50%;
}

.right {
    display: inline;
    float: right;
}

.left {
    display: inline;
    float: left;
}

.rightBlock {
    display: block;
    float: right;
}

.admin-one-button {
    padding: 4px !important;;
    width: 60px;
    text-align: center;
}

.admin-two-buttons {
    padding: 4px !important;;
    width: 100px;
    text-align: center;
}

.admin-three-buttons {
    padding: 4px !important;
    width: 140px;
    text-align: center;
}

.table td.center,
div.center,
.center {
    text-align: center !important;
}

tbody:has(> tr:only-child#emptyRow) #emptyRow {
    display: table-row;
}

.table-bordered.noFormMargin > thead > tr > td {
    border: none;
    border-bottom: 1px solid #ddd;
}

.header {
    background: #f7f7f7;
    margin: 0;
    font-weight: bold;
    color: #333333;
    text-rendering: optimizelegibility;
    font-size: 24px;
    line-height: 36px;
}

.divheader {
    border-bottom: 1px solid #ddd;
    padding: 8px;
}

.column-header {
    background: #fafafb;
    font-weight: bold;
}

.search-header {
    background: #edf1f7;
}

.button-row {
    background: #edf1f7;
}

.form-text {
    padding-top: 5px;
}

.form-vertical {
    padding-right: 15px;
    padding-left: 15px;
}

.modal-dialog {
    min-width: 320px;
}

.modal-body .form-group {
    margin-left: 15px;
    margin-right: 15px;
}

.label-text {
    padding-top: 5px;
}

.required_red {
    color: #f00;
}

.warning-text {
    color: #ff9900;
}

.noFormMargin {
    margin-bottom: 0;
}

.accordionTable > thead > tr {
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.accordionTable > tbody > tr:first-child > td {
    border-top: 0;
}

.accordionTable {
    margin-bottom: 0;
}

.accordionTable > thead > tr > th,
.accordionTable > thead > tr > td {
    font-weight: bold;
    background-color: #fafafa;
}

.sticky-header {
    max-height: 500px;
    overflow: auto;
}

.tablesorter tbody tr:not(#emptyRow):nth-of-type(odd)  { background: transparent; }
.tablesorter tbody tr:not(#emptyRow):nth-of-type(even) { background: #fafafa; }

.tablesorter tbody tr:hover td {
    background-color: #dff0d8; /* light green */
}

.tablesorter thead th {
    background-color: #fafafa;
}

.sticky-first-column th:first-child,
.sticky-first-column td:first-child {
    position: sticky;
    left: -1px;
    background-color: #fafafb;
}

.bigPopover {
    width: 380px;
    max-width: 380px;
}

.biggerPopover {
    width: 600px;
    max-width: 600px;
}

.hugePopover {
    width: 800px;
    max-width: 800px;
}

.complementTabs > .active > a,
.complementTabs > .active > a:hover,
.searchTabs > .active > a,
.searchTabs > .active > a:hover {
    background-color: #edf1f7 !important;
    font-weight: bold;
}

.complementTabs > li > a,
.searchTabs > li > a {
    border-color: #eeeeee #eeeeee #dddddd;
    background: #f7f7f7;
}

.searchTabs {
    padding: 0px;
    margin: -8px -8px 0 -8px;
    background: #fafafb;
}

.complementTabs {
    margin-bottom: 0;
    border-bottom: 0;
}

.complementContent {
    border: 1px solid #ddd;
    background-color: #edf1f7;
    border-top: 0;
}

.complementContent input[type="text"] {
    width: 60px;
}

.complementContent input[type="text"].normalInputWidth {
    width: 224px;
}

.div-bordered {
    border: 1px solid #dddddd;
    border-collapse: separate;
    padding: 0;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}

.div-container {
    padding: 8px;
}

.medium-legend {
    font-weight: bold;
    font-size: 14.5px;
    color: #333333;
}

.trimmedTable td {
    padding: 4px;
    vertical-align: middle;
}

.textRight {
    text-align: right;
}

.tableLegend {
    margin-left: 20px;
    text-align: center;
}

.tableLegend > small {
    font-size: 13px;
    font-weight: bold;
}

.patientCardTable {
    margin: 0;
    width: auto;
}

.noMarginLeft {
    margin-left: 0;
}

.menuLabel {
    padding: 8px 0px 8px 10px;
    display: inline-block;
}

.menuText {
    line-height: 14px;
    padding: 11px 10px 11px 10px;
    display: inline-block;
    float: left;
    font-size: 15px;
    color: #333;
    font-weight: bold;
}

.resultTable {
    width: auto;
}

.resultTable tr > td:first-child {
    text-align: right;
}

.boldText {
    font-weight: bold;
}

.normalText {
    font-weight: normal;
}

.bottom-div-border {
    border-bottom: 1px solid #ddd;
}

.button-margin-left {
    margin-left: 20px;
}

.tag-label {
    color: #000;
    padding-left: 5px;
}

a.no-underline:hover {
    text-decoration: none;
}

a.no-underline:hover span.underline {
    text-decoration: underline;
}

.marginTop8 {
    margin-top: 8px;
}

.marginTop5 {
    margin-top: 5px;
}

.table .noBorderLeft {
    border-left: 0;
}

.codeTd {
    width: 50px;
}

.iconTd {
    width: 20px;
    border-right: 0px !important;
}

.progress-item {
    cursor: default;
    display: inline-block;
    padding: 4px 8px;
    margin: 0;
    font-size: 11px;
    line-height: 15px;
    color: #333333;
    text-align: center;
    background-color: #e6e6e6;
    background-image: none;
    opacity: 0.6;
    filter: alpha(opacity=60);
    vertical-align: middle;
    border: 1px solid #bbbbbb;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}

.progress-item.visited {
    opacity: 1;
    filter: alpha(opacity=100);
    color: #ffffff;
    background-color: #5bc0de;
    cursor: pointer;
}

.progress-item.visited:hover {
    background-color: #31b0d5;
}

.progress-item.active {
    opacity: 1;
    filter: alpha(opacity=100);
    color: #ffffff;
    background-color: #51a351;
    border-color: #2d5b2d;
}

.two-buttons-td {
    width: 70px;
}

.three-buttons-td {
    width: 100px;
}

.noTopMargin {
    margin-top: 0;
}

.small-size {
    width: 120px;
}

.date-input-size {
    width: 11ch;
}

.resize-lock-textarea {
    min-height: 30px;
    resize: vertical;
}

.medium-size {
    width: 250px;
}

.headerTitle {
    margin: 0;
    line-height: 30px;
    font-size: 26px;
}

.table .buttonsColumn {
    border-left: 0;
    text-align: right;
}

.popover-marker {
    cursor: pointer;
}

.popover-active {
    background-color: #fafafb;
}

input[type="checkbox"].docs-checkbox {
    margin-right: 10px;
}

.docs-label {
    margin-bottom: 10px;
}

table td.noPadding {
    padding: 0;
}

.searchText {
    padding: 0 0 8px 8px;
}

table.table.span8 {
    margin-left: 0;
}

.midMenu input.searchInput {
    margin-top: -5px !important;
    margin-left: 2px;
    height: 30px;
}

div.statButton {
    padding: 11px;
}

div.chartContainer {
    text-align: center;
    margin: 0 auto 20px auto;
}

table.helpTable {
    width: 100%;
}

table.helpTable > tbody > tr > td:first-child {
    vertical-align: top;
    font-weight: bold;
    padding-right: 15px;
}

table.helpTable > tbody > tr {
    border-bottom: 1px solid #eee;
}

table.table .medicationColumn {
    width: 45px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

table.table td.medicationLabel {
    text-align: right;
    border-bottom: 1px solid #ddd;
}

table.table td.medicationSeparator {
    width: 55px;
    border-top: 0;
    border-bottom: 0;
}

.table.medicationTable tbody tr:hover {
    background-color: #fff;
}

.headline {
    width: 100%;
    font-size: 21px;
    color: #333333;
    padding-top: 15px;
}

.headline.center {
    text-align: center;
}

.headline.small {
    font-size: 15px;
    color: #999999;
}

.headline.medium {
    font-size: 16px;
    font-weight: bold;
    color: #000000;
}

.headline.noTopPadding {
    padding-top: 0;
}

.complementContent .headline hr {
    border-color: #ddd;
    height: 1px;
}

.complementContent .headline.small hr {
    border-color: #ddd;
    height: 0px;
    border-style: dashed;
}

.complementContent .headline.small {
    color: #5e5e5e;
}

.headline hr {
    margin: 5px 0 15px 0;
}

.half {
    display: inline-block;
    zoom: 1;
    width: 48%;
    padding-right: 10px;
    vertical-align: top;
    min-width: 269px
}

.third {
    display: inline-block;
    zoom: 1;
    width: 31%;
    padding-right: 10px;
    vertical-align: top;
    margin-bottom: 15px;
    min-width: 174px;
}

.fourth {
    display: inline-block;
    zoom: 1;
    width: 25%;
    padding-right: 10px;
    vertical-align: top;
    margin-bottom: 15px;
    min-width: 140px;
}

.fifth {
    display: inline-block;
    zoom: 1;
    width: 16%;
    padding-right: 10px;
    vertical-align: top;
    margin-bottom: 15px;
    min-width: 90px;
}

.autoHalf {
    zoom: 1;
    width: 48%;
    padding-right: 10px;
    vertical-align: top;
    min-width: 269px
}

.autoThird {
    zoom: 1;
    width: 31%;
    padding-right: 10px;
    vertical-align: top;
    margin-bottom: 15px;
    min-width: 174px;
}

.autoFourth {
    zoom: 1;
    width: 25%;
    padding-right: 10px;
    vertical-align: top;
    margin-bottom: 15px;
    min-width: 140px;
}

.autoFifth {
    zoom: 1;
    width: 16%;
    padding-right: 10px;
    vertical-align: top;
    margin-bottom: 15px;
    min-width: 90px;
}

.statusCriteria {
    display: inline-block;
    zoom: 1;
    padding-right: 10px;
    vertical-align: top;
}

.typeCriteria {
    display: inline-block;
    zoom: 1;
    width: 110px;
    padding-right: 10px;
    vertical-align: top;
}

.fullWidth {
    width: 100%;
}

.strikethrough {
    text-decoration: line-through;
}

.gtinTable td {
    padding: 8px;
}

.removed {
    background-color: #f2dede;
}

.paddingTop15 {
    padding-top: 15px;
}

.hospitalName {
    font-weight: bold;
}

#graphicOverview #barChart {
    position: relative;
}

#graphicOverview #details {
    display: inline;
}

#graphicOverview .slice {
    fill: white;
    font-weight: bold;
}

#graphicOverview .line {
    stroke: red;
    stroke-width: 1px;
}

#graphicOverview .dot {
    stroke-width: 1.5px;
}

#graphicOverview .axis text {
    font-size: 11px;
}

#graphicOverview .title {
    font-size: 15px;
}

#graphicOverview .xAxis {
    font-size: 9px;
    fill: black;
}

#graphicOverview .yAxis {
    font-size: 9px;
    fill: black;
}

#graphicOverview .legendtext {
    font-size: 12px;
    font-weight: bold;
}

#graphicOverview #legend li {
    display: inline;
    list-style-type: none;
    padding-right: 20px;
}

#graphicOverview table {
    border-collapse: collapse;
    border: 0px;
    color: #5c5558;
    font-size: 12px;
    text-align: left;
    margin-top: 15px;
}

#graphicOverview td {
    padding-left: 10px;
}

#graphicOverview .PM,
.CRT-P {
    fill: #0063ae;
    color: #0063ae;
}

#graphicOverview .ICD,
.CRT-D {
    fill: #9b2e30;
    color: #9b2e30;
}

#graphicOverview .PMEL {
    fill: #8baddc;
    color: #8baddc;
}

#graphicOverview .ICDEL {
    fill: #e63338;
    color: #e63338;
}

#graphicOverview .ILR {
    fill: #ff9900;
    color: #ff9900;
}

#graphicOverview .null {
    fill: #d0d0d0;
    color: #d0d0d0;
}

#graphicOverview image:hover,
rect:hover {
    cursor: pointer;
}

table.graphicOverviewInfo > tbody > tr > td {
    padding: 2px;
    text-align: center;
}

#d3-tooltip {
    display: inline;
    padding: 12px;
    line-height: 1;
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    border-radius: 2px;
    border: 1px solid rgba(0, 0, 0, 0.8);
    opacity: 0;
    pointer-events: none;
    /* visibility: hidden; */
}

/* Creates a small triangle extender for the tooltip */
#d3-tooltip:after {
    box-sizing: border-box;
    display: inline;
    font-size: 10px;
    line-height: 1;
    color: rgba(0, 0, 0, 0.8);
    content: "\25BC";
    position: absolute;
    text-align: center;
    bottom: -8px;
    left: 49%;
}

#event-tooltip {
    display: inline;
    padding: 12px;
    line-height: 1;
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    border-radius: 2px;
    border: 1px solid rgba(0, 0, 0, 0.8);
    opacity: 0;
    pointer-events: none;
    /* visibility: hidden; */
}

/* Creates a small triangle extender for the tooltip */
#event-tooltip:after {
    transform: rotateZ(180deg);
    box-sizing: border-box;
    display: inline;
    font-size: 10px;
    line-height: 1;
    color: rgba(0, 0, 0, 0.8);
    content: "\25BC";
    position: absolute;
    text-align: center;
    top: -8px;
    left: 0;
}

#loader img {
    display: block;
    margin: 0 auto;
    width: 50px;
    height: 50px;
}

.table.vcentered-cell-text th,
.table.vcentered-cell-text td {
    vertical-align: middle;
}

.menu-icon {
    padding: 7px 0px 7px 7px;
    display: inline-block;
    float: left;
}

/*! from Boostrap v3.2.0 */
.embed-responsive {
    position: relative;
    display: block;
    height: 0;
    padding: 0;
    overflow: hidden;
}

.embed-responsive .embed-responsive-item,
.embed-responsive iframe,
.embed-responsive embed,
.embed-responsive object {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.embed-responsive.embed-responsive-16by9 {
    padding-bottom: 56.25%;
}

.embed-responsive.embed-responsive-4by3 {
    padding-bottom: 75%;
}

.width50percent {
    width: 50%;
}

.display-inline {
    display: inline-block;
}

.padding-bottom-50 {
    padding-bottom: 50px;
}

@media (min-width: 992px) {
    .modal-big-40 {
        width: 40%;
    }

    .modal-big-50 {
        width: 50%;
    }

    .modal-big-60 {
        width: 60%;
    }

    .modal-big-70 {
        width: 70%;
    }

    .modal-huge {
        width: 80%;
    }
}

tr.htmx-swapping td {
    opacity: 0;
    transition: opacity 0.4s ease-out;
}

tr.border-hidden {
    border-style: hidden;
}

#loadingModal {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    transform: translate(-50%, -50%);
    display: block;
    z-index: 9999;
}

.skeleton {
    background-color: #e0e0e0;
    border-radius: 4px;
    width: 100%;
    height: 1em;
    animation: pulse 1.5s infinite ease-in-out;
}

.skeleton-img {
    inset: 0;
    background: #f7f7f7;
    color: #f7f7f7;
    background-size: 400% 100%;
    animation: sk 1.1s ease-in-out infinite;
    height: 640px;
    display: grid;
    place-items: center;
}

.skeleton-img-inner {
    background-color: #e0e0e0;
    border-radius: 4px;
    width: 85%;
    height: 85%;
    animation: pulse 1.5s infinite ease-in-out;
    justify-content: center;
    align-content: center;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        opacity: 1;
    }
}

.loader {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
}

.loader.show {
    opacity: 1;
    visibility: visible;
}

#diagramSkeleton.htmx-indicator,
#skeleton.htmx-indicator {
    display: none;
}

#diagramSkeleton.htmx-indicator.htmx-request,
#skeleton.htmx-indicator.htmx-request {
    display: block;
}

.spinner-page-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    gap: 16px;
    height: 100%;
    width: 100%;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.5);

    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.spinner-btn-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 100%;
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner-dropdown-wrapper {
    height: 100%;
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner-lb {
    width: 24px;
    height: 24px;
    border: 5px solid #FFF;
    border-bottom-color: #5bc0de;
    border-radius: 50%;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    vertical-align: middle;
    display: none;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.ts-wrapper .option .title {
    display: block;
}
.ts-wrapper .option .subtitle {
    font-size: 12px;
    display: block;
    color: #a0a0a0;
}

