.admin-wrap {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.page-title {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.6rem;
  font-weight: 600;
}

.admin-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.panel {
  flex: 1 1 80%;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  padding: 16px;
  min-width: 340px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
}

.tenant-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

table th, table td {
  padding: 8px;
  border-bottom: 1px solid #f0f0f0;
  text-align: left;
  vertical-align: top;
}

table th {
  font-weight: 600;
  color: #333;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

textarea.json {
  width: 100%;
  min-height: 70px;
  font-family: monospace;
  font-size: 0.85rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 6px;
  background: #fff;
  resize: vertical;
}

.pt-modal {
  border: none;
  border-radius: 8px;
  width: 420px;
  max-width: 90%;
  padding: 0;
}

.modal-card {
  display: flex;
  flex-direction: column;
}

.modal-head {
  background: #243b55;
  color: #fff;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.modal-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-body label {
  font-weight: 500;
  font-size: 0.9rem;
}

.modal-body input, 
.modal-body select, 
.modal-body textarea {
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.9rem;
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 14px;
}

.btn {
  background: #f2f2f2;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn.primary {
  background: #007bff;
  color: #fff;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
