/* SmartOLT staging — night mode (app-wide + dashboard) */

/* Light mode — app-wide typography (match dashboard Inter) */
html:not(.smartolt-night) body.smartolt-site {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

html:not(.smartolt-night) body.smartolt-site h1,
html:not(.smartolt-night) body.smartolt-site h2,
html:not(.smartolt-night) body.smartolt-site h3,
html:not(.smartolt-night) body.smartolt-site h4,
html:not(.smartolt-night) body.smartolt-site h5,
html:not(.smartolt-night) body.smartolt-site h6,
html:not(.smartolt-night) body.smartolt-site .h1,
html:not(.smartolt-night) body.smartolt-site .h2,
html:not(.smartolt-night) body.smartolt-site .h3,
html:not(.smartolt-night) body.smartolt-site .h4,
html:not(.smartolt-night) body.smartolt-site .h5,
html:not(.smartolt-night) body.smartolt-site .h6,
html:not(.smartolt-night) body.smartolt-site .tooltip,
html:not(.smartolt-night) body.smartolt-site .popover {
  font-family: inherit;
}

html.smartolt-night body.smartolt-site {
  --navy-950: #06162f;
  --navy-900: #071b3d;
  --smartolt-nav-offset: 68px;
  --smartolt-topbar-height: 60px;
  background: var(--navy-950);
  color: #e2e8f0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

html.smartolt-night body.smartolt-site #content-wrapper {
  background: transparent;
  position: relative;
}

/* Site layout — centered column; navbar + content share the same max-width */
body.smartolt-site {
  --smartolt-gutter-x: 15px;
  --smartolt-content-max-md: 1067px;
  --smartolt-content-max-lg: 1366px;
  --smartolt-nav-expand-min: 1366px; /* below this width: hamburger menu */
}

body.smartolt-site .navbar > .container,
body.smartolt-site #content-wrapper > .container,
body.smartolt-site #content-wrapper > .container-fluid {
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  padding-left: var(--smartolt-gutter-x);
  padding-right: var(--smartolt-gutter-x);
  width: 100%;
}

@media (max-width: 767px) {
  body.smartolt-site {
    --smartolt-gutter-x: 12px;
  }
}

@media (min-width: 992px) {
  body.smartolt-site .navbar > .container,
  body.smartolt-site #content-wrapper > .container,
  body.smartolt-site #content-wrapper > .container-fluid {
    max-width: min(var(--smartolt-content-max-md), 100%);
  }
}

@media (min-width: 1200px) {
  body.smartolt-site .navbar > .container,
  body.smartolt-site #content-wrapper > .container,
  body.smartolt-site #content-wrapper > .container-fluid {
    max-width: min(var(--smartolt-content-max-lg), 100%);
  }
}

@media (min-width: 1200px) {
  /* #details is the OLT-details tab-pane id; gate on .active so this flex
     layout applies only while that tab is shown and does not override
     Bootstrap's display:none for the inactive pane (which would leave the
     details content stuck visible when switching tabs). */
  body.smartolt-site #details.active {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
  }

  body.smartolt-site #details.active > .col-lg-9 {
    flex: 1 1 720px;
    max-width: 100%;
    width: auto;
  }

  body.smartolt-site #details.active > .col-lg-3 {
    flex: 0 0 auto;
    max-width: 300px;
    width: auto;
  }
}


/* Navbar — hamburger below --smartolt-nav-expand-min (1366px) */
@media (max-width: 1365px) {
  html.smartolt-night {
    overflow-x: auto;
  }

  body.smartolt-site {
    overflow-x: visible;
  }

  body.smartolt-site .navbar.navbar-fixed-top {
    overflow-x: clip;
  }

  body.smartolt-site .navbar.navbar-fixed-top > .container {
    display: block !important;
    max-width: 100%;
    overflow-x: clip;
    width: 100%;
  }

  body.smartolt-site .navbar.navbar-fixed-top .navbar-header {
    float: none;
    margin-left: 0;
    margin-right: 0;
  }

  body.smartolt-site .navbar.navbar-fixed-top .navbar-brand {
    float: left;
    max-width: calc(100% - 56px);
  }

  body.smartolt-site .navbar.navbar-fixed-top .navbar-toggle {
    border-color: rgba(255, 255, 255, 0.35);
    display: block !important;
    float: right;
    margin-right: 0;
  }

  body.smartolt-site .navbar.navbar-fixed-top .navbar-collapse.collapse:not(.in):not(.collapsing) {
    clear: both;
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  body.smartolt-site .navbar.navbar-fixed-top .navbar-collapse.collapse.in,
  body.smartolt-site .navbar.navbar-fixed-top .navbar-collapse.collapsing {
    clear: both;
    display: block !important;
    height: auto !important;
    max-height: calc(100vh - var(--smartolt-nav-offset, 68px));
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  body.smartolt-site .navbar.navbar-fixed-top .navbar-collapse .nav.navbar-nav,
  body.smartolt-site .navbar.navbar-fixed-top .navbar-collapse .nav.navbar-nav.navbar-right {
    display: block !important;
    float: none !important;
    margin: 0;
  }

  body.smartolt-site .navbar.navbar-fixed-top .navbar-collapse .nav.navbar-nav > li {
    float: none !important;
    white-space: normal;
  }

  body.smartolt-site .navbar.navbar-fixed-top .navbar-collapse .nav.navbar-nav > li > a {
    display: block !important;
  }
}

/* OLT details — TR069 profile row stays on one line when possible */
body.smartolt-site #set_tr069_profile {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

body.smartolt-site #set_tr069_profile .multiselect-native-select,
body.smartolt-site #set_tr069_profile .btn-group {
  flex: 0 1 220px;
  margin: 0 !important;
  max-width: 100%;
  min-width: min(220px, 100%);
}

body.smartolt-site #set_tr069_profile #tr069_profiles_commit,
body.smartolt-site #set_tr069_profile > a.btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

body.smartolt-site #set_tr069_profile > a:not(.btn) {
  flex: 0 1 auto;
  white-space: nowrap;
}

@media (max-width: 1365px) {
  body.smartolt-site .content-wrap > .row:has(> .table),
  body.smartolt-site .content-wrap .container-fluid > .row:has(> .table) {
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
  }
}

html.smartolt-night body.smartolt-site #content-wrapper > .container,
html.smartolt-night body.smartolt-site #content-wrapper > .container-fluid {
  padding-bottom: 40px;
  padding-top: var(--smartolt-nav-offset);
}

html.smartolt-night body.smartolt-site .content-wrap > h2,
html.smartolt-night body.smartolt-site .onu-wrapper > h2,
html.smartolt-night body.smartolt-site .container-fluid > h2:first-child,
html.smartolt-night body.smartolt-site .container > h2:first-child {
  display: none;
}

html.smartolt-night body.smartolt-site .navbar-default {
  background: rgba(6, 22, 47, 0.82) !important;
  background-image: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

html.smartolt-night body.smartolt-site .navbar-default .navbar-brand,
html.smartolt-night body.smartolt-site .navbar-default .nav > li > a {
  color: rgba(255, 255, 255, 0.9) !important;
}

html.smartolt-night body.smartolt-site .navbar-default .nav > li > a:hover,
html.smartolt-night body.smartolt-site .navbar-default .nav > li > a:focus,
html.smartolt-night body.smartolt-site .navbar-default .nav > .open > a,
html.smartolt-night body.smartolt-site .navbar-default .nav > .open > a:hover,
html.smartolt-night body.smartolt-site .navbar-default .nav > .open > a:focus {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}

body.smartolt-site .navbar-default .navbar-nav > li:not(.dropdown).active > a,
body.smartolt-site .navbar-default .navbar-nav > li:not(.dropdown).active > a:hover,
body.smartolt-site .navbar-default .navbar-nav > li:not(.dropdown).active > a:focus {
  background-color: transparent !important;
}

html.smartolt-night body.smartolt-site .navbar-default .nav > li:not(.dropdown):not(.open) > a:focus,
html.smartolt-night body.smartolt-site .navbar-default .nav > li:not(.dropdown):not(.open).active > a,
html.smartolt-night body.smartolt-site .navbar-default .nav > li:not(.dropdown):not(.open).active > a:hover,
html.smartolt-night body.smartolt-site .navbar-default .nav > li:not(.dropdown):not(.open).active > a:focus {
  background: transparent !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

html.smartolt-night body.smartolt-site .navbar-default .navbar-toggle .icon-bar {
  background-color: #fff;
}

html.smartolt-night .dropdown-menu {
  background: #0b1528;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

html.smartolt-night .dropdown-menu > li > a {
  color: #e2e8f0;
}

html.smartolt-night .dropdown-menu > li > a:hover,
html.smartolt-night .dropdown-menu > li > a:focus {
  background: rgba(29, 139, 255, 0.18);
  color: #fff;
}

html.smartolt-night .dropdown-menu > .active > a,
html.smartolt-night .dropdown-menu > .active > a:hover,
html.smartolt-night .dropdown-menu > .active > a:focus {
  background: rgba(29, 139, 255, 0.18);
  color: #fff;
}

html.smartolt-night .dropdown-menu > .disabled > a,
html.smartolt-night .dropdown-menu > .disabled > a:hover,
html.smartolt-night .dropdown-menu > .disabled > a:focus,
html.smartolt-night .dropdown-menu > li.disabled > a,
html.smartolt-night .dropdown-menu > li.disabled > a:hover,
html.smartolt-night .dropdown-menu > li.disabled > a:focus {
  background-color: transparent !important;
  color: #64748b !important;
  cursor: not-allowed !important;
  pointer-events: none;
}

html.smartolt-night .dropdown-menu .divider {
  background-color: rgba(255, 255, 255, 0.1);
}

html.smartolt-night body.smartolt-site footer,
html.smartolt-night body.smartolt-site footer .text-center {
  color: rgba(255, 255, 255, 0.45) !important;
}

html.smartolt-night body.smartolt-site footer a {
  color: #8cc8ff !important;
}

/* Default link color in night theme. Kept at low specificity so component
   links (navbar, tabs, pagination, dropdowns, footer) keep their own rules;
   .btn is excluded so button text colors are untouched. */
html.smartolt-night a:not(.btn) {
  color: #8cc8ff;
}

html.smartolt-night a:not(.btn):hover,
html.smartolt-night a:not(.btn):focus {
  color: #a9d6ff;
}

html.smartolt-night body.smartolt-site .panel {
  background: rgba(15, 26, 46, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  color: #e2e8f0;
}

html.smartolt-night body.smartolt-site .panel-default > .panel-heading,
html.smartolt-night body.smartolt-site .panel-primary > .panel-heading,
html.smartolt-night body.smartolt-site .panel-green > .panel-heading,
html.smartolt-night body.smartolt-site .panel-red > .panel-heading,
html.smartolt-night body.smartolt-site .panel-yellow > .panel-heading {
  background: rgba(255, 255, 255, 0.08) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #f1f5f9 !important;
}

html.smartolt-night body.smartolt-site .panel-body {
  background: transparent;
  color: #e2e8f0;
}

html.smartolt-night body.smartolt-site .panel-footer {
  background: rgba(255, 255, 255, 0.04) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.65);
}

html.smartolt-night body.smartolt-site .form-control {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  color-scheme: dark;
}

html.smartolt-night body.smartolt-site input[type="number"],
html.smartolt-night .modal input[type="number"],
html.smartolt-night .onu-ui-modal input[type="number"] {
  color-scheme: dark;
}

html.smartolt-night body.smartolt-site input[type="number"]::-webkit-inner-spin-button,
html.smartolt-night body.smartolt-site input[type="number"]::-webkit-outer-spin-button,
html.smartolt-night .modal input[type="number"]::-webkit-inner-spin-button,
html.smartolt-night .modal input[type="number"]::-webkit-outer-spin-button,
html.smartolt-night .onu-ui-modal input[type="number"]::-webkit-inner-spin-button,
html.smartolt-night .onu-ui-modal input[type="number"]::-webkit-outer-spin-button {
  background: transparent;
}

html.smartolt-night body.smartolt-site .form-control:focus {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
  color: #fff;
}

html.smartolt-night body.smartolt-site .form-control::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

html.smartolt-night body.smartolt-site .form-control[disabled],
html.smartolt-night body.smartolt-site .form-control[readonly],
html.smartolt-night body.smartolt-site fieldset[disabled] .form-control {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  cursor: not-allowed;
  opacity: 1;
}

html.smartolt-night .help-block {
  color: #a8b8cc;
}

/* Checkboxes & radios — app-wide (incl. disabled) */
html.smartolt-night body.smartolt-site .checkbox label,
html.smartolt-night body.smartolt-site .radio label,
html.smartolt-night body.smartolt-site .checkbox-inline,
html.smartolt-night body.smartolt-site .radio-inline {
  color: #e2e8f0;
}

html.smartolt-night body.smartolt-site input[type="checkbox"],
html.smartolt-night body.smartolt-site input[type="radio"] {
  accent-color: #3b82f6;
}

html.smartolt-night body.smartolt-site .checkbox input[type="checkbox"],
html.smartolt-night body.smartolt-site .checkbox-inline input[type="checkbox"],
html.smartolt-night body.smartolt-site .radio input[type="radio"],
html.smartolt-night body.smartolt-site .radio-inline input[type="radio"] {
  accent-color: #3b82f6;
}

html.smartolt-night body.smartolt-site .checkbox input[type="checkbox"]:disabled,
html.smartolt-night body.smartolt-site .checkbox-inline input[type="checkbox"]:disabled,
html.smartolt-night body.smartolt-site .radio input[type="radio"]:disabled,
html.smartolt-night body.smartolt-site .radio-inline input[type="radio"]:disabled,
html.smartolt-night body.smartolt-site input[type="checkbox"]:disabled,
html.smartolt-night body.smartolt-site input[type="checkbox"][disabled],
html.smartolt-night body.smartolt-site input[type="radio"]:disabled,
html.smartolt-night body.smartolt-site input[type="radio"][disabled],
html.smartolt-night body.smartolt-site fieldset[disabled] input[type="checkbox"],
html.smartolt-night body.smartolt-site fieldset[disabled] input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.34);
  border-radius: 3px;
  box-shadow: none;
  cursor: not-allowed;
  height: 16px;
  opacity: 1;
  width: 16px;
}

html.smartolt-night body.smartolt-site .radio input[type="radio"]:disabled,
html.smartolt-night body.smartolt-site .radio-inline input[type="radio"]:disabled,
html.smartolt-night body.smartolt-site input[type="radio"]:disabled,
html.smartolt-night body.smartolt-site input[type="radio"][disabled],
html.smartolt-night body.smartolt-site fieldset[disabled] input[type="radio"] {
  border-radius: 50%;
}

html.smartolt-night body.smartolt-site .checkbox input[type="checkbox"]:disabled:checked,
html.smartolt-night body.smartolt-site .checkbox-inline input[type="checkbox"]:disabled:checked,
html.smartolt-night body.smartolt-site input[type="checkbox"]:disabled:checked,
html.smartolt-night body.smartolt-site input[type="checkbox"][disabled]:checked,
html.smartolt-night body.smartolt-site fieldset[disabled] input[type="checkbox"]:checked {
  background: rgba(100, 116, 139, 0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23e2e8f0'%3E%3Cpath d='M12.2 4.2 6.8 10.3 3.8 7.3l-1.3 1.4 4.3 4.2 6.7-7.5z'/%3E%3C/svg%3E") center/11px no-repeat;
  border-color: rgba(148, 163, 184, 0.58);
}

html.smartolt-night body.smartolt-site .radio input[type="radio"]:disabled:checked,
html.smartolt-night body.smartolt-site .radio-inline input[type="radio"]:disabled:checked,
html.smartolt-night body.smartolt-site input[type="radio"]:disabled:checked,
html.smartolt-night body.smartolt-site input[type="radio"][disabled]:checked,
html.smartolt-night body.smartolt-site fieldset[disabled] input[type="radio"]:checked {
  background: rgba(100, 116, 139, 0.55);
  border-color: rgba(148, 163, 184, 0.58);
  box-shadow: inset 0 0 0 3px rgba(15, 23, 42, 0.92);
}

html.smartolt-night body.smartolt-site .checkbox.disabled label,
html.smartolt-night body.smartolt-site .radio.disabled label,
html.smartolt-night body.smartolt-site .checkbox-inline.disabled,
html.smartolt-night body.smartolt-site .radio-inline.disabled,
html.smartolt-night body.smartolt-site fieldset[disabled] .checkbox label,
html.smartolt-night body.smartolt-site fieldset[disabled] .radio label,
html.smartolt-night body.smartolt-site fieldset[disabled] .checkbox-inline,
html.smartolt-night body.smartolt-site fieldset[disabled] .radio-inline {
  color: rgba(255, 255, 255, 0.48);
  cursor: not-allowed;
}

html.smartolt-night body.smartolt-site .btn.disabled,
html.smartolt-night body.smartolt-site .btn[disabled],
html.smartolt-night body.smartolt-site fieldset[disabled] .btn {
  background: rgba(255, 255, 255, 0.06) !important;
  background-image: none !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, 0.38) !important;
  cursor: not-allowed;
  opacity: 1;
  pointer-events: none;
  text-shadow: none;
}

html.smartolt-night body.smartolt-site .btn-primary.disabled,
html.smartolt-night body.smartolt-site .btn-primary[disabled],
html.smartolt-night body.smartolt-site .btn-success.disabled,
html.smartolt-night body.smartolt-site .btn-success[disabled],
html.smartolt-night body.smartolt-site .btn-danger.disabled,
html.smartolt-night body.smartolt-site .btn-danger[disabled] {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: rgba(255, 255, 255, 0.38) !important;
}

html.smartolt-night body.smartolt-site select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: rgba(255, 255, 255, 0.06);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23cbd5e1' d='M2 4.5L6 8.5L10 4.5'/%3E%3C/svg%3E");
  background-position: right 10px center;
  background-repeat: no-repeat;
  color-scheme: dark;
  padding-right: 30px;
}

html.smartolt-night body.smartolt-site select.form-control option,
html.smartolt-night body.smartolt-site select.form-control optgroup {
  background: #0b1528;
  color: #e2e8f0;
}

html.smartolt-night body.smartolt-site select.form-control option:disabled,
html.smartolt-night body.smartolt-site select.form-control option[disabled] {
  background: #0b1528;
  color: #64748b;
}

/* File inputs — Choose file button + filename area */
html.smartolt-night body.smartolt-site input[type="file"],
html.smartolt-night .modal input[type="file"],
html.smartolt-night .onu-ui-modal input[type="file"] {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.75);
  color-scheme: dark;
  font-size: 14px;
  line-height: 1.4;
  max-width: 100%;
  padding: 6px 8px 6px 0;
}

html.smartolt-night body.smartolt-site input[type="file"]:focus,
html.smartolt-night .modal input[type="file"]:focus,
html.smartolt-night .onu-ui-modal input[type="file"]:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
  outline: none;
}

html.smartolt-night body.smartolt-site input[type="file"]::file-selector-button,
html.smartolt-night .modal input[type="file"]::file-selector-button,
html.smartolt-night .onu-ui-modal input[type="file"]::file-selector-button,
html.smartolt-night body.smartolt-site input[type="file"]::-webkit-file-upload-button,
html.smartolt-night .modal input[type="file"]::-webkit-file-upload-button,
html.smartolt-night .onu-ui-modal input[type="file"]::-webkit-file-upload-button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: #e2e8f0;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  margin-right: 10px;
  padding: 7px 14px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

html.smartolt-night body.smartolt-site input[type="file"]::file-selector-button:hover,
html.smartolt-night .modal input[type="file"]::file-selector-button:hover,
html.smartolt-night .onu-ui-modal input[type="file"]::file-selector-button:hover,
html.smartolt-night body.smartolt-site input[type="file"]::-webkit-file-upload-button:hover,
html.smartolt-night .modal input[type="file"]::-webkit-file-upload-button:hover,
html.smartolt-night .onu-ui-modal input[type="file"]::-webkit-file-upload-button:hover {
  background: rgba(29, 139, 255, 0.22);
  border-color: rgba(59, 130, 246, 0.45);
  color: #fff;
}

html.smartolt-night body.smartolt-site input[type="file"]::file-selector-button:active,
html.smartolt-night .modal input[type="file"]::file-selector-button:active,
html.smartolt-night .onu-ui-modal input[type="file"]::file-selector-button:active,
html.smartolt-night body.smartolt-site input[type="file"]::-webkit-file-upload-button:active,
html.smartolt-night .modal input[type="file"]::-webkit-file-upload-button:active,
html.smartolt-night .onu-ui-modal input[type="file"]::-webkit-file-upload-button:active {
  background: rgba(29, 139, 255, 0.3);
  border-color: rgba(59, 130, 246, 0.55);
  color: #fff;
}

html.smartolt-night body.smartolt-site label,
html.smartolt-night body.smartolt-site .control-label {
  color: #cbd5e1;
}

html.smartolt-night body.smartolt-site h1,
html.smartolt-night body.smartolt-site h2,
html.smartolt-night body.smartolt-site h3,
html.smartolt-night body.smartolt-site h4 {
  color: #f1f5f9;
}

html.smartolt-night body.smartolt-site .alert-success {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.35);
  color: #86efac;
}

html.smartolt-night body.smartolt-site .alert-danger {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

html.smartolt-night body.smartolt-site .alert-warning {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fcd34d;
}

html.smartolt-night body.smartolt-site .alert-info {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.35);
  color: #93c5fd;
}

html.smartolt-night body.smartolt-site .alert-link {
  color: #93c5fd;
}

html.smartolt-night body.smartolt-site .btn-default {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

html.smartolt-night body.smartolt-site .btn-default:hover,
html.smartolt-night body.smartolt-site .btn-default:focus {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

html.smartolt-night body.smartolt-site .btn-default:active:not(.disabled):not([disabled]),
html.smartolt-night body.smartolt-site .btn-default.active:not(.disabled):not([disabled]),
html.smartolt-night body.smartolt-site .open > .dropdown-toggle.btn-default {
  background: rgba(255, 255, 255, 0.22) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.22) !important;
  color: #fff !important;
  outline: none !important;
}

/* Colored action buttons — crisp white labels on dark UI */
html.smartolt-night body.smartolt-site .btn-success,
html.smartolt-night body.smartolt-site .btn-primary,
html.smartolt-night body.smartolt-site .btn-danger,
html.smartolt-night body.smartolt-site .btn-warning,
html.smartolt-night body.smartolt-site .btn-info,
html.smartolt-night body.smartolt-site .btn-yellow {
  color: #fff !important;
  font-weight: 600;
  text-shadow: none;
}

/* Blue/green action buttons — same hit area as bootstrap-custom .btn (LIVE on ONU view).
   ONU .status_buttons had been forced to 14px and looked smaller than LIVE. */
html.smartolt-night body.smartolt-site .btn-success:not(.btn-sm):not(.btn-xs):not(.btn-link),
html.smartolt-night body.smartolt-site .btn-info:not(.btn-sm):not(.btn-xs):not(.btn-link) {
  font-size: 15px;
  line-height: 1.42857143;
  padding: 10px 15px;
}

html.smartolt-night body.smartolt-site .btn-success:hover,
html.smartolt-night body.smartolt-site .btn-success:focus,
html.smartolt-night body.smartolt-site .btn-primary:hover,
html.smartolt-night body.smartolt-site .btn-primary:focus,
html.smartolt-night body.smartolt-site .btn-danger:hover,
html.smartolt-night body.smartolt-site .btn-danger:focus,
html.smartolt-night body.smartolt-site .btn-warning:hover,
html.smartolt-night body.smartolt-site .btn-warning:focus,
html.smartolt-night body.smartolt-site .btn-info:hover,
html.smartolt-night body.smartolt-site .btn-info:focus,
html.smartolt-night body.smartolt-site .btn-yellow:hover,
html.smartolt-night body.smartolt-site .btn-yellow:focus {
  color: #fff !important;
  text-shadow: none;
}

html.smartolt-night body.smartolt-site .btn-success {
  background-color: #0064c8 !important;
  border-color: #0064c8 !important;
}

html.smartolt-night body.smartolt-site .btn-success:hover,
html.smartolt-night body.smartolt-site .btn-success:focus {
  background-color: #0054a9 !important;
  border-color: #0054a9 !important;
}

html.smartolt-night body.smartolt-site .btn-primary {
  background-color: #45b942 !important;
  border-color: #45b942 !important;
}

html.smartolt-night body.smartolt-site .btn-primary:hover,
html.smartolt-night body.smartolt-site .btn-primary:focus {
  background-color: #3aa838 !important;
  border-color: #3aa838 !important;
}

html.smartolt-night body.smartolt-site .btn-danger {
  background-color: #ef4444 !important;
  border-color: #ef4444 !important;
}

html.smartolt-night body.smartolt-site .btn-danger:hover,
html.smartolt-night body.smartolt-site .btn-danger:focus {
  background-color: #dc2626 !important;
  border-color: #dc2626 !important;
}

html.smartolt-night body.smartolt-site .btn-warning {
  background-color: #f39c12 !important;
  border-color: #f39c12 !important;
}

html.smartolt-night body.smartolt-site .btn-warning:hover,
html.smartolt-night body.smartolt-site .btn-warning:focus {
  background-color: #c87f0a !important;
  border-color: #c87f0a !important;
}

html.smartolt-night body.smartolt-site .btn-info {
  background-color: #3498db !important;
  border-color: #3498db !important;
}

html.smartolt-night body.smartolt-site .btn-info:hover,
html.smartolt-night body.smartolt-site .btn-info:focus {
  background-color: #217dbb !important;
  border-color: #217dbb !important;
}

html.smartolt-night body.smartolt-site .btn-yellow {
  background-color: #ffcc00 !important;
  border-color: #ffcc00 !important;
}

html.smartolt-night body.smartolt-site .btn-yellow:hover,
html.smartolt-night body.smartolt-site .btn-yellow:focus {
  background-color: #cca300 !important;
  border-color: #cca300 !important;
}

html.smartolt-night body.smartolt-site .btn-success:active:not(.disabled):not([disabled]),
html.smartolt-night body.smartolt-site .btn-success.active:not(.disabled):not([disabled]) {
  background-color: #004488 !important;
  border-color: #004488 !important;
  box-shadow: none !important;
  opacity: 1;
}

html.smartolt-night body.smartolt-site .btn-success.active:not(.disabled):not([disabled]):hover,
html.smartolt-night body.smartolt-site .btn-success.active:not(.disabled):not([disabled]):focus {
  background-color: #003d7a !important;
  border-color: #003d7a !important;
  color: #fff !important;
}

html.smartolt-night body.smartolt-site .btn-primary:active:not(.disabled):not([disabled]) {
  background-color: #318732 !important;
  border-color: #318732 !important;
  box-shadow: none !important;
}

html.smartolt-night body.smartolt-site .btn-danger:active:not(.disabled):not([disabled]) {
  background-color: #b91c1c !important;
  border-color: #b91c1c !important;
  box-shadow: none !important;
}

html.smartolt-night body.smartolt-site .btn-warning:active:not(.disabled):not([disabled]),
html.smartolt-night body.smartolt-site .btn-warning.active:not(.disabled):not([disabled]) {
  background-color: #a66908 !important;
  border-color: #a66908 !important;
  box-shadow: none !important;
}

html.smartolt-night body.smartolt-site .btn-info:active:not(.disabled):not([disabled]),
html.smartolt-night body.smartolt-site .btn-info.active:not(.disabled):not([disabled]) {
  background-color: #1c699d !important;
  border-color: #1c699d !important;
  box-shadow: none !important;
}

html.smartolt-night body.smartolt-site .btn-yellow:active:not(.disabled):not([disabled]),
html.smartolt-night body.smartolt-site .btn-yellow.active:not(.disabled):not([disabled]) {
  background-color: #cca300 !important;
  border-color: #cca300 !important;
  box-shadow: none !important;
}

html.smartolt-night body.smartolt-site .btn:active,
html.smartolt-night body.smartolt-site .btn.active,
html.smartolt-night body.smartolt-site .btn:active:focus,
html.smartolt-night body.smartolt-site .btn.active:focus {
  outline: none !important;
}

html.smartolt-night body.smartolt-site .btn .fa,
html.smartolt-night body.smartolt-site .btn .glyphicon {
  text-shadow: none;
}

/* Pagination — list pages + filter chips (diagnostics etc.) */
html.smartolt-night body.smartolt-site .pagination > li > a,
html.smartolt-night body.smartolt-site .pagination > li > span {
  background-color: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #e2e8f0 !important;
}

html.smartolt-night body.smartolt-site .pagination > li > a:hover,
html.smartolt-night body.smartolt-site .pagination > li > a:focus,
html.smartolt-night body.smartolt-site .pagination > li > span:hover,
html.smartolt-night body.smartolt-site .pagination > li > span:focus {
  background-color: rgba(29, 139, 255, 0.18) !important;
  border-color: rgba(29, 139, 255, 0.35) !important;
  color: #fff !important;
}

html.smartolt-night body.smartolt-site .pagination > .active > a,
html.smartolt-night body.smartolt-site .pagination > .active > span,
html.smartolt-night body.smartolt-site .pagination > .active > a:hover,
html.smartolt-night body.smartolt-site .pagination > .active > span:hover,
html.smartolt-night body.smartolt-site .pagination > .active > a:focus,
html.smartolt-night body.smartolt-site .pagination > .active > span:focus,
html.smartolt-night body.smartolt-site .pagination > li.active > a,
html.smartolt-night body.smartolt-site .pagination > li.active > span {
  background-color: rgba(29, 139, 255, 0.28) !important;
  border-color: rgba(29, 139, 255, 0.45) !important;
  color: #fff !important;
}

html.smartolt-night body.smartolt-site .pagination > .disabled > a,
html.smartolt-night body.smartolt-site .pagination > .disabled > span,
html.smartolt-night body.smartolt-site .pagination > .disabled > a:hover,
html.smartolt-night body.smartolt-site .pagination > .disabled > span:hover,
html.smartolt-night body.smartolt-site .pagination > .disabled > a:focus,
html.smartolt-night body.smartolt-site .pagination > .disabled > span:focus {
  background-color: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.35) !important;
}

html.smartolt-night body.smartolt-site .pon-type-filter .pagination > li > span {
  border-radius: 6px;
}

html.smartolt-night body.smartolt-site .list-group-item {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

html.smartolt-night body.smartolt-site a.list-group-item:hover,
html.smartolt-night body.smartolt-site a.list-group-item:focus {
  background: rgba(29, 139, 255, 0.12);
  color: #fff;
}

/* Auth users — top action links on /auth */
html.smartolt-night body.smartolt-site .content-wrap > .margin-bottom.margin-top:has(> a[href*="auth/create_user"]),
html.smartolt-night body.smartolt-site .content-wrap > .margin-bottom.margin-top:has(> a[href*="auth/user_changes_logs"]) {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

html.smartolt-night body.smartolt-site .content-wrap > .margin-bottom.margin-top:has(> a[href*="auth/create_user"]) > a.btn-link,
html.smartolt-night body.smartolt-site .content-wrap > .margin-bottom.margin-top:has(> a[href*="auth/user_changes_logs"]) > a.btn-link {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 6px;
  color: #dbeafe;
  display: inline-flex;
  gap: 6px;
  line-height: 1.42857143;
  padding: 8px 12px;
  text-decoration: none;
}

html.smartolt-night body.smartolt-site .content-wrap > .margin-bottom.margin-top:has(> a[href*="auth/create_user"]) > a.btn-link:hover,
html.smartolt-night body.smartolt-site .content-wrap > .margin-bottom.margin-top:has(> a[href*="auth/create_user"]) > a.btn-link:focus,
html.smartolt-night body.smartolt-site .content-wrap > .margin-bottom.margin-top:has(> a[href*="auth/user_changes_logs"]) > a.btn-link:hover,
html.smartolt-night body.smartolt-site .content-wrap > .margin-bottom.margin-top:has(> a[href*="auth/user_changes_logs"]) > a.btn-link:focus {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(147, 197, 253, 0.42);
  color: #eff6ff;
  text-decoration: none;
}

html.smartolt-night body.smartolt-site .content-wrap > .margin-bottom.margin-top:has(> a[href*="auth/create_user"]) > a.btn-link .glyphicon,
html.smartolt-night body.smartolt-site .content-wrap > .margin-bottom.margin-top:has(> a[href*="auth/user_changes_logs"]) > a.btn-link .glyphicon {
  color: #93c5fd;
  top: 0;
}

/* OLT View — main tabs + IP pool sub-pills */
html.smartolt-night body.smartolt-site .nav-tabs {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

html.smartolt-night body.smartolt-site .nav-tabs > li > a {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px 6px 0 0;
  color: rgba(255, 255, 255, 0.62);
  margin-right: 2px;
}

html.smartolt-night body.smartolt-site .nav-tabs > li > a:hover,
html.smartolt-night body.smartolt-site .nav-tabs > li > a:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

html.smartolt-night body.smartolt-site .nav-tabs > li.active > a,
html.smartolt-night body.smartolt-site .nav-tabs > li.active > a:hover,
html.smartolt-night body.smartolt-site .nav-tabs > li.active > a:focus {
  background: rgba(0, 100, 200, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-bottom-color: transparent;
  box-shadow: inset 0 2px 0 #0064c8;
  color: #f1f5f9;
}

/* OLT View — ACL tab diagram + description */
html.smartolt-night body.smartolt-site #acl > .col-xs-12 > .col-xs-12 > span,
html.smartolt-night body.smartolt-site .acl-diagram-wrap {
  color: rgba(255, 255, 255, 0.72);
}

html.smartolt-night body.smartolt-site #acl > .col-xs-12 > .col-xs-12 > span {
  display: block;
  line-height: 1.55;
  margin-top: 4px;
}

/* Layout (not color) applies to both themes so the ACL diagram is centered
   consistently; light theme would otherwise fall back to .img-responsive
   (display:block) and left-align. */
body.smartolt-site .acl-diagram-wrap {
  margin-top: 16px;
  padding: 0 0 8px;
}

body.smartolt-site .acl-diagram {
  display: inline-block;
  margin: 0 auto;
  max-width: min(100%, 920px);
}

html.smartolt-night body.smartolt-site #acl h4 {
  color: #e2e8f0;
}

/* Configured ONU — batch actions panel */
html.smartolt-night body.smartolt-site #batch-actions-container .panel-title a,
html.smartolt-night body.smartolt-site #batch-actions-container .panel-title strong {
  color: #e2e8f0 !important;
}

html.smartolt-night body.smartolt-site #batch-actions-container .panel-title a:hover,
html.smartolt-night body.smartolt-site #batch-actions-container .panel-title a:focus {
  color: #fff !important;
}

