* { 
	margin: 0; 
	padding: 0; 
	box-sizing: border-box; 
}
body { 
	font-family: Calibri, Arial, verdana;
	font-size: 12px;
	line-height: 1.66666667;
	margin: 10px;
	/* margin: auto; */
	display: flex; 
	flex-direction: column; 
	height: calc(100vh - 30px);
	background-color: #ebf1fb; 
}

#SalCar, #SalFuel{

    margin-left: 5%;
}

#AllowanceTypeCar, #AllowanceTypeFuel{

    margin-left: 55%;
}
.full-width-div {
	width: 100%;
	margin: 5px 0; /* 5px spacing at the top and bottom */
	background-color: lightgray; /* Just for visibility */
	text-align: center;
	padding: 5px 0; /* Adjust vertical padding */
}

.full-width-div h1 {
	font-size: 10px; /* Set heading height */
	margin: 0; /* Remove default margin */
	line-height: 10px; /* Ensure it takes exactly 10px height */
}

.container {
    max-width: 90%;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: auto;
}
h2 {
	text-align:left;
	margin-bottom: 20px;
}
select{

	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
}
h3 {
	background: #ebf1fb;
    color: #007bff;
    font-weight: bold;
    height: 45px;
    font-size: large;
    border-style: none;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    align-content: center;
}
textarea{

	border: 1px solid #ccc;
	border-radius: 4px;
	color: black;

}
	/* Top Navigation */
	.nav-header { display: flex; justify-content: space-between; align-items: center; background: #007bff;	color: white; padding: 5px 10px; }
	.nav-header a { color: white; text-decoration: none; font-weight: bold; }
	.nav-title { font-size: 1.25em; flex-grow: 1; text-align: center;font-weight: bold;  }
	.nav-user { font-weight: bold; }

	.nav {
		display: flex;
		justify-content: center;
		background: white;
		padding: 10px;
		border-radius: 8px;
		box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
		margin-bottom: 10px;
	}

	.nav ul {
		list-style: none; /* Remove default bullet points */
		padding: 0;
		display: flex; /* Make items flex (horizontal) */
		justify-content: center; /* Center items horizontally */
	}

	.nav ul li {
		margin-right: 20px; /* Adds spacing between items */
		color: #0078D4;
		font-weight: bold;
		height: 40px;
		font-size: large;
	}

	.nav ul li a {
	text-decoration: none;
    display: flex;
    width: 200px;
    height: 45px;
    justify-content: center;
    align-items: center;
    color: #535a62;
    padding-bottom: 5px;
	}

	.nav ul li a:hover {
		border-bottom: 2px solid #007bff;
		color: #007bff;
	}


	/* Success & Error Message */
	#toast-container {
		top: 50% !important;
		left: 50% !important;
		transform: translate(-50%, -50%) !important;
		position: fixed !important;
	}

	#toast-container > .toast {
		text-align: center;  /* Centers text inside the toast */
		justify-content: center; /* Centers content (for flex-based layouts) */
		align-items: center;
		display: flex; /* Makes sure content is centered properly */
	  }

	#errormessage {
		width: 100%;
		text-align: center; /* Centers inline content like text */
		display: flex; /* Enables centering for block elements */
		justify-content: center; /* Centers horizontally */
		align-items: center; /* Centers vertically (if height is set) */
	}

	/* Main Section */
	.main-container { display: flex; flex: 1; }
	.sidebar { 
		width: 250px;     
		background: #1081c526;
		padding: 20px;
		border-radius: 8px;
		box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
		margin-bottom: 15px;
	} 
	.sidebar ul { list-style: none; padding: 0; }
	.sidebar ul li 
	{
	    padding: 10px;
    	cursor: pointer;
    	font-size: medium;
    	color: #535a62;
    	font-weight: bold;
		text-align: center;
	}
	/*.sidebar ul li:hover { 
		background-color: #0078D4;
		color: white; 
	  }
		*/
	.sidebar ul li.active 
	{ 
		border-bottom: 3px solid #007bff;
    	color: #007bff;
	}
	.content { 
		flex: 1; 
		padding: 20px; 
		overflow-y: auto; 
		background-color: white; 
		border-radius: 8px;
		box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
		margin-left: 5px; 
		margin-bottom: 15px;
		font-size: larger;
		font-weight: bold;
		color: #535a62;
	}
	.data 
	{ 
		width: 250px;
		background:white;
		color: black;
		padding: 20px;
		border-radius: 8px;
		box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
		margin-left: 5px;
		margin-bottom: 15px;
	}

/* Bottom Navigation */
.bottom-nav { background: rgba(0, 130, 203, 0.8); color: white; text-align: center; padding: 10px; }

