@charset "UTF-8";
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css');




        /* Grid container */
        .dashboard {
            display: grid;
            grid-template-columns: 520px 520px 1fr;  /* Two equal-width columns */
            grid-template-rows: auto;
            gap: 10px;
            padding: 0px;
            
            padding-left: 0px;
            width:100%;
			justify-content: flex-start;
        }
.col1, .col2, .col3 {
    background: #fff;
    border-radius: 10px;
}


.wrapper {
    width: 2400px;   /* 350 + 200 + 1200 + gaps */
    margin-left: 0;
}

.dashboardnot {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    
}


.dashboardnot {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* first column is twice width */
    grid-template-rows: auto auto auto;
    gap: 10px;
}
        /* First column with four stacked divs */
.first-columnworked {
    display: grid;
    grid-template-columns:  600px 600px 1200px;
    gap: 10px; /* spacing between divs */
    padding: 0; /* reset padding */
}

.first-column {
    display: grid;
    grid-template-columns: 520px 520px 1fr;
    gap: 10px;
}


/* Single div in second column (optional styling) */
.second-column {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0;
}
		.oldsecond-column {
		  display: flex;
            flex-direction: column;
            gap: 10px;
            align-items: center /* Aligns divs to the top */
			/* background-image: linear-gradient(to top, #dfe9f3 0%, white 100%); */
			background-color: #f5f5f5;
			flex: auto; /* Second column takes up 24% of the width */
            padding-left: 5px; 
			padding-top: 0px;
			border-radius: 12px;
        }
		
		.insideold {
			grid-column: 1 / 8;  /* span both columns if needed */
	white-space: wrap;   /* prevents word wrap */
  text-align: center;
		background-color: white;
            border-radius: 12px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
           text-overflow: ellipsis; /* optional: show … if it’s too long */
	overflow: hidden;
	
           	
			
		}
		
		
.leftcolumnold {
  grid-column: 2 / 4;  /* spans the first column only */
  display: flex;       
  white-space: nowrap;
  text-align: center;
 
  gap: 0px;
  overflow: hidden;
  
  
  
}

.rightcolumnold {
  grid-column: 3 / 8;  /* or 2 / 8 if you have 7 columns */
  display: flex;
  flex-direction: column;   /* stack children vertically */
text-overflow: ellipsis;
 max-width:1600px;
 width:100vw;
text-align: center; 
}
.insideold {
			grid-column: 1 / 8;  /* span both columns if needed */
	white-space: wrap;   /* prevents word wrap */
  text-align: center;
		background-color: white;
            border-radius: 12px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
           text-overflow: ellipsis; /* optional: show … if it’s too long */
	overflow: hidden;
	
           	
			
		}
.insidetest {
    grid-column: 1 / 8;
    white-space: normal;       /* valid value — allows normal wrapping */
    text-align: center;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    /* removed text-overflow: ellipsis — incompatible with wrapping text */
}

.leftcolumntest {
    /* no grid-column needed — it naturally takes first column */
    display: flex;
	grid-column: 1 / 8;  /* span both columns if needed */
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    gap: 0px;
}

.rightcolumntest {
    /* no grid-column needed — it naturally takes second column */
	grid-column: 3 / 8;  /* or 2 / 8 if you have 7 columns */
    display: flex;
    flex-direction: column;
    text-align: center;
    overflow: hidden;
}

.container2 {
    display: flex;
    gap:5;
    width: 100%;
	max-width: 2400px; 
    padding: 0;
}

.inside {
    display: grid;
    grid-template-columns: 35% 1fr;
    width: 100%;
    max-width: 2400px;        /* caps how wide it gets */
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
	gap:5;
}

.leftcolumn, .middlecolumn {
    display: flex;
    flex-direction: column;
    overflow: hidden;
	gap:5px;
}

.rightcolumn {
    display: flex;
    flex-direction: column;
    overflow: hidden;
	width: 2200px;
    max-width: 100%;        /* caps how wide it gets */
}


.top-rowold {
grid-column: 1 / 8;  /* or 2 / 8 if you have 7 columns */
  display: flex;
  flex-direction: column;   /* stack children vertically */
  padding: 0px;
 max-width:2200px;
 width:100vw;
  text-align: center; 
  height:100vh !important;
}

