/* Table of contents
––––––––––––––––––––––––––––––––––––––––––––––––––
- Plotly.js
- Grid
- Base Styles
- Typography
- Links
- Buttons
- Forms
- Lists
- Code
- Tables
- Spacing
- Utilities
- Clearing
- Media Queries
*/

/* PLotly.js
–––––––––––––––––––––––––––––––––––––––––––––––––– */
/* plotly.js's modebar's z-index is 1001 by default
 * https://github.com/plotly/plotly.js/blob/7e4d8ab164258f6bd48be56589dacd9bdd7fded2/src/css/_modebar.scss#L5
 * In case a dropdown is above the graph, the dropdown's options
 * will be rendered below the modebar
 * Increase the select option's z-index
 */

/* This was actually not quite right -
   dropdowns were overlapping each other (edited October 26)

.Select {
    z-index: 1002;
}*/

/* Grid
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.container {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box; }
.column,
.columns {
  width: 100%;
  float: left;
  box-sizing: border-box; }

/* For devices larger than 400px */
@media (min-width: 400px) {
  .container {
    width: 85%;
    padding: 0; }
}

/* For devices larger than 550px */
@media (min-width: 550px) {
  .container {
    width: 80%; }
  .column,
  .columns {
    margin-left: 2%; }
  .column:first-child,
  .columns:first-child {
    margin-left: 2%; }

  .one.column,
  .one.columns                    { width: 4.66666666667%; }
  .two.columns                    { width: 13.3333333333%; }
  .three.columns                  { width: 22%;            }
  .four.columns                   { width: 30.6666666667%; }
  .five.columns                   { width: 39.3333333333%; }
  .six.columns                    { width: 48%;            }
  .seven.columns                  { width: 56.6666666667%; }
  .eight.columns                  { width: 65.3333333333%; }
  .nine.columns                   { width: 74.0%;          }
  .ten.columns                    { width: 82.6666666667%; }
  .eleven.columns                 { width: 91.3333333333%; }
  .twelve.columns                 { width: 100%; margin-left: 0; }

  .one-third.column               { width: 30.6666666667%; }
  .two-thirds.column              { width: 65.3333333333%; }

  .one-half.column                { width: 48%; }

  /* Offsets */
  .offset-by-one.column,
  .offset-by-one.columns          { margin-left: 8.66666666667%; }
  .offset-by-two.column,
  .offset-by-two.columns          { margin-left: 17.3333333333%; }
  .offset-by-three.column,
  .offset-by-three.columns        { margin-left: 26%;            }
  .offset-by-four.column,
  .offset-by-four.columns         { margin-left: 34.6666666667%; }
  .offset-by-five.column,
  .offset-by-five.columns         { margin-left: 43.3333333333%; }
  .offset-by-six.column,
  .offset-by-six.columns          { margin-left: 52%;            }
  .offset-by-seven.column,
  .offset-by-seven.columns        { margin-left: 60.6666666667%; }
  .offset-by-eight.column,
  .offset-by-eight.columns        { margin-left: 69.3333333333%; }
  .offset-by-nine.column,
  .offset-by-nine.columns         { margin-left: 78.0%;          }
  .offset-by-ten.column,
  .offset-by-ten.columns          { margin-left: 86.6666666667%; }
  .offset-by-eleven.column,
  .offset-by-eleven.columns       { margin-left: 95.3333333333%; }

  .offset-by-one-third.column,
  .offset-by-one-third.columns    { margin-left: 34.6666666667%; }
  .offset-by-two-thirds.column,
  .offset-by-two-thirds.columns   { margin-left: 69.3333333333%; }

  .offset-by-one-half.column,
  .offset-by-one-half.columns     { margin-left: 52%; }

}


/* Base Styles
–––––––––––––––––––––––––––––––––––––––––––––––––– */
/* NOTE
html is set to 62.5% so that all the REM measurements throughout Skeleton
are based on 10px sizing. So basically 1.5rem = 15px :) */
html {
  font-size: 62.5%; }
body {
  font-size: 1.5em; /* currently ems cause chrome bug misinterpreting rems on body element */
  line-height: 1.6;
  font-weight: 400;
  font-family: "Open Sans", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: rgb(50, 50, 50); }


/* Typography
–––––––––––––––––––––––––––––––––––––––––––––––––– */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0;
  font-weight: 300; }
h1 { font-size: 4.5rem; line-height: 1.2;  letter-spacing: -.1rem; margin-bottom: 2rem; }
h2 { font-size: 3.6rem; line-height: 1.25; letter-spacing: -.1rem; margin-bottom: 1.8rem; margin-top: 1.8rem;}
h3 { font-size: 3.0rem; line-height: 1.3;  letter-spacing: -.1rem; margin-bottom: 1.5rem; margin-top: 1.5rem;}
h4 { font-size: 2.6rem; line-height: 1.35; letter-spacing: -.08rem; margin-bottom: 1.2rem; margin-top: 1.2rem;}
h5 { font-size: 2.2rem; line-height: 1.5;  letter-spacing: -.05rem; margin-bottom: 0.6rem; margin-top: 0.6rem;}
h6 { font-size: 2.0rem; line-height: 1.6;  letter-spacing: 0; margin-bottom: 0.75rem; margin-top: 0.75rem;}

p {
  margin-top: 0; }


/* Blockquotes
–––––––––––––––––––––––––––––––––––––––––––––––––– */
blockquote {
  border-left: 4px lightgrey solid;
  padding-left: 1rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  margin-left: 0rem;
}


/* Links
–––––––––––––––––––––––––––––––––––––––––––––––––– */
a {
  color: #1EAEDB;
  text-decoration: underline;
  cursor: pointer;}
