#footer {
    position: sticky;
    bottom: 0;
}




/* Add here all your css styles (customizations) */
form .errorlist {
    color: red !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 10px 0 !important;
}

form .errorlist li {
    font-size: 0.9rem !important;
    font-weight: bold !important;
}

/* Pagination Button Style */
/* Base Button Style */
div.dt-container .dt-paging .dt-paging-button {
  color: #3788D8 !important;
  background-color: #f5f9f9 !important;
  border-radius: 4px !important;
  padding: 6px 12px !important;
  margin: 0 2px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Hover/Focus for enabled buttons (not current, not disabled) */
div.dt-container .dt-paging .dt-paging-button:hover:not(.disabled):not(.current),
div.dt-container .dt-paging .dt-paging-button:focus:not(.disabled):not(.current) {
  color: #fff !important;
  background-color: #3788D8 !important;
  border: none !important;
  box-shadow: none !important;
  background-image: none !important;
  outline: none !important;
}

/* Active Clicked Button */
div.dt-container .dt-paging .dt-paging-button:active:not(.disabled):not(.current) {
  color: #fff !important;
  background-color: #3788D8 !important;
  border: none !important;
  background-image: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Current Page Button */
div.dt-container .dt-paging .dt-paging-button.current {
  background-color: #1cc9e4 !important;
  color: #fff !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Prevent hover from changing .current style */
div.dt-container .dt-paging .dt-paging-button.current:hover,
div.dt-container .dt-paging .dt-paging-button.current:focus,
div.dt-container .dt-paging .dt-paging-button.current:active {
  background-color: #1cc9e4 !important;
  color: #fff !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

div.dt-container .dt-paging .dt-paging-button.disabled,
div.dt-container .dt-paging .dt-paging-button.disabled:hover,
div.dt-container .dt-paging .dt-paging-button.disabled:focus,
div.dt-container .dt-paging .dt-paging-button.disabled:active {
  background-color: #f5f9f9 !important;
  color: #bac9c9 !important;
  cursor: not-allowed !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background-image: none !important;
}

div.dt-container .dt-paging .dt-paging-button {
  width: 40px !important;        /* Fixed width */
  height: 40px !important;       /* Fixed height */
  line-height: 40px !important;  /* Vertically center text */
  text-align: center !important; /* Center horizontally */
  padding: 0 !important;         /* Remove extra space */
  display: inline-block !important;
  vertical-align: middle !important;
}

/* Filter button style */
.posted-badge {
  display: inline-block;
  padding: 6px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(145deg, #8ae78f, #039b0b);
  border: 2px solid #87f30b;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(17, 211, 81, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.filter-status {
    min-width: 120px;
    width: 120px;
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
  }


/* Datatable style */

/*
 #datatable_wrapper .dataTables_length {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem;
  margin-bottom: 0 !important;
}

#datatable_wrapper .dataTables_length label {
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem;
}

/* ✅ Remove dropdown arrow only for selects inside the datatable */
#datatable_wrapper select,
#datatable_wrapper #statusFilter,
#datatable_wrapper .js-select,
#datatable_wrapper .u-select--v3-select {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background: none !important;
  background-color: white !important;
  background-image: none !important;
}
/*
#datatable_wrapper .dt-input {
  height: 35px !important;
  padding: 6px 14px !important;
  line-height: 1.5 !important;
  font-size: 14px !important;
  box-sizing: border-box !important;
}

#datatable_wrapper .dt-buttons {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem;
  margin-left: 1rem;
  margin-bottom: 0 !important;
}

#datatable_wrapper #customFilter {
  display: flex !important;
  align-items: center !important;
  margin-left: 1rem;
  margin-bottom: 0 !important;
}

#datatable_wrapper #customFilter select {
  height: 35px !important;
  padding: 6px 16px !important;
}

#datatable_wrapper .dataTables_filter {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  margin-bottom: 0 !important;
}

#datatable_wrapper .dataTables_filter label {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem;
  margin: 0 !important;
}

#datatable_wrapper .dataTables_filter input[type="search"] {
  height: 35px !important;
  padding: 6px 14px !important;
}
*/
/* new style */
.btn-group-wrapper {
  display: flex;
  border: 1px solid #ccc;
  border-radius: 50px; /* rounded pill shape */
  overflow: hidden;
  padding: 0;
  margin: 0;
}


.btn-group-wrapper > * {
  margin: 0 !important;
  border: none !important;
  border-right: 1px solid #ccc;
  padding: 0 !important;
}

.btn-group-wrapper > *:last-child {
  border-right: none !important;
}

.btn-group-wrapper select,
.btn-group-wrapper .dt-button {
  border: none !important;
  border-radius: 0 !important;
  background: white;
  padding: 6px 16px !important;
  font-size: 14px;
  height: 38px;
  line-height: 1;
}

.btn-group-wrapper .dt-button {
  background-color: #f5f9f9;
  cursor: pointer;
}

.btn-group-wrapper .dt-button:hover {
  background-color: #e9ecef;
}


#datatable_wrapper .dataTables_filter {
  margin: 0 !important;
  align-items: center !important;
  display: flex !important;
  justify-content: flex-end !important;
  height: 100%;
}

#datatable_wrapper .dataTables_filter input[type="search"] {
  height: 38px !important;
  padding: 6px 14px !important;
  font-size: 14px !important;
}
/* Select Search HS Code */

/* Ensure option text can wrap nicely */


/* HS code column styling */
.hs-desc {
    display: inline-block;
    white-space: normal !important;
    max-width: min(800px, 80vw) !important;
    width: auto !important;
    vertical-align: top;
    margin-left: 12px;  /* add spacing */
}

/* HS description column styling */
.hs-desc {
    display: inline-block;
    white-space: normal !important;   /* allow wrapping */
    max-width: 80vw !important;     /* fill remaining width */
    width: auto !important;         /* force width override */
    vertical-align: top;
}