body {
  font-size: 12px;
}

/* Header Styles */
.page-header {
  background: linear-gradient(135deg, #007d22, #00a629, #00c726);
  color: white;
  padding: 15px; /* Reduced padding to make the header smaller */
  text-align: left;
  font-size: 15px;
  font-weight: normal;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.3);
  border-radius: 0px;
  margin-bottom: 20px;
}

/* Flex layout for filters */
.filter-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.filter-container select {
  width: 180px;
  height: 30px;
  font-size: 11px;
}

/* Styles for the Tools Icon */
.tools-icon {
  margin-left: 10px;
  color: #007bff;
  font-size: 20px;
  cursor: pointer;
  margin-right: 10px;
}

#tested-count, #passed-count, #failed-count {
  margin-top: 10px; /* Add spacing between the div elements */
}

div > strong {
  margin-right: 4px; /* Add a small space between the label and the value */
}

.badge-container {
  display: flex;
  gap: 10px;
}
.badge {
  display: inline-block;
  padding: 10px 20px;
  color: #fff;
  font-weight: bold;
  border-radius: 20px;
  font-size: 14px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.badge-tested {
  background-color: #007bff;
}
.badge-passed {
  background-color: #28a745;
}
.badge-failed {
  background-color: #dc3545;
}



.table-wrapper {
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: auto;
  width: 100%;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 8px;
  vertical-align: middle;
  border: 1px solid #dee2e6;
  white-space: nowrap;
}

th {
  font-size: 12px;
  background-color: #343a40 !important;
  color: white !important;
  position: sticky;
  top: 0;
  z-index: 1;
  font-weight: normal;
}

td {
  font-size: 11px;
}

/* Modal Styling */
.modal-lg {
  max-width: 70%; /* Increase modal width */
}

.nav-tabs {
  border-bottom: 2px solid #dee2e6;
  justify-content: flex-start;
  margin-bottom: 15px;
}

.nav-item .nav-link {
  padding: 10px 15px;
  font-size: 14px;
  border-radius: 1px;
  background-color: #f8f9fa;
  color: #007bff;
  transition: background-color 0.1s ease, color 0.1s ease;
}

.nav-item .nav-link.active {
  background-color: #007d22;
  color: white;
  border-color: #007d22;
}

.nav-item .nav-link:hover {
  background-color: #e2e6ea;
  color: #0056b3;
}

.tab-content {
  padding: 15px;
  border: 1px solid #dee2e6;
  border-top: none;
  max-height: 400px; /* Limit the height of the content area */
  overflow-y: auto; /* Enable vertical scrolling */
}

.modal-dialog {
  max-width: 80%; /* Adjust to fit within the screen */
  width: 100%; /* Ensure the modal takes the full width within the limit */
}

.modal-body {
  max-height: 60vh; /* Modal body will be at most 60% of the viewport height */
  overflow-y: auto; /* Enable vertical scrolling when content exceeds the modal height */
}

/* Responsive table inside the modal */
.table-responsive {
  width: 100%;
  overflow-x: auto; /* Allow horizontal scrolling for smaller screens */
}

/* Table layout for modal content */
.modal-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.modal-table th,
.modal-table td {
  padding: 8px;
  border: 1px solid #dee2e6;
  vertical-align: middle;
}

.modal-table th {
  background-color: #f8f9fa;
}

.modal-table td {
  background-color: white;
}

/* IT approval icons */
.it-approved-true {
  color: green;
}

.it-approved-false {
  color: red;
}

.it-approved-pending {
  color: orange;
}

.btn-close-custom {
  background: linear-gradient(135deg, #00a629, #007d22);
  color: white;
  border: none;
  padding: 6px 20px; /* Adjusted padding to make it proportional */
  border-radius: 3px;
  font-size: 14px; /* Slightly smaller font size */
  line-height: 1.5; /* Adjusted line height to make the text centered */
  cursor: pointer;
  width: 140px; /* Slightly wider to accommodate the text on one line */
  height: auto; /* Let height be adjusted dynamically */
  margin-top: 10px;
  margin-bottom: 10px;
  transition: background 0.3s ease;
  white-space: nowrap; /* Ensure the button text stays on one line */
  text-align: center; /* Center the text inside the button */
}

.btn-close-custom:hover {
  background: linear-gradient(135deg, #00a629, #007d22);
}

/* Footer Styles */
.page-footer {
  background-color: #f8f9fa;
  padding: 10px 20px;
  font-size: 10px;
  background-color: #343a40;
  color: #eaecee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0px -2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  width: 100%;
  bottom: 0;
}

.btn-update {
  background: linear-gradient(135deg, #00a629, #007d22);
  color: white;
  border: none;
  padding: 6px 20px; /* Adjusted padding to make it proportional */
  border-radius: 3px;
  font-size: 12px; /* Slightly smaller font size */
  line-height: 1.5; /* Adjusted line height to make the text centered */
  cursor: pointer;
  width: 170px; /* Slightly wider to accommodate the text on one line */
  height: auto; /* Let height be adjusted dynamically */
  margin-top: 10px;
  margin-bottom: 10px;
  transition: background 0.3s ease;
  white-space: nowrap; /* Ensure the button text stays on one line */
  text-align: center; /* Center the text inside the button */
}

.btn-update:hover {
  background: linear-gradient(135deg, #00a629, #007d22);
}

.btn-generateAuditReport {
  background: linear-gradient(135deg, #6b6f6c, #4a4e4b);
  color: white;
  border: none;
  padding: 6px 20px; /* Adjusted padding to make it proportional */
  border-radius: 3px;
  font-size: 12px; /* Slightly smaller font size */
  line-height: 1.5; /* Adjusted line height to make the text centered */
  cursor: pointer;
  width: 170px; /* Slightly wider to accommodate the text on one line */
  height: auto; /* Let height be adjusted dynamically */
  margin-top: 10px;
  margin-bottom: 10px;
  transition: background 0.3s ease;
  white-space: nowrap; /* Ensure the button text stays on one line */
  text-align: center; /* Center the text inside the button */
}

.btn-viewAuditReports {
  background: linear-gradient(135deg, #195283, #1a326a);
  color: white;
  border: none;
  padding: 6px 20px; /* Adjusted padding to make it proportional */
  border-radius: 3px;
  font-size: 12px; /* Slightly smaller font size */
  line-height: 1.5; /* Adjusted line height to make the text centered */
  cursor: pointer;
  width: 170px; /* Slightly wider to accommodate the text on one line */
  height: auto; /* Let height be adjusted dynamically */
  margin-top: 10px;
  margin-bottom: 10px;
  transition: background 0.3s ease;
  white-space: nowrap; /* Ensure the button text stays on one line */
  text-align: center; /* Center the text inside the button */
}

.btn-SubmitRecord {
  background: linear-gradient(135deg, #6b6f6c, #4a4e4b);
  color: white;
  border: none;
  padding: 6px 20px; /* Adjusted padding to make it proportional */
  border-radius: 3px;
  font-size: 12px; /* Slightly smaller font size */
  line-height: 1.5; /* Adjusted line height to make the text centered */
  cursor: pointer;
  width: 170px; /* Slightly wider to accommodate the text on one line */
  height: auto; /* Let height be adjusted dynamically */
  margin-top: 10px;
  margin-bottom: 10px;
  transition: background 0.3s ease;
  white-space: nowrap; /* Ensure the button text stays on one line */
  text-align: center; /* Center the text inside the button */
}

.btn-generateAuditReport:hover {
  background: linear-gradient(135deg, #474646, #6b6c6c);
}

.btn-viewAuditReports:hover {
  background: linear-gradient(135deg, #2e354e, #4960c8);
}

html,
body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.container-fluid {
  flex: 1; /* This makes the main content take the remaining space */
}

table td select {
  width: 100%; /* Ensures the dropdown takes the full width of the cell */
  height: 100%; /* Ensures the dropdown takes the full height of the cell */
  padding: 0; /* Removes extra padding around the dropdown */
  border: none; /* Removes any borders to blend it with the cell */
  background-color: transparent; /* To remove any background if needed */
  box-sizing: border-box; /* Ensures padding and borders are included in the element's total width and height */
}

.modal-table tbody tr:nth-child(odd) {
  background-color: #f2f2f2; /* Light gray background for odd rows */
}

.modal-table tbody tr:nth-child(even) {
  background-color: #ffffff; /* White background for even rows */
}

/* Custom style for a narrower modal */
#generateAuditModal .modal-dialog {
  max-width: 400px; /* Reduce the modal width */
}

#generateAuditModal .modal-body select {
  font-size: 12px; /* Make the dropdown font size consistent */
}

/* Ensure consistent button styling */
.btn-update,
.btn-close-custom {
  background: linear-gradient(
    135deg,
    #00a629,
    #007d22
  ); /* Matching background gradient */
  color: white;
  border: none;
  padding: 6px 20px; /* Consistent padding */
  border-radius: 3px;
  font-size: 12px; /* Ensure both have the same font size */
  line-height: 1.5;
  cursor: pointer;
  width: 170px; /* Same width for both buttons */
  height: auto; /* Let the height adjust dynamically */
  margin-top: 10px;
  margin-bottom: 10px;
  transition: background 0.3s ease;
  white-space: nowrap;
  text-align: center;
}

/* Ensure hover effect is consistent */
.btn-update:hover,
.btn-close-custom:hover {
  background: linear-gradient(135deg, #00a629, #007d22); /* Same hover effect */
}

#testCaseSummaryContent {
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 4px;
  font-size: 12px;
}

#testCaseSummaryModal .modal-header {
  background: linear-gradient(135deg, #007d22, #00a629, #00c726) !important;
  color: white !important;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.3);
}

#testCaseSummaryModal .btn-close {
  color: white !important;
}

.modal-body .spinner-border {
  display: block;
  margin: 0 auto;
}

.modal-body-content * {
  font-size: 12px !important; /* Override any inline or inherited font-size */
  /* color: #000 !important;  */

/* Common modal header and button styles for consistency */
#exampleModal .modal-header,
#generateAuditModal .modal-header {
  background: linear-gradient(135deg, #007d22, #00a629, #00c726);
  color: white;
}

#exampleModal .btn-close-custom,
#generateAuditModal .btn-close-custom,
#exampleModal .btn-generateAuditReport,
#generateAuditModal .btn-generateAuditReport {
  background: linear-gradient(135deg, #00a629, #007d22);
  color: white;
  border: none;
  padding: 6px 20px;
  border-radius: 3px;
  font-size: 12px;
  line-height: 1.5;
  cursor: pointer;
  width: 140px;
  transition: background 0.3s ease;
  text-align: center;
}

#exampleModal .btn-close-custom:hover,
#generateAuditModal .btn-close-custom:hover,
#exampleModal .btn-generateAuditReport:hover,
#generateAuditModal .btn-generateAuditReport:hover {
  background: linear-gradient(135deg, #007d22, #00a629);
}

/* Custom width for smaller modal */
.modal-xs {
  max-width: 300px; /* Adjust the width as per your requirement */
}

/* Ensure header, body, and footer font sizes are consistent */
#exampleModal .modal-header,
#exampleModal .modal-footer,
#exampleModal .modal-body {
  font-size: 12px; /* Adjust font size for smaller modal */
}

/***** Modal Footer Styling *****/
#exampleModal .modal-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* Ensure buttons stay on the same line */
.modal-footer .btn-close-custom,
.modal-footer .btn-SubmitRecord {
  flex-grow: 1;
  margin-left: 10px;
}

/* Make the error message display below the input */
#exampleInputPassword1 + #error {
  position: absolute;
  top: 100%; /* Directly below the input field */
  left: 0;
  width: 100%;
  font-size: 12px;
  margin-top: 5px;
}

/* Ensure the buttons are positioned next to each other */
#exampleModal .modal-footer .btn-close-custom {
  margin-right: 10px;
}

#updateToast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px; /* Increase the width to make it bigger */
  z-index: 1050;
  text-align: center;
}

.toast-body {
  font-size: 14px;
}

.toast {
  opacity: 0.95;
  position: fixed;
  z-index: 1050;
}


/* Add these styles to your existing CSS section */
#customToast .modal-dialog {
  max-width: 400px; /* Adjust size if needed */
  width: 100%;
}

#customToast .modal-content {
  background-color: #343a40; /* Dark background */
  color: white; /* White text */
  border-radius: 10px; /* Rounded corners */
  opacity: 0.95; /* Slight transparency */
  transition: all 0.5s ease-in-out; /* Smooth transition */
}

#customToast.fade .modal-content {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

#customToast.show .modal-content {
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

#toastMessage {
  font-size: 16px;
}