a:hover {
  color: #0FA0CE; }


/* Buttons
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.button,
button,
input[type="submit"],
input[type="reset"],
input[type="button"] {
  display: inline-block;
  height: 38px;
  padding: 0 30px;
  color: #555;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  line-height: 38px;
  letter-spacing: .1rem;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  background-color: transparent;
  border-radius: 4px;
  border: 1px solid #bbb;
  cursor: pointer;
  box-sizing: border-box; }
.button:hover,
button:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
.button:focus,
button:focus,
input[type="submit"]:focus,
input[type="reset"]:focus,
input[type="button"]:focus {
  color: #333;
  border-color: #888;
  outline: 0; }
.button.button-primary,
button.button-primary,
input[type="submit"].button-primary,
input[type="reset"].button-primary,
input[type="button"].button-primary {
  color: #FFF;
  background-color: #33C3F0;
  border-color: #33C3F0; }
.button.button-primary:hover,
button.button-primary:hover,
input[type="submit"].button-primary:hover,
input[type="reset"].button-primary:hover,
input[type="button"].button-primary:hover,
.button.button-primary:focus,
button.button-primary:focus,
input[type="submit"].button-primary:focus,
input[type="reset"].button-primary:focus,
input[type="button"].button-primary:focus {
  color: #FFF;
  background-color: #1EAEDB;
  border-color: #1EAEDB; }


/* Forms
–––––––––––––––––––––––––––––––––––––––––––––––––– */
input[type="email"],
input[type="number"],
input[type="search"],
input[type="text"],
input[type="tel"],
input[type="url"],
input[type="password"],
textarea,
select {
  height: 38px;
  padding: 6px 10px; /* The 6px vertically centers text on FF, ignored by Webkit */
  background-color: #fff;
  border: 1px solid #D1D1D1;
  border-radius: 4px;
  box-shadow: none;
  box-sizing: border-box;
  font-family: inherit;
  font-size: inherit; /*https://stackoverflow.com/questions/6080413/why-doesnt-input-inherit-the-font-from-body*/}
/* Removes awkward default styles on some inputs for iOS */
input[type="email"],
input[type="number"],
input[type="search"],
input[type="text"],
input[type="tel"],
input[type="url"],
input[type="password"],
textarea {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none; }
textarea {
  min-height: 65px;
  padding-top: 6px;
  padding-bottom: 6px; }
input[type="email"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="text"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
textarea:focus,
/*select:focus {*/
/*  border: 1px solid #33C3F0;*/
/*  outline: 0; }*/
label,
legend {
  display: block;
  margin-bottom: 0px; }
fieldset {
  padding: 0;
  border-width: 0; }
input[type="checkbox"],
input[type="radio"] {
  display: inline; }
label > .label-body {
  display: inline-block;
  margin-left: .5rem;
  font-weight: normal; }


/* Lists
–––––––––––––––––––––––––––––––––––––––––––––––––– */
ul {
  list-style: circle inside; }
ol {
  list-style: decimal inside; }
ol, ul {
  padding-left: 0;
  margin-top: 0; }
ul ul,
ul ol,
ol ol,
ol ul {
  margin: 1.5rem 0 1.5rem 3rem;
  font-size: 90%; }
li {
  margin-bottom: 1rem; }


/* Tables
–––––––––––––––––––––––––––––––––––––––––––––––––– */
table {
  border-collapse: collapse;
}
th,
td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #E1E1E1; }
th:first-child,
td:first-child {
  padding-left: 0; }
th:last-child,
td:last-child {
  padding-right: 0; }


/* Spacing
–––––––––––––––––––––––––––––––––––––––––––––––––– */
button,
.button {
  margin-bottom: 0rem; }
input,
textarea,
select,
fieldset {
  margin-bottom: 0rem; }
pre,
dl,
figure,
table,
form {
  margin-bottom: 0rem; }
p,
ul,
ol {
  margin-bottom: 0.75rem; }

/* Utilities
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.u-full-width {
  width: 100%;
  box-sizing: border-box; }
.u-max-full-width {
  max-width: 100%;
  box-sizing: border-box; }
.u-pull-right {
  float: right; }
.u-pull-left {
  float: left; }


/* Misc
–––––––––––––––––––––––––––––––––––––––––––––––––– */
hr {
  margin-top: 3rem;
  margin-bottom: 3.5rem;
  border-width: 0;
  border-top: 1px solid #E1E1E1; }


/* Clearing
–––––––––––––––––––––––––––––––––––––––––––––––––– */

/* Self Clearing Goodness */
.container:after,
.row:after,
.u-cf {
  content: "";
  display: table;
  clear: both; }


/* Media Queries
–––––––––––––––––––––––––––––––––––––––––––––––––– */
/*
Note: The best way to structure the use of media queries is to create the queries
near the relevant code. For example, if you wanted to change the styles for buttons
on small devices, paste the mobile query code up in the buttons section and style it
there.
*/


/* Larger than mobile */
@media (min-width: 400px) {}

/* Larger than phablet (also point when grid becomes active) */
@media (min-width: 550px) {}

/* Larger than tablet */
@media (min-width: 750px) {}

/* Larger than desktop */
@media (min-width: 1000px) {}

/* Larger than Desktop HD */
@media (min-width: 1200px) {}

/* SolarCockpit modern dark layout */
body {
  background: #121722;
  color: #f4f7fb;
}

.app-navbar {
  background: #171b26;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  min-height: 64px;
  padding: 0.45rem 1rem;
  margin-bottom: 0;
}

.app-navbar .navbar-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
}

.navbar-left,
.navbar-right {
  position: relative;
  z-index: 2;
  flex: 0 0 300px;
}

.navbar-right {
  display: flex;
  justify-content: flex-end;
}

.navbar-logo-group {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  max-width: min(520px, 42vw);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.navbar-logo {
  display: block;
  width: auto;
  max-width: 210px;
  max-height: 44px;
  object-fit: contain;
}

.navbar-company-logo {
  max-width: 180px;
}

.navbar-cockpit-logo {
  max-width: 190px;
}

.app-navbar .company-dropdown .Select-control {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #f4f7fb;
}

.app-navbar .company-dropdown .Select-value-label,
.app-navbar .company-dropdown .Select-placeholder,
.app-navbar .company-dropdown .Select-input > input {
  color: #f4f7fb !important;
}

.app-navbar .company-dropdown .Select-arrow {
  border-top-color: rgba(244, 247, 251, 0.72);
}

.app-navbar .company-dropdown .Select-menu-outer {
  background: #ffffff;
  border: 1px solid rgba(18, 23, 34, 0.14);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
  color: #171b26;
  overflow: hidden;
}

.app-navbar .company-dropdown .Select-option {
  background: #ffffff;
  color: #171b26;
}

.app-navbar .company-dropdown .Select-option.is-focused,
.app-navbar .company-dropdown .Select-option:hover {
  background: #eef6fb;
  color: #171b26;
}

.app-navbar .company-dropdown .Select-option.is-selected {
  background: #dceefa;
  color: #101828;
}

.user-dropdown .dropdown-toggle {
  color: #f4f7fb !important;
  font-weight: 600;
}

.user-dropdown .dropdown-menu {
  background: #ffffff;
  border: 1px solid rgba(18, 23, 34, 0.14);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
}

.user-dropdown .dropdown-item {
  color: #171b26;
}

.banner {
  height: 88px !important;
  padding: 14px 28px;
  background: linear-gradient(180deg, rgba(18, 23, 34, 0.98), rgba(18, 23, 34, 0.86));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.banner img {
  max-height: 58px;
  object-fit: contain;
}

.app-tabs {
  gap: 6px;
  padding: 10px 16px 0;
  background: rgba(18, 23, 34, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.app-tabs .nav-link {
  color: rgba(244, 247, 251, 0.78) !important;
  background: transparent;
  border: 1px solid transparent !important;
  border-radius: 8px 8px 0 0;
  padding: 9px 12px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}

.app-tabs .nav-link:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.07);
}

.app-tabs .nav-link.active {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16) !important;
}

.home-dashboard {
  padding: 0 14px 18px;
}

.modern-tab {
  padding: 14px 14px 18px;
}

.home-kpi-card,
.home-weather-card,
.home-panel {
  color: #f4f7fb;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}

.home-kpi-card {
  min-height: 82px;
  position: relative;
}

.home-kpi-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #16c7e8;
}

.home-kpi-blue::before { background: #3b82f6; }
.home-kpi-cyan::before { background: #16c7e8; }
.home-kpi-green::before { background: #22c55e; }
.home-kpi-violet::before { background: #8b5cf6; }

.home-kpi-card .card-header {
  color: rgba(244, 247, 251, 0.78);
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  padding: 8px 12px 6px 16px;
}

.home-kpi-card .card-body {
  padding: 8px 12px 10px 16px;
}

.home-kpi-card h5 {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  margin: 0;
}

.plant-capacity-inline {
  align-items: center;
  column-gap: 10px;
  row-gap: 2px;
  white-space: nowrap;
}

.plant-capacity-inline .col-auto {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  padding-left: 0;
  padding-right: 0;
}

.plant-capacity-inline .col-auto + .col-auto::before {
  content: "|";
  color: rgba(244, 247, 251, 0.34);
  font-weight: 500;
  margin-right: 10px;
}

.home-weather-card {
  min-height: 82px;
  padding: 8px 10px;
}

.home-weather-card h4 {
  color: #ffffff;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0;
}

.home-weather-card p {
  color: rgba(244, 247, 251, 0.72);
  margin-bottom: 0.2rem;
}

.home-panel {
  display: flex;
  flex-direction: column;
  padding: 12px 12px 4px;
  margin-bottom: 14px;
}

#row3 {
  align-items: stretch;
}

#row3 > .home-panel {
  display: flex;
  min-height: 648px;
}

#row3 > .home-panel .dash-graph {
  flex: 1 1 auto;
}

.home-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 28px;
  margin-bottom: 4px;
}

.home-panel-title {
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
}

.home-panel-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  color: rgba(244, 247, 251, 0.74);
  font-size: 12px;
  margin-bottom: 0;
}

.date-picker-control {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 6px 8px 6px 12px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.compact-date-picker {
  gap: 6px;
  height: 26px;
  padding: 2px 4px 2px 8px;
  box-shadow: none;
}

.date-picker-label {
  color: rgba(244, 247, 251, 0.74);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.compact-date-picker .SingleDatePicker,
.compact-date-picker .SingleDatePickerInput,
.compact-date-picker .DateInput {
  background: transparent;
  border: 0;
  height: 22px;
  line-height: 22px;
  margin: 0;
}

.compact-date-picker .SingleDatePickerInput {
  display: flex;
  align-items: center;
  padding: 0;
}

.compact-date-picker .DateInput {
  width: 82px;
  padding: 0;
}

#daily_date_picker input,
#daily_date_picker_tab_performance input,
#inverterTab_date_picker input,
#tab_mppts_date_picker input,
#trackerTab_date_picker input,
#daily_date_picker_relay input,
#str_mean_power_datepicker input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f4f7fb;
  border-radius: 8px;
  height: 32px;
  min-height: 32px;
  font-size: 12px;
  font-weight: 600;
  margin: 0;
  padding: 4px 8px;
  text-align: center;
  width: 132px;
}

.compact-date-picker #daily_date_picker input,
.compact-date-picker #daily_date_picker_tab_performance input,
.compact-date-picker #inverterTab_date_picker input,
.compact-date-picker #tab_mppts_date_picker input,
.compact-date-picker #trackerTab_date_picker input,
.compact-date-picker #daily_date_picker_relay input {
  height: 22px;
  min-height: 22px;
  width: 82px;
  font-size: 11px;
  line-height: 22px;
  padding: 0 5px;
}

.inverter-view-header {
  min-height: 36px;
  padding: 0 4px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.inverter-view-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.modern-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 34px;
  margin: 10px 0 8px;
}

.modern-pagination .btn {
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  min-width: 32px;
  padding: 5px 9px;
}

.inverter-view-tab .dash-graph {
  background: transparent;
}

.plants-chart-tab .modern-pagination {
  margin-top: 0;
}

.plants-chart-grid {
  margin-top: 4px;
}

.plants-chart-grid .dash-graph {
  background: transparent;
}

.mppts-toolbar {
  display: grid;
  grid-template-columns: minmax(300px, 380px) 1fr;
  align-items: center;
  gap: 14px;
  padding: 0 4px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: visible;
}

.mppts-plant-control {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  position: relative;
  z-index: 20;
}

.mppts-plant-control .modern-select {
  flex: 1 1 auto;
  min-width: 220px;
  width: 100%;
}

.mppts-plant-control .Select-control,
.modern-select .Select-control {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #f4f7fb;
  min-height: 34px;
  overflow: hidden;
}

.mppts-plant-control .Select,
.modern-select {
  color: #171b26;
  font-size: 12px;
}

.mppts-plant-control .Select-value,
.modern-select .Select-value {
  line-height: 32px;
  padding-right: 28px;
}

.mppts-plant-control .Select-placeholder,
.mppts-plant-control .Select-value-label,
.modern-select .Select-placeholder,
.modern-select .Select-value-label {
  color: #f4f7fb !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mppts-plant-control .Select-menu-outer,
.modern-select .Select-menu-outer {
  background: #ffffff;
  border: 1px solid rgba(18, 23, 34, 0.14);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
  color: #171b26;
  margin-top: 6px;
  max-height: 260px;
  overflow-y: auto;
  width: 100%;
  z-index: 3000;
}

.mppts-plant-control .Select-option,
.modern-select .Select-option {
  background: #ffffff;
  color: #171b26;
}

.mppts-plant-control .Select-option.is-focused,
.mppts-plant-control .Select-option:hover,
.modern-select .Select-option.is-focused,
.modern-select .Select-option:hover {
  background: #eef6fb;
  color: #171b26;
}

.mppts-title-control {
  justify-content: flex-end;
  margin-bottom: 0;
}

.mppts-grid {
  margin-top: 8px;
}

.mppts-grid .dash-graph {
  background: transparent;
}

.mppts-analysis-panel {
  margin-top: 16px;
  padding: 12px;
  overflow: visible;
}

.mppts-analysis-panel hr {
  border-color: rgba(255, 255, 255, 0.12);
  opacity: 1;
}

.mppts-inverter-selector {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 250px;
  overflow-y: auto;
  width: 100%;
  padding: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.mppts-analysis-controls {
  align-items: stretch;
}

.mppts-control-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.mppts-inverter-col {
  gap: 8px;
}

.mppts-inverter-checklist label,
.mppts-inverter-checklist .form-check-label {
  color: rgba(244, 247, 251, 0.78);
  font-size: 12px;
}

.mppts-select-all-button {
  align-self: flex-start;
  height: 38px;
  min-width: 118px;
  margin: 0;
  text-transform: uppercase;
}

.mppts-range-control {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: flex-start;
  height: 100%;
  padding-top: 46px;
}

.mppts-apply-control {
  display: flex;
  align-items: flex-start;
  height: 100%;
  padding-top: 46px;
}

.mppts-apply-control .btn {
  height: 38px;
  font-size: 12px;
  font-weight: 700;
}

.plant-summary-tab {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.plant-summary-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 4px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: visible;
}

.plant-summary-heading {
  font-size: 15px;
}

.plant-summary-plant-control {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(380px, 100%);
}

.plant-summary-select {
  min-width: 240px;
}

.plant-summary-select .Select-control {
  min-height: 34px;
  overflow: hidden;
}

.plant-summary-select .Select-value {
  line-height: 32px;
  padding-right: 28px;
}

.plant-summary-select .Select-menu-outer {
  margin-top: 6px;
  max-height: 260px;
  overflow-y: auto;
  z-index: 3000;
}

.plant-summary-overview {
  align-items: stretch;
}

.plant-summary-overview > .col,
.plant-summary-overview > [class*="col-"] {
  margin-bottom: 0 !important;
}

.summary-metric-card {
  position: relative;
  height: 100%;
  min-height: 290px;
  color: #f4f7fb;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.summary-metric-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #16c7e8;
}

.summary-card-accent-blue::before { background: #3b82f6; }
.summary-card-accent-cyan::before { background: #16c7e8; }
.summary-card-accent-green::before { background: #22c55e; }

.summary-metric-card .card-header,
.summary-metric-card .card-footer {
  color: rgba(244, 247, 251, 0.76);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.summary-metric-card .card-body {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  padding: 14px 16px 16px;
}

.summary-metric-card .card-title {
  color: #ffffff;
  margin-bottom: 6px;
}

.summary-metric-card h4 {
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.15;
}

.summary-metric-card p,
.summary-metric-card h6 {
  color: rgba(244, 247, 251, 0.82);
  font-size: 13px;
  line-height: 1.25;
}

.summary-info-deck,
.summary-info-deck > .row,
.summary-info-deck .col {
  height: 100%;
}

.summary-site-card-body,
.summary-card-center {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
}

.summary-site-name {
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.12;
  margin-top: 2px;
}

.summary-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 18px;
}

.summary-info-pill,
.summary-mini-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 58px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.summary-info-pill span,
.summary-mini-metric span,
.summary-card-caption {
  color: rgba(244, 247, 251, 0.62);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.summary-info-pill strong,
.summary-mini-metric strong {
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
}

.summary-primary-metric {
  color: #ffffff;
  font-size: clamp(26px, 2.1vw, 36px);
  font-weight: 850;
  line-height: 1.08;
}

.summary-card-center {
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

.summary-production-progress {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.summary-production-progress-track {
  position: relative;
  width: 100%;
  height: 34px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  overflow: hidden;
}

.summary-production-progress-fill {
  position: relative;
  z-index: 1;
  height: 100%;
  min-width: 0;
  background: linear-gradient(90deg, #3b82f6, #16c7e8);
  border-radius: inherit;
  box-shadow: 0 0 18px rgba(22, 199, 232, 0.28);
}

.summary-production-progress-label {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.summary-production-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: rgba(244, 247, 251, 0.62);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.summary-production-progress-meta span {
  min-width: 0;
}

.summary-production-progress-meta strong {
  color: rgba(244, 247, 251, 0.86);
  font-size: 11px;
  white-space: nowrap;
}

.summary-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.summary-mini-metric small {
  color: rgba(244, 247, 251, 0.56);
  font-size: 10px;
  font-weight: 700;
}

.summary-gauge-panel {
  height: 100%;
  min-height: 290px;
  padding: 12px;
}

.summary-panel-title {
  margin-bottom: 8px;
}

.summary-gauge-grid {
  align-items: center;
  min-height: 232px;
}

.summary-gauge-grid [class*="col-"] {
  display: flex;
  justify-content: center;
}

.summary-modern-gauge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 204px;
  width: 100%;
  gap: 8px;
}

.summary-modern-gauge-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background:
    conic-gradient(var(--gauge-color) 0 var(--gauge-value), rgba(255, 255, 255, 0.1) var(--gauge-value) 360deg);
  box-shadow: inset 0 0 22px rgba(255, 255, 255, 0.05), 0 12px 24px rgba(0, 0, 0, 0.2);
}

.summary-modern-gauge-ring::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: #252a34;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.summary-modern-gauge-center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(18, 23, 34, 0.86);
}

.summary-modern-gauge-value {
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.summary-modern-gauge-unit {
  color: rgba(244, 247, 251, 0.62);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 4px;
}

.summary-modern-gauge-label {
  color: #f4f7fb;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.summary-modern-gauge-max {
  color: rgba(244, 247, 251, 0.56);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.summary-chart-panel {
  min-height: 570px;
  padding: 12px 12px 4px;
}

.summary-chart-panel .dash-graph {
  background: transparent;
}

.plant-summary-inverters,
.plant-summary-diagram {
  margin-top: 2px;
}

.summary-inverter-status-panel {
  width: 100%;
  padding: 12px;
}

.summary-inverter-section-title {
  margin-bottom: 12px;
}

.summary-inverter-status-card {
  position: relative;
  height: 100%;
  min-height: 190px;
  color: #f4f7fb;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.summary-inverter-status-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--status-color, #94a3b8);
}

.summary-inverter-status-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 12px 12px 12px 16px;
}

.summary-inverter-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.summary-inverter-title {
  min-width: 0;
}

.summary-inverter-name {
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-inverter-maker {
  color: rgba(244, 247, 251, 0.58);
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
}

.summary-inverter-status-badge {
  flex: 0 0 auto;
  max-width: 48%;
  padding: 5px 8px;
  color: #ffffff;
  background: color-mix(in srgb, var(--status-color, #94a3b8) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--status-color, #94a3b8) 58%, transparent);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-inverter-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.summary-inverter-metric {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 48px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.summary-inverter-metric span,
.summary-inverter-voltage span {
  color: rgba(244, 247, 251, 0.58);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.summary-inverter-metric strong {
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
}

.summary-inverter-voltage {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-inverter-voltage strong {
  color: rgba(244, 247, 251, 0.9);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
}

.events-tab {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.events-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 4px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.events-heading {
  font-size: 15px;
}

.events-subtitle {
  color: rgba(244, 247, 251, 0.58);
  font-size: 12px;
  font-weight: 650;
  margin-top: 4px;
}

.events-last-update {
  flex: 0 0 auto;
  padding: 8px 12px;
  color: rgba(244, 247, 251, 0.74);
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.events-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
}

.events-kpi-card {
  position: relative;
  min-height: 92px;
  padding: 14px 16px 12px;
  color: #f4f7fb;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.events-kpi-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #38bdf8;
}

.events-kpi-critical::before { background: #ef4444; }
.events-kpi-warning::before { background: #f59e0b; }
.events-kpi-closed::before { background: #22c55e; }

.events-kpi-label {
  color: rgba(244, 247, 251, 0.68);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.events-kpi-value {
  font-size: 34px;
  font-weight: 850;
  line-height: 1.1;
  margin-top: 8px;
}

.events-filter-panel,
.events-data-panel {
  padding: 12px;
}

.events-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: end;
}

.events-tab .Select-control {
  min-height: 38px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #f4f7fb;
}

.events-tab .Select-placeholder,
.events-tab .Select-value-label,
.events-tab .Select-input > input {
  color: #f4f7fb !important;
}

.events-tab .Select-menu-outer {
  z-index: 3000;
  margin-top: 6px;
  background: #ffffff;
  border: 1px solid rgba(18, 23, 34, 0.14);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
  color: #171b26;
  overflow: hidden;
}

.events-tab .Select-option {
  background: #ffffff;
  color: #171b26;
}

.events-tab .Select-option.is-focused,
.events-tab .Select-option:hover {
  background: #eef6fb;
  color: #171b26;
}

.events-data-panel .dash-table-container {
  border-radius: 8px;
  overflow: hidden;
}

.events-table-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
}

.events-table-actions .btn {
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 12px;
}

.events-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.events-chart-panel {
  min-height: 430px;
  padding: 10px;
}

.events-chart-panel .dash-graph {
  background: transparent;
}

.tracker-tab {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tracker-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 4px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: visible;
}

.tracker-heading {
  font-size: 15px;
}

.tracker-toolbar-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.tracker-plant-control {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 360px;
}

.tracker-select {
  min-width: 240px;
}

.tracker-tab .Select-control {
  min-height: 34px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #f4f7fb;
  overflow: hidden;
}

.tracker-tab .Select-placeholder,
.tracker-tab .Select-value-label,
.tracker-tab .Select-input > input {
  color: #f4f7fb !important;
}

.tracker-tab .Select-menu-outer {
  z-index: 3000;
  margin-top: 6px;
  background: #ffffff;
  border: 1px solid rgba(18, 23, 34, 0.14);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
  color: #171b26;
  overflow: hidden;
}

.tracker-tab .Select-option {
  background: #ffffff;
  color: #171b26;
}

.tracker-tab .Select-option.is-focused,
.tracker-tab .Select-option:hover {
  background: #eef6fb;
  color: #171b26;
}

.tracker-chart-panel,
.tracker-analysis-panel,
.tracker-status-panel {
  padding: 12px;
}

.tracker-chart-panel .dash-graph,
.tracker-analysis-panel .dash-graph {
  background: transparent;
}

.tracker-section-title {
  margin-bottom: 12px;
}

.tracker-status-card {
  position: relative;
  height: 100%;
  min-height: 148px;
  color: #f4f7fb;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.tracker-status-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--status-color, #94a3b8);
}

.tracker-status-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 12px 12px 12px 16px;
}

.tracker-status-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.tracker-status-title {
  min-width: 0;
}

.tracker-status-name {
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tracker-status-maker {
  color: rgba(244, 247, 251, 0.58);
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
}

.tracker-status-badge {
  flex: 0 0 auto;
  max-width: 48%;
  padding: 5px 8px;
  color: #ffffff;
  background: color-mix(in srgb, var(--status-color, #94a3b8) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--status-color, #94a3b8) 58%, transparent);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tracker-status-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.tracker-status-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 54px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.tracker-status-metric span {
  color: rgba(244, 247, 251, 0.58);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.tracker-status-metric strong {
  color: #ffffff;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.15;
}

.tracker-analysis-panel hr {
  border-color: rgba(255, 255, 255, 0.12);
  opacity: 1;
}

.performance-tab {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.performance-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 4px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: visible;
}

.performance-heading {
  font-size: 15px;
}

.performance-subtitle,
.performance-section-subtitle {
  color: rgba(244, 247, 251, 0.58);
  font-size: 12px;
  font-weight: 650;
  margin-top: 4px;
}

.performance-date-control {
  flex: 0 0 auto;
}

.performance-panel {
  padding: 12px;
}

.performance-section-header {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.performance-section-title {
  font-size: 13px;
}

.performance-table-panel .dash-table-container {
  border-radius: 8px;
  overflow: hidden;
}

.performance-heatmap-panel {
  overflow: visible;
}

.performance-download-section {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(300px, 420px) auto;
  grid-template-areas:
    "search period action"
    "plants period action";
  gap: 12px;
  align-items: start;
  justify-content: start;
  margin-bottom: 14px;
}

.performance-heatmap-actions {
  display: contents;
}

.performance-heatmap-actions .performance-filter-field {
  grid-area: search;
}

.performance-heatmap-actions .performance-select-button {
  grid-area: action;
  align-self: start;
  margin-top: 24px;
}

.performance-filter-field,
.performance-range-control {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.performance-filter-field {
  min-width: 260px;
}

.performance-search-input {
  height: 38px;
  width: 100%;
  color: #f4f7fb;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  padding: 0 12px;
}

.performance-search-input::placeholder {
  color: rgba(244, 247, 251, 0.5);
}

.performance-select-button,
.performance-download-button {
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 12px;
}

.performance-heatmap-controls {
  display: contents;
}

.performance-heatmap-controls .performance-checklist-box {
  grid-area: plants;
}

.performance-heatmap-controls .performance-range-control {
  grid-area: period;
  min-width: 300px;
}

.performance-checklist-box {
  max-height: 220px;
  overflow-y: auto;
  padding: 10px;
  color: #f4f7fb;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.performance-plant-checklist label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  margin-bottom: 4px;
  color: rgba(244, 247, 251, 0.78);
  font-size: 12px;
  font-weight: 700;
}

.performance-plant-checklist input {
  accent-color: #3b82f6;
  flex: 0 0 auto;
  margin: 0 8px 0 0;
}

#daily_pr_datepicker {
  position: relative;
  width: 100%;
  z-index: 15;
}

#daily_pr_datepicker .DateRangePickerInput {
  display: flex;
  align-items: center;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  overflow: hidden;
}

#daily_pr_datepicker .DateInput {
  width: 50%;
  background: transparent;
}

#daily_pr_datepicker .DateInput_input {
  height: 36px;
  color: #f4f7fb;
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

#daily_pr_datepicker .DateRangePickerInput_arrow {
  color: rgba(244, 247, 251, 0.58);
}

.performance-heatmap-results {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.performance-heatmap-results .dash-graph {
  background: transparent;
}

.report-tab {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.report-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 4px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: visible;
}

.report-heading {
  font-size: 15px;
}

.report-subtitle,
.report-section-subtitle {
  color: rgba(244, 247, 251, 0.58);
  font-size: 12px;
  font-weight: 650;
  margin-top: 4px;
}

.report-toolbar-controls {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 12px;
}

.report-plant-control,
.report-month-control,
.report-filter-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.report-plant-control {
  position: relative;
  z-index: 20;
  width: 340px;
}

.report-select {
  min-width: 240px;
}

.report-preview-panel,
.report-download-card {
  padding: 12px;
  overflow: visible;
}

.report-preview-panel .dash-graph {
  background: transparent;
}

.report-section-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.report-section-title,
.report-card-title {
  font-size: 13px;
}

.report-download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.report-download-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  grid-template-areas:
    "search action"
    "plants plants"
    "date download"
    "spinner spinner";
  gap: 12px;
  align-items: start;
}

.report-filter-field {
  grid-area: search;
}

.report-select-button {
  grid-area: action;
  align-self: end;
}

.report-checklist-box {
  grid-area: plants;
  max-height: 220px;
  overflow-y: auto;
  padding: 10px;
  color: #f4f7fb;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.report-month-control,
.report-date-control {
  grid-area: date;
  width: 100%;
}

.report-date-control {
  align-items: stretch;
  justify-content: flex-start;
  flex-direction: column;
  gap: 8px;
  height: auto;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.report-download-button {
  grid-area: download;
  align-self: end;
  justify-self: start;
  min-height: 38px;
}

.report-search-input {
  height: 38px;
  width: 100%;
  color: #f4f7fb;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  padding: 0 12px;
}

.report-search-input::placeholder {
  color: rgba(244, 247, 251, 0.5);
}

.report-select-button,
.report-download-button {
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 12px;
}

.report-plant-checklist label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  margin-bottom: 4px;
  color: rgba(244, 247, 251, 0.78);
  font-size: 12px;
  font-weight: 700;
}

.report-plant-checklist input {
  flex: 0 0 auto;
  margin: 0 8px 0 0;
  accent-color: #3b82f6;
}

.report-month-picker input {
  height: 38px;
  color: #f4f7fb;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

#daily_datepicker_tab_report input {
  height: 38px;
  min-height: 38px;
  width: 100%;
  color: #f4f7fb;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

#daily_datepicker_tab_report,
#daily_datepicker_tab_report .SingleDatePicker,
#daily_datepicker_tab_report .SingleDatePickerInput,
#daily_datepicker_tab_report .DateInput {
  width: 100%;
  background: transparent;
}

#daily_datepicker_tab_report .SingleDatePickerInput {
  border: 0;
}

#daily_datepicker_tab_report {
  position: relative;
}

#daily_datepicker_tab_report .SingleDatePicker_picker {
  top: auto !important;
  bottom: calc(100% + 8px) !important;
  z-index: 5000;
}

.report-preview-panel #app_report > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.report-preview-panel .card {
  color: #f4f7fb;
  background: rgba(255, 255, 255, 0.065) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.report-preview-panel .card-header {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.1);
}

.report-preview-panel h3,
.report-preview-panel h4 {
  color: #ffffff;
  letter-spacing: 0;
}

.downloads-tab {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.downloads-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 4px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: visible;
}

.downloads-heading {
  font-size: 15px;
}

.downloads-subtitle,
.downloads-section-subtitle {
  color: rgba(244, 247, 251, 0.58);
  font-size: 12px;
  font-weight: 650;
  margin-top: 4px;
}

.downloads-toolbar-actions {
  display: grid;
  grid-template-columns: auto minmax(220px, 300px) auto;
  gap: 10px;
  align-items: end;
}

.downloads-export-footer {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.downloads-export-name {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(300px, 100%);
}

.downloads-filename-input,
.downloads-search-input {
  height: 38px;
  width: 100%;
  color: #f4f7fb;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.downloads-filename-input::placeholder,
.downloads-search-input::placeholder {
  color: rgba(244, 247, 251, 0.5);
}

.downloads-export-button,
.downloads-secondary-button {
  min-height: 38px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 12px;
}

.downloads-export-panel,
.downloads-file-panel,
.downloads-selection-panel {
  padding: 12px;
  overflow: visible;
}

.downloads-summary-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr);
  gap: 14px;
  max-width: 520px;
}

.downloads-summary-card {
  position: relative;
  min-height: 92px;
  padding: 14px 16px 14px 20px;
  color: #f4f7fb;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.downloads-summary-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #16c7e8;
}

.downloads-summary-blue::before {
  background: #3b82f6;
}

.downloads-summary-green::before {
  background: #22c55e;
}

.downloads-summary-label {
  display: block;
  color: rgba(244, 247, 251, 0.58);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.downloads-summary-value {
  display: block;
  color: #ffffff;
  font-size: 20px;
  font-weight: 850;
  line-height: 1.2;
  margin-top: 6px;
}

.downloads-summary-card small {
  display: block;
  color: rgba(244, 247, 251, 0.62);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
  margin-top: 6px;
}

.downloads-section-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.downloads-section-title {
  font-size: 13px;
}

.downloads-config-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.45fr) minmax(280px, 1fr) minmax(180px, 0.75fr);
  gap: 14px;
  align-items: start;
}

.downloads-control-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.downloads-segmented-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.downloads-segmented-radio label {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  margin: 0 !important;
  padding: 6px 10px;
  color: rgba(244, 247, 251, 0.78);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 750;
}

.downloads-segmented-radio input {
  margin: 0;
  accent-color: #3b82f6;
}

.downloads-period-block #min_hour_day_DatePickerRange,
.downloads-period-block .DateRangePicker,
.downloads-period-block .DateRangePickerInput {
  width: 100%;
}

#min_hour_day_DatePickerRange .DateRangePickerInput {
  display: flex;
  align-items: center;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  overflow: hidden;
}

#min_hour_day_DatePickerRange .DateInput {
  width: 50%;
  background: transparent;
}

#min_hour_day_DatePickerRange .DateInput_input {
  height: 38px;
  color: #f4f7fb;
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

#min_hour_day_DatePickerRange .DateRangePickerInput_arrow {
  color: rgba(244, 247, 251, 0.58);
}

.downloads-selection-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.downloads-selection-box {
  min-height: 240px;
  max-height: 340px;
  overflow-y: auto;
  padding: 10px;
  color: #f4f7fb;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.downloads-data-box {
  min-height: 240px;
}

.downloads-selection-box label,
.downloads-selection-box .form-check-label {
  color: rgba(244, 247, 251, 0.78);
  font-size: 12px;
  font-weight: 700;
}

.downloads-selection-box input {
  accent-color: #3b82f6;
}

.downloads-checklist label,
.downloads-checklist .form-check {
  min-height: 28px;
  margin-bottom: 4px;
}

.downloads-checklist label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.downloads-checklist input {
  flex: 0 0 auto;
  margin: 0 8px 0 0;
}

.downloads-alert {
  padding: 0;
  margin-top: 12px;
}

.downloads-upload-box {
  padding: 20px;
  margin-bottom: 12px;
  text-align: center;
  background: rgba(255, 255, 255, 0.055);
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  transition: border-color 160ms ease, background 160ms ease;
}

.downloads-upload-box:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(22, 199, 232, 0.48);
}

.downloads-upload {
  display: block;
  cursor: pointer;
}

.downloads-upload-title {
  color: #ffffff;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.2;
}

.downloads-upload-caption,
.downloads-message {
  color: rgba(244, 247, 251, 0.58);
  font-size: 12px;
  font-weight: 650;
  margin-top: 8px;
}

.downloads-upload .downloads-secondary-button {
  margin-top: 12px;
}

.downloads-file-actions {
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.downloads-file-select {
  min-width: 0;
}

.downloads-file-select .Select-control {
  min-height: 38px;
}

.downloads-file-select .Select-value,
.downloads-file-select .Select-placeholder {
  line-height: 36px;
}

.os-tab {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.os-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 4px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.os-heading {
  font-size: 15px;
}

.os-subtitle,
.os-section-subtitle {
  color: rgba(244, 247, 251, 0.58);
  font-size: 12px;
  font-weight: 650;
  margin-top: 4px;
}

.os-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.os-action-button {
  min-height: 38px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 12px;
}

.os-table-panel {
  padding: 12px;
}

.os-section-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.os-section-title {
  font-size: 13px;
}

.os-table-wrap .dash-table-container {
  border-radius: 8px;
  overflow: hidden;
}

.os-download-message {
  margin-top: 10px;
}

.relays-command-tab {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.relays-command-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 4px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.relays-command-heading {
  font-size: 15px;
}

.relays-command-subtitle,
.relays-command-section-subtitle {
  color: rgba(244, 247, 251, 0.58);
  font-size: 12px;
  font-weight: 650;
  margin-top: 4px;
}

.relays-command-action-button {
  min-height: 38px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 12px;
}

.relays-command-panel {
  padding: 12px;
}

.relays-command-section-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.relays-command-section-title {
  font-size: 13px;
}

.relays-command-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.relays-command-card-shell {
  min-width: 0;
}

.relays-command-card-shell .card {
  height: 100% !important;
  min-height: 170px;
  color: #f4f7fb;
  background: rgba(255, 255, 255, 0.075) !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.relays-command-card-shell .relay-command-mini-card-offline {
  border-color: rgba(239, 68, 68, 0.46);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24), inset 0 0 0 1px rgba(239, 68, 68, 0.18);
}

.relays-command-card-shell .relay-command-mini-card-online {
  border-color: rgba(34, 197, 94, 0.32);
}

.relays-command-card-shell .card-header {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.1);
  padding: 10px 12px;
}

.relay-command-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.relays-command-card-shell .card-header a {
  color: #ffffff;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0;
  text-decoration: none;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.relay-command-status-badge {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
}

.relay-command-status-online {
  color: #dcfce7;
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.36);
}

.relay-command-status-offline {
  color: #fee2e2;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.42);
}

.relay-command-status-locked {
  color: #fef3c7;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.42);
}

.relays-command-card-shell .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 12px;
}

.relays-command-card-shell .row {
  row-gap: 8px;
}

.relays-command-card-shell .btn {
  border-radius: 8px;
  font-size: 11px;
  font-weight: 850;
  min-height: 34px;
  padding: 7px 10px;
  width: 100%;
}

.relays-command-card-shell .btn:disabled {
  cursor: not-allowed;
  filter: grayscale(0.22);
  opacity: 0.46;
}

.relays-command-empty {
  margin: 0;
}

.relays-command-hidden-row {
  display: none;
}

.relays-command-modal {
  color: #f4f7fb;
  background: #171b26;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.36);
}

.relays-command-modal .modal-header,
.relays-command-modal .modal-footer {
  border-color: rgba(255, 255, 255, 0.12);
}

.relays-command-modal .modal-title {
  color: #ffffff;
  font-weight: 850;
}

.relays-command-log-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.relays-command-log-filter {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 260px;
}

.relays-command-log-datepicker,
.relays-command-log-datepicker .SingleDatePicker,
.relays-command-log-datepicker .SingleDatePickerInput,
.relays-command-log-datepicker .DateInput {
  width: 100%;
  min-width: 190px;
  background: transparent;
}

.relays-command-log-datepicker .SingleDatePickerInput {
  border: 0;
  overflow: visible;
}

.relays-command-log-datepicker .DateInput_input,
.relays-command-log-datepicker input {
  height: 38px;
  min-height: 38px;
  width: 100%;
  color: #f4f7fb;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.relays-command-log-datepicker .DateInput_input__focused {
  border-color: rgba(22, 199, 232, 0.52);
}

.relays-command-log-datepicker .SingleDatePicker_picker {
  z-index: 6000;
}

.tracker-range-control {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#std_trackers_datepicker {
  position: relative;
  width: 100%;
  z-index: 15;
}

#std_trackers_datepicker .DateRangePickerInput {
  display: flex;
  align-items: center;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  overflow: hidden;
}

#std_trackers_datepicker .DateInput {
  width: 50%;
  background: transparent;
}

#std_trackers_datepicker input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f4f7fb;
  border-radius: 8px;
  height: 32px;
  min-height: 32px;
  font-size: 12px;
  font-weight: 600;
  margin: 0;
  padding: 4px 8px;
  text-align: center;
  width: 132px;
}

.relay-tab {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.relay-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 4px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: visible;
}

.relay-heading {
  font-size: 15px;
}

.relay-toolbar-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.relay-plant-control {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 360px;
}

.relay-select {
  min-width: 240px;
}

.relay-tab .Select-control {
  min-height: 34px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #f4f7fb;
  overflow: hidden;
}

.relay-tab .Select-placeholder,
.relay-tab .Select-value-label,
.relay-tab .Select-input > input {
  color: #f4f7fb !important;
}

.relay-tab .Select-menu-outer {
  z-index: 3000;
  margin-top: 6px;
  background: #ffffff;
  border: 1px solid rgba(18, 23, 34, 0.14);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
  color: #171b26;
  overflow: hidden;
}

.relay-tab .Select-option {
  background: #ffffff;
  color: #171b26;
}

.relay-tab .Select-option.is-focused,
.relay-tab .Select-option:hover {
  background: #eef6fb;
  color: #171b26;
}

.relay-device-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.relay-device-row {
  align-items: stretch;
}

.relay-info-card {
  height: 100%;
  min-height: 420px;
  color: #f4f7fb;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.relay-info-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #22c55e;
}

.relay-info-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 12px 12px 12px 16px;
}

.relay-card-header {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.relay-card-title {
  color: #ffffff;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.15;
}

.relay-card-subtitle {
  color: rgba(244, 247, 251, 0.58);
  font-size: 11px;
  font-weight: 750;
  margin-top: 4px;
}

.relay-info-card .row {
  row-gap: 8px;
}

.relay-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 54px;
  margin-bottom: 8px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.relay-metric span {
  color: rgba(244, 247, 251, 0.58);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.relay-metric strong {
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.relay-info-card hr {
  border-color: rgba(255, 255, 255, 0.12);
  opacity: 1;
  margin: 2px 0;
}

.relay-flags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(42px, 1fr));
  gap: 8px;
  max-height: 168px;
  overflow-y: auto;
  padding-right: 2px;
}

.relay-flag {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.relay-flag > div {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--flag-color);
  box-shadow: 0 0 12px color-mix(in srgb, var(--flag-color) 46%, transparent);
}

.relay-flag small {
  color: rgba(244, 247, 251, 0.68);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}

.relay-graph-panel {
  height: 100%;
  min-height: 420px;
  padding: 12px;
}

.relay-graph-panel .dash-graph {
  background: transparent;
}

.plant-summary-diagram img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
}

#str_mean_power_datepicker {
  position: relative;
  width: 100%;
  z-index: 15;
}

#str_mean_power_datepicker .DateRangePickerInput {
  display: flex;
  align-items: center;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  overflow: hidden;
}

#str_mean_power_datepicker .DateInput {
  width: 50%;
  background: transparent;
}

#str_mean_power_datepicker .DateRangePickerInput_arrow {
  color: rgba(244, 247, 251, 0.66);
  padding: 0 4px;
}

#str_mean_power_datepicker .DateRangePicker_picker,
.DateRangePicker_picker,
.DateRangePicker_picker__portal {
  z-index: 9000;
}

.inverter-status-tab .inverter-view-header {
  margin-bottom: 10px;
}

.inverter-status-layout-switch {
  min-height: 26px;
}

.inverter-status-layout-switch label,
.inverter-status-layout-switch .form-check-label {
  color: rgba(244, 247, 251, 0.78);
  font-size: 12px;
  font-weight: 700;
}

.inverter-status-grid {
  padding-top: 4px;
}

.inverter-status-grid hr {
  border-color: rgba(255, 255, 255, 0.12);
  opacity: 1;
}

.table-dark {
  --bs-table-bg: rgba(255, 255, 255, 0.06);
  --bs-table-striped-bg: rgba(255, 255, 255, 0.08);
  --bs-table-hover-bg: rgba(22, 199, 232, 0.12);
  border-color: rgba(255, 255, 255, 0.12);
}

.data-analysis-tab {
  display: grid;
  gap: 18px;
}

.data-analysis-toolbar {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.data-analysis-heading {
  font-size: clamp(1.55rem, 2.2vw, 2.15rem);
}

.data-analysis-subtitle,
.data-analysis-section-subtitle {
  color: rgba(244, 247, 251, 0.68);
  font-size: 0.92rem;
  line-height: 1.45;
}

.data-analysis-apply-button {
  border: 0;
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.25);
  font-weight: 800;
  min-width: 132px;
  padding: 0.72rem 1.35rem;
}

.data-analysis-alert {
  padding: 0;
}

.data-analysis-sidebar {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.85fr) minmax(280px, 0.85fr);
  position: relative;
  z-index: 30;
}

.data-analysis-config-panel,
.data-analysis-selection-panel,
.data-analysis-chart-panel {
  overflow: visible;
  padding: 18px;
}

.data-analysis-config-panel {
  position: relative;
  z-index: 40;
}

.data-analysis-section-header {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.data-analysis-card-title {
  font-size: 1.02rem;
}

.data-analysis-config-grid {
  display: grid;
  gap: 16px;
}

.data-analysis-control-block,
.data-analysis-period-control {
  display: grid;
  gap: 8px;
}

.data-analysis-period-control.date-picker-control {
  align-items: start;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: grid;
  justify-content: start;
  padding: 0;
}

.data-analysis-period-stack {
  min-height: 72px;
  overflow: visible;
}

.data-analysis-segmented-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.data-analysis-segmented-radio label {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(244, 247, 251, 0.78);
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  gap: 7px;
  margin: 0;
  min-height: 36px;
  padding: 8px 12px;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.data-analysis-segmented-radio label:has(input:checked) {
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(96, 165, 250, 0.6);
  color: #f8fbff;
}

.data-analysis-segmented-radio input {
  accent-color: #60a5fa;
}

.data-analysis-selection-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  max-height: 300px;
  min-height: 160px;
  overflow-y: auto;
  padding: 16px;
}

.data-analysis-data-box {
  min-height: 220px;
}

.data-analysis-checklist label {
  align-items: center;
  color: rgba(244, 247, 251, 0.9);
  display: flex;
  font-size: 15px;
  font-weight: 700;
  gap: 12px;
  line-height: 1.35;
  margin-bottom: 12px;
  min-height: 26px;
}

.data-analysis-checklist input,
.data-analysis-checklist .form-check-input {
  accent-color: #60a5fa;
  height: 20px;
  min-width: 20px;
  width: 20px;
}

.data-analysis-selection-box .mantine-Tree-label,
.data-analysis-selection-box .mantine-Checkbox-label {
  color: rgba(244, 247, 251, 0.9);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.data-analysis-selection-box .mantine-Checkbox-input {
  height: 20px;
  width: 20px;
}

.data-analysis-selection-box .mantine-Tree-node {
  min-height: 28px;
}

.data-analysis-message {
  color: rgba(244, 247, 251, 0.62);
  font-size: 0.86rem;
  margin-top: 10px;
}

.data-analysis-chart-panel {
  min-height: 540px;
  position: relative;
  z-index: 1;
}

.data-analysis-graph {
  min-height: 520px;
}

.data-analysis-date-range,
.data-analysis-date-range .DateRangePickerInput,
.data-analysis-date-range .DateInput {
  background: transparent;
}

#dt_an_min_hour_day_DatePickerRange,
#dt_an_min_hour_day_DatePickerRange .DateRangePicker,
#dt_an_min_hour_day_DatePickerRange .DateRangePickerInput {
  width: auto;
}

.data-analysis-date-range .DateRangePickerInput {
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  display: flex;
  gap: 10px;
  padding: 8px;
  width: fit-content;
}

.data-analysis-date-range .DateInput {
  width: 176px;
}

.data-analysis-date-range input,
.data-analysis-date-range .DateInput_input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  color: #f4f7fb;
  font-size: 1rem;
  font-weight: 800;
  height: 42px;
  line-height: 42px;
  padding: 0 12px;
}

.data-analysis-date-range .DateInput_input__focused {
  border-color: rgba(96, 165, 250, 0.62);
}

.data-analysis-date-range .DateRangePickerInput_arrow {
  color: rgba(244, 247, 251, 0.68);
  padding: 0 4px;
}

.data-analysis-date-range .DateRangePicker_picker {
  z-index: 9000;
}

.data-analysis-date-range .CalendarDay__selected,
.data-analysis-date-range .CalendarDay__selected_span {
  background: #2563eb;
  border-color: #60a5fa;
  color: #ffffff;
}

.data-analysis-month-picker,
.data-analysis-year-picker {
  width: 100%;
}

.data-analysis-month-picker input,
.data-analysis-year-picker input {
  color: #f4f7fb;
  font-size: 1rem;
}

.data-analysis-month-picker input::placeholder,
.data-analysis-year-picker input::placeholder {
  color: rgba(244, 247, 251, 0.56);
}

.cftv-tab {
  display: grid;
  gap: 18px;
}

.cftv-toolbar {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.cftv-heading {
  font-size: clamp(1.55rem, 2.2vw, 2.15rem);
}

.cftv-subtitle,
.cftv-section-subtitle {
  color: rgba(244, 247, 251, 0.68);
  font-size: 0.92rem;
  line-height: 1.45;
}

.cftv-toolbar-actions {
  align-items: center;
  display: flex;
  gap: 12px;
}

.cftv-status-badge,
.cftv-mini-badge {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 850;
  min-height: 30px;
  padding: 0.42rem 0.72rem;
}

.cftv-status-online {
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.38);
  color: #86efac;
}

.cftv-status-offline {
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.38);
  color: #fecaca;
}

.cftv-action-button {
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  min-height: 38px;
  padding: 0.5rem 1rem;
}

.cftv-kpi-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cftv-kpi-card {
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
  display: grid;
  gap: 8px;
  min-height: 112px;
  overflow: hidden;
  padding: 18px;
  position: relative;
}

.cftv-kpi-card::before {
  border-radius: 999px;
  content: "";
  height: 84px;
  position: absolute;
  right: -26px;
  top: -34px;
  width: 84px;
}

.cftv-kpi-card span {
  color: rgba(244, 247, 251, 0.68);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.cftv-kpi-card strong {
  color: #f8fbff;
  font-size: clamp(1.7rem, 2.4vw, 2.35rem);
  line-height: 1;
}

.cftv-kpi-blue::before {
  background: rgba(59, 130, 246, 0.28);
}

.cftv-kpi-cyan::before {
  background: rgba(34, 211, 238, 0.24);
}

.cftv-kpi-green::before {
  background: rgba(34, 197, 94, 0.24);
}

.cftv-kpi-amber::before {
  background: rgba(245, 158, 11, 0.24);
}

.cftv-kpi-red::before {
  background: rgba(239, 68, 68, 0.24);
}

.cftv-main-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.65fr);
}

.cftv-location-panel,
.cftv-table-panel,
.cftv-detail-panel,
.cftv-camera-table-panel,
.cftv-chart-card {
  padding: 18px;
}

.cftv-section-header {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.cftv-card-title,
.cftv-detail-heading {
  font-size: 1.05rem;
}

.cftv-location-select {
  margin-bottom: 14px;
}

.cftv-location-info-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.cftv-location-info-title {
  color: #f8fbff;
  font-size: 1rem;
  font-weight: 850;
}

.cftv-location-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cftv-mini-badge {
  background: rgba(148, 163, 184, 0.14);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: rgba(244, 247, 251, 0.82);
}

.cftv-mini-badge-blue {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.34);
  color: #bfdbfe;
}

.cftv-mini-badge-green {
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.34);
  color: #bbf7d0;
}

.cftv-mini-badge-red {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.34);
  color: #fecaca;
}

