@font-face {
	font-family: Roboto;
	src: url(fonts/Roboto-Regular.ttf);
}



body {
  background-color: #396da5;
  font-family: "Roboto", helvetica, arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  text-rendering: optimizeLegibility;

}

.cust-gradient {

      background: linear-gradient(135deg, #396da5, RebeccaPurple);
	  min-height: 100vh;
}

a {
  transition: color .4s;
  color: #D5DDE5;
}

a:link,
a:visited { color: #FAFAFA; }
a:hover   { color: #729EAF; }
a:active  {
  transition: color .3s;
  color: #007BE6;
}

a.OnWhite:link,
a.OnWhite:visited { color: #2f3947; }
a.OnWhite:hover   { color: #396da5;; }
a.OnWhite:active  {
  transition: color .3s;
  color: #007BE6;
}



.link { text-decoration: none; }	


input {

  font-size: 12px;
  font-family: "Roboto", helvetica, arial, sans-serif;
}

.fa-circle-check{
	color: #59ad00;
	font-size: 1.5em;
}

.fa-circle-xmark{
	color: red;
	font-size: 1.5em;
}

.fa-user{
    font-size: 1.5em;
}

.fa-file-pen{
	color: #eda644;
	
    font-size: 1.5em;
}


.fa-user-plus{
	color: #59ad00;
	text-shadow: 1px 1px 1px #ccc;
    font-size: 1.5em;
}

.fa-folder-plus{
	color: #f1c40f;
	text-shadow: 1px 1px 1px #ccc;
    font-size: 1.5em;
}

.fa-trash-can{
	color: #8b8992;
    font-size: 1.5em;
}



.DIV_header {
	width: 90%;
	font-size: 24px;
	color: #eaebed;
	margin: 0 auto
}

.DIV_header input {

	color: black;
}


.DIV_edit {
	
	margin: auto;
	padding: 10px;
	float: left;
}

.DIV_edit_icon {
	
	margin: auto;
	padding: 20px;
	float: right;
}

.DIV_searchfilter {
	float: left;
	margin-right: 40px
}


.myfieldset {
	margin-top: 15px;
	padding: 1em;
	border: 3px solid #396da5;
	background: #FFFFFF;
	color: #666B85;
	border-radius:8px;
	font-weight:normal;
	text-shadow: 0 1px 1px rgba(256, 256, 256, 0.1);

}

.myfieldset legend {
    width: 35%;
    background: #EBEBEB;
    color: #4a536e;
    padding: 5px 10px ;
    font-size: 14px;
	font-weight: bold;
    border-radius: 5px;
    box-shadow: 0 0 0 3px #396da5;
    margin-left: 20px;
}

.DIV_table_top {
	width: 90%;
	padding-left: 8px;
	padding-bottom: 5px;
	text-align: left;
	color: #fafafa;
	font-size: 20px;
	font-weight: 400;
	font-style:normal;
	font-family: "Roboto", helvetica, arial, sans-serif;
	text-shadow: -1px -1px 1px gray;
}


.table_edit {
  font-size: 12px;
  font-family: "Roboto", helvetica, arial, sans-serif;

  border: 1;
  
}

.table_edit td {
	text-align: left;
	  padding: 15px;
}

.table_hist {
  background: white;
  border-radius:3px;
  border-collapse: collapse;
  padding:5px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.table_hist th {
  color:#D5DDE5;;
  background:#1b1e24;
  border-bottom:4px solid #9ea7af;
  border-right: 1px solid #343a45;
  font-size: 10px;
  font-weight: 550;
  padding: 2px;
  text-align: center;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  vertical-align:middle;

}

.table_hist tr {
  border-top: 1px solid #C1C3D1;
  border-bottom: 1px solid #C1C3D1;
  color:#666B85;
  font-size:16px;
  font-weight:normal;
  text-shadow: 0 1px 1px rgba(256, 256, 256, 0.1);
}

.table_hist tr:nth-child(odd) td {
  background:#EBEBEB;
}


.table_hist td {
  background:#FFFFFF;
  padding:4px;
  text-align: center;
  vertical-align:middle;
  font-weight:400;
  font-size:10px;
  text-shadow: -1px -1px 1px rgba(0, 0, 0, 0.1);
  border-right: 1px solid #C1C3D1;
}




/*** Table Styles **/

.table-fill {
  background: white;
  border-radius:3px;
  border-collapse: collapse;
  margin: auto;
  max-width: 90%;
  padding:5px;
  width: 100%;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  animation: float 5s infinite;
}
 
.table-fill th {
  color:#D5DDE5;;
  background:#1b1e24;
  border-bottom:4px solid #9ea7af;
  border-right: 1px solid #343a45;
  font-size: 14px;
  font-weight: bold;
  padding:20px;
  text-align: center;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  vertical-align:middle;
}

.table-fill th:first-child {
  border-top-left-radius:3px;
}
 
.table-fill th:last-child {
  border-top-right-radius:3px;
  border-right:none;
}
  
.table-fill tr {
  border-top: 1px solid #C1C3D1;
  border-bottom: 1px solid #C1C3D1;
  color:#666B85;
  font-size:16px;
  font-weight:normal;
  text-shadow: 0 1px 1px rgba(256, 256, 256, 0.1);
}

.table-fill a {
  color:#666B85;
}

.table-fill a:hover {
  color:#FFFFFF;
}
 
.table-fill tr:hover td {
  background:#4E5066;
  color:#FFFFFF;
  border-top: 1px solid #22262e;
  border-bottom: 1px solid #22262e;
  cursor: pointer;
}
 
.table-fill tr:first-child {
  border-top:none;
}

.table-fill tr:last-child {
  border-bottom:none;
}
 
.table-fill tr:nth-child(odd) td {
  background:#EBEBEB;
}
 
.table-fill tr:nth-child(odd):hover td {
  background:#4E5066;
}

.table-fill tr:last-child td:first-child {
  border-bottom-left-radius:3px;
}
 
.table-fill tr:last-child td:last-child {
  border-bottom-right-radius:3px;
}
 
.table-fill td {
  background:#FFFFFF;
  padding:20px;
  text-align: center;
  vertical-align:middle;
  font-weight:400;
  font-size:12px;
  text-shadow: -1px -1px 1px rgba(0, 0, 0, 0.1);
  border-right: 1px solid #C1C3D1;
}

.table-fill td:last-child {
  border-right: 0px;
}


.navtop {
  background-color: #2f3947;
  width: 100%;
  border: 0;
  padding: 10px 20px; /* flexible height */
  box-sizing: border-box;
}

.navtop div {
  display: flex;
  flex-wrap: wrap; /* ✅ allow wrapping on small screens */
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  max-width: 1000px; /* keeps content centered on large screens */
  width: 100%;
}

.navtop div h1, .navtop div a {
  display: inline-flex;
  align-items: center;
  margin: 5px 0; /* spacing when wrapped */
}

.navtop div h1 {
  flex: 1;
  font-size: 24px;
  padding: 0;
  margin: 0;
  color: #eaebed;
  font-weight: normal;
}

.navtop div a {
  padding: 5px 10px;
  text-decoration: none;
  color: #c1c4c8;
  font-weight: bold;
  white-space: nowrap; /* prevents link from breaking mid-word */
}

.navtop div a i {
  padding: 2px 8px 0 0;
}

.navtop div a:hover {
  color: #eaebed;
}

/* Small screen adjustments */
@media (max-width: 768px) {
  .navtop div {
    flex-direction: column; /* stack h1 + links */
    align-items: flex-start;
  }

  .navtop div a {
    padding: 5px 0;
  }
}



.myButton {
	box-shadow:inset 0px 1px 0px 0px #54a3f7;
	background:linear-gradient(to bottom, #007dc1 5%, #0061a7 100%);
	background-color:#007dc1;
	border-radius:3px;
	border:1px solid #124d77;
	display:inline-block;
	cursor:pointer;
	color:#ffffff;
	font-size:12px;
	font-weight:bold;
	padding:5px 20px;
	text-decoration:none;
	text-shadow:0px 1px 0px #154682;
}
.myButton:hover {
	background:linear-gradient(to bottom, #0061a7 5%, #007dc1 100%);
	background-color:#0061a7;
}
.myButton:active {
	position:relative;
	top:1px;
}


.modal-header {
	
  color: #D5DDE5;
  background: #1b1e24;
  border-radius:3px;
  border-bottom:4px solid #9ea7af;
  border-right: 1px solid #343a45;
  padding:10px;
  text-align: center;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  vertical-align:middle;

}

.modal-title {

  font-size: 18px;
  font-weight: bold;

}

.modal-body {
	background: #EBEBEB;
	width: 100%;
	/*height: 80%; */
	font-size: 12px;
	color: #666b85;
	float: left;

}


/* The Close Button */
.close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

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


.DIV_formfields {
	/*float: left;*/
	width: 50%; 
	padding: 5px;
}


.DIV_floatright {
	float: right;
	padding: 10px;
	clear: both;
	
}

.DIV_floatleft {
	float: left;
	padding: 10px;
	
}

.DIV_field_title {
	padding-bottom: 3px;
}

.ui-autocomplete {
	background: white;
	font-size: 12px;
}


/* to replace checkboxes with pills easier to use on touchscreens */
input[type=checkbox] {
	visibility: hidden;
}


.slide_CB {
	width: 80px;
	height: 26px;
	background: #1b1e24;
	margin-top: -4px;

	border-radius: 50px;
	position: relative;
}



/**
 * Create the text for the On position
 */
.slide_CB:before {
	content: 'Oui';
	position: absolute;
	top: 5px;
	left: 13px;
	height: 2px;
	color: white;
	font-size: 12px;
	font-weight: bold;
}

/**
 * Create the label for the off position
 */
.slide_CB:after {
	content: 'Non';
	position: absolute;
	top: 5px;
	left: 50px;
	height: 2px;
	color: white;
	font-size: 12px;
	font-weight: bold;
}

/**
 * Create the pill to click
 */
.slide_CB label {
	display: block;
	width: 30px;
	height: 18px;
	border-radius: 50px;

	transition: all .5s ease;
	cursor: pointer;
	position: absolute;
	top: 4px;
	z-index: 1;
	left: 7px;
	background: red;
}

/**
 * Create the checkbox event for the label
 */
.slide_CB input[type=checkbox]:checked + label {
	left: 45px;
	background: #59ad00;
	
}



/* display rules for mobiles */

@media screen and (max-width: 565px) and (min-width: 300px) {
	
	
		.priority-5{
			display:none;
		}
		
		input {
			font-size: 16px;
		}
		
		textarea {
			font-size: 16px;
		}
		
		
		.slide_CB {
			width: 120px;
			height: 40px;
			margin-top: -4px;

			border-radius: 50px;
			position: relative;
		}



		/**
		 * Create the text for the On position
		 */
		.slide_CB:before {
			content: 'Oui';
			position: absolute;
			top: 8px;
			left: 15px;
			height: 2px;
			font-size: 16px;

		}

		/**
		 * Create the label for the off position
		 */
		.slide_CB:after {
			content: 'Non';
			position: absolute;
			top: 8px;
			left: 76px;
			height: 2px;
			font-size: 16px;
		}

		/**
		 * Create the pill to click
		 */
		.slide_CB label {
			display: block;
			width: 50px;
			height: 25px;
			border-radius: 50px;

			transition: all .5s ease;
			cursor: pointer;
			position: absolute;
			top: 8px;
			z-index: 1;
			left: 12px;
			background: red;
		}

		/**
		 * Create the checkbox event for the label
		 */
		.slide_CB input[type=checkbox]:checked + label {
			left: 62px;
			background: #59ad00;
			
		}
		
	
}


* {
  	box-sizing: border-box;
  	font-family: -apple-system, BlinkMacSystemFont, "segoe ui", roboto, oxygen, ubuntu, cantarell, "fira sans", "droid sans", "helvetica neue", Arial, sans-serif;
  	font-size: 16px;
  	-webkit-font-smoothing: antialiased;
  	-moz-osx-font-smoothing: grayscale;
}

.login {
  	width: 400px;
  	background-color: #ffffff;
  	box-shadow: 0 0 9px 0 rgba(0, 0, 0, 0.3);
  	margin: 100px auto;
	border-radius: 6px;
}
.login h1 {
  	text-align: center;
  	color: #5b6574;
  	font-size: 24px;
  	padding: 20px 0 20px 0;
  	border-bottom: 1px solid #dee0e4;
}
.login form {
  	display: flex;
  	flex-wrap: wrap;
  	justify-content: center;
  	padding-top: 20px;
}
.login form label {
  	display: flex;
  	justify-content: center;
  	align-items: center;
  	width: 50px;
  	height: 50px;
  	background-color: #3274d6;
  	color: #ffffff;
	border-top-left-radius: 4px;
	border-bottom-left-radius: 4px;
	
}
.login form input[type="password"], .login form input[type="text"] {
  	width: 310px;
  	height: 50px;
  	border: 1px solid #dee0e4;
  	margin-bottom: 20px;
  	padding: 0 15px;
	border-radius: 4px;
	border-top-left-radius: 0px;
	border-bottom-left-radius: 0px;
}
.login form input[type="submit"] {
  	width: 100%;
  	padding: 15px;
 	margin-top: 20px;
  	background-color: #3274d6;
  	border: 0;
  	cursor: pointer;
  	font-weight: bold;
  	color: #ffffff;
  	transition: background-color 0.2s;
	border-bottom-right-radius: 6px;
	border-bottom-left-radius: 6px;
}

.loginButton  {
  	width: 100%;
  	padding: 15px;
 	margin-top: 20px;
  	background-color: #3274d6;
  	border: 0;
  	cursor: pointer;
  	font-weight: bold;
  	color: #ffffff;
  	transition: background-color 0.2s;
	border-bottom-right-radius: 6px;
	border-bottom-left-radius: 6px;
}

.login form input[type="submit"]:hover {
	background-color: #2868c7;
  	transition: background-color 0.2s;
}		

.loginButton:hover {
	background-color: #2868c7;
  	transition: background-color 0.2s;
}	


body.loggedin {
	/*background-color: #f3f4f7;*/
	background-color: #396da5;
}
.content {
	width: 1000px;
	margin: 0 auto;
}
.content h2 {
	margin: 0;
	padding: 25px 0;
	font-size: 22px;
	border-bottom: 1px solid #e0e0e3;
	color: #eaebed;
}
.content > p, .content > div {
	box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
	margin: 25px 0;
	padding: 25px;
	background-color: #fff;
}
/*
.content > p table td, .content > div table td {
	padding: 5px;
}
.content > p table td:first-child, .content > div table td:first-child {
	font-weight: bold;
	color: #4a536e;
	padding-right: 15px;
}
*/

.content > div p {
	padding: 5px;
	margin: 0 0 10px 0;
}

.login_error {
	color: #eaebed;
	text-align: center;
}

.demoInputBox{padding:7px; border:#F0F0F0 1px solid; border-radius:4px;}
#password-strength-status {padding: 5px 10px; border-radius: 4px; margin-top: 5px; font-weight: bold; display: block; min-width: 600px; margin-top: 5px;}
.medium-password{color: #E4DB11; border: #BBB418 1px solid; }
.weak-password{color: #FF6600; border: #AA4502 1px solid; }
.strong-password{color: #12CC1A; border: #0FA015 1px solid; }


/* DivTable.com */
.divTable{
	display: table;

}
.divTableRow {
	display: table-row;
}

.divTableCell, .divTableHead {
	border: 0px solid #999999;
	display: table-cell;
	padding: 3px 10px;
}
.divTableHeading {
	display: table-header-group;
	font-weight: bold;
}
.divTableFoot {
	background-color: #EEE;
	display: table-footer-group;
	font-weight: bold;
}
.divTableBody {
	display: table-row-group;
}


.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 140px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 150%;
  left: 50%;
  margin-left: -75px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}


/* ===== TABS ===== */
.tabs {
  display: flex;
  margin: 0px auto;
  width: 90%;
  background: #1b1e24;              /* dark background like your table headers */
  border-radius: 6px 6px 0 0;
  overflow: hidden;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.tab {
  flex: 1;
  padding: 10px 20px;
  text-align: center;
  cursor: pointer;
  color: #D5DDE5;                   /* light gray text */
  background: #1b1e24;              /* slightly lighter than navtop */
  border-right: 1px solid #343a45;
  font-family: "Roboto", helvetica, arial, sans-serif;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.tab:last-child {
  border-right: none;
}

.tab:hover {
  background: #4E5066;              /* blue hover accent */
  color: #ffffff;
}

.tab.active {
  background: #396da5;              /* strong blue active tab */
  color: #ffffff;
  border-bottom: 3px solid #59ad00; /* green accent like your success icons */
}

/* ===== TAB CONTENT ===== */
#tab-content {
  border: 1px solid #9ea7af;
  border-top: none;
  padding: 20px;
  background: #FFFFFF;
  border-radius: 0 0 6px 6px;
  width: 90%;
  margin: 0 auto;
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  color: #4a536e;
  font-size: 14px;
  font-family: "Roboto", helvetica, arial, sans-serif;
}


/* ============================= */
/* 📱 MOBILE ADAPTIVE STYLES     */
/* ============================= */

@media screen and (max-width: 900px) {

  /* Make tables scroll horizontally instead of overflowing */
  .table-fill, .table_hist {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
  }

  /* Reduce table padding */
  .table-fill td, .table-fill th,
  .table_hist td, .table_hist th {
    padding: 8px;
    font-size: 12px;
  }

  /* Stack header and nav links vertically */
  .navtop div {
    width: 100%;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: auto;
    padding: 10px 0;
  }

  .navtop div a {
    padding: 8px;
    font-size: 16px;
  }

  /* Center content and reduce fixed widths */
  .content, .login {
    width: 95%;
    margin: 20px auto;
  }

  /* Reduce spacing and font sizes for smaller screens */
  .DIV_header {
    font-size: 18px;
    width: 95%;
    text-align: center;
  }

  .DIV_edit, .DIV_edit_icon, .DIV_searchfilter {
    float: none;
    width: 100%;
    margin: 10px 0;
    text-align: center;
  }

  /* Tabs become stacked for easy tapping */
  .tabs {
    flex-direction: column;
    width: 100%;
  }

  .tab {
    border-right: none;
    border-bottom: 1px solid #343a45;
    padding: 12px;
    font-size: 16px;
  }

  #tab-content {
    width: 100%;
    padding: 15px;
  }

  /* Buttons and form inputs */
  input, textarea, select {
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .myButton, .loginButton {
    width: 100%;
    padding: 12px;
    font-size: 16px;
  }

  /* Modal adjustments */
  .modal-body {
    font-size: 14px;
    padding: 10px;
  }

  /* Better spacing for checkboxes and toggles */
  .slide_CB {
    width: 100px;
    height: 32px;
  }
  .slide_CB label {
    width: 36px;
    height: 20px;
  }

  /* Adjust text sizes globally */
  body {
    font-size: 15px;
  }

  h1, h2, h3 {
    font-size: calc(1em + 2vw);
  }

  /* Remove some float issues on divs */
  .DIV_floatright, .DIV_floatleft {
    float: none;
    width: 100%;
    text-align: center;
    padding: 5px 0;
  }
}

/* Even smaller screens (e.g. phones under 480px) */
@media screen and (max-width: 480px) {
  .tab {
    font-size: 14px;
    padding: 10px;
  }

  .login form label {
    width: 40px;
    height: 40px;
  }

  .login form input[type="password"], 
  .login form input[type="text"] {
    width: calc(100% - 40px);
    height: 40px;
  }

  .myfieldset legend {
    width: auto;
    font-size: 12px;
  }
}