#customToast .btn-close {
  position: absolute;
  top: 10px;
  right: 15px;
  color: white;
  opacity: 1;
}
}
/* Full-page overlay spinner */
.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner-border {
  width: 3rem;
  height: 3rem;
}


/* Add these styles to your existing CSS sectio for View Reports modal */

/* Adjust the modal width and ensure no horizontal scrollbar */
#viewReportsModal .modal-lg {
  max-width: 85%; /* Make the modal smaller */
}

/* Adjust appList to reduce width and padding inside the modal */
#viewReportsModal #appList {
  width: 100%; /* Ensure it takes up the full width of the div */
  height: 100%; /* Fill the height */
  max-width: 100%; /* Remove max-width so it doesn’t get constrained */
  padding: 10px; /* Add padding for breathing room inside the list */
  overflow-y: auto; /* Ensure vertical scroll if content exceeds height */
}

/* Reduce excessive spacing between appList and grid inside the modal */
#viewReportsModal .col-10 {
  padding-left: 10px; /* Reduced padding */
}

/* Make table columns uniform in width inside the modal */
#viewReportsModal .col-fixed {
  width: 150px; /* Fixed column width */
}

#viewReportsModal .col-3 {
  max-width: 250px; /* Give it more width to avoid squeezing */
  height: 100%; /* Ensure it stretches to fit the content */
  padding: 10px; /* Add padding to prevent the squeezed look */
  border-right: 1px solid #dee2e6;
}

