@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200;300;400;500;600;700&display=swap');
@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

/* Global font for the entire application */
html,
body {
   font-family: 'Oswald', sans-serif;
}

.monitor-header {
   border-bottom: 2px solid #091e5e;
   white-space: nowrap; /* Prevent text wrapping */
   overflow-x: auto; /* Allow horizontal scroll if it overflows */
   flex-wrap: nowrap !important; /* Prevent wrapping in flex container */
}

.tab-btn {
   -webkit-text-size-adjust: 100%;
   -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
   line-height: 1.42857143;
   color: #1c77ba;
   user-select: none;
   list-style: none;
   box-sizing: border-box;
   position: relative;
   display: block;
   float: left;
   border-width: 1px 1px 0 1px;
   border-radius: 5px 5px 0 0;
   border-style: solid;
   border-color: #091e5e;
   margin-bottom: 0 !important;
   padding: 10px 20px;
   background: white;
}

.tab-btn.active {
   background: #e6f4ff !important;
}

.reports-label {
   font-weight: bold;
   color: #333;
   margin-left: 10px;
}

.reports-link {
   color: #004e9a;
   background: none;
   font-weight: bold;
   padding: 0 6px;
}

.divider {
   color: #999;
   padding: 0 4px;
}

.new-indicator-circle {
   background: #007bff;
   color: white;
   border-radius: 50%;
   padding: 2px 6px;
   font-size: 10px;
   margin-left: 4px;
}

.custom-select {
   border: 1px solid black;
   padding: 2px 6px;
   font-weight: bold;
}

.footer-text {
   color: #ccc;
   font-size: 12px;
   margin-right: 12px;
}

.powered-by {
   color: #0094e0;
}

.icon-btn {
   background: none;
   border: none;
   padding: 0;
}

.new-indicator-circle-small {
   background: green;
   color: white;
   font-size: 9px;
   border-radius: 50%;
   padding: 1px 5px;
   margin-left: 4px;
}

.demo-doctor {
   color: #337ab7;
   font-weight: bold;
   font-size: 0.9vw;
}

.viewecg-style {
   -webkit-text-size-adjust: 100%;
   -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
   font-size: 14px;
   line-height: 1.42857143;
   color: #333;
   user-select: none;
   box-sizing: border-box;
   padding-right: 15px;
   padding-left: 15px;
   margin-right: 0;
   margin-left: 0;
   width: 100% !important;
}

/*html, body {
    font-family: 'Oswald';
}*/

a,
.btn-link {
   color: #006bb7;
}

.btn-primary {
   color: #fff;
   background-color: #1b6ec2;
   border-color: #1861ac;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
   box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
   padding-top: 1.1rem;
}

h1:focus {
   outline: none;
}

.valid.modified:not([type='checkbox']) {
   outline: 1px solid #26b050;
}

.invalid {
   outline: 1px solid #e50000;
}

.validation-message {
   color: #e50000;
}

.blazor-error-boundary {
   background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=)
         no-repeat 1rem/1.8rem,
      #b32121;
   padding: 1rem 1rem 1rem 3.7rem;
   color: white;
}

.blazor-error-boundary::after {
   content: 'An error has occurred.';
}

.darker-border-checkbox.form-check-input {
   border-color: #929292;
}

.loaging-image-div-main {
   display: flex;
   justify-content: center;
   align-items: center;
   height: 100vh;
   width: 100%;
}

.loaging-image-div-main > img {
   height: 150px;
   object-fit: contain;
}

.report-component {
   font-size: 0.95vw !important;
}

.report-component .font-summary-header {
   font-size: 1.1vw !important;
}

.report-component .font-header {
   font-size: 1.2vw !important;
}

.report-component input {
   font-size: 0.95vw !important;
   text-align: right;
}

.report-component textarea {
   font-size: 0.95vw !important;
}

.report-component a {
   text-decoration: none;
}

.report-component .ai-report-message {
   color: #b32121;
   font-weight: 600;
   background-color: #f7f7f7;
   padding: 5px;
   font-size: 1.1vw !important;
}

.report-component .row > .reduce-space-between-col {
   padding-left: 0;
}

.report-component .loaging-image-div {
   display: flex;
   justify-content: center;
   align-items: center;
}

.report-component .loaging-image-div > img {
   height: 100%;
   max-width: 100%;
   object-fit: contain;
}