/* Footer */
.footer {
	background-color: #1081c526;
    color: black;
    text-align: center;
    padding: 10px;
	margin-top: 10px;
	display: none;
}
form{
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
select, label, input, textarea{

	color: #535a62;
}
.form-group {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 10px;
	margin-bottom: 15px;
	align-items: center;
}

.form-group-dependants, .form-group-enddates {
    display: grid;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
}

input {
	width: 100%;
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
}
.required::after {
	content: " *";
	color: red;
}
table {
	width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
th, td {
	padding: 10px;
	text-align: left;
}
th {
	
	color: #535a62;
	text-decoration: underline;
}

@media screen and (min-width: 1600px) {

   #submitButton{

	margin-right: 50vw !important;
   }

}

#fetchButton{

	padding: 12px 20px;
    color: white;
    border: none;
    cursor: pointer;
	background: linear-gradient(to right, #007bff, #0078D4, #0041c2);
    border-radius: 8px;
	margin-left: 20px;

}

#dependants{

	padding: 0 20px 20px 20px !important;
	border-radius: 0;
    box-shadow: none;
}
#submitButton{

	margin-right: 35vw;
}
button {
	padding: 12px 20px;
    color: white;
    border: none;
    cursor: pointer;
    background: linear-gradient(to right, #28a745, #218838);
    border-radius: 8px;
}
button:hover {
	background: #218838;
}
/* Modal Styles */
.modal {
	display: none;
	position: fixed;
	z-index: 1;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.4);
	justify-content: center;
	align-items: center;
}
.modal-content {
	background: white;
	padding: 20px;
	border-radius: 8px;
	width: 400px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
	text-align: center;
}
.modal input {
	width: 90%;
	padding: 8px;
	margin-bottom: 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
}
.modal-content input,
.modal-content select {
    width: 100%; /* Make them the same width */
    padding: 10px; /* Uniform padding top and bottom */
    margin: 5px 0; /* Add some spacing */
    border: 1px solid #ccc; /* Optional: for a consistent look */
    border-radius: 5px; /* Optional: for rounded edges */
    box-sizing: border-box; /* Ensures padding doesn’t affect width */
    font-size: 16px; /* Consistent font size */
}
.close {
	color: red;
	float: right;
	font-size: 20px;
	cursor: pointer;
}
.close:hover {
	color: darkred;
}

#Emergency_Contact_Information{
	padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
    height: 73vh;
}

.radio-form-group label {
	white-space: nowrap; /* Prevents label from wrapping */
	font-weight: bold; /* Optional: Makes the label stand out */
	margin-bottom: auto;
}

.radio-grid {
	display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px 5px;
    align-content: center;
    justify-content: center;
    align-items: center;
    justify-items: start;

}

.radio-grid label {
	display: flex;
	align-items: center;
	gap: 5px; /* Space between radio button and text */
}

/* Spinner styling */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #fff;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    display: inline-block;
    animation: spin 1s linear infinite;
    margin-right: 5px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.form-container-leave {
	display: flex;
	flex-wrap: wrap;
	gap: 20px; /* Adjust spacing between columns */
}

.form-container-leave-top {
	margin-bottom: 15px;
	background-color: lightsteelblue;
}


.form-group-leave {
    flex: 1 1 calc(50% - 10px); /* Each field takes 50% width minus spacing */
    display: flex;
    flex-direction: row; /* Align items in a row */
    align-items: center; /* Align vertically */
    gap: 10px; /* Add some spacing between label and input */
}

.form-group-leave label {
    font-weight: bold;
    white-space: nowrap; /* Prevents label from breaking into multiple lines */
    width: 120px; /* Adjust width as needed */
}

.form-group-leave input {
    flex: 1; /* Allow input to take up remaining space */
    padding: 8px;
    box-sizing: border-box;
    width: 100%;
}

.form-container-leave {
    display: flex;
    flex-wrap: wrap; /* Ensures responsiveness */
    gap: 15px; /* Space between form groups */
}

/* Pension Form */
.pen-custom-dropdown {
	position: relative;
	width: 250px;
	cursor: pointer;
	border: 1px solid #ccc;
	border-radius: 5px;
	background: #fff;
	padding: 10px;
	font-size: 16px;
}

.pen-dropdown-selected {
	padding: 10px;
	background: #f9f9f9;
	border-radius: 5px;
}

.pen-dropdown-options {
	display: none; /* Initially hidden */
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	border: 1px solid #ccc;
	background: white;
	box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
	z-index: 10;
}

.pen-dropdown-options label {
	display: block;
	padding: 10px;
	cursor: pointer;
}

.pen-dropdown-options label:hover {
	background: #eee;
}

/* Hide actual radio buttons */
.pen-dropdown-options input[type="radio"] {
	display: none;
}

.row{
    display: inline-block;
    width: 100%;
    margin-bottom: 5px;
    /* margin-top: 5px; */
    padding-top: 10px;
}

.col1{
    width:49%;
    float:left;
    padding-top: 5px;
}

.col2{
    width:49%;
    float:right;
}

.col1 label, .col2 label{
    line-height: 40px;
    /* margin-left: 10%; */

}

.col1 input, .col2 input, .col1 select, .col2 select {
    float: right;
    width: 60%;
    height: 40px;
    margin: 0;
    margin-right: 15%;
    padding: 0 !important;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #535a62;
}

.t-row {
    display: inline-block;
    width: 98%;
    margin-top: 20px;
    margin-bottom: 10px;
	margin-right: 15%;
    padding: 10px;
    
}
.t-row textarea{
	float: right;
    margin-top: 10px;
    width: 98%;
    height: 100px;
    margin-left: 27%;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #535a62;
}
#info{
    height: 6vh;
    padding: 1% 0px 1% 0;
    
    border-bottom: 10px white solid;
}

#info input{
    background: #ffffff;
    font-size: 1.2 em;
    font-weight: bold;
}

#EndDateValueContainer {
    display: flex;
    flex-wrap: wrap;
    margin: 20px auto;
    gap: 10px;
	border: solid 2px navy;
	background-color: #1081c526;
	padding: 10px;
	border-radius: 8px;
}

#EndDateValueContainer .row {
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
}

#EndDateValueContainer .col {
    display: flex;
    flex-direction: column;
    flex: 1;
}

#EndDateValueContainer label {
    font-weight: bold;
    margin-bottom: 5px;
}

#EndDateValueContainer input[type="date"] {
    padding: 5px;
    width: 100%;
}

.form-group-end-date-option {
    display: flex;
    align-items: center; /* Aligns items vertically in the center */
    gap: 10px; /* Adds space between elements */
}


.form-group-end-date-option input[type="select"] {
	max-width: 100px;
}

.form-group-end-date-option input[type="date"] {
	max-width: 300px;
}