.menu-right {
    /*position: absolute;*/
    /*right: 0;*/
    margin-left: auto !important;
    margin-right: 0 !important;
}

.aes-schema {
    position: relative;
}

.aes-schema div {
    position: absolute;
}

.datepicker-box {
    text-align: center;
}

.center {
    text-align: center;
}

.cursor-help {
    cursor: help;
}

.link-array a {
    display: inline-block;
    padding: 0 5px;
}
.link-array a.active {
    font-weight: bold;
    background-color: #e0e9ff;
}

.link-array a span.notification {
    display: inline-block;
    color: white;
    font-weight: bold;
    padding-top: 2pt;
    font-size: 10pt;
    height: 16pt;
    width: 16pt;
    text-align: center;
    border-radius: 50%;
}

.link-array a span.notification-run {
    background: rgb(78, 196, 78);
}

.link-array a span.notification-sleep {
    background: rgb(242, 212, 121);
}

.link-array a span.notification-island {
    background: rgb(77, 170, 248);
}

.link-array a span.notification-flexibility {
    background: rgb(148, 64, 237);
}

.link-array a span.notification-offline {
    background: rgb(108, 117, 125);
}

.link-array a span.notification-error {
    background: rgb(196, 78, 78);
}

.link-array a span.notification-no-data {
    background: rgb(77, 170, 248);
}

.link-array a span.notification-zero {
    background: rgb(230, 230, 230);
    color: rgb(70, 70, 70);
}
.admin-hes-edit-link-array {
    font-size: 0.8em;
}

.admin-hes-status-link-array {
    display: inline-block;
    margin-left: 10px;

}
.admin-hes-status-link-array span {
    display: inline-block;
    font-size: 10pt;
    margin-left: 8px;
    padding: 0 8px;
    /*border-radius: 3px;*/
}
.admin-hes-status-link-array span.spot {
    color: black;
    background-color: rgb(255, 240, 164);
}
.admin-hes-status-link-array span.flags {
    color: black;
    background-color: rgb(164, 255, 166);
}
.admin-hes-status-link-array span.algo2 {
    color: black;
    background-color: rgb(255, 202, 164);
}
.admin-hes-status-link-array span.algo3 {
    color: black;
    background-color: rgb(164, 255, 166);
}
.admin-hes-status-link-array span.err {
    color: white;
    background-color: rgb(255, 0, 0);
}

.admin-hes-status-link-array a {
    display: inline-block;
    color: black;
    font-size: 10pt;
    margin-left: 8px;
    padding: 0px 8px;
    /*border-radius: 3px;*/
    background-color: rgb(213, 213, 213);
}
.admin-hes-status-link-array a:hover {
    background-color: rgb(229, 229, 229);
    text-decoration: none;
}

/* ------------------------------- */
/*       Server status indicator
/* ------------------------------- */
.server-status span {
    display: inline-block;
    position: relative;
    top: 3px;
    width: 16px;
    height: 16px;
    border-radius: 8px;
    margin-right: 8px;
}


/* ------------------------------- */
/*       Status indicator
/* ------------------------------- */

.status-indicator span {
    display: inline-block;
    text-align: center;
    color: white;
    width: 100%;
    line-height: 60px;
    margin-right: 10px;
    border-radius: 3px;
}
span.run {
    background: rgb(78, 196, 78) !important;
}
span.island {
    background: rgb(77, 170, 248) !important;
}
span.flexibility {
    background: rgb(148, 64, 237) !important;
}
span.off {
    background: rgb(108, 117, 125) !important;
}
span.offline {
    background: white !important;
    border: 8px solid rgb(108, 117, 125) !important;
    color: black !important;
}
span.warning {
    background: rgb(242, 212, 121) !important;
}
span.error {
    background: rgb(196, 78, 78) !important;
}
span.unknown {
    background: rgb(196, 78, 78) !important;
}
span.error-offline {
    background: white !important;
    border: 8px solid rgb(196, 78, 78) !important;
    color: black !important;
}
span.no-data {
    background: white !important;
    border: 8px solid rgb(77, 170, 248) !important;
    color: black !important;
}


.status-indicator-round span {
    display: block;
    margin-left: auto;
    margin-right: auto;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 15px;
}

span.offline-time {
    color: rgb(108, 117, 125) ;
    text-align: left;
    /*font-size: 8pt;*/
}

/* ------------------------------- */
/*           Mode switch
/* ------------------------------- */

