.widget.equal-height { display:flex; flex-direction:column; height:200px; overflow:hidden; margin-bottom:20px; }
.widget.equal-height .panel-heading { flex:0 0 auto; padding:8px 12px; }
.widget.equal-height .panel-body   { flex:1 1 auto; height:100%; padding:10px; overflow:hidden; }

.widget.equal-height:not([data-type="map"]):not([data-type="chart"]) .panel-body {
  display:flex; justify-content:center; align-items:center; text-align:center;
}

.widget.equal-height[data-type="map"] .panel-body { position:relative; padding:0; }
.widget.equal-height[data-type="map"] .panel-body > .leaflet-container { position:absolute; inset:0; }

.widget.equal-height[data-type="chart"] .panel-body{
  position: relative !important;
  padding: 0 !important;
  height: 100% !important;
  overflow: hidden !important; 
}

.widget.equal-height[data-type="chart"] .chart-wrap{
  position: absolute !important;
  top: 0; left: 0; right: 0; bottom: 36px;
  overflow: hidden;
}

.widget.equal-height[data-type="chart"] .chart-wrap > canvas{
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

.widget.equal-height[data-type="chart"] .chart-actions{
  position: absolute !important;
  left: 0; right: 0; bottom: 0;
  height: 36px; line-height: 36px;
  padding: 0 8px;
  text-align: right;
  border-top: 1px solid #eee;
  background: #fafafa;
  z-index: 2;
}

.widget.equal-height[data-type="chart"],
.widget.equal-height[data-type="map"]{
  height: 400px; /* ajusta a tu gusto */
}

@media (max-width: 767px){ .widget.equal-height { height:auto; } }

.widget.equal-height[data-type="level"] .panel-body{
  display: block !important;
  padding: 40px !important;
  overflow: visible !important;
}

.widget.equal-height[data-type="level"] .level-wrap{
  width: 100% !important;
}

.widget.equal-height[data-type="level"] .progress{
  width: 100% !important;
  height: 26px;          
  margin: 0 !important; 
}

.widget.equal-height[data-type="level"] .v{
  display: block;
  text-align: center;
  margin-top: 8px;
}

.widget.equal-height[data-type="gauge"] .panel-body{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0px;           
  overflow: hidden;
}

.widget.equal-height[data-type="gauge"] canvas{
  width: 100% !important;  
  height: auto !important; 
  max-height: 90% !important;
}

.widget.equal-height[data-type="indicator"] .panel-body{
  display:flex; align-items:center; justify-content:center; padding:10px;
}
.indicator-dot{
  width:56px; height:56px; border-radius:50%;
  background:#9E9E9E; /* OFF por defecto */
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.06);
  transition: background-color .15s ease;
}
.indicator-on{
  box-shadow:
    0 0 10px rgba(255,212,0,.6),
    0 0 20px rgba(255,212,0,.4),
    inset 0 0 0 2px rgba(0,0,0,.06);
}

