
* {
    margin: 0px;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

.heading {
    display: flex;
    background-color: #232f3e;
    box-shadow: 0px 1px 2px #232f3e;
}

h1 {
    color: coral;
    font-weight: bold;
    
    background: transparent;
    padding: 7px;    
}

.shell {
    width: 100%; /* Better than 100vw */
    /* Optional: Sets the body height to at least the full viewport height */
    min-height: 100vh; 
    /* Ensures no default browser margin pushes content off-screen */
    margin: 0; 
    /* Ensures padding doesn't add to the width */
    box-sizing: border-box; 
}

.outer-wrapper {
    margin: 10px;
    margin-left: 0px;
    margin-right: 0px;
    border: 1px solid black;
    border-radius: 4px;
    box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.9);
    max-width: fit-content;
    max-height: fit-content;    
    background-color: rgb(255, 255, 255);
}

.table-wrapper {
	overflow-y: scroll;
    overflow-x: scroll;
    height: fit-content;
    max-width: 65.0vw;    
    max-height: 60.0vh;    
    margin-top: 22px;    
    margin: 5px;
    padding-bottom: 10px;    
}

.body-wrapper {
	/*: flex;
    gap: 20px;
    width: 100%;*/
	
    overflow-y: scroll;
    overflow-x: scroll;
    height: fit-content;
    max-width: 100.0vw;    
    max-height: 70.0vh;    
    margin-top: 22px;    
    margin: 10px;
    padding-bottom: 10px;    
}

.right-outer-wrapper {
    margin: 10px;
    margin-left: 0px;
    margin-right: 0px;
    border: 1px solid black;
    border-radius: 4px;
    box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.9);
    max-width: fit-content;
    max-height: fit-content;    
}

.right-table-wrapper {
    overflow-y: scroll;
    overflow-x: scroll;
    height: fit-content;
    max-width: 30.0vw;    
    max-height: 20.0vh;    
    margin-top: 10px;    
    margin: 5px;
    padding-bottom: 10px;    
}

.footer-outer-wrapper {
    margin: 10px;
    margin-left: 0px;
    margin-right: 0px;
    border: 1px solid black;
    border-radius: 4px;
    box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.9);
    max-width: fit-content;
    max-height: fit-content;    
}

.footer-table-wrapper {
    overflow-y: scroll;
    overflow-x: scroll;
    height: fit-content;
    max-height: 15.0vh;    
    max-width: 100.0vh;    
    margin-top: 22px;    
    margin: 5px;
    padding-bottom: 10px;    
}

.nested-outer-wrapper{
    margin: 2px;
    margin-left: 0px;
    margin-right: 0px;
    border: 1px solid black;
    border-radius: 4px;
    box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.9);
    max-width: fit-content;
    max-height: fit-content;  
}

.nested-table-wrapper{
    overflow-y: scroll;
    overflow-x: scroll;
    height: fit-content;
    max-height: 40.0vh;
    max-width: 100.0vh;    
    margin-top: 10px;    
    margin: 5px;
    padding-bottom: 10px;    
}

.header-table-wrapper {
    overflow-y: scroll;
    overflow-x: scroll;
    height: fit-content;
    max-height: 5.0vh;    
    max-width: 100.0vh;    
    margin-top: 22px;    
    margin: 5px;
    padding-bottom: 10px;    
}

table {    
    /*min-width: max-content;  */  
    border-collapse: separate;
    border-spacing: 2px 2px; /* 0px horizontal gap, 15px vertical gap */   
}

table tfoot{
    position: sticky;
    bottom: 0px;
    inset-block-end: 0;    
    /*padding-top: 0px;
    padding-bottom: 0px;*/
 }
 
 table th, table td {  
	/*Prevents the text from wrapping to a new line */
    white-space: nowrap;
    /*Hides any content that goes beyond the width of the container */
    overflow: hidden;
    /*Displays an ellipsis (...) to indicate truncated text */
    text-overflow: ellipsis; 
    /*max-width: 300px;
    width: 1%;*/	
    padding: 2px 2px; /*The first number sets the Top and Bottom, the second sets the Left and Right.*/
    /*padding-top: 2px;
    padding-bottom: 2px;    
    padding-left: 5px;  
    padding-right: 5px; 
    font-size: 14px;*/
}

table th{
    position: sticky; 
    top: 0px;
    bottom: 0px;    
    /*padding-left: 10px;  
    padding-right: 10px; */
    
    background-color: #133b5c;
    color: rgb(241, 245, 179);
    
    text-align: center;
    font-weight: normal;
    font-size: 16px;
    outline: 0.7px solid black;
    border: 1.0px solid rgb(255, 255, 255);    
    /*border-bottom:1px solid #e0e0e0;
	border-top:1px solid #e0e0e0;*/
}

