#header-file {

    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;

}

.page {
    padding: 10px;
}
.close-icon{
    float: right;
    margin-top: 10px;
    width: 10px;
}
.date-dropdown{
    display: inline-block;
    box-sizing: border-box;
    padding: 10px 12px;
    min-height: 44px;
    line-height: 22px;
    border: 1px solid #ccc7c2;
    border-radius: 4px;
    font-weight: 400;
    background: #fff;
}
h2, h3 {
    margin: 0;
}
.submit-area{
    margin: 0;
    align-items: center;
}
.grid-controls {
    margin: 0;
}
.grid-controls .controls-block {
    margin: 10px 0;
    align-items: center;
}
.grid-controls .controls-block .controls-block-item{
    margin-right: 10px;
}
.number-circle {
    background-color: #69a120;
    font-size: 20px;
    text-align: center;
    color: #FFFFFF;
    padding-top: 10px;
    margin-right: 20px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
}
.datagrid tbody > tr.disabled-row {
    background-color: #ccc7c2;
}

@media (max-width: 960px) {
    .grid-controls{
        flex-direction: inherit;
    }
    .grid-controls .controls-block {
        width: unset;
    }
}

/* Navigation */

.navigation {
    display: flex;
    align-items: center;
    justify-content: left;
    font-size: 1.5rem;
    gap: 1.2rem;
}

.vertical-divider {
    display: inline-block;
    width: 1px;
    background: rgb(199, 199, 199);
    height: 3rem;
}

/* Help tip */

.help-tip{
    position: relative;
    left: 97%;
    text-align: center;
    background-color: #009ba9;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    line-height: 26px;
    cursor: default;
}

.help-tip:before{
    content:'?';
    font-weight: bold;
    color:#fff;
}

.help-tip:hover p{
    display:block;
    transform-origin: 100% 0%;

    -webkit-animation: fadeIn 0.3s ease-in-out;
    animation: fadeIn 0.3s ease-in-out;

}

.help-tip p{    /* The tooltip */
    display: none;
    text-align: left;
    background-color: #383632;
    padding: 20px;
    width: 400px;
    position: absolute;
    border-radius: 3px;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
    right: -4px;
    color: #FFF;
    font-size: 13px;
    line-height: 1.4;
}

.help-tip p:before{ /* The pointer of the tooltip */
    position: absolute;
    content: '';
    width:0;
    height: 0;
    border:6px solid transparent;
    border-bottom-color:#383632;
    right:10px;
    top:-12px;
}

.help-tip p:after{ /* Prevents the tooltip from being hidden */
    width:100%;
    height:40px;
    content:'';
    position: absolute;
    top:-40px;
    left:0;
}

/* CSS animation for Help tip*/

@-webkit-keyframes fadeIn {
    0% {
        opacity:0;
        transform: scale(0.6);
    }

    100% {
        opacity:100%;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    0% { opacity:0; }
    100% { opacity:100%; }
}

/* Tooltip on admin page*/

.tooltip-bb {
  position: relative;
  display: inline-block;
}

.tooltip-bb .tooltip-bb-text {
  visibility: hidden;
  width: 400px;
  background-color: #383632;
  color: #fff;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;
  position: absolute;
  z-index: 1;
  overflow-wrap: break-word;
  hyphens: auto;
}

.tooltip-bb .tooltip-bb-text.tooltip-right {
  top: -5px;
  left: 90%;
}

.tooltip-bb .tooltip-bb-text.tooltip-top {
  bottom: 100%;
  left: 50%;
  margin-left: -200px; /* Use half of the width (120/2 = 60), to center the tooltip */
}

.tooltip-bb:hover .tooltip-bb-text {
  visibility: visible;
}

/* Http status indicator for Data source*/
.http-status {
    font-size: 10px;
    text-align: center;
    color: #FFFFFF;
    padding-top: 2px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 50%;
    width: 25px;
    height: 25px;
}

.http-status-2 {
    background-color: #69a120;
}
.http-status-0, .http-status-4, .http-status-5 {
    background-color: #ea4e4b;
}
.http-status-1, .http-status-3 {
    background-color: #009ba9;
}
.http-status-408 {
    background-color: #969696;
}

/*Widget*/
#content-area {
    padding: 0 10px 40px 10px;
}
#page-content {

    position: relative;
    z-index: 0;

}
.widget-div {

    margin-top: 25px;
    padding-left: 25px;

}
.rounder-number {
    background-color: #69a120;
    font-size: 20px;
    text-align: center;
    color: #FFFFFF;
    padding-top: 10px;
    margin-right: 20px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

.hljs-ln-numbers {
    text-align: center;
    color: #a7a7a7;
    border-right: 1px solid #a7a7a7;
    vertical-align: top;
    padding-right: 10px !important;
}
.hljs-ln-code {
    padding-left: 10px !important;
    padding-bottom: 4px !important;
}

.wizard-progress .done {
    color: #69a120;
}
.wizard-progress .done .circle-number {
    background: #69a120;
}

.button-right {
    margin-left: auto !important;
}

/* Horizontal centering of input-prefix */
.input-prefix, .input-suffix {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Modal window */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

.modal, .show {
    -webkit-animation: modalFadeIn 0.3s;
    animation: modalFadeIn 0.3s;
}

.modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
  background-color: #fcfaf9;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
    width: fit-content;
}

.modal-danger {
    border-style: solid;
    border-width: 5px;
    border-color: #ea4e4b;
    color: #bb3e3c;
}

.modal-close-button {
  color: #grey;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.modal-close-button:hover,
.modal-close-button:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

@-webkit-keyframes modalFadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes modalFadeIn {
  from {opacity: 0;}
  to {opacity:1 ;}
}

#datasource-login-section {
  width: 50%;
}

/* Collapsible */
.collapsible-block{
    margin-bottom: 20px;
}

.collapsible {
  cursor: pointer;
}

/* Style the collapsible content. Note: hidden by default */
.collapsible > .content {
  display: none;
  overflow: hidden;
  background-color: #f1f1f1;
}

/* Maintenance scheduler */

.task-waiting {
    background-color: #fff9e3 !important;
}

.task-running {
    background-color: #009ba9 !important;
    color: white;
}

.task-done {
    background-color: #69a120 !important;
    color: white;
}

/* Maintenance locks */
.orphan-lock {
    background-color: #ea4e4b !important;
}

/* Override some weird z index setting from parent css to fix custom modal */
.clearable {
    z-index: 0 !important;
}

.input-group .input-note {
    color: #ea4e4b;
}

/* Fix for white block with header inside L2 navigation div taken from muil.css */
.white-block > #navigation-L2 > header:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin: -19px -19px 20px -19px;
    padding: 19px;
    min-height: 36px;
    border-bottom: 1px solid #ccc7c2;
    background: #fcfaf9;
    border-radius: 4px 4px 0 0;
}