html.smartolt-night body.smartolt-site #batch-actions-container .batch-action-row,
html.smartolt-night body.smartolt-site #batch-actions-container .batch-actions-list + .batch-action-row,
html.smartolt-night body.smartolt-site #batch-actions-container .batch-action-link {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html.smartolt-night body.smartolt-site #batch-actions-container .batch-action-link,
html.smartolt-night body.smartolt-site #batch-actions-container .batch-action-collapsible .batch-action-row-title {
  color: #e2e8f0 !important;
}

html.smartolt-night body.smartolt-site #batch-actions-container .batch-action-link:hover,
html.smartolt-night body.smartolt-site #batch-actions-container .batch-action-collapsible .batch-action-row-title:hover,
html.smartolt-night body.smartolt-site #batch-actions-container .batch-action-collapsible .batch-action-row-title:focus {
  background-color: rgba(255, 255, 255, 0.06) !important;
  color: #8cc8ff !important;
}

html.smartolt-night body.smartolt-site #batch-actions-container .batch-action-row-content label {
  color: #cbd5e1 !important;
}

html.smartolt-night body.smartolt-site #batch-actions-container .batch-action-link.text-danger,
html.smartolt-night body.smartolt-site #batch-actions-container .batch-action-label.text-danger,
html.smartolt-night body.smartolt-site #batch-actions-container label.text-danger {
  color: #fca5a5 !important;
}

html.smartolt-night body.smartolt-site #batch-actions-container .batch-action-link.text-danger:hover {
  color: #f87171 !important;
}

html.smartolt-night body.smartolt-site #batch-actions-container .batch-action-link.batch-action-disabled,
html.smartolt-night body.smartolt-site #batch-actions-container .batch-action-link.batch-action-disabled:hover {
  background-color: transparent !important;
  color: rgba(255, 255, 255, 0.35) !important;
}

html.smartolt-night body.smartolt-site #batch-actions-container .batch-action-olt-msg,
html.smartolt-night body.smartolt-site #batch-actions-container .batch-action-help,
html.smartolt-night body.smartolt-site #batch-actions-container .olt-required-msg {
  color: rgba(255, 255, 255, 0.52) !important;
}

/* Move-ONUs batch action: the light theme uses #fafafa/#fff/#f5f5f5 boxes for the
   destination panel and the per-PON map grid, which render as a white island in night.
   Mirror them onto the slate/translucent-white night palette. */
html.smartolt-night body.smartolt-site #batch-actions-container .batch-move-destination {
  background-color: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
html.smartolt-night body.smartolt-site #batch-actions-container #batch-action-move .batch-move-destination label {
  color: #cbd5e1 !important;
}
html.smartolt-night body.smartolt-site #batch-actions-container .batch-move-map {
  border-color: rgba(255, 255, 255, 0.1) !important;
}
html.smartolt-night body.smartolt-site #batch-actions-container .batch-move-map-head {
  background-color: rgba(255, 255, 255, 0.06) !important;
  color: #cbd5e1 !important;
}
html.smartolt-night body.smartolt-site #batch-actions-container .batch-move-map-row {
  background-color: transparent !important;
  border-top-color: rgba(255, 255, 255, 0.08) !important;
  color: #e2e8f0 !important;
}
html.smartolt-night body.smartolt-site #batch-actions-container .batch-move-source-meta {
  color: rgba(255, 255, 255, 0.52) !important;
}

html.smartolt-night body.smartolt-site #batch-actions-container #active-batch-tasks {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html.smartolt-night body.smartolt-site #batch-actions-container .batch-tasks-table th {
  background-color: rgba(255, 255, 255, 0.06) !important;
  color: rgba(255, 255, 255, 0.62) !important;
}

html.smartolt-night body.smartolt-site #batch-actions-container .batch-tasks-table .task-progress .progress-text {
  color: #e2e8f0 !important;
}

html.smartolt-night body.smartolt-site #batch-actions-count.badge-primary,
html.smartolt-night body.smartolt-site #batch-actions-container .badge-primary {
  background-color: rgba(59, 130, 246, 0.35) !important;
  color: #bfdbfe !important;
}

html.smartolt-night body.smartolt-site #batch-actions-container hr {
  border-top-color: rgba(255, 255, 255, 0.12) !important;
}

html.smartolt-night body.smartolt-site #batch-actions-container .progress,
html.smartolt-night body.smartolt-site #batch-actions-container .progress-sm {
  background-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: none;
}

html.smartolt-night body.smartolt-site #batch-actions-container .task-progress-bar .progress-bar-success,
html.smartolt-night body.smartolt-site #batch-actions-container .progress-bar-success {
  background-color: #22c55e !important;
}

html.smartolt-night body.smartolt-site #batch-actions-container .task-progress-bar .progress-bar-danger,
html.smartolt-night body.smartolt-site #batch-actions-container .progress-bar-danger {
  background-color: #ef4444 !important;
}

/* Select / multiselect — flex layout so caret stays visible (day + night) */
body.smartolt-site .multiselect-native-select .btn-group,
body.smartolt-site .btn-group.full-width,
body.smartolt-site .btn-group:has(> .multiselect),
body.smartolt-site .btn-group:has(> button.multiselect) {
  overflow: visible !important;
}

body.smartolt-site .btn-group .multiselect.dropdown-toggle,
body.smartolt-site button.multiselect.dropdown-toggle,
body.smartolt-site div.multiselect.dropdown-toggle {
  align-items: center;
  box-sizing: border-box;
  display: flex !important;
  gap: 8px;
  height: 45px;
  line-height: 1.42857143;
  overflow: visible;
  padding: 10px 12px !important;
  position: relative;
  width: 100%;
}

body.smartolt-site .multiselect-selected-text {
  flex: 1 1 auto;
  align-items: center;
  display: block;
  line-height: 1.42857143;
  margin: 0 !important;
  max-width: none !important;
  min-height: 1.42857143em;
  min-width: 0;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: auto !important;
}

body.smartolt-site .multiselect.dropdown-toggle .caret,
body.smartolt-site button.multiselect .caret {
  flex: 0 0 auto;
  margin: 0 !important;
  position: static !important;
  top: auto !important;
  transform: none;
}

/* Compact selects — input-sm, batch actions only (reports/tasks uses full height below) */
body.smartolt-site select.form-control.input-sm,
body.smartolt-site select.form-control.form-control-sm,
body.smartolt-site #batch-actions-container .multiselect.dropdown-toggle,
body.smartolt-site #batch-actions-container button.multiselect.dropdown-toggle,
body.smartolt-site .multiselect.input-sm,
body.smartolt-site button.multiselect.input-sm {
  gap: 6px;
  height: 30px;
  line-height: 18px;
  padding: 6px 10px !important;
}

body.smartolt-site select.form-control.input-sm,
body.smartolt-site select.form-control.form-control-sm {
  /* 6px padding + 18px line-height left only a ~14px content box, clipping
     option descenders (g, j, p, y) at the bottom border — fully in light mode,
     partially in night appearance:none. 3px padding gives a 20px content box.
     !important overrides the 6px !important on the shared rule above. */
  padding: 3px 30px 3px 10px !important;
  line-height: 1.2;
}

html.smartolt-night body.smartolt-site select.form-control.input-sm,
html.smartolt-night body.smartolt-site select.form-control.form-control-sm {
  padding: 3px 30px 3px 10px !important;
}

body.smartolt-site .multiselect.input-sm .multiselect-selected-text,
body.smartolt-site #batch-actions-container .multiselect-selected-text {
  line-height: 18px;
  min-height: 18px;
}

/* Reports / Tasks / Info — full-size filters (match Configured WAN mode /
   native selects); overrides input-sm so these pages aren't shorter than the
   rest. */
body.smartolt-site form.tasks select.form-control,
body.smartolt-site form.tasks input.form-control,
body.smartolt-site form.tasks .btn-group .multiselect.dropdown-toggle,
body.smartolt-site form.tasks button.multiselect.dropdown-toggle,
body.smartolt-site form.tasks div.multiselect.dropdown-toggle,
body.smartolt-site form.info select.form-control,
body.smartolt-site form.info input.form-control,
body.smartolt-site form.info .btn-group .multiselect.dropdown-toggle,
body.smartolt-site form.info button.multiselect.dropdown-toggle,
body.smartolt-site form.info div.multiselect.dropdown-toggle {
  box-sizing: border-box;
  font-size: 15px;
  height: 45px !important;
  line-height: 1.42857143;
  min-height: 45px;
  padding: 10px 15px !important;
}

body.smartolt-site form.tasks .btn-group .multiselect.dropdown-toggle,
body.smartolt-site form.tasks button.multiselect.dropdown-toggle,
body.smartolt-site form.tasks div.multiselect.dropdown-toggle {
  align-items: center;
  display: flex !important;
}

body.smartolt-site form.tasks .multiselect-selected-text {
  line-height: 1.42857143;
  min-height: 1.42857143em;
}

body.smartolt-site form.tasks .btn-group.input-190,
body.smartolt-site form.tasks .btn-group.input-100 {
  vertical-align: middle;
}

/* Configured / Diagnostics filter bar — keep multiselect toggles same height as native selects */
body.smartolt-site .form-inline.configured .filters-row select.form-control:not(.input-sm),
body.smartolt-site .form-inline.configured #more-filters-section select.form-control:not(.input-sm),
body.smartolt-site .form-inline.configured #svlan-cvlan-filters-row select.form-control:not(.input-sm),
body.smartolt-site .form-inline.configured .filters-row .multiselect.dropdown-toggle,
body.smartolt-site .form-inline.configured .filters-row button.multiselect.dropdown-toggle,
body.smartolt-site .form-inline.configured .filters-row div.multiselect.dropdown-toggle,
body.smartolt-site .form-inline.configured #more-filters-section .multiselect.dropdown-toggle,
body.smartolt-site .form-inline.configured #more-filters-section button.multiselect.dropdown-toggle,
body.smartolt-site .form-inline.configured #more-filters-section div.multiselect.dropdown-toggle,
body.smartolt-site .form-inline.configured #svlan-cvlan-filters-row .multiselect.dropdown-toggle,
body.smartolt-site .form-inline.configured #svlan-cvlan-filters-row button.multiselect.dropdown-toggle,
body.smartolt-site .form-inline.configured #svlan-cvlan-filters-row div.multiselect.dropdown-toggle {
  box-sizing: border-box;
  font-size: 15px;
  height: 45px !important;
  line-height: 1.42857143;
  min-height: 45px;
  padding: 10px 15px !important;
}

body.smartolt-site .form-inline.configured .filters-row .multiselect.dropdown-toggle,
body.smartolt-site .form-inline.configured .filters-row button.multiselect.dropdown-toggle,
body.smartolt-site .form-inline.configured .filters-row div.multiselect.dropdown-toggle,
body.smartolt-site .form-inline.configured #more-filters-section .multiselect.dropdown-toggle,
body.smartolt-site .form-inline.configured #more-filters-section button.multiselect.dropdown-toggle,
body.smartolt-site .form-inline.configured #more-filters-section div.multiselect.dropdown-toggle,
body.smartolt-site .form-inline.configured #svlan-cvlan-filters-row .multiselect.dropdown-toggle,
body.smartolt-site .form-inline.configured #svlan-cvlan-filters-row button.multiselect.dropdown-toggle,
body.smartolt-site .form-inline.configured #svlan-cvlan-filters-row div.multiselect.dropdown-toggle {
  align-items: center;
  display: flex !important;
}

body.smartolt-site .form-inline.configured .filters-row .multiselect-selected-text,
body.smartolt-site .form-inline.configured #more-filters-section .multiselect-selected-text,
body.smartolt-site .form-inline.configured #svlan-cvlan-filters-row .multiselect-selected-text {
  line-height: 1.42857143;
  min-height: 1.42857143em;
}

/* Night mode — multiselect toggles & dropdown lists (filters, batch actions, etc.) */
html.smartolt-night body.smartolt-site .multiselect.dropdown-toggle,
html.smartolt-night body.smartolt-site button.multiselect.dropdown-toggle {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: none !important;
  color: #f1f5f9 !important;
}

html.smartolt-night body.smartolt-site .btn-group.open .multiselect.dropdown-toggle,
html.smartolt-night body.smartolt-site .btn-group.open button.multiselect.dropdown-toggle {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2) !important;
}

html.smartolt-night body.smartolt-site .multiselect.dropdown-toggle .caret,
html.smartolt-night body.smartolt-site button.multiselect .caret {
  border-top-color: rgba(255, 255, 255, 0.55);
}

html.smartolt-night body.smartolt-site .multiselect-selected-text {
  color: #f1f5f9;
}

html.smartolt-night body.smartolt-site .multiselect-container.dropdown-menu {
  background: #0b1528 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 8px !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45) !important;
}

html.smartolt-night body.smartolt-site .multiselect-container.dropdown-menu > li > a {
  color: #e2e8f0;
  padding: 0 !important;
}

html.smartolt-night body.smartolt-site .multiselect-container.dropdown-menu > li > a > label {
  color: inherit;
  cursor: pointer;
  display: block;
  font-weight: 400;
  margin: 0;
  padding: 8px 16px 8px 38px !important;
}

html.smartolt-night body.smartolt-site .multiselect-container.dropdown-menu > li > a > label > input[type="checkbox"],
html.smartolt-night body.smartolt-site .multiselect-container.dropdown-menu > li > a > label > input[type="radio"] {
  accent-color: #3b82f6;
  margin-left: -20px;
  margin-right: 8px;
  vertical-align: middle;
}

html.smartolt-night body.smartolt-site .multiselect-container > li.multiselect-all > a > label {
  font-weight: 600;
}

html.smartolt-night body.smartolt-site .multiselect-container > li.multiselect-group > a > label {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
  padding: 6px 16px !important;
}

html.smartolt-night body.smartolt-site .multiselect-container.dropdown-menu > li > a:hover,
html.smartolt-night body.smartolt-site .multiselect-container.dropdown-menu > li > a:focus,
html.smartolt-night body.smartolt-site .multiselect-container.dropdown-menu > li.active > a {
  background: rgba(29, 139, 255, 0.18) !important;
  color: #fff !important;
}

/* Page-level (non-modal) multiselect filter/search row — same treatment as the modal version above */
html.smartolt-night body.smartolt-site .multiselect-container .multiselect-filter {
  padding: 8px 10px 6px !important;
}

html.smartolt-night body.smartolt-site .multiselect-container .multiselect-filter .input-group {
  width: 100%;
}

html.smartolt-night body.smartolt-site .multiselect-container .input-group-addon {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: rgba(255, 255, 255, 0.55) !important;
}

html.smartolt-night body.smartolt-site .multiselect-container .multiselect-search {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #f1f5f9 !important;
}

html.smartolt-night body.smartolt-site .multiselect-container .multiselect-search:focus {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: #3b82f6 !important;
  box-shadow: none !important;
  color: #fff !important;
}

html.smartolt-night body.smartolt-site .multiselect-container .multiselect-search::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

html.smartolt-night body.smartolt-site .multiselect-container .multiselect-clear-filter {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

html.smartolt-night body.smartolt-site .multiselect-container .multiselect-clear-filter:hover,
html.smartolt-night body.smartolt-site .multiselect-container .multiselect-clear-filter:focus {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
}

html.smartolt-night body.smartolt-site form.tasks .text-blue,
html.smartolt-night body.smartolt-site #tasks_list .text-blue {
  color: #7ec3ff !important;
}

/* Unconfigured ONU — auto-actions panel */
html.smartolt-night body.smartolt-site #accordion_tasks .panel-title a {
  color: #e2e8f0 !important;
}

html.smartolt-night body.smartolt-site #accordion_tasks .panel-title a:hover,
html.smartolt-night body.smartolt-site #accordion_tasks .panel-title a:focus {
  color: #fff !important;
}

html.smartolt-night body.smartolt-site #accordion_tasks #active-tasks-container .table th {
  background-color: rgba(255, 255, 255, 0.06) !important;
  color: rgba(255, 255, 255, 0.62) !important;
}

html.smartolt-night body.smartolt-site #accordion_tasks .active-tasks-refresh-hint {
  color: rgba(255, 255, 255, 0.52) !important;
}

html.smartolt-night body.smartolt-site #accordion_tasks .progress,
html.smartolt-night body.smartolt-site #accordion_tasks .task-progress-bar {
  background-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: none;
}

html.smartolt-night body.smartolt-site #accordion_tasks .task-progress-bar .progress-bar-success {
  background-color: #22c55e !important;
}

html.smartolt-night body.smartolt-site #accordion_tasks .task-progress-bar .progress-bar-danger {
  background-color: #ef4444 !important;
}

html.smartolt-night body.smartolt-site #accordion_tasks .label-green {
  background-color: rgba(34, 197, 94, 0.25) !important;
  color: #86efac !important;
}

html.smartolt-night body.smartolt-site #accordion_tasks .text-green {
  color: #86efac !important;
}

html.smartolt-night body.smartolt-site #accordion_tasks .text-red {
  color: #fca5a5 !important;
}

html.smartolt-night body.smartolt-site .more-filters-panel {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html.smartolt-night body.smartolt-site .more-filters-toggle-row a {
  color: #8cc8ff !important;
}

html.smartolt-night body.smartolt-site .more-filters-toggle-row a:hover {
  color: #bfdbfe !important;
}

html.smartolt-night body.smartolt-site #onu_configured_list .onu-copy-cell:hover {
  background-color: rgba(59, 130, 246, 0.18);
}

html.smartolt-night body.smartolt-site .smartolt-copy-flash {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45) !important;
  color: #86efac !important;
}

/* Unconfigured ONUs — OLT result blocks */
html.smartolt-night body.smartolt-site #unconfigured_div .text-muted,
html.smartolt-night body.smartolt-site #gpon_epon_unconfigured .text-muted,
html.smartolt-night body.smartolt-site #existingUnconfiguredOnus .text-muted {
  color: rgba(255, 255, 255, 0.52) !important;
}

html.smartolt-night body.smartolt-site #unconfigured_div .text-blue,
html.smartolt-night body.smartolt-site #gpon_epon_unconfigured .text-blue,
html.smartolt-night body.smartolt-site #existingUnconfiguredOnus .text-blue {
  color: #7ec3ff !important;
}

html.smartolt-night body.smartolt-site #existingUnconfiguredOnus .refresh-single-olt:hover,
html.smartolt-night body.smartolt-site #gpon_epon_unconfigured .refresh-single-olt:hover {
  color: #bfdbfe !important;
}

html.smartolt-night body.smartolt-site #existingUnconfiguredOnus .refresh-single-olt.disabled,
html.smartolt-night body.smartolt-site #gpon_epon_unconfigured .refresh-single-olt.disabled {
  color: rgba(255, 255, 255, 0.28) !important;
  cursor: not-allowed;
  pointer-events: none;
}

html.smartolt-night body.smartolt-site #existingUnconfiguredOnus [id^="gpon-epon-unconfigured-"] {
  background: rgba(15, 26, 46, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #e2e8f0;
  margin-bottom: 16px;
  padding: 16px 18px 10px;
}

html.smartolt-night body.smartolt-site #existingUnconfiguredOnus [id^="gpon-epon-unconfigured-"] h4 {
  color: #f1f5f9;
  margin-top: 0;
}

html.smartolt-night body.smartolt-site #existingUnconfiguredOnus [id^="gpon-epon-unconfigured-"] h4 .btn-link {
  color: #8cc8ff;
}

html.smartolt-night body.smartolt-site #existingUnconfiguredOnus [id^="gpon-epon-unconfigured-"] h4 .btn-link:hover,
html.smartolt-night body.smartolt-site #existingUnconfiguredOnus [id^="gpon-epon-unconfigured-"] h4 .btn-link:focus {
  color: #b8dcff;
}

html.smartolt-night body.smartolt-site #existingUnconfiguredOnus [id^="gpon-epon-unconfigured-"] hr {
  border-top-color: rgba(255, 255, 255, 0.1) !important;
  margin: 14px 0 0;
}

html.smartolt-night body.smartolt-site #existingUnconfiguredOnus [id^="gpon-epon-unconfigured-"] .table {
  margin-bottom: 0;
}

html.smartolt-night body.smartolt-site #existingUnconfiguredOnus [id^="gpon-epon-unconfigured-"] .label-info {
  background-color: rgba(59, 130, 246, 0.25) !important;
  color: #bfdbfe !important;
}

html.smartolt-night body.smartolt-site #existingUnconfiguredOnus [id^="gpon-epon-unconfigured-"] .onu-type-add {
  color: #8cc8ff;
}

html.smartolt-night body.smartolt-site #gpon_epon_unconfigured_loading h3,
html.smartolt-night body.smartolt-site #unconfigured_div hr {
  border-top-color: rgba(255, 255, 255, 0.12) !important;
}

html.smartolt-night body.smartolt-site #gpon_epon_unconfigured_loading h3 {
  color: #e2e8f0;
}

html.smartolt-night body.smartolt-site #ip_pool_pills {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

html.smartolt-night body.smartolt-site #ip_pool_pills > li > a {
  background: rgba(255, 255, 255, 0.04) !important;
  box-shadow: none !important;
}

html.smartolt-night body.smartolt-site #ip_pool_pills > li.scope-mgmt > a,
html.smartolt-night body.smartolt-site #ip_pool_pills > li.scope-mgmt > a:focus {
  background: rgba(0, 100, 200, 0.1) !important;
  border-color: rgba(0, 100, 200, 0.55) !important;
  color: #7ec3ff !important;
}

html.smartolt-night body.smartolt-site #ip_pool_pills > li.scope-internet > a,
html.smartolt-night body.smartolt-site #ip_pool_pills > li.scope-internet > a:focus {
  background: rgba(68, 152, 66, 0.1) !important;
  border-color: rgba(68, 152, 66, 0.55) !important;
  color: #86efac !important;
}

html.smartolt-night body.smartolt-site #ip_pool_pills > li.scope-voip > a,
html.smartolt-night body.smartolt-site #ip_pool_pills > li.scope-voip > a:focus {
  background: rgba(110, 46, 160, 0.12) !important;
  border-color: rgba(110, 46, 160, 0.55) !important;
  color: #c4a7e7 !important;
}

html.smartolt-night body.smartolt-site #ip_pool_pills > li.scope-mgmt > a:hover {
  background: rgba(0, 100, 200, 0.18) !important;
  border-color: rgba(0, 100, 200, 0.72) !important;
  color: #b8dcff !important;
}

html.smartolt-night body.smartolt-site #ip_pool_pills > li.scope-internet > a:hover {
  background: rgba(68, 152, 66, 0.18) !important;
  border-color: rgba(68, 152, 66, 0.72) !important;
  color: #bbf7d0 !important;
}

html.smartolt-night body.smartolt-site #ip_pool_pills > li.scope-voip > a:hover {
  background: rgba(110, 46, 160, 0.2) !important;
  border-color: rgba(110, 46, 160, 0.72) !important;
  color: #ddd6fe !important;
}

html.smartolt-night body.smartolt-site #ip_pool_pills > li.scope-mgmt.active > a,
html.smartolt-night body.smartolt-site #ip_pool_pills > li.scope-mgmt.active > a:focus,
html.smartolt-night body.smartolt-site #ip_pool_pills > li.scope-mgmt.active > a:hover {
  background: #0064c8 !important;
  border-color: #0064c8 !important;
  color: #fff !important;
}

html.smartolt-night body.smartolt-site #ip_pool_pills > li.scope-internet.active > a,
html.smartolt-night body.smartolt-site #ip_pool_pills > li.scope-internet.active > a:focus,
html.smartolt-night body.smartolt-site #ip_pool_pills > li.scope-internet.active > a:hover {
  background: #449842 !important;
  border-color: #449842 !important;
  color: #fff !important;
}

html.smartolt-night body.smartolt-site #ip_pool_pills > li.scope-voip.active > a,
html.smartolt-night body.smartolt-site #ip_pool_pills > li.scope-voip.active > a:focus,
html.smartolt-night body.smartolt-site #ip_pool_pills > li.scope-voip.active > a:hover {
  background: #6e2ea0 !important;
  border-color: #6e2ea0 !important;
  color: #fff !important;
}

/* ONU IP Pools — override inline light styles from onu_mgmt_ips_*.php */
html.smartolt-night body.smartolt-site #ip_pools .ip-pools-table > thead > tr > th {
  background: rgba(255, 255, 255, 0.06) !important;
  border-bottom-color: rgba(255, 255, 255, 0.12) !important;
  color: #e2e8f0 !important;
}

html.smartolt-night body.smartolt-site #ip_pools .pool-row.pool-even > td,
html.smartolt-night body.smartolt-site #ip_pools .pool-detail-row.pool-even > td {
  background: rgba(255, 255, 255, 0.03) !important;
}

html.smartolt-night body.smartolt-site #ip_pools .pool-row.pool-odd > td,
html.smartolt-night body.smartolt-site #ip_pools .pool-detail-row.pool-odd > td {
  background: rgba(255, 255, 255, 0.06) !important;
}

html.smartolt-night body.smartolt-site #ip_pools .pool-row:hover > td,
html.smartolt-night body.smartolt-site #ip_pools .pool-row.expanded > td {
  background: rgba(29, 139, 255, 0.12) !important;
}

html.smartolt-night body.smartolt-site #ip_pools .pool-row .btn-pool-toggle {
  color: #cbd5e1 !important;
}

html.smartolt-night body.smartolt-site #ip_pools .pool-detail-row > td {
  border-top-color: rgba(255, 255, 255, 0.12) !important;
}

html.smartolt-night body.smartolt-site #ip_pools .alloc-bar {
  background: rgba(255, 255, 255, 0.1) !important;
}

html.smartolt-night body.smartolt-site #ip_pools .alloc-text {
  color: rgba(255, 255, 255, 0.55) !important;
}

html.smartolt-night body.smartolt-site #ip_pools .status-pill.warning {
  color: #422006 !important;
}

html.smartolt-night body.smartolt-site #ip_pools .dns-mixed {
  color: #fca5a5 !important;
}

html.smartolt-night body.smartolt-site #ip_pools .reserved-tag,
html.smartolt-night body.smartolt-site #ip_pools .reserved-pill {
  background: rgba(245, 158, 11, 0.16) !important;
  border-color: rgba(245, 158, 11, 0.42) !important;
  color: #fcd34d !important;
}

html.smartolt-night body.smartolt-site #ip_pools .cidr-chip-mgmt {
  background: rgba(0, 100, 200, 0.14) !important;
  border-color: rgba(0, 100, 200, 0.38) !important;
  color: #7ec3ff !important;
}

html.smartolt-night body.smartolt-site #ip_pools .cidr-chip-internet {
  background: rgba(68, 152, 66, 0.14) !important;
  border-color: rgba(68, 152, 66, 0.38) !important;
  color: #86efac !important;
}

html.smartolt-night body.smartolt-site #ip_pools .cidr-chip-voip {
  background: rgba(110, 46, 160, 0.16) !important;
  border-color: rgba(110, 46, 160, 0.38) !important;
  color: #c4a7e7 !important;
}

html.smartolt-night body.smartolt-site #ip_pools .shared-olts-chip {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #8cc8ff !important;
}

html.smartolt-night body.smartolt-site #ip_pools .ip-pool-section-header h3 {
  color: #f1f5f9 !important;
}

html.smartolt-night body.smartolt-site #ip_pools .ip-pool-section-header h3.scope-mgmt {
  color: #7ec3ff !important;
}

html.smartolt-night body.smartolt-site #ip_pools .ip-pool-section-header h3.scope-internet {
  color: #86efac !important;
}

html.smartolt-night body.smartolt-site #ip_pools .ip-pool-section-header h3.scope-voip {
  color: #c4a7e7 !important;
}

html.smartolt-night body.smartolt-site #ip_pools .ip-pool-section-header .section-help {
  color: rgba(255, 255, 255, 0.55) !important;
}

html.smartolt-night body.smartolt-site #ip_pools .pool-summary-item {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html.smartolt-night body.smartolt-site #ip_pools .pool-summary-item .summary-label {
  color: rgba(255, 255, 255, 0.52) !important;
}

html.smartolt-night body.smartolt-site #ip_pools .pool-summary-item .summary-value {
  color: #f1f5f9 !important;
}

html.smartolt-night body.smartolt-site #ip_pools .pool-summary-item.warning .summary-value {
  color: #fca5a5 !important;
}

html.smartolt-night body.smartolt-site #ip_pools .ip-pool-empty,
html.smartolt-night body.smartolt-site #ip_pools .ip-empty-state {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}

html.smartolt-night body.smartolt-site #ip_pools .ip-pool-empty h4,
html.smartolt-night body.smartolt-site #ip_pools .ip-empty-state h4,
html.smartolt-night body.smartolt-site #ip_pools .ip-edit-inline-header h3,
html.smartolt-night body.smartolt-site #ip_pools .pool-edit-inline-header h3,
html.smartolt-night body.smartolt-site #ip_pools .ip-delete-inline-header h3,
html.smartolt-night body.smartolt-site #ip_pools .per-ip-header h3 {
  color: #f1f5f9 !important;
}

html.smartolt-night body.smartolt-site #ip_pools .ip-pool-empty p,
html.smartolt-night body.smartolt-site #ip_pools .ip-empty-state p,
html.smartolt-night body.smartolt-site #ip_pools .ip-edit-inline-header h3 small,
html.smartolt-night body.smartolt-site #ip_pools .ip-delete-inline-header h3 small {
  color: rgba(255, 255, 255, 0.55) !important;
}

html.smartolt-night body.smartolt-site #ip_pools .pool-detail-grid .pool-meta dt,
html.smartolt-night body.smartolt-site #ip_pools .pool-existing-ranges dt {
  color: rgba(255, 255, 255, 0.52) !important;
}

html.smartolt-night body.smartolt-site #ip_pools .pool-detail-grid .pool-meta dd,
html.smartolt-night body.smartolt-site #ip_pools .pool-existing-ranges dd {
  color: #e2e8f0;
}

html.smartolt-night body.smartolt-site #ip_pools .pool-detail-grid .pool-meta .cidr-heatmap-svg {
  border-color: rgba(255, 255, 255, 0.14) !important;
}

html.smartolt-night body.smartolt-site #ip_pools .pool-meta-shared {
  border-top-color: rgba(255, 255, 255, 0.12) !important;
}

html.smartolt-night body.smartolt-site #ip_pools .pool-meta-shared .siblings-header dt {
  color: #e2e8f0 !important;
}

html.smartolt-night body.smartolt-site #ip_pools .pool-meta-shared .siblings-header dt .fa-share-alt {
  color: #8cc8ff !important;
}

html.smartolt-night body.smartolt-site #ip_pools .pool-meta-shared .siblings-body .total-row {
  border-top-color: rgba(255, 255, 255, 0.12) !important;
}

html.smartolt-night body.smartolt-site #ip_pools .pool-meta-shared .siblings-body .total-row dt,
html.smartolt-night body.smartolt-site #ip_pools .pool-meta-shared .siblings-body .total-row dd {
  color: #8cc8ff !important;
}

