/* Style for single entry */
.entry-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: white;
	z-index: 9999;
	/* overflow-y: auto; */
	padding-top: 50px;
}

.entry-modal-header {
	background: #fff;
	padding: 0 25px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #ddd;
	flex-shrink: 0;
	z-index: 10;
}

.entry-modal-header h2 {
	margin: 0 !important;
	font-size: 1.25rem !important;
	color: #333 !important;
	font-weight: 600 !important;
}

.close-modal {
	font-size: 1.4rem !important;
	color: #666 !important;
	cursor: pointer !important;
	background: none !important;
	border: none;
	padding: 0 5px !important;
	opacity: 0.7;
}

.gravity-modal-content-wrapper {
	flex: 1;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	padding: 0;
}

.gravity-modal-top-header {
	padding: 12px 25px;
	background-color: #f8f9fa;
	border-bottom: 1px solid #e0e0e0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.9em;
	color: #555;
	flex-wrap: wrap;
	gap: 10px;
}

.gravity-modal-controls-bar {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 15px 25px;
	background-color: #f0f0f1;
	border-bottom: 1px solid #ddd;
	flex-wrap: wrap;
}

.gravity-single-entry-container {
	display: flex;
	flex: 1;
	overflow: hidden;
}

/* Style for tab section */
.gravity-entry-tabs-layout {
	display: flex;
	min-height: 100vh;
}

.gravity-entry-tabs-list {
	padding: 20px 0;
	margin: 0;
	border-right: 1px solid #ddd;
	display: flex;
	flex-direction: column;
	background-color: #f8f9fa;
	width: 240px;
	flex-shrink: 0;
	overflow-y: auto;
	z-index: 1;
	font-size: 15px;
}



.tab-list-item {
	padding: 12px 15px;
	cursor: pointer;
	border-left: 4px solid transparent;
	transition: all 0.3s;
	margin-bottom: 5px;
	font-weight: 400;
	background: #f9f9f9;
	border-radius: 4px;
	color: #495057;
}

.tab-list-item:hover {
	color: #0056b3;
	background-color: #e9ecef;
	border-left-color: #dee2e6;
}

.tab-list-item.active {
	color: #007bff;
	border-left-color: #007bff;
	background-color: #fff;
	font-weight: 600;
}

.gravity-entry-tab-content-area {
	flex: 1;
}

.gravity-tab-content {
	display: none;
	overflow-x: hidden;
	overflow-y: scroll;
	position: fixed;
	height: -webkit-fill-available;
	width: -webkit-fill-available;
}

.gravity-tab-content.active {
	display: block;
	border: 1px solid #ccc;
	border: none;
	padding: 1rem;
	background-color: #fff;

}

.grid-2-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
}

.single-col-compact,
.eligibility-questions,
.other-layout,
.notes-layout {
	display: block;
	gap: 10px;
}


.form-tab-section h3 {
	margin-top: 30px;
	padding-bottom: 10px;
	border-bottom: 2px solid #dee2e6;
}

.field-block {
	margin-bottom: 15px;
}

.field-label {
	font-size: large;
	color: #6c757d;
	margin-bottom: 4px;
	display: block;
	text-transform: capitalize;
	font-weight: bold;
	letter-spacing: 0.5px;
}

.sub-field-label strong {
	color: #212529;
	/* Pure black */
	font-weight: bolder;
}

.field-value {
	font-size: 1rem;
	color: #212529;
	padding: 4px 0;
	min-height: 1.3em;
	font-weight: 500;
	word-wrap: break-word;
	line-height: 1.5;
}

.sub-field-value {
	font-size: 1rem;
	color: #212529;
	padding: 4px 0;
	min-height: 1.3em;
	font-weight: 500;
	word-wrap: break-word;
	line-height: 1.5;
}


/* Style for note tab */
.gravity-notes-section-tab {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 40px;
	padding: 25px 35px;
}

.gravity-notes-history-container h4 {
	margin-top: 0;
	margin-bottom: 15px;
	font-size: 1.2rem;
	color: #333;
	font-weight: 600;
}

.gravity-notes-history {
	max-height: 450px;
	overflow-y: auto;
	background-color: #fdfdfd;
	border: 1px solid #e9ecef;
	padding: 20px;
	border-radius: 5px;
}

.gravity-note-item {
	border-bottom: 1px solid #eee;
	padding-bottom: 12px;
	margin-bottom: 12px;
	padding: 15px;
	background: #f8f9fa;
	border-radius: 4px;
	border-left: 3px solid #2271b1;
}

