/* Wide popover for probability info button */
.popover-wide {
  max-width: 700px;
  min-width: 600px;
}
.popover-wide .popover-body {
  padding: 12px;
  max-height: 450px;
  overflow-y: auto;
}

body {
  background-color: bisque;

}
.custom-tooltip {
  text-align: left !important;
}

.custom-tooltip .tooltip-inner {
  max-width: 500px;
  width: 500px;
  text-align: left !important;
}
.tooltip-inner {
  max-width: 300px;
  text-align: left;
}

/* Probability Matrix Styles */
.probability-matrix {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.probability-matrix th,
.probability-matrix td {
  border: 1px solid #dee2e6;
  padding: 12px 10px;
  text-align: center;
  vertical-align: middle;
  line-height: 1.4;
}

.probability-matrix th {
  background-color: #f8f9fa;
  font-weight: bold;
  font-size: 15px;
}

.probability-matrix .stage-header {
  background-color: #ffc107 !important;
  font-weight: bold;
  text-align: center;
  font-size: 14px;
  min-width: 120px;
}

.probability-matrix .percentage-header {
  background-color: #fd7e14 !important;
  color: white;
  font-weight: bold;
  font-size: 14px;
  min-width: 80px;
}

.probability-matrix .description-cell {
  text-align: left;
  font-size: 13px;
  line-height: 1.5;
  padding: 15px 12px;
  min-width: 200px;
  max-width: 250px;
  word-wrap: break-word;
}

.probability-matrix .na-cell {
  background-color: #f8f9fa;
  color: #6c757d;
  font-style: italic;
  font-size: 13px;
}

/* Modal specific improvements */
#probabilityMatrixModal .modal-title {
  font-size: 1.5rem;
  font-weight: bold;
}

#matrixContent h6 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: #333;
  border-bottom: 2px solid #dee2e6;
  padding-bottom: 10px;
}


/* Modern Search Filters Accordion Styles */
.search-filters-header {
  padding: 0.75rem 1rem;
  background: #f8f9fa;
  border-radius: 8px 8px 0 0;
  border: 1px solid #dee2e6;
  border-bottom: none;
  cursor: pointer;
  transition: background 0.2s;
}
.search-filters-header:hover {
  background: #e9ecef;
}
.filters-title {
  font-weight: 600;
  color: #495057;
  font-size: 1.1rem;
}
.search-filters-body {
  padding: 1.2rem 1.2rem 0.5rem 1.2rem;
  background: #fff;
  border: 1px solid #dee2e6;
  border-top: none;
  border-radius: 0 0 8px 8px;
  margin-bottom: 1rem;
}
#filtersToggleBtn {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
#filtersToggleBtn:hover {
  background: #e9ecef;
}
#toggleIcon {
  font-size: 1.2rem;
  transition: transform 0.2s;
}

/* Active filters badge styling */
#activeFiltersCount {
  font-size: 0.75rem;
  font-weight: 500;
  animation: pulse 0.3s ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Performance optimizations */
.search-filters-container * {
  box-sizing: border-box;
}

/* Smooth search button */
#searchPipeline {
  transition: all 0.2s ease-in-out;
}

#searchPipeline:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* Search button enhancements */
#searchPipeline {
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
}
header {
  position: sticky;
  top: 0;
  z-index: 999;
}

#success_message {
  display: none;
}

.bold {
  font-weight: bold;
}

.register {
  background: -webkit-linear-gradient(left, #3931af, #00c6ff);
  margin-top: 3%;
  padding: 3%;
}

.register-left {
  text-align: center;
  color: #fff;
  margin-top: 4%;
}

.register-left input {
  border: none;
  border-radius: 1.5rem;
  padding: 2%;
  width: 60%;
  background: #f8f9fa;
  font-weight: bold;
  color: #383d41;
  margin-top: 30%;
  margin-bottom: 3%;
  cursor: pointer;
}

.register-right {
  background: #f8f9fa;
  border-top-left-radius: 10% 50%;
  border-bottom-left-radius: 10% 50%;
}

.register-left img {
  margin-top: 15%;
  margin-bottom: 5%;
  width: 25%;
  -webkit-animation: mover 2s infinite alternate;
  animation: mover 1s infinite alternate;
}

@-webkit-keyframes mover {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-20px);
  }
}

@keyframes mover {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-20px);
  }
}

.register-left p {
  font-weight: lighter;
  padding: 12%;
  margin-top: -9%;
}

.register .register-form {
  padding: 10%;
  margin-top: 10%;
}

.btnRegister {
  float: right;
  margin-top: 10%;
  border: none;
  border-radius: 1.5rem;
  padding: 2%;
  background: #0062cc;
  color: #fff;
  font-weight: 600;
  width: 50%;
  cursor: pointer;
}

.register .nav-tabs {
  margin-top: 3%;
  border: none;
  background: #0062cc;
  border-radius: 1.5rem;
  width: 28%;
  float: right;
}