html.smartolt-night body.smartolt-site #ip_pools .pool-detail-actions {
  border-top-color: rgba(255, 255, 255, 0.12) !important;
}

html.smartolt-night body.smartolt-site #ip_pools .pool-readonly-row,
html.smartolt-night body.smartolt-site #ip_pools .ip-delete-list {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #e2e8f0;
}

html.smartolt-night body.smartolt-site #ip_pools .pool-readonly-row .label-text {
  color: rgba(255, 255, 255, 0.55) !important;
}

html.smartolt-night body.smartolt-site #ip_pools .network-summary {
  background: rgba(34, 197, 94, 0.12) !important;
  border-color: rgba(34, 197, 94, 0.32) !important;
}

html.smartolt-night body.smartolt-site #ip_pools .network-summary.invalid {
  background: rgba(239, 68, 68, 0.12) !important;
  border-color: rgba(239, 68, 68, 0.32) !important;
}

html.smartolt-night body.smartolt-site #ip_pools .network-summary .summary-title {
  color: #86efac !important;
}

html.smartolt-night body.smartolt-site #ip_pools .network-summary.invalid .summary-title {
  color: #fca5a5 !important;
}

html.smartolt-night body.smartolt-site #ip_pools .network-summary dt {
  color: rgba(255, 255, 255, 0.55) !important;
}

html.smartolt-night body.smartolt-site #ip_pools .network-summary dd {
  color: #e2e8f0;
}

html.smartolt-night body.smartolt-site #ip_pools .extend-summary {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html.smartolt-night body.smartolt-site #ip_pools .extend-summary-item span,
html.smartolt-night body.smartolt-site #ip_pools .extend-summary-item small,
html.smartolt-night body.smartolt-site #ip_pools .field-help,
html.smartolt-night body.smartolt-site #ip_pools .pool-config-note {
  color: rgba(255, 255, 255, 0.55) !important;
}

html.smartolt-night body.smartolt-site #ip_pools .extend-summary-item strong {
  color: #f1f5f9 !important;
}

html.smartolt-night body.smartolt-site #ip_pools .pool-details-toggle-inline i.fa,
html.smartolt-night body.smartolt-site #ip_pools .pool-details-toggle-inline:hover i.fa {
  color: #8cc8ff !important;
}

html.smartolt-night body.smartolt-site #ip_pools .reserved-toggle-row {
  background: rgba(245, 158, 11, 0.08) !important;
  border-color: rgba(245, 158, 11, 0.28) !important;
  color: #e2e8f0;
}

html.smartolt-night body.smartolt-site #ip_pools .reserved-toggle-row.is-reserved {
  background: rgba(245, 158, 11, 0.14) !important;
  border-color: rgba(245, 158, 11, 0.42) !important;
}

html.smartolt-night body.smartolt-site #ip_pools .normalize-banner {
  background: rgba(245, 158, 11, 0.12) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
  color: #fcd34d !important;
}

html.smartolt-night body.smartolt-site #ip_pools .shared-subnet-banner {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #e2e8f0 !important;
}

html.smartolt-night body.smartolt-site #ip_pools .shared-subnet-banner h4 {
  color: #f1f5f9 !important;
}

html.smartolt-night body.smartolt-site #ip_pools .shared-subnet-banner h4 .fa-share-alt {
  color: rgba(255, 255, 255, 0.55) !important;
}

html.smartolt-night body.smartolt-site #ip_pools .shared-subnet-banner th,
html.smartolt-night body.smartolt-site #ip_pools .shared-subnet-banner td {
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
  color: #e2e8f0;
}

html.smartolt-night body.smartolt-site #ip_pools .shared-subnet-banner th {
  color: rgba(255, 255, 255, 0.55) !important;
}

html.smartolt-night body.smartolt-site #ip_pools .shared-subnet-banner tr.current-olt td {
  background: rgba(29, 139, 255, 0.1) !important;
}

html.smartolt-night body.smartolt-site #ip_pools .shared-subnet-banner tr.combined td {
  background: rgba(255, 255, 255, 0.06) !important;
  border-top-color: rgba(255, 255, 255, 0.18) !important;
}

html.smartolt-night body.smartolt-site #ip_pools .shared-subnet-banner a {
  color: #8cc8ff !important;
}

html.smartolt-night body.smartolt-site #ip_pools tr.allocated-row,
html.smartolt-night body.smartolt-site #ip_pools tr.allocated-row td {
  background: rgba(255, 255, 255, 0.03) !important;
  color: rgba(255, 255, 255, 0.55) !important;
}

html.smartolt-night body.smartolt-site #ip_pools .allocated-tag {
  color: rgba(255, 255, 255, 0.55) !important;
}

html.smartolt-night body.smartolt-site #ip_pools .table-striped > tbody > tr.selected-ip-row > td,
html.smartolt-night body.smartolt-site #ip_pools .table-striped > tbody > tr.selected-ip-row:nth-of-type(odd) > td {
  background: rgba(29, 139, 255, 0.14) !important;
}

html.smartolt-night body.smartolt-site #ip_pools .ip-filter-bar,
html.smartolt-night body.smartolt-site #ip_pools .bulk-toolbar {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html.smartolt-night body.smartolt-site #ip_pools .ip-filter-bar label,
html.smartolt-night body.smartolt-site #ip_pools .ip-pager .pager-info {
  color: rgba(255, 255, 255, 0.55) !important;
}

html.smartolt-night body.smartolt-site #ip_pools .ip-sort-link {
  color: #e2e8f0 !important;
}

html.smartolt-night body.smartolt-site #ip_pools .bulk-toolbar .selected-count {
  color: #f1f5f9 !important;
}

html.smartolt-night body.smartolt-site #ip_pools .bulk-toolbar input[type="text"] {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #f1f5f9 !important;
}

html.smartolt-night body.smartolt-site #ip_pools .bulk-toolbar.has-selection {
  background: rgba(245, 158, 11, 0.1) !important;
  border-color: rgba(245, 158, 11, 0.32) !important;
}

html.smartolt-night body.smartolt-site #ip_pools .bulk-toolbar:not(.has-selection) {
  background: rgba(255, 255, 255, 0.02) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html.smartolt-night body.smartolt-site #ip_pools .bulk-toolbar:not(.has-selection) .selected-count {
  color: rgba(255, 255, 255, 0.45) !important;
}

html.smartolt-night body.smartolt-site #ip_pools .ip-pager .pagination > li > a,
html.smartolt-night body.smartolt-site #ip_pools .ip-pager .pagination > li > span {
  color: #cbd5e1 !important;
  background-color: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html.smartolt-night body.smartolt-site #ip_pools .ip-pager .pagination > li > a:hover,
html.smartolt-night body.smartolt-site #ip_pools .ip-pager .pagination > li > a:focus {
  color: #fff !important;
  background-color: rgba(29, 139, 255, 0.22) !important;
  border-color: rgba(29, 139, 255, 0.45) !important;
}

html.smartolt-night body.smartolt-site #ip_pools .ip-pager .pagination > .active > a,
html.smartolt-night body.smartolt-site #ip_pools .ip-pager .pagination > .active > span,
html.smartolt-night body.smartolt-site #ip_pools .ip-pager .pagination > .active > a:hover,
html.smartolt-night body.smartolt-site #ip_pools .ip-pager .pagination > .active > span:hover,
html.smartolt-night body.smartolt-site #ip_pools .ip-pager .pagination > .active > a:focus,
html.smartolt-night body.smartolt-site #ip_pools .ip-pager .pagination > .active > span:focus {
  color: #f1f5f9 !important;
  background-color: rgba(29, 139, 255, 0.18) !important;
  border-color: rgba(29, 139, 255, 0.42) !important;
}

html.smartolt-night body.smartolt-site #ip_pools .ip-pager .pagination > .disabled > a,
html.smartolt-night body.smartolt-site #ip_pools .ip-pager .pagination > .disabled > span,
html.smartolt-night body.smartolt-site #ip_pools .ip-pager .pagination > .disabled > a:hover,
html.smartolt-night body.smartolt-site #ip_pools .ip-pager .pagination > .disabled > a:focus {
  color: rgba(255, 255, 255, 0.35) !important;
  background-color: rgba(255, 255, 255, 0.02) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html.smartolt-night body.smartolt-site #ip_pools svg circle[stroke="#e9ecef"] {
  stroke: rgba(255, 255, 255, 0.14) !important;
}

html.smartolt-night body.smartolt-site #ip_pools svg text[fill="#333"],
html.smartolt-night body.smartolt-site #ip_pools svg text[fill="#666"] {
  fill: #cbd5e1 !important;
}

/* Authorization presets — edit/add/common + listing guide */
html.smartolt-night body.smartolt-site #preset_form .section-panel,
html.smartolt-night body.smartolt-site .section-panel {
  background: rgba(15, 26, 46, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 8px;
}

html.smartolt-night body.smartolt-site #preset_form .section-panel-header,
html.smartolt-night body.smartolt-site .section-panel-header {
  background: rgba(255, 255, 255, 0.05) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 7px 7px 0 0;
}

html.smartolt-night body.smartolt-site #preset_form .section-panel-header h4,
html.smartolt-night body.smartolt-site .section-panel-header h4 {
  color: #f1f5f9 !important;
}

html.smartolt-night body.smartolt-site #preset_form .section-panel-header h4 i,
html.smartolt-night body.smartolt-site .section-panel-header h4 i {
  color: #8cc8ff !important;
}

html.smartolt-night body.smartolt-site #preset_form .section-panel-body,
html.smartolt-night body.smartolt-site .section-panel-body {
  color: #e2e8f0;
}

html.smartolt-night body.smartolt-site #preset_form .subsection-title {
  color: #e2e8f0 !important;
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

html.smartolt-night body.smartolt-site #preset_form .subsection-title i {
  color: #8cc8ff !important;
}

html.smartolt-night body.smartolt-site #preset_form .text-muted,
html.smartolt-night body.smartolt-site #preset_form .help-block,
html.smartolt-night body.smartolt-site #preset_form .form-control-static.text-muted {
  color: rgba(255, 255, 255, 0.52) !important;
}

html.smartolt-night body.smartolt-site #preset_form code,
html.smartolt-night body.smartolt-site #presetsTable code,
html.smartolt-night body.smartolt-site .pattern-var-link {
  background: rgba(245, 151, 55, 0.12) !important;
  border: 1px solid rgba(245, 151, 55, 0.35);
  border-radius: 4px;
  color: #f59737 !important;
  padding: 1px 5px;
}

html.smartolt-night body.smartolt-site .pattern-var-link:hover {
  background: rgba(245, 151, 55, 0.22) !important;
  color: #ffb86b !important;
}

html.smartolt-night body.smartolt-site .pattern-var-link:active {
  background: rgba(245, 151, 55, 0.3) !important;
}

html.smartolt-night body.smartolt-site #preset_form .radio-inline,
html.smartolt-night body.smartolt-site #preset_form .radio label,
html.smartolt-night body.smartolt-site #preset_form .checkbox label {
  color: #e2e8f0;
}

html.smartolt-night body.smartolt-site #preset_form #existing_default_warning {
  color: #fcd34d;
}

html.smartolt-night body.smartolt-site #preset_form #wifi_not_available_message_common .alert {
  background: rgba(59, 130, 246, 0.12) !important;
  border: 1px solid rgba(59, 130, 246, 0.28) !important;
  color: #cbd5e1 !important;
}

html.smartolt-night body.smartolt-site #preset_form .form-actions {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 8px;
  padding-top: 16px;
}

html.smartolt-night body.smartolt-site #preset_form .form-actions .btn-link {
  color: #8cc8ff;
}

html.smartolt-night body.smartolt-site #preset_form .form-actions .btn-link:hover,
html.smartolt-night body.smartolt-site #preset_form .form-actions .btn-link:focus {
  color: #b8dcff;
}

html.smartolt-night body.smartolt-site .getting-started-panel {
  background: rgba(15, 26, 46, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 8px;
}

html.smartolt-night body.smartolt-site .getting-started-header {
  background: rgba(255, 255, 255, 0.05) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

html.smartolt-night body.smartolt-site .getting-started-header:hover {
  background: rgba(29, 139, 255, 0.1) !important;
}

html.smartolt-night body.smartolt-site .getting-started-header h4,
html.smartolt-night body.smartolt-site .getting-started-header .fa-chevron-down,
html.smartolt-night body.smartolt-site .getting-started-header .fa-chevron-up,
html.smartolt-night body.smartolt-site .hide-guide-link {
  color: #e2e8f0 !important;
}

html.smartolt-night body.smartolt-site .hide-guide-link:hover {
  color: #fff !important;
  opacity: 1 !important;
}

html.smartolt-night body.smartolt-site .getting-started-body {
  background: transparent !important;
}

html.smartolt-night body.smartolt-site .guide-section-title {
  color: #f1f5f9 !important;
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

html.smartolt-night body.smartolt-site .guide-section-title .fa {
  color: #8cc8ff !important;
}

html.smartolt-night body.smartolt-site .steps-list li,
html.smartolt-night body.smartolt-site .step-number,
html.smartolt-night body.smartolt-site .steps-list strong {
  color: #e2e8f0 !important;
}

html.smartolt-night body.smartolt-site #presetsTable .text-muted {
  color: rgba(255, 255, 255, 0.52) !important;
}

html.smartolt-night body.smartolt-site #presetsTable .label-default {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #e2e8f0 !important;
}

html.smartolt-night body.smartolt-site #presetsTable .label-primary {
  background: rgba(59, 130, 246, 0.28) !important;
  color: #bfdbfe !important;
}

html.smartolt-night body.smartolt-site #presetsTable .label-info {
  background: rgba(56, 189, 248, 0.22) !important;
  color: #bae6fd !important;
}

html.smartolt-night body.smartolt-site #presetsTable .label-success {
  background: rgba(34, 197, 94, 0.22) !important;
  color: #bbf7d0 !important;
}

html.smartolt-night body.smartolt-site #presetsTable .sort-link {
  color: #e2e8f0;
}

html.smartolt-night body.smartolt-site #presetsTable .sort-link:hover,
html.smartolt-night body.smartolt-site #presetsTable .sort-link:focus {
  color: #8cc8ff;
}

/* Waiting for OLT loading overlay */
html.smartolt-night .loadingoverlay {
  background-color: rgba(6, 22, 47, 0.82) !important;
}

html.smartolt-night #waitingOLT {
  color: #e2e8f0 !important;
  font-size: clamp(22px, 4vw, 42px) !important;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-top: 12px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}

html.smartolt-night .loadingoverlay_fontawesome {
  color: #8cc8ff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

/* ——— Tables (diagnostics-style, app-wide) ——— */

html.smartolt-night body.smartolt-site .table {
  background: transparent;
  border-collapse: separate;
  border-spacing: 0;
  color: #e2e8f0;
  margin-bottom: 0;
}

/* SmartOLT often uses <tr><th> without <thead> — including inside tbody */
html.smartolt-night body.smartolt-site .table > thead > tr > th,
html.smartolt-night body.smartolt-site .table > tbody > tr:first-child > th,
html.smartolt-night body.smartolt-site .table > tr > th,
html.smartolt-night body.smartolt-site #existingUnconfiguredOnus .table th,
html.smartolt-night body.smartolt-site #gpon_epon_unconfigured .table th,
html.smartolt-night body.smartolt-site #accordion_tasks .table th {
  background: rgba(255, 255, 255, 0.06) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-top: 0 !important;
  color: rgba(255, 255, 255, 0.62) !important;
  font-weight: 600;
  vertical-align: middle;
}

html.smartolt-night body.smartolt-site .table > tbody > tr > td,
html.smartolt-night body.smartolt-site .table > tbody > tr:not(:first-child) > th,
html.smartolt-night body.smartolt-site .table > tr > td {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #e2e8f0;
  vertical-align: middle;
}

html.smartolt-night body.smartolt-site .table > tbody > tr > td.olt-port-status-up,
html.smartolt-night body.smartolt-site .table > tr > td.olt-port-status-up,
html.smartolt-night body.smartolt-site .table > tbody > tr > td.text-green.olt-port-status-up,
html.smartolt-night body.smartolt-site .table > tr > td.text-green.olt-port-status-up {
  color: #45d483 !important;
  font-weight: normal;
}

html.smartolt-night body.smartolt-site .table > tbody > tr > td.olt-port-status-down,
html.smartolt-night body.smartolt-site .table > tbody > tr > td.olt-port-status-disabled,
html.smartolt-night body.smartolt-site .table > tr > td.olt-port-status-down,
html.smartolt-night body.smartolt-site .table > tr > td.olt-port-status-disabled,
html.smartolt-night body.smartolt-site .table > tbody > tr > td.text-danger.olt-port-status-down,
html.smartolt-night body.smartolt-site .table > tbody > tr > td.text-danger.olt-port-status-disabled,
html.smartolt-night body.smartolt-site .table > tr > td.text-danger.olt-port-status-down,
html.smartolt-night body.smartolt-site .table > tr > td.text-danger.olt-port-status-disabled {
  color: #ff6b6b !important;
  font-weight: normal;
}

/* Semantic table-cell colors (e.g. billing expiry text-danger/text-warning).
   The generic ".table > tbody > tr > td" color rule above out-specifies the bare
   .text-danger/.text-warning class, so restore them on table cells to match the
   light theme. Mirrors the .olt-port-status-* danger override. */
html.smartolt-night body.smartolt-site .table > tbody > tr > td.text-danger,
html.smartolt-night body.smartolt-site .table > tbody > tr > th.text-danger,
html.smartolt-night body.smartolt-site .table > tr > td.text-danger,
html.smartolt-night body.smartolt-site .table > tr > th.text-danger {
  color: #ff6b6b !important;
}

html.smartolt-night body.smartolt-site .table > tbody > tr > td.text-warning,
html.smartolt-night body.smartolt-site .table > tbody > tr > th.text-warning,
html.smartolt-night body.smartolt-site .table > tr > td.text-warning,
html.smartolt-night body.smartolt-site .table > tr > th.text-warning {
  color: #fcd34d !important;
}

/* Neutralize table-bordered — match diagnostics transparency */
html.smartolt-night body.smartolt-site .table-bordered {
  border: 0 !important;
}

html.smartolt-night body.smartolt-site .table-bordered > thead > tr > th,
html.smartolt-night body.smartolt-site .table-bordered > tbody > tr > th,
html.smartolt-night body.smartolt-site .table-bordered > tbody > tr > td,
html.smartolt-night body.smartolt-site .table-bordered > tr > th,
html.smartolt-night body.smartolt-site .table-bordered > tr > td {
  border-left: 0 !important;
  border-right: 0 !important;
}

html.smartolt-night body.smartolt-site .table-bordered > thead > tr > th,
html.smartolt-night body.smartolt-site .table-bordered > tr > th {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

html.smartolt-night body.smartolt-site .table-striped > tbody > tr:nth-of-type(odd) {
  background-color: rgba(255, 255, 255, 0.03);
}

html.smartolt-night body.smartolt-site .table-striped > tbody > tr:nth-of-type(even) {
  background-color: transparent;
}

html.smartolt-night body.smartolt-site .table-striped > tbody > tr:hover,
html.smartolt-night body.smartolt-site .table-hover > tbody > tr:hover {
  background-color: rgba(29, 139, 255, 0.12) !important;
}

html.smartolt-night body.smartolt-site .table-striped > tbody > tr:hover > td,
html.smartolt-night body.smartolt-site .table-striped > tbody > tr:hover > th,
html.smartolt-night body.smartolt-site .table-hover > tbody > tr:hover > td,
html.smartolt-night body.smartolt-site .table-hover > tbody > tr:hover > th {
  color: #f8fafc;
}

/* VLAN default PON matrix: stay transparent like OLT VLAN listing tables;
   only override Bootstrap .active board rows and matrix checkbox contrast. */
html.smartolt-night body.smartolt-site #default_for_pon_ports > thead > tr > th,
html.smartolt-night body.smartolt-site #default_for_pon_ports > tbody > tr > th,
html.smartolt-night body.smartolt-site #default_for_pon_ports > tbody > tr > td {
  border-bottom: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
}

html.smartolt-night body.smartolt-site #default_for_pon_ports > tbody > tr.active > th,
html.smartolt-night body.smartolt-site #default_for_pon_ports.table-striped > tbody > tr.active:nth-of-type(odd) > th,
html.smartolt-night body.smartolt-site #default_for_pon_ports.table-striped > tbody > tr.active:nth-of-type(even) > th {
  background: rgba(59, 130, 246, 0.1) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
  color: #cbd5e1 !important;
}

html.smartolt-night body.smartolt-site #default_for_pon_ports input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  background: rgba(15, 23, 42, 0.92);
  border: 1.5px solid rgba(186, 201, 219, 0.82);
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.35);
  box-sizing: border-box;
  cursor: pointer;
  height: 16px;
  margin: 0;
  vertical-align: middle;
  width: 16px;
}

html.smartolt-night body.smartolt-site #default_for_pon_ports input[type="checkbox"]:not(:checked):hover {
  background: rgba(30, 41, 59, 0.96);
  border-color: rgba(203, 213, 225, 0.92);
}

html.smartolt-night body.smartolt-site #default_for_pon_ports input[type="checkbox"]:checked {
  background: #2563eb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3E%3Cpath d='M12.2 4.2 6.8 10.3 3.8 7.3l-1.3 1.4 4.3 4.2 6.7-7.5z'/%3E%3C/svg%3E") center/11px no-repeat;
  border-color: #3b82f6;
  box-shadow: none;
}

html.smartolt-night body.smartolt-site #default_for_pon_ports input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.55);
  outline-offset: 2px;
}

html.smartolt-night body.smartolt-site .table .sort-link {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
}

html.smartolt-night body.smartolt-site .table .sort-link:hover,
html.smartolt-night body.smartolt-site .table .sort-link:focus {
  color: #fff;
  text-decoration: none;
}

html.smartolt-night body.smartolt-site .table a {
  color: #8cc8ff;
}

html.smartolt-night body.smartolt-site .table a:hover,
html.smartolt-night body.smartolt-site .table a:focus {
  color: #b8dcff;
  text-decoration: none;
}

/* Don't let table link color wash out action buttons (View/Edit/Del).
   Exclude .btn-link — it's a transparent link-style button, so white text
   would wash it out instead; let it keep the normal link color. */
html.smartolt-night body.smartolt-site .table a.btn:not(.btn-link),
html.smartolt-night body.smartolt-site .table a.btn:not(.btn-link):hover,
html.smartolt-night body.smartolt-site .table a.btn:not(.btn-link):focus,
html.smartolt-night body.smartolt-site .panel-body a.btn:not(.btn-link),
html.smartolt-night body.smartolt-site .panel-body a.btn:not(.btn-link):hover,
html.smartolt-night body.smartolt-site .panel-body a.btn:not(.btn-link):focus,
html.smartolt-night body.smartolt-site .tab-content a.btn:not(.btn-link),
html.smartolt-night body.smartolt-site .tab-content a.btn:not(.btn-link):hover,
html.smartolt-night body.smartolt-site .tab-content a.btn:not(.btn-link):focus {
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
  text-shadow: none;
}

html.smartolt-night body.smartolt-site .table .btn-link {
  color: #8cc8ff;
}

html.smartolt-night body.smartolt-site .table .btn-link:hover,
html.smartolt-night body.smartolt-site .table .btn-link:focus {
  color: #b8dcff;
}

html.smartolt-night body.smartolt-site .panel > .table,
html.smartolt-night body.smartolt-site .panel > .table-responsive > .table,
html.smartolt-night body.smartolt-site .panel .table {
  background: transparent;
}

html.smartolt-night body.smartolt-site .table-responsive {
  background: transparent;
  border: 0;
}

html.smartolt-night body.smartolt-site .table-responsive > .table-bordered {
  border: 0 !important;
}

html.smartolt-night body.smartolt-site dl .table {
  margin-top: 4px;
}

/* ONU view — inner rows without separators (stripe-only) */
html.smartolt-night body.smartolt-site .onu-wrapper .table > tbody > tr > td,
html.smartolt-night body.smartolt-site .onu-wrapper .table > tbody > tr > th,
html.smartolt-night body.smartolt-site .onu-wrapper .table-bordered > tbody > tr > td,
html.smartolt-night body.smartolt-site .onu-wrapper .table-bordered > tbody > tr > th {
  border-top: 0 !important;
  border-bottom: 0 !important;
}

/* ——— Modals ——— */

html.smartolt-night .modal-backdrop {
  z-index: 1040 !important;
}

html.smartolt-night .modal-backdrop.in {
  opacity: 0.78;
}

html.smartolt-night .modal {
  z-index: 1050 !important;
}

html.smartolt-night .modal-content {
  background: #0d1829;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  overflow: hidden;
}

/* Multiselect lists must extend outside modal — overflow:hidden on .modal-content clips them */
html.smartolt-night .modal:has(.btn-group.open) .modal-content,
html.smartolt-night .onu-ui-modal.onu-ui-modal-dropdowns .modal-content {
  overflow: visible;
}

html.smartolt-night .modal:has(.btn-group.open) .modal-body,
html.smartolt-night .onu-ui-modal.onu-ui-modal-dropdowns .modal-body {
  overflow: visible;
}

html.smartolt-night .modal:has(.btn-group.open) .form-group,
html.smartolt-night .modal:has(.btn-group.open) [class*="col-"],
html.smartolt-night .modal:has(.btn-group.open) .multiselect-native-select {
  overflow: visible;
}

html.smartolt-night .modal-header {
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 20px;
}

html.smartolt-night .modal-header h3,
html.smartolt-night .modal-header h4,
html.smartolt-night .modal-header .modal-title {
  color: #f1f5f9;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}

html.smartolt-night .modal-body {
  background: #0d1829 !important;
  color: #e2e8f0;
  padding: 18px 20px;
}

html.smartolt-night .modal-body p,
html.smartolt-night .modal-body .onu-modal-confirm-text {
  color: #cbd5e1;
}

html.smartolt-night .modal-footer {
  background: rgba(255, 255, 255, 0.03) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 20px;
}

html.smartolt-night .modal .close,
html.smartolt-night .modal-header .close,
html.smartolt-night .panel-default .close {
  color: rgba(255, 255, 255, 0.55) !important;
  opacity: 1;
  text-shadow: none;
}

html.smartolt-night .modal .close:hover,
html.smartolt-night .modal .close:focus,
html.smartolt-night .modal-header .close:hover,
html.smartolt-night .modal-header .close:focus {
  color: #fff !important;
  opacity: 1;
}

html.smartolt-night .close {
  color: rgba(255, 255, 255, 0.55);
  opacity: 1;
  text-shadow: none;
}

html.smartolt-night .close:hover,
html.smartolt-night .close:focus {
  color: #fff;
  opacity: 1;
}

/* ONU modals — override inline light styles from onu_view.php */
html.smartolt-night .onu-ui-modal .modal-body {
  background: #0d1829 !important;
}

html.smartolt-night .onu-ui-modal .modal-footer {
  background: rgba(255, 255, 255, 0.03) !important;
}

html.smartolt-night .onu-ui-modal .onu-modal-section {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px;
}

html.smartolt-night .onu-ui-modal .onu-modal-section-heading {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html.smartolt-night .onu-ui-modal .onu-modal-section-heading h4 {
  color: #f1f5f9;
}

html.smartolt-night .onu-ui-modal .onu-modal-section-heading.scope-wan h4,
html.smartolt-night .onu-ui-modal .onu-modal-section-heading.scope-wan i {
  color: #6ee7a0;
}

html.smartolt-night .onu-ui-modal .onu-modal-section-heading.scope-vlan h4,
html.smartolt-night .onu-ui-modal .onu-modal-section-heading.scope-vlan i,
html.smartolt-night .onu-ui-modal .onu-modal-section-heading.scope-port h4,
html.smartolt-night .onu-ui-modal .onu-modal-section-heading.scope-port i,
html.smartolt-night .onu-ui-modal .onu-modal-section-heading.scope-onu h4,
html.smartolt-night .onu-ui-modal .onu-modal-section-heading.scope-onu i,
html.smartolt-night .onu-ui-modal .onu-modal-section-heading.scope-service h4,
html.smartolt-night .onu-ui-modal .onu-modal-section-heading.scope-service i,
html.smartolt-night .onu-ui-modal .onu-modal-section-heading.scope-speed h4,
html.smartolt-night .onu-ui-modal .onu-modal-section-heading.scope-speed i,
html.smartolt-night .onu-ui-modal .onu-modal-section-heading.scope-wifi h4,
html.smartolt-night .onu-ui-modal .onu-modal-section-heading.scope-wifi i {
  color: #7ec3ff;
}

html.smartolt-night .onu-ui-modal .onu-modal-section-heading.scope-voip h4,
html.smartolt-night .onu-ui-modal .onu-modal-section-heading.scope-voip i {
  color: #c4a7e7;
}

html.smartolt-night .onu-ui-modal .onu-modal-section-heading.scope-danger h4,
html.smartolt-night .onu-ui-modal .onu-modal-section-heading.scope-danger i {
  color: #fca5a5;
}

html.smartolt-night .onu-ui-modal .onu-modal-section-heading.scope-warning h4,
html.smartolt-night .onu-ui-modal .onu-modal-section-heading.scope-warning i {
  color: #fcd34d;
}

html.smartolt-night .onu-ui-modal .onu-modal-section-heading.scope-success h4,
html.smartolt-night .onu-ui-modal .onu-modal-section-heading.scope-success i {
  color: #6ee7a0;
}

html.smartolt-night #updateMode .wan-details-grid {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

html.smartolt-night #updateMode .wan-details-grid label {
  color: rgba(255, 255, 255, 0.55) !important;
}

html.smartolt-night #updateMode .wan-details-grid input.form-control {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #f1f5f9 !important;
}

html.smartolt-night #updateVlans .attached-vlans-help {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #cbd5e1 !important;
}

html.smartolt-night #updateVlans .attached-vlans-help .help-block {
  color: rgba(255, 255, 255, 0.55);
}

html.smartolt-night .modal .form-control,
html.smartolt-night .modal select.form-control,
html.smartolt-night .modal textarea.form-control {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
}

html.smartolt-night .modal select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: rgba(255, 255, 255, 0.06);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23cbd5e1' d='M2 4.5L6 8.5L10 4.5'/%3E%3C/svg%3E");
  background-position: right 10px center;
  background-repeat: no-repeat;
  color-scheme: dark;
  padding-right: 30px;
}

html.smartolt-night .modal select.form-control option,
html.smartolt-night .modal select.form-control optgroup {
  background: #0b1528;
  color: #e2e8f0;
}

html.smartolt-night .modal select.form-control option:disabled,
html.smartolt-night .modal select.form-control option[disabled] {
  background: #0b1528;
  color: #64748b;
}

html.smartolt-night .modal .form-control:focus,
html.smartolt-night .modal select.form-control:focus,
html.smartolt-night .modal textarea.form-control:focus {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
  color: #fff;
}

html.smartolt-night .modal .form-control[disabled],
html.smartolt-night .modal .form-control[readonly],
html.smartolt-night .modal fieldset[disabled] .form-control {
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.45);
}

html.smartolt-night .modal label,
html.smartolt-night .modal .control-label {
  color: #cbd5e1;
}

html.smartolt-night .modal .help-block {
  color: rgba(255, 255, 255, 0.52);
}

html.smartolt-night .modal .radio-inline,
html.smartolt-night .modal .radio label,
html.smartolt-night .modal .checkbox label,
html.smartolt-night .modal .radio-single {
  color: #e2e8f0;
}

html.smartolt-night .modal .only-label {
  color: rgba(255, 255, 255, 0.45);
}

html.smartolt-night .modal .btn-link {
  color: #8cc8ff;
}

html.smartolt-night .modal .btn-link:hover,
html.smartolt-night .modal .btn-link:focus {
  color: #b8dcff;
}

/* Modal multiselect + dropdown lists */
html.smartolt-night .modal .multiselect.dropdown-toggle,
html.smartolt-night .modal button.multiselect,
html.smartolt-night .onu-ui-modal .multiselect.dropdown-toggle {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: none !important;
  color: #f1f5f9 !important;
}

html.smartolt-night .modal .btn-group.open .multiselect.dropdown-toggle,
html.smartolt-night .onu-ui-modal .btn-group.open .multiselect.dropdown-toggle {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2) !important;
}

html.smartolt-night .modal .multiselect.dropdown-toggle .caret,
html.smartolt-night .onu-ui-modal .multiselect.dropdown-toggle .caret {
  border-top-color: rgba(255, 255, 255, 0.55);
}

html.smartolt-night .modal .multiselect-selected-text,
html.smartolt-night .onu-ui-modal .multiselect-selected-text {
  color: #f1f5f9;
}