.top-rownot {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;   /* full screen */
    padding: 0;
}

.top-rowoldagain iframe {
  width: 100%;              /* ✅ responsive */
  height: 800px;           /* ✅ better than 100vh on mobile */
  min-height: 600px;        /* fallback */
  border: none;
  background-color: #ffffff;
}
.top-rowold iframe {
  width: 2200px;
  height: 100vh !important;
  border: none;
}
.notrightcolumn notiframe {
position: relative;
  width: 100%;
  height: 100vh;
 /* 16:9 aspect ratio (change as needed) */

}

.Riframe-container {
  position: relative;
  width: 100%;
  height: 100%;
  padding-bottom: 68.25%; /* 16:9 aspect ratio (change as needed) */
  overflow: hidden;
}

.Riframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin-top:0px;
}

#w {}
#w, #nextClosure {
  display: block;
  margin: 2px auto;
  padding: 4px;
  color: #0e0e0e;
  
  transition: all 0.2s ease;
  border-radius: 10px;
}
#widgetprev {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -6px;
  margin-bottom: 14px;
  border-radius: 20px;
  /* box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08); */
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: #cdcdcd;
  padding: 0;
  gap: 1px;
}

#widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* top-align content */
  margin: 0;
  margin-bottom: 14px;
  border-radius: 20px;
  background: linear-gradient(145deg, #f0f0f0, #d0d0d0); /* subtle gradient */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);           /* soft shadow for depth */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding: 0;
  gap: 1px;                 /* fixed width or adjust as needed */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#widget > * { margin: 0; }
#widget:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  border-radius: 10px;
}
#nextClosure {
    font-size: 0.85em !important;        /* slightly smaller text */
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: #333333;                      /* clean dark gray text */
    font-weight: 500;                     /* medium weight for readability */
    letter-spacing: 0.5px;               /* subtle spacing for clarity */
}
#nextClosureOLD {
    font-size: 0.95em !important;      /* slightly smaller text */
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: #333333;                    /* dark gray, easier on eyes */
    background-color: #f9f9f9;         /* light subtle background */
    padding: 6px 12px;                 /* comfortable spacing */
    border-radius: 8px;                /* rounded corners */
    border: 1px solid #ddd;            /* soft border for definition */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* subtle shadow for depth */
    display: inline-block;              /* keeps it compact */
}
.widget-divider {
    width: 90%;            /* width of the divider */
    height: 1px;           /* thin line */
    background: #aaa;      /* subtle color */
    margin: 12px auto;     /* vertical spacing and center */
    border-radius: 1px;    /* slightly rounded edge for softness */
    opacity: 0.5;          /* make it subtle */
}

#top-row {
	margin-top: -6px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  width: 100%;
}
#clock {
  text-align: center;
  margin-top: -5px;
  padding: 1px 20px;
}
#clock-time {
  font-size: 1.15em;       /* was 1.6em, too big causing wrap */
  font-weight: 600;
  letter-spacing: 1px;    /* was 2px, contributing to wrap */
  color: #0e0e0e;
  margin: 0;
  white-space: nowrap;    /* prevent AM/PM from wrapping */
}
#clock-date {
  font-size: 0.65em;
  color: #666;
  margin-top: 1px;
  
  white-space: nowrap;
}
#weather {
  text-align: center;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  margin-top: 0px;
  justify-content: center;
}	
.newmodule2, .newmodule {
            background-color: white;
            border-radius: 12px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            width: 100%;
			height: auto;
			overflow: visible;
			min-height: 0;
        }

        /* Individual modules cursor: pointer;*/
        .module2, .module {
            background-color: white;
            border-radius: 12px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            padding: 10px;
            transition: all 0.3s ease;
            width: auto;
			height: auto;
			overflow: visible;
			min-height: 0;
        }

        /* Style for headers inside modules */
        .module2 h3, .module h3 {
            color: #0073e6;
            margin-top: 0;
        }

        /* Hover effect for module cards */
        .module3:hover {
            transform: scale(1.15);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        }
		.module2:hover {
            
        }
