/* ============================================================
   DISPATCH — admin-table.css
   Prefix: admt-
   Sequence item table, rows, drag, edit, delete
   ============================================================ */

/* ── Table wrapper ────────────────────────────────────── */
.admt-wrapper {
  background: #ffffff;
  border: var(--border);
  overflow: hidden;
}

/* ── Table ────────────────────────────────────────────── */
.admt-table {
  width: 100%;
  border-collapse: collapse;
}

/* ── Header ───────────────────────────────────────────── */
.admt-thead {
  background: var(--ink);
}

.admt-thead th {
  font-family: var(--font-label);
  font-size: 8px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 2px;
  padding: 14px 16px;
  text-align: left;
  font-weight: 400;
}

.admt-thead th.admt-center {
  text-align: center;
}

/* ── Row ──────────────────────────────────────────────── */
.admt-row {
  border-bottom: 1px solid #e8e2d8;
  transition: background 0.15s;
  cursor: grab;
}

.admt-row:last-child {
  border-bottom: none;
}

.admt-row:hover {
  background: rgba(255, 77, 28, 0.03);
}

.admt-row.admt-dragging {
  opacity: 0.4;
  cursor: grabbing;
}

.admt-row.admt-drag-over {
  border-top: 3px solid var(--orange);
}

/* ── Cells ────────────────────────────────────────────── */
.admt-row td {
  padding: 14px 16px;
  vertical-align: middle;
}

/* ── Drag handle ──────────────────────────────────────── */
.admt-drag-handle {
  cursor: grab;
  color: var(--mid);
  font-size: 16px;
  padding: 0 8px 0 0;
  user-select: none;
}

/* ── Priority input ───────────────────────────────────── */
.admt-priority-input {
  width: 56px;
  height: 36px;
  border: 2px solid var(--ink);
  background: var(--cream);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  text-align: center;
  outline: none;
  transition: border-color 0.2s;
}

.admt-priority-input:focus {
  border-color: var(--orange);
}

/* ── Type badge ───────────────────────────────────────── */
.admt-badge {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 7px;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border: 1.5px solid var(--ink);
}

.admt-badge-video {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.admt-badge-photo {
  background: transparent;
  color: var(--ink);
}

/* ── Source path ──────────────────────────────────────── */
.admt-src {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--mid);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Editable text cell ───────────────────────────────── */
.admt-editable {
  font-size: 13px;
  color: var(--ink);
  font-family: var(--font-body);
  min-width: 120px;
}

/* ── Inline edit input ────────────────────────────────── */
.admt-edit-input {
  width: 100%;
  height: 34px;
  border: 2px solid var(--orange);
  background: #ffffff;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  padding: 0 10px;
  outline: none;
}

/* ── Action buttons ───────────────────────────────────── */
.admt-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.admt-btn {
  height: 32px;
  padding: 0 14px;
  font-family: var(--font-label);
  font-size: 7px;
  letter-spacing: 1.5px;
  cursor: pointer;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  transition: background 0.2s, color 0.2s;
}

.admt-btn:hover {
  background: var(--ink);
  color: #ffffff;
}

.admt-btn-save {
  border-color: var(--orange);
  color: var(--orange);
}

.admt-btn-save:hover {
  background: var(--orange);
  color: #ffffff;
  border-color: var(--orange);
}

.admt-btn-delete {
  border-color: #e53e3e;
  color: #e53e3e;
}

.admt-btn-delete:hover {
  background: #e53e3e;
  color: #ffffff;
  border-color: #e53e3e;
}

/* ── Empty state ──────────────────────────────────────── */
.admt-empty {
  text-align: center;
  padding: 48px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mid);
  letter-spacing: 1px;
}

/* ── Delete confirm overlay ───────────────────────────── */
.admt-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17,17,17,0.6);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.admt-confirm-overlay.admt-visible {
  opacity: 1;
  pointer-events: all;
}

.admt-confirm-box {
  background: #ffffff;
  border: var(--border);
  padding: 40px;
  width: 380px;
  position: relative;
  box-shadow: 8px 8px 0 var(--ink);
}

.admt-confirm-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: #e53e3e;
}

.admt-confirm-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.admt-confirm-text {
  font-family: var(--font-body);
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 28px;
}

.admt-confirm-actions {
  display: flex;
  gap: 12px;
}

.admt-confirm-cancel {
  flex: 1;
  height: 44px;
  background: transparent;
  border: 2px solid var(--ink);
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: 2px;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.2s, color 0.2s;
}

.admt-confirm-cancel:hover {
  background: var(--ink);
  color: #ffffff;
}

.admt-confirm-delete {
  flex: 1;
  height: 44px;
  background: #e53e3e;
  border: 2px solid #e53e3e;
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: 2px;
  cursor: pointer;
  color: #ffffff;
  transition: opacity 0.2s;
}

.admt-confirm-delete:hover {
  opacity: 0.85;
}