html.smartolt-night .modal .multiselect-container.dropdown-menu,
html.smartolt-night .onu-ui-modal .multiselect-container.dropdown-menu,
html.smartolt-night .onu-ui-modal-dropdowns .multiselect-container.dropdown-menu {
  background: #0b1528 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 8px !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45) !important;
  padding: 4px 0 !important;
  z-index: 1060 !important;
}

html.smartolt-night .modal .multiselect-container.dropdown-menu > li > a,
html.smartolt-night .onu-ui-modal .multiselect-container.dropdown-menu > li > a {
  background: transparent !important;
  color: #e2e8f0 !important;
  padding: 0 !important;
}

html.smartolt-night .modal .multiselect-container.dropdown-menu > li > a > label,
html.smartolt-night .onu-ui-modal .multiselect-container.dropdown-menu > li > a > label {
  color: #e2e8f0 !important;
  cursor: pointer;
  display: block;
  font-weight: 400;
  margin: 0 !important;
  padding: 8px 16px 8px 38px !important;
}

html.smartolt-night .modal .multiselect-container input[type="checkbox"],
html.smartolt-night .modal .multiselect-container input[type="radio"],
html.smartolt-night .onu-ui-modal .multiselect-container input[type="checkbox"],
html.smartolt-night .onu-ui-modal .multiselect-container input[type="radio"],
html.smartolt-night .multiselect-container.dropdown-menu > li > a > label > input[type="checkbox"],
html.smartolt-night .multiselect-container.dropdown-menu > li > a > label > input[type="radio"] {
  accent-color: #3b82f6;
  margin-left: -20px;
  margin-right: 8px;
  vertical-align: middle;
}

html.smartolt-night .modal .multiselect-container.dropdown-menu > li > a:hover,
html.smartolt-night .modal .multiselect-container.dropdown-menu > li > a:focus,
html.smartolt-night .modal .multiselect-container.dropdown-menu > li.active > a,
html.smartolt-night .modal .multiselect-container.dropdown-menu > li.active > a:hover,
html.smartolt-night .modal .multiselect-container.dropdown-menu > li.active > a:focus,
html.smartolt-night .onu-ui-modal .multiselect-container.dropdown-menu > li > a:hover,
html.smartolt-night .onu-ui-modal .multiselect-container.dropdown-menu > li > a:focus,
html.smartolt-night .onu-ui-modal .multiselect-container.dropdown-menu > li.active > a,
html.smartolt-night .onu-ui-modal .multiselect-container.dropdown-menu > li.active > a:hover,
html.smartolt-night .onu-ui-modal .multiselect-container.dropdown-menu > li.active > a:focus {
  background: rgba(29, 139, 255, 0.18) !important;
  color: #fff !important;
}

html.smartolt-night .modal .multiselect-container.dropdown-menu > li > a:hover > label,
html.smartolt-night .modal .multiselect-container.dropdown-menu > li > a:focus > label,
html.smartolt-night .modal .multiselect-container.dropdown-menu > li.active > a > label,
html.smartolt-night .onu-ui-modal .multiselect-container.dropdown-menu > li > a:hover > label,
html.smartolt-night .onu-ui-modal .multiselect-container.dropdown-menu > li > a:focus > label,
html.smartolt-night .onu-ui-modal .multiselect-container.dropdown-menu > li.active > a > label {
  color: #fff !important;
}

/* Disabled options — muted gray text, same dark bg as active rows */
html.smartolt-night .multiselect-container.dropdown-menu > li.disabled,
html.smartolt-night .multiselect-container.dropdown-menu > li.disabled.active {
  background: transparent !important;
}

html.smartolt-night .multiselect-container.dropdown-menu > li.disabled > a,
html.smartolt-night .multiselect-container.dropdown-menu > li.disabled > a:hover,
html.smartolt-night .multiselect-container.dropdown-menu > li.disabled > a:focus,
html.smartolt-night .multiselect-container.dropdown-menu > li.disabled.active > a,
html.smartolt-night .multiselect-container.dropdown-menu > li.disabled.active > a:hover,
html.smartolt-night .multiselect-container.dropdown-menu > li.disabled.active > a:focus {
  background: transparent !important;
  cursor: not-allowed !important;
  pointer-events: none;
}

html.smartolt-night .multiselect-container.dropdown-menu > li.disabled > a > label,
html.smartolt-night .multiselect-container.dropdown-menu > li.disabled.active > a > label {
  color: #64748b !important;
  font-weight: 400 !important;
}

html.smartolt-night .multiselect-container.dropdown-menu > li.disabled > a > label input[type="checkbox"],
html.smartolt-night .multiselect-container.dropdown-menu > li.disabled > a > label input[type="radio"],
html.smartolt-night .multiselect-container.dropdown-menu > li.disabled input[type="checkbox"],
html.smartolt-night .multiselect-container.dropdown-menu > li.disabled input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 3px;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
  pointer-events: none;
}

html.smartolt-night .multiselect-container.dropdown-menu > li.disabled > a > label input[type="radio"],
html.smartolt-night .multiselect-container.dropdown-menu > li.disabled input[type="radio"] {
  border-radius: 50%;
}

html.smartolt-night .multiselect-container.dropdown-menu > li.disabled > a > label input[type="checkbox"]:checked,
html.smartolt-night .multiselect-container.dropdown-menu > li.disabled input[type="checkbox"]:checked {
  background: rgba(100, 116, 139, 0.45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23cbd5e1'%3E%3Cpath d='M12.2 4.2 6.8 10.3 3.8 7.3l-1.3 1.4 4.3 4.2 6.7-7.5z'/%3E%3C/svg%3E") center/10px no-repeat;
  border-color: rgba(148, 163, 184, 0.45);
}

html.smartolt-night .modal .multiselect-container > li.multiselect-all > a > label,
html.smartolt-night .onu-ui-modal .multiselect-container > li.multiselect-all > a > label {
  font-weight: 600;
}

html.smartolt-night .modal .multiselect-container > li.multiselect-group > a > label,
html.smartolt-night .onu-ui-modal .multiselect-container > li.multiselect-group > a > label {
  background: rgba(255, 255, 255, 0.04) !important;
  color: rgba(255, 255, 255, 0.55) !important;
  font-weight: 600;
  padding: 6px 16px !important;
}

html.smartolt-night .modal .multiselect-container .multiselect-filter,
html.smartolt-night .onu-ui-modal .multiselect-container .multiselect-filter {
  padding: 8px 10px 6px !important;
}

html.smartolt-night .modal .multiselect-container .multiselect-filter .input-group,
html.smartolt-night .onu-ui-modal .multiselect-container .multiselect-filter .input-group {
  width: 100%;
}

html.smartolt-night .modal .multiselect-container .input-group-addon,
html.smartolt-night .onu-ui-modal .multiselect-container .input-group-addon {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: rgba(255, 255, 255, 0.55) !important;
}

html.smartolt-night .modal .multiselect-container .multiselect-search,
html.smartolt-night .onu-ui-modal .multiselect-container .multiselect-search {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #f1f5f9 !important;
}

html.smartolt-night .modal .multiselect-container .multiselect-search:focus,
html.smartolt-night .onu-ui-modal .multiselect-container .multiselect-search:focus {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: #3b82f6 !important;
  box-shadow: none !important;
  color: #fff !important;
}

html.smartolt-night .modal .multiselect-container .multiselect-search::placeholder,
html.smartolt-night .onu-ui-modal .multiselect-container .multiselect-search::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

html.smartolt-night .modal .multiselect-container .multiselect-clear-filter,
html.smartolt-night .onu-ui-modal .multiselect-container .multiselect-clear-filter {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

html.smartolt-night .modal .multiselect-container .multiselect-clear-filter:hover,
html.smartolt-night .modal .multiselect-container .multiselect-clear-filter:focus,
html.smartolt-night .onu-ui-modal .multiselect-container .multiselect-clear-filter:hover,
html.smartolt-night .onu-ui-modal .multiselect-container .multiselect-clear-filter:focus {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
}

html.smartolt-night .modal .dropdown-menu {
  background: #0b1528 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 8px !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45) !important;
  z-index: 1060 !important;
}

html.smartolt-night .modal .dropdown-menu > li > a {
  color: #e2e8f0;
  padding: 8px 16px;
}

html.smartolt-night .modal .dropdown-menu > li > a:hover,
html.smartolt-night .modal .dropdown-menu > li > a:focus,
html.smartolt-night .modal .dropdown-menu > .active > a,
html.smartolt-night .modal .dropdown-menu > .active > a:hover,
html.smartolt-night .modal .dropdown-menu > .active > a:focus {
  background: rgba(29, 139, 255, 0.18) !important;
  color: #fff !important;
}

/* Configure Auto Actions modal (#autoActionsModal) — override inline light styles from task_add/task_details */
html.smartolt-night #autoActionsModal .modal-section-header {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  margin: -18px -20px 20px !important;
  padding: 15px 20px !important;
}

html.smartolt-night #autoActionsModal .modal-section-title {
  color: #f1f5f9 !important;
}

html.smartolt-night #autoActionsModal .modal-section-title .fa {
  color: #7ec3ff;
}

html.smartolt-night #autoActionsModal .preset-container {
  background-color: rgba(255, 255, 255, 0.04) !important;
  border-left-color: #3b82f6 !important;
}

html.smartolt-night #autoActionsModal .preset-arrow-icon {
  color: #7ec3ff !important;
}

html.smartolt-night #autoActionsModal .preset-warning-icon {
  color: #fbbf24 !important;
}

html.smartolt-night #autoActionsModal .duration-section {
  border-top-color: rgba(255, 255, 255, 0.1) !important;
}

html.smartolt-night #autoActionsModal .more-actions-toggle a {
  color: #7ec3ff !important;
}

html.smartolt-night #autoActionsModal .more-actions-toggle a:hover {
  color: #b8dcff !important;
}

html.smartolt-night #autoActionsModal .more-actions-section {
  border-top-color: rgba(255, 255, 255, 0.15) !important;
}

html.smartolt-night #autoActionsModal .info-icon,
html.smartolt-night #autoActionsModal .fa-info-circle.text-muted {
  color: rgba(255, 255, 255, 0.45) !important;
}

html.smartolt-night #autoActionsModal .text-muted,
html.smartolt-night #autoActionsModal small.text-muted {
  color: rgba(255, 255, 255, 0.52) !important;
}

html.smartolt-night #autoActionsModal .progress-text {
  color: #e2e8f0;
}

html.smartolt-night #autoActionsModal .text-green {
  color: #6ee7b7 !important;
}

html.smartolt-night #autoActionsModal .text-red {
  color: #fca5a5 !important;
}

html.smartolt-night #autoActionsModal .switch .slider {
  background-color: rgba(255, 255, 255, 0.22);
}

html.smartolt-night #autoActionsModal .switch input:checked + .slider {
  background-color: #22c55e;
}

html.smartolt-night #autoActionsModal .switch .slider:before {
  background-color: #f8fafc;
}

html.smartolt-night #autoActionsModal #auto_interval_group .pagination li span,
html.smartolt-night #autoActionsModal #auto_interval_pagination > li > span {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #86efac;
}

html.smartolt-night #autoActionsModal #auto_interval_group .pagination li.active span,
html.smartolt-night #autoActionsModal #auto_interval_group .pagination li span:hover,
html.smartolt-night #autoActionsModal #auto_interval_group .pagination li span:focus,
html.smartolt-night #autoActionsModal #auto_interval_pagination > li.active > span,
html.smartolt-night #autoActionsModal #auto_interval_pagination > li > span:hover,
html.smartolt-night #autoActionsModal #auto_interval_pagination > li > span:focus {
  background-color: rgba(34, 197, 94, 0.28) !important;
  border-color: #22c55e !important;
  color: #ecfdf5 !important;
}

html.smartolt-night #autoActionsModal .task-progress-bar {
  background-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: none;
}

html.smartolt-night #autoActionsModal .task-progress-bar .progress-bar-success {
  background-color: #22c55e !important;
}

html.smartolt-night #autoActionsModal .task-progress-bar .progress-bar-danger {
  background-color: #ef4444 !important;
}

html.smartolt-night #autoActionsModal .alert-warning {
  background: rgba(251, 191, 36, 0.14) !important;
  border-color: rgba(251, 191, 36, 0.32) !important;
  color: #fde68a !important;
}

html.smartolt-night #autoActionsModal .alert-danger {
  background: rgba(248, 113, 113, 0.14) !important;
  border-color: rgba(248, 113, 113, 0.32) !important;
  color: #fecaca !important;
}

html.smartolt-night #autoActionsModal .alert .close {
  color: inherit !important;
  opacity: 0.75;
}

html.smartolt-night #autoActionsModal .btn-group .multiselect.dropdown-toggle,
html.smartolt-night #autoActionsModal button.multiselect.dropdown-toggle {
  font-size: 15px;
  height: 45px !important;
  line-height: 1.42857143;
  min-height: 45px;
  padding: 10px 24px 10px 12px !important;
}

html.smartolt-night #autoActionsModal .multiselect-selected-text {
  line-height: 1.42857143;
  min-height: 1.42857143em;
}

/* Mgmt IP modal — override inline light styles from onu_voip_mgmt.php */
html.smartolt-night #updateMgmtIP .modal-body {
  background: #0d1829 !important;
}

html.smartolt-night #updateMgmtIP .modal-footer {
  background: rgba(255, 255, 255, 0.03) !important;
}

html.smartolt-night #updateMgmtIP .ip-config-section {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px;
}

html.smartolt-night #updateMgmtIP .ip-config-section-heading {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html.smartolt-night #updateMgmtIP .ip-config-section-heading h4 {
  color: #f1f5f9;
}

html.smartolt-night #updateMgmtIP .ip-config-section-heading i {
  color: rgba(255, 255, 255, 0.55);
}

html.smartolt-night #updateMgmtIP .ip-config-section-heading.scope-mgmt h4,
html.smartolt-night #updateMgmtIP .ip-config-section-heading.scope-mgmt i {
  color: #7ec3ff;
}

html.smartolt-night #updateMgmtIP .ip-config-section-heading.scope-voip h4,
html.smartolt-night #updateMgmtIP .ip-config-section-heading.scope-voip i {
  color: #c4a7e7;
}

html.smartolt-night #updateMgmtIP .ip-section-meta {
  color: rgba(255, 255, 255, 0.52);
}

html.smartolt-night #updateMgmtIP .ip-details-grid {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

html.smartolt-night #updateMgmtIP .ip-details-grid label {
  color: rgba(255, 255, 255, 0.55) !important;
}

html.smartolt-night #updateMgmtIP .ip-details-grid input.form-control {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #f1f5f9 !important;
}

html.smartolt-night #updateMgmtIP .ip-details-grid input.form-control[disabled] {
  background: rgba(255, 255, 255, 0.03) !important;
  color: rgba(255, 255, 255, 0.45) !important;
}

html.smartolt-night #updateMgmtIP .ip-detail-toggle-row .btn-link,
html.smartolt-night #updateMgmtIP .toggle-text {
  color: #8cc8ff;
}

html.smartolt-night #updateMgmtIP .ip-detail-toggle-row .btn-link:hover,
html.smartolt-night #updateMgmtIP .ip-detail-toggle-row .btn-link:focus,
html.smartolt-night #updateMgmtIP .toggle-text:hover,
html.smartolt-night #updateMgmtIP .toggle-text:focus {
  color: #b8dcff;
}

html.smartolt-night #updateMgmtIP .help-block,
html.smartolt-night #updateMgmtIP .help-block a {
  color: rgba(255, 255, 255, 0.52);
}

html.smartolt-night #updateMgmtIP .help-block a:hover,
html.smartolt-night #updateMgmtIP .help-block a:focus {
  color: #8cc8ff;
}

html.smartolt-night #updateMgmtIP .control-label a,
html.smartolt-night #updateMgmtIP label a {
  color: #8cc8ff;
}

html.smartolt-night #updateMgmtIP .control-label a:hover,
html.smartolt-night #updateMgmtIP label a:focus,
html.smartolt-night #updateMgmtIP label a:hover,
html.smartolt-night #updateMgmtIP label a:focus {
  color: #b8dcff;
}

html.smartolt-night #updateMgmtIP .text-warning,
html.smartolt-night #updateMgmtIP #mgmt_vlan_pool_warning,
html.smartolt-night #updateMgmtIP #voip_vlan_pool_warning {
  color: #fcd34d !important;
}

html.smartolt-night #updateMgmtIP .input-group .input-group-btn > .copy-ip-sync {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

html.smartolt-night #updateMgmtIP .input-group .input-group-btn > .copy-ip-sync:hover,
html.smartolt-night #updateMgmtIP .input-group .input-group-btn > .copy-ip-sync:focus {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* OLT modals — override inline light styles from olt_uplink_info.php */
html.smartolt-night .olt-ui-modal .modal-body,
html.smartolt-night #configureUplinkPort.olt-ui-modal .modal-body {
  background: #0d1829 !important;
  overflow: visible;
}

html.smartolt-night .olt-ui-modal .modal-footer,
html.smartolt-night #configureUplinkPort.olt-ui-modal .modal-footer {
  background: rgba(255, 255, 255, 0.03) !important;
}

html.smartolt-night .olt-ui-modal .olt-modal-section,
html.smartolt-night #configureUplinkPort .olt-modal-section {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px;
}

html.smartolt-night .olt-ui-modal .olt-modal-section-heading,
html.smartolt-night #configureUplinkPort .olt-modal-section-heading {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html.smartolt-night .olt-ui-modal .olt-modal-section-heading h4,
html.smartolt-night #configureUplinkPort .olt-modal-section-heading h4 {
  color: #f1f5f9 !important;
}

html.smartolt-night .olt-ui-modal .olt-modal-section-heading i,
html.smartolt-night #configureUplinkPort .olt-modal-section-heading i {
  color: #7ec3ff !important;
}

html.smartolt-night #configurePonPort .modal-body,
html.smartolt-night #rebuildModal .modal-body {
  background: #0d1829 !important;
}

html.smartolt-night #configurePonPort .modal-footer,
html.smartolt-night #rebuildModal .modal-footer {
  background: rgba(255, 255, 255, 0.03) !important;
}

/* ONU view — Get status, TR069 stat, live graph, traffic/signal charts */
html.smartolt-night body.smartolt-site .onu-wrapper pre.status_container,
html.smartolt-night body.smartolt-site .onu-wrapper #status {
  background: rgba(0, 0, 0, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px;
  color: #cbd5e1 !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: 15px;
  line-height: 1.6;
  margin-top: 8px;
  max-height: none !important;
  overflow: visible !important;
  padding: 14px 16px;
  white-space: pre-wrap;
}

html.smartolt-night body.smartolt-site .onu-wrapper #status_tr69.status_container {
  background: transparent;
  border: 0;
  margin-top: 8px;
  max-height: none !important;
  overflow: visible !important;
  padding: 0;
}

html.smartolt-night body.smartolt-site #status_tr69 .tr69.panel,
html.smartolt-night body.smartolt-site #status_tr69 .tr69.panel-info {
  background: rgba(15, 26, 46, 0.92);
  border-color: rgba(255, 255, 255, 0.1) !important;
  margin-bottom: 8px;
}

html.smartolt-night body.smartolt-site #status_tr69 .tr69 > .panel-heading {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #e2e8f0 !important;
  font-size: 15px;
}

html.smartolt-night body.smartolt-site #status_tr69 .panel-body.tr69data {
  background: transparent;
  color: #e2e8f0;
  font-size: 14px;
  line-height: 1.55;
  max-height: none !important;
  overflow: visible !important;
}

html.smartolt-night body.smartolt-site #status_tr69 .panel-body.tr69data.collapsing {
  overflow: hidden !important;
}

@media (max-width: 767px) {
  html.smartolt-night body.smartolt-site #status_tr69 .panel-body.tr69data {
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch;
  }

  html.smartolt-night body.smartolt-site #status_tr69 .tr69 .nav-tabs {
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
  }

  html.smartolt-night body.smartolt-site #status_tr69 .tr69 .nav-tabs > li {
    display: inline-block;
    float: none;
  }
}

html.smartolt-night body.smartolt-site #status_tr69 .panel-info > .panel-heading {
  background: rgba(59, 130, 246, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #bfdbfe !important;
  font-size: 15px;
}

html.smartolt-night body.smartolt-site #status_tr69 code {
  background: rgba(255, 255, 255, 0.08);
  color: #f9a8d4;
  font-size: 14px;
}

html.smartolt-night body.smartolt-site #status_tr69 .tr69editval:not([type="radio"]):not([type="checkbox"]),
html.smartolt-night body.smartolt-site #status_tr69 .form-control.input-sm {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  font-size: 14px;
  height: 34px;
}

html.smartolt-night body.smartolt-site #status_tr69 input[name="tag_add"] {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
}

body.smartolt-site #status_tr69 .tr69 .traceroute-result {
  background: #f8fafc;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
  color: #1f2937;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.35;
  margin: 0 0 8px;
  max-width: 100%;
  overflow: auto;
  padding: 8px 10px;
}

body.smartolt-site #status_tr69 .tr69 .traceroute-run-header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 4px;
}

body.smartolt-site #status_tr69 .tr69 .traceroute-run-meta,
body.smartolt-site #status_tr69 .tr69 .traceroute-status,
body.smartolt-site #status_tr69 .tr69 .traceroute-summary {
  color: #475569;
}

body.smartolt-site #status_tr69 .tr69 .traceroute-text-result {
  margin-top: 4px;
}

body.smartolt-site #status_tr69 .tr69 .traceroute-hop-table {
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.3;
  margin: 4px 0 0;
  max-width: 100%;
  table-layout: auto;
  width: auto;
}

body.smartolt-site #status_tr69 .tr69 .traceroute-hop-table th,
body.smartolt-site #status_tr69 .tr69 .traceroute-hop-table td {
  border-top: 1px solid #e2e8f0;
  padding: 2px 10px 2px 0;
  vertical-align: top;
  white-space: nowrap;
}

body.smartolt-site #status_tr69 .tr69 .traceroute-hop-table th {
  color: #334155;
  font-weight: 600;
}

body.smartolt-site #status_tr69 .tr69 .traceroute-hop-table th:first-child,
body.smartolt-site #status_tr69 .tr69 .traceroute-hop-table td:first-child {
  padding-left: 0;
  text-align: right;
  width: 1%;
}

body.smartolt-site #status_tr69 .tr69 .traceroute-hop-table th:nth-child(4),
body.smartolt-site #status_tr69 .tr69 .traceroute-hop-table td:nth-child(4) {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
}

html.smartolt-night body.smartolt-site #status_tr69 .tr69 .tab-content {
  color: #e2e8f0;
}

html.smartolt-night body.smartolt-site #status_tr69 .tr69 .tab-pane.active {
  background: rgba(2, 6, 23, 0.18);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-top: 0;
  padding: 10px;
}

html.smartolt-night body.smartolt-site #status_tr69 .tr69 .table {
  color: #e2e8f0;
}

html.smartolt-night body.smartolt-site #status_tr69 .tr69 .table > tbody > tr > td,
html.smartolt-night body.smartolt-site #status_tr69 .tr69 .table > tbody > tr > th,
html.smartolt-night body.smartolt-site #status_tr69 .tr69 .table > tr > td,
html.smartolt-night body.smartolt-site #status_tr69 .tr69 .table > tr > th {
  border-top-color: rgba(148, 163, 184, 0.16) !important;
  color: #e2e8f0;
}

html.smartolt-night body.smartolt-site #status_tr69 .tr69 pre {
  background: rgba(2, 6, 23, 0.62) !important;
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
  border-radius: 6px;
  color: #dbeafe !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Courier New", monospace;
  line-height: 1.45;
  margin-bottom: 8px;
  max-height: 360px;
  overflow: auto;
  padding: 10px 12px;
  white-space: pre-wrap;
  word-break: normal;
}

html.smartolt-night body.smartolt-site #status_tr69 #tr69_cwmp_capture_panel.well {
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
  box-shadow: none;
  color: #e2e8f0;
}

html.smartolt-night body.smartolt-site #status_tr69 #tr69_cwmp_capture_panel .text-muted {
  color: #94a3b8 !important;
}

html.smartolt-night body.smartolt-site #status_tr69 .tr69-cwmp-capture-output {
  background: rgba(2, 6, 23, 0.62) !important;
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
  border-radius: 6px;
  color: #dbeafe !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Courier New", monospace;
  line-height: 1.45;
}

html.smartolt-night body.smartolt-site #status_tr69 .tr69 pre.devlog {
  color: #cbd5e1 !important;
  font-size: 12px;
  max-height: 520px;
  tab-size: 2;
}

html.smartolt-night body.smartolt-site #status_tr69 .tr69 pre .table {
  background: transparent;
  color: inherit;
  margin: 8px 0 0;
}

html.smartolt-night body.smartolt-site #status_tr69 .tr69 pre .table > tbody > tr > td,
html.smartolt-night body.smartolt-site #status_tr69 .tr69 pre .table > tr > td {
  background: transparent !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
  color: #dbeafe !important;
}

html.smartolt-night body.smartolt-site #status_tr69 .tr69 .traceroute-result {
  background: rgba(2, 6, 23, 0.62);
  border-color: rgba(148, 163, 184, 0.24);
  color: #dbeafe;
}

html.smartolt-night body.smartolt-site #status_tr69 .tr69 .traceroute-run-meta,
html.smartolt-night body.smartolt-site #status_tr69 .tr69 .traceroute-status,
html.smartolt-night body.smartolt-site #status_tr69 .tr69 .traceroute-summary {
  color: #cbd5e1;
}

html.smartolt-night body.smartolt-site #status_tr69 .tr69 .traceroute-hop-table th,
html.smartolt-night body.smartolt-site #status_tr69 .tr69 .traceroute-hop-table td {
  border-color: rgba(148, 163, 184, 0.18);
  color: #dbeafe;
}

html.smartolt-night body.smartolt-site #status_tr69 .tr69 .traceroute-hop-table th {
  color: #bfdbfe;
}

html.smartolt-night body.smartolt-site #status_tr69 .diag-lock-banner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

html.smartolt-night body.smartolt-site #status_tr69 .diag-lock-banner .diagCancelBtn {
  float: none !important;
  margin-left: auto;
}

/* "Changed value" highlight: edit_tr69_value() sets an inline background-color:lightblue on
   the row (horizontal tables -> <tr>) or the cell (vertical tables -> <td>). Remap that
   theme-blind lightblue to a readable translucent blue for BOTH cases, and keep it visible on
   hover -- the generic .table-hover tr:hover wash (!important) would otherwise paint over it.
   The #status_tr69 ID gives these selectors higher specificity than that hover rule. */
html.smartolt-night body.smartolt-site #status_tr69 td[style*="lightblue"],
html.smartolt-night body.smartolt-site #status_tr69 tr[style*="lightblue"],
html.smartolt-night body.smartolt-site #status_tr69 tr[style*="lightblue"] > td,
html.smartolt-night body.smartolt-site #status_tr69 td[style*="lightblue"]:hover,
html.smartolt-night body.smartolt-site #status_tr69 tr[style*="lightblue"]:hover,
html.smartolt-night body.smartolt-site #status_tr69 tr[style*="lightblue"]:hover > td {
  background-color: rgba(59, 130, 246, 0.24) !important;
  color: #e2e8f0 !important;
}

/* Loading: disabled + active — keep solid selected blue (not global disabled grey wash) */
html.smartolt-night body.smartolt-site .onu-wrapper button.status_buttons.btn-success.active:disabled,
html.smartolt-night body.smartolt-site .onu-wrapper button.status_buttons.btn-success.active[disabled],
html.smartolt-night body.smartolt-site .onu-wrapper a.status_buttons.btn-success.active:disabled,
html.smartolt-night body.smartolt-site .onu-wrapper a.status_buttons.btn-success.active[disabled] {
  opacity: 1 !important;
  background-color: #004488 !important;
  border-color: #004488 !important;
  color: #fff !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.22) !important;
  cursor: wait;
}

html.smartolt-night body.smartolt-site .onu-wrapper #smartolt_live_graph {
  background: rgba(15, 26, 46, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.55;
  margin-top: 8px;
  max-height: none !important;
  overflow: visible !important;
  padding: 12px;
}

html.smartolt-night body.smartolt-site .onu-wrapper .status_buttons,
html.smartolt-night body.smartolt-site .onu-wrapper button.live.margin-bottom {
  font-size: 15px;
  line-height: 1.42857143;
  padding: 10px 15px;
}

html.smartolt-night body.smartolt-site .onu-wrapper .graphs-container {
  margin-top: 4px;
}

html.smartolt-night body.smartolt-site .onu-wrapper .graph-item {
  background-color: rgba(15, 26, 46, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22) !important;
}

html.smartolt-night body.smartolt-site .onu-wrapper .toolbar-buttons .btn,
html.smartolt-night body.smartolt-site .onu-wrapper .legend-icon-btn {
  color: #8cc8ff !important;
}

html.smartolt-night body.smartolt-site .onu-wrapper .toolbar-buttons .btn:hover,
html.smartolt-night body.smartolt-site .onu-wrapper .legend-icon-btn:hover {
  background: rgba(29, 139, 255, 0.12) !important;
  color: #b8dcff !important;
}

html.smartolt-night body.smartolt-site .onu-wrapper .datetime-picker-wrapper input {
  background-color: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #f1f5f9 !important;
}

html.smartolt-night body.smartolt-site .onu-wrapper .datetime-picker-wrapper .calendar-icon {
  color: rgba(255, 255, 255, 0.45);
}

/* Live charts: dark chart plot bg (like placeholder), flat legend — no inner border box */
html.smartolt-night body.smartolt-site .onu-wrapper #onu_traffic_wrap,
html.smartolt-night body.smartolt-site .onu-wrapper #onu_signal_wrap {
  background-color: transparent !important;
  border: none !important;
}

html.smartolt-night body.smartolt-site .onu-wrapper #onu_traffic_chart_container,
html.smartolt-night body.smartolt-site .onu-wrapper #onu_signal_chart_container,
html.smartolt-night body.smartolt-site .onu-wrapper #onu_traffic_chart,
html.smartolt-night body.smartolt-site .onu-wrapper #onu_signal_chart {
  background-color: rgba(0, 0, 0, 0.2) !important;
  border-radius: 0;
}
/* Frame the chart like the no-data placeholder ::before (same faint border). */
html.smartolt-night body.smartolt-site .onu-wrapper #onu_traffic_chart_container,
html.smartolt-night body.smartolt-site .onu-wrapper #onu_signal_chart_container {
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
html.smartolt-night body.smartolt-site .onu-wrapper #onu_traffic_chart,
html.smartolt-night body.smartolt-site .onu-wrapper #onu_signal_chart {
  border: none !important;
}

html.smartolt-night body.smartolt-site .onu-wrapper #onu_traffic_legend,
html.smartolt-night body.smartolt-site .onu-wrapper #onu_signal_legend {
  color: #cbd5e1;
}

body.smartolt-site .onu-wrapper #onu_traffic_no_data .smartolt-graph-no-data-caption,
body.smartolt-site .onu-wrapper #onu_signal_no_data .smartolt-graph-no-data-caption,
body.smartolt-site .onu-wrapper #onu_traffic_no_data .smartolt-graph-no-data-caption.text-muted,
body.smartolt-site .onu-wrapper #onu_signal_no_data .smartolt-graph-no-data-caption.text-muted {
  box-sizing: border-box;
  color: #2c3e50 !important;
  display: block;
  flex: 0 0 auto;
  font-size: 12px;
  line-height: 1.35;
  margin: auto 0 0 !important;
  max-width: 280px;
  min-height: var(--onu-graph-legend-row-height, 54px);
  opacity: 0.7;
  padding: 10px 0 0;
  text-align: center;
  transform: translateY(2px);
  width: 100%;
}

html.smartolt-night body.smartolt-site .onu-wrapper #onu_traffic_no_data .smartolt-graph-no-data-caption,
html.smartolt-night body.smartolt-site .onu-wrapper #onu_signal_no_data .smartolt-graph-no-data-caption,
html.smartolt-night body.smartolt-site .onu-wrapper #onu_traffic_no_data .smartolt-graph-no-data-caption.text-muted,
html.smartolt-night body.smartolt-site .onu-wrapper #onu_signal_no_data .smartolt-graph-no-data-caption.text-muted {
  color: #cbd5e1 !important;
  opacity: 0.7;
}

