/* =========================
   DELETE MODAL
========================= */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 2000;

  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

/* BOX */
.modal-box {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  width: 90%;
  max-width: 360px;
  text-align: center;

  transform: scale(0.95);
  transition: 0.2s ease;
}

.modal.active .modal-box {
  transform: scale(1);
}

/* TEXT */
.modal-box h3 {
  margin-bottom: 10px;
}

.modal-box p {
  font-size: 14px;
  color: var(--muted);
}

/* BUTTONS */
.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.modal-actions button {
  flex: 1;
  padding: 10px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

/* Cancel */
.btn-cancel {
  background: #eee;
}

/* Delete */
.btn-confirm {
  background: #e74c3c;
  color: #fff;
}

/* =========================
   TABLE WRAPPER
========================= */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* =========================
   TABLE CORE
========================= */
.prop-table {
  min-width: 1300px;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

/* =========================
   HEADER
========================= */
.prop-table thead {
  background: #fafafa;
}

.prop-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #777;
  padding: 14px 16px;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}

/* =========================
   ROWS
========================= */
.prop-table tbody tr {
  transition: 0.15s ease;
}

.prop-table tbody tr:hover {
  background: #f9fbff;
}

/* =========================
   CELLS
========================= */
.prop-table td {
  padding: 14px 16px;
  font-size: 13px;
  color: #333;
  white-space: nowrap;
  border-bottom: 1px solid #f1f1f1;
}

/* =========================
   IMAGE
========================= */
.table-img {
  width: 70px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
}

/* =========================
   TITLE (important visual)
========================= */
.prop-table td:nth-child(2) {
  font-weight: 600;
  color: #111;
}

/* =========================
   TRUNCATE (...)
========================= */
.truncate {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================
   STATUS BADGE
========================= */
.status {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  display: inline-block;
}

.status.open {
  background: #e8f8ef;
  color: #1e7d4f;
}

.status.closed {
  background: #fdecec;
  color: #c0392b;
}

/* =========================
   ACTION BUTTONS
========================= */
.actions {
  display: flex;
  gap: 8px;
}

.btn-edit {
  padding: 6px 12px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-size: 12px;
  transition: 0.2s;
}

.btn-edit:hover {
  opacity: 0.9;
}

.btn-delete {
  padding: 6px 12px;
  background: #f04438;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  transition: 0.2s;
}

.btn-delete:hover {
  background: #d92d20;
}

/* =========================
   SCROLLBAR (clean)
========================= */
.table-wrapper::-webkit-scrollbar {
  height: 6px;
}

.table-wrapper::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 10px;
}