.gravity-note-content {
	font-size: 0.95rem;
	line-height: 1.6;
	margin-bottom: 6px;
	color: #343a40;
	white-space: pre-wrap;
}

.gravity-note-meta {
	font-size: 0.8rem;
	color: #6c757d;
}

.gravity-note-author {
	font-weight: 500;
}

.gravity-note-edit-btn {
	background-color: #17a2b8 !important;
	font-size: 15px !important;
	padding: 5px 8px !important;
	cursor: pointer !important;
	text-transform: none !important;
	border: none;
	border-radius: 6px;
    margin-right: 6px;
	margin-top: 10px;
}

.gravity-note-delete-btn {
	background: red !important;
	font-size: 15px !important;
	padding: 5px 8px !important;
	cursor: pointer !important;
	text-transform: none !important;
	border-radius: 6px;
	border: none;
}

.gravity-note-delete-btn:hover,
.gravity-note-edit-btn:hover {
	background-color: black !important;
}

.note-save-btn {
	padding: 10px !important;
	background-color: #17a2b8 !important;
}

.note-cancel-btn {
	padding: 10px !important;
	background-color: red !important;
}

.gravity-note-input-area {
	display: flex;
	flex-direction: column;
}

.gravity-note-input-area h4 {
	margin-top: 0;
	margin-bottom: 15px;
	font-size: 1.2rem;
	color: #333;
	font-weight: 600;
}

.gravity-note-input-area textarea {
	width: 100%;
	min-height: 180px;
	padding: 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	margin-bottom: 10px;
	font-size: 0.95rem;
	line-height: 1.5;
}

.gravity-note-input-area .gravity-add-note-button {
	align-self: flex-end;
	padding: 8px 18px !important;
	background-color: #17a2b8 !important;
	color: white !important;
	border-color: #17a2b8 !important;
	font-weight: 500;
	letter-spacing: 2px;
	text-transform: uppercase;
	line-height: 14px;
	cursor: pointer;
}

.gravity-note-input-area .gravity-add-note-button:hover {
background-color: #138496 !important;
    border-color: #117a8b !important;
}

/* Style for PDF upload  */
#upload-pdf-btn {
	background-color: #28a745 !important;
	font-size: 0.85rem !important;
	padding: 6px 12px !important;
	border-radius: 4px !important;
	text-decoration: none !important;
	cursor: pointer !important;
	border: 1px solid transparent !important;
	line-height: 1.5 !important;
	font-weight: 500 !important;
	white-space: nowrap;
	color: white !important;
	letter-spacing: 2px;
	text-transform: uppercase;
}

#upload-pdf-btn:hover {
	    background-color: #218838 !important;
    border-color: #1e7e34 !important;
}

#view-pdf-btn {
	font-size: 0.85rem !important;
	padding: 6px 12px !important;
	border-radius: 4px !important;
	text-decoration: none !important;
	cursor: pointer !important;
	border: 1px solid transparent !important;
	line-height: 1.5 !important;
	font-weight: 500 !important;
	white-space: nowrap;
	background-color: #28a745 !important;
	text-transform: none;
	font-style: normal;
}

#remove-pdf-btn {
	font-size: 0.85rem !important;
	padding: 6px 12px !important;
	border-radius: 4px !important;
	text-decoration: none !important;
	cursor: pointer !important;
	border: 1px solid transparent !important;
	line-height: 1.5 !important;
	font-weight: 500 !important;
	white-space: nowrap;
	background-color: red !important;
}

.gravity-modal-controls-bar {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 15px 25px;
	background-color: #f0f0f1;
	border-bottom: 1px solid #ddd;
	flex-wrap: wrap;
}

.control-group {
	display: flex;
	align-items: center;
	gap: 8px;
}


.gravity-modal-controls-bar label {
	font-weight: 500;
	font-size: 0.9em;
	color: #444;

	display: inline-block;
	line-height: 1;
	vertical-align: middle;
}

.gravity-modal-controls-bar select {
	padding: 5px 8px;
	border: 1px solid #ccc;
	border-radius: 3px;
	min-width: 180px;
	font-size: 0.9em;
	background-color: #fff;
}

.gravity-application-no-field {
	font-weight: 550;
	color: black;
}

