/* Header and side panel styling */
.header {
    position: relative;
    display: flex;
    align-items: center;  /* This helps center the logo if needed */
    justify-content: center;
    height: 60px;
    background-color: #fff;
    border-bottom: 1px solid #ccc;
  }
  
/* back BUTTON */
.header .btn-back {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
}
  
.header .btn-back i {
    font-size: 1.8rem; /* Increase or decrease to taste */
    color: #333333;       /* Greyish color */
}
  
  /* HAMBURGER BUTTON ON THE RIGHT */
.header .btn-icon {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.5rem; /* Adjust to match icons if you like */
    cursor: pointer;
}
  
  /* LOGO */
  .header-logo {
    height: 60px;
  }
  
  
.side-panel {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100%;
    background: #fff;
    /* If you want the border on the inside edge, switch to border-left */
    border-left: 1px solid #ccc;
    padding: 1rem;
    /* Transition should be applied to 'right' instead of 'left' */
    transition: right 0.3s ease;
    z-index: 9999;
  }
  
.side-panel.open {
    right: 0;
  }
  
.card-title { 
    font-weight: bold;
    color:rgb(63, 66, 84) !important; 
}

.text-xs {
  font-size: 0.9rem;
}

.search-item-code {
  font-size: 13px;
  line-height: 1.5;
  background: #ffffff;
  border: 1px solid #ccc;
  border-radius: 3px;
  box-sizing: border-box;
  width: 100%;
  color: #636363;
}

/* Status Box styling */
.status-box {
  border-radius: 10px;
  background-color: #f8f9fa;
  cursor: pointer;
}

.status-box.active {
  background-color: rgb(54, 153, 255);
  color: #fff;
}

.active {
  box-shadow: 0 0 0 2px #ffffff;
}
/* Add this to your CSS to force consistent styles */
.swal2-popup {
  display: flex !important;
}

.swal2-icon {
  margin: 1.25em auto !important;
}

.swal2-actions {
  justify-content: center !important;
}
.btn-brand {
  color: #fff !important;
  background-color: #716aca !important;
  border-color: #716aca !important;
}
/* Remove default background sort icons */
table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc,
table.dataTable thead .sorting_asc_disabled,
table.dataTable thead .sorting_desc_disabled {
  background-image: none !important;
}

/* Add the up arrow using :before pseudo-element */
table.dataTable>thead .sorting:before,
table.dataTable>thead .sorting_asc:before,
table.dataTable>thead .sorting_desc:before,
table.dataTable>thead .sorting_asc_disabled:before,
table.dataTable>thead .sorting_desc_disabled:before {
  position: absolute !important;
  right: 1em !important;
  content: "↑" !important;
}

/* Add the down arrow using :after pseudo-element */
table.dataTable>thead .sorting:after,
table.dataTable>thead .sorting_asc:after,
table.dataTable>thead .sorting_desc:after,
table.dataTable>thead .sorting_asc_disabled:after,
table.dataTable>thead .sorting_desc_disabled:after {
  position: absolute !important;
  right: 0.5em !important;
  content: "↓" !important;
}

/* Remove pseudo-elements for sorting_disabled columns */
table.dataTable thead th.sorting_disabled::before,
table.dataTable thead th.sorting_disabled::after {
  display: none !important;
  content: "" !important;
}

/* Table header styling */
table.dataTable thead th {
    position: relative !important;
    font-weight: bold !important;
  }

  /* Badge styling */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1.2rem;
    font-weight: 500;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    width: 140px;
    text-align: center;
    white-space: nowrap;
  }
  
  /* Readonly form-control styling */
  .form-control[readonly] {
    background: #fafafa ;
    border: none !important;
    font-size: 13px;
    line-height: 1.5;
    border-radius: 3px;
    box-sizing: border-box;
    width: 100%;
    color: #636363;
  }
  
  /* Order number styling */
  .order-no {
    font-size: 19px;
    color: #50565c;
    margin-left: 15px;
    background-color: #eeeeee;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    font-weight: bold;
  }
  .input-group-text {
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 3px;
    color: #636363;
  }
  .input-group-text i { font-size: 0.875rem; }

  /* Mobile adjustments */
@media (max-width: 768px) {

  /* LOGO */
  .header-logo {
    height: 40px;
  }
  .side-panel.open {
    right: -100px !important;
  }
    .order-no {
      margin-left: 0 !important;
      display: inline-block;
      width: auto;
      margin-top: 8px;
      font-size: 1.2rem;
    }
    .badge {
      /* Optionally adjust badge size for mobile */
      padding: 0.5rem 1rem;
      font-size: 1rem;
      width: auto; 
    }
    .form-control[readonly] {
      font-size: 12px !important;
      
    }
    .mobile-pagination {
      background-color: #f8f9fa;
      padding: 10px;
      border-radius: 6px;
      margin-bottom: 20px;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .mobile-pagination .btn {
      padding: 0.25rem 0.5rem;
      font-size: 0.875rem;
    }

    .mobile-pagination .text-muted {
      font-size: 0.875rem;
    }

    /* Optional: Style for active page number if need add page number buttons */
    .mobile-pagination .page-number.active {
      background-color: #0d6efd;
      color: white;
      border-color: #0d6efd;
    }
  }
