.inventory-supplies {
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
}

.inventory-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
  color: #343a40;
}

.inventory-title span {
  color: #007bff;
  font-weight: bold;
}

.products-filtering {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.products-filtering div {
  flex: 1;
}

label {
  display: block;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 5px;
  color: #495057;
}

input[type='text'],
select {
  width: 100%;
  padding: 8px;
  font-size: 14px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  background-color: #ffffff;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075);
  transition:
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
}

input[type='text']:focus,
select:focus {
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.25);
}

.table {
  width: 100%;
  margin-bottom: 20px;
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 1200px;
}

.table th,
.table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #dee2e6;
  color: #495057;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table th {
  background-color: #343a40;
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  vertical-align: middle;
  box-sizing: border-box;
  white-space: normal;
  min-height: 40px;
}

/* Break a line to prevent overflowing */
.table th:nth-child(4),  /* Sale Price */
.table th:nth-child(5),  /* Regular Price */
.table th:nth-child(6) {
  /* Profit Margin */
  word-spacing: 100vw;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Supply Id */
.table th:nth-child(1),
.table td:nth-child(1) {
  width: 8%;
}

/* Supply Name */
.table th:nth-child(2),
.table td:nth-child(2) {
  width: 15%;
}

/* Description */
.table th:nth-child(3),
.table td:nth-child(3) {
  width: 20%;
}

/* Sale Price */
.table th:nth-child(4),
.table td:nth-child(4) {
  width: 8%;
}

/* Regular Price */
.table th:nth-child(5),
.table td:nth-child(5) {
  width: 9%;
}

/* Profit Margin */
.table th:nth-child(6),
.table td:nth-child(6) {
  width: 9%;
}

/* Quantity */
.table th:nth-child(7),
.table td:nth-child(7) {
  width: 10%;
}

/* Status */
.table th:nth-child(8),
.table td:nth-child(8) {
  width: 8%;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: #f2f2f2;
  word-break: break-word;
}

.table td {
  font-size: 14px;
  box-sizing: border-box;
}

.table thead th {
  text-align: center;
  vertical-align: middle;
}

.status-reorder {
  color: #f4a460;
}

.status-out-of-stock {
  color: red;
}

.status-available {
  color: green;
}

.btn-danger {
  background-color: #dc3545;
}

.btn-add {
  background-color: green;
}

.btn-danger:hover {
  background-color: #c82333;
}

@media (max-width: 768px) {
  .products-filtering {
    flex-direction: column;
  }

  .table {
    font-size: 12px;
  }
}
#google_translate_element {
  width: 25%;
  margin: 20px 0;
  float: right;
}
.table th,
.table td {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  text-overflow: initial;
  line-height: 1.2;
}

.table td:nth-child(4),
.table td:nth-child(5),
.table td:nth-child(6),
.table td:nth-child(7) {
  white-space: nowrap;
}

.table th:nth-child(2),
.table th:nth-child(3) {
  min-width: 16ch;
}
.table th:nth-child(6) {
  min-width: 12ch;
}

.table th:nth-child(4),
.table th:nth-child(5),
.table th:nth-child(6) {
  word-spacing: normal;
}

@media (min-width: 992px) {
  .table {
    table-layout: auto;
  }
}

#google_translate_element {
  float: right;
  width: auto;
  max-width: 320px;
  margin: 12px 0 16px 16px;
}
.card button[type='submit'],
form button[type='submit'].btn {
  width: auto !important;
  min-width: 10rem;
  max-width: 100%;
  padding-inline: 16px;
  white-space: nowrap;
  line-height: 1.2;
}

button.btn {
  word-break: keep-all;
}

.table.table-striped {
  table-layout: auto !important;
  min-width: 0 !important;
}

.table.table-striped th,
.table.table-striped td {
  overflow: visible !important;
  white-space: normal;
  text-overflow: clip !important;
}

.table.table-striped td:nth-child(1),
.table.table-striped td:nth-child(3) {
  word-break: break-word;
  overflow-wrap: anywhere;
}

.actions-cell {
  white-space: normal !important;
}
.actions-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.actions-group .btn {
  padding: 4px 8px;
  line-height: 1.2;
  font-size: 0.85rem;
}

.table.table-striped th:nth-child(9),
.table.table-striped td:nth-child(9) {
  width: 320px;
  min-width: 260px;
}

.table.table-striped th:nth-child(4),
.table.table-striped td:nth-child(4),
.table.table-striped th:nth-child(5),
.table.table-striped td:nth-child(5),
.table.table-striped th:nth-child(6),
.table.table-striped td:nth-child(6),
.table.table-striped th:nth-child(7),
.table.table-striped td:nth-child(7),
.table.table-striped th:nth-child(8),
.table.table-striped td:nth-child(8) {
  width: 8%;
  white-space: nowrap;
}

.table.table-striped thead th {
  white-space: normal !important;
  line-height: 1.15;
  padding-top: 10px;
  padding-bottom: 10px;
}

.th-2line {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.table.table-striped thead th:nth-child(4),
.table.table-striped thead th:nth-child(5),
.table.table-striped thead th:nth-child(6),
.table.table-striped thead th:nth-child(7),
.table.table-striped tbody td:nth-child(4),
.table.table-striped tbody td:nth-child(5),
.table.table-striped tbody td:nth-child(6),
.table.table-striped tbody td:nth-child(7) {
  min-width: 96px;
  text-align: center;
}

.table.table-striped th:nth-child(9),
.table.table-striped td:nth-child(9) {
  width: 300px;
  min-width: 260px;
}

.table.table-striped th,
.table.table-striped td {
  overflow: visible !important;
  text-overflow: clip !important;
}