.gravity-save-entry-changes-modal {
	margin-left: auto;
	padding: 8px 18px !important;
	background-color: #007bff !important;
	color: white !important;
	border-color: #007bff !important;
	font-size: 15px !important;
	text-transform: uppercase;
	letter-spacing: 2px;
	cursor: pointer;
	height: -webkit-fill-available;
}

.gravity-save-entry-changes-modal:hover {
	background-color: #0069d9 !important;
    border-color: #0062cc !important;
}

.gravity-delete-entry-modal {
	font-size: 15px !important;
	padding: 8px 16px !important;
	border-radius: 4px !important;
	text-decoration: none !important;
	cursor: pointer !important;
	border: 1px solid transparent !important;
	line-height: 1.5 !important;
	white-space: nowrap;
	background-color: red !important;
	color: white !important;
	text-transform: uppercase;
	letter-spacing: 2px;
}

.gravity-delete-entry-modal:hover {
	background-color: black !important;
}

/* Fullscreen overlay */
.gravity-entry-modal-overlay {
	position: fixed !important;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 99999 !important; /* Higher than any other component */
}

/* Modal body styling */
.gravity-entry-modal-body {
	background: #fff;
	padding: 30px;
	border-radius: 8px;
	width: 90%;
	max-width: 400px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.3);
	text-align: center;
	position: relative;
	z-index: 100000; /* Ensure it's above background */
}

#confirm-delete-btn {
	padding: 18px 26px !important;
	color: white !important;
	background-color: red !important;
	font-size: 0.9rem !important;
	margin-left: 10px;
}

#cancel-delete-btn {
	padding: 18px 26px !important;
	background-color: #007bff;
	color: white !important;
	border-color: #007bff !important;
	font-size: 0.9rem !important;
	margin-left: 10px;
}

#cancel-delete-x-btn{
	background-color: #fff !important;
	color: black;
	margin-left: 80%;
	margin-top: -42px !important;

}
/* Zooming passport photo */
.image-zoom-modal-overlay {
	display: none;
	position: fixed;
	z-index: 9999;
	padding-top: 50px;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.7);
}

.modal-zoom-content {
	margin: auto;
	display: block;
	max-width: 90%;
	max-height: 90vh;
	margin-top: 50px;
}

.close-zoom-modal {
	position: absolute;
	top: 72px;
	right: 102px;
	color: #f1f1f1;
	font-size: 40px;
	font-weight: bold;
	transition: 0.3s;
	cursor: pointer;
}

.close-zoom-modal:hover,
.close-zoom-modal:focus {
	color: #bbb;
	text-decoration: none;
}

.modal-save-status{
	width: 100%;
}

.gravity-notice-success {
	background-color: #d1fae5;
	border: 1px solid #34d399;
	color: #065f46;
	padding: 15px 20px;
	margin: 15px 0;
	border-radius: 4px;
	font-size: 14px;
	position: relative;
	width: 100%;
}

.gravity-notice-error{
	background-color: white;
	border: 1px solid red;
	color: red;
	padding: 15px 20px;
	margin: 15px 0;
	border-radius: 4px;
	font-size: 14px;
	position: relative;
	width: 100%;
}

.gravity-modal-controls-bar label {
	width: 100%;
}

.tab-section h3 {
	font-size: 24px !important;
	color: #0C1431;
	font-weight: 600;

}

.gravity-entry-tabs-layout {
	font-family: inter, sans-serif !important;
}

.back-button {
	    background-color: #007bff !important;
    color: white !important;
    border-color: #007bff !important;
    font-size: 15px !important;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.back-button:hover {
background-color: #0069d9 !important;
    border-color: #0062cc !important;
}

/* Style for Back Button */
#shortcode-back-button {
	cursor: pointer !important;
	line-height: 1.5 !important;
	font-weight: 500 !important;
	white-space: nowrap !important;
	padding: 8px 18px !important;
	background-color: #007BFE !important;
	margin: 9px !important;
	color: white !important;
	border: none !important;
}



/* single page open when click on icon  */

.post-159715 .page-content {
	    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    overflow: hidden;
	padding-top: 50px;
}

#view-pdf-btn,
#remove-pdf-btn { 
	color: white !important;
}

#view-pdf-btn:hover {
	background-color: #218838 !important;
    border-color: #1e7e34 !important;
}

#remove-pdf-btn {
	text-transform: uppercase;
	letter-spacing: 2px;
}

body.page-id-2729 {
	overflow-y: hidden;
}

