
body {
	background: #171b20;
	color: #000;
	height: 100%;
    margin: 10px;


}

body,td,th {
	font-family: Tahoma, Geneva, sans-serif;
	font-size: 14px;
}
.content-container {
    width: fit-content;
    margin-left: auto;
  margin-right: auto;
  
}

	h1 span {
		color: #ffffff;
		font-size: 20px;
		font-weight: normal;
		margin: 5px 5px 5px 0;
		text-align: left;
	}

#titlearea{
    width: fit-content;
    text-align: left;
    margin: 20px;
}
.control-group {
    display: block; 
    height: fit-content;
    padding: 5px 10px;
    text-align: right;
    margin: 5px;
    margin-top: 1px;
    margin-bottom: 5px;
}

#reset-all {
    background-color: #F5F7D4;
    font-size: inherit;

}

.description {
	font-size: 12px;
	line-height: 18px;
	color: #ffffbe;
	padding: 5px 0 15px 0;
}
a {
  color: inherit; /* Inherit the color from the parent element */
  text-decoration: none; /* Remove the default underline */
}

a:hover {
  text-decoration: underline; /* Show underline on hover */
}

.tab-container {
    border: 1px solid #ccc;
    width: fit-content;
}

.tab-headers {
    background-color: #F5F7D4;
    overflow: auto;
}

.tab-button, .nested-tab-button {
    background-color: inherit;
/*    float: left*/
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
    font-size: 14px;
}

.tab-button:hover, .nested-tab-button:hover {
    background-color: #F3F9A4;
}

.tab-button.active, .nested-tab-button.active {
    background-color: #E4F132;
}

.tab-content, .nested-tab-content {
    display: none;
    padding: 0px;
    border-top: 1px solid #ccc;
}

.tab-content.active, .nested-tab-content.active {
    display: block;
}

.nested-tab-container {
    border: 1px solid #eee;
    margin-top: 10px;
}

.nested-tab-headers {
    background-color: #F5F7D4;
    overflow: auto;
}

.table-scroll-container {
    overflow-x: auto;
}

table {
    width: auto;
    border-collapse: collapse;
    width: 100%; /* Allows the table to shrink if container is smaller */
    min-width: max-content; /* Allows table to grow to fit content if possible, but overflow will kick in */
    border-collapse: collapse;

}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    background-color: white;
   text-align: center;
    white-space: nowrap; /* Prevent text wrapping in columns */
}

th {
    background-color: #A9E82C;
}


.fixed-col,
td:nth-child(1) /* Target the first data column */
{
    position: sticky;
    left: 0;
    background-color: white; /* Ensure background covers when scrolling */
    z-index: 2; /* Higher z-index to stay above the scrolling content */
}

  .better {
    color: darkgreen;
  }
  .worse {
    color: darkred;
  }

.completed {
    background-color: bisque;
}

.projection {
    background-color: #F5F7D4;
}

.editDiff {
	font-family: Tahoma, Geneva, sans-serif;
	font-size: 12px;   
}
  
.popbox {
	position: absolute;
	left:50%;
	top:100%;
	padding:10;
	width: calc(100%-5px);
	layer-background-color:#505555;
	background-color:#FFF;
	z-Index:20;
	height: auto;
	border-width: 6px;
	border-color: #3C3;
	border-style: solid;
	border-radius: 15px;
	font-family: Arial, Helvetica, sans-serif;
}

        /* Style for the header within the preview box */
        .popbox h2 {
            margin-top: 0; /* Often, browsers add top margin to H tags; remove it if you want to control it */
            margin-bottom: 15px; /* Adds space below the header */
            margin-right: 15px; /* Adds space below the header */
            margin-left: 15px; /* Adds space below the header */
            color: #333;
            font-size: 20px; /* Example size */
            line-height: 1.2;
        }

        /* Style for paragraphs within the preview box */
        .popbox p {
            margin-top: 0; /* Often, browsers add top margin to P tags; remove it if you want to control it */
            margin-bottom: 10px; /* Adds space below each paragraph */
            margin-right: 15px; /* Adds space below the header */
            margin-left: 15px; /* Adds space below the header */
            line-height: 1.5; /* Improves readability for text */
            color: #555;
        }


#points_edit_pop th,
#points_edit_pop td {
    border: none;
    border-bottom: 1px solid #ddd;
}



.edit_input {
    border: none;
  outline: none;
    width: 3em;
    font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  font-style: inherit;
  border-bottom-style: dotted;
    border-bottom-width: thin;
    border-bottom-color: black;
}

.edit_input:focus {
  box-shadow: 0 0 5px blue;
}




.pos {
 /* font-size: smaller;*/
  color: darkgreen;
}
.neg {
/*  font-size: smaller;*/
  color: darkred;
}
/* Styles for the preview popup content box */
       /* Styles for the preview overlay - now handles specific positioning */
        .preview-overlay {
            display: none; /* Hidden by default */
            position: absolute; /* Allows precise positioning relative to its nearest positioned ancestor, or body if none */
            z-index: 1000; /* Sit on top */
        }

        /* Styles for the preview content box */
        .preview-content {
            background-color: #fefefe;
            padding: 20px;
 /*           border: 1px solid #888;
 /*           width: 350px; /* Approximately 350px wide */
 /*           box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19); */
            border-radius: 8px;
            position: absolute; /* Important: Make it absolutely positioned within the document */
            max-height: 80vh; /* Limit height to prevent overflow on small screens */
            overflow-y: auto; /* Add scroll if content exceeds max-height */
   /*         box-sizing: border-box; /* Ensure padding and border are included in the 350px width */
        }

        /* Styles for the close button */
        .preview-close-button {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
            line-height: 20px; /* Adjust line height to center 'x' vertically */
        }

        .preview-close-button:hover,
        .preview-close-button:focus {
            color: black;
            text-decoration: none;
            cursor: pointer;
        }

        /* Styles for the heading and paragraphs */
        .preview-content h1 {
            margin-top: 0;
            color: #333;
            font-size: 24px;
            margin-bottom: 15px;
        }

        .preview-content p {
            font-size: 16px;
            line-height: 1.5;
            color: #555;
            margin-bottom: 10px;
        }

        .preview-content p:last-child {
            margin-bottom: 0; /* No bottom margin for the last paragraph */
        }

        /* Highlight the clickable TD for demonstration */
        .clickable-td {
            cursor: pointer;
 
        }

       