/* Graph thumbnail placeholders — /graphs, dashboard, modals, no_img PNGs (day + night) */
body.smartolt-site {
  --smartolt-graph-placeholder-inner: 208px;
  --smartolt-graph-placeholder-svg: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20452%20147%22%3E%3Cdefs%3E%3CradialGradient%20id%3D%22sun%22%20cx%3D%2288%22%20cy%3D%2252%22%20r%3D%2218%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%23fffef9%22%2F%3E%3Cstop%20offset%3D%2255%25%22%20stop-color%3D%22%23f8e8c4%22%2F%3E%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%23e2cfa0%22%2F%3E%3C%2FradialGradient%3E%3ClinearGradient%20id%3D%22hill-far%22%20x1%3D%22118%22%20y1%3D%2283%22%20x2%3D%22118%22%20y2%3D%22129%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%23c4ccd1%22%2F%3E%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%23adb5ba%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22hill-near%22%20x1%3D%22232%22%20y1%3D%2272%22%20x2%3D%22232%22%20y2%3D%22129%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%23bac1c4%22%2F%3E%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%239aa3a9%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22hill-right%22%20x1%3D%22368%22%20y1%3D%2292%22%20x2%3D%22368%22%20y2%3D%22129%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%23b5bdc2%22%2F%3E%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%23a0a9af%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cg%20transform%3D%22translate%28226%2073.5%29%20scale%280.75%29%20translate%28-226%20-73.5%29%22%3E%3Crect%20x%3D%2236%22%20y%3D%2220%22%20width%3D%22380%22%20height%3D%22107%22%20rx%3D%224%22%20ry%3D%224%22%20fill%3D%22%23eceff1%22%20fill-opacity%3D%220.35%22%20stroke%3D%22%23cfd6da%22%20stroke-width%3D%221.5%22%2F%3E%3Ccircle%20cx%3D%2288%22%20cy%3D%2252%22%20r%3D%2214%22%20fill%3D%22url%28%23sun%29%22%2F%3E%3Cg%20transform%3D%22translate%28226%20129%29%20scale%280.90%200.78%29%20translate%28-226%20-129%29%22%3E%3Cpath%20fill%3D%22url%28%23hill-far%29%22%20d%3D%22M58%20129%20118%2078%20178%20129z%22%2F%3E%3Cpath%20fill%3D%22url%28%23hill-near%29%22%20d%3D%22M142%20129%20232%2062%20322%20129z%22%2F%3E%3Cpath%20fill%3D%22url%28%23hill-right%29%22%20d%3D%22M312%20129%20358%2088%20404%20129z%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}

html.smartolt-night body.smartolt-site {
  --smartolt-graph-placeholder-svg: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20452%20147%22%3E%3Cdefs%3E%3CradialGradient%20id%3D%22moon%22%20cx%3D%2288%22%20cy%3D%2252%22%20r%3D%2216%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%23f8fafc%22%2F%3E%3Cstop%20offset%3D%2245%25%22%20stop-color%3D%22%23cbd5e1%22%2F%3E%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%2394a3b8%22%2F%3E%3C%2FradialGradient%3E%3ClinearGradient%20id%3D%22hill-far%22%20x1%3D%22118%22%20y1%3D%2283%22%20x2%3D%22118%22%20y2%3D%22129%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%2364748b%22%2F%3E%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%234b5563%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22hill-near%22%20x1%3D%22232%22%20y1%3D%2272%22%20x2%3D%22232%22%20y2%3D%22129%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%2394a3b8%22%2F%3E%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%2364748b%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22hill-right%22%20x1%3D%22368%22%20y1%3D%2292%22%20x2%3D%22368%22%20y2%3D%22129%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%237c8794%22%2F%3E%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%235c6670%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cg%20transform%3D%22translate%28226%2073.5%29%20scale%280.75%29%20translate%28-226%20-73.5%29%22%3E%3Crect%20x%3D%2236%22%20y%3D%2220%22%20width%3D%22380%22%20height%3D%22107%22%20rx%3D%224%22%20ry%3D%224%22%20fill%3D%22none%22%20stroke%3D%22rgba%28148%2C163%2C184%2C0.35%29%22%20stroke-width%3D%221.5%22%2F%3E%3Ccircle%20cx%3D%2288%22%20cy%3D%2252%22%20r%3D%2212%22%20fill%3D%22url%28%23moon%29%22%20opacity%3D%220.78%22%2F%3E%3Cg%20transform%3D%22translate%28226%20129%29%20scale%280.90%200.78%29%20translate%28-226%20-129%29%22%3E%3Cpath%20fill%3D%22url%28%23hill-far%29%22%20d%3D%22M58%20129%20118%2078%20178%20129z%22%2F%3E%3Cpath%20fill%3D%22url%28%23hill-near%29%22%20d%3D%22M142%20129%20232%2062%20322%20129z%22%2F%3E%3Cpath%20fill%3D%22url%28%23hill-right%29%22%20d%3D%22M312%20129%20358%2088%20404%20129z%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}

body.smartolt-site img.smartolt-graph-placeholder-swapped {
  display: inline-block !important;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

body.smartolt-site .smartolt-graph-placeholder-host > img.smartolt-graph-placeholder:not(.smartolt-graph-placeholder-swapped),
body.smartolt-site a:has(> img[src*="/content/img/no_img"]) > img[src*="/content/img/no_img"],
body.smartolt-site .panel-body:has(> img[src*="/content/img/no_img"]) > img[src*="/content/img/no_img"],
body.smartolt-site #onu_traffic_no_data > img[src*="/content/img/no_img"],
body.smartolt-site #onu_signal_no_data > img[src*="/content/img/no_img"] {
  display: none !important;
}

body.smartolt-site .smartolt-graph-placeholder-host,
body.smartolt-site a:has(> img[src*="/content/img/no_img"]),
body.smartolt-site .panel-body:has(> img[src*="/content/img/no_img"]) {
  display: inline-block;
  max-width: 100%;
  position: relative;
  vertical-align: top;
}

body.smartolt-site .onu-wrapper .graphs-container #onu_traffic_no_data.smartolt-graph-placeholder-host,
body.smartolt-site .onu-wrapper .graphs-container #onu_signal_no_data.smartolt-graph-placeholder-host {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
  position: relative;
}

body.smartolt-site .smartolt-graph-placeholder-host:not(#onu_traffic_no_data):not(#onu_signal_no_data)::before,
body.smartolt-site a:has(> img[src*="/content/img/no_img"])::before,
body.smartolt-site .panel-body:has(> img[src*="/content/img/no_img"])::before {
  background-color: #f8fafc;
  background-image: var(--smartolt-graph-placeholder-svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: var(--smartolt-graph-placeholder-inner) auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  box-sizing: border-box;
  content: "";
  display: block;
  max-width: 100%;
}

html.smartolt-night body.smartolt-site .smartolt-graph-placeholder-host:not(#onu_traffic_no_data):not(#onu_signal_no_data)::before,
html.smartolt-night body.smartolt-site a:has(> img[src*="/content/img/no_img"])::before,
html.smartolt-night body.smartolt-site .panel-body:has(> img[src*="/content/img/no_img"])::before {
  background-color: #0d1829;
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

body.smartolt-site .smartolt-graph-placeholder-host[data-smartolt-placeholder-size="graphs"]::before {
  --smartolt-graph-placeholder-inner: min(420px, 94%);
  box-sizing: border-box;
  display: block;
  height: 150px;
  margin-left: auto;
  margin-right: auto;
  max-width: 454px;
  width: 100%;
}

body.smartolt-site .smartolt-graph-placeholder-host[data-smartolt-placeholder-size="small"]::before,
body.smartolt-site a:has(> img[src*="/content/img/no_img_small"])::before,
body.smartolt-site a:has(> img[src*="acl_diagram_small"])::before,
body.smartolt-site .panel-body:has(> img[src*="/content/img/no_img_small"])::before {
  height: 120px;
  width: 320px;
  --smartolt-graph-placeholder-inner: 208px;
}

body.smartolt-site .smartolt-graph-placeholder-host[data-smartolt-placeholder-size="dashboard"]::before,
body.smartolt-site a:has(> img[src*="/content/img/no_img_dashboard"])::before,
body.smartolt-site .panel-body:has(> img[src*="/content/img/no_img_dashboard"])::before {
  height: 174px;
  width: 480px;
  --smartolt-graph-placeholder-inner: 312px;
}

body.smartolt-site .smartolt-graph-placeholder-host[data-smartolt-placeholder-size="big"]::before,
body.smartolt-site a:has(> img[src*="/content/img/no_img_big"])::before,
body.smartolt-site .panel-body:has(> img[src*="/content/img/no_img_big"])::before {
  height: 200px;
  width: 520px;
  --smartolt-graph-placeholder-inner: 338px;
}

body.smartolt-site a.smartolt-graph-placeholder-host {
  display: inline-block;
  vertical-align: top;
}

body.smartolt-site a.smartolt-graph-placeholder-host:has(> img.img-rounded)::before {
  border-radius: 6px;
}

body.smartolt-site .panel-body.smartolt-graph-placeholder-host {
  display: block;
  text-align: center;
}

body.smartolt-site .panel-body.smartolt-graph-placeholder-host::before {
  margin-left: auto;
  margin-right: auto;
}

/* #graphsModal — never apply listing/grid or colored-chart placeholder overlay */
#graphsModal .graphs-modal-body.smartolt-graph-placeholder-host {
  align-items: stretch;
  display: block;
  justify-content: flex-start;
  min-height: 0;
  padding: 0;
  text-align: center;
}

/* No-data graphs in the modal are decorated (redirect-detected); show the SVG placeholder
   at the modal graph size — the generic ::before rule supplies the art. */
#graphsModal a.smartolt-graph-placeholder-host::before,
#graphsModal .margin-10.smartolt-graph-placeholder-host::before {
  --smartolt-graph-placeholder-inner: min(460px, 94%);
  height: 200px;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  width: 520px;
}

#graphsModal .smartolt-graph-placeholder-host,
#graphsModal a.smartolt-graph-placeholder-host,
#graphsModal .margin-10.smartolt-graph-placeholder-host {
  display: block !important;
  max-width: none !important;
  position: static !important;
}

#graphsModal a:has(> img) > img:not(.smartolt-graph-placeholder),
#graphsModal img.img-responsive:not(.smartolt-graph-placeholder),
#graphsModal img.img-rounded:not(.smartolt-graph-placeholder) {
  display: block !important;
  height: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 100% !important;
  visibility: visible !important;
  width: auto !important;
}

#graphsModal .graphs-modal-body .margin-10 {
  display: block;
  text-align: center;
}

/* /graphs listing — PNG only; no SVG overlay; title/label stacked above thumbnail */
body.smartolt-site .content-wrap:has(> form.graphs) {
  text-align: center;
}

body.smartolt-site .content-wrap:has(> form.graphs) > h2,
body.smartolt-site .content-wrap:has(> form.graphs) > .alert,
body.smartolt-site .content-wrap:has(> form.graphs) > form.graphs {
  text-align: left;
}

/* No-data thumbnails are decorated by JS (redirect-detected); real data graphs are not.
   Show the SVG placeholder at thumbnail size — the generic ::before rule supplies the art. */
body.smartolt-site .content-wrap:has(> form.graphs) a.smartolt-graph-placeholder-host::before {
  --smartolt-graph-placeholder-inner: min(420px, 94%);
  height: 150px;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  width: 454px;
}

body.smartolt-site .content-wrap:has(> form.graphs) form.graphs ~ .margin-10.inline-block {
  display: inline-block;
  vertical-align: top;
}

body.smartolt-site .content-wrap:has(> form.graphs) form.graphs ~ .margin-10.inline-block > a.graph-onu-name,
body.smartolt-site .content-wrap:has(> form.graphs) form.graphs ~ .margin-10.inline-block > span {
  display: block !important;
  margin-left: auto;
  margin-right: auto;
  max-width: 454px;
  text-align: center;
}

body.smartolt-site .content-wrap:has(> form.graphs) form.graphs ~ .margin-10.inline-block > a:has(> img),
body.smartolt-site .content-wrap:has(> form.graphs) form.graphs ~ .margin-10.inline-block .smartolt-graph-placeholder-host {
  display: block !important;
  margin-left: auto;
  margin-right: auto;
  max-width: 454px;
  position: static !important;
}

body.smartolt-site .content-wrap:has(> form.graphs) form.graphs ~ .margin-10.inline-block > a:has(> img) > img:not(.smartolt-graph-placeholder),
body.smartolt-site .content-wrap:has(> form.graphs) form.graphs ~ .margin-10.inline-block img.img-responsive:not(.smartolt-graph-placeholder),
body.smartolt-site .content-wrap:has(> form.graphs) form.graphs ~ .margin-10.inline-block img.img-rounded:not(.smartolt-graph-placeholder) {
  display: block !important;
  height: auto !important;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  visibility: visible !important;
  width: 454px;
}

/* ONU view — keep live chart tiles on flex layout */
body.smartolt-site .onu-wrapper .graphs-container > #graph_item_traffic,
body.smartolt-site .onu-wrapper .graphs-container > #graph_item_signal {
  display: flex;
  /* Don't grow to fill the row — stay at half width so the first graph doesn't
     expand to full width and then shrink when the second one finishes loading. */
  flex: 0 1 calc(50% - 8px);
  flex-direction: column;
  max-width: 100%;
  min-width: min(100%, 360px);
}

/* On mobile the two graphs stack full-width, so let them grow again. */
@media (max-width: 768px) {
  body.smartolt-site .onu-wrapper .graphs-container > #graph_item_traffic,
  body.smartolt-site .onu-wrapper .graphs-container > #graph_item_signal {
    flex: 1 1 100%;
  }
}

body.smartolt-site .onu-wrapper #onu_traffic_wrap,
body.smartolt-site .onu-wrapper #onu_signal_wrap,
body.smartolt-site .onu-wrapper #onu_traffic_container,
body.smartolt-site .onu-wrapper #onu_signal_container {
  max-width: none !important;
  width: 100%;
}

/* ONU view — no-data tile: hills on top, caption pinned to legend row at bottom */
body.smartolt-site .onu-wrapper .graphs-container #onu_traffic_no_data.smartolt-graph-placeholder-host,
body.smartolt-site .onu-wrapper .graphs-container #onu_signal_no_data.smartolt-graph-placeholder-host {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: center;
}

body.smartolt-site .onu-wrapper .graphs-container #onu_traffic_no_data.smartolt-graph-placeholder-host::before,
body.smartolt-site .onu-wrapper .graphs-container #onu_signal_no_data.smartolt-graph-placeholder-host::before {
  border-radius: 4px;
  content: "";
  display: block;
  height: 160px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* jQuery MessageBox — alerts, warnings, confirms (SmartOLT light + night) */
body.smartolt-site .messagebox_overlay {
  backdrop-filter: blur(2px);
}

/* Light mode */
html:not(.smartolt-night) body.smartolt-site .messagebox_overlay {
  background-color: rgba(15, 23, 42, 0.42) !important;
}

html:not(.smartolt-night) body.smartolt-site .messagebox {
  background-color: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.04) !important;
  color: #1e293b !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  min-width: 320px !important;
}

html:not(.smartolt-night) body.smartolt-site .messagebox_content {
  color: #334155;
  font-size: 14px;
  line-height: 1.55;
  padding: 22px 24px 0 !important;
}

html:not(.smartolt-night) body.smartolt-site .messagebox_content:after {
  height: 22px;
}

html:not(.smartolt-night) body.smartolt-site .messagebox_content_label {
  color: #64748b !important;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
}

html:not(.smartolt-night) body.smartolt-site .messagebox_content_input {
  background: #fff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  color: #0f172a !important;
  font-size: 14px !important;
  padding: 8px 10px !important;
}

html:not(.smartolt-night) body.smartolt-site .messagebox_content_input:hover {
  border-color: #94a3b8 !important;
}

html:not(.smartolt-night) body.smartolt-site .messagebox_content_input:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
}

html:not(.smartolt-night) body.smartolt-site .messagebox_content_error {
  background-color: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  border-radius: 6px !important;
  color: #b91c1c !important;
  font-size: 13px;
  margin-bottom: 0;
}

html:not(.smartolt-night) body.smartolt-site .messagebox_buttons {
  background-color: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
  border-radius: 0 0 12px 12px !important;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  padding: 14px 18px 16px !important;
  text-align: right;
}

html:not(.smartolt-night) body.smartolt-site .messagebox_buttons button {
  background-image: none !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  margin: 0 !important;
  min-width: 88px !important;
  padding: 8px 16px !important;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

html:not(.smartolt-night) body.smartolt-site .messagebox_buttons .messagebox_button_done {
  background-color: #2563eb !important;
  border: 1px solid #2563eb !important;
  color: #fff !important;
}

html:not(.smartolt-night) body.smartolt-site .messagebox_buttons .messagebox_button_done:hover {
  background-color: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
  color: #fff !important;
}

html:not(.smartolt-night) body.smartolt-site .messagebox_buttons .messagebox_button_done:active {
  background-color: #1e40af !important;
  border-color: #1e40af !important;
}

html:not(.smartolt-night) body.smartolt-site .messagebox_buttons .messagebox_button_fail {
  background-color: #fff !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
}

html:not(.smartolt-night) body.smartolt-site .messagebox_buttons .messagebox_button_fail:hover {
  background-color: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

html:not(.smartolt-night) body.smartolt-site .messagebox_buttons .messagebox_button_fail:active {
  background-color: #e2e8f0 !important;
}

/* Night mode */
html.smartolt-night body.smartolt-site .messagebox_overlay {
  background-color: rgba(6, 22, 47, 0.78) !important;
}

html.smartolt-night body.smartolt-site .messagebox {
  background-color: #0d1829 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 12px !important;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) !important;
  color: #e2e8f0 !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  min-width: 320px !important;
}

html.smartolt-night body.smartolt-site .messagebox_content {
  color: #e2e8f0;
  font-size: 14px;
  line-height: 1.55;
  padding: 22px 24px 0 !important;
}

html.smartolt-night body.smartolt-site .messagebox_content:after {
  height: 22px;
}

html.smartolt-night body.smartolt-site .messagebox_content_label {
  color: #94a3b8 !important;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
}

html.smartolt-night body.smartolt-site .messagebox_content_input {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  color: #f1f5f9 !important;
  font-size: 14px !important;
  padding: 8px 10px !important;
}

html.smartolt-night body.smartolt-site .messagebox_content_input:hover {
  border-color: rgba(255, 255, 255, 0.22) !important;
}

html.smartolt-night body.smartolt-site .messagebox_content_input:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25) !important;
}

html.smartolt-night body.smartolt-site .messagebox_content_error {
  background: rgba(239, 68, 68, 0.15) !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
  border-radius: 6px !important;
  color: #fca5a5 !important;
  font-size: 13px;
  margin-bottom: 0;
}

html.smartolt-night body.smartolt-site .messagebox_buttons {
  background: rgba(255, 255, 255, 0.03) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 0 0 12px 12px !important;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  padding: 14px 18px 16px !important;
  text-align: right;
}

html.smartolt-night body.smartolt-site .messagebox_buttons button {
  background-image: none !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  margin: 0 !important;
  min-width: 88px !important;
  padding: 8px 16px !important;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

html.smartolt-night body.smartolt-site .messagebox_buttons .messagebox_button_done {
  background: #2563eb !important;
  border: 1px solid #2563eb !important;
  color: #fff !important;
}

html.smartolt-night body.smartolt-site .messagebox_buttons .messagebox_button_done:hover {
  background: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
  color: #fff !important;
}

html.smartolt-night body.smartolt-site .messagebox_buttons .messagebox_button_done:active {
  background: #1e40af !important;
  border-color: #1e40af !important;
}

html.smartolt-night body.smartolt-site .messagebox_buttons .messagebox_button_fail {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #cbd5e1 !important;
}

html.smartolt-night body.smartolt-site .messagebox_buttons .messagebox_button_fail:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  color: #f1f5f9 !important;
}

html.smartolt-night body.smartolt-site .messagebox_buttons .messagebox_button_fail:active {
  background: rgba(255, 255, 255, 0.08) !important;
}

/* ——— Dashboard-only ——— */

html.smartolt-night body.smartolt-dashboard .content-wrap {
  margin: 0 auto;
  padding-bottom: 40px;
}

/* Landing hero background — nextlan.ro .hero (night mode only, fixed, no layout shift) */
.smartolt-landing-hero-bg {
  display: none;
}

html.smartolt-night body.smartolt-site .smartolt-landing-hero-bg {
  background:
    radial-gradient(circle at 72% 18%, rgba(29, 139, 255, 0.24), transparent 28%),
    radial-gradient(circle at 18% 84%, rgba(0, 108, 255, 0.18), transparent 28%),
    linear-gradient(135deg, var(--navy-950), var(--navy-900) 55%, #031022);
  display: block;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

html.smartolt-night body.smartolt-site .smartolt-landing-hero-bg::before {
  background-image:
    linear-gradient(115deg, transparent 0 32%, rgba(29, 139, 255, 0.18) 32.2%, transparent 32.6% 100%),
    linear-gradient(155deg, transparent 0 45%, rgba(29, 139, 255, 0.13) 45.2%, transparent 45.6% 100%),
    linear-gradient(25deg, transparent 0 62%, rgba(0, 108, 255, 0.14) 62.1%, transparent 62.5% 100%);
  content: "";
  inset: 0;
  opacity: 0.8;
  pointer-events: none;
  position: absolute;
}

html.smartolt-night body.smartolt-site .smartolt-landing-hero-bg::after {
  background:
    linear-gradient(180deg, rgba(6, 22, 47, 0) 0%, rgba(6, 22, 47, 0.55) 100%),
    radial-gradient(circle at 26% 72%, rgba(29, 139, 255, 0.2), transparent 18%);
  bottom: 0;
  content: "";
  height: 220px;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
}

/* Topbar network overlay — behind navbar, no extra layout height (rework v1) */
.smartolt-topbar-network {
  display: none;
}

html.smartolt-night body.smartolt-site .smartolt-topbar-network {
  background:
    radial-gradient(circle at 72% 18%, rgba(29, 139, 255, 0.28), transparent 35%),
    radial-gradient(circle at 18% 84%, rgba(0, 108, 255, 0.2), transparent 35%),
    linear-gradient(135deg, var(--navy-950), var(--navy-900) 55%, #031022);
  display: block;
  height: var(--smartolt-topbar-height);
  left: 0;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1029;
}

html.smartolt-night body.smartolt-site .smartolt-topbar-network::before {
  background-image:
    linear-gradient(115deg, transparent 0 32%, rgba(29, 139, 255, 0.18) 32.2%, transparent 32.6% 100%),
    linear-gradient(155deg, transparent 0 45%, rgba(29, 139, 255, 0.13) 45.2%, transparent 45.6% 100%),
    linear-gradient(25deg, transparent 0 62%, rgba(0, 108, 255, 0.14) 62.1%, transparent 62.5% 100%);
  content: "";
  inset: 0;
  opacity: 0.85;
  position: absolute;
}

html.smartolt-night body.smartolt-site .smartolt-topbar-network-inner {
  inset: 0;
  position: absolute;
}

html.smartolt-night body.smartolt-site .smartolt-topbar-network-lines {
  height: 100%;
  left: 0;
  opacity: 0.9;
  position: absolute;
  top: 0;
  width: 100%;
}

html.smartolt-night body.smartolt-site .smartolt-topbar-network-lines line {
  stroke: rgba(29, 139, 255, 0.42);
  stroke-width: 0.35;
  vector-effect: non-scaling-stroke;
}

html.smartolt-night body.smartolt-site .smartolt-topbar-node {
  background: #1d8bff;
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(29, 139, 255, 0.95);
  height: 6px;
  opacity: 0.92;
  position: absolute;
  width: 6px;
}

html.smartolt-night body.smartolt-site .smartolt-topbar-node-a { left: 8%; top: 68%; }
html.smartolt-night body.smartolt-site .smartolt-topbar-node-b { left: 23%; top: 78%; }
html.smartolt-night body.smartolt-site .smartolt-topbar-node-c { left: 37%; top: 63%; }
html.smartolt-night body.smartolt-site .smartolt-topbar-node-d { left: 65%; top: 18%; }
html.smartolt-night body.smartolt-site .smartolt-topbar-node-e { left: 89%; top: 34%; }

html.smartolt-night body.smartolt-dashboard .panel-default,
html.smartolt-night body.smartolt-dashboard .panel-olt {
  overflow: visible;
}

html.smartolt-night body.smartolt-dashboard .panel-default > .panel-heading,
html.smartolt-night body.smartolt-dashboard .panel-olt > .panel-heading {
  overflow: visible;
  position: relative;
  z-index: 2;
}

body.smartolt-dashboard .panel-default > .panel-heading .pon-outage-panel-info {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  opacity: 0.8;
  cursor: help;
  font-size: 15px;
  line-height: 1;
  vertical-align: middle;
}

body.smartolt-dashboard .panel-default > .panel-heading .pon-outage-panel-info:hover,
body.smartolt-dashboard .panel-default > .panel-heading .pon-outage-panel-info:focus {
  opacity: 1;
  outline: none;
}

html.smartolt-night body.smartolt-dashboard .panel-heading .panel-heading-button {
  /* Out of flow + flex-centered so a heading with a dropdown is the same height
     as a plain text heading (matches modern.css). No transform — it would trap
     the dropdown z-index. The heading's overflow:visible + z-index above keep
     the dropdown painting over the panel body. */
  position: absolute;
  top: 0;
  bottom: 0;
  right: 15px;
  margin: 0;
  display: flex;
  align-items: center;
  z-index: 3;
}

html.smartolt-night body.smartolt-dashboard .panel-heading .btn-group.open {
  z-index: 4;
}

html.smartolt-night body.smartolt-dashboard .panel-heading-dropdown-toggle {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, 0.52) !important;
  font-weight: 500;
  padding: 2px 4px;
  text-shadow: none;
}

html.smartolt-night body.smartolt-dashboard .panel-heading-dropdown-toggle:hover,
html.smartolt-night body.smartolt-dashboard .panel-heading .btn-group.open .panel-heading-dropdown-toggle {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 0 !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, 0.78) !important;
}

html.smartolt-night body.smartolt-dashboard .panel-heading .btn-group.open .panel-heading-dropdown-toggle {
  color: rgba(255, 255, 255, 0.85) !important;
}

html.smartolt-night body.smartolt-dashboard .panel-heading-dropdown-toggle:focus,
html.smartolt-night body.smartolt-dashboard .panel-heading-dropdown-toggle:active {
  background: rgba(255, 255, 255, 0.05) !important;
  box-shadow: none !important;
  outline: none;
}

html.smartolt-night body.smartolt-dashboard .panel-heading-dropdown-toggle .caret {
  border-top-color: rgba(255, 255, 255, 0.42);
  margin-left: 3px;
}

html.smartolt-night body.smartolt-dashboard .panel-heading .dropdown-menu {
  background: #0b1528;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  margin-top: 4px;
  z-index: 1060;
}

html.smartolt-night body.smartolt-dashboard .panel-heading .dropdown-menu > li > a {
  color: #e2e8f0;
}

html.smartolt-night body.smartolt-dashboard .panel-heading .dropdown-menu > li > a:hover,
html.smartolt-night body.smartolt-dashboard .panel-heading .dropdown-menu > li > a:focus {
  background: rgba(29, 139, 255, 0.18);
  color: #fff;
}

html.smartolt-night body.smartolt-dashboard .panel-heading .dropdown-menu > li > input.form-control {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
  color: #f1f5f9;
  margin: 6px 10px 8px;
  width: calc(100% - 20px);
}

html.smartolt-night body.smartolt-dashboard .panel-heading .dropdown-menu > li > input.form-control::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

html.smartolt-night body.smartolt-dashboard .panel-heading .dropdown-menu > li > input.form-control:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: #3b82f6;
  color: #fff;
}

html.smartolt-night body.smartolt-dashboard #selected_olt {
  color: rgba(255, 255, 255, 0.52);
}

html.smartolt-night body.smartolt-dashboard .badge-light {
  background: rgba(29, 139, 255, 0.22);
  color: #bfdbfe;
  font-weight: 500;
}

html:not(.smartolt-night) body.smartolt-dashboard .panel-yellow {
  margin-bottom: 10.5px !important;
}

html.smartolt-night body.smartolt-dashboard .table td.date-switch {
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

html.smartolt-night body.smartolt-dashboard .panel-default > .table-responsive:last-child,
html.smartolt-night body.smartolt-dashboard .panel-default > .table-responsive {
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  overflow: hidden;
}

/* On phones the wide dashboard tables (e.g. PON outage) must scroll horizontally;
   the rounded-corner overflow:hidden above otherwise clips the table. */
@media (max-width: 767px) {
  html.smartolt-night body.smartolt-dashboard .panel-default > .table-responsive:last-child,
  html.smartolt-night body.smartolt-dashboard .panel-default > .table-responsive {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
}

html.smartolt-night body.smartolt-dashboard .network-status-chart-wrap {
  background: transparent !important;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

html.smartolt-night body.smartolt-dashboard #onusStatusesGraph.panel-body {
  background: transparent !important;
}

html.smartolt-night body.smartolt-dashboard #onus-statuses-chart {
  background: transparent !important;
}

html.smartolt-night body.smartolt-dashboard .network-status-chart-loading,
html.smartolt-night body.smartolt-dashboard .network-status-chart-empty {
  color: #94a3b8;
}
html.smartolt-night body.smartolt-dashboard .network-status-chart-empty-icon {
  color: #475569;
}
html.smartolt-night body.smartolt-dashboard .network-status-chart-empty-hint {
  color: #64748b;
}

/* ——— Task Monitor ——— */

html.smartolt-night body.smartolt-site #content-wrapper > .container:has(#taskOverview) {
  /* Extra top offset — fixed navbar + visible page title block */
  padding-top: 72px;
}

/* Hide duplicate "Monitor" h2; keep task title visible */
html.smartolt-night body.smartolt-site .container:has(#taskOverview) > h2:first-child {
  display: none;
}

html.smartolt-night body.smartolt-site .container:has(#taskOverview) > div > h2 {
  color: #f1f5f9;
  display: block;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 6px;
}

html.smartolt-night body.smartolt-site .container:has(#taskOverview) > div > h2 small {
  color: rgba(255, 255, 255, 0.52);
  font-size: 16px;
  font-weight: 500;
}

html.smartolt-night body.smartolt-site .container:has(#taskOverview) > div > .text-muted,
html.smartolt-night body.smartolt-site .container:has(#taskOverview) .text-muted {
  color: rgba(255, 255, 255, 0.52);
}

html.smartolt-night body.smartolt-site .container:has(#taskOverview) .onu-tasks-toolbar label {
  color: rgba(255, 255, 255, 0.78);
}

html.smartolt-night body.smartolt-site .metric-card {
  background: rgba(15, 26, 46, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  color: #e2e8f0;
}

html.smartolt-night body.smartolt-site .metric-card h4 {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
}

html.smartolt-night body.smartolt-site .metric-card h4 .pull-right .btn-default {
  margin-left: 6px;
}

html.smartolt-night body.smartolt-site .metric-card h5,
html.smartolt-night body.smartolt-site #taskOverview h5,
html.smartolt-night body.smartolt-site #adaptiveMetrics h5,
html.smartolt-night body.smartolt-site #adaptiveCharts h5 {
  color: #e2e8f0 !important;
}

/* Health Metrics History — scrollable table (inline light thead + bottom edge) */
html.smartolt-night body.smartolt-site #adaptiveMetrics .table-responsive {
  background: rgba(11, 21, 40, 0.96) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

html.smartolt-night body.smartolt-site #adaptiveMetrics .table-responsive .table {
  background: transparent;
  margin-bottom: 0;
}

html.smartolt-night body.smartolt-site #adaptiveMetrics .table-responsive thead,
html.smartolt-night body.smartolt-site #adaptiveMetrics .table-responsive thead[style*="background: #f5f7f8"],
html.smartolt-night body.smartolt-site #adaptiveMetrics .table-responsive thead[style*="background:#f5f7f8"] {
  background: rgba(15, 26, 46, 0.98) !important;
}

html.smartolt-night body.smartolt-site #adaptiveMetrics .table-responsive thead th {
  background: rgba(15, 26, 46, 0.98) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72) !important;
}

html.smartolt-night body.smartolt-site #adaptiveMetrics .table-responsive tbody td {
  background: transparent !important;
  border-top-color: rgba(255, 255, 255, 0.06) !important;
  color: #e2e8f0;
}

html.smartolt-night body.smartolt-site #adaptiveMetrics .table-responsive tbody > tr:nth-of-type(odd) > td {
  background: rgba(255, 255, 255, 0.03) !important;
}

html.smartolt-night body.smartolt-site #adaptiveMetrics .table-responsive tbody > tr:nth-of-type(even) > td {
  background: transparent !important;
}

html.smartolt-night body.smartolt-site #adaptiveMetrics .table-responsive tbody > tr:hover > td {
  background: rgba(29, 139, 255, 0.1) !important;
}

html.smartolt-night body.smartolt-site #adaptiveMetrics .table-responsive tbody > tr:last-child > td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

html.smartolt-night body.smartolt-site #adaptiveMetrics .table-responsive .text-danger {
  color: #fca5a5 !important;
}

html.smartolt-night body.smartolt-site #adaptiveMetrics .table-responsive .text-success {
  color: #6ee7b7 !important;
}