#activeq {
 float: right;}
#overlay4 {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 1;
    cursor: pointer;
}

#text4{
   
    
    right: 50%;
    left: 50%;
}
.



  tr.border_bottom td {
  border-bottom:0pt solid black;
}
 
#cssTable td 
{
    text-align: center; 
    vertical-align: middle;
}

.nested-table-container2 {
            display: flex;
            flex-direction: column;
            height: 200px; /* Set a height for the container */
        }

        .nested-table2 {
            flex-grow: 1; /* Allow the nested table to grow */
            display: flex;
            flex-direction: column;
        }

        .nested-table2 .top-ro2w {
            flex-grow: 1; /* This row will take up the remaining space */
        }

        .nested-table2 .bottom-row2 {
            /* No flex-grow here; this ensures it stays at the bottom */
        }

 .chart-container {
            position: relative; /* Position relative for absolute positioning of the card */
            margin: auto; /* Center the container */
            background-color: white; /* Optional: Background for the container */
            border-radius: 0px; /* Rounded corners for container */
            /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); Shadow for depth */
            padding: 30px; /* Padding inside the container */
			width: auto;
			height: auto;
			overflow: visible;
        }
		
		
        /* Style the card container */
        .ap-cardold {
            position: absolute; /* Position the card absolutely */
            top: 0; /* Distance from the top */
            right: 20px; /* Distance from the right */
            width: 120px;
            height: 80px;
            background-color: $apcardbg; /* Blue background */
            color: white; /* White text */
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            border-radius: 15px; /* Rounded corners */
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Shadow for depth */
            text-align: center;
        }
		


  /* Large, bold number for the count */
        .ap-count {
            font-size: 1.2rem; /* Large font size */
            font-weight: normal;
        }

        /* Label text for 'Access Points' */
        .ap-label {
            font-size: 0.6rem;
            opacity: 0.7; /* Slightly lighter for emphasis on count */
            text-transform: uppercase;
            letter-spacing: 0px;
            margin-top: 3px;
        }

        /* Style for the Plotly chart */
        #barChart {
			position: relative;
            width: 400px; /* Full width for the chart */
            height: 300px; /* Set a height for the chart */
        }
		
.whd-module-header {
  font-family: Arial, sans-serif !important;
  font-size: 18px !important;
  font-weight: bold !important;
  padding: 4px 6px 0 !important;
  margin-bottom: 0 !important;
  border-bottom: 1px solid #ddd !important;
  color: #333 !important;
  text-align: left !important;
}

.whd-server-grid {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.whd-card {
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fafafa;
  overflow: hidden;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.whd-card-title {
  background: #e8e8e8;
  font-size: 15px;
  font-weight: bold;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #222;
}

.whd-connold {
  margin-left: auto;
  font-size: 14px;
  font-weight: normal;
  background: #ccc;
  border-radius: 10px;
  padding: 1px 6px;
  color: #444;
}

.whd-connold2 {
  margin-left: auto;
  font-size: 11px;
  font-weight: 500;
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  border-radius: 10px;
  padding: 2px 8px;
  color: #2d6a4f;
  border: 1px solid #b1dfbb;
  letter-spacing: 0.3px;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.6);
}


.whd-conn2 {
  margin-left: auto;
  width: 80px;
  font-size: 16px;
  font-weight: 500;
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  border-radius: 10px;
  padding: 2px 8px;
  color: #2d6a4f;
  border: 1px solid #b1dfbb;
  letter-spacing: 0.3px;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.6);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  white-space: nowrap;
  vertical-align: middle;
}
.whd-conn2a {
  margin-left: auto;
  width: 120px;
  font-size: 16px;
  font-weight: 500;
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  border-radius: 10px;
  padding: 2px 8px;
  color: #2d6a4f;
  border: 1px solid #b1dfbb;
  letter-spacing: 0.3px;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.6);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  white-space: nowrap;
  vertical-align: middle;
}
.whd-conn {
  margin-left: auto;
  width: auto;
  font-size: 16px;
  font-weight: 600;
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  border-radius: 10px;
  padding: 2px 8px;
  color: #2d6a4f;
  border: 1px solid #b1dfbb;
  letter-spacing: 0.3px;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.6);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  white-space: nowrap;
  vertical-align: middle;
}



