/* Ensure table doesn't overflow on small screens */
.table-responsive {
	overflow-x: auto;
}

/* Prevent buttons from wrapping too early */
td button {
	white-space: nowrap;
}
/* Modal Overlay */
.custom-modal {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

/* Modal Dialog */
.custom-modal-dialog {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 50px;
  min-height: 100%;
}

/* Modal Content */
.custom-modal-content {
  background-color: #fff;
  width: 90%;
  max-width: 600px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.custom-modal-content-checklist {
  background-color: #fff;
  width: 90%;
  max-width: 300px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Tablet view */
@media (min-width: 768px) {
  .custom-modal-content-checklist {
    width: 70%;
    max-width: 300px;
  }
}

/* Desktop view */
@media (min-width: 1024px) {
  .custom-modal-content-checklist {
    width: 50%;
    max-width: 300px;
  }
}


/* Modal Header */
.custom-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #343a40;
  color: #fff;
}
.custom-modal.show {
  display: block !important;
}

/* Modal Body */
.custom-modal-body {
  padding: 20px;
}

/* Modal Footer */
.custom-modal-footer {
  padding: 15px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid #ddd;
}

/* Close Button (X) */
.close-button {
  font-size: 24px;
  cursor: pointer;
  color: #ffffff;
}
.modal-title-lg {
  font-size: 1rem;  /* Default h5 is ~1.25rem */
  font-weight: bold;
  color: #ffffff;     /* Optional if not already styled */
}

/* Basic form styles */
.form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
}



/* Tab grid (2-column responsive) */
.input-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

/* Tabs styling */
.nav-tabs {
  display: flex;
  border-bottom: 1px solid #ccc;
  margin-bottom: 1rem;
}

.nav-tabs .nav-link {
  flex: 1;
  padding: 10px;
  text-align: center;
  background-color: #f1f1f1;
  cursor: pointer;
  border: none;
  transition: 0.3s;
}

.nav-tabs .nav-link.active {
  background-color: #28a745;
  color: white;
  font-weight: bold;
}

/* Tab content */
.tab-pane {
  display: none;
}
.tab-pane.active {
  display: block;
}

/* Responsive for small screens */
@media (max-width: 500px) {
  .nav-tabs {
    flex-direction: column;
  }
}



/* Tab styling, uses Bootstrap / AdminKit */
.nav-tabs .nav-link {
  cursor: pointer;
}
.nav-tabs .nav-link.active {
  background-color: #28a745; /* success green */
  color: white;
}

.header-success {
  background-color: #28a745;
  color: white;
}

/* Optional: Add some custom styles for the modal dialog and content */
.custom-modal-dialog {
    animation: slide-in 0.3s ease-out;
}

@keyframes slide-in {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* input sizing small in table cells */
.table .form-control-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
}





.input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.input-row > div {
  flex-grow: 1;
  min-width: 200px;
  flex-basis: 70%;
}

.input-row input {
  width: 100%;
}

.remove-ors-btn {
  height: 35px;
  align-self: center;
  margin-left: 8px;
  flex-basis: 20%;
  min-width: 40px;
  max-width: 50px;
}

/* On very small screens */
@media (max-width: 480px) {
  .input-row > div,
  .remove-ors-btn {
    flex-basis: 100%;
    margin-left: 0;
  }
  .remove-ors-btn {
    margin-top: 8px;
  }
}


/* Pagination container */
.custom-pagination {
	display: flex;
	justify-content: center;
	padding-left: 0;
	list-style: none;
	margin-top: 1rem;
	gap: 6px;
}


/* Pagination buttons */
.custom-pagination .page-link {
	display: inline-block;
	padding: 6px 12px;
	font-size: 14px;
	color: #007bff; /* blue color */
	background-color: #fff;
	border: 1px solid #ccc;
	border-radius: 4px;
	cursor: pointer;
	user-select: none;
	transition: background-color 0.2s ease, color 0.2s ease;
	min-width: 32px;
	text-align: center;
	box-sizing: border-box;
}

/* Hover effect */
.custom-pagination .page-link:hover:not(.disabled):not(.active) {
	background-color: #e9ecef;
	color: #0056b3;
}

/* Active page */
.custom-pagination .page-item.active .page-link {
	color: #fff;
	background-color: #007bff;
	border-color: #007bff;
	cursor: default;
	pointer-events: none;
}

/* Disabled button */
.custom-pagination .page-link.disabled {
	color: #6c757d;
	background-color: #f8f9fa;
	border-color: #ddd;
	cursor: not-allowed;
	pointer-events: none;
}