.gravity-modal-top-header .orderinfomodal {
	display: flex;
	gap: 12px;
}

.gravity-modal-controls-bar .application-no-wrapper {
	display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.gravity-modal-controls-bar .application-no-by-emp-field {
	display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 7px;
}

.gravity-modal-controls-bar .application-no-by-emp-input {
	width: 130px;
    padding-left: 10px;
    height: 32px;
    border: none;
}

.gravity-modal-controls-bar .close-application-tb {
	color: red;
}

.gravity-modal-controls-bar .expiration-date-field{
	display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 7px;
}

.gravity-modal-controls-bar .expiration-date-input {
	width: 150px;
    padding-left: 10px;
    height: 32px;
    border: none;
}

.gravity-modal-controls-bar .close-expiration-tb {
	color: red;
}

.gravity-modal-controls-bar .edit-expiration-date-icon {
	color: #007bff;
}

#send-rejected-mail-btn {
	margin-top: 10px;
	background: #2271b1;
	color: white;
	border: none;
	font-weight: 500;
	width: 250px;
    padding: 15px;
}

#send-approved-mail-btn {
	/* margin-top: 10px; */
	background: #2271b1;
	color: white;
	border: none;
	font-weight: 500;
	/* width: 250px; */
	padding: 6px 12px;
	line-height: 1.5;
}

.header-row-2{
	display: flex;
	gap: 11px;
}

@media only screen and (max-width: 655px) {
	.header-row-2 {
		flex-direction: column;
	}
}

.header-row-2 button{
	height: fit-content;
}

.selfie-upload-img {
	max-width: 150px;
	height: 200px !important;
	border-radius: 10px;
	margin-bottom: 5px;
	display: block;
	object-fit: cover;
	cursor: pointer;
}

.passport-upload-img {
	max-width: 300px;
	height: 300px !important;
	margin-bottom: 5px;
	cursor: pointer;
}

.field-value-radio label {
	display: inline-flex;
	align-items: center;
	margin-right: 15px;
	font-weight: normal;
}

.field-value-radio input[type="radio"] {
	margin-right: 5px;
}

.field-value-radio .yes-color {
	color: red;
	font-weight: bold;
}

.field-value-radio .no-color {
	color: orange;
	font-weight: bold;
}

@media only screen and (min-width:991px) {
	.gravity-entry-tabs-list {
		position: fixed;
		height: -webkit-fill-available;
		overflow-y: auto;
	}
	
	.gravity-entry-tab-content-area {
		margin-left: 240px;
	}
}

@media only screen and (max-width: 575px) {
	.gravity-modal-controls-bar .control-group:has(span) {
		width: 100%;
	}
}

@media screen and (max-width: 768px) {
    .gravity-entry-tabs-layout {
        flex-direction: column;
    }

    .gravity-entry-tabs-list {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ddd;
        display: flex;
		flex-direction: row;
        overflow-x: auto; 
    }

    .gravity-entry-tab-content-area {
        width: 100%;
        padding-left: 0;
    }

    .tab-list-item {
        white-space: nowrap;
        padding: 10px 15px;
    }
	
	/* .gravity-modal-top-header .orderinfomodal {
	display: flex;
    gap: 12px;
    /* margin-top: 11px; 
  } */
	
	#modal-save-btn {
		margin-left: 0;
	} 
}

@media only screen and (max-width:991px) {
	.entry-modal-header {
		    display: flex;
			justify-content: space-between;
			flex-direction: column-reverse;
		    text-align: center;
        	gap: 10px;
	}
	
	.field-label {
		font-size: 16px;
	}
	
	.field-value {
		font-size: 14px;
	}
	
	.entry-modal-header h2 {
		margin-bottom: 18px !important;
	}
	
	.entry-modal-header p {
		    width: 100%;
			justify-content: flex-end;
			display: flex;
			align-items: flex-end;
	}
	
	.entry-modal-overlay {
    overflow-y: auto;
  }

  .modal-dialog {
    height: auto;
  }
	
	.gravity-tab-content {
		position: absolute;
		height: 100%;
	}
	
	#close-entry-modal {
		width: 100%;
		display: flex;
		justify-content: flex-end;
	}
	
	#shortcode-back-button {
		display: flex;
		align-self: end;
	}
	
	.post-2729 .page-content {
		overflow-y: auto !important;
	}
}

@media only screen and (max-width: 575px) {
	.grid-2-col {
    display: grid;
    grid-template-columns: 1fr;
	}
}