/* Ensure row height is shorter but content fits inside the modal */
#viewReportsModal #reportTableBody td,
#viewReportsModal #reportTableBody th {
  white-space: nowrap;
  padding: 0px 3px; /* Maintain readable padding */
  text-align: left; /* Align text to the left */
  vertical-align: middle; /* Ensure vertical alignment */
}



#viewReportsModal th {
  position: sticky;
  top: 0; /* Freeze the header row at the top */
  background-color: #fff; /* Set background color to avoid transparency when scrolling */
  z-index: 2; /* Ensure it stays on top of the table rows */

  word-wrap: break-word; 
  white-space: nowrap;

}

/* Left align the text in specific columns */
#viewReportsModal #reportTableBody td:nth-child(1),
#viewReportsModal #reportTableBody td:nth-child(2),
#viewReportsModal #reportTableBody td:nth-child(3),
#viewReportsModal #reportTableBody td:nth-child(4) {
  text-align: left; /* Left align for Date Time, Report Originator, Comment, and Version columns */
}

/* Reduce the width of the last column (View button) */
#viewReportsModal #reportTableBody td:last-child,
#viewReportsModal #reportTableBody th:last-child {
  width: 80px; /* Reduce the width of the View button column */
}


/* Set appropriate column widths */
#viewReportsModal #reportTableBody td:nth-child(1),
#viewReportsModal #reportTableBody th:nth-child(1) {
    /* width: 15%;  */
    width: auto;
}