.conn-green {
    background: linear-gradient(135deg, #d4edda, #c3e6cb) !important;
    color: #2d6a4f !important;
    border: 1px solid #b1dfbb !important;
}

.conn-yellow {
    background: linear-gradient(135deg, #fff9c4, #fff59d) !important;
    color: #7d6608 !important;
    border: 1px solid #f9e44a !important;
}

.conn-orange {
    background: linear-gradient(135deg, #ffe0b2, #ffcc80) !important;
    color: #7d3c00 !important;
    border: 1px solid #ffb74d !important;
}

.whd-conn3-alert {
  margin-left: auto;
  width: auto;
  font-size: 16px;
  font-weight: 400;
  background: linear-gradient(135deg, #f8d7da, #f5c6cb);
  border-radius: 10px;
  padding: 2px 8px;
  color: #721c24;
  border: 1px solid #f5c6cb;
  letter-spacing: 0.3px;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.6);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  white-space: nowrap;
  vertical-align: middle;
}
.whd-conn3 {
  margin-left: auto;
  width: auto;
  font-size: 16px;
  font-weight: 400;
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  border-radius: 10px;
  padding: 2px 8px;
  color: #2d6a4f;
  border: 1px solid #b1dfbb;
  letter-spacing: 0.3px;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.6);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  white-space: nowrap;
  vertical-align: middle;
}

.whd-conn5 {
  margin-left: 0;
  width: auto;
  font-size: 16px;
  font-weight: 400;
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  border-radius: 10px;
  padding: 2px 8px;
  color: #2d6a4f;
  border: 1px solid #b1dfbb;
  letter-spacing: 0.3px;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.6);
  display: inline-flex;
  align-items: left;
  justify-content: space-between;
  white-space: nowrap;
  vertical-align: middle;
}


.whd-conn3 a,
.whd-conn3-alert a {
  text-decoration: none;
  color: #2d6a4f;
}

.whd-conn3-alert a {
  color: #721c24;
}

.whd-card-body {
  padding: 5px 7px;
  font-size: 14px;
  color: #333;
}

.whd-row {
  padding: 2px 0;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.whd-muted {
  color: #888;
  font-size: 12px;
}
.whd-generated {
  margin-left: 0;
  padding-left: 8px;
  font-size: 14px;
  font-weight: normal;
  color: #888;
  white-space: nowrap;
}
.whd-generatedsmall {
  margin-left: 0;
  font-size: 14px;
  font-weight: normal;
  color: #888;
  white-space: nowrap;
  float:right;
}
.fs-alert-badge {
  background: orange;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  border-radius: 10px;
  padding: 1px 7px;
  margin-left: 6px;
  cursor: pointer;
  white-space: nowrap;
}
.fs-alert-badge2 {
	float:right;
  background: orange;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  border-radius: 10px;
  padding: 1px 7px;
  margin-left: 6px;
  cursor: pointer;
  white-space: nowrap;
}
#fs-body {
  transition: none;
}

#module6 {
    overflow: hidden;
    max-width: 1000px;
    opacity: 1;
    transition: max-width 0.4s ease, opacity 0.3s ease;
}

#module6.hidden {
    width: 0 !important;
    min-width: 0 !important;
    opacity: 0;
    padding: 0;
    margin: 0;
    border: none;
}

#module6-toggle {
	position: relative;
    display: inline;
    align-items: center;
    cursor: pointer;
    padding: 0 4px;
    background: #ddd;
    border-radius: 0 4px 4px 0;
    user-select: none;
    font-size: 25px;
    color: #555;
    transition: background 0.2s;
    /* position it against the column edge */
    position: absolute;
    top: 50%;
    right: -16px;
    transform: translateY(-50%);
}

#module6-toggle:hover {
    background: #bbb;
}