.cftv-location-description {
  color: rgba(244, 247, 251, 0.58);
  font-size: 0.88rem;
}

.cftv-details-container {
  display: grid;
  gap: 16px;
}

.cftv-detail-panel {
  display: grid;
  gap: 16px;
}

.cftv-detail-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cftv-detail-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.9fr) minmax(280px, 0.9fr);
}

.cftv-camera-table-panel,
.cftv-chart-card {
  min-width: 0;
}

.cftv-graph {
  min-height: 300px;
}

@media (max-width: 992px) {
  .navbar-left,
  .navbar-right {
    flex-basis: 220px;
  }

  .navbar-logo-group {
    gap: 12px;
    max-width: 34vw;
  }

  .navbar-logo {
    max-height: 34px;
    max-width: 130px;
  }

  .banner {
    height: auto !important;
    min-height: 76px;
    padding: 12px 16px;
  }

  .app-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .mppts-toolbar {
    grid-template-columns: 1fr;
  }

  .mppts-title-control {
    justify-content: space-between;
  }

  .plant-summary-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .plant-summary-plant-control {
    width: 100%;
  }

  .plant-summary-select {
    min-width: 0;
  }

  .events-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .events-last-update {
    width: 100%;
  }

  .events-kpi-grid,
  .events-chart-grid {
    grid-template-columns: 1fr;
  }

  .performance-toolbar,
  .performance-section-header {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .performance-download-section {
    grid-template-columns: 1fr;
    grid-template-areas:
      "search"
      "plants"
      "period"
      "action";
  }

  .performance-heatmap-actions .performance-select-button {
    margin-top: 0;
  }

  .performance-filter-field {
    min-width: 0;
  }

  .report-toolbar,
  .report-toolbar-controls {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .report-plant-control {
    width: 100%;
  }

  .report-select {
    min-width: 0;
  }

  .report-download-grid {
    grid-template-columns: 1fr;
  }

  .report-download-form {
    grid-template-columns: 1fr;
    grid-template-areas:
      "search"
      "action"
      "plants"
      "date"
      "download"
      "spinner";
  }

  .report-select-button,
  .report-download-button {
    justify-self: stretch;
    width: 100%;
  }

  .downloads-toolbar,
  .downloads-toolbar-actions {
    align-items: stretch;
    width: 100%;
  }

  .downloads-toolbar {
    flex-direction: column;
  }

  .downloads-export-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .downloads-export-name {
    width: 100%;
  }

  .downloads-toolbar-actions,
  .downloads-config-grid,
  .downloads-selection-grid,
  .downloads-file-actions,
  .downloads-summary-grid {
    grid-template-columns: 1fr;
  }

.downloads-export-button,
.downloads-secondary-button {
  width: 100%;
}

.data-analysis-tab {
  display: grid;
  gap: 18px;
}

.data-analysis-toolbar {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.data-analysis-heading {
  font-size: clamp(1.55rem, 2.2vw, 2.15rem);
}

.data-analysis-subtitle,
.data-analysis-section-subtitle {
  color: rgba(244, 247, 251, 0.68);
  font-size: 0.92rem;
  line-height: 1.45;
}

.data-analysis-apply-button {
  border: 0;
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.25);
  font-weight: 800;
  min-width: 132px;
  padding: 0.72rem 1.35rem;
}

.data-analysis-alert {
  padding: 0;
}

.data-analysis-sidebar {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.85fr) minmax(280px, 0.85fr);
}

.data-analysis-config-panel,
.data-analysis-selection-panel,
.data-analysis-chart-panel {
  padding: 18px;
}

.data-analysis-section-header {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.data-analysis-card-title {
  font-size: 1.02rem;
}

.data-analysis-config-grid {
  display: grid;
  gap: 16px;
}

.data-analysis-control-block,
.data-analysis-period-control {
  display: grid;
  gap: 8px;
}

.data-analysis-period-stack {
  min-height: 72px;
}

.data-analysis-segmented-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.data-analysis-segmented-radio label {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(244, 247, 251, 0.78);
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  gap: 7px;
  margin: 0;
  min-height: 36px;
  padding: 8px 12px;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.data-analysis-segmented-radio label:has(input:checked) {
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(96, 165, 250, 0.6);
  color: #f8fbff;
}

.data-analysis-segmented-radio input {
  accent-color: #60a5fa;
}

.data-analysis-selection-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  max-height: 300px;
  min-height: 160px;
  overflow-y: auto;
  padding: 16px;
}

.data-analysis-data-box {
  min-height: 220px;
}

.data-analysis-checklist label {
  align-items: center;
  color: rgba(244, 247, 251, 0.9);
  display: flex;
  font-size: 15px;
  font-weight: 700;
  gap: 12px;
  line-height: 1.35;
  margin-bottom: 12px;
  min-height: 26px;
}

.data-analysis-checklist input,
.data-analysis-checklist .form-check-input {
  accent-color: #60a5fa;
  height: 20px;
  min-width: 20px;
  width: 20px;
}

.data-analysis-selection-box .mantine-Tree-label,
.data-analysis-selection-box .mantine-Checkbox-label {
  color: rgba(244, 247, 251, 0.9);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.data-analysis-selection-box .mantine-Checkbox-input {
  height: 20px;
  width: 20px;
}

.data-analysis-selection-box .mantine-Tree-node {
  min-height: 28px;
}

.data-analysis-message {
  color: rgba(244, 247, 251, 0.62);
  font-size: 0.86rem;
  margin-top: 10px;
}

.data-analysis-chart-panel {
  min-height: 540px;
  position: relative;
  z-index: 1;
}

.data-analysis-graph {
  min-height: 520px;
}

.data-analysis-date-range,
.data-analysis-date-range .DateRangePickerInput,
.data-analysis-date-range .DateInput {
  background: transparent;
}

.data-analysis-date-range .DateRangePickerInput {
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  display: flex;
  gap: 10px;
  padding: 8px;
  width: fit-content;
}

.data-analysis-date-range .DateInput {
  width: 176px;
}

.data-analysis-date-range input,
.data-analysis-date-range .DateInput_input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  color: #f4f7fb;
  font-size: 1rem;
  font-weight: 800;
  height: 42px;
  line-height: 42px;
  padding: 0 12px;
}

.data-analysis-date-range .DateRangePicker_picker {
  z-index: 9000;
}

  .os-toolbar,
  .os-toolbar-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .os-action-button {
    width: 100%;
  }

  .relays-command-toolbar,
  .relays-command-log-toolbar {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .relays-command-action-button {
    width: 100%;
  }

  .relays-command-card-grid {
    grid-template-columns: 1fr;
  }

  .tracker-toolbar,
  .tracker-toolbar-controls {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .tracker-plant-control {
    width: 100%;
  }

  .tracker-select {
    min-width: 0;
  }

  .relay-toolbar,
  .relay-toolbar-controls {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .relay-plant-control {
    width: 100%;
  }

  .relay-select {
    min-width: 0;
  }

  .data-analysis-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .data-analysis-apply-button {
    width: 100%;
  }

  .data-analysis-sidebar {
    grid-template-columns: 1fr;
  }

  .data-analysis-date-range .DateRangePickerInput {
    flex-direction: column;
  }

  .cftv-toolbar,
  .cftv-toolbar-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .cftv-action-button {
    width: 100%;
  }

  .cftv-kpi-grid,
  .cftv-main-grid,
  .cftv-detail-kpi-grid,
  .cftv-detail-grid {
    grid-template-columns: 1fr;
  }
}