.indicator-dot{ width:56px; height:56px; border-radius:50%; background:#9E9E9E; box-shadow: inset 0 0 0 2px rgba(0,0,0,.06); transition: background-color .15s ease; }
.indicator-on{ box-shadow: 0 0 10px rgba(255,212,0,.6), 0 0 20px rgba(255,212,0,.4), inset 0 0 0 2px rgba(0,0,0,.06); }

.widget.equal-height[data-type="slider"] input[type=range]{ width:100%; accent-color: var(--slider-accent, #337ab7); }

body.panel-run-page { background:#f7fbff; color:#173d54; font-family:var(--platform-font-family,'Segoe UI',system-ui,sans-serif); }
.panel-run { padding:24px 28px 36px; }
.panel-run-header { display:flex; align-items:center; margin-bottom:26px; }
.panel-run-title { margin:0 0 8px; color:#1680a9; font-size:34px; font-weight:700; line-height:1.25; letter-spacing:-.035em; overflow-wrap:anywhere; }
.panel-run-subtitle { margin:0; font-size:15px; line-height:1.6; overflow-wrap:anywhere; }
.panel-run-brand { display:inline-block; max-width:100%; }
.panel-run-brand img { max-width:100%; height:auto; vertical-align:middle; }
.panel-run .text-muted { color:#607e93; }
.panel-run .label { display:inline-block; padding:5px 9px; border-radius:6px; font-size:11px; line-height:1.3; font-weight:600; vertical-align:middle; letter-spacing:normal; white-space:normal; }
.panel-run .label-primary { background:#e1f1fc; color:#285a76; }
.panel-run .label-default { background:#edf1f5; color:#587080; }
.panel-run .label-success { background:#dcefe3; color:#285c42; }
.panel-run .label-warning { background:#fff0d5; color:#79572c; }
.panel-run .label-danger { background:#ffd1cc; color:#8d2924; }
.panel-run-connection .alert { display:flex; align-items:center; flex-wrap:wrap; gap:6px 10px; margin:0 0 24px; padding:13px 16px; border:1px solid #cfe4f3; border-radius:9px; background:#edf7fe; color:#375f76; font-size:13px; overflow-wrap:anywhere; }
.panel-run .widget { border:1px solid #cfe4f3; border-radius:12px; background:#fff; box-shadow:0 3px 12px #285a7607; }
.panel-run .widget > .panel-heading { padding:13px 16px; border:0; border-bottom:1px solid #dbe8f1; background:#edf7fe; color:#285a76; }
.panel-run .widget > .panel-heading strong { font-size:14px; font-weight:650; }
.panel-run .widget > .panel-heading .pull-left { max-width:65%; overflow-wrap:anywhere; }
.panel-run .widget > .panel-heading .pull-right { max-width:35%; text-align:right; overflow-wrap:anywhere; }
.panel-run .widget > .panel-heading small { font-size:12px; }
.panel-run .widget > .panel-heading .js-ts { font-size:10px; }
.panel-run .widget code { padding:2px 5px; background:#e3f0f8; color:#37718d; font-size:11px; white-space:normal; }
.panel-run .widget .panel-body { padding:16px; }
.panel-run .widget-body { width:100%; min-width:0; }
.panel-run .widget-body h2 { font-size:32px; font-weight:650; color:#1680a9; }
.panel-run .widget-body pre { max-width:100%; padding:10px; border:1px solid #dbe8f1; border-radius:7px; background:#f7fbfe; color:#375f76; font-family:inherit; font-size:14px; }
.panel-run .btn { border-radius:6px; font-size:13px; font-weight:600; min-height:36px; }
.panel-run .btn-primary { background:#1680a9; border-color:#117498; }
.panel-run .btn-primary:hover,.panel-run .btn-primary:focus { background:#106b90; border-color:#0d6082; }
.panel-run .btn-default { background:#edf7fe; color:#285a76; border-color:#bfd8e8; }
.panel-run .btn-default:hover { background:#dceefa; }
.panel-run .form-control { min-height:38px; border:1px solid #bfd8e8; border-radius:6px; box-shadow:none; }
.panel-run .form-control:focus { border-color:#1680a9; box-shadow:0 0 0 3px #1680a91a; }
.panel-run input[type=range] { padding:0; box-shadow:none; }
.panel-run .progress { border-radius:7px; background:#edf3f8; box-shadow:none; }
.panel-run .progress-bar { box-shadow:none; }
.panel-run .widget.equal-height[data-type="chart"] .chart-actions { border-color:#dbe8f1; background:#f7fbfe; }
.panel-run .chart-actions .btn { min-height:26px; padding:2px 7px; font-size:11px; }
.panel-run .bootstrap-switch { border-color:#bfd8e8; border-radius:6px; }
.panel-run .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary { background:#1680a9; }
@media(max-width:767px) {
  .panel-run { padding:18px 15px 28px; }
  .panel-run-title { font-size:27px; }
  .panel-run-subtitle { font-size:13px; }
  .panel-run-header { align-items:flex-start; margin-bottom:22px; }
  .panel-run-brand { margin-top:5px; }
  .panel-run .widget .panel-body { min-height:115px; }
}