html.smartolt-night body.smartolt-site #adaptiveMetrics .table-responsive .text-warning {
  color: #fcd34d !important;
}

html.smartolt-night body.smartolt-site #taskOverview strong,
html.smartolt-night body.smartolt-site #actionsStatus strong,
html.smartolt-night body.smartolt-site .action-card strong {
  color: #f1f5f9;
}

html.smartolt-night body.smartolt-site #taskOverview small,
html.smartolt-night body.smartolt-site .action-card small {
  color: rgba(255, 255, 255, 0.55);
}

html.smartolt-night body.smartolt-site .action-card {
  background: rgba(11, 21, 40, 0.88);
  border-color: rgba(255, 255, 255, 0.1);
  border-left-color: #3b82f6;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  color: #e2e8f0;
}

html.smartolt-night body.smartolt-site .action-card.stopped {
  border-left-color: rgba(255, 255, 255, 0.35);
  opacity: 0.92;
}

html.smartolt-night body.smartolt-site .action-card h5 {
  color: #f1f5f9;
}

html.smartolt-night body.smartolt-site .stat-label {
  color: rgba(255, 255, 255, 0.55);
}

html.smartolt-night body.smartolt-site .stat-value {
  color: #e2e8f0;
}

html.smartolt-night body.smartolt-site .container:has(#taskOverview) .progress {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

html.smartolt-night body.smartolt-site .container:has(#taskOverview) .progress-bar-success {
  background: linear-gradient(180deg, #34d399 0%, #059669 100%);
}

html.smartolt-night body.smartolt-site .container:has(#taskOverview) .progress-bar-warning {
  background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
}

html.smartolt-night body.smartolt-site .container:has(#taskOverview) .progress-bar-danger {
  background: linear-gradient(180deg, #f87171 0%, #dc2626 100%);
}

html.smartolt-night body.smartolt-site .label-green {
  background-color: rgba(52, 211, 153, 0.22);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
}

html.smartolt-night body.smartolt-site .status-filter-list li {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
}

html.smartolt-night body.smartolt-site .status-filter-list li:hover {
  background: rgba(255, 255, 255, 0.1);
}

html.smartolt-night body.smartolt-site .status-filter-list li.active {
  background: rgba(29, 139, 255, 0.32);
  border-color: rgba(59, 130, 246, 0.55);
  color: #fff;
}

html.smartolt-night body.smartolt-site .status-filter-list li.active i,
html.smartolt-night body.smartolt-site .status-filter-list li.active span {
  color: #fff !important;
}

html.smartolt-night body.smartolt-site .adaptive-metric {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

html.smartolt-night body.smartolt-site .adaptive-metric .value {
  color: #7ec3ff;
}

html.smartolt-night body.smartolt-site .adaptive-metric .label {
  color: rgba(255, 255, 255, 0.55);
}

html.smartolt-night body.smartolt-site .circuit-closed {
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.28);
  color: #6ee7b7;
}

html.smartolt-night body.smartolt-site .circuit-half-open {
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.28);
  color: #fcd34d;
}

html.smartolt-night body.smartolt-site .circuit-open {
  background: rgba(248, 113, 113, 0.14);
  border: 1px solid rgba(248, 113, 113, 0.28);
  color: #fca5a5;
}

html.smartolt-night body.smartolt-site .worker-details,
html.smartolt-night body.smartolt-site .activity-timeline {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(59, 130, 246, 0.45);
}

html.smartolt-night body.smartolt-site .worker-detail-label,
html.smartolt-night body.smartolt-site .activity-summary {
  color: rgba(255, 255, 255, 0.55);
}

html.smartolt-night body.smartolt-site .worker-detail-value {
  color: #e2e8f0;
}

html.smartolt-night body.smartolt-site .worker-detail-value.highlight {
  color: #7ec3ff;
}

html.smartolt-night body.smartolt-site .worker-detail-value.countdown {
  color: #fbbf24;
}

html.smartolt-night body.smartolt-site .worker-detail-value[style*="color: #e74c3c"],
html.smartolt-night body.smartolt-site .activity-summary strong[style*="color: #e74c3c"] {
  color: #f87171 !important;
}

html.smartolt-night body.smartolt-site .activity-summary strong[style*="color: #95a5a6"] {
  color: rgba(255, 255, 255, 0.45) !important;
}

html.smartolt-night body.smartolt-site .chart-card {
  background: rgba(11, 21, 40, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

html.smartolt-night body.smartolt-site .chart-card h5 {
  color: #e2e8f0;
}

html.smartolt-night body.smartolt-site .event-log-container {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

html.smartolt-night body.smartolt-site .event-log-entry {
  background: rgba(15, 26, 46, 0.92);
  color: #e2e8f0;
}

html.smartolt-night body.smartolt-site .event-timestamp {
  color: rgba(255, 255, 255, 0.45);
}

html.smartolt-night body.smartolt-site .event-message {
  color: #e2e8f0;
}

html.smartolt-night body.smartolt-site .event-details {
  color: rgba(255, 255, 255, 0.45);
}

html.smartolt-night body.smartolt-site .error-details {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

html.smartolt-night body.smartolt-site #taskOverview div[style*="background: #fcf8e3"],
html.smartolt-night body.smartolt-site #taskOverview div[style*="background:#fcf8e3"] {
  background: rgba(251, 191, 36, 0.14) !important;
  border-color: rgba(251, 191, 36, 0.32) !important;
  color: #fde68a !important;
}

html.smartolt-night body.smartolt-site #taskOverview div[style*="background: #d9edf7"],
html.smartolt-night body.smartolt-site #taskOverview div[style*="background:#d9edf7"] {
  background: rgba(59, 130, 246, 0.14) !important;
  border-color: rgba(59, 130, 246, 0.32) !important;
  color: #bfdbfe !important;
}

html.smartolt-night body.smartolt-site .log-container {
  background: #0b1528;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

html.smartolt-night body.smartolt-site .refresh-indicator {
  background: rgba(29, 139, 255, 0.92);
  box-shadow: 0 4px 16px rgba(29, 139, 255, 0.35);
  color: #fff;
}

html.smartolt-night body.smartolt-site .pagination-info,
html.smartolt-night body.smartolt-site .pagination-controls .page-info {
  color: rgba(255, 255, 255, 0.55);
}

html.smartolt-night body.smartolt-site .pagination-arrow {
  color: #7ec3ff;
}

html.smartolt-night body.smartolt-site .pagination-arrow:hover:not(.disabled) {
  color: #b8dcff;
}

html.smartolt-night body.smartolt-site .pagination-arrow.disabled {
  color: rgba(255, 255, 255, 0.25);
}

html.smartolt-night body.smartolt-site .container:has(#taskOverview) .onu-table thead > tr > th {
  background: rgba(255, 255, 255, 0.06) !important;
}

@media (max-width: 991px) {
  html.smartolt-night body.smartolt-site {
    --smartolt-nav-offset: 62px;
    --smartolt-topbar-height: 60px;
  }

  html.smartolt-night body.smartolt-site #content-wrapper > .container,
  html.smartolt-night body.smartolt-site #content-wrapper > .container-fluid {
    padding-top: var(--smartolt-nav-offset);
  }

  html.smartolt-night body.smartolt-site .smartolt-topbar-network {
    height: var(--smartolt-topbar-height);
  }

  html.smartolt-night body.smartolt-dashboard .content-wrap {
    padding-bottom: 28px;
  }
}

/* ——— API Stats ——— */

html.smartolt-night body.smartolt-site #api_stats_window_buttons li span {
  background: transparent;
  border-color: rgba(140, 200, 255, 0.45);
  color: #8cc8ff;
}

html.smartolt-night body.smartolt-site #api_stats_window_buttons li.active span,
html.smartolt-night body.smartolt-site #api_stats_window_buttons li span:hover,
html.smartolt-night body.smartolt-site #api_stats_window_buttons li span:focus {
  background-color: rgba(29, 139, 255, 0.88);
  border-color: rgba(29, 139, 255, 0.88);
  color: #fff;
}

html.smartolt-night body.smartolt-site .api-stats-click-hint {
  color: rgba(255, 255, 255, 0.45);
}

html.smartolt-night body.smartolt-site tr.api-stats-row:hover .api-stats-click-hint {
  color: #8cc8ff;
}

html.smartolt-night body.smartolt-site #api_stats_recent_filter_from,
html.smartolt-night body.smartolt-site #api_stats_recent_filter_to {
  background-color: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #e2e8f0 !important;
}

html.smartolt-night body.smartolt-site #api_stats_drilldown_modal .text-muted,
html.smartolt-night body.smartolt-site #api_stats_drilldown_pagination_info {
  color: rgba(255, 255, 255, 0.52) !important;
}

html.smartolt-night body.smartolt-site #api_stats_drilldown_table .api-stats-param-key,
html.smartolt-night body.smartolt-site #api_stats_recent_table .api-stats-param-key {
  color: #cbd5e1;
}

html.smartolt-night body.smartolt-site #api_stats_drilldown_table .api-stats-resperr-inline,
html.smartolt-night body.smartolt-site #api_stats_recent_table .api-stats-resperr-inline {
  background-color: rgba(231, 76, 60, 0.12);
  border-left-color: #e74c3c;
  color: #ffb4aa;
}

html.smartolt-night body.smartolt-site #api_stats_drilldown_table .api-stats-resperr-code,
html.smartolt-night body.smartolt-site #api_stats_recent_table .api-stats-resperr-code {
  background-color: rgba(231, 76, 60, 0.18);
  color: #ffb4aa;
}

html.smartolt-night body.smartolt-site .api-stats-headroom-expansion-cell {
  background: rgba(11, 21, 40, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

html.smartolt-night body.smartolt-site .api-stats-headroom-breakdown-header {
  color: #e2e8f0;
}

html.smartolt-night body.smartolt-site .api-stats-headroom-day-label {
  color: #f1f5f9;
}

html.smartolt-night body.smartolt-site .api-stats-headroom-page-info {
  color: rgba(255, 255, 255, 0.52) !important;
}

html.smartolt-night body.smartolt-site .api-stats-headroom-hours {
  background: rgba(15, 26, 46, 0.96);
}

html.smartolt-night body.smartolt-site .api-stats-headroom-hours td {
  border-top-color: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

html.smartolt-night body.smartolt-site .api-stats-headroom-hours .api-stats-hour-label,
html.smartolt-night body.smartolt-site .api-stats-headroom-hours .api-stats-hour-calls {
  color: rgba(255, 255, 255, 0.55);
}

html.smartolt-night body.smartolt-site .api-stats-headroom-hours .api-stats-bar-fill {
  background-color: #1d8bff;
}

html.smartolt-night body.smartolt-site .api-stats-headroom-hours .api-stats-bar-over {
  background-color: #ff6b6b;
}

html.smartolt-night body.smartolt-site .api-stats-headroom-hours .api-stats-bar-cap-line {
  background-color: rgba(255, 255, 255, 0.45);
}

html.smartolt-night body.smartolt-site .api-stats-headroom-hours tr.api-stats-hour-row-clickable:hover td {
  background-color: rgba(29, 139, 255, 0.12);
}

html.smartolt-night body.smartolt-site .api-stats-headroom-hours tr.api-stats-headroom-day-sep td {
  background: rgba(255, 255, 255, 0.06);
  border-top-color: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

html.smartolt-night body.smartolt-site #api_stats_deprecation_breakdown {
  background: rgba(15, 26, 46, 0.96) !important;
  border-color: rgba(255, 193, 7, 0.28) !important;
  color: #e2e8f0 !important;
}

html.smartolt-night body.smartolt-site #api_stats_deprecation_breakdown thead tr {
  background: rgba(255, 193, 7, 0.12) !important;
  color: #fde68a !important;
}

html.smartolt-night body.smartolt-site #api_stats_deprecation_breakdown th,
html.smartolt-night body.smartolt-site #api_stats_deprecation_breakdown td {
  border-bottom-color: rgba(255, 193, 7, 0.18) !important;
}

html.smartolt-night body.smartolt-site #api_firewall_ban_history_section .last-loaded {
  color: rgba(255, 255, 255, 0.45);
}

html.smartolt-night body.smartolt-site .table-row-firewall-bad {
  background-color: rgba(231, 76, 60, 0.14) !important;
}

/* jQuery UI date/time picker (API stats recent calls + anywhere else) */
html.smartolt-night #ui-datepicker-div,
html.smartolt-night .ui-datepicker.ui-widget,
html.smartolt-night .ui-datepicker,
html.smartolt-night .ui-timepicker-div,
html.smartolt-night .ui-datepicker .ui-widget-content,
html.smartolt-night .ui-timepicker-div .ui-widget-content {
  background: #0f1a2e !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45) !important;
  color: #e2e8f0 !important;
}

html.smartolt-night .ui-datepicker .ui-widget-header,
html.smartolt-night .ui-datepicker-header,
html.smartolt-night .ui-timepicker-div dl {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #f1f5f9 !important;
}

html.smartolt-night .ui-datepicker-title,
html.smartolt-night .ui-datepicker th,
html.smartolt-night .ui-timepicker-div dt,
html.smartolt-night .ui-timepicker-div dd {
  color: rgba(255, 255, 255, 0.72) !important;
}

html.smartolt-night .ui-datepicker select.ui-datepicker-month,
html.smartolt-night .ui-datepicker select.ui-datepicker-year,
html.smartolt-night .ui-datepicker .ui-datepicker-title select {
  appearance: auto;
  -webkit-appearance: menulist;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 6px;
  color: #e2e8f0 !important;
  color-scheme: dark;
  padding: 2px 24px 2px 8px;
}

html.smartolt-night .ui-datepicker select.ui-datepicker-month option,
html.smartolt-night .ui-datepicker select.ui-datepicker-year option {
  background: #0f1a2e;
  color: #e2e8f0;
}

html.smartolt-night .ui-datepicker .ui-state-default,
html.smartolt-night .ui-datepicker td span,
html.smartolt-night .ui-datepicker td a,
html.smartolt-night .ui-timepicker-div .ui_tpicker_time_input {
  background: transparent !important;
  border-color: transparent !important;
  color: #cbd5e1 !important;
}

html.smartolt-night .ui-datepicker .ui-state-disabled,
html.smartolt-night .ui-datepicker .ui-state-disabled .ui-state-default {
  color: rgba(255, 255, 255, 0.25) !important;
  opacity: 1 !important;
}

html.smartolt-night .ui-datepicker td a.ui-state-default:hover,
html.smartolt-night .ui-datepicker td a.ui-state-default:focus,
html.smartolt-night .ui-datepicker .ui-state-hover,
html.smartolt-night .ui-datepicker .ui-state-focus {
  background: rgba(29, 139, 255, 0.18) !important;
  border-color: rgba(29, 139, 255, 0.35) !important;
  color: #fff !important;
}

html.smartolt-night .ui-datepicker td .ui-state-highlight,
html.smartolt-night .ui-datepicker td .ui-state-active,
html.smartolt-night .ui-datepicker .ui-state-active {
  background: rgba(29, 139, 255, 0.85) !important;
  border-color: rgba(29, 139, 255, 0.85) !important;
  color: #fff !important;
}

html.smartolt-night .ui-datepicker .ui-datepicker-prev,
html.smartolt-night .ui-datepicker .ui-datepicker-next,
html.smartolt-night .ui-datepicker .ui-datepicker-prev-hover,
html.smartolt-night .ui-datepicker .ui-datepicker-next-hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html.smartolt-night .ui-datepicker .ui-icon {
  filter: invert(0.85);
}

html.smartolt-night .ui-datepicker .ui-datepicker-buttonpane {
  background: rgba(255, 255, 255, 0.03) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

html.smartolt-night .ui-datepicker .ui-datepicker-buttonpane button {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 6px;
  color: #cbd5e1 !important;
  opacity: 1 !important;
}

html.smartolt-night .ui-datepicker .ui-datepicker-buttonpane button:hover,
html.smartolt-night .ui-datepicker .ui-datepicker-buttonpane button:focus {
  background: rgba(29, 139, 255, 0.18) !important;
  border-color: rgba(29, 139, 255, 0.35) !important;
  color: #fff !important;
}

html.smartolt-night .ui-datepicker .ui-datepicker-current {
  color: #8cc8ff !important;
}

html.smartolt-night .ui-timepicker-div {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

html.smartolt-night .ui-timepicker-div .ui_tpicker_time .ui_tpicker_time_input {
  border-bottom-color: rgba(255, 255, 255, 0.25) !important;
  color: #e2e8f0 !important;
}

html.smartolt-night .ui-timepicker-div .ui_tpicker_time .ui_tpicker_time_input:focus {
  border-bottom-color: #8cc8ff !important;
}

html.smartolt-night .ui-timepicker-div .ui-slider {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html.smartolt-night .ui-timepicker-div .ui-slider-handle {
  background: #1d8bff !important;
  border-color: #1d8bff !important;
}

@media (max-width: 767px) {
  html.smartolt-night body.smartolt-site #api_stats_top_uris_table tr,
  html.smartolt-night body.smartolt-site #api_stats_slowest_uris_table tr,
  html.smartolt-night body.smartolt-site #api_stats_top_keys_table tr,
  html.smartolt-night body.smartolt-site #api_stats_top_ips_table tr,
  html.smartolt-night body.smartolt-site #api_stats_headroom_table tr,
  html.smartolt-night body.smartolt-site #api_firewall_ban_history_table tr,
  html.smartolt-night body.smartolt-site #api_stats_drilldown_table tr,
  html.smartolt-night body.smartolt-site #api_stats_recent_table tr {
    background: rgba(15, 26, 46, 0.96);
    border-color: rgba(255, 255, 255, 0.12);
  }
}

/* ——— System Config ——— */

html.smartolt-night body.smartolt-site #accordion_tunnel .panel-title a,
html.smartolt-night body.smartolt-site #accordion_tr69 .panel-title a,
html.smartolt-night body.smartolt-site .panel-group .panel-title .accordion-toggle {
  color: #e2e8f0 !important;
  text-decoration: none;
}

html.smartolt-night body.smartolt-site #accordion_tunnel .panel-title a:hover,
html.smartolt-night body.smartolt-site #accordion_tunnel .panel-title a:focus,
html.smartolt-night body.smartolt-site #accordion_tr69 .panel-title a:hover,
html.smartolt-night body.smartolt-site #accordion_tr69 .panel-title a:focus,
html.smartolt-night body.smartolt-site .panel-group .panel-title .accordion-toggle:hover,
html.smartolt-night body.smartolt-site .panel-group .panel-title .accordion-toggle:focus {
  color: #fff !important;
}

html.smartolt-night body.smartolt-site .panel-heading .accordion-toggle:after {
  color: rgba(255, 255, 255, 0.45) !important;
}

html.smartolt-night body.smartolt-site .panel-group .panel + .panel {
  margin-top: 8px;
}

html.smartolt-night body.smartolt-site .tab-content,
html.smartolt-night body.smartolt-site .tab-pane {
  color: #e2e8f0;
}

html.smartolt-night body.smartolt-site .tab-content .panel-body p,
html.smartolt-night body.smartolt-site .tab-content .panel-body li,
html.smartolt-night body.smartolt-site .tab-content .panel-body span:not(.label):not(.badge) {
  color: #e2e8f0;
}

html.smartolt-night body.smartolt-site .tab-content .panel-body a:not(.btn) {
  color: #8cc8ff;
}

html.smartolt-night body.smartolt-site .tab-content .panel-body a:not(.btn):hover,
html.smartolt-night body.smartolt-site .tab-content .panel-body a:not(.btn):focus {
  color: #b8dcff;
}

html.smartolt-night body.smartolt-site .tr69 > .panel-heading {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #f1f5f9 !important;
}

html.smartolt-night body.smartolt-site pre.text-primary,
html.smartolt-night .modal pre.text-primary {
  background: rgba(0, 0, 0, 0.28) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #8cc8ff !important;
  padding: 12px;
}

html.smartolt-night body.smartolt-site .smartolt-routeros-script-wrap,
html.smartolt-night .modal .smartolt-routeros-script-wrap {
  background: rgba(15, 23, 42, 0.72) !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 10px;
}

html.smartolt-night body.smartolt-site .smartolt-routeros-script-wrap .smartolt-routeros-script,
html.smartolt-night .modal .smartolt-routeros-script-wrap .smartolt-routeros-script {
  background: rgba(2, 6, 23, 0.58) !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
  color: #dbeafe !important;
  margin-bottom: 0;
}

html.smartolt-night body.smartolt-site .smartolt-routeros-script-wrap::-webkit-scrollbar-track,
html.smartolt-night .modal .smartolt-routeros-script-wrap::-webkit-scrollbar-track {
  background: rgba(2, 6, 23, 0.45);
}

html.smartolt-night body.smartolt-site .smartolt-routeros-script-wrap::-webkit-scrollbar-thumb,
html.smartolt-night .modal .smartolt-routeros-script-wrap::-webkit-scrollbar-thumb {
  background: rgba(140, 200, 255, 0.42);
}

body.smartolt-site .smartolt-tunnel-log-meta {
  background: #f5f7fa;
  border: 1px solid #d8dce5;
  border-radius: 4px;
  color: #334155;
  font-size: 13px;
  margin-bottom: 10px;
  padding: 8px 12px;
}

body.smartolt-site .smartolt-tunnel-log-header {
  margin-bottom: 10px;
}

body.smartolt-site .smartolt-tunnel-log-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

body.smartolt-site .smartolt-tunnel-log-pre {
  font-size: 14px;
  line-height: 1.5;
  max-height: 65vh;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

html.smartolt-night body.smartolt-site .smartolt-tunnel-log-meta,
html.smartolt-night .modal .smartolt-tunnel-log-meta {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #e2e8f0 !important;
}

html.smartolt-night body.smartolt-site .smartolt-tunnel-log-meta strong,
html.smartolt-night .modal .smartolt-tunnel-log-meta strong {
  color: #f1f5f9 !important;
}

html.smartolt-night body.smartolt-site .smartolt-tunnel-log-header,
html.smartolt-night .modal .smartolt-tunnel-log-header {
  color: #e2e8f0;
}

html.smartolt-night body.smartolt-site .smartolt-tunnel-log-header .text-muted,
html.smartolt-night .modal .smartolt-tunnel-log-header .text-muted,
html.smartolt-night body.smartolt-site .smartolt-tunnel-log-meta .text-muted,
html.smartolt-night .modal .smartolt-tunnel-log-meta .text-muted {
  color: rgba(255, 255, 255, 0.55) !important;
}

html.smartolt-night body.smartolt-site .smartolt-tunnel-log-pre,
html.smartolt-night .modal .smartolt-tunnel-log-pre {
  background: rgba(0, 0, 0, 0.28) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #8cc8ff !important;
  padding: 12px;
}

body.smartolt-site .smartolt-tr069-flow-wrap {
  margin: 0 auto;
  max-width: 100%;
  text-align: center;
}

body.smartolt-site .smartolt-tr069-flow-img {
  display: inline-block;
  height: auto;
  margin: 0 auto;
  max-width: 100%;
  width: auto;
}

html.smartolt-night body.smartolt-site .scrollbar-indigo,
html.smartolt-night .modal .scrollbar-indigo {
  scrollbar-color: rgba(255, 255, 255, 0.22) rgba(255, 255, 255, 0.06);
}

html.smartolt-night body.smartolt-site #tr69 .multiselect.dropdown-toggle,
html.smartolt-night body.smartolt-site #tunnel .multiselect.dropdown-toggle {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #f1f5f9 !important;
}

html.smartolt-night body.smartolt-site #tr69 .multiselect.dropdown-toggle .caret,
html.smartolt-night body.smartolt-site #tunnel .multiselect.dropdown-toggle .caret {
  border-top-color: rgba(255, 255, 255, 0.55);
}

/* ——— ONU Logs Viewer ——— */

html.smartolt-night body.smartolt-site .filters-panel {
  background: rgba(15, 26, 46, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
}

html.smartolt-night body.smartolt-site .filters-panel label {
  color: rgba(255, 255, 255, 0.78) !important;
}

html.smartolt-night body.smartolt-site .filters-panel label .fa {
  color: #8cc8ff;
  margin-right: 4px;
}

html.smartolt-night body.smartolt-site .filters-panel .form-control {
  /* background-color longhand on purpose: the shorthand would wipe the
     select caret background-image set on select.form-control above */
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
}

html.smartolt-night body.smartolt-site .filters-panel .form-control:focus {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: #3b82f6;
  color: #fff;
}

html.smartolt-night body.smartolt-site .filters-panel .form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

html.smartolt-night body.smartolt-site .filter-actions button[type="submit"] {
  color: #7ec3ff !important;
}

html.smartolt-night body.smartolt-site .filter-actions button[type="submit"]:hover {
  color: #b8dcff !important;
}

html.smartolt-night body.smartolt-site .filter-actions a[title="Clear Filters"] {
  color: #f87171 !important;
}

html.smartolt-night body.smartolt-site .filter-actions a[title="Clear Filters"]:hover {
  color: #fca5a5 !important;
}

html.smartolt-night body.smartolt-site .filter-actions a[title="Logs Settings"] {
  color: rgba(255, 255, 255, 0.52) !important;
}

html.smartolt-night body.smartolt-site .filter-actions a[title="Logs Settings"]:hover {
  color: rgba(255, 255, 255, 0.78) !important;
}

html.smartolt-night body.smartolt-site .log-stats .badge-info {
  background: rgba(59, 130, 246, 0.28) !important;
  color: #bfdbfe !important;
}

html.smartolt-night body.smartolt-site .log-stats .badge-warning {
  background: rgba(245, 158, 11, 0.22) !important;
  color: #fcd34d !important;
}

html.smartolt-night body.smartolt-site .log-viewer .log-entry {
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

html.smartolt-night body.smartolt-site .log-viewer .log-entry:hover {
  background-color: rgba(29, 139, 255, 0.08) !important;
}

html.smartolt-night body.smartolt-site .log-viewer .log-timestamp {
  color: rgba(255, 255, 255, 0.52) !important;
}

html.smartolt-night body.smartolt-site .log-viewer .log-level-info {
  background-color: rgba(59, 130, 246, 0.22) !important;
  color: #93c5fd !important;
}

html.smartolt-night body.smartolt-site .log-viewer .log-level-debug {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.55) !important;
}

html.smartolt-night body.smartolt-site .log-viewer .log-level-warning {
  background-color: rgba(245, 158, 11, 0.18) !important;
  color: #fcd34d !important;
}

html.smartolt-night body.smartolt-site .log-viewer .log-level-error {
  background-color: rgba(239, 68, 68, 0.18) !important;
  color: #fca5a5 !important;
}

html.smartolt-night body.smartolt-site .log-viewer .log-source {
  color: #7ec3ff !important;
}

html.smartolt-night body.smartolt-site .log-viewer .log-message {
  color: #e2e8f0 !important;
}

html.smartolt-night body.smartolt-site .log-viewer .log-cmd-block code {
  background: rgba(0, 0, 0, 0.32) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #fca5a5 !important;
}

html.smartolt-night body.smartolt-site .log-viewer .toggle-raw {
  color: #8cc8ff !important;
}

html.smartolt-night body.smartolt-site .log-viewer .toggle-raw:hover {
  color: #b8dcff !important;
}

html.smartolt-night body.smartolt-site .log-viewer .operation-separator {
  background-color: rgba(59, 130, 246, 0.14) !important;
  border-top-color: rgba(59, 130, 246, 0.45) !important;
  color: #93c5fd !important;
}

html.smartolt-night body.smartolt-site .log-viewer .raw-view {
  background-color: rgba(0, 0, 0, 0.38) !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1 !important;
}

/* ——— OLT Health Dashboard ——— */

html.smartolt-night body.smartolt-site .container-fluid:has(#recent-events-table) > .row > [class*="col-"] > label,
html.smartolt-night body.smartolt-site .container-fluid:has(#summary-cards) > .row > [class*="col-"] > label {
  color: rgba(255, 255, 255, 0.78);
}

html.smartolt-night body.smartolt-site .metric-card .metric-value {
  color: #f1f5f9 !important;
}

html.smartolt-night body.smartolt-site .metric-card .metric-label {
  color: rgba(255, 255, 255, 0.55) !important;
}

html.smartolt-night body.smartolt-site #per-olt-table .row-danger > td,
html.smartolt-night body.smartolt-site .table .row-danger > td {
  background: rgba(239, 68, 68, 0.14) !important;
  color: #fecaca !important;
}

html.smartolt-night body.smartolt-site #per-olt-table .row-warning > td,
html.smartolt-night body.smartolt-site .table .row-warning > td {
  background: rgba(245, 158, 11, 0.14) !important;
  color: #fde68a !important;
}

html.smartolt-night body.smartolt-site .event-circuit_open {
  color: #fca5a5 !important;
}

html.smartolt-night body.smartolt-site .event-circuit_close {
  color: #6ee7b7 !important;
}

html.smartolt-night body.smartolt-site .event-circuit_reopen,
html.smartolt-night body.smartolt-site .event-load_reduction {
  color: #fcd34d !important;
}

html.smartolt-night body.smartolt-site .event-load_recovery {
  color: #6ee7b7 !important;
}

html.smartolt-night body.smartolt-site .metric-card .table-responsive:has(#recent-events-table) {
  background: rgba(11, 21, 40, 0.96) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

html.smartolt-night body.smartolt-site #recent-events-table {
  background: transparent;
  margin-bottom: 0;
}

html.smartolt-night body.smartolt-site #recent-events-table thead,
html.smartolt-night body.smartolt-site #recent-events-table thead[style*="background: #f5f7f8"],
html.smartolt-night body.smartolt-site #recent-events-table thead[style*="background:#f5f7f8"] {
  background: rgba(15, 26, 46, 0.98) !important;
}

html.smartolt-night body.smartolt-site #recent-events-table thead th {
  background: rgba(15, 26, 46, 0.98) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72) !important;
}

html.smartolt-night body.smartolt-site #recent-events-table tbody td {
  background: transparent !important;
  border-top-color: rgba(255, 255, 255, 0.06) !important;
  color: #e2e8f0;
}

html.smartolt-night body.smartolt-site #recent-events-table tbody > tr:nth-of-type(odd) > td {
  background: rgba(255, 255, 255, 0.03) !important;
}

html.smartolt-night body.smartolt-site #recent-events-table tbody > tr:nth-of-type(even) > td {
  background: transparent !important;
}

html.smartolt-night body.smartolt-site #recent-events-table tbody > tr:hover > td {
  background: rgba(29, 139, 255, 0.1) !important;
}

html.smartolt-night body.smartolt-site #recent-events-table tbody > tr:last-child > td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ——— Error Logs ——— */

html.smartolt-night body.smartolt-site .content-wrap:has(#error-log-table) > .row > [class*="col-"] > label {
  color: rgba(255, 255, 255, 0.78);
}

html.smartolt-night body.smartolt-site #error-count-display {
  color: rgba(255, 255, 255, 0.48) !important;
}

html.smartolt-night body.smartolt-site .error-badge-lock_wait_timeout,
html.smartolt-night body.smartolt-site .error-badge-deadlock {
  background: rgba(239, 68, 68, 0.18) !important;
  color: #fca5a5 !important;
}

html.smartolt-night body.smartolt-site .error-badge-db_error {
  background: rgba(245, 158, 11, 0.18) !important;
  color: #fcd34d !important;
}

html.smartolt-night body.smartolt-site .error-badge-php_error {
  background: rgba(59, 130, 246, 0.18) !important;
  color: #93c5fd !important;
}

html.smartolt-night body.smartolt-site .error-type-lock_wait_timeout,
html.smartolt-night body.smartolt-site .error-type-deadlock {
  color: #fca5a5 !important;
}

html.smartolt-night body.smartolt-site .error-type-db_error {
  color: #fcd34d !important;
}

html.smartolt-night body.smartolt-site .error-type-php_error {
  color: rgba(255, 255, 255, 0.55) !important;
}

html.smartolt-night body.smartolt-site #error-log-scroll {
  background: rgba(11, 21, 40, 0.96) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

html.smartolt-night body.smartolt-site #error-log-table {
  background: transparent;
  margin-bottom: 0;
}

html.smartolt-night body.smartolt-site #error-log-table thead,
html.smartolt-night body.smartolt-site #error-log-table thead[style*="background: #f5f7f8"],
html.smartolt-night body.smartolt-site #error-log-table thead[style*="background:#f5f7f8"] {
  background: rgba(15, 26, 46, 0.98) !important;
}

html.smartolt-night body.smartolt-site #error-log-table thead th {
  background: rgba(15, 26, 46, 0.98) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72) !important;
}

html.smartolt-night body.smartolt-site #error-log-table tbody td {
  background: transparent !important;
  border-top-color: rgba(255, 255, 255, 0.06) !important;
  color: #e2e8f0;
}

html.smartolt-night body.smartolt-site #error-log-table tbody > tr:nth-of-type(odd) > td {
  background: rgba(255, 255, 255, 0.03) !important;
}

