.history-table {
  width: 100%;
}

.history-cell {
  white-space: normal;
  word-break: break-word;
  vertical-align: top;
}

.group-list {
  margin: 0;
  padding-left: 1rem;
}

.group-list li {
  margin-bottom: 0.2rem;
}

/* ===== Tabel commands 3 kolom (ID & Aksi | Deskripsi | Opsi) ===== */
.id-action-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.3;
}
.id-action-wrap .ia-label {
  font-weight: 600;
  color: #666;
}
.id-action-wrap .ia-id {
  word-break: break-all;
}
.id-action-wrap .ia-time {
  color: #888;
  font-size: 0.7rem;
}

/* Deskripsi: tiga bagian dengan pembatas antar bagian */
.desc-cell .desc-section {
  padding: 4px 0;
}
.desc-cell .desc-section + .desc-section {
  border-top: 1px dashed #cbd3da;
  margin-top: 4px;
}
.desc-cell .desc-title {
  font-weight: 700;
  color: #0d6efd;
  margin-bottom: 2px;
}
.desc-cell .desc-title i {
  margin-right: 4px;
}

/* Kolom Opsi: tombol tersusun rapi */
.opsi-cell {
  white-space: nowrap;
  text-align: center;
}
.opsi-buttons {
  display: inline-flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.history-table th,
.history-table td,
.form-select,
.form-control,
.btn,
.form-label,
.form-check-label {
  font-size: 0.75rem;
}

@media (max-width: 768px) {
  .history-table {
    width: 100%;
  }

  .form-select,
  .form-control,
  .btn {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }

  /* Tabel commands: rapatkan agar 3 kolom muat di layar kecil */
  .history-table th,
  .history-table td {
    padding: 0.35rem 0.3rem;
  }
  .id-action-cell {
    width: 28%;
    font-size: 0.7rem;
  }
  .desc-cell .group-list {
    padding-left: 0.9rem;
  }
  /* Tombol opsi ditumpuk vertikal supaya kolom tetap sempit */
  .opsi-buttons {
    flex-direction: column;
    flex-wrap: nowrap;
  }
  .opsi-buttons .btn {
    width: 100%;
  }
}

/* Expiration: GTC / Today — date field is not used */
#order108.expiration-gtc-today {
  background-color: #dc3545 !important;
  color: #fff !important;
  border-color: #b02a37 !important;
  cursor: not-allowed;
}
/* ================= BOT POSITIONS TABLE ================= */
.positions-table thead th {
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}
.positions-table td {
  white-space: nowrap;
}
.positions-table .bot-group-row td {
  font-size: 0.95rem;
  background: #f1f3f5;
}
.positions-table .bot-name-cell {
  font-weight: 600;
}
.positions-table tbody tr:hover {
  background-color: #f8f9fa;
}