/* ── Mobile ── */
/* ── Mobile ── */
@media (max-width: 768px) {

* {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Kill horizontal scroll */
  body {
    
    width: 98% !important;
	padding:5px !important;
  }

  /* Stack columns vertically */
  .dashboard {
  overflow-x: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

.first-column,
.middlecolumn {
  width: 500px !important;
  max-width: 500px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  display: block !important;  /* was flex, that's what killed them */
}

  /* Cards stack to single column */
  .whd-server-grid {
    grid-template-columns: 1fr !important;
  }

  /* iframes — constrain, don't overflow */
  .nested-table-container iframe {
    width: 100% !important;
    max-width: 100% !important;
    height: 900px !important;
  }

  /* Plotly charts */
  #barChart,
  #barChart2 {
    width: 100% !important;
    overflow: hidden;
  }

  /* Plotly inline width override */
  #barChart .js-plotly-plot,
  #barChart2 .js-plotly-plot {
    width: 100% !important;
  }

  /* Room selector full width */
  #selroom {
    width: 100%;
    font-size: 16px; /* prevents iOS zoom on focus */
  }

  /* top-row iframe stacks */
  .top-row {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

iframe {
  width: 100%;              /* ✅ responsive */
  max-height: 70dvh;           /* ✅ better than 100vh on mobile */
  height: 400px;        /* fallback */
  border: none;
  background-color: #ffffff;
}

  /* AP card was absolutely positioned — rein it in */
  .ap-cardnot {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 10px auto;
    width: 120px;
  }

  /* module6 toggle arrow */
  #module6-toggle {
    writing-mode: horizontal-tb;
    padding: 6px 12px;
    width: 100%;
    text-align: center;
    background: #ddd;
    border-radius: 4px;
    margin-bottom: 6px;
    box-sizing: border-box;
  }

  /* Readable font sizes */
  .whd-card-title,
  .whd-row {
    font-size: 13px;
  }

  /* Prevent nested tables from blowing out */
  .nested-table-container {
    width: 100%;
    overflow-x: hidden;
  }
.nested-table-container3 {
    max-width: 60% !important;
    overflow-x: hidden !important;
  }
  /* toggleAll button full width */
  #toggleAll-btn {
    right: 0 !important;
    box-sizing: border-box;
  }
}
/* Base styling */
#sqlplaceholder {
  font-family: "Inter", "Segoe UI", sans-serif;
  color: #333;
  max-width: 1200px;
  margin: 20px auto;
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom:30px !important;
  gap: 20px;
}

/* Section Titles */
#sqlplaceholder h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #555;
}

/* ===== Metrics Boxes ===== */
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

.metrics .metric-val {
  background: #f8f8f8;
  border-radius: 8px;
  padding: 12px 16px;
  text-align: center;
  box-shadow: inset 0 0 0 1px #e0e0e0;
}