html.smartolt-night body.smartolt-site #error-log-table tbody > tr:nth-of-type(even) > td {
  background: transparent !important;
}

html.smartolt-night body.smartolt-site #error-log-table tbody > tr:hover > td {
  background: rgba(29, 139, 255, 0.1) !important;
}

html.smartolt-night body.smartolt-site #error-log-table tbody > tr:last-child > td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

html.smartolt-night body.smartolt-site #error-log-table .error-msg-full {
  background: rgba(0, 0, 0, 0.28) !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: #cbd5e1 !important;
  padding: 8px 10px !important;
}

html.smartolt-night body.smartolt-site #error-log-table .error-msg-cell span[style*="color:#3498db"],
html.smartolt-night body.smartolt-site #error-log-table .error-msg-cell span[style*="color: #3498db"] {
  color: #8cc8ff !important;
}

/* Config comparison — scan + auto-sync detail tables */
html.smartolt-night body.smartolt-site .smartolt-config-comparison-table > thead > tr > th {
  background: rgba(15, 26, 46, 0.98) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 12px;
  font-weight: 600;
  vertical-align: middle;
  white-space: nowrap;
}

html.smartolt-night body.smartolt-site .smartolt-config-comparison-table > thead > tr {
  background: rgba(15, 26, 46, 0.98) !important;
}

/* Theme toggle — icon matches active preference (sun=light, moon=night, adjust=system).
   All icons stay hidden until JS adds .is-resolved: the server renders the account
   pref, which can differ from this device's local override, so we avoid showing the
   wrong icon for a frame. night.js (defer) resolves on DOMContentLoaded. */
#smartolt-night-toggle .smartolt-theme-icon-light,
#smartolt-night-toggle .smartolt-theme-icon-night,
#smartolt-night-toggle .smartolt-theme-icon-system {
  display: none;
}

#smartolt-night-toggle.is-resolved.is-pref-light .smartolt-theme-icon-light,
#smartolt-night-toggle.is-resolved.is-pref-night .smartolt-theme-icon-night {
  display: inline-block;
}

#smartolt-night-toggle.is-resolved.is-pref-system .smartolt-theme-icon-system {
  display: inline-block;
  opacity: 0.92;
}

html.smartolt-night #smartolt-night-toggle.is-pref-system .smartolt-theme-icon-system {
  color: #e2e8f0 !important;
}

html.smartolt-night #smartolt-night-toggle.is-pref-night {
  color: #fbbf24 !important;
}

/* Authorization preset wizard modal */
html.smartolt-night #presetWizardModal .wizard-steps li {
  color: rgba(255, 255, 255, 0.45);
}

html.smartolt-night #presetWizardModal .wizard-steps li.active {
  color: #8cc8ff;
}

html.smartolt-night #presetWizardModal .wizard-steps li.completed {
  color: #86efac;
}

html.smartolt-night #presetWizardModal .wizard-steps .step-num {
  background-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.78);
}

html.smartolt-night #presetWizardModal .wizard-steps li.active .step-num {
  background-color: #2563eb;
  color: #fff;
}

html.smartolt-night #presetWizardModal .wizard-steps li.completed .step-num {
  background-color: #16a34a;
  color: #fff;
}

html.smartolt-night #presetWizardModal .wizard-step-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

html.smartolt-night #presetWizardModal .wizard-step-header h4 {
  color: #f1f5f9;
}

html.smartolt-night #presetWizardModal .wizard-step-header h4 .text-success {
  color: #86efac !important;
}

html.smartolt-night #presetWizardModal .wizard-step-header p,
html.smartolt-night #presetWizardModal #wizard_preset_form .text-muted,
html.smartolt-night #presetWizardModal #wizard_preset_form .help-block {
  color: rgba(255, 255, 255, 0.52) !important;
}

html.smartolt-night #presetWizardModal .wizard-default-section,
html.smartolt-night #presetWizardModal #wizard_is_default_section {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #e2e8f0;
}

html.smartolt-night #presetWizardModal .wizard-default-section__title,
html.smartolt-night #presetWizardModal #wizard_is_default_section h5 {
  color: #f1f5f9;
}

html.smartolt-night #presetWizardModal .wizard-default-section__checkbox label,
html.smartolt-night #presetWizardModal #wizard_is_default_section .checkbox label {
  color: #e2e8f0;
}

html.smartolt-night #presetWizardModal .wizard-default-section__olt-name,
html.smartolt-night #presetWizardModal #wizard_default_olt_name {
  color: #f8fafc;
}

html.smartolt-night #presetWizardModal #wizard_existing_default_warning {
  background: rgba(234, 179, 8, 0.12) !important;
  border-color: rgba(234, 179, 8, 0.28) !important;
  color: #fde68a !important;
}

html.smartolt-night #presetWizardModal #wizard_preset_form code {
  background: rgba(245, 151, 55, 0.12) !important;
  border: 1px solid rgba(245, 151, 55, 0.35);
  border-radius: 4px;
  color: #f59737 !important;
  padding: 1px 5px;
}

html.smartolt-night #presetWizardModal .wizard-subsection-title {
  color: #e2e8f0 !important;
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

html.smartolt-night #presetWizardModal .wizard-subsection-title i {
  color: #8cc8ff !important;
}

html.smartolt-night #presetWizardModal .wizard-tip {
  background: rgba(234, 179, 8, 0.1) !important;
  border-color: rgba(234, 179, 8, 0.25) !important;
  color: #fde68a !important;
}

html.smartolt-night #presetWizardModal .wizard-tip i {
  color: #fbbf24 !important;
}

html.smartolt-night #presetWizardModal #wizardSummary .summary-row {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html.smartolt-night #presetWizardModal #wizardSummary .summary-label {
  color: #cbd5e1;
}

html.smartolt-night #presetWizardModal #wizardSummary .summary-value {
  color: #e2e8f0;
}

html.smartolt-night #presetWizardModal .wizard-progress .progress {
  background: rgba(255, 255, 255, 0.08);
}

/* Changelog feature links */
html.smartolt-night body.smartolt-site .changelog-link {
  color: #8cc8ff;
  border-bottom-color: rgba(140, 200, 255, 0.5);
}

html.smartolt-night body.smartolt-site .changelog-link:hover,
html.smartolt-night body.smartolt-site .changelog-link:focus {
  color: #bfe0ff;
  border-bottom-color: #bfe0ff;
}

/* Dashboard — SNMP trap alerts & diagnostics */
html.smartolt-night #snmp-trap-alert-panel .list-group-item-danger {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.28);
  color: #fecaca;
}

html.smartolt-night #snmp-trap-alert-panel .list-group-item-warning {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.28);
  color: #fde68a;
}

html.smartolt-night #snmp-trap-alert-panel .list-group-item-info {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.28);
  color: #bfdbfe;
}

html.smartolt-night #snmp-trap-alert-panel .list-group-item-heading,
html.smartolt-night #snmp-trap-alert-panel .list-group-item-text {
  color: inherit;
}

html.smartolt-night #snmp-trap-alert-panel .list-group-item small {
  color: rgba(255, 255, 255, 0.55);
}

html.smartolt-night #snmp-trap-alert-panel .list-group-item .badge {
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

html.smartolt-night #snmp-trap-alert-panel .snmp-trap-alert-dismiss.close:hover,
html.smartolt-night #snmp-trap-alert-panel .snmp-trap-alert-dismiss.close:focus {
  color: #fff !important;
  opacity: 1;
}

html.smartolt-night #snmp-trap-diagnostics-panel .snmp-trap-diagnostic-item {
  border-top-color: rgba(255, 255, 255, 0.08);
}

html.smartolt-night #snmp-trap-diagnostics-panel .snmp-trap-diagnostic-meta {
  color: rgba(255, 255, 255, 0.55);
}

html.smartolt-night #snmp-trap-diagnostics-panel .snmp-trap-diagnostic-message {
  color: #e2e8f0;
}

html.smartolt-night #snmp-trap-diagnostics-panel .snmp-trap-diagnostic-empty.text-muted {
  color: rgba(255, 255, 255, 0.45) !important;
}

html.smartolt-night #snmp-trap-diagnostics-panel .label-default {
  background: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

html.smartolt-night #snmp-trap-diagnostics-panel .label-danger {
  background: rgba(239, 68, 68, 0.25);
  color: #fecaca;
}

/* ONU view — compact status/signal popover and Live action */
html.smartolt-night body.smartolt-site .onu-wrapper button.live.margin-bottom {
  background-color: #1fb325 !important;
  border-color: #1fb325 !important;
  color: #fff !important;
}

html.smartolt-night body.smartolt-site .onu-wrapper button.live.margin-bottom:hover,
html.smartolt-night body.smartolt-site .onu-wrapper button.live.margin-bottom:focus,
html.smartolt-night body.smartolt-site .onu-wrapper button.live.margin-bottom.active {
  background-color: #1ca121 !important;
  border-color: #1ca121 !important;
  color: #fff !important;
}

html.smartolt-night body.smartolt-site #so-sigcard {
  background: rgba(15, 23, 42, 0.98) !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.48) !important;
  color: #e2e8f0 !important;
}

html.smartolt-night body.smartolt-site #so-sigcard .soc-close {
  color: rgba(226, 232, 240, 0.65) !important;
}

html.smartolt-night body.smartolt-site #so-sigcard .soc-close:hover {
  color: #fff !important;
}

html.smartolt-night body.smartolt-site #so-sigcard #soc-wrap > div {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(148, 163, 184, 0.14) !important;
}

html.smartolt-night body.smartolt-site #so-sigcard #soc-refresh,
html.smartolt-night body.smartolt-site #so-sigcard #soc-live {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(148, 163, 184, 0.24) !important;
  color: #dbeafe !important;
}

html.smartolt-night body.smartolt-site #so-sigcard #soc-refresh:hover,
html.smartolt-night body.smartolt-site #so-sigcard #soc-refresh:focus,
html.smartolt-night body.smartolt-site #so-sigcard #soc-live:hover,
html.smartolt-night body.smartolt-site #so-sigcard #soc-live:focus {
  background: rgba(59, 130, 246, 0.16) !important;
  border-color: rgba(147, 197, 253, 0.42) !important;
  color: #eff6ff !important;
}

/* PON capacity-load column (olt_details PON ports): inline #555/#999 text and the
   light-gray bar track are unreadable on the dark bg; the colored fill stays as-is. */
html.smartolt-night body.smartolt-site .pon-load-text {
  color: #e2e8f0 !important;
}

html.smartolt-night body.smartolt-site .pon-load-text small {
  color: #cbd5e1 !important;
}

html.smartolt-night body.smartolt-site .pon-load-bar {
  background: rgba(255, 255, 255, 0.14) !important;
}

/* PON/uplink ports tables: align header and body rows to the top like the light theme
   (night forces middle on .table cells globally; the #id scope outspecifies it without !important). */
html.smartolt-night body.smartolt-site #general_pon_ports_info .table > tbody > tr > td,
html.smartolt-night body.smartolt-site #general_pon_ports_info .table > tbody > tr > th,
html.smartolt-night body.smartolt-site #general_pon_ports_info .table > tr > td,
html.smartolt-night body.smartolt-site #general_pon_ports_info .table > tr > th,
html.smartolt-night body.smartolt-site #general_uplink_info .table > tbody > tr > td,
html.smartolt-night body.smartolt-site #general_uplink_info .table > tbody > tr > th,
html.smartolt-night body.smartolt-site #general_uplink_info .table > tr > td,
html.smartolt-night body.smartolt-site #general_uplink_info .table > tr > th {
  vertical-align: top;
}

/* --- PON outage dashboard sections (day + night) --- */
.pon-outage-wrap {
  padding: 10px 14px 14px;
}

.pon-outage-section {
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  box-shadow: none;
}

.pon-outage-section + .pon-outage-section .pon-outage-section__head {
  margin-top: 2px;
}

.pon-outage-section + .pon-outage-section .pon-outage-section__head::before {
  display: block;
}

.pon-outage-section__head {
  display: grid;
  grid-template-columns: 14px 30px max-content max-content max-content max-content minmax(0, 1fr);
  align-items: center;
  justify-content: start;
  position: relative;
  gap: 8px 10px;
  min-height: 48px;
  padding: 8px 16px;
  border-bottom: 0;
  background: transparent;
}

.pon-outage-section__head::before {
  content: "";
  position: absolute;
  display: none;
  top: -1px;
  left: 16px;
  right: 16px;
  border-top: 1px solid rgba(15, 23, 42, 0.12);
}

.pon-outage-section__head--toggle:hover {
  background: transparent;
}

.pon-outage-section__title {
  display: contents;
}

.pon-outage-section__icon {
  color: var(--pon-section-accent, #64748b);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 34px;
  font-size: 18px;
  line-height: 1;
}

.pon-outage-section__label {
  font-weight: 600;
  font-size: 16px;
  color: #1e293b;
  line-height: 1.3;
  white-space: nowrap;
}

.pon-outage-section__stats {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  min-height: 32px;
}

.pon-outage-section__hint {
  flex: 0 0 100%;
  font-size: 11px;
  font-weight: 400;
  color: #94a3b8;
  margin-top: -2px;
}

.pon-outage-section__title-row {
  display: contents;
}

.pon-outage-section__caret {
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  width: 14px;
  height: 34px;
  font-size: 13px;
  line-height: 1;
  vertical-align: middle;
}

.pon-outage-severity-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 0;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
}

.pon-outage-severity-pill--1 {
  color: #D98A00;
  background: transparent;
  border-color: #D98A00;
}

.pon-outage-severity-pill--2 {
  color: #4C3F83;
  background: transparent;
  border-color: #4C3F83;
}

.pon-outage-severity-pill--3 {
  color: #B91C1C;
  background: transparent;
  border-color: #B91C1C;
}

.pon-signal-degradation-table .pon-outage-severity-pill {
  vertical-align: middle;
}

.pon-outage-section__body .pon-signal-degradation-table,
.pon-outage-section__body .pon-group-table {
  border-collapse: separate;
  border-spacing: 0 8px;
  padding: 0 12px 10px;
  background: rgba(15, 23, 42, 0.34);
  border-radius: 6px;
}

.pon-outage-section__body .pon-signal-degradation-table > thead > tr > th,
.pon-outage-section__body .pon-group-table > thead > tr > th {
  padding: 10px 14px 8px;
  border: 0;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  background: transparent;
}

.pon-outage-section__body .pon-signal-degradation-table > tbody > tr.psd-row > td,
.pon-outage-section__body .pon-group-table > tbody > tr.pon-group-row > td {
  padding: 12px 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.62);
  vertical-align: middle;
}

.pon-outage-section__body .pon-signal-degradation-table > tbody > tr.psd-row > td:first-child,
.pon-outage-section__body .pon-group-table > tbody > tr.pon-group-row > td:first-child {
  border-left: 1px solid rgba(148, 163, 184, 0.16);
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
  background: rgba(15, 23, 42, 0.34);
}

.pon-outage-section__body .pon-signal-degradation-table > tbody > tr.psd-row > td:last-child,
.pon-outage-section__body .pon-group-table > tbody > tr.pon-group-row > td:last-child {
  border-right: 1px solid rgba(148, 163, 184, 0.16);
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}

.pon-signal-degradation-table .psd-row .fa-caret-right,
.pon-signal-degradation-table .psd-row .fa-caret-down,
.pon-group-table .pon-group-row .fa-caret-right,
.pon-group-table .pon-group-row .fa-caret-down {
  color: #cbd5e1;
  margin-right: 8px;
}

.pon-outage-groupby {
  display: flex;
  align-items: center;
  grid-column: 5 / -1;
  justify-self: end;
  gap: 8px;
  flex-shrink: 0;
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
}

.pon-outage-groupby--stale {
  justify-content: flex-end;
  padding: 0;
  margin: 0;
}

.pon-outage-section__head--toggle {
  cursor: pointer;
}

.pon-outage-section__body .pon-group-table--stale {
  margin: 0;
}

.pon-outage-groupby__label {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  color: #64748b;
  white-space: nowrap;
}

.pon-outage-groupby__buttons {
  display: inline-flex;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  font-family: inherit;
}

.pon-outage-groupby .pon-groupby {
  display: inline-block;
  padding: 5px 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  color: #475569;
  border: none;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}

.pon-outage-groupby .pon-groupby:last-child {
  border-right: none;
}

.pon-outage-groupby .pon-groupby:hover,
.pon-outage-groupby .pon-groupby:focus {
  background: rgba(0, 0, 0, 0.05);
  color: #1e293b;
  text-decoration: none;
}

.pon-outage-groupby .pon-groupby.active {
  background: #e4e4e4;
  color: #1e293b;
  font-weight: 600;
}

.pon-outage-section__body {
  background: transparent;
}

.pon-outage-section__body .pon-outage-allclear {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  text-align: center;
  color: #cbd5e1;
}

.pon-outage-section__body .pon-outage-allclear .fa {
  font-size: 40px;
  color: #1fb325;
  line-height: 1;
}

.pon-outage-section__body--collapsed {
  padding-bottom: 4px;
}

.pon-outage-section__body .table {
  margin-bottom: 0;
}

/* Align PON / ONUs / Since columns across all outage section tables */
.pon-outage-section__body .pon-group-table {
  table-layout: fixed;
  width: 100%;
}

