html,
body {
  height: 100%;
  font-size: 12px;
}

@media (min-width: 768px) {

  html,
  body {
    font-size: 12px;
  }
}

.custom-navbar-height {
  height: 50px;
  max-height: 50px;
}

.rotate-text {
  transform: rotate(-90deg); /* Rotate the text 90 degrees */
  transform-origin: center; /* Center the rotation */
  font-size: 10px;
  text-align: center;
}

.custom-footer {
  height: 20px;
  background-color: #000;
  color: #ffffff;
  max-height: 20px;
  text-align: center;
  position: fixed;
  bottom: 0px;
  width: 100%;
}

.hidden {
  display: none !important;
}

#pdf-canvas-container {
  height: 100%;
}

#pdf-canvas-container canvas,
#pdf-canvas-container div {
  width: 100%;
  border: 1px solid black;
  margin-bottom: 3px;
}

.full-height {
  height: calc(100vh - 50px - 20px);
  overflow-y: scroll;
}

/* Add a border to the right of the Tire Code column */
th.divider,
td.divider {
  border-right: 2px solid #ccc;
  /* Adjust color and width as needed */
}

#extracted_items_container tbody tr,
#extracted_tires_container tbody tr {
  cursor: pointer;
}

#extracted_tires th,
#extracted_items th {
  pointer-events: none;
  cursor: default;
}

.custom-tooltip {
  --bs-tooltip-bg: #000;
  --bs-tooltip-color: #fff;
}

#extracted_tires_container,
#extracted_items_container{
  position: relative;
}

.ajax-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 101%;
    background: rgba(210, 215, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10; /* Ensures it appears above other content */
    border-radius: 5px;
}
#ajax-indicator {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 9999;
}

.spinner-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  
}

.spinner-wrapper p, .ajax-loader p {
  font-size: 1.25rem;
  font-weight: bold;
}

.spinner-border {
  width: 3rem;
  height: 3rem;
  color: #0d6efd;
}

[class^="nested-row-"] {
  border-bottom: 1px solid black;
}

.hovered {
  background-color: #f0f0f0 !important;
}

.internal-type-column {
  width: 15px !important;
  min-width: 15px !important;
  max-width: 15px !important;
}

.quantity-column {
  width: 35px !important;
  min-width: 35px !important;
  max-width: 35px !important;
  text-align: right !important;
}
.quantity-column input{
  text-align: right !important;
}

.price-column {
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  text-align: right !important;
}
.price-column input{
  text-align: right !important;
}

.name-column {
  width: 120px !important;
  min-width: 120px !important;
  max-width: 120px !important;
}
.service-column {
  width: 120px !important;
  min-width: 120px !important;
  max-width: 120px !important;
  text-align: right !important;
}

.name-column-long {
  width: 160px !important;
  min-width: 160px !important;
  max-width: 160px !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.legend {
  display: flex;
  justify-content: center;
  gap: 15px;
  align-items: center;
  font-family: Arial, sans-serif;
  font-size: 14px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.legend-color {
  width: 15px;
  height: 15px;
  border-radius: 3px;
  display: inline-block;
}





/* custom datatables overrides start*/
.dt-column-order {
  display: none;
}

div.dt-container.dt-empty-footer tbody>tr:last-child>* {
  border-bottom: unset;
}

.dt-layout-row {
  margin: 0px !important;
}

table.dataTable>tbody>tr>th,
table.dataTable>tbody>tr>td {
  padding: 1px;
  padding-top: 5px !important;
  padding-bottom: 5px !important;
}

table.dataTable>thead>tr>th,
table.dataTable>thead>tr>td {
  padding: 1px;
}

table.dataTable thead>tr>th.dt-orderable-asc,
table.dataTable thead>tr>th.dt-orderable-desc,
table.dataTable thead>tr>th.dt-ordering-asc,
table.dataTable thead>tr>th.dt-ordering-desc,
table.dataTable thead>tr>td.dt-orderable-asc,
table.dataTable thead>tr>td.dt-orderable-desc,
table.dataTable thead>tr>td.dt-ordering-asc,
table.dataTable thead>tr>td.dt-ordering-desc {
  padding: 3px;
}

/* custom datatables overrides end*/

/* Hide dropdown icon for a specific Select2 field */
.select2-container--bootstrap-5 .select2-selection--single {
  background-image: unset !important;
}

 #chartContainer {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    padding: 1rem;
    gap: 1rem;
    border-bottom: 1px solid #ccc;
  }

  .chart-wrapper {
    flex: 0 0 auto;
    width: 450px;
    height: 400px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.5rem;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }

  canvas {
    width: 100% !important;
    height: 100% !important;
  }