.metrics .metric-val.ok { color: #2a7a2f; }       /* green */
.metrics .metric-val.warn { color: #d97706; }     /* amber/orange */
.metrics .metric-val.err { color: #b91c1c; }      /* red */

.metrics .metric-val .label {
  font-size: 0.85em;
  color: #666;
}

.metrics .metric-val .value {
  font-size: 1.5em;
  font-weight: 600;
}

/* ===== Server Health ===== */
.server-list {
  background: #fff;
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.conn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.conn-name {
  font-weight: 600;
}

.conn-meta {
  font-size: 0.85em;
  color: #666;
  margin-top: 2px;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.dot-ok { background: #2a7a2f; }
.dot-warn { background: #d97706; }
.dot-err { background: #b91c1c; }

.bar-wrap {
  background: #e5e5e5;
  border-radius: 4px;
  height: 8px;
  width: 100%;
}

.bar-fill {
  height: 100%;
  border-radius: 4px;
}

.bar-ok { background: #2a7a2f; }
.bar-warn { background: #d97706; }
.bar-err { background: #b91c1c; }

/* Server badge */
#server-badge {
  display: inline-block;
  font-size: 0.8em;
  background: #f3f4f6;
  color: #555;
  padding: 2px 8px;
  border-radius: 12px;
  margin-top: 5px;
}

/* ===== Database Sizes ===== */
.db-sizes {
  background: #fff;
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.db-sizes .conn-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.db-sizes .bar-fill { height: 8px; border-radius: 4px; }
.db-sizes .bar-ok { background: #2a7a2f; }
.db-sizes .bar-warn { background: #d97706; }
.db-sizes .bar-err { background: #b91c1c; }

/* ===== Active Queries Table ===== */
#sqlplaceholder table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

#sqlplaceholder th, #sqlplaceholder td {
  padding: 8px 12px;
  text-align: left;
  font-size: 0.85em;
}

#sqlplaceholder th {
  background: #f3f4f6;
  font-weight: 600;
  color: #555;
}

#sqlplaceholder tr:nth-child(even) td { background: #f9fafb; }

.badge {
  display: inline-block;
  padding: 2px 6px;
  font-size: 0.75em;
  border-radius: 8px;
  color: #fff;
}

.badge-info { background: #3b82f6; }
.badge-warn { background: #d97706; }
.badge-err { background: #b91c1c; }
.go-top-btn {
  position: fixed;
  bottom: 20px;       /* distance from bottom */
  right: 20px;        /* distance from right */
  display: none;      /* hidden by default */
  background-color: #00764d; /* nice green */
  color: white;
  padding: 10px 15px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  z-index: 9999;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: opacity 0.3s, transform 0.3s;
}

/* Show on mobile screens */
@media (max-width: 768px) {
  .go-top-btn {
    display: block;
  }
}

/* Hover effect */
.go-top-btn:hover {
  background-color: #005c38;
  transform: translateY(-2px);
}



  /* ===== HEADER ===== */
  .header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0;
    margin-left: 1px;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
  }

  .ms-logoold {
    width: 24px;
    height: 24px;
    justify-content: flex-start;
  }

  .header-textold h1 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
  }
  
.header-top {
  display: flex;
  align-items: flex-start;   /* 🔥 aligns logo with top of H1 */
  gap: 0;
  padding: 10px;
  margin-left: 15px;
}

.ms-logo {
  width: 32px;
  height: 32px;
  margin-top: 4px; /* fine-tune alignment with text */
}

.header-top h1 {
  margin: 3px;
  font-size: 1.5rem;
}

.header-top a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
  
  svg:active,
h1:active {
    transform: none !important;
}

.header-top svg,
.header-top h1 {
    user-select: none;
}

.header-top svg {
    display: block;
}

  .header-text p {
    font-size: 0.75rem;
    color: var(--text-muted);
  }

  .header-right {
    margin-left: auto;
    text-align: right;
  }

  .last-updated {
    font-size: 0.7rem;
    color: var(--text-muted);
  margin-left: 15px;
  }
  #last-updated {
    font-size: 0.7rem;
    color: var(--text-muted);
  margin-left: 15px;
  }

  /* ===== MAIN ===== */
  .main {
    padding: 16px;
    max-width: 900px;
    margin: 0 auto;
  }

  /* ===== SUMMARY PILLS ===== */
  .summary {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
	
  padding: 10px;
  margin-left: 15px;
  }

  .summary-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid transparent;
  }

  .summary-pill .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
  }

  .summary-pill.healthy { background: var(--healthy-bg); color: var(--healthy-text); border-color: var(--healthy-border); }
  .summary-pill.healthy .dot { background: var(--healthy-text); }
  .summary-pill.degraded { background: var(--degraded-bg); color: var(--degraded-text); border-color: var(--degraded-border); }
  .summary-pill.degraded .dot { background: var(--degraded-text); }
  .summary-pill.outage { background: var(--outage-bg); color: var(--outage-text); border-color: var(--outage-border); }
  .summary-pill.outage .dot { background: var(--outage-text); }

  /* ===== SECTION LABEL ===== */
  .section-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 8px;
  }

  /* ===== SERVICE GRID ===== */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    margin-bottom: 20px;
  }

  @media (max-width: 480px) {
    .services-grid { grid-template-columns: 1fr 1fr; }
  }

  .service-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 10px 12px;
    border-left: 4px solid transparent;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.15s, box-shadow 0.15s;
  }

  .service-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  }

  .service-card.healthy { border-left-color: var(--healthy-text); }
  .service-card.degraded { border-left-color: var(--degraded-border); }
  .service-card.outage { border-left-color: var(--outage-text); }

  .service-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .service-card.healthy .service-icon { background: var(--healthy-text); }
  .service-card.degraded .service-icon { background: var(--degraded-border); }
  .service-card.outage .service-icon { background: var(--outage-text); }

  .service-name {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.3;
  }

  /* ===== INCIDENTS ===== */
  .incidents-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .incident-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border-left: 4px solid transparent;
  }

  .incident-card.degraded { border-left-color: var(--degraded-border); }
  .incident-card.outage { border-left-color: var(--outage-text); }

  .incident-header {
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    user-select: none;
  }

  .incident-header:hover { background: var(--surface2); }

  .incident-meta {
    flex: 1;
    min-width: 0;
  }

  .incident-service {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 2px;
  }

  .incident-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
  }

  .incident-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
  }

  .badge.degraded { background: var(--degraded-bg); color: var(--degraded-text); }
  .badge.outage { background: var(--outage-bg); color: var(--outage-text); }

  .chevron {
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-top: 3px;
  }

  .chevron.open { transform: rotate(180deg); }

  .incident-body {
    display: none;
    padding: 0 14px 12px 14px;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 10px;
  }

  .incident-body.open { display: block; }

  .incident-times {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .time-item { display: flex; flex-direction: column; gap: 2px; }
  .time-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
  .time-value { font-weight: 500; color: var(--text); }

  /* ===== EMPTY STATE ===== */
  .empty-state {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .empty-state .check { font-size: 2rem; margin-bottom: 8px; }
  .empty-state p { font-size: 0.85rem; }

  /* ===== LOADING ===== */
  .loading {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
  }

  .spinner {
    width: 24px; height: 24px;
    border: 3px solid var(--border);
    border-top-color: var(--ms-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
  }

  @keyframes spin { to { transform: rotate(360deg); } }

  /* ===== ERROR ===== */
  .error-bar {
    background: var(--outage-bg);
    color: var(--outage-text);
    border: 1px solid var(--outage-border);
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 0.82rem;
    margin-bottom: 16px;
    display: none;
  }
  
#goTopBtn {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Hide completely on desktop */
@media screen and (min-width: 769px) {
    #goTopBtn {
        display: none !important;
    }
}
.badge-count { font-weight: bold; color: #fff; background: #555; border-radius: 4px; padding: 1px 6px; font-size: 0.8rem; }

.wrap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
}
@media (max-width: 768px) {
    .wrap {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}
.circle {
    width: 90px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.label {
    font-size: 11px;
    opacity: 0.8;
}

.value {
    font-size: 11px;
}

.blue   { background: #85c5f2; color: #1b1b1b; }
.green  { background: #8ee6b0; color: #1b1b1b; }
.orange { background: #f6b37a; color: #1b1b1b; }
.orange2 { background: #f07906; color: #fff; }
.purple { background: #c9a3e6; color: #1b1b1b; }
.purple2 { background: #4f1489; color: #fff; }
.yellow { background: #f7e58a; color: #1b1b1b; }
.navy { background: #2d46a3; color: #fff; }

.whd-ticket {
    background: #cecece;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.whd-ticket-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.whd-ticket-label {
    font-size: 10px;
    text-transform: none;
    color: #000;
}

.whd-ticket-id {
    color: #7eb3f5;
    font-family: monospace;
    font-weight: 700;
}
.whd-ticket-id a { text-decoration: none; color: #2563a8; }
.whd-ticket-date {
    color: #888;
    font-size: 11px;
    font-family: monospace;
}

.whd-ticket-subject {
    color: #000;
    flex: 1;
	 font-size: 11px;
    font-family: monospace;
}

.whd-ticket-tech {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 4px;
    background: #2a2a2a;
    color: #888;
}

.dashboard {
    display:flex;
    gap:15px;
    width:100%;
}


.column {
    flex: 0 0 600px;
}

.column2 {
    flex:2.5;
}


.module {
    background:#fff;
    border-radius:10px;
}


.nested-table-container {
    background:white;
    border-radius:10px;
    padding:10px;
}


.module iframe {
    width: 100%;
    height: 600px;
    max-height: 70vh;
    border: none;
    background-color: #ffffff;
}