.pon-outage-section__body .pon-group-table > thead > tr > th:nth-child(1),
.pon-outage-section__body .pon-group-table > tbody > tr.pon-group-row > td:nth-child(1) {
  width: 54%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pon-outage-section__body .pon-group-table > thead > tr > th:nth-child(2),
.pon-outage-section__body .pon-group-table > tbody > tr > td:nth-child(2) {
  width: 15%;
  min-width: 88px;
  white-space: nowrap;
}

.pon-outage-section__body .pon-group-table > thead > tr > th:nth-child(3),
.pon-outage-section__body .pon-group-table > tbody > tr > td:nth-child(3) {
  width: 13%;
  min-width: 64px;
  white-space: nowrap;
}

.pon-outage-section__body .pon-group-table > thead > tr > th:nth-child(4),
.pon-outage-section__body .pon-group-table > tbody > tr > td:nth-child(4) {
  width: 18%;
  min-width: 96px;
  white-space: nowrap;
}

/* Detail rows: same grid as parent */
.pon-outage-section__body .pon-detail-row > td > .table {
  table-layout: fixed;
  width: 100%;
}

.pon-outage-section__body .pon-detail-row > td > .table > thead > tr > th:nth-child(1),
.pon-outage-section__body .pon-detail-row > td > .table > tbody > tr > td:nth-child(1) {
  width: 54%;
  padding-left: 30px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pon-outage-section__body .pon-detail-row > td > .table > thead > tr > th:nth-child(2),
.pon-outage-section__body .pon-detail-row > td > .table > tbody > tr > td:nth-child(2) {
  width: 15%;
  min-width: 88px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pon-outage-section__body .pon-detail-row > td > .table > thead > tr > th:nth-child(3),
.pon-outage-section__body .pon-detail-row > td > .table > tbody > tr > td:nth-child(3) {
  width: 13%;
  min-width: 64px;
  white-space: nowrap;
}

.pon-outage-section__body .pon-detail-row > td > .table > thead > tr > th:nth-child(4),
.pon-outage-section__body .pon-detail-row > td > .table > tbody > tr > td:nth-child(4) {
  width: 18%;
  min-width: 96px;
  white-space: nowrap;
}



.pon-outage-section__body .table > thead:not(.detail-subhead) > tr > th {
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  color: #475569;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  background: #f4f4f4;
  white-space: nowrap;
}

/* Signal-variation table: 8 fixed columns. table-layout:fixed caps the table at
   100% of the panel (so the "Last scan" column can't be pushed off and clipped by
   the card) and keeps numeric column widths stable when a row expands — without it
   the wide colspan detail cell steals slack and the headers fold. The OLT-name
   column absorbs the slack and ellipsis-truncates long names. */
.pon-outage-section__body .pon-signal-degradation-table {
  table-layout: fixed;
  width: 100%;
}
.pon-outage-section__body .pon-signal-degradation-table > tbody > tr:not(.pon-detail-row) > td {
  white-space: nowrap;
}
.pon-outage-section__body .pon-signal-degradation-table > thead > tr > th:nth-child(1),
.pon-outage-section__body .pon-signal-degradation-table > tbody > tr:not(.pon-detail-row) > td:nth-child(1) {
  width: 6%;
  min-width: 38px;
}
.pon-outage-section__body .pon-signal-degradation-table > thead > tr > th:nth-child(2),
.pon-outage-section__body .pon-signal-degradation-table > tbody > tr:not(.pon-detail-row) > td:nth-child(2) {
  width: 34%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pon-outage-section__body .pon-signal-degradation-table > thead > tr > th:nth-child(3),
.pon-outage-section__body .pon-signal-degradation-table > tbody > tr:not(.pon-detail-row) > td:nth-child(3) {
  width: 9%;
  min-width: 68px;
}
.pon-outage-section__body .pon-signal-degradation-table > thead > tr > th:nth-child(4),
.pon-outage-section__body .pon-signal-degradation-table > tbody > tr:not(.pon-detail-row) > td:nth-child(4) {
  width: 5%;
  min-width: 40px;
}
.pon-outage-section__body .pon-signal-degradation-table > thead > tr > th:nth-child(5),
.pon-outage-section__body .pon-signal-degradation-table > tbody > tr:not(.pon-detail-row) > td:nth-child(5) {
  width: 9%;
  min-width: 62px;
}
.pon-outage-section__body .pon-signal-degradation-table > thead > tr > th:nth-child(6),
.pon-outage-section__body .pon-signal-degradation-table > tbody > tr:not(.pon-detail-row) > td:nth-child(6) {
  width: 11%;
  min-width: 78px;
}
.pon-outage-section__body .pon-signal-degradation-table > thead > tr > th:nth-child(7),
.pon-outage-section__body .pon-signal-degradation-table > tbody > tr:not(.pon-detail-row) > td:nth-child(7) {
  width: 8%;
  min-width: 52px;
}
.pon-outage-section__body .pon-signal-degradation-table > thead > tr > th:nth-child(8),
.pon-outage-section__body .pon-signal-degradation-table > tbody > tr:not(.pon-detail-row) > td:nth-child(8) {
  width: 18%;
  min-width: 96px;
}

/* Drill-down subhead: same typography as main PON table header (OLT / PONs / ONUs / Since) */
.pon-outage-section__body .pon-detail-row > td > .table > thead.detail-subhead > tr > th {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  padding: 8px;
  background: transparent;
  border-bottom: none;
  color: #475569;
}

.pon-outage-section__body .pon-detail-row > td {
  border-top: none;
}

.pon-outage-section__body .pon-detail-row > td > .table > thead > tr > th:nth-child(5),
.pon-outage-section__body .pon-detail-row > td > .table > tbody > tr > td:nth-child(5) {
  width: auto;
  min-width: 72px;
  white-space: nowrap;
}

.pon-outage-section__body .pon-detail-row[data-psd-idx] > td > .table > thead > tr > th,
.pon-outage-section__body .pon-detail-row[data-psd-idx] > td > .table > tbody > tr > td {
  padding-left: 10px !important;
  padding-right: 10px !important;
}

.pon-outage-section__body .pon-detail-row[data-psd-idx] > td > .table > thead > tr > th:nth-child(1),
.pon-outage-section__body .pon-detail-row[data-psd-idx] > td > .table > tbody > tr > td:nth-child(1) {
  width: 49%;
  min-width: 0;
}

.pon-outage-section__body .pon-detail-row[data-psd-idx] > td > .table > thead > tr > th:nth-child(2),
.pon-outage-section__body .pon-detail-row[data-psd-idx] > td > .table > tbody > tr > td:nth-child(2) {
  width: 40px;
  min-width: 40px;
}

.pon-outage-section__body .pon-detail-row[data-psd-idx] > td > .table > thead > tr > th:nth-child(3),
.pon-outage-section__body .pon-detail-row[data-psd-idx] > td > .table > tbody > tr > td:nth-child(3),
.pon-outage-section__body .pon-detail-row[data-psd-idx] > td > .table > thead > tr > th:nth-child(4),
.pon-outage-section__body .pon-detail-row[data-psd-idx] > td > .table > tbody > tr > td:nth-child(4) {
  width: 52px;
  min-width: 52px;
}

.pon-outage-section__body .pon-detail-row[data-psd-idx] > td > .table > thead > tr > th:nth-child(5),
.pon-outage-section__body .pon-detail-row[data-psd-idx] > td > .table > tbody > tr > td:nth-child(5) {
  width: 44px;
  min-width: 44px;
}

.pon-outage-section__body .pon-detail-row[data-psd-idx] > td > .table > thead > tr > th:nth-child(6),
.pon-outage-section__body .pon-detail-row[data-psd-idx] > td > .table > tbody > tr > td:nth-child(6) {
  width: 82px;
  min-width: 82px;
  white-space: nowrap;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-detail-row > td > .table > thead.detail-subhead > tr > th {
  background: transparent !important;
  border-bottom: none !important;
  color: #94a3b8 !important;
  font-weight: 600;
}

body.smartolt-dashboard .pon-outage-section__body .pon-gps-icon {
  font-size: 22px !important;
  line-height: 1 !important;
  vertical-align: middle;
}

body.smartolt-dashboard .pon-outage-section__body .pon-gps-icon::before {
  font-size: 22px !important;
}

body.smartolt-dashboard .pon-outage-section__body a.pon-gps-link {
  margin-left: 12px;
}

body.smartolt-dashboard .pon-outage-section__body .pon-gps-icon--disabled {
  margin-left: 12px;
  opacity: 0.3;
}
body.smartolt-dashboard .pon-outage-section__body .table-striped > tbody > tr:nth-of-type(odd) > td {
  background-color: #fafafa;
}

body.smartolt-dashboard .pon-outage-section__body .pon-signal-degradation-table > thead > tr > th,
body.smartolt-dashboard .pon-outage-section__body .pon-group-table > thead > tr > th {
  padding: 10px 14px 8px;
  border: 0 !important;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  background: transparent !important;
}

body.smartolt-dashboard .pon-outage-section__body .pon-signal-degradation-table > tbody > tr.psd-row > td,
body.smartolt-dashboard .pon-outage-section__body .pon-signal-degradation-table.table-striped > tbody > tr.psd-row:nth-of-type(odd) > td,
body.smartolt-dashboard .pon-outage-section__body .pon-group-table > tbody > tr.pon-group-row > td,
body.smartolt-dashboard .pon-outage-section__body .pon-group-table.table-striped > tbody > tr.pon-group-row:nth-of-type(odd) > td {
  padding: 12px 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff !important;
  vertical-align: middle;
}

body.smartolt-dashboard .pon-outage-section__body .pon-signal-degradation-table > tbody > tr.psd-row > td:first-child,
body.smartolt-dashboard .pon-outage-section__body .pon-group-table > tbody > tr.pon-group-row > td:first-child,
body.smartolt-dashboard .pon-outage-section__body .pon-group-table.table-striped > tbody > tr.pon-group-row:nth-of-type(odd) > td:first-child {
  border-left: 1px solid rgba(15, 23, 42, 0.08);
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
  background: #f7f9fb !important;
}

body.smartolt-dashboard .pon-outage-section__body .pon-signal-degradation-table > tbody > tr.psd-row > td:last-child,
body.smartolt-dashboard .pon-outage-section__body .pon-group-table > tbody > tr.pon-group-row > td:last-child {
  border-right: 1px solid rgba(15, 23, 42, 0.08);
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}

body.smartolt-dashboard .pon-outage-section__body .pon-group-table > tbody > tr.pon-group-row > td:first-child,
body.smartolt-dashboard .pon-outage-section__body .pon-group-table.table-striped > tbody > tr.pon-group-row:nth-of-type(odd) > td:first-child,
body.smartolt-dashboard .pon-outage-section__body .pon-detail-row > td > .table > tbody > tr > td:first-child {
  background: #fff !important;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-signal-degradation-table > thead > tr > th,
html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-group-table > thead > tr > th {
  border: 0 !important;
  color: #cbd5e1;
  background: transparent !important;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-signal-degradation-table > tbody > tr.psd-row > td,
html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-signal-degradation-table.table-striped > tbody > tr.psd-row:nth-of-type(odd) > td,
html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-group-table > tbody > tr.pon-group-row > td,
html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-group-table.table-striped > tbody > tr.pon-group-row:nth-of-type(odd) > td {
  border-top-color: rgba(148, 163, 184, 0.16);
  border-bottom-color: rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.62) !important;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-signal-degradation-table > tbody > tr.psd-row > td:first-child,
html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-group-table > tbody > tr.pon-group-row > td:first-child,
html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-group-table.table-striped > tbody > tr.pon-group-row:nth-of-type(odd) > td:first-child {
  border-left-color: rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.34) !important;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-signal-degradation-table > tbody > tr.psd-row > td:last-child,
html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-group-table > tbody > tr.pon-group-row > td:last-child {
  border-right-color: rgba(148, 163, 184, 0.16);
}



/* Night mode */
html.smartolt-night body.smartolt-dashboard .pon-outage-section {
  border: none;
  background: transparent;
  box-shadow: none;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section + .pon-outage-section .pon-outage-section__head::before {
  border-top-color: rgba(148, 163, 184, 0.22);
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__head {
  background: transparent;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__head--toggle:hover {
  background: transparent;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__label {
  color: #e2e8f0;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__stats {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__stats--clear {
  background: none;
  border: 0;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__stats--clear .fa,
html.smartolt-night body.smartolt-dashboard .pon-signal-no-variation .fa {
  color: #1fb325;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__hint,
html.smartolt-night body.smartolt-dashboard .pon-outage-groupby__label {
  color: #94a3b8;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-groupby__buttons {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.8);
}

html.smartolt-night body.smartolt-dashboard .pon-outage-groupby .pon-groupby {
  font-family: inherit;
  font-size: 13px;
  color: #cbd5e1;
  border-right-color: rgba(148, 163, 184, 0.15);
}

html.smartolt-night body.smartolt-dashboard .pon-outage-groupby .pon-groupby:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-groupby .pon-groupby.active {
  background: rgba(255, 255, 255, 0.14);
  color: #f1f5f9;
  font-weight: 600;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__body {
  background: transparent;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .table > thead > tr > th {
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.55);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .table > tbody > tr > td {
  color: #e2e8f0;
  border-top-color: rgba(148, 163, 184, 0.12);
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .table-striped > tbody > tr:nth-of-type(odd) > td {
  background-color: rgba(255, 255, 255, 0.03) !important;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .table-striped > tbody > tr:nth-of-type(even) > td {
  background-color: transparent !important;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-detail-row > td {
  background-color: rgba(255, 255, 255, 0.04) !important;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-detail-row > td > .table,
html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-detail-row > td > .table > tbody > tr > td {
  background: transparent !important;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-detail-row .detail-subhead > tr > th,
html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-detail-row .text-muted,
html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .table .text-muted {
  color: #94a3b8 !important;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .table a:not(.btn) {
  color: #93c5fd;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .table a:not(.btn):hover,
html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .table a:not(.btn):focus {
  color: #bfdbfe;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-sort-caret,
html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .fa-sort {
  color: #64748b;
  opacity: 0.55 !important;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-group-row > td:first-child > .fa {
  color: #94a3b8;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-signal-degradation-table,
html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-group-table,
html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-detail-row > td,
html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-detail-row > td > .table {
  background: rgba(15, 23, 42, 0.34) !important;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-signal-degradation-table > tbody > tr.psd-row > td,
html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-group-table > tbody > tr.pon-group-row > td,
html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-detail-row > td > .table > tbody > tr > td {
  border-top-color: rgba(148, 163, 184, 0.16) !important;
  border-bottom-color: rgba(148, 163, 184, 0.16) !important;
  background: rgba(15, 23, 42, 0.62) !important;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-signal-degradation-table > tbody > tr.psd-row > td:first-child,
html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-group-table > tbody > tr.pon-group-row > td:first-child,
html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-detail-row > td > .table > tbody > tr > td:first-child {
  border-left-color: rgba(148, 163, 184, 0.16) !important;
  background: rgba(15, 23, 42, 0.34) !important;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-signal-degradation-table > tbody > tr.psd-row > td:last-child,
html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-group-table > tbody > tr.pon-group-row > td:last-child,
html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-detail-row > td > .table > tbody > tr > td:last-child {
  border-right-color: rgba(148, 163, 184, 0.16) !important;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-group-table > tbody > tr.pon-group-row > td:first-child,
html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-group-table.table-striped > tbody > tr.pon-group-row:nth-of-type(odd) > td:first-child,
html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-detail-row > td > .table > tbody > tr > td:first-child,
html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-detail-row > td > .table.table-striped > tbody > tr:nth-of-type(odd) > td:first-child {
  background: rgba(15, 23, 42, 0.62) !important;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-detail-row[data-psd-idx] > td > .table {
  table-layout: fixed !important;
  width: 100% !important;
  min-width: 100% !important;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-detail-row[data-psd-idx] > td > .table > thead > tr > th:nth-child(1),
html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-detail-row[data-psd-idx] > td > .table > tbody > tr > td:nth-child(1) {
  width: 49% !important;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-detail-row[data-psd-idx] > td > .table > thead > tr > th:nth-child(2),
html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-detail-row[data-psd-idx] > td > .table > tbody > tr > td:nth-child(2) {
  width: 40px !important;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-detail-row[data-psd-idx] > td > .table > thead > tr > th:nth-child(3),
html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-detail-row[data-psd-idx] > td > .table > tbody > tr > td:nth-child(3),
html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-detail-row[data-psd-idx] > td > .table > thead > tr > th:nth-child(4),
html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-detail-row[data-psd-idx] > td > .table > tbody > tr > td:nth-child(4) {
  width: 52px !important;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-detail-row[data-psd-idx] > td > .table > thead > tr > th:nth-child(5),
html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-detail-row[data-psd-idx] > td > .table > tbody > tr > td:nth-child(5) {
  width: 44px !important;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-detail-row[data-psd-idx] > td > .table > thead > tr > th:nth-child(6),
html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-detail-row[data-psd-idx] > td > .table > tbody > tr > td:nth-child(6) {
  width: 82px !important;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-signal-degradation-table,
html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-group-table {
  background: rgba(255, 255, 255, 0.035) !important;
  border-radius: 6px;
  padding: 0 12px 8px;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-group-table > thead > tr > th {
  background: transparent !important;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-detail-row > td,
html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-detail-row > td > .table {
  background: transparent !important;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-detail-row {
  background: transparent !important;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-detail-row > td > .table > thead.detail-subhead > tr > th {
  background: transparent !important;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-group-table > tbody > tr.pon-group-row > td:first-child,
html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-group-table.table-striped > tbody > tr.pon-group-row:nth-of-type(odd) > td:first-child,
html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-detail-row > td > .table > tbody > tr > td:first-child,
html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-detail-row > td > .table.table-striped > tbody > tr:nth-of-type(odd) > td:first-child {
  background: rgba(15, 23, 42, 0.62) !important;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-group-table--summary {
  border-spacing: 0;
  background: rgba(255, 255, 255, 0.035) !important;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.16);
  padding: 7px 12px;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-group-table--summary > tbody > tr.pon-group-row > td,
html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-group-table--summary.table-striped > tbody > tr.pon-group-row:nth-of-type(odd) > td {
  padding: 12px 14px;
  color: #e2e8f0 !important;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  background: transparent !important;
  border: 0 !important;
  vertical-align: middle;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-group-table--summary > tbody > tr.pon-group-row > td:first-child,
html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-group-table--summary.table-striped > tbody > tr.pon-group-row:nth-of-type(odd) > td:first-child {
  color: #e2e8f0 !important;
  background: transparent !important;
  border-left: 0 !important;
  border-radius: 0 !important;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-group-table--summary > tbody > tr.pon-group-row > td:last-child {
  border-right: 0 !important;
  border-radius: 0 !important;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-group-table--summary > tbody > tr.pon-group-row + tr.pon-group-row > td,
html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-group-table--summary > tbody > tr.pon-detail-row + tr.pon-group-row > td {
  border-top: 1px dashed rgba(148, 163, 184, 0.26) !important;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-group-table--summary .pon-detail-row > td,
html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-group-table--summary .pon-detail-row > td > .pon-detail-table--summary {
  background: transparent !important;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-detail-table--summary > tbody > tr > td {
  padding: 6px 14px 7px;
  color: #cbd5e1 !important;
  font-size: 14px;
  line-height: 1.35;
  background: transparent !important;
  border: 0 !important;
  vertical-align: middle;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-detail-table--summary > tbody > tr > td:first-child {
  padding-left: 36px;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-detail-branch {
  display: inline-block;
  width: 16px;
  height: 14px;
  margin-right: 8px;
  border-left-color: rgba(148, 163, 184, 0.45);
  border-bottom-color: rgba(148, 163, 184, 0.45);
  border-left-width: 1px;
  border-left-style: solid;
  border-bottom-width: 1px;
  border-bottom-style: solid;
  vertical-align: text-top;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-detail-board-label {
  color: #94a3b8;
  font-weight: 600;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-detail-olt-label {
  display: inline-block;
  margin-left: 10px;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
}

body.smartolt-dashboard .pon-outage-wrap .pon-detail-table--summary > tbody > tr.pon-detail-item-row .pon-detail-item-label > a:first-of-type {
  display: inline-block;
  min-width: 48px;
  text-align: right;
}

body.smartolt-dashboard .pon-outage-section__body .pon-group-table.pon-group-table--summary .pon-detail-row > td > .pon-detail-table--summary {
  table-layout: fixed;
  width: 100%;
}

body.smartolt-dashboard .pon-outage-section__body .pon-group-table.pon-group-table--summary .pon-detail-row > td > .pon-detail-table--summary > tbody > tr > td.pon-detail-item-label {
  width: 49% !important;
  min-width: 0 !important;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

body.smartolt-dashboard .pon-outage-section__body .pon-group-table.pon-group-table--summary .pon-detail-row > td > .pon-detail-table--summary > tbody > tr > td.pon-detail-position-cell {
  width: 40px !important;
  min-width: 40px !important;
  padding-left: 10px !important;
  padding-right: 0 !important;
  text-align: left !important;
  white-space: nowrap;
}

body.smartolt-dashboard .pon-outage-section__body .pon-group-table.pon-group-table--summary .pon-detail-row > td > .pon-detail-table--summary > tbody > tr > td.pon-detail-spacer-cell {
  width: 8% !important;
  min-width: 32px !important;
}

body.smartolt-dashboard .pon-outage-section__body .pon-group-table.pon-group-table--summary .pon-detail-row > td > .pon-detail-table--summary > tbody > tr > td:nth-child(4) {
  width: 17% !important;
  min-width: 76px !important;
  white-space: nowrap;
}

body.smartolt-dashboard .pon-outage-section__body .pon-group-table.pon-group-table--summary .pon-detail-row > td > .pon-detail-table--summary > tbody > tr > td:nth-child(5) {
  width: 18% !important;
  min-width: 96px !important;
  white-space: nowrap;
}

body.smartolt-dashboard .pon-outage-section__body .pon-detail-position-cell .pon-gps-link,
body.smartolt-dashboard .pon-outage-section__body .pon-detail-position-cell .pon-gps-disabled {
  margin-left: 0;
}

body.smartolt-dashboard .pon-outage-section__body .pon-signal-position-heading,
body.smartolt-dashboard .pon-outage-section__body .pon-signal-position-cell {
  padding-left: 4px !important;
  padding-right: 4px !important;
  text-align: center;
}

body.smartolt-dashboard .pon-outage-section__body .pon-signal-position-heading > .fa-map-marker {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  line-height: 1 !important;
  vertical-align: middle;
}

body.smartolt-dashboard .pon-outage-section__body .pon-detail-row[data-psd-idx] > td > .pon-signal-detail-table > thead > tr > th.pon-signal-position-heading,
body.smartolt-dashboard .pon-outage-section__body .pon-detail-row[data-psd-idx] > td > .pon-signal-detail-table > tbody > tr > td.pon-signal-position-cell {
  width: 40px !important;
  min-width: 40px !important;
  padding-left: 10px !important;
  padding-right: 0 !important;
  text-align: left;
}

body.smartolt-dashboard .pon-outage-section__body .pon-signal-position-cell .pon-gps-link,
body.smartolt-dashboard .pon-outage-section__body .pon-signal-position-cell .pon-gps-disabled {
  margin-left: 0;
}

@media (max-width: 767px) {
  body.smartolt-dashboard .pon-outage-section__body .pon-signal-degradation-table {
    table-layout: fixed !important;
    width: 760px !important;
    min-width: 760px !important;
  }

  body.smartolt-dashboard .pon-outage-section__body .pon-detail-row[data-psd-idx] > td > .pon-signal-detail-table {
    table-layout: fixed !important;
    width: 100% !important;
    min-width: 100% !important;
  }

  body.smartolt-dashboard .pon-outage-section__body .pon-detail-row[data-psd-idx] > td > .pon-signal-detail-table > thead > tr > th:nth-child(1),
  body.smartolt-dashboard .pon-outage-section__body .pon-detail-row[data-psd-idx] > td > .pon-signal-detail-table > tbody > tr > td:nth-child(1) {
    width: 49% !important;
  }
}

body.smartolt-dashboard .pon-outage-section__body .pon-signal-degradation-table > tbody > tr.psd-row > td.pon-signal-severity-cell {
  padding-left: 4px !important;
  padding-right: 4px !important;
  text-align: center;
  white-space: nowrap;
}

body.smartolt-dashboard .pon-outage-section__body .pon-signal-severity-dot {
  margin-left: 0;
}

body.smartolt-dashboard .pon-outage-section__body .pon-signal-severity-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding-right: 5px;
}

body.smartolt-dashboard .pon-outage-section__body .pon-signal-severity-marker > .fa {
  line-height: 1;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-group-table.pon-group-table--summary .pon-detail-row > td > .pon-detail-table--summary > tbody > tr.pon-detail-item-row + tr.pon-detail-item-row > td,
html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-group-table.pon-group-table--summary .pon-detail-row > td > .pon-detail-table--summary > tbody > tr.pon-detail-item-row + tr.pon-detail-item-row > td:first-child,
html.smartolt-night body.smartolt-dashboard .pon-outage-section__body .pon-group-table.pon-group-table--summary .pon-detail-row > td > .pon-detail-table--summary > tbody > tr.pon-detail-item-row + tr.pon-detail-item-row > td:last-child {
  border-top: 1px solid rgba(148, 163, 184, 0.16) !important;
}

body.smartolt-dashboard .pon-outage-section__label {
  font-weight: 400 !important;
}

body.smartolt-dashboard .pon-outage-section__body .pon-group-table.pon-group-table--summary > tbody > tr.pon-group-row > td:first-child,
body.smartolt-dashboard .pon-outage-section__body .pon-group-table.pon-group-table--summary.table-striped > tbody > tr.pon-group-row:nth-of-type(odd) > td:first-child {
  padding-left: 28px !important;
}

body.smartolt-dashboard .pon-outage-section__body .pon-group-table.pon-group-table--summary > tbody > tr.pon-group-row > td:first-child > .fa-caret-right,
body.smartolt-dashboard .pon-outage-section__body .pon-group-table.pon-group-table--summary > tbody > tr.pon-group-row > td:first-child > .fa-caret-down {
  display: inline-block;
  width: 10px;
  margin-right: 6px;
  text-align: center;
}


/* PON outage: panel-body scroll parity with legacy table-responsive */
html:not(.smartolt-night) body.smartolt-dashboard .panel-default > .panel-body--pon-outage:last-child,
html:not(.smartolt-night) body.smartolt-dashboard .panel-default > .panel-body--pon-outage {
  border-bottom-left-radius: var(--dash-radius);
  border-bottom-right-radius: var(--dash-radius);
  overflow: hidden;
}

html.smartolt-night body.smartolt-dashboard .panel-default > .panel-body--pon-outage:last-child,
html.smartolt-night body.smartolt-dashboard .panel-default > .panel-body--pon-outage {
  border-bottom-left-radius: var(--dash-radius);
  border-bottom-right-radius: var(--dash-radius);
  overflow: hidden;
}

@media (max-width: 767px) {
  html:not(.smartolt-night) body.smartolt-dashboard .panel-default > .panel-body--pon-outage:last-child,
  html:not(.smartolt-night) body.smartolt-dashboard .panel-default > .panel-body--pon-outage,
  html.smartolt-night body.smartolt-dashboard .panel-default > .panel-body--pon-outage:last-child,
  html.smartolt-night body.smartolt-dashboard .panel-default > .panel-body--pon-outage {
    overflow: visible;
  }

  body.smartolt-dashboard .panel-body--pon-outage {
    overflow-x: visible;
    padding: 0;
  }

  .pon-outage-wrap {
    padding: 8px 8px 10px;
  }

  .pon-outage-section {
    margin-top: 0;
  }

  .pon-outage-section + .pon-outage-section .pon-outage-section__head {
    margin-top: 3px;
  }

  .pon-outage-section__head {
    grid-template-columns: 14px 28px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 10px;
  }

  .pon-outage-section__head::before {
    left: 10px;
    right: 10px;
  }

  .pon-outage-section__title {
    display: contents;
  }

  .pon-outage-section__icon {
    width: 28px;
    height: 32px;
    font-size: 17px;
  }

  .pon-outage-section__label {
    font-size: 14px;
    line-height: 1.45;
    width: auto;
    white-space: normal;
    word-break: normal;
  }

  .pon-outage-section__stats,
  .pon-outage-severity-pill {
    grid-column: 3;
    justify-self: start;
    font-size: 11px;
    padding: 2px 7px;
    max-width: 100%;
    white-space: normal;
    min-height: 0;
  }

  .pon-outage-section__hint {
    order: unset;
    margin-top: 0;
    line-height: 1.4;
  }

  .pon-outage-groupby {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 2px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
  }

  html.smartolt-night body.smartolt-dashboard .pon-outage-groupby {
    border-top-color: rgba(148, 163, 184, 0.12);
  }

  .pon-outage-groupby__buttons {
    display: flex;
    flex: 1 1 100%;
    width: 100%;
  }

  .pon-outage-groupby__label {
    font-size: 14px;
  }

  .pon-outage-groupby .pon-groupby {
    flex: 1 1 50%;
    text-align: center;
    padding: 8px 6px;
    font-size: 14px;
  }

  .pon-outage-groupby--stale {
    padding: 4px 8px 0;
    border-top: none;
  }

  .pon-outage-section__body {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }

  .pon-outage-section__body .pon-group-table {
    table-layout: auto;
    width: max-content;
    min-width: 100%;
  }

  .pon-outage-section__body .pon-detail-row > td > .table {
    table-layout: auto;
    width: max-content;
    min-width: 100%;
  }

  /* Drop the fixed layout on mobile so each column sizes to its own nowrap
     content (no header overlap) and the whole table — including the colspan
     detail sub-table — scrolls inside the body's overflow-x instead of
     spilling past the card edge. */
  .pon-outage-section__body .pon-signal-degradation-table {
    table-layout: auto;
    width: max-content;
    min-width: 100%;
  }

  .pon-outage-section__body .pon-signal-degradation-table > thead > tr > th,
  .pon-outage-section__body .pon-signal-degradation-table > tbody > tr:not(.pon-detail-row) > td {
    width: auto;
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
  }

  .pon-outage-section__body .pon-signal-degradation-table > thead > tr > th:nth-child(2),
  .pon-outage-section__body .pon-signal-degradation-table > tbody > tr:not(.pon-detail-row) > td:nth-child(2) {
    min-width: 120px;
  }

  .pon-outage-section__body .table > thead > tr > th {
    font-size: 15px;
    padding: 7px 4px;
    line-height: 1.35;
  }

  .pon-outage-section__body .table > tbody > tr > td {
    font-size: 14px;
    padding: 7px 4px;
    line-height: 1.35;
  }

  .pon-outage-section__body .pon-group-table > thead > tr > th:nth-child(1),
  .pon-outage-section__body .pon-group-table > tbody > tr.pon-group-row > td:nth-child(1) {
    width: auto;
    min-width: 120px;
    overflow: visible;
    text-overflow: clip;
  }

  .pon-outage-section__body .pon-group-table > thead > tr > th:nth-child(2),
  .pon-outage-section__body .pon-group-table > tbody > tr > td:nth-child(2) {
    width: auto;
    min-width: 72px;
    white-space: nowrap;
  }

  .pon-outage-section__body .pon-group-table > thead > tr > th:nth-child(3),
  .pon-outage-section__body .pon-group-table > tbody > tr > td:nth-child(3) {
    width: auto;
    min-width: 56px;
    white-space: nowrap;
  }

  .pon-outage-section__body .pon-group-table > thead > tr > th:nth-child(4),
  .pon-outage-section__body .pon-group-table > tbody > tr > td:nth-child(4) {
    width: auto;
    min-width: 88px;
    white-space: nowrap;
  }

  .pon-outage-section__body .pon-detail-row > td > .table > thead > tr > th:nth-child(1),
  .pon-outage-section__body .pon-detail-row > td > .table > tbody > tr > td:nth-child(1) {
    width: auto;
    min-width: 120px;
    padding-left: 20px;
    overflow: visible;
    text-overflow: clip;
  }

  .pon-outage-section__body .pon-detail-row > td > .table > thead > tr > th:nth-child(2),
  .pon-outage-section__body .pon-detail-row > td > .table > tbody > tr > td:nth-child(2) {
    width: auto;
    min-width: 72px;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
  }

  .pon-outage-section__body .pon-detail-row > td > .table > thead > tr > th:nth-child(3),
  .pon-outage-section__body .pon-detail-row > td > .table > tbody > tr > td:nth-child(3) {
    width: auto;
    min-width: 56px;
    white-space: nowrap;
  }

  .pon-outage-section__body .pon-detail-row > td > .table > thead > tr > th:nth-child(4),
  .pon-outage-section__body .pon-detail-row > td > .table > tbody > tr > td:nth-child(4) {
    width: auto;
    min-width: 88px;
    white-space: nowrap;
  }

  .pon-outage-section__body .pon-group-row > td:first-child {
    white-space: nowrap;
    word-break: normal;
  }
}

/* Collapsible outage sections */
.pon-outage-section:not(.is-open) .pon-outage-groupby {
  display: none;
}

.pon-outage-section.is-open .pon-outage-groupby {
  display: flex;
}

.pon-outage-section:not(.is-open) .pon-outage-section__hint {
  display: none;
}

.pon-outage-section:not(.is-open) .pon-outage-section__head {
  border-bottom: 0;
}

/* Stale + desktop: tighter layout, group-by in header when open */
.pon-outage-section--stale:not(.is-open) .pon-outage-section__head {
  border-bottom: 0;
}

.pon-outage-section--stale .pon-outage-groupby--stale {
  display: none;
}

.pon-outage-section--stale.is-open .pon-outage-groupby--stale {
  display: flex;
}

.pon-outage-section--stale .pon-outage-section__body--stale {
  padding: 0;
}

.pon-outage-section--stale .pon-outage-section__label,
.pon-outage-section--stale .pon-outage-section__stats {
  color: #64748b;
}

html.smartolt-night body.smartolt-dashboard .pon-outage-section--stale .pon-outage-section__label,
html.smartolt-night body.smartolt-dashboard .pon-outage-section--stale .pon-outage-section__stats {
  color: #94a3b8;
}

@media (min-width: 768px) {
  body.smartolt-dashboard .panel-body--pon-outage {
    padding: 0;
  }

  .pon-outage-wrap {
    padding: 4px 8px 6px;
  }

  .pon-outage-section {
    margin: 0;
  }

  .pon-outage-section + .pon-outage-section {
    margin-top: 2px;
  }

  .pon-outage-section__head {
    padding: 8px 16px;
    gap: 8px 10px;
  }

  .pon-outage-section--stale .pon-outage-section__head {
    padding: 8px 16px;
  }

  .pon-outage-section--stale .pon-outage-groupby--stale {
    padding: 0;
    margin: 0;
  }
}
/* Signal variation alert settings modal — night mode */
html.smartolt-night #psdThresholdsModal .psd-th-intro,
html.smartolt-night #psdThresholdsModal .psd-th-help {
  color: #cbd5e1;
}

html.smartolt-night #psdThresholdsModal .psd-th-label {
  color: #f1f5f9;
}

html.smartolt-night #psdThresholdsModal .psd-th-severity {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
}

html.smartolt-night #psdThresholdsModal .psd-th-title-icon {
  color: rgba(255, 255, 255, 0.55);
}

html.smartolt-night body.smartolt-dashboard .pon-signal-thresholds-gear {
  color: #98989d;
}

html.smartolt-night body.smartolt-dashboard .pon-signal-thresholds-gear:hover {
  color: #cbd5e1;
}

/* ONU IP pool edit / normalize DNS — standalone page (outside #ip_pools tab) */
html.smartolt-night body.smartolt-site .onu-mgmt-pool-edit > h2 {
  display: block !important;
  color: #f1f5f9 !important;
  font-weight: 600;
  margin: 0 0 16px;
}

html.smartolt-night body.smartolt-site .onu-mgmt-pool-edit > h2 small {
  color: rgba(255, 255, 255, 0.55) !important;
  font-weight: 500;
}

html.smartolt-night body.smartolt-site .onu-mgmt-pool-edit .pool-edit-inline-header h3 {
  color: #f1f5f9 !important;
}

html.smartolt-night body.smartolt-site .onu-mgmt-pool-edit .pool-readonly-row {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #e2e8f0;
}

html.smartolt-night body.smartolt-site .onu-mgmt-pool-edit .pool-readonly-row .label-text {
  color: rgba(255, 255, 255, 0.55) !important;
}

html.smartolt-night body.smartolt-site .onu-mgmt-pool-edit .pool-readonly-row .cidr-heatmap-svg {
  border-color: rgba(255, 255, 255, 0.14) !important;
}

html.smartolt-night body.smartolt-site .onu-mgmt-pool-edit .pool-edit-card label {
  color: #e2e8f0;
}

html.smartolt-night body.smartolt-site .onu-mgmt-pool-edit .field-help,
html.smartolt-night body.smartolt-site .onu-mgmt-pool-edit .pool-edit-card .text-muted {
  color: rgba(255, 255, 255, 0.55) !important;
}

html.smartolt-night body.smartolt-site .onu-mgmt-pool-edit .field-help span {
  color: #fca5a5 !important;
}

html.smartolt-night body.smartolt-site .onu-mgmt-pool-edit .normalize-banner {
  background: rgba(245, 158, 11, 0.12) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
  color: #fcd34d !important;
}

html.smartolt-night body.smartolt-site .onu-mgmt-pool-edit .shared-subnet-banner {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #e2e8f0 !important;
}

html.smartolt-night body.smartolt-site .onu-mgmt-pool-edit .shared-subnet-banner h4 {
  color: #f1f5f9 !important;
}

html.smartolt-night body.smartolt-site .onu-mgmt-pool-edit .shared-subnet-banner h4 .fa-share-alt {
  color: rgba(255, 255, 255, 0.55) !important;
}

html.smartolt-night body.smartolt-site .onu-mgmt-pool-edit .shared-subnet-banner th,
html.smartolt-night body.smartolt-site .onu-mgmt-pool-edit .shared-subnet-banner td {
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
  color: #e2e8f0;
}

html.smartolt-night body.smartolt-site .onu-mgmt-pool-edit .shared-subnet-banner th {
  color: rgba(255, 255, 255, 0.55) !important;
}

html.smartolt-night body.smartolt-site .onu-mgmt-pool-edit .shared-subnet-banner tr.current-olt td {
  background: rgba(29, 139, 255, 0.1) !important;
}

html.smartolt-night body.smartolt-site .onu-mgmt-pool-edit .shared-subnet-banner tr.combined td {
  background: rgba(255, 255, 255, 0.06) !important;
  border-top-color: rgba(255, 255, 255, 0.18) !important;
}

html.smartolt-night body.smartolt-site .onu-mgmt-pool-edit .shared-subnet-banner a {
  color: #8cc8ff !important;
}

html.smartolt-night body.smartolt-site .onu-mgmt-pool-edit .cidr-chip-mgmt {
  background: rgba(0, 100, 200, 0.14) !important;
  border-color: rgba(0, 100, 200, 0.38) !important;
  color: #7ec3ff !important;
}

html.smartolt-night body.smartolt-site .onu-mgmt-pool-edit .cidr-chip-internet {
  background: rgba(68, 152, 66, 0.14) !important;
  border-color: rgba(68, 152, 66, 0.38) !important;
  color: #86efac !important;
}

html.smartolt-night body.smartolt-site .onu-mgmt-pool-edit .cidr-chip-voip {
  background: rgba(110, 46, 160, 0.16) !important;
  border-color: rgba(110, 46, 160, 0.38) !important;
  color: #c4a7e7 !important;
}

html.smartolt-night body.smartolt-site .onu-mgmt-pool-edit .pool-edit-card .form-control {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #f1f5f9 !important;
}

html.smartolt-night body.smartolt-site .onu-mgmt-pool-edit .pool-edit-card .form-control[readonly] {
  background: rgba(255, 255, 255, 0.03) !important;
  color: rgba(255, 255, 255, 0.65) !important;
}

html.smartolt-night body.smartolt-site .onu-mgmt-pool-edit .pool-edit-card .btn-link {
  color: #8cc8ff !important;
}

html.smartolt-night body.smartolt-site #ip_pools .onu-mgmt-pool-edit .dns-fan-out-row label,
html.smartolt-night body.smartolt-site .onu-mgmt-pool-edit .dns-fan-out-row label {
  color: #e2e8f0;
}

html.smartolt-night body.smartolt-site #ip_pools .btn-normalize-dns-inline .normalize-dns-badge,
html.smartolt-night body.smartolt-site .btn-normalize-dns-inline .normalize-dns-badge {
  background: #d97706 !important;
  color: #fff !important;
}

/* OLT details - Troubleshoot tab */
html.smartolt-night body.smartolt-site #troubleshoot {
  color: #cbd5e1;
}

html.smartolt-night body.smartolt-site #troubleshoot h4,
html.smartolt-night body.smartolt-site #troubleshoot .panel-heading,
html.smartolt-night body.smartolt-site #troubleshoot .panel-heading strong,
html.smartolt-night body.smartolt-site #troubleshoot .olt-troubleshoot-well strong,
html.smartolt-night body.smartolt-site #troubleshoot .consistency-section__title,
html.smartolt-night body.smartolt-site #troubleshoot .consistency-table-block__title {
  color: #f1f5f9 !important;
}

html.smartolt-night body.smartolt-site #troubleshoot p,
html.smartolt-night body.smartolt-site #troubleshoot li,
html.smartolt-night body.smartolt-site #troubleshoot td {
  color: #cbd5e1;
}

html.smartolt-night body.smartolt-site #troubleshoot .text-muted {
  color: rgba(226, 232, 240, 0.58) !important;
}

html.smartolt-night body.smartolt-site #troubleshoot .panel.panel-default {
  background: rgba(15, 26, 46, 0.92) !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
}

html.smartolt-night body.smartolt-site #troubleshoot .panel.panel-default > .panel-heading {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(148, 163, 184, 0.16) !important;
}

html.smartolt-night body.smartolt-site #troubleshoot .panel.panel-default > .panel-body {
  background: transparent !important;
  color: #cbd5e1;
}

html.smartolt-night body.smartolt-site #troubleshoot .olt-troubleshoot-well {
  background: rgba(255, 255, 255, 0.045) !important;
  border-color: rgba(148, 163, 184, 0.16) !important;
  color: #cbd5e1;
}

html.smartolt-night body.smartolt-site #troubleshoot .olt-troubleshoot-well.margin-bottom-0 {
  margin-bottom: 0;
}

html.smartolt-night body.smartolt-site #troubleshoot .olt-troubleshoot-code,
html.smartolt-night body.smartolt-site #troubleshoot code {
  background: rgba(2, 6, 23, 0.42) !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  color: #bfdbfe !important;
}

html.smartolt-night body.smartolt-site #troubleshoot .olt-troubleshoot-divider {
  border-color: rgba(148, 163, 184, 0.18) !important;
}

html.smartolt-night body.smartolt-site #troubleshoot .consistency-metrics {
  margin: 8px 0 12px;
}

html.smartolt-night body.smartolt-site #troubleshoot .consistency-metric {
  display: inline-block;
  margin: 0 6px 6px 0;
  font-size: 12px;
  padding: 5px 8px;
  border-radius: 3px;
}

html.smartolt-night body.smartolt-site #troubleshoot .consistency-metric--neutral {
  background: rgba(255, 255, 255, 0.045) !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  color: #cbd5e1 !important;
}

html.smartolt-night body.smartolt-site #troubleshoot .consistency-metric--ok {
  background: rgba(34, 197, 94, 0.1) !important;
  border: 1px solid rgba(34, 197, 94, 0.28) !important;
  color: #86efac !important;
}

html.smartolt-night body.smartolt-site #troubleshoot .consistency-metric--warn {
  background: rgba(217, 138, 0, 0.12) !important;
  border: 1px solid rgba(217, 138, 0, 0.34) !important;
  color: #fbbf24 !important;
}

html.smartolt-night body.smartolt-site #troubleshoot .consistency-section {
  background: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
  border-left: 4px solid rgba(125, 211, 252, 0.38) !important;
  color: #cbd5e1;
}

html.smartolt-night body.smartolt-site #troubleshoot .consistency-section__title .fa {
  color: #93c5fd;
}

html.smartolt-night body.smartolt-site #troubleshoot .consistency-ok-line {
  color: #86efac;
}

html.smartolt-night body.smartolt-site #troubleshoot .consistency-count-badge {
  background: rgba(148, 163, 184, 0.16) !important;
  color: #e2e8f0 !important;
}

html.smartolt-night body.smartolt-site #troubleshoot .consistency-table {
  background: rgba(2, 6, 23, 0.18) !important;
  color: #cbd5e1;
}

html.smartolt-night body.smartolt-site #troubleshoot .consistency-table > thead > tr > th {
  background: rgba(255, 255, 255, 0.055) !important;
  border-bottom-color: rgba(148, 163, 184, 0.18) !important;
  color: #e2e8f0 !important;
  font-weight: 600;
}

html.smartolt-night body.smartolt-site #troubleshoot .consistency-table > tbody > tr > td {
  border-top-color: rgba(148, 163, 184, 0.12) !important;
}

html.smartolt-night body.smartolt-site #troubleshoot .consistency-table.table-hover > tbody > tr:hover > td {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #f1f5f9;
}

html.smartolt-night body.smartolt-site #troubleshoot .consistency-banner {
  background: rgba(255, 255, 255, 0.045) !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
  color: #cbd5e1 !important;
}

html.smartolt-night body.smartolt-site #troubleshoot .consistency-banner strong {
  color: #f1f5f9;
}

html.smartolt-night body.smartolt-site #troubleshoot .consistency-banner--ok .fa-check-circle {
  color: #86efac;
}

html.smartolt-night body.smartolt-site #troubleshoot .consistency-banner--running .fa-spinner {
  color: #93c5fd;
}

html.smartolt-night body.smartolt-site #troubleshoot .consistency-progress-bar {
  background: rgba(15, 23, 42, 0.72) !important;
}

html.smartolt-night body.smartolt-site #troubleshoot .consistency-progress-bar__fill {
  background: #3b82f6 !important;
}

html.smartolt-night body.smartolt-site #troubleshoot .mig-wan-note {
  margin-top: 10px;
}

html.smartolt-night body.smartolt-site #troubleshoot .mig-wan-hint--warn {
  color: #fbbf24 !important;
}

html.smartolt-night body.smartolt-site #troubleshoot .mig-wan-hint--ok {
  color: #86efac !important;
}

html.smartolt-night body.smartolt-site #troubleshoot .mig-wan-hint--info {
  color: #93c5fd !important;
}

html.smartolt-night body.smartolt-site #troubleshoot .alert-warning {
  background: rgba(217, 138, 0, 0.12) !important;
  border-color: rgba(217, 138, 0, 0.34) !important;
  color: #fbbf24 !important;
}

html.smartolt-night body.smartolt-site #troubleshoot .alert-danger {
  background: rgba(239, 68, 68, 0.12) !important;
  border-color: rgba(239, 68, 68, 0.34) !important;
  color: #fecaca !important;
}

/* Network Events page — override the view's inline light-theme colors so the
   filter labels, event details, raw-trap feed and rule/MIB monospace blocks
   stay readable on the dark background. background-color longhand only. */
html.smartolt-night body.smartolt-site .events-filter-panel label {
  color: rgba(255, 255, 255, 0.55) !important;
}

html.smartolt-night body.smartolt-site .network-event-details {
  color: rgba(255, 255, 255, 0.55) !important;
}

html.smartolt-night body.smartolt-site .raw-trap-item {
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

html.smartolt-night body.smartolt-site .raw-trap-meta {
  color: rgba(255, 255, 255, 0.55) !important;
}

html.smartolt-night body.smartolt-site .raw-trap-json {
  background-color: rgba(15, 23, 42, 0.72) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #e2e8f0 !important;
}

/* onu_authorize: the preset details box carries inline light-theme styles
   (background:#fff, light border) — override them for night. */
html.smartolt-night body.smartolt-site #preset-details {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #e2e8f0 !important;
}
html.smartolt-night body.smartolt-site #preset-details-content {
  background-color: transparent !important;
  color: #e2e8f0 !important;
}

/* Wide-tables layout moved to vendor/bootstrap/css/styles.css (theme-agnostic,
   loaded on every backend page). Keep night-only overrides here if ever needed. */