table td {
    text-align: left;    
    font-size: 12px;
    border: 1px solid rgb(177, 177, 177);
   /* padding-left: 10px;  
    padding-right: 10px;*/     
}

.payment-ref{
	max-width:200px;
}

.address-cell{
	max-width:60px;
}

.name-surname-cell{
	max-width:80px;
}

.actionSelect{
	max-width:100px;
}

input{
 	position: relative;
    /* Have some width if the input is empty */
    min-width: 1em;
    /* Adjust size to match the span */
    width: min-content;
  /*field-sizing: content;*/ /*works only on chrome*/
}
/*------------------------------------------------------------------------------------*/
body, html {
    height: 100%; /* Ensure body and html take full viewport height */
    margin: 0;
    display: flex; /* Enable Flexbox on the body */
    justify-content: center; /* Horizontally center content */
    align-items: center; /* Vertically center content */
}

body {
    /*margin: 0;*/
    padding: 0;
    overflow-x: hidden; /* This acts as a safety net against horizontal scrolling */
}

.centered-content {
    /* Optional: Add styling to your centered content */
    padding: 20px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    text-align: center;
}

.grid-container {
    display: grid;
    place-items:center;
    grid-template-columns: 50% 50%; /* Two columns, each 50% */
    /*grid-template-rows: 50% 50%; /* auto auto Two rows */
    grid-gap: 20px; /* Adjust the gap between grid items if needed */
   /* width: 100%; /* Full width of the page */
}

/* Tooltip container - position:relative is key */
.tooltip {
  position: relative;
  display: inline-block;
  /* Optional: adds a dotted underline to the hoverable text */
  border-bottom: 1px dotted black; 
}

/* Tooltip text - hidden by default */
.tooltiptext {
  visibility: hidden; /* Hide the tooltip */
  width: 120px;
  background-color: rgb(28, 113, 216);
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;  
  /* Position the tooltip (e.g., center-bottom) */
  position: absolute;
  z-index: 1; /* Ensures the tooltip is above other content */
  bottom: 100%; /* Positions it above the hovered element */
  left: 50%;
  margin-left: -60px; /* Centers the tooltip (half of the width) */
  /* Optional: add a fade-in effect */
  opacity: 0;
  transition: opacity 0.3s;
}

/* Show the tooltip text when the container is hovered */
.tooltip:hover .tooltiptext {
  visibility: visible; /* Make it visible */
  opacity: 1; /* Fade it in */
}

/*-------------------SCROLLING TEXT------------------------------------------------*/
.marquee-cell {
  width: 200px; /* Set your desired cell width */
  border: 1px solid #ccc;
}

.marquee-wrapper {
  overflow: hidden; /* Clips the text as it leaves the cell boundaries */
  white-space: nowrap; /* Keeps text on one line */
  width: 100%;
}

.scrolling-text {
  display: inline-block;
  padding-left: 100%; /* Start the text just off-screen to the right */
  animation: marquee-loop 10s linear infinite;
}

@keyframes marquee-loop {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); } /* Move text fully to the left */
}
/*------------NETWORK FOUR BOXES-----------------------------------------------------------------

/* The container table cell if needed */
.parent-cell {
	height: 800px; /* You must define a height here or on the row */
    padding: 0; /* Removes gap between parent cell and nested table */
}

/* The 2x2 Grid Table */
.nested-grid {
    width: 100%;
    height: 100%; /* Forces the nested table to match the parent cell height */
    /*table-layout: fixed;  CRITICAL: Content won't push width */
    border-collapse: collapse;
}

.nested-grid td {
    border: 1px solid #333;
    width: 50%;          /* Force half width */
    height: 50%;       /* Or aspect-ratio: 1/1; */
    overflow: hidden;    /* Prevents content from physically pushing borders */
    vertical-align: top;
    padding: 0;
}

/* Any table placed INSIDE one of the 4 boxes */
.content-table{
    width: 100%;
    height: 100%;        /* Optional: makes content table fill the box */
    table-layout: fixed;
    border: none;
    border-spacing: 3px 0;    /* 0px horizontal gap, 15px vertical gap */
}

.navigationTable{
    border-collapse: separate; /* Required for border-spacing to work */
    border-spacing: 5px 5px;    /* 0px horizontal gap, 15px vertical gap */
    padding: 10px 10px; 
    background-color: rgb(255, 255, 255);
}

.navigationTable td{
	/* 1. Base Styling */
    background-color: rgb(192, 28, 40); /* Replace with your preferred color */
    font-size: 18px;   
    height: 30px;
    padding: 5px 10px;        /* Breathing room for text */
    text-align: center;
    cursor: pointer;          /* Makes the whole cell feel clickable */
    transition: all 0.1s;     /* Smoothly switch when clicked */
    /* 2. The 3D "Raised" Effect */
    box-shadow: 
        		inset 2px 2px 0px #ffffff,  /* Top-left white highlight */
        		inset -2px -2px 0px #888888; /* Bottom-right dark shadow */ 
    border-radius: 6px;   
}