.mode-switch a {
    display: inline-block;
    text-align: center;
    color: white;
    background: rgb(108, 117, 125);
    width: 80px;
    line-height: 30px;
    margin-right: 10px;
    border-radius: 3px;
}
.mode-switch a.active {
    background: rgb(78, 196, 78) !important;
}
.mode-switch a.waiting {
    background: rgb(242, 212, 121) !important;
}
.mode-switch a:hover { /* must be last due to !important */
    background: rgb(128, 205, 128) !important;
    color: white;
    text-decoration: none;
}

/* ------------------------------- */
/*              Forms
/* ------------------------------- */

/* Full-width inputs */
input[type=text], input[type=password], input[type=number], select {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: block;
    background: white;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

/* Bigger checkbox and radio */
input[type=checkbox] {
    transform: scale(1.5);
    margin: 20px 10px;
}
input[type=radio] {
    transform: scale(1.5);
    margin: 10px 10px 20px;
}

label {
    font-weight: bold;
    margin: 8px 0 0 0;
}

/* normal font weight for labels*/
label.normal {
    font-weight: normal;
}

/* Set a style for all buttons */
button, input[type=submit]{
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
}

/* Add a hover effect for buttons */
button:hover, input[type=submit]:hover {
    opacity: 0.8;
}

form .help {
    color: gray;
    margin-top: 5px;
}

/* Control form  */
.control-form-images img {
    width: 100%;
}

/* ------------------------------- */
/*              Page
/* ------------------------------- */
.pages {
    text-align: center;
    margin: 10px 0 20px 0;
}

.pages a {
    display: inline-block;
    padding: 2px 5px;
}

/* ------------------------------- */
/*              Search
/* ------------------------------- */
.search-box {
    margin-bottom: 20px;
}

.search-box input, .search-box button {
    height: 50px;
    margin: 0;

}

.search-box input {
    float: left;
    width: 70%;
}

.search-box button {
    float: left;
    width: 30%;
    min-width: 100px;
}

.sort-box {
    margin-bottom: 20px;
}

/* ------------------------------- */
/*            DataTable
/* ------------------------------- */

table.dataTable tbody td {
  vertical-align: top;
}

/* ------------------------------- */
/*            Table
/* ------------------------------- */

.table-bordered th, .table-bordered td {
    padding: 5px 12px;
}

/* ------------------------------- */
/*         SPOT chart controls
/* ------------------------------- */

#price-level-panel {
    padding-bottom: 20px;
}

.level-control-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
}

.level-button.level-1 { background: #82c182; }
.level-button.level-2 { background: #b0b0b0; }
.level-button.level-3 { background: #f2d479; }
.level-button.level-4 { background: #da8181; }
.level-button.level-5 { background: #b479f2; }

#saveConfiguration {
    background: #4CAF50;
    border: none;
}

#ressetButtons {
    display: flex;
    flex-direction: row;
    gap: 5px;
    white-space: nowrap;
}

#resetLevels {
    background-color: #ce1b1b;
    color: white;
    border: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#clearSelection {
    background: #6c757d;
    color: white;
    border: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chart-controls {
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #dee2e6;
    display: none; /* Hidden by default */
}

#price-level-controls button {
    margin: 5px 0;
}

#saveStatus {
    min-height: 20px;
    display: block;
    line-height: 20px;
}

.controls-disabled {
    display: none;
    pointer-events: none;
}

.controls-enabled {
    display: block;
    pointer-events: auto;
}

.toggle-button {
    margin-bottom: 10px;
}

#price-level-legend {
    display: flex;
    justify-content: space-between;
}

/* Switch to column layout on large screens */
@media (min-width: 992px) {
    .control-buttons-row,
    .level-control-row,
    #ressetButtons {
        flex-direction: column;
        gap: 0px
    }

    .level-control-row > .level-button {
        margin: 4px 0;
    }
    
    #saveConfiguration, #clearSelection, #resetLevels {
        padding: 8px;
        margin: 4px 0;
    }
}

/* ------------------------------- */
/*              Other
/* ------------------------------- */

.dropdown-item:hover {
    color: #009aaa !important;
    text-decoration: underline;
    background-color: white !important;
}

 .btn-date-dropdown {
     width: 200px;
 }

 .reset {
     clear: both;
     width: 0;
     height: 0;
 }

 #price_level_unit,
 #price_level_date {
    color: silver;
    font-style: italic;
    margin: -15px 0px 10px 0;
 }

 pre {
     font-family: "DejaVu Sans Mono", Monospaced, monospace, "Courier New" !important;
 }

 pre.error_json {
     background-color: #d2d2d2;
     padding: 8px;
 }