.register .nav-tabs .nav-link {
  padding: 2%;
  height: 34px;
  font-weight: 600;
  color: #fff;
  border-top-right-radius: 1.5rem;
  border-bottom-right-radius: 1.5rem;
}

.register .nav-tabs .nav-link:hover {
  border: none;
}

.register .nav-tabs .nav-link.active {
  width: 100px;
  color: #0062cc;
  border: 2px solid #0062cc;
  border-top-left-radius: 1.5rem;
  border-bottom-left-radius: 1.5rem;
}

.register-heading {
  text-align: center;
  margin-top: 8%;
  margin-bottom: -15%;
  color: #495057;
}

.container {
  max-width: 960px;
}

h1 {
  text-align: center;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

/* Thead and th styles - background colors and padding in theme.css */
thead th {
  position: sticky;
  top: 0;
  text-align: left;
  z-index: 10;
  box-sizing: border-box;
}

tfoot th {
  position: sticky;
  bottom: 0;
  text-align: left;
  z-index: 10;
  box-sizing: border-box;
}

td {
  padding: 10px;
  text-align: left;
}

/* Row coloring moved to theme.css for consistency */





.material-symbols-outlined {
  font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 48
}

table.table-sortable th.currently-sorted[data-sort-dir="asc"]::after {
  content: "\25b2";
  color: #fff
}

table.table-sortable th.currently-sorted[data-sort-dir="desc"]::after {
  content: "\25bc";
  color: #fff
}



.popup {
  position: relative;
  display: inline-block;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.popup .popuptext {
  visibility: hidden;
  width: 350px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px 0;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -80px;
}

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

.popup .show {
  visibility: visible;
  -webkit-animation: fadeIn 1s;
  animation: fadeIn 1s;
}

@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

#downloadReportingTable{
  margin-top: 10px;
}


figure {
  display: block;
  width: 60px;
  height: 60px;
  border-radius: 60px;
  font-size: 25px;
  text-align: center;
  
  margin-right: 10px;
  background: #fff;
  line-height: 1.7em;
}

figure img {
  display: inline-block;
  margin-top: 8px;
  width: 42px;
  height: auto;
}

.custom-slider {
  display: inline-block;
  position: relative;
  width: 40px; 
  height: 10px; 
  background-color: #ccc; 
  border-radius: 30px; 
  margin-bottom: 0px;
}


.custom-slider .slider-knob {
  position: absolute;
  top: 0;
  left: 0;
  width: 10px; 
  height: 10px; 
  background-color: #007bff; 
  border-radius: 50%; 
  transition: 0.4s;
}


.custom-slider input:checked + .slider-knob {
  left: 30px; 
  background-color: #007bff; 
}

.custom-slider input {
  display: none;
}

.six_weeks_section {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.six_weeks_section .d-flex {
  display: flex;
  align-items: center;
}

.six_weeks_section .form-label {
  margin-bottom: 0;
  white-space: nowrap; 
}

.six_weeks_section .form-select,
.six_weeks_section .btn {
  height: calc(1.5em + .75rem + 2px); 
}

.six_weeks_section .btn {
  width: auto; 
  white-space: nowrap;
  margin-bottom: 12px;
}


#six_weeks_table tbody tr {
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.345);
}

.button_container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem; 
}

.button_container .btn {
  white-space: nowrap; 
}

/* Toggle Switch Styles */
.toggle-container {
  display: flex;
  align-items: center;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  margin-right: 10px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: #0062cc;
}

.toggle-switch input:focus + .toggle-slider {
  box-shadow: 0 0 1px #0062cc;
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

.toggle-label {
  font-weight: 500;
  color: #333;
  font-size: 14px;
}

.button-group {
  display: flex;
  gap: 10px;
}

/* Pivot Table Styles */
.pivot-controls {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #dee2e6;
}

.pivot-table-container {
  height: 500px;
  overflow: auto;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  background-color: white;
}

#pivotTable {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

/* Pivot table header styling */
#pivotTable thead th {
  padding: 12px 15px;
  text-align: left;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 10;
}

#pivotTable tbody td {
  padding: 10px 15px;
  border-bottom: 1px solid #dee2e6;
}

#pivotTable tbody tr:nth-child(even) {
  background-color: #f8f9fa;
}

#pivotTable tbody tr:hover {
  background-color: #e3f2fd;
}

/* #pivotTable tbody tr:last-child {
  font-weight: bold;
  background-color: #0062aa;
  color: white;
}

#pivotTable tbody tr:last-child:hover {
  background-color: #0056b3;
} */

#pivotTable tbody tr:last-child td {
  border-bottom: none;
}

.pivot-controls .row.g-3.mb-3 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.pivot-controls .col-sm-4, .pivot-controls .col-sm-2 {
  display: flex;
  align-items: center;
}

#generatePivot {
  margin-top: 0 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .d-flex.justify-content-between {
    flex-direction: column;
    gap: 15px;
  }
  
  .toggle-container {
    justify-content: center;
  }
  
  .button-group {
    justify-content: center;
    flex-wrap: wrap;
  }
}