/* 3. The "Pressed" Effect when clicking the cell */
.navigationTable td:active {
    box-shadow: 
        inset -1px -1px 0px #ffffff, /* Reverse shadows */
        inset 1px 1px 0px #888888;
    background-color: #d0d0d0;      /* Slightly darker when pressed */
}

/* 4. Link styling inside the cell */
.navigationTable td a {
    text-decoration: none;
    color: #333;
    display: block; /* Makes the entire 3D area clickable */
    width: 100%;
    height: 100%;
}

.button-td {
    text-align: center; /*Centers the button horizontally */
    vertical-align: middle; /*Centers the button vertically */
    padding: 0; /*This ensures the cell doesn't add extra height */
    border-radius: 6px;
}

.button-td input[type='submit']{
    width: 100%;
    height: 100%;      /* Stretch to the height of the <tr> */
    display: block;    /* Removes the inline 'ghost' gap at the bottom */
    margin: 0;         /* Removes default browser margins */
    border: none;      /* Removes the default 2px button border */
    padding: 0;        /* Removes default internal button padding */
    box-sizing: border-box; /* Includes padding/border in the 100% calculation */    
}

.navigation-wrapper{
    margin: 2px;
    margin-left: 0px;
    margin-right: 0px;
    border: 1px solid black;
    border-radius: 4px;
    box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.9);
    max-width: fit-content;
    max-height: fit-content;    
}

.apInfoTable {
    border-collapse: separate;/* Required for border-spacing to work */
    border-spacing: 3px 0; /* 0px horizontal gap, 15px vertical gap */    
}
/* This removes the 'stripes' and makes the background visible */
/* This targets the specific properties jQuery UI uses for its 'smoothness' or 'lightness' themes */
.ui-widget-overlay {
    background: #000 !important; /* Kills the stripes */
    background-image: none !important; /* Double-kill the stripes */
    opacity: 0.5 !important;    /* Makes it see-through */
}

.searchBar {
    max-width:50px;
}

/*----------------TABBED PANE*/

/* --- THE LAYOUT FIXES (The "Jump" Killers) --- */
.parent-cell {
    vertical-align: top !important; /* This stops the "drop" or "jump" */
    padding: 0 !important;
}

.tab-content {
    display: none; /* Hide by default */
    padding: 10px;
    background: white;
    min-height: 600px; /* Keeps the page height stable */
}

/* --- THE TAB BUTTONS (JTabbedPane Look) --- */
.tab-bar {
    display: flex;
    background: #333;
    border-bottom: 2px solid #007bff;
    margin-bottom: 0px; 
}

.tab-btn {
    padding: 10px 20px;
    cursor: pointer;
    background: #444;
    color: white;
    border: none;
    border-radius: 4px 4px 0 0;
    margin-right: 2px;
    font-weight: bold;
}

.tab-btn:hover {
    background: #555;
}

.tab-btn.active {
    background: #007bff;
    color: white;
}

/* --- THE MAP BOX --- */
#Tab2 {
    background-color: #1a1a1a !important; /* Force the dark map background */
    height: 600px; 
    overflow: visible;
}

#networkTopologyMap {
    display: block;
    background-color: transparent !important;
    border: 1px solid #444;
}

/* Make the link lines look like glowing fiber */
.link-line {
    stroke: #004444; /* Dark teal base */
    stroke-width: 2px;
    stroke-opacity: 0.6;
    transition: stroke 0.5s, stroke-width 0.5s;
}

/* The "Active" Glow for links with traffic */
.link-active {
    stroke: #00ffff !important; /* Cyan glow */
    stroke-width: 4px !important;
    filter: drop-shadow(0 0 5px #00ffff);
}

/* Make the router nodes look like glowing pulses */
.node-circle {
    stroke: #fff;
    stroke-width: 1.5px;
    filter: drop-shadow(0 0 8px rgba(0, 123, 255, 0.8));
}

/* Ensure the Header Row is on top of everything */
.hearder-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000; /* Higher than the tabs */
}

/* Push the Tabs down so they start AFTER the header */
.tab-bar {
    position: sticky;
    top: 50px; /* MATCH THIS to your header's height (Row1 height=50) */
    z-index: 999; 
    background: #333;
    display: flex;
}

/* 2. THE CRITICAL FIX: Push the rest of the content down */
/* Adjust the '60px' to match the actual height of your header/tabs */
body {
    padding-top: 60px !important; 
    margin: 0;
}

/* 3. If you use position:fixed, you MUST also add this: */
.shell {
    margin-top: 50px; /* Extra breathing room if needed */
}