#viewReportsModal #reportTableBody td:nth-child(2),
#viewReportsModal #reportTableBody th:nth-child(2) {
    /* width: 20%;  */
    width: auto;
}

#viewReportsModal #reportTableBody td:nth-child(3),
#viewReportsModal #reportTableBody th:nth-child(3) {
    /* width: 40%;  */
    width: auto;
}

#viewReportsModal #reportTableBody td:nth-child(4),
#viewReportsModal #reportTableBody th:nth-child(4) {
    /* width: 10%;  */
    width: auto;
}

#viewReportsModal #reportTableBody td:nth-child(5),
#viewReportsModal #reportTableBody th:nth-child(5) {
    /* width: 15%;  */
    width: 80px;
}

#viewReportsModal #reportTableBody td, 
#viewReportsModal #reportTableBody th {
    line-height: 1.2;
}

/* Adjust the View button appearance */
#viewReportsModal #reportTableBody td:last-child button {
  width: 100%; /* Ensure button takes the full width of the column */
  padding: 5px 10px; /* Add padding for better button look */
}

/* Update the table body to have a fixed height and allow vertical scrolling */
#viewReportsModal .table-responsive tbody {
  /* max-height: 200px;  */
  max-height: calc(4 * 40px);
  overflow-y: auto; /* Enable vertical scrolling when content exceeds 200px */
}

#viewReportsModal tbody {
  display: table-row-group; /* Revert back to default table row behavior */
  max-height: none; /* Remove the fixed height to allow proper alignment */
  overflow-y: visible; /* Allow rows to take the full width */
}


/* Remove horizontal scrolling on the table inside the modal */
#viewReportsModal .table-responsive {
  max-height: calc(4 * 40px);
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Ensure the grid fits without clipping inside the modal */
#viewReportsModal table {
  /* table-layout: fixed;  */
  table-layout: auto; /* Allow the table to adjust based on content */
  width: 100%;
}

/* Adjust the height of PDF preview and ensure it fits well inside the modal */
#viewReportsModal .pdf-preview {
  height: 400px;
  margin-top: 10px;
  padding-left: 10px;
}

/* Adjust button to have consistent height and center within the row */
#viewReportsModal .btn {
  padding: 2px 10px; /* Adjust button padding */
  font-size: 0.875rem; /* Adjust font size to match row height */
}

/* Change cursor to pointer for clickable app list items */
#viewReportsModal #appList .list-group-item {
  cursor: pointer; /* Change cursor to pointer for clickable items */
}

#viewReportsModal #loadingSpinner {
  position: absolute;  /* Place the spinner inside the modal body */
  top: 50%;            /* Center vertically */
  left: 50%;           /* Center horizontally */
  transform: translate(-50%, -50%); /* Ensure it's fully centered */
  z-index: 1050;       /* Ensure it's on top of other content */
  display: none;      /* Spinner is initially hidden, use JavaScript to toggle */
}

#viewReportsModal .spinner-border {
  width: 3rem;         /* Spinner size */
  height: 3rem;
  border-width: 0.25rem;
  animation: spinner-border 0.75s linear infinite; /* Ensure spinner animation */
}


#viewReportsModal .modal-body {
  position: relative; /* To position spinner inside it */
}