body.body-internal {
  background-color: #f8f9fa;
}
.table-responsive {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  background-color: #fff;
}
.table thead th {
  background-color: #f7f9fc;
  color: #555;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 12px;
  border-bottom: 2px solid #e9ecef;
  padding: 1rem 0.75rem;
  text-align: left;
}
.table tbody tr {
  transition: background-color 0.2s ease-in-out;
}
.table tbody tr:hover {
  background-color: #f1f3f5;
}
.table td {
  padding: 1rem 0.75rem;
  vertical-align: middle;
  border-top: 1px solid #e9ecef;
}
.table-link a {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}
.table-link a:hover {
  text-decoration: underline;
}
.table-service {
  font-size: 14px;
  color: #666;
  max-width: 250px;
  white-space: normal;
}

/* Status badge */
.status-badge {
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.status-badge svg {
  width: 18px;
  height: 18px;
  vertical-align: middle;
}
.status-completed {
  background-color: #e9f7ef;
  color: #28a745;
}
.status-completed svg {
  fill: #28a745;
}
.status-inprogress {
  background-color: #e6f7ff;
  color: #007bff;
}
.status-inprogress svg {
  fill: #007bff;
}
.status-pending,
.status-processing {
  background-color: #fff8e1;
  color: #ff9800;
}
.status-pending svg,
.status-processing svg {
  fill: #ff9800;
}
.status-partial {
  background-color: #f2e6ff;
  color: #6f42c1;
}
.status-partial svg {
  fill: #6f42c1;
}
.status-canceled {
  background-color: #fbe9e7;
  color: #dc3545;
}
.status-canceled svg {
  fill: #dc3545;
}

/* Buttons */
.btn-actions {
  background-color: #007bff;
  color: #fff !important;
  border: none;
  border-radius: 5px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}
.btn-actions:hover {
  background-color: #0056b3;
  transform: translateY(-1px);
}
.btn-actions.disabled,
.btn-actions:disabled {
  background-color: #ced4da;
  cursor: not-allowed;
  transform: none;
  opacity: 0.65;
}
.component_button_cancel .btn-actions {
  background-color: #dc3545;
}
.component_button_cancel .btn-actions:hover {
  background-color: #c82333;
}

/* Search bar */
.orders-history__margin-search .card {
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
}
.orders-history__margin-search .form-control {
  border-radius: 8px 0 0 8px;
  border-right: 0;
}
.orders-history__margin-search .btn-big-secondary {
  border-radius: 0 8px 8px 0;
}
.nav-pills .nav-link {
  border-radius: 20px;
  padding: 8px 15px;
  margin-right: 5px;
  font-weight: 500;
  color: #6c757d;
  transition: all 0.3s ease;
}
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  color: #fff;
  background-color: #007bff;
}

/* Row checkbox */
label.order-checkbox {
  --border-default: #d1d6dc;
  --border-hover: #007bff;
  --active: #007bff;
  display: inline-block;
  width: 20px;
  height: 20px;
  cursor: pointer;
  position: relative;
  margin: 0;
}
label.order-checkbox:hover input:not(:checked) {
  --border: var(--border-hover);
}
.order-checkbox input {
  display: none;
}
.order-checkbox .checkbox-visual {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border, var(--border-default));
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.order-checkbox .checkbox-visual svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
  stroke-width: 2;
  fill: none;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s;
}
.order-checkbox input:checked + .checkbox-visual {
  background-color: var(--active);
  border-color: var(--active);
}
.order-checkbox input:checked + .checkbox-visual svg {
  opacity: 1;
  transform: scale(1);
}

/* Selection tools */
.selection-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 16px;
}
.selection-tools .clear-selected {
  background: transparent;
  border: none;
  color: #0ea5e9;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.selection-tools .clear-selected svg {
  width: 18px;
  height: 18px;
}

/* Toast */
.copy-toast {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 9999;
  transition: bottom 0.5s ease-in-out, top 0.5s ease-in-out;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.copy-toast.show {
  bottom: 30px;
}
.copy-toast.error {
  background: #dc2626;
  border: 2px solid #fecaca;
  font-weight: 800;
}
.copy-toast.error.show {
  bottom: auto;
  top: 24px;
}
@keyframes toast-shake {
  10%,
  90% {
    transform: translateX(-50%) translateY(0);
  }
  20%,
  80% {
    transform: translateX(calc(-50% - 2px));
  }
  30%,
  50%,
  70% {
    transform: translateX(calc(-50% + 4px));
  }
  40%,
  60% {
    transform: translateX(calc(-50% - 4px));
  }
}
.copy-toast.error.animate {
  animation: toast-shake 0.5s;
}

/* Mobile horizontal scroll fix */
@media (max-width: 991.98px) {
  .orders-history__margin-table,
  .orders-history__margin-table .table-responsive,
  .table-responsive {
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch;
  }
  .orders-history__margin-table .table {
    min-width: 760px;
  }
  .orders-history__margin-table th.__checkbox-col__,
  .orders-history__margin-table td:first-child {
    width: 42px !important;
    min-width: 42px !important;
  }
}