.only-print {
   display: none;
}

.main-logo {
   height: 30px;
}

.main-logo-pointer {
   height: 30px;
   cursor: pointer;
}

.loaging-image-div-component {
   margin-top: 250px;
   position: relative;
   text-align: center;
   justify-content: center;
   align-items: center;
   height: 100vh;
   width: 100%;
}

.loaging-image-div-component > img {
   height: 150px;
}

.loaging-image-div-component-focus-chart {
   margin-top: 50px;
   position: relative;
   text-align: center;
   justify-content: center;
   align-items: center;
   height: 100vh;
   width: 100%;
}

.loaging-image-div-component-focus-chart > img {
   height: 150px;
}

.selectedFocusChartEpisode {
    stroke: #1c77ba;
    stroke-width: 2;
    paint-order: stroke fill;
}

#FocusChartAnnotationAreaGroupID {
    pointer-events: all;
}

    #FocusChartAnnotationAreaGroupID .beatAnnGroup {
        pointer-events: all;
    }

#FocusChartSvg {
    shape-rendering: crispEdges;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    width: 100%;
    height: 100%;
    display: block;
}

#FocusChartSvg polyline,
#FocusChartSvg line {
    shape-rendering: geometricPrecision;
}

#focusChart {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    width: 100%;
    height: 100%;
    display: block;
}

#FocusChartSvgDiv {
    width: 100%;
    height: 100%;
    display: block;
}

#FocusChartRectangle {
    cursor: move !important;
}

.fc-zoom-btn {
    font-family: 'Oswald', sans-serif;
    border: 1px solid #091e5e;
    color: #dc3545;
    background-color: white;
}

.fc-zoom-btn:hover {
    background-color: #fff0f0;
    border-color: #1c77ba;
    color: #b02a37;
}

.fc-zoom-btn:active {
    background-color: #dc3545;
    border-color: #091e5e;
    color: white;
}

.fc-zoom-level {
    position: absolute;
    top: -0.9rem;
    left: 50%;
    transform: translateX(-50%);
    color: #091e5e;
    font-family: 'Oswald', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}

.fc-chart-row {
    flex: 1 1 auto;
    min-height: 50px;
}

.fc-chart-container {
    min-height: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.fc-chart-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

.fc-zoom-buttons-container {
    min-width: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-shrink: 0;
    align-self: flex-end;
}

@keyframes beatFlashGreen {
    0% {
        fill: #1d64b4;
        stroke: #1d64b4;
    }

    40% {
        fill: limegreen;
        stroke: limegreen;
    }

    60% {
        fill: limegreen;
        stroke: limegreen;
    }

    100% {
        fill: #1d64b4;
        stroke: #1d64b4;
    }
}

@keyframes beatFlashRed {
    0% {
        fill: #1d64b4;
        stroke: #1d64b4;
    }

    40% {
        fill: red;
        stroke: red;
    }

    60% {
        fill: red;
        stroke: red;
    }

    100% {
        fill: #1d64b4;
        stroke: #1d64b4;
    }
}

.beat-flash-green {
    animation: beatFlashGreen 0.7s ease-out forwards;
}

.beat-flash-red {
    animation: beatFlashRed 0.7s ease-out forwards;
}

.beatAnnGroup circle,
.beatAnnGroup text,
.beatAnnGroup line {
    transition: fill 0.25s ease, stroke 0.25s ease;
}

#ecgGridGroup,
#ecgGridGroup * {
    pointer-events: none !important;
}

/* Half-minute selector elements */
#svgHalfMinuteChartRectangleSelectorTransparent,
#svgHalfMinuteChartRectangleSelectorFill {
    pointer-events: all;
    cursor: move !important;
}

/* QT interval overlays: focus chart + QT dashboard (fill set in JS; do not intercept pointer events) */
#FocusChartQTAnnotationsGroup .qtFocusChartRect,
.qtDashboardIntervalBar {
    pointer-events: none;
}

@media print {
   .no-print {
      display: none;
   }

   .only-print {
      display: flex;
   }

   .report-component {
      font-size: 1.2vw !important;
   }

   .report-component .font-summary-header {
      font-size: 1.25vw !important;
   }

   .report-component .font-header {
      font-size: 1.25vw !important;
   }
}
