/*table {
    width: 100%;
    border-collapse: collapse;
  }
  table, th, td {
    border: 1px solid red;
  }*/

  table{
    padding: 5px;
    border-bottom: solid gray 2px;
  }
  .total_subsection_boq{
    text-align: right;
  }
  .boq_number{
    width:25px;
    max-width: 50px;
    text-align: center;
    /*border: solid black 1px;*/
  }
  th{
    text-align: center;
    /*border: solid black 1px;*/
  }
  input{
    width: 100%;
    display:block;
    /*border:solid green 1px;*/
    min-width: 20px;

  }
input.form-control {
    text-align: center;
}
  #customer_rating{
    background-color:antiquewhite;
    padding: 30px;
  }
  .summary_table{
    border: solid black 2px;
    border-radius: 5%;
    background-color: aliceblue;
  }
  .summary_table td{
    width: 100px;
    padding: 5px;
  }

  *:required {
    background-color:blanchedalmond;
  }
  
  .listBoqTable {
     
      border-collapse: collapse;
      width: 100%;
  }

  .listBoqTable th, td {
      
      text-align: left;
      padding: 8px;
  }

  .listBoqTable th {
      cursor: pointer;
  }
  
  .button_boq{
    margin: 0 0 20px 0;
  }

  .not_authorized{
    cursor: pointer;
    text-align:center;
    border: solid gray 2px;
    width:150px;
    float:right;
  }
  .not_authorized:hover{
    border: solid black 2px;
    background-color: greenyellow;
  }
  .authorized{
    cursor: pointer;
    text-align:center;
    border: solid gray 2px;
    width:150px;
    float:right;
    background-color: greenyellow;
  }
  .authorized:hover{
    border: solid gray 2px;
    background-color: none;
  }

  #loginForm{
    border:solid black 2px;
    max-width: 50%;
    align-items: center;
    margin:200px auto;
    
  }

  #newTicketSubmit label{
    font-weight:bold;
  }

.boqStatus{
  color: white;
  text-align: center;
}

.spinner-popup {
  display:none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
  z-index: 9999; /* Ensure it appears above other content */
}

.spinner-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.table-responsive-xl {
  overflow-x: auto;
  width: 100%;
  margin: 0;
  padding: 0;
}

.item-description {
  min-width: 200px;
  white-space: normal !important;
  word-break: break-word !important;
}
.checkbox-container {
  gap: 10px;
}

.custom-checkbox {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0;
  margin-left:10px;
  padding: 0;
}

.custom-checkbox-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 24px !important;
  height: 24px !important;
  border: 2px solid #333;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  background-color: white;
  margin: 0 !important;
  padding: 0 !important;
}
.custom-checkbox-input:checked {
  background-color: #0d6efd !important; /* Add this */
  border-color: #0d6efd !important;
}
.form-check-label {
  margin: 0;
  padding: 0;
  line-height: 24px;
  height: 24px;
  display: flex;
  align-items: center;
}


.custom-checkbox-input:checked::after {
  content: '✓';
  position: absolute;
  color: white;
  font-size: 16px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: block; /* Add this */
}

.type-column {
  min-width: 150px !important;
  width: auto !important;
  white-space: normal !important;
  word-break: break-word !important;
}

.quantity-column {
  text-align: center !important;
  width: 100px !important;
}

/* Table specific styles */
.table {
  table-layout: fixed !important;
  width: 100% !important;
}
.sticky-top {
  position: sticky;
  top: 0;
  z-index: 1;
}

/* Ensure the table header stays visible */
.table thead.sticky-top {
  box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.1);
}

/* Add some padding to the bottom of the scrollable area */
.table tbody tr:last-child td {
  border-bottom: 1px solid #dee2e6;
}

.table td {
  white-space: normal !important;
  word-wrap: break-word !important;
  vertical-align: middle !important;
}

/* Remove any max-width constraints */
.table td, .table th {
  max-width: none !important;
}
.card-header[data-bs-toggle="collapse"] {
  transition: 0.3s;
}

.card-header[data-bs-toggle="collapse"] .fa-chevron-down {
  transition: 0.3s;
}

.card-header[data-bs-toggle="collapse"][aria-expanded="true"] .fa-chevron-down {
  transform: rotate(180deg);
}
@media (max-width: 768px) {
  .table {
      font-size: 14px;
  }
  
  .search-section {
      margin-bottom: 20px;
  }
  .price-column {
    display: table-cell !important;
    width: 20% !important;
}

.item-description {
    width: 60% !important;
}

.quantity-column {
    width: 20% !important;